diff --git a/build_release.sh b/build_release.sh index 5e25ae16..b7355c36 100755 --- a/build_release.sh +++ b/build_release.sh @@ -30,9 +30,9 @@ function buildWeb() { echo_yellow "-------------------打包前端开始-------------------" yarn run build - if [ "${copy2Server}" == "1" ] ; then - echo_green '将打包后的静态文件拷贝至server/static' - rm -rf ${server_folder}/static && mkdir -p ${server_folder}/static && cp -r ${web_folder}/dist/* ${server_folder}/static + if [ "${copy2Server}" == "2" ] ; then + echo_green '将打包后的静态文件拷贝至server/static/static' + rm -rf ${server_folder}/static/static && mkdir -p ${server_folder}/static/static && cp -r ${web_folder}/dist/* ${server_folder}/static/static fi echo_yellow ">>>>>>>>>>>>>>>>>>>打包前端结束<<<<<<<<<<<<<<<<<<<<\n" } @@ -44,6 +44,7 @@ function build() { toFolder=$1 os=$2 arch=$3 + copyStatic=$4 echo_yellow "-------------------${os}-${arch}打包构建开始-------------------" @@ -67,8 +68,10 @@ function build() { echo_green "移动二进制文件至'${toFolder}'" mv ${server_folder}/${execFileName} ${toFolder} - echo_green "拷贝前端静态页面至'${toFolder}/static'" - mkdir -p ${toFolder}/static && cp -r ${web_folder}/dist/* ${toFolder}/static + if [ "${copy2Server}" == "1" ] ; then + echo_green "拷贝前端静态页面至'${toFolder}/static'" + mkdir -p ${toFolder}/static && cp -r ${web_folder}/dist/* ${toFolder}/static + fi echo_green "拷贝脚本等资源文件[config.yml、mayfly-go.sql、readme.txt、startup.sh、shutdown.sh]" cp ${server_folder}/config.yml ${toFolder} @@ -81,15 +84,15 @@ function build() { } function buildLinuxAmd64() { - build "$1/mayfly-go-linux-amd64" "linux" "amd64" + build "$1/mayfly-go-linux-amd64" "linux" "amd64" $2 } function buildLinuxArm64() { - build "$1/mayfly-go-linux-arm64" "linux" "arm64" + build "$1/mayfly-go-linux-arm64" "linux" "arm64" $2 } function buildWindows() { - build "$1/mayfly-go-windows" "windows" "amd64" + build "$1/mayfly-go-windows" "windows" "amd64" $2 } function runBuild() { @@ -103,28 +106,23 @@ function runBuild() { cd ${toPath} toPath=`pwd` - read -p "是否构建前端[0|其他->否 1->是 2->构建并拷贝至server/static]: " runBuildWeb + read -p "是否构建前端[0|其他->否 1->是 2->构建并拷贝至server/static/static]: " runBuildWeb read -p "请选择构建版本[0|其他->全部 1->linux-amd64 2->linux-arm64 3->windows]: " buildType - if [ "${runBuildWeb}" == "1" ];then - buildWeb - fi - if [ "${runBuildWeb}" == "2" ];then - buildWeb 1 - fi + buildWeb ${runBuildWeb} if [ "${buildType}" == "1" ];then - buildLinuxAmd64 ${toPath} + buildLinuxAmd64 ${toPath} ${runBuildWeb} exit; fi if [ "${buildType}" == "2" ];then - buildLinuxArm64 ${toPath} + buildLinuxArm64 ${toPath} ${runBuildWeb} exit; fi if [ "${buildType}" == "3" ];then - buildWindows ${toPath} + buildWindows ${toPath} ${runBuildWeb} exit; fi diff --git a/mayfly_go_web/src/views/ops/db/DbList.vue b/mayfly_go_web/src/views/ops/db/DbList.vue index 68b86185..4c57d10c 100644 --- a/mayfly_go_web/src/views/ops/db/DbList.vue +++ b/mayfly_go_web/src/views/ops/db/DbList.vue @@ -352,7 +352,6 @@ export default defineComponent({ onMounted(async () => { search(); - state.projects = await projectApi.accountProjects.request(null); }); const filterTableInfos = computed(() => { @@ -399,7 +398,8 @@ export default defineComponent({ search(); }; - const editDb = (isAdd = false) => { + const editDb = async (isAdd = false) => { + state.projects = await projectApi.accountProjects.request(null); if (isAdd) { state.dbEditDialog.data = null; state.dbEditDialog.title = '新增数据库资源'; diff --git a/mayfly_go_web/src/views/ops/machine/MachineList.vue b/mayfly_go_web/src/views/ops/machine/MachineList.vue index f86641b8..60addd59 100644 --- a/mayfly_go_web/src/views/ops/machine/MachineList.vue +++ b/mayfly_go_web/src/views/ops/machine/MachineList.vue @@ -227,7 +227,6 @@ export default defineComponent({ onMounted(async () => { search(); - state.projects = await projectApi.accountProjects.request(null); }); const choose = (item: any) => { @@ -260,7 +259,8 @@ export default defineComponent({ search(); }; - const openFormDialog = (machine: any) => { + const openFormDialog = async (machine: any) => { + state.projects = await projectApi.accountProjects.request(null); let dialogTitle; if (machine) { state.machineEditDialog.data = state.currentData as any; diff --git a/mayfly_go_web/src/views/ops/mongo/MongoList.vue b/mayfly_go_web/src/views/ops/mongo/MongoList.vue index b398a78b..fa0fd07f 100644 --- a/mayfly_go_web/src/views/ops/mongo/MongoList.vue +++ b/mayfly_go_web/src/views/ops/mongo/MongoList.vue @@ -250,7 +250,6 @@ export default defineComponent({ onMounted(async () => { search(); - state.projects = await projectApi.accountProjects.request(null); }); const handlePageChange = (curPage: number) => { @@ -371,7 +370,8 @@ export default defineComponent({ state.total = res.total; }; - const editMongo = (isAdd = false) => { + const editMongo = async (isAdd = false) => { + state.projects = await projectApi.accountProjects.request(null); if (isAdd) { state.mongoEditDialog.data = null; state.mongoEditDialog.title = '新增mongo'; diff --git a/mayfly_go_web/src/views/ops/project/ProjectList.vue b/mayfly_go_web/src/views/ops/project/ProjectList.vue index d32197e4..b6e7bac9 100644 --- a/mayfly_go_web/src/views/ops/project/ProjectList.vue +++ b/mayfly_go_web/src/views/ops/project/ProjectList.vue @@ -152,7 +152,7 @@ :remote-method="getAccount" v-model="showMemDialog.memForm.accountId" filterable - placeholder="请选择" + placeholder="请输入账号模糊搜索并选择" > diff --git a/mayfly_go_web/src/views/ops/redis/RedisList.vue b/mayfly_go_web/src/views/ops/redis/RedisList.vue index d2f922ca..694cbac6 100644 --- a/mayfly_go_web/src/views/ops/redis/RedisList.vue +++ b/mayfly_go_web/src/views/ops/redis/RedisList.vue @@ -31,7 +31,13 @@ - 单机信息 + 单机信息 集群信息 @@ -202,7 +208,6 @@ export default defineComponent({ onMounted(async () => { search(); - state.projects = await projectApi.accountProjects.request(null); }); const handlePageChange = (curPage: number) => { @@ -258,7 +263,8 @@ export default defineComponent({ state.total = res.total; }; - const editRedis = (isAdd = false) => { + const editRedis = async (isAdd = false) => { + state.projects = await projectApi.accountProjects.request(null); if (isAdd) { state.redisEditDialog.data = null; state.redisEditDialog.title = '新增redis'; diff --git a/server/config.yml b/server/config.yml index 19cdb121..382f7ce3 100644 --- a/server/config.yml +++ b/server/config.yml @@ -7,19 +7,6 @@ server: enable: false key-file: ./default.key cert-file: ./default.pem - # 静态资源 - static: - - relative-path: /assets - root: ./static/assets - # 静态文件 - static-file: - - relative-path: / - filepath: ./static/index.html - - relative-path: /favicon.ico - filepath: ./static/favicon.ico - - relative-path: /config.js - filepath: ./static/config.js - jwt: # jwt key,不设置默认使用随机字符串 key: @@ -35,7 +22,6 @@ mysql: db-name: mayfly-go config: charset=utf8&loc=Local&parseTime=true max-idle-conns: 5 - log: # 日志等级, trace, debug, info, warn, error, fatal level: info diff --git a/server/initialize/router.go b/server/initialize/router.go index 0d2c79b1..6ec9fe59 100644 --- a/server/initialize/router.go +++ b/server/initialize/router.go @@ -2,16 +2,25 @@ package initialize import ( "fmt" + "io/fs" common_router "mayfly-go/internal/common/router" devops_router "mayfly-go/internal/devops/router" sys_router "mayfly-go/internal/sys/router" "mayfly-go/pkg/config" "mayfly-go/pkg/middleware" + "mayfly-go/static" "net/http" "github.com/gin-gonic/gin" ) +func WrapStaticHandler(h http.Handler) gin.HandlerFunc { + return func(c *gin.Context) { + c.Writer.Header().Set("Cache-Control", `public, max-age=31536000`) + h.ServeHTTP(c.Writer, c.Request) + } +} + func InitRouter() *gin.Engine { // server配置 serverConfig := config.Conf.Server @@ -25,12 +34,21 @@ func InitRouter() *gin.Engine { g.JSON(http.StatusNotFound, gin.H{"code": 404, "msg": fmt.Sprintf("not found '%s:%s'", g.Request.Method, g.Request.URL.Path)}) }) + // 使用embed打包静态资源至二进制文件中 + fsys, _ := fs.Sub(static.Static, "static") + fileServer := http.FileServer(http.FS(fsys)) + handler := WrapStaticHandler(fileServer) + router.GET("/", handler) + router.GET("/favicon.ico", handler) + router.GET("/config.js", handler) + // 所有/assets/**开头的都是静态资源文件 + router.GET("/assets/*file", handler) + // 设置静态资源 if staticConfs := serverConfig.Static; staticConfs != nil { for _, scs := range *staticConfs { router.Static(scs.RelativePath, scs.Root) } - } // 设置静态文件 if staticFileConfs := serverConfig.StaticFile; staticFileConfs != nil { @@ -38,6 +56,7 @@ func InitRouter() *gin.Engine { router.StaticFile(sfs.RelativePath, sfs.Filepath) } } + // 是否允许跨域 if serverConfig.Cors { router.Use(middleware.Cors()) diff --git a/server/static/static.go b/server/static/static.go new file mode 100644 index 00000000..0208e3b9 --- /dev/null +++ b/server/static/static.go @@ -0,0 +1,9 @@ +package static + +import "embed" + +// 使用1.16特性编译阶段将静态资源文件打包进编译好的程序 +var ( + //go:embed static/** + Static embed.FS +) diff --git a/server/static/static/assets/401.1661345446364.css b/server/static/static/assets/401.1661345446364.css new file mode 100644 index 00000000..9d09ac27 --- /dev/null +++ b/server/static/static/assets/401.1661345446364.css @@ -0,0 +1 @@ +.error[data-v-6ec92039]{height:100%;background-color:#fff;display:flex}.error .error-flex[data-v-6ec92039]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-6ec92039]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-6ec92039]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-6ec92039]{color:#d6e0f6;font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-6ec92039]{font-size:20px;color:#333;margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-6ec92039]{color:#c0bebe;font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-6ec92039]{animation-delay:.2s}.error .error-flex .right[data-v-6ec92039]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-6ec92039]{width:100%;height:100%} diff --git a/server/static/static/assets/401.1661345446364.js b/server/static/static/assets/401.1661345446364.js new file mode 100644 index 00000000..6d10b3d2 --- /dev/null +++ b/server/static/static/assets/401.1661345446364.js @@ -0,0 +1 @@ +import{_ as s,u as n,b as l,e as c,h as e,g as d,w as f,Y as m,Q as u,R as _,d as p,B as h}from"./index.1661345446364.js";var x="assets/401.1661345446364.png";const v={name:"401",setup(){const t=n();return{onSetAuth:()=>{m(),t.push("/login")}}}},o=t=>(u("data-v-6ec92039"),t=t(),_(),t),g={class:"error"},y={class:"error-flex"},b={class:"left"},C={class:"left-item"},B=o(()=>e("div",{class:"left-item-animation left-item-num"},"401",-1)),w=o(()=>e("div",{class:"left-item-animation left-item-title"},"\u60A8\u672A\u88AB\u6388\u6743\u6216\u767B\u5F55\u8D85\u65F6\uFF0C\u6CA1\u6709\u64CD\u4F5C\u6743\u9650",-1)),A=o(()=>e("div",{class:"left-item-animation left-item-msg"},null,-1)),S={class:"left-item-animation left-item-btn"},F=h("\u91CD\u65B0\u767B\u5F55"),k=o(()=>e("div",{class:"right"},[e("img",{src:x})],-1));function I(t,r,z,a,D,N){const i=l("el-button");return p(),c("div",g,[e("div",y,[e("div",b,[e("div",C,[B,w,A,e("div",S,[d(i,{type:"primary",round:"",onClick:a.onSetAuth},{default:f(()=>[F]),_:1},8,["onClick"])])])]),k])])}var $=s(v,[["render",I],["__scopeId","data-v-6ec92039"]]);export{$ as default}; diff --git a/server/static/static/assets/401.1661345446364.png b/server/static/static/assets/401.1661345446364.png new file mode 100644 index 00000000..ce306dab Binary files /dev/null and b/server/static/static/assets/401.1661345446364.png differ diff --git a/server/static/static/assets/404.1661345446364.css b/server/static/static/assets/404.1661345446364.css new file mode 100644 index 00000000..bc06e00d --- /dev/null +++ b/server/static/static/assets/404.1661345446364.css @@ -0,0 +1 @@ +.error[data-v-69e91ac8]{height:100%;background-color:#fff;display:flex}.error .error-flex[data-v-69e91ac8]{margin:auto;display:flex;height:350px;width:900px}.error .error-flex .left[data-v-69e91ac8]{flex:1;height:100%;align-items:center;display:flex}.error .error-flex .left .left-item .left-item-animation[data-v-69e91ac8]{opacity:0;animation-name:error-num;animation-duration:.5s;animation-fill-mode:forwards}.error .error-flex .left .left-item .left-item-num[data-v-69e91ac8]{color:#d6e0f6;font-size:55px}.error .error-flex .left .left-item .left-item-title[data-v-69e91ac8]{font-size:20px;color:#333;margin:15px 0 5px;animation-delay:.1s}.error .error-flex .left .left-item .left-item-msg[data-v-69e91ac8]{color:#c0bebe;font-size:12px;margin-bottom:30px;animation-delay:.2s}.error .error-flex .left .left-item .left-item-btn[data-v-69e91ac8]{animation-delay:.2s}.error .error-flex .right[data-v-69e91ac8]{flex:1;opacity:0;animation-name:error-img;animation-duration:2s;animation-fill-mode:forwards}.error .error-flex .right img[data-v-69e91ac8]{width:100%;height:100%} diff --git a/server/static/static/assets/404.1661345446364.js b/server/static/static/assets/404.1661345446364.js new file mode 100644 index 00000000..6303ab17 --- /dev/null +++ b/server/static/static/assets/404.1661345446364.js @@ -0,0 +1 @@ +import{_ as s,u as n,b as l,e as c,h as e,g as d,w as m,Q as f,R as u,d as _,B as p}from"./index.1661345446364.js";var h="assets/404.1661345446364.png";const x={name:"404",setup(){const t=n();return{onGoHome:()=>{t.push("/")}}}},o=t=>(f("data-v-69e91ac8"),t=t(),u(),t),v={class:"error"},g={class:"error-flex"},y={class:"left"},F={class:"left-item"},b=o(()=>e("div",{class:"left-item-animation left-item-num"},"404",-1)),C=o(()=>e("div",{class:"left-item-animation left-item-title"},"\u5730\u5740\u8F93\u5165\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u5730\u5740~",-1)),B=o(()=>e("div",{class:"left-item-animation left-item-msg"},"\u60A8\u53EF\u4EE5\u5148\u68C0\u67E5\u7F51\u5740\uFF0C\u7136\u540E\u91CD\u65B0\u8F93\u5165",-1)),E={class:"left-item-animation left-item-btn"},w=p("\u8FD4\u56DE\u9996\u9875"),k=o(()=>e("div",{class:"right"},[e("img",{src:h})],-1));function D(t,a,I,r,z,G){const i=l("el-button");return _(),c("div",v,[e("div",g,[e("div",y,[e("div",F,[b,C,B,e("div",E,[d(i,{type:"primary",round:"",onClick:r.onGoHome},{default:m(()=>[w]),_:1},8,["onClick"])])])]),k])])}var N=s(x,[["render",D],["__scopeId","data-v-69e91ac8"]]);export{N as default}; diff --git a/server/static/static/assets/404.1661345446364.png b/server/static/static/assets/404.1661345446364.png new file mode 100644 index 00000000..903c8e07 Binary files /dev/null and b/server/static/static/assets/404.1661345446364.png differ diff --git a/server/static/static/assets/Api.1661345446364.js b/server/static/static/assets/Api.1661345446364.js new file mode 100644 index 00000000..256c321f --- /dev/null +++ b/server/static/static/assets/Api.1661345446364.js @@ -0,0 +1 @@ +import{p as r}from"./index.1661345446364.js";class s{constructor(t,e){this.url=t,this.method=e}setUrl(t){return this.url=t,this}setMethod(t){return this.method=t,this}getUrl(){return r.getApiUrl(this.url)}request(t=null,e=null){return r.send(this,t,e)}requestWithHeaders(t,e){return r.sendWithHeaders(this,t,e)}static create(t,e){return new s(t,e)}}export{s as A}; diff --git a/server/static/static/assets/DataOperation.1661345446364.css b/server/static/static/assets/DataOperation.1661345446364.css new file mode 100644 index 00000000..3ba0f626 --- /dev/null +++ b/server/static/static/assets/DataOperation.1661345446364.css @@ -0,0 +1 @@ +#string-value-text{flex-grow:1;display:flex;position:relative}#string-value-text .text-type-select{position:absolute;z-index:2;right:10px;top:10px;max-width:70px} diff --git a/server/static/static/assets/DataOperation.1661345446364.js b/server/static/static/assets/DataOperation.1661345446364.js new file mode 100644 index 00000000..a924484d --- /dev/null +++ b/server/static/static/assets/DataOperation.1661345446364.js @@ -0,0 +1 @@ +var ee=Object.defineProperty,le=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var J=(e,t,l)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,P=(e,t)=>{for(var l in t||(t={}))ae.call(t,l)&&J(e,l,t[l]);if(G)for(var l of G(t))oe.call(t,l)&&J(e,l,t[l]);return e},z=(e,t)=>le(e,te(t));import{r as w}from"./api.16613454463645.js";import{P as ne}from"./ProjectEnvSelect.1661345446364.js";import{n as j,i as S,a as se,b as Q}from"./assert.1661345446364.js";import{A as q,r as R,v as U,E as F,t as N,_ as O,G as W,b as i,C as H,d as g,k as E,K as ie,w as o,h as D,g as a,x as K,z as $,e as M,i as A,B as f,F as ue,j as re}from"./index.1661345446364.js";import{a as L}from"./format.1661345446364.js";import"./Api.1661345446364.js";import"./api.16613454463644.js";const de=q({name:"HashValue",components:{},props:{visible:{type:Boolean},title:{type:String},operationType:{type:[Number],require:!0},redisId:{type:[Number],require:!0},keyInfo:{type:[Object]},hashValue:{type:[Array,Object]}},emits:["valChange","cancel","update:visible"],setup(e,{emit:t}){const l=R({dialogVisible:!1,operationType:1,redisId:0,key:{key:"",type:"hash",timed:-1},scanParam:{key:"",id:0,cursor:0,match:"",count:10},keySize:0,hashValues:[{field:"",value:""}]}),h=()=>{t("update:visible",!1),t("cancel"),setTimeout(()=>{l.hashValues=[],l.key={}},500)};U(e,async y=>{const c=y.visible;l.redisId=y.redisId,l.key=y.keyInfo,l.operationType=y.operationType,c&&l.operationType==2&&(l.scanParam.id=e.redisId,l.scanParam.key=l.key.key,await b()),l.dialogVisible=c});const b=async()=>{l.scanParam.id=l.redisId,l.scanParam.cursor=0,V()},V=async()=>{const y=l.scanParam.match;if(!y||y==""||y=="*"){if(l.scanParam.count>100){F.error("match\u4E3A\u7A7A\u6216\u8005*\u65F6, count\u4E0D\u80FD\u8D85\u8FC7100");return}}else if(l.scanParam.count>1e3){F.error("count\u4E0D\u80FD\u8D85\u8FC71000");return}const c=await w.hscan.request(l.scanParam);l.scanParam.cursor=c.cursor,l.keySize=c.keySize;const v=c.keys,k=[],u=v.length/2;let n=0;for(let r=0;r{if(l.operationType==1){l.hashValues.splice(c,1);return}await W.confirm(`\u786E\u5B9A\u5220\u9664[${y}]?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await w.hdel.request({id:l.redisId,key:l.key.key,field:y}),F.success("\u5220\u9664\u6210\u529F"),b()},s=async y=>{await w.saveHashValue.request({id:l.redisId,key:l.key.key,timed:l.key.timed,value:[{field:y.field,value:y.value}]}),F.success("\u4FDD\u5B58\u6210\u529F")},p=()=>{l.hashValues.unshift({field:"",value:""})},C=async()=>{j(l.key.key,"key\u4E0D\u80FD\u4E3A\u7A7A"),S(l.hashValues.length>0,"hash\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");const y={value:l.hashValues,id:l.redisId};Object.assign(y,l.key),await w.saveHashValue.request(y),F.success("\u4FDD\u5B58\u6210\u529F"),h(),t("valChange")};return z(P({},N(l)),{reHscan:b,hscan:V,cancel:h,hdel:m,hset:s,onAddHashValue:p,saveValue:C})}}),pe=f("scan"),me=f("\u6DFB\u52A0"),ye={key:2,class:"mt10",style:{float:"right"}},ce={class:"dialog-footer"},fe=f("\u53D6 \u6D88"),ve=f("\u786E \u5B9A");function ge(e,t,l,h,b,V){const m=i("el-input"),s=i("el-form-item"),p=i("el-button"),C=i("el-form"),y=i("el-row"),c=i("el-table-column"),v=i("el-table"),k=i("el-dialog"),u=H("auth");return g(),E(k,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":t[8]||(t[8]=n=>e.dialogVisible=n),"before-close":e.cancel,width:"800px","destroy-on-close":!0},ie({default:o(()=>[a(C,{"label-width":"85px"},{default:o(()=>[a(s,{prop:"key",label:"key:"},{default:o(()=>[a(m,{disabled:e.operationType==2,modelValue:e.key.key,"onUpdate:modelValue":t[0]||(t[0]=n=>e.key.key=n)},null,8,["disabled","modelValue"])]),_:1}),a(s,{prop:"timed",label:"\u8FC7\u671F\u65F6\u95F4:"},{default:o(()=>[a(m,{modelValue:e.key.timed,"onUpdate:modelValue":t[1]||(t[1]=n=>e.key.timed=n),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1}),a(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B:"},{default:o(()=>[a(m,{modelValue:e.key.type,"onUpdate:modelValue":t[2]||(t[2]=n=>e.key.type=n),disabled:""},null,8,["modelValue"])]),_:1}),a(y,{class:"mt10"},{default:o(()=>[a(C,{"label-position":"right",inline:!0},{default:o(()=>[e.operationType==2?(g(),E(s,{key:0,label:"field","label-width":"40px"},{default:o(()=>[a(m,{placeholder:"\u652F\u6301*\u6A21\u7CCAfield",style:{width:"140px"},modelValue:e.scanParam.match,"onUpdate:modelValue":t[3]||(t[3]=n=>e.scanParam.match=n),clearable:"",size:"small"},null,8,["modelValue"])]),_:1})):$("",!0),e.operationType==2?(g(),E(s,{key:1,label:"count"},{default:o(()=>[a(m,{placeholder:"count",style:{width:"62px"},modelValue:e.scanParam.count,"onUpdate:modelValue":t[4]||(t[4]=n=>e.scanParam.count=n),modelModifiers:{number:!0},size:"small"},null,8,["modelValue"])]),_:1})):$("",!0),a(s,null,{default:o(()=>[e.operationType==2?(g(),E(p,{key:0,onClick:t[5]||(t[5]=n=>e.reHscan()),type:"success",icon:"search",plain:"",size:"small"})):$("",!0),e.operationType==2?(g(),E(p,{key:1,onClick:t[6]||(t[6]=n=>e.hscan()),icon:"bottom",plain:"",size:"small"},{default:o(()=>[pe]),_:1})):$("",!0),a(p,{onClick:e.onAddHashValue,icon:"plus",size:"small",plain:""},{default:o(()=>[me]),_:1},8,["onClick"])]),_:1}),e.operationType==2?(g(),M("div",ye,[D("span",null,"fieldSize: "+A(e.keySize),1)])):$("",!0)]),_:1})]),_:1}),a(v,{data:e.hashValues,stripe:"",style:{width:"100%"}},{default:o(()=>[a(c,{prop:"field",label:"field",width:""},{default:o(n=>[a(m,{modelValue:n.row.field,"onUpdate:modelValue":r=>n.row.field=r,clearable:"",size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(c,{prop:"value",label:"value","min-width":"200"},{default:o(n=>[a(m,{modelValue:n.row.value,"onUpdate:modelValue":r=>n.row.value=r,clearable:"",type:"textarea",autosize:{minRows:2,maxRows:10},size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(c,{label:"\u64CD\u4F5C",width:"120"},{default:o(n=>[e.operationType==2?(g(),E(p,{key:0,type:"success",onClick:r=>e.hset(n.row),icon:"check",size:"small",plain:""},null,8,["onClick"])):$("",!0),a(p,{type:"danger",onClick:r=>e.hdel(n.row.field,n.$index),icon:"delete",size:"small",plain:""},null,8,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:2},[e.operationType==1?{name:"footer",fn:o(()=>[D("div",ce,[a(p,{onClick:t[7]||(t[7]=n=>e.cancel())},{default:o(()=>[fe]),_:1}),K((g(),E(p,{onClick:e.saveValue,type:"primary"},{default:o(()=>[ve]),_:1},8,["onClick"])),[[u,"redis:data:save"]])])])}:void 0]),1032,["title","modelValue","before-close"])}var be=O(de,[["render",ge]]);const ke=q({name:"StringValue",components:{},props:{visible:{type:Boolean},title:{type:String},redisId:{type:[Number],require:!0},keyInfo:{type:[Object]},operationType:{type:[Number]}},emits:["valChange","cancel","update:visible"],setup(e,{emit:t}){const l=R({dialogVisible:!1,operationType:1,redisId:"",key:{key:"",type:"string",timed:-1},string:{type:"text",value:""}}),h=()=>{t("update:visible",!1),t("cancel"),setTimeout(()=>{l.key={key:"",type:"string",timed:-1},l.string.value="",l.string.type="text"},500)};U(()=>e.visible,s=>{l.dialogVisible=s}),U(()=>e.redisId,s=>{l.redisId=s}),U(e,async s=>{l.dialogVisible=s.visible,l.key=s.key,l.redisId=s.redisId,l.key=s.keyInfo,l.operationType=s.operationType,l.dialogVisible&&l.operationType==2&&b()});const b=async()=>{l.string.value=await w.getStringValue.request({id:l.redisId,key:l.key.key})},V=async()=>{j(l.key.key,"key\u4E0D\u80FD\u4E3A\u7A7A"),j(l.string.value,"value\u4E0D\u80FD\u4E3A\u7A7A");const s={value:L(l.string.value,!0),id:l.redisId};Object.assign(s,l.key),await w.saveStringValue.request(s),F.success("\u6570\u636E\u4FDD\u5B58\u6210\u529F"),h(),t("valChange")},m=s=>{if(s=="json"){l.string.value=L(l.string.value,!1);return}s=="text"&&(l.string.value=L(l.string.value,!0))};return z(P({},N(l)),{saveValue:V,cancel:h,onChangeTextType:m})}}),he={id:"string-value-text",style:{width:"100%"}},Ve={class:"dialog-footer"},_e=f("\u53D6 \u6D88"),Ce=f("\u786E \u5B9A");function Ee(e,t,l,h,b,V){const m=i("el-input"),s=i("el-form-item"),p=i("el-option"),C=i("el-select"),y=i("el-form"),c=i("el-button"),v=i("el-dialog"),k=H("auth");return g(),E(v,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":t[6]||(t[6]=u=>e.dialogVisible=u),"before-close":e.cancel,width:"800px","destroy-on-close":!0},{footer:o(()=>[D("div",Ve,[a(c,{onClick:t[5]||(t[5]=u=>e.cancel())},{default:o(()=>[_e]),_:1}),K((g(),E(c,{onClick:e.saveValue,type:"primary"},{default:o(()=>[Ce]),_:1},8,["onClick"])),[[k,"redis:data:save"]])])]),default:o(()=>[a(y,{"label-width":"85px"},{default:o(()=>[a(s,{prop:"key",label:"key:"},{default:o(()=>[a(m,{disabled:e.operationType==2,modelValue:e.key.key,"onUpdate:modelValue":t[0]||(t[0]=u=>e.key.key=u)},null,8,["disabled","modelValue"])]),_:1}),a(s,{prop:"timed",label:"\u8FC7\u671F\u65F6\u95F4:"},{default:o(()=>[a(m,{modelValue:e.key.timed,"onUpdate:modelValue":t[1]||(t[1]=u=>e.key.timed=u),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1}),a(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B:"},{default:o(()=>[a(m,{modelValue:e.key.type,"onUpdate:modelValue":t[2]||(t[2]=u=>e.key.type=u),disabled:""},null,8,["modelValue"])]),_:1}),D("div",he,[a(m,{class:"json-text",modelValue:e.string.value,"onUpdate:modelValue":t[3]||(t[3]=u=>e.string.value=u),type:"textarea",autosize:{minRows:10,maxRows:20}},null,8,["modelValue"]),a(C,{class:"text-type-select",onChange:e.onChangeTextType,modelValue:e.string.type,"onUpdate:modelValue":t[4]||(t[4]=u=>e.string.type=u)},{default:o(()=>[a(p,{key:"text",label:"text",value:"text"}),a(p,{key:"json",label:"json",value:"json"})]),_:1},8,["onChange","modelValue"])])]),_:1})]),_:1},8,["title","modelValue","before-close"])}var De=O(ke,[["render",Ee]]);const we=q({name:"SetValue",components:{},props:{visible:{type:Boolean},title:{type:String},redisId:{type:[Number],require:!0},keyInfo:{type:[Object]},operationType:{type:[Number]},setValue:{type:[Array,Object]}},emits:["valChange","cancel","update:visible"],setup(e,{emit:t}){const l=R({dialogVisible:!1,operationType:1,redisId:"",key:{key:"",type:"string",timed:-1},value:[{value:""}]}),h=()=>{t("update:visible",!1),t("cancel"),setTimeout(()=>{l.key={key:"",type:"string",timed:-1},l.value=[]},500)};U(e,async s=>{l.dialogVisible=s.visible,l.key=s.key,l.redisId=s.redisId,l.key=s.keyInfo,l.operationType=s.operationType,l.dialogVisible&&l.operationType==2&&b()});const b=async()=>{const s=await w.getSetValue.request({id:l.redisId,key:l.key.key});l.value=s.map(p=>({value:p}))},V=async()=>{j(l.key.key,"key\u4E0D\u80FD\u4E3A\u7A7A"),S(l.value.length>0,"set\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");const s={value:l.value.map(p=>p.value),id:l.redisId};Object.assign(s,l.key),await w.saveSetValue.request(s),F.success("\u6570\u636E\u4FDD\u5B58\u6210\u529F"),h(),t("valChange")},m=()=>{l.value.unshift({value:""})};return z(P({},N(l)),{saveValue:V,cancel:h,onAddSetValue:m})}}),Fe=f("\u6DFB\u52A0"),Ie=f("\u5220\u9664"),Te={class:"dialog-footer"},$e=f("\u53D6 \u6D88"),Ae=f("\u786E \u5B9A");function Be(e,t,l,h,b,V){const m=i("el-input"),s=i("el-form-item"),p=i("el-button"),C=i("el-table-column"),y=i("el-table"),c=i("el-form"),v=i("el-dialog"),k=H("auth");return g(),E(v,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":t[4]||(t[4]=u=>e.dialogVisible=u),"before-close":e.cancel,width:"800px","destroy-on-close":!0},{footer:o(()=>[D("div",Te,[a(p,{onClick:t[3]||(t[3]=u=>e.cancel())},{default:o(()=>[$e]),_:1}),K((g(),E(p,{onClick:e.saveValue,type:"primary"},{default:o(()=>[Ae]),_:1},8,["onClick"])),[[k,"redis:data:save"]])])]),default:o(()=>[a(c,{"label-width":"85px"},{default:o(()=>[a(s,{prop:"key",label:"key:"},{default:o(()=>[a(m,{disabled:e.operationType==2,modelValue:e.key.key,"onUpdate:modelValue":t[0]||(t[0]=u=>e.key.key=u)},null,8,["disabled","modelValue"])]),_:1}),a(s,{prop:"timed",label:"\u8FC7\u671F\u65F6\u95F4:"},{default:o(()=>[a(m,{modelValue:e.key.timed,"onUpdate:modelValue":t[1]||(t[1]=u=>e.key.timed=u),modelModifiers:{number:!0},type:"number"},null,8,["modelValue"])]),_:1}),a(s,{prop:"dataType",label:"\u6570\u636E\u7C7B\u578B:"},{default:o(()=>[a(m,{modelValue:e.key.type,"onUpdate:modelValue":t[2]||(t[2]=u=>e.key.type=u),disabled:""},null,8,["modelValue"])]),_:1}),a(p,{onClick:e.onAddSetValue,icon:"plus",size:"small",plain:"",class:"mt10"},{default:o(()=>[Fe]),_:1},8,["onClick"]),a(y,{data:e.value,stripe:"",style:{width:"100%"}},{default:o(()=>[a(C,{prop:"value",label:"value","min-width":"200"},{default:o(u=>[a(m,{modelValue:u.row.value,"onUpdate:modelValue":n=>u.row.value=n,clearable:"",type:"textarea",autosize:{minRows:2,maxRows:10},size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),a(C,{label:"\u64CD\u4F5C",width:"90"},{default:o(u=>[a(p,{type:"danger",onClick:n=>e.set.value.splice(u.$index,1),icon:"delete",size:"small",plain:""},{default:o(()=>[Ie]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["title","modelValue","before-close"])}var Pe=O(we,[["render",Be]]);const ze=q({name:"DataOperation",components:{StringValue:De,HashValue:be,SetValue:Pe,ProjectEnvSelect:ne},setup(){const e=R({loading:!1,redisList:[],query:{envId:0},scanParam:{id:null,match:null,count:10,cursor:{}},dataEdit:{visible:!1,title:"\u65B0\u589E\u6570\u636E",operationType:1,keyInfo:{type:"string",timed:-1,key:""}},hashValueDialog:{visible:!1},stringValueDialog:{visible:!1},setValueDialog:{visible:!1},keys:[],dbsize:0}),t=async()=>{Q(e.query.envId,"\u8BF7\u5148\u9009\u62E9\u9879\u76EE\u73AF\u5883");const n=await w.redisList.request(e.query);e.redisList=n.list},l=(n,r)=>{m(),r!=null&&(e.query.envId=r,t())},h=n=>{p(n),e.keys=[],e.dbsize=0,V()},b=async()=>{S(e.scanParam.id!=null,"\u8BF7\u5148\u9009\u62E9redis"),se(e.scanParam.count,"count\u4E0D\u80FD\u4E3A\u7A7A");const n=e.scanParam.match;!n||n=="*"?S(e.scanParam.count<=200,"match\u4E3A\u7A7A\u6216\u8005*\u65F6, count\u4E0D\u80FD\u8D85\u8FC7200"):S(e.scanParam.count<=2e4,"count\u4E0D\u80FD\u8D85\u8FC720000"),e.loading=!0;try{const r=await w.scan.request(e.scanParam);e.keys=r.keys,e.dbsize=r.dbSize,e.scanParam.cursor=r.cursor}finally{e.loading=!1}},V=async()=>{e.scanParam.cursor={},await b()},m=()=>{e.redisList=[],e.scanParam.id=null,p(),e.keys=[],e.dbsize=0},s=()=>{p(),e.scanParam.id&&b()},p=(n=0)=>{if(e.scanParam.count=10,n!=0){const r=e.redisList.find(_=>_.id==n);r&&r.mode=="cluster"&&(e.scanParam.count=5)}e.scanParam.match=null,e.scanParam.cursor={}},C=async n=>{const r=n.type;e.dataEdit.keyInfo.type=r,e.dataEdit.keyInfo.timed=n.ttl,e.dataEdit.keyInfo.key=n.key,e.dataEdit.operationType=2,e.dataEdit.title="\u67E5\u770B\u6570\u636E",r=="hash"?e.hashValueDialog.visible=!0:r=="string"?e.stringValueDialog.visible=!0:r=="set"?e.setValueDialog.visible=!0:F.warning("\u6682\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B")},y=n=>{Q(e.scanParam.id,"\u8BF7\u5148\u9009\u62E9redis"),e.dataEdit.operationType=1,e.dataEdit.title="\u65B0\u589E\u6570\u636E",e.dataEdit.keyInfo.type=n,e.dataEdit.keyInfo.timed=-1,n=="hash"?e.hashValueDialog.visible=!0:n=="string"?e.stringValueDialog.visible=!0:n=="set"?e.setValueDialog.visible=!0:F.warning("\u6682\u4E0D\u652F\u6301\u8BE5\u7C7B\u578B")},c=()=>{e.dataEdit.keyInfo={}},v=n=>{W.confirm(`\u786E\u5B9A\u5220\u9664[ ${n} ] \u8BE5key?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{w.delKey.request({key:n,id:e.scanParam.id}).then(()=>{F.success("\u5220\u9664\u6210\u529F\uFF01"),V()})}).catch(()=>{})},k=n=>{if(n==-1||n==0)return"\u6C38\u4E45";n||(n=0);let r=parseInt(n),_=0,I=0,B=0;r>60&&(_=parseInt(r/60+""),r=r%60,_>60&&(I=parseInt(_/60+""),_=_%60,I>24&&(B=parseInt(I/24+""),I=I%24)));let T=""+r+"s";return _>0&&(T=""+_+"m:"+T),I>0&&(T=""+I+"h:"+T),B>0&&(T=""+B+"d:"+T),T},u=n=>{if(n=="string")return"#E4F5EB";if(n=="hash")return"#F9E2AE";if(n=="set")return"#A8DEE0"};return z(P({},N(e)),{changeProjectEnv:l,changeRedis:h,clearRedis:m,searchKey:V,scan:b,clear:s,getValue:C,del:v,ttlConveter:k,getTypeColor:u,onAddData:y,onCancelDataEdit:c})}}),Se={style:{float:"left"}},Ue={style:{float:"left"}},je={style:{float:"right",color:"#8492a6","margin-left":"6px","font-size":"13px"}},qe=f("scan"),Re=f("string"),Ne=f("hash"),Oe=f("set"),He={style:{float:"right"}},Ke=f("\u67E5\u770B"),Le=f("\u5220\u9664"),Me=D("div",{style:{"text-align":"center","margin-top":"10px"}},null,-1);function Ge(e,t,l,h,b,V){const m=i("el-option"),s=i("el-select"),p=i("el-form-item"),C=i("project-env-select"),y=i("el-col"),c=i("el-input"),v=i("el-button"),k=i("el-tag"),u=i("el-popover"),n=i("el-form"),r=i("el-row"),_=i("el-table-column"),I=i("el-table"),B=i("el-card"),T=i("hash-value"),X=i("string-value"),Y=i("set-value"),Z=H("loading");return g(),M("div",null,[a(B,null,{default:o(()=>[D("div",Se,[a(r,{type:"flex",justify:"space-between"},{default:o(()=>[a(y,{span:24},{default:o(()=>[a(C,{onChangeProjectEnv:e.changeProjectEnv,onClear:e.clearRedis},{default:o(()=>[a(p,{label:"redis","label-width":"40px"},{default:o(()=>[a(s,{modelValue:e.scanParam.id,"onUpdate:modelValue":t[0]||(t[0]=d=>e.scanParam.id=d),placeholder:"\u8BF7\u9009\u62E9redis",onChange:e.changeRedis,onClear:e.clearRedis,clearable:""},{default:o(()=>[(g(!0),M(ue,null,re(e.redisList,d=>(g(),E(m,{key:d.id,label:d.host,value:d.id},{default:o(()=>[D("span",Ue,A(d.host),1),D("span",je,A(`\u5E93: [${d.db}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange","onClear"])]),_:1})]),_:1},8,["onChangeProjectEnv","onClear"])]),_:1}),a(y,{class:"mt10"},{default:o(()=>[a(n,{class:"search-form","label-position":"right",inline:!0,"label-width":"60px"},{default:o(()=>[a(p,{label:"key","label-width":"40px"},{default:o(()=>[a(c,{placeholder:"match \u652F\u6301*\u6A21\u7CCAkey",style:{width:"240px"},modelValue:e.scanParam.match,"onUpdate:modelValue":t[1]||(t[1]=d=>e.scanParam.match=d),onClear:t[2]||(t[2]=d=>e.clear()),clearable:""},null,8,["modelValue"])]),_:1}),a(p,{label:"count","label-width":"60px"},{default:o(()=>[a(c,{placeholder:"count",style:{width:"62px"},modelValue:e.scanParam.count,"onUpdate:modelValue":t[3]||(t[3]=d=>e.scanParam.count=d),modelModifiers:{number:!0}},null,8,["modelValue"])]),_:1}),a(p,null,{default:o(()=>[a(v,{onClick:t[4]||(t[4]=d=>e.searchKey()),type:"success",icon:"search",plain:""}),a(v,{onClick:t[5]||(t[5]=d=>e.scan()),icon:"bottom",plain:""},{default:o(()=>[qe]),_:1}),a(u,{placement:"right",width:200,trigger:"click"},{reference:o(()=>[a(v,{type:"primary",icon:"plus",plain:""})]),default:o(()=>[a(k,{onClick:t[6]||(t[6]=d=>e.onAddData("string")),color:e.getTypeColor("string"),style:{cursor:"pointer"}},{default:o(()=>[Re]),_:1},8,["color"]),a(k,{onClick:t[7]||(t[7]=d=>e.onAddData("hash")),color:e.getTypeColor("hash"),class:"ml5",style:{cursor:"pointer"}},{default:o(()=>[Ne]),_:1},8,["color"]),a(k,{onClick:t[8]||(t[8]=d=>e.onAddData("set")),color:e.getTypeColor("set"),class:"ml5",style:{cursor:"pointer"}},{default:o(()=>[Oe]),_:1},8,["color"])]),_:1})]),_:1}),D("div",He,[D("span",null,"keys: "+A(e.dbsize),1)])]),_:1})]),_:1})]),_:1})]),K((g(),E(I,{data:e.keys,stripe:"","highlight-current-row":!0,style:{cursor:"pointer"}},{default:o(()=>[a(_,{"show-overflow-tooltip":"",prop:"key",label:"key"}),a(_,{prop:"type",label:"type",width:"80"},{default:o(d=>[a(k,{color:e.getTypeColor(d.row.type),size:"small"},{default:o(()=>[f(A(d.row.type),1)]),_:2},1032,["color"])]),_:1}),a(_,{prop:"ttl",label:"ttl(\u8FC7\u671F\u65F6\u95F4)",width:"130"},{default:o(d=>[f(A(e.ttlConveter(d.row.ttl)),1)]),_:1}),a(_,{label:"\u64CD\u4F5C"},{default:o(d=>[a(v,{onClick:x=>e.getValue(d.row),type:"success",icon:"search",plain:"",size:"small"},{default:o(()=>[Ke]),_:2},1032,["onClick"]),a(v,{onClick:x=>e.del(d.row.key),type:"danger",icon:"delete",plain:"",size:"small"},{default:o(()=>[Le]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[Z,e.loading]])]),_:1}),Me,a(T,{visible:e.hashValueDialog.visible,"onUpdate:visible":t[9]||(t[9]=d=>e.hashValueDialog.visible=d),operationType:e.dataEdit.operationType,title:e.dataEdit.title,keyInfo:e.dataEdit.keyInfo,redisId:e.scanParam.id,onCancel:e.onCancelDataEdit,onValChange:e.searchKey},null,8,["visible","operationType","title","keyInfo","redisId","onCancel","onValChange"]),a(X,{visible:e.stringValueDialog.visible,"onUpdate:visible":t[10]||(t[10]=d=>e.stringValueDialog.visible=d),operationType:e.dataEdit.operationType,title:e.dataEdit.title,keyInfo:e.dataEdit.keyInfo,redisId:e.scanParam.id,onCancel:e.onCancelDataEdit,onValChange:e.searchKey},null,8,["visible","operationType","title","keyInfo","redisId","onCancel","onValChange"]),a(Y,{visible:e.setValueDialog.visible,"onUpdate:visible":t[11]||(t[11]=d=>e.setValueDialog.visible=d),title:e.dataEdit.title,keyInfo:e.dataEdit.keyInfo,redisId:e.scanParam.id,operationType:e.dataEdit.operationType,onValChange:e.searchKey,onCancel:e.onCancelDataEdit},null,8,["visible","title","keyInfo","redisId","operationType","onValChange","onCancel"])])}var ll=O(ze,[["render",Ge]]);export{ll as default}; diff --git a/server/static/static/assets/DbList.1661345446364.js b/server/static/static/assets/DbList.1661345446364.js new file mode 100644 index 00000000..1dc37a72 --- /dev/null +++ b/server/static/static/assets/DbList.1661345446364.js @@ -0,0 +1,7 @@ +var re=Object.defineProperty,de=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var le=(e,o,y)=>o in e?re(e,o,{enumerable:!0,configurable:!0,writable:!0,value:y}):e[o]=y,R=(e,o)=>{for(var y in o||(o={}))me.call(o,y)&&le(e,y,o[y]);if(ee)for(var y of ee(o))be.call(o,y)&&le(e,y,o[y]);return e},Y=(e,o)=>de(e,pe(o));import{A as W,q as te,r as X,v as ue,t as Z,_ as x,E as Q,b as d,d as p,e as I,g as l,w as a,h as K,F as N,j as L,k as g,K as fe,z as q,B as b,i as M,D as H,H as ge,o as ce,c as Ee,C as G,x as O,G as oe,J as De,I as he}from"./index.1661345446364.js";import{f as ye}from"./format.1661345446364.js";import{d as $,S as ne}from"./SqlExecBox.1661345446364.js";import{p as se}from"./api.16613454463644.js";import{m as we}from"./api.16613454463643.js";import{a as ve,i as Ce}from"./assert.1661345446364.js";import{R as ae}from"./rsa.1661345446364.js";import{E as Fe}from"./Enum.1661345446364.js";import"./Api.1661345446364.js";import"./codemirror.1661345446364.js";const Ve=W({name:"DbEdit",props:{visible:{type:Boolean},projects:{type:Array},db:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:o}){const y=te(null),i=X({dialogVisible:!1,projects:[],envs:[],allDatabases:[],databaseList:[],sshTunnelMachineList:[],form:{id:null,name:null,port:3306,username:null,password:null,params:null,database:"",project:null,projectId:null,envId:null,env:null,enableSshTunnel:null,sshTunnelMachineId:null},pwd:"",btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u522B\u540D",trigger:["change","blur"]}],type:[{required:!0,message:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u7C7B\u578B",trigger:["change","blur"]}],host:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u673Aip\u548Cport",trigger:["change","blur"]}],username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:["change","blur"]}],database:[{required:!0,message:"\u8BF7\u6DFB\u52A0\u6570\u636E\u5E93",trigger:["change","blur"]}]}});ue(e,r=>{i.dialogVisible=r.visible,i.dialogVisible&&(i.projects=r.projects,r.db?(f(r.db.projectId),i.form=R({},r.db),i.databaseList=r.db.database.split(" ")):(i.envs=[],i.form={port:3306,enableSshTunnel:-1},i.databaseList=[]),T())});const k=()=>{i.form.database=i.databaseList.length==0?"":i.databaseList.join(" ")},T=async()=>{if(i.form.enableSshTunnel==1&&i.sshTunnelMachineList.length==0){const r=await we.list.request({pageNum:1,pageSize:100});i.sshTunnelMachineList=r.list}},f=async r=>{i.envs=await se.projectEnvs.request({projectId:r})},V=r=>{for(let v of i.projects)v.id==r&&(i.form.project=v.name);i.form.envId=null,i.form.env=null,i.envs=[],f(r)},h=r=>{for(let v of i.envs)v.id==r&&(i.form.env=v.name)},w=async()=>{const r=R({},i.form);r.password=await ae(r.password),i.allDatabases=await $.getAllDatabase.request(r),Q.success("\u83B7\u53D6\u6210\u529F, \u8BF7\u9009\u62E9\u9700\u8981\u7BA1\u7406\u64CD\u4F5C\u7684\u6570\u636E\u5E93")},n=async()=>{i.pwd=await $.getDbPwd.request({id:i.form.id})},B=async()=>{i.form.id||ve(i.form.password,"\u65B0\u589E\u64CD\u4F5C\uFF0C\u5BC6\u7801\u4E0D\u53EF\u4E3A\u7A7A"),y.value.validate(async r=>{if(r){const v=R({},i.form);v.password=await ae(v.password),$.saveDb.request(v).then(()=>{Q.success("\u4FDD\u5B58\u6210\u529F"),o("val-change",i.form),i.btnLoading=!0,setTimeout(()=>{i.btnLoading=!1},1e3),F()})}else return Q.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},C=()=>{i.databaseList=[],i.allDatabases=[]},F=()=>{o("update:visible",!1),o("cancel"),setTimeout(()=>{C()},500)};return Y(R({},Z(i)),{dbForm:y,getAllDatabase:w,getDbPwd:n,changeDatabase:k,getSshTunnelMachines:T,changeProject:V,changeEnv:h,btnOk:B,cancel:F})}}),Be=b(":"),qe=b("\u539F\u5BC6\u7801"),ke=b("\u83B7\u53D6\u5E93\u540D"),Ie=b(" \u673A\u5668: "),Se={class:"dialog-footer"},$e=b("\u53D6 \u6D88"),Te=b("\u786E \u5B9A");function Ne(e,o,y,i,k,T){const f=d("el-option"),V=d("el-select"),h=d("el-form-item"),w=d("el-input"),n=d("el-col"),B=d("el-link"),C=d("el-popover"),F=d("el-divider"),r=d("el-checkbox"),v=d("el-form"),A=d("el-button"),U=d("el-dialog");return p(),I("div",null,[l(U,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":o[14]||(o[14]=s=>e.dialogVisible=s),"before-close":e.cancel,"close-on-click-modal":!1,"destroy-on-close":!0,width:"38%"},{footer:a(()=>[K("div",Se,[l(A,{onClick:o[13]||(o[13]=s=>e.cancel())},{default:a(()=>[$e]),_:1}),l(A,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:a(()=>[Te]),_:1},8,["loading","onClick"])])]),default:a(()=>[l(v,{model:e.form,ref:"dbForm",rules:e.rules,"label-width":"95px"},{default:a(()=>[l(h,{prop:"projectId",label:"\u9879\u76EE:",required:""},{default:a(()=>[l(V,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":o[0]||(o[0]=s=>e.form.projectId=s),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:a(()=>[(p(!0),I(N,null,L(e.projects,s=>(p(),g(f,{key:s.id,label:`${s.name} [${s.remark}]`,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l(h,{prop:"envId",label:"\u73AF\u5883:",required:""},{default:a(()=>[l(V,{onChange:e.changeEnv,style:{width:"100%"},modelValue:e.form.envId,"onUpdate:modelValue":o[1]||(o[1]=s=>e.form.envId=s),placeholder:"\u8BF7\u9009\u62E9\u73AF\u5883"},{default:a(()=>[(p(!0),I(N,null,L(e.envs,s=>(p(),g(f,{key:s.id,label:`${s.name} [${s.remark}]`,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(h,{prop:"name",label:"\u522B\u540D:",required:""},{default:a(()=>[l(w,{modelValue:e.form.name,"onUpdate:modelValue":o[2]||(o[2]=s=>e.form.name=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u522B\u540D","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(h,{prop:"type",label:"\u7C7B\u578B:",required:""},{default:a(()=>[l(V,{style:{width:"100%"},modelValue:e.form.type,"onUpdate:modelValue":o[3]||(o[3]=s=>e.form.type=s),placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u5E93\u7C7B\u578B"},{default:a(()=>[l(f,{key:"item.id",label:"mysql",value:"mysql"}),l(f,{key:"item.id",label:"postgres",value:"postgres"})]),_:1},8,["modelValue"])]),_:1}),l(h,{prop:"host",label:"host:",required:""},{default:a(()=>[l(n,{span:18},{default:a(()=>[l(w,{modelValue:e.form.host,"onUpdate:modelValue":o[4]||(o[4]=s=>e.form.host=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u4E3B\u673Aip","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(n,{style:{"text-align":"center"},span:1},{default:a(()=>[Be]),_:1}),l(n,{span:5},{default:a(()=>[l(w,{type:"number",modelValue:e.form.port,"onUpdate:modelValue":o[5]||(o[5]=s=>e.form.port=s),modelModifiers:{number:!0},placeholder:"\u8BF7\u8F93\u5165\u7AEF\u53E3"},null,8,["modelValue"])]),_:1})]),_:1}),l(h,{prop:"username",label:"\u7528\u6237\u540D:",required:""},{default:a(()=>[l(w,{modelValue:e.form.username,"onUpdate:modelValue":o[6]||(o[6]=s=>e.form.username=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"},null,8,["modelValue"])]),_:1}),l(h,{prop:"password",label:"\u5BC6\u7801:"},{default:a(()=>[l(w,{type:"password","show-password":"",modelValue:e.form.password,"onUpdate:modelValue":o[8]||(o[8]=s=>e.form.password=s),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF0C\u4FEE\u6539\u64CD\u4F5C\u53EF\u4E0D\u586B",autocomplete:"new-password"},fe({_:2},[e.form.id&&e.form.id!=0?{name:"suffix",fn:a(()=>[l(C,{onHide:o[7]||(o[7]=s=>e.pwd=""),placement:"right",title:"\u539F\u5BC6\u7801",width:200,trigger:"click",content:e.pwd},{reference:a(()=>[l(B,{onClick:e.getDbPwd,underline:!1,type:"primary",class:"mr5"},{default:a(()=>[qe]),_:1},8,["onClick"])]),_:1},8,["content"])])}:void 0]),1032,["modelValue"])]),_:1}),l(h,{prop:"params",label:"\u8FDE\u63A5\u53C2\u6570:"},{default:a(()=>[l(w,{modelValue:e.form.params,"onUpdate:modelValue":o[9]||(o[9]=s=>e.form.params=s),placeholder:"\u5176\u4ED6\u8FDE\u63A5\u53C2\u6570\uFF0C\u5F62\u5982: key1=value1&key2=value2"},null,8,["modelValue"])]),_:1}),l(h,{prop:"database",label:"\u6570\u636E\u5E93\u540D:",required:""},{default:a(()=>[l(n,{span:19},{default:a(()=>[l(V,{onChange:e.changeDatabase,modelValue:e.databaseList,"onUpdate:modelValue":o[10]||(o[10]=s=>e.databaseList=s),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",filterable:"","allow-create":"",placeholder:"\u8BF7\u786E\u4FDD\u6570\u636E\u5E93\u5B9E\u4F8B\u4FE1\u606F\u586B\u5199\u5B8C\u6574\u540E\u83B7\u53D6\u5E93\u540D",style:{width:"100%"}},{default:a(()=>[(p(!0),I(N,null,L(e.allDatabases,s=>(p(),g(f,{key:s,label:s,value:s},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(n,{style:{"text-align":"center"},span:1},{default:a(()=>[l(F,{direction:"vertical","border-style":"dashed"})]),_:1}),l(n,{span:4},{default:a(()=>[l(B,{onClick:e.getAllDatabase,underline:!1,type:"success"},{default:a(()=>[ke]),_:1},8,["onClick"])]),_:1})]),_:1}),l(h,{prop:"enableSshTunnel",label:"SSH\u96A7\u9053:"},{default:a(()=>[l(n,{span:3},{default:a(()=>[l(r,{onChange:e.getSshTunnelMachines,modelValue:e.form.enableSshTunnel,"onUpdate:modelValue":o[11]||(o[11]=s=>e.form.enableSshTunnel=s),"true-label":1,"false-label":-1},null,8,["onChange","modelValue"])]),_:1}),e.form.enableSshTunnel==1?(p(),g(n,{key:0,span:2},{default:a(()=>[Ie]),_:1})):q("",!0),e.form.enableSshTunnel==1?(p(),g(n,{key:1,span:19},{default:a(()=>[l(V,{style:{width:"100%"},modelValue:e.form.sshTunnelMachineId,"onUpdate:modelValue":o[12]||(o[12]=s=>e.form.sshTunnelMachineId=s),placeholder:"\u8BF7\u9009\u62E9SSH\u96A7\u9053\u673A\u5668"},{default:a(()=>[(p(!0),I(N,null,L(e.sshTunnelMachineList,s=>(p(),g(f,{key:s.id,label:`${s.ip}:${s.port} [${s.name}]`,value:s.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):q("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var Le=x(Ve,[["render",Ne]]);const Ae=["bigint","binary","blob","char","datetime","decimal","double","enum","float","int","json","longblob","longtext","mediumblob","mediumtext","set","smallint","text","time","timestamp","tinyint","varbinary","varchar"],_e=["armscii8","ascii","big5","binary","cp1250","cp1251","cp1256","cp1257","cp850","cp852","cp866","cp932","dec8","eucjpms","euckr","gb18030","gb2312","gbk","geostd8","greek","hebrew","hp8","keybcs2","koi8r","koi8u","latin1","latin2","latin5","latin7","macce","macroman","sjis","swe7","tis620","ucs2","ujis","utf16","utf16le","utf32","utf8","utf8mb4"],Ue=W({name:"createTable",props:{visible:{type:Boolean},title:{type:String},data:{type:Object},dbId:{type:Number},db:{type:String}},setup(e,{emit:o}){const y=te(),{proxy:i}=ge(),k=X({dialogVisible:!1,btnloading:!1,activeName:"1",typeList:Ae,characterSetNameList:_e,tableData:{fields:{colNames:[{prop:"name",label:"\u5B57\u6BB5\u540D\u79F0"},{prop:"type",label:"\u5B57\u6BB5\u7C7B\u578B"},{prop:"length",label:"\u957F\u5EA6"},{prop:"value",label:"\u9ED8\u8BA4\u503C"},{prop:"notNull",label:"\u975E\u7A7A"},{prop:"pri",label:"\u4E3B\u952E"},{prop:"auto_increment",label:"\u81EA\u589E"},{prop:"remark",label:"\u5907\u6CE8"},{prop:"action",label:"\u64CD\u4F5C"}],res:[{name:"",type:"",value:"",length:"",notNull:!1,pri:!1,auto_increment:!1,remark:""}]},characterSet:"utf8mb4",tableName:"",tableComment:""}});ue(e,async n=>{k.dialogVisible=n.visible});const T=()=>{o("update:visible",!1),w()},f=()=>{k.tableData.fields.res.push({name:"",type:"",value:"",length:"",notNull:!1,pri:!1,auto_increment:!1,remark:""})},V=n=>{k.tableData.fields.res.splice(n,1)},h=async()=>{let n=k.tableData,B="",C=[];n.fields.res.forEach(r=>{C.push(`${r.name} ${r.type}${+r.length>0?`(${r.length})`:""} ${r.notNull?"NOT NULL":""} ${r.auto_increment?"AUTO_INCREMENT":""} ${r.value?"DEFAULT "+r.value:r.notNull?"":"DEFAULT NULL"} ${r.remark?`COMMENT '${r.remark}'`:""} +`),r.pri&&(B+=`${r.name},`)});let F=` + CREATE TABLE ${n.tableName} ( + ${C.join(",")} + ${B?`, PRIMARY KEY (${B.slice(0,-1)})`:""} + ) ENGINE=InnoDB DEFAULT CHARSET=${n.characterSet} COLLATE=utf8mb4_bin COMMENT='${n.tableComment}';`;ne({sql:F,dbId:e.dbId,db:e.db,runSuccessCallback:()=>{Q.success("\u521B\u5EFA\u6210\u529F"),i.$parent.tableInfo({id:e.dbId}),T()}})},w=()=>{y.value.resetFields(),k.tableData.fields.res=[{name:"",type:"",value:"",length:"",notNull:!1,pri:!1,auto_increment:!1,remark:""}]};return Y(R({},Z(k)),{formRef:y,cancel:T,reset:w,addRow:f,deleteRow:V,submit:h})}}),ze=b("\u5220\u9664"),je=b("\u4FDD\u5B58");function Re(e,o,y,i,k,T){const f=d("el-input"),V=d("el-form-item"),h=d("el-col"),w=d("el-option"),n=d("el-select"),B=d("el-row"),C=d("el-checkbox"),F=d("el-button"),r=d("el-table-column"),v=d("el-table"),A=d("el-tab-pane"),U=d("el-tabs"),s=d("el-form"),P=d("el-dialog");return p(),I("div",null,[l(P,{title:"\u521B\u5EFA\u8868",modelValue:e.dialogVisible,"onUpdate:modelValue":o[6]||(o[6]=m=>e.dialogVisible=m),"before-close":e.cancel,width:"90%"},{footer:a(()=>[l(F,{loading:e.btnloading,onClick:o[5]||(o[5]=m=>e.submit()),type:"primary"},{default:a(()=>[je]),_:1},8,["loading"])]),default:a(()=>[l(s,{"label-position":"left",ref:"formRef",model:e.tableData,"label-width":"80px"},{default:a(()=>[l(B,null,{default:a(()=>[l(h,{span:12},{default:a(()=>[l(V,{prop:"tableName",label:"\u8868\u540D"},{default:a(()=>[l(f,{style:{width:"80%"},modelValue:e.tableData.tableName,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tableData.tableName=m),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),l(h,{span:12},{default:a(()=>[l(V,{prop:"tableComment",label:"\u5907\u6CE8"},{default:a(()=>[l(f,{style:{width:"80%"},modelValue:e.tableData.tableComment,"onUpdate:modelValue":o[1]||(o[1]=m=>e.tableData.tableComment=m),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),l(h,{style:{"margin-top":"20px"},span:12},{default:a(()=>[l(V,{prop:"characterSet",label:"\u5B57\u7B26\u96C6"},{default:a(()=>[l(n,{filterable:"",style:{width:"80%"},modelValue:e.tableData.characterSet,"onUpdate:modelValue":o[2]||(o[2]=m=>e.tableData.characterSet=m),size:"small"},{default:a(()=>[(p(!0),I(N,null,L(e.characterSetNameList,m=>(p(),g(w,{key:m,label:m,value:m},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(U,{modelValue:e.activeName,"onUpdate:modelValue":o[4]||(o[4]=m=>e.activeName=m)},{default:a(()=>[l(A,{label:"\u5B57\u6BB5",name:"1"},{default:a(()=>[l(v,{data:e.tableData.fields.res},{default:a(()=>[(p(!0),I(N,null,L(e.tableData.fields.colNames,m=>(p(),g(r,{prop:m.prop,label:m.label,key:m.prop},{default:a(E=>[m.prop==="name"?(p(),g(f,{key:0,size:"small",modelValue:E.row.name,"onUpdate:modelValue":u=>E.row.name=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="type"?(p(),g(n,{key:1,filterable:"",size:"small",modelValue:E.row.type,"onUpdate:modelValue":u=>E.row.type=u},{default:a(()=>[(p(!0),I(N,null,L(e.typeList,u=>(p(),g(w,{key:u,value:u},{default:a(()=>[b(M(u),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="value"?(p(),g(f,{key:2,size:"small",modelValue:E.row.value,"onUpdate:modelValue":u=>E.row.value=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="length"?(p(),g(f,{key:3,size:"small",modelValue:E.row.length,"onUpdate:modelValue":u=>E.row.length=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="notNull"?(p(),g(C,{key:4,size:"small",modelValue:E.row.notNull,"onUpdate:modelValue":u=>E.row.notNull=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="pri"?(p(),g(C,{key:5,size:"small",modelValue:E.row.pri,"onUpdate:modelValue":u=>E.row.pri=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="auto_increment"?(p(),g(C,{key:6,size:"small",modelValue:E.row.auto_increment,"onUpdate:modelValue":u=>E.row.auto_increment=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="remark"?(p(),g(f,{key:7,size:"small",modelValue:E.row.remark,"onUpdate:modelValue":u=>E.row.remark=u},null,8,["modelValue","onUpdate:modelValue"])):q("",!0),m.prop==="action"?(p(),g(F,{key:8,type:"text",size:"small",onClick:H(u=>e.deleteRow(E.$index),["prevent"])},{default:a(()=>[ze]),_:2},1032,["onClick"])):q("",!0)]),_:2},1032,["prop","label"]))),128))]),_:1},8,["data"]),l(B,{style:{"margin-top":"20px"}},{default:a(()=>[l(F,{onClick:o[3]||(o[3]=m=>e.addRow()),type:"text",icon:"plus"})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["model"])]),_:1},8,["modelValue","before-close"])])}var Me=x(Ue,[["render",Re]]),J={DbSqlExecTypeEnum:new Fe().add("UPDATE","UPDATE",1).add("DELETE","DELETE",2).add("INSERT","INSERT",3)};const Pe=W({name:"DbList",components:{DbEdit:Le,CreateTable:Me},setup(){const e=X({dbId:0,db:"",permissions:{saveDb:"db:save",delDb:"db:del"},projects:[],chooseId:null,chooseData:null,query:{pageNum:1,pageSize:10},datas:[],total:0,showDumpInfo:!1,dumpInfo:{id:0,db:"",type:3,tables:[]},sqlExecLogDialog:{title:"",visible:!1,data:[],total:0,query:{dbId:0,db:"",table:"",type:null,pageNum:1,pageSize:12}},rollbackSqlDialog:{visible:!1,sql:""},chooseTableName:"",tableInfoDialog:{loading:!1,visible:!1,infos:[],tableNameSearch:"",tableCommentSearch:""},columnDialog:{visible:!1,columns:[]},indexDialog:{visible:!1,indexs:[]},ddlDialog:{visible:!1,ddl:""},dbEditDialog:{visible:!1,data:null,title:"\u65B0\u589E\u6570\u636E\u5E93"},tableCreateDialog:{visible:!1}});ce(async()=>{i()});const o=Ee(()=>{const u=e.tableInfoDialog.infos,c=e.tableInfoDialog.tableNameSearch,S=e.tableInfoDialog.tableCommentSearch;return!c&&!S?u:u.filter(z=>{let _=!0,t=!0;return c&&(_=z.tableName.toLowerCase().includes(c.toLowerCase())),S&&(t=z.tableComment.includes(S)),_&&t})}),y=u=>{!u||(e.chooseId=u.id,e.chooseData=u)},i=async()=>{let u=await $.dbs.request(e.query);u.list.forEach(c=>{c.popoverSelectDbVisible=!1,c.dbs=c.database.split(" ")}),e.datas=u.list,e.total=u.total},k=u=>{e.query.pageNum=u,i()},T=async(u=!1)=>{e.projects=await se.accountProjects.request(null),u?(e.dbEditDialog.data=null,e.dbEditDialog.title="\u65B0\u589E\u6570\u636E\u5E93\u8D44\u6E90"):(e.dbEditDialog.data=e.chooseData,e.dbEditDialog.title="\u4FEE\u6539\u6570\u636E\u5E93\u8D44\u6E90"),e.dbEditDialog.visible=!0},f=()=>{e.chooseData=null,e.chooseId=null,i()},V=async u=>{try{await oe.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u5E93?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await $.deleteDb.request({id:u}),Q.success("\u5220\u9664\u6210\u529F"),e.chooseData=null,e.chooseId=null,i()}catch{}},h=async u=>{e.sqlExecLogDialog.title=`${u.name}[${u.host}:${u.port}]`,e.sqlExecLogDialog.query.dbId=u.id,n(),e.sqlExecLogDialog.visible=!0},w=()=>{e.sqlExecLogDialog.visible=!1,e.sqlExecLogDialog.data=[],e.sqlExecLogDialog.total=0,e.sqlExecLogDialog.query.dbId=0,e.sqlExecLogDialog.query.pageNum=1,e.sqlExecLogDialog.query.table="",e.sqlExecLogDialog.query.db="",e.sqlExecLogDialog.query.type=null},n=async()=>{const u=await $.getSqlExecs.request(e.sqlExecLogDialog.query);e.sqlExecLogDialog.data=u.list,e.sqlExecLogDialog.total=u.total},B=u=>{e.sqlExecLogDialog.query.pageNum=u,n()},C=u=>{e.dumpInfo.tables=u.map(c=>c.tableName)},F=u=>{Ce(e.dumpInfo.tables.length>0,"\u8BF7\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u8868");const c=document.createElement("a");c.setAttribute("href",`${De.baseApiUrl}/dbs/${e.dbId}/dump?db=${u}&type=${e.dumpInfo.type}&tables=${e.dumpInfo.tables.join(",")}&token=${he("token")}`),c.click(),e.showDumpInfo=!1},r=async u=>{const c=await $.columnMetadata.request({id:u.dbId,db:u.db,tableName:u.table}),S=c[0].columnName,z=JSON.parse(u.oldValue),_=[];if(u.type==J.DbSqlExecTypeEnum.UPDATE.value)for(let t of z){const D=[];for(let j in t)j!=S&&D.push(`${j} = ${v(t[j])}`);_.push(`UPDATE ${u.table} SET ${D.join(", ")} WHERE ${S} = ${v(t[S])};`)}else if(u.type==J.DbSqlExecTypeEnum.DELETE.value){const t=c.map(D=>D.columnName);for(let D of z){const j=[];for(let ie of t)j.push(v(D[ie]));_.push(`INSERT INTO ${u.table} (${t.join(", ")}) VALUES (${j.join(", ")});`)}}e.rollbackSqlDialog.sql=_.join(` +`),e.rollbackSqlDialog.visible=!0},v=u=>typeof u=="number"?u:`'${u}'`,A=async(u,c)=>{e.tableInfoDialog.loading=!0,e.tableInfoDialog.visible=!0;try{e.tableInfoDialog.infos=await $.tableInfos.request({id:u.id,db:c}),e.dbId=u.id,e.db=c}catch{e.tableInfoDialog.visible=!1}finally{e.tableInfoDialog.loading=!1}},U=()=>{e.showDumpInfo=!1,e.tableInfoDialog.visible=!1,e.tableInfoDialog.infos=[]},s=async u=>{e.chooseTableName=u.tableName,e.columnDialog.columns=await $.columnMetadata.request({id:e.chooseId,db:e.db,tableName:u.tableName}),e.columnDialog.visible=!0},P=async u=>{e.chooseTableName=u.tableName,e.indexDialog.indexs=await $.tableIndex.request({id:e.chooseId,db:e.db,tableName:u.tableName}),e.indexDialog.visible=!0},m=async u=>{e.chooseTableName=u.tableName;const c=await $.tableDdl.request({id:e.chooseId,db:e.db,tableName:u.tableName});e.ddlDialog.ddl=c[0]["Create Table"],e.ddlDialog.visible=!0},E=async u=>{try{const c=u.tableName;await oe.confirm(`\u786E\u5B9A\u5220\u9664'${c}'\u8868?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),ne({sql:`DROP TABLE ${c}`,dbId:e.chooseId,db:e.db,runSuccessCallback:async()=>{e.tableInfoDialog.infos=await $.tableInfos.request({id:e.chooseId,db:e.db})}})}catch{}};return Y(R({},Z(e)),{filterTableInfos:o,enums:J,search:i,choose:y,handlePageChange:k,editDb:T,valChange:f,deleteDb:V,onShowSqlExec:h,handleDumpTableSelectionChange:C,dump:F,onBeforeCloseSqlExecDialog:w,handleSqlExecPageChange:B,searchSqlExecLog:n,onShowRollbackSql:r,showTableInfo:A,closeTableInfo:U,showColumns:s,showTableIndex:P,showCreateDdl:m,dropTable:E,formatByteSize:ye})}}),Oe={class:"db-list"},He=b("\u6DFB\u52A0"),Qe=b("\u7F16\u8F91"),Ke=b("\u5220\u9664"),Ye={style:{float:"right"}},Ge=b("\u67E5\u8BE2"),Je=K("i",null,null,-1),We=b("SQL\u6267\u884C\u8BB0\u5F55"),Xe=b("\u5BFC\u51FA"),Ze=b("\u7ED3\u6784"),xe=b("\u6570\u636E"),el=b("\u7ED3\u6784\uFF0B\u6570\u636E"),ll={style:{"text-align":"right"}},ol=b("\u53D6\u6D88"),al=b("\u786E\u5B9A"),tl=b("\u521B\u5EFA\u8868"),ul=b("\u5B57\u6BB5"),nl=b("\u7D22\u5F15"),sl=b("SQL"),il=b("\u5220\u9664"),rl={class:"toolbar"},dl=b("UPDATE"),pl=b("DELETE"),ml=b("INSERT"),bl=b("\u8FD8\u539FSQL");function fl(e,o,y,i,k,T){const f=d("el-button"),V=d("el-option"),h=d("el-select"),w=d("el-radio"),n=d("el-table-column"),B=d("el-tag"),C=d("el-link"),F=d("el-table"),r=d("el-pagination"),v=d("el-row"),A=d("el-card"),U=d("el-radio-group"),s=d("el-form-item"),P=d("el-popover"),m=d("el-input"),E=d("el-dialog"),u=d("db-edit"),c=d("create-table"),S=G("auth"),z=G("waves"),_=G("loading");return p(),I("div",Oe,[l(A,null,{default:a(()=>[O((p(),g(f,{type:"primary",icon:"plus",onClick:o[0]||(o[0]=t=>e.editDb(!0))},{default:a(()=>[He]),_:1})),[[S,e.permissions.saveDb]]),O((p(),g(f,{disabled:e.chooseId==null,onClick:o[1]||(o[1]=t=>e.editDb(!1)),type:"primary",icon:"edit"},{default:a(()=>[Qe]),_:1},8,["disabled"])),[[S,e.permissions.saveDb]]),O((p(),g(f,{disabled:e.chooseId==null,onClick:o[2]||(o[2]=t=>e.deleteDb(e.chooseId)),type:"danger",icon:"delete"},{default:a(()=>[Ke]),_:1},8,["disabled"])),[[S,e.permissions.delDb]]),K("div",Ye,[l(h,{modelValue:e.query.projectId,"onUpdate:modelValue":o[3]||(o[3]=t=>e.query.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",filterable:"",clearable:""},{default:a(()=>[(p(!0),I(N,null,L(e.projects,t=>(p(),g(V,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),O((p(),g(f,{type:"primary",icon:"search",onClick:o[4]||(o[4]=t=>e.search()),class:"ml5"},{default:a(()=>[Ge]),_:1})),[[z]])]),l(F,{data:e.datas,ref:"table",onCurrentChange:e.choose,"show-overflow-tooltip":"",stripe:""},{default:a(()=>[l(n,{label:"\u9009\u62E9",width:"60px"},{default:a(t=>[l(w,{modelValue:e.chooseId,"onUpdate:modelValue":o[5]||(o[5]=D=>e.chooseId=D),label:t.row.id},{default:a(()=>[Je]),_:2},1032,["modelValue","label"])]),_:1}),l(n,{prop:"project",label:"\u9879\u76EE","min-width":"100","show-overflow-tooltip":""}),l(n,{prop:"env",label:"\u73AF\u5883","min-width":"100"}),l(n,{prop:"name",label:"\u540D\u79F0","min-width":"160","show-overflow-tooltip":""}),l(n,{"min-width":"170",label:"host:port","show-overflow-tooltip":""},{default:a(t=>[b(M(`${t.row.host}:${t.row.port}`),1)]),_:1}),l(n,{prop:"type",label:"\u7C7B\u578B","min-width":"90"}),l(n,{prop:"database",label:"\u6570\u636E\u5E93","min-width":"160"},{default:a(t=>[(p(!0),I(N,null,L(t.row.dbs,D=>(p(),g(B,{onClick:j=>e.showTableInfo(t.row,D),effect:"plain",type:"success",size:"small",key:D,style:{cursor:"pointer","margin-left":"3px"}},{default:a(()=>[b(M(D),1)]),_:2},1032,["onClick"]))),128))]),_:1}),l(n,{prop:"username",label:"\u7528\u6237\u540D","min-width":"100"}),l(n,{"min-width":"115",prop:"creator",label:"\u521B\u5EFA\u8D26\u53F7"}),l(n,{"min-width":"160",prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","show-overflow-tooltip":""},{default:a(t=>[b(M(e.$filters.dateFormat(t.row.createTime)),1)]),_:1}),l(n,{label:"\u64CD\u4F5C","min-width":"120",fixed:"right"},{default:a(t=>[l(C,{type:"primary",plain:"",size:"small",underline:!1,onClick:D=>e.onShowSqlExec(t.row)},{default:a(()=>[We]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),l(v,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(r,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":o[6]||(o[6]=t=>e.query.pageNum=t),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),l(E,{width:"75%",title:`${e.db} \u8868\u4FE1\u606F`,"before-close":e.closeTableInfo,modelValue:e.tableInfoDialog.visible,"onUpdate:modelValue":o[15]||(o[15]=t=>e.tableInfoDialog.visible=t)},{default:a(()=>[l(v,{class:"mb10"},{default:a(()=>[l(P,{visible:e.showDumpInfo,"onUpdate:visible":o[11]||(o[11]=t=>e.showDumpInfo=t),width:470,placement:"right"},{reference:a(()=>[l(f,{class:"ml5",type:"success",size:"small",onClick:o[7]||(o[7]=t=>e.showDumpInfo=!e.showDumpInfo)},{default:a(()=>[Xe]),_:1})]),default:a(()=>[l(s,{label:"\u5BFC\u51FA\u5185\u5BB9: "},{default:a(()=>[l(U,{modelValue:e.dumpInfo.type,"onUpdate:modelValue":o[8]||(o[8]=t=>e.dumpInfo.type=t)},{default:a(()=>[l(w,{label:1,size:"small"},{default:a(()=>[Ze]),_:1}),l(w,{label:2,size:"small"},{default:a(()=>[xe]),_:1}),l(w,{label:3,size:"small"},{default:a(()=>[el]),_:1})]),_:1},8,["modelValue"])]),_:1}),l(s,{label:"\u5BFC\u51FA\u8868: "},{default:a(()=>[l(F,{onSelectionChange:e.handleDumpTableSelectionChange,"max-height":"300",size:"small",data:e.tableInfoDialog.infos},{default:a(()=>[l(n,{type:"selection",width:"45"}),l(n,{property:"tableName",label:"\u8868\u540D","min-width":"150","show-overflow-tooltip":""}),l(n,{property:"tableComment",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""})]),_:1},8,["onSelectionChange","data"])]),_:1}),K("div",ll,[l(f,{onClick:o[9]||(o[9]=t=>e.showDumpInfo=!1),size:"small"},{default:a(()=>[ol]),_:1}),l(f,{onClick:o[10]||(o[10]=t=>e.dump(e.db)),type:"success",size:"small"},{default:a(()=>[al]),_:1})])]),_:1},8,["visible"]),l(f,{type:"primary",size:"small",onClick:o[12]||(o[12]=t=>e.tableCreateDialog.visible=!0)},{default:a(()=>[tl]),_:1})]),_:1}),O((p(),g(F,{border:"",stripe:"",data:e.filterTableInfos,size:"small"},{default:a(()=>[l(n,{property:"tableName",label:"\u8868\u540D","min-width":"150","show-overflow-tooltip":""},{header:a(()=>[l(m,{modelValue:e.tableInfoDialog.tableNameSearch,"onUpdate:modelValue":o[13]||(o[13]=t=>e.tableInfoDialog.tableNameSearch=t),size:"small",placeholder:"\u8868\u540D: \u8F93\u5165\u53EF\u8FC7\u6EE4",clearable:""},null,8,["modelValue"])]),_:1}),l(n,{property:"tableComment",label:"\u5907\u6CE8","min-width":"150","show-overflow-tooltip":""},{header:a(()=>[l(m,{modelValue:e.tableInfoDialog.tableCommentSearch,"onUpdate:modelValue":o[14]||(o[14]=t=>e.tableInfoDialog.tableCommentSearch=t),size:"small",placeholder:"\u5907\u6CE8: \u8F93\u5165\u53EF\u8FC7\u6EE4",clearable:""},null,8,["modelValue"])]),_:1}),l(n,{prop:"tableRows",label:"Rows","min-width":"70",sortable:"","sort-method":(t,D)=>parseInt(t.tableRows)-parseInt(D.tableRows)},null,8,["sort-method"]),l(n,{property:"dataLength",label:"\u6570\u636E\u5927\u5C0F",sortable:"","sort-method":(t,D)=>parseInt(t.dataLength)-parseInt(D.dataLength)},{default:a(t=>[b(M(e.formatByteSize(t.row.dataLength)),1)]),_:1},8,["sort-method"]),l(n,{property:"indexLength",label:"\u7D22\u5F15\u5927\u5C0F",sortable:"","sort-method":(t,D)=>parseInt(t.indexLength)-parseInt(D.indexLength)},{default:a(t=>[b(M(e.formatByteSize(t.row.indexLength)),1)]),_:1},8,["sort-method"]),l(n,{property:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"}),l(n,{label:"\u66F4\u591A\u4FE1\u606F","min-width":"100"},{default:a(t=>[l(C,{onClick:H(D=>e.showColumns(t.row),["prevent"]),type:"primary"},{default:a(()=>[ul]),_:2},1032,["onClick"]),l(C,{class:"ml5",onClick:H(D=>e.showTableIndex(t.row),["prevent"]),type:"success"},{default:a(()=>[nl]),_:2},1032,["onClick"]),l(C,{class:"ml5",onClick:H(D=>e.showCreateDdl(t.row),["prevent"]),type:"info"},{default:a(()=>[sl]),_:2},1032,["onClick"])]),_:1}),l(n,{label:"\u64CD\u4F5C","min-width":"80"},{default:a(t=>[l(C,{onClick:H(D=>e.dropTable(t.row),["prevent"]),type:"danger"},{default:a(()=>[il]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[_,e.tableInfoDialog.loading]])]),_:1},8,["title","before-close","modelValue"]),l(E,{width:"90%",title:`${e.sqlExecLogDialog.title} - SQL\u6267\u884C\u8BB0\u5F55`,"before-close":e.onBeforeCloseSqlExecDialog,modelValue:e.sqlExecLogDialog.visible,"onUpdate:modelValue":o[20]||(o[20]=t=>e.sqlExecLogDialog.visible=t)},{default:a(()=>[K("div",rl,[l(m,{modelValue:e.sqlExecLogDialog.query.db,"onUpdate:modelValue":o[16]||(o[16]=t=>e.sqlExecLogDialog.query.db=t),placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u540D",clearable:"",style:{width:"150px"}},null,8,["modelValue"]),l(m,{modelValue:e.sqlExecLogDialog.query.table,"onUpdate:modelValue":o[17]||(o[17]=t=>e.sqlExecLogDialog.query.table=t),placeholder:"\u8BF7\u8F93\u5165\u8868\u540D",clearable:"",class:"ml5",style:{width:"150px"}},null,8,["modelValue"]),l(h,{modelValue:e.sqlExecLogDialog.query.type,"onUpdate:modelValue":o[18]||(o[18]=t=>e.sqlExecLogDialog.query.type=t),placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7C7B\u578B",clearable:"",class:"ml5"},{default:a(()=>[(p(!0),I(N,null,L(e.enums.DbSqlExecTypeEnum,t=>(p(),g(V,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l(f,{class:"ml5",onClick:e.searchSqlExecLog,type:"success",icon:"search"},null,8,["onClick"])]),l(F,{border:"",stripe:"",data:e.sqlExecLogDialog.data,size:"small"},{default:a(()=>[l(n,{prop:"db",label:"\u6570\u636E\u5E93","min-width":"60","show-overflow-tooltip":""}),l(n,{prop:"table",label:"\u8868","min-width":"60","show-overflow-tooltip":""}),l(n,{prop:"type",label:"\u7C7B\u578B",width:"85","show-overflow-tooltip":""},{default:a(t=>[t.row.type==e.enums.DbSqlExecTypeEnum.UPDATE.value?(p(),g(B,{key:0,color:"#E4F5EB",size:"small"},{default:a(()=>[dl]),_:1})):q("",!0),t.row.type==e.enums.DbSqlExecTypeEnum.DELETE.value?(p(),g(B,{key:1,color:"#F9E2AE",size:"small"},{default:a(()=>[pl]),_:1})):q("",!0),t.row.type==e.enums.DbSqlExecTypeEnum.INSERT.value?(p(),g(B,{key:2,color:"#A8DEE0",size:"small"},{default:a(()=>[ml]),_:1})):q("",!0)]),_:1}),l(n,{prop:"sql",label:"SQL","min-width":"230","show-overflow-tooltip":""}),l(n,{prop:"oldValue",label:"\u539F\u503C","min-width":"150","show-overflow-tooltip":""}),l(n,{prop:"creator",label:"\u6267\u884C\u4EBA","min-width":"60","show-overflow-tooltip":""}),l(n,{prop:"createTime",label:"\u6267\u884C\u65F6\u95F4","show-overflow-tooltip":""},{default:a(t=>[b(M(e.$filters.dateFormat(t.row.createTime)),1)]),_:1}),l(n,{prop:"remark",label:"\u5907\u6CE8","min-width":"60","show-overflow-tooltip":""}),l(n,{label:"\u64CD\u4F5C","min-width":"50",fixed:"right"},{default:a(t=>[t.row.type==e.enums.DbSqlExecTypeEnum.UPDATE.value||t.row.type==e.enums.DbSqlExecTypeEnum.DELETE.value?(p(),g(C,{key:0,type:"primary",plain:"",size:"small",underline:!1,onClick:D=>e.onShowRollbackSql(t.row)},{default:a(()=>[bl]),_:2},1032,["onClick"])):q("",!0)]),_:1})]),_:1},8,["data"]),l(v,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(r,{style:{"text-align":"right"},onCurrentChange:e.handleSqlExecPageChange,total:e.sqlExecLogDialog.total,layout:"prev, pager, next, total, jumper","current-page":e.sqlExecLogDialog.query.pageNum,"onUpdate:current-page":o[19]||(o[19]=t=>e.sqlExecLogDialog.query.pageNum=t),"page-size":e.sqlExecLogDialog.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1},8,["title","before-close","modelValue"]),l(E,{width:"55%",title:"\u8FD8\u539FSQL",modelValue:e.rollbackSqlDialog.visible,"onUpdate:modelValue":o[22]||(o[22]=t=>e.rollbackSqlDialog.visible=t)},{default:a(()=>[l(m,{type:"textarea",autosize:{minRows:15,maxRows:30},modelValue:e.rollbackSqlDialog.sql,"onUpdate:modelValue":o[21]||(o[21]=t=>e.rollbackSqlDialog.sql=t),size:"small"},null,8,["modelValue"])]),_:1},8,["modelValue"]),l(E,{width:"40%",title:`${e.chooseTableName} \u5B57\u6BB5\u4FE1\u606F`,modelValue:e.columnDialog.visible,"onUpdate:modelValue":o[23]||(o[23]=t=>e.columnDialog.visible=t)},{default:a(()=>[l(F,{border:"",stripe:"",data:e.columnDialog.columns,size:"small"},{default:a(()=>[l(n,{prop:"columnName",label:"\u540D\u79F0","show-overflow-tooltip":""}),l(n,{width:"120",prop:"columnType",label:"\u7C7B\u578B","show-overflow-tooltip":""}),l(n,{width:"80",prop:"nullable",label:"\u662F\u5426\u53EF\u4E3A\u7A7A","show-overflow-tooltip":""}),l(n,{prop:"columnComment",label:"\u5907\u6CE8","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1},8,["title","modelValue"]),l(E,{width:"40%",title:`${e.chooseTableName} \u7D22\u5F15\u4FE1\u606F`,modelValue:e.indexDialog.visible,"onUpdate:modelValue":o[24]||(o[24]=t=>e.indexDialog.visible=t)},{default:a(()=>[l(F,{border:"",stripe:"",data:e.indexDialog.indexs,size:"small"},{default:a(()=>[l(n,{prop:"indexName",label:"\u7D22\u5F15\u540D","show-overflow-tooltip":""}),l(n,{prop:"columnName",label:"\u5217\u540D","show-overflow-tooltip":""}),l(n,{prop:"seqInIndex",label:"\u5217\u5E8F\u5217\u53F7","show-overflow-tooltip":""}),l(n,{prop:"indexType",label:"\u7C7B\u578B"}),l(n,{prop:"indexComment",label:"\u5907\u6CE8","min-width":"230","show-overflow-tooltip":""})]),_:1},8,["data"])]),_:1},8,["title","modelValue"]),l(E,{width:"55%",title:`${e.chooseTableName} Create-DDL`,modelValue:e.ddlDialog.visible,"onUpdate:modelValue":o[26]||(o[26]=t=>e.ddlDialog.visible=t)},{default:a(()=>[l(m,{disabled:"",type:"textarea",autosize:{minRows:15,maxRows:30},modelValue:e.ddlDialog.ddl,"onUpdate:modelValue":o[25]||(o[25]=t=>e.ddlDialog.ddl=t),size:"small"},null,8,["modelValue"])]),_:1},8,["title","modelValue"]),l(u,{onValChange:e.valChange,projects:e.projects,title:e.dbEditDialog.title,visible:e.dbEditDialog.visible,"onUpdate:visible":o[27]||(o[27]=t=>e.dbEditDialog.visible=t),db:e.dbEditDialog.data,"onUpdate:db":o[28]||(o[28]=t=>e.dbEditDialog.data=t)},null,8,["onValChange","projects","title","visible","db"]),l(c,{dbId:e.dbId,visible:e.tableCreateDialog.visible,"onUpdate:visible":o[29]||(o[29]=t=>e.tableCreateDialog.visible=t)},null,8,["dbId","visible"])])}var Bl=x(Pe,[["render",fl]]);export{Bl as default}; diff --git a/server/static/static/assets/Enum.1661345446364.js b/server/static/static/assets/Enum.1661345446364.js new file mode 100644 index 00000000..f24854c8 --- /dev/null +++ b/server/static/static/assets/Enum.1661345446364.js @@ -0,0 +1 @@ +class n{add(t,e,r){return this[t]={label:e,value:r},this}getLabelByValue(t){if(t==null)return"";for(const e in this){const r=this[e];if(r&&r.value===t)return r.label}return""}}export{n as E}; diff --git a/server/static/static/assets/JetBrainsMono-Regular.1661345446364.woff b/server/static/static/assets/JetBrainsMono-Regular.1661345446364.woff new file mode 100644 index 00000000..dc1d85f5 Binary files /dev/null and b/server/static/static/assets/JetBrainsMono-Regular.1661345446364.woff differ diff --git a/server/static/static/assets/MongoDataOp.1661345446364.css b/server/static/static/assets/MongoDataOp.1661345446364.css new file mode 100644 index 00000000..4c098eab --- /dev/null +++ b/server/static/static/assets/MongoDataOp.1661345446364.css @@ -0,0 +1,6 @@ +.jsoneditor input,.jsoneditor input:not([type]),.jsoneditor input[type=search],.jsoneditor input[type=text],.jsoneditor-modal input,.jsoneditor-modal input:not([type]),.jsoneditor-modal input[type=search],.jsoneditor-modal input[type=text]{height:auto;border:inherit;box-shadow:none;font-size:inherit;box-sizing:inherit;padding:inherit;font-family:inherit;transition:none;line-height:inherit}.jsoneditor input:focus,.jsoneditor input:not([type]):focus,.jsoneditor input[type=search]:focus,.jsoneditor input[type=text]:focus,.jsoneditor-modal input:focus,.jsoneditor-modal input:not([type]):focus,.jsoneditor-modal input[type=search]:focus,.jsoneditor-modal input[type=text]:focus{border:inherit;box-shadow:inherit}.jsoneditor textarea,.jsoneditor-modal textarea{height:inherit}.jsoneditor select,.jsoneditor-modal select{display:inherit;height:inherit}.jsoneditor label,.jsoneditor-modal label{font-size:inherit;font-weight:inherit;color:inherit}.jsoneditor table,.jsoneditor-modal table{border-collapse:collapse;width:auto}.jsoneditor td,.jsoneditor th,.jsoneditor-modal td,.jsoneditor-modal th{padding:0;display:table-cell;text-align:left;vertical-align:inherit;border-radius:inherit}.jsoneditor .autocomplete.dropdown{position:absolute;background:#fff;box-shadow:2px 2px 12px #8080804d;border:1px solid #d3d3d3;overflow-x:hidden;overflow-y:auto;cursor:default;margin:0;padding:5px;text-align:left;outline:0;font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px}.jsoneditor .autocomplete.dropdown .item{color:#1a1a1a}.jsoneditor .autocomplete.dropdown .item.hover{background-color:#ebebeb}.jsoneditor .autocomplete.hint{color:#a1a1a1;top:4px;left:4px}.jsoneditor-contextmenu-root{position:relative;width:0;height:0}.jsoneditor-contextmenu{position:absolute;box-sizing:content-box;z-index:2}.jsoneditor-contextmenu .jsoneditor-menu{position:relative;left:0;top:0;width:128px;height:auto;background:#fff;border:1px solid #d3d3d3;box-shadow:2px 2px 12px #8080804d;list-style:none;margin:0;padding:0}.jsoneditor-contextmenu .jsoneditor-menu button{position:relative;padding:0 8px 0 0;margin:0;width:128px;height:auto;border:none;cursor:pointer;color:#4d4d4d;background:0 0;font-size:14px;font-family:arial,sans-serif;box-sizing:border-box;text-align:left}.jsoneditor-contextmenu .jsoneditor-menu button::-moz-focus-inner{padding:0;border:0}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-default{width:96px}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-expand{float:right;width:32px;height:24px;border-left:1px solid #e5e5e5}.jsoneditor-contextmenu .jsoneditor-menu li{overflow:hidden}.jsoneditor-contextmenu .jsoneditor-menu li ul{display:none;position:relative;left:-10px;top:0;border:none;box-shadow:inset 0 0 10px #80808080;padding:0 10px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.jsoneditor-contextmenu .jsoneditor-menu li ul .jsoneditor-icon{margin-left:24px}.jsoneditor-contextmenu .jsoneditor-menu li ul li button{padding-left:24px;animation:all ease-in-out 1s}.jsoneditor-contextmenu .jsoneditor-menu li button .jsoneditor-expand{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:0 -72px}.jsoneditor-contextmenu .jsoneditor-icon{position:absolute;top:0;left:0;width:24px;height:24px;border:none;padding:0;margin:0;background-image:url(./jsoneditor-icons.1661345446364.svg)}.jsoneditor-contextmenu .jsoneditor-text{padding:4px 0 4px 24px;word-wrap:break-word}.jsoneditor-contextmenu .jsoneditor-text.jsoneditor-right-margin{padding-right:24px}.jsoneditor-contextmenu .jsoneditor-separator{height:0;border-top:1px solid #e5e5e5;padding-top:5px;margin-top:5px}.jsoneditor-contextmenu button.jsoneditor-remove .jsoneditor-icon{background-position:-24px 0}.jsoneditor-contextmenu button.jsoneditor-append .jsoneditor-icon,.jsoneditor-contextmenu button.jsoneditor-insert .jsoneditor-icon{background-position:0 0}.jsoneditor-contextmenu button.jsoneditor-duplicate .jsoneditor-icon{background-position:-48px 0}.jsoneditor-contextmenu button.jsoneditor-sort-asc .jsoneditor-icon{background-position:-168px 0}.jsoneditor-contextmenu button.jsoneditor-sort-desc .jsoneditor-icon{background-position:-192px 0}.jsoneditor-contextmenu button.jsoneditor-transform .jsoneditor-icon{background-position:-216px 0}.jsoneditor-contextmenu button.jsoneditor-extract .jsoneditor-icon{background-position:0 -24px}.jsoneditor-contextmenu button.jsoneditor-type-string .jsoneditor-icon{background-position:-144px 0}.jsoneditor-contextmenu button.jsoneditor-type-auto .jsoneditor-icon{background-position:-120px 0}.jsoneditor-contextmenu button.jsoneditor-type-object .jsoneditor-icon{background-position:-72px 0}.jsoneditor-contextmenu button.jsoneditor-type-array .jsoneditor-icon{background-position:-96px 0}.jsoneditor-contextmenu button.jsoneditor-type-modes .jsoneditor-icon{background-image:none;width:6px}.jsoneditor-contextmenu li,.jsoneditor-contextmenu ul{box-sizing:content-box;position:relative}.jsoneditor-contextmenu .jsoneditor-menu button:focus,.jsoneditor-contextmenu .jsoneditor-menu button:hover{color:#1a1a1a;background-color:#f5f5f5;outline:0}.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover{color:#fff;background-color:#ee422e}.jsoneditor-contextmenu .jsoneditor-menu li ul li button:focus,.jsoneditor-contextmenu .jsoneditor-menu li ul li button:hover{background-color:#f5f5f5}.jsoneditor-modal{max-width:95%;border-radius:2px!important;padding:45px 15px 15px!important;box-shadow:2px 2px 12px #8080804d;color:#4d4d4d;line-height:1.3em}.jsoneditor-modal.jsoneditor-modal-transform{width:600px!important}.jsoneditor-modal .pico-modal-header{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;padding:0 10px;height:30px;line-height:30px;font-family:arial,sans-serif;font-size:11pt;background:#3883fa;color:#fff}.jsoneditor-modal table{width:100%}.jsoneditor-modal table td{padding:3px 0}.jsoneditor-modal table td.jsoneditor-modal-input{text-align:right;padding-right:0;white-space:nowrap}.jsoneditor-modal table td.jsoneditor-modal-actions{padding-top:15px}.jsoneditor-modal table th{vertical-align:middle}.jsoneditor-modal p:first-child{margin-top:0}.jsoneditor-modal a{color:#3883fa}.jsoneditor-modal .jsoneditor-jmespath-block{margin-bottom:10px}.jsoneditor-modal .pico-close{background:0 0!important;font-size:24px!important;top:7px!important;right:7px!important;color:#fff}.jsoneditor-modal input{padding:4px}.jsoneditor-modal input[type=text]{cursor:inherit}.jsoneditor-modal input[disabled]{background:#d3d3d3;color:gray}.jsoneditor-modal .jsoneditor-select-wrapper{position:relative;display:inline-block}.jsoneditor-modal .jsoneditor-select-wrapper:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #666;position:absolute;right:8px;top:14px;pointer-events:none}.jsoneditor-modal select{padding:3px 24px 3px 10px;min-width:180px;max-width:350px;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:0;text-overflow:"";font-size:14px;line-height:1.5em}.jsoneditor-modal select::-ms-expand{display:none}.jsoneditor-modal .jsoneditor-button-group input{padding:4px 10px;margin:0;border-radius:0;border-left-style:none}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left-style:solid}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.jsoneditor-modal .jsoneditor-transform-preview{background:#f5f5f5;height:200px}.jsoneditor-modal .jsoneditor-transform-preview.jsoneditor-error{color:#ee422e}.jsoneditor-modal .jsoneditor-jmespath-wizard{line-height:1.2em;width:100%;padding:0;border-radius:3px}.jsoneditor-modal .jsoneditor-jmespath-label{font-weight:700;color:#1e90ff;margin-top:20px;margin-bottom:5px}.jsoneditor-modal .jsoneditor-jmespath-wizard-table{width:100%;border-collapse:collapse}.jsoneditor-modal .jsoneditor-jmespath-wizard-label{font-style:italic;margin:4px 0 2px}.jsoneditor-modal .jsoneditor-inline{position:relative;display:inline-block;width:100%;padding-top:2px;padding-bottom:2px}.jsoneditor-modal .jsoneditor-inline:not(:last-child){padding-right:2px}.jsoneditor-modal .jsoneditor-jmespath-filter{display:flex;flex-wrap:wrap}.jsoneditor-modal .jsoneditor-jmespath-filter-field{width:180px}.jsoneditor-modal .jsoneditor-jmespath-filter-relation{width:100px}.jsoneditor-modal .jsoneditor-jmespath-filter-value{min-width:180px;flex:1}.jsoneditor-modal .jsoneditor-jmespath-sort-field{width:170px}.jsoneditor-modal .jsoneditor-jmespath-sort-order{width:150px}.jsoneditor-modal .jsoneditor-jmespath-select-fields{width:100%}.jsoneditor-modal .selectr-selected{border-color:#d3d3d3;padding:4px 28px 4px 8px}.jsoneditor-modal .selectr-selected .selectr-tag{background-color:#3883fa;border-radius:5px}.jsoneditor-modal table td,.jsoneditor-modal table th{text-align:left;vertical-align:middle;font-weight:400;color:#4d4d4d;border-spacing:0;border-collapse:collapse}.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal select,.jsoneditor-modal textarea{background:#fff;border:1px solid #d3d3d3;color:#4d4d4d;border-radius:3px;padding:4px}.jsoneditor-modal #query,.jsoneditor-modal textarea{border-radius:unset}.jsoneditor-modal,.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal option,.jsoneditor-modal select,.jsoneditor-modal table td,.jsoneditor-modal table th,.jsoneditor-modal textarea{font-size:10.5pt;font-family:arial,sans-serif}.jsoneditor-modal #query,.jsoneditor-modal .jsoneditor-transform-preview{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;width:100%;box-sizing:border-box}.jsoneditor-modal input[type=button],.jsoneditor-modal input[type=submit]{background:#f5f5f5;padding:4px 20px}.jsoneditor-modal input,.jsoneditor-modal select{cursor:pointer}.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-asc input.jsoneditor-button-asc,.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-desc input.jsoneditor-button-desc{background:#3883fa;border-color:#3883fa;color:#fff}.jsoneditor{color:#1a1a1a;border:thin solid #3883fa;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;position:relative;padding:0;line-height:100%}div.jsoneditor-default,div.jsoneditor-field,div.jsoneditor-readonly,div.jsoneditor-value{border:1px solid transparent;min-height:16px;min-width:32px;line-height:16px;padding:2px;margin:1px;word-wrap:break-word;float:left}div.jsoneditor-field p,div.jsoneditor-value p{margin:0}div.jsoneditor-value{word-break:break-word}div.jsoneditor-value.jsoneditor-empty:after{content:"value"}div.jsoneditor-value.jsoneditor-string{color:#006000}div.jsoneditor-value.jsoneditor-number{color:#ee422e}div.jsoneditor-value.jsoneditor-boolean{color:#ff8c00}div.jsoneditor-value.jsoneditor-null{color:#004ed0}div.jsoneditor-value.jsoneditor-color-value,div.jsoneditor-value.jsoneditor-invalid{color:#1a1a1a}div.jsoneditor-readonly{min-width:16px;color:gray}div.jsoneditor-empty{border-color:#d3d3d3;border-style:dashed;border-radius:2px}div.jsoneditor-field.jsoneditor-empty:after{content:"field"}div.jsoneditor td{vertical-align:top}div.jsoneditor td.jsoneditor-separator{padding:3px 0;vertical-align:top;color:gray}div.jsoneditor td.jsoneditor-tree{vertical-align:top}div.jsoneditor.busy pre.jsoneditor-preview{background:#f5f5f5;color:gray}div.jsoneditor.busy div.jsoneditor-busy{display:inherit}div.jsoneditor code.jsoneditor-preview{background:0 0}div.jsoneditor.jsoneditor-mode-preview pre.jsoneditor-preview{width:100%;height:100%;box-sizing:border-box;overflow:auto;padding:2px;margin:0;white-space:pre-wrap;word-break:break-all}div.jsoneditor-default{color:gray;padding-left:10px}div.jsoneditor-tree{width:100%;height:100%;position:relative;overflow:auto;background:#fff}div.jsoneditor-tree button.jsoneditor-button{width:24px;height:24px;padding:0;margin:0;border:none;cursor:pointer;background-color:transparent;background-image:url(./jsoneditor-icons.1661345446364.svg)}div.jsoneditor-tree button.jsoneditor-button:focus{background-color:#f5f5f5;outline:#e5e5e5 solid 1px}div.jsoneditor-tree button.jsoneditor-collapsed{background-position:0 -48px}div.jsoneditor-tree button.jsoneditor-expanded{background-position:0 -72px}div.jsoneditor-tree button.jsoneditor-contextmenu-button{background-position:-48px -72px}div.jsoneditor-tree button.jsoneditor-invisible{visibility:hidden;background:0 0}div.jsoneditor-tree button.jsoneditor-dragarea{background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-72px -72px;cursor:move}div.jsoneditor-tree :focus{outline:0}div.jsoneditor-tree div.jsoneditor-show-more{display:inline-block;padding:3px 4px;margin:2px 0;background-color:#e5e5e5;border-radius:3px;color:gray;font-family:arial,sans-serif;font-size:14px}div.jsoneditor-tree div.jsoneditor-show-more a{display:inline-block;color:gray}div.jsoneditor-tree div.jsoneditor-color{display:inline-block;width:12px;height:12px;margin:4px;border:1px solid grey;cursor:pointer}div.jsoneditor-tree div.jsoneditor-color.jsoneditor-color-readonly{cursor:inherit}div.jsoneditor-tree div.jsoneditor-date{background:#a1a1a1;color:#fff;font-family:arial,sans-serif;border-radius:3px;display:inline-block;padding:3px;margin:0 3px}div.jsoneditor-tree table.jsoneditor-tree{border-collapse:collapse;border-spacing:0;width:100%}div.jsoneditor-tree .jsoneditor-button{display:block}div.jsoneditor-tree .jsoneditor-button.jsoneditor-schema-error{width:24px;height:24px;padding:0;margin:0 4px 0 0;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-168px -48px;background-color:transparent}div.jsoneditor-outer{position:static;width:100%;height:100%;margin:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}div.jsoneditor-outer.has-nav-bar{margin-top:-26px;padding-top:26px}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:-61px;padding-top:61px}div.jsoneditor-outer.has-status-bar{margin-bottom:-26px;padding-bottom:26px}div.jsoneditor-outer.has-main-menu-bar{margin-top:-35px;padding-top:35px}div.jsoneditor-busy{position:absolute;top:15%;left:0;box-sizing:border-box;width:100%;text-align:center;display:none}div.jsoneditor-busy span{background-color:#ffffab;border:1px solid #fe0;border-radius:3px;padding:5px 15px;box-shadow:0 0 5px #0006}div.jsoneditor-field.jsoneditor-empty:after,div.jsoneditor-value.jsoneditor-empty:after{pointer-events:none;color:#d3d3d3;font-size:8pt}a.jsoneditor-value.jsoneditor-url,div.jsoneditor-value.jsoneditor-url{color:#006000;text-decoration:underline}a.jsoneditor-value.jsoneditor-url{display:inline-block;padding:2px;margin:2px}a.jsoneditor-value.jsoneditor-url:focus,a.jsoneditor-value.jsoneditor-url:hover{color:#ee422e}div.jsoneditor-field.jsoneditor-highlight,div.jsoneditor-field[contenteditable=true]:focus,div.jsoneditor-field[contenteditable=true]:hover,div.jsoneditor-value.jsoneditor-highlight,div.jsoneditor-value[contenteditable=true]:focus,div.jsoneditor-value[contenteditable=true]:hover{background-color:#ffffab;border:1px solid #fe0;border-radius:2px}div.jsoneditor-field.jsoneditor-highlight-active,div.jsoneditor-field.jsoneditor-highlight-active:focus,div.jsoneditor-field.jsoneditor-highlight-active:hover,div.jsoneditor-value.jsoneditor-highlight-active,div.jsoneditor-value.jsoneditor-highlight-active:focus,div.jsoneditor-value.jsoneditor-highlight-active:hover{background-color:#fe0;border:1px solid #ffc700;border-radius:2px}div.jsoneditor-value.jsoneditor-array,div.jsoneditor-value.jsoneditor-object{min-width:16px}div.jsoneditor-tree button.jsoneditor-contextmenu-button.jsoneditor-selected,div.jsoneditor-tree button.jsoneditor-contextmenu-button:focus,div.jsoneditor-tree button.jsoneditor-contextmenu-button:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{background-position:-48px -48px}div.jsoneditor-tree div.jsoneditor-show-more a:focus,div.jsoneditor-tree div.jsoneditor-show-more a:hover{color:#ee422e}.ace-jsoneditor,textarea.jsoneditor-text{min-height:150px}.ace-jsoneditor.ace_editor,textarea.jsoneditor-text.ace_editor{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace}textarea.jsoneditor-text{width:100%;height:100%;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;outline-width:0;border:none;background-color:#fff;resize:none}tr.jsoneditor-highlight,tr.jsoneditor-selected{background-color:#d3d3d3}tr.jsoneditor-selected button.jsoneditor-contextmenu-button,tr.jsoneditor-selected button.jsoneditor-dragarea{visibility:hidden}tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{visibility:visible}div.jsoneditor-tree button.jsoneditor-dragarea:focus,div.jsoneditor-tree button.jsoneditor-dragarea:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{background-position:-72px -48px}div.jsoneditor td,div.jsoneditor th,div.jsoneditor tr{padding:0;margin:0}.jsoneditor-popover,.jsoneditor-schema-error,div.jsoneditor td,div.jsoneditor textarea,div.jsoneditor th,div.jsoneditor-field,div.jsoneditor-value,pre.jsoneditor-preview{font-family:consolas,menlo,monaco,Ubuntu Mono,source-code-pro,monospace;font-size:14px;color:#1a1a1a}.jsoneditor-schema-error{cursor:default;display:inline-block;height:24px;line-height:24px;position:relative;text-align:center;width:24px}.jsoneditor-popover{background-color:#4c4c4c;border-radius:3px;box-shadow:0 0 5px #0006;color:#fff;padding:7px 10px;position:absolute;cursor:auto;width:200px}.jsoneditor-popover.jsoneditor-above{bottom:32px;left:-98px}.jsoneditor-popover.jsoneditor-above:before{border-top:7px solid #4c4c4c;bottom:-7px}.jsoneditor-popover.jsoneditor-below{top:32px;left:-98px}.jsoneditor-popover.jsoneditor-below:before{border-bottom:7px solid #4c4c4c;top:-7px}.jsoneditor-popover.jsoneditor-left{top:-7px;right:32px}.jsoneditor-popover.jsoneditor-left:before{border-left:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;right:-14px;left:inherit;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover.jsoneditor-right{top:-7px;left:32px}.jsoneditor-popover.jsoneditor-right:before{border-right:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;left:-14px;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover:before{border-right:7px solid transparent;border-left:7px solid transparent;content:"";display:block;left:50%;margin-left:-7px;position:absolute}.jsoneditor-text-errors tr.jump-to-line:hover{text-decoration:underline;cursor:pointer}.jsoneditor-schema-error:focus .jsoneditor-popover,.jsoneditor-schema-error:hover .jsoneditor-popover{display:block;animation:fade-in .3s linear 1,move-up .3s linear 1}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.jsoneditor .jsoneditor-validation-errors-container{max-height:130px;overflow-y:auto}.jsoneditor .jsoneditor-validation-errors{width:100%;overflow:hidden}.jsoneditor .jsoneditor-additional-errors{position:absolute;margin:auto;bottom:31px;left:calc(50% - 92px);color:gray;background-color:#ebebeb;padding:7px 15px;border-radius:8px}.jsoneditor .jsoneditor-additional-errors.visible{visibility:visible;opacity:1;transition:opacity 2s linear}.jsoneditor .jsoneditor-additional-errors.hidden{visibility:hidden;opacity:0;transition:visibility 0s 2s,opacity 2s linear}.jsoneditor .jsoneditor-text-errors{width:100%;border-collapse:collapse;border-top:1px solid #ffc700}.jsoneditor .jsoneditor-text-errors td{padding:3px 6px;vertical-align:middle}.jsoneditor .jsoneditor-text-errors td pre{margin:0;white-space:pre-wrap}.jsoneditor .jsoneditor-text-errors tr{background-color:#ffffab}.jsoneditor .jsoneditor-text-errors tr.parse-error{background-color:#ee2e2e70}.jsoneditor-text-errors .jsoneditor-schema-error{border:none;width:24px;height:24px;padding:0;margin:0 4px 0 0;cursor:pointer}.jsoneditor-text-errors tr .jsoneditor-schema-error{background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-168px -48px;background-color:transparent}.jsoneditor-text-errors tr.parse-error .jsoneditor-schema-error{background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-25px 0;background-color:transparent}.jsoneditor-anchor{cursor:pointer}.jsoneditor-anchor .picker_wrapper.popup.popup_bottom{top:28px;left:-10px}.fadein{-webkit-animation:fadein .3s;animation:fadein .3s;-moz-animation:fadein .3s;-o-animation:fadein .3s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.jsoneditor-modal input[type=search].selectr-input{border:1px solid #d3d3d3;width:calc(100% - 4px);margin:2px;padding:4px;box-sizing:border-box}.jsoneditor-modal button.selectr-input-clear{right:8px}.jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#3883fa;border-bottom:1px solid #3883fa}.jsoneditor-menu>.jsoneditor-modes>button,.jsoneditor-menu>button{width:26px;height:26px;margin:2px;padding:0;border-radius:2px;border:1px solid transparent;background-color:transparent;background-image:url(./jsoneditor-icons.1661345446364.svg);color:#fff;opacity:.8;font-family:arial,sans-serif;font-size:14px;float:left}.jsoneditor-menu>.jsoneditor-modes>button:hover,.jsoneditor-menu>button:hover{background-color:#fff3;border:1px solid rgba(255,255,255,.4)}.jsoneditor-menu>.jsoneditor-modes>button:active,.jsoneditor-menu>.jsoneditor-modes>button:focus,.jsoneditor-menu>button:active,.jsoneditor-menu>button:focus{background-color:#ffffff4d}.jsoneditor-menu>.jsoneditor-modes>button:disabled,.jsoneditor-menu>button:disabled{opacity:.5;background-color:transparent;border:none}.jsoneditor-menu>button.jsoneditor-collapse-all{background-position:0 -96px}.jsoneditor-menu>button.jsoneditor-expand-all{background-position:0 -120px}.jsoneditor-menu>button.jsoneditor-sort{background-position:-120px -96px}.jsoneditor-menu>button.jsoneditor-transform{background-position:-144px -96px}.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-transform,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-transform{display:none}.jsoneditor-menu>button.jsoneditor-undo{background-position:-24px -96px}.jsoneditor-menu>button.jsoneditor-undo:disabled{background-position:-24px -120px}.jsoneditor-menu>button.jsoneditor-redo{background-position:-48px -96px}.jsoneditor-menu>button.jsoneditor-redo:disabled{background-position:-48px -120px}.jsoneditor-menu>button.jsoneditor-compact{background-position:-72px -96px}.jsoneditor-menu>button.jsoneditor-format{background-position:-72px -120px}.jsoneditor-menu>button.jsoneditor-repair{background-position:-96px -96px}.jsoneditor-menu>.jsoneditor-modes{display:inline-block;float:left}.jsoneditor-menu>.jsoneditor-modes>button{background-image:none;width:auto;padding-left:6px;padding-right:6px}.jsoneditor-menu>.jsoneditor-modes>button.jsoneditor-separator,.jsoneditor-menu>button.jsoneditor-separator{margin-left:10px}.jsoneditor-menu a{font-family:arial,sans-serif;font-size:14px;color:#fff;opacity:.8;vertical-align:middle}.jsoneditor-menu a:hover{opacity:1}.jsoneditor-menu a.jsoneditor-poweredBy{font-size:8pt;position:absolute;right:0;top:0;padding:10px}.jsoneditor-navigation-bar{width:100%;height:26px;line-height:26px;padding:0;margin:0;border-bottom:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:gray;background-color:#ebebeb;overflow:hidden;font-family:arial,sans-serif;font-size:14px}.jsoneditor-search{font-family:arial,sans-serif;position:absolute;right:4px;top:4px;border-collapse:collapse;border-spacing:0;display:flex}.jsoneditor-search input{color:#1a1a1a;width:120px;border:none;outline:0;margin:1px;line-height:20px;font-family:arial,sans-serif}.jsoneditor-search button{width:16px;height:24px;padding:0;margin:0;border:none;background:url(./jsoneditor-icons.1661345446364.svg);vertical-align:top}.jsoneditor-search button:hover{background-color:transparent}.jsoneditor-search button.jsoneditor-refresh{width:18px;background-position:-99px -73px}.jsoneditor-search button.jsoneditor-next{cursor:pointer;background-position:-124px -73px}.jsoneditor-search button.jsoneditor-next:hover{background-position:-124px -49px}.jsoneditor-search button.jsoneditor-previous{cursor:pointer;background-position:-148px -73px;margin-right:2px}.jsoneditor-search button.jsoneditor-previous:hover{background-position:-148px -49px}.jsoneditor-results{font-family:arial,sans-serif;color:#fff;padding-right:5px;line-height:26px}.jsoneditor-frame{border:1px solid transparent;background-color:#fff;padding:0 2px;margin:0}.jsoneditor-statusbar{line-height:26px;height:26px;color:gray;background-color:#ebebeb;border-top:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px}.jsoneditor-statusbar>.jsoneditor-curserinfo-val{margin-right:12px}.jsoneditor-statusbar>.jsoneditor-curserinfo-count{margin-left:4px}.jsoneditor-statusbar>.jsoneditor-validation-error-icon{float:right;width:24px;height:24px;padding:0;margin-top:1px;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-168px -48px;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-validation-error-count{float:right;margin:0 4px 0 0;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-parse-error-icon{float:right;width:24px;height:24px;padding:0;margin:1px;background-image:url(./jsoneditor-icons.1661345446364.svg);background-position:-25px 0}.jsoneditor-statusbar .jsoneditor-array-info a{color:inherit}div.jsoneditor-statusbar>.jsoneditor-curserinfo-label,div.jsoneditor-statusbar>.jsoneditor-size-info{margin:0 4px}.jsoneditor-treepath{padding:0 5px;overflow:hidden;white-space:nowrap;outline:0}.jsoneditor-treepath.show-all{word-wrap:break-word;white-space:normal;position:absolute;background-color:#ebebeb;z-index:1;box-shadow:2px 2px 12px #8080804d}.jsoneditor-treepath.show-all span.jsoneditor-treepath-show-all-btn{display:none}.jsoneditor-treepath div.jsoneditor-contextmenu-root{position:absolute;left:0}.jsoneditor-treepath .jsoneditor-treepath-show-all-btn{position:absolute;background-color:#ebebeb;left:0;height:20px;padding:0 3px;cursor:pointer}.jsoneditor-treepath .jsoneditor-treepath-element{margin:1px;font-family:arial,sans-serif;font-size:14px}.jsoneditor-treepath .jsoneditor-treepath-seperator{margin:2px;font-size:9pt;font-family:arial,sans-serif}.jsoneditor-treepath span.jsoneditor-treepath-element:hover,.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover{cursor:pointer;text-decoration:underline}/*! +* Selectr 2.4.0 +* https://github.com/Mobius1/Selectr +* +* Released under the MIT license +*/.selectr-container{position:relative}.selectr-container li{list-style:none}.selectr-hidden{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0 none}.selectr-visible{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:11}.selectr-desktop.multiple .selectr-visible{display:none}.selectr-desktop.multiple.native-open .selectr-visible{top:100%;min-height:200px!important;height:auto;opacity:1;display:block}.selectr-container.multiple.selectr-mobile .selectr-selected{z-index:0}.selectr-selected{position:relative;z-index:1;box-sizing:border-box;width:100%;padding:7px 28px 7px 14px;cursor:pointer;border:1px solid #999;border-radius:3px;background-color:#fff}.selectr-selected:before{position:absolute;top:50%;right:10px;width:0;height:0;content:"";-o-transform:rotate(0) translate3d(0,-50%,0);-ms-transform:rotate(0) translate3d(0,-50%,0);-moz-transform:rotate(0) translate3d(0,-50%,0);-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0);border-width:4px 4px 0 4px;border-style:solid;border-color:#6c7a86 transparent transparent}.selectr-container.native-open .selectr-selected:before,.selectr-container.open .selectr-selected:before{border-width:0 4px 4px 4px;border-style:solid;border-color:transparent transparent #6c7a86}.selectr-label{display:none;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis}.selectr-placeholder{color:#6c7a86}.selectr-tags{margin:0;padding:0;white-space:normal}.has-selected .selectr-tags{margin:0 0 -2px}.selectr-tag{list-style:none;position:relative;float:left;padding:2px 25px 2px 8px;margin:0 2px 2px 0;cursor:default;color:#fff;border:medium none;border-radius:10px;background:#acb7bf none repeat scroll 0 0}.selectr-container.multiple.has-selected .selectr-selected{padding:5px 28px 5px 5px}.selectr-options-container{position:absolute;z-index:10000;top:calc(100% - 1px);left:0;display:none;box-sizing:border-box;width:100%;border-width:0 1px 1px;border-style:solid;border-color:transparent #999 #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.open .selectr-options-container{display:block}.selectr-input-container{position:relative;display:none}.selectr-clear,.selectr-input-clear,.selectr-tag-remove{position:absolute;top:50%;right:22px;width:20px;height:20px;padding:0;cursor:pointer;-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border:medium none;background-color:transparent;z-index:11}.selectr-clear,.selectr-input-clear{display:none}.selectr-container.has-selected .selectr-clear,.selectr-input-container.active .selectr-input-clear{display:block}.selectr-selected .selectr-tag-remove{right:2px}.selectr-clear:after,.selectr-clear:before,.selectr-input-clear:after,.selectr-input-clear:before,.selectr-tag-remove:after,.selectr-tag-remove:before{position:absolute;top:5px;left:9px;width:2px;height:10px;content:" ";background-color:#6c7a86}.selectr-tag-remove:after,.selectr-tag-remove:before{top:4px;width:3px;height:12px;background-color:#fff}.selectr-clear:before,.selectr-input-clear:before,.selectr-tag-remove:before{-o-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.selectr-clear:after,.selectr-input-clear:after,.selectr-tag-remove:after{-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.selectr-input-container.active,.selectr-input-container.active .selectr-clear{display:block}.selectr-input{top:5px;left:5px;box-sizing:border-box;width:calc(100% - 30px);margin:10px 15px;padding:7px 30px 7px 9px;border:1px solid #999;border-radius:3px}.selectr-notice{display:none;box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.notice .selectr-notice{display:block}.selectr-container.notice .selectr-selected{border-radius:3px 3px 0 0}.selectr-options{position:relative;top:calc(100% + 2px);display:none;overflow-x:auto;overflow-y:scroll;max-height:200px;margin:0;padding:0}.selectr-container.notice .selectr-options-container,.selectr-container.open .selectr-input-container,.selectr-container.open .selectr-options{display:block}.selectr-option{position:relative;display:block;padding:5px 20px;list-style:outside none none;cursor:pointer;font-weight:400}.selectr-options.optgroups>.selectr-option{padding-left:25px}.selectr-optgroup{font-weight:700;padding:0}.selectr-optgroup--label{font-weight:700;margin-top:10px;padding:5px 15px}.selectr-match{text-decoration:underline}.selectr-option.selected{background-color:#ddd}.selectr-option.active{color:#fff;background-color:#5897fb}.selectr-option.disabled{opacity:.4}.selectr-option.excluded{display:none}.selectr-container.open .selectr-selected{border-color:#999 #999 transparent #999;border-radius:3px 3px 0 0}.selectr-container.open .selectr-selected:after{-o-transform:rotate(180deg) translate3d(0,50%,0);-ms-transform:rotate(180deg) translate3d(0,50%,0);-moz-transform:rotate(180deg) translate3d(0,50%,0);-webkit-transform:rotate(180deg) translate3d(0,50%,0);transform:rotate(180deg) translate3d(0,50%,0)}.selectr-disabled{opacity:.6}.has-selected .selectr-placeholder,.selectr-empty{display:none}.has-selected .selectr-label{display:block}.taggable .selectr-selected{padding:4px 28px 4px 4px}.taggable .selectr-selected:after{display:table;content:" ";clear:both}.taggable .selectr-label{width:auto}.taggable .selectr-tags{float:left;display:block}.taggable .selectr-placeholder{display:none}.input-tag{float:left;min-width:90px;width:auto}.selectr-tag-input{border:medium none;padding:3px 10px;width:100%;font-family:inherit;font-weight:inherit;font-size:inherit}.selectr-input-container.loading:after{position:absolute;top:50%;right:20px;width:20px;height:20px;content:"";-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);-o-transform-origin:50% 0 0;-ms-transform-origin:50% 0 0;-moz-transform-origin:50% 0 0;-webkit-transform-origin:50% 0 0;transform-origin:50% 0 0;-moz-animation:.5s linear 0s normal forwards infinite running selectr-spin;-webkit-animation:.5s linear 0s normal forwards infinite running selectr-spin;animation:.5s linear 0s normal forwards infinite running selectr-spin;border-width:3px;border-style:solid;border-color:#aaa #ddd #ddd;border-radius:50%}@-webkit-keyframes selectr-spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0,-50%,0);transform:rotate(360deg) translate3d(0,-50%,0)}}@keyframes selectr-spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(360deg) translate3d(0,-50%,0);transform:rotate(360deg) translate3d(0,-50%,0)}}.selectr-container.open.inverted .selectr-selected{border-color:transparent #999 #999;border-radius:0 0 3px 3px}.selectr-container.inverted .selectr-options-container{border-width:1px 1px 0;border-color:#999 #999 transparent;border-radius:3px 3px 0 0;background-color:#fff}.selectr-container.inverted .selectr-options-container{top:auto;bottom:calc(100% - 1px)}.selectr-container ::-webkit-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::-moz-placeholder{color:#6c7a86;opacity:1}.selectr-container :-ms-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::placeholder{color:#6c7a86;opacity:1}div.jsoneditor-menu a.jsoneditor-poweredBy{display:none}.mongo-doc-btns{position:absolute;z-index:2;right:3px;top:2px;max-width:120px} diff --git a/server/static/static/assets/MongoDataOp.1661345446364.js b/server/static/static/assets/MongoDataOp.1661345446364.js new file mode 100644 index 00000000..32759535 --- /dev/null +++ b/server/static/static/assets/MongoDataOp.1661345446364.js @@ -0,0 +1,243 @@ +var Zt=Object.defineProperty,Ot=Object.defineProperties;var Dt=Object.getOwnPropertyDescriptors;var Wt=Object.getOwnPropertySymbols;var Kt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var Ft=(Ie,le,Ge)=>le in Ie?Zt(Ie,le,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Ie[le]=Ge,kt=(Ie,le)=>{for(var Ge in le||(le={}))Kt.call(le,Ge)&&Ft(Ie,Ge,le[Ge]);if(Wt)for(var Ge of Wt(le))zt.call(le,Ge)&&Ft(Ie,Ge,le[Ge]);return Ie},Et=(Ie,le)=>Ot(Ie,Dt(le));import{m as ut}from"./api.16613454463646.js";import{P as Xt}from"./ProjectEnvSelect.1661345446364.js";import{i as Tt,a as Pt,b as Jt}from"./assert.1661345446364.js";import{f as Yt}from"./format.1661345446364.js";import{a4 as Ut,A as Gt,t as _t,q as Mt,r as Ht,o as Qt,a5 as qt,v as ei,_ as Vt,m as ti,d as qe,e as gt,h as tt,l as ii,b as Ye,g as Be,w as We,F as It,j as bt,k as mt,i as Rt,z as ni,E as ft,B as yt}from"./index.1661345446364.js";import"./Api.1661345446364.js";import"./api.16613454463644.js";var jt={exports:{}};/*! + * jsoneditor.js + * + * @brief + * JSONEditor is a web-based tool to view, edit, format, and validate JSON. + * It has various modes such as a tree editor, a code editor, and a plain text + * editor. + * + * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ + * + * @license + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + * + * Copyright (c) 2011-2022 Jos de Jong, http://jsoneditoronline.org + * + * @author Jos de Jong, + * @version 9.9.0 + * @date 2022-06-13 + */(function(Ie,le){(function(Ge,it){Ie.exports=it()})(self,function(){return it={897:function(ie,g,X){X.d(g,{x:function(){return O}});var P=X(2602),S=X(9791),N=X(7907);function Z(W,M){for(var j=0;ja.top&&(w=!1),b?0:p.top-s.top);w?(b=f.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=e+b+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(s=w?a.bottom-p.bottom-10:p.top-a.top-10,this.dom.list.style.maxHeight=s+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,S.getSelection)(),this.anchor=f,setTimeout(function(){n.dom.focusButton.focus()},0),W.visibleMenu&&W.visibleMenu.hide(),W.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),W.visibleMenu===this&&(W.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(f){var m,b=this,w=f===this.expandedItem,p=this.expandedItem;p&&(p.ul.style.height="0",p.ul.style.padding="",setTimeout(function(){b.expandedItem!==p&&(p.ul.style.display="",S.removeClassName)(p.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),w||((m=f.ul).style.display="block",m.clientHeight,setTimeout(function(){if(b.expandedItem===f){for(var s=0,a=0;a/gi,` +`))),a.appendChild(n),s.appendChild(a)),s.onclick=function(){m.onFocusLine(p)},j.appendChild(s)}),this.dom.validationErrors=b,this.dom.validationErrorsContainer.appendChild(b),this.dom.additionalErrorsIndication.title=W.length+" errors total",this.dom.validationErrorsContainer.clientHeightP[0].length)||(P=S,N=W,this.options.flex));W++);return P?((Z=P[0].match(/\n.*/g))&&(this.yylineno+=Z.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Z?Z[Z.length-1].length-1:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(P[0].length),this.matched+=P[0],Z=this.performAction.call(this,this.yy,this,O[N],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P!==void 0?P:this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(P){this.begin(P)},options:{},performAction:function(P,S,N,Z){switch(N){case 0:break;case 1:return 6;case 2:return S.yytext=S.yytext.substr(1,S.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var X;g.parser=X,g.parse=X.parse.bind(X)},3879:function(ie){function g(){}var X={defaultSelected:!0,width:"auto",disabled:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag..."},P=(g.prototype={on:function(f,m){this._events=this._events||{},this._events[f]=this._events[f]||[],this._events[f].push(m)},off:function(f,m){this._events=this._events||{},f in this._events&&this._events[f].splice(this._events[f].indexOf(m),1)},emit:function(f){if(this._events=this._events||{},f in this._events)for(var m=0;m"+r.label+""}),P.each(r.children,function(l,o){o.idx=e,n.appendChild(O.call(this,o,n)),e++},this)):(r.idx=e,O.call(this,r),e++)},this),this.config.data&&Array.isArray(this.config.data)&&(w=!(this.data=[]),n=!1,e=0,P.each(this.config.data,function(i,r){S(r,"children")?(w=P.createElement("optgroup",{label:r.text}),n=P.createElement("ul",{class:"selectr-optgroup",role:"group",html:""+r.text+""}),P.each(r.children,function(l,o){(p=new Option(o.text,o.value,!1,o.hasOwnProperty("selected")&&o.selected===!0)).disabled=S(o,"disabled"),this.options.push(p),w.appendChild(p),p.idx=e,n.appendChild(O.call(this,p,o)),this.data[e]=o,e++},this)):((p=new Option(r.text,r.value,!1,r.hasOwnProperty("selected")&&r.selected===!0)).disabled=S(r,"disabled"),this.options.push(p),p.idx=e,O.call(this,p,r),this.data[e]=r,e++)},this)),this.setSelected(!0);for(var t=this.navIndex=0;tthis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(m.top+m.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&W.call(this)):this.navIndex===0?this.tree.scrollTop=0:m.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(m.top-this.optsRect.top)),w&&P.removeClass(w,"active"),P.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(m){m.changedTouches[0].target===f.el&&f.toggle()}),(this.config.nativeDropdown||this.mobileDevice)&&this.container.addEventListener("click",function(m){m.preventDefault(),m.stopPropagation(),m.target===f.el&&f.toggle()}),this.el.addEventListener("change",function(m){var b;f.el.multiple?(b=f.getSelectedProperties("idx"),b=function(w,p){for(var s,a=[],n=w.slice(0),e=0;eb?(P.addClass(this.container,"inverted"),this.isInverted=!0):(P.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=P.rect(this.tree)},j.prototype.getOptionByIndex=function(f){return this.options[f]},j.prototype.getOptionByValue=function(f){for(var m=!1,b=0,w=this.options.length;bthis.limit&&1S.EX?((0,w.addClassName)((t=this).frame,"busy"),t.dom.busyContent.innerText=e,setTimeout(function(){n(),(0,w.removeClassName)(t.frame,"busy"),t.dom.busyContent.innerText=""},100)):n()},s.validate=p.validate,s._renderErrors=p._renderErrors,[{mode:"preview",mixin:s,data:"json"}])},6210:function(ie,P,X){X.r(P),X.d(P,{showSortModal:function(){return O}});var P=X(483),S=X.n(P),N=X(7907),Z=X(9791);function O(W,p,j,f){var m=Array.isArray(p)?(0,Z.getChildPaths)(p):[""],b=f&&f.path&&(0,Z.contains)(m,f.path)?f.path:m[0],w=f&&f.direction||"asc",p=''+(0,N.Iu)("sort")+" "+(0,N.Iu)("sortFieldLabel")+' '+(0,N.Iu)("sortDirectionLabel")+' ';S()({parent:W,content:p,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(s){var a=s.modalElem().querySelector("form"),n=s.modalElem().querySelector("#ok"),e=s.modalElem().querySelector("#field"),t=s.modalElem().querySelector("#direction");function i(r){t.value=r,t.className="jsoneditor-button-group jsoneditor-button-group-value-"+t.value}m.forEach(function(r){var l,o=document.createElement("option");o.text=(l=r)===""?"@":l[0]==="."?l.slice(1):l,o.value=r,e.appendChild(o)}),e.value=b||m[0],i(w||"asc"),t.onclick=function(r){i(r.target.getAttribute("data-value"))},n.onclick=function(r){r.preventDefault(),r.stopPropagation(),s.close(),j({path:e.value,direction:t.value})},a&&(a.onsubmit=n.onclick)}).afterClose(function(s){s.destroy()}).show()}},2558:function(ie,S,X){X.r(S),X.d(S,{showTransformModal:function(){return b}});var S=X(483),P=X.n(S),S=X(3879),N=X.n(S),Z=X(7907);function O(w){return(O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(w)}function W(w,p,s,a){if(typeof w=="boolean"||w instanceof Boolean||w===null||typeof w=="number"||w instanceof Number||typeof w=="string"||w instanceof String||w instanceof Date)return JSON.stringify(w);if(Array.isArray(w)){for(var n=w,e=p,t=s,i=a,r=e?t+e:void 0,l=e?`[ +`:"[",o=0;oi)return l+"..."}return l+=e?` +`+t+"]":"]"}if(w&&O(w)==="object"){var h,y=w,v=p,t=s,d=a,u=v?t+v:void 0,A=!0,x=v?`{ +`:"{";if(typeof y.toJSON=="function")return W(y.toJSON(),v,t,d);for(h in y)if(function(L,k){return Object.prototype.hasOwnProperty.call(L,k)}(y,h)){var I=y[h];if(A?A=!1:x+=v?`, +`:",",(x=(x+=v?u+'"'+h+'": ':'"'+h+'":')+W(I,v,u,d)).length>d)return x+"..."}return x+=v?` +`+t+"}":"}"}}function M(w,p){for(var s="";0JMESPath query to filter, sort, or transform the JSON data.To learn JMESPath, go to the interactive tutorial.';function b(r){var p=r.container,s=r.json,a=r.queryDescription,a=a===void 0?m:a,n=r.createQuery,e=r.executeQuery,t=r.onTransform,i=s,r=''+(0,Z.Iu)("transform")+""+a+''+(0,Z.Iu)("transformWizardLabel")+' '+(0,Z.Iu)("transformWizardFilter")+' == != < <= > >= '+(0,Z.Iu)("transformWizardSortBy")+' Ascending Descending '+(0,Z.Iu)("transformWizardSelectFields")+' '+(0,Z.Iu)("transformQueryLabel")+' [*]'+(0,Z.Iu)("transformPreviewLabel")+' ';P()({parent:p,content:r,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate(function(l){var o=l.modalElem(),T=o.querySelector("#wizard"),c=o.querySelector("#ok"),h=o.querySelector("#filterField"),y=o.querySelector("#filterRelation"),v=o.querySelector("#filterValue"),d=o.querySelector("#sortField"),u=o.querySelector("#sortOrder"),A=o.querySelector("#selectFields"),x=o.querySelector("#query"),I=o.querySelector("#preview");Array.isArray(i)||(T.style.fontStyle="italic",T.textContent="(wizard not available for objects, only for arrays)"),(0,j.getChildPaths)(s).forEach(function(V){var V=H(V),B=document.createElement("option"),B=(B.text=V,B.value=V,h.appendChild(B),document.createElement("option"));B.text=V,B.value=V,d.appendChild(B)});var T=(0,j.getChildPaths)(s,!0).filter(function(R){return R!==""}),T=(0C?(V=B,(typeof(E=C)=="number"?V.slice(0,E):V)+"..."):B),c.disabled=!1}catch($){I.className="jsoneditor-transform-preview jsoneditor-error",I.value=$.toString(),c.disabled=!0}var V,B,C,E},300);function D(R,V){try{x.value=n(R,V),c.disabled=!1,z()}catch(B){R='Error: an error happened when executing "createQuery": '+(B.message||B.toString()),x.value="",c.disabled=!0,I.className="jsoneditor-transform-preview jsoneditor-error",I.value=R}}function J(){var R={};if(h.value&&y.value&&v.value&&(R.filter={field:h.value,relation:y.value,value:v.value}),d.value&&u.value&&(R.sort={field:d.value,direction:u.value}),A.value){for(var V,B=[],C=0;C=x[T].key.column&&v.column<=x[T].keyEnd.column&&(k=T.slice(0,T.lastIndexOf("/"))),(k=((_=x[T].value)==null?void 0:_.line)===v.row&&((_=x[T].value)==null?void 0:_.line)===((_=x[T].valueEnd)==null?void 0:_.line)&&v.column>=x[T].value.column&&v.column<=x[T].valueEnd.column?T:k)&&(_=L(k,A.suggestions,""),I(_))})})}catch{}}}])&&s(o.prototype,c),Object.defineProperty(o,"prototype",{writable:!1}),l}();function n(l){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(l)}var e={},t="ace/theme/jsoneditor";function i(){try{this.format()}catch{}}e.create=function(A){var o,c,h,y=this,v=1"),line:l}]),this._renderErrors(h),typeof this.options.onValidationError=="function"&&(0,p.isValidationErrorChanged)(h,this.lastSchemaErrors)&&this.options.onValidationError.call(this,h),this.lastSchemaErrors=h,Promise.resolve(this.lastSchemaErrors)}},e._validateAndCatch=function(){this.validate().catch(function(l){console.error("Error running validation:",l)})},e._renderErrors=function(l){var c=this.getText(),o=[],c=(l.reduce(function(h,y){return typeof y.dataPath=="string"&&h.indexOf(y.dataPath)===-1&&h.push(y.dataPath),h},o),(0,p.getPositionForPath)(c,o));this.aceEditor&&(this.annotations=c.map(function(h){var y=l.filter(function(d){return d.dataPath===h.path}),v=y.map(function(d){return d.message}).join(` +`);return v?{row:h.line,column:h.column,text:"Schema validation error"+(y.length!==1?"s":"")+`: +`+v,type:"warning",source:"jsoneditor"}:{}}),this._refreshAnnotations()),this.errorTable.setErrors(l,c),this.aceEditor&&this.aceEditor.resize(!1)},e.getTextSelection=function(){var l,o,c,h={};return this.textarea?(c=(0,p.getInputSelection)(this.textarea),this.cursorInfo&&this.cursorInfo.line===c.end.row&&this.cursorInfo.column===c.end.column?(h.start=c.end,h.end=c.start):h=c,{start:h.start,end:h.end,text:this.textarea.value.substring(c.startIndex,c.endIndex)}):this.aceEditor?(c=this.aceEditor.getSelection(),l=this.aceEditor.getSelectedText(),o=c.getRange(),(c=c.getSelectionLead()).row===o.end.row&&c.column===o.end.column?h=o:(h.start=o.end,h.end=o.start),{start:{row:h.start.row+1,column:h.start.column+1},end:{row:h.end.row+1,column:h.end.column+1},text:l}):void 0},e.onTextSelectionChange=function(l){typeof l=="function"&&(this._selectionChangedHandler=(0,p.debounce)(l,this.DEBOUNCE_INTERVAL))},e.setTextSelection=function(l,o){var c,h,y;l&&o&&(this.textarea?(c=(0,p.getIndexForPosition)(this.textarea,l.row,l.column),y=(0,p.getIndexForPosition)(this.textarea,o.row,o.column),-1this.textarea.clientHeight?h-this.textarea.clientHeight/2:0)):this.aceEditor&&(y={start:{row:l.row-1,column:l.column-1},end:{row:o.row-1,column:o.column-1}},this.aceEditor.selection.setRange(y),this.aceEditor.scrollToLine(l.row-1,!0)))};var r=[{mode:"text",mixin:e,data:"text",load:i},{mode:"code",mixin:e,data:"text",load:i}]},8038:function(ie,H,D){D.r(H),D.d(H,{treeModeMixins:function(){return J}});var P={start:function(R,V,B){return V.indexOf(R)===0},contain:function(R,V,B){return-1=R.length?{done:!0}:{done:!1,value:R[B++]}},e:function(K){throw K},f:V};throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,$=!0,G=!1;return{s:function(){C=C.call(R)},n:function(){var K=C.next();return $=K.done,K},e:function(K){G=!0,E=K},f:function(){try{$||C.return==null||C.return()}finally{if(G)throw E}}}}function t(R,V){if(R){if(typeof R=="string")return i(R,V);var B=Object.prototype.toString.call(R).slice(8,-1);return(B=B==="Object"&&R.constructor?R.constructor.name:B)==="Map"||B==="Set"?Array.from(R):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?i(R,V):void 0}}function i(R,V){(V==null||V>R.length)&&(V=R.length);for(var B=0,C=new Array(V);B=C.length;G--)this.removeChild(this.childs[G],!1)}else if(this.type==="object"){for(this.childs||(this.childs=[]),G=this.childs.length-1;0<=G;G--)v(C,this.childs[G].field)||this.removeChild(this.childs[G],!1);for(var ge in $=0,C)v(C,ge)&&((ee=C[ge])===void 0||ee instanceof Function||((he=this.findChildByProperty(ge))?(he.setField(ge,!0),he.setValue(ee)):(he=new R(this.editor,{field:ge,value:ee}),ge=$=C.childs.length;Q--)this.removeChild(this.childs[Q],!1)}else if(C.type==="object"){for(this.childs||(this.childs=[]),K=0;K=C.childs.length;Q--)this.removeChild(this.childs[Q],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=C.value;Array.isArray(ee)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){var C;this.dom&&this.dom.tr&&this.dom.tr.parentNode?(C=this._detachFromDom(),this.clearDom(),this._attachToDom(C)):this.clearDom()}},{key:"getValue",value:function(){var C,E;return this.type==="array"?(C=[],this.childs.forEach(function($){C.push($.getValue())}),C):this.type==="object"?(E={},this.childs.forEach(function($){E[$.getField()]=$.getValue()}),E):(this.value===void 0&&this._getDomValue(),this.value)}},{key:"getInternalValue",value:function(){return this.type==="array"?{type:this.type,childs:this.childs.map(function(C){return C.getInternalValue()})}:this.type==="object"?{type:this.type,childs:this.childs.map(function(C){return{field:C.getField(),value:C.getInternalValue()}})}:(this.value===void 0&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var C=this.parent?this.parent.getNodePath():[];return C.push(this),C}},{key:"clone",value:function(){var C,E;return(C=new R(this.editor)).type=this.type,C.field=this.field,C.fieldInnerText=this.fieldInnerText,C.fieldEditable=this.fieldEditable,C.previousField=this.previousField,C.value=this.value,C.valueInnerText=this.valueInnerText,C.previousValue=this.previousValue,C.expanded=this.expanded,C.visibleChilds=this.visibleChilds,this.childs?(E=[],this.childs.forEach(function($){$=$.clone(),$.setParent(C),E.push($)}),C.childs=E):C.childs=void 0,C}},{key:"expand",value:function(C){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),C!==!1&&this.childs.forEach(function(E){E.expand(C)}),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(C){this.childs&&(this.hideChilds(),C!==!1&&this.childs.forEach(function(E){E.collapse(C)}),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){var C=this.childs;if(C&&this.expanded){var C=this.dom.tr,E=C?C.parentNode:void 0;if(E){for(var $=this.getAppendDom(),G=($.parentNode||((K=C.nextSibling)?E.insertBefore($,K):E.appendChild($)),Math.min(this.childs.length,this.visibleChilds)),K=this._getNextTr(),Q=0;Qthis.visibleChilds?(Q=this.childs[this.visibleChilds-1],this.insertBefore(C,Q,$)):this.appendChild(C,!0,$):this.insertBefore(C,E,$),G&&K&&G.removeChild(K))}},{key:"insertBefore",value:function(C,E,$){if(this._hasChilds()){if(this.visibleChilds++,this.type==="object"&&C.field===void 0&&C.setField(""),E===this.append)C.setParent(this),C.fieldEditable=this.type==="object",this.childs.push(C);else{var G=this.childs.indexOf(E);if(G===-1)throw new Error("Node not found");C.setParent(this),C.fieldEditable=this.type==="object",this.childs.splice(G,0,C)}var K;this.expanded&&(G=C.getDom(),K=(E=E.getDom())?E.parentNode:void 0,E&&K&&K.insertBefore(G,E),C.showChilds(),this.showChilds()),$!==!1&&(this.updateDom({updateIndexes:!0}),C.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(C,E){this._hasChilds()&&(E=this.childs.indexOf(E),(E=this.childs[E+1])?this.insertBefore(C,E):this.appendChild(C))}},{key:"search",value:function(C,E){Array.isArray(E)||(E=[]);var $=C?C.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,this.field!==void 0&&E.length<=this.MAX_SEARCH_RESULTS&&(String(this.field).toLowerCase().indexOf($)!==-1&&(this.searchField=!0,E.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach(function(G){G.search(C,E)}):this.value!==void 0&&E.length<=this.MAX_SEARCH_RESULTS&&(String(this.value).toLowerCase().indexOf($)!==-1&&(this.searchValue=!0,E.push({node:this,elem:"value"})),this._updateDomValue()),E}},{key:"scrollTo",value:function(C){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,C)}},{key:"expandPathToNode",value:function(){for(var C=this;C&&C.parent;){for(var E=C.parent.type==="array"?C.index:C.parent.childs.indexOf(C);C.parent.visibleChilds/g,">").replace(/ {2}/g," ").replace(/^ /," ").replace(/ $/," "),C=(C=JSON.stringify(C)).substring(1,C.length-1),this.editor.options.escapeUnicode===!0?(0,b.escapeUnicodeChars)(C):C)}},{key:"_unescapeHTML",value:function(C){return C='"'+this._escapeJSON(C)+'"',(0,b.parse)(C).replace(/</g,"<").replace(/>/g,">").replace(/ |\u00A0/g," ").replace(/&/g,"&")}},{key:"_escapeJSON",value:function(C){for(var E="",$=0;$this.parent.visibleChilds},x.prototype.onEvent=function(R){R.type==="keydown"&&this.onKeyDown(R)};var A=x;function x(R,V){this.editor=R,this.parent=V,this.dom={}}function I(R,V){for(var B=0;Bthis.results.length-1&&(E=0),this._setActiveResult(E,C))}},{key:"previous",value:function(C){var E,$;this.results&&(E=this.results.length-1,$=this.resultIndex!==null?this.resultIndex-1:E,this._setActiveResult($=$<0?E:$,C))}},{key:"_setActiveResult",value:function(C,E){var $;if(this.activeResult&&($=this.activeResult.node,this.activeResult.elem==="field"?delete $.searchFieldActive:delete $.searchValueActive,$.updateDom()),!this.results||!this.results[C])return this.resultIndex=void 0,void(this.activeResult=void 0);this.resultIndex=C;var G=this.results[this.resultIndex].node,K=this.results[this.resultIndex].elem;K==="field"?G.searchFieldActive=!0:G.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],G.updateDom(),G.scrollTo(function(){E&&G.focus(K)})}},{key:"_clearDelay",value:function(){this.timeout!==void 0&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(C){this._clearDelay();var E=this;this.timeout=setTimeout(function($){E._onSearch()},this.delay)}},{key:"_onSearch",value:function(C){this._clearDelay();var E=this.dom.search.value,E=0Y.length)&&(ne=Y.length);for(var oe=0,pe=new Array(ne);oe=Y.left&&ne.right+oe<=Y.right&&ne.top-oe>=Y.top&&ne.bottom+oe<=Y.bottom}function ee(Y,ne,oe){var pe;return function(){var we=this,Ae=arguments,Fe=oe&&!pe;clearTimeout(pe),pe=setTimeout(function(){pe=null,oe||Y.apply(we,Ae)},ne),Fe&&Y.apply(we,Ae)}}function he(Y,ne){for(var oe=ne.length,pe=0,we=Y.length,Ae=ne.length;ne.charAt(pe)===Y.charAt(pe)&&pethis.length)&&(s=this.length),s-=p.length,p=this.indexOf(p,s),p!==-1&&p===s}),String.prototype.repeat||w(String.prototype,"repeat",function(p){for(var s="",a=this;0>=1)&&(a+=a);return s}),String.prototype.includes||w(String.prototype,"includes",function(p,s){return this.indexOf(p,s)!=-1}),Object.assign||(Object.assign=function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(p),a=1;a>>0,n=arguments[1]>>0,a=n<0?Math.max(s+n,0):Math.min(n,s),n=arguments[2],n=n===void 0?s:n>>0,e=n<0?Math.max(s+n,0):Math.min(n,s);a ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(p,s){return this.compare(p,s)==0},this.compareRange=function(s){var a=s.end,s=s.start,a=this.compare(a.row,a.column);return a==1?(a=this.compare(s.row,s.column))==1?2:a==0?1:0:a==-1?-2:(a=this.compare(s.row,s.column))==-1?-1:a==1?42:0},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(p){return this.comparePoint(p.start)==0&&this.comparePoint(p.end)==0},this.intersects=function(p){return p=this.compareRange(p),p==-1||p==0||p==1},this.isEnd=function(p,s){return this.end.row==p&&this.end.column==s},this.isStart=function(p,s){return this.start.row==p&&this.start.column==s},this.setStart=function(p,s){typeof p=="object"?(this.start.column=p.column,this.start.row=p.row):(this.start.row=p,this.start.column=s)},this.setEnd=function(p,s){typeof p=="object"?(this.end.column=p.column,this.end.row=p.row):(this.end.row=p,this.end.column=s)},this.inside=function(p,s){return this.compare(p,s)==0&&!this.isEnd(p,s)&&!this.isStart(p,s)},this.insideStart=function(p,s){return this.compare(p,s)==0&&!this.isEnd(p,s)},this.insideEnd=function(p,s){return this.compare(p,s)==0&&!this.isStart(p,s)},this.compare=function(p,s){return this.isMultiLine()||p!==this.start.row?pthis.end.row?1:this.start.row===p?s>=this.start.column?0:-1:this.end.row!==p||s<=this.end.column?0:1:sthis.end.column?1:0},this.compareStart=function(p,s){return this.start.row==p&&this.start.column==s?-1:this.compare(p,s)},this.compareEnd=function(p,s){return this.end.row==p&&this.end.column==s?1:this.compare(p,s)},this.compareInside=function(p,s){return this.end.row==p&&this.end.column==s?1:this.start.row==p&&this.start.column==s?-1:this.compare(p,s)},this.clipRows=function(p,s){var a,n;return this.end.row>s?a={row:s+1,column:0}:this.end.rows?n={row:s+1,column:0}:this.start.row>=1)&&(s+=s);return n};var w=/^\s\s*/,p=/\s\s*$/;m.stringTrimLeft=function(s){return s.replace(w,"")},m.stringTrimRight=function(s){return s.replace(p,"")},m.copyObject=function(s){var a,n={};for(a in s)n[a]=s[a];return n},m.copyArray=function(s){for(var a=[],n=0,e=s.length;nDate.now()-50)||(w=!1)},cancel:function(){w=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(f,m,b){var w=f("../lib/event"),p=f("../lib/useragent"),s=f("../lib/dom"),a=f("../lib/lang"),n=f("../clipboard"),e=p.isChrome<18,t=p.isIE,i=63ae+1?me.length:de,de+=fe.length+1,fe=fe+` +`+me):h&&0=_.length&&ae.value===_&&_&&ae.selectionEnd!==H}),E=null,$=(this.setInputHandler=function(ae){E=ae},!(this.getInputHandler=function(){return E})),G=function(ae,me){if($=$&&!1,A)return B(),ae&&v.onPaste(ae),A=!1,"";for(var ce=d.selectionStart,de=d.selectionEnd,fe=F,be=_.length-H,ke=ae,Me=ae.length-ce,Je=ae.length-de,He=0;0F-1&&_[_.length-He]==ae[ae.length-He];)He++,be--;Me-=He-1,Je-=He-1;var Qe=ke.length-He+1;return Qe<0&&(fe=-Qe,Qe=0),ke=ke.slice(0,Qe),me||ke||Me||fe||be||Je?(Qe=!(I=!0),p.isAndroid&&ke==". "&&(ke=" ",Qe=!0),ke&&!fe&&!be&&!Me&&!Je||L?v.onTextInput(ke):v.onTextInput(ke,{extendLeft:fe,extendRight:be,restoreStart:Me,restoreEnd:Je}),I=!1,_=ae,F=ce,H=de,z=Je,Qe?` +`:ke):""},K=function(me){if(x)return he();if(me&&me.inputType){if(me.inputType=="historyUndo")return v.execCommand("undo");if(me.inputType=="historyRedo")return v.execCommand("redo")}var me=d.value,ce=G(me,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(n){var n=n.getDocumentPosition(),e=this.editor,t=e.session.getBracketRange(n);t?(t.isEmpty()&&(t.start.column--,t.end.column++),this.setState("select")):(t=e.selection.getWordRange(n.row,n.column),this.setState("selectByWords")),this.$clickSelection=t,this.select()},this.onTripleClick=function(n){var n=n.getDocumentPosition(),e=this.editor,t=(this.setState("selectByLines"),e.getSelectionRange());t.isMultiLine()&&t.contains(n.row,n.column)?(this.$clickSelection=e.selection.getLineRange(t.start.row),this.$clickSelection.end=e.selection.getLineRange(t.end.row).end):this.$clickSelection=e.selection.getLineRange(n.row),this.select()},this.onQuadClick=function(a){var n=this.editor;n.selectAll(),this.$clickSelection=n.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(a){var n,e,t,i,r,l,o;if(!a.getAccelKey())return a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0),n=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),e=this.$lastScroll,t=a.domEvent.timeStamp,l=t-e.t,i=l?a.wheelX/l:e.vx,r=l?a.wheelY/l:e.vy,l<550&&(i=(i+e.vx)/2,r=(r+e.vy)/2),l=Math.abs(i/r),o=!1,1<=l&&n.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(o=!0),(o=l<=1&&n.renderer.isScrollableBy(0,a.wheelY*a.speed)?!0:o)?e.allowed=t:t-e.allowed<550&&(Math.abs(i)<=1.5*Math.abs(e.vx)&&Math.abs(r)<=1.5*Math.abs(e.vy)?(o=!0,e.allowed=t):e.allowed=0),e.t=t,e.vx=i,e.vy=r,o?(n.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()):void 0}}).call(p.prototype),m.DefaultHandlers=p}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(f,m,b){f("./lib/oop");var w=f("./lib/dom"),p="ace_tooltip";function s(a){this.isOpen=!1,this.$element=null,this.$parentNode=a}(function(){this.$init=function(){return this.$element=w.createElement("div"),this.$element.className=p,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(a){this.getElement().textContent=a},this.setHtml=function(a){this.getElement().innerHTML=a},this.setPosition=function(a,n){this.getElement().style.left=a+"px",this.getElement().style.top=n+"px"},this.setClassName=function(a){w.addCssClass(this.getElement(),a)},this.show=function(a,n,e){a!=null&&this.setText(a),n!=null&&e!=null&&this.setPosition(n,e),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=p,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(s.prototype),m.Tooltip=s}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(f,m,b){var w=f("../lib/dom"),p=f("../lib/oop"),s=f("../lib/event"),a=f("../tooltip").Tooltip;function n(e){a.call(this,e)}p.inherits(n,a),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,l=this.getWidth(),o=this.getHeight();i<(e+=15)+l&&(e-=e+l-i),r<(t+=15)+o&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(n.prototype),m.GutterHandler=function(e){var t,i,r,l=e.editor,o=l.renderer.$gutterLayer,c=new n(l.container);function h(){t=t&&clearTimeout(t),r&&(c.hide(),r=null,l._signal("hideGutterTooltip",c),l.off("mousewheel",h))}function y(v){c.setPosition(v.x,v.y)}e.editor.setDefaultHandler("guttermousedown",function(v){if(l.isFocused()&&v.getButton()==0){var d=o.getRegion(v);if(d!="foldWidgets"){var d=v.getDocumentPosition().row,u=l.session.selection;if(v.getShiftKey())u.selectTo(d,0);else{if(v.domEvent.detail==2)return l.selectAll(),v.preventDefault();e.$clickSelection=l.selection.getLineRange(d)}return e.setState("selectByLines"),e.captureMouse(v),v.preventDefault()}}}),e.editor.setDefaultHandler("guttermousemove",function(v){var d=v.domEvent.target||v.domEvent.srcElement;if(w.hasCssClass(d,"ace_fold-widget"))return h();r&&e.$tooltipFollowsMouse&&y(v),i=v,t=t||setTimeout(function(){t=null,(i&&!e.isMousePressed?function(){var u=i.getDocumentPosition().row,A=o.$annotations[u];if(!A)return h();if(u==l.session.getLength()){var u=l.renderer.pixelToScreenCoordinates(0,i.y).row,x=i.$pos;if(u>l.session.documentToScreenRow(x.row,x.column))return h()}r!=A&&(r=A.text.join(""),c.setHtml(r),(u=A.className)&&c.setClassName(u.trim()),c.show(),l._signal("showGutterTooltip",c),l.on("mousewheel",h),e.$tooltipFollowsMouse?y(i):(x=i.domEvent.target.getBoundingClientRect(),(A=c.getElement().style).left=x.right+"px",A.top=x.bottom+"px"))}:h)()},50)}),s.addListener(l.renderer.$gutter,"mouseout",function(v){i=null,r&&!t&&(t=setTimeout(function(){t=null,h()},50))},l),l.on("changeSession",h)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(s,m,b){var w=s("../lib/event"),p=s("../lib/useragent"),s=m.MouseEvent=function(a,n){this.domEvent=a,this.editor=n,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){w.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){w.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a,n=this.editor.getSelectionRange();return n.isEmpty()?this.$inSelection=!1:(a=this.getDocumentPosition(),this.$inSelection=n.contains(a.row,a.column)),this.$inSelection},this.getButton=function(){return w.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=p.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(f,m,b){var w=f("../lib/dom"),p=f("../lib/event"),s=f("../lib/useragent");function a(e){var t,i,r,l,o,c,h,y,v,d,u,A=e.editor,x=w.createElement("div"),I=(x.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",x.textContent="\xA0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(J){e[J]=this[J]},this),A.on("mousedown",this.onMouseDown.bind(e)),A.container),T=0;function L(){var J,R,V,B,C,E,$,G,K=c;c=A.renderer.screenToTextCoordinates(i,r),V=c,R=K,B=Date.now(),J=!R||V.row!=R.row,R=!R||V.column!=R.column,!d||J||R?(A.moveCursorToPosition(V),d=B,u={x:i,y:r}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),s.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&this.state=="dragReady"&&3H&&(i=-1),e=_.clientX=R,t=_.clientY=J,A=x=0,new w(_,n));if(c=R.getDocumentPosition(),D-i<500&&F.length==1&&!d)u++,_.preventDefault(),_.button=0,l=null,clearTimeout(l),n.selection.moveToPosition(c),(J=2<=u?n.selection.getLineRange(c.row):n.session.getBracketRange(c))&&!J.isEmpty()?n.selection.setRange(J):n.selection.selectWord(),v="wait";else{u=0;var R=n.selection.cursor,F=n.selection.isEmpty()?R:n.selection.anchor,J=n.renderer.$cursorLayer.getPixelPosition(R,!0),R=n.renderer.$cursorLayer.getPixelPosition(F,!0),F=n.renderer.scroller.getBoundingClientRect(),V=n.renderer.layerConfig.offset,B=n.renderer.scrollLeft,C=function(K,Q){return(K/=z)*K+(Q=Q/H-.75)*Q};if(_.clientX=_e.length||($e=Se[ue-1])!=l&&$e!=o||(de=_e[ue+1])!=l&&de!=o?c:(de=s?o:de)==$e?de:c;case A:return($e=0=B){for($=he+1;$=B;)$++;for(G=he,K=$-1;G>8;return E==0?191v&&C[ee]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?n.fromPoints(t,t):this.isBackwards()?n.fromPoints(t,e):n.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,r){var i=r?e.end:e.start,r=r?e.start:e.end;this.$setSelection(i.row,i.column,r.row,r.column)},this.$setSelection=function(e,t,i,r){var l,o;this.$silent||(l=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,r),this.$isEmpty=!n.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||o)&&this._emit("changeSelection"))},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return t===void 0&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(i,t){var i=typeof i=="number"?i:this.lead.row,r=this.session.getFoldLine(i),r=r?(i=r.start.row,r.end.row):i;return t===!0?new n(i,0,r,this.session.getLine(r).length):new n(i,0,r+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var r=e.column,l=e.column+t;return i<0&&(r=e.column-t,l=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,l).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):t.column===0?0=i.length)return this.moveCursorTo(e,i.length),this.moveCursorRight(),void(eh&&(d=a.substring(h,I-x.length),v.type==u?v.value+=d:(v.type&&c.push(v),v={type:u,value:d}));for(var T=0;Ts){for(y>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:a});h=this.$rowTokens.length;){if(this.$row+=1,s=s||this.$session.getLength(),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var s=this.$rowTokens,a=this.$tokenIndex,n=s[a].start;if(n!==void 0)return n;for(n=0;0V.length&&(R=V.length)}),u==1/0&&(u=R,d=v=!1),x&&u%A!=0&&(u=Math.floor(u/A)*A),J(d?I:L)},this.toggleBlockComment=function(l,o,c,h){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var v,d,u=(L=new i(o,h.row,h.column)).getCurrentToken(),A=(o.selection,o.selection.toOrientedRange());if(u&&/comment/.test(u.type)){for(;u&&/comment/.test(u.type);){if((k=u.value.indexOf(y.start))!=-1){var x=L.getCurrentTokenRow(),I=L.getCurrentTokenColumn()+k,T=new r(x,I,x,I+y.start.length);break}u=L.stepBackward()}for(var L,k,u=(L=new i(o,h.row,h.column)).getCurrentToken();u&&/comment/.test(u.type);){if((k=u.value.indexOf(y.end))!=-1){var x=L.getCurrentTokenRow(),I=L.getCurrentTokenColumn()+k,_=new r(x,I,x,I+y.end.length);break}u=L.stepForward()}_&&o.remove(_),T&&(o.remove(T),v=T.start.row,d=-y.start.length)}else d=y.start.length,v=c.start.row,o.insert(c.end,y.end),o.insert(c.start,y.start);A.start.row==v&&(A.start.column+=d),A.end.row==v&&(A.end.column+=d),o.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(l,o,c){return this.$getIndent(o)},this.checkOutdent=function(l,o,c){return!1},this.autoOutdent=function(l,o,c){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){for(var o in this.$embeds=[],this.$modes={},l){var c,h,y;l[o]&&(h=(c=l[o]).prototype.$id,(y=p.$modes[h])||(p.$modes[h]=y=new c),p.$modes[o]||(p.$modes[o]=y),this.$embeds.push(o),this.$modes[o]=y)}for(var v=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;othis.row||(n=function(e,t,i){var c=e.action=="insert",r=(c?1:-1)*(e.end.row-e.start.row),l=(c?1:-1)*(e.end.column-e.start.column),o=e.start,c=c?o:e.end;return a(t,o,i)?{row:t.row,column:t.column}:a(c,t,!i)?{row:t.row+r,column:t.column+(t.row==c.row?l:0)}:{row:o.row,column:o.column}}(n,{row:this.row,column:this.column},this.$insertRight),this.setPosition(n.row,n.column,!0))},this.setPosition=function(n,e,t){t=t?{row:n,column:e}:this.$clipPositionToDocument(n,e),this.row==t.row&&this.column==t.column||(n={row:this.row,column:this.column},this.row=t.row,this.column=t.column,this._signal("change",{old:n,value:t}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(n){this.document=n||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(n,e){var t={};return n>=this.document.getLength()?(t.row=Math.max(0,this.document.getLength()-1),t.column=this.document.getLine(t.row).length):n<0?(t.row=0,t.column=0):(t.row=n,t.column=Math.min(this.document.getLine(t.row).length,Math.max(0,e))),e<0&&(t.column=0),t}}).call(s.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(f,m,b){function w(t){this.$lines=[""],t.length===0?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)}var p=f("./lib/oop"),s=f("./apply_delta").applyDelta,a=f("./lib/event_emitter").EventEmitter,n=f("./range").Range,e=f("./anchor").Anchor;(function(){p.implement(this,a),this.setValue=function(t){var i=this.getLength()-1;this.remove(new n(0,0,i,this.getLine(i).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,i){return new e(this,t,i)},"aaa".split(/a/).length===0?this.$split=function(t){return t.replace(/\r\n|\r/g,` +`).split(` +`)}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){t=t.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=t?t[1]:` +`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r +`;case"unix":return` +`;default:return this.$autoNewLine||` +`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return t==`\r +`||t=="\r"||t==` +`},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,i){return this.$lines.slice(t,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var i,r;return t.start.row===t.end.row?i=[this.getLine(t.start.row).substring(t.start.column,t.end.column)]:((i=this.getLines(t.start.row,t.end.row))[0]=(i[0]||"").substring(t.start.column),r=i.length-1,t.end.row-t.start.row==r&&(i[r]=i[r].substring(0,t.end.column))),i},this.insertLines=function(t,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,i)},this.removeLines=function(t,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,i)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(t,this.$split(i))},this.insertInLine=function(l,i){var r=this.clippedPos(l.row,l.column),l=this.pos(l.row,l.column+i.length);return this.applyDelta({start:r,end:l,action:"insert",lines:[i]},!0),this.clonePos(l)},this.clippedPos=function(t,i){var r=this.getLength(),r=(t===void 0?t=r:t<0?t=0:r<=t&&(t=r-1,i=void 0),this.getLine(t));return i==null&&(i=r.length),{row:t,column:i=Math.min(Math.max(i,0),r.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,i){return{row:t,column:i}},this.$clipPosition=function(t){var i=this.getLength();return t.row>=i?(t.row=Math.max(0,i-1),t.column=this.getLine(i-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,i){var r=0,r=(t=Math.min(Math.max(t,0),this.getLength()))a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=e.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(w.prototype),m.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(f,m,b){function w(a,n,e){this.setRegexp(a),this.clazz=n,this.type=e||"text"}var p=f("./lib/lang"),s=(f("./lib/oop"),f("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,n,e,t){if(this.regExp)for(var i=t.firstRow,r=t.lastRow,l={},o=i;o<=r;o++){var c=this.cache[o];c==null&&(c=(c=(c=p.getMatchOffsets(e.getLine(o),this.regExp)).length>this.MAX_RANGES?c.slice(0,this.MAX_RANGES):c).map(function(d){return new s(o,d.offset,o,d.offset+d.length)}),this.cache[o]=c.length?c:"");for(var h=c.length;h--;){var y=c[h].toScreenRange(e),v=y.toString();l[v]||(l[v]=!0,n.drawSingleLineMarker(a,y,this.clazz,t))}}}}).call(w.prototype),m.SearchHighlight=w}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(f,m,b){var w=f("../range").Range;function p(s,a){this.foldData=s,Array.isArray(a)?this.folds=a:a=this.folds=[a],s=a[a.length-1],this.range=new w(a[0].start.row,a[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(n){n.setFoldLine(this)},this)}(function(){this.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(a){a.start.row+=s,a.end.row+=s})},this.addFold=function(s){if(s.sameRow){if(s.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(a,n){return-a.range.compareEnd(n.start.row,n.start.column)}),0=this.start.row&&s<=this.end.row},this.walk=function(s,a,n){var e,t,i=0,r=this.folds,l=!0;a==null&&(a=this.end.row,n=this.end.column);for(var o=0;oa||n[n.length-1].start.row=e);r++);if(s.action=="insert")for(var o=t-e,c=-a.column+n.column;re);r++)h.start.row==e&&h.start.column>=a.column&&(h.start.column==a.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=o)),h.end.row==e&&h.end.column>=a.column&&(h.end.column==a.column&&this.$bias<0||(h.end.column==a.column&&0h.start.column&&h.end.column==i[r+1].start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=o));else for(var h,o=e-t,c=a.column-n.column;rt);r++)h.end.rowa.column)&&(h.end.column=a.column,h.end.row=a.row):(h.end.column+=c,h.end.row+=o):h.end.row>t&&(h.end.row+=o),h.start.rowa.column)&&(h.start.column=a.column,h.start.row=a.row):(h.start.column+=c,h.start.row+=o):h.start.row>t&&(h.start.row+=o);if(o!=0&&r=n)return r;if(r.end.row>n)return null}return null},this.getNextFoldLine=function(n,e){var t=this.$foldData,i=0;for((i=e?t.indexOf(e):i)==-1&&(i=0);i=n)return r}return null},this.getFoldedRowCount=function(n,e){for(var t=this.$foldData,i=e-n+1,r=0;rc)break;while(r&&o.test(r.type));r=i.stepBackward()}else r=i.getCurrentToken();return l.end.row=i.getCurrentTokenRow(),l.end.column=i.getCurrentTokenColumn()+r.value.length-2,l}},this.foldAll=function(n,e,t,i){t==null&&(t=1e5);var r=this.foldWidgets;if(r){e=e||this.getLength();for(var l,o=n=n||0;o=n&&(o=l.end.row,l.collapseChildren=t,this.addFold("...",l))}},this.foldToLevel=function(n){for(this.foldAll();0=n)break}i--}return{range:i!==-1&&l,firstRange:o}},this.onFoldWidgetClick=function(n,e){var t={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};this.$toggleFoldWidget(n,t)||(n=e.target||e.srcElement)&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")},this.$toggleFoldWidget=function(n,e){if(this.getFoldWidget){var l=this.getFoldWidget(n),t=this.getLine(n),l=l==="end"?-1:1,t=this.getFoldAt(n,l==-1?0:t.length,l);if(t)return e.children||e.all?this.removeFold(t):this.expandFold(t),t;var i,r,l=this.getFoldWidgetRange(n,!0);return l&&!l.isMultiLine()&&(t=this.getFoldAt(l.start.row,l.start.column,1))&&l.isEqual(t.range)?(this.removeFold(t),t):(e.siblings?((t=this.getParentFoldRangeData(n)).range&&(i=t.range.start.row+1,r=t.range.end.row),this.foldAll(i,r,e.all?1e4:0)):e.children?(r=l?l.end.row:this.getLength(),this.foldAll(n+1,r,e.all?1e4:0)):l&&(e.all&&(l.collapseChildren=1e4),this.addFold("...",l)),l)}},this.toggleFoldWidget=function(n){var e,t=this.selection.getCursor().row;t=this.getRowFoldStart(t),this.$toggleFoldWidget(t,{})||(e=(e=this.getParentFoldRangeData(t,!0)).range||e.firstRange)&&(t=e.start.row,(t=this.getFoldAt(t,this.getLine(t).length,1))?this.removeFold(t):this.addFold("...",e))},this.updateFoldWidgets=function(n){var e=n.start.row,t=n.end.row-e;t==0?this.foldWidgets[e]=null:n.action=="remove"?this.foldWidgets.splice(e,1+t,null):((n=Array(1+t)).unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,n))},this.tokenizerUpdateFoldWidgets=function(n){n=n.data,n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(f,m,b){var w=f("../token_iterator").TokenIterator,p=f("../range").Range;m.BracketMatch=function(){this.findMatchingBracket=function(s,a){return s.column==0||(a=a||this.getLine(s.row).charAt(s.column-1),a=="")?null:(a=a.match(/([\(\[\{])|([\)\]\}])/),a?a[1]?this.$findClosingBracket(a[1],s):this.$findOpeningBracket(a[2],s):null)},this.getBracketRange=function(s){var a,n,e=this.getLine(s.row),t=!0,i=e.charAt(s.column-1),r=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(r||(i=e.charAt(s.column),s={row:s.row,column:s.column+1},r=i&&i.match(/([\(\[\{])|([\)\]\}])/),t=!1),!r)return null;if(r[1]){if(!(n=this.$findClosingBracket(r[1],s)))return null;a=p.fromPoints(s,n),t||(a.end.column++,a.start.column--),a.cursor=a.end}else{if(!(n=this.$findOpeningBracket(r[2],s)))return null;a=p.fromPoints(n,s),t||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(s){var a=this.getLine(s.row),n=a.charAt(s.column-1),e=n&&n.match(/([\(\[\{])|([\)\]\}])/);return e||(n=a.charAt(s.column),s={row:s.row,column:s.column+1},e=n&&n.match(/([\(\[\{])|([\)\]\}])/)),e?(a=new p(s.row,s.column-1,s.row,s.column),n=e[1]?this.$findClosingBracket(e[1],s):this.$findOpeningBracket(e[2],s),n?[a,new p(n.row,n.column,n.row,n.column+1)]:[a]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,a,n){var e=this.$brackets[s],t=1,i=new w(this,a.row,a.column),r=i.getCurrentToken();if(r=r||i.stepForward()){n=n||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var l=a.column-i.getCurrentTokenColumn()-2,o=r.value;;){for(;0<=l;){var c=o.charAt(l);if(c==e){if(--t==0)return{row:i.getCurrentTokenRow(),column:l+i.getCurrentTokenColumn()}}else c==s&&(t+=1);--l}for(;(r=i.stepBackward())&&!n.test(r.type););if(r==null)break;l=(o=r.value).length-1}return null}},this.$findClosingBracket=function(s,a,n){var e=this.$brackets[s],t=1,i=new w(this,a.row,a.column),r=i.getCurrentToken();if(r=r||i.stepForward()){n=n||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var l=a.column-i.getCurrentTokenColumn();;){for(var o=r.value,c=o.length;l>1,T=d[I];if(Td&&(d=u.screenWidth)}),this.lineWidgetWidth=d},this.$computeWidth=function(d){if(this.$modified||d){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var u=this.doc.getAllLines(),A=this.$rowLengthCache,x=0,I=0,T=this.$foldData[I],L=T?T.start.row:1/0,k=u.length,_=0;_x&&(x=A[_])}this.screenWidth=x}},this.getLine=function(d){return this.doc.getLine(d)},this.getLines=function(d,u){return this.doc.getLines(d,u)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(d){return this.doc.getTextRange(d||this.selection.getRange())},this.insert=function(d,u){return this.doc.insert(d,u)},this.remove=function(d){return this.doc.remove(d)},this.removeFullLines=function(d,u){return this.doc.removeFullLines(d,u)},this.undoChanges=function(d,u){if(d.length){this.$fromUndo=!0;for(var A=d.length-1;A!=-1;A--){var x=d[A];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!u&&this.$undoSelect&&(d.selectionBefore?this.selection.fromJSON(d.selectionBefore):this.selection.setRange(this.$getUndoSelection(d,!0))),this.$fromUndo=!1}},this.redoChanges=function(d,u){if(d.length){this.$fromUndo=!0;for(var A=0;Ad.end.column&&(_.start.column+=T),_.end.row==d.end.row&&_.end.column>d.end.column&&(_.end.column+=T)),I&&_.start.row>=d.end.row&&(_.start.row+=I,_.end.row+=I)),_.end=this.insert(_.start,L),k.length&&(x=d.start,A=_.start,I=A.row-x.row,T=A.column-x.column,this.addFolds(k.map(function(F){return(F=F.clone()).start.row==x.row&&(F.start.column+=T),F.end.row==x.row&&(F.end.column+=T),F.start.row+=I,F.end.row+=I,F}))),_},this.indentRows=function(d,u,A){A=A.replace(/\t/g,this.getTabString());for(var x=d;x<=u;x++)this.doc.insertInLine({row:x,column:0},A)},this.outdentRows=function(d){for(var u=d.collapseRows(),A=new r(0,0,0,0),x=this.getTabSize(),I=u.start.row;I<=u.end.row;++I){var T=this.getLine(I);A.start.row=I,A.end.row=I;for(var L=0;Lthis.doc.getLength()-1)return 0;x=I-u}else d=this.$clipRowToDocument(d),x=(u=this.$clipRowToDocument(u))-d+1;var I=new r(d,0,u,Number.MAX_VALUE),I=this.getFoldsInRange(I).map(function(L){return(L=L.clone()).start.row+=x,L.end.row+=x,L}),T=T==0?this.doc.getLines(d,u):this.doc.removeFullLines(d,u);return this.doc.insertFullLines(d+x,T),I.length&&this.addFolds(I),x},this.moveLinesUp=function(d,u){return this.$moveLines(d,u,-1)},this.moveLinesDown=function(d,u){return this.$moveLines(d,u,1)},this.duplicateLines=function(d,u){return this.$moveLines(d,u,0)},this.$clipRowToDocument=function(d){return Math.max(0,Math.min(d,this.doc.getLength()-1))},this.$clipColumnToRow=function(d,u){return u<0?0:Math.min(this.doc.getLine(d).length,u)},this.$clipPositionToDocument=function(d,u){var A;return u=Math.max(0,u),u=d<0?d=0:(A=this.doc.getLength())<=d?this.doc.getLine(d=A-1).length:Math.min(this.doc.getLine(d).length,u),{row:d,column:u}},this.$clipRangeToDocument=function(d){d.start.row<0?(d.start.row=0,d.start.column=0):d.start.column=this.$clipColumnToRow(d.start.row,d.start.column);var u=this.doc.getLength()-1;return d.end.row>u?(d.end.row=u,d.end.column=this.doc.getLine(u).length):d.end.column=this.$clipColumnToRow(d.end.row,d.end.column),d},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(d){d!=this.$useWrapMode&&(this.$useWrapMode=d,this.$modified=!0,this.$resetRowCache(0),d&&(d=this.getLength(),this.$wrapData=Array(d),this.$updateWrapData(0,d-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(d,u){this.$wrapLimitRange.min===d&&this.$wrapLimitRange.max===u||(this.$wrapLimitRange={min:d,max:u},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(d,x){var A=this.$wrapLimitRange,x=(A.max<0&&(A={min:x,max:x}),this.$constrainWrapLimit(d,A.min,A.max));return x!=this.$wrapLimit&&1=I.row&&J.shiftRow(-k);L=T}else{var z=Array(k),D=(z.unshift(T,0),u?this.$wrapData:this.$rowLengthCache),F=(D.splice.apply(D,z),this.$foldData),H=0;for((J=this.getFoldLine(T))&&((D=J.range.compareInside(x.row,x.column))==0?(J=J.split(x.row,x.column))&&(J.shiftRow(k),J.addRemoveChars(L,0,I.column-x.column)):D==-1&&(J.addRemoveChars(T,0,I.column-x.column),J.shiftRow(k)),H=F.indexOf(J)+1);H=T&&J.shiftRow(k)}else{var J,k=Math.abs(d.start.column-d.end.column);A==="remove"&&(_=this.getFoldsInRange(d),this.removeFolds(_),k=-k),(J=this.getFoldLine(T))&&J.addRemoveChars(T,x.column,k)}return u&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,u?this.$updateWrapData(T,L):this.$updateRowLengthCache(T,L),_},this.$updateRowLengthCache=function(d,u,A){this.$rowLengthCache[d]=null,this.$rowLengthCache[u]=null},this.$updateWrapData=function(d,u){var A,x,I=this.doc.getAllLines(),T=this.getTabSize(),L=this.$wrapData,k=this.$wrapLimit,_=d;for(u=Math.min(u,I.length-1);_<=u;)(x=this.getFoldLine(_,x))?(A=[],x.walk(function(F,H,z,D){var J;if(F!=null){(J=this.$getDisplayTokens(F,A.length))[0]=h;for(var R=1;R>2)),T-1);JH[D-1]):!D,this.getLength()-1),R=this.getNextFoldLine(L),V=R?R.start.row:1/0;_<=d&&!(d<_+(F=this.getRowLength(L))||J<=L);)_+=F,V<++L&&(L=R.end.row+1,V=(R=this.getNextFoldLine(L,R))?R.start.row:1/0),T&&(this.$docRowCache.push(L),this.$screenRowCache.push(_));if(R&&R.start.row<=L)x=this.getFoldDisplayLine(R),L=R.start.row;else{if(_+F<=d||JL[k-1]):!k,this.getNextFoldLine(T)),F=_?_.start.row:1/0;T=J[R];)A++,R++;H=H.substring(J[R-1]||0,H.length),D=0d||(r.push(o=new a(y,d,y+c-1,u)),2L&&r[v].end.row==t.end.row;)v--;for(r=r.slice(A,v+1),A=0,v=r.length;An.getLength())){var I=n.getLine(x),d=I.search(t[0]);if(!(!l&&d=I.length)break;t.lastIndex=k+=1}if(x.index+L>u)break;T.push(x.index,L)}for(var _=T.length-1;0<=_;_-=2){var F=T[_-1];if(A(d,F,d,F+(L=T[_])))return!0}}:function(d,u,A){var x=n.getLine(d);for(t.lastIndex=u;I=t.exec(x);){var I,T=I[0].length;if(A(d,I=I.index,d,I+T))return!0;if(!T&&(t.lastIndex=I+=1,I>=x.length))return!1}},{forEach:l?function(d){var u=h.row;if(!r(u,h.column,d)){for(u--;y<=u;u--)if(r(u,Number.MAX_VALUE,d))return;if(e.wrap!=0){for(u=v,y=h.row;y<=u;u--)if(r(u,Number.MAX_VALUE,d))return}}}:function(d){var u=h.row;if(!r(u,h.column,d)){for(u+=1;u<=v;u++)if(r(u,0,d))return;if(e.wrap!=0){for(u=y,v=h.row;u<=v;u++)if(r(u,0,d))return}}}}}}).call(w.prototype),m.Search=w}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(f,m,b){var w=f("../lib/keys"),p=f("../lib/useragent"),s=w.KEY_MODS;function a(e,t){this.platform=t||(p.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function n(e,t){a.call(this,e,t),this.$singleCommand=!1}n.prototype=a.prototype,function(){function e(t){return typeof t=="object"&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,i){var r,l=t&&(typeof t=="string"?t:t.name),o=(t=this.commands[l],i||delete this.commands[l],this.commandKeyBinding);for(r in o){var c,h=o[r];h==t?delete o[r]:Array.isArray(h)&&(c=h.indexOf(t))!=-1&&(h.splice(c,1),h.length==1&&(o[r]=h[0]))}},this.bindKey=function(t,i,r){if(typeof t=="object"&&t&&(r==null&&(r=t.position),t=t[this.platform]),t)return typeof i=="function"?this.addCommand({exec:i,bindKey:t,name:i.name||t}):void t.split("|").forEach(function(h){var o="",c=(h.indexOf(" ")!=-1&&(h=(c=h.split(/\s+/)).pop(),c.forEach(function(y){y=this.parseKeys(y),y=s[y.hashId]+y.key,o+=(o?" ":"")+y,this._addCommandToBinding(o,"chainKeys")},this),o+=" "),this.parseKeys(h)),h=s[c.hashId]+c.key;this._addCommandToBinding(o+h,i,r)},this)},this._addCommandToBinding=function(t,i,r){var l=this.commandKeyBinding;if(i)if(!l[t]||this.$singleCommand)l[t]=i;else{Array.isArray(l[t])?(c=l[t].indexOf(i))!=-1&&l[t].splice(c,1):l[t]=[l[t]],typeof r!="number"&&(r=e(i));for(var o=l[t],c=0;cr?r+1:r,e.selection.moveCursorTo(t.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,l=[];r.length<1&&(r=[e.selection.getRange()]);for(var o=0;o=k.lastRow||L.end.row<=k.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}I=this.selection.toJSON(),this.curOp.selectionAfter=I,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(I),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(I){var T,L,k,_;this.$mergeUndoDeltas&&(T=this.prevOp,L=this.$mergeableCommands,k=T.command&&I.command.name==T.command.name,I.command.name=="insertstring"?(_=I.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),k=k&&this.mergeNextCommand&&(!/\s/.test(_)||/\s/.test(T.args)),this.mergeNextCommand=!0):k=k&&L.indexOf(I.command.name)!==-1,(k=this.$mergeUndoDeltas!="always"&&2e3"&&z--),_&&0<=z;);else{do if(_=D,D=k.stepBackward(),_){if(_.type.indexOf("tag-name")!==-1)F===_.value&&(D.value==="<"?z++:D.value===""&&z--);else if(_.value==="/>"){for(var J=0,R=D;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===F){z--;break}if(R.value==="<")break;R=k.stepBackward(),J++}for(var V=0;VD.search(/\S|$/)&&(z=D.substr(F.column).search(/\S|$/),k.doc.removeInLine(F.row,F.column,F.column+z))),this.clearSelection(),F.column),z=k.getState(F.row),D=k.getLine(F.row),J=_.checkOutdent(z,D,I);k.insert(F,I),L&&L.selection&&(L.selection.length==2?this.selection.setSelectionRange(new c(F.row,H+L.selection[0],F.row,H+L.selection[1])):this.selection.setSelectionRange(new c(F.row+L.selection[0],L.selection[1],F.row+L.selection[2],L.selection[3]))),this.$enableAutoIndent&&(k.getDocument().isNewLine(I)&&(H=_.getNextLineIndent(z,D.slice(0,F.column),k.getTabString()),k.insert({row:F.row+1,column:0},H)),J&&_.autoOutdent(z,k,F.row))},this.autoIndent=function(){for(var I,T,L,k,_,F=this.session,H=F.getMode(),z=(L=this.selection.isEmpty()?(T=0,F.doc.getLength()-1):(T=(I=this.getSelectionRange()).start.row,I.end.row),""),D="",J=F.getTabString(),R=T;R<=L;R++)0z.toLowerCase()?1:0});for(var _=new c(0,0,0,0),k=I.first;k<=I.last;k++){var F=T.getLine(k);_.start.row=k,_.end.row=k,_.end.column=F.length,T.replace(_,L[k-I.first])}},this.toggleCommentLines=function(){var I=this.session.getState(this.getCursorPosition().row),T=this.$getSelectedRows();this.session.getMode().toggleCommentLines(I,this.session,T.first,T.last)},this.toggleBlockComment=function(){var I=this.getCursorPosition(),T=this.session.getState(I.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(T,this.session,L,I)},this.getNumberAt=function(I,T){for(var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g,k=(L.lastIndex=0,this.session.getLine(I));L.lastIndex=T)return{value:_[0],start:_.index,end:_.index+_[0].length}}return null},this.modifyNumber=function(I){var T,L,k,_=this.selection.getCursor().row,F=this.selection.getCursor().column,H=new c(_,F-1,_,F),H=this.session.getTextRange(H);!isNaN(parseFloat(H))&&isFinite(H)?(H=this.getNumberAt(_,F))&&(k=0<=H.value.indexOf(".")?H.start+H.value.indexOf(".")+1:H.end,T=H.start+H.value.length-k,L=parseFloat(H.value),L*=Math.pow(10,T),k!==H.end&&FC+1)break;C=E.last}for(R--,z=this.session.$moveLines(B,C,T?0:I),T&&I==-1&&(V=R+1);V<=R;)H[V].moveBy(z,0),V++;D+=z=T?z:0}L.fromOrientedRange(L.ranges[0]),L.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(I){return I=(I||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(I.start.row),last:this.session.getRowFoldEnd(I.end.row)}},this.onCompositionStart=function(I){this.renderer.showComposition(I)},this.onCompositionUpdate=function(I){this.renderer.setCompositionText(I)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(I){return I>=this.getFirstVisibleRow()&&I<=this.getLastVisibleRow()},this.isRowFullyVisible=function(I){return I>=this.renderer.getFirstFullyVisibleRow()&&I<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(F,T){var L=this.renderer,k=this.renderer.layerConfig,_=F*Math.floor(k.height/k.lineHeight),F=(T===!0?this.selection.$moveSelection(function(){this.moveCursorBy(_,0)}):T===!1&&(this.selection.moveCursorBy(_,0),this.selection.clearSelection()),L.scrollTop);L.scrollBy(0,_*k.lineHeight),T!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(F)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(I){this.renderer.scrollToRow(I)},this.scrollToLine=function(I,T,L,k){this.renderer.scrollToLine(I,T,L,k)},this.centerSelection=function(){var I=this.getSelectionRange(),I={row:Math.floor(I.start.row+(I.end.row-I.start.row)/2),column:Math.floor(I.start.column+(I.end.column-I.start.column)/2)};this.renderer.alignCursor(I,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(I,T){this.selection.moveCursorTo(I,T)},this.moveCursorToPosition=function(I){this.selection.moveCursorToPosition(I)},this.jumpToMatching=function(I,T){var L=this.getCursorPosition(),k=new u(this.session,L.row,L.column),_=k.getCurrentToken(),F=_||k.stepForward();if(F){var H,z,D,J=!1,R={},V=L.column-F.start,B={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(F.value.match(/[{}()\[\]]/g)){for(;Vwindow.innerHeight)&&null)!=null&&(_.style.top=R+"px",_.style.left=D.left+"px",_.style.height=J.lineHeight+"px",_.scrollIntoView(k)),k=T=null)}),this.setAutoScrollEditorIntoView=function(D){D||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",H))})},this.$resetCursorStyle=function(){var I=this.$cursorStyle||"ace",T=this.renderer.$cursorLayer;T&&(T.setSmoothBlinking(/smooth/.test(I)),T.isBlinking=!this.$readOnly&&I!="wide",s.setCssClass(T.element,"ace_slim-cursors",/slim/.test(I)))},this.prompt=function(I,T,L){var k=this;d.loadModule("./ext/prompt",function(_){_.prompt(k,I,T,L)})}}.call(w.prototype),d.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(I){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:I})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(I){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(I){this.textInput.setReadOnly(I),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(I){this.textInput.setCopyWithEmptySelection(I)},initialValue:!1},cursorStyle:{set:function(I){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(I){this.setAutoScrollEditorIntoView(I)}},keyboardHandler:{set:function(I){this.setKeyboardHandler(I)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(I){this.session.setValue(I)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(I){this.setSession(I)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(I){this.renderer.$gutterLayer.setShowLineNumbers(I),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),I&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(I){this.$showLineNumbers&&I?x.attach(this):x.detach(this)}},placeholder:{set:function(I){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var T=this.session&&(this.renderer.$composition||this.getValue());T&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),s.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):T||this.renderer.placeholderNode?!T&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),s.addCssClass(this.container,"ace_hasPlaceholder"),(T=s.createElement("div")).className="ace_placeholder",T.textContent=this.$placeholder||"",this.renderer.placeholderNode=T,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(I,T){return(Math.abs(I.selection.lead.row-T)||T+1+(T<9?"\xB7":""))+""},getWidth:function(I,T,L){return Math.max(T.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function(I,T){T.renderer.$loop.schedule(T.renderer.CHANGE_GUTTER)},attach:function(I){I.renderer.$gutterLayer.$renderer=this,I.on("changeSelection",this.update),this.update(null,I)},detach:function(I){I.renderer.$gutterLayer.$renderer==this&&(I.renderer.$gutterLayer.$renderer=null),I.off("changeSelection",this.update),this.update(null,I)}});m.Editor=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(f,m,b){function w(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}(function(){this.addSession=function(o){this.$session=o},this.add=function(o,c,h){this.$fromUndo||o!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),c!==!1&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),o.id=this.$rev=++this.$maxRev),o.action!="remove"&&o.action!="insert"||(this.$lastDelta=o),this.lastDeltas.push(o))},this.addSelection=function(o,c){this.selections.push({value:o,rev:c||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(o,c){c==null&&(c=this.$rev+1);for(var h=this.$undoStack,y=h.length;y--;){var v=h[y][0];if(v.id<=o)break;v.id"+o.end.row+":"+o.end.column}function t(o,c){var h=o.action=="insert",y=c.action=="insert";if(h&&y)if(0<=s(c.start,o.end))i(c,o,-1);else{if(!(s(c.start,o.start)<=0))return;i(o,c,1)}else if(h&&!y)if(0<=s(c.start,o.end))i(c,o,-1);else{if(!(s(c.end,o.start)<=0))return;i(o,c,-1)}else if(!h&&y)if(0<=s(c.start,o.start))i(c,o,1);else{if(!(s(c.start,o.start)<=0))return;i(o,c,1)}else if(!h&&!y)if(0<=s(c.start,o.start))i(c,o,1);else{if(!(s(c.end,o.start)<=0))return;i(o,c,-1)}return 1}function i(o,c,h){r(o.start,c.start,c.end,h),r(o.end,c.start,c.end,h)}function r(o,c,h,y){o.row==(y==1?c:h).row&&(o.column+=y*(h.column-c.column)),o.row+=y*(h.row-c.row)}function l(o,c){var h=o.lines,y=o.end,d=(o.end=a(c),o.end.row-o.start.row),v=h.splice(d,h.length),d=d?c.column:c.column-o.start.column;return h.push(v[0].substring(0,d)),v[0]=v[0].substr(d),{start:a(c),end:y,lines:v,action:o.action}}m.UndoManager=w}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(f,m,b){function w(s,a){this.element=s,this.canvasHeight=a||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var p=f("../lib/dom");(function(){this.moveContainer=function(s){p.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},this.pageChanged=function(s,a){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)},this.computeLineTop=function(s,a,n){var e=a.firstRowScreen*a.lineHeight,e=Math.floor(e/this.canvasHeight);return n.documentToScreenRow(s,0)*a.lineHeight-e*this.canvasHeight},this.computeLineHeight=function(s,a,n){return a.lineHeight*n.getRowLineCount(s)},this.getLength=function(){return this.cells.length},this.get=function(s){return this.cells[s]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var a=p.createFragment(this.element),n=0;nv+1;)this.$lines.pop();break}(y=this.$lines.get(++v))?y.row=d:(y=this.$lines.createCell(d,i,this.session,t),this.$lines.push(y)),this.$renderCell(y,i,c,d),d++}this._signal("afterRender"),this.$updateGutterWidth(i)},this.$updateGutterWidth=function(i){var r=this.session,c=r.gutterRenderer||this.$renderer,o=r.$firstLineNumber,l=this.$lines.last()?this.$lines.last().text:"",o=((this.$fixedWidth||r.$useWrapMode)&&(l=r.getLength()+o-1),c?c.getWidth(r,l,i):l.toString().length*i.characterWidth),c=this.$padding||this.$computePadding();(o+=c.left+c.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){var i;this.$highlightGutterLine&&(i=this.session.selection.getCursor(),this.$cursorRow!==i.row&&(this.$cursorRow=i.row))},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!this.$cursorCell||this.$cursorCell.row!=i){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var r=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(o.row>this.$cursorRow){var c=this.session.getFoldLine(this.$cursorRow);if(!(0l.right-r.right?"foldWidgets":void 0}}).call(w.prototype),m.Gutter=w}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(f,m,b){function w(a){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}var p=f("../range").Range,s=f("../lib/dom");(function(){this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setMarkers=function(a){this.markers=a},this.elt=function(a,n){var e=this.i!=-1&&this.element.childNodes[this.i];e?this.i++:(e=document.createElement("div"),this.element.appendChild(e),this.i=-1),e.style.cssText=n,e.className=a},this.update=function(a){if(a){var n,e;for(e in this.config=a,this.i=0,this.markers){var t,i,r,l=this.markers[e];l.range?(r=l.range.clipRows(a.firstRow,a.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),l.renderer?(t=this.$getTop(r.start.row,a),i=this.$padding+r.start.column*a.characterWidth,l.renderer(n,r,i,t,a)):l.type=="fullLine"?this.drawFullLineMarker(n,r,l.clazz,a):l.type=="screenLine"?this.drawScreenLineMarker(n,r,l.clazz,a):r.isMultiLine()?l.type=="text"?this.drawTextMarker(n,r,l.clazz,a):this.drawMultiLineMarker(n,r,l.clazz,a):this.drawSingleLineMarker(n,r,l.clazz+" ace_start ace_br15",a)):l.update(n,this,this.session,a)}if(this.i!=-1)for(;this.it.lastRow)for(o=this.session.getFoldedRowCount(t.lastRow+1,i.lastRow);0i.lastRow&&this.$lines.push(this.$renderLinesFragment(t,i.lastRow+1,t.lastRow))},this.$renderLinesFragment=function(t,i,r){for(var l=[],o=i,c=this.session.getNextFoldLine(o),h=c?c.start.row:1/0;h=c;)h=this.$renderToken(y,h,d,u.substring(0,c-l)),u=u.substring(c-l),l=c,y=this.$createLineElement(),t.appendChild(y),y.appendChild(this.dom.createTextNode(a.stringRepeat("\xA0",r.indent),this.element)),h=0,c=r[++o]||Number.MAX_VALUE;u.length!=0&&(l+=u.length,h=this.$renderToken(y,h,d,u))}}r[r.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(y,h,null,"",!0)},this.$renderSimpleLine=function(t,i){for(var r=0,l=0;lthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,r,o,c);r=this.$renderToken(t,r,o,c)}}},this.$renderOverflowMessage=function(t,i,r,l,o){r&&this.$renderToken(t,i,r,l.slice(0,this.MAX_LINE_LENGTH-i)),r=this.dom.createElement("span"),r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"":"",t.appendChild(r)},this.$renderLine=function(t,i,r){var l,o,c=t;(l=(r=r||r==0?r:this.session.getFoldLine(i))?this.$getFoldLineTokens(i,r):this.session.getTokens(i)).length?(o=this.session.getRowSplitData(i))&&o.length?(this.$renderWrappedLine(t,l,o),c=t.lastChild):(c=t,this.$useLineGroups()&&(c=this.$createLineElement(),t.appendChild(c)),this.$renderSimpleLine(c,l)):this.$useLineGroups()&&(c=this.$createLineElement(),t.appendChild(c)),this.showEOL&&c&&(r&&(i=r.end.row),(o=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",o.textContent=i==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,c.appendChild(o))},this.$getFoldLineTokens=function(t,i){var r=this.session,l=[],o=r.getTokens(t);return i.walk(function(c,h,y,v,d){if(c!=null)l.push({type:"fold",value:c});else if((o=d?r.getTokens(h):o).length){for(var u,A=o,x=v,I=y,T=0,L=0;L+A[T].value.lengthI-x&&(u=u.substring(0,I-x)),l.push({type:A[T].type,value:u}),L=x+u.length,T+=1);LI?l.push({type:A[T].type,value:u.substring(0,I-L)}):l.push(A[T]),L+=u.length,T+=1}},i.end.row,this.session.getLine(i.end.row).length),l},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(w.prototype),m.Text=w}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(f,m,b){function w(s){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var p=f("../lib/dom");(function(){this.$updateOpacity=function(s){for(var a=this.cursors,n=a.length;n--;)p.setStyle(a[n].style,"opacity",s?"":"0")},this.$startCssAnimation=function(){for(var s=this.cursors,a=s.length;a--;)s[a].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(s){this.$padding=s},this.setSession=function(s){this.session=s},this.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},this.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},this.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,p.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var s=p.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},this.removeCursor=function(){var s;if(1s.height+s.offset||l.top<0)&&1n;)this.removeCursor();var o=this.session.getOverwrite();this.$setOverwrite(o),this.$pixelPos=l,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(s){s!=this.overwrite&&((this.overwrite=s)?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(w.prototype),m.Cursor=w}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(f,m,b){function w(i){this.element=n.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=n.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,e.addListener(this.element,"scroll",this.onScroll.bind(this)),e.addListener(this.element,"mousedown",e.preventDefault)}function p(i,r){w.call(this,i),this.scrollTop=0,this.scrollHeight=0,r.$scrollbarWidth=this.width=n.scrollbarWidth(i.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function s(i,r){w.call(this,i),this.scrollLeft=0,this.height=r.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var a=f("./lib/oop"),n=f("./lib/dom"),e=f("./lib/event"),t=f("./lib/event_emitter").EventEmitter;(function(){a.implement(this,t),this.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1}}).call(w.prototype),a.inherits(p,w),function(){this.classSuffix="-v",this.onScroll=function(){var i;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(i=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-i)/(this.coeff-i)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(i){this.element.style.height=i+"px"},this.setInnerHeight=this.setScrollHeight=function(i){32768<(this.scrollHeight=i)?(this.coeff=32768/i,i=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=i+"px"},this.setScrollTop=function(i){this.scrollTop!=i&&(this.skipEvent=!0,this.scrollTop=i,this.element.scrollTop=i*this.coeff)}}.call(p.prototype),a.inherits(s,w),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(i){this.element.style.width=i+"px"},this.setInnerWidth=function(i){this.inner.style.width=i+"px"},this.setScrollWidth=function(i){this.inner.style.width=i+"px"},this.setScrollLeft=function(i){this.scrollLeft!=i&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=i)}}.call(s.prototype),m.ScrollBar=p,m.ScrollBarV=p,m.ScrollBarH=s,m.VScrollBar=p,m.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(f,m,b){function w(s,a){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=a||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;t&&(p.blockIdle(100),n.changes=0,n.onRender(t)),n.changes?n.$recursionLimit--<0||n.schedule():n.$recursionLimit=2}}var p=f("./lib/event");(function(){this.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},this.clear=function(s){var a=this.changes;return this.changes=0,a}}).call(w.prototype),m.RenderLoop=w}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(i,m,b){var w=i("../lib/oop"),p=i("../lib/dom"),s=i("../lib/lang"),a=i("../lib/event"),n=i("../lib/useragent"),e=i("../lib/event_emitter").EventEmitter,t=typeof ResizeObserver=="function",i=m.FontMetrics=function(r){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},t?this.$addObserver():this.checkForSizeChanges()};(function(){w.implement(this,e),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(r,l){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",n.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=l?"hidden":"visible"},this.checkForSizeChanges=function(r){var l;!(r=r===void 0?this.$measureSizes():r)||this.$characterSize.width===r.width&&this.$characterSize.height===r.height||(this.$measureNode.style.fontWeight="bold",l=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=l&&l.width===r.width&&l.height===r.height,this._emit("changeCharacterSize",{data:r}))},this.$addObserver=function(){var r=this;this.$observer=new window.ResizeObserver(function(l){r.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var r=this;return this.$pollSizeChangesTimer=a.onIdle(function l(){r.checkForSizeChanges(),a.onIdle(l,500)},500)},this.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(r){return r={height:(r||this.$measureNode).clientHeight,width:(r||this.$measureNode).clientWidth/256},r.width===0||r.height===0?null:r},this.$measureCharWidth=function(r){return this.$main.textContent=s.stringRepeat(r,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(r){var l=this.charSizes[r];return l=l===void 0?this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width:l},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function r(l){return l&&l.parentElement?(window.getComputedStyle(l).zoom||1)*r(l.parentElement):1},this.$initTransformMeasureNodes=function(){function r(l,o){return["div",{style:"position: absolute;top:"+l+"px;left:"+o+"px;"}]}this.els=p.buildDom([r(0,0),r(200,0),r(0,200),r(200,200)],this.el)},this.transformCoordinates=function(r,T){function o(L,k,_){var F=L[1]*k[0]-L[0]*k[1];return[(-k[1]*_[0]+k[0]*_[1])/F,(+L[1]*_[0]-L[0]*_[1])/F]}function c(L,k){return[L[0]-k[0],L[1]-k[1]]}function h(L,k){return[L[0]+k[0],L[1]+k[1]]}function y(L,k){return[L*k[0],L*k[1]]}function v(L){return L=L.getBoundingClientRect(),[L.left,L.top]}r=r&&y(1/this.$getZoom(this.el),r),this.els||this.$initTransformMeasureNodes();var d=v(this.els[0]),A=v(this.els[1]),x=v(this.els[2]),u=v(this.els[3]),u=o(c(u,A),c(u,x),c(h(A,x),h(u,d))),A=y(1+u[0],c(A,d)),x=y(1+u[1],c(x,d));if(T)return I=u[0]*T[0]/200+u[1]*T[1]/200+1,T=h(y(T[0],A),y(T[1],x)),h(y(1/I/200,T),d);var I=c(r,d),T=o(c(A,y(u[0],I)),c(x,y(u[1],I)),I);return y(200,T)}}).call(i.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(f,m,b){function w(I,A){var x=this,I=(this.container=I||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new n(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new e(this.content),this.$textLayer=new t(this.content));this.canvas=I.element,this.$markerFront=new e(this.content),this.$cursorLayer=new i(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new l(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(T){x.$scrollAnimation||x.session.setScrollTop(T.data-x.scrollMargin.top)}),this.scrollBarH.on("scroll",function(T){x.$scrollAnimation||x.session.setScrollLeft(T.data-x.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new c(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(T){x.updateCharacterSize(),x.onResize(!0,x.gutterWidth,x.$size.width,x.$size.height),x._signal("changeCharacterSize",T)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new o(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),a.resetOptions(this),a._signal("renderer",this)}var p=f("./lib/oop"),s=f("./lib/dom"),a=f("./config"),n=f("./layer/gutter").Gutter,e=f("./layer/marker").Marker,t=f("./layer/text").Text,i=f("./layer/cursor").Cursor,r=f("./scrollbar").HScrollBar,l=f("./scrollbar").VScrollBar,o=f("./renderloop").RenderLoop,c=f("./layer/font_metrics").FontMetrics,h=f("./lib/event_emitter").EventEmitter,y=`.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}`,v=f("./lib/useragent"),d=v.isIE;s.importCssString(y,"ace_editor.css",!1),function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,p.implement(this,h),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(u){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=u)&&this.scrollMargin.top&&u.getScrollTop()<=0&&u.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(u),this.$markerBack.setSession(u),this.$markerFront.setSession(u),this.$gutterLayer.setSession(u),this.$textLayer.setSession(u),u&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(u,A,x){if(A===void 0&&(A=1/0),this.$changedLines?(this.$changedLines.firstRow>u&&(this.$changedLines.firstRow=u),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(u){u?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(u,A,x,I){if(!(2k.height-I?s.translate(this.textarea,0,0):(k=1,T=this.$size.height-I,L?L.useTextareaForIME?(L=this.textarea.value,k=this.characterWidth*this.session.$getStringScreenWidth(L)[0]):A+=this.lineHeight+2:A+=this.lineHeight,(x-=this.scrollLeft)>this.$size.scrollerWidth-k&&(x=this.$size.scrollerWidth-k),x+=this.gutterWidth+this.margin.left,s.setStyle(u,"height",I+"px"),s.setStyle(u,"width",k+"px"),s.translate(this.textarea,Math.min(x,this.$size.scrollerWidth-k),Math.min(A,T)))):s.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var u=this.layerConfig,A=u.lastRow;return this.session.documentToScreenRow(A,0)*u.lineHeight-this.session.getScrollTop()>u.height-u.lineHeight?A-1:A},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(u){this.$padding=u,this.$textLayer.setPadding(u),this.$cursorLayer.setPadding(u),this.$markerFront.setPadding(u),this.$markerBack.setPadding(u),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(u,A,x,I){var T=this.scrollMargin;T.top=0|u,T.bottom=0|A,T.right=0|I,T.left=0|x,T.v=T.top+T.bottom,T.h=T.left+T.right,T.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-T.top),this.updateFull()},this.setMargin=function(u,A,x,I){var T=this.margin;T.top=0|u,T.bottom=0|A,T.right=0|I,T.left=0|x,T.v=T.top+T.bottom,T.h=T.left+T.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(u){this.setOption("hScrollBarAlwaysVisible",u)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(u){this.setOption("vScrollBarAlwaysVisible",u)},this.$updateScrollBarV=function(){var u=this.layerConfig.maxHeight,A=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(u-=(A-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>u-A&&(u=this.scrollTop+A,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(u+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(u,A){if(this.$changes&&(u|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(u||A)){if(this.$size.$dirty)return this.$changes|=u,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",u),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var x,I,A=this.layerConfig;return(u&this.CHANGE_FULL||u&this.CHANGE_SIZE||u&this.CHANGE_TEXT||u&this.CHANGE_LINES||u&this.CHANGE_SCROLL||u&this.CHANGE_H_SCROLL)&&(u|=this.$computeLayerConfig()|this.$loop.clear(),A.firstRow!=this.layerConfig.firstRow&&A.firstRowScreen==this.layerConfig.firstRowScreen&&0<(x=this.scrollTop+(A.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=x,u=(u|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),A=this.layerConfig,this.$updateScrollBarV(),u&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-A.offset),x=A.width+2*this.$padding+"px",I=A.minHeight+"px",s.setStyle(this.content.style,"width",x),s.setStyle(this.content.style,"height",I)),u&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-A.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),u&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),void this._signal("afterRender",u)):(u&this.CHANGE_SCROLL?(this.$changedLines=null,u&this.CHANGE_TEXT||u&this.CHANGE_LINES?this.$textLayer.update(A):this.$textLayer.scrollLines(A),this.$showGutter&&(u&this.CHANGE_GUTTER||u&this.CHANGE_LINES?this.$gutterLayer.update(A):this.$gutterLayer.scrollLines(A)),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor()):(u&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A)):u&this.CHANGE_LINES?(this.$updateLines()||u&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(A):u&this.CHANGE_TEXT||u&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(A):u&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(A),u&this.CHANGE_CURSOR&&(this.$cursorLayer.update(A),this.$moveTextAreaToCursor()),u&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(A),u&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(A)),void this._signal("afterRender",u))}this.$changes|=u},this.$autosize=function(){var u=this.session.getScreenLength()*this.lineHeight,A=this.$maxLines*this.lineHeight,x=Math.min(A,Math.max((this.$minLines||1)*this.lineHeight,u))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(x+=this.scrollBarH.getHeight()),A=!((x=this.$maxPixelHeight&&x>this.$maxPixelHeight?this.$maxPixelHeight:x)<=2*this.lineHeight)&&A_.top)),k=F!==z,_=(k&&(this.$vScroll=z,this.scrollBarV.setVisible(z)),this.scrollTop%this.lineHeight),F=Math.ceil(L/this.lineHeight)-1,F=(z=Math.max(0,Math.round((this.scrollTop-_)/this.lineHeight)))+F,H=this.lineHeight,z=J.screenToDocumentRow(z,0),D=J.getFoldLine(z),J=(D&&(z=D.start.row),D=J.documentToScreenRow(z,0),u=J.getRowLength(z)*H,F=Math.min(J.screenToDocumentRow(F,0),J.getLength()-1),L=A.scrollerHeight+J.getRowLength(F)*H+u,_=this.scrollTop-D*H,0);return this.layerConfig.width==I&&!T||(J=this.CHANGE_H_SCROLL),(T||k)&&(J|=this.$updateCachedSize(!0,this.gutterWidth,A.width,A.height),this._signal("scrollbarVisibilityChanged"),k&&(I=this.$getLongestLine())),this.layerConfig={width:I,padding:this.$padding,firstRow:z,firstRowScreen:D,lastRow:F,lineHeight:H,characterWidth:this.characterWidth,minHeight:L,maxHeight:x,offset:_,gutterOffset:H?Math.max(0,Math.ceil((_+A.height-A.scrollerHeight)/H)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(I-this.$padding),J},this.$updateLines=function(){if(this.$changedLines){var u=this.$changedLines.firstRow,A=this.$changedLines.lastRow,x=(this.$changedLines=null,this.layerConfig);if(!(u>x.lastRow+1||Athis.$textLayer.MAX_LINE_LENGTH&&(u=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(u*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(u,A){this.$gutterLayer.addGutterDecoration(u,A)},this.removeGutterDecoration=function(u,A){this.$gutterLayer.removeGutterDecoration(u,A)},this.updateBreakpoints=function(u){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(u){this.$gutterLayer.setAnnotations(u),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(u,A,x){this.scrollCursorIntoView(u,x),this.scrollCursorIntoView(A,x)},this.scrollCursorIntoView=function(u,A,x){var I,T,L;this.$size.scrollerHeight!==0&&(I=(u=this.$cursorLayer.getPixelPosition(u)).left,u=u.top,L=x&&x.top||0,x=x&&x.bottom||0,u<(T=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+L?(A&&T+L>u+this.lineHeight&&(u-=A*this.$size.scrollerHeight),u===0&&(u=-this.scrollMargin.top),this.session.setScrollTop(u)):T+this.$size.scrollerHeight-x=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(e.prototype),m.UIWorkerClient=function(t,i,r){var l=null,o=!1,c=Object.create(s),h=[],y=new e({messageBuffer:h,terminate:function(){},postMessage:function(d){h.push(d),l&&(o?setTimeout(v):v())}}),v=(y.setEmitSync=function(d){o=d},function(){var d=h.shift();d.command?l[d.command].apply(l,d.args):d.event&&c._signal(d.event,d.data)});return c.postMessage=function(d){y.onMessage({data:d})},c.callback=function(d,u){this.postMessage({type:"call",id:u,data:d})},c.emit=function(d,u){this.postMessage({type:"event",name:d,data:u})},a.loadModule(["worker",i],function(d){for(l=new d[r](c);h.length;)v()}),y},m.WorkerClient=e,m.createWorker=n}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(f,m,b){function w(n,c,t,i,r,l){var o=this,c=(this.length=c,this.session=n,this.doc=n.getDocument(),this.mainClass=r,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){o.onCursorChange()})},this.$pos=t,n.getUndoManager().$undoStack||n.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=c.length,this.setup(),n.selection.on("changeCursor",this.$onCursorChange)}var p=f("./range").Range,s=f("./lib/event_emitter").EventEmitter,a=f("./lib/oop");(function(){a.implement(this,s),this.setup=function(){var n=this,e=this.doc,t=this.session,i=(this.selectionBefore=t.selection.toJSON(),t.selection.inMultiSelectMode&&t.selection.toSingleRange(),this.pos=e.createAnchor(this.$pos.row,this.$pos.column),this.pos);i.$insertRight=!0,i.detach(),i.markerId=t.addMarker(new p(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){r=e.createAnchor(r.row,r.column),r.$insertRight=!0,r.detach(),n.others.push(r)}),t.setUndoSelect(!1)},this.showOtherMarkers=function(){var n,e;this.othersActive||(n=this.session,(e=this).othersActive=!0,this.others.forEach(function(t){t.markerId=n.addMarker(new p(t.row,t.column,t.row,t.column+e.length),e.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&e.start.column<=this.pos.column+this.length+1,r=e.start.column-this.pos.column;if(this.updateAnchors(n),i&&(this.length+=t),i&&!this.session.$fromUndo){if(n.action==="insert")for(var l=this.others.length-1;0<=l;l--){var o={row:(c=this.others[l]).row,column:c.column+r};this.doc.insertMergedLines(o,n.lines)}else if(n.action==="remove")for(l=this.others.length-1;0<=l;l--){var c,o={row:(c=this.others[l]).row,column:c.column+r};this.doc.remove(new p(o.row,o.column,o.row,o.column-t))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(n){this.pos.onChange(n);for(var e=this.others.length;e--;)this.others[e].onChange(n);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,e=this.session,t=function(r,l){e.removeMarker(r.markerId),r.markerId=e.addMarker(new p(r.row,r.column,r.row,r.column+n.length),l,null,!1)};t(this.pos,this.mainClass);for(var i=this.others.length;i--;)t(this.others[i],this.othersClass)}},this.onCursorChange=function(n){var e;!this.$updating&&this.session&&((e=this.session.selection.getCursor()).row===this.pos.row&&e.column>=this.pos.column&&e.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),e=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,t=0;td&&(d=F.column),(H=H==-1?0:H)T[1].length&&(h=T[1].length),yT[3].length&&(v=T[3].length)),T):[I]}).map(c?x:d?u?function(I){return I[2]?A(h+y-I[2].length)+I[2]+A(v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}:x:function(I){return I[2]?A(h)+I[2]+A(v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]});function A(I){return e.stringRepeat(" ",I)}function x(I){return I[2]?A(h)+I[2]+A(y-I[2].length+v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}}}).call(r.prototype),m.onSessionChange=function(h){var c=h.session,h=(c&&!c.multiSelect&&(c.$selectionMarkers=[],c.selection.$initRangeList(),c.multiSelect=c.selection),this.multiSelect=c&&c.multiSelect,h.oldSession);h&&(h.multiSelect.off("addRange",this.$onAddRange),h.multiSelect.off("removeRange",this.$onRemoveRange),h.multiSelect.off("multiSelect",this.$onMultiSelect),h.multiSelect.off("singleSelect",this.$onSingleSelect),h.multiSelect.lead.off("change",this.$checkMultiselectChange),h.multiSelect.anchor.off("change",this.$checkMultiselectChange)),c&&(c.multiSelect.on("addRange",this.$onAddRange),c.multiSelect.on("removeRange",this.$onRemoveRange),c.multiSelect.on("multiSelect",this.$onMultiSelect),c.multiSelect.on("singleSelect",this.$onSingleSelect),c.multiSelect.lead.on("change",this.$checkMultiselectChange),c.multiSelect.anchor.on("change",this.$checkMultiselectChange)),c&&this.inMultiSelectMode!=c.selection.inMultiSelectMode&&(c.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},m.MultiSelect=l,f("./config").defineOptions(r.prototype,"editor",{enableMultiselect:{set:function(o){l(this),o?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(o){this.$blockSelectEnabled=o},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(p,m,b){var w=p("../../range").Range,p=m.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(s,a,n){return s=s.getLine(n),this.foldingStartMarker.test(s)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(s,a,n){return null},this.indentationBlock=function(s,a,n){var e=/\S/,t=s.getLine(a),i=t.search(e);if(i!=-1){for(var r,n=n||t.length,l=s.getLength(),t=a,o=a;++an.row&&(e.row--,e.column=s.getLine(e.row).length),w.fromPoints(n,e)},this.closingBracketBlock=function(s,a,n,e,t){if(n={row:n,column:e},e=s.$findOpeningBracket(a,n),e)return e.column++,n.column--,w.fromPoints(e,n)}}).call(p.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(f,m,b){m.isDark=!1,m.cssClass="ace-tm",m.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',m.$id="ace/theme/textmate",f("../lib/dom").importCssString(m.cssText,m.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(f,m,b){var w=f("./lib/dom");function p(s){this.session=s,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(s){var a=this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0;return this.$useWrapMode&&this.$wrapData[s]?this.$wrapData[s].length+1+a:1+a},this.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(a){a&&a.rowCount&&!a.hidden&&(s+=a.rowCount)}),s},this.$onChangeEditor=function(s){this.attach(s.editor)},this.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),(this.editor=s)&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(s){var a=this.editor;a&&(this.editor=null,a.widgetManager=null,a.renderer.off("beforeRender",this.measureWidgets),a.renderer.off("afterRender",this.renderWidgets),(a=this.session.lineWidgets)&&a.forEach(function(n){n&&n.el&&n.el.parentNode&&(n._inDocument=!1,n.el.parentNode.removeChild(n.el))}))},this.updateOnFold=function(s,a){var n=a.lineWidgets;if(n&&s.action){for(var a=s.data,e=a.start.row,t=a.end.row,i=s.action=="add",r=e+1;rt[a].column&&a++,e.unshift(a,0),t.splice.apply(t,e)),this.$updateRows()))},this.$updateRows=function(){var s,a=this.session.lineWidgets;a&&(s=!0,a.forEach(function(n,e){if(n)for(s=!1,n.row=e;n.$oldWidget;)n.$oldWidget.row=e,n=n.$oldWidget}),s&&(this.session.lineWidgets=null))},this.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var a=this.session.lineWidgets[s.row];return a&&(s.$oldWidget=a).el&&a.el.parentNode&&(a.el.parentNode.removeChild(a.el),a._inDocument=!1),this.session.lineWidgets[s.row]=s},this.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var a,n=this.editor.renderer,e=(s.html&&!s.el&&(s.el=w.createElement("div"),s.el.innerHTML=s.html),s.el&&(w.addCssClass(s.el,"ace_lineWidgetContainer"),s.el.style.position="absolute",s.el.style.zIndex=5,n.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/n.layerConfig.lineHeight),this.session.getFoldAt(s.row,0));return(s.$fold=e)&&(a=this.session.lineWidgets,s.row!=e.end.row||a[e.start.row]?s.hidden=!0:a[e.start.row]=s),this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(s),s},this.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var a=this.session.lineWidgets[s.row];if(a==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;a;){if(a.$oldWidget==s){a.$oldWidget=s.$oldWidget;break}a=a.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(s){for(var a=this.session.lineWidgets,n=a&&a[s],e=[];n;)e.push(n),n=n.$oldWidget;return e},this.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(s,a){var n=this.session._changedWidgets,e=a.layerConfig;if(n&&n.length){for(var t=1/0,i=0;i>1,A=y(h,c[u]);if(0=i.length?r=0"),c.appendChild(p.createElement("div")),o.destroy=function(){n.$mouseHandler.isMousePressed||(n.keyBinding.removeKeyboardHandler(l),i.widgetManager.removeLineWidget(o),n.off("changeSelection",o.destroy),n.off("changeSession",o.destroy),n.off("mouseup",o.destroy),n.off("change",o.destroy))},n.keyBinding.addKeyboardHandler(l),n.on("changeSelection",o.destroy),n.on("changeSession",o.destroy),n.on("mouseup",o.destroy),n.on("change",o.destroy),n.session.widgetManager.addLineWidget(o),o.el.onmousedown=n.focus.bind(n),n.renderer.scrollCursorIntoView(null,.5,{bottom:o.el.offsetHeight})},p.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(f,m,b){f("./lib/fixoldbrowsers");var w=f("./lib/dom"),p=f("./lib/event"),s=f("./range").Range,a=f("./editor").Editor,n=f("./edit_session").EditSession,e=f("./undomanager").UndoManager,t=f("./virtual_renderer").VirtualRenderer;f("./worker/worker_client"),f("./keyboard/hash_handler"),f("./placeholder"),f("./multi_select"),f("./mode/folding/fold_mode"),f("./theme/textmate"),f("./ext/error_marker"),m.config=f("./config"),m.require=f,m.define=X.amdD,m.edit=function(c,r){if(typeof c=="string"){var o=c;if(!(c=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(c&&c.env&&c.env.editor instanceof a)return c.env.editor;var l,o="",o=(c&&/input|textarea/i.test(c.tagName)?(o=(l=c).value,c=w.createElement("pre"),l.parentNode.replaceChild(c,l)):c&&(o=c.textContent,c.innerHTML=""),m.createEditSession(o)),c=new a(new t(c),o,r),h={document:o,editor:c,onResize:c.resize.bind(c,null)};return l&&(h.textarea=l),p.addListener(window,"resize",h.onResize),c.on("destroy",function(){p.removeListener(window,"resize",h.onResize),h.editor.container.env=null}),c.container.env=c.env=h,c},m.createEditSession=function(i,r){return i=new n(i,r),i.setUndoManager(new e),i},m.Range=s,m.Editor=a,m.EditSession=n,m.UndoManager=e,m.VirtualRenderer=t,m.version=m.config.version}),ace.require(["ace/ace"],function(f){for(var m in f&&(f.config.init(!0),f.define=ace.define),window.ace||(window.ace=f),f)f.hasOwnProperty(m)&&(window.ace[m]=f[m]);window.ace.default=window.ace,ie&&(ie.exports=window.ace)})},4317:function(ie,g,X){ie=X.nmd(ie),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(P,S,N){var t=P("./lib/dom"),Z=P("./lib/oop"),O=P("./lib/event_emitter").EventEmitter,W=P("./lib/lang"),M=P("./range").Range,j=P("./range_list").RangeList,f=P("./keyboard/hash_handler").HashHandler,m=P("./tokenizer").Tokenizer,b=P("./clipboard"),w={CURRENT_WORD:function(i){return i.session.getTextRange(i.session.getWordRange())},SELECTION:function(i,r,l){return i=i.session.getTextRange(),l?i.replace(/\n\r?([ \t]*\S)/g,` +`+l+"$1"):i},CURRENT_LINE:function(i){return i.session.getLine(i.getCursorPosition().row)},PREV_LINE:function(i){return i.session.getLine(i.getCursorPosition().row-1)},LINE_INDEX:function(i){return i.getCursorPosition().row},LINE_NUMBER:function(i){return i.getCursorPosition().row+1},SOFT_TABS:function(i){return i.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(i){return i.session.getTabSize()},CLIPBOARD:function(i){return b.getText&&b.getText()},FILENAME:function(i){return/[^/\\]*$/.exec(this.FILEPATH(i))[0]},FILENAME_BASE:function(i){return/[^/\\]*$/.exec(this.FILEPATH(i))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(i){return this.FILEPATH(i).replace(/[^/\\]*$/,"")},FILEPATH:function(i){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(i){return i=i.session.$mode||{},i.blockComment&&i.blockComment.start||""},BLOCK_COMMENT_END:function(i){return i=i.session.$mode||{},i.blockComment&&i.blockComment.end||""},LINE_COMMENT:function(i){return(i.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(i){return i=new Date().toLocaleString("en-us",i),i.length==1?"0"+i:i}w.SELECTED_TEXT=w.SELECTION;function s(){this.snippetMap={},this.snippetNameMap={}}(function(){Z.implement(this,O),this.getTokenizer=function(){return s.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function i(o){return o=o.substr(1),/^\d+$/.test(o)?[{tabstopId:parseInt(o,10)}]:[{text:o}]}function r(o){return"(?:[^\\\\"+o+"]|\\\\.)"}var l={regex:"/("+r("/")+"+)/",onMatch:function(o,c,h){return h=h[0],h.fmtString=!0,h.guard=o.slice(1,-1),h.flag=""},next:"formatString"};return s.$tokenizer=new m({start:[{regex:/\\./,onMatch:function(o,c,h){var y=o[1];return[o=y=="}"&&h.length||"`$\\".indexOf(y)!=-1?y:o]}},{regex:/}/,onMatch:function(o,c,h){return[h.length?h.shift():o]}},{regex:/\$(?:\d+|\w+)/,onMatch:i},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(o,c,h){return o=i(o.substr(1)),h.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+r("\\|")+"*\\|",onMatch:function(o,c,h){return o=o.slice(1,-1).replace(/\\[,|\\]|,/g,function(y){return y.length==2?y[1]:"\0"}).split("\0").map(function(y){return{value:y}}),[(h[0].choices=o)[0]]},next:"start"},l,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(o,c,h){return h.length&&h[0].expectElse?(h[0].expectElse=!1,h[0].ifEnd={elseEnd:h[0]},[h[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(o,c,h){var y=o[1];return y=="}"&&h.length||"`$\\".indexOf(y)!=-1?o=y:y=="n"?o=` +`:y=="t"?o=" ":"ulULE".indexOf(y)!=-1&&(o={changeCase:y,local:"a"v&&(x=v-h.offsetWidth),h.style.left=x+"px",this._signal("show"),s=null,n.isOpen=!0},n.goTo=function(l){var o=this.getRow(),c=this.session.getLength()-1;switch(l){case"up":o=o<=0?c:o-1;break;case"down":o=c<=o?-1:o+1;break;case"start":o=0;break;case"end":o=c}this.setRow(o)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},S.$singleLineEditor=Z}),ace.define("ace/autocomplete/util",["require","exports","module"],function(P,S,N){S.parForEach=function(O,W,M){var j=0,f=O.length;f===0&&M();for(var m=0;mthis.filterText&&p.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=p,s=(s=this.filterCompletions(s,this.filterText)).sort(function(n,e){return e.exactMatch-n.exactMatch||e.$score-n.$score||(n.caption||n.value).localeCompare(e.caption||e.value)});var s,a=null;s=s.filter(function(n){return n=n.snippet||n.caption||n.value,n!==a&&(a=n,!0)}),this.filtered=s},this.filterCompletions=function(p,s){var a=[],n=s.toUpperCase(),e=s.toLowerCase();e:for(var t,i=0;t=p[i];i++){var r=t.caption||t.value||t.snippet;if(r){var l=-1,o=0,c=0;if(this.exactMatch){if(s!==r.substr(0,s.length))continue}else{var h=r.toLowerCase().indexOf(e);if(-1",f.escapeHTML(t.caption),"","",f.escapeHTML((t=t.snippet,i={},t.replace(/\${(\d+)(:(.*?))?}/g,function(r,l,o,c){return i[l]=c||""}).replace(/\$(\d+?)/g,function(r,l){return i[l]})))].join(""))}},p=[w,e,b],s=(S.setCompleters=function(t){p.length=0,t&&p.push.apply(p,t)},S.addCompleter=function(t){p.push(t)},S.textCompleter=e,S.keyWordCompleter=b,S.snippetCompleter=w,{name:"expandSnippet",exec:function(t){return W.expandWithTab(t)},bindKey:"Tab"}),a=function(t){(t=typeof t=="string"?j.$modes[t]:t)&&(W.files||(W.files={}),n(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(a))},n=function(t,i){i&&t&&!W.files[t]&&(W.files[t]={},j.loadModule(i,function(r){r&&(!(W.files[t]=r).snippets&&r.snippetText&&(r.snippets=W.parseSnippetFile(r.snippetText)),W.register(r.snippets||[],r.scope),r.includeScopes&&(W.snippetMap[r.scope].includeScopes=r.includeScopes,r.includeScopes.forEach(function(l){a("ace/mode/"+l)})))}))},e=P("../editor").Editor;P("../config").defineOptions(e.prototype,"editor",{enableBasicAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:p),this.commands.addCommand(M.startCommand)):this.commands.removeCommand(M.startCommand)},value:!1},enableLiveAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:p),this.commands.on("afterExec",O)):this.commands.removeListener("afterExec",O)},value:!1},enableSnippets:{set:function(t){t?(this.commands.addCommand(s),this.on("changeMode",Z),Z(0,this)):(this.commands.removeCommand(s),this.off("changeMode",Z))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(P){ie&&(ie.exports=P)})},3330:function(ie,g,X){ie=X.nmd(ie),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(P,S,N){function Z(b,w,p){var s=O.createElement("div");O.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"\u200B"],["span",{action:"findNext",class:"ace_searchbtn next"},"\u200B"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],s),this.element=s.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(b),O.importCssString(j,"ace_searchbox",b.container)}var O=P("../lib/dom"),W=P("../lib/lang"),M=P("../lib/event"),j='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',f=P("../keyboard/hash_handler").HashHandler,m=P("../lib/keys");O.importCssString(j,"ace_searchbox",!1),function(){this.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},this.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},this.$init=function(){var b=this.element,w=(this.$initElements(b),this);M.addListener(b,"mousedown",function(p){setTimeout(function(){w.activeInput.focus()},0),M.stopPropagation(p)}),M.addListener(b,"click",function(p){var s=(p.target||p.srcElement).getAttribute("action");s&&w[s]?w[s]():w.$searchBarKb.commands[s]&&w.$searchBarKb.commands[s].exec(w),M.stopPropagation(p)}),M.addCommandKeyListener(b,function(p,s,a){a=m.keyCodeToString(a),s=w.$searchBarKb.findKeyCommand(s,a),s&&s.exec&&(s.exec(w),M.stopEvent(p))}),this.$onChange=W.delayedCall(function(){w.find(!1,!1)}),M.addListener(this.searchInput,"input",function(){w.$onChange.schedule(20)}),M.addListener(this.searchInput,"focus",function(){w.activeInput=w.searchInput,w.searchInput.value&&w.highlight()}),M.addListener(this.replaceInput,"focus",function(){w.activeInput=w.replaceInput,w.searchInput.value&&w.highlight()})},this.$closeSearchBarKb=new f([{bindKey:"Esc",name:"closeSearchBar",exec:function(b){b.searchBox.hide()}}]),this.$searchBarKb=new f,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(b){var w=b.isReplace=!b.isReplace;b.replaceBox.style.display=w?"":"none",b.replaceOption.checked=!1,b.$syncOptions(),b.searchInput.focus()},"Ctrl-H|Command-Option-F":function(b){b.editor.getReadOnly()||(b.replaceOption.checked=!0,b.$syncOptions(),b.replaceInput.focus())},"Ctrl-G|Command-G":function(b){b.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(b){b.findPrev()},esc:function(b){setTimeout(function(){b.hide()})},Return:function(b){b.activeInput==b.replaceInput&&b.replace(),b.findNext()},"Shift-Return":function(b){b.activeInput==b.replaceInput&&b.replace(),b.findPrev()},"Alt-Return":function(b){b.activeInput==b.replaceInput&&b.replaceAll(),b.findAll()},Tab:function(b){(b.activeInput==b.replaceInput?b.searchInput:b.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(b){b.regExpOption.checked=!b.regExpOption.checked,b.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(b){b.caseSensitiveOption.checked=!b.caseSensitiveOption.checked,b.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(b){b.wholeWordOption.checked=!b.wholeWordOption.checked,b.$syncOptions()}},{name:"toggleReplace",exec:function(b){b.replaceOption.checked=!b.replaceOption.checked,b.$syncOptions()}},{name:"searchInSelection",exec:function(b){b.searchOption.checked=!b.searchRange,b.setSearchRange(b.searchOption.checked&&b.editor.getSelectionRange()),b.$syncOptions()}}]),this.setSearchRange=function(b){(this.searchRange=b)?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(b){O.setCssClass(this.replaceOption,"checked",this.searchRange),O.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",O.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),O.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),O.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var w=this.editor.getReadOnly();this.replaceOption.style.display=w?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!w?"":"none",this.find(!1,!1,b)},this.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(b,w,p){b=!this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:w,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:p,range:this.searchRange})&&this.searchInput.value,O.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var b=this.editor,w=b.$search.$options.re,p=0,s=0;if(w){var a,n,e=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue(),t=b.session.doc.positionToIndex(b.selection.anchor);for(this.searchRange&&(t-=b.session.doc.positionToIndex(this.searchRange.start)),w.lastIndex=0;(n=w.exec(e))&&((a=n.index)<=t&&s++,!(999<++p))&&(n[0]||(w.lastIndex=a+=1,!(a>=e.length))););}this.searchCounter.textContent=s+" of "+(999%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,j=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,b=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,w=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function p(r){return P.copy(p[r=r=="full"?"full":"fast"])}function s(c){if(c=c.match(S),!c)return!1;var l=+c[1],o=+c[2],c=+c[3];return 1<=o&&o<=12&&1<=c&&c<=(o!=2||(c=l)%4!=0||c%100==0&&c%400!=0?N[o]:29)}function a(y,l){if(y=y.match(Z),!y)return!1;var o=y[1],c=y[2],h=y[3],y=y[5];return(o<=23&&c<=59&&h<=59||o==23&&c==59&&h==60)&&(!l||y)}(ie.exports=p).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w},p.full={date:s,time:a,"date-time":function(r){return r=r.split(n),r.length==2&&s(r[0])&&a(r[1],!0)},uri:function(r){return e.test(r)&&W.test(r)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w};var n=/t|\s/i,e=/\/|:/,t=/[^\\]\\Z/;function i(r){if(t.test(r))return!1;try{return new RegExp(r),!0}catch{return!1}}},5689:function(ie,g,X){var P=X(3969),S=X(3724),N=X(5359),Z=X(3508),O=X(1869),W=S.ucs2length,M=X(2303),j=N.Validation;function f(n,e,t,i){var r=this,l=this._opts,o=[void 0],c={},h=[],y={},v=[],d={},u=[],A=(e=e||{schema:n,refVal:o,refs:c},function(B,C,E){var $=m.call(this,B,C,E);return 0<=$?{index:$,compiling:!0}:($=this._compilations.length,this._compilations[$]={schema:B,root:C,baseId:E},{index:$,compiling:!1})}.call(this,n,e,i)),x=this._compilations[A.index];if(A.compiling)return x.callValidate=_;var I=this._formats,T=this.RULES;try{var L=F(n,e,t,i),k=(x.validate=L,x.callValidate);return k&&(k.schema=L.schema,k.errors=null,k.refs=L.refs,k.refVal=L.refVal,k.root=L.root,k.$async=L.$async,l.sourceCode&&(k.source=L.source)),L}finally{(function(B,C,E){B=m.call(this,B,C,E),0<=B&&this._compilations.splice(B,1)}).call(this,n,e,i)}function _(){var B=x.validate,C=B.apply(this,arguments);return _.errors=B.errors,C}function F(B,C,E,$){var G=!C||C.schema==B;if(C.schema!=e.schema)return f.call(r,B,C,E,$);E=B.$async===!0,$=O({isTop:!0,schema:B,isRoot:G,baseId:$,root:C,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:N.MissingRef,RULES:T,validate:O,util:S,resolve:P,resolveRef:H,usePattern:J,useDefault:R,useCustomRule:V,opts:l,formats:I,logger:r.logger,self:r}),$=a(o,p)+a(h,b)+a(v,w)+a(u,s)+$,l.processCode&&($=l.processCode($,B));try{var K=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",$)(r,T,I,e,o,v,u,M,W,j);o[0]=K}catch(Q){throw r.logger.error("Error compiling schema, function code:",$),Q}return K.schema=B,K.errors=null,K.refs=c,K.refVal=o,K.root=G?K:C,E&&(K.$async=!0),l.sourceCode===!0&&(K.source={code:$,patterns:h,defaults:v}),K}function H(B,C,Q){C=P.url(B,C);var $=c[C];if($!==void 0)return D(G=o[$],K="refVal["+$+"]");if(!Q&&e.refs&&($=e.refs[C],$!==void 0))return D(G=e.refVal[$],K=z(C,G));var G,K=z(C),Q=P.call(r,F,e,C);if(Q!==void 0||($=t&&t[C])&&(Q=P.inlineRef($,l.inlineRefs)?$:f.call(r,$,e,t,B)),Q!==void 0)return G=Q,$=c[$=C],o[$]=G,D(Q,K);delete c[C]}function z(B,C){var E=o.length;return o[E]=C,"refVal"+(c[B]=E)}function D(B,C){return typeof B=="object"||typeof B=="boolean"?{code:C,schema:B,inline:!0}:{code:C,$async:B&&!!B.$async}}function J(B){var C=y[B];return C===void 0&&(C=y[B]=h.length,h[C]=B),"pattern"+C}function R(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return S.toQuotedString(B);case"object":if(B===null)return"null";var C=Z(B),E=d[C];return E===void 0&&(E=d[C]=v.length,v[E]=B),"default"+E}}function V(B,C,E,$){if(r._opts.validateSchema!==!1){var K=B.definition.dependencies;if(K&&!K.every(function(xe){return Object.prototype.hasOwnProperty.call(E,xe)}))throw new Error("parent schema must have all required keywords: "+K.join(","));if(K=B.definition.validateSchema,K&&!K(C)){if(K="keyword schema is invalid: "+r.errorsText(K.errors),r._opts.validateSchema!="log")throw new Error(K);r.logger.error(K)}}var G,K=B.definition.compile,Q=B.definition.inline,ee=B.definition.macro;if(K)G=K.call(r,C,E,$);else if(ee)G=ee.call(r,C,E,$),l.validateSchema!==!1&&r.validateSchema(G,!0);else if(Q)G=Q.call(r,$,B.keyword,C,E);else if(!(G=B.definition.validate))return;if(G===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');return K=u.length,{code:"customRule"+K,validate:u[K]=G}}}function m(n,e,t){for(var i=0;i",o=e?">":"<",c=void 0;if(!a&&typeof m!="number"&&m!==void 0)throw new Error(X+" must be number");if(!r&&i!==void 0&&typeof i!="number"&&typeof i!="boolean")throw new Error(t+" must be number or boolean");r?(f=g.util.getData(i.$data,f,g.dataPathArr),Z="exclIsNumber"+j,O="' + "+(W="op"+j)+" + '",c=t,(h=h||[]).push(M=M+(" var schemaExcl"+j+" = "+f+"; ")+(" var "+(S="exclusive"+j)+"; var "+(N="exclType"+j)+" = typeof "+(f="schemaExcl"+j)+"; if ("+N+" != 'boolean' && "+N+" != 'undefined' && "+N+" != 'number') { ")),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: {} ",g.opts.messages!==!1&&(M+=" , message: '"+t+" should be boolean' "),g.opts.verbose&&(M+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ",y=M,M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } else if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+N+" == 'number' ? ( ("+S+" = "+n+" === undefined || "+f+" "+l+"= "+n+") ? "+s+" "+o+"= "+f+" : "+s+" "+o+" "+n+" ) : ( ("+S+" = "+f+" === true) ? "+s+" "+o+"= "+n+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { var op"+j+" = "+S+" ? '"+l+"' : '"+l+"='; ",m===void 0&&(w=g.errSchemaPath+"/"+(c=t),n=f,a=r)):(O=l,(Z=typeof i=="number")&&a?(W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" ( "+n+" === undefined || "+i+" "+l+"= "+n+" ? "+s+" "+o+"= "+i+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { "):(Z&&m===void 0?(S=!0,w=g.errSchemaPath+"/"+(c=t),n=i,o+="="):(Z&&(n=Math[e?"min":"max"](i,m)),i===(!Z||n)?(S=!0,w=g.errSchemaPath+"/"+(c=t),o+="="):(S=!1,O+="=")),W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+s+" "+o+" "+n+" || "+s+" !== "+s+") { ")),c=c||X,(h=h||[]).push(M),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: { comparison: "+W+", limit: "+n+", exclusive: "+S+" } ",g.opts.messages!==!1&&(M=M+" , message: 'should be "+O+" "+(a?"' + "+n:n+"'")),g.opts.verbose&&(M=(M+=" , schema: ")+(a?"validate.schema"+b:""+m)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ";var h,y=M;return M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } ",p&&(M+=" else { "),M}},2407:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" "+W+".length "+(X=="maxItems"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxItems"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" items' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},1250:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || "),g.opts.unicode===!1?b+=" "+W+".length ":b+=" ucs2length("+W+") ";var m=X,f=[],m=(f.push(b+=" "+(X=="maxLength"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT be ")+(X=="maxLength"?"longer":"shorter")+" than ")+(M?"' + "+j+" + '":""+S)+" characters' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},2596:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" Object.keys("+W+").length "+(X=="maxProperties"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxProperties"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" properties' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},9486:function(ie){ie.exports=function(g,X,P){var S=" ",N=g.schema[X],Z=g.schemaPath+g.util.getProperty(X),O=g.errSchemaPath+"/"+X,W=!g.opts.allErrors,M=g.util.copy(g),j="",f=(M.level++,"valid"+M.level),m=M.baseId,b=!0,w=N;if(w)for(var p,s=-1,a=w.length-1;s "+l+") { ",c=M+"["+l+"]",m.schema=y,m.schemaPath=Z+"["+l+"]",m.errSchemaPath=O+"/"+l,m.errorPath=g.util.getPathExpr(g.errorPath,l,g.opts.jsonPointers,!0),m.dataPathArr[s]=l,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",S+=" } ",W&&(S+=" if ("+w+") { ",b+="}"))}typeof i=="object"&&(g.opts.strictKeywords?typeof i=="object"&&0 "+N.length+") { for (var "+p+" = "+N.length+"; "+p+" < "+M+".length; "+p+"++) { ",m.errorPath=g.util.getPathExpr(g.errorPath,p,g.opts.jsonPointers,!0),c=M+"["+p+"]",m.dataPathArr[s]=p,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",W&&(S+=" if (!"+w+") break; "),S+=" } } ",W&&(S+=" if ("+w+") { ",b+="}"))}else(g.opts.strictKeywords?typeof N=="object"&&0 1e-"+g.opts.multipleOfPrecision+" ":S+=" division"+N+" !== parseInt(division"+N+") ",S+=" ) ",f&&(S+=" ) "),X=[],X.push(S+=" ) { "),S="",g.createErrors!==!1?(S+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { multipleOf: "+m+" } ",g.opts.messages!==!1&&(S=S+" , message: 'should be multiple of "+(f?"' + "+m:m+"'")),g.opts.verbose&&(S=(S+=" , schema: ")+(f?"validate.schema"+O:""+Z)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ",N=S,S=X.pop(),!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+N+"]); ":S+=" validate.errors = ["+N+"]; return false; ":S+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+="} ",M&&(S+=" else { "),S}},7946:function(ie){ie.exports=function(g,M,P){var S,N,Z=" ",m=g.level,f=g.dataLevel,O=g.schema[M],W=g.schemaPath+g.util.getProperty(M),M=g.errSchemaPath+"/"+M,j=!g.opts.allErrors,f="data"+(f||""),m="errs__"+m,b=g.util.copy(g),w=(b.level++,"valid"+b.level);return(g.opts.strictKeywords?typeof O=="object"&&0=g.opts.loopRequired,i=g.opts.ownProperties;if(M)if(S+=" var missing"+N+"; ",Z){m||(S+=" var "+b+" = validate.schema"+O+"; ");var r="' + "+(v="schema"+N+"["+(c="i"+N)+"]")+" + '";g.opts._errorDataPathProperty&&(g.errorPath=g.util.getPathExpr(t,v,g.opts.jsonPointers)),S+=" var "+f+" = true; ",m&&(S+=" if (schema"+N+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+N+")) "+f+" = false; else {"),S+=" for (var "+c+" = 0; "+c+" < "+b+".length; "+c+"++) { "+f+" = "+j+"["+b+"["+c+"]] !== undefined ",i&&(S+=" && Object.prototype.hasOwnProperty.call("+j+", "+b+"["+c+"]) "),S+="; if (!"+f+") break; } ",m&&(S+=" } "),(y=y||[]).push(S+=" if (!"+f+") { "),S="",g.createErrors!==!1?(S+=" { keyword: 'required' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { missingProperty: '"+r+"' } ",g.opts.messages!==!1&&(S+=" , message: '",g.opts._errorDataPathProperty?S+="is a required property":S+="should have required property \\'"+r+"\\'",S+="' "),g.opts.verbose&&(S+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ";var l=S,S=y.pop();!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+l+"]); ":S+=" validate.errors = ["+l+"]; return false; ":S+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+=" } else { "}else{S+=" if ( ";var o=w;if(o)for(var c=-1,h=o.length-1;c 1) { ",Z=g.schema.items&&g.schema.items.type,w=Array.isArray(Z),!Z||Z=="object"||Z=="array"||w&&(0<=Z.indexOf("object")||0<=Z.indexOf("array"))?N+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+m+" = false; break outer; } } } ":(N=(N+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ")+" if ("+g.util["checkDataType"+(w?"s":"")](Z,"item",g.opts.strictNumbers,!0)+") continue; ",w&&(N+=` if (typeof item == 'string') item = '"' + item; `),N+=" if (typeof itemIndices[item] == 'number') { "+m+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),N+=" } ",b&&(N+=" } "),(S=S||[]).push(N+=" if (!"+m+") { "),N="",g.createErrors!==!1?(N+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(M)+" , params: { i: i, j: j } ",g.opts.messages!==!1&&(N+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),g.opts.verbose&&(N=(N+=" , schema: ")+(b?"validate.schema"+W:""+O)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+f+" "),N+=" } "):N+=" {} ",Z=N,N=S.pop(),!g.compositeRule&&j?g.async?N+=" throw new ValidationError(["+Z+"]); ":N+=" validate.errors = ["+Z+"]; return false; ":N+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+=" } ",j&&(N+=" else { ")):j&&(N+=" if (true) { "),N}},1869:function(ie){ie.exports=function(g,X,P){var S="",N=g.schema.$async===!0,Z=g.util.schemaHasRulesExcept(g.schema,g.RULES.all,"$ref"),O=g.self._getId(g.schema);if(g.opts.strictKeywords){var W=g.util.schemaUnknownRules(g.schema,g.RULES.keywords);if(W){if(W="unknown keyword: "+W,g.opts.strictKeywords!=="log")throw new Error(W);g.logger.warn(W)}}if(g.isTop&&(S+=" var validate = ",N&&(g.async=!0,S+="async "),S+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",O&&(g.opts.sourceCode||g.opts.processCode)&&(S+=" /*# sourceURL="+O+" */ ")),typeof g.schema=="boolean"||!Z&&!g.schema.$ref)return j=g.level,f=g.dataLevel,T=g.schema[X="false schema"],r=g.schemaPath+g.util.getProperty(X),l=g.errSchemaPath+"/"+X,p=!g.opts.allErrors,m="data"+(f||""),w="valid"+j,g.schema===!1?(g.isTop?p=!0:S+=" var "+w+" = false; ",(R=R||[]).push(S),S="",g.createErrors!==!1?(S+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(l)+" , params: {} ",g.opts.messages!==!1&&(S+=" , message: 'boolean schema is false' "),g.opts.verbose&&(S+=" , schema: false , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),S+=" } "):S+=" {} ",u=S,S=R.pop(),!g.compositeRule&&p?g.async?S+=" throw new ValidationError(["+u+"]); ":S+=" validate.errors = ["+u+"]; return false; ":S+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):g.isTop?S+=N?" return data; ":" validate.errors = null; return true; ":S+=" var "+w+" = true; ",g.isTop&&(S+=" }; return validate; "),S;if(g.isTop){var M=g.isTop,j=g.level=0,f=g.dataLevel=0,m="data";if(g.rootId=g.resolve.fullPath(g.self._getId(g.root.schema)),g.baseId=g.baseId||g.rootId,delete g.isTop,g.dataPathArr=[""],g.schema.default!==void 0&&g.opts.useDefaults&&g.opts.strictDefaults){var b="default is ignored in the schema root";if(g.opts.strictDefaults!=="log")throw new Error(b);g.logger.warn(b)}S=(S+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(j=g.level,m="data"+((f=g.dataLevel)||""),O&&(g.baseId=g.resolve.url(g.baseId,O)),N&&!g.async)throw new Error("async schema in sync schema");S+=" var errs_"+j+" = errors;"}var w="valid"+j,p=!g.opts.allErrors,s="",a="",n=g.schema.type,e=Array.isArray(n);if(n&&g.opts.nullable&&g.schema.nullable===!0&&(e?n.indexOf("null")==-1&&(n=n.concat("null")):n!="null"&&(n=[n,"null"],e=!0)),e&&n.length==1&&(n=n[0],e=!1),g.schema.$ref&&Z){if(g.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+g.errSchemaPath+'" (see option extendRefs)');g.opts.extendRefs!==!0&&(Z=!1,g.logger.warn('$ref: keywords ignored in schema at path "'+g.errSchemaPath+'"'))}if(g.schema.$comment&&g.opts.$comment&&(S+=" "+g.RULES.all.$comment.code(g,"$comment")),n){g.opts.coerceTypes&&(t=g.util.coerceToTypes(g.opts.coerceTypes,n));var t,i=g.RULES.types[n];if(t||e||i===!0||i&&!$(i)){var r=g.schemaPath+".type",l=g.errSchemaPath+"/type",r=g.schemaPath+".type",l=g.errSchemaPath+"/type";if(S+=" if ("+g.util[e?"checkDataTypes":"checkDataType"](n,m,g.opts.strictNumbers,!0)+") { ",t){var o="dataType"+j,c="coerced"+j,h=(S+=" var "+o+" = typeof "+m+"; var "+c+" = undefined; ",g.opts.coerceTypes=="array"&&(S+=" if ("+o+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+o+" = typeof "+m+"; if ("+g.util.checkDataType(g.schema.type,m,g.opts.strictNumbers)+") "+c+" = "+m+"; } "),S+=" if ("+c+" !== undefined) ; ",t);if(h)for(var y,v=-1,d=h.length-1;v",9:"Array"},M="UnquotedIdentifier",j="QuotedIdentifier",f="Rbracket",m="Rparen",b="Comma",w="Colon",p="Rbrace",s="Number",a="Current",n="Expref",e="Pipe",t="Flatten",i="Star",r="Filter",l="Lbrace",o="Lbracket",c="Lparen",h="Literal",y={".":"Dot","*":i,",":b,":":w,"{":l,"}":p,"]":f,"(":c,")":m,"@":a},v={"<":!0,">":!0,"=":!0,"!":!0},d={" ":!0," ":!0,"\n":!0};function u(k){return"0"<=k&&k<="9"||k==="-"}function A(){}A.prototype={tokenize:function(k){var _,F,H=[];for(this._current=0;this._current"?k[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:_}):{type:"GT",value:">",start:_}:F==="="&&k[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:_}):void 0},_consumeLiteral:function(k){this._current++;for(var _=this._current,F=k.length;k[this._current]!=="`"&&this._currentNumber.MAX_SAFE_INTEGER||R=s.length)throw new SyntaxError("Unexpected end of JSON input")}},g.stringify=function(s,a,n){if(N(s)){var e=0;switch(typeof(i=typeof n=="object"?n.space:n)){case"number":var t=101){U[0]=U[0].slice(0,-1);for(var se=U.length-1,re=1;re= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=p-s,v=Math.floor,d=String.fromCharCode;function u(q){throw new RangeError(h[q])}function A(q,U){for(var te=[],se=q.length;se--;)te[se]=U(q[se]);return te}function x(q,U){var te=q.split("@"),se="";te.length>1&&(se=te[0]+"@",q=te[1]),q=q.replace(c,".");var re=q.split("."),Ee=A(re,U).join(".");return se+Ee}function I(q){for(var U=[],te=0,se=q.length;te=55296&&re<=56319&&te>1,U+=v(U/te);U>y*a>>1;re+=p)U=v(U/y);return v(re+(y+1)*U/(U+n))},_=function(U){var te=[],se=U.length,re=0,Ee=i,Re=t,Pe=U.lastIndexOf(r);Pe<0&&(Pe=0);for(var je=0;je=128&&u("not-basic"),te.push(U.charCodeAt(je));for(var Ke=Pe>0?Pe+1:0;Ke=se&&u("invalid-input");var Le=T(U.charCodeAt(Ke++));(Le>=p||Le>v((w-re)/Ve))&&u("overflow"),re+=Le*Ve;var Ze=ze<=Re?s:ze>=Re+a?a:ze-Re;if(Lev(w/Xe)&&u("overflow"),Ve*=Xe}var Oe=te.length+1;Re=k(re-Ne,Oe,Ne==0),v(re/Oe)>w-Ee&&u("overflow"),Ee+=v(re/Oe),re%=Oe,te.splice(re++,0,Ee)}return String.fromCodePoint.apply(String,te)},F=function(U){var te=[];U=I(U);var se=U.length,re=i,Ee=0,Re=t,Pe=!0,je=!1,Ke=void 0;try{for(var Ne=U[Symbol.iterator](),Ve;!(Pe=(Ve=Ne.next()).done);Pe=!0){var ze=Ve.value;ze<128&&te.push(d(ze))}}catch(vt){je=!0,Ke=vt}finally{try{!Pe&&Ne.return&&Ne.return()}finally{if(je)throw Ke}}var Le=te.length,Ze=Le;for(Le&&te.push(r);Ze=re&&dtv((w-Ee)/et)&&u("overflow"),Ee+=(Xe-re)*et,re=Xe;var rt=!0,ht=!1,lt=void 0;try{for(var Ct=U[Symbol.iterator](),$t;!(rt=($t=Ct.next()).done);rt=!0){var Lt=$t.value;if(Ltw&&u("overflow"),Lt==re){for(var wt=Ee,xt=p;;xt+=p){var St=xt<=Re?s:xt>=Re+a?a:xt-Re;if(wt>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():te="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),te}function J(q){for(var U="",te=0,se=q.length;te=194&&re<224){if(se-te>=6){var Ee=parseInt(q.substr(te+4,2),16);U+=String.fromCharCode((re&31)<<6|Ee&63)}else U+=q.substr(te,6);te+=6}else if(re>=224){if(se-te>=9){var Re=parseInt(q.substr(te+4,2),16),Pe=parseInt(q.substr(te+7,2),16);U+=String.fromCharCode((re&15)<<12|(Re&63)<<6|Pe&63)}else U+=q.substr(te,9);te+=9}else U+=q.substr(te,3),te+=3}return U}function R(q,U){function te(se){var re=J(se);return re.match(U.UNRESERVED)?re:se}return q.scheme&&(q.scheme=String(q.scheme).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(U.PCT_ENCODED,te).replace(U.NOT_USERINFO,D).replace(U.PCT_ENCODED,Z)),q.host!==void 0&&(q.host=String(q.host).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_HOST,D).replace(U.PCT_ENCODED,Z)),q.path!==void 0&&(q.path=String(q.path).replace(U.PCT_ENCODED,te).replace(q.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,D).replace(U.PCT_ENCODED,Z)),q.query!==void 0&&(q.query=String(q.query).replace(U.PCT_ENCODED,te).replace(U.NOT_QUERY,D).replace(U.PCT_ENCODED,Z)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(U.PCT_ENCODED,te).replace(U.NOT_FRAGMENT,D).replace(U.PCT_ENCODED,Z)),q}function V(q){return q.replace(/^0*(.*)/,"$1")||"0"}function B(q,U){var te=q.match(U.IPV4ADDRESS)||[],se=m(te,2),re=se[1];return re?re.split(".").map(V).join("."):q}function C(q,U){var te=q.match(U.IPV6ADDRESS)||[],se=m(te,3),re=se[1],Ee=se[2];if(re){for(var Re=re.toLowerCase().split("::").reverse(),Pe=m(Re,2),je=Pe[0],Ke=Pe[1],Ne=Ke?Ke.split(":").map(V):[],Ve=je.split(":").map(V),ze=U.IPV4ADDRESS.test(Ve[Ve.length-1]),Le=ze?7:8,Ze=Ve.length-Le,Xe=Array(Le),Oe=0;Oe1){var pt=Xe.slice(0,nt.index),dt=Xe.slice(nt.index+nt.length);ot=pt.join(":")+"::"+dt.join(":")}else ot=Xe.join(":");return Ee&&(ot+="%"+Ee),ot}else return q}var E=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$="".match(/(){0}/)[1]===void 0;function G(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te={},se=U.iri!==!1?f:j;U.reference==="suffix"&&(q=(U.scheme?U.scheme+":":"")+"//"+q);var re=q.match(E);if(re){$?(te.scheme=re[1],te.userinfo=re[3],te.host=re[4],te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=re[7],te.fragment=re[8],isNaN(te.port)&&(te.port=re[5])):(te.scheme=re[1]||void 0,te.userinfo=q.indexOf("@")!==-1?re[3]:void 0,te.host=q.indexOf("//")!==-1?re[4]:void 0,te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=q.indexOf("?")!==-1?re[7]:void 0,te.fragment=q.indexOf("#")!==-1?re[8]:void 0,isNaN(te.port)&&(te.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?re[4]:void 0)),te.host&&(te.host=C(B(te.host,se),se)),te.scheme===void 0&&te.userinfo===void 0&&te.host===void 0&&te.port===void 0&&!te.path&&te.query===void 0?te.reference="same-document":te.scheme===void 0?te.reference="relative":te.fragment===void 0?te.reference="absolute":te.reference="uri",U.reference&&U.reference!=="suffix"&&U.reference!==te.reference&&(te.error=te.error||"URI is not a "+U.reference+" reference.");var Ee=z[(U.scheme||te.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(te.host&&(U.domainHost||Ee&&Ee.domainHost))try{te.host=H.toASCII(te.host.replace(se.PCT_ENCODED,J).toLowerCase())}catch(Re){te.error=te.error||"Host's domain name can not be converted to ASCII via punycode: "+Re}R(te,j)}else R(te,se);Ee&&Ee.parse&&Ee.parse(te,U)}else te.error=te.error||"URI can not be parsed.";return te}function K(q,U){var te=U.iri!==!1?f:j,se=[];return q.userinfo!==void 0&&(se.push(q.userinfo),se.push("@")),q.host!==void 0&&se.push(C(B(String(q.host),te),te).replace(te.IPV6ADDRESS,function(re,Ee,Re){return"["+Ee+(Re?"%25"+Re:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(se.push(":"),se.push(String(q.port))),se.length?se.join(""):void 0}var Q=/^\.\.?\//,ee=/^\/\.(\/|$)/,he=/^\/\.\.(\/|$)/,xe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(q){for(var U=[];q.length;)if(q.match(Q))q=q.replace(Q,"");else if(q.match(ee))q=q.replace(ee,"/");else if(q.match(he))q=q.replace(he,"/"),U.pop();else if(q==="."||q==="..")q="";else{var te=q.match(xe);if(te){var se=te[0];q=q.slice(se.length),U.push(se)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Ce(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=U.iri?f:j,se=[],re=z[(U.scheme||q.scheme||"").toLowerCase()];if(re&&re.serialize&&re.serialize(q,U),q.host&&!te.IPV6ADDRESS.test(q.host)){if(U.domainHost||re&&re.domainHost)try{q.host=U.iri?H.toUnicode(q.host):H.toASCII(q.host.replace(te.PCT_ENCODED,J).toLowerCase())}catch(Pe){q.error=q.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}R(q,te),U.reference!=="suffix"&&q.scheme&&(se.push(q.scheme),se.push(":"));var Ee=K(q,U);if(Ee!==void 0&&(U.reference!=="suffix"&&se.push("//"),se.push(Ee),q.path&&q.path.charAt(0)!=="/"&&se.push("/")),q.path!==void 0){var Re=q.path;!U.absolutePath&&(!re||!re.absolutePath)&&(Re=ge(Re)),Ee===void 0&&(Re=Re.replace(/^\/\//,"/%2F")),se.push(Re)}return q.query!==void 0&&(se.push("?"),se.push(q.query)),q.fragment!==void 0&&(se.push("#"),se.push(q.fragment)),se.join("")}function ve(q,U){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=arguments[3],re={};return se||(q=G(Ce(q,te),te),U=G(Ce(U,te),te)),te=te||{},!te.tolerant&&U.scheme?(re.scheme=U.scheme,re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.path?(U.path.charAt(0)==="/"?re.path=ge(U.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?re.path="/"+U.path:q.path?re.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+U.path:re.path=U.path,re.path=ge(re.path)),re.query=U.query):(re.path=q.path,U.query!==void 0?re.query=U.query:re.query=q.query),re.userinfo=q.userinfo,re.host=q.host,re.port=q.port),re.scheme=q.scheme),re.fragment=U.fragment,re}function ye(q,U,te){var se=W({scheme:"null"},te);return Ce(ve(G(q,se),G(U,se),se,!0),se)}function Te(q,U){return typeof q=="string"?q=Ce(G(q,U),U):N(q)==="object"&&(q=G(Ce(q,U),U)),q}function _e(q,U,te){return typeof q=="string"?q=Ce(G(q,te),te):N(q)==="object"&&(q=Ce(q,te)),typeof U=="string"?U=Ce(G(U,te),te):N(U)==="object"&&(U=Ce(U,te)),q===U}function Se(q,U){return q&&q.toString().replace(!U||!U.iri?j.ESCAPE:f.ESCAPE,D)}function ue(q,U){return q&&q.toString().replace(!U||!U.iri?j.PCT_ENCODED:f.PCT_ENCODED,J)}var $e={scheme:"http",domainHost:!0,parse:function(U,te){return U.host||(U.error=U.error||"HTTP URIs must have a host."),U},serialize:function(U,te){var se=String(U.scheme).toLowerCase()==="https";return(U.port===(se?443:80)||U.port==="")&&(U.port=void 0),U.path||(U.path="/"),U}},ae={scheme:"https",domainHost:$e.domainHost,parse:$e.parse,serialize:$e.serialize};function me(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var ce={scheme:"ws",domainHost:!0,parse:function(U,te){var se=U;return se.secure=me(se),se.resourceName=(se.path||"/")+(se.query?"?"+se.query:""),se.path=void 0,se.query=void 0,se},serialize:function(U,te){if((U.port===(me(U)?443:80)||U.port==="")&&(U.port=void 0),typeof U.secure=="boolean"&&(U.scheme=U.secure?"wss":"ws",U.secure=void 0),U.resourceName){var se=U.resourceName.split("?"),re=m(se,2),Ee=re[0],Re=re[1];U.path=Ee&&Ee!=="/"?Ee:void 0,U.query=Re,U.resourceName=void 0}return U.fragment=void 0,U}},de={scheme:"wss",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize},fe={},be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ke="[0-9A-Fa-f]",Me=S(S("%[EFef]"+ke+"%"+ke+ke+"%"+ke+ke)+"|"+S("%[89A-Fa-f]"+ke+"%"+ke+ke)+"|"+S("%"+ke+ke)),Je="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",He=P("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Qe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",At=new RegExp(be,"g"),Y=new RegExp(Me,"g"),ne=new RegExp(P("[^]",Je,"[\\.]",'[\\"]',He),"g"),oe=new RegExp(P("[^]",be,Qe),"g"),pe=oe;function we(q){var U=J(q);return U.match(At)?U:q}var Ae={scheme:"mailto",parse:function(U,te){var se=U,re=se.to=se.path?se.path.split(","):[];if(se.path=void 0,se.query){for(var Ee=!1,Re={},Pe=se.query.split("&"),je=0,Ke=Pe.length;je1&&arguments[1]!==void 0?arguments[1]:1,r=i>0?t.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):t.toString();return r||"0"}var Z=function(){function t(i,r,l,o){g(this,t);var c=this;function h(v){if(v.startsWith("hsl")){var d=v.match(/([\-\d\.e]+)/g).map(Number),u=P(d,4),A=u[0],x=u[1],I=u[2],T=u[3];T===void 0&&(T=1),A/=360,x/=100,I/=100,c.hsla=[A,x,I,T]}else if(v.startsWith("rgb")){var L=v.match(/([\-\d\.e]+)/g).map(Number),k=P(L,4),_=k[0],F=k[1],H=k[2],z=k[3];z===void 0&&(z=1),c.rgba=[_,F,H,z]}else v.startsWith("#")?c.rgba=t.hexToRgb(v):c.rgba=t.nameToRgb(v)||t.hexToRgb(v)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(l===void 0){var y=i&&""+i;y&&h(y.toLowerCase())}else this.rgba=[i,r,l,o===void 0?1:o]}return X(t,[{key:"printRGB",value:function(r){var l=r?this.rgba:this.rgba.slice(0,3),o=l.map(function(c,h){return N(c,h===3?3:0)});return r?"rgba("+o+")":"rgb("+o+")"}},{key:"printHSL",value:function(r){var l=[360,100,100,1],o=["","%","%",""],c=r?this.hsla:this.hsla.slice(0,3),h=c.map(function(y,v){return N(y*l[v],v===3?3:1)+o[v]});return r?"hsla("+h+")":"hsl("+h+")"}},{key:"printHex",value:function(r){var l=this.hex;return r?l:l.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(r){r.length===3&&(r[3]=1),this._rgba=r,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(r){r.length===3&&(r[3]=1),this._hsla=r,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var r=this.rgba,l=r.map(function(o,c){return c<3?o.toString(16):Math.round(o*255).toString(16)});return"#"+l.map(function(o){return o.padStart(2,"0")}).join("")},set:function(r){this.rgba=t.hexToRgb(r)}}],[{key:"hexToRgb",value:function(r){var l=(r.startsWith("#")?r.slice(1):r).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!l.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+r);var o=l.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(c){return parseInt(c,16)});return o[3]=o[3]/255,o}},{key:"nameToRgb",value:function(r){var l=r.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),o=S[l];return o===void 0?o:t.hexToRgb(o.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(r){var l=P(r,4),o=l[0],c=l[1],h=l[2],y=l[3];o/=255,c/=255,h/=255;var v=Math.max(o,c,h),d=Math.min(o,c,h),u=void 0,A=void 0,x=(v+d)/2;if(v===d)u=A=0;else{var I=v-d;switch(A=x>.5?I/(2-v-d):I/(v+d),v){case o:u=(c-h)/I+(c1&&(F-=1),F<.16666666666666666?k+(_-k)*6*F:F<.5?_:F<.6666666666666666?k+(_-k)*(.6666666666666666-F)*6:k},x=h<.5?h*(1+c):h+c-h*c,I=2*h-x;v=A(I,x,o+1/3),d=A(I,x,o),u=A(I,x,o-1/3)}var T=[v*255,d*255,u*255].map(Math.round);return T[3]=y,T}}]),t}(),O=function(){function t(){g(this,t),this._events=[]}return X(t,[{key:"add",value:function(r,l,o){r.addEventListener(l,o,!1),this._events.push({target:r,type:l,handler:o})}},{key:"remove",value:function(r,l,o){this._events=this._events.filter(function(c){var h=!0;return r&&r!==c.target&&(h=!1),l&&l!==c.type&&(h=!1),o&&o!==c.handler&&(h=!1),h&&t._doRemove(c.target,c.type,c.handler),!h})}},{key:"destroy",value:function(){this._events.forEach(function(r){return t._doRemove(r.target,r.type,r.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(r,l,o){r.removeEventListener(l,o,!1)}}]),t}();function W(t){var i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}function M(t,i,r){var l=!1;function o(v,d,u){return Math.max(d,Math.min(v,u))}function c(v,d,u){if(u&&(l=!0),!!l){v.preventDefault();var A=i.getBoundingClientRect(),x=A.width,I=A.height,T=d.clientX,L=d.clientY,k=o(T-A.left,0,x),_=o(L-A.top,0,I);r(k/x,_/I)}}function h(v,d){var u=v.buttons===void 0?v.which:v.buttons;u===1?c(v,v,d):l=!1}function y(v,d){v.touches.length===1?c(v,v.touches[0],d):l=!1}t.add(i,"mousedown",function(v){h(v,!0)}),t.add(i,"touchstart",function(v){y(v,!0)}),t.add(window,"mousemove",h),t.add(i,"touchmove",y),t.add(window,"mouseup",function(v){l=!1}),t.add(i,"touchend",function(v){l=!1}),t.add(i,"touchcancel",function(v){l=!1})}var j=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em, + linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,f=360,m="keydown",b="mousedown",w="focusin";function p(t,i){return(i||document).querySelector(t)}function s(t){t.preventDefault(),t.stopPropagation()}function a(t,i,r,l,o){t.add(i,m,function(c){r.indexOf(c.key)>=0&&(o&&s(c),l(c))})}var n=function(){function t(i){g(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new O,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return X(t,[{key:"setOptions",value:function(r){var l=this;if(!r)return;var o=this.settings;function c(d,u,A){for(var x in d)A&&A.indexOf(x)>=0||(u[x]=d[x])}if(r instanceof HTMLElement)o.parent=r;else{o.parent&&r.parent&&o.parent!==r.parent&&(this._events.remove(o.parent),this._popupInited=!1),c(r,o),r.onChange&&(this.onChange=r.onChange),r.onDone&&(this.onDone=r.onDone),r.onOpen&&(this.onOpen=r.onOpen),r.onClose&&(this.onClose=r.onClose);var h=r.color||r.colour;h&&this._setColor(h)}var y=o.parent;if(y&&o.popup&&!this._popupInited){var v=function(u){return l.openHandler(u)};this._events.add(y,"click",v),a(this._events,y,[" ","Spacebar","Enter"],v),this._popupInited=!0}else r.parent&&!o.popup&&this.show()}},{key:"openHandler",value:function(r){if(this.show()){r&&r.preventDefault(),this.settings.parent.style.pointerEvents="none";var l=r&&r.type===m?this._domEdit:this.domElement;setTimeout(function(){return l.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(r){var l=r&&r.type,o=!1;if(!r)o=!0;else if(l===b||l===w){var c=(this.__containedEvent||0)+100;r.timeStamp>c&&(o=!0)}else s(r),o=!0;o&&this.hide()&&(this.settings.parent.style.pointerEvents="",l!==b&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(r,l){this.closeHandler(),this.setOptions(r),l&&this.openHandler()}},{key:"setColor",value:function(r,l){this._setColor(r,{silent:l})}},{key:"_setColor",value:function(r,l){if(typeof r=="string"&&(r=r.trim()),!!r){l=l||{};var o=void 0;try{o=new Z(r)}catch(h){if(l.failSilently)return;throw h}if(!this.settings.alpha){var c=o.hsla;c[3]=1,o.hsla=c}this.colour=this.color=o,this._setHSLA(null,null,null,null,l)}}},{key:"setColour",value:function(r,l){this.setColor(r,l)}},{key:"show",value:function(){var r=this.settings.parent;if(!r)return!1;if(this.domElement){var l=this._toggleDOM(!0);return this._setPosition(),l}var o=this.settings.template||'OkCancel',c=W(o);return this.domElement=c,this._domH=p(".picker_hue",c),this._domSL=p(".picker_sl",c),this._domA=p(".picker_alpha",c),this._domEdit=p(".picker_editor input",c),this._domSample=p(".picker_sample",c),this._domOkay=p(".picker_done button",c),this._domCancel=p(".picker_cancel button",c),c.classList.add("layout_"+this.settings.layout),this.settings.alpha||c.classList.add("no_alpha"),this.settings.editor||c.classList.add("no_editor"),this.settings.cancelButton||c.classList.add("no_cancel"),this._ifPopup(function(){return c.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var r=this,l=this,o=this.domElement,c=this._events;function h(d,u,A){c.add(d,u,A)}h(o,"click",function(d){return d.preventDefault()}),M(c,this._domH,function(d,u){return l._setHSLA(d)}),M(c,this._domSL,function(d,u){return l._setHSLA(null,d,1-u)}),this.settings.alpha&&M(c,this._domA,function(d,u){return l._setHSLA(null,null,null,1-u)});var y=this._domEdit;h(y,"input",function(d){l._setColor(this.value,{fromEditor:!0,failSilently:!0})}),h(y,"focus",function(d){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var d=function(x){return r.closeHandler(x)};h(window,b,d),h(window,w,d),a(c,o,["Esc","Escape"],d);var u=function(x){r.__containedEvent=x.timeStamp};h(o,b,u),h(o,w,u),h(r._domCancel,"click",d)});var v=function(u){r._ifPopup(function(){return r.closeHandler(u)}),r.onDone&&r.onDone(r.colour)};h(this._domOkay,"click",v),a(c,o,["Enter"],v)}},{key:"_setPosition",value:function(){var r=this.settings.parent,l=this.domElement;r!==l.parentNode&&r.appendChild(l),this._ifPopup(function(o){getComputedStyle(r).position==="static"&&(r.style.position="relative");var c=o===!0?"popup_right":"popup_"+o;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(h){h===c?l.classList.add(h):l.classList.remove(h)}),l.classList.add(c)})}},{key:"_setHSLA",value:function(r,l,o,c,h){h=h||{};var y=this.colour,v=y.hsla;[r,l,o,c].forEach(function(d,u){(d||d===0)&&(v[u]=d)}),y.hsla=v,this._updateUI(h),this.onChange&&!h.silent&&this.onChange(y)}},{key:"_updateUI",value:function(r){if(!this.domElement)return;r=r||{};var l=this.colour,o=l.hsla,c="hsl("+o[0]*f+", 100%, 50%)",h=l.hslString,y=l.hslaString,v=this._domH,d=this._domSL,u=this._domA,A=p(".picker_selector",v),x=p(".picker_selector",d),I=p(".picker_selector",u);function T(J,R,V){R.style.left=V*100+"%"}function L(J,R,V){R.style.top=V*100+"%"}T(v,A,o[0]),this._domSL.style.backgroundColor=this._domH.style.color=c,T(d,x,o[1]),L(d,x,1-o[2]),d.style.color=h,L(u,I,1-o[3]);var k=h,_=k.replace("hsl","hsla").replace(")",", 0)"),F="linear-gradient("+[k,_]+")";if(this._domA.style.background=F+", "+j,!r.fromEditor){var H=this.settings.editorFormat,z=this.settings.alpha,D=void 0;switch(H){case"rgb":D=l.printRGB(z);break;case"hsl":D=l.printHSL(z);break;default:D=l.printHex(z)}this._domEdit.value=D}this._domSample.style.color=y}},{key:"_ifPopup",value:function(r,l){this.settings.parent&&this.settings.popup?r&&r(this.settings.popup):l&&l()}},{key:"_toggleDOM",value:function(r){var l=this.domElement;if(!l)return!1;var o=r?"":"none",c=l.style.display!==o;return c&&(l.style.display=o),c}}]),t}(),e=document.createElement("style");return e.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(e),n.StyleElement=e,n}()},402:function(ie,g){function X(P,S){if(!(this instanceof X))throw new SyntaxError("Constructor must be called with the new operator");this.message=P+" (char "+S+")",this.char=S,this.stack=new Error().stack}Object.defineProperty(g,"__esModule",{value:!0}),((g.default=X).prototype=new Error).constructor=Error},3860:function(ie,g,X){ie.exports=X(7490).default},7490:function(ie,g,X){g.default=function(u){n="",e=0,t=(a=u).charAt(0),i="",r=f,h();var A=r;if(d(),y(),i==="")return n;if(A===r&&c()){for(var x="";A===r&&c();)n=(0,S.insertBeforeLastWhitespace)(n,","),x+=n,n="",d(),y();return`[ +`.concat(x).concat(n,` +]`)}throw new P.default("Unexpected characters",e-i.length)};var P=(g=X(402))&&g.__esModule?g:{default:g},S=X(9422),N=0,Z=1,O=2,W=3,M=4,j=5,f=6,m={"":!0,"{":!0,"}":!0,"[":!0,"]":!0,":":!0,",":!0,"(":!0,")":!0,";":!0,"+":!0},b={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "},w={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},p={null:"null",true:"true",false:"false"},s={None:"null",True:"true",False:"false"},a="",n="",e=0,t="",i="",r=f;function l(){e++,t=a.charAt(e)}function o(){l(),t==="\\"&&l()}function c(){return r===N&&(i==="["||i==="{")||r===O||r===Z||r===W}function h(){if(n+=i,r=f,i="",m[t])r=N,i=t,l();else if((0,S.isDigit)(t)||t==="-"){if(r=Z,t==="-"){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e)}else t==="0"&&(i+=t,l());for(;(0,S.isDigit)(t);)i+=t,l();if(t==="."){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}if(t==="e"||t==="E"){if(i+=t,l(),t!=="+"&&t!=="-"||(i+=t,l()),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}}else t==="\\"&&a.charAt(e+1)==='"'?(l(),v(o)):v(l);r===M&&(i=(0,S.normalizeWhitespace)(i),h()),r===j&&(r=f,i="",h())}function y(){i===","&&(i="",r=f,h())}function v(u){if((0,S.isQuote)(t)){var A=(0,S.normalizeQuote)(t),x=(0,S.isSingleQuote)(t)?S.isSingleQuote:S.isDoubleQuote;for(i+='"',r=O,u();t!==""&&!x(t);)if(t==="\\")if(u(),b[t]!==void 0)i+="\\"+t,u();else if(t==="u"){i+="\\u",u();for(var I=0;I<4;I++){if(!(0,S.isHex)(t))throw new P.default("Invalid unicode character",e-i.length);i+=t,u()}}else{if(t!=="'")throw new P.default('Invalid escape character "\\'+t+'"',e);i+="'",u()}else w[t]?i+=w[t]:i+=t==='"'?'\\"':t,u();if((0,S.normalizeQuote)(t)!==A)throw new P.default("End of string expected",e-i.length);return i+='"',void u()}if((0,S.isAlpha)(t))for(r=W;(0,S.isAlpha)(t)||(0,S.isDigit)(t)||t==="$";)i+=t,l();else if((0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t))for(r=M;(0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t);)i+=t,l();else if(t==="/"&&a[e+1]==="*"){for(r=j;t!==""&&(t!=="*"||t==="*"&&a[e+1]!=="/");)i+=t,l();t==="*"&&a[e+1]==="/"&&(i+=t,l(),i+=t,l())}else if(t==="/"&&a[e+1]==="/")for(r=j;t!==""&&t!==` +`;)i+=t,l();else{for(r=f;t!=="";)i+=t,l();throw new P.default('Syntax error in part "'+i+'"',e-i.length)}}function d(){if(r===N&&i==="{")if(h(),r===N&&i==="}")h();else{for(;;){if(r!==W&&r!==Z||(r=O,i='"'.concat(i,'"')),r!==O)throw new P.default("Object key expected",e-i.length);if(h(),r===N&&i===":")h();else{if(!c())throw new P.default("Colon expected",e-i.length);n=(0,S.insertBeforeLastWhitespace)(n,":")}if(d(),r===N&&i===","){if(h(),r===N&&i==="}"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(r!==O&&r!==Z&&r!==W)break;n=(0,S.insertBeforeLastWhitespace)(n,",")}}r===N&&i==="}"?h():n=(0,S.insertBeforeLastWhitespace)(n,"}")}else if(r===N&&i==="[")if(h(),r===N&&i==="]")h();else{for(;;)if(d(),r===N&&i===","){if(h(),r===N&&i==="]"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(!c())break;n=(0,S.insertBeforeLastWhitespace)(n,",")}r===N&&i==="]"?h():n=(0,S.insertBeforeLastWhitespace)(n,"]")}else if(r===O)for(h();r===N&&i==="+";){var u;i="",h(),r===O&&(u=n.lastIndexOf('"'),n=n.substring(0,u)+i.substring(1),i="",h())}else if(r===Z)h();else{if(r!==W)throw i===""?new P.default("Unexpected end of json string",e-i.length):new P.default("Value expected",e-i.length);if(p[i])h();else{if(s[i])return i=s[i],void h();var A=i,x=n.length;if(i="",h(),r===N&&i==="(")return i="",h(),d(),void(r===N&&i===")"&&(i="",h(),r===N&&i===";"&&(i="",h())));for(n=(0,S.insertAtIndex)(n,'"'.concat(A),x);r===W||r===Z;)h();n+='"'}}}},9422:function(ie,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isAlpha=function(M){return S.test(M)},g.isHex=function(M){return N.test(M)},g.isDigit=function(M){return Z.test(M)},g.isWhitespace=O,g.isSpecialWhitespace=W,g.normalizeWhitespace=function(M){for(var j="",f=0;f{N.width=Ie.width,N.height=Ie.height,W(),Z(Ge.value)}),qt(()=>{X==null||X.destroy(),X=null}),ei(()=>Ie.modelValue,M=>{X||W(),Z(M)});const Z=M=>{S||(typeof M=="string"?(P="string",X.set(JSON.parse(M))):(P="object",X.set(M)))},O=()=>{try{const M=X.get();P=="string"?le("update:modelValue",JSON.stringify(M)):le("update:modelValue",M),le("onChange",M),S=!0,ti(()=>{S=!1})}catch{}},W=()=>{console.log("init json editor");const M=Et(kt({},it.value),{mode:ie.value,modes:st.value,onChange:O});X=new oi(g.value,M)};return Et(kt({},_t(N)),{jsoneditorVue:g})}});function si(Ie,le,Ge,it,st,ie){return qe(),gt("div",null,[tt("div",{ref:"jsoneditorVue",style:ii({height:Ie.height,width:Ie.width})},null,4)])}var ai=Vt(ri,[["render",si]]);const li=Gt({name:"MongoDataOp",components:{ProjectEnvSelect:Xt,JsonEdit:ai},setup(){const Ie=Mt(null),le=Ht({loading:!1,mongoList:[],query:{envId:0},mongoId:null,database:"",collection:"",activeName:"",databases:[],collections:[],dataTabs:{},findDialog:{visible:!1,findParam:{filter:"",sort:""}},insertDocDialog:{visible:!1,doc:""},jsoneditorDialog:{visible:!1,doc:"",item:{}}}),Ge=async()=>{Jt(le.query.envId,"\u8BF7\u5148\u9009\u62E9\u9879\u76EE\u73AF\u5883");const a=await ut.mongoList.request(le.query);le.mongoList=a.list},it=(a,n)=>{le.databases=[],le.collections=[],le.mongoId=null,le.collection="",le.database="",le.dataTabs={},n!=null&&(le.query.envId=n,Ge())},st=()=>{le.databases=[],le.collections=[],le.dataTabs={},ie()},ie=async()=>{const a=await ut.databases.request({id:le.mongoId});le.databases=a.Databases},g=()=>{le.collections=[],le.collection="",le.dataTabs={},X()},X=async()=>{le.collections=await ut.collections.request({id:le.mongoId,database:le.database})},P=()=>{const a=le.collection;if(!le.dataTabs[a]){const e={filter:"{}",sort:'{"_id": -1}',skip:0,limit:12},t={name:a,datas:[],findParamStr:JSON.stringify(e),findParam:e};le.dataTabs[a]=t}le.activeName=a,Z(a)},S=a=>{const n=Object.keys(le.dataTabs);for(let e=0;e{le.dataTabs[le.activeName].findParam=le.findDialog.findParam,le.dataTabs[le.activeName].findParamStr=JSON.stringify(le.findDialog.findParam),le.findDialog.visible=!1,Z(le.activeName)},Z=async a=>{const e=le.dataTabs[a].findParam;let t,i;try{t=e.filter?JSON.parse(e.filter):{},i=e.sort?JSON.parse(e.sort):{}}catch{ft.error("filter\u6216sort\u5B57\u6BB5json\u5B57\u7B26\u4E32\u503C\u9519\u8BEF\u3002\u6CE8\u610F: json key\u9700\u53CC\u5F15\u53F7");return}const r=await ut.findCommand.request({id:le.mongoId,database:le.database,collection:a,filter:t,sort:i,limit:e.limit||12,skip:e.skip||0});le.dataTabs[a].datas=O(r)},O=a=>{const n=[];if(!a)return n;for(let e of a)n.push({value:JSON.stringify(e,null,4)});return n},W=()=>{const a=le.dataTabs[le.activeName].datas[0];let n="";if(a){const e=JSON.parse(a.value);delete e._id,n=JSON.stringify(e,null,4)}le.insertDocDialog.doc=n,le.insertDocDialog.visible=!0},M=async()=>{let a;try{a=JSON.parse(le.insertDocDialog.doc)}catch{ft.error("\u6587\u6863\u5185\u5BB9\u9519\u8BEF,\u65E0\u6CD5\u89E3\u6790\u4E3Ajson\u5BF9\u8C61")}const n=await ut.insertCommand.request({id:le.mongoId,database:le.database,collection:le.activeName,doc:a});Tt(n.InsertedID,"\u65B0\u589E\u5931\u8D25"),ft.success("\u65B0\u589E\u6210\u529F"),Z(le.activeName),le.insertDocDialog.visible=!1},j=a=>{le.jsoneditorDialog.item=a,le.jsoneditorDialog.doc=a.value,le.jsoneditorDialog.visible=!0},f=()=>{le.jsoneditorDialog.item.value=JSON.stringify(JSON.parse(le.jsoneditorDialog.doc),null,4)},m=async a=>{const n=w(a),e=n._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728"),delete n._id;const t=await ut.updateByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e,update:{$set:n}});Tt(t.ModifiedCount==1,"\u4FEE\u6539\u5931\u8D25"),ft.success("\u4FDD\u5B58\u6210\u529F")},b=async a=>{const e=w(a)._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728");const t=await ut.deleteByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e});Tt(t.DeletedCount==1,"\u5220\u9664\u5931\u8D25"),ft.success("\u5220\u9664\u6210\u529F"),Z(le.activeName)},w=a=>{try{return JSON.parse(a)}catch(n){throw ft.error("\u6587\u6863\u5185\u5BB9\u89E3\u6790\u4E3Ajson\u5BF9\u8C61\u5931\u8D25"),n}},p=a=>{const n=a.props.name;le.collection=n},s=a=>{const n=Object.keys(le.dataTabs);let e=le.activeName;n.forEach((t,i)=>{if(t===a){const r=n[i+1]||n[i-1];r&&(e=r)}}),le.activeName=e,e==a?le.collection="":le.collection=e,delete le.dataTabs[a]};return Et(kt({},_t(le)),{findParamInputRef:Ie,changeProjectEnv:it,changeMongo:st,changeDatabase:g,changeCollection:P,onDataTabClick:p,removeDataTab:s,showFindDialog:S,confirmFindDialog:N,findCommand:Z,showInsertDocDialog:W,onInsertDoc:M,onSaveDoc:m,onDeleteDoc:b,onJsonEditor:j,onCloseJsonEditDialog:f,formatByteSize:Yt})}}),ci={class:"toolbar"},di={style:{float:"left"}},hi={style:{float:"right",color:"#8492a6","margin-left":"6px","font-size":"13px"}},ui={style:{float:"left"}},gi={style:{float:"right",color:"#8492a6","margin-left":"4px","font-size":"13px"}},pi=yt("\u67E5\u8BE2\u53C2\u6570"),mi={style:{padding:"3px",float:"right"},class:"mr5 mongo-doc-btns"},fi=yt("\u53D6 \u6D88"),Ci=yt("\u786E \u5B9A"),vi=yt("\u53D6 \u6D88"),Ii=yt("\u786E \u5B9A"),bi=tt("div",{style:{"text-align":"center","margin-top":"10px"}},null,-1);function yi(Ie,le,Ge,it,st,ie){const g=Ye("el-option"),X=Ye("el-select"),P=Ye("el-form-item"),S=Ye("project-env-select"),N=Ye("el-col"),Z=Ye("el-row"),O=Ye("el-link"),W=Ye("el-input"),M=Ye("el-divider"),j=Ye("el-popconfirm"),f=Ye("el-card"),m=Ye("el-tab-pane"),b=Ye("el-tabs"),w=Ye("el-container"),p=Ye("el-form"),s=Ye("el-button"),a=Ye("el-dialog"),n=Ye("json-edit");return qe(),gt("div",null,[tt("div",ci,[Be(Z,{type:"flex",justify:"space-between"},{default:We(()=>[Be(N,{span:24},{default:We(()=>[Be(S,{onChangeProjectEnv:Ie.changeProjectEnv},{default:We(()=>[Be(P,{label:"\u5B9E\u4F8B","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.mongoId,"onUpdate:modelValue":le[0]||(le[0]=e=>Ie.mongoId=e),placeholder:"\u8BF7\u9009\u62E9mongo",onChange:Ie.changeMongo},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.mongoList,e=>(qe(),mt(g,{key:e.id,label:e.name,value:e.id},{default:We(()=>[tt("span",di,Rt(e.name),1),tt("span",hi,Rt(` [${e.uri}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u5E93","label-width":"20px"},{default:We(()=>[Be(X,{modelValue:Ie.database,"onUpdate:modelValue":le[1]||(le[1]=e=>Ie.database=e),placeholder:"\u8BF7\u9009\u62E9\u5E93",onChange:Ie.changeDatabase,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.databases,e=>(qe(),mt(g,{key:e.Name,label:e.Name,value:e.Name},{default:We(()=>[tt("span",ui,Rt(e.Name),1),tt("span",gi,Rt(` [${Ie.formatByteSize(e.SizeOnDisk)}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u96C6\u5408","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.collection,"onUpdate:modelValue":le[2]||(le[2]=e=>Ie.collection=e),placeholder:"\u8BF7\u9009\u62E9\u96C6\u5408",onChange:Ie.changeCollection,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.collections,e=>(qe(),mt(g,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["onChangeProjectEnv"])]),_:1})]),_:1})]),Be(w,{id:"data-exec",style:{border:"1px solid #eee","margin-top":"1px"}},{default:We(()=>[Be(b,{onTabRemove:Ie.removeDataTab,onTabClick:Ie.onDataTabClick,style:{width:"100%","margin-left":"5px"},modelValue:Ie.activeName,"onUpdate:modelValue":le[4]||(le[4]=e=>Ie.activeName=e)},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.dataTabs,e=>(qe(),mt(m,{closable:"",key:e.name,label:e.name,name:e.name},{default:We(()=>[Ie.mongoId?(qe(),mt(Z,{key:0},{default:We(()=>[Be(O,{onClick:le[3]||(le[3]=t=>Ie.findCommand(Ie.activeName)),icon:"refresh",underline:!1,class:"ml5"}),Be(O,{onClick:Ie.showInsertDocDialog,class:"ml5",type:"primary",icon:"plus",underline:!1},null,8,["onClick"])]),_:1})):ni("",!0),Be(Z,{class:"mt5 mb5"},{default:We(()=>[Be(W,{ref_for:!0,ref:"findParamInputRef",modelValue:e.findParamStr,"onUpdate:modelValue":t=>e.findParamStr=t,placeholder:"\u70B9\u51FB\u8F93\u5165\u76F8\u5E94\u67E5\u8BE2\u6761\u4EF6",onFocus:t=>Ie.showFindDialog(e.name)},{prepend:We(()=>[pi]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:2},1024),Be(Z,null,{default:We(()=>[(qe(!0),gt(It,null,bt(e.datas,t=>(qe(),mt(N,{span:6,key:t},{default:We(()=>[Be(f,{"body-style":{padding:"0px",position:"relative"}},{default:We(()=>[Be(W,{type:"textarea",modelValue:t.value,"onUpdate:modelValue":i=>t.value=i,rows:12},null,8,["modelValue","onUpdate:modelValue"]),tt("div",mi,[tt("div",null,[Be(O,{onClick:i=>Ie.onJsonEditor(t),underline:!1,type:"success",icon:"MagicStick"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(O,{onClick:i=>Ie.onSaveDoc(t.value),underline:!1,type:"warning",icon:"DocumentChecked"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(j,{onConfirm:i=>Ie.onDeleteDoc(t.value),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u6587\u6863?"},{reference:We(()=>[Be(O,{underline:!1,type:"danger",icon:"DocumentDelete"})]),_:2},1032,["onConfirm"])])])]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["onTabRemove","onTabClick","modelValue"])]),_:1}),Be(a,{width:"600px",title:"find\u53C2\u6570",modelValue:Ie.findDialog.visible,"onUpdate:modelValue":le[10]||(le[10]=e=>Ie.findDialog.visible=e)},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[9]||(le[9]=e=>Ie.findDialog.visible=!1)},{default:We(()=>[fi]),_:1}),Be(s,{onClick:Ie.confirmFindDialog,type:"primary"},{default:We(()=>[Ci]),_:1},8,["onClick"])])]),default:We(()=>[Be(p,{"label-width":"70px"},{default:We(()=>[Be(P,{label:"filter"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.filter,"onUpdate:modelValue":le[5]||(le[5]=e=>Ie.findDialog.findParam.filter=e),type:"textarea",rows:6,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"sort"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.sort,"onUpdate:modelValue":le[6]||(le[6]=e=>Ie.findDialog.findParam.sort=e),type:"textarea",rows:3,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"limit"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.limit,"onUpdate:modelValue":le[7]||(le[7]=e=>Ie.findDialog.findParam.limit=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"skip"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.skip,"onUpdate:modelValue":le[8]||(le[8]=e=>Ie.findDialog.findParam.skip=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),Be(a,{width:"800px",title:`\u65B0\u589E'${Ie.activeName}'\u96C6\u5408\u6587\u6863`,modelValue:Ie.insertDocDialog.visible,"onUpdate:modelValue":le[13]||(le[13]=e=>Ie.insertDocDialog.visible=e),"close-on-click-modal":!1},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[12]||(le[12]=e=>Ie.insertDocDialog.visible=!1)},{default:We(()=>[vi]),_:1}),Be(s,{onClick:Ie.onInsertDoc,type:"primary"},{default:We(()=>[Ii]),_:1},8,["onClick"])])]),default:We(()=>[Be(n,{currentMode:"code",modelValue:Ie.insertDocDialog.doc,"onUpdate:modelValue":le[11]||(le[11]=e=>Ie.insertDocDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["title","modelValue"]),Be(a,{width:"70%",title:"json\u7F16\u8F91\u5668",modelValue:Ie.jsoneditorDialog.visible,"onUpdate:modelValue":le[15]||(le[15]=e=>Ie.jsoneditorDialog.visible=e),onClose:Ie.onCloseJsonEditDialog,"close-on-click-modal":!1},{default:We(()=>[Be(n,{modelValue:Ie.jsoneditorDialog.doc,"onUpdate:modelValue":le[14]||(le[14]=e=>Ie.jsoneditorDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["modelValue","onClose"]),bi])}var _i=Vt(li,[["render",yi]]);export{_i as default}; diff --git a/server/static/static/assets/MongoList.1661345446364.js b/server/static/static/assets/MongoList.1661345446364.js new file mode 100644 index 00000000..d2ca1e63 --- /dev/null +++ b/server/static/static/assets/MongoList.1661345446364.js @@ -0,0 +1 @@ +var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var U=(e,o,c)=>o in e?X(e,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[o]=c,_=(e,o)=>{for(var c in o||(o={}))x.call(o,c)&&U(e,c,o[c]);if(T)for(var c of T(o))ee.call(o,c)&&U(e,c,o[c]);return e},M=(e,o)=>Y(e,Z(o));import{m as C}from"./api.16613454463646.js";import{p as N}from"./api.16613454463644.js";import{m as le}from"./api.16613454463643.js";import{A as O,q as ae,r as P,v as oe,t as H,_ as G,E as k,b as u,d as f,e as F,g as l,w as a,h as j,F as q,j as A,k as z,z as L,B as i,o as te,i as g,G as ne}from"./index.1661345446364.js";import{f as ie}from"./format.1661345446364.js";import"./Api.1661345446364.js";const se=O({name:"MongoEdit",props:{visible:{type:Boolean},projects:{type:Array},mongo:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:o}){const c=ae(null),r=P({dialogVisible:!1,projects:[],envs:[],sshTunnelMachineList:[],form:{id:null,name:null,uri:null,enableSshTunnel:-1,sshTunnelMachineId:null,project:null,projectId:null,envId:null,env:null},btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["change","blur"]}],uri:[{required:!0,message:"\u8BF7\u8F93\u5165mongo uri",trigger:["change","blur"]}]}});oe(e,async s=>{r.dialogVisible=s.visible,r.dialogVisible&&(r.projects=s.projects,s.mongo?(E(s.mongo.projectId),r.form=_({},s.mongo)):(r.envs=[],r.form={db:0}),y())});const y=async()=>{if(r.form.enableSshTunnel==1&&r.sshTunnelMachineList.length==0){const s=await le.list.request({pageNum:1,pageSize:100});r.sshTunnelMachineList=s.list}},E=async s=>{r.envs=await N.projectEnvs.request({projectId:s})},p=s=>{for(let m of r.projects)m.id==s&&(r.form.project=m.name);r.form.envId=null,r.form.env=null,r.envs=[],E(s)},h=s=>{for(let m of r.envs)m.id==s&&(r.form.env=m.name)},b=async()=>{c.value.validate(async s=>{if(s){const m=_({},r.form);C.saveMongo.request(m).then(()=>{k.success("\u4FDD\u5B58\u6210\u529F"),o("val-change",r.form),r.btnLoading=!0,setTimeout(()=>{r.btnLoading=!1},1e3),v()})}else return k.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},v=()=>{o("update:visible",!1),o("cancel")};return M(_({},H(r)),{mongoForm:c,changeProject:p,getSshTunnelMachines:y,changeEnv:h,btnOk:b,cancel:v})}}),ue=i(" \u673A\u5668: "),re={class:"dialog-footer"},de=i("\u53D6 \u6D88"),ge=i("\u786E \u5B9A");function me(e,o,c,r,y,E){const p=u("el-option"),h=u("el-select"),b=u("el-form-item"),v=u("el-input"),s=u("el-checkbox"),m=u("el-col"),D=u("el-form"),S=u("el-button"),B=u("el-dialog");return f(),F("div",null,[l(B,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":o[7]||(o[7]=t=>e.dialogVisible=t),"before-close":e.cancel,"close-on-click-modal":!1,width:"38%","destroy-on-close":!0},{footer:a(()=>[j("div",re,[l(S,{onClick:o[6]||(o[6]=t=>e.cancel())},{default:a(()=>[de]),_:1}),l(S,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:a(()=>[ge]),_:1},8,["loading","onClick"])])]),default:a(()=>[l(D,{model:e.form,ref:"mongoForm",rules:e.rules,"label-width":"85px"},{default:a(()=>[l(b,{prop:"projectId",label:"\u9879\u76EE",required:""},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l(b,{prop:"envId",label:"\u73AF\u5883",required:""},{default:a(()=>[l(h,{onChange:e.changeEnv,style:{width:"100%"},modelValue:e.form.envId,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.envId=t),placeholder:"\u8BF7\u9009\u62E9\u73AF\u5883"},{default:a(()=>[(f(!0),F(q,null,A(e.envs,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(b,{prop:"name",label:"\u540D\u79F0",required:""},{default:a(()=>[l(v,{modelValue:e.form.name,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"uri",label:"uri",required:""},{default:a(()=>[l(v,{type:"textarea",rows:2,modelValue:e.form.uri,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.uri=t),modelModifiers:{trim:!0},placeholder:"\u5F62\u5982 mongodb://username:password@host1:port1","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"enableSshTunnel",label:"SSH\u96A7\u9053:"},{default:a(()=>[l(m,{span:3},{default:a(()=>[l(s,{onChange:e.getSshTunnelMachines,modelValue:e.form.enableSshTunnel,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.enableSshTunnel=t),"true-label":1,"false-label":-1},null,8,["onChange","modelValue"])]),_:1}),e.form.enableSshTunnel==1?(f(),z(m,{key:0,span:2},{default:a(()=>[ue]),_:1})):L("",!0),e.form.enableSshTunnel==1?(f(),z(m,{key:1,span:19},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.sshTunnelMachineId,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sshTunnelMachineId=t),placeholder:"\u8BF7\u9009\u62E9SSH\u96A7\u9053\u673A\u5668"},{default:a(()=>[(f(!0),F(q,null,A(e.sshTunnelMachineList,t=>(f(),z(p,{key:t.id,label:`${t.ip}:${t.port} [${t.name}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):L("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var ce=G(se,[["render",me]]);const pe=O({name:"MongoList",components:{MongoEdit:ce},setup(){const e=P({projects:[],list:[],total:0,currentId:null,currentData:null,query:{pageNum:1,pageSize:10,prjectId:null,clusterId:null},mongoEditDialog:{visible:!1,data:null,title:"\u65B0\u589Emongo"},databaseDialog:{visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},collectionsDialog:{database:"",visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},createCollectionDialog:{visible:!1,form:{name:""}}});te(async()=>{D()});const o=t=>{e.query.pageNum=t,D()},c=t=>{!t||(e.currentId=t.id,e.currentData=t)},r=async t=>{e.databaseDialog.data=(await C.databases.request({id:t})).Databases,e.databaseDialog.title="\u6570\u636E\u5E93\u5217\u8868",e.databaseDialog.visible=!0},y=async t=>{e.databaseDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:t,command:{dbStats:1}}),e.databaseDialog.statsDialog.title=`'${t}' stats`,e.databaseDialog.statsDialog.visible=!0},E=async t=>{e.collectionsDialog.database=t,e.collectionsDialog.data=[],p(t),e.collectionsDialog.title=`'${t}' \u96C6\u5408`,e.collectionsDialog.visible=!0},p=async t=>{const $=await C.collections.request({id:e.currentId,database:t}),d=[];for(let I of $)d.push({name:I});e.collectionsDialog.data=d},h=async t=>{e.collectionsDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{collStats:t}}),e.collectionsDialog.statsDialog.title=`'${t}' stats`,e.collectionsDialog.statsDialog.visible=!0},b=async t=>{await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{drop:t}}),k.success("\u96C6\u5408\u5220\u9664\u6210\u529F"),p(e.collectionsDialog.database)},v=()=>{e.createCollectionDialog.visible=!0},s=async()=>{const t=e.createCollectionDialog.form;await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{create:t.name}}),k.success("\u96C6\u5408\u521B\u5EFA\u6210\u529F"),e.createCollectionDialog.visible=!1,e.createCollectionDialog.form={},p(e.collectionsDialog.database)},m=async()=>{try{await ne.confirm("\u786E\u5B9A\u5220\u9664\u8BE5mongo?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await C.deleteMongo.request({id:e.currentId}),k.success("\u5220\u9664\u6210\u529F"),e.currentData=null,e.currentId=null,D()}catch{}},D=async()=>{const t=await C.mongoList.request(e.query);e.list=t.list,e.total=t.total},S=async(t=!1)=>{e.projects=await N.accountProjects.request(null),t?(e.mongoEditDialog.data=null,e.mongoEditDialog.title="\u65B0\u589Emongo"):(e.mongoEditDialog.data=e.currentData,e.mongoEditDialog.title="\u4FEE\u6539mongo"),e.mongoEditDialog.visible=!0},B=()=>{e.currentId=null,e.currentData=null,D()};return M(_({},H(e)),{search:D,handlePageChange:o,choose:c,showDatabases:r,showDatabaseStats:y,showCollections:E,showCollectionStats:h,onDeleteCollection:b,showCreateCollectionDialog:v,onCreateCollection:s,formatByteSize:ie,deleteMongo:m,editMongo:S,valChange:B})}}),fe=i("\u6DFB\u52A0"),be=i("\u7F16\u8F91"),De=i("\u5220\u9664"),he={style:{float:"right"}},ve=j("i",null,null,-1),Ce=i("\u6570\u636E\u5E93"),ye=i("stats"),Ee=i("\u96C6\u5408"),Se=i("\u65B0\u5EFA"),we=i("stats"),ze=i("\u5220\u9664"),Fe=i("\u53D6 \u6D88"),Be=i("\u786E \u5B9A");function Ve(e,o,c,r,y,E){const p=u("el-button"),h=u("el-option"),b=u("el-select"),v=u("el-radio"),s=u("el-table-column"),m=u("el-link"),D=u("el-table"),S=u("el-pagination"),B=u("el-row"),t=u("el-card"),$=u("el-divider"),d=u("el-descriptions-item"),I=u("el-descriptions"),V=u("el-dialog"),R=u("el-popconfirm"),J=u("el-input"),K=u("el-form-item"),Q=u("el-form"),W=u("mongo-edit");return f(),F("div",null,[l(t,null,{default:a(()=>[l(p,{type:"primary",icon:"plus",onClick:o[0]||(o[0]=n=>e.editMongo(!0)),plain:""},{default:a(()=>[fe]),_:1}),l(p,{type:"primary",icon:"edit",disabled:e.currentId==null,onClick:o[1]||(o[1]=n=>e.editMongo(!1)),plain:""},{default:a(()=>[be]),_:1},8,["disabled"]),l(p,{type:"danger",icon:"delete",disabled:e.currentId==null,onClick:e.deleteMongo,plain:""},{default:a(()=>[De]),_:1},8,["disabled","onClick"]),j("div",he,[l(b,{modelValue:e.query.projectId,"onUpdate:modelValue":o[2]||(o[2]=n=>e.query.projectId=n),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",filterable:"",clearable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,n=>(f(),z(h,{key:n.id,label:`${n.name} [${n.remark}]`,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l(p,{class:"ml5",onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])]),l(D,{data:e.list,style:{width:"100%"},onCurrentChange:e.choose,stripe:""},{default:a(()=>[l(s,{label:"\u9009\u62E9",width:"60px"},{default:a(n=>[l(v,{modelValue:e.currentId,"onUpdate:modelValue":o[3]||(o[3]=w=>e.currentId=w),label:n.row.id},{default:a(()=>[ve]),_:2},1032,["modelValue","label"])]),_:1}),l(s,{prop:"project",label:"\u9879\u76EE",width:""}),l(s,{prop:"env",label:"\u73AF\u5883",width:""}),l(s,{prop:"name",label:"\u540D\u79F0",width:""}),l(s,{prop:"uri",label:"\u8FDE\u63A5uri","min-width":"150","show-overflow-tooltip":""},{default:a(n=>[i(g(n.row.uri.split("@")[1]),1)]),_:1}),l(s,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"},{default:a(n=>[i(g(e.$filters.dateFormat(n.row.createTime)),1)]),_:1}),l(s,{prop:"creator",label:"\u521B\u5EFA\u4EBA"}),l(s,{label:"\u64CD\u4F5C",width:""},{default:a(n=>[l(m,{type:"primary",onClick:w=>e.showDatabases(n.row.id),plain:"",size:"small",underline:!1},{default:a(()=>[Ce]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),l(B,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(S,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":o[4]||(o[4]=n=>e.query.pageNum=n),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),l(V,{width:"800px",title:e.databaseDialog.title,modelValue:e.databaseDialog.visible,"onUpdate:modelValue":o[6]||(o[6]=n=>e.databaseDialog.visible=n)},{default:a(()=>[l(D,{data:e.databaseDialog.data,size:"small"},{default:a(()=>[l(s,{"min-width":"130",property:"Name",label:"\u5E93\u540D"}),l(s,{"min-width":"90",property:"SizeOnDisk",label:"size"},{default:a(n=>[i(g(e.formatByteSize(n.row.SizeOnDisk)),1)]),_:1}),l(s,{"min-width":"80",property:"Empty",label:"\u662F\u5426\u4E3A\u7A7A"}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showDatabaseStats(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[ye]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(m,{type:"primary",onClick:w=>e.showCollections(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[Ee]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.databaseDialog.statsDialog.title,modelValue:e.databaseDialog.statsDialog.visible,"onUpdate:modelValue":o[5]||(o[5]=n=>e.databaseDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u5E93\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"db","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.db),1)]),_:1}),l(d,{label:"collections","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.collections),1)]),_:1}),l(d,{label:"objects","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.objects),1)]),_:1}),l(d,{label:"indexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.indexes),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"dataSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.dataSize)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"fsTotalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsTotalSize)),1)]),_:1}),l(d,{label:"fsUsedSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsUsedSize)),1)]),_:1}),l(d,{label:"indexSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.indexSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"600px",title:e.collectionsDialog.title,modelValue:e.collectionsDialog.visible,"onUpdate:modelValue":o[8]||(o[8]=n=>e.collectionsDialog.visible=n)},{default:a(()=>[j("div",null,[l(p,{onClick:e.showCreateCollectionDialog,type:"primary",icon:"plus",size:"small"},{default:a(()=>[Se]),_:1},8,["onClick"])]),l(D,{border:"",stripe:"",data:e.collectionsDialog.data,size:"small"},{default:a(()=>[l(s,{prop:"name",label:"\u540D\u79F0","show-overflow-tooltip":""}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showCollectionStats(n.row.name),plain:"",size:"small",underline:!1},{default:a(()=>[we]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(R,{onConfirm:w=>e.onDeleteCollection(n.row.name),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u96C6\u5408?"},{reference:a(()=>[l(m,{type:"danger",plain:"",size:"small",underline:!1},{default:a(()=>[ze]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.collectionsDialog.statsDialog.title,modelValue:e.collectionsDialog.statsDialog.visible,"onUpdate:modelValue":o[7]||(o[7]=n=>e.collectionsDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u96C6\u5408\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"ns","label-align":"right",span:2,align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.ns),1)]),_:1}),l(d,{label:"count","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.count),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"nindexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.nindexes),1)]),_:1}),l(d,{label:"size","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.size)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"freeStorageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.freeStorageSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"400px",title:"\u65B0\u5EFA\u96C6\u5408",modelValue:e.createCollectionDialog.visible,"onUpdate:modelValue":o[11]||(o[11]=n=>e.createCollectionDialog.visible=n),"destroy-on-close":!0},{footer:a(()=>[j("div",null,[l(p,{onClick:o[10]||(o[10]=n=>e.createCollectionDialog.visible=!1)},{default:a(()=>[Fe]),_:1}),l(p,{onClick:e.onCreateCollection,type:"primary"},{default:a(()=>[Be]),_:1},8,["onClick"])])]),default:a(()=>[l(Q,{model:e.createCollectionDialog.form,"label-width":"70px"},{default:a(()=>[l(K,{prop:"name",label:"\u96C6\u5408\u540D",required:""},{default:a(()=>[l(J,{modelValue:e.createCollectionDialog.form.name,"onUpdate:modelValue":o[9]||(o[9]=n=>e.createCollectionDialog.form.name=n),clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),l(W,{onValChange:e.valChange,projects:e.projects,title:e.mongoEditDialog.title,visible:e.mongoEditDialog.visible,"onUpdate:visible":o[12]||(o[12]=n=>e.mongoEditDialog.visible=n),mongo:e.mongoEditDialog.data,"onUpdate:mongo":o[13]||(o[13]=n=>e.mongoEditDialog.data=n)},null,8,["onValChange","projects","title","visible","mongo"])])}var Me=G(pe,[["render",Ve]]);export{Me as default}; diff --git a/server/static/static/assets/ProjectEnvSelect.1661345446364.js b/server/static/static/assets/ProjectEnvSelect.1661345446364.js new file mode 100644 index 00000000..2cc0c195 --- /dev/null +++ b/server/static/static/assets/ProjectEnvSelect.1661345446364.js @@ -0,0 +1 @@ +var P=Object.defineProperty,V=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var h=(o,e,n)=>e in o?P(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,j=(o,e)=>{for(var n in e||(e={}))B.call(e,n)&&h(o,n,e[n]);if(v)for(var n of v(e))$.call(e,n)&&h(o,n,e[n]);return o},_=(o,e)=>V(o,w(e));import{p as g}from"./api.16613454463644.js";import{A as S,r as F,o as A,t as N,_ as q,b as p,d as r,e as u,g as s,w as a,F as b,j as y,k as E,h as I,i as k,a3 as U}from"./index.1661345446364.js";const z=S({name:"ProjectEnvSelect",props:{visible:{type:Boolean},data:{type:Object},title:{type:String},machineId:{type:Number},isCommon:{type:Boolean}},setup(o,{emit:e}){const n=F({projects:[],envs:[],projectId:null,envId:null});A(async()=>{n.projects=await g.accountProjects.request(null)});const c=async l=>{e("update:projectId",l),e("changeProjectEnv",n.projectId,null),n.envId=null,n.envs=await g.projectEnvs.request({projectId:l})},d=l=>{e("update:envId",l),e("changeProjectEnv",n.projectId,l)};return _(j({},N(n)),{changeProject:c,changeEnv:d})}}),D={style:{float:"left"}},L={style:{float:"right",color:"#8492a6","font-size":"13px"}};function M(o,e,n,c,d,l){const i=p("el-option"),f=p("el-select"),m=p("el-form-item"),C=p("el-form");return r(),u("div",null,[s(C,{class:"search-form","label-position":"right",inline:!0},{default:a(()=>[s(m,{prop:"project",label:"\u9879\u76EE","label-width":"40px"},{default:a(()=>[s(f,{modelValue:o.projectId,"onUpdate:modelValue":e[0]||(e[0]=t=>o.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:o.changeProject,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.projects,t=>(r(),E(i,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),s(m,{prop:"env",label:"env","label-width":"33px"},{default:a(()=>[s(f,{style:{width:"80px"},modelValue:o.envId,"onUpdate:modelValue":e[1]||(e[1]=t=>o.envId=t),placeholder:"\u73AF\u5883",onChange:o.changeEnv,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.envs,t=>(r(),E(i,{key:t.id,label:t.name,value:t.id},{default:a(()=>[I("span",D,k(t.name),1),I("span",L,k(t.remark),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),U(o.$slots,"default")]),_:3})])}var H=q(z,[["render",M]]);export{H as P}; diff --git a/server/static/static/assets/ProjectList.1661345446364.js b/server/static/static/assets/ProjectList.1661345446364.js new file mode 100644 index 00000000..a13f14de --- /dev/null +++ b/server/static/static/assets/ProjectList.1661345446364.js @@ -0,0 +1 @@ +var L=Object.defineProperty,S=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var N=(e,l,d)=>l in e?L(e,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[l]=d,k=(e,l)=>{for(var d in l||(l={}))G.call(l,d)&&N(e,d,l[d]);if(U)for(var d of U(l))R.call(l,d)&&N(e,d,l[d]);return e},T=(e,l)=>S(e,_(l));import{p}from"./api.16613454463644.js";import{b as H}from"./api.16613454463642.js";import{n as B,b as J}from"./assert.1661345446364.js";import{_ as K,A as O,r as Q,o as W,t as X,b as i,C as Y,d as m,e as z,g as a,w as t,h as g,x as D,k as c,B as u,i as I,F as Z,j as x,E as y,G as ee}from"./index.1661345446364.js";import"./Api.1661345446364.js";const oe=O({name:"ProjectList",components:{},setup(){const e=Q({permissions:{saveProject:"project:save",delProject:"project:del",saveMember:"project:member:add",delMember:"project:member:del",saveEnv:"project:env:add"},query:{pageNum:1,pageSize:10,name:null},total:0,projects:[],btnLoading:!1,chooseId:null,chooseData:null,addProjectDialog:{title:"\u65B0\u589E\u9879\u76EE",visible:!1,form:{name:"",remark:""}},showEnvDialog:{visible:!1,envs:[],title:"",addVisible:!1,envForm:{name:"",remark:"",projectId:0}},showMemDialog:{visible:!1,chooseId:null,chooseData:null,query:{pageSize:8,pageNum:1,projectId:null},members:{list:[],total:null},title:"",addVisible:!1,memForm:{},accounts:[]}});W(()=>{l()});const l=async()=>{let o=await p.projects.request(e.query);e.projects=o.list,e.total=o.total},d=o=>{e.query.pageNum=o,l()},q=o=>{o?e.addProjectDialog.form=k({},o):e.addProjectDialog.form={},e.addProjectDialog.visible=!0},j=()=>{e.addProjectDialog.visible=!1,e.addProjectDialog.form={}},$=async()=>{const o=e.addProjectDialog.form;B(o.name,"\u9879\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A"),B(o.remark,"\u9879\u76EE\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"),await p.saveProject.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),l(),j()},s=async()=>{try{await ee.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u9879\u76EE?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await p.delProject.request({id:e.chooseId}),y.success("\u5220\u9664\u6210\u529F"),e.chooseData=null,e.chooseId=null,l()}catch{}},h=o=>{!o||(e.chooseId=o.id,e.chooseData=o)},M=async o=>{e.showMemDialog.query.projectId=o.id,await b(),e.showMemDialog.title=`${o.name}\u7684\u6210\u5458\u4FE1\u606F`,e.showMemDialog.visible=!0},n=o=>{!o||(e.showMemDialog.chooseData=o,e.showMemDialog.chooseId=o.id)},F=async()=>{J(e.showMemDialog.chooseData,"\u8BF7\u9009\u9009\u62E9\u6210\u5458"),await p.deleteProjectMem.request(e.showMemDialog.chooseData),y.success("\u79FB\u9664\u6210\u529F"),b()},b=async()=>{const o=await p.projectMems.request(e.showMemDialog.query);e.showMemDialog.members.list=o.list,e.showMemDialog.members.total=o.total},C=async o=>{e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.id}),e.showEnvDialog.title=`${o.name}\u7684\u73AF\u5883\u4FE1\u606F`,e.showEnvDialog.visible=!0},V=()=>{e.showMemDialog.addVisible=!0},f=async()=>{const o=e.showMemDialog.memForm;o.projectId=e.chooseData.id,B(o.accountId,"\u8BF7\u5148\u9009\u62E9\u8D26\u53F7"),await p.saveProjectMem.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),b(),v()},v=()=>{e.showMemDialog.memForm={},e.showMemDialog.addVisible=!1,e.showMemDialog.chooseData=null,e.showMemDialog.chooseId=null},w=o=>{H.list.request({username:o}).then(E=>{e.showMemDialog.accounts=E.list})},A=()=>{e.showEnvDialog.addVisible=!0},P=async()=>{const o=e.showEnvDialog.envForm;o.projectId=e.chooseData.id,await p.saveProjectEnv.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.projectId}),r()},r=()=>{e.showEnvDialog.envForm={},e.showEnvDialog.addVisible=!1};return T(k({},X(e)),{search:l,handlePageChange:d,choose:h,showAddProjectDialog:q,addProject:$,delProject:s,cancelAddProject:j,showMembers:M,setMemebers:b,showEnv:C,showAddMemberDialog:V,addMember:f,chooseMember:n,deleteMember:F,cancelAddMember:v,showAddEnvDialog:A,addEnv:P,cancelAddEnv:r,getAccount:w})}}),le={class:"project-list"},ae=u("\u6DFB\u52A0"),te=u("\u7F16\u8F91"),se=u("\u6210\u5458\u7BA1\u7406"),ue=u("\u73AF\u5883\u7BA1\u7406"),ne=u("\u5220\u9664"),de={style:{float:"right"}},ie=g("i",null,null,-1),re={class:"dialog-footer"},me=u("\u53D6 \u6D88"),pe=u("\u786E \u5B9A"),ce={class:"toolbar"},ge=u("\u6DFB\u52A0"),De={class:"dialog-footer"},he=u("\u53D6 \u6D88"),be=u("\u786E \u5B9A"),fe={class:"toolbar"},we=u("\u6DFB\u52A0"),ve=u("\u79FB\u9664"),Fe=g("i",null,null,-1),Ee={class:"dialog-footer"},ye=u("\u53D6 \u6D88"),Me=u("\u786E \u5B9A");function je(e,l,d,q,j,$){const s=i("el-button"),h=i("el-input"),M=i("el-radio"),n=i("el-table-column"),F=i("el-table"),b=i("el-pagination"),C=i("el-row"),V=i("el-card"),f=i("el-form-item"),v=i("el-form"),w=i("el-dialog"),A=i("el-option"),P=i("el-select"),r=Y("auth");return m(),z("div",le,[a(V,null,{default:t(()=>[g("div",null,[D((m(),c(s,{onClick:e.showAddProjectDialog,type:"primary",icon:"plus"},{default:t(()=>[ae]),_:1},8,["onClick"])),[[r,e.permissions.saveProject]]),D((m(),c(s,{onClick:l[0]||(l[0]=o=>e.showAddProjectDialog(e.chooseData)),disabled:e.chooseId==null,type:"primary",icon:"edit"},{default:t(()=>[te]),_:1},8,["disabled"])),[[r,e.permissions.saveProject]]),a(s,{onClick:l[1]||(l[1]=o=>e.showMembers(e.chooseData)),disabled:e.chooseId==null,type:"success",icon:"user"},{default:t(()=>[se]),_:1},8,["disabled"]),a(s,{onClick:l[2]||(l[2]=o=>e.showEnv(e.chooseData)),disabled:e.chooseId==null,type:"info",icon:"setting"},{default:t(()=>[ue]),_:1},8,["disabled"]),D((m(),c(s,{onClick:e.delProject,disabled:e.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ne]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delProject]]),g("div",de,[a(h,{class:"mr2",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\uFF01",style:{width:"200px"},modelValue:e.query.name,"onUpdate:modelValue":l[3]||(l[3]=o=>e.query.name=o),onClear:e.search,clearable:""},null,8,["modelValue","onClear"]),a(s,{onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])])]),a(F,{data:e.projects,onCurrentChange:e.choose,ref:"table",style:{width:"100%"}},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"55px"},{default:t(o=>[a(M,{modelValue:e.chooseId,"onUpdate:modelValue":l[4]||(l[4]=E=>e.chooseId=E),label:o.row.id},{default:t(()=>[ie]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{prop:"name",label:"\u9879\u76EE\u540D"}),a(n,{prop:"remark",label:"\u63CF\u8FF0","min-width":"180px","show-overflow-tooltip":""}),a(n,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{prop:"creator",label:"\u521B\u5EFA\u8005"})]),_:1},8,["data","onCurrentChange"]),a(C,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:t(()=>[a(b,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":l[5]||(l[5]=o=>e.query.pageNum=o),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),a(w,{width:"400px",title:"\u9879\u76EE\u7F16\u8F91","before-close":e.cancelAddProject,modelValue:e.addProjectDialog.visible,"onUpdate:modelValue":l[9]||(l[9]=o=>e.addProjectDialog.visible=o)},{footer:t(()=>[g("div",re,[a(s,{onClick:l[8]||(l[8]=o=>e.cancelAddProject())},{default:t(()=>[me]),_:1}),a(s,{onClick:e.addProject,type:"primary"},{default:t(()=>[pe]),_:1},8,["onClick"])])]),default:t(()=>[a(v,{model:e.addProjectDialog.form,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u9879\u76EE\u540D:",required:""},{default:t(()=>[a(h,{disabled:!!e.addProjectDialog.form.id,modelValue:e.addProjectDialog.form.name,"onUpdate:modelValue":l[6]||(l[6]=o=>e.addProjectDialog.form.name=o),"auto-complete":"off"},null,8,["disabled","modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.addProjectDialog.form.remark,"onUpdate:modelValue":l[7]||(l[7]=o=>e.addProjectDialog.form.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"]),a(w,{width:"500px",title:e.showEnvDialog.title,modelValue:e.showEnvDialog.visible,"onUpdate:modelValue":l[14]||(l[14]=o=>e.showEnvDialog.visible=o)},{default:t(()=>[g("div",ce,[D((m(),c(s,{onClick:e.showAddEnvDialog,type:"primary",icon:"plus"},{default:t(()=>[ge]),_:1},8,["onClick"])),[[r,e.permissions.saveMember]])]),a(F,{border:"",data:e.showEnvDialog.envs},{default:t(()=>[a(n,{property:"name",label:"\u73AF\u5883\u540D",width:"125"}),a(n,{property:"remark",label:"\u63CF\u8FF0",width:"125"}),a(n,{property:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1})]),_:1},8,["data"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u73AF\u5883","before-close":e.cancelAddEnv,modelValue:e.showEnvDialog.addVisible,"onUpdate:modelValue":l[13]||(l[13]=o=>e.showEnvDialog.addVisible=o)},{footer:t(()=>[g("div",De,[a(s,{onClick:l[12]||(l[12]=o=>e.cancelAddEnv())},{default:t(()=>[he]),_:1}),D((m(),c(s,{onClick:e.addEnv,type:"primary",loading:e.btnLoading},{default:t(()=>[be]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveEnv]])])]),default:t(()=>[a(v,{model:e.showEnvDialog.envForm,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u73AF\u5883\u540D:",required:""},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.name,"onUpdate:modelValue":l[10]||(l[10]=o=>e.showEnvDialog.envForm.name=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.remark,"onUpdate:modelValue":l[11]||(l[11]=o=>e.showEnvDialog.envForm.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"]),a(w,{width:"500px",title:e.showMemDialog.title,modelValue:e.showMemDialog.visible,"onUpdate:modelValue":l[21]||(l[21]=o=>e.showMemDialog.visible=o)},{default:t(()=>[g("div",fe,[D((m(),c(s,{onClick:l[15]||(l[15]=o=>e.showAddMemberDialog()),type:"primary",icon:"plus"},{default:t(()=>[we]),_:1})),[[r,e.permissions.saveMember]]),D((m(),c(s,{onClick:e.deleteMember,disabled:e.showMemDialog.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ve]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delMember]])]),a(F,{onCurrentChange:e.chooseMember,border:"",data:e.showMemDialog.members.list},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"50px"},{default:t(o=>[a(M,{modelValue:e.showMemDialog.chooseId,"onUpdate:modelValue":l[16]||(l[16]=E=>e.showMemDialog.chooseId=E),label:o.row.id},{default:t(()=>[Fe]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{property:"username",label:"\u8D26\u53F7",width:"125"}),a(n,{property:"createTime",label:"\u52A0\u5165\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{property:"creator",label:"\u5206\u914D\u8005",width:"125"})]),_:1},8,["onCurrentChange","data"]),a(b,{onCurrentChange:e.setMemebers,style:{"text-align":"center"},background:"",layout:"prev, pager, next, total, jumper",total:e.showMemDialog.members.total,"current-page":e.showMemDialog.query.pageNum,"onUpdate:current-page":l[17]||(l[17]=o=>e.showMemDialog.query.pageNum=o),"page-size":e.showMemDialog.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u6210\u5458","before-close":e.cancelAddMember,modelValue:e.showMemDialog.addVisible,"onUpdate:modelValue":l[20]||(l[20]=o=>e.showMemDialog.addVisible=o)},{footer:t(()=>[g("div",Ee,[a(s,{onClick:l[19]||(l[19]=o=>e.cancelAddMember())},{default:t(()=>[ye]),_:1}),D((m(),c(s,{onClick:e.addMember,type:"primary",loading:e.btnLoading},{default:t(()=>[Me]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveMember]])])]),default:t(()=>[a(v,{model:e.showMemDialog.memForm,"label-width":"70px"},{default:t(()=>[a(f,{label:"\u8D26\u53F7:"},{default:t(()=>[a(P,{style:{width:"100%"},remote:"","remote-method":e.getAccount,modelValue:e.showMemDialog.memForm.accountId,"onUpdate:modelValue":l[18]||(l[18]=o=>e.showMemDialog.memForm.accountId=o),filterable:"",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7\u6A21\u7CCA\u641C\u7D22\u5E76\u9009\u62E9"},{default:t(()=>[(m(!0),z(Z,null,x(e.showMemDialog.accounts,o=>(m(),c(A,{key:o.id,label:o.username,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["remote-method","modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"])])}var Ie=K(oe,[["render",je]]);export{Ie as default}; diff --git a/server/static/static/assets/SqlExecBox.1661345446364.css b/server/static/static/assets/SqlExecBox.1661345446364.css new file mode 100644 index 00000000..0ff166b3 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.css @@ -0,0 +1 @@ +.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::selection,.cm-s-base16-light .CodeMirror-line>span::selection,.cm-s-base16-light .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::-moz-selection,.cm-s-base16-light .CodeMirror-line>span::-moz-selection,.cm-s-base16-light .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-gutters{background:#f5f5f5;border-right:0px}.cm-s-base16-light .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light .CodeMirror-guttermarker-subtle,.cm-s-base16-light .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light span.cm-comment{color:#8f5536}.cm-s-base16-light span.cm-atom,.cm-s-base16-light span.cm-number{color:#aa759f}.cm-s-base16-light span.cm-property,.cm-s-base16-light span.cm-attribute{color:#90a959}.cm-s-base16-light span.cm-keyword{color:#ac4142}.cm-s-base16-light span.cm-string{color:#f4bf75}.cm-s-base16-light span.cm-variable{color:#90a959}.cm-s-base16-light span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light span.cm-def{color:#d28445}.cm-s-base16-light span.cm-bracket{color:#202020}.cm-s-base16-light span.cm-tag{color:#ac4142}.cm-s-base16-light span.cm-link{color:#aa759f}.cm-s-base16-light span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light .CodeMirror-activeline-background{background:#DDDCDC}.cm-s-base16-light .CodeMirror-matchingbracket{color:#f5f5f5!important;background-color:#6a9fb5!important}.codesql{font-size:9pt;font-weight:600} diff --git a/server/static/static/assets/SqlExecBox.1661345446364.js b/server/static/static/assets/SqlExecBox.1661345446364.js new file mode 100644 index 00000000..0ad57e21 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.js @@ -0,0 +1,21 @@ +var TT=Object.defineProperty,RT=Object.defineProperties;var AT=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var tT=Object.prototype.hasOwnProperty,ST=Object.prototype.propertyIsEnumerable;var fe=(R,e,S)=>e in R?TT(R,e,{enumerable:!0,configurable:!0,writable:!0,value:S}):R[e]=S,Ue=(R,e)=>{for(var S in e||(e={}))tT.call(e,S)&&fe(R,S,e[S]);if(Me)for(var S of Me(e))ST.call(e,S)&&fe(R,S,e[S]);return R},le=(R,e)=>RT(R,AT(e));import{A as OT,Z as rT,$ as IT,a0 as NT,q as nT,r as _T,t as LT,E as gE,m as CT,_ as oT,b as OE,d as aT,e as iT,g as RE,w as rE,h as PT,B as Xe,a1 as uT,a2 as DT}from"./index.1661345446364.js";import{A as k}from"./Api.1661345446364.js";import{c as sT}from"./codemirror.1661345446364.js";const MT={dbs:k.create("/dbs","get"),saveDb:k.create("/dbs","post"),getAllDatabase:k.create("/dbs/databases","post"),getDbPwd:k.create("/dbs/{id}/pwd","get"),deleteDb:k.create("/dbs/{id}","delete"),dumpDb:k.create("/dbs/{id}/dump","post"),tableInfos:k.create("/dbs/{id}/t-infos","get"),tableIndex:k.create("/dbs/{id}/t-index","get"),tableDdl:k.create("/dbs/{id}/t-create-ddl","get"),tableMetadata:k.create("/dbs/{id}/t-metadata","get"),columnMetadata:k.create("/dbs/{id}/c-metadata","get"),hintTables:k.create("/dbs/{id}/hint-tables","get"),sqlExec:k.create("/dbs/{id}/exec-sql","post"),saveSql:k.create("/dbs/{id}/sql","post"),getSql:k.create("/dbs/{id}/sql","get"),getSqlNames:k.create("/dbs/{id}/sql-names","get"),deleteDbSql:k.create("/dbs/{id}/sql","delete"),getSqlExecs:k.create("/dbs/{dbId}/sql-execs","get")};var ge={},$={},wE={exports:{}},J={exports:{}},SE={};Object.defineProperty(SE,"__esModule",{value:!0});SE.indentString=fT;SE.isTabularStyle=UT;function fT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"?" ".repeat(10):R.useTabs?" ":" ".repeat(R.tabWidth)}function UT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"}var kE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function S(c,C){if(!(c instanceof C))throw new TypeError("Cannot call a class as a function")}function r(c,C){for(var G=0;G0?{type:r.NodeType.statement,children:a,hasSemicolon:!1}:void 0;a.push(this.expression())}}},{key:"expression",value:function(){return this.limitClause()||this.clause()||this.setOperation()||this.functionCall()||this.arraySubscript()||this.parenthesis()||this.betweenPredicate()||this.allColumnsAsterisk()||this.nextTokenNode()}},{key:"clause",value:function(){if(this.look().type===S.TokenType.RESERVED_COMMAND){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.clause,nameToken:a,children:o}}}},{key:"setOperation",value:function(){if(this.look().type===S.TokenType.RESERVED_SET_OPERATION){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.set_operation,nameToken:a,children:o}}}},{key:"functionCall",value:function(){if(this.look().type===S.TokenType.RESERVED_FUNCTION_NAME&&this.look(1).text==="(")return{type:r.NodeType.function_call,nameToken:this.next(),parenthesis:this.parenthesis()}}},{key:"arraySubscript",value:function(){if((this.look().type===S.TokenType.RESERVED_KEYWORD||this.look().type===S.TokenType.IDENTIFIER)&&this.look(1).text==="[")return{type:r.NodeType.array_subscript,arrayToken:this.next(),parenthesis:this.parenthesis()}}},{key:"parenthesis",value:function(){if(this.look().type===S.TokenType.OPEN_PAREN){for(var a=[],o=this.next(),I=o.text,M="";this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.EOF;)a.push(this.expression());return this.look().type===S.TokenType.CLOSE_PAREN&&(M=this.next().text),{type:r.NodeType.parenthesis,children:a,openParen:I,closeParen:M}}}},{key:"betweenPredicate",value:function(){if(S.isToken.BETWEEN(this.look())&&S.isToken.AND(this.look(2)))return{type:r.NodeType.between_predicate,betweenToken:this.next(),expr1:this.next(),andToken:this.next(),expr2:this.next()}}},{key:"limitClause",value:function(){if(S.isToken.LIMIT(this.look())){var a=this.next(),o=this.expressionsUntilClauseEnd(function(M){return M.type===S.TokenType.COMMA});if(this.look().type===S.TokenType.COMMA){this.next();var I=this.expressionsUntilClauseEnd();return{type:r.NodeType.limit_clause,limitToken:a,offset:o,count:I}}else return{type:r.NodeType.limit_clause,limitToken:a,count:o}}}},{key:"allColumnsAsterisk",value:function(){if(this.look().text==="*"&&S.isToken.SELECT(this.look(-1)))return this.next(),{type:r.NodeType.all_columns_asterisk}}},{key:"expressionsUntilClauseEnd",value:function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},o=[];this.look().type!==S.TokenType.RESERVED_COMMAND&&this.look().type!==S.TokenType.RESERVED_SET_OPERATION&&this.look().type!==S.TokenType.EOF&&this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.DELIMITER&&!a(this.look());)o.push(this.expression());return o}},{key:"look",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.tokens[this.index+a]||S.EOF_TOKEN}},{key:"next",value:function(){return this.tokens[this.index++]||S.EOF_TOKEN}},{key:"nextTokenNode",value:function(){return{type:r.NodeType.token,token:this.next()}}}]),G}();e.default=C,R.exports=e.default})(xE,xE.exports);var QE={exports:{}},h={};Object.defineProperty(h,"__esModule",{value:!0});h.sum=h.sortByLengthDesc=h.maxLength=h.last=h.flatKeywordList=h.equalizeWhitespace=h.dedupe=void 0;function yT(R,e){var S=typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(!S){if(Array.isArray(R)||(S=Ke(R))||e&&R&&typeof R.length=="number"){S&&(R=S);var r=0,f=function(){};return{s:f,n:function(){return r>=R.length?{done:!0}:{done:!1,value:R[r++]}},e:function(G){throw G},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,U=!1,c;return{s:function(){S=S.call(R)},n:function(){var G=S.next();return p=G.done,G},e:function(G){U=!0,c=G},f:function(){try{!p&&S.return!=null&&S.return()}finally{if(U)throw c}}}}function HT(R){return YT(R)||FT(R)||Ke(R)||BT()}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ke(R,e){if(!!R){if(typeof R=="string")return ZE(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return ZE(R,e)}}function FT(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function YT(R){if(Array.isArray(R))return ZE(R)}function ZE(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);Sd.length)&&(H=d.length);for(var i=0,u=new Array(H);iL.length)&&(a=L.length);for(var o=0,I=new Array(a);o=o.length?{done:!0}:{done:!1,value:o[y++]}},e:function(s){throw s},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,i=!1,u;return{s:function(){M=M.call(o)},n:function(){var s=M.next();return H=s.done,s},e:function(s){i=!0,u=s},f:function(){try{!H&&M.return!=null&&M.return()}finally{if(i)throw u}}}}function U(o,I){if(!!o){if(typeof o=="string")return c(o,I);var M=Object.prototype.toString.call(o).slice(8,-1);if(M==="Object"&&o.constructor&&(M=o.constructor.name),M==="Map"||M==="Set")return Array.from(o);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(o,I)}}function c(o,I){(I==null||I>o.length)&&(I=o.length);for(var M=0,y=new Array(I);Mthis.expressionWidth)return y}}catch(u){d.e(u)}finally{d.f()}return y}},{key:"betweenWidth",value:function(M){return(0,S.sum)([M.betweenToken,M.expr1,M.andToken,M.expr2].map(function(y){return y.text.length}))}},{key:"isForbiddenToken",value:function(M){return M.type===r.TokenType.RESERVED_LOGICAL_OPERATOR||M.type===r.TokenType.LINE_COMMENT||M.type===r.TokenType.BLOCK_COMMENT||r.isToken.CASE(M)}}]),o}();e.default=a,R.exports=e.default})($E,$E.exports);var ue={};(function(R){Object.defineProperty(R,"__esModule",{value:!0}),R.default=R.WS=void 0;var e=h;function S(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function r(L,a){for(var o=0;o0)switch((0,e.last)(this.items)){case U.NEWLINE:this.items.pop(),this.items.push(o);break;case U.MANDATORY_NEWLINE:break;default:this.items.push(o);break}}},{key:"addIndentation",value:function(){for(var o=0;oI.length)&&(M=I.length);for(var y=0,d=new Array(M);y=10&&I.includes(" ")){var d=I.split(" "),H=p(d);I=H[0],y=H.slice(1)}return M==="tabularLeft"?I=I.padEnd(9," "):I=I.padStart(9," "),I+[""].concat(S(y)).join(" ")}function o(I){return I.type===e.TokenType.RESERVED_LOGICAL_OPERATOR||I.type===e.TokenType.RESERVED_DEPENDENT_CLAUSE||I.type===e.TokenType.RESERVED_COMMAND||I.type===e.TokenType.RESERVED_SET_OPERATION||I.type===e.TokenType.RESERVED_JOIN}})(ke);(function(R,e){function S(i){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},S(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h,f=SE,p=X,U=z,c=o($E.exports),C=ue,G=a(ke);function L(i){if(typeof WeakMap!="function")return null;var u=new WeakMap,n=new WeakMap;return(L=function(F){return F?n:u})(i)}function a(i,u){if(!u&&i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var n=L(u);if(n&&n.has(i))return n.get(i);var s={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in i)if(v!=="default"&&Object.prototype.hasOwnProperty.call(i,v)){var P=F?Object.getOwnPropertyDescriptor(i,v):null;P&&(P.get||P.set)?Object.defineProperty(s,v,P):s[v]=i[v]}return s.default=i,n&&n.set(i,s),s}function o(i){return i&&i.__esModule?i:{default:i}}function I(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function M(i,u){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:this.inline;return new i({cfg:this.cfg,params:this.params,layout:this.layout,inline:s}).format(n)}},{key:"formatToken",value:function(n){switch(n.type){case p.TokenType.LINE_COMMENT:return this.formatLineComment(n);case p.TokenType.BLOCK_COMMENT:return this.formatBlockComment(n);case p.TokenType.RESERVED_JOIN:return this.formatJoin(n);case p.TokenType.RESERVED_DEPENDENT_CLAUSE:return this.formatDependentClause(n);case p.TokenType.RESERVED_LOGICAL_OPERATOR:return this.formatLogicalOperator(n);case p.TokenType.RESERVED_KEYWORD:case p.TokenType.RESERVED_FUNCTION_NAME:case p.TokenType.RESERVED_PHRASE:return this.formatKeyword(n);case p.TokenType.RESERVED_CASE_START:return this.formatCaseStart(n);case p.TokenType.RESERVED_CASE_END:return this.formatCaseEnd(n);case p.TokenType.COMMA:return this.formatComma(n);case p.TokenType.OPERATOR:return this.formatOperator(n);case p.TokenType.IDENTIFIER:case p.TokenType.QUOTED_IDENTIFIER:case p.TokenType.STRING:case p.TokenType.NUMBER:case p.TokenType.VARIABLE:case p.TokenType.NAMED_PARAMETER:case p.TokenType.QUOTED_PARAMETER:case p.TokenType.NUMBERED_PARAMETER:case p.TokenType.POSITIONAL_PARAMETER:return this.formatLiteral(n);default:throw new Error("Unexpected token type: ".concat(n.type))}}},{key:"formatLiteral",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLineComment",value:function(n){/\n/.test(n.precedingWhitespace||"")?this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT):this.layout.add(C.WS.NO_NEWLINE,C.WS.SPACE,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT)}},{key:"formatBlockComment",value:function(n){var s=this;this.splitBlockComment(n.text).forEach(function(F){s.layout.add(C.WS.NEWLINE,C.WS.INDENT,F)}),this.layout.add(C.WS.NEWLINE,C.WS.INDENT)}},{key:"splitBlockComment",value:function(n){return n.split(/\n/).map(function(s){return/^\s*\*/.test(s)?" "+s.replace(/^\s*/,""):s.replace(/^\s*/,"")})}},{key:"formatJoin",value:function(n){(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatKeyword",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatDependentClause",value:function(n){this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatOperator",value:function(n){if(n.text===":"){this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE);return}else if(n.text==="."||n.text==="::"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}else if(n.text==="@"&&this.cfg.language==="plsql"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}this.cfg.denseOperators?this.layout.add(C.WS.NO_SPACE,this.show(n)):this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLogicalOperator",value:function(n){this.cfg.logicalOperatorNewline==="before"?(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE):this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseStart",value:function(n){this.layout.indentation.increaseBlockLevel(),this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseEnd",value:function(n){this.formatMultilineBlockEnd(n)}},{key:"formatMultilineBlockEnd",value:function(n){this.layout.indentation.decreaseBlockLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatComma",value:function(n){this.inline?this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE):this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"show",value:function(n){return(0,G.isTabularToken)(n)?(0,G.default)(this.showToken(n),this.cfg.indentStyle):this.showToken(n)}},{key:"showNonTabular",value:function(n){return this.showToken(n)}},{key:"showToken",value:function(n){if((0,p.isReserved)(n))switch(this.cfg.keywordCase){case"preserve":return(0,r.equalizeWhitespace)(n.raw);case"upper":return n.text;case"lower":return n.text.toLowerCase()}else return(0,p.isParameter)(n)?this.params.get(n):n.text}}]),i}();e.default=H,R.exports=e.default})(qE,qE.exports);var zE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=h;function r(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function f(L,a){for(var o=0;o0&&(0,S.last)(this.indentTypes)===c&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0;){var o=this.indentTypes.pop();if(o!==c)break}}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}]),L}();e.default=G,R.exports=e.default})(zE,zE.exports);(function(R,e){function S(u){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=SE,f=I(kE.exports),p=I(xE.exports),U=I(QE.exports),c=I(jE.exports),C=I(qE.exports),G=o(ue),L=I(zE.exports);function a(u){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(a=function(v){return v?s:n})(u)}function o(u,n){if(!n&&u&&u.__esModule)return u;if(u===null||S(u)!=="object"&&typeof u!="function")return{default:u};var s=a(n);if(s&&s.has(u))return s.get(u);var F={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in u)if(P!=="default"&&Object.prototype.hasOwnProperty.call(u,P)){var t=v?Object.getOwnPropertyDescriptor(u,P):null;t&&(t.get||t.set)?Object.defineProperty(F,P,t):F[P]=u[P]}return F.default=u,s&&s.set(u,F),F}function I(u){return u&&u.__esModule?u:{default:u}}function M(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function y(u,n){for(var s=0;sR.length)&&(e=R.length);for(var S=0,r=new Array(e);S1&&arguments[1]!==void 0?arguments[1]:{};if(e.length===0)return/^\b$/;var r=ER(S),f=(0,Je.sortByLengthDesc)(e).map(w.toCaseInsensitivePattern).join("|").replace(/ /g,"\\s+");return new RegExp("(?:".concat(f,")").concat(r,"\\b"),"iuy")};g.reservedWord=eR;var TR=function(e,S){if(!!e.length){var r=e.map(w.escapeRegExp).join("|");return(0,w.patternToRegex)("(?:".concat(r,")(?:").concat(S,")"))}};g.parameter=TR;var RR=function(){var e={"<":">","[":"]","(":")","{":"}"},S="{left}(?:(?!{right}').)*?{right}",r=Object.entries(e).map(function(c){var C=xT(c,2),G=C[0],L=C[1];return S.replace(/{left}/g,(0,w.escapeRegExp)(G)).replace(/{right}/g,(0,w.escapeRegExp)(L))}),f=(0,w.escapeRegExp)(Object.keys(e).join("")),p=String.raw(ce||(ce=EE(["(?[^s","])(?:(?!k').)*?k"],["(?[^\\s","])(?:(?!\\k').)*?\\k"])),f),U="[Qq]'(?:".concat(p,"|").concat(r.join("|"),")'");return U},ee={"``":"(?:`[^`]*(?:$|`))+","[]":String.raw(Ge||(Ge=EE(["(?:[[^]]*(?:$|]))(?:][^]]*(?:$|]))*"],["(?:\\[[^\\]]*(?:$|\\]))(?:\\][^\\]]*(?:$|\\]))*"]))),'""':String.raw(pe||(pe=EE(['(?:"[^"\\]*(?:\\.[^"\\]*)*(?:"|$))+'],['(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*(?:"|$))+']))),"''":String.raw(de||(de=EE(["(?:'[^'\\]*(?:\\.[^'\\]*)*(?:'|$))+"],["(?:'[^'\\\\]*(?:\\\\.[^'\\\\]*)*(?:'|$))+"]))),$$:String.raw(ye||(ye=EE(["(?$w*$)[sS]*?(?:k|$)"],["(?\\$\\w*\\$)[\\s\\S]*?(?:\\k|$)"]))),"'''..'''":String.raw(He||(He=EE(["'''[^\\]*?(?:\\.[^\\]*?)*?(?:'''|$)"],["'''[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:'''|$)"]))),'""".."""':String.raw(Be||(Be=EE(['"""[^\\]*?(?:\\.[^\\]*?)*?(?:"""|$)'],['"""[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:"""|$)']))),"{}":String.raw(Fe||(Fe=EE(["(?:{[^}]*(?:$|}))"],["(?:\\{[^\\}]*(?:$|\\}))"]))),"q''":RR()};g.quotePatterns=ee;var Qe=function(e){return typeof e=="string"?ee[e]:(0,w.prefixesPattern)(e)+ee[e.quote]},AR=function(e){return(0,w.patternToRegex)(e.map(function(S){return"regex"in S?S.regex:Qe(S)}).join("|"))};g.variable=AR;var Ze=function(e){return e.map(Qe).join("|")};g.stringPattern=Ze;var tR=function(e){return(0,w.patternToRegex)(Ze(e))};g.string=tR;var SR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,w.patternToRegex)(je(e))};g.identifier=SR;var je=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=e.first,r=e.rest,f=e.dashes,p=e.allowFirstCharNumber,U="\\p{Alphabetic}\\p{Mark}_",c="\\p{Decimal_Number}",C=(0,w.escapeRegExp)(S!=null?S:""),G=(0,w.escapeRegExp)(r!=null?r:""),L=p?"[".concat(U).concat(c).concat(C,"][").concat(U).concat(c).concat(G,"]*"):"[".concat(U).concat(C,"][").concat(U).concat(c).concat(G,"]*");return f?(0,w.withDashes)(L):L};g.identifierPattern=je;var Te={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=X,r=x;function f(a,o){var I=Object.keys(a);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(a);o&&(M=M.filter(function(y){return Object.getOwnPropertyDescriptor(a,y).enumerable})),I.push.apply(I,M)}return I}function p(a){for(var o=1;oN.length)&&(E=N.length);for(var T=0,O=new Array(E);T<=.:$@#?~![]{}",["<>","<=",">=","!="].concat(y((m=T.operators)!==null&&m!==void 0?m:[])))}),V))}},{key:"buildParamRules",value:function(T,O){var D,l,B,Y,m,V={named:(O==null?void 0:O.named)||((D=T.paramTypes)===null||D===void 0?void 0:D.named)||[],quoted:(O==null?void 0:O.quoted)||((l=T.paramTypes)===null||l===void 0?void 0:l.quoted)||[],numbered:(O==null?void 0:O.numbered)||((B=T.paramTypes)===null||B===void 0?void 0:B.numbered)||[],positional:typeof(O==null?void 0:O.positional)=="boolean"?O.positional:(Y=T.paramTypes)===null||Y===void 0?void 0:Y.positional};return this.validRules((m={},A(m,r.TokenType.NAMED_PARAMETER,{regex:f.parameter(V.named,f.identifierPattern(T.paramChars||T.identChars)),key:function(b){return b.slice(1)}}),A(m,r.TokenType.QUOTED_PARAMETER,{regex:f.parameter(V.quoted,f.stringPattern(T.identTypes)),key:function(b){return function(TE){var XE=TE.tokenKey,se=TE.quoteChar;return XE.replace(new RegExp((0,U.escapeRegExp)("\\"+se),"gu"),se)}({tokenKey:b.slice(2,-1),quoteChar:b.slice(-1)})}}),A(m,r.TokenType.NUMBERED_PARAMETER,{regex:f.parameter(V.numbered,"[0-9]+"),key:function(b){return b.slice(1)}}),A(m,r.TokenType.POSITIONAL_PARAMETER,{regex:V.positional?new RegExp("[?]","y"):void 0}),m))}},{key:"validRules",value:function(T){return Object.fromEntries(Object.entries(T).filter(function(O){var D=a(O,2);D[0];var l=D[1];return l.regex}))}}]),N}();e.default=_,R.exports=e.default})(Q,Q.exports);var K={};Object.defineProperty(K,"__esModule",{value:!0});K.expandSinglePhrase=K.expandPhrases=void 0;function OR(R){return IR(R)||$e(R)||qe(R)||rR()}function rR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(R){if(Array.isArray(R))return R}function NR(R){return _R(R)||$e(R)||qe(R)||nR()}function nR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(R,e){if(!!R){if(typeof R=="string")return Re(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return Re(R,e)}}function $e(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function _R(R){if(Array.isArray(R))return Re(R)}function Re(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);S>","<<","||"]);function N(l){return E(T(l))}function E(l){var B=p.EOF_TOKEN;return l.map(function(Y){return Y.text==="OFFSET"&&B.text==="["?(B=Y,a(a({},Y),{},{type:p.TokenType.RESERVED_FUNCTION_NAME})):(B=Y,Y)})}function T(l){for(var B=[],Y=0;Y"?Y--:V.text===">>"&&(Y-=2),Y===0)return m}return l.length-1}R.exports=e.default})(wE,wE.exports);var Ae={exports:{}},LE={};Object.defineProperty(LE,"__esModule",{value:!0});LE.functions=void 0;var DR=h,sR=(0,DR.flatKeywordList)({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","RATIO_TO_REPORT"],cast:["CAST"]});LE.functions=sR;var CE={};Object.defineProperty(CE,"__esModule",{value:!0});CE.keywords=void 0;var MR=h,fR=(0,MR.flatKeywordList)({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]});CE.keywords=fR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=LE,c=CE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","\xAC<","!>","!<","||"]),R.exports=e.default})(Ae,Ae.exports);var te={exports:{}},oE={};Object.defineProperty(oE,"__esModule",{value:!0});oE.functions=void 0;var UR=h,lR=(0,UR.flatKeywordList)({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]});oE.functions=lR;var aE={};Object.defineProperty(aE,"__esModule",{value:!0});aE.keywords=void 0;var cR=h,GR=(0,cR.flatKeywordList)({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]});aE.keywords=GR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=oE,c=aE;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A","==","||"]),R.exports=e.default})(te,te.exports);var Se={exports:{}},iE={};Object.defineProperty(iE,"__esModule",{value:!0});iE.keywords=void 0;var pR=h,dR=(0,pR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]});iE.keywords=dR;var PE={};Object.defineProperty(PE,"__esModule",{value:!0});PE.functions=void 0;var yR=h,HR=(0,yR.flatKeywordList)({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]});PE.functions=HR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=iE,C=PE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Se,Se.exports);var Oe={exports:{}},uE={};Object.defineProperty(uE,"__esModule",{value:!0});uE.keywords=void 0;var BR=h,FR=(0,BR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]});uE.keywords=FR;var DE={};Object.defineProperty(DE,"__esModule",{value:!0});DE.functions=void 0;var YR=h,vR=(0,YR.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});DE.functions=vR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=uE,C=DE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||","->","->>"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Oe,Oe.exports);var re={exports:{}},sE={};Object.defineProperty(sE,"__esModule",{value:!0});sE.functions=void 0;var hR=h,VR=(0,hR.flatKeywordList)({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]});sE.functions=VR;var ME={};Object.defineProperty(ME,"__esModule",{value:!0});ME.keywords=void 0;var mR=h,WR=(0,mR.flatKeywordList)({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]});ME.keywords=WR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=sE,c=ME;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A>","<<","=>"]);function N(E){var T=U.EOF_TOKEN;return E.map(function(O){return U.isToken.SET(O)&&U.isToken.BY(T)?a(a({},O),{},{type:U.TokenType.RESERVED_KEYWORD}):((0,U.isReserved)(O)&&(T=O),O)})}R.exports=e.default})(Ie,Ie.exports);var Ne={exports:{}},lE={};Object.defineProperty(lE,"__esModule",{value:!0});lE.functions=void 0;var wR=h,kR=(0,wR.flatKeywordList)({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]});lE.functions=kR;var cE={};Object.defineProperty(cE,"__esModule",{value:!0});cE.keywords=void 0;var xR=h,JR=(0,xR.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]});cE.keywords=JR;(function(R,e){function S(A){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},S(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=lE,c=cE;function C(A){return A&&A.__esModule?A:{default:A}}function G(A,_){if(!(A instanceof _))throw new TypeError("Cannot call a class as a function")}function L(A,_){for(var N=0;N<_.length;N++){var E=_[N];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function a(A,_,N){return _&&L(A.prototype,_),N&&L(A,N),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(_&&_.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),_&&I(A,_)}function I(A,_){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},I(A,_)}function M(A){var _=H();return function(){var E=i(A),T;if(_){var O=i(this).constructor;T=Reflect.construct(E,arguments,O)}else T=E.apply(this,arguments);return y(this,T)}}function y(A,_){if(_&&(S(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(A)}function d(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function H(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(A){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},i(A)}function u(A,_,N){return _ in A?Object.defineProperty(A,_,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[_]=N,A}var n=(0,r.expandPhrases)(["WITH [RECURSIVE]","SELECT [ALL | DISTINCT]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE [ONLY]","SET","WHERE CURRENT OF","DELETE FROM [ONLY]","TRUNCATE [TABLE] [ONLY]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DO","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","RETURNING","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM","AFTER","SET SCHEMA"]),s=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),F=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),v=["ON DELETE","ON UPDATE"],P=["<<",">>","|/","||/","!!","||","~~","~~*","!~~","!~~*","~","~*","!~","!~*","<%","<<%","%>","%>>","~>~","~<~","~>=~","~<=~","@-@","@@","#","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=",">>=","<<=","@@@","?","@?","?&","->","->>","#>","#>>","#-",":=","::","=>","-|-"],t=function(A){o(N,A);var _=M(N);function N(){return G(this,N),_.apply(this,arguments)}return a(N,[{key:"tokenizer",value:function(){return new p.default({reservedCommands:n,reservedSetOperations:s,reservedJoins:F,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:v,reservedKeywords:c.keywords,reservedFunctionNames:U.functions,openParens:["(","["],closeParens:[")","]"],stringTypes:["$$",{quote:"''",prefixes:["B","E","X","U&"]}],identTypes:[{quote:'""',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:N.operators})}}]),N}(f.default);e.default=t,u(t,"operators",P),R.exports=e.default})(Ne,Ne.exports);var ne={exports:{}},GE={};Object.defineProperty(GE,"__esModule",{value:!0});GE.functions=void 0;var QR=h,ZR=(0,QR.flatKeywordList)({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]});GE.functions=ZR;var pE={};Object.defineProperty(pE,"__esModule",{value:!0});pE.keywords=void 0;var jR=h,qR=(0,jR.flatKeywordList)({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]});pE.keywords=qR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=GE,c=pE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_>","||"]),R.exports=e.default})(ne,ne.exports);var _e={exports:{}},dE={};Object.defineProperty(dE,"__esModule",{value:!0});dE.keywords=void 0;var $R=h,zR=(0,$R.flatKeywordList)({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]});dE.keywords=zR;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});yE.functions=void 0;var EA=h,eA=(0,EA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]});yE.functions=eA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=dE,C=yE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","&&","||","==","->"]);function N(E){return E.map(function(T,O){var D=E[O-1]||U.EOF_TOKEN,l=E[O+1]||U.EOF_TOKEN;return U.isToken.WINDOW(T)&&l.type===U.TokenType.OPEN_PAREN?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T.text==="ITEMS"&&T.type===U.TokenType.RESERVED_KEYWORD&&!(D.text==="COLLECTION"&&l.text==="TERMINATED")?a(a({},T),{},{type:U.TokenType.IDENTIFIER,text:T.raw}):T})}R.exports=e.default})(_e,_e.exports);var Le={exports:{}},HE={};Object.defineProperty(HE,"__esModule",{value:!0});HE.functions=void 0;var TA=h,RA=(0,TA.flatKeywordList)({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]});HE.functions=RA;var BE={};Object.defineProperty(BE,"__esModule",{value:!0});BE.keywords=void 0;var AA=h,tA=(0,AA.flatKeywordList)({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]});BE.keywords=tA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=HE,c=BE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","->>","||","<<",">>","=="]),R.exports=e.default})(Le,Le.exports);var Ce={exports:{}},FE={};Object.defineProperty(FE,"__esModule",{value:!0});FE.functions=void 0;var SA=h,OA=(0,SA.flatKeywordList)({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]});FE.functions=OA;var YE={};Object.defineProperty(YE,"__esModule",{value:!0});YE.keywords=void 0;var rA=h,IA=(0,rA.flatKeywordList)({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]});YE.keywords=IA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=FE,c=YE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_"]),R.exports=e.default})(oe,oe.exports);var ae={exports:{}},VE={};Object.defineProperty(VE,"__esModule",{value:!0});VE.functions=void 0;var CA=h,oA=(0,CA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["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:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","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"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","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"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]});VE.functions=oA;var mE={};Object.defineProperty(mE,"__esModule",{value:!0});mE.keywords=void 0;var aA=h,iA=(0,aA.flatKeywordList)({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]});mE.keywords=iA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=VE,c=mE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","+=","-=","*=","/=","%=","|=","&=","^=","::"]),R.exports=e.default})(ae,ae.exports);var ie={exports:{}},WE={};Object.defineProperty(WE,"__esModule",{value:!0});WE.keywords=void 0;var PA=h,uA=(0,PA.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]});WE.keywords=uA;var bE={};Object.defineProperty(bE,"__esModule",{value:!0});bE.functions=void 0;var DA=h,sA=(0,DA.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});bE.functions=sA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=WE,C=bE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","<<",">>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(ie,ie.exports);Object.defineProperty($,"__esModule",{value:!0});$.supportedDialects=$.formatters=$.format=$.ConfigError=void 0;var MA=q(wE.exports),fA=q(Ae.exports),UA=q(te.exports),lA=q(Se.exports),cA=q(Oe.exports),GA=q(re.exports),pA=q(Ie.exports),dA=q(Ne.exports),yA=q(ne.exports),HA=q(_e.exports),BA=q(Le.exports),FA=q(Ce.exports),YA=q(oe.exports),vA=q(ae.exports),hA=q(ie.exports);function q(R){return R&&R.__esModule?R:{default:R}}function me(R,e){for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+NE(e));var r=JA(be(be({},kA),S)),f=typeof r.language=="string"?De[r.language]:r.language;return new f(r).format(e)};$.format=xA;var eE=function(R){WA(S,R);var e=bA(S);function S(){return mA(this,S),e.apply(this,arguments)}return VA(S)}(Pe(Error));$.ConfigError=eE;function JA(R){if(typeof R.language=="string"&&!eT.includes(R.language))throw new eE("Unsupported SQL dialect: ".concat(R.language));if("multilineLists"in R)throw new eE("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in R)throw new eE("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in R)throw new eE("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in R)throw new eE("aliasAs config is no more supported.");if(R.expressionWidth<=0)throw new eE("expressionWidth config must be positive number. Received ".concat(R.expressionWidth," instead."));if(R.commaPosition==="before"&&R.useTabs)throw new eE("commaPosition: before does not work when tabs are used for indentation.");return R.params&&!QA(R.params)&&console.warn('WARNING: All "params" option values should be strings.'),R}function QA(R){var e=R instanceof Array?R:Object.values(R);return e.every(function(S){return typeof S=="string"})}(function(R){Object.defineProperty(R,"__esModule",{value:!0});var e={Formatter:!0,Tokenizer:!0,expandPhrases:!0};Object.defineProperty(R,"Formatter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(R,"Tokenizer",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(R,"expandPhrases",{enumerable:!0,get:function(){return p.expandPhrases}});var S=$;Object.keys(S).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(e,c)||c in R&&R[c]===S[c]||Object.defineProperty(R,c,{enumerable:!0,get:function(){return S[c]}})});var r=U(J.exports),f=U(Q.exports),p=K;function U(c){return c&&c.__esModule?c:{default:c}}})(ge);const ZA=OT({name:"SqlExecDialog",components:{codemirror:sT,ElButton:rT,ElDialog:IT,ElInput:NT},props:{visible:{type:Boolean},dbId:{type:[Number]},db:{type:String},sql:{type:String}},setup(R){const e=nT(),S=_T({dialogVisible:!1,sqlValue:"",dbId:0,db:"",remark:"",btnLoading:!1,cmOptions:{tabSize:4,mode:"text/x-sql",lineNumbers:!0,line:!0,indentWithTabs:!0,smartIndent:!0,matchBrackets:!0,theme:"base16-light",autofocus:!0,extraKeys:{Tab:"autocomplete"}}});S.sqlValue=R.sql;let r,f,p=!1;const U=async()=>{if(!S.remark){gE.error("\u8BF7\u8F93\u5165\u6267\u884C\u7684\u5907\u6CE8\u4FE1\u606F");return}try{S.btnLoading=!0;const G=await MT.sqlExec.request({id:S.dbId,db:S.db,remark:S.remark,sql:S.sqlValue.trim()});parseInt(G.res[0].\u5F71\u54CD\u6761\u6570)>=1?(gE.success("\u6267\u884C\u6210\u529F"),p=!0):(gE.error("\u6267\u884C\u5931\u8D25"),p=!1)}catch{p=!1}p&&r&&r(),S.btnLoading=!1,c()},c=()=>{S.dialogVisible=!1,!p&&f&&f(),setTimeout(()=>{S.dbId=0,S.sqlValue="",S.remark="",r=null,f=null,p=!1},200)},C=G=>{r=G.runSuccessCallback,f=G.cancelCallback,S.sqlValue=ge.format(G.sql),S.dbId=G.dbId,S.db=G.db,S.dialogVisible=!0,CT(()=>{setTimeout(()=>{var L;(L=e.value)==null||L.focus()})})};return le(Ue({},LT(S)),{remarkInputRef:e,open:C,runSql:U,cancel:c})}}),jA={class:"dialog-footer"},qA=Xe("\u53D6 \u6D88"),$A=Xe("\u6267 \u884C");function zA(R,e,S,r,f,p){const U=OE("codemirror"),c=OE("el-input"),C=OE("el-button"),G=OE("el-dialog");return aT(),iT("div",null,[RE(G,{title:"\u5F85\u6267\u884CSQL",modelValue:R.dialogVisible,"onUpdate:modelValue":e[2]||(e[2]=L=>R.dialogVisible=L),"show-close":!1,width:"600px"},{footer:rE(()=>[PT("span",jA,[RE(C,{onClick:R.cancel},{default:rE(()=>[qA]),_:1},8,["onClick"]),RE(C,{onClick:R.runSql,type:"primary",loading:R.btnLoading},{default:rE(()=>[$A]),_:1},8,["onClick","loading"])])]),default:rE(()=>[RE(U,{height:"350px",class:"codesql",ref:"cmEditor",language:"sql",modelValue:R.sqlValue,"onUpdate:modelValue":e[0]||(e[0]=L=>R.sqlValue=L),options:R.cmOptions},null,8,["modelValue","options"]),RE(c,{ref:"remarkInputRef",modelValue:R.remark,"onUpdate:modelValue":e[1]||(e[1]=L=>R.remark=L),placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u5907\u6CE8",class:"mt5"},null,8,["modelValue"])]),_:1},8,["modelValue"])])}var Et=oT(ZA,[["render",zA]]);const et="sql-exec-id",Tt=()=>{const R={sql:"",dbId:0},e=document.createElement("div");e.id=et;const S=uT(Et,R);return DT(S,e),document.body.appendChild(e),S};let KE;const Rt=R=>{KE?KE.component.proxy.open(R):(KE=Tt(),Rt(R))};export{Rt as S,MT as d,ge as l}; diff --git a/server/static/static/assets/SshTerminal.1661345446364.css b/server/static/static/assets/SshTerminal.1661345446364.css new file mode 100644 index 00000000..b0956eee --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.css @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative} diff --git a/server/static/static/assets/SshTerminal.1661345446364.js b/server/static/static/assets/SshTerminal.1661345446364.js new file mode 100644 index 00000000..dd468c4f --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.js @@ -0,0 +1,8 @@ +var mr=Object.defineProperty;var dr=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var _r=(ae,J,oe)=>J in ae?mr(ae,J,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ae[J]=oe,pr=(ae,J)=>{for(var oe in J||(J={}))Sr.call(J,oe)&&_r(ae,oe,J[oe]);if(dr)for(var oe of dr(J))br.call(J,oe)&&_r(ae,oe,J[oe]);return ae};import{A as Cr,r as wr,v as Lr,o as Er,L as xr,a as Rr,c as kr,m as Ar,J as Mr,I as Or,t as Dr,_ as Tr,d as Br,e as Pr,l as Ir}from"./index.1661345446364.js";var vr={exports:{}};(function(ae,J){(function(oe,ge){ae.exports=ge()})(self,function(){return(()=>{var oe={4567:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;var f=w(9042),d=w(6114),m=w(9924),v=w(3656),a=w(844),o=w(5596),_=w(9631),h=function(r){function e(t,i){var n=r.call(this)||this;n._terminal=t,n._renderService=i,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var l=0;lt;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t},e.prototype._onTab=function(t){for(var i=0;i0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){i._accessibilityTreeRoot.appendChild(i._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&(0,_.removeElementFromParent)(this._liveRegion)},e.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},e.prototype._refreshRows=function(t,i){this._renderRowsDebouncer.refresh(t,i,this._terminal.rows)},e.prototype._renderRows=function(t,i){for(var n=this._terminal.buffer,l=n.lines.length.toString(),s=t;s<=i;s++){var y=n.translateBufferLineToString(n.ydisp+s,!0),b=(n.ydisp+s+1).toString(),g=this._rowElements[s];g&&(y.length===0?g.innerText="\xA0":g.textContent=y,g.setAttribute("aria-posinset",b),g.setAttribute("aria-setsize",l))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var t=0;t{function w(d){return d.replace(/\r?\n/g,"\r")}function p(d,m){return m?"\x1B[200~"+d+"\x1B[201~":d}function u(d,m,v){d=p(d=w(d),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(d,!0),m.value=""}function f(d,m,v){var a=v.getBoundingClientRect(),o=d.clientX-a.left-10,_=d.clientY-a.top-10;m.style.width="20px",m.style.height="20px",m.style.left=o+"px",m.style.top=_+"px",m.style.zIndex="1000",m.focus()}Object.defineProperty(c,"__esModule",{value:!0}),c.rightClickHandler=c.moveTextAreaUnderMouseCursor=c.paste=c.handlePasteEvent=c.copyHandler=c.bracketTextForPaste=c.prepareTextForTerminal=void 0,c.prepareTextForTerminal=w,c.bracketTextForPaste=p,c.copyHandler=function(d,m){d.clipboardData&&d.clipboardData.setData("text/plain",m.selectionText),d.preventDefault()},c.handlePasteEvent=function(d,m,v){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),m,v)},c.paste=u,c.moveTextAreaUnderMouseCursor=f,c.rightClickHandler=function(d,m,v,a,o){f(d,m,v),o&&a.rightClickSelect(d),m.value=a.selectionText,m.select()}},7239:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorContrastCache=void 0;var w=function(){function p(){this._color={},this._rgba={}}return p.prototype.clear=function(){this._color={},this._rgba={}},p.prototype.setCss=function(u,f,d){this._rgba[u]||(this._rgba[u]={}),this._rgba[u][f]=d},p.prototype.getCss=function(u,f){return this._rgba[u]?this._rgba[u][f]:void 0},p.prototype.setColor=function(u,f,d){this._color[u]||(this._color[u]={}),this._color[u][f]=d},p.prototype.getColor=function(u,f){return this._color[u]?this._color[u][f]:void 0},p}();c.ColorContrastCache=w},5680:function(W,c,w){var p=this&&this.__read||function(h,r){var e=typeof Symbol=="function"&&h[Symbol.iterator];if(!e)return h;var t,i,n=e.call(h),l=[];try{for(;(r===void 0||r-- >0)&&!(t=n.next()).done;)l.push(t.value)}catch(s){i={error:s}}finally{try{t&&!t.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return l};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorManager=c.DEFAULT_ANSI_COLORS=void 0;var u=w(8055),f=w(7239),d=u.css.toColor("#ffffff"),m=u.css.toColor("#000000"),v=u.css.toColor("#ffffff"),a=u.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};c.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var h=[u.css.toColor("#2e3436"),u.css.toColor("#cc0000"),u.css.toColor("#4e9a06"),u.css.toColor("#c4a000"),u.css.toColor("#3465a4"),u.css.toColor("#75507b"),u.css.toColor("#06989a"),u.css.toColor("#d3d7cf"),u.css.toColor("#555753"),u.css.toColor("#ef2929"),u.css.toColor("#8ae234"),u.css.toColor("#fce94f"),u.css.toColor("#729fcf"),u.css.toColor("#ad7fa8"),u.css.toColor("#34e2e2"),u.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],e=0;e<216;e++){var t=r[e/36%6|0],i=r[e/6%6|0],n=r[e%6];h.push({css:u.channels.toCss(t,i,n),rgba:u.channels.toRgba(t,i,n)})}for(e=0;e<24;e++){var l=8+10*e;h.push({css:u.channels.toCss(l,l,l),rgba:u.channels.toRgba(l,l,l)})}return h}());var _=function(){function h(r,e){this.allowTransparency=e;var t=r.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new f.ColorContrastCache,this.colors={foreground:d,background:m,cursor:v,cursorAccent:a,selectionTransparent:o,selectionOpaque:u.color.blend(m,o),selectionForeground:void 0,ansi:c.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return h.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},h.prototype.setTheme=function(r){r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,d),this.colors.background=this._parseColor(r.background,m),this.colors.cursor=this._parseColor(r.cursor,v,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(r.selection,o,!0),this.colors.selectionOpaque=u.color.blend(this.colors.background,this.colors.selectionTransparent);var e={css:"",rgba:0};this.colors.selectionForeground=r.selectionForeground?this._parseColor(r.selectionForeground,e):void 0,this.colors.selectionForeground===e&&(this.colors.selectionForeground=void 0),u.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=u.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,c.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,c.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,c.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,c.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,c.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,c.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,c.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,c.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,c.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,c.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,c.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,c.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,c.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,c.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,c.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,c.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},h.prototype.restoreColor=function(r){if(r!==void 0)switch(r){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[r]=this._restoreColors.ansi[r]}else for(var e=0;e=p.length&&(p=void 0),{value:p&&p[d++],done:!p}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.removeElementFromParent=void 0,c.removeElementFromParent=function(){for(var p,u,f,d=[],m=0;m{Object.defineProperty(c,"__esModule",{value:!0}),c.addDisposableDomListener=void 0,c.addDisposableDomListener=function(w,p,u,f){w.addEventListener(p,u,f);var d=!1;return{dispose:function(){d||(d=!0,w.removeEventListener(p,u,f))}}}},3551:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZone=c.Linkifier=void 0;var f=w(8460),d=w(2585),m=function(){function a(o,_,h){this._bufferService=o,this._logService=_,this._unicodeService=h,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(a.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),a.prototype.attachToDom=function(o,_){this._element=o,this._mouseZoneManager=_},a.prototype.linkifyRows=function(o,_){var h=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=_):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,_)),this._mouseZoneManager.clearAll(o,_),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return h._linkifyRows()},a._timeBeforeLatency))},a.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var _=o.ydisp+this._rowsToLinkify.start;if(!(_>=o.lines.length)){for(var h=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,r=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,_,h,r,r);e.hasNext();)for(var t=e.next(),i=0;i=0;_--)if(o.priority<=this._linkMatchers[_].priority)return void this._linkMatchers.splice(_+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},a.prototype.deregisterLinkMatcher=function(o){for(var _=0;_>9&511:void 0;h.validationCallback?h.validationCallback(s,function(C){e._rowsTimeoutId||C&&e._addLink(y[1],y[0]-e._bufferService.buffer.ydisp,s,h,S)}):l._addLink(y[1],y[0]-l._bufferService.buffer.ydisp,s,h,S)},l=this;(r=t.exec(_))!==null&&n()!=="break";);},a.prototype._addLink=function(o,_,h,r,e){var t=this;if(this._mouseZoneManager&&this._element){var i=this._unicodeService.getStringCellWidth(h),n=o%this._bufferService.cols,l=_+Math.floor(o/this._bufferService.cols),s=(n+i)%this._bufferService.cols,y=l+Math.floor((n+i)/this._bufferService.cols);s===0&&(s=this._bufferService.cols,y--),this._mouseZoneManager.add(new v(n+1,l+1,s+1,y+1,function(b){if(r.handler)return r.handler(b,h);var g=window.open();g?(g.opener=null,g.location.href=h):console.warn("Opening link blocked as opener could not be cleared")},function(){t._onShowLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.add("xterm-cursor-pointer")},function(b){t._onLinkTooltip.fire(t._createLinkHoverEvent(n,l,s,y,e)),r.hoverTooltipCallback&&r.hoverTooltipCallback(b,h,{start:{x:n,y:l},end:{x:s,y}})},function(){t._onHideLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(b){return!r.willLinkActivate||r.willLinkActivate(b,h)}))}},a.prototype._createLinkHoverEvent=function(o,_,h,r,e){return{x1:o,y1:_,x2:h,y2:r,cols:this._bufferService.cols,fg:e}},a._timeBeforeLatency=200,a=p([u(0,d.IBufferService),u(1,d.ILogService),u(2,d.IUnicodeService)],a)}();c.Linkifier=m;var v=function(a,o,_,h,r,e,t,i,n){this.x1=a,this.y1=o,this.x2=_,this.y2=h,this.clickCallback=r,this.hoverCallback=e,this.tooltipCallback=t,this.leaveCallback=i,this.willLinkActivate=n};c.MouseZone=v},6465:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}},m=this&&this.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__read||function(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n,l,s=i.call(e),y=[];try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)y.push(n.value)}catch(b){l={error:b}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(l)throw l.error}}return y};Object.defineProperty(c,"__esModule",{value:!0}),c.Linkifier2=void 0;var a=w(2585),o=w(8460),_=w(844),h=w(3656),r=function(e){function t(i){var n=e.call(this)||this;return n._bufferService=i,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new o.EventEmitter),n._onHideLinkUnderline=n.register(new o.EventEmitter),n.register((0,_.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return u(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(i){var n=this;return this._linkProviders.push(i),{dispose:function(){var l=n._linkProviders.indexOf(i);l!==-1&&n._linkProviders.splice(l,1)}}},t.prototype.attachToDom=function(i,n,l){var s=this;this._element=i,this._mouseService=n,this._renderService=l,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",function(){s._isMouseOut=!0,s._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(i){if(this._lastMouseEvent=i,this._element&&this._mouseService){var n=this._positionFromMouseEvent(i,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var l=i.composedPath(),s=0;si?this._bufferService.cols:g.link.range.end.x,k=S;k<=C;k++){if(l.has(k)){y.splice(b--,1);break}l.add(k)}}},t.prototype._checkLinkProviderResult=function(i,n,l){var s,y=this;if(!this._activeProviderReplies)return l;for(var b=this._activeProviderReplies.get(i),g=!1,S=0;S=i&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(i){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(i.link,l)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:function(s){var y,b;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&n._currentLink.state.decorations.pointerCursor!==s&&(n._currentLink.state.decorations.pointerCursor=s,n._currentLink.state.isHovered&&((b=n._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",s)))}},underline:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.underline},set:function(s){var y,b,g;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&((g=(b=n._currentLink)===null||b===void 0?void 0:b.state)===null||g===void 0?void 0:g.decorations.underline)!==s&&(n._currentLink.state.decorations.underline=s,n._currentLink.state.isHovered&&n._fireUnderlineEvent(i.link,s))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(s){var y=s.start===0?0:s.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(y,s.end+1+n._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(l,n.text)},t.prototype._fireUnderlineEvent=function(i,n){var l=i.range,s=this._bufferService.buffer.ydisp,y=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-s-1,l.end.x,l.end.y-s-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(y)},t.prototype._linkLeave=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(l,n.text)},t.prototype._linkAtPosition=function(i,n){var l=i.range.start.y===i.range.end.y,s=i.range.start.yn.y;return(l&&i.range.start.x<=n.x&&i.range.end.x>=n.x||s&&i.range.end.x>=n.x||y&&i.range.start.x<=n.x||s&&y)&&i.range.start.y<=n.y&&i.range.end.y>=n.y},t.prototype._positionFromMouseEvent=function(i,n,l){var s=l.getCoords(i,n,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(i,n,l,s,y){return{x1:i,y1:n,x2:l,y2:s,cols:this._bufferService.cols,fg:y}},f([d(0,a.IBufferService)],t)}(_.Disposable);c.Linkifier2=r},9042:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.tooMuchOutput=c.promptLabel=void 0,c.promptLabel="Terminal input",c.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZoneManager=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s){var y=h.call(this)||this;return y._element=e,y._screenElement=t,y._bufferService=i,y._mouseService=n,y._selectionService=l,y._optionsService=s,y._zones=[],y._areZonesActive=!1,y._lastHoverCoords=[void 0,void 0],y._initialSelectionLength=0,y.register((0,v.addDisposableDomListener)(y._element,"mousedown",function(b){return y._onMouseDown(b)})),y._mouseMoveListener=function(b){return y._onMouseMove(b)},y._mouseLeaveListener=function(b){return y._onMouseLeave(b)},y._clickListener=function(b){return y._onClick(b)},y}return u(r,h),r.prototype.dispose=function(){h.prototype.dispose.call(this),this._deactivate()},r.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},r.prototype.clearAll=function(e,t){if(this._zones.length!==0){e&&t||(e=0,t=this._bufferService.rows-1);for(var i=0;ie&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}this._zones.length===0&&this._deactivate()}},r.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},r.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},r.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},r.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},r.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t==null||t.tooltipCallback(e)},r.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);t!=null&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},r.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},r.prototype._onClick=function(e){var t=this._findZoneEventAt(e),i=this._getSelectionLength();t&&i===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},r.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},r.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var i=t[0],n=t[1],l=0;l=s.x1&&i=s.x1||n===s.y2&&is.y1&&n=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderDebouncer=void 0;var p=function(){function u(f){this._renderCallback=f,this._refreshCallbacks=[]}return u.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},u.prototype.addRefreshCallback=function(f){var d=this;return this._refreshCallbacks.push(f),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()})),this._animationFrame},u.prototype.refresh=function(f,d,m){var v=this;this._rowCount=m,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return v._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._animationFrame=void 0,this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(f,d),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},u.prototype._runRefreshCallbacks=function(){var f,d;try{for(var m=w(this._refreshCallbacks),v=m.next();!v.done;v=m.next())(0,v.value)(0)}catch(a){f={error:a}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}this._refreshCallbacks=[]},u}();c.RenderDebouncer=p},5596:function(W,c,w){var p,u=this&&this.__extends||(p=function(d,m){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,a){v.__proto__=a}||function(v,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(v[o]=a[o])},p(d,m)},function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function v(){this.constructor=d}p(d,m),d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(c,"__esModule",{value:!0}),c.ScreenDprMonitor=void 0;var f=function(d){function m(){var v=d!==null&&d.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return u(m,d),m.prototype.setListener=function(v){var a=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){a._listener&&(a._listener(window.devicePixelRatio,a._currentDevicePixelRatio),a._updateDpr())},this._updateDpr()},m.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},m.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},m.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},m}(w(844).Disposable);c.ScreenDprMonitor=f},3236:function(W,c,w){var p,u=this&&this.__extends||(p=function(X,j){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var H in D)Object.prototype.hasOwnProperty.call(D,H)&&(O[H]=D[H])},p(X,j)},function(X,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function O(){this.constructor=X}p(X,j),X.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}),f=this&&this.__values||function(X){var j=typeof Symbol=="function"&&Symbol.iterator,O=j&&X[j],D=0;if(O)return O.call(X);if(X&&typeof X.length=="number")return{next:function(){return X&&D>=X.length&&(X=void 0),{value:X&&X[D++],done:!X}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(X,j){var O=typeof Symbol=="function"&&X[Symbol.iterator];if(!O)return X;var D,H,G=O.call(X),V=[];try{for(;(j===void 0||j-- >0)&&!(D=G.next()).done;)V.push(D.value)}catch($){H={error:$}}finally{try{D&&!D.done&&(O=G.return)&&O.call(G)}finally{if(H)throw H.error}}return V},m=this&&this.__spreadArray||function(X,j,O){if(O||arguments.length===2)for(var D,H=0,G=j.length;H4)&&D.coreMouseService.triggerMouseEvent({col:we.x-33,row:we.y-33,button:he,action:pe,ctrl:K.ctrlKey,alt:K.altKey,shift:K.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},$=function(K){return G(K),K.buttons||(O._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.removeEventListener("mousemove",V.mousedrag)),O.cancel(K)},ie=function(K){return G(K),O.cancel(K,!0)},ce=function(K){K.buttons&&G(K)},le=function(K){K.buttons||G(K)};this.register(this.coreMouseService.onProtocolChange(function(K){K?(O.optionsService.rawOptions.logLevel==="debug"&&O._logService.debug("Binding to mouse events:",O.coreMouseService.explainEvents(K)),O.element.classList.add("enable-mouse-events"),O._selectionService.disable()):(O._logService.debug("Unbinding from mouse events."),O.element.classList.remove("enable-mouse-events"),O._selectionService.enable()),8&K?V.mousemove||(H.addEventListener("mousemove",le),V.mousemove=le):(H.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&K?V.wheel||(H.addEventListener("wheel",ie,{passive:!1}),V.wheel=ie):(H.removeEventListener("wheel",V.wheel),V.wheel=null),2&K?V.mouseup||(V.mouseup=$):(O._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&K?V.mousedrag||(V.mousedrag=ce):(O._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,n.addDisposableDomListener)(H,"mousedown",function(K){if(K.preventDefault(),O.focus(),O.coreMouseService.areMouseEventsActive&&!O._selectionService.shouldForceSelection(K))return G(K),V.mouseup&&O._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.addEventListener("mousemove",V.mousedrag),O.cancel(K)})),this.register((0,n.addDisposableDomListener)(H,"wheel",function(K){if(!V.wheel){if(!O.buffer.hasScrollback){var he=O.viewport.getLinesScrolled(K);if(he===0)return;for(var pe=_.C0.ESC+(O.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(K.deltaY<0?"A":"B"),we="",Ie=0;Ie=65&&O.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(H.key!==_.C0.ETX&&H.key!==_.C0.CR||(this.textarea.value=""),this._onKey.fire({key:H.key,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(H.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(O,!0))))},j.prototype._isThirdLevelShift=function(O,D){var H=O.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||O.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||O.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?H:H&&(!D.keyCode||D.keyCode>47)},j.prototype._keyUp=function(O){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(O)||this.focus(),this.updateCursorStyle(O),this._keyPressHandled=!1)},j.prototype._keyPress=function(O){var D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(this.cancel(O),O.charCode)D=O.charCode;else if(O.which===null||O.which===void 0)D=O.keyCode;else{if(O.which===0||O.charCode===0)return!1;D=O.which}return!(!D||(O.altKey||O.ctrlKey||O.metaKey)&&!this._isThirdLevelShift(this.browser,O)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},j.prototype._inputEvent=function(O){if(O.data&&O.inputType==="insertText"&&(!O.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var D=O.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(O),!0}return!1},j.prototype.bell=function(){var O;this._soundBell()&&((O=this._soundService)===null||O===void 0||O.playBellSound()),this._onBell.fire()},j.prototype.resize=function(O,D){O!==this.cols||D!==this.rows?X.prototype.resize.call(this,O,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},j.prototype._afterResize=function(O,D){var H,G;(H=this._charSizeService)===null||H===void 0||H.measure(),(G=this.viewport)===null||G===void 0||G.syncScrollArea(!0)},j.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var O=1;O{Object.defineProperty(c,"__esModule",{value:!0}),c.TimeBasedDebouncer=void 0;var w=function(){function p(u,f){f===void 0&&(f=1e3),this._renderCallback=u,this._debounceThresholdMS=f,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return p.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},p.prototype.refresh=function(u,f,d){var m=this;this._rowCount=d,u=u!==void 0?u:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var a=v-this._lastRefreshMs,o=this._debounceThresholdMS-a;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){m._lastRefreshMs=Date.now(),m._innerRefresh(),m._additionalRefreshRequested=!1,m._refreshTimeoutID=void 0},o)}},p.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(u,f)}},p}();c.TimeBasedDebouncer=w},1680:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Viewport=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b){var g=h.call(this)||this;return g._scrollLines=e,g._viewportElement=t,g._scrollArea=i,g._element=n,g._bufferService=l,g._optionsService=s,g._charSizeService=y,g._renderService=b,g.scrollBarWidth=0,g._currentRowHeight=0,g._currentScaledCellHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register((0,v.addDisposableDomListener)(g._viewportElement,"scroll",g._onScroll.bind(g))),g._activeBuffer=g._bufferService.buffer,g.register(g._bufferService.buffers.onBufferActivate(function(S){return g._activeBuffer=S.activeBuffer})),g._renderDimensions=g._renderService.dimensions,g.register(g._renderService.onDimensionsChange(function(S){return g._renderDimensions=S})),setTimeout(function(){return g.syncScrollArea()},0),g}return u(r,h),r.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},r.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},r.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},r.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},r.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},r.prototype._bubbleScroll=function(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&i0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},r.prototype._applyScrollModifier=function(e,t){var i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&t.altKey||i==="ctrl"&&t.ctrlKey||i==="shift"&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},r.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},r.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},f([d(4,o.IBufferService),d(5,o.IOptionsService),d(6,a.ICharSizeService),d(7,a.IRenderService)],r)}(m.Disposable);c.Viewport=_},3107:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}},m=this&&this.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferDecorationRenderer=void 0;var v=w(3656),a=w(4725),o=w(844),_=w(2585),h=function(r){function e(t,i,n,l){var s=r.call(this)||this;return s._screenElement=t,s._bufferService=i,s._decorationService=n,s._renderService=l,s._decorationElements=new Map,s._altBufferIsActive=!1,s._dimensionsChanged=!1,s._container=document.createElement("div"),s._container.classList.add("xterm-decoration-container"),s._screenElement.appendChild(s._container),s.register(s._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),s.register(s._renderService.onDimensionsChange(function(){s._dimensionsChanged=!0,s._queueRefresh()})),s.register((0,v.addDisposableDomListener)(window,"resize",function(){return s._queueRefresh()})),s.register(s._bufferService.buffers.onBufferActivate(function(){s._altBufferIsActive=s._bufferService.buffer===s._bufferService.buffers.alt})),s.register(s._decorationService.onDecorationRegistered(function(){return s._queueRefresh()})),s.register(s._decorationService.onDecorationRemoved(function(y){return s._removeDecoration(y)})),s}return u(e,r),e.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),r.prototype.dispose.call(this)},e.prototype._queueRefresh=function(){var t=this;this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(function(){t.refreshDecorations(),t._animationFrame=void 0}))},e.prototype.refreshDecorations=function(){var t,i;try{for(var n=m(this._decorationService.decorations),l=n.next();!l.done;l=n.next()){var s=l.value;this._renderDecoration(s)}}catch(y){t={error:y}}finally{try{l&&!l.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}this._dimensionsChanged=!1},e.prototype._renderDecoration=function(t){this._refreshStyle(t),this._dimensionsChanged&&this._refreshXPosition(t)},e.prototype._createElement=function(t){var i,n=document.createElement("div");n.classList.add("xterm-decoration"),n.style.width=Math.round((t.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",n.style.height=(t.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",n.style.top=(t.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",n.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var l=(i=t.options.x)!==null&&i!==void 0?i:0;return l&&l>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(t,n),n},e.prototype._refreshStyle=function(t){var i=this,n=t.marker.line-this._bufferService.buffers.active.ydisp;if(n<0||n>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{var l=this._decorationElements.get(t);l||(t.onDispose(function(){return i._removeDecoration(t)}),l=this._createElement(t),t.element=l,this._decorationElements.set(t,l),this._container.appendChild(l)),l.style.top=n*this._renderService.dimensions.actualCellHeight+"px",l.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(l)}},e.prototype._refreshXPosition=function(t,i){var n;if(i===void 0&&(i=t.element),i){var l=(n=t.options.x)!==null&&n!==void 0?n:0;(t.options.anchor||"left")==="right"?i.style.right=l?l*this._renderService.dimensions.actualCellWidth+"px":"":i.style.left=l?l*this._renderService.dimensions.actualCellWidth+"px":""}},e.prototype._removeDecoration=function(t){var i;(i=this._decorationElements.get(t))===null||i===void 0||i.remove(),this._decorationElements.delete(t)},f([d(1,_.IBufferService),d(2,_.IDecorationService),d(3,a.IRenderService)],e)}(o.Disposable);c.BufferDecorationRenderer=h},5871:function(W,c){var w=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorZoneStore=void 0;var p=function(){function u(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(u.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),u.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},u.prototype.addDecoration=function(f){var d,m;if(f.options.overviewRulerOptions){try{for(var v=w(this._zones),a=v.next();!a.done;a=v.next()){var o=a.value;if(o.color===f.options.overviewRulerOptions.color&&o.position===f.options.overviewRulerOptions.position){if(this._lineIntersectsZone(o,f.marker.line))return;if(this._lineAdjacentToZone(o,f.marker.line,f.options.overviewRulerOptions.position))return void this._addLineToZone(o,f.marker.line)}}}catch(_){d={error:_}}finally{try{a&&!a.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}if(this._zonePoolIndex=f.startBufferLine&&d<=f.endBufferLine},u.prototype._lineAdjacentToZone=function(f,d,m){return d>=f.startBufferLine-this._linePadding[m||"full"]&&d<=f.endBufferLine+this._linePadding[m||"full"]},u.prototype._addLineToZone=function(f,d){f.startBufferLine=Math.min(f.startBufferLine,d),f.endBufferLine=Math.max(f.endBufferLine,d)},u}();c.ColorZoneStore=p},5744:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.OverviewRulerRenderer=void 0;var v=w(5871),a=w(3656),o=w(4725),_=w(844),h=w(2585),r={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0},i=function(n){function l(s,y,b,g,S,C){var k,L=n.call(this)||this;L._viewportElement=s,L._screenElement=y,L._bufferService=b,L._decorationService=g,L._renderService=S,L._optionsService=C,L._colorZoneStore=new v.ColorZoneStore,L._shouldUpdateDimensions=!0,L._shouldUpdateAnchor=!0,L._lastKnownBufferLength=0,L._canvas=document.createElement("canvas"),L._canvas.classList.add("xterm-decoration-overview-ruler"),L._refreshCanvasDimensions(),(k=L._viewportElement.parentElement)===null||k===void 0||k.insertBefore(L._canvas,L._viewportElement);var R=L._canvas.getContext("2d");if(!R)throw new Error("Ctx cannot be null");return L._ctx=R,L._registerDecorationListeners(),L._registerBufferChangeListeners(),L._registerDimensionChangeListeners(),L}return u(l,n),Object.defineProperty(l.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),l.prototype._registerDecorationListeners=function(){var s=this;this.register(this._decorationService.onDecorationRegistered(function(){return s._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return s._queueRefresh(void 0,!0)}))},l.prototype._registerBufferChangeListeners=function(){var s=this;this.register(this._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){s._canvas.style.display=s._bufferService.buffer===s._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){s._lastKnownBufferLength!==s._bufferService.buffers.normal.lines.length&&(s._refreshDrawHeightConstants(),s._refreshColorZonePadding())}))},l.prototype._registerDimensionChangeListeners=function(){var s=this;this.register(this._renderService.onRender(function(){s._containerHeight&&s._containerHeight===s._screenElement.clientHeight||(s._queueRefresh(!0),s._containerHeight=s._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(y){y==="overviewRulerWidth"&&s._queueRefresh(!0)})),this.register((0,a.addDisposableDomListener)(window,"resize",function(){s._queueRefresh(!0)})),this._queueRefresh(!0)},l.prototype.dispose=function(){var s;(s=this._canvas)===null||s===void 0||s.remove(),n.prototype.dispose.call(this)},l.prototype._refreshDrawConstants=function(){var s=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=s,e.center=y,e.right=s,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=e.left,t.right=e.left+e.center},l.prototype._refreshDrawHeightConstants=function(){r.full=Math.round(2*window.devicePixelRatio);var s=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(s,12),6)*window.devicePixelRatio);r.left=y,r.center=y,r.right=y},l.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},l.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},l.prototype._refreshDecorations=function(){var s,y,b,g,S,C;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var k=m(this._decorationService.decorations),L=k.next();!L.done;L=k.next()){var R=L.value;this._colorZoneStore.addDecoration(R)}}catch(F){s={error:F}}finally{try{L&&!L.done&&(y=k.return)&&y.call(k)}finally{if(s)throw s.error}}this._ctx.lineWidth=1;var x=this._colorZoneStore.zones;try{for(var E=m(x),M=E.next();!M.done;M=E.next())(q=M.value).position!=="full"&&this._renderColorZone(q)}catch(F){b={error:F}}finally{try{M&&!M.done&&(g=E.return)&&g.call(E)}finally{if(b)throw b.error}}try{for(var T=m(x),U=T.next();!U.done;U=T.next()){var q;(q=U.value).position==="full"&&this._renderColorZone(q)}}catch(F){S={error:F}}finally{try{U&&!U.done&&(C=T.return)&&C.call(T)}finally{if(S)throw S.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},l.prototype._renderColorZone=function(s){this._ctx.fillStyle=s.color,this._ctx.fillRect(t[s.position||"full"],Math.round((this._canvas.height-1)*(s.startBufferLine/this._bufferService.buffers.active.lines.length)-r[s.position||"full"]/2),e[s.position||"full"],Math.round((this._canvas.height-1)*((s.endBufferLine-s.startBufferLine)/this._bufferService.buffers.active.lines.length)+r[s.position||"full"]))},l.prototype._queueRefresh=function(s,y){var b=this;this._shouldUpdateDimensions=s||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){b._refreshDecorations(),b._animationFrame=void 0}))},f([d(2,h.IBufferService),d(3,h.IDecorationService),d(4,o.IRenderService),d(5,h.IOptionsService)],l)}(_.Disposable);c.OverviewRulerRenderer=i},2950:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CompositionHelper=void 0;var f=w(4725),d=w(2585),m=function(){function v(a,o,_,h,r,e){this._textarea=a,this._compositionView=o,this._bufferService=_,this._optionsService=h,this._coreService=r,this._renderService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(a){var o=this;this._compositionView.textContent=a.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(a){if(this._isComposing||this._isSendingComposition){if(a.keyCode===229||a.keyCode===16||a.keyCode===17||a.keyCode===18)return!1;this._finalizeComposition(!1)}return a.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(a){var o=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,a){var _={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(o._isSendingComposition){o._isSendingComposition=!1;var r;_.start+=o._dataAlreadySent.length,(r=o._isComposing?o._textarea.value.substring(_.start,_.end):o._textarea.value.substring(_.start)).length>0&&o._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;var h=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(h,!0)}},v.prototype._handleAnyTextareaChanges=function(){var a=this,o=this._textarea.value;setTimeout(function(){if(!a._isComposing){var _=a._textarea.value.replace(o,"");_.length>0&&(a._dataAlreadySent=_,a._coreService.triggerDataEvent(_,!0))}},0)},v.prototype.updateCompositionElements=function(a){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var _=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),h=this._renderService.dimensions.actualCellHeight,r=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,e=_*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=e+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=e+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}a||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},p([u(2,d.IBufferService),u(3,d.IOptionsService),u(4,d.ICoreService),u(5,f.IRenderService)],v)}();c.CompositionHelper=m},9806:(W,c)=>{function w(p,u,f){var d=f.getBoundingClientRect(),m=p.getComputedStyle(f),v=parseInt(m.getPropertyValue("padding-left")),a=parseInt(m.getPropertyValue("padding-top"));return[u.clientX-d.left-v,u.clientY-d.top-a]}Object.defineProperty(c,"__esModule",{value:!0}),c.getRawByteCoords=c.getCoords=c.getCoordsRelativeToElement=void 0,c.getCoordsRelativeToElement=w,c.getCoords=function(p,u,f,d,m,v,a,o,_){if(v){var h=w(p,u,f);if(h)return h[0]=Math.ceil((h[0]+(_?a/2:0))/a),h[1]=Math.ceil(h[1]/o),h[0]=Math.min(Math.max(h[0],1),d+(_?1:0)),h[1]=Math.min(Math.max(h[1],1),m),h}},c.getRawByteCoords=function(p){if(p)return{x:p[0]+32,y:p[1]+32}}},9504:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.moveToCellSequence=void 0;var p=w(2584);function u(o,_,h,r){var e=o-f(h,o),t=_-f(h,_),i=Math.abs(e-t)-function(n,l,s){for(var y=0,b=n-f(s,n),g=l-f(s,l),S=0;S=0&&__?"A":"B"}function m(o,_,h,r,e,t){for(var i=o,n=_,l="";i!==h||n!==r;)i+=e?1:-1,e&&i>t.cols-1?(l+=t.buffer.translateBufferLineToString(n,!1,o,i),i=0,o=0,n++):!e&&i<0&&(l+=t.buffer.translateBufferLineToString(n,!1,0,o+1),o=i=t.cols-1,n--);return l+t.buffer.translateBufferLineToString(n,!1,o,i)}function v(o,_){var h=_?"O":"[";return p.C0.ESC+h+o}function a(o,_){o=Math.floor(o);for(var h="",r=0;r0?b-f(g,b):s;var k=b,L=function(R,x,E,M,T,U){var q;return q=u(E,M,T,U).length>0?M-f(T,M):x,R=E&&qo?"D":"C",a(Math.abs(t-o),v(e,r));e=i>_?"D":"C";var n=Math.abs(i-_);return a(function(l,s){return s.cols-l}(i>_?o:t,h)+(n-1)*h.cols+1+((i>_?t:o)-1),v(e,r))}},4389:function(W,c,w){var p=this&&this.__assign||function(){return p=Object.assign||function(r){for(var e,t=1,i=arguments.length;t=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;var f=w(3236),d=w(9042),m=w(7975),v=w(7090),a=w(5741),o=w(8285),_=["cols","rows"],h=function(){function r(e){var t=this;this._core=new f.Terminal(e),this._addonManager=new a.AddonManager,this._publicOptions=p({},this._core.options);var i=function(y){return t._core.options[y]},n=function(y,b){t._checkReadonlyOptions(y),t._core.options[y]=b};for(var l in this._core.options){var s={get:i.bind(this,l),set:n.bind(this,l)};Object.defineProperty(this._publicOptions,l,s)}}return r.prototype._checkReadonlyOptions=function(e){if(_.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},r.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new m.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new v.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new o.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},r.prototype.open=function(e){this._core.open(e)},r.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},r.prototype.registerLinkMatcher=function(e,t,i){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,i)},r.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},r.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},r.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},r.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},r.prototype.registerMarker=function(e){return e===void 0&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},r.prototype.registerDecoration=function(e){var t,i,n;return this._checkProposedApi(),this._verifyPositiveIntegers((t=e.x)!==null&&t!==void 0?t:0,(i=e.width)!==null&&i!==void 0?i:0,(n=e.height)!==null&&n!==void 0?n:0),this._core.registerDecoration(e)},r.prototype.addMarker=function(e){return this.registerMarker(e)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},r.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(e,t){this._core.write(e,t)},r.prototype.writeUtf8=function(e,t){this._core.write(e,t)},r.prototype.writeln=function(e,t){this._core.write(e),this._core.write(`\r +`,t)},r.prototype.paste=function(e){this._core.paste(e)},r.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},r.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},r.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},r.prototype.reset=function(){this._core.reset()},r.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},r.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(r,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var e,t,i=[],n=0;n=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BaseRenderLayer=void 0;var u=w(643),f=w(8803),d=w(1420),m=w(3734),v=w(1752),a=w(8055),o=w(9631),_=w(8978),h=function(){function r(e,t,i,n,l,s,y,b,g){this._container=e,this._alpha=n,this._colors=l,this._rendererId=s,this._bufferService=y,this._optionsService=b,this._decorationService=g,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return r.prototype.dispose=function(){var e;(0,o.removeElementFromParent)(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},r.prototype._initCanvas=function(){this._ctx=(0,v.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},r.prototype.onOptionsChanged=function(){},r.prototype.onBlur=function(){},r.prototype.onFocus=function(){},r.prototype.onCursorMove=function(){},r.prototype.onGridChanged=function(e,t){},r.prototype.onSelectionChanged=function(e,t,i){i===void 0&&(i=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i},r.prototype.setColors=function(e){this._refreshCharAtlas(e)},r.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},r.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,d.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},r.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},r.prototype.clearTextureAtlas=function(){var e;(e=this._charAtlas)===null||e===void 0||e.clear()},r.prototype._fillCells=function(e,t,i,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight)},r.prototype._fillMiddleLineAtCells=function(e,t,i){i===void 0&&(i=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillBottomLineAtCells=function(e,t,i){i===void 0&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillLeftLineAtCell=function(e,t,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},r.prototype._strokeRectAtCell=function(e,t,i,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},r.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},r.prototype._clearCells=function(e,t,i,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight))},r.prototype._fillCharTrueColor=function(e,t,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=f.TEXT_BASELINE,this._clipRow(i);var n=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(n=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},r.prototype._drawChars=function(e,t,i){var n,l,s,y=this._getContrastColor(e,t,i);if(y||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,i,y);else{var b,g;e.isInverse()?(b=e.isBgDefault()?f.INVERTED_DEFAULT_COLOR:e.getBgColor(),g=e.isFgDefault()?f.INVERTED_DEFAULT_COLOR:e.getFgColor()):(g=e.isBgDefault()?u.DEFAULT_COLOR:e.getBgColor(),b=e.isFgDefault()?u.DEFAULT_COLOR:e.getFgColor()),b+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&b<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||u.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||u.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=g,this._currentGlyphIdentifier.fg=b,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var S=!1;try{for(var C=p(this._decorationService.getDecorationsAtCell(t,i)),k=C.next();!k.done;k=C.next()){var L=k.value;if(L.backgroundColorRGB||L.foregroundColorRGB){S=!0;break}}}catch(R){n={error:R}}finally{try{k&&!k.done&&(l=C.return)&&l.call(C)}finally{if(n)throw n.error}}!S&&((s=this._charAtlas)===null||s===void 0?void 0:s.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,i)}},r.prototype._drawUncachedChars=function(e,t,i,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=f.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=f.DIM_OPACITY);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},r.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},r.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},r.prototype._getContrastColor=function(e,t,i){var n,l,s,y,b=!1;try{for(var g=p(this._decorationService.getDecorationsAtCell(t,i)),S=g.next();!S.done;S=g.next()){var C=S.value;C.options.layer!=="top"&&b||(C.backgroundColorRGB&&(s=C.backgroundColorRGB.rgba),C.foregroundColorRGB&&(y=C.foregroundColorRGB.rgba),b=C.options.layer==="top")}}catch(Y){n={error:Y}}finally{try{S&&!S.done&&(l=g.return)&&l.call(g)}finally{if(n)throw n.error}}if(b||this._colors.selectionForeground&&this._isCellInSelection(t,i)&&(y=this._colors.selectionForeground.rgba),s||y||this._optionsService.rawOptions.minimumContrastRatio!==1&&!(0,v.excludeFromContrastRatioDemands)(e.getCode())){if(!s&&!y){var k=this._colors.contrastCache.getColor(e.bg,e.fg);if(k!==void 0)return k||void 0}var L=e.getFgColor(),R=e.getFgColorMode(),x=e.getBgColor(),E=e.getBgColorMode(),M=!!e.isInverse(),T=!!e.isInverse();if(M){var U=L;L=x,x=U;var q=R;R=E,E=q}var F=this._resolveBackgroundRgba(s!==void 0?50331648:E,s!=null?s:x,M),z=this._resolveForegroundRgba(R,L,M,T),N=a.rgba.ensureContrastRatio(s!=null?s:F,y!=null?y:z,this._optionsService.rawOptions.minimumContrastRatio);if(!N){if(!y)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);N=y}var A={css:a.channels.toCss(N>>24&255,N>>16&255,N>>8&255),rgba:N};return s||y||this._colors.contrastCache.setColor(e.bg,e.fg,A),A}},r.prototype._resolveBackgroundRgba=function(e,t,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.foreground.rgba:this._colors.background.rgba}},r.prototype._resolveForegroundRgba=function(e,t,i,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.background.rgba:this._colors.foreground.rgba}},r.prototype._isCellInSelection=function(e,t){var i=this._selectionStart,n=this._selectionEnd;return!(!i||!n)&&(this._columnSelectMode?e>=i[0]&&t>=i[1]&&ei[1]&&t=i[0]&&e=i[0])},r}();c.BaseRenderLayer=h},2512:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CursorRenderLayer=void 0;var m=w(1546),v=w(511),a=w(2585),o=w(4725),_=600,h=function(e){function t(i,n,l,s,y,b,g,S,C,k){var L=e.call(this,i,"cursor",n,!0,l,s,b,g,k)||this;return L._onRequestRedraw=y,L._coreService=S,L._coreBrowserService=C,L._cell=new v.CellData,L._state={x:0,y:0,isFocused:!1,style:"",width:0},L._cursorRenderers={bar:L._renderBarCursor.bind(L),block:L._renderBlockCursor.bind(L),underline:L._renderUnderlineCursor.bind(L)},L}return u(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(i){e.prototype.resize.call(this,i),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var i;this._clearCursor(),(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var i,n=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new r(this._coreBrowserService.isFocused,function(){n._render(!0)})):((i=this._cursorBlinkStateManager)===null||i===void 0||i.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation()},t.prototype.onGridChanged=function(i,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(i){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=n-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(s,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var y=this._optionsService.rawOptions.cursorStyle;return y&&y!=="block"?this._cursorRenderers[y](s,l,this._cell):this._renderBlurCursor(s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=y,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===s&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(i,n,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(i,n,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,i,n),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(i,n),this._ctx.restore()},t.prototype._renderBlurCursor=function(i,n,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(i,n,l.getWidth(),1),this._ctx.restore()},f([d(5,a.IBufferService),d(6,a.IOptionsService),d(7,a.ICoreService),d(8,o.ICoreBrowserService),d(9,a.IDecorationService)],t)}(m.BaseRenderLayer);c.CursorRenderLayer=h;var r=function(){function e(t,i){this._renderCallback=i,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},e.prototype._restartInterval=function(t){var i=this;t===void 0&&(t=_),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(i._animationTimeRestarted){var n=_-(Date.now()-i._animationTimeRestarted);if(i._animationTimeRestarted=void 0,n>0)return void i._restartInterval(n)}i.isCursorVisible=!1,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0}),i._blinkInterval=window.setInterval(function(){if(i._animationTimeRestarted){var l=_-(Date.now()-i._animationTimeRestarted);return i._animationTimeRestarted=void 0,void i._restartInterval(l)}i.isCursorVisible=!i.isCursorVisible,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})},_)},t)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(W,c,w){var p,u,f,d,m,v,a,o,_,h,r,e,t,i,n,l,s,y,b,g,S,C,k,L,R,x,E,M,T,U,q,F,z,N,A,Y,Z,te,B,ee,X,j,O,D,H,G,V,$,ie,ce,le,K,he,pe,we,Ie,Ht,Ft,jt,Wt,Ut,qt,Ue,qe,Ne,ze,Ke,Ge,Ve,Xe,Ze,Ye,Je,$e,Qe,et,tt,rt,it,nt,ot,st,at,ct,lt,ht,ut,ft,dt,_t,pt,vt,yt,gt,mt,St,bt,Ct,wt,Lt,Et,xt,Rt,kt,At,Mt,Ot,Dt,Tt,Bt,Pt,It,Nt,zt,Kt,Gt,Vt,Xt,Zt,Yt,Jt,$t,Qt,er,tr,rr,ir,nr,ar=this&&this.__read||function(P,I){var se=typeof Symbol=="function"&&P[Symbol.iterator];if(!se)return P;var ve,Le,me=se.call(P),ne=[];try{for(;(I===void 0||I-- >0)&&!(ve=me.next()).done;)ne.push(ve.value)}catch(Se){Le={error:Se}}finally{try{ve&&!ve.done&&(se=me.return)&&se.call(me)}finally{if(Le)throw Le.error}}return ne},or=this&&this.__values||function(P){var I=typeof Symbol=="function"&&Symbol.iterator,se=I&&P[I],ve=0;if(se)return se.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&ve>=P.length&&(P=void 0),{value:P&&P[ve++],done:!P}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.tryDrawCustomChar=c.powerlineDefinitions=c.boxDrawingDefinitions=c.blockElementDefinitions=void 0;var cr=w(1752);c.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gr={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};c.boxDrawingDefinitions={"\u2500":(p={},p[1]="M0,.5 L1,.5",p),"\u2501":(u={},u[3]="M0,.5 L1,.5",u),"\u2502":(f={},f[1]="M.5,0 L.5,1",f),"\u2503":(d={},d[3]="M.5,0 L.5,1",d),"\u250C":(m={},m[1]="M0.5,1 L.5,.5 L1,.5",m),"\u250F":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"\u2510":(a={},a[1]="M0,.5 L.5,.5 L.5,1",a),"\u2513":(o={},o[3]="M0,.5 L.5,.5 L.5,1",o),"\u2514":(_={},_[1]="M.5,0 L.5,.5 L1,.5",_),"\u2517":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"\u2518":(r={},r[1]="M.5,0 L.5,.5 L0,.5",r),"\u251B":(e={},e[3]="M.5,0 L.5,.5 L0,.5",e),"\u251C":(t={},t[1]="M.5,0 L.5,1 M.5,.5 L1,.5",t),"\u2523":(i={},i[3]="M.5,0 L.5,1 M.5,.5 L1,.5",i),"\u2524":(n={},n[1]="M.5,0 L.5,1 M.5,.5 L0,.5",n),"\u252B":(l={},l[3]="M.5,0 L.5,1 M.5,.5 L0,.5",l),"\u252C":(s={},s[1]="M0,.5 L1,.5 M.5,.5 L.5,1",s),"\u2533":(y={},y[3]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"\u2534":(b={},b[1]="M0,.5 L1,.5 M.5,.5 L.5,0",b),"\u253B":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"\u253C":(S={},S[1]="M0,.5 L1,.5 M.5,0 L.5,1",S),"\u254B":(C={},C[3]="M0,.5 L1,.5 M.5,0 L.5,1",C),"\u2574":(k={},k[1]="M.5,.5 L0,.5",k),"\u2578":(L={},L[3]="M.5,.5 L0,.5",L),"\u2575":(R={},R[1]="M.5,.5 L.5,0",R),"\u2579":(x={},x[3]="M.5,.5 L.5,0",x),"\u2576":(E={},E[1]="M.5,.5 L1,.5",E),"\u257A":(M={},M[3]="M.5,.5 L1,.5",M),"\u2577":(T={},T[1]="M.5,.5 L.5,1",T),"\u257B":(U={},U[3]="M.5,.5 L.5,1",U),"\u2550":(q={},q[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},q),"\u2551":(F={},F[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},F),"\u2552":(z={},z[1]=function(P,I){return"M.5,1 L.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},z),"\u2553":(N={},N[1]=function(P,I){return"M"+(.5-P)+",1 L"+(.5-P)+",.5 L1,.5 M"+(.5+P)+",.5 L"+(.5+P)+",1"},N),"\u2554":(A={},A[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},A),"\u2555":(Y={},Y[1]=function(P,I){return"M0,"+(.5-I)+" L.5,"+(.5-I)+" L.5,1 M0,"+(.5+I)+" L.5,"+(.5+I)},Y),"\u2556":(Z={},Z[1]=function(P,I){return"M"+(.5+P)+",1 L"+(.5+P)+",.5 L0,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1"},Z),"\u2557":(te={},te[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",1"},te),"\u2558":(B={},B[1]=function(P,I){return"M.5,0 L.5,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5-I)+" L1,"+(.5-I)},B),"\u2559":(ee={},ee[1]=function(P,I){return"M1,.5 L"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},ee),"\u255A":(X={},X[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0 M1,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",0"},X),"\u255B":(j={},j[1]=function(P,I){return"M0,"+(.5+I)+" L.5,"+(.5+I)+" L.5,0 M0,"+(.5-I)+" L.5,"+(.5-I)},j),"\u255C":(O={},O[1]=function(P,I){return"M0,.5 L"+(.5+P)+",.5 L"+(.5+P)+",0 M"+(.5-P)+",.5 L"+(.5-P)+",0"},O),"\u255D":(D={},D[1]=function(P,I){return"M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M0,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",0"},D),"\u255E":(H={},H[1]=function(P,I){return"M.5,0 L.5,1 M.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},H),"\u255F":(G={},G[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1 M"+(.5+P)+",.5 L1,.5"},G),"\u2560":(V={},V[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},V),"\u2561":($={},$[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L.5,"+(.5-I)+" M0,"+(.5+I)+" L.5,"+(.5+I)},$),"\u2562":(ie={},ie[1]=function(P,I){return"M0,.5 L"+(.5-P)+",.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},ie),"\u2563":(ce={},ce[1]=function(P,I){return"M"+(.5+P)+",0 L"+(.5+P)+",1 M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0"},ce),"\u2564":(le={},le[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5+I)+" L.5,1"},le),"\u2565":(K={},K[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1 M"+(.5+P)+",.5 L"+(.5+P)+",1"},K),"\u2566":(he={},he[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},he),"\u2567":(pe={},pe[1]=function(P,I){return"M.5,0 L.5,"+(.5-I)+" M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},pe),"\u2568":(we={},we[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},we),"\u2569":(Ie={},Ie[1]=function(P,I){return"M0,"+(.5+I)+" L1,"+(.5+I)+" M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},Ie),"\u256A":(Ht={},Ht[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},Ht),"\u256B":(Ft={},Ft[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},Ft),"\u256C":(jt={},jt[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},jt),"\u2571":(Wt={},Wt[1]="M1,0 L0,1",Wt),"\u2572":(Ut={},Ut[1]="M0,0 L1,1",Ut),"\u2573":(qt={},qt[1]="M1,0 L0,1 M0,0 L1,1",qt),"\u257C":(Ue={},Ue[1]="M.5,.5 L0,.5",Ue[3]="M.5,.5 L1,.5",Ue),"\u257D":(qe={},qe[1]="M.5,.5 L.5,0",qe[3]="M.5,.5 L.5,1",qe),"\u257E":(Ne={},Ne[1]="M.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"\u257F":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L.5,0",ze),"\u250D":(Ke={},Ke[1]="M.5,.5 L.5,1",Ke[3]="M.5,.5 L1,.5",Ke),"\u250E":(Ge={},Ge[1]="M.5,.5 L1,.5",Ge[3]="M.5,.5 L.5,1",Ge),"\u2511":(Ve={},Ve[1]="M.5,.5 L.5,1",Ve[3]="M.5,.5 L0,.5",Ve),"\u2512":(Xe={},Xe[1]="M.5,.5 L0,.5",Xe[3]="M.5,.5 L.5,1",Xe),"\u2515":(Ze={},Ze[1]="M.5,.5 L.5,0",Ze[3]="M.5,.5 L1,.5",Ze),"\u2516":(Ye={},Ye[1]="M.5,.5 L1,.5",Ye[3]="M.5,.5 L.5,0",Ye),"\u2519":(Je={},Je[1]="M.5,.5 L.5,0",Je[3]="M.5,.5 L0,.5",Je),"\u251A":($e={},$e[1]="M.5,.5 L0,.5",$e[3]="M.5,.5 L.5,0",$e),"\u251D":(Qe={},Qe[1]="M.5,0 L.5,1",Qe[3]="M.5,.5 L1,.5",Qe),"\u251E":(et={},et[1]="M0.5,1 L.5,.5 L1,.5",et[3]="M.5,.5 L.5,0",et),"\u251F":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M.5,.5 L.5,1",tt),"\u2520":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1",rt),"\u2521":(it={},it[1]="M.5,.5 L.5,1",it[3]="M.5,0 L.5,.5 L1,.5",it),"\u2522":(nt={},nt[1]="M.5,.5 L.5,0",nt[3]="M0.5,1 L.5,.5 L1,.5",nt),"\u2525":(ot={},ot[1]="M.5,0 L.5,1",ot[3]="M.5,.5 L0,.5",ot),"\u2526":(st={},st[1]="M0,.5 L.5,.5 L.5,1",st[3]="M.5,.5 L.5,0",st),"\u2527":(at={},at[1]="M.5,0 L.5,.5 L0,.5",at[3]="M.5,.5 L.5,1",at),"\u2528":(ct={},ct[1]="M.5,.5 L0,.5",ct[3]="M.5,0 L.5,1",ct),"\u2529":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,0 L.5,.5 L0,.5",lt),"\u252A":(ht={},ht[1]="M.5,.5 L.5,0",ht[3]="M0,.5 L.5,.5 L.5,1",ht),"\u252D":(ut={},ut[1]="M0.5,1 L.5,.5 L1,.5",ut[3]="M.5,.5 L0,.5",ut),"\u252E":(ft={},ft[1]="M0,.5 L.5,.5 L.5,1",ft[3]="M.5,.5 L1,.5",ft),"\u252F":(dt={},dt[1]="M.5,.5 L.5,1",dt[3]="M0,.5 L1,.5",dt),"\u2530":(_t={},_t[1]="M0,.5 L1,.5",_t[3]="M.5,.5 L.5,1",_t),"\u2531":(pt={},pt[1]="M.5,.5 L1,.5",pt[3]="M0,.5 L.5,.5 L.5,1",pt),"\u2532":(vt={},vt[1]="M.5,.5 L0,.5",vt[3]="M0.5,1 L.5,.5 L1,.5",vt),"\u2535":(yt={},yt[1]="M.5,0 L.5,.5 L1,.5",yt[3]="M.5,.5 L0,.5",yt),"\u2536":(gt={},gt[1]="M.5,0 L.5,.5 L0,.5",gt[3]="M.5,.5 L1,.5",gt),"\u2537":(mt={},mt[1]="M.5,.5 L.5,0",mt[3]="M0,.5 L1,.5",mt),"\u2538":(St={},St[1]="M0,.5 L1,.5",St[3]="M.5,.5 L.5,0",St),"\u2539":(bt={},bt[1]="M.5,.5 L1,.5",bt[3]="M.5,0 L.5,.5 L0,.5",bt),"\u253A":(Ct={},Ct[1]="M.5,.5 L0,.5",Ct[3]="M.5,0 L.5,.5 L1,.5",Ct),"\u253D":(wt={},wt[1]="M.5,0 L.5,1 M.5,.5 L1,.5",wt[3]="M.5,.5 L0,.5",wt),"\u253E":(Lt={},Lt[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Lt[3]="M.5,.5 L1,.5",Lt),"\u253F":(Et={},Et[1]="M.5,0 L.5,1",Et[3]="M0,.5 L1,.5",Et),"\u2540":(xt={},xt[1]="M0,.5 L1,.5 M.5,.5 L.5,1",xt[3]="M.5,.5 L.5,0",xt),"\u2541":(Rt={},Rt[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Rt[3]="M.5,.5 L.5,1",Rt),"\u2542":(kt={},kt[1]="M0,.5 L1,.5",kt[3]="M.5,0 L.5,1",kt),"\u2543":(At={},At[1]="M0.5,1 L.5,.5 L1,.5",At[3]="M.5,0 L.5,.5 L0,.5",At),"\u2544":(Mt={},Mt[1]="M0,.5 L.5,.5 L.5,1",Mt[3]="M.5,0 L.5,.5 L1,.5",Mt),"\u2545":(Ot={},Ot[1]="M.5,0 L.5,.5 L1,.5",Ot[3]="M0,.5 L.5,.5 L.5,1",Ot),"\u2546":(Dt={},Dt[1]="M.5,0 L.5,.5 L0,.5",Dt[3]="M0.5,1 L.5,.5 L1,.5",Dt),"\u2547":(Tt={},Tt[1]="M.5,.5 L.5,1",Tt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Tt),"\u2548":(Bt={},Bt[1]="M.5,.5 L.5,0",Bt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Bt),"\u2549":(Pt={},Pt[1]="M.5,.5 L1,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Pt),"\u254A":(It={},It[1]="M.5,.5 L0,.5",It[3]="M.5,0 L.5,1 M.5,.5 L1,.5",It),"\u254C":(Nt={},Nt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Nt),"\u254D":(zt={},zt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",zt),"\u2504":(Kt={},Kt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Kt),"\u2505":(Gt={},Gt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gt),"\u2508":(Vt={},Vt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Vt),"\u2509":(Xt={},Xt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Xt),"\u254E":(Zt={},Zt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Zt),"\u254F":(Yt={},Yt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yt),"\u2506":(Jt={},Jt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Jt),"\u2507":($t={},$t[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",$t),"\u250A":(Qt={},Qt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Qt),"\u250B":(er={},er[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",er),"\u256D":(tr={},tr[1]="C.5,1,.5,.5,1,.5",tr),"\u256E":(rr={},rr[1]="C.5,1,.5,.5,0,.5",rr),"\u256F":(ir={},ir[1]="C.5,0,.5,.5,0,.5",ir),"\u2570":(nr={},nr[1]="C.5,0,.5,.5,1,.5",nr)},c.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0},"\uE0B1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0},"\uE0B3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},c.tryDrawCustomChar=function(P,I,se,ve,Le,me){var ne=c.blockElementDefinitions[I];if(ne)return function(re,ye,Te,Be,Me,Oe){for(var ue=0;ue7&&parseInt(Q.slice(7,9),16)||1;else{if(!Q.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Q+'" when drawing pattern glyph');He=(ue=ar(Q.substring(5,Q.length-1).split(",").map(function(We){return parseFloat(We)}),4))[0],De=ue[1],Ae=ue[2],Fe=ue[3]}for(var Re=0;Re{Object.defineProperty(c,"__esModule",{value:!0}),c.GridCache=void 0;var w=function(){function p(){this.cache=[]}return p.prototype.resize=function(u,f){for(var d=0;d=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.LinkRenderLayer=void 0;var m=w(1546),v=w(8803),a=w(2040),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b,g){var S=h.call(this,e,"link",t,!0,i,n,y,b,g)||this;return l.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),l.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),s.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),s.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),S}return u(r,h),r.prototype.resize=function(e){h.prototype.resize.call(this,e),this._state=void 0},r.prototype.reset=function(){this._clearCurrentLink()},r.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},r.prototype._onShowLinkUnderline=function(e){if(e.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,a.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;L--)(S=s[L])&&(k=(C<3?S(k):C>3?S(y,b,k):S(y,b))||k);return C>3&&k&&Object.defineProperty(y,b,k),k},d=this&&this.__param||function(s,y){return function(b,g){y(b,g,s)}},m=this&&this.__values||function(s){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&s[y],g=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&g>=s.length&&(s=void 0),{value:s&&s[g++],done:!s}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Renderer=void 0;var v=w(9596),a=w(4149),o=w(2512),_=w(5098),h=w(844),r=w(4725),e=w(2585),t=w(1420),i=w(8460),n=1,l=function(s){function y(b,g,S,C,k,L,R,x){var E=s.call(this)||this;E._colors=b,E._screenElement=g,E._bufferService=L,E._charSizeService=R,E._optionsService=x,E._id=n++,E._onRequestRedraw=new i.EventEmitter;var M=E._optionsService.rawOptions.allowTransparency;return E._renderLayers=[k.createInstance(v.TextRenderLayer,E._screenElement,0,E._colors,M,E._id),k.createInstance(a.SelectionRenderLayer,E._screenElement,1,E._colors,E._id),k.createInstance(_.LinkRenderLayer,E._screenElement,2,E._colors,E._id,S,C),k.createInstance(o.CursorRenderLayer,E._screenElement,3,E._colors,E._id,E._onRequestRedraw)],E.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},E._devicePixelRatio=window.devicePixelRatio,E._updateDimensions(),E.onOptionsChanged(),E}return u(y,s),Object.defineProperty(y.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.dispose()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}s.prototype.dispose.call(this),(0,t.removeTerminalFromCache)(this._id)},y.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},y.prototype.setColors=function(b){var g,S;this._colors=b;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next()){var L=k.value;L.setColors(this._colors),L.reset()}}catch(R){g={error:R}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.onResize=function(b,g){var S,C;this._updateDimensions();try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.resize(this.dimensions)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},y.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},y.prototype.onBlur=function(){this._runOperation(function(b){return b.onBlur()})},y.prototype.onFocus=function(){this._runOperation(function(b){return b.onFocus()})},y.prototype.onSelectionChanged=function(b,g,S){S===void 0&&(S=!1),this._runOperation(function(C){return C.onSelectionChanged(b,g,S)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},y.prototype.onCursorMove=function(){this._runOperation(function(b){return b.onCursorMove()})},y.prototype.onOptionsChanged=function(){this._runOperation(function(b){return b.onOptionsChanged()})},y.prototype.clear=function(){this._runOperation(function(b){return b.reset()})},y.prototype._runOperation=function(b){var g,S;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next())b(k.value)}catch(L){g={error:L}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.renderRows=function(b,g){var S,C;try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.onGridChanged(b,g)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}},y.prototype.clearTextureAtlas=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.clearTextureAtlas()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}},y.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},f([d(4,e.IInstantiationService),d(5,e.IBufferService),d(6,r.ICharSizeService),d(7,e.IOptionsService)],y)}(h.Disposable);c.Renderer=l},1752:(W,c)=>{function w(p){return 57508<=p&&p<=57558}Object.defineProperty(c,"__esModule",{value:!0}),c.excludeFromContrastRatioDemands=c.isPowerlineGlyph=c.throwIfFalsy=void 0,c.throwIfFalsy=function(p){if(!p)throw new Error("value must not be falsy");return p},c.isPowerlineGlyph=w,c.excludeFromContrastRatioDemands=function(p){return w(p)||function(u){return 9472<=u&&u<=9631}(p)}},4149:function(W,c,w){var p,u=this&&this.__extends||(p=function(o,_){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,r){h.__proto__=r}||function(h,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(h[e]=r[e])},p(o,_)},function(o,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function h(){this.constructor=o}p(o,_),o.prototype=_===null?Object.create(_):(h.prototype=_.prototype,new h)}),f=this&&this.__decorate||function(o,_,h,r){var e,t=arguments.length,i=t<3?_:r===null?r=Object.getOwnPropertyDescriptor(_,h):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,_,h,r);else for(var n=o.length-1;n>=0;n--)(e=o[n])&&(i=(t<3?e(i):t>3?e(_,h,i):e(_,h))||i);return t>3&&i&&Object.defineProperty(_,h,i),i},d=this&&this.__param||function(o,_){return function(h,r){_(h,r,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionRenderLayer=void 0;var m=w(1546),v=w(2585),a=function(o){function _(h,r,e,t,i,n,l){var s=o.call(this,h,"selection",r,!0,e,t,i,n,l)||this;return s._clearState(),s}return u(_,o),_.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},_.prototype.resize=function(h){o.prototype.resize.call(this,h),this._clearState()},_.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},_.prototype.onSelectionChanged=function(h,r,e){if(o.prototype.onSelectionChanged.call(this,h,r,e),this._didStateChange(h,r,e,this._bufferService.buffer.ydisp))if(this._clearAll(),h&&r){var t=h[1]-this._bufferService.buffer.ydisp,i=r[1]-this._bufferService.buffer.ydisp,n=Math.max(t,0),l=Math.min(i,this._bufferService.rows-1);if(n>=this._bufferService.rows||l<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,e){var s=h[0],y=r[0]-s,b=l-n+1;this._fillCells(s,n,y,b)}else{s=t===n?h[0]:0;var g=n===i?r[0]:this._bufferService.cols;this._fillCells(s,n,g-s,1);var S=Math.max(l-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,S),n!==l){var C=i===l?r[0]:this._bufferService.cols;this._fillCells(0,l,C,1)}}this._state.start=[h[0],h[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=e,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},_.prototype._didStateChange=function(h,r,e,t){return!this._areCoordinatesEqual(h,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||e!==this._state.columnSelectMode||t!==this._state.ydisp},_.prototype._areCoordinatesEqual=function(h,r){return!(!h||!r)&&h[0]===r[0]&&h[1]===r[1]},f([d(4,v.IBufferService),d(5,v.IOptionsService),d(6,v.IDecorationService)],_)}(m.BaseRenderLayer);c.SelectionRenderLayer=a},9596:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.TextRenderLayer=void 0;var v=w(3700),a=w(1546),o=w(3734),_=w(643),h=w(511),r=w(2585),e=w(4725),t=w(4269),i=function(n){function l(s,y,b,g,S,C,k,L,R){var x=n.call(this,s,"text",y,g,b,S,C,k,R)||this;return x._characterJoinerService=L,x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new h.CellData,x._state=new v.GridCache,x}return u(l,n),l.prototype.resize=function(s){n.prototype.resize.call(this,s);var y=this._getFont(!1,!1);this._characterWidth===s.scaledCharWidth&&this._characterFont===y||(this._characterWidth=s.scaledCharWidth,this._characterFont=y,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(s,y,b){for(var g=s;g<=y;g++)for(var S=g+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.lines.get(S),k=this._characterJoinerService.getJoinedCharacters(S),L=0;L0&&L===k[0][0]){x=!0;var M=k.shift();R=new t.JoinedCellData(this._workCell,C.translateToString(!0,M[0],M[1]),M[1]-M[0]),E=M[1]-1}!x&&this._isOverlapping(R)&&Ethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[y]=b,b},f([d(5,r.IBufferService),d(6,r.IOptionsService),d(7,e.ICharacterJoinerService),d(8,r.IDecorationService)],l)}(a.BaseRenderLayer);c.TextRenderLayer=i},9616:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BaseCharAtlas=void 0;var w=function(){function p(){this._didWarmUp=!1}return p.prototype.dispose=function(){},p.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},p.prototype._doWarmUp=function(){},p.prototype.clear=function(){},p.prototype.beginFrame=function(){},p}();c.BaseCharAtlas=w},1420:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.removeTerminalFromCache=c.acquireCharAtlas=void 0;var p=w(2040),u=w(1906),f=[];c.acquireCharAtlas=function(d,m,v,a,o){for(var _=(0,p.generateConfig)(a,o,d,v),h=0;h=0){if((0,p.configEquals)(e.config,_))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),f.splice(h,1)):e.ownedBy.splice(r,1);break}}for(h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.is256Color=c.configEquals=c.generateConfig=void 0;var p=w(643);c.generateConfig=function(u,f,d,m){var v={foreground:m.foreground,background:m.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:m.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:u,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:v}},c.configEquals=function(u,f){for(var d=0;d{Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR_ATLAS_CELL_SPACING=c.TEXT_BASELINE=c.DIM_OPACITY=c.INVERTED_DEFAULT_COLOR=void 0;var p=w(6114);c.INVERTED_DEFAULT_COLOR=257,c.DIM_OPACITY=.5,c.TEXT_BASELINE=p.isFirefox||p.isLegacyEdge?"bottom":"ideographic",c.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,c,w){var p,u=this&&this.__extends||(p=function(s,y){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&(b[S]=g[S])},p(s,y)},function(s,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=s}p(s,y),s.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)});Object.defineProperty(c,"__esModule",{value:!0}),c.NoneCharAtlas=c.DynamicCharAtlas=c.getGlyphCacheKey=void 0;var f=w(8803),d=w(9616),m=w(5680),v=w(7001),a=w(6114),o=w(1752),_=w(8055),h=1024,r=1024,e={css:"rgba(0, 0, 0, 0)",rgba:0};function t(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}c.getGlyphCacheKey=t;var i=function(s){function y(b,g){var S=s.call(this)||this;S._config=g,S._drawToCacheCount=0,S._glyphsWaitingOnBitmap=[],S._bitmapCommitTimeout=null,S._bitmap=null,S._cacheCanvas=b.createElement("canvas"),S._cacheCanvas.width=h,S._cacheCanvas.height=r,S._cacheCtx=(0,o.throwIfFalsy)(S._cacheCanvas.getContext("2d",{alpha:!0}));var C=b.createElement("canvas");C.width=S._config.scaledCharWidth,C.height=S._config.scaledCharHeight,S._tmpCtx=(0,o.throwIfFalsy)(C.getContext("2d",{alpha:S._config.allowTransparency})),S._width=Math.floor(h/S._config.scaledCharWidth),S._height=Math.floor(r/S._config.scaledCharHeight);var k=S._width*S._height;return S._cacheMap=new v.LRUMap(k),S._cacheMap.prealloc(k),S}return u(y,s),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.clear=function(){if(this._cacheMap.size>0){var b=this._width*this._height;this._cacheMap=new v.LRUMap(b),this._cacheMap.prealloc(b)}this._cacheCtx.clearRect(0,0,h,r),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},y.prototype.draw=function(b,g,S,C){if(g.code===32)return!0;if(!this._canCache(g))return!1;var k=t(g),L=this._cacheMap.get(k);if(L!=null)return this._drawFromCache(b,L,S,C),!0;if(this._drawToCacheCount<100){var R;R=this._cacheMap.size>>24,S=y.rgba>>>16&255,C=y.rgba>>>8&255,k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.LRUMap=void 0;var w=function(){function p(u){this.capacity=u,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return p.prototype._unlinkNode=function(u){var f=u.prev,d=u.next;u===this._head&&(this._head=d),u===this._tail&&(this._tail=f),f!==null&&(f.next=d),d!==null&&(d.prev=f)},p.prototype._appendNode=function(u){var f=this._tail;f!==null&&(f.next=u),u.prev=f,u.next=null,this._tail=u,this._head===null&&(this._head=u)},p.prototype.prealloc=function(u){for(var f=this._nodePool,d=0;d=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=u,d.value=f,this._map[u]=d;else{var m=this._nodePool;m.length>0?((d=m.pop()).key=u,d.value=f):d={prev:null,next:null,key:u,value:f},this._map[u]=d,this.size++}this._appendNode(d)},p}();c.LRUMap=w},1296:function(W,c,w){var p,u=this&&this.__extends||(p=function(g,S){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(C[L]=k[L])},p(g,S)},function(g,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function C(){this.constructor=g}p(g,S),g.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),f=this&&this.__decorate||function(g,S,C,k){var L,R=arguments.length,x=R<3?S:k===null?k=Object.getOwnPropertyDescriptor(S,C):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(g,S,C,k);else for(var E=g.length-1;E>=0;E--)(L=g[E])&&(x=(R<3?L(x):R>3?L(S,C,x):L(S,C))||x);return R>3&&x&&Object.defineProperty(S,C,x),x},d=this&&this.__param||function(g,S){return function(C,k){S(C,k,g)}},m=this&&this.__values||function(g){var S=typeof Symbol=="function"&&Symbol.iterator,C=S&&g[S],k=0;if(C)return C.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&k>=g.length&&(g=void 0),{value:g&&g[k++],done:!g}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRenderer=void 0;var v=w(3787),a=w(8803),o=w(844),_=w(4725),h=w(2585),r=w(8460),e=w(8055),t=w(9631),i="xterm-dom-renderer-owner-",n="xterm-fg-",l="xterm-bg-",s="xterm-focus",y=1,b=function(g){function S(C,k,L,R,x,E,M,T,U,q){var F=g.call(this)||this;return F._colors=C,F._element=k,F._screenElement=L,F._viewportElement=R,F._linkifier=x,F._linkifier2=E,F._charSizeService=T,F._optionsService=U,F._bufferService=q,F._terminalClass=y++,F._rowElements=[],F._rowContainer=document.createElement("div"),F._rowContainer.classList.add("xterm-rows"),F._rowContainer.style.lineHeight="normal",F._rowContainer.setAttribute("aria-hidden","true"),F._refreshRowElements(F._bufferService.cols,F._bufferService.rows),F._selectionContainer=document.createElement("div"),F._selectionContainer.classList.add("xterm-selection"),F._selectionContainer.setAttribute("aria-hidden","true"),F.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},F._updateDimensions(),F._injectCss(),F._rowFactory=M.createInstance(v.DomRendererRowFactory,document,F._colors),F._element.classList.add(i+F._terminalClass),F._screenElement.appendChild(F._rowContainer),F._screenElement.appendChild(F._selectionContainer),F.register(F._linkifier.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F.register(F._linkifier2.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier2.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F}return u(S,g),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this._element.classList.remove(i+this._terminalClass),(0,t.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),g.prototype.dispose.call(this)},S.prototype._updateDimensions=function(){var C,k;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next()){var x=R.value;x.style.width=this.dimensions.canvasWidth+"px",x.style.height=this.dimensions.actualCellHeight+"px",x.style.lineHeight=this.dimensions.actualCellHeight+"px",x.style.overflow="hidden"}}catch(M){C={error:M}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},S.prototype.setColors=function(C){this._colors=C,this._injectCss()},S.prototype._injectCss=function(){var C=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var k=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";k+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",k+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",k+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",k+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",k+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(L,R){k+=C._terminalSelector+" ."+n+R+" { color: "+L.css+"; }"+C._terminalSelector+" ."+l+R+" { background-color: "+L.css+"; }"}),k+=this._terminalSelector+" ."+n+a.INVERTED_DEFAULT_COLOR+" { color: "+e.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+l+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=k},S.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},S.prototype._refreshRowElements=function(C,k){for(var L=this._rowElements.length;L<=k;L++){var R=document.createElement("div");this._rowContainer.appendChild(R),this._rowElements.push(R)}for(;this._rowElements.length>k;)this._rowContainer.removeChild(this._rowElements.pop())},S.prototype.onResize=function(C,k){this._refreshRowElements(C,k),this._updateDimensions()},S.prototype.onCharSizeChanged=function(){this._updateDimensions()},S.prototype.onBlur=function(){this._rowContainer.classList.remove(s)},S.prototype.onFocus=function(){this._rowContainer.classList.add(s)},S.prototype.onSelectionChanged=function(C,k,L){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(C,k,L),this.renderRows(0,this._bufferService.rows-1),C&&k){var R=C[1]-this._bufferService.buffer.ydisp,x=k[1]-this._bufferService.buffer.ydisp,E=Math.max(R,0),M=Math.min(x,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||M<0)){var T=document.createDocumentFragment();if(L){var U=C[0]>k[0];T.appendChild(this._createSelectionElement(E,U?k[0]:C[0],U?C[0]:k[0],M-E+1))}else{var q=R===E?C[0]:0,F=E===x?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(E,q,F));var z=M-E-1;if(T.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,z)),E!==M){var N=x===M?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(M,0,N))}}this._selectionContainer.appendChild(T)}}},S.prototype._createSelectionElement=function(C,k,L,R){R===void 0&&(R=1);var x=document.createElement("div");return x.style.height=R*this.dimensions.actualCellHeight+"px",x.style.top=C*this.dimensions.actualCellHeight+"px",x.style.left=k*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(L-k)+"px",x},S.prototype.onCursorMove=function(){},S.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},S.prototype.clear=function(){var C,k;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next())R.value.innerText=""}catch(x){C={error:x}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}},S.prototype.renderRows=function(C,k){for(var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,R=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.rawOptions.cursorBlink,E=C;E<=k;E++){var M=this._rowElements[E];M.innerText="";var T=E+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(T),q=this._optionsService.rawOptions.cursorStyle;M.appendChild(this._rowFactory.createRow(U,T,T===L,q,R,x,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(S.prototype,"_terminalSelector",{get:function(){return"."+i+this._terminalClass},enumerable:!1,configurable:!0}),S.prototype._onLinkHover=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!0)},S.prototype._onLinkLeave=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!1)},S.prototype._setCellUnderline=function(C,k,L,R,x,E){for(;C!==k||L!==R;){var M=this._rowElements[L];if(!M)return;var T=M.children[C];T&&(T.style.textDecoration=E?"underline":"none"),++C>=x&&(C=0,L++)}},f([d(6,h.IInstantiationService),d(7,_.ICharSizeService),d(8,h.IOptionsService),d(9,h.IBufferService)],S)}(o.Disposable);c.DomRenderer=b},3787:function(W,c,w){var p=this&&this.__decorate||function(i,n,l,s){var y,b=arguments.length,g=b<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,l):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,l,s);else for(var S=i.length-1;S>=0;S--)(y=i[S])&&(g=(b<3?y(g):b>3?y(n,l,g):y(n,l))||g);return b>3&&g&&Object.defineProperty(n,l,g),g},u=this&&this.__param||function(i,n){return function(l,s){n(l,s,i)}},f=this&&this.__values||function(i){var n=typeof Symbol=="function"&&Symbol.iterator,l=n&&i[n],s=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRendererRowFactory=c.CURSOR_STYLE_UNDERLINE_CLASS=c.CURSOR_STYLE_BAR_CLASS=c.CURSOR_STYLE_BLOCK_CLASS=c.CURSOR_BLINK_CLASS=c.CURSOR_CLASS=c.STRIKETHROUGH_CLASS=c.UNDERLINE_CLASS=c.ITALIC_CLASS=c.DIM_CLASS=c.BOLD_CLASS=void 0;var d=w(8803),m=w(643),v=w(511),a=w(2585),o=w(8055),_=w(4725),h=w(4269),r=w(1752);c.BOLD_CLASS="xterm-bold",c.DIM_CLASS="xterm-dim",c.ITALIC_CLASS="xterm-italic",c.UNDERLINE_CLASS="xterm-underline",c.STRIKETHROUGH_CLASS="xterm-strikethrough",c.CURSOR_CLASS="xterm-cursor",c.CURSOR_BLINK_CLASS="xterm-cursor-blink",c.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",c.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",c.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var e=function(){function i(n,l,s,y,b,g){this._document=n,this._colors=l,this._characterJoinerService=s,this._optionsService=y,this._coreService=b,this._decorationService=g,this._workCell=new v.CellData,this._columnSelectMode=!1}return i.prototype.setColors=function(n){this._colors=n},i.prototype.onSelectionChanged=function(n,l,s){this._selectionStart=n,this._selectionEnd=l,this._columnSelectMode=s},i.prototype.createRow=function(n,l,s,y,b,g,S,C){for(var k,L,R=this._document.createDocumentFragment(),x=this._characterJoinerService.getJoinedCharacters(l),E=0,M=Math.min(n.length,C)-1;M>=0;M--)if(n.loadCell(M,this._workCell).getCode()!==m.NULL_CELL_CODE||s&&M===b){E=M+1;break}for(M=0;M0&&M===x[0][0]){U=!0;var z=x.shift();F=new h.JoinedCellData(this._workCell,n.translateToString(!0,z[0],z[1]),z[1]-z[0]),q=z[1]-1,T=F.getWidth()}var N=this._document.createElement("span");if(T>1&&(N.style.width=S*T+"px"),U&&(N.style.display="inline",b>=M&&b<=q&&(b=M)),!this._coreService.isCursorHidden&&s&&M===b)switch(N.classList.add(c.CURSOR_CLASS),g&&N.classList.add(c.CURSOR_BLINK_CLASS),y){case"bar":N.classList.add(c.CURSOR_STYLE_BAR_CLASS);break;case"underline":N.classList.add(c.CURSOR_STYLE_UNDERLINE_CLASS);break;default:N.classList.add(c.CURSOR_STYLE_BLOCK_CLASS)}F.isBold()&&N.classList.add(c.BOLD_CLASS),F.isItalic()&&N.classList.add(c.ITALIC_CLASS),F.isDim()&&N.classList.add(c.DIM_CLASS),F.isUnderline()&&N.classList.add(c.UNDERLINE_CLASS),F.isInvisible()?N.textContent=m.WHITESPACE_CELL_CHAR:N.textContent=F.getChars()||m.WHITESPACE_CELL_CHAR,F.isStrikethrough()&&N.classList.add(c.STRIKETHROUGH_CLASS);var A=F.getFgColor(),Y=F.getFgColorMode(),Z=F.getBgColor(),te=F.getBgColorMode(),B=!!F.isInverse();if(B){var ee=A;A=Z,Z=ee;var X=Y;Y=te,te=X}var j=void 0,O=void 0,D=!1;try{for(var H=(k=void 0,f(this._decorationService.getDecorationsAtCell(M,l))),G=H.next();!G.done;G=H.next()){var V=G.value;V.options.layer!=="top"&&D||(V.backgroundColorRGB&&(te=50331648,Z=V.backgroundColorRGB.rgba>>8&16777215,j=V.backgroundColorRGB),V.foregroundColorRGB&&(Y=50331648,A=V.foregroundColorRGB.rgba>>8&16777215,O=V.foregroundColorRGB),D=V.options.layer==="top")}}catch(le){k={error:le}}finally{try{G&&!G.done&&(L=H.return)&&L.call(H)}finally{if(k)throw k.error}}var $=this._isCellInSelection(M,l);D||this._colors.selectionForeground&&$&&(Y=50331648,A=this._colors.selectionForeground.rgba>>8&16777215,O=this._colors.selectionForeground),$&&(j=this._colors.selectionOpaque,D=!0),D&&N.classList.add("xterm-decoration-top");var ie=void 0;switch(te){case 16777216:case 33554432:ie=this._colors.ansi[Z],N.classList.add("xterm-bg-"+Z);break;case 50331648:ie=o.rgba.toColor(Z>>16,Z>>8&255,255&Z),this._addStyle(N,"background-color:#"+t((Z>>>0).toString(16),"0",6));break;default:B?(ie=this._colors.foreground,N.classList.add("xterm-bg-"+d.INVERTED_DEFAULT_COLOR)):ie=this._colors.background}switch(Y){case 16777216:case 33554432:F.isBold()&&A<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(A+=8),this._applyMinimumContrast(N,ie,this._colors.ansi[A],F,j,void 0)||N.classList.add("xterm-fg-"+A);break;case 50331648:var ce=o.rgba.toColor(A>>16&255,A>>8&255,255&A);this._applyMinimumContrast(N,ie,ce,F,j,O)||this._addStyle(N,"color:#"+t(A.toString(16),"0",6));break;default:this._applyMinimumContrast(N,ie,this._colors.foreground,F,j,void 0)||B&&N.classList.add("xterm-fg-"+d.INVERTED_DEFAULT_COLOR)}R.appendChild(N),M=q}}return R},i.prototype._applyMinimumContrast=function(n,l,s,y,b,g){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,r.excludeFromContrastRatioDemands)(y.getCode()))return!1;var S=void 0;return b||g||(S=this._colors.contrastCache.getColor(l.rgba,s.rgba)),S===void 0&&(S=o.color.ensureContrastRatio(b||l,g||s,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((b||l).rgba,(g||s).rgba,S!=null?S:null)),!!S&&(this._addStyle(n,"color:"+S.css),!0)},i.prototype._addStyle=function(n,l){n.setAttribute("style",""+(n.getAttribute("style")||"")+l+";")},i.prototype._isCellInSelection=function(n,l){var s=this._selectionStart,y=this._selectionEnd;return!(!s||!y)&&(this._columnSelectMode?s[0]<=y[0]?n>=s[0]&&l>=s[1]&&n=s[1]&&n>=y[0]&&l<=y[1]:l>s[1]&&l=s[0]&&n=s[0])},p([u(2,_.ICharacterJoinerService),u(3,a.IOptionsService),u(4,a.ICoreService),u(5,a.IDecorationService)],i)}();function t(i,n,l){for(;i.length{Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionModel=void 0;var w=function(){function p(u){this._bufferService=u,this.isSelectAllActive=!1,this.selectionStartLength=0}return p.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(p.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?u%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)-1]:[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[u,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[Math.max(u,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var u},enumerable:!1,configurable:!0}),p.prototype.areSelectionValuesReversed=function(){var u=this.selectionStart,f=this.selectionEnd;return!(!u||!f)&&(u[1]>f[1]||u[1]===f[1]&&u[0]>f[0])},p.prototype.onTrim=function(u){return this.selectionStart&&(this.selectionStart[1]-=u),this.selectionEnd&&(this.selectionEnd[1]-=u),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},p}();c.SelectionModel=w},428:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharSizeService=void 0;var f=w(2585),d=w(8460),m=function(){function a(o,_,h){this._optionsService=h,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new v(o,_,this._optionsService)}return Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),a.prototype.measure=function(){var o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},p([u(2,f.IOptionsService)],a)}();c.CharSizeService=m;var v=function(){function a(o,_,h){this._document=o,this._parentElement=_,this._optionsService=h,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return a.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},a}()},4269:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharacterJoinerService=c.JoinedCellData=void 0;var m=w(3734),v=w(643),a=w(511),o=w(2585),_=function(r){function e(t,i,n){var l=r.call(this)||this;return l.content=0,l.combinedData="",l.fg=t.fg,l.bg=t.bg,l.combinedData=i,l._width=n,l}return u(e,r),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(t){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(m.AttributeData);c.JoinedCellData=_;var h=function(){function r(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return r.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},r.prototype.deregister=function(e){for(var t=0;t1)for(var C=this._getJoinedRanges(n,y,s,t,l),k=0;k1)for(C=this._getJoinedRanges(n,y,s,t,l),k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreBrowserService=void 0;var w=function(){function p(u){this._textarea=u}return Object.defineProperty(p.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),p}();c.CoreBrowserService=w},8934:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseService=void 0;var f=w(4725),d=w(9806),m=function(){function v(a,o){this._renderService=a,this._charSizeService=o}return v.prototype.getCoords=function(a,o,_,h,r){return(0,d.getCoords)(window,a,o,_,h,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)},v.prototype.getRawByteCoords=function(a,o,_,h){var r=this.getCoords(a,o,_,h);return(0,d.getRawByteCoords)(r)},p([u(0,f.IRenderService),u(1,f.ICharSizeService)],v)}();c.MouseService=m},3230:function(W,c,w){var p,u=this&&this.__extends||(p=function(t,i){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(n[s]=l[s])},p(t,i)},function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}p(t,i),t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}),f=this&&this.__decorate||function(t,i,n,l){var s,y=arguments.length,b=y<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(t,i,n,l);else for(var g=t.length-1;g>=0;g--)(s=t[g])&&(b=(y<3?s(b):y>3?s(i,n,b):s(i,n))||b);return y>3&&b&&Object.defineProperty(i,n,b),b},d=this&&this.__param||function(t,i){return function(n,l){i(n,l,t)}};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderService=void 0;var m=w(6193),v=w(8460),a=w(844),o=w(5596),_=w(3656),h=w(2585),r=w(4725),e=function(t){function i(n,l,s,y,b,g,S){var C=t.call(this)||this;if(C._renderer=n,C._rowCount=l,C._charSizeService=b,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new v.EventEmitter,C._onRenderedViewportChange=new v.EventEmitter,C._onRender=new v.EventEmitter,C._onRefreshRequest=new v.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new m.RenderDebouncer(function(L,R){return C._renderRows(L,R)}),C.register(C._renderDebouncer),C._screenDprMonitor=new o.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(S.onResize(function(){return C._fullRefresh()})),C.register(S.buffers.onBufferActivate(function(){var L;return(L=C._renderer)===null||L===void 0?void 0:L.clear()})),C.register(y.onOptionChange(function(){return C._handleOptionsChanged()})),C.register(C._charSizeService.onCharSizeChange(function(){return C.onCharSizeChanged()})),C.register(g.onDecorationRegistered(function(){return C._fullRefresh()})),C.register(g.onDecorationRemoved(function(){return C._fullRefresh()})),C._renderer.onRequestRedraw(function(L){return C.refreshRows(L.start,L.end,!0)}),C.register((0,_.addDisposableDomListener)(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var k=new IntersectionObserver(function(L){return C._onIntersectionChange(L[L.length-1])},{threshold:0});k.observe(s),C.register({dispose:function(){return k.disconnect()}})}return C}return u(i,t),Object.defineProperty(i.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),i.prototype._onIntersectionChange=function(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},i.prototype.refreshRows=function(n,l,s){s===void 0&&(s=!1),this._isPaused?this._needsFullRefresh=!0:(s||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,l,this._rowCount))},i.prototype._renderRows=function(n,l){this._renderer.renderRows(n,l),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:l}),this._onRender.fire({start:n,end:l}),this._isNextRenderRedrawOnly=!0},i.prototype.resize=function(n,l){this._rowCount=l,this._fireOnCanvasResize()},i.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},i.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},i.prototype.dispose=function(){t.prototype.dispose.call(this)},i.prototype.setRenderer=function(n){var l=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRedraw(function(s){return l.refreshRows(s.start,s.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},i.prototype.addRefreshCallback=function(n){return this._renderDebouncer.addRefreshCallback(n)},i.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},i.prototype.clearTextureAtlas=function(){var n,l;(l=(n=this._renderer)===null||n===void 0?void 0:n.clearTextureAtlas)===null||l===void 0||l.call(n),this._fullRefresh()},i.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},i.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},i.prototype.onResize=function(n,l){this._renderer.onResize(n,l),this._fullRefresh()},i.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},i.prototype.onBlur=function(){this._renderer.onBlur()},i.prototype.onFocus=function(){this._renderer.onFocus()},i.prototype.onSelectionChanged=function(n,l,s){this._selectionState.start=n,this._selectionState.end=l,this._selectionState.columnSelectMode=s,this._renderer.onSelectionChanged(n,l,s)},i.prototype.onCursorMove=function(){this._renderer.onCursorMove()},i.prototype.clear=function(){this._renderer.clear()},f([d(3,h.IOptionsService),d(4,r.ICharSizeService),d(5,h.IDecorationService),d(6,h.IBufferService)],i)}(a.Disposable);c.RenderService=e},9312:function(W,c,w){var p,u=this&&this.__extends||(p=function(y,b){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,S){g.__proto__=S}||function(g,S){for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&(g[C]=S[C])},p(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function g(){this.constructor=y}p(y,b),y.prototype=b===null?Object.create(b):(g.prototype=b.prototype,new g)}),f=this&&this.__decorate||function(y,b,g,S){var C,k=arguments.length,L=k<3?b:S===null?S=Object.getOwnPropertyDescriptor(b,g):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(y,b,g,S);else for(var R=y.length-1;R>=0;R--)(C=y[R])&&(L=(k<3?C(L):k>3?C(b,g,L):C(b,g))||L);return k>3&&L&&Object.defineProperty(b,g,L),L},d=this&&this.__param||function(y,b){return function(g,S){b(g,S,y)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionService=void 0;var m=w(6114),v=w(456),a=w(511),o=w(8460),_=w(4725),h=w(2585),r=w(9806),e=w(9504),t=w(844),i=w(4841),n=String.fromCharCode(160),l=new RegExp(n,"g"),s=function(y){function b(g,S,C,k,L,R,x,E){var M=y.call(this)||this;return M._element=g,M._screenElement=S,M._linkifier=C,M._bufferService=k,M._coreService=L,M._mouseService=R,M._optionsService=x,M._renderService=E,M._dragScrollAmount=0,M._enabled=!0,M._workCell=new a.CellData,M._mouseDownTimeStamp=0,M._oldHasSelection=!1,M._oldSelectionStart=void 0,M._oldSelectionEnd=void 0,M._onLinuxMouseSelection=M.register(new o.EventEmitter),M._onRedrawRequest=M.register(new o.EventEmitter),M._onSelectionChange=M.register(new o.EventEmitter),M._onRequestScrollLines=M.register(new o.EventEmitter),M._mouseMoveListener=function(T){return M._onMouseMove(T)},M._mouseUpListener=function(T){return M._onMouseUp(T)},M._coreService.onUserInput(function(){M.hasSelection&&M.clearSelection()}),M._trimListener=M._bufferService.buffer.lines.onTrim(function(T){return M._onTrim(T)}),M.register(M._bufferService.buffers.onBufferActivate(function(T){return M._onBufferActivate(T)})),M.enable(),M._model=new v.SelectionModel(M._bufferService),M._activeSelectionMode=0,M}return u(b,y),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;return!(!g||!S||g[0]===S[0]&&g[1]===S[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;if(!g||!S)return"";var C=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(g[0]===S[0])return"";for(var L=g[0]S[1]&&g[1]=S[0]&&g[0]=S[0]},b.prototype._selectWordAtCursor=function(g,S){var C,k,L=(k=(C=this._linkifier.currentLink)===null||C===void 0?void 0:C.link)===null||k===void 0?void 0:k.range;if(L)return this._model.selectionStart=[L.start.x-1,L.start.y-1],this._model.selectionStartLength=(0,i.getRangeLength)(L,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var R=this._getMouseBufferCoords(g);return!!R&&(this._selectWordAt(R,S),this._model.selectionEnd=void 0,!0)},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(g,S){this._model.clearSelection(),g=Math.max(g,0),S=Math.min(S,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,g],this._model.selectionEnd=[this._bufferService.cols,S],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(g){this._model.onTrim(g)&&this.refresh()},b.prototype._getMouseBufferCoords=function(g){var S=this._mouseService.getCoords(g,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(S)return S[0]--,S[1]--,S[1]+=this._bufferService.buffer.ydisp,S},b.prototype._getMouseEventScrollAmount=function(g){var S=(0,r.getCoordsRelativeToElement)(window,g,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return S>=0&&S<=C?0:(S>C&&(S-=C),S=Math.min(Math.max(S,-50),50),(S/=50)/Math.abs(S)+Math.round(14*S))},b.prototype.shouldForceSelection=function(g){return m.isMac?g.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:g.shiftKey},b.prototype.onMouseDown=function(g){if(this._mouseDownTimeStamp=g.timeStamp,(g.button!==2||!this.hasSelection)&&g.button===0){if(!this._enabled){if(!this.shouldForceSelection(g))return;g.stopPropagation()}g.preventDefault(),this._dragScrollAmount=0,this._enabled&&g.shiftKey?this._onIncrementalClick(g):g.detail===1?this._onSingleClick(g):g.detail===2?this._onDoubleClick(g):g.detail===3&&this._onTripleClick(g),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var g=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return g._dragScroll()},50)},b.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},b.prototype._onIncrementalClick=function(g){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(g))},b.prototype._onSingleClick=function(g){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(g)?3:0,this._model.selectionStart=this._getMouseBufferCoords(g),this._model.selectionStart){this._model.selectionEnd=void 0;var S=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);S&&S.length!==this._model.selectionStart[0]&&S.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(g){this._selectWordAtCursor(g,!0)&&(this._activeSelectionMode=1)},b.prototype._onTripleClick=function(g){var S=this._getMouseBufferCoords(g);S&&(this._activeSelectionMode=2,this._selectLineAt(S[1]))},b.prototype.shouldColumnSelect=function(g){return g.altKey&&!(m.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(g){if(g.stopImmediatePropagation(),this._model.selectionStart){var S=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(g),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(g.ydisp+this._bufferService.rows,g.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=g.ydisp),this.refresh()}},b.prototype._onMouseUp=function(g){var S=g.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&S<500&&g.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(g,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var k=(0,e.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(k,!0)}}}else this._fireEventIfSelectionChanged()},b.prototype._fireEventIfSelectionChanged=function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd,C=!(!g||!S||g[0]===S[0]&&g[1]===S[1]);C?g&&S&&(this._oldSelectionStart&&this._oldSelectionEnd&&g[0]===this._oldSelectionStart[0]&&g[1]===this._oldSelectionStart[1]&&S[0]===this._oldSelectionEnd[0]&&S[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(g,S,C)):this._oldHasSelection&&this._fireOnSelectionChange(g,S,C)},b.prototype._fireOnSelectionChange=function(g,S,C){this._oldSelectionStart=g,this._oldSelectionEnd=S,this._oldHasSelection=C,this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(g){var S=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=g.activeBuffer.lines.onTrim(function(C){return S._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(g,S){for(var C=S[0],k=0;S[0]>=k;k++){var L=g.loadCell(k,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:L>1&&S[0]!==k&&(C+=L-1)}return C},b.prototype.setSelection=function(g,S,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[g,S],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()},b.prototype.rightClickSelect=function(g){this._isClickInSelection(g)||(this._selectWordAtCursor(g,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},b.prototype._getWordAt=function(g,S,C,k){if(C===void 0&&(C=!0),k===void 0&&(k=!0),!(g[0]>=this._bufferService.cols)){var L=this._bufferService.buffer,R=L.lines.get(g[1]);if(R){var x=L.translateBufferLineToString(g[1],!1),E=this._convertViewportColToCharacterIndex(R,g),M=E,T=g[0]-E,U=0,q=0,F=0,z=0;if(x.charAt(E)===" "){for(;E>0&&x.charAt(E-1)===" ";)E--;for(;M1&&(z+=Y-1,M+=Y-1);N>0&&E>0&&!this._isCharWordSeparator(R.loadCell(N-1,this._workCell));){R.loadCell(N-1,this._workCell);var Z=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,N--):Z>1&&(F+=Z-1,E-=Z-1),E--,N--}for(;A1&&(z+=te-1,M+=te-1),M++,A++}}M++;var B=E+T-U+F,ee=Math.min(this._bufferService.cols,M-E+U+q-F-z);if(S||x.slice(E,M).trim()!==""){if(C&&B===0&&R.getCodePoint(0)!==32){var X=L.lines.get(g[1]-1);if(X&&R.isWrapped&&X.getCodePoint(this._bufferService.cols-1)!==32){var j=this._getWordAt([this._bufferService.cols-1,g[1]-1],!1,!0,!1);if(j){var O=this._bufferService.cols-j.start;B-=O,ee+=O}}}if(k&&B+ee===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){var D=L.lines.get(g[1]+1);if((D==null?void 0:D.isWrapped)&&D.getCodePoint(0)!==32){var H=this._getWordAt([0,g[1]+1],!1,!1,!0);H&&(ee+=H.length)}}return{start:B,length:ee}}}}},b.prototype._selectWordAt=function(g,S){var C=this._getWordAt(g,S);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,g[1]--;this._model.selectionStart=[C.start,g[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(g){var S=this._getWordAt(g,!0);if(S){for(var C=g[1];S.start<0;)S.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;S.start+S.length>this._bufferService.cols;)S.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?S.start:S.start+S.length,C]}},b.prototype._isCharWordSeparator=function(g){return g.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(g.getChars())>=0},b.prototype._selectLineAt=function(g){var S=this._bufferService.buffer.getWrappedRangeForLine(g),C={start:{x:0,y:S.first},end:{x:this._bufferService.cols-1,y:S.last}};this._model.selectionStart=[0,S.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,i.getRangeLength)(C,this._bufferService.cols)},f([d(3,h.IBufferService),d(4,h.ICoreService),d(5,_.IMouseService),d(6,h.IOptionsService),d(7,_.IRenderService)],b)}(t.Disposable);c.SelectionService=s},4725:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ICharacterJoinerService=c.ISoundService=c.ISelectionService=c.IRenderService=c.IMouseService=c.ICoreBrowserService=c.ICharSizeService=void 0;var p=w(8343);c.ICharSizeService=(0,p.createDecorator)("CharSizeService"),c.ICoreBrowserService=(0,p.createDecorator)("CoreBrowserService"),c.IMouseService=(0,p.createDecorator)("MouseService"),c.IRenderService=(0,p.createDecorator)("RenderService"),c.ISelectionService=(0,p.createDecorator)("SelectionService"),c.ISoundService=(0,p.createDecorator)("SoundService"),c.ICharacterJoinerService=(0,p.createDecorator)("CharacterJoinerService")},357:function(W,c,w){var p=this&&this.__decorate||function(m,v,a,o){var _,h=arguments.length,r=h<3?v:o===null?o=Object.getOwnPropertyDescriptor(v,a):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(m,v,a,o);else for(var e=m.length-1;e>=0;e--)(_=m[e])&&(r=(h<3?_(r):h>3?_(v,a,r):_(v,a))||r);return h>3&&r&&Object.defineProperty(v,a,r),r},u=this&&this.__param||function(m,v){return function(a,o){v(a,o,m)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SoundService=void 0;var f=w(2585),d=function(){function m(v){this._optionsService=v}return Object.defineProperty(m,"audioContext",{get:function(){if(!m._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;m._audioContext=new v}return m._audioContext},enumerable:!1,configurable:!0}),m.prototype.playBellSound=function(){var v=m.audioContext;if(v){var a=v.createBufferSource();v.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(o){a.buffer=o,a.connect(v.destination),a.start(0)})}},m.prototype._base64ToArrayBuffer=function(v){for(var a=window.atob(v),o=a.length,_=new Uint8Array(o),h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.CircularList=void 0;var p=w(8460),u=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new p.EventEmitter,this.onInsertEmitter=new p.EventEmitter,this.onTrimEmitter=new p.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(d){if(this._maxLength!==d){for(var m=new Array(d),v=0;vthis._length)for(var m=this._length;m=d;o--)this._array[this._getCyclicIndex(o+v.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o
"+a+'
>=1)&&(a+=a);return s}),String.prototype.includes||w(String.prototype,"includes",function(p,s){return this.indexOf(p,s)!=-1}),Object.assign||(Object.assign=function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(p),a=1;a>>0,n=arguments[1]>>0,a=n<0?Math.max(s+n,0):Math.min(n,s),n=arguments[2],n=n===void 0?s:n>>0,e=n<0?Math.max(s+n,0):Math.min(n,s);a ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(p,s){return this.compare(p,s)==0},this.compareRange=function(s){var a=s.end,s=s.start,a=this.compare(a.row,a.column);return a==1?(a=this.compare(s.row,s.column))==1?2:a==0?1:0:a==-1?-2:(a=this.compare(s.row,s.column))==-1?-1:a==1?42:0},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(p){return this.comparePoint(p.start)==0&&this.comparePoint(p.end)==0},this.intersects=function(p){return p=this.compareRange(p),p==-1||p==0||p==1},this.isEnd=function(p,s){return this.end.row==p&&this.end.column==s},this.isStart=function(p,s){return this.start.row==p&&this.start.column==s},this.setStart=function(p,s){typeof p=="object"?(this.start.column=p.column,this.start.row=p.row):(this.start.row=p,this.start.column=s)},this.setEnd=function(p,s){typeof p=="object"?(this.end.column=p.column,this.end.row=p.row):(this.end.row=p,this.end.column=s)},this.inside=function(p,s){return this.compare(p,s)==0&&!this.isEnd(p,s)&&!this.isStart(p,s)},this.insideStart=function(p,s){return this.compare(p,s)==0&&!this.isEnd(p,s)},this.insideEnd=function(p,s){return this.compare(p,s)==0&&!this.isStart(p,s)},this.compare=function(p,s){return this.isMultiLine()||p!==this.start.row?pthis.end.row?1:this.start.row===p?s>=this.start.column?0:-1:this.end.row!==p||s<=this.end.column?0:1:sthis.end.column?1:0},this.compareStart=function(p,s){return this.start.row==p&&this.start.column==s?-1:this.compare(p,s)},this.compareEnd=function(p,s){return this.end.row==p&&this.end.column==s?1:this.compare(p,s)},this.compareInside=function(p,s){return this.end.row==p&&this.end.column==s?1:this.start.row==p&&this.start.column==s?-1:this.compare(p,s)},this.clipRows=function(p,s){var a,n;return this.end.row>s?a={row:s+1,column:0}:this.end.rows?n={row:s+1,column:0}:this.start.row>=1)&&(s+=s);return n};var w=/^\s\s*/,p=/\s\s*$/;m.stringTrimLeft=function(s){return s.replace(w,"")},m.stringTrimRight=function(s){return s.replace(p,"")},m.copyObject=function(s){var a,n={};for(a in s)n[a]=s[a];return n},m.copyArray=function(s){for(var a=[],n=0,e=s.length;nDate.now()-50)||(w=!1)},cancel:function(){w=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(f,m,b){var w=f("../lib/event"),p=f("../lib/useragent"),s=f("../lib/dom"),a=f("../lib/lang"),n=f("../clipboard"),e=p.isChrome<18,t=p.isIE,i=63ae+1?me.length:de,de+=fe.length+1,fe=fe+` +`+me):h&&0=_.length&&ae.value===_&&_&&ae.selectionEnd!==H}),E=null,$=(this.setInputHandler=function(ae){E=ae},!(this.getInputHandler=function(){return E})),G=function(ae,me){if($=$&&!1,A)return B(),ae&&v.onPaste(ae),A=!1,"";for(var ce=d.selectionStart,de=d.selectionEnd,fe=F,be=_.length-H,ke=ae,Me=ae.length-ce,Je=ae.length-de,He=0;0F-1&&_[_.length-He]==ae[ae.length-He];)He++,be--;Me-=He-1,Je-=He-1;var Qe=ke.length-He+1;return Qe<0&&(fe=-Qe,Qe=0),ke=ke.slice(0,Qe),me||ke||Me||fe||be||Je?(Qe=!(I=!0),p.isAndroid&&ke==". "&&(ke=" ",Qe=!0),ke&&!fe&&!be&&!Me&&!Je||L?v.onTextInput(ke):v.onTextInput(ke,{extendLeft:fe,extendRight:be,restoreStart:Me,restoreEnd:Je}),I=!1,_=ae,F=ce,H=de,z=Je,Qe?` +`:ke):""},K=function(me){if(x)return he();if(me&&me.inputType){if(me.inputType=="historyUndo")return v.execCommand("undo");if(me.inputType=="historyRedo")return v.execCommand("redo")}var me=d.value,ce=G(me,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(n){var n=n.getDocumentPosition(),e=this.editor,t=e.session.getBracketRange(n);t?(t.isEmpty()&&(t.start.column--,t.end.column++),this.setState("select")):(t=e.selection.getWordRange(n.row,n.column),this.setState("selectByWords")),this.$clickSelection=t,this.select()},this.onTripleClick=function(n){var n=n.getDocumentPosition(),e=this.editor,t=(this.setState("selectByLines"),e.getSelectionRange());t.isMultiLine()&&t.contains(n.row,n.column)?(this.$clickSelection=e.selection.getLineRange(t.start.row),this.$clickSelection.end=e.selection.getLineRange(t.end.row).end):this.$clickSelection=e.selection.getLineRange(n.row),this.select()},this.onQuadClick=function(a){var n=this.editor;n.selectAll(),this.$clickSelection=n.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(a){var n,e,t,i,r,l,o;if(!a.getAccelKey())return a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0),n=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),e=this.$lastScroll,t=a.domEvent.timeStamp,l=t-e.t,i=l?a.wheelX/l:e.vx,r=l?a.wheelY/l:e.vy,l<550&&(i=(i+e.vx)/2,r=(r+e.vy)/2),l=Math.abs(i/r),o=!1,1<=l&&n.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(o=!0),(o=l<=1&&n.renderer.isScrollableBy(0,a.wheelY*a.speed)?!0:o)?e.allowed=t:t-e.allowed<550&&(Math.abs(i)<=1.5*Math.abs(e.vx)&&Math.abs(r)<=1.5*Math.abs(e.vy)?(o=!0,e.allowed=t):e.allowed=0),e.t=t,e.vx=i,e.vy=r,o?(n.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()):void 0}}).call(p.prototype),m.DefaultHandlers=p}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(f,m,b){f("./lib/oop");var w=f("./lib/dom"),p="ace_tooltip";function s(a){this.isOpen=!1,this.$element=null,this.$parentNode=a}(function(){this.$init=function(){return this.$element=w.createElement("div"),this.$element.className=p,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(a){this.getElement().textContent=a},this.setHtml=function(a){this.getElement().innerHTML=a},this.setPosition=function(a,n){this.getElement().style.left=a+"px",this.getElement().style.top=n+"px"},this.setClassName=function(a){w.addCssClass(this.getElement(),a)},this.show=function(a,n,e){a!=null&&this.setText(a),n!=null&&e!=null&&this.setPosition(n,e),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=p,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(s.prototype),m.Tooltip=s}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(f,m,b){var w=f("../lib/dom"),p=f("../lib/oop"),s=f("../lib/event"),a=f("../tooltip").Tooltip;function n(e){a.call(this,e)}p.inherits(n,a),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,l=this.getWidth(),o=this.getHeight();i<(e+=15)+l&&(e-=e+l-i),r<(t+=15)+o&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(n.prototype),m.GutterHandler=function(e){var t,i,r,l=e.editor,o=l.renderer.$gutterLayer,c=new n(l.container);function h(){t=t&&clearTimeout(t),r&&(c.hide(),r=null,l._signal("hideGutterTooltip",c),l.off("mousewheel",h))}function y(v){c.setPosition(v.x,v.y)}e.editor.setDefaultHandler("guttermousedown",function(v){if(l.isFocused()&&v.getButton()==0){var d=o.getRegion(v);if(d!="foldWidgets"){var d=v.getDocumentPosition().row,u=l.session.selection;if(v.getShiftKey())u.selectTo(d,0);else{if(v.domEvent.detail==2)return l.selectAll(),v.preventDefault();e.$clickSelection=l.selection.getLineRange(d)}return e.setState("selectByLines"),e.captureMouse(v),v.preventDefault()}}}),e.editor.setDefaultHandler("guttermousemove",function(v){var d=v.domEvent.target||v.domEvent.srcElement;if(w.hasCssClass(d,"ace_fold-widget"))return h();r&&e.$tooltipFollowsMouse&&y(v),i=v,t=t||setTimeout(function(){t=null,(i&&!e.isMousePressed?function(){var u=i.getDocumentPosition().row,A=o.$annotations[u];if(!A)return h();if(u==l.session.getLength()){var u=l.renderer.pixelToScreenCoordinates(0,i.y).row,x=i.$pos;if(u>l.session.documentToScreenRow(x.row,x.column))return h()}r!=A&&(r=A.text.join(""),c.setHtml(r),(u=A.className)&&c.setClassName(u.trim()),c.show(),l._signal("showGutterTooltip",c),l.on("mousewheel",h),e.$tooltipFollowsMouse?y(i):(x=i.domEvent.target.getBoundingClientRect(),(A=c.getElement().style).left=x.right+"px",A.top=x.bottom+"px"))}:h)()},50)}),s.addListener(l.renderer.$gutter,"mouseout",function(v){i=null,r&&!t&&(t=setTimeout(function(){t=null,h()},50))},l),l.on("changeSession",h)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(s,m,b){var w=s("../lib/event"),p=s("../lib/useragent"),s=m.MouseEvent=function(a,n){this.domEvent=a,this.editor=n,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){w.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){w.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a,n=this.editor.getSelectionRange();return n.isEmpty()?this.$inSelection=!1:(a=this.getDocumentPosition(),this.$inSelection=n.contains(a.row,a.column)),this.$inSelection},this.getButton=function(){return w.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=p.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(f,m,b){var w=f("../lib/dom"),p=f("../lib/event"),s=f("../lib/useragent");function a(e){var t,i,r,l,o,c,h,y,v,d,u,A=e.editor,x=w.createElement("div"),I=(x.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",x.textContent="\xA0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(J){e[J]=this[J]},this),A.on("mousedown",this.onMouseDown.bind(e)),A.container),T=0;function L(){var J,R,V,B,C,E,$,G,K=c;c=A.renderer.screenToTextCoordinates(i,r),V=c,R=K,B=Date.now(),J=!R||V.row!=R.row,R=!R||V.column!=R.column,!d||J||R?(A.moveCursorToPosition(V),d=B,u={x:i,y:r}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),s.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&this.state=="dragReady"&&3H&&(i=-1),e=_.clientX=R,t=_.clientY=J,A=x=0,new w(_,n));if(c=R.getDocumentPosition(),D-i<500&&F.length==1&&!d)u++,_.preventDefault(),_.button=0,l=null,clearTimeout(l),n.selection.moveToPosition(c),(J=2<=u?n.selection.getLineRange(c.row):n.session.getBracketRange(c))&&!J.isEmpty()?n.selection.setRange(J):n.selection.selectWord(),v="wait";else{u=0;var R=n.selection.cursor,F=n.selection.isEmpty()?R:n.selection.anchor,J=n.renderer.$cursorLayer.getPixelPosition(R,!0),R=n.renderer.$cursorLayer.getPixelPosition(F,!0),F=n.renderer.scroller.getBoundingClientRect(),V=n.renderer.layerConfig.offset,B=n.renderer.scrollLeft,C=function(K,Q){return(K/=z)*K+(Q=Q/H-.75)*Q};if(_.clientX=_e.length||($e=Se[ue-1])!=l&&$e!=o||(de=_e[ue+1])!=l&&de!=o?c:(de=s?o:de)==$e?de:c;case A:return($e=0=B){for($=he+1;$=B;)$++;for(G=he,K=$-1;G>8;return E==0?191v&&C[ee]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?n.fromPoints(t,t):this.isBackwards()?n.fromPoints(t,e):n.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,r){var i=r?e.end:e.start,r=r?e.start:e.end;this.$setSelection(i.row,i.column,r.row,r.column)},this.$setSelection=function(e,t,i,r){var l,o;this.$silent||(l=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,r),this.$isEmpty=!n.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||o)&&this._emit("changeSelection"))},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return t===void 0&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(i,t){var i=typeof i=="number"?i:this.lead.row,r=this.session.getFoldLine(i),r=r?(i=r.start.row,r.end.row):i;return t===!0?new n(i,0,r,this.session.getLine(r).length):new n(i,0,r+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var r=e.column,l=e.column+t;return i<0&&(r=e.column-t,l=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,l).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):t.column===0?0=i.length)return this.moveCursorTo(e,i.length),this.moveCursorRight(),void(eh&&(d=a.substring(h,I-x.length),v.type==u?v.value+=d:(v.type&&c.push(v),v={type:u,value:d}));for(var T=0;Ts){for(y>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:a});h=this.$rowTokens.length;){if(this.$row+=1,s=s||this.$session.getLength(),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var s=this.$rowTokens,a=this.$tokenIndex,n=s[a].start;if(n!==void 0)return n;for(n=0;0V.length&&(R=V.length)}),u==1/0&&(u=R,d=v=!1),x&&u%A!=0&&(u=Math.floor(u/A)*A),J(d?I:L)},this.toggleBlockComment=function(l,o,c,h){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var v,d,u=(L=new i(o,h.row,h.column)).getCurrentToken(),A=(o.selection,o.selection.toOrientedRange());if(u&&/comment/.test(u.type)){for(;u&&/comment/.test(u.type);){if((k=u.value.indexOf(y.start))!=-1){var x=L.getCurrentTokenRow(),I=L.getCurrentTokenColumn()+k,T=new r(x,I,x,I+y.start.length);break}u=L.stepBackward()}for(var L,k,u=(L=new i(o,h.row,h.column)).getCurrentToken();u&&/comment/.test(u.type);){if((k=u.value.indexOf(y.end))!=-1){var x=L.getCurrentTokenRow(),I=L.getCurrentTokenColumn()+k,_=new r(x,I,x,I+y.end.length);break}u=L.stepForward()}_&&o.remove(_),T&&(o.remove(T),v=T.start.row,d=-y.start.length)}else d=y.start.length,v=c.start.row,o.insert(c.end,y.end),o.insert(c.start,y.start);A.start.row==v&&(A.start.column+=d),A.end.row==v&&(A.end.column+=d),o.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(l,o,c){return this.$getIndent(o)},this.checkOutdent=function(l,o,c){return!1},this.autoOutdent=function(l,o,c){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){for(var o in this.$embeds=[],this.$modes={},l){var c,h,y;l[o]&&(h=(c=l[o]).prototype.$id,(y=p.$modes[h])||(p.$modes[h]=y=new c),p.$modes[o]||(p.$modes[o]=y),this.$embeds.push(o),this.$modes[o]=y)}for(var v=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;othis.row||(n=function(e,t,i){var c=e.action=="insert",r=(c?1:-1)*(e.end.row-e.start.row),l=(c?1:-1)*(e.end.column-e.start.column),o=e.start,c=c?o:e.end;return a(t,o,i)?{row:t.row,column:t.column}:a(c,t,!i)?{row:t.row+r,column:t.column+(t.row==c.row?l:0)}:{row:o.row,column:o.column}}(n,{row:this.row,column:this.column},this.$insertRight),this.setPosition(n.row,n.column,!0))},this.setPosition=function(n,e,t){t=t?{row:n,column:e}:this.$clipPositionToDocument(n,e),this.row==t.row&&this.column==t.column||(n={row:this.row,column:this.column},this.row=t.row,this.column=t.column,this._signal("change",{old:n,value:t}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(n){this.document=n||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(n,e){var t={};return n>=this.document.getLength()?(t.row=Math.max(0,this.document.getLength()-1),t.column=this.document.getLine(t.row).length):n<0?(t.row=0,t.column=0):(t.row=n,t.column=Math.min(this.document.getLine(t.row).length,Math.max(0,e))),e<0&&(t.column=0),t}}).call(s.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(f,m,b){function w(t){this.$lines=[""],t.length===0?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)}var p=f("./lib/oop"),s=f("./apply_delta").applyDelta,a=f("./lib/event_emitter").EventEmitter,n=f("./range").Range,e=f("./anchor").Anchor;(function(){p.implement(this,a),this.setValue=function(t){var i=this.getLength()-1;this.remove(new n(0,0,i,this.getLine(i).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,i){return new e(this,t,i)},"aaa".split(/a/).length===0?this.$split=function(t){return t.replace(/\r\n|\r/g,` +`).split(` +`)}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){t=t.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=t?t[1]:` +`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r +`;case"unix":return` +`;default:return this.$autoNewLine||` +`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return t==`\r +`||t=="\r"||t==` +`},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,i){return this.$lines.slice(t,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var i,r;return t.start.row===t.end.row?i=[this.getLine(t.start.row).substring(t.start.column,t.end.column)]:((i=this.getLines(t.start.row,t.end.row))[0]=(i[0]||"").substring(t.start.column),r=i.length-1,t.end.row-t.start.row==r&&(i[r]=i[r].substring(0,t.end.column))),i},this.insertLines=function(t,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,i)},this.removeLines=function(t,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,i)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(t,this.$split(i))},this.insertInLine=function(l,i){var r=this.clippedPos(l.row,l.column),l=this.pos(l.row,l.column+i.length);return this.applyDelta({start:r,end:l,action:"insert",lines:[i]},!0),this.clonePos(l)},this.clippedPos=function(t,i){var r=this.getLength(),r=(t===void 0?t=r:t<0?t=0:r<=t&&(t=r-1,i=void 0),this.getLine(t));return i==null&&(i=r.length),{row:t,column:i=Math.min(Math.max(i,0),r.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,i){return{row:t,column:i}},this.$clipPosition=function(t){var i=this.getLength();return t.row>=i?(t.row=Math.max(0,i-1),t.column=this.getLine(i-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,i){var r=0,r=(t=Math.min(Math.max(t,0),this.getLength()))a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=e.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(w.prototype),m.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(f,m,b){function w(a,n,e){this.setRegexp(a),this.clazz=n,this.type=e||"text"}var p=f("./lib/lang"),s=(f("./lib/oop"),f("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,n,e,t){if(this.regExp)for(var i=t.firstRow,r=t.lastRow,l={},o=i;o<=r;o++){var c=this.cache[o];c==null&&(c=(c=(c=p.getMatchOffsets(e.getLine(o),this.regExp)).length>this.MAX_RANGES?c.slice(0,this.MAX_RANGES):c).map(function(d){return new s(o,d.offset,o,d.offset+d.length)}),this.cache[o]=c.length?c:"");for(var h=c.length;h--;){var y=c[h].toScreenRange(e),v=y.toString();l[v]||(l[v]=!0,n.drawSingleLineMarker(a,y,this.clazz,t))}}}}).call(w.prototype),m.SearchHighlight=w}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(f,m,b){var w=f("../range").Range;function p(s,a){this.foldData=s,Array.isArray(a)?this.folds=a:a=this.folds=[a],s=a[a.length-1],this.range=new w(a[0].start.row,a[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(n){n.setFoldLine(this)},this)}(function(){this.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(a){a.start.row+=s,a.end.row+=s})},this.addFold=function(s){if(s.sameRow){if(s.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(a,n){return-a.range.compareEnd(n.start.row,n.start.column)}),0=this.start.row&&s<=this.end.row},this.walk=function(s,a,n){var e,t,i=0,r=this.folds,l=!0;a==null&&(a=this.end.row,n=this.end.column);for(var o=0;oa||n[n.length-1].start.row=e);r++);if(s.action=="insert")for(var o=t-e,c=-a.column+n.column;re);r++)h.start.row==e&&h.start.column>=a.column&&(h.start.column==a.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=o)),h.end.row==e&&h.end.column>=a.column&&(h.end.column==a.column&&this.$bias<0||(h.end.column==a.column&&0h.start.column&&h.end.column==i[r+1].start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=o));else for(var h,o=e-t,c=a.column-n.column;rt);r++)h.end.rowa.column)&&(h.end.column=a.column,h.end.row=a.row):(h.end.column+=c,h.end.row+=o):h.end.row>t&&(h.end.row+=o),h.start.rowa.column)&&(h.start.column=a.column,h.start.row=a.row):(h.start.column+=c,h.start.row+=o):h.start.row>t&&(h.start.row+=o);if(o!=0&&r=n)return r;if(r.end.row>n)return null}return null},this.getNextFoldLine=function(n,e){var t=this.$foldData,i=0;for((i=e?t.indexOf(e):i)==-1&&(i=0);i=n)return r}return null},this.getFoldedRowCount=function(n,e){for(var t=this.$foldData,i=e-n+1,r=0;rc)break;while(r&&o.test(r.type));r=i.stepBackward()}else r=i.getCurrentToken();return l.end.row=i.getCurrentTokenRow(),l.end.column=i.getCurrentTokenColumn()+r.value.length-2,l}},this.foldAll=function(n,e,t,i){t==null&&(t=1e5);var r=this.foldWidgets;if(r){e=e||this.getLength();for(var l,o=n=n||0;o=n&&(o=l.end.row,l.collapseChildren=t,this.addFold("...",l))}},this.foldToLevel=function(n){for(this.foldAll();0=n)break}i--}return{range:i!==-1&&l,firstRange:o}},this.onFoldWidgetClick=function(n,e){var t={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};this.$toggleFoldWidget(n,t)||(n=e.target||e.srcElement)&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")},this.$toggleFoldWidget=function(n,e){if(this.getFoldWidget){var l=this.getFoldWidget(n),t=this.getLine(n),l=l==="end"?-1:1,t=this.getFoldAt(n,l==-1?0:t.length,l);if(t)return e.children||e.all?this.removeFold(t):this.expandFold(t),t;var i,r,l=this.getFoldWidgetRange(n,!0);return l&&!l.isMultiLine()&&(t=this.getFoldAt(l.start.row,l.start.column,1))&&l.isEqual(t.range)?(this.removeFold(t),t):(e.siblings?((t=this.getParentFoldRangeData(n)).range&&(i=t.range.start.row+1,r=t.range.end.row),this.foldAll(i,r,e.all?1e4:0)):e.children?(r=l?l.end.row:this.getLength(),this.foldAll(n+1,r,e.all?1e4:0)):l&&(e.all&&(l.collapseChildren=1e4),this.addFold("...",l)),l)}},this.toggleFoldWidget=function(n){var e,t=this.selection.getCursor().row;t=this.getRowFoldStart(t),this.$toggleFoldWidget(t,{})||(e=(e=this.getParentFoldRangeData(t,!0)).range||e.firstRange)&&(t=e.start.row,(t=this.getFoldAt(t,this.getLine(t).length,1))?this.removeFold(t):this.addFold("...",e))},this.updateFoldWidgets=function(n){var e=n.start.row,t=n.end.row-e;t==0?this.foldWidgets[e]=null:n.action=="remove"?this.foldWidgets.splice(e,1+t,null):((n=Array(1+t)).unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,n))},this.tokenizerUpdateFoldWidgets=function(n){n=n.data,n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(f,m,b){var w=f("../token_iterator").TokenIterator,p=f("../range").Range;m.BracketMatch=function(){this.findMatchingBracket=function(s,a){return s.column==0||(a=a||this.getLine(s.row).charAt(s.column-1),a=="")?null:(a=a.match(/([\(\[\{])|([\)\]\}])/),a?a[1]?this.$findClosingBracket(a[1],s):this.$findOpeningBracket(a[2],s):null)},this.getBracketRange=function(s){var a,n,e=this.getLine(s.row),t=!0,i=e.charAt(s.column-1),r=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(r||(i=e.charAt(s.column),s={row:s.row,column:s.column+1},r=i&&i.match(/([\(\[\{])|([\)\]\}])/),t=!1),!r)return null;if(r[1]){if(!(n=this.$findClosingBracket(r[1],s)))return null;a=p.fromPoints(s,n),t||(a.end.column++,a.start.column--),a.cursor=a.end}else{if(!(n=this.$findOpeningBracket(r[2],s)))return null;a=p.fromPoints(n,s),t||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(s){var a=this.getLine(s.row),n=a.charAt(s.column-1),e=n&&n.match(/([\(\[\{])|([\)\]\}])/);return e||(n=a.charAt(s.column),s={row:s.row,column:s.column+1},e=n&&n.match(/([\(\[\{])|([\)\]\}])/)),e?(a=new p(s.row,s.column-1,s.row,s.column),n=e[1]?this.$findClosingBracket(e[1],s):this.$findOpeningBracket(e[2],s),n?[a,new p(n.row,n.column,n.row,n.column+1)]:[a]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,a,n){var e=this.$brackets[s],t=1,i=new w(this,a.row,a.column),r=i.getCurrentToken();if(r=r||i.stepForward()){n=n||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var l=a.column-i.getCurrentTokenColumn()-2,o=r.value;;){for(;0<=l;){var c=o.charAt(l);if(c==e){if(--t==0)return{row:i.getCurrentTokenRow(),column:l+i.getCurrentTokenColumn()}}else c==s&&(t+=1);--l}for(;(r=i.stepBackward())&&!n.test(r.type););if(r==null)break;l=(o=r.value).length-1}return null}},this.$findClosingBracket=function(s,a,n){var e=this.$brackets[s],t=1,i=new w(this,a.row,a.column),r=i.getCurrentToken();if(r=r||i.stepForward()){n=n||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var l=a.column-i.getCurrentTokenColumn();;){for(var o=r.value,c=o.length;l>1,T=d[I];if(Td&&(d=u.screenWidth)}),this.lineWidgetWidth=d},this.$computeWidth=function(d){if(this.$modified||d){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var u=this.doc.getAllLines(),A=this.$rowLengthCache,x=0,I=0,T=this.$foldData[I],L=T?T.start.row:1/0,k=u.length,_=0;_x&&(x=A[_])}this.screenWidth=x}},this.getLine=function(d){return this.doc.getLine(d)},this.getLines=function(d,u){return this.doc.getLines(d,u)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(d){return this.doc.getTextRange(d||this.selection.getRange())},this.insert=function(d,u){return this.doc.insert(d,u)},this.remove=function(d){return this.doc.remove(d)},this.removeFullLines=function(d,u){return this.doc.removeFullLines(d,u)},this.undoChanges=function(d,u){if(d.length){this.$fromUndo=!0;for(var A=d.length-1;A!=-1;A--){var x=d[A];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!u&&this.$undoSelect&&(d.selectionBefore?this.selection.fromJSON(d.selectionBefore):this.selection.setRange(this.$getUndoSelection(d,!0))),this.$fromUndo=!1}},this.redoChanges=function(d,u){if(d.length){this.$fromUndo=!0;for(var A=0;Ad.end.column&&(_.start.column+=T),_.end.row==d.end.row&&_.end.column>d.end.column&&(_.end.column+=T)),I&&_.start.row>=d.end.row&&(_.start.row+=I,_.end.row+=I)),_.end=this.insert(_.start,L),k.length&&(x=d.start,A=_.start,I=A.row-x.row,T=A.column-x.column,this.addFolds(k.map(function(F){return(F=F.clone()).start.row==x.row&&(F.start.column+=T),F.end.row==x.row&&(F.end.column+=T),F.start.row+=I,F.end.row+=I,F}))),_},this.indentRows=function(d,u,A){A=A.replace(/\t/g,this.getTabString());for(var x=d;x<=u;x++)this.doc.insertInLine({row:x,column:0},A)},this.outdentRows=function(d){for(var u=d.collapseRows(),A=new r(0,0,0,0),x=this.getTabSize(),I=u.start.row;I<=u.end.row;++I){var T=this.getLine(I);A.start.row=I,A.end.row=I;for(var L=0;Lthis.doc.getLength()-1)return 0;x=I-u}else d=this.$clipRowToDocument(d),x=(u=this.$clipRowToDocument(u))-d+1;var I=new r(d,0,u,Number.MAX_VALUE),I=this.getFoldsInRange(I).map(function(L){return(L=L.clone()).start.row+=x,L.end.row+=x,L}),T=T==0?this.doc.getLines(d,u):this.doc.removeFullLines(d,u);return this.doc.insertFullLines(d+x,T),I.length&&this.addFolds(I),x},this.moveLinesUp=function(d,u){return this.$moveLines(d,u,-1)},this.moveLinesDown=function(d,u){return this.$moveLines(d,u,1)},this.duplicateLines=function(d,u){return this.$moveLines(d,u,0)},this.$clipRowToDocument=function(d){return Math.max(0,Math.min(d,this.doc.getLength()-1))},this.$clipColumnToRow=function(d,u){return u<0?0:Math.min(this.doc.getLine(d).length,u)},this.$clipPositionToDocument=function(d,u){var A;return u=Math.max(0,u),u=d<0?d=0:(A=this.doc.getLength())<=d?this.doc.getLine(d=A-1).length:Math.min(this.doc.getLine(d).length,u),{row:d,column:u}},this.$clipRangeToDocument=function(d){d.start.row<0?(d.start.row=0,d.start.column=0):d.start.column=this.$clipColumnToRow(d.start.row,d.start.column);var u=this.doc.getLength()-1;return d.end.row>u?(d.end.row=u,d.end.column=this.doc.getLine(u).length):d.end.column=this.$clipColumnToRow(d.end.row,d.end.column),d},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(d){d!=this.$useWrapMode&&(this.$useWrapMode=d,this.$modified=!0,this.$resetRowCache(0),d&&(d=this.getLength(),this.$wrapData=Array(d),this.$updateWrapData(0,d-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(d,u){this.$wrapLimitRange.min===d&&this.$wrapLimitRange.max===u||(this.$wrapLimitRange={min:d,max:u},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(d,x){var A=this.$wrapLimitRange,x=(A.max<0&&(A={min:x,max:x}),this.$constrainWrapLimit(d,A.min,A.max));return x!=this.$wrapLimit&&1=I.row&&J.shiftRow(-k);L=T}else{var z=Array(k),D=(z.unshift(T,0),u?this.$wrapData:this.$rowLengthCache),F=(D.splice.apply(D,z),this.$foldData),H=0;for((J=this.getFoldLine(T))&&((D=J.range.compareInside(x.row,x.column))==0?(J=J.split(x.row,x.column))&&(J.shiftRow(k),J.addRemoveChars(L,0,I.column-x.column)):D==-1&&(J.addRemoveChars(T,0,I.column-x.column),J.shiftRow(k)),H=F.indexOf(J)+1);H=T&&J.shiftRow(k)}else{var J,k=Math.abs(d.start.column-d.end.column);A==="remove"&&(_=this.getFoldsInRange(d),this.removeFolds(_),k=-k),(J=this.getFoldLine(T))&&J.addRemoveChars(T,x.column,k)}return u&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,u?this.$updateWrapData(T,L):this.$updateRowLengthCache(T,L),_},this.$updateRowLengthCache=function(d,u,A){this.$rowLengthCache[d]=null,this.$rowLengthCache[u]=null},this.$updateWrapData=function(d,u){var A,x,I=this.doc.getAllLines(),T=this.getTabSize(),L=this.$wrapData,k=this.$wrapLimit,_=d;for(u=Math.min(u,I.length-1);_<=u;)(x=this.getFoldLine(_,x))?(A=[],x.walk(function(F,H,z,D){var J;if(F!=null){(J=this.$getDisplayTokens(F,A.length))[0]=h;for(var R=1;R>2)),T-1);JH[D-1]):!D,this.getLength()-1),R=this.getNextFoldLine(L),V=R?R.start.row:1/0;_<=d&&!(d<_+(F=this.getRowLength(L))||J<=L);)_+=F,V<++L&&(L=R.end.row+1,V=(R=this.getNextFoldLine(L,R))?R.start.row:1/0),T&&(this.$docRowCache.push(L),this.$screenRowCache.push(_));if(R&&R.start.row<=L)x=this.getFoldDisplayLine(R),L=R.start.row;else{if(_+F<=d||JL[k-1]):!k,this.getNextFoldLine(T)),F=_?_.start.row:1/0;T=J[R];)A++,R++;H=H.substring(J[R-1]||0,H.length),D=0d||(r.push(o=new a(y,d,y+c-1,u)),2L&&r[v].end.row==t.end.row;)v--;for(r=r.slice(A,v+1),A=0,v=r.length;An.getLength())){var I=n.getLine(x),d=I.search(t[0]);if(!(!l&&d=I.length)break;t.lastIndex=k+=1}if(x.index+L>u)break;T.push(x.index,L)}for(var _=T.length-1;0<=_;_-=2){var F=T[_-1];if(A(d,F,d,F+(L=T[_])))return!0}}:function(d,u,A){var x=n.getLine(d);for(t.lastIndex=u;I=t.exec(x);){var I,T=I[0].length;if(A(d,I=I.index,d,I+T))return!0;if(!T&&(t.lastIndex=I+=1,I>=x.length))return!1}},{forEach:l?function(d){var u=h.row;if(!r(u,h.column,d)){for(u--;y<=u;u--)if(r(u,Number.MAX_VALUE,d))return;if(e.wrap!=0){for(u=v,y=h.row;y<=u;u--)if(r(u,Number.MAX_VALUE,d))return}}}:function(d){var u=h.row;if(!r(u,h.column,d)){for(u+=1;u<=v;u++)if(r(u,0,d))return;if(e.wrap!=0){for(u=y,v=h.row;u<=v;u++)if(r(u,0,d))return}}}}}}).call(w.prototype),m.Search=w}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(f,m,b){var w=f("../lib/keys"),p=f("../lib/useragent"),s=w.KEY_MODS;function a(e,t){this.platform=t||(p.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function n(e,t){a.call(this,e,t),this.$singleCommand=!1}n.prototype=a.prototype,function(){function e(t){return typeof t=="object"&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,i){var r,l=t&&(typeof t=="string"?t:t.name),o=(t=this.commands[l],i||delete this.commands[l],this.commandKeyBinding);for(r in o){var c,h=o[r];h==t?delete o[r]:Array.isArray(h)&&(c=h.indexOf(t))!=-1&&(h.splice(c,1),h.length==1&&(o[r]=h[0]))}},this.bindKey=function(t,i,r){if(typeof t=="object"&&t&&(r==null&&(r=t.position),t=t[this.platform]),t)return typeof i=="function"?this.addCommand({exec:i,bindKey:t,name:i.name||t}):void t.split("|").forEach(function(h){var o="",c=(h.indexOf(" ")!=-1&&(h=(c=h.split(/\s+/)).pop(),c.forEach(function(y){y=this.parseKeys(y),y=s[y.hashId]+y.key,o+=(o?" ":"")+y,this._addCommandToBinding(o,"chainKeys")},this),o+=" "),this.parseKeys(h)),h=s[c.hashId]+c.key;this._addCommandToBinding(o+h,i,r)},this)},this._addCommandToBinding=function(t,i,r){var l=this.commandKeyBinding;if(i)if(!l[t]||this.$singleCommand)l[t]=i;else{Array.isArray(l[t])?(c=l[t].indexOf(i))!=-1&&l[t].splice(c,1):l[t]=[l[t]],typeof r!="number"&&(r=e(i));for(var o=l[t],c=0;cr?r+1:r,e.selection.moveCursorTo(t.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,l=[];r.length<1&&(r=[e.selection.getRange()]);for(var o=0;o=k.lastRow||L.end.row<=k.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}I=this.selection.toJSON(),this.curOp.selectionAfter=I,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(I),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(I){var T,L,k,_;this.$mergeUndoDeltas&&(T=this.prevOp,L=this.$mergeableCommands,k=T.command&&I.command.name==T.command.name,I.command.name=="insertstring"?(_=I.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),k=k&&this.mergeNextCommand&&(!/\s/.test(_)||/\s/.test(T.args)),this.mergeNextCommand=!0):k=k&&L.indexOf(I.command.name)!==-1,(k=this.$mergeUndoDeltas!="always"&&2e3"&&z--),_&&0<=z;);else{do if(_=D,D=k.stepBackward(),_){if(_.type.indexOf("tag-name")!==-1)F===_.value&&(D.value==="<"?z++:D.value===""&&z--);else if(_.value==="/>"){for(var J=0,R=D;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===F){z--;break}if(R.value==="<")break;R=k.stepBackward(),J++}for(var V=0;VD.search(/\S|$/)&&(z=D.substr(F.column).search(/\S|$/),k.doc.removeInLine(F.row,F.column,F.column+z))),this.clearSelection(),F.column),z=k.getState(F.row),D=k.getLine(F.row),J=_.checkOutdent(z,D,I);k.insert(F,I),L&&L.selection&&(L.selection.length==2?this.selection.setSelectionRange(new c(F.row,H+L.selection[0],F.row,H+L.selection[1])):this.selection.setSelectionRange(new c(F.row+L.selection[0],L.selection[1],F.row+L.selection[2],L.selection[3]))),this.$enableAutoIndent&&(k.getDocument().isNewLine(I)&&(H=_.getNextLineIndent(z,D.slice(0,F.column),k.getTabString()),k.insert({row:F.row+1,column:0},H)),J&&_.autoOutdent(z,k,F.row))},this.autoIndent=function(){for(var I,T,L,k,_,F=this.session,H=F.getMode(),z=(L=this.selection.isEmpty()?(T=0,F.doc.getLength()-1):(T=(I=this.getSelectionRange()).start.row,I.end.row),""),D="",J=F.getTabString(),R=T;R<=L;R++)0z.toLowerCase()?1:0});for(var _=new c(0,0,0,0),k=I.first;k<=I.last;k++){var F=T.getLine(k);_.start.row=k,_.end.row=k,_.end.column=F.length,T.replace(_,L[k-I.first])}},this.toggleCommentLines=function(){var I=this.session.getState(this.getCursorPosition().row),T=this.$getSelectedRows();this.session.getMode().toggleCommentLines(I,this.session,T.first,T.last)},this.toggleBlockComment=function(){var I=this.getCursorPosition(),T=this.session.getState(I.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(T,this.session,L,I)},this.getNumberAt=function(I,T){for(var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g,k=(L.lastIndex=0,this.session.getLine(I));L.lastIndex=T)return{value:_[0],start:_.index,end:_.index+_[0].length}}return null},this.modifyNumber=function(I){var T,L,k,_=this.selection.getCursor().row,F=this.selection.getCursor().column,H=new c(_,F-1,_,F),H=this.session.getTextRange(H);!isNaN(parseFloat(H))&&isFinite(H)?(H=this.getNumberAt(_,F))&&(k=0<=H.value.indexOf(".")?H.start+H.value.indexOf(".")+1:H.end,T=H.start+H.value.length-k,L=parseFloat(H.value),L*=Math.pow(10,T),k!==H.end&&FC+1)break;C=E.last}for(R--,z=this.session.$moveLines(B,C,T?0:I),T&&I==-1&&(V=R+1);V<=R;)H[V].moveBy(z,0),V++;D+=z=T?z:0}L.fromOrientedRange(L.ranges[0]),L.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(I){return I=(I||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(I.start.row),last:this.session.getRowFoldEnd(I.end.row)}},this.onCompositionStart=function(I){this.renderer.showComposition(I)},this.onCompositionUpdate=function(I){this.renderer.setCompositionText(I)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(I){return I>=this.getFirstVisibleRow()&&I<=this.getLastVisibleRow()},this.isRowFullyVisible=function(I){return I>=this.renderer.getFirstFullyVisibleRow()&&I<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(F,T){var L=this.renderer,k=this.renderer.layerConfig,_=F*Math.floor(k.height/k.lineHeight),F=(T===!0?this.selection.$moveSelection(function(){this.moveCursorBy(_,0)}):T===!1&&(this.selection.moveCursorBy(_,0),this.selection.clearSelection()),L.scrollTop);L.scrollBy(0,_*k.lineHeight),T!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(F)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(I){this.renderer.scrollToRow(I)},this.scrollToLine=function(I,T,L,k){this.renderer.scrollToLine(I,T,L,k)},this.centerSelection=function(){var I=this.getSelectionRange(),I={row:Math.floor(I.start.row+(I.end.row-I.start.row)/2),column:Math.floor(I.start.column+(I.end.column-I.start.column)/2)};this.renderer.alignCursor(I,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(I,T){this.selection.moveCursorTo(I,T)},this.moveCursorToPosition=function(I){this.selection.moveCursorToPosition(I)},this.jumpToMatching=function(I,T){var L=this.getCursorPosition(),k=new u(this.session,L.row,L.column),_=k.getCurrentToken(),F=_||k.stepForward();if(F){var H,z,D,J=!1,R={},V=L.column-F.start,B={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(F.value.match(/[{}()\[\]]/g)){for(;Vwindow.innerHeight)&&null)!=null&&(_.style.top=R+"px",_.style.left=D.left+"px",_.style.height=J.lineHeight+"px",_.scrollIntoView(k)),k=T=null)}),this.setAutoScrollEditorIntoView=function(D){D||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",H))})},this.$resetCursorStyle=function(){var I=this.$cursorStyle||"ace",T=this.renderer.$cursorLayer;T&&(T.setSmoothBlinking(/smooth/.test(I)),T.isBlinking=!this.$readOnly&&I!="wide",s.setCssClass(T.element,"ace_slim-cursors",/slim/.test(I)))},this.prompt=function(I,T,L){var k=this;d.loadModule("./ext/prompt",function(_){_.prompt(k,I,T,L)})}}.call(w.prototype),d.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(I){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:I})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(I){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(I){this.textInput.setReadOnly(I),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(I){this.textInput.setCopyWithEmptySelection(I)},initialValue:!1},cursorStyle:{set:function(I){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(I){this.setAutoScrollEditorIntoView(I)}},keyboardHandler:{set:function(I){this.setKeyboardHandler(I)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(I){this.session.setValue(I)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(I){this.setSession(I)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(I){this.renderer.$gutterLayer.setShowLineNumbers(I),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),I&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(I){this.$showLineNumbers&&I?x.attach(this):x.detach(this)}},placeholder:{set:function(I){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var T=this.session&&(this.renderer.$composition||this.getValue());T&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),s.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):T||this.renderer.placeholderNode?!T&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),s.addCssClass(this.container,"ace_hasPlaceholder"),(T=s.createElement("div")).className="ace_placeholder",T.textContent=this.$placeholder||"",this.renderer.placeholderNode=T,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(I,T){return(Math.abs(I.selection.lead.row-T)||T+1+(T<9?"\xB7":""))+""},getWidth:function(I,T,L){return Math.max(T.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function(I,T){T.renderer.$loop.schedule(T.renderer.CHANGE_GUTTER)},attach:function(I){I.renderer.$gutterLayer.$renderer=this,I.on("changeSelection",this.update),this.update(null,I)},detach:function(I){I.renderer.$gutterLayer.$renderer==this&&(I.renderer.$gutterLayer.$renderer=null),I.off("changeSelection",this.update),this.update(null,I)}});m.Editor=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(f,m,b){function w(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}(function(){this.addSession=function(o){this.$session=o},this.add=function(o,c,h){this.$fromUndo||o!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),c!==!1&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),o.id=this.$rev=++this.$maxRev),o.action!="remove"&&o.action!="insert"||(this.$lastDelta=o),this.lastDeltas.push(o))},this.addSelection=function(o,c){this.selections.push({value:o,rev:c||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(o,c){c==null&&(c=this.$rev+1);for(var h=this.$undoStack,y=h.length;y--;){var v=h[y][0];if(v.id<=o)break;v.id"+o.end.row+":"+o.end.column}function t(o,c){var h=o.action=="insert",y=c.action=="insert";if(h&&y)if(0<=s(c.start,o.end))i(c,o,-1);else{if(!(s(c.start,o.start)<=0))return;i(o,c,1)}else if(h&&!y)if(0<=s(c.start,o.end))i(c,o,-1);else{if(!(s(c.end,o.start)<=0))return;i(o,c,-1)}else if(!h&&y)if(0<=s(c.start,o.start))i(c,o,1);else{if(!(s(c.start,o.start)<=0))return;i(o,c,1)}else if(!h&&!y)if(0<=s(c.start,o.start))i(c,o,1);else{if(!(s(c.end,o.start)<=0))return;i(o,c,-1)}return 1}function i(o,c,h){r(o.start,c.start,c.end,h),r(o.end,c.start,c.end,h)}function r(o,c,h,y){o.row==(y==1?c:h).row&&(o.column+=y*(h.column-c.column)),o.row+=y*(h.row-c.row)}function l(o,c){var h=o.lines,y=o.end,d=(o.end=a(c),o.end.row-o.start.row),v=h.splice(d,h.length),d=d?c.column:c.column-o.start.column;return h.push(v[0].substring(0,d)),v[0]=v[0].substr(d),{start:a(c),end:y,lines:v,action:o.action}}m.UndoManager=w}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(f,m,b){function w(s,a){this.element=s,this.canvasHeight=a||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var p=f("../lib/dom");(function(){this.moveContainer=function(s){p.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},this.pageChanged=function(s,a){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)},this.computeLineTop=function(s,a,n){var e=a.firstRowScreen*a.lineHeight,e=Math.floor(e/this.canvasHeight);return n.documentToScreenRow(s,0)*a.lineHeight-e*this.canvasHeight},this.computeLineHeight=function(s,a,n){return a.lineHeight*n.getRowLineCount(s)},this.getLength=function(){return this.cells.length},this.get=function(s){return this.cells[s]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var a=p.createFragment(this.element),n=0;nv+1;)this.$lines.pop();break}(y=this.$lines.get(++v))?y.row=d:(y=this.$lines.createCell(d,i,this.session,t),this.$lines.push(y)),this.$renderCell(y,i,c,d),d++}this._signal("afterRender"),this.$updateGutterWidth(i)},this.$updateGutterWidth=function(i){var r=this.session,c=r.gutterRenderer||this.$renderer,o=r.$firstLineNumber,l=this.$lines.last()?this.$lines.last().text:"",o=((this.$fixedWidth||r.$useWrapMode)&&(l=r.getLength()+o-1),c?c.getWidth(r,l,i):l.toString().length*i.characterWidth),c=this.$padding||this.$computePadding();(o+=c.left+c.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){var i;this.$highlightGutterLine&&(i=this.session.selection.getCursor(),this.$cursorRow!==i.row&&(this.$cursorRow=i.row))},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!this.$cursorCell||this.$cursorCell.row!=i){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var r=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(o.row>this.$cursorRow){var c=this.session.getFoldLine(this.$cursorRow);if(!(0l.right-r.right?"foldWidgets":void 0}}).call(w.prototype),m.Gutter=w}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(f,m,b){function w(a){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}var p=f("../range").Range,s=f("../lib/dom");(function(){this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setMarkers=function(a){this.markers=a},this.elt=function(a,n){var e=this.i!=-1&&this.element.childNodes[this.i];e?this.i++:(e=document.createElement("div"),this.element.appendChild(e),this.i=-1),e.style.cssText=n,e.className=a},this.update=function(a){if(a){var n,e;for(e in this.config=a,this.i=0,this.markers){var t,i,r,l=this.markers[e];l.range?(r=l.range.clipRows(a.firstRow,a.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),l.renderer?(t=this.$getTop(r.start.row,a),i=this.$padding+r.start.column*a.characterWidth,l.renderer(n,r,i,t,a)):l.type=="fullLine"?this.drawFullLineMarker(n,r,l.clazz,a):l.type=="screenLine"?this.drawScreenLineMarker(n,r,l.clazz,a):r.isMultiLine()?l.type=="text"?this.drawTextMarker(n,r,l.clazz,a):this.drawMultiLineMarker(n,r,l.clazz,a):this.drawSingleLineMarker(n,r,l.clazz+" ace_start ace_br15",a)):l.update(n,this,this.session,a)}if(this.i!=-1)for(;this.it.lastRow)for(o=this.session.getFoldedRowCount(t.lastRow+1,i.lastRow);0i.lastRow&&this.$lines.push(this.$renderLinesFragment(t,i.lastRow+1,t.lastRow))},this.$renderLinesFragment=function(t,i,r){for(var l=[],o=i,c=this.session.getNextFoldLine(o),h=c?c.start.row:1/0;h=c;)h=this.$renderToken(y,h,d,u.substring(0,c-l)),u=u.substring(c-l),l=c,y=this.$createLineElement(),t.appendChild(y),y.appendChild(this.dom.createTextNode(a.stringRepeat("\xA0",r.indent),this.element)),h=0,c=r[++o]||Number.MAX_VALUE;u.length!=0&&(l+=u.length,h=this.$renderToken(y,h,d,u))}}r[r.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(y,h,null,"",!0)},this.$renderSimpleLine=function(t,i){for(var r=0,l=0;lthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,r,o,c);r=this.$renderToken(t,r,o,c)}}},this.$renderOverflowMessage=function(t,i,r,l,o){r&&this.$renderToken(t,i,r,l.slice(0,this.MAX_LINE_LENGTH-i)),r=this.dom.createElement("span"),r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"":"",t.appendChild(r)},this.$renderLine=function(t,i,r){var l,o,c=t;(l=(r=r||r==0?r:this.session.getFoldLine(i))?this.$getFoldLineTokens(i,r):this.session.getTokens(i)).length?(o=this.session.getRowSplitData(i))&&o.length?(this.$renderWrappedLine(t,l,o),c=t.lastChild):(c=t,this.$useLineGroups()&&(c=this.$createLineElement(),t.appendChild(c)),this.$renderSimpleLine(c,l)):this.$useLineGroups()&&(c=this.$createLineElement(),t.appendChild(c)),this.showEOL&&c&&(r&&(i=r.end.row),(o=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",o.textContent=i==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,c.appendChild(o))},this.$getFoldLineTokens=function(t,i){var r=this.session,l=[],o=r.getTokens(t);return i.walk(function(c,h,y,v,d){if(c!=null)l.push({type:"fold",value:c});else if((o=d?r.getTokens(h):o).length){for(var u,A=o,x=v,I=y,T=0,L=0;L+A[T].value.lengthI-x&&(u=u.substring(0,I-x)),l.push({type:A[T].type,value:u}),L=x+u.length,T+=1);LI?l.push({type:A[T].type,value:u.substring(0,I-L)}):l.push(A[T]),L+=u.length,T+=1}},i.end.row,this.session.getLine(i.end.row).length),l},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(w.prototype),m.Text=w}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(f,m,b){function w(s){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var p=f("../lib/dom");(function(){this.$updateOpacity=function(s){for(var a=this.cursors,n=a.length;n--;)p.setStyle(a[n].style,"opacity",s?"":"0")},this.$startCssAnimation=function(){for(var s=this.cursors,a=s.length;a--;)s[a].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(s){this.$padding=s},this.setSession=function(s){this.session=s},this.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},this.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},this.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,p.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var s=p.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},this.removeCursor=function(){var s;if(1s.height+s.offset||l.top<0)&&1n;)this.removeCursor();var o=this.session.getOverwrite();this.$setOverwrite(o),this.$pixelPos=l,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(s){s!=this.overwrite&&((this.overwrite=s)?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(w.prototype),m.Cursor=w}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(f,m,b){function w(i){this.element=n.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=n.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,e.addListener(this.element,"scroll",this.onScroll.bind(this)),e.addListener(this.element,"mousedown",e.preventDefault)}function p(i,r){w.call(this,i),this.scrollTop=0,this.scrollHeight=0,r.$scrollbarWidth=this.width=n.scrollbarWidth(i.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function s(i,r){w.call(this,i),this.scrollLeft=0,this.height=r.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var a=f("./lib/oop"),n=f("./lib/dom"),e=f("./lib/event"),t=f("./lib/event_emitter").EventEmitter;(function(){a.implement(this,t),this.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1}}).call(w.prototype),a.inherits(p,w),function(){this.classSuffix="-v",this.onScroll=function(){var i;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(i=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-i)/(this.coeff-i)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(i){this.element.style.height=i+"px"},this.setInnerHeight=this.setScrollHeight=function(i){32768<(this.scrollHeight=i)?(this.coeff=32768/i,i=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=i+"px"},this.setScrollTop=function(i){this.scrollTop!=i&&(this.skipEvent=!0,this.scrollTop=i,this.element.scrollTop=i*this.coeff)}}.call(p.prototype),a.inherits(s,w),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(i){this.element.style.width=i+"px"},this.setInnerWidth=function(i){this.inner.style.width=i+"px"},this.setScrollWidth=function(i){this.inner.style.width=i+"px"},this.setScrollLeft=function(i){this.scrollLeft!=i&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=i)}}.call(s.prototype),m.ScrollBar=p,m.ScrollBarV=p,m.ScrollBarH=s,m.VScrollBar=p,m.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(f,m,b){function w(s,a){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=a||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;t&&(p.blockIdle(100),n.changes=0,n.onRender(t)),n.changes?n.$recursionLimit--<0||n.schedule():n.$recursionLimit=2}}var p=f("./lib/event");(function(){this.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},this.clear=function(s){var a=this.changes;return this.changes=0,a}}).call(w.prototype),m.RenderLoop=w}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(i,m,b){var w=i("../lib/oop"),p=i("../lib/dom"),s=i("../lib/lang"),a=i("../lib/event"),n=i("../lib/useragent"),e=i("../lib/event_emitter").EventEmitter,t=typeof ResizeObserver=="function",i=m.FontMetrics=function(r){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},t?this.$addObserver():this.checkForSizeChanges()};(function(){w.implement(this,e),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(r,l){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",n.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=l?"hidden":"visible"},this.checkForSizeChanges=function(r){var l;!(r=r===void 0?this.$measureSizes():r)||this.$characterSize.width===r.width&&this.$characterSize.height===r.height||(this.$measureNode.style.fontWeight="bold",l=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=l&&l.width===r.width&&l.height===r.height,this._emit("changeCharacterSize",{data:r}))},this.$addObserver=function(){var r=this;this.$observer=new window.ResizeObserver(function(l){r.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var r=this;return this.$pollSizeChangesTimer=a.onIdle(function l(){r.checkForSizeChanges(),a.onIdle(l,500)},500)},this.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(r){return r={height:(r||this.$measureNode).clientHeight,width:(r||this.$measureNode).clientWidth/256},r.width===0||r.height===0?null:r},this.$measureCharWidth=function(r){return this.$main.textContent=s.stringRepeat(r,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(r){var l=this.charSizes[r];return l=l===void 0?this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width:l},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function r(l){return l&&l.parentElement?(window.getComputedStyle(l).zoom||1)*r(l.parentElement):1},this.$initTransformMeasureNodes=function(){function r(l,o){return["div",{style:"position: absolute;top:"+l+"px;left:"+o+"px;"}]}this.els=p.buildDom([r(0,0),r(200,0),r(0,200),r(200,200)],this.el)},this.transformCoordinates=function(r,T){function o(L,k,_){var F=L[1]*k[0]-L[0]*k[1];return[(-k[1]*_[0]+k[0]*_[1])/F,(+L[1]*_[0]-L[0]*_[1])/F]}function c(L,k){return[L[0]-k[0],L[1]-k[1]]}function h(L,k){return[L[0]+k[0],L[1]+k[1]]}function y(L,k){return[L*k[0],L*k[1]]}function v(L){return L=L.getBoundingClientRect(),[L.left,L.top]}r=r&&y(1/this.$getZoom(this.el),r),this.els||this.$initTransformMeasureNodes();var d=v(this.els[0]),A=v(this.els[1]),x=v(this.els[2]),u=v(this.els[3]),u=o(c(u,A),c(u,x),c(h(A,x),h(u,d))),A=y(1+u[0],c(A,d)),x=y(1+u[1],c(x,d));if(T)return I=u[0]*T[0]/200+u[1]*T[1]/200+1,T=h(y(T[0],A),y(T[1],x)),h(y(1/I/200,T),d);var I=c(r,d),T=o(c(A,y(u[0],I)),c(x,y(u[1],I)),I);return y(200,T)}}).call(i.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(f,m,b){function w(I,A){var x=this,I=(this.container=I||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new n(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new e(this.content),this.$textLayer=new t(this.content));this.canvas=I.element,this.$markerFront=new e(this.content),this.$cursorLayer=new i(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new l(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(T){x.$scrollAnimation||x.session.setScrollTop(T.data-x.scrollMargin.top)}),this.scrollBarH.on("scroll",function(T){x.$scrollAnimation||x.session.setScrollLeft(T.data-x.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new c(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(T){x.updateCharacterSize(),x.onResize(!0,x.gutterWidth,x.$size.width,x.$size.height),x._signal("changeCharacterSize",T)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new o(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),a.resetOptions(this),a._signal("renderer",this)}var p=f("./lib/oop"),s=f("./lib/dom"),a=f("./config"),n=f("./layer/gutter").Gutter,e=f("./layer/marker").Marker,t=f("./layer/text").Text,i=f("./layer/cursor").Cursor,r=f("./scrollbar").HScrollBar,l=f("./scrollbar").VScrollBar,o=f("./renderloop").RenderLoop,c=f("./layer/font_metrics").FontMetrics,h=f("./lib/event_emitter").EventEmitter,y=`.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}`,v=f("./lib/useragent"),d=v.isIE;s.importCssString(y,"ace_editor.css",!1),function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,p.implement(this,h),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(u){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=u)&&this.scrollMargin.top&&u.getScrollTop()<=0&&u.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(u),this.$markerBack.setSession(u),this.$markerFront.setSession(u),this.$gutterLayer.setSession(u),this.$textLayer.setSession(u),u&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(u,A,x){if(A===void 0&&(A=1/0),this.$changedLines?(this.$changedLines.firstRow>u&&(this.$changedLines.firstRow=u),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(u){u?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(u,A,x,I){if(!(2k.height-I?s.translate(this.textarea,0,0):(k=1,T=this.$size.height-I,L?L.useTextareaForIME?(L=this.textarea.value,k=this.characterWidth*this.session.$getStringScreenWidth(L)[0]):A+=this.lineHeight+2:A+=this.lineHeight,(x-=this.scrollLeft)>this.$size.scrollerWidth-k&&(x=this.$size.scrollerWidth-k),x+=this.gutterWidth+this.margin.left,s.setStyle(u,"height",I+"px"),s.setStyle(u,"width",k+"px"),s.translate(this.textarea,Math.min(x,this.$size.scrollerWidth-k),Math.min(A,T)))):s.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var u=this.layerConfig,A=u.lastRow;return this.session.documentToScreenRow(A,0)*u.lineHeight-this.session.getScrollTop()>u.height-u.lineHeight?A-1:A},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(u){this.$padding=u,this.$textLayer.setPadding(u),this.$cursorLayer.setPadding(u),this.$markerFront.setPadding(u),this.$markerBack.setPadding(u),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(u,A,x,I){var T=this.scrollMargin;T.top=0|u,T.bottom=0|A,T.right=0|I,T.left=0|x,T.v=T.top+T.bottom,T.h=T.left+T.right,T.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-T.top),this.updateFull()},this.setMargin=function(u,A,x,I){var T=this.margin;T.top=0|u,T.bottom=0|A,T.right=0|I,T.left=0|x,T.v=T.top+T.bottom,T.h=T.left+T.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(u){this.setOption("hScrollBarAlwaysVisible",u)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(u){this.setOption("vScrollBarAlwaysVisible",u)},this.$updateScrollBarV=function(){var u=this.layerConfig.maxHeight,A=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(u-=(A-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>u-A&&(u=this.scrollTop+A,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(u+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(u,A){if(this.$changes&&(u|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(u||A)){if(this.$size.$dirty)return this.$changes|=u,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",u),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var x,I,A=this.layerConfig;return(u&this.CHANGE_FULL||u&this.CHANGE_SIZE||u&this.CHANGE_TEXT||u&this.CHANGE_LINES||u&this.CHANGE_SCROLL||u&this.CHANGE_H_SCROLL)&&(u|=this.$computeLayerConfig()|this.$loop.clear(),A.firstRow!=this.layerConfig.firstRow&&A.firstRowScreen==this.layerConfig.firstRowScreen&&0<(x=this.scrollTop+(A.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=x,u=(u|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),A=this.layerConfig,this.$updateScrollBarV(),u&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-A.offset),x=A.width+2*this.$padding+"px",I=A.minHeight+"px",s.setStyle(this.content.style,"width",x),s.setStyle(this.content.style,"height",I)),u&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-A.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),u&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),void this._signal("afterRender",u)):(u&this.CHANGE_SCROLL?(this.$changedLines=null,u&this.CHANGE_TEXT||u&this.CHANGE_LINES?this.$textLayer.update(A):this.$textLayer.scrollLines(A),this.$showGutter&&(u&this.CHANGE_GUTTER||u&this.CHANGE_LINES?this.$gutterLayer.update(A):this.$gutterLayer.scrollLines(A)),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor()):(u&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A)):u&this.CHANGE_LINES?(this.$updateLines()||u&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(A):u&this.CHANGE_TEXT||u&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(A):u&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(A),u&this.CHANGE_CURSOR&&(this.$cursorLayer.update(A),this.$moveTextAreaToCursor()),u&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(A),u&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(A)),void this._signal("afterRender",u))}this.$changes|=u},this.$autosize=function(){var u=this.session.getScreenLength()*this.lineHeight,A=this.$maxLines*this.lineHeight,x=Math.min(A,Math.max((this.$minLines||1)*this.lineHeight,u))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(x+=this.scrollBarH.getHeight()),A=!((x=this.$maxPixelHeight&&x>this.$maxPixelHeight?this.$maxPixelHeight:x)<=2*this.lineHeight)&&A_.top)),k=F!==z,_=(k&&(this.$vScroll=z,this.scrollBarV.setVisible(z)),this.scrollTop%this.lineHeight),F=Math.ceil(L/this.lineHeight)-1,F=(z=Math.max(0,Math.round((this.scrollTop-_)/this.lineHeight)))+F,H=this.lineHeight,z=J.screenToDocumentRow(z,0),D=J.getFoldLine(z),J=(D&&(z=D.start.row),D=J.documentToScreenRow(z,0),u=J.getRowLength(z)*H,F=Math.min(J.screenToDocumentRow(F,0),J.getLength()-1),L=A.scrollerHeight+J.getRowLength(F)*H+u,_=this.scrollTop-D*H,0);return this.layerConfig.width==I&&!T||(J=this.CHANGE_H_SCROLL),(T||k)&&(J|=this.$updateCachedSize(!0,this.gutterWidth,A.width,A.height),this._signal("scrollbarVisibilityChanged"),k&&(I=this.$getLongestLine())),this.layerConfig={width:I,padding:this.$padding,firstRow:z,firstRowScreen:D,lastRow:F,lineHeight:H,characterWidth:this.characterWidth,minHeight:L,maxHeight:x,offset:_,gutterOffset:H?Math.max(0,Math.ceil((_+A.height-A.scrollerHeight)/H)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(I-this.$padding),J},this.$updateLines=function(){if(this.$changedLines){var u=this.$changedLines.firstRow,A=this.$changedLines.lastRow,x=(this.$changedLines=null,this.layerConfig);if(!(u>x.lastRow+1||Athis.$textLayer.MAX_LINE_LENGTH&&(u=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(u*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(u,A){this.$gutterLayer.addGutterDecoration(u,A)},this.removeGutterDecoration=function(u,A){this.$gutterLayer.removeGutterDecoration(u,A)},this.updateBreakpoints=function(u){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(u){this.$gutterLayer.setAnnotations(u),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(u,A,x){this.scrollCursorIntoView(u,x),this.scrollCursorIntoView(A,x)},this.scrollCursorIntoView=function(u,A,x){var I,T,L;this.$size.scrollerHeight!==0&&(I=(u=this.$cursorLayer.getPixelPosition(u)).left,u=u.top,L=x&&x.top||0,x=x&&x.bottom||0,u<(T=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+L?(A&&T+L>u+this.lineHeight&&(u-=A*this.$size.scrollerHeight),u===0&&(u=-this.scrollMargin.top),this.session.setScrollTop(u)):T+this.$size.scrollerHeight-x=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(e.prototype),m.UIWorkerClient=function(t,i,r){var l=null,o=!1,c=Object.create(s),h=[],y=new e({messageBuffer:h,terminate:function(){},postMessage:function(d){h.push(d),l&&(o?setTimeout(v):v())}}),v=(y.setEmitSync=function(d){o=d},function(){var d=h.shift();d.command?l[d.command].apply(l,d.args):d.event&&c._signal(d.event,d.data)});return c.postMessage=function(d){y.onMessage({data:d})},c.callback=function(d,u){this.postMessage({type:"call",id:u,data:d})},c.emit=function(d,u){this.postMessage({type:"event",name:d,data:u})},a.loadModule(["worker",i],function(d){for(l=new d[r](c);h.length;)v()}),y},m.WorkerClient=e,m.createWorker=n}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(f,m,b){function w(n,c,t,i,r,l){var o=this,c=(this.length=c,this.session=n,this.doc=n.getDocument(),this.mainClass=r,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){o.onCursorChange()})},this.$pos=t,n.getUndoManager().$undoStack||n.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=c.length,this.setup(),n.selection.on("changeCursor",this.$onCursorChange)}var p=f("./range").Range,s=f("./lib/event_emitter").EventEmitter,a=f("./lib/oop");(function(){a.implement(this,s),this.setup=function(){var n=this,e=this.doc,t=this.session,i=(this.selectionBefore=t.selection.toJSON(),t.selection.inMultiSelectMode&&t.selection.toSingleRange(),this.pos=e.createAnchor(this.$pos.row,this.$pos.column),this.pos);i.$insertRight=!0,i.detach(),i.markerId=t.addMarker(new p(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){r=e.createAnchor(r.row,r.column),r.$insertRight=!0,r.detach(),n.others.push(r)}),t.setUndoSelect(!1)},this.showOtherMarkers=function(){var n,e;this.othersActive||(n=this.session,(e=this).othersActive=!0,this.others.forEach(function(t){t.markerId=n.addMarker(new p(t.row,t.column,t.row,t.column+e.length),e.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&e.start.column<=this.pos.column+this.length+1,r=e.start.column-this.pos.column;if(this.updateAnchors(n),i&&(this.length+=t),i&&!this.session.$fromUndo){if(n.action==="insert")for(var l=this.others.length-1;0<=l;l--){var o={row:(c=this.others[l]).row,column:c.column+r};this.doc.insertMergedLines(o,n.lines)}else if(n.action==="remove")for(l=this.others.length-1;0<=l;l--){var c,o={row:(c=this.others[l]).row,column:c.column+r};this.doc.remove(new p(o.row,o.column,o.row,o.column-t))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(n){this.pos.onChange(n);for(var e=this.others.length;e--;)this.others[e].onChange(n);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,e=this.session,t=function(r,l){e.removeMarker(r.markerId),r.markerId=e.addMarker(new p(r.row,r.column,r.row,r.column+n.length),l,null,!1)};t(this.pos,this.mainClass);for(var i=this.others.length;i--;)t(this.others[i],this.othersClass)}},this.onCursorChange=function(n){var e;!this.$updating&&this.session&&((e=this.session.selection.getCursor()).row===this.pos.row&&e.column>=this.pos.column&&e.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),e=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,t=0;td&&(d=F.column),(H=H==-1?0:H)T[1].length&&(h=T[1].length),yT[3].length&&(v=T[3].length)),T):[I]}).map(c?x:d?u?function(I){return I[2]?A(h+y-I[2].length)+I[2]+A(v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}:x:function(I){return I[2]?A(h)+I[2]+A(v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]});function A(I){return e.stringRepeat(" ",I)}function x(I){return I[2]?A(h)+I[2]+A(y-I[2].length+v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}}}).call(r.prototype),m.onSessionChange=function(h){var c=h.session,h=(c&&!c.multiSelect&&(c.$selectionMarkers=[],c.selection.$initRangeList(),c.multiSelect=c.selection),this.multiSelect=c&&c.multiSelect,h.oldSession);h&&(h.multiSelect.off("addRange",this.$onAddRange),h.multiSelect.off("removeRange",this.$onRemoveRange),h.multiSelect.off("multiSelect",this.$onMultiSelect),h.multiSelect.off("singleSelect",this.$onSingleSelect),h.multiSelect.lead.off("change",this.$checkMultiselectChange),h.multiSelect.anchor.off("change",this.$checkMultiselectChange)),c&&(c.multiSelect.on("addRange",this.$onAddRange),c.multiSelect.on("removeRange",this.$onRemoveRange),c.multiSelect.on("multiSelect",this.$onMultiSelect),c.multiSelect.on("singleSelect",this.$onSingleSelect),c.multiSelect.lead.on("change",this.$checkMultiselectChange),c.multiSelect.anchor.on("change",this.$checkMultiselectChange)),c&&this.inMultiSelectMode!=c.selection.inMultiSelectMode&&(c.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},m.MultiSelect=l,f("./config").defineOptions(r.prototype,"editor",{enableMultiselect:{set:function(o){l(this),o?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(o){this.$blockSelectEnabled=o},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(p,m,b){var w=p("../../range").Range,p=m.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(s,a,n){return s=s.getLine(n),this.foldingStartMarker.test(s)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(s,a,n){return null},this.indentationBlock=function(s,a,n){var e=/\S/,t=s.getLine(a),i=t.search(e);if(i!=-1){for(var r,n=n||t.length,l=s.getLength(),t=a,o=a;++an.row&&(e.row--,e.column=s.getLine(e.row).length),w.fromPoints(n,e)},this.closingBracketBlock=function(s,a,n,e,t){if(n={row:n,column:e},e=s.$findOpeningBracket(a,n),e)return e.column++,n.column--,w.fromPoints(e,n)}}).call(p.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(f,m,b){m.isDark=!1,m.cssClass="ace-tm",m.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',m.$id="ace/theme/textmate",f("../lib/dom").importCssString(m.cssText,m.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(f,m,b){var w=f("./lib/dom");function p(s){this.session=s,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(s){var a=this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0;return this.$useWrapMode&&this.$wrapData[s]?this.$wrapData[s].length+1+a:1+a},this.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(a){a&&a.rowCount&&!a.hidden&&(s+=a.rowCount)}),s},this.$onChangeEditor=function(s){this.attach(s.editor)},this.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),(this.editor=s)&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(s){var a=this.editor;a&&(this.editor=null,a.widgetManager=null,a.renderer.off("beforeRender",this.measureWidgets),a.renderer.off("afterRender",this.renderWidgets),(a=this.session.lineWidgets)&&a.forEach(function(n){n&&n.el&&n.el.parentNode&&(n._inDocument=!1,n.el.parentNode.removeChild(n.el))}))},this.updateOnFold=function(s,a){var n=a.lineWidgets;if(n&&s.action){for(var a=s.data,e=a.start.row,t=a.end.row,i=s.action=="add",r=e+1;rt[a].column&&a++,e.unshift(a,0),t.splice.apply(t,e)),this.$updateRows()))},this.$updateRows=function(){var s,a=this.session.lineWidgets;a&&(s=!0,a.forEach(function(n,e){if(n)for(s=!1,n.row=e;n.$oldWidget;)n.$oldWidget.row=e,n=n.$oldWidget}),s&&(this.session.lineWidgets=null))},this.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var a=this.session.lineWidgets[s.row];return a&&(s.$oldWidget=a).el&&a.el.parentNode&&(a.el.parentNode.removeChild(a.el),a._inDocument=!1),this.session.lineWidgets[s.row]=s},this.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var a,n=this.editor.renderer,e=(s.html&&!s.el&&(s.el=w.createElement("div"),s.el.innerHTML=s.html),s.el&&(w.addCssClass(s.el,"ace_lineWidgetContainer"),s.el.style.position="absolute",s.el.style.zIndex=5,n.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/n.layerConfig.lineHeight),this.session.getFoldAt(s.row,0));return(s.$fold=e)&&(a=this.session.lineWidgets,s.row!=e.end.row||a[e.start.row]?s.hidden=!0:a[e.start.row]=s),this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(s),s},this.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var a=this.session.lineWidgets[s.row];if(a==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;a;){if(a.$oldWidget==s){a.$oldWidget=s.$oldWidget;break}a=a.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(s){for(var a=this.session.lineWidgets,n=a&&a[s],e=[];n;)e.push(n),n=n.$oldWidget;return e},this.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(s,a){var n=this.session._changedWidgets,e=a.layerConfig;if(n&&n.length){for(var t=1/0,i=0;i>1,A=y(h,c[u]);if(0=i.length?r=0"),c.appendChild(p.createElement("div")),o.destroy=function(){n.$mouseHandler.isMousePressed||(n.keyBinding.removeKeyboardHandler(l),i.widgetManager.removeLineWidget(o),n.off("changeSelection",o.destroy),n.off("changeSession",o.destroy),n.off("mouseup",o.destroy),n.off("change",o.destroy))},n.keyBinding.addKeyboardHandler(l),n.on("changeSelection",o.destroy),n.on("changeSession",o.destroy),n.on("mouseup",o.destroy),n.on("change",o.destroy),n.session.widgetManager.addLineWidget(o),o.el.onmousedown=n.focus.bind(n),n.renderer.scrollCursorIntoView(null,.5,{bottom:o.el.offsetHeight})},p.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(f,m,b){f("./lib/fixoldbrowsers");var w=f("./lib/dom"),p=f("./lib/event"),s=f("./range").Range,a=f("./editor").Editor,n=f("./edit_session").EditSession,e=f("./undomanager").UndoManager,t=f("./virtual_renderer").VirtualRenderer;f("./worker/worker_client"),f("./keyboard/hash_handler"),f("./placeholder"),f("./multi_select"),f("./mode/folding/fold_mode"),f("./theme/textmate"),f("./ext/error_marker"),m.config=f("./config"),m.require=f,m.define=X.amdD,m.edit=function(c,r){if(typeof c=="string"){var o=c;if(!(c=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(c&&c.env&&c.env.editor instanceof a)return c.env.editor;var l,o="",o=(c&&/input|textarea/i.test(c.tagName)?(o=(l=c).value,c=w.createElement("pre"),l.parentNode.replaceChild(c,l)):c&&(o=c.textContent,c.innerHTML=""),m.createEditSession(o)),c=new a(new t(c),o,r),h={document:o,editor:c,onResize:c.resize.bind(c,null)};return l&&(h.textarea=l),p.addListener(window,"resize",h.onResize),c.on("destroy",function(){p.removeListener(window,"resize",h.onResize),h.editor.container.env=null}),c.container.env=c.env=h,c},m.createEditSession=function(i,r){return i=new n(i,r),i.setUndoManager(new e),i},m.Range=s,m.Editor=a,m.EditSession=n,m.UndoManager=e,m.VirtualRenderer=t,m.version=m.config.version}),ace.require(["ace/ace"],function(f){for(var m in f&&(f.config.init(!0),f.define=ace.define),window.ace||(window.ace=f),f)f.hasOwnProperty(m)&&(window.ace[m]=f[m]);window.ace.default=window.ace,ie&&(ie.exports=window.ace)})},4317:function(ie,g,X){ie=X.nmd(ie),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(P,S,N){var t=P("./lib/dom"),Z=P("./lib/oop"),O=P("./lib/event_emitter").EventEmitter,W=P("./lib/lang"),M=P("./range").Range,j=P("./range_list").RangeList,f=P("./keyboard/hash_handler").HashHandler,m=P("./tokenizer").Tokenizer,b=P("./clipboard"),w={CURRENT_WORD:function(i){return i.session.getTextRange(i.session.getWordRange())},SELECTION:function(i,r,l){return i=i.session.getTextRange(),l?i.replace(/\n\r?([ \t]*\S)/g,` +`+l+"$1"):i},CURRENT_LINE:function(i){return i.session.getLine(i.getCursorPosition().row)},PREV_LINE:function(i){return i.session.getLine(i.getCursorPosition().row-1)},LINE_INDEX:function(i){return i.getCursorPosition().row},LINE_NUMBER:function(i){return i.getCursorPosition().row+1},SOFT_TABS:function(i){return i.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(i){return i.session.getTabSize()},CLIPBOARD:function(i){return b.getText&&b.getText()},FILENAME:function(i){return/[^/\\]*$/.exec(this.FILEPATH(i))[0]},FILENAME_BASE:function(i){return/[^/\\]*$/.exec(this.FILEPATH(i))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(i){return this.FILEPATH(i).replace(/[^/\\]*$/,"")},FILEPATH:function(i){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(i){return i=i.session.$mode||{},i.blockComment&&i.blockComment.start||""},BLOCK_COMMENT_END:function(i){return i=i.session.$mode||{},i.blockComment&&i.blockComment.end||""},LINE_COMMENT:function(i){return(i.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(i){return i=new Date().toLocaleString("en-us",i),i.length==1?"0"+i:i}w.SELECTED_TEXT=w.SELECTION;function s(){this.snippetMap={},this.snippetNameMap={}}(function(){Z.implement(this,O),this.getTokenizer=function(){return s.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function i(o){return o=o.substr(1),/^\d+$/.test(o)?[{tabstopId:parseInt(o,10)}]:[{text:o}]}function r(o){return"(?:[^\\\\"+o+"]|\\\\.)"}var l={regex:"/("+r("/")+"+)/",onMatch:function(o,c,h){return h=h[0],h.fmtString=!0,h.guard=o.slice(1,-1),h.flag=""},next:"formatString"};return s.$tokenizer=new m({start:[{regex:/\\./,onMatch:function(o,c,h){var y=o[1];return[o=y=="}"&&h.length||"`$\\".indexOf(y)!=-1?y:o]}},{regex:/}/,onMatch:function(o,c,h){return[h.length?h.shift():o]}},{regex:/\$(?:\d+|\w+)/,onMatch:i},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(o,c,h){return o=i(o.substr(1)),h.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+r("\\|")+"*\\|",onMatch:function(o,c,h){return o=o.slice(1,-1).replace(/\\[,|\\]|,/g,function(y){return y.length==2?y[1]:"\0"}).split("\0").map(function(y){return{value:y}}),[(h[0].choices=o)[0]]},next:"start"},l,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(o,c,h){return h.length&&h[0].expectElse?(h[0].expectElse=!1,h[0].ifEnd={elseEnd:h[0]},[h[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(o,c,h){var y=o[1];return y=="}"&&h.length||"`$\\".indexOf(y)!=-1?o=y:y=="n"?o=` +`:y=="t"?o=" ":"ulULE".indexOf(y)!=-1&&(o={changeCase:y,local:"a"v&&(x=v-h.offsetWidth),h.style.left=x+"px",this._signal("show"),s=null,n.isOpen=!0},n.goTo=function(l){var o=this.getRow(),c=this.session.getLength()-1;switch(l){case"up":o=o<=0?c:o-1;break;case"down":o=c<=o?-1:o+1;break;case"start":o=0;break;case"end":o=c}this.setRow(o)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},S.$singleLineEditor=Z}),ace.define("ace/autocomplete/util",["require","exports","module"],function(P,S,N){S.parForEach=function(O,W,M){var j=0,f=O.length;f===0&&M();for(var m=0;mthis.filterText&&p.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=p,s=(s=this.filterCompletions(s,this.filterText)).sort(function(n,e){return e.exactMatch-n.exactMatch||e.$score-n.$score||(n.caption||n.value).localeCompare(e.caption||e.value)});var s,a=null;s=s.filter(function(n){return n=n.snippet||n.caption||n.value,n!==a&&(a=n,!0)}),this.filtered=s},this.filterCompletions=function(p,s){var a=[],n=s.toUpperCase(),e=s.toLowerCase();e:for(var t,i=0;t=p[i];i++){var r=t.caption||t.value||t.snippet;if(r){var l=-1,o=0,c=0;if(this.exactMatch){if(s!==r.substr(0,s.length))continue}else{var h=r.toLowerCase().indexOf(e);if(-1",f.escapeHTML(t.caption),"","",f.escapeHTML((t=t.snippet,i={},t.replace(/\${(\d+)(:(.*?))?}/g,function(r,l,o,c){return i[l]=c||""}).replace(/\$(\d+?)/g,function(r,l){return i[l]})))].join(""))}},p=[w,e,b],s=(S.setCompleters=function(t){p.length=0,t&&p.push.apply(p,t)},S.addCompleter=function(t){p.push(t)},S.textCompleter=e,S.keyWordCompleter=b,S.snippetCompleter=w,{name:"expandSnippet",exec:function(t){return W.expandWithTab(t)},bindKey:"Tab"}),a=function(t){(t=typeof t=="string"?j.$modes[t]:t)&&(W.files||(W.files={}),n(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(a))},n=function(t,i){i&&t&&!W.files[t]&&(W.files[t]={},j.loadModule(i,function(r){r&&(!(W.files[t]=r).snippets&&r.snippetText&&(r.snippets=W.parseSnippetFile(r.snippetText)),W.register(r.snippets||[],r.scope),r.includeScopes&&(W.snippetMap[r.scope].includeScopes=r.includeScopes,r.includeScopes.forEach(function(l){a("ace/mode/"+l)})))}))},e=P("../editor").Editor;P("../config").defineOptions(e.prototype,"editor",{enableBasicAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:p),this.commands.addCommand(M.startCommand)):this.commands.removeCommand(M.startCommand)},value:!1},enableLiveAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:p),this.commands.on("afterExec",O)):this.commands.removeListener("afterExec",O)},value:!1},enableSnippets:{set:function(t){t?(this.commands.addCommand(s),this.on("changeMode",Z),Z(0,this)):(this.commands.removeCommand(s),this.off("changeMode",Z))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(P){ie&&(ie.exports=P)})},3330:function(ie,g,X){ie=X.nmd(ie),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(P,S,N){function Z(b,w,p){var s=O.createElement("div");O.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"\u200B"],["span",{action:"findNext",class:"ace_searchbtn next"},"\u200B"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],s),this.element=s.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(b),O.importCssString(j,"ace_searchbox",b.container)}var O=P("../lib/dom"),W=P("../lib/lang"),M=P("../lib/event"),j='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',f=P("../keyboard/hash_handler").HashHandler,m=P("../lib/keys");O.importCssString(j,"ace_searchbox",!1),function(){this.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},this.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},this.$init=function(){var b=this.element,w=(this.$initElements(b),this);M.addListener(b,"mousedown",function(p){setTimeout(function(){w.activeInput.focus()},0),M.stopPropagation(p)}),M.addListener(b,"click",function(p){var s=(p.target||p.srcElement).getAttribute("action");s&&w[s]?w[s]():w.$searchBarKb.commands[s]&&w.$searchBarKb.commands[s].exec(w),M.stopPropagation(p)}),M.addCommandKeyListener(b,function(p,s,a){a=m.keyCodeToString(a),s=w.$searchBarKb.findKeyCommand(s,a),s&&s.exec&&(s.exec(w),M.stopEvent(p))}),this.$onChange=W.delayedCall(function(){w.find(!1,!1)}),M.addListener(this.searchInput,"input",function(){w.$onChange.schedule(20)}),M.addListener(this.searchInput,"focus",function(){w.activeInput=w.searchInput,w.searchInput.value&&w.highlight()}),M.addListener(this.replaceInput,"focus",function(){w.activeInput=w.replaceInput,w.searchInput.value&&w.highlight()})},this.$closeSearchBarKb=new f([{bindKey:"Esc",name:"closeSearchBar",exec:function(b){b.searchBox.hide()}}]),this.$searchBarKb=new f,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(b){var w=b.isReplace=!b.isReplace;b.replaceBox.style.display=w?"":"none",b.replaceOption.checked=!1,b.$syncOptions(),b.searchInput.focus()},"Ctrl-H|Command-Option-F":function(b){b.editor.getReadOnly()||(b.replaceOption.checked=!0,b.$syncOptions(),b.replaceInput.focus())},"Ctrl-G|Command-G":function(b){b.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(b){b.findPrev()},esc:function(b){setTimeout(function(){b.hide()})},Return:function(b){b.activeInput==b.replaceInput&&b.replace(),b.findNext()},"Shift-Return":function(b){b.activeInput==b.replaceInput&&b.replace(),b.findPrev()},"Alt-Return":function(b){b.activeInput==b.replaceInput&&b.replaceAll(),b.findAll()},Tab:function(b){(b.activeInput==b.replaceInput?b.searchInput:b.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(b){b.regExpOption.checked=!b.regExpOption.checked,b.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(b){b.caseSensitiveOption.checked=!b.caseSensitiveOption.checked,b.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(b){b.wholeWordOption.checked=!b.wholeWordOption.checked,b.$syncOptions()}},{name:"toggleReplace",exec:function(b){b.replaceOption.checked=!b.replaceOption.checked,b.$syncOptions()}},{name:"searchInSelection",exec:function(b){b.searchOption.checked=!b.searchRange,b.setSearchRange(b.searchOption.checked&&b.editor.getSelectionRange()),b.$syncOptions()}}]),this.setSearchRange=function(b){(this.searchRange=b)?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(b){O.setCssClass(this.replaceOption,"checked",this.searchRange),O.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",O.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),O.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),O.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var w=this.editor.getReadOnly();this.replaceOption.style.display=w?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!w?"":"none",this.find(!1,!1,b)},this.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(b,w,p){b=!this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:w,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:p,range:this.searchRange})&&this.searchInput.value,O.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var b=this.editor,w=b.$search.$options.re,p=0,s=0;if(w){var a,n,e=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue(),t=b.session.doc.positionToIndex(b.selection.anchor);for(this.searchRange&&(t-=b.session.doc.positionToIndex(this.searchRange.start)),w.lastIndex=0;(n=w.exec(e))&&((a=n.index)<=t&&s++,!(999<++p))&&(n[0]||(w.lastIndex=a+=1,!(a>=e.length))););}this.searchCounter.textContent=s+" of "+(999%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,j=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,b=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,w=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function p(r){return P.copy(p[r=r=="full"?"full":"fast"])}function s(c){if(c=c.match(S),!c)return!1;var l=+c[1],o=+c[2],c=+c[3];return 1<=o&&o<=12&&1<=c&&c<=(o!=2||(c=l)%4!=0||c%100==0&&c%400!=0?N[o]:29)}function a(y,l){if(y=y.match(Z),!y)return!1;var o=y[1],c=y[2],h=y[3],y=y[5];return(o<=23&&c<=59&&h<=59||o==23&&c==59&&h==60)&&(!l||y)}(ie.exports=p).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w},p.full={date:s,time:a,"date-time":function(r){return r=r.split(n),r.length==2&&s(r[0])&&a(r[1],!0)},uri:function(r){return e.test(r)&&W.test(r)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w};var n=/t|\s/i,e=/\/|:/,t=/[^\\]\\Z/;function i(r){if(t.test(r))return!1;try{return new RegExp(r),!0}catch{return!1}}},5689:function(ie,g,X){var P=X(3969),S=X(3724),N=X(5359),Z=X(3508),O=X(1869),W=S.ucs2length,M=X(2303),j=N.Validation;function f(n,e,t,i){var r=this,l=this._opts,o=[void 0],c={},h=[],y={},v=[],d={},u=[],A=(e=e||{schema:n,refVal:o,refs:c},function(B,C,E){var $=m.call(this,B,C,E);return 0<=$?{index:$,compiling:!0}:($=this._compilations.length,this._compilations[$]={schema:B,root:C,baseId:E},{index:$,compiling:!1})}.call(this,n,e,i)),x=this._compilations[A.index];if(A.compiling)return x.callValidate=_;var I=this._formats,T=this.RULES;try{var L=F(n,e,t,i),k=(x.validate=L,x.callValidate);return k&&(k.schema=L.schema,k.errors=null,k.refs=L.refs,k.refVal=L.refVal,k.root=L.root,k.$async=L.$async,l.sourceCode&&(k.source=L.source)),L}finally{(function(B,C,E){B=m.call(this,B,C,E),0<=B&&this._compilations.splice(B,1)}).call(this,n,e,i)}function _(){var B=x.validate,C=B.apply(this,arguments);return _.errors=B.errors,C}function F(B,C,E,$){var G=!C||C.schema==B;if(C.schema!=e.schema)return f.call(r,B,C,E,$);E=B.$async===!0,$=O({isTop:!0,schema:B,isRoot:G,baseId:$,root:C,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:N.MissingRef,RULES:T,validate:O,util:S,resolve:P,resolveRef:H,usePattern:J,useDefault:R,useCustomRule:V,opts:l,formats:I,logger:r.logger,self:r}),$=a(o,p)+a(h,b)+a(v,w)+a(u,s)+$,l.processCode&&($=l.processCode($,B));try{var K=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",$)(r,T,I,e,o,v,u,M,W,j);o[0]=K}catch(Q){throw r.logger.error("Error compiling schema, function code:",$),Q}return K.schema=B,K.errors=null,K.refs=c,K.refVal=o,K.root=G?K:C,E&&(K.$async=!0),l.sourceCode===!0&&(K.source={code:$,patterns:h,defaults:v}),K}function H(B,C,Q){C=P.url(B,C);var $=c[C];if($!==void 0)return D(G=o[$],K="refVal["+$+"]");if(!Q&&e.refs&&($=e.refs[C],$!==void 0))return D(G=e.refVal[$],K=z(C,G));var G,K=z(C),Q=P.call(r,F,e,C);if(Q!==void 0||($=t&&t[C])&&(Q=P.inlineRef($,l.inlineRefs)?$:f.call(r,$,e,t,B)),Q!==void 0)return G=Q,$=c[$=C],o[$]=G,D(Q,K);delete c[C]}function z(B,C){var E=o.length;return o[E]=C,"refVal"+(c[B]=E)}function D(B,C){return typeof B=="object"||typeof B=="boolean"?{code:C,schema:B,inline:!0}:{code:C,$async:B&&!!B.$async}}function J(B){var C=y[B];return C===void 0&&(C=y[B]=h.length,h[C]=B),"pattern"+C}function R(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return S.toQuotedString(B);case"object":if(B===null)return"null";var C=Z(B),E=d[C];return E===void 0&&(E=d[C]=v.length,v[E]=B),"default"+E}}function V(B,C,E,$){if(r._opts.validateSchema!==!1){var K=B.definition.dependencies;if(K&&!K.every(function(xe){return Object.prototype.hasOwnProperty.call(E,xe)}))throw new Error("parent schema must have all required keywords: "+K.join(","));if(K=B.definition.validateSchema,K&&!K(C)){if(K="keyword schema is invalid: "+r.errorsText(K.errors),r._opts.validateSchema!="log")throw new Error(K);r.logger.error(K)}}var G,K=B.definition.compile,Q=B.definition.inline,ee=B.definition.macro;if(K)G=K.call(r,C,E,$);else if(ee)G=ee.call(r,C,E,$),l.validateSchema!==!1&&r.validateSchema(G,!0);else if(Q)G=Q.call(r,$,B.keyword,C,E);else if(!(G=B.definition.validate))return;if(G===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');return K=u.length,{code:"customRule"+K,validate:u[K]=G}}}function m(n,e,t){for(var i=0;i",o=e?">":"<",c=void 0;if(!a&&typeof m!="number"&&m!==void 0)throw new Error(X+" must be number");if(!r&&i!==void 0&&typeof i!="number"&&typeof i!="boolean")throw new Error(t+" must be number or boolean");r?(f=g.util.getData(i.$data,f,g.dataPathArr),Z="exclIsNumber"+j,O="' + "+(W="op"+j)+" + '",c=t,(h=h||[]).push(M=M+(" var schemaExcl"+j+" = "+f+"; ")+(" var "+(S="exclusive"+j)+"; var "+(N="exclType"+j)+" = typeof "+(f="schemaExcl"+j)+"; if ("+N+" != 'boolean' && "+N+" != 'undefined' && "+N+" != 'number') { ")),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: {} ",g.opts.messages!==!1&&(M+=" , message: '"+t+" should be boolean' "),g.opts.verbose&&(M+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ",y=M,M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } else if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+N+" == 'number' ? ( ("+S+" = "+n+" === undefined || "+f+" "+l+"= "+n+") ? "+s+" "+o+"= "+f+" : "+s+" "+o+" "+n+" ) : ( ("+S+" = "+f+" === true) ? "+s+" "+o+"= "+n+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { var op"+j+" = "+S+" ? '"+l+"' : '"+l+"='; ",m===void 0&&(w=g.errSchemaPath+"/"+(c=t),n=f,a=r)):(O=l,(Z=typeof i=="number")&&a?(W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" ( "+n+" === undefined || "+i+" "+l+"= "+n+" ? "+s+" "+o+"= "+i+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { "):(Z&&m===void 0?(S=!0,w=g.errSchemaPath+"/"+(c=t),n=i,o+="="):(Z&&(n=Math[e?"min":"max"](i,m)),i===(!Z||n)?(S=!0,w=g.errSchemaPath+"/"+(c=t),o+="="):(S=!1,O+="=")),W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+s+" "+o+" "+n+" || "+s+" !== "+s+") { ")),c=c||X,(h=h||[]).push(M),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: { comparison: "+W+", limit: "+n+", exclusive: "+S+" } ",g.opts.messages!==!1&&(M=M+" , message: 'should be "+O+" "+(a?"' + "+n:n+"'")),g.opts.verbose&&(M=(M+=" , schema: ")+(a?"validate.schema"+b:""+m)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ";var h,y=M;return M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } ",p&&(M+=" else { "),M}},2407:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" "+W+".length "+(X=="maxItems"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxItems"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" items' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},1250:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || "),g.opts.unicode===!1?b+=" "+W+".length ":b+=" ucs2length("+W+") ";var m=X,f=[],m=(f.push(b+=" "+(X=="maxLength"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT be ")+(X=="maxLength"?"longer":"shorter")+" than ")+(M?"' + "+j+" + '":""+S)+" characters' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},2596:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" Object.keys("+W+").length "+(X=="maxProperties"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxProperties"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" properties' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},9486:function(ie){ie.exports=function(g,X,P){var S=" ",N=g.schema[X],Z=g.schemaPath+g.util.getProperty(X),O=g.errSchemaPath+"/"+X,W=!g.opts.allErrors,M=g.util.copy(g),j="",f=(M.level++,"valid"+M.level),m=M.baseId,b=!0,w=N;if(w)for(var p,s=-1,a=w.length-1;s "+l+") { ",c=M+"["+l+"]",m.schema=y,m.schemaPath=Z+"["+l+"]",m.errSchemaPath=O+"/"+l,m.errorPath=g.util.getPathExpr(g.errorPath,l,g.opts.jsonPointers,!0),m.dataPathArr[s]=l,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",S+=" } ",W&&(S+=" if ("+w+") { ",b+="}"))}typeof i=="object"&&(g.opts.strictKeywords?typeof i=="object"&&0 "+N.length+") { for (var "+p+" = "+N.length+"; "+p+" < "+M+".length; "+p+"++) { ",m.errorPath=g.util.getPathExpr(g.errorPath,p,g.opts.jsonPointers,!0),c=M+"["+p+"]",m.dataPathArr[s]=p,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",W&&(S+=" if (!"+w+") break; "),S+=" } } ",W&&(S+=" if ("+w+") { ",b+="}"))}else(g.opts.strictKeywords?typeof N=="object"&&0 1e-"+g.opts.multipleOfPrecision+" ":S+=" division"+N+" !== parseInt(division"+N+") ",S+=" ) ",f&&(S+=" ) "),X=[],X.push(S+=" ) { "),S="",g.createErrors!==!1?(S+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { multipleOf: "+m+" } ",g.opts.messages!==!1&&(S=S+" , message: 'should be multiple of "+(f?"' + "+m:m+"'")),g.opts.verbose&&(S=(S+=" , schema: ")+(f?"validate.schema"+O:""+Z)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ",N=S,S=X.pop(),!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+N+"]); ":S+=" validate.errors = ["+N+"]; return false; ":S+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+="} ",M&&(S+=" else { "),S}},7946:function(ie){ie.exports=function(g,M,P){var S,N,Z=" ",m=g.level,f=g.dataLevel,O=g.schema[M],W=g.schemaPath+g.util.getProperty(M),M=g.errSchemaPath+"/"+M,j=!g.opts.allErrors,f="data"+(f||""),m="errs__"+m,b=g.util.copy(g),w=(b.level++,"valid"+b.level);return(g.opts.strictKeywords?typeof O=="object"&&0=g.opts.loopRequired,i=g.opts.ownProperties;if(M)if(S+=" var missing"+N+"; ",Z){m||(S+=" var "+b+" = validate.schema"+O+"; ");var r="' + "+(v="schema"+N+"["+(c="i"+N)+"]")+" + '";g.opts._errorDataPathProperty&&(g.errorPath=g.util.getPathExpr(t,v,g.opts.jsonPointers)),S+=" var "+f+" = true; ",m&&(S+=" if (schema"+N+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+N+")) "+f+" = false; else {"),S+=" for (var "+c+" = 0; "+c+" < "+b+".length; "+c+"++) { "+f+" = "+j+"["+b+"["+c+"]] !== undefined ",i&&(S+=" && Object.prototype.hasOwnProperty.call("+j+", "+b+"["+c+"]) "),S+="; if (!"+f+") break; } ",m&&(S+=" } "),(y=y||[]).push(S+=" if (!"+f+") { "),S="",g.createErrors!==!1?(S+=" { keyword: 'required' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { missingProperty: '"+r+"' } ",g.opts.messages!==!1&&(S+=" , message: '",g.opts._errorDataPathProperty?S+="is a required property":S+="should have required property \\'"+r+"\\'",S+="' "),g.opts.verbose&&(S+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ";var l=S,S=y.pop();!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+l+"]); ":S+=" validate.errors = ["+l+"]; return false; ":S+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+=" } else { "}else{S+=" if ( ";var o=w;if(o)for(var c=-1,h=o.length-1;c 1) { ",Z=g.schema.items&&g.schema.items.type,w=Array.isArray(Z),!Z||Z=="object"||Z=="array"||w&&(0<=Z.indexOf("object")||0<=Z.indexOf("array"))?N+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+m+" = false; break outer; } } } ":(N=(N+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ")+" if ("+g.util["checkDataType"+(w?"s":"")](Z,"item",g.opts.strictNumbers,!0)+") continue; ",w&&(N+=` if (typeof item == 'string') item = '"' + item; `),N+=" if (typeof itemIndices[item] == 'number') { "+m+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),N+=" } ",b&&(N+=" } "),(S=S||[]).push(N+=" if (!"+m+") { "),N="",g.createErrors!==!1?(N+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(M)+" , params: { i: i, j: j } ",g.opts.messages!==!1&&(N+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),g.opts.verbose&&(N=(N+=" , schema: ")+(b?"validate.schema"+W:""+O)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+f+" "),N+=" } "):N+=" {} ",Z=N,N=S.pop(),!g.compositeRule&&j?g.async?N+=" throw new ValidationError(["+Z+"]); ":N+=" validate.errors = ["+Z+"]; return false; ":N+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+=" } ",j&&(N+=" else { ")):j&&(N+=" if (true) { "),N}},1869:function(ie){ie.exports=function(g,X,P){var S="",N=g.schema.$async===!0,Z=g.util.schemaHasRulesExcept(g.schema,g.RULES.all,"$ref"),O=g.self._getId(g.schema);if(g.opts.strictKeywords){var W=g.util.schemaUnknownRules(g.schema,g.RULES.keywords);if(W){if(W="unknown keyword: "+W,g.opts.strictKeywords!=="log")throw new Error(W);g.logger.warn(W)}}if(g.isTop&&(S+=" var validate = ",N&&(g.async=!0,S+="async "),S+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",O&&(g.opts.sourceCode||g.opts.processCode)&&(S+=" /*# sourceURL="+O+" */ ")),typeof g.schema=="boolean"||!Z&&!g.schema.$ref)return j=g.level,f=g.dataLevel,T=g.schema[X="false schema"],r=g.schemaPath+g.util.getProperty(X),l=g.errSchemaPath+"/"+X,p=!g.opts.allErrors,m="data"+(f||""),w="valid"+j,g.schema===!1?(g.isTop?p=!0:S+=" var "+w+" = false; ",(R=R||[]).push(S),S="",g.createErrors!==!1?(S+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(l)+" , params: {} ",g.opts.messages!==!1&&(S+=" , message: 'boolean schema is false' "),g.opts.verbose&&(S+=" , schema: false , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),S+=" } "):S+=" {} ",u=S,S=R.pop(),!g.compositeRule&&p?g.async?S+=" throw new ValidationError(["+u+"]); ":S+=" validate.errors = ["+u+"]; return false; ":S+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):g.isTop?S+=N?" return data; ":" validate.errors = null; return true; ":S+=" var "+w+" = true; ",g.isTop&&(S+=" }; return validate; "),S;if(g.isTop){var M=g.isTop,j=g.level=0,f=g.dataLevel=0,m="data";if(g.rootId=g.resolve.fullPath(g.self._getId(g.root.schema)),g.baseId=g.baseId||g.rootId,delete g.isTop,g.dataPathArr=[""],g.schema.default!==void 0&&g.opts.useDefaults&&g.opts.strictDefaults){var b="default is ignored in the schema root";if(g.opts.strictDefaults!=="log")throw new Error(b);g.logger.warn(b)}S=(S+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(j=g.level,m="data"+((f=g.dataLevel)||""),O&&(g.baseId=g.resolve.url(g.baseId,O)),N&&!g.async)throw new Error("async schema in sync schema");S+=" var errs_"+j+" = errors;"}var w="valid"+j,p=!g.opts.allErrors,s="",a="",n=g.schema.type,e=Array.isArray(n);if(n&&g.opts.nullable&&g.schema.nullable===!0&&(e?n.indexOf("null")==-1&&(n=n.concat("null")):n!="null"&&(n=[n,"null"],e=!0)),e&&n.length==1&&(n=n[0],e=!1),g.schema.$ref&&Z){if(g.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+g.errSchemaPath+'" (see option extendRefs)');g.opts.extendRefs!==!0&&(Z=!1,g.logger.warn('$ref: keywords ignored in schema at path "'+g.errSchemaPath+'"'))}if(g.schema.$comment&&g.opts.$comment&&(S+=" "+g.RULES.all.$comment.code(g,"$comment")),n){g.opts.coerceTypes&&(t=g.util.coerceToTypes(g.opts.coerceTypes,n));var t,i=g.RULES.types[n];if(t||e||i===!0||i&&!$(i)){var r=g.schemaPath+".type",l=g.errSchemaPath+"/type",r=g.schemaPath+".type",l=g.errSchemaPath+"/type";if(S+=" if ("+g.util[e?"checkDataTypes":"checkDataType"](n,m,g.opts.strictNumbers,!0)+") { ",t){var o="dataType"+j,c="coerced"+j,h=(S+=" var "+o+" = typeof "+m+"; var "+c+" = undefined; ",g.opts.coerceTypes=="array"&&(S+=" if ("+o+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+o+" = typeof "+m+"; if ("+g.util.checkDataType(g.schema.type,m,g.opts.strictNumbers)+") "+c+" = "+m+"; } "),S+=" if ("+c+" !== undefined) ; ",t);if(h)for(var y,v=-1,d=h.length-1;v",9:"Array"},M="UnquotedIdentifier",j="QuotedIdentifier",f="Rbracket",m="Rparen",b="Comma",w="Colon",p="Rbrace",s="Number",a="Current",n="Expref",e="Pipe",t="Flatten",i="Star",r="Filter",l="Lbrace",o="Lbracket",c="Lparen",h="Literal",y={".":"Dot","*":i,",":b,":":w,"{":l,"}":p,"]":f,"(":c,")":m,"@":a},v={"<":!0,">":!0,"=":!0,"!":!0},d={" ":!0," ":!0,"\n":!0};function u(k){return"0"<=k&&k<="9"||k==="-"}function A(){}A.prototype={tokenize:function(k){var _,F,H=[];for(this._current=0;this._current"?k[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:_}):{type:"GT",value:">",start:_}:F==="="&&k[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:_}):void 0},_consumeLiteral:function(k){this._current++;for(var _=this._current,F=k.length;k[this._current]!=="`"&&this._currentNumber.MAX_SAFE_INTEGER||R=s.length)throw new SyntaxError("Unexpected end of JSON input")}},g.stringify=function(s,a,n){if(N(s)){var e=0;switch(typeof(i=typeof n=="object"?n.space:n)){case"number":var t=101){U[0]=U[0].slice(0,-1);for(var se=U.length-1,re=1;re= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=p-s,v=Math.floor,d=String.fromCharCode;function u(q){throw new RangeError(h[q])}function A(q,U){for(var te=[],se=q.length;se--;)te[se]=U(q[se]);return te}function x(q,U){var te=q.split("@"),se="";te.length>1&&(se=te[0]+"@",q=te[1]),q=q.replace(c,".");var re=q.split("."),Ee=A(re,U).join(".");return se+Ee}function I(q){for(var U=[],te=0,se=q.length;te=55296&&re<=56319&&te>1,U+=v(U/te);U>y*a>>1;re+=p)U=v(U/y);return v(re+(y+1)*U/(U+n))},_=function(U){var te=[],se=U.length,re=0,Ee=i,Re=t,Pe=U.lastIndexOf(r);Pe<0&&(Pe=0);for(var je=0;je=128&&u("not-basic"),te.push(U.charCodeAt(je));for(var Ke=Pe>0?Pe+1:0;Ke=se&&u("invalid-input");var Le=T(U.charCodeAt(Ke++));(Le>=p||Le>v((w-re)/Ve))&&u("overflow"),re+=Le*Ve;var Ze=ze<=Re?s:ze>=Re+a?a:ze-Re;if(Lev(w/Xe)&&u("overflow"),Ve*=Xe}var Oe=te.length+1;Re=k(re-Ne,Oe,Ne==0),v(re/Oe)>w-Ee&&u("overflow"),Ee+=v(re/Oe),re%=Oe,te.splice(re++,0,Ee)}return String.fromCodePoint.apply(String,te)},F=function(U){var te=[];U=I(U);var se=U.length,re=i,Ee=0,Re=t,Pe=!0,je=!1,Ke=void 0;try{for(var Ne=U[Symbol.iterator](),Ve;!(Pe=(Ve=Ne.next()).done);Pe=!0){var ze=Ve.value;ze<128&&te.push(d(ze))}}catch(vt){je=!0,Ke=vt}finally{try{!Pe&&Ne.return&&Ne.return()}finally{if(je)throw Ke}}var Le=te.length,Ze=Le;for(Le&&te.push(r);Ze=re&&dtv((w-Ee)/et)&&u("overflow"),Ee+=(Xe-re)*et,re=Xe;var rt=!0,ht=!1,lt=void 0;try{for(var Ct=U[Symbol.iterator](),$t;!(rt=($t=Ct.next()).done);rt=!0){var Lt=$t.value;if(Ltw&&u("overflow"),Lt==re){for(var wt=Ee,xt=p;;xt+=p){var St=xt<=Re?s:xt>=Re+a?a:xt-Re;if(wt>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():te="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),te}function J(q){for(var U="",te=0,se=q.length;te=194&&re<224){if(se-te>=6){var Ee=parseInt(q.substr(te+4,2),16);U+=String.fromCharCode((re&31)<<6|Ee&63)}else U+=q.substr(te,6);te+=6}else if(re>=224){if(se-te>=9){var Re=parseInt(q.substr(te+4,2),16),Pe=parseInt(q.substr(te+7,2),16);U+=String.fromCharCode((re&15)<<12|(Re&63)<<6|Pe&63)}else U+=q.substr(te,9);te+=9}else U+=q.substr(te,3),te+=3}return U}function R(q,U){function te(se){var re=J(se);return re.match(U.UNRESERVED)?re:se}return q.scheme&&(q.scheme=String(q.scheme).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(U.PCT_ENCODED,te).replace(U.NOT_USERINFO,D).replace(U.PCT_ENCODED,Z)),q.host!==void 0&&(q.host=String(q.host).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_HOST,D).replace(U.PCT_ENCODED,Z)),q.path!==void 0&&(q.path=String(q.path).replace(U.PCT_ENCODED,te).replace(q.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,D).replace(U.PCT_ENCODED,Z)),q.query!==void 0&&(q.query=String(q.query).replace(U.PCT_ENCODED,te).replace(U.NOT_QUERY,D).replace(U.PCT_ENCODED,Z)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(U.PCT_ENCODED,te).replace(U.NOT_FRAGMENT,D).replace(U.PCT_ENCODED,Z)),q}function V(q){return q.replace(/^0*(.*)/,"$1")||"0"}function B(q,U){var te=q.match(U.IPV4ADDRESS)||[],se=m(te,2),re=se[1];return re?re.split(".").map(V).join("."):q}function C(q,U){var te=q.match(U.IPV6ADDRESS)||[],se=m(te,3),re=se[1],Ee=se[2];if(re){for(var Re=re.toLowerCase().split("::").reverse(),Pe=m(Re,2),je=Pe[0],Ke=Pe[1],Ne=Ke?Ke.split(":").map(V):[],Ve=je.split(":").map(V),ze=U.IPV4ADDRESS.test(Ve[Ve.length-1]),Le=ze?7:8,Ze=Ve.length-Le,Xe=Array(Le),Oe=0;Oe1){var pt=Xe.slice(0,nt.index),dt=Xe.slice(nt.index+nt.length);ot=pt.join(":")+"::"+dt.join(":")}else ot=Xe.join(":");return Ee&&(ot+="%"+Ee),ot}else return q}var E=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$="".match(/(){0}/)[1]===void 0;function G(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te={},se=U.iri!==!1?f:j;U.reference==="suffix"&&(q=(U.scheme?U.scheme+":":"")+"//"+q);var re=q.match(E);if(re){$?(te.scheme=re[1],te.userinfo=re[3],te.host=re[4],te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=re[7],te.fragment=re[8],isNaN(te.port)&&(te.port=re[5])):(te.scheme=re[1]||void 0,te.userinfo=q.indexOf("@")!==-1?re[3]:void 0,te.host=q.indexOf("//")!==-1?re[4]:void 0,te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=q.indexOf("?")!==-1?re[7]:void 0,te.fragment=q.indexOf("#")!==-1?re[8]:void 0,isNaN(te.port)&&(te.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?re[4]:void 0)),te.host&&(te.host=C(B(te.host,se),se)),te.scheme===void 0&&te.userinfo===void 0&&te.host===void 0&&te.port===void 0&&!te.path&&te.query===void 0?te.reference="same-document":te.scheme===void 0?te.reference="relative":te.fragment===void 0?te.reference="absolute":te.reference="uri",U.reference&&U.reference!=="suffix"&&U.reference!==te.reference&&(te.error=te.error||"URI is not a "+U.reference+" reference.");var Ee=z[(U.scheme||te.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(te.host&&(U.domainHost||Ee&&Ee.domainHost))try{te.host=H.toASCII(te.host.replace(se.PCT_ENCODED,J).toLowerCase())}catch(Re){te.error=te.error||"Host's domain name can not be converted to ASCII via punycode: "+Re}R(te,j)}else R(te,se);Ee&&Ee.parse&&Ee.parse(te,U)}else te.error=te.error||"URI can not be parsed.";return te}function K(q,U){var te=U.iri!==!1?f:j,se=[];return q.userinfo!==void 0&&(se.push(q.userinfo),se.push("@")),q.host!==void 0&&se.push(C(B(String(q.host),te),te).replace(te.IPV6ADDRESS,function(re,Ee,Re){return"["+Ee+(Re?"%25"+Re:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(se.push(":"),se.push(String(q.port))),se.length?se.join(""):void 0}var Q=/^\.\.?\//,ee=/^\/\.(\/|$)/,he=/^\/\.\.(\/|$)/,xe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(q){for(var U=[];q.length;)if(q.match(Q))q=q.replace(Q,"");else if(q.match(ee))q=q.replace(ee,"/");else if(q.match(he))q=q.replace(he,"/"),U.pop();else if(q==="."||q==="..")q="";else{var te=q.match(xe);if(te){var se=te[0];q=q.slice(se.length),U.push(se)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Ce(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=U.iri?f:j,se=[],re=z[(U.scheme||q.scheme||"").toLowerCase()];if(re&&re.serialize&&re.serialize(q,U),q.host&&!te.IPV6ADDRESS.test(q.host)){if(U.domainHost||re&&re.domainHost)try{q.host=U.iri?H.toUnicode(q.host):H.toASCII(q.host.replace(te.PCT_ENCODED,J).toLowerCase())}catch(Pe){q.error=q.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}R(q,te),U.reference!=="suffix"&&q.scheme&&(se.push(q.scheme),se.push(":"));var Ee=K(q,U);if(Ee!==void 0&&(U.reference!=="suffix"&&se.push("//"),se.push(Ee),q.path&&q.path.charAt(0)!=="/"&&se.push("/")),q.path!==void 0){var Re=q.path;!U.absolutePath&&(!re||!re.absolutePath)&&(Re=ge(Re)),Ee===void 0&&(Re=Re.replace(/^\/\//,"/%2F")),se.push(Re)}return q.query!==void 0&&(se.push("?"),se.push(q.query)),q.fragment!==void 0&&(se.push("#"),se.push(q.fragment)),se.join("")}function ve(q,U){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=arguments[3],re={};return se||(q=G(Ce(q,te),te),U=G(Ce(U,te),te)),te=te||{},!te.tolerant&&U.scheme?(re.scheme=U.scheme,re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.path?(U.path.charAt(0)==="/"?re.path=ge(U.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?re.path="/"+U.path:q.path?re.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+U.path:re.path=U.path,re.path=ge(re.path)),re.query=U.query):(re.path=q.path,U.query!==void 0?re.query=U.query:re.query=q.query),re.userinfo=q.userinfo,re.host=q.host,re.port=q.port),re.scheme=q.scheme),re.fragment=U.fragment,re}function ye(q,U,te){var se=W({scheme:"null"},te);return Ce(ve(G(q,se),G(U,se),se,!0),se)}function Te(q,U){return typeof q=="string"?q=Ce(G(q,U),U):N(q)==="object"&&(q=G(Ce(q,U),U)),q}function _e(q,U,te){return typeof q=="string"?q=Ce(G(q,te),te):N(q)==="object"&&(q=Ce(q,te)),typeof U=="string"?U=Ce(G(U,te),te):N(U)==="object"&&(U=Ce(U,te)),q===U}function Se(q,U){return q&&q.toString().replace(!U||!U.iri?j.ESCAPE:f.ESCAPE,D)}function ue(q,U){return q&&q.toString().replace(!U||!U.iri?j.PCT_ENCODED:f.PCT_ENCODED,J)}var $e={scheme:"http",domainHost:!0,parse:function(U,te){return U.host||(U.error=U.error||"HTTP URIs must have a host."),U},serialize:function(U,te){var se=String(U.scheme).toLowerCase()==="https";return(U.port===(se?443:80)||U.port==="")&&(U.port=void 0),U.path||(U.path="/"),U}},ae={scheme:"https",domainHost:$e.domainHost,parse:$e.parse,serialize:$e.serialize};function me(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var ce={scheme:"ws",domainHost:!0,parse:function(U,te){var se=U;return se.secure=me(se),se.resourceName=(se.path||"/")+(se.query?"?"+se.query:""),se.path=void 0,se.query=void 0,se},serialize:function(U,te){if((U.port===(me(U)?443:80)||U.port==="")&&(U.port=void 0),typeof U.secure=="boolean"&&(U.scheme=U.secure?"wss":"ws",U.secure=void 0),U.resourceName){var se=U.resourceName.split("?"),re=m(se,2),Ee=re[0],Re=re[1];U.path=Ee&&Ee!=="/"?Ee:void 0,U.query=Re,U.resourceName=void 0}return U.fragment=void 0,U}},de={scheme:"wss",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize},fe={},be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ke="[0-9A-Fa-f]",Me=S(S("%[EFef]"+ke+"%"+ke+ke+"%"+ke+ke)+"|"+S("%[89A-Fa-f]"+ke+"%"+ke+ke)+"|"+S("%"+ke+ke)),Je="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",He=P("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Qe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",At=new RegExp(be,"g"),Y=new RegExp(Me,"g"),ne=new RegExp(P("[^]",Je,"[\\.]",'[\\"]',He),"g"),oe=new RegExp(P("[^]",be,Qe),"g"),pe=oe;function we(q){var U=J(q);return U.match(At)?U:q}var Ae={scheme:"mailto",parse:function(U,te){var se=U,re=se.to=se.path?se.path.split(","):[];if(se.path=void 0,se.query){for(var Ee=!1,Re={},Pe=se.query.split("&"),je=0,Ke=Pe.length;je1&&arguments[1]!==void 0?arguments[1]:1,r=i>0?t.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):t.toString();return r||"0"}var Z=function(){function t(i,r,l,o){g(this,t);var c=this;function h(v){if(v.startsWith("hsl")){var d=v.match(/([\-\d\.e]+)/g).map(Number),u=P(d,4),A=u[0],x=u[1],I=u[2],T=u[3];T===void 0&&(T=1),A/=360,x/=100,I/=100,c.hsla=[A,x,I,T]}else if(v.startsWith("rgb")){var L=v.match(/([\-\d\.e]+)/g).map(Number),k=P(L,4),_=k[0],F=k[1],H=k[2],z=k[3];z===void 0&&(z=1),c.rgba=[_,F,H,z]}else v.startsWith("#")?c.rgba=t.hexToRgb(v):c.rgba=t.nameToRgb(v)||t.hexToRgb(v)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(l===void 0){var y=i&&""+i;y&&h(y.toLowerCase())}else this.rgba=[i,r,l,o===void 0?1:o]}return X(t,[{key:"printRGB",value:function(r){var l=r?this.rgba:this.rgba.slice(0,3),o=l.map(function(c,h){return N(c,h===3?3:0)});return r?"rgba("+o+")":"rgb("+o+")"}},{key:"printHSL",value:function(r){var l=[360,100,100,1],o=["","%","%",""],c=r?this.hsla:this.hsla.slice(0,3),h=c.map(function(y,v){return N(y*l[v],v===3?3:1)+o[v]});return r?"hsla("+h+")":"hsl("+h+")"}},{key:"printHex",value:function(r){var l=this.hex;return r?l:l.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(r){r.length===3&&(r[3]=1),this._rgba=r,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(r){r.length===3&&(r[3]=1),this._hsla=r,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var r=this.rgba,l=r.map(function(o,c){return c<3?o.toString(16):Math.round(o*255).toString(16)});return"#"+l.map(function(o){return o.padStart(2,"0")}).join("")},set:function(r){this.rgba=t.hexToRgb(r)}}],[{key:"hexToRgb",value:function(r){var l=(r.startsWith("#")?r.slice(1):r).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!l.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+r);var o=l.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(c){return parseInt(c,16)});return o[3]=o[3]/255,o}},{key:"nameToRgb",value:function(r){var l=r.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),o=S[l];return o===void 0?o:t.hexToRgb(o.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(r){var l=P(r,4),o=l[0],c=l[1],h=l[2],y=l[3];o/=255,c/=255,h/=255;var v=Math.max(o,c,h),d=Math.min(o,c,h),u=void 0,A=void 0,x=(v+d)/2;if(v===d)u=A=0;else{var I=v-d;switch(A=x>.5?I/(2-v-d):I/(v+d),v){case o:u=(c-h)/I+(c1&&(F-=1),F<.16666666666666666?k+(_-k)*6*F:F<.5?_:F<.6666666666666666?k+(_-k)*(.6666666666666666-F)*6:k},x=h<.5?h*(1+c):h+c-h*c,I=2*h-x;v=A(I,x,o+1/3),d=A(I,x,o),u=A(I,x,o-1/3)}var T=[v*255,d*255,u*255].map(Math.round);return T[3]=y,T}}]),t}(),O=function(){function t(){g(this,t),this._events=[]}return X(t,[{key:"add",value:function(r,l,o){r.addEventListener(l,o,!1),this._events.push({target:r,type:l,handler:o})}},{key:"remove",value:function(r,l,o){this._events=this._events.filter(function(c){var h=!0;return r&&r!==c.target&&(h=!1),l&&l!==c.type&&(h=!1),o&&o!==c.handler&&(h=!1),h&&t._doRemove(c.target,c.type,c.handler),!h})}},{key:"destroy",value:function(){this._events.forEach(function(r){return t._doRemove(r.target,r.type,r.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(r,l,o){r.removeEventListener(l,o,!1)}}]),t}();function W(t){var i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}function M(t,i,r){var l=!1;function o(v,d,u){return Math.max(d,Math.min(v,u))}function c(v,d,u){if(u&&(l=!0),!!l){v.preventDefault();var A=i.getBoundingClientRect(),x=A.width,I=A.height,T=d.clientX,L=d.clientY,k=o(T-A.left,0,x),_=o(L-A.top,0,I);r(k/x,_/I)}}function h(v,d){var u=v.buttons===void 0?v.which:v.buttons;u===1?c(v,v,d):l=!1}function y(v,d){v.touches.length===1?c(v,v.touches[0],d):l=!1}t.add(i,"mousedown",function(v){h(v,!0)}),t.add(i,"touchstart",function(v){y(v,!0)}),t.add(window,"mousemove",h),t.add(i,"touchmove",y),t.add(window,"mouseup",function(v){l=!1}),t.add(i,"touchend",function(v){l=!1}),t.add(i,"touchcancel",function(v){l=!1})}var j=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em, + linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,f=360,m="keydown",b="mousedown",w="focusin";function p(t,i){return(i||document).querySelector(t)}function s(t){t.preventDefault(),t.stopPropagation()}function a(t,i,r,l,o){t.add(i,m,function(c){r.indexOf(c.key)>=0&&(o&&s(c),l(c))})}var n=function(){function t(i){g(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new O,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return X(t,[{key:"setOptions",value:function(r){var l=this;if(!r)return;var o=this.settings;function c(d,u,A){for(var x in d)A&&A.indexOf(x)>=0||(u[x]=d[x])}if(r instanceof HTMLElement)o.parent=r;else{o.parent&&r.parent&&o.parent!==r.parent&&(this._events.remove(o.parent),this._popupInited=!1),c(r,o),r.onChange&&(this.onChange=r.onChange),r.onDone&&(this.onDone=r.onDone),r.onOpen&&(this.onOpen=r.onOpen),r.onClose&&(this.onClose=r.onClose);var h=r.color||r.colour;h&&this._setColor(h)}var y=o.parent;if(y&&o.popup&&!this._popupInited){var v=function(u){return l.openHandler(u)};this._events.add(y,"click",v),a(this._events,y,[" ","Spacebar","Enter"],v),this._popupInited=!0}else r.parent&&!o.popup&&this.show()}},{key:"openHandler",value:function(r){if(this.show()){r&&r.preventDefault(),this.settings.parent.style.pointerEvents="none";var l=r&&r.type===m?this._domEdit:this.domElement;setTimeout(function(){return l.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(r){var l=r&&r.type,o=!1;if(!r)o=!0;else if(l===b||l===w){var c=(this.__containedEvent||0)+100;r.timeStamp>c&&(o=!0)}else s(r),o=!0;o&&this.hide()&&(this.settings.parent.style.pointerEvents="",l!==b&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(r,l){this.closeHandler(),this.setOptions(r),l&&this.openHandler()}},{key:"setColor",value:function(r,l){this._setColor(r,{silent:l})}},{key:"_setColor",value:function(r,l){if(typeof r=="string"&&(r=r.trim()),!!r){l=l||{};var o=void 0;try{o=new Z(r)}catch(h){if(l.failSilently)return;throw h}if(!this.settings.alpha){var c=o.hsla;c[3]=1,o.hsla=c}this.colour=this.color=o,this._setHSLA(null,null,null,null,l)}}},{key:"setColour",value:function(r,l){this.setColor(r,l)}},{key:"show",value:function(){var r=this.settings.parent;if(!r)return!1;if(this.domElement){var l=this._toggleDOM(!0);return this._setPosition(),l}var o=this.settings.template||'OkCancel',c=W(o);return this.domElement=c,this._domH=p(".picker_hue",c),this._domSL=p(".picker_sl",c),this._domA=p(".picker_alpha",c),this._domEdit=p(".picker_editor input",c),this._domSample=p(".picker_sample",c),this._domOkay=p(".picker_done button",c),this._domCancel=p(".picker_cancel button",c),c.classList.add("layout_"+this.settings.layout),this.settings.alpha||c.classList.add("no_alpha"),this.settings.editor||c.classList.add("no_editor"),this.settings.cancelButton||c.classList.add("no_cancel"),this._ifPopup(function(){return c.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var r=this,l=this,o=this.domElement,c=this._events;function h(d,u,A){c.add(d,u,A)}h(o,"click",function(d){return d.preventDefault()}),M(c,this._domH,function(d,u){return l._setHSLA(d)}),M(c,this._domSL,function(d,u){return l._setHSLA(null,d,1-u)}),this.settings.alpha&&M(c,this._domA,function(d,u){return l._setHSLA(null,null,null,1-u)});var y=this._domEdit;h(y,"input",function(d){l._setColor(this.value,{fromEditor:!0,failSilently:!0})}),h(y,"focus",function(d){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var d=function(x){return r.closeHandler(x)};h(window,b,d),h(window,w,d),a(c,o,["Esc","Escape"],d);var u=function(x){r.__containedEvent=x.timeStamp};h(o,b,u),h(o,w,u),h(r._domCancel,"click",d)});var v=function(u){r._ifPopup(function(){return r.closeHandler(u)}),r.onDone&&r.onDone(r.colour)};h(this._domOkay,"click",v),a(c,o,["Enter"],v)}},{key:"_setPosition",value:function(){var r=this.settings.parent,l=this.domElement;r!==l.parentNode&&r.appendChild(l),this._ifPopup(function(o){getComputedStyle(r).position==="static"&&(r.style.position="relative");var c=o===!0?"popup_right":"popup_"+o;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(h){h===c?l.classList.add(h):l.classList.remove(h)}),l.classList.add(c)})}},{key:"_setHSLA",value:function(r,l,o,c,h){h=h||{};var y=this.colour,v=y.hsla;[r,l,o,c].forEach(function(d,u){(d||d===0)&&(v[u]=d)}),y.hsla=v,this._updateUI(h),this.onChange&&!h.silent&&this.onChange(y)}},{key:"_updateUI",value:function(r){if(!this.domElement)return;r=r||{};var l=this.colour,o=l.hsla,c="hsl("+o[0]*f+", 100%, 50%)",h=l.hslString,y=l.hslaString,v=this._domH,d=this._domSL,u=this._domA,A=p(".picker_selector",v),x=p(".picker_selector",d),I=p(".picker_selector",u);function T(J,R,V){R.style.left=V*100+"%"}function L(J,R,V){R.style.top=V*100+"%"}T(v,A,o[0]),this._domSL.style.backgroundColor=this._domH.style.color=c,T(d,x,o[1]),L(d,x,1-o[2]),d.style.color=h,L(u,I,1-o[3]);var k=h,_=k.replace("hsl","hsla").replace(")",", 0)"),F="linear-gradient("+[k,_]+")";if(this._domA.style.background=F+", "+j,!r.fromEditor){var H=this.settings.editorFormat,z=this.settings.alpha,D=void 0;switch(H){case"rgb":D=l.printRGB(z);break;case"hsl":D=l.printHSL(z);break;default:D=l.printHex(z)}this._domEdit.value=D}this._domSample.style.color=y}},{key:"_ifPopup",value:function(r,l){this.settings.parent&&this.settings.popup?r&&r(this.settings.popup):l&&l()}},{key:"_toggleDOM",value:function(r){var l=this.domElement;if(!l)return!1;var o=r?"":"none",c=l.style.display!==o;return c&&(l.style.display=o),c}}]),t}(),e=document.createElement("style");return e.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(e),n.StyleElement=e,n}()},402:function(ie,g){function X(P,S){if(!(this instanceof X))throw new SyntaxError("Constructor must be called with the new operator");this.message=P+" (char "+S+")",this.char=S,this.stack=new Error().stack}Object.defineProperty(g,"__esModule",{value:!0}),((g.default=X).prototype=new Error).constructor=Error},3860:function(ie,g,X){ie.exports=X(7490).default},7490:function(ie,g,X){g.default=function(u){n="",e=0,t=(a=u).charAt(0),i="",r=f,h();var A=r;if(d(),y(),i==="")return n;if(A===r&&c()){for(var x="";A===r&&c();)n=(0,S.insertBeforeLastWhitespace)(n,","),x+=n,n="",d(),y();return`[ +`.concat(x).concat(n,` +]`)}throw new P.default("Unexpected characters",e-i.length)};var P=(g=X(402))&&g.__esModule?g:{default:g},S=X(9422),N=0,Z=1,O=2,W=3,M=4,j=5,f=6,m={"":!0,"{":!0,"}":!0,"[":!0,"]":!0,":":!0,",":!0,"(":!0,")":!0,";":!0,"+":!0},b={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "},w={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},p={null:"null",true:"true",false:"false"},s={None:"null",True:"true",False:"false"},a="",n="",e=0,t="",i="",r=f;function l(){e++,t=a.charAt(e)}function o(){l(),t==="\\"&&l()}function c(){return r===N&&(i==="["||i==="{")||r===O||r===Z||r===W}function h(){if(n+=i,r=f,i="",m[t])r=N,i=t,l();else if((0,S.isDigit)(t)||t==="-"){if(r=Z,t==="-"){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e)}else t==="0"&&(i+=t,l());for(;(0,S.isDigit)(t);)i+=t,l();if(t==="."){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}if(t==="e"||t==="E"){if(i+=t,l(),t!=="+"&&t!=="-"||(i+=t,l()),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}}else t==="\\"&&a.charAt(e+1)==='"'?(l(),v(o)):v(l);r===M&&(i=(0,S.normalizeWhitespace)(i),h()),r===j&&(r=f,i="",h())}function y(){i===","&&(i="",r=f,h())}function v(u){if((0,S.isQuote)(t)){var A=(0,S.normalizeQuote)(t),x=(0,S.isSingleQuote)(t)?S.isSingleQuote:S.isDoubleQuote;for(i+='"',r=O,u();t!==""&&!x(t);)if(t==="\\")if(u(),b[t]!==void 0)i+="\\"+t,u();else if(t==="u"){i+="\\u",u();for(var I=0;I<4;I++){if(!(0,S.isHex)(t))throw new P.default("Invalid unicode character",e-i.length);i+=t,u()}}else{if(t!=="'")throw new P.default('Invalid escape character "\\'+t+'"',e);i+="'",u()}else w[t]?i+=w[t]:i+=t==='"'?'\\"':t,u();if((0,S.normalizeQuote)(t)!==A)throw new P.default("End of string expected",e-i.length);return i+='"',void u()}if((0,S.isAlpha)(t))for(r=W;(0,S.isAlpha)(t)||(0,S.isDigit)(t)||t==="$";)i+=t,l();else if((0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t))for(r=M;(0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t);)i+=t,l();else if(t==="/"&&a[e+1]==="*"){for(r=j;t!==""&&(t!=="*"||t==="*"&&a[e+1]!=="/");)i+=t,l();t==="*"&&a[e+1]==="/"&&(i+=t,l(),i+=t,l())}else if(t==="/"&&a[e+1]==="/")for(r=j;t!==""&&t!==` +`;)i+=t,l();else{for(r=f;t!=="";)i+=t,l();throw new P.default('Syntax error in part "'+i+'"',e-i.length)}}function d(){if(r===N&&i==="{")if(h(),r===N&&i==="}")h();else{for(;;){if(r!==W&&r!==Z||(r=O,i='"'.concat(i,'"')),r!==O)throw new P.default("Object key expected",e-i.length);if(h(),r===N&&i===":")h();else{if(!c())throw new P.default("Colon expected",e-i.length);n=(0,S.insertBeforeLastWhitespace)(n,":")}if(d(),r===N&&i===","){if(h(),r===N&&i==="}"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(r!==O&&r!==Z&&r!==W)break;n=(0,S.insertBeforeLastWhitespace)(n,",")}}r===N&&i==="}"?h():n=(0,S.insertBeforeLastWhitespace)(n,"}")}else if(r===N&&i==="[")if(h(),r===N&&i==="]")h();else{for(;;)if(d(),r===N&&i===","){if(h(),r===N&&i==="]"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(!c())break;n=(0,S.insertBeforeLastWhitespace)(n,",")}r===N&&i==="]"?h():n=(0,S.insertBeforeLastWhitespace)(n,"]")}else if(r===O)for(h();r===N&&i==="+";){var u;i="",h(),r===O&&(u=n.lastIndexOf('"'),n=n.substring(0,u)+i.substring(1),i="",h())}else if(r===Z)h();else{if(r!==W)throw i===""?new P.default("Unexpected end of json string",e-i.length):new P.default("Value expected",e-i.length);if(p[i])h();else{if(s[i])return i=s[i],void h();var A=i,x=n.length;if(i="",h(),r===N&&i==="(")return i="",h(),d(),void(r===N&&i===")"&&(i="",h(),r===N&&i===";"&&(i="",h())));for(n=(0,S.insertAtIndex)(n,'"'.concat(A),x);r===W||r===Z;)h();n+='"'}}}},9422:function(ie,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isAlpha=function(M){return S.test(M)},g.isHex=function(M){return N.test(M)},g.isDigit=function(M){return Z.test(M)},g.isWhitespace=O,g.isSpecialWhitespace=W,g.normalizeWhitespace=function(M){for(var j="",f=0;f{N.width=Ie.width,N.height=Ie.height,W(),Z(Ge.value)}),qt(()=>{X==null||X.destroy(),X=null}),ei(()=>Ie.modelValue,M=>{X||W(),Z(M)});const Z=M=>{S||(typeof M=="string"?(P="string",X.set(JSON.parse(M))):(P="object",X.set(M)))},O=()=>{try{const M=X.get();P=="string"?le("update:modelValue",JSON.stringify(M)):le("update:modelValue",M),le("onChange",M),S=!0,ti(()=>{S=!1})}catch{}},W=()=>{console.log("init json editor");const M=Et(kt({},it.value),{mode:ie.value,modes:st.value,onChange:O});X=new oi(g.value,M)};return Et(kt({},_t(N)),{jsoneditorVue:g})}});function si(Ie,le,Ge,it,st,ie){return qe(),gt("div",null,[tt("div",{ref:"jsoneditorVue",style:ii({height:Ie.height,width:Ie.width})},null,4)])}var ai=Vt(ri,[["render",si]]);const li=Gt({name:"MongoDataOp",components:{ProjectEnvSelect:Xt,JsonEdit:ai},setup(){const Ie=Mt(null),le=Ht({loading:!1,mongoList:[],query:{envId:0},mongoId:null,database:"",collection:"",activeName:"",databases:[],collections:[],dataTabs:{},findDialog:{visible:!1,findParam:{filter:"",sort:""}},insertDocDialog:{visible:!1,doc:""},jsoneditorDialog:{visible:!1,doc:"",item:{}}}),Ge=async()=>{Jt(le.query.envId,"\u8BF7\u5148\u9009\u62E9\u9879\u76EE\u73AF\u5883");const a=await ut.mongoList.request(le.query);le.mongoList=a.list},it=(a,n)=>{le.databases=[],le.collections=[],le.mongoId=null,le.collection="",le.database="",le.dataTabs={},n!=null&&(le.query.envId=n,Ge())},st=()=>{le.databases=[],le.collections=[],le.dataTabs={},ie()},ie=async()=>{const a=await ut.databases.request({id:le.mongoId});le.databases=a.Databases},g=()=>{le.collections=[],le.collection="",le.dataTabs={},X()},X=async()=>{le.collections=await ut.collections.request({id:le.mongoId,database:le.database})},P=()=>{const a=le.collection;if(!le.dataTabs[a]){const e={filter:"{}",sort:'{"_id": -1}',skip:0,limit:12},t={name:a,datas:[],findParamStr:JSON.stringify(e),findParam:e};le.dataTabs[a]=t}le.activeName=a,Z(a)},S=a=>{const n=Object.keys(le.dataTabs);for(let e=0;e{le.dataTabs[le.activeName].findParam=le.findDialog.findParam,le.dataTabs[le.activeName].findParamStr=JSON.stringify(le.findDialog.findParam),le.findDialog.visible=!1,Z(le.activeName)},Z=async a=>{const e=le.dataTabs[a].findParam;let t,i;try{t=e.filter?JSON.parse(e.filter):{},i=e.sort?JSON.parse(e.sort):{}}catch{ft.error("filter\u6216sort\u5B57\u6BB5json\u5B57\u7B26\u4E32\u503C\u9519\u8BEF\u3002\u6CE8\u610F: json key\u9700\u53CC\u5F15\u53F7");return}const r=await ut.findCommand.request({id:le.mongoId,database:le.database,collection:a,filter:t,sort:i,limit:e.limit||12,skip:e.skip||0});le.dataTabs[a].datas=O(r)},O=a=>{const n=[];if(!a)return n;for(let e of a)n.push({value:JSON.stringify(e,null,4)});return n},W=()=>{const a=le.dataTabs[le.activeName].datas[0];let n="";if(a){const e=JSON.parse(a.value);delete e._id,n=JSON.stringify(e,null,4)}le.insertDocDialog.doc=n,le.insertDocDialog.visible=!0},M=async()=>{let a;try{a=JSON.parse(le.insertDocDialog.doc)}catch{ft.error("\u6587\u6863\u5185\u5BB9\u9519\u8BEF,\u65E0\u6CD5\u89E3\u6790\u4E3Ajson\u5BF9\u8C61")}const n=await ut.insertCommand.request({id:le.mongoId,database:le.database,collection:le.activeName,doc:a});Tt(n.InsertedID,"\u65B0\u589E\u5931\u8D25"),ft.success("\u65B0\u589E\u6210\u529F"),Z(le.activeName),le.insertDocDialog.visible=!1},j=a=>{le.jsoneditorDialog.item=a,le.jsoneditorDialog.doc=a.value,le.jsoneditorDialog.visible=!0},f=()=>{le.jsoneditorDialog.item.value=JSON.stringify(JSON.parse(le.jsoneditorDialog.doc),null,4)},m=async a=>{const n=w(a),e=n._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728"),delete n._id;const t=await ut.updateByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e,update:{$set:n}});Tt(t.ModifiedCount==1,"\u4FEE\u6539\u5931\u8D25"),ft.success("\u4FDD\u5B58\u6210\u529F")},b=async a=>{const e=w(a)._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728");const t=await ut.deleteByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e});Tt(t.DeletedCount==1,"\u5220\u9664\u5931\u8D25"),ft.success("\u5220\u9664\u6210\u529F"),Z(le.activeName)},w=a=>{try{return JSON.parse(a)}catch(n){throw ft.error("\u6587\u6863\u5185\u5BB9\u89E3\u6790\u4E3Ajson\u5BF9\u8C61\u5931\u8D25"),n}},p=a=>{const n=a.props.name;le.collection=n},s=a=>{const n=Object.keys(le.dataTabs);let e=le.activeName;n.forEach((t,i)=>{if(t===a){const r=n[i+1]||n[i-1];r&&(e=r)}}),le.activeName=e,e==a?le.collection="":le.collection=e,delete le.dataTabs[a]};return Et(kt({},_t(le)),{findParamInputRef:Ie,changeProjectEnv:it,changeMongo:st,changeDatabase:g,changeCollection:P,onDataTabClick:p,removeDataTab:s,showFindDialog:S,confirmFindDialog:N,findCommand:Z,showInsertDocDialog:W,onInsertDoc:M,onSaveDoc:m,onDeleteDoc:b,onJsonEditor:j,onCloseJsonEditDialog:f,formatByteSize:Yt})}}),ci={class:"toolbar"},di={style:{float:"left"}},hi={style:{float:"right",color:"#8492a6","margin-left":"6px","font-size":"13px"}},ui={style:{float:"left"}},gi={style:{float:"right",color:"#8492a6","margin-left":"4px","font-size":"13px"}},pi=yt("\u67E5\u8BE2\u53C2\u6570"),mi={style:{padding:"3px",float:"right"},class:"mr5 mongo-doc-btns"},fi=yt("\u53D6 \u6D88"),Ci=yt("\u786E \u5B9A"),vi=yt("\u53D6 \u6D88"),Ii=yt("\u786E \u5B9A"),bi=tt("div",{style:{"text-align":"center","margin-top":"10px"}},null,-1);function yi(Ie,le,Ge,it,st,ie){const g=Ye("el-option"),X=Ye("el-select"),P=Ye("el-form-item"),S=Ye("project-env-select"),N=Ye("el-col"),Z=Ye("el-row"),O=Ye("el-link"),W=Ye("el-input"),M=Ye("el-divider"),j=Ye("el-popconfirm"),f=Ye("el-card"),m=Ye("el-tab-pane"),b=Ye("el-tabs"),w=Ye("el-container"),p=Ye("el-form"),s=Ye("el-button"),a=Ye("el-dialog"),n=Ye("json-edit");return qe(),gt("div",null,[tt("div",ci,[Be(Z,{type:"flex",justify:"space-between"},{default:We(()=>[Be(N,{span:24},{default:We(()=>[Be(S,{onChangeProjectEnv:Ie.changeProjectEnv},{default:We(()=>[Be(P,{label:"\u5B9E\u4F8B","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.mongoId,"onUpdate:modelValue":le[0]||(le[0]=e=>Ie.mongoId=e),placeholder:"\u8BF7\u9009\u62E9mongo",onChange:Ie.changeMongo},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.mongoList,e=>(qe(),mt(g,{key:e.id,label:e.name,value:e.id},{default:We(()=>[tt("span",di,Rt(e.name),1),tt("span",hi,Rt(` [${e.uri}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u5E93","label-width":"20px"},{default:We(()=>[Be(X,{modelValue:Ie.database,"onUpdate:modelValue":le[1]||(le[1]=e=>Ie.database=e),placeholder:"\u8BF7\u9009\u62E9\u5E93",onChange:Ie.changeDatabase,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.databases,e=>(qe(),mt(g,{key:e.Name,label:e.Name,value:e.Name},{default:We(()=>[tt("span",ui,Rt(e.Name),1),tt("span",gi,Rt(` [${Ie.formatByteSize(e.SizeOnDisk)}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u96C6\u5408","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.collection,"onUpdate:modelValue":le[2]||(le[2]=e=>Ie.collection=e),placeholder:"\u8BF7\u9009\u62E9\u96C6\u5408",onChange:Ie.changeCollection,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.collections,e=>(qe(),mt(g,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["onChangeProjectEnv"])]),_:1})]),_:1})]),Be(w,{id:"data-exec",style:{border:"1px solid #eee","margin-top":"1px"}},{default:We(()=>[Be(b,{onTabRemove:Ie.removeDataTab,onTabClick:Ie.onDataTabClick,style:{width:"100%","margin-left":"5px"},modelValue:Ie.activeName,"onUpdate:modelValue":le[4]||(le[4]=e=>Ie.activeName=e)},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.dataTabs,e=>(qe(),mt(m,{closable:"",key:e.name,label:e.name,name:e.name},{default:We(()=>[Ie.mongoId?(qe(),mt(Z,{key:0},{default:We(()=>[Be(O,{onClick:le[3]||(le[3]=t=>Ie.findCommand(Ie.activeName)),icon:"refresh",underline:!1,class:"ml5"}),Be(O,{onClick:Ie.showInsertDocDialog,class:"ml5",type:"primary",icon:"plus",underline:!1},null,8,["onClick"])]),_:1})):ni("",!0),Be(Z,{class:"mt5 mb5"},{default:We(()=>[Be(W,{ref_for:!0,ref:"findParamInputRef",modelValue:e.findParamStr,"onUpdate:modelValue":t=>e.findParamStr=t,placeholder:"\u70B9\u51FB\u8F93\u5165\u76F8\u5E94\u67E5\u8BE2\u6761\u4EF6",onFocus:t=>Ie.showFindDialog(e.name)},{prepend:We(()=>[pi]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:2},1024),Be(Z,null,{default:We(()=>[(qe(!0),gt(It,null,bt(e.datas,t=>(qe(),mt(N,{span:6,key:t},{default:We(()=>[Be(f,{"body-style":{padding:"0px",position:"relative"}},{default:We(()=>[Be(W,{type:"textarea",modelValue:t.value,"onUpdate:modelValue":i=>t.value=i,rows:12},null,8,["modelValue","onUpdate:modelValue"]),tt("div",mi,[tt("div",null,[Be(O,{onClick:i=>Ie.onJsonEditor(t),underline:!1,type:"success",icon:"MagicStick"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(O,{onClick:i=>Ie.onSaveDoc(t.value),underline:!1,type:"warning",icon:"DocumentChecked"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(j,{onConfirm:i=>Ie.onDeleteDoc(t.value),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u6587\u6863?"},{reference:We(()=>[Be(O,{underline:!1,type:"danger",icon:"DocumentDelete"})]),_:2},1032,["onConfirm"])])])]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["onTabRemove","onTabClick","modelValue"])]),_:1}),Be(a,{width:"600px",title:"find\u53C2\u6570",modelValue:Ie.findDialog.visible,"onUpdate:modelValue":le[10]||(le[10]=e=>Ie.findDialog.visible=e)},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[9]||(le[9]=e=>Ie.findDialog.visible=!1)},{default:We(()=>[fi]),_:1}),Be(s,{onClick:Ie.confirmFindDialog,type:"primary"},{default:We(()=>[Ci]),_:1},8,["onClick"])])]),default:We(()=>[Be(p,{"label-width":"70px"},{default:We(()=>[Be(P,{label:"filter"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.filter,"onUpdate:modelValue":le[5]||(le[5]=e=>Ie.findDialog.findParam.filter=e),type:"textarea",rows:6,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"sort"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.sort,"onUpdate:modelValue":le[6]||(le[6]=e=>Ie.findDialog.findParam.sort=e),type:"textarea",rows:3,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"limit"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.limit,"onUpdate:modelValue":le[7]||(le[7]=e=>Ie.findDialog.findParam.limit=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"skip"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.skip,"onUpdate:modelValue":le[8]||(le[8]=e=>Ie.findDialog.findParam.skip=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),Be(a,{width:"800px",title:`\u65B0\u589E'${Ie.activeName}'\u96C6\u5408\u6587\u6863`,modelValue:Ie.insertDocDialog.visible,"onUpdate:modelValue":le[13]||(le[13]=e=>Ie.insertDocDialog.visible=e),"close-on-click-modal":!1},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[12]||(le[12]=e=>Ie.insertDocDialog.visible=!1)},{default:We(()=>[vi]),_:1}),Be(s,{onClick:Ie.onInsertDoc,type:"primary"},{default:We(()=>[Ii]),_:1},8,["onClick"])])]),default:We(()=>[Be(n,{currentMode:"code",modelValue:Ie.insertDocDialog.doc,"onUpdate:modelValue":le[11]||(le[11]=e=>Ie.insertDocDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["title","modelValue"]),Be(a,{width:"70%",title:"json\u7F16\u8F91\u5668",modelValue:Ie.jsoneditorDialog.visible,"onUpdate:modelValue":le[15]||(le[15]=e=>Ie.jsoneditorDialog.visible=e),onClose:Ie.onCloseJsonEditDialog,"close-on-click-modal":!1},{default:We(()=>[Be(n,{modelValue:Ie.jsoneditorDialog.doc,"onUpdate:modelValue":le[14]||(le[14]=e=>Ie.jsoneditorDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["modelValue","onClose"]),bi])}var _i=Vt(li,[["render",yi]]);export{_i as default}; diff --git a/server/static/static/assets/MongoList.1661345446364.js b/server/static/static/assets/MongoList.1661345446364.js new file mode 100644 index 00000000..d2ca1e63 --- /dev/null +++ b/server/static/static/assets/MongoList.1661345446364.js @@ -0,0 +1 @@ +var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var U=(e,o,c)=>o in e?X(e,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[o]=c,_=(e,o)=>{for(var c in o||(o={}))x.call(o,c)&&U(e,c,o[c]);if(T)for(var c of T(o))ee.call(o,c)&&U(e,c,o[c]);return e},M=(e,o)=>Y(e,Z(o));import{m as C}from"./api.16613454463646.js";import{p as N}from"./api.16613454463644.js";import{m as le}from"./api.16613454463643.js";import{A as O,q as ae,r as P,v as oe,t as H,_ as G,E as k,b as u,d as f,e as F,g as l,w as a,h as j,F as q,j as A,k as z,z as L,B as i,o as te,i as g,G as ne}from"./index.1661345446364.js";import{f as ie}from"./format.1661345446364.js";import"./Api.1661345446364.js";const se=O({name:"MongoEdit",props:{visible:{type:Boolean},projects:{type:Array},mongo:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:o}){const c=ae(null),r=P({dialogVisible:!1,projects:[],envs:[],sshTunnelMachineList:[],form:{id:null,name:null,uri:null,enableSshTunnel:-1,sshTunnelMachineId:null,project:null,projectId:null,envId:null,env:null},btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["change","blur"]}],uri:[{required:!0,message:"\u8BF7\u8F93\u5165mongo uri",trigger:["change","blur"]}]}});oe(e,async s=>{r.dialogVisible=s.visible,r.dialogVisible&&(r.projects=s.projects,s.mongo?(E(s.mongo.projectId),r.form=_({},s.mongo)):(r.envs=[],r.form={db:0}),y())});const y=async()=>{if(r.form.enableSshTunnel==1&&r.sshTunnelMachineList.length==0){const s=await le.list.request({pageNum:1,pageSize:100});r.sshTunnelMachineList=s.list}},E=async s=>{r.envs=await N.projectEnvs.request({projectId:s})},p=s=>{for(let m of r.projects)m.id==s&&(r.form.project=m.name);r.form.envId=null,r.form.env=null,r.envs=[],E(s)},h=s=>{for(let m of r.envs)m.id==s&&(r.form.env=m.name)},b=async()=>{c.value.validate(async s=>{if(s){const m=_({},r.form);C.saveMongo.request(m).then(()=>{k.success("\u4FDD\u5B58\u6210\u529F"),o("val-change",r.form),r.btnLoading=!0,setTimeout(()=>{r.btnLoading=!1},1e3),v()})}else return k.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},v=()=>{o("update:visible",!1),o("cancel")};return M(_({},H(r)),{mongoForm:c,changeProject:p,getSshTunnelMachines:y,changeEnv:h,btnOk:b,cancel:v})}}),ue=i(" \u673A\u5668: "),re={class:"dialog-footer"},de=i("\u53D6 \u6D88"),ge=i("\u786E \u5B9A");function me(e,o,c,r,y,E){const p=u("el-option"),h=u("el-select"),b=u("el-form-item"),v=u("el-input"),s=u("el-checkbox"),m=u("el-col"),D=u("el-form"),S=u("el-button"),B=u("el-dialog");return f(),F("div",null,[l(B,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":o[7]||(o[7]=t=>e.dialogVisible=t),"before-close":e.cancel,"close-on-click-modal":!1,width:"38%","destroy-on-close":!0},{footer:a(()=>[j("div",re,[l(S,{onClick:o[6]||(o[6]=t=>e.cancel())},{default:a(()=>[de]),_:1}),l(S,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:a(()=>[ge]),_:1},8,["loading","onClick"])])]),default:a(()=>[l(D,{model:e.form,ref:"mongoForm",rules:e.rules,"label-width":"85px"},{default:a(()=>[l(b,{prop:"projectId",label:"\u9879\u76EE",required:""},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l(b,{prop:"envId",label:"\u73AF\u5883",required:""},{default:a(()=>[l(h,{onChange:e.changeEnv,style:{width:"100%"},modelValue:e.form.envId,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.envId=t),placeholder:"\u8BF7\u9009\u62E9\u73AF\u5883"},{default:a(()=>[(f(!0),F(q,null,A(e.envs,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(b,{prop:"name",label:"\u540D\u79F0",required:""},{default:a(()=>[l(v,{modelValue:e.form.name,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"uri",label:"uri",required:""},{default:a(()=>[l(v,{type:"textarea",rows:2,modelValue:e.form.uri,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.uri=t),modelModifiers:{trim:!0},placeholder:"\u5F62\u5982 mongodb://username:password@host1:port1","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"enableSshTunnel",label:"SSH\u96A7\u9053:"},{default:a(()=>[l(m,{span:3},{default:a(()=>[l(s,{onChange:e.getSshTunnelMachines,modelValue:e.form.enableSshTunnel,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.enableSshTunnel=t),"true-label":1,"false-label":-1},null,8,["onChange","modelValue"])]),_:1}),e.form.enableSshTunnel==1?(f(),z(m,{key:0,span:2},{default:a(()=>[ue]),_:1})):L("",!0),e.form.enableSshTunnel==1?(f(),z(m,{key:1,span:19},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.sshTunnelMachineId,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sshTunnelMachineId=t),placeholder:"\u8BF7\u9009\u62E9SSH\u96A7\u9053\u673A\u5668"},{default:a(()=>[(f(!0),F(q,null,A(e.sshTunnelMachineList,t=>(f(),z(p,{key:t.id,label:`${t.ip}:${t.port} [${t.name}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):L("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var ce=G(se,[["render",me]]);const pe=O({name:"MongoList",components:{MongoEdit:ce},setup(){const e=P({projects:[],list:[],total:0,currentId:null,currentData:null,query:{pageNum:1,pageSize:10,prjectId:null,clusterId:null},mongoEditDialog:{visible:!1,data:null,title:"\u65B0\u589Emongo"},databaseDialog:{visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},collectionsDialog:{database:"",visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},createCollectionDialog:{visible:!1,form:{name:""}}});te(async()=>{D()});const o=t=>{e.query.pageNum=t,D()},c=t=>{!t||(e.currentId=t.id,e.currentData=t)},r=async t=>{e.databaseDialog.data=(await C.databases.request({id:t})).Databases,e.databaseDialog.title="\u6570\u636E\u5E93\u5217\u8868",e.databaseDialog.visible=!0},y=async t=>{e.databaseDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:t,command:{dbStats:1}}),e.databaseDialog.statsDialog.title=`'${t}' stats`,e.databaseDialog.statsDialog.visible=!0},E=async t=>{e.collectionsDialog.database=t,e.collectionsDialog.data=[],p(t),e.collectionsDialog.title=`'${t}' \u96C6\u5408`,e.collectionsDialog.visible=!0},p=async t=>{const $=await C.collections.request({id:e.currentId,database:t}),d=[];for(let I of $)d.push({name:I});e.collectionsDialog.data=d},h=async t=>{e.collectionsDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{collStats:t}}),e.collectionsDialog.statsDialog.title=`'${t}' stats`,e.collectionsDialog.statsDialog.visible=!0},b=async t=>{await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{drop:t}}),k.success("\u96C6\u5408\u5220\u9664\u6210\u529F"),p(e.collectionsDialog.database)},v=()=>{e.createCollectionDialog.visible=!0},s=async()=>{const t=e.createCollectionDialog.form;await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{create:t.name}}),k.success("\u96C6\u5408\u521B\u5EFA\u6210\u529F"),e.createCollectionDialog.visible=!1,e.createCollectionDialog.form={},p(e.collectionsDialog.database)},m=async()=>{try{await ne.confirm("\u786E\u5B9A\u5220\u9664\u8BE5mongo?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await C.deleteMongo.request({id:e.currentId}),k.success("\u5220\u9664\u6210\u529F"),e.currentData=null,e.currentId=null,D()}catch{}},D=async()=>{const t=await C.mongoList.request(e.query);e.list=t.list,e.total=t.total},S=async(t=!1)=>{e.projects=await N.accountProjects.request(null),t?(e.mongoEditDialog.data=null,e.mongoEditDialog.title="\u65B0\u589Emongo"):(e.mongoEditDialog.data=e.currentData,e.mongoEditDialog.title="\u4FEE\u6539mongo"),e.mongoEditDialog.visible=!0},B=()=>{e.currentId=null,e.currentData=null,D()};return M(_({},H(e)),{search:D,handlePageChange:o,choose:c,showDatabases:r,showDatabaseStats:y,showCollections:E,showCollectionStats:h,onDeleteCollection:b,showCreateCollectionDialog:v,onCreateCollection:s,formatByteSize:ie,deleteMongo:m,editMongo:S,valChange:B})}}),fe=i("\u6DFB\u52A0"),be=i("\u7F16\u8F91"),De=i("\u5220\u9664"),he={style:{float:"right"}},ve=j("i",null,null,-1),Ce=i("\u6570\u636E\u5E93"),ye=i("stats"),Ee=i("\u96C6\u5408"),Se=i("\u65B0\u5EFA"),we=i("stats"),ze=i("\u5220\u9664"),Fe=i("\u53D6 \u6D88"),Be=i("\u786E \u5B9A");function Ve(e,o,c,r,y,E){const p=u("el-button"),h=u("el-option"),b=u("el-select"),v=u("el-radio"),s=u("el-table-column"),m=u("el-link"),D=u("el-table"),S=u("el-pagination"),B=u("el-row"),t=u("el-card"),$=u("el-divider"),d=u("el-descriptions-item"),I=u("el-descriptions"),V=u("el-dialog"),R=u("el-popconfirm"),J=u("el-input"),K=u("el-form-item"),Q=u("el-form"),W=u("mongo-edit");return f(),F("div",null,[l(t,null,{default:a(()=>[l(p,{type:"primary",icon:"plus",onClick:o[0]||(o[0]=n=>e.editMongo(!0)),plain:""},{default:a(()=>[fe]),_:1}),l(p,{type:"primary",icon:"edit",disabled:e.currentId==null,onClick:o[1]||(o[1]=n=>e.editMongo(!1)),plain:""},{default:a(()=>[be]),_:1},8,["disabled"]),l(p,{type:"danger",icon:"delete",disabled:e.currentId==null,onClick:e.deleteMongo,plain:""},{default:a(()=>[De]),_:1},8,["disabled","onClick"]),j("div",he,[l(b,{modelValue:e.query.projectId,"onUpdate:modelValue":o[2]||(o[2]=n=>e.query.projectId=n),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",filterable:"",clearable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,n=>(f(),z(h,{key:n.id,label:`${n.name} [${n.remark}]`,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l(p,{class:"ml5",onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])]),l(D,{data:e.list,style:{width:"100%"},onCurrentChange:e.choose,stripe:""},{default:a(()=>[l(s,{label:"\u9009\u62E9",width:"60px"},{default:a(n=>[l(v,{modelValue:e.currentId,"onUpdate:modelValue":o[3]||(o[3]=w=>e.currentId=w),label:n.row.id},{default:a(()=>[ve]),_:2},1032,["modelValue","label"])]),_:1}),l(s,{prop:"project",label:"\u9879\u76EE",width:""}),l(s,{prop:"env",label:"\u73AF\u5883",width:""}),l(s,{prop:"name",label:"\u540D\u79F0",width:""}),l(s,{prop:"uri",label:"\u8FDE\u63A5uri","min-width":"150","show-overflow-tooltip":""},{default:a(n=>[i(g(n.row.uri.split("@")[1]),1)]),_:1}),l(s,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"},{default:a(n=>[i(g(e.$filters.dateFormat(n.row.createTime)),1)]),_:1}),l(s,{prop:"creator",label:"\u521B\u5EFA\u4EBA"}),l(s,{label:"\u64CD\u4F5C",width:""},{default:a(n=>[l(m,{type:"primary",onClick:w=>e.showDatabases(n.row.id),plain:"",size:"small",underline:!1},{default:a(()=>[Ce]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),l(B,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(S,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":o[4]||(o[4]=n=>e.query.pageNum=n),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),l(V,{width:"800px",title:e.databaseDialog.title,modelValue:e.databaseDialog.visible,"onUpdate:modelValue":o[6]||(o[6]=n=>e.databaseDialog.visible=n)},{default:a(()=>[l(D,{data:e.databaseDialog.data,size:"small"},{default:a(()=>[l(s,{"min-width":"130",property:"Name",label:"\u5E93\u540D"}),l(s,{"min-width":"90",property:"SizeOnDisk",label:"size"},{default:a(n=>[i(g(e.formatByteSize(n.row.SizeOnDisk)),1)]),_:1}),l(s,{"min-width":"80",property:"Empty",label:"\u662F\u5426\u4E3A\u7A7A"}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showDatabaseStats(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[ye]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(m,{type:"primary",onClick:w=>e.showCollections(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[Ee]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.databaseDialog.statsDialog.title,modelValue:e.databaseDialog.statsDialog.visible,"onUpdate:modelValue":o[5]||(o[5]=n=>e.databaseDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u5E93\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"db","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.db),1)]),_:1}),l(d,{label:"collections","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.collections),1)]),_:1}),l(d,{label:"objects","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.objects),1)]),_:1}),l(d,{label:"indexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.indexes),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"dataSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.dataSize)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"fsTotalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsTotalSize)),1)]),_:1}),l(d,{label:"fsUsedSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsUsedSize)),1)]),_:1}),l(d,{label:"indexSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.indexSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"600px",title:e.collectionsDialog.title,modelValue:e.collectionsDialog.visible,"onUpdate:modelValue":o[8]||(o[8]=n=>e.collectionsDialog.visible=n)},{default:a(()=>[j("div",null,[l(p,{onClick:e.showCreateCollectionDialog,type:"primary",icon:"plus",size:"small"},{default:a(()=>[Se]),_:1},8,["onClick"])]),l(D,{border:"",stripe:"",data:e.collectionsDialog.data,size:"small"},{default:a(()=>[l(s,{prop:"name",label:"\u540D\u79F0","show-overflow-tooltip":""}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showCollectionStats(n.row.name),plain:"",size:"small",underline:!1},{default:a(()=>[we]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(R,{onConfirm:w=>e.onDeleteCollection(n.row.name),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u96C6\u5408?"},{reference:a(()=>[l(m,{type:"danger",plain:"",size:"small",underline:!1},{default:a(()=>[ze]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.collectionsDialog.statsDialog.title,modelValue:e.collectionsDialog.statsDialog.visible,"onUpdate:modelValue":o[7]||(o[7]=n=>e.collectionsDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u96C6\u5408\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"ns","label-align":"right",span:2,align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.ns),1)]),_:1}),l(d,{label:"count","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.count),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"nindexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.nindexes),1)]),_:1}),l(d,{label:"size","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.size)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"freeStorageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.freeStorageSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"400px",title:"\u65B0\u5EFA\u96C6\u5408",modelValue:e.createCollectionDialog.visible,"onUpdate:modelValue":o[11]||(o[11]=n=>e.createCollectionDialog.visible=n),"destroy-on-close":!0},{footer:a(()=>[j("div",null,[l(p,{onClick:o[10]||(o[10]=n=>e.createCollectionDialog.visible=!1)},{default:a(()=>[Fe]),_:1}),l(p,{onClick:e.onCreateCollection,type:"primary"},{default:a(()=>[Be]),_:1},8,["onClick"])])]),default:a(()=>[l(Q,{model:e.createCollectionDialog.form,"label-width":"70px"},{default:a(()=>[l(K,{prop:"name",label:"\u96C6\u5408\u540D",required:""},{default:a(()=>[l(J,{modelValue:e.createCollectionDialog.form.name,"onUpdate:modelValue":o[9]||(o[9]=n=>e.createCollectionDialog.form.name=n),clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),l(W,{onValChange:e.valChange,projects:e.projects,title:e.mongoEditDialog.title,visible:e.mongoEditDialog.visible,"onUpdate:visible":o[12]||(o[12]=n=>e.mongoEditDialog.visible=n),mongo:e.mongoEditDialog.data,"onUpdate:mongo":o[13]||(o[13]=n=>e.mongoEditDialog.data=n)},null,8,["onValChange","projects","title","visible","mongo"])])}var Me=G(pe,[["render",Ve]]);export{Me as default}; diff --git a/server/static/static/assets/ProjectEnvSelect.1661345446364.js b/server/static/static/assets/ProjectEnvSelect.1661345446364.js new file mode 100644 index 00000000..2cc0c195 --- /dev/null +++ b/server/static/static/assets/ProjectEnvSelect.1661345446364.js @@ -0,0 +1 @@ +var P=Object.defineProperty,V=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var h=(o,e,n)=>e in o?P(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,j=(o,e)=>{for(var n in e||(e={}))B.call(e,n)&&h(o,n,e[n]);if(v)for(var n of v(e))$.call(e,n)&&h(o,n,e[n]);return o},_=(o,e)=>V(o,w(e));import{p as g}from"./api.16613454463644.js";import{A as S,r as F,o as A,t as N,_ as q,b as p,d as r,e as u,g as s,w as a,F as b,j as y,k as E,h as I,i as k,a3 as U}from"./index.1661345446364.js";const z=S({name:"ProjectEnvSelect",props:{visible:{type:Boolean},data:{type:Object},title:{type:String},machineId:{type:Number},isCommon:{type:Boolean}},setup(o,{emit:e}){const n=F({projects:[],envs:[],projectId:null,envId:null});A(async()=>{n.projects=await g.accountProjects.request(null)});const c=async l=>{e("update:projectId",l),e("changeProjectEnv",n.projectId,null),n.envId=null,n.envs=await g.projectEnvs.request({projectId:l})},d=l=>{e("update:envId",l),e("changeProjectEnv",n.projectId,l)};return _(j({},N(n)),{changeProject:c,changeEnv:d})}}),D={style:{float:"left"}},L={style:{float:"right",color:"#8492a6","font-size":"13px"}};function M(o,e,n,c,d,l){const i=p("el-option"),f=p("el-select"),m=p("el-form-item"),C=p("el-form");return r(),u("div",null,[s(C,{class:"search-form","label-position":"right",inline:!0},{default:a(()=>[s(m,{prop:"project",label:"\u9879\u76EE","label-width":"40px"},{default:a(()=>[s(f,{modelValue:o.projectId,"onUpdate:modelValue":e[0]||(e[0]=t=>o.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:o.changeProject,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.projects,t=>(r(),E(i,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),s(m,{prop:"env",label:"env","label-width":"33px"},{default:a(()=>[s(f,{style:{width:"80px"},modelValue:o.envId,"onUpdate:modelValue":e[1]||(e[1]=t=>o.envId=t),placeholder:"\u73AF\u5883",onChange:o.changeEnv,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.envs,t=>(r(),E(i,{key:t.id,label:t.name,value:t.id},{default:a(()=>[I("span",D,k(t.name),1),I("span",L,k(t.remark),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),U(o.$slots,"default")]),_:3})])}var H=q(z,[["render",M]]);export{H as P}; diff --git a/server/static/static/assets/ProjectList.1661345446364.js b/server/static/static/assets/ProjectList.1661345446364.js new file mode 100644 index 00000000..a13f14de --- /dev/null +++ b/server/static/static/assets/ProjectList.1661345446364.js @@ -0,0 +1 @@ +var L=Object.defineProperty,S=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var N=(e,l,d)=>l in e?L(e,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[l]=d,k=(e,l)=>{for(var d in l||(l={}))G.call(l,d)&&N(e,d,l[d]);if(U)for(var d of U(l))R.call(l,d)&&N(e,d,l[d]);return e},T=(e,l)=>S(e,_(l));import{p}from"./api.16613454463644.js";import{b as H}from"./api.16613454463642.js";import{n as B,b as J}from"./assert.1661345446364.js";import{_ as K,A as O,r as Q,o as W,t as X,b as i,C as Y,d as m,e as z,g as a,w as t,h as g,x as D,k as c,B as u,i as I,F as Z,j as x,E as y,G as ee}from"./index.1661345446364.js";import"./Api.1661345446364.js";const oe=O({name:"ProjectList",components:{},setup(){const e=Q({permissions:{saveProject:"project:save",delProject:"project:del",saveMember:"project:member:add",delMember:"project:member:del",saveEnv:"project:env:add"},query:{pageNum:1,pageSize:10,name:null},total:0,projects:[],btnLoading:!1,chooseId:null,chooseData:null,addProjectDialog:{title:"\u65B0\u589E\u9879\u76EE",visible:!1,form:{name:"",remark:""}},showEnvDialog:{visible:!1,envs:[],title:"",addVisible:!1,envForm:{name:"",remark:"",projectId:0}},showMemDialog:{visible:!1,chooseId:null,chooseData:null,query:{pageSize:8,pageNum:1,projectId:null},members:{list:[],total:null},title:"",addVisible:!1,memForm:{},accounts:[]}});W(()=>{l()});const l=async()=>{let o=await p.projects.request(e.query);e.projects=o.list,e.total=o.total},d=o=>{e.query.pageNum=o,l()},q=o=>{o?e.addProjectDialog.form=k({},o):e.addProjectDialog.form={},e.addProjectDialog.visible=!0},j=()=>{e.addProjectDialog.visible=!1,e.addProjectDialog.form={}},$=async()=>{const o=e.addProjectDialog.form;B(o.name,"\u9879\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A"),B(o.remark,"\u9879\u76EE\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"),await p.saveProject.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),l(),j()},s=async()=>{try{await ee.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u9879\u76EE?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await p.delProject.request({id:e.chooseId}),y.success("\u5220\u9664\u6210\u529F"),e.chooseData=null,e.chooseId=null,l()}catch{}},h=o=>{!o||(e.chooseId=o.id,e.chooseData=o)},M=async o=>{e.showMemDialog.query.projectId=o.id,await b(),e.showMemDialog.title=`${o.name}\u7684\u6210\u5458\u4FE1\u606F`,e.showMemDialog.visible=!0},n=o=>{!o||(e.showMemDialog.chooseData=o,e.showMemDialog.chooseId=o.id)},F=async()=>{J(e.showMemDialog.chooseData,"\u8BF7\u9009\u9009\u62E9\u6210\u5458"),await p.deleteProjectMem.request(e.showMemDialog.chooseData),y.success("\u79FB\u9664\u6210\u529F"),b()},b=async()=>{const o=await p.projectMems.request(e.showMemDialog.query);e.showMemDialog.members.list=o.list,e.showMemDialog.members.total=o.total},C=async o=>{e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.id}),e.showEnvDialog.title=`${o.name}\u7684\u73AF\u5883\u4FE1\u606F`,e.showEnvDialog.visible=!0},V=()=>{e.showMemDialog.addVisible=!0},f=async()=>{const o=e.showMemDialog.memForm;o.projectId=e.chooseData.id,B(o.accountId,"\u8BF7\u5148\u9009\u62E9\u8D26\u53F7"),await p.saveProjectMem.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),b(),v()},v=()=>{e.showMemDialog.memForm={},e.showMemDialog.addVisible=!1,e.showMemDialog.chooseData=null,e.showMemDialog.chooseId=null},w=o=>{H.list.request({username:o}).then(E=>{e.showMemDialog.accounts=E.list})},A=()=>{e.showEnvDialog.addVisible=!0},P=async()=>{const o=e.showEnvDialog.envForm;o.projectId=e.chooseData.id,await p.saveProjectEnv.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.projectId}),r()},r=()=>{e.showEnvDialog.envForm={},e.showEnvDialog.addVisible=!1};return T(k({},X(e)),{search:l,handlePageChange:d,choose:h,showAddProjectDialog:q,addProject:$,delProject:s,cancelAddProject:j,showMembers:M,setMemebers:b,showEnv:C,showAddMemberDialog:V,addMember:f,chooseMember:n,deleteMember:F,cancelAddMember:v,showAddEnvDialog:A,addEnv:P,cancelAddEnv:r,getAccount:w})}}),le={class:"project-list"},ae=u("\u6DFB\u52A0"),te=u("\u7F16\u8F91"),se=u("\u6210\u5458\u7BA1\u7406"),ue=u("\u73AF\u5883\u7BA1\u7406"),ne=u("\u5220\u9664"),de={style:{float:"right"}},ie=g("i",null,null,-1),re={class:"dialog-footer"},me=u("\u53D6 \u6D88"),pe=u("\u786E \u5B9A"),ce={class:"toolbar"},ge=u("\u6DFB\u52A0"),De={class:"dialog-footer"},he=u("\u53D6 \u6D88"),be=u("\u786E \u5B9A"),fe={class:"toolbar"},we=u("\u6DFB\u52A0"),ve=u("\u79FB\u9664"),Fe=g("i",null,null,-1),Ee={class:"dialog-footer"},ye=u("\u53D6 \u6D88"),Me=u("\u786E \u5B9A");function je(e,l,d,q,j,$){const s=i("el-button"),h=i("el-input"),M=i("el-radio"),n=i("el-table-column"),F=i("el-table"),b=i("el-pagination"),C=i("el-row"),V=i("el-card"),f=i("el-form-item"),v=i("el-form"),w=i("el-dialog"),A=i("el-option"),P=i("el-select"),r=Y("auth");return m(),z("div",le,[a(V,null,{default:t(()=>[g("div",null,[D((m(),c(s,{onClick:e.showAddProjectDialog,type:"primary",icon:"plus"},{default:t(()=>[ae]),_:1},8,["onClick"])),[[r,e.permissions.saveProject]]),D((m(),c(s,{onClick:l[0]||(l[0]=o=>e.showAddProjectDialog(e.chooseData)),disabled:e.chooseId==null,type:"primary",icon:"edit"},{default:t(()=>[te]),_:1},8,["disabled"])),[[r,e.permissions.saveProject]]),a(s,{onClick:l[1]||(l[1]=o=>e.showMembers(e.chooseData)),disabled:e.chooseId==null,type:"success",icon:"user"},{default:t(()=>[se]),_:1},8,["disabled"]),a(s,{onClick:l[2]||(l[2]=o=>e.showEnv(e.chooseData)),disabled:e.chooseId==null,type:"info",icon:"setting"},{default:t(()=>[ue]),_:1},8,["disabled"]),D((m(),c(s,{onClick:e.delProject,disabled:e.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ne]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delProject]]),g("div",de,[a(h,{class:"mr2",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\uFF01",style:{width:"200px"},modelValue:e.query.name,"onUpdate:modelValue":l[3]||(l[3]=o=>e.query.name=o),onClear:e.search,clearable:""},null,8,["modelValue","onClear"]),a(s,{onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])])]),a(F,{data:e.projects,onCurrentChange:e.choose,ref:"table",style:{width:"100%"}},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"55px"},{default:t(o=>[a(M,{modelValue:e.chooseId,"onUpdate:modelValue":l[4]||(l[4]=E=>e.chooseId=E),label:o.row.id},{default:t(()=>[ie]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{prop:"name",label:"\u9879\u76EE\u540D"}),a(n,{prop:"remark",label:"\u63CF\u8FF0","min-width":"180px","show-overflow-tooltip":""}),a(n,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{prop:"creator",label:"\u521B\u5EFA\u8005"})]),_:1},8,["data","onCurrentChange"]),a(C,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:t(()=>[a(b,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":l[5]||(l[5]=o=>e.query.pageNum=o),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),a(w,{width:"400px",title:"\u9879\u76EE\u7F16\u8F91","before-close":e.cancelAddProject,modelValue:e.addProjectDialog.visible,"onUpdate:modelValue":l[9]||(l[9]=o=>e.addProjectDialog.visible=o)},{footer:t(()=>[g("div",re,[a(s,{onClick:l[8]||(l[8]=o=>e.cancelAddProject())},{default:t(()=>[me]),_:1}),a(s,{onClick:e.addProject,type:"primary"},{default:t(()=>[pe]),_:1},8,["onClick"])])]),default:t(()=>[a(v,{model:e.addProjectDialog.form,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u9879\u76EE\u540D:",required:""},{default:t(()=>[a(h,{disabled:!!e.addProjectDialog.form.id,modelValue:e.addProjectDialog.form.name,"onUpdate:modelValue":l[6]||(l[6]=o=>e.addProjectDialog.form.name=o),"auto-complete":"off"},null,8,["disabled","modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.addProjectDialog.form.remark,"onUpdate:modelValue":l[7]||(l[7]=o=>e.addProjectDialog.form.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"]),a(w,{width:"500px",title:e.showEnvDialog.title,modelValue:e.showEnvDialog.visible,"onUpdate:modelValue":l[14]||(l[14]=o=>e.showEnvDialog.visible=o)},{default:t(()=>[g("div",ce,[D((m(),c(s,{onClick:e.showAddEnvDialog,type:"primary",icon:"plus"},{default:t(()=>[ge]),_:1},8,["onClick"])),[[r,e.permissions.saveMember]])]),a(F,{border:"",data:e.showEnvDialog.envs},{default:t(()=>[a(n,{property:"name",label:"\u73AF\u5883\u540D",width:"125"}),a(n,{property:"remark",label:"\u63CF\u8FF0",width:"125"}),a(n,{property:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1})]),_:1},8,["data"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u73AF\u5883","before-close":e.cancelAddEnv,modelValue:e.showEnvDialog.addVisible,"onUpdate:modelValue":l[13]||(l[13]=o=>e.showEnvDialog.addVisible=o)},{footer:t(()=>[g("div",De,[a(s,{onClick:l[12]||(l[12]=o=>e.cancelAddEnv())},{default:t(()=>[he]),_:1}),D((m(),c(s,{onClick:e.addEnv,type:"primary",loading:e.btnLoading},{default:t(()=>[be]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveEnv]])])]),default:t(()=>[a(v,{model:e.showEnvDialog.envForm,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u73AF\u5883\u540D:",required:""},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.name,"onUpdate:modelValue":l[10]||(l[10]=o=>e.showEnvDialog.envForm.name=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.remark,"onUpdate:modelValue":l[11]||(l[11]=o=>e.showEnvDialog.envForm.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"]),a(w,{width:"500px",title:e.showMemDialog.title,modelValue:e.showMemDialog.visible,"onUpdate:modelValue":l[21]||(l[21]=o=>e.showMemDialog.visible=o)},{default:t(()=>[g("div",fe,[D((m(),c(s,{onClick:l[15]||(l[15]=o=>e.showAddMemberDialog()),type:"primary",icon:"plus"},{default:t(()=>[we]),_:1})),[[r,e.permissions.saveMember]]),D((m(),c(s,{onClick:e.deleteMember,disabled:e.showMemDialog.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ve]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delMember]])]),a(F,{onCurrentChange:e.chooseMember,border:"",data:e.showMemDialog.members.list},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"50px"},{default:t(o=>[a(M,{modelValue:e.showMemDialog.chooseId,"onUpdate:modelValue":l[16]||(l[16]=E=>e.showMemDialog.chooseId=E),label:o.row.id},{default:t(()=>[Fe]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{property:"username",label:"\u8D26\u53F7",width:"125"}),a(n,{property:"createTime",label:"\u52A0\u5165\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{property:"creator",label:"\u5206\u914D\u8005",width:"125"})]),_:1},8,["onCurrentChange","data"]),a(b,{onCurrentChange:e.setMemebers,style:{"text-align":"center"},background:"",layout:"prev, pager, next, total, jumper",total:e.showMemDialog.members.total,"current-page":e.showMemDialog.query.pageNum,"onUpdate:current-page":l[17]||(l[17]=o=>e.showMemDialog.query.pageNum=o),"page-size":e.showMemDialog.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u6210\u5458","before-close":e.cancelAddMember,modelValue:e.showMemDialog.addVisible,"onUpdate:modelValue":l[20]||(l[20]=o=>e.showMemDialog.addVisible=o)},{footer:t(()=>[g("div",Ee,[a(s,{onClick:l[19]||(l[19]=o=>e.cancelAddMember())},{default:t(()=>[ye]),_:1}),D((m(),c(s,{onClick:e.addMember,type:"primary",loading:e.btnLoading},{default:t(()=>[Me]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveMember]])])]),default:t(()=>[a(v,{model:e.showMemDialog.memForm,"label-width":"70px"},{default:t(()=>[a(f,{label:"\u8D26\u53F7:"},{default:t(()=>[a(P,{style:{width:"100%"},remote:"","remote-method":e.getAccount,modelValue:e.showMemDialog.memForm.accountId,"onUpdate:modelValue":l[18]||(l[18]=o=>e.showMemDialog.memForm.accountId=o),filterable:"",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7\u6A21\u7CCA\u641C\u7D22\u5E76\u9009\u62E9"},{default:t(()=>[(m(!0),z(Z,null,x(e.showMemDialog.accounts,o=>(m(),c(A,{key:o.id,label:o.username,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["remote-method","modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"])])}var Ie=K(oe,[["render",je]]);export{Ie as default}; diff --git a/server/static/static/assets/SqlExecBox.1661345446364.css b/server/static/static/assets/SqlExecBox.1661345446364.css new file mode 100644 index 00000000..0ff166b3 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.css @@ -0,0 +1 @@ +.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::selection,.cm-s-base16-light .CodeMirror-line>span::selection,.cm-s-base16-light .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::-moz-selection,.cm-s-base16-light .CodeMirror-line>span::-moz-selection,.cm-s-base16-light .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-gutters{background:#f5f5f5;border-right:0px}.cm-s-base16-light .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light .CodeMirror-guttermarker-subtle,.cm-s-base16-light .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light span.cm-comment{color:#8f5536}.cm-s-base16-light span.cm-atom,.cm-s-base16-light span.cm-number{color:#aa759f}.cm-s-base16-light span.cm-property,.cm-s-base16-light span.cm-attribute{color:#90a959}.cm-s-base16-light span.cm-keyword{color:#ac4142}.cm-s-base16-light span.cm-string{color:#f4bf75}.cm-s-base16-light span.cm-variable{color:#90a959}.cm-s-base16-light span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light span.cm-def{color:#d28445}.cm-s-base16-light span.cm-bracket{color:#202020}.cm-s-base16-light span.cm-tag{color:#ac4142}.cm-s-base16-light span.cm-link{color:#aa759f}.cm-s-base16-light span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light .CodeMirror-activeline-background{background:#DDDCDC}.cm-s-base16-light .CodeMirror-matchingbracket{color:#f5f5f5!important;background-color:#6a9fb5!important}.codesql{font-size:9pt;font-weight:600} diff --git a/server/static/static/assets/SqlExecBox.1661345446364.js b/server/static/static/assets/SqlExecBox.1661345446364.js new file mode 100644 index 00000000..0ad57e21 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.js @@ -0,0 +1,21 @@ +var TT=Object.defineProperty,RT=Object.defineProperties;var AT=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var tT=Object.prototype.hasOwnProperty,ST=Object.prototype.propertyIsEnumerable;var fe=(R,e,S)=>e in R?TT(R,e,{enumerable:!0,configurable:!0,writable:!0,value:S}):R[e]=S,Ue=(R,e)=>{for(var S in e||(e={}))tT.call(e,S)&&fe(R,S,e[S]);if(Me)for(var S of Me(e))ST.call(e,S)&&fe(R,S,e[S]);return R},le=(R,e)=>RT(R,AT(e));import{A as OT,Z as rT,$ as IT,a0 as NT,q as nT,r as _T,t as LT,E as gE,m as CT,_ as oT,b as OE,d as aT,e as iT,g as RE,w as rE,h as PT,B as Xe,a1 as uT,a2 as DT}from"./index.1661345446364.js";import{A as k}from"./Api.1661345446364.js";import{c as sT}from"./codemirror.1661345446364.js";const MT={dbs:k.create("/dbs","get"),saveDb:k.create("/dbs","post"),getAllDatabase:k.create("/dbs/databases","post"),getDbPwd:k.create("/dbs/{id}/pwd","get"),deleteDb:k.create("/dbs/{id}","delete"),dumpDb:k.create("/dbs/{id}/dump","post"),tableInfos:k.create("/dbs/{id}/t-infos","get"),tableIndex:k.create("/dbs/{id}/t-index","get"),tableDdl:k.create("/dbs/{id}/t-create-ddl","get"),tableMetadata:k.create("/dbs/{id}/t-metadata","get"),columnMetadata:k.create("/dbs/{id}/c-metadata","get"),hintTables:k.create("/dbs/{id}/hint-tables","get"),sqlExec:k.create("/dbs/{id}/exec-sql","post"),saveSql:k.create("/dbs/{id}/sql","post"),getSql:k.create("/dbs/{id}/sql","get"),getSqlNames:k.create("/dbs/{id}/sql-names","get"),deleteDbSql:k.create("/dbs/{id}/sql","delete"),getSqlExecs:k.create("/dbs/{dbId}/sql-execs","get")};var ge={},$={},wE={exports:{}},J={exports:{}},SE={};Object.defineProperty(SE,"__esModule",{value:!0});SE.indentString=fT;SE.isTabularStyle=UT;function fT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"?" ".repeat(10):R.useTabs?" ":" ".repeat(R.tabWidth)}function UT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"}var kE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function S(c,C){if(!(c instanceof C))throw new TypeError("Cannot call a class as a function")}function r(c,C){for(var G=0;G0?{type:r.NodeType.statement,children:a,hasSemicolon:!1}:void 0;a.push(this.expression())}}},{key:"expression",value:function(){return this.limitClause()||this.clause()||this.setOperation()||this.functionCall()||this.arraySubscript()||this.parenthesis()||this.betweenPredicate()||this.allColumnsAsterisk()||this.nextTokenNode()}},{key:"clause",value:function(){if(this.look().type===S.TokenType.RESERVED_COMMAND){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.clause,nameToken:a,children:o}}}},{key:"setOperation",value:function(){if(this.look().type===S.TokenType.RESERVED_SET_OPERATION){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.set_operation,nameToken:a,children:o}}}},{key:"functionCall",value:function(){if(this.look().type===S.TokenType.RESERVED_FUNCTION_NAME&&this.look(1).text==="(")return{type:r.NodeType.function_call,nameToken:this.next(),parenthesis:this.parenthesis()}}},{key:"arraySubscript",value:function(){if((this.look().type===S.TokenType.RESERVED_KEYWORD||this.look().type===S.TokenType.IDENTIFIER)&&this.look(1).text==="[")return{type:r.NodeType.array_subscript,arrayToken:this.next(),parenthesis:this.parenthesis()}}},{key:"parenthesis",value:function(){if(this.look().type===S.TokenType.OPEN_PAREN){for(var a=[],o=this.next(),I=o.text,M="";this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.EOF;)a.push(this.expression());return this.look().type===S.TokenType.CLOSE_PAREN&&(M=this.next().text),{type:r.NodeType.parenthesis,children:a,openParen:I,closeParen:M}}}},{key:"betweenPredicate",value:function(){if(S.isToken.BETWEEN(this.look())&&S.isToken.AND(this.look(2)))return{type:r.NodeType.between_predicate,betweenToken:this.next(),expr1:this.next(),andToken:this.next(),expr2:this.next()}}},{key:"limitClause",value:function(){if(S.isToken.LIMIT(this.look())){var a=this.next(),o=this.expressionsUntilClauseEnd(function(M){return M.type===S.TokenType.COMMA});if(this.look().type===S.TokenType.COMMA){this.next();var I=this.expressionsUntilClauseEnd();return{type:r.NodeType.limit_clause,limitToken:a,offset:o,count:I}}else return{type:r.NodeType.limit_clause,limitToken:a,count:o}}}},{key:"allColumnsAsterisk",value:function(){if(this.look().text==="*"&&S.isToken.SELECT(this.look(-1)))return this.next(),{type:r.NodeType.all_columns_asterisk}}},{key:"expressionsUntilClauseEnd",value:function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},o=[];this.look().type!==S.TokenType.RESERVED_COMMAND&&this.look().type!==S.TokenType.RESERVED_SET_OPERATION&&this.look().type!==S.TokenType.EOF&&this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.DELIMITER&&!a(this.look());)o.push(this.expression());return o}},{key:"look",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.tokens[this.index+a]||S.EOF_TOKEN}},{key:"next",value:function(){return this.tokens[this.index++]||S.EOF_TOKEN}},{key:"nextTokenNode",value:function(){return{type:r.NodeType.token,token:this.next()}}}]),G}();e.default=C,R.exports=e.default})(xE,xE.exports);var QE={exports:{}},h={};Object.defineProperty(h,"__esModule",{value:!0});h.sum=h.sortByLengthDesc=h.maxLength=h.last=h.flatKeywordList=h.equalizeWhitespace=h.dedupe=void 0;function yT(R,e){var S=typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(!S){if(Array.isArray(R)||(S=Ke(R))||e&&R&&typeof R.length=="number"){S&&(R=S);var r=0,f=function(){};return{s:f,n:function(){return r>=R.length?{done:!0}:{done:!1,value:R[r++]}},e:function(G){throw G},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,U=!1,c;return{s:function(){S=S.call(R)},n:function(){var G=S.next();return p=G.done,G},e:function(G){U=!0,c=G},f:function(){try{!p&&S.return!=null&&S.return()}finally{if(U)throw c}}}}function HT(R){return YT(R)||FT(R)||Ke(R)||BT()}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ke(R,e){if(!!R){if(typeof R=="string")return ZE(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return ZE(R,e)}}function FT(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function YT(R){if(Array.isArray(R))return ZE(R)}function ZE(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);Sd.length)&&(H=d.length);for(var i=0,u=new Array(H);iL.length)&&(a=L.length);for(var o=0,I=new Array(a);o=o.length?{done:!0}:{done:!1,value:o[y++]}},e:function(s){throw s},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,i=!1,u;return{s:function(){M=M.call(o)},n:function(){var s=M.next();return H=s.done,s},e:function(s){i=!0,u=s},f:function(){try{!H&&M.return!=null&&M.return()}finally{if(i)throw u}}}}function U(o,I){if(!!o){if(typeof o=="string")return c(o,I);var M=Object.prototype.toString.call(o).slice(8,-1);if(M==="Object"&&o.constructor&&(M=o.constructor.name),M==="Map"||M==="Set")return Array.from(o);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(o,I)}}function c(o,I){(I==null||I>o.length)&&(I=o.length);for(var M=0,y=new Array(I);Mthis.expressionWidth)return y}}catch(u){d.e(u)}finally{d.f()}return y}},{key:"betweenWidth",value:function(M){return(0,S.sum)([M.betweenToken,M.expr1,M.andToken,M.expr2].map(function(y){return y.text.length}))}},{key:"isForbiddenToken",value:function(M){return M.type===r.TokenType.RESERVED_LOGICAL_OPERATOR||M.type===r.TokenType.LINE_COMMENT||M.type===r.TokenType.BLOCK_COMMENT||r.isToken.CASE(M)}}]),o}();e.default=a,R.exports=e.default})($E,$E.exports);var ue={};(function(R){Object.defineProperty(R,"__esModule",{value:!0}),R.default=R.WS=void 0;var e=h;function S(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function r(L,a){for(var o=0;o0)switch((0,e.last)(this.items)){case U.NEWLINE:this.items.pop(),this.items.push(o);break;case U.MANDATORY_NEWLINE:break;default:this.items.push(o);break}}},{key:"addIndentation",value:function(){for(var o=0;oI.length)&&(M=I.length);for(var y=0,d=new Array(M);y=10&&I.includes(" ")){var d=I.split(" "),H=p(d);I=H[0],y=H.slice(1)}return M==="tabularLeft"?I=I.padEnd(9," "):I=I.padStart(9," "),I+[""].concat(S(y)).join(" ")}function o(I){return I.type===e.TokenType.RESERVED_LOGICAL_OPERATOR||I.type===e.TokenType.RESERVED_DEPENDENT_CLAUSE||I.type===e.TokenType.RESERVED_COMMAND||I.type===e.TokenType.RESERVED_SET_OPERATION||I.type===e.TokenType.RESERVED_JOIN}})(ke);(function(R,e){function S(i){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},S(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h,f=SE,p=X,U=z,c=o($E.exports),C=ue,G=a(ke);function L(i){if(typeof WeakMap!="function")return null;var u=new WeakMap,n=new WeakMap;return(L=function(F){return F?n:u})(i)}function a(i,u){if(!u&&i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var n=L(u);if(n&&n.has(i))return n.get(i);var s={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in i)if(v!=="default"&&Object.prototype.hasOwnProperty.call(i,v)){var P=F?Object.getOwnPropertyDescriptor(i,v):null;P&&(P.get||P.set)?Object.defineProperty(s,v,P):s[v]=i[v]}return s.default=i,n&&n.set(i,s),s}function o(i){return i&&i.__esModule?i:{default:i}}function I(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function M(i,u){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:this.inline;return new i({cfg:this.cfg,params:this.params,layout:this.layout,inline:s}).format(n)}},{key:"formatToken",value:function(n){switch(n.type){case p.TokenType.LINE_COMMENT:return this.formatLineComment(n);case p.TokenType.BLOCK_COMMENT:return this.formatBlockComment(n);case p.TokenType.RESERVED_JOIN:return this.formatJoin(n);case p.TokenType.RESERVED_DEPENDENT_CLAUSE:return this.formatDependentClause(n);case p.TokenType.RESERVED_LOGICAL_OPERATOR:return this.formatLogicalOperator(n);case p.TokenType.RESERVED_KEYWORD:case p.TokenType.RESERVED_FUNCTION_NAME:case p.TokenType.RESERVED_PHRASE:return this.formatKeyword(n);case p.TokenType.RESERVED_CASE_START:return this.formatCaseStart(n);case p.TokenType.RESERVED_CASE_END:return this.formatCaseEnd(n);case p.TokenType.COMMA:return this.formatComma(n);case p.TokenType.OPERATOR:return this.formatOperator(n);case p.TokenType.IDENTIFIER:case p.TokenType.QUOTED_IDENTIFIER:case p.TokenType.STRING:case p.TokenType.NUMBER:case p.TokenType.VARIABLE:case p.TokenType.NAMED_PARAMETER:case p.TokenType.QUOTED_PARAMETER:case p.TokenType.NUMBERED_PARAMETER:case p.TokenType.POSITIONAL_PARAMETER:return this.formatLiteral(n);default:throw new Error("Unexpected token type: ".concat(n.type))}}},{key:"formatLiteral",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLineComment",value:function(n){/\n/.test(n.precedingWhitespace||"")?this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT):this.layout.add(C.WS.NO_NEWLINE,C.WS.SPACE,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT)}},{key:"formatBlockComment",value:function(n){var s=this;this.splitBlockComment(n.text).forEach(function(F){s.layout.add(C.WS.NEWLINE,C.WS.INDENT,F)}),this.layout.add(C.WS.NEWLINE,C.WS.INDENT)}},{key:"splitBlockComment",value:function(n){return n.split(/\n/).map(function(s){return/^\s*\*/.test(s)?" "+s.replace(/^\s*/,""):s.replace(/^\s*/,"")})}},{key:"formatJoin",value:function(n){(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatKeyword",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatDependentClause",value:function(n){this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatOperator",value:function(n){if(n.text===":"){this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE);return}else if(n.text==="."||n.text==="::"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}else if(n.text==="@"&&this.cfg.language==="plsql"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}this.cfg.denseOperators?this.layout.add(C.WS.NO_SPACE,this.show(n)):this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLogicalOperator",value:function(n){this.cfg.logicalOperatorNewline==="before"?(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE):this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseStart",value:function(n){this.layout.indentation.increaseBlockLevel(),this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseEnd",value:function(n){this.formatMultilineBlockEnd(n)}},{key:"formatMultilineBlockEnd",value:function(n){this.layout.indentation.decreaseBlockLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatComma",value:function(n){this.inline?this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE):this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"show",value:function(n){return(0,G.isTabularToken)(n)?(0,G.default)(this.showToken(n),this.cfg.indentStyle):this.showToken(n)}},{key:"showNonTabular",value:function(n){return this.showToken(n)}},{key:"showToken",value:function(n){if((0,p.isReserved)(n))switch(this.cfg.keywordCase){case"preserve":return(0,r.equalizeWhitespace)(n.raw);case"upper":return n.text;case"lower":return n.text.toLowerCase()}else return(0,p.isParameter)(n)?this.params.get(n):n.text}}]),i}();e.default=H,R.exports=e.default})(qE,qE.exports);var zE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=h;function r(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function f(L,a){for(var o=0;o0&&(0,S.last)(this.indentTypes)===c&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0;){var o=this.indentTypes.pop();if(o!==c)break}}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}]),L}();e.default=G,R.exports=e.default})(zE,zE.exports);(function(R,e){function S(u){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=SE,f=I(kE.exports),p=I(xE.exports),U=I(QE.exports),c=I(jE.exports),C=I(qE.exports),G=o(ue),L=I(zE.exports);function a(u){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(a=function(v){return v?s:n})(u)}function o(u,n){if(!n&&u&&u.__esModule)return u;if(u===null||S(u)!=="object"&&typeof u!="function")return{default:u};var s=a(n);if(s&&s.has(u))return s.get(u);var F={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in u)if(P!=="default"&&Object.prototype.hasOwnProperty.call(u,P)){var t=v?Object.getOwnPropertyDescriptor(u,P):null;t&&(t.get||t.set)?Object.defineProperty(F,P,t):F[P]=u[P]}return F.default=u,s&&s.set(u,F),F}function I(u){return u&&u.__esModule?u:{default:u}}function M(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function y(u,n){for(var s=0;sR.length)&&(e=R.length);for(var S=0,r=new Array(e);S1&&arguments[1]!==void 0?arguments[1]:{};if(e.length===0)return/^\b$/;var r=ER(S),f=(0,Je.sortByLengthDesc)(e).map(w.toCaseInsensitivePattern).join("|").replace(/ /g,"\\s+");return new RegExp("(?:".concat(f,")").concat(r,"\\b"),"iuy")};g.reservedWord=eR;var TR=function(e,S){if(!!e.length){var r=e.map(w.escapeRegExp).join("|");return(0,w.patternToRegex)("(?:".concat(r,")(?:").concat(S,")"))}};g.parameter=TR;var RR=function(){var e={"<":">","[":"]","(":")","{":"}"},S="{left}(?:(?!{right}').)*?{right}",r=Object.entries(e).map(function(c){var C=xT(c,2),G=C[0],L=C[1];return S.replace(/{left}/g,(0,w.escapeRegExp)(G)).replace(/{right}/g,(0,w.escapeRegExp)(L))}),f=(0,w.escapeRegExp)(Object.keys(e).join("")),p=String.raw(ce||(ce=EE(["(?[^s","])(?:(?!k').)*?k"],["(?[^\\s","])(?:(?!\\k').)*?\\k"])),f),U="[Qq]'(?:".concat(p,"|").concat(r.join("|"),")'");return U},ee={"``":"(?:`[^`]*(?:$|`))+","[]":String.raw(Ge||(Ge=EE(["(?:[[^]]*(?:$|]))(?:][^]]*(?:$|]))*"],["(?:\\[[^\\]]*(?:$|\\]))(?:\\][^\\]]*(?:$|\\]))*"]))),'""':String.raw(pe||(pe=EE(['(?:"[^"\\]*(?:\\.[^"\\]*)*(?:"|$))+'],['(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*(?:"|$))+']))),"''":String.raw(de||(de=EE(["(?:'[^'\\]*(?:\\.[^'\\]*)*(?:'|$))+"],["(?:'[^'\\\\]*(?:\\\\.[^'\\\\]*)*(?:'|$))+"]))),$$:String.raw(ye||(ye=EE(["(?$w*$)[sS]*?(?:k|$)"],["(?\\$\\w*\\$)[\\s\\S]*?(?:\\k|$)"]))),"'''..'''":String.raw(He||(He=EE(["'''[^\\]*?(?:\\.[^\\]*?)*?(?:'''|$)"],["'''[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:'''|$)"]))),'""".."""':String.raw(Be||(Be=EE(['"""[^\\]*?(?:\\.[^\\]*?)*?(?:"""|$)'],['"""[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:"""|$)']))),"{}":String.raw(Fe||(Fe=EE(["(?:{[^}]*(?:$|}))"],["(?:\\{[^\\}]*(?:$|\\}))"]))),"q''":RR()};g.quotePatterns=ee;var Qe=function(e){return typeof e=="string"?ee[e]:(0,w.prefixesPattern)(e)+ee[e.quote]},AR=function(e){return(0,w.patternToRegex)(e.map(function(S){return"regex"in S?S.regex:Qe(S)}).join("|"))};g.variable=AR;var Ze=function(e){return e.map(Qe).join("|")};g.stringPattern=Ze;var tR=function(e){return(0,w.patternToRegex)(Ze(e))};g.string=tR;var SR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,w.patternToRegex)(je(e))};g.identifier=SR;var je=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=e.first,r=e.rest,f=e.dashes,p=e.allowFirstCharNumber,U="\\p{Alphabetic}\\p{Mark}_",c="\\p{Decimal_Number}",C=(0,w.escapeRegExp)(S!=null?S:""),G=(0,w.escapeRegExp)(r!=null?r:""),L=p?"[".concat(U).concat(c).concat(C,"][").concat(U).concat(c).concat(G,"]*"):"[".concat(U).concat(C,"][").concat(U).concat(c).concat(G,"]*");return f?(0,w.withDashes)(L):L};g.identifierPattern=je;var Te={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=X,r=x;function f(a,o){var I=Object.keys(a);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(a);o&&(M=M.filter(function(y){return Object.getOwnPropertyDescriptor(a,y).enumerable})),I.push.apply(I,M)}return I}function p(a){for(var o=1;oN.length)&&(E=N.length);for(var T=0,O=new Array(E);T<=.:$@#?~![]{}",["<>","<=",">=","!="].concat(y((m=T.operators)!==null&&m!==void 0?m:[])))}),V))}},{key:"buildParamRules",value:function(T,O){var D,l,B,Y,m,V={named:(O==null?void 0:O.named)||((D=T.paramTypes)===null||D===void 0?void 0:D.named)||[],quoted:(O==null?void 0:O.quoted)||((l=T.paramTypes)===null||l===void 0?void 0:l.quoted)||[],numbered:(O==null?void 0:O.numbered)||((B=T.paramTypes)===null||B===void 0?void 0:B.numbered)||[],positional:typeof(O==null?void 0:O.positional)=="boolean"?O.positional:(Y=T.paramTypes)===null||Y===void 0?void 0:Y.positional};return this.validRules((m={},A(m,r.TokenType.NAMED_PARAMETER,{regex:f.parameter(V.named,f.identifierPattern(T.paramChars||T.identChars)),key:function(b){return b.slice(1)}}),A(m,r.TokenType.QUOTED_PARAMETER,{regex:f.parameter(V.quoted,f.stringPattern(T.identTypes)),key:function(b){return function(TE){var XE=TE.tokenKey,se=TE.quoteChar;return XE.replace(new RegExp((0,U.escapeRegExp)("\\"+se),"gu"),se)}({tokenKey:b.slice(2,-1),quoteChar:b.slice(-1)})}}),A(m,r.TokenType.NUMBERED_PARAMETER,{regex:f.parameter(V.numbered,"[0-9]+"),key:function(b){return b.slice(1)}}),A(m,r.TokenType.POSITIONAL_PARAMETER,{regex:V.positional?new RegExp("[?]","y"):void 0}),m))}},{key:"validRules",value:function(T){return Object.fromEntries(Object.entries(T).filter(function(O){var D=a(O,2);D[0];var l=D[1];return l.regex}))}}]),N}();e.default=_,R.exports=e.default})(Q,Q.exports);var K={};Object.defineProperty(K,"__esModule",{value:!0});K.expandSinglePhrase=K.expandPhrases=void 0;function OR(R){return IR(R)||$e(R)||qe(R)||rR()}function rR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(R){if(Array.isArray(R))return R}function NR(R){return _R(R)||$e(R)||qe(R)||nR()}function nR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(R,e){if(!!R){if(typeof R=="string")return Re(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return Re(R,e)}}function $e(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function _R(R){if(Array.isArray(R))return Re(R)}function Re(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);S>","<<","||"]);function N(l){return E(T(l))}function E(l){var B=p.EOF_TOKEN;return l.map(function(Y){return Y.text==="OFFSET"&&B.text==="["?(B=Y,a(a({},Y),{},{type:p.TokenType.RESERVED_FUNCTION_NAME})):(B=Y,Y)})}function T(l){for(var B=[],Y=0;Y"?Y--:V.text===">>"&&(Y-=2),Y===0)return m}return l.length-1}R.exports=e.default})(wE,wE.exports);var Ae={exports:{}},LE={};Object.defineProperty(LE,"__esModule",{value:!0});LE.functions=void 0;var DR=h,sR=(0,DR.flatKeywordList)({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","RATIO_TO_REPORT"],cast:["CAST"]});LE.functions=sR;var CE={};Object.defineProperty(CE,"__esModule",{value:!0});CE.keywords=void 0;var MR=h,fR=(0,MR.flatKeywordList)({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]});CE.keywords=fR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=LE,c=CE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","\xAC<","!>","!<","||"]),R.exports=e.default})(Ae,Ae.exports);var te={exports:{}},oE={};Object.defineProperty(oE,"__esModule",{value:!0});oE.functions=void 0;var UR=h,lR=(0,UR.flatKeywordList)({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]});oE.functions=lR;var aE={};Object.defineProperty(aE,"__esModule",{value:!0});aE.keywords=void 0;var cR=h,GR=(0,cR.flatKeywordList)({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]});aE.keywords=GR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=oE,c=aE;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A","==","||"]),R.exports=e.default})(te,te.exports);var Se={exports:{}},iE={};Object.defineProperty(iE,"__esModule",{value:!0});iE.keywords=void 0;var pR=h,dR=(0,pR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]});iE.keywords=dR;var PE={};Object.defineProperty(PE,"__esModule",{value:!0});PE.functions=void 0;var yR=h,HR=(0,yR.flatKeywordList)({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]});PE.functions=HR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=iE,C=PE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Se,Se.exports);var Oe={exports:{}},uE={};Object.defineProperty(uE,"__esModule",{value:!0});uE.keywords=void 0;var BR=h,FR=(0,BR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]});uE.keywords=FR;var DE={};Object.defineProperty(DE,"__esModule",{value:!0});DE.functions=void 0;var YR=h,vR=(0,YR.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});DE.functions=vR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=uE,C=DE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||","->","->>"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Oe,Oe.exports);var re={exports:{}},sE={};Object.defineProperty(sE,"__esModule",{value:!0});sE.functions=void 0;var hR=h,VR=(0,hR.flatKeywordList)({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]});sE.functions=VR;var ME={};Object.defineProperty(ME,"__esModule",{value:!0});ME.keywords=void 0;var mR=h,WR=(0,mR.flatKeywordList)({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]});ME.keywords=WR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=sE,c=ME;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A>","<<","=>"]);function N(E){var T=U.EOF_TOKEN;return E.map(function(O){return U.isToken.SET(O)&&U.isToken.BY(T)?a(a({},O),{},{type:U.TokenType.RESERVED_KEYWORD}):((0,U.isReserved)(O)&&(T=O),O)})}R.exports=e.default})(Ie,Ie.exports);var Ne={exports:{}},lE={};Object.defineProperty(lE,"__esModule",{value:!0});lE.functions=void 0;var wR=h,kR=(0,wR.flatKeywordList)({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]});lE.functions=kR;var cE={};Object.defineProperty(cE,"__esModule",{value:!0});cE.keywords=void 0;var xR=h,JR=(0,xR.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]});cE.keywords=JR;(function(R,e){function S(A){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},S(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=lE,c=cE;function C(A){return A&&A.__esModule?A:{default:A}}function G(A,_){if(!(A instanceof _))throw new TypeError("Cannot call a class as a function")}function L(A,_){for(var N=0;N<_.length;N++){var E=_[N];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function a(A,_,N){return _&&L(A.prototype,_),N&&L(A,N),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(_&&_.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),_&&I(A,_)}function I(A,_){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},I(A,_)}function M(A){var _=H();return function(){var E=i(A),T;if(_){var O=i(this).constructor;T=Reflect.construct(E,arguments,O)}else T=E.apply(this,arguments);return y(this,T)}}function y(A,_){if(_&&(S(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(A)}function d(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function H(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(A){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},i(A)}function u(A,_,N){return _ in A?Object.defineProperty(A,_,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[_]=N,A}var n=(0,r.expandPhrases)(["WITH [RECURSIVE]","SELECT [ALL | DISTINCT]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE [ONLY]","SET","WHERE CURRENT OF","DELETE FROM [ONLY]","TRUNCATE [TABLE] [ONLY]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DO","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","RETURNING","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM","AFTER","SET SCHEMA"]),s=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),F=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),v=["ON DELETE","ON UPDATE"],P=["<<",">>","|/","||/","!!","||","~~","~~*","!~~","!~~*","~","~*","!~","!~*","<%","<<%","%>","%>>","~>~","~<~","~>=~","~<=~","@-@","@@","#","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=",">>=","<<=","@@@","?","@?","?&","->","->>","#>","#>>","#-",":=","::","=>","-|-"],t=function(A){o(N,A);var _=M(N);function N(){return G(this,N),_.apply(this,arguments)}return a(N,[{key:"tokenizer",value:function(){return new p.default({reservedCommands:n,reservedSetOperations:s,reservedJoins:F,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:v,reservedKeywords:c.keywords,reservedFunctionNames:U.functions,openParens:["(","["],closeParens:[")","]"],stringTypes:["$$",{quote:"''",prefixes:["B","E","X","U&"]}],identTypes:[{quote:'""',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:N.operators})}}]),N}(f.default);e.default=t,u(t,"operators",P),R.exports=e.default})(Ne,Ne.exports);var ne={exports:{}},GE={};Object.defineProperty(GE,"__esModule",{value:!0});GE.functions=void 0;var QR=h,ZR=(0,QR.flatKeywordList)({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]});GE.functions=ZR;var pE={};Object.defineProperty(pE,"__esModule",{value:!0});pE.keywords=void 0;var jR=h,qR=(0,jR.flatKeywordList)({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]});pE.keywords=qR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=GE,c=pE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_>","||"]),R.exports=e.default})(ne,ne.exports);var _e={exports:{}},dE={};Object.defineProperty(dE,"__esModule",{value:!0});dE.keywords=void 0;var $R=h,zR=(0,$R.flatKeywordList)({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]});dE.keywords=zR;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});yE.functions=void 0;var EA=h,eA=(0,EA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]});yE.functions=eA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=dE,C=yE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","&&","||","==","->"]);function N(E){return E.map(function(T,O){var D=E[O-1]||U.EOF_TOKEN,l=E[O+1]||U.EOF_TOKEN;return U.isToken.WINDOW(T)&&l.type===U.TokenType.OPEN_PAREN?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T.text==="ITEMS"&&T.type===U.TokenType.RESERVED_KEYWORD&&!(D.text==="COLLECTION"&&l.text==="TERMINATED")?a(a({},T),{},{type:U.TokenType.IDENTIFIER,text:T.raw}):T})}R.exports=e.default})(_e,_e.exports);var Le={exports:{}},HE={};Object.defineProperty(HE,"__esModule",{value:!0});HE.functions=void 0;var TA=h,RA=(0,TA.flatKeywordList)({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]});HE.functions=RA;var BE={};Object.defineProperty(BE,"__esModule",{value:!0});BE.keywords=void 0;var AA=h,tA=(0,AA.flatKeywordList)({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]});BE.keywords=tA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=HE,c=BE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","->>","||","<<",">>","=="]),R.exports=e.default})(Le,Le.exports);var Ce={exports:{}},FE={};Object.defineProperty(FE,"__esModule",{value:!0});FE.functions=void 0;var SA=h,OA=(0,SA.flatKeywordList)({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]});FE.functions=OA;var YE={};Object.defineProperty(YE,"__esModule",{value:!0});YE.keywords=void 0;var rA=h,IA=(0,rA.flatKeywordList)({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]});YE.keywords=IA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=FE,c=YE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_"]),R.exports=e.default})(oe,oe.exports);var ae={exports:{}},VE={};Object.defineProperty(VE,"__esModule",{value:!0});VE.functions=void 0;var CA=h,oA=(0,CA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["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:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","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"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","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"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]});VE.functions=oA;var mE={};Object.defineProperty(mE,"__esModule",{value:!0});mE.keywords=void 0;var aA=h,iA=(0,aA.flatKeywordList)({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]});mE.keywords=iA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=VE,c=mE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","+=","-=","*=","/=","%=","|=","&=","^=","::"]),R.exports=e.default})(ae,ae.exports);var ie={exports:{}},WE={};Object.defineProperty(WE,"__esModule",{value:!0});WE.keywords=void 0;var PA=h,uA=(0,PA.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]});WE.keywords=uA;var bE={};Object.defineProperty(bE,"__esModule",{value:!0});bE.functions=void 0;var DA=h,sA=(0,DA.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});bE.functions=sA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=WE,C=bE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","<<",">>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(ie,ie.exports);Object.defineProperty($,"__esModule",{value:!0});$.supportedDialects=$.formatters=$.format=$.ConfigError=void 0;var MA=q(wE.exports),fA=q(Ae.exports),UA=q(te.exports),lA=q(Se.exports),cA=q(Oe.exports),GA=q(re.exports),pA=q(Ie.exports),dA=q(Ne.exports),yA=q(ne.exports),HA=q(_e.exports),BA=q(Le.exports),FA=q(Ce.exports),YA=q(oe.exports),vA=q(ae.exports),hA=q(ie.exports);function q(R){return R&&R.__esModule?R:{default:R}}function me(R,e){for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+NE(e));var r=JA(be(be({},kA),S)),f=typeof r.language=="string"?De[r.language]:r.language;return new f(r).format(e)};$.format=xA;var eE=function(R){WA(S,R);var e=bA(S);function S(){return mA(this,S),e.apply(this,arguments)}return VA(S)}(Pe(Error));$.ConfigError=eE;function JA(R){if(typeof R.language=="string"&&!eT.includes(R.language))throw new eE("Unsupported SQL dialect: ".concat(R.language));if("multilineLists"in R)throw new eE("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in R)throw new eE("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in R)throw new eE("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in R)throw new eE("aliasAs config is no more supported.");if(R.expressionWidth<=0)throw new eE("expressionWidth config must be positive number. Received ".concat(R.expressionWidth," instead."));if(R.commaPosition==="before"&&R.useTabs)throw new eE("commaPosition: before does not work when tabs are used for indentation.");return R.params&&!QA(R.params)&&console.warn('WARNING: All "params" option values should be strings.'),R}function QA(R){var e=R instanceof Array?R:Object.values(R);return e.every(function(S){return typeof S=="string"})}(function(R){Object.defineProperty(R,"__esModule",{value:!0});var e={Formatter:!0,Tokenizer:!0,expandPhrases:!0};Object.defineProperty(R,"Formatter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(R,"Tokenizer",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(R,"expandPhrases",{enumerable:!0,get:function(){return p.expandPhrases}});var S=$;Object.keys(S).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(e,c)||c in R&&R[c]===S[c]||Object.defineProperty(R,c,{enumerable:!0,get:function(){return S[c]}})});var r=U(J.exports),f=U(Q.exports),p=K;function U(c){return c&&c.__esModule?c:{default:c}}})(ge);const ZA=OT({name:"SqlExecDialog",components:{codemirror:sT,ElButton:rT,ElDialog:IT,ElInput:NT},props:{visible:{type:Boolean},dbId:{type:[Number]},db:{type:String},sql:{type:String}},setup(R){const e=nT(),S=_T({dialogVisible:!1,sqlValue:"",dbId:0,db:"",remark:"",btnLoading:!1,cmOptions:{tabSize:4,mode:"text/x-sql",lineNumbers:!0,line:!0,indentWithTabs:!0,smartIndent:!0,matchBrackets:!0,theme:"base16-light",autofocus:!0,extraKeys:{Tab:"autocomplete"}}});S.sqlValue=R.sql;let r,f,p=!1;const U=async()=>{if(!S.remark){gE.error("\u8BF7\u8F93\u5165\u6267\u884C\u7684\u5907\u6CE8\u4FE1\u606F");return}try{S.btnLoading=!0;const G=await MT.sqlExec.request({id:S.dbId,db:S.db,remark:S.remark,sql:S.sqlValue.trim()});parseInt(G.res[0].\u5F71\u54CD\u6761\u6570)>=1?(gE.success("\u6267\u884C\u6210\u529F"),p=!0):(gE.error("\u6267\u884C\u5931\u8D25"),p=!1)}catch{p=!1}p&&r&&r(),S.btnLoading=!1,c()},c=()=>{S.dialogVisible=!1,!p&&f&&f(),setTimeout(()=>{S.dbId=0,S.sqlValue="",S.remark="",r=null,f=null,p=!1},200)},C=G=>{r=G.runSuccessCallback,f=G.cancelCallback,S.sqlValue=ge.format(G.sql),S.dbId=G.dbId,S.db=G.db,S.dialogVisible=!0,CT(()=>{setTimeout(()=>{var L;(L=e.value)==null||L.focus()})})};return le(Ue({},LT(S)),{remarkInputRef:e,open:C,runSql:U,cancel:c})}}),jA={class:"dialog-footer"},qA=Xe("\u53D6 \u6D88"),$A=Xe("\u6267 \u884C");function zA(R,e,S,r,f,p){const U=OE("codemirror"),c=OE("el-input"),C=OE("el-button"),G=OE("el-dialog");return aT(),iT("div",null,[RE(G,{title:"\u5F85\u6267\u884CSQL",modelValue:R.dialogVisible,"onUpdate:modelValue":e[2]||(e[2]=L=>R.dialogVisible=L),"show-close":!1,width:"600px"},{footer:rE(()=>[PT("span",jA,[RE(C,{onClick:R.cancel},{default:rE(()=>[qA]),_:1},8,["onClick"]),RE(C,{onClick:R.runSql,type:"primary",loading:R.btnLoading},{default:rE(()=>[$A]),_:1},8,["onClick","loading"])])]),default:rE(()=>[RE(U,{height:"350px",class:"codesql",ref:"cmEditor",language:"sql",modelValue:R.sqlValue,"onUpdate:modelValue":e[0]||(e[0]=L=>R.sqlValue=L),options:R.cmOptions},null,8,["modelValue","options"]),RE(c,{ref:"remarkInputRef",modelValue:R.remark,"onUpdate:modelValue":e[1]||(e[1]=L=>R.remark=L),placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u5907\u6CE8",class:"mt5"},null,8,["modelValue"])]),_:1},8,["modelValue"])])}var Et=oT(ZA,[["render",zA]]);const et="sql-exec-id",Tt=()=>{const R={sql:"",dbId:0},e=document.createElement("div");e.id=et;const S=uT(Et,R);return DT(S,e),document.body.appendChild(e),S};let KE;const Rt=R=>{KE?KE.component.proxy.open(R):(KE=Tt(),Rt(R))};export{Rt as S,MT as d,ge as l}; diff --git a/server/static/static/assets/SshTerminal.1661345446364.css b/server/static/static/assets/SshTerminal.1661345446364.css new file mode 100644 index 00000000..b0956eee --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.css @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative} diff --git a/server/static/static/assets/SshTerminal.1661345446364.js b/server/static/static/assets/SshTerminal.1661345446364.js new file mode 100644 index 00000000..dd468c4f --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.js @@ -0,0 +1,8 @@ +var mr=Object.defineProperty;var dr=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var _r=(ae,J,oe)=>J in ae?mr(ae,J,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ae[J]=oe,pr=(ae,J)=>{for(var oe in J||(J={}))Sr.call(J,oe)&&_r(ae,oe,J[oe]);if(dr)for(var oe of dr(J))br.call(J,oe)&&_r(ae,oe,J[oe]);return ae};import{A as Cr,r as wr,v as Lr,o as Er,L as xr,a as Rr,c as kr,m as Ar,J as Mr,I as Or,t as Dr,_ as Tr,d as Br,e as Pr,l as Ir}from"./index.1661345446364.js";var vr={exports:{}};(function(ae,J){(function(oe,ge){ae.exports=ge()})(self,function(){return(()=>{var oe={4567:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;var f=w(9042),d=w(6114),m=w(9924),v=w(3656),a=w(844),o=w(5596),_=w(9631),h=function(r){function e(t,i){var n=r.call(this)||this;n._terminal=t,n._renderService=i,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var l=0;lt;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t},e.prototype._onTab=function(t){for(var i=0;i0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){i._accessibilityTreeRoot.appendChild(i._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&(0,_.removeElementFromParent)(this._liveRegion)},e.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},e.prototype._refreshRows=function(t,i){this._renderRowsDebouncer.refresh(t,i,this._terminal.rows)},e.prototype._renderRows=function(t,i){for(var n=this._terminal.buffer,l=n.lines.length.toString(),s=t;s<=i;s++){var y=n.translateBufferLineToString(n.ydisp+s,!0),b=(n.ydisp+s+1).toString(),g=this._rowElements[s];g&&(y.length===0?g.innerText="\xA0":g.textContent=y,g.setAttribute("aria-posinset",b),g.setAttribute("aria-setsize",l))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var t=0;t{function w(d){return d.replace(/\r?\n/g,"\r")}function p(d,m){return m?"\x1B[200~"+d+"\x1B[201~":d}function u(d,m,v){d=p(d=w(d),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(d,!0),m.value=""}function f(d,m,v){var a=v.getBoundingClientRect(),o=d.clientX-a.left-10,_=d.clientY-a.top-10;m.style.width="20px",m.style.height="20px",m.style.left=o+"px",m.style.top=_+"px",m.style.zIndex="1000",m.focus()}Object.defineProperty(c,"__esModule",{value:!0}),c.rightClickHandler=c.moveTextAreaUnderMouseCursor=c.paste=c.handlePasteEvent=c.copyHandler=c.bracketTextForPaste=c.prepareTextForTerminal=void 0,c.prepareTextForTerminal=w,c.bracketTextForPaste=p,c.copyHandler=function(d,m){d.clipboardData&&d.clipboardData.setData("text/plain",m.selectionText),d.preventDefault()},c.handlePasteEvent=function(d,m,v){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),m,v)},c.paste=u,c.moveTextAreaUnderMouseCursor=f,c.rightClickHandler=function(d,m,v,a,o){f(d,m,v),o&&a.rightClickSelect(d),m.value=a.selectionText,m.select()}},7239:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorContrastCache=void 0;var w=function(){function p(){this._color={},this._rgba={}}return p.prototype.clear=function(){this._color={},this._rgba={}},p.prototype.setCss=function(u,f,d){this._rgba[u]||(this._rgba[u]={}),this._rgba[u][f]=d},p.prototype.getCss=function(u,f){return this._rgba[u]?this._rgba[u][f]:void 0},p.prototype.setColor=function(u,f,d){this._color[u]||(this._color[u]={}),this._color[u][f]=d},p.prototype.getColor=function(u,f){return this._color[u]?this._color[u][f]:void 0},p}();c.ColorContrastCache=w},5680:function(W,c,w){var p=this&&this.__read||function(h,r){var e=typeof Symbol=="function"&&h[Symbol.iterator];if(!e)return h;var t,i,n=e.call(h),l=[];try{for(;(r===void 0||r-- >0)&&!(t=n.next()).done;)l.push(t.value)}catch(s){i={error:s}}finally{try{t&&!t.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return l};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorManager=c.DEFAULT_ANSI_COLORS=void 0;var u=w(8055),f=w(7239),d=u.css.toColor("#ffffff"),m=u.css.toColor("#000000"),v=u.css.toColor("#ffffff"),a=u.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};c.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var h=[u.css.toColor("#2e3436"),u.css.toColor("#cc0000"),u.css.toColor("#4e9a06"),u.css.toColor("#c4a000"),u.css.toColor("#3465a4"),u.css.toColor("#75507b"),u.css.toColor("#06989a"),u.css.toColor("#d3d7cf"),u.css.toColor("#555753"),u.css.toColor("#ef2929"),u.css.toColor("#8ae234"),u.css.toColor("#fce94f"),u.css.toColor("#729fcf"),u.css.toColor("#ad7fa8"),u.css.toColor("#34e2e2"),u.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],e=0;e<216;e++){var t=r[e/36%6|0],i=r[e/6%6|0],n=r[e%6];h.push({css:u.channels.toCss(t,i,n),rgba:u.channels.toRgba(t,i,n)})}for(e=0;e<24;e++){var l=8+10*e;h.push({css:u.channels.toCss(l,l,l),rgba:u.channels.toRgba(l,l,l)})}return h}());var _=function(){function h(r,e){this.allowTransparency=e;var t=r.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new f.ColorContrastCache,this.colors={foreground:d,background:m,cursor:v,cursorAccent:a,selectionTransparent:o,selectionOpaque:u.color.blend(m,o),selectionForeground:void 0,ansi:c.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return h.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},h.prototype.setTheme=function(r){r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,d),this.colors.background=this._parseColor(r.background,m),this.colors.cursor=this._parseColor(r.cursor,v,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(r.selection,o,!0),this.colors.selectionOpaque=u.color.blend(this.colors.background,this.colors.selectionTransparent);var e={css:"",rgba:0};this.colors.selectionForeground=r.selectionForeground?this._parseColor(r.selectionForeground,e):void 0,this.colors.selectionForeground===e&&(this.colors.selectionForeground=void 0),u.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=u.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,c.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,c.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,c.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,c.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,c.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,c.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,c.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,c.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,c.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,c.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,c.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,c.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,c.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,c.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,c.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,c.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},h.prototype.restoreColor=function(r){if(r!==void 0)switch(r){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[r]=this._restoreColors.ansi[r]}else for(var e=0;e=p.length&&(p=void 0),{value:p&&p[d++],done:!p}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.removeElementFromParent=void 0,c.removeElementFromParent=function(){for(var p,u,f,d=[],m=0;m{Object.defineProperty(c,"__esModule",{value:!0}),c.addDisposableDomListener=void 0,c.addDisposableDomListener=function(w,p,u,f){w.addEventListener(p,u,f);var d=!1;return{dispose:function(){d||(d=!0,w.removeEventListener(p,u,f))}}}},3551:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZone=c.Linkifier=void 0;var f=w(8460),d=w(2585),m=function(){function a(o,_,h){this._bufferService=o,this._logService=_,this._unicodeService=h,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(a.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),a.prototype.attachToDom=function(o,_){this._element=o,this._mouseZoneManager=_},a.prototype.linkifyRows=function(o,_){var h=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=_):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,_)),this._mouseZoneManager.clearAll(o,_),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return h._linkifyRows()},a._timeBeforeLatency))},a.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var _=o.ydisp+this._rowsToLinkify.start;if(!(_>=o.lines.length)){for(var h=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,r=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,_,h,r,r);e.hasNext();)for(var t=e.next(),i=0;i=0;_--)if(o.priority<=this._linkMatchers[_].priority)return void this._linkMatchers.splice(_+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},a.prototype.deregisterLinkMatcher=function(o){for(var _=0;_>9&511:void 0;h.validationCallback?h.validationCallback(s,function(C){e._rowsTimeoutId||C&&e._addLink(y[1],y[0]-e._bufferService.buffer.ydisp,s,h,S)}):l._addLink(y[1],y[0]-l._bufferService.buffer.ydisp,s,h,S)},l=this;(r=t.exec(_))!==null&&n()!=="break";);},a.prototype._addLink=function(o,_,h,r,e){var t=this;if(this._mouseZoneManager&&this._element){var i=this._unicodeService.getStringCellWidth(h),n=o%this._bufferService.cols,l=_+Math.floor(o/this._bufferService.cols),s=(n+i)%this._bufferService.cols,y=l+Math.floor((n+i)/this._bufferService.cols);s===0&&(s=this._bufferService.cols,y--),this._mouseZoneManager.add(new v(n+1,l+1,s+1,y+1,function(b){if(r.handler)return r.handler(b,h);var g=window.open();g?(g.opener=null,g.location.href=h):console.warn("Opening link blocked as opener could not be cleared")},function(){t._onShowLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.add("xterm-cursor-pointer")},function(b){t._onLinkTooltip.fire(t._createLinkHoverEvent(n,l,s,y,e)),r.hoverTooltipCallback&&r.hoverTooltipCallback(b,h,{start:{x:n,y:l},end:{x:s,y}})},function(){t._onHideLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(b){return!r.willLinkActivate||r.willLinkActivate(b,h)}))}},a.prototype._createLinkHoverEvent=function(o,_,h,r,e){return{x1:o,y1:_,x2:h,y2:r,cols:this._bufferService.cols,fg:e}},a._timeBeforeLatency=200,a=p([u(0,d.IBufferService),u(1,d.ILogService),u(2,d.IUnicodeService)],a)}();c.Linkifier=m;var v=function(a,o,_,h,r,e,t,i,n){this.x1=a,this.y1=o,this.x2=_,this.y2=h,this.clickCallback=r,this.hoverCallback=e,this.tooltipCallback=t,this.leaveCallback=i,this.willLinkActivate=n};c.MouseZone=v},6465:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}},m=this&&this.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__read||function(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n,l,s=i.call(e),y=[];try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)y.push(n.value)}catch(b){l={error:b}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(l)throw l.error}}return y};Object.defineProperty(c,"__esModule",{value:!0}),c.Linkifier2=void 0;var a=w(2585),o=w(8460),_=w(844),h=w(3656),r=function(e){function t(i){var n=e.call(this)||this;return n._bufferService=i,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new o.EventEmitter),n._onHideLinkUnderline=n.register(new o.EventEmitter),n.register((0,_.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return u(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(i){var n=this;return this._linkProviders.push(i),{dispose:function(){var l=n._linkProviders.indexOf(i);l!==-1&&n._linkProviders.splice(l,1)}}},t.prototype.attachToDom=function(i,n,l){var s=this;this._element=i,this._mouseService=n,this._renderService=l,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",function(){s._isMouseOut=!0,s._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(i){if(this._lastMouseEvent=i,this._element&&this._mouseService){var n=this._positionFromMouseEvent(i,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var l=i.composedPath(),s=0;si?this._bufferService.cols:g.link.range.end.x,k=S;k<=C;k++){if(l.has(k)){y.splice(b--,1);break}l.add(k)}}},t.prototype._checkLinkProviderResult=function(i,n,l){var s,y=this;if(!this._activeProviderReplies)return l;for(var b=this._activeProviderReplies.get(i),g=!1,S=0;S=i&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(i){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(i.link,l)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:function(s){var y,b;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&n._currentLink.state.decorations.pointerCursor!==s&&(n._currentLink.state.decorations.pointerCursor=s,n._currentLink.state.isHovered&&((b=n._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",s)))}},underline:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.underline},set:function(s){var y,b,g;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&((g=(b=n._currentLink)===null||b===void 0?void 0:b.state)===null||g===void 0?void 0:g.decorations.underline)!==s&&(n._currentLink.state.decorations.underline=s,n._currentLink.state.isHovered&&n._fireUnderlineEvent(i.link,s))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(s){var y=s.start===0?0:s.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(y,s.end+1+n._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(l,n.text)},t.prototype._fireUnderlineEvent=function(i,n){var l=i.range,s=this._bufferService.buffer.ydisp,y=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-s-1,l.end.x,l.end.y-s-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(y)},t.prototype._linkLeave=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(l,n.text)},t.prototype._linkAtPosition=function(i,n){var l=i.range.start.y===i.range.end.y,s=i.range.start.yn.y;return(l&&i.range.start.x<=n.x&&i.range.end.x>=n.x||s&&i.range.end.x>=n.x||y&&i.range.start.x<=n.x||s&&y)&&i.range.start.y<=n.y&&i.range.end.y>=n.y},t.prototype._positionFromMouseEvent=function(i,n,l){var s=l.getCoords(i,n,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(i,n,l,s,y){return{x1:i,y1:n,x2:l,y2:s,cols:this._bufferService.cols,fg:y}},f([d(0,a.IBufferService)],t)}(_.Disposable);c.Linkifier2=r},9042:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.tooMuchOutput=c.promptLabel=void 0,c.promptLabel="Terminal input",c.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZoneManager=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s){var y=h.call(this)||this;return y._element=e,y._screenElement=t,y._bufferService=i,y._mouseService=n,y._selectionService=l,y._optionsService=s,y._zones=[],y._areZonesActive=!1,y._lastHoverCoords=[void 0,void 0],y._initialSelectionLength=0,y.register((0,v.addDisposableDomListener)(y._element,"mousedown",function(b){return y._onMouseDown(b)})),y._mouseMoveListener=function(b){return y._onMouseMove(b)},y._mouseLeaveListener=function(b){return y._onMouseLeave(b)},y._clickListener=function(b){return y._onClick(b)},y}return u(r,h),r.prototype.dispose=function(){h.prototype.dispose.call(this),this._deactivate()},r.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},r.prototype.clearAll=function(e,t){if(this._zones.length!==0){e&&t||(e=0,t=this._bufferService.rows-1);for(var i=0;ie&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}this._zones.length===0&&this._deactivate()}},r.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},r.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},r.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},r.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},r.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t==null||t.tooltipCallback(e)},r.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);t!=null&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},r.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},r.prototype._onClick=function(e){var t=this._findZoneEventAt(e),i=this._getSelectionLength();t&&i===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},r.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},r.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var i=t[0],n=t[1],l=0;l=s.x1&&i=s.x1||n===s.y2&&is.y1&&n=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderDebouncer=void 0;var p=function(){function u(f){this._renderCallback=f,this._refreshCallbacks=[]}return u.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},u.prototype.addRefreshCallback=function(f){var d=this;return this._refreshCallbacks.push(f),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()})),this._animationFrame},u.prototype.refresh=function(f,d,m){var v=this;this._rowCount=m,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return v._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._animationFrame=void 0,this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(f,d),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},u.prototype._runRefreshCallbacks=function(){var f,d;try{for(var m=w(this._refreshCallbacks),v=m.next();!v.done;v=m.next())(0,v.value)(0)}catch(a){f={error:a}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}this._refreshCallbacks=[]},u}();c.RenderDebouncer=p},5596:function(W,c,w){var p,u=this&&this.__extends||(p=function(d,m){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,a){v.__proto__=a}||function(v,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(v[o]=a[o])},p(d,m)},function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function v(){this.constructor=d}p(d,m),d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(c,"__esModule",{value:!0}),c.ScreenDprMonitor=void 0;var f=function(d){function m(){var v=d!==null&&d.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return u(m,d),m.prototype.setListener=function(v){var a=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){a._listener&&(a._listener(window.devicePixelRatio,a._currentDevicePixelRatio),a._updateDpr())},this._updateDpr()},m.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},m.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},m.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},m}(w(844).Disposable);c.ScreenDprMonitor=f},3236:function(W,c,w){var p,u=this&&this.__extends||(p=function(X,j){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var H in D)Object.prototype.hasOwnProperty.call(D,H)&&(O[H]=D[H])},p(X,j)},function(X,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function O(){this.constructor=X}p(X,j),X.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}),f=this&&this.__values||function(X){var j=typeof Symbol=="function"&&Symbol.iterator,O=j&&X[j],D=0;if(O)return O.call(X);if(X&&typeof X.length=="number")return{next:function(){return X&&D>=X.length&&(X=void 0),{value:X&&X[D++],done:!X}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(X,j){var O=typeof Symbol=="function"&&X[Symbol.iterator];if(!O)return X;var D,H,G=O.call(X),V=[];try{for(;(j===void 0||j-- >0)&&!(D=G.next()).done;)V.push(D.value)}catch($){H={error:$}}finally{try{D&&!D.done&&(O=G.return)&&O.call(G)}finally{if(H)throw H.error}}return V},m=this&&this.__spreadArray||function(X,j,O){if(O||arguments.length===2)for(var D,H=0,G=j.length;H4)&&D.coreMouseService.triggerMouseEvent({col:we.x-33,row:we.y-33,button:he,action:pe,ctrl:K.ctrlKey,alt:K.altKey,shift:K.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},$=function(K){return G(K),K.buttons||(O._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.removeEventListener("mousemove",V.mousedrag)),O.cancel(K)},ie=function(K){return G(K),O.cancel(K,!0)},ce=function(K){K.buttons&&G(K)},le=function(K){K.buttons||G(K)};this.register(this.coreMouseService.onProtocolChange(function(K){K?(O.optionsService.rawOptions.logLevel==="debug"&&O._logService.debug("Binding to mouse events:",O.coreMouseService.explainEvents(K)),O.element.classList.add("enable-mouse-events"),O._selectionService.disable()):(O._logService.debug("Unbinding from mouse events."),O.element.classList.remove("enable-mouse-events"),O._selectionService.enable()),8&K?V.mousemove||(H.addEventListener("mousemove",le),V.mousemove=le):(H.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&K?V.wheel||(H.addEventListener("wheel",ie,{passive:!1}),V.wheel=ie):(H.removeEventListener("wheel",V.wheel),V.wheel=null),2&K?V.mouseup||(V.mouseup=$):(O._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&K?V.mousedrag||(V.mousedrag=ce):(O._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,n.addDisposableDomListener)(H,"mousedown",function(K){if(K.preventDefault(),O.focus(),O.coreMouseService.areMouseEventsActive&&!O._selectionService.shouldForceSelection(K))return G(K),V.mouseup&&O._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.addEventListener("mousemove",V.mousedrag),O.cancel(K)})),this.register((0,n.addDisposableDomListener)(H,"wheel",function(K){if(!V.wheel){if(!O.buffer.hasScrollback){var he=O.viewport.getLinesScrolled(K);if(he===0)return;for(var pe=_.C0.ESC+(O.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(K.deltaY<0?"A":"B"),we="",Ie=0;Ie=65&&O.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(H.key!==_.C0.ETX&&H.key!==_.C0.CR||(this.textarea.value=""),this._onKey.fire({key:H.key,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(H.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(O,!0))))},j.prototype._isThirdLevelShift=function(O,D){var H=O.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||O.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||O.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?H:H&&(!D.keyCode||D.keyCode>47)},j.prototype._keyUp=function(O){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(O)||this.focus(),this.updateCursorStyle(O),this._keyPressHandled=!1)},j.prototype._keyPress=function(O){var D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(this.cancel(O),O.charCode)D=O.charCode;else if(O.which===null||O.which===void 0)D=O.keyCode;else{if(O.which===0||O.charCode===0)return!1;D=O.which}return!(!D||(O.altKey||O.ctrlKey||O.metaKey)&&!this._isThirdLevelShift(this.browser,O)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},j.prototype._inputEvent=function(O){if(O.data&&O.inputType==="insertText"&&(!O.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var D=O.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(O),!0}return!1},j.prototype.bell=function(){var O;this._soundBell()&&((O=this._soundService)===null||O===void 0||O.playBellSound()),this._onBell.fire()},j.prototype.resize=function(O,D){O!==this.cols||D!==this.rows?X.prototype.resize.call(this,O,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},j.prototype._afterResize=function(O,D){var H,G;(H=this._charSizeService)===null||H===void 0||H.measure(),(G=this.viewport)===null||G===void 0||G.syncScrollArea(!0)},j.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var O=1;O{Object.defineProperty(c,"__esModule",{value:!0}),c.TimeBasedDebouncer=void 0;var w=function(){function p(u,f){f===void 0&&(f=1e3),this._renderCallback=u,this._debounceThresholdMS=f,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return p.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},p.prototype.refresh=function(u,f,d){var m=this;this._rowCount=d,u=u!==void 0?u:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var a=v-this._lastRefreshMs,o=this._debounceThresholdMS-a;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){m._lastRefreshMs=Date.now(),m._innerRefresh(),m._additionalRefreshRequested=!1,m._refreshTimeoutID=void 0},o)}},p.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(u,f)}},p}();c.TimeBasedDebouncer=w},1680:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Viewport=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b){var g=h.call(this)||this;return g._scrollLines=e,g._viewportElement=t,g._scrollArea=i,g._element=n,g._bufferService=l,g._optionsService=s,g._charSizeService=y,g._renderService=b,g.scrollBarWidth=0,g._currentRowHeight=0,g._currentScaledCellHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register((0,v.addDisposableDomListener)(g._viewportElement,"scroll",g._onScroll.bind(g))),g._activeBuffer=g._bufferService.buffer,g.register(g._bufferService.buffers.onBufferActivate(function(S){return g._activeBuffer=S.activeBuffer})),g._renderDimensions=g._renderService.dimensions,g.register(g._renderService.onDimensionsChange(function(S){return g._renderDimensions=S})),setTimeout(function(){return g.syncScrollArea()},0),g}return u(r,h),r.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},r.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},r.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},r.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},r.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},r.prototype._bubbleScroll=function(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&i0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},r.prototype._applyScrollModifier=function(e,t){var i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&t.altKey||i==="ctrl"&&t.ctrlKey||i==="shift"&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},r.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},r.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},f([d(4,o.IBufferService),d(5,o.IOptionsService),d(6,a.ICharSizeService),d(7,a.IRenderService)],r)}(m.Disposable);c.Viewport=_},3107:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}},m=this&&this.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferDecorationRenderer=void 0;var v=w(3656),a=w(4725),o=w(844),_=w(2585),h=function(r){function e(t,i,n,l){var s=r.call(this)||this;return s._screenElement=t,s._bufferService=i,s._decorationService=n,s._renderService=l,s._decorationElements=new Map,s._altBufferIsActive=!1,s._dimensionsChanged=!1,s._container=document.createElement("div"),s._container.classList.add("xterm-decoration-container"),s._screenElement.appendChild(s._container),s.register(s._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),s.register(s._renderService.onDimensionsChange(function(){s._dimensionsChanged=!0,s._queueRefresh()})),s.register((0,v.addDisposableDomListener)(window,"resize",function(){return s._queueRefresh()})),s.register(s._bufferService.buffers.onBufferActivate(function(){s._altBufferIsActive=s._bufferService.buffer===s._bufferService.buffers.alt})),s.register(s._decorationService.onDecorationRegistered(function(){return s._queueRefresh()})),s.register(s._decorationService.onDecorationRemoved(function(y){return s._removeDecoration(y)})),s}return u(e,r),e.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),r.prototype.dispose.call(this)},e.prototype._queueRefresh=function(){var t=this;this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(function(){t.refreshDecorations(),t._animationFrame=void 0}))},e.prototype.refreshDecorations=function(){var t,i;try{for(var n=m(this._decorationService.decorations),l=n.next();!l.done;l=n.next()){var s=l.value;this._renderDecoration(s)}}catch(y){t={error:y}}finally{try{l&&!l.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}this._dimensionsChanged=!1},e.prototype._renderDecoration=function(t){this._refreshStyle(t),this._dimensionsChanged&&this._refreshXPosition(t)},e.prototype._createElement=function(t){var i,n=document.createElement("div");n.classList.add("xterm-decoration"),n.style.width=Math.round((t.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",n.style.height=(t.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",n.style.top=(t.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",n.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var l=(i=t.options.x)!==null&&i!==void 0?i:0;return l&&l>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(t,n),n},e.prototype._refreshStyle=function(t){var i=this,n=t.marker.line-this._bufferService.buffers.active.ydisp;if(n<0||n>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{var l=this._decorationElements.get(t);l||(t.onDispose(function(){return i._removeDecoration(t)}),l=this._createElement(t),t.element=l,this._decorationElements.set(t,l),this._container.appendChild(l)),l.style.top=n*this._renderService.dimensions.actualCellHeight+"px",l.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(l)}},e.prototype._refreshXPosition=function(t,i){var n;if(i===void 0&&(i=t.element),i){var l=(n=t.options.x)!==null&&n!==void 0?n:0;(t.options.anchor||"left")==="right"?i.style.right=l?l*this._renderService.dimensions.actualCellWidth+"px":"":i.style.left=l?l*this._renderService.dimensions.actualCellWidth+"px":""}},e.prototype._removeDecoration=function(t){var i;(i=this._decorationElements.get(t))===null||i===void 0||i.remove(),this._decorationElements.delete(t)},f([d(1,_.IBufferService),d(2,_.IDecorationService),d(3,a.IRenderService)],e)}(o.Disposable);c.BufferDecorationRenderer=h},5871:function(W,c){var w=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorZoneStore=void 0;var p=function(){function u(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(u.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),u.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},u.prototype.addDecoration=function(f){var d,m;if(f.options.overviewRulerOptions){try{for(var v=w(this._zones),a=v.next();!a.done;a=v.next()){var o=a.value;if(o.color===f.options.overviewRulerOptions.color&&o.position===f.options.overviewRulerOptions.position){if(this._lineIntersectsZone(o,f.marker.line))return;if(this._lineAdjacentToZone(o,f.marker.line,f.options.overviewRulerOptions.position))return void this._addLineToZone(o,f.marker.line)}}}catch(_){d={error:_}}finally{try{a&&!a.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}if(this._zonePoolIndex=f.startBufferLine&&d<=f.endBufferLine},u.prototype._lineAdjacentToZone=function(f,d,m){return d>=f.startBufferLine-this._linePadding[m||"full"]&&d<=f.endBufferLine+this._linePadding[m||"full"]},u.prototype._addLineToZone=function(f,d){f.startBufferLine=Math.min(f.startBufferLine,d),f.endBufferLine=Math.max(f.endBufferLine,d)},u}();c.ColorZoneStore=p},5744:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.OverviewRulerRenderer=void 0;var v=w(5871),a=w(3656),o=w(4725),_=w(844),h=w(2585),r={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0},i=function(n){function l(s,y,b,g,S,C){var k,L=n.call(this)||this;L._viewportElement=s,L._screenElement=y,L._bufferService=b,L._decorationService=g,L._renderService=S,L._optionsService=C,L._colorZoneStore=new v.ColorZoneStore,L._shouldUpdateDimensions=!0,L._shouldUpdateAnchor=!0,L._lastKnownBufferLength=0,L._canvas=document.createElement("canvas"),L._canvas.classList.add("xterm-decoration-overview-ruler"),L._refreshCanvasDimensions(),(k=L._viewportElement.parentElement)===null||k===void 0||k.insertBefore(L._canvas,L._viewportElement);var R=L._canvas.getContext("2d");if(!R)throw new Error("Ctx cannot be null");return L._ctx=R,L._registerDecorationListeners(),L._registerBufferChangeListeners(),L._registerDimensionChangeListeners(),L}return u(l,n),Object.defineProperty(l.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),l.prototype._registerDecorationListeners=function(){var s=this;this.register(this._decorationService.onDecorationRegistered(function(){return s._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return s._queueRefresh(void 0,!0)}))},l.prototype._registerBufferChangeListeners=function(){var s=this;this.register(this._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){s._canvas.style.display=s._bufferService.buffer===s._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){s._lastKnownBufferLength!==s._bufferService.buffers.normal.lines.length&&(s._refreshDrawHeightConstants(),s._refreshColorZonePadding())}))},l.prototype._registerDimensionChangeListeners=function(){var s=this;this.register(this._renderService.onRender(function(){s._containerHeight&&s._containerHeight===s._screenElement.clientHeight||(s._queueRefresh(!0),s._containerHeight=s._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(y){y==="overviewRulerWidth"&&s._queueRefresh(!0)})),this.register((0,a.addDisposableDomListener)(window,"resize",function(){s._queueRefresh(!0)})),this._queueRefresh(!0)},l.prototype.dispose=function(){var s;(s=this._canvas)===null||s===void 0||s.remove(),n.prototype.dispose.call(this)},l.prototype._refreshDrawConstants=function(){var s=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=s,e.center=y,e.right=s,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=e.left,t.right=e.left+e.center},l.prototype._refreshDrawHeightConstants=function(){r.full=Math.round(2*window.devicePixelRatio);var s=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(s,12),6)*window.devicePixelRatio);r.left=y,r.center=y,r.right=y},l.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},l.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},l.prototype._refreshDecorations=function(){var s,y,b,g,S,C;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var k=m(this._decorationService.decorations),L=k.next();!L.done;L=k.next()){var R=L.value;this._colorZoneStore.addDecoration(R)}}catch(F){s={error:F}}finally{try{L&&!L.done&&(y=k.return)&&y.call(k)}finally{if(s)throw s.error}}this._ctx.lineWidth=1;var x=this._colorZoneStore.zones;try{for(var E=m(x),M=E.next();!M.done;M=E.next())(q=M.value).position!=="full"&&this._renderColorZone(q)}catch(F){b={error:F}}finally{try{M&&!M.done&&(g=E.return)&&g.call(E)}finally{if(b)throw b.error}}try{for(var T=m(x),U=T.next();!U.done;U=T.next()){var q;(q=U.value).position==="full"&&this._renderColorZone(q)}}catch(F){S={error:F}}finally{try{U&&!U.done&&(C=T.return)&&C.call(T)}finally{if(S)throw S.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},l.prototype._renderColorZone=function(s){this._ctx.fillStyle=s.color,this._ctx.fillRect(t[s.position||"full"],Math.round((this._canvas.height-1)*(s.startBufferLine/this._bufferService.buffers.active.lines.length)-r[s.position||"full"]/2),e[s.position||"full"],Math.round((this._canvas.height-1)*((s.endBufferLine-s.startBufferLine)/this._bufferService.buffers.active.lines.length)+r[s.position||"full"]))},l.prototype._queueRefresh=function(s,y){var b=this;this._shouldUpdateDimensions=s||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){b._refreshDecorations(),b._animationFrame=void 0}))},f([d(2,h.IBufferService),d(3,h.IDecorationService),d(4,o.IRenderService),d(5,h.IOptionsService)],l)}(_.Disposable);c.OverviewRulerRenderer=i},2950:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CompositionHelper=void 0;var f=w(4725),d=w(2585),m=function(){function v(a,o,_,h,r,e){this._textarea=a,this._compositionView=o,this._bufferService=_,this._optionsService=h,this._coreService=r,this._renderService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(a){var o=this;this._compositionView.textContent=a.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(a){if(this._isComposing||this._isSendingComposition){if(a.keyCode===229||a.keyCode===16||a.keyCode===17||a.keyCode===18)return!1;this._finalizeComposition(!1)}return a.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(a){var o=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,a){var _={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(o._isSendingComposition){o._isSendingComposition=!1;var r;_.start+=o._dataAlreadySent.length,(r=o._isComposing?o._textarea.value.substring(_.start,_.end):o._textarea.value.substring(_.start)).length>0&&o._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;var h=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(h,!0)}},v.prototype._handleAnyTextareaChanges=function(){var a=this,o=this._textarea.value;setTimeout(function(){if(!a._isComposing){var _=a._textarea.value.replace(o,"");_.length>0&&(a._dataAlreadySent=_,a._coreService.triggerDataEvent(_,!0))}},0)},v.prototype.updateCompositionElements=function(a){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var _=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),h=this._renderService.dimensions.actualCellHeight,r=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,e=_*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=e+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=e+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}a||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},p([u(2,d.IBufferService),u(3,d.IOptionsService),u(4,d.ICoreService),u(5,f.IRenderService)],v)}();c.CompositionHelper=m},9806:(W,c)=>{function w(p,u,f){var d=f.getBoundingClientRect(),m=p.getComputedStyle(f),v=parseInt(m.getPropertyValue("padding-left")),a=parseInt(m.getPropertyValue("padding-top"));return[u.clientX-d.left-v,u.clientY-d.top-a]}Object.defineProperty(c,"__esModule",{value:!0}),c.getRawByteCoords=c.getCoords=c.getCoordsRelativeToElement=void 0,c.getCoordsRelativeToElement=w,c.getCoords=function(p,u,f,d,m,v,a,o,_){if(v){var h=w(p,u,f);if(h)return h[0]=Math.ceil((h[0]+(_?a/2:0))/a),h[1]=Math.ceil(h[1]/o),h[0]=Math.min(Math.max(h[0],1),d+(_?1:0)),h[1]=Math.min(Math.max(h[1],1),m),h}},c.getRawByteCoords=function(p){if(p)return{x:p[0]+32,y:p[1]+32}}},9504:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.moveToCellSequence=void 0;var p=w(2584);function u(o,_,h,r){var e=o-f(h,o),t=_-f(h,_),i=Math.abs(e-t)-function(n,l,s){for(var y=0,b=n-f(s,n),g=l-f(s,l),S=0;S=0&&__?"A":"B"}function m(o,_,h,r,e,t){for(var i=o,n=_,l="";i!==h||n!==r;)i+=e?1:-1,e&&i>t.cols-1?(l+=t.buffer.translateBufferLineToString(n,!1,o,i),i=0,o=0,n++):!e&&i<0&&(l+=t.buffer.translateBufferLineToString(n,!1,0,o+1),o=i=t.cols-1,n--);return l+t.buffer.translateBufferLineToString(n,!1,o,i)}function v(o,_){var h=_?"O":"[";return p.C0.ESC+h+o}function a(o,_){o=Math.floor(o);for(var h="",r=0;r0?b-f(g,b):s;var k=b,L=function(R,x,E,M,T,U){var q;return q=u(E,M,T,U).length>0?M-f(T,M):x,R=E&&qo?"D":"C",a(Math.abs(t-o),v(e,r));e=i>_?"D":"C";var n=Math.abs(i-_);return a(function(l,s){return s.cols-l}(i>_?o:t,h)+(n-1)*h.cols+1+((i>_?t:o)-1),v(e,r))}},4389:function(W,c,w){var p=this&&this.__assign||function(){return p=Object.assign||function(r){for(var e,t=1,i=arguments.length;t=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;var f=w(3236),d=w(9042),m=w(7975),v=w(7090),a=w(5741),o=w(8285),_=["cols","rows"],h=function(){function r(e){var t=this;this._core=new f.Terminal(e),this._addonManager=new a.AddonManager,this._publicOptions=p({},this._core.options);var i=function(y){return t._core.options[y]},n=function(y,b){t._checkReadonlyOptions(y),t._core.options[y]=b};for(var l in this._core.options){var s={get:i.bind(this,l),set:n.bind(this,l)};Object.defineProperty(this._publicOptions,l,s)}}return r.prototype._checkReadonlyOptions=function(e){if(_.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},r.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new m.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new v.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new o.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},r.prototype.open=function(e){this._core.open(e)},r.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},r.prototype.registerLinkMatcher=function(e,t,i){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,i)},r.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},r.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},r.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},r.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},r.prototype.registerMarker=function(e){return e===void 0&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},r.prototype.registerDecoration=function(e){var t,i,n;return this._checkProposedApi(),this._verifyPositiveIntegers((t=e.x)!==null&&t!==void 0?t:0,(i=e.width)!==null&&i!==void 0?i:0,(n=e.height)!==null&&n!==void 0?n:0),this._core.registerDecoration(e)},r.prototype.addMarker=function(e){return this.registerMarker(e)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},r.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(e,t){this._core.write(e,t)},r.prototype.writeUtf8=function(e,t){this._core.write(e,t)},r.prototype.writeln=function(e,t){this._core.write(e),this._core.write(`\r +`,t)},r.prototype.paste=function(e){this._core.paste(e)},r.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},r.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},r.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},r.prototype.reset=function(){this._core.reset()},r.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},r.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(r,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var e,t,i=[],n=0;n=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BaseRenderLayer=void 0;var u=w(643),f=w(8803),d=w(1420),m=w(3734),v=w(1752),a=w(8055),o=w(9631),_=w(8978),h=function(){function r(e,t,i,n,l,s,y,b,g){this._container=e,this._alpha=n,this._colors=l,this._rendererId=s,this._bufferService=y,this._optionsService=b,this._decorationService=g,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return r.prototype.dispose=function(){var e;(0,o.removeElementFromParent)(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},r.prototype._initCanvas=function(){this._ctx=(0,v.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},r.prototype.onOptionsChanged=function(){},r.prototype.onBlur=function(){},r.prototype.onFocus=function(){},r.prototype.onCursorMove=function(){},r.prototype.onGridChanged=function(e,t){},r.prototype.onSelectionChanged=function(e,t,i){i===void 0&&(i=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i},r.prototype.setColors=function(e){this._refreshCharAtlas(e)},r.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},r.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,d.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},r.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},r.prototype.clearTextureAtlas=function(){var e;(e=this._charAtlas)===null||e===void 0||e.clear()},r.prototype._fillCells=function(e,t,i,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight)},r.prototype._fillMiddleLineAtCells=function(e,t,i){i===void 0&&(i=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillBottomLineAtCells=function(e,t,i){i===void 0&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillLeftLineAtCell=function(e,t,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},r.prototype._strokeRectAtCell=function(e,t,i,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},r.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},r.prototype._clearCells=function(e,t,i,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight))},r.prototype._fillCharTrueColor=function(e,t,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=f.TEXT_BASELINE,this._clipRow(i);var n=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(n=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},r.prototype._drawChars=function(e,t,i){var n,l,s,y=this._getContrastColor(e,t,i);if(y||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,i,y);else{var b,g;e.isInverse()?(b=e.isBgDefault()?f.INVERTED_DEFAULT_COLOR:e.getBgColor(),g=e.isFgDefault()?f.INVERTED_DEFAULT_COLOR:e.getFgColor()):(g=e.isBgDefault()?u.DEFAULT_COLOR:e.getBgColor(),b=e.isFgDefault()?u.DEFAULT_COLOR:e.getFgColor()),b+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&b<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||u.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||u.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=g,this._currentGlyphIdentifier.fg=b,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var S=!1;try{for(var C=p(this._decorationService.getDecorationsAtCell(t,i)),k=C.next();!k.done;k=C.next()){var L=k.value;if(L.backgroundColorRGB||L.foregroundColorRGB){S=!0;break}}}catch(R){n={error:R}}finally{try{k&&!k.done&&(l=C.return)&&l.call(C)}finally{if(n)throw n.error}}!S&&((s=this._charAtlas)===null||s===void 0?void 0:s.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,i)}},r.prototype._drawUncachedChars=function(e,t,i,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=f.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=f.DIM_OPACITY);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},r.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},r.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},r.prototype._getContrastColor=function(e,t,i){var n,l,s,y,b=!1;try{for(var g=p(this._decorationService.getDecorationsAtCell(t,i)),S=g.next();!S.done;S=g.next()){var C=S.value;C.options.layer!=="top"&&b||(C.backgroundColorRGB&&(s=C.backgroundColorRGB.rgba),C.foregroundColorRGB&&(y=C.foregroundColorRGB.rgba),b=C.options.layer==="top")}}catch(Y){n={error:Y}}finally{try{S&&!S.done&&(l=g.return)&&l.call(g)}finally{if(n)throw n.error}}if(b||this._colors.selectionForeground&&this._isCellInSelection(t,i)&&(y=this._colors.selectionForeground.rgba),s||y||this._optionsService.rawOptions.minimumContrastRatio!==1&&!(0,v.excludeFromContrastRatioDemands)(e.getCode())){if(!s&&!y){var k=this._colors.contrastCache.getColor(e.bg,e.fg);if(k!==void 0)return k||void 0}var L=e.getFgColor(),R=e.getFgColorMode(),x=e.getBgColor(),E=e.getBgColorMode(),M=!!e.isInverse(),T=!!e.isInverse();if(M){var U=L;L=x,x=U;var q=R;R=E,E=q}var F=this._resolveBackgroundRgba(s!==void 0?50331648:E,s!=null?s:x,M),z=this._resolveForegroundRgba(R,L,M,T),N=a.rgba.ensureContrastRatio(s!=null?s:F,y!=null?y:z,this._optionsService.rawOptions.minimumContrastRatio);if(!N){if(!y)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);N=y}var A={css:a.channels.toCss(N>>24&255,N>>16&255,N>>8&255),rgba:N};return s||y||this._colors.contrastCache.setColor(e.bg,e.fg,A),A}},r.prototype._resolveBackgroundRgba=function(e,t,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.foreground.rgba:this._colors.background.rgba}},r.prototype._resolveForegroundRgba=function(e,t,i,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.background.rgba:this._colors.foreground.rgba}},r.prototype._isCellInSelection=function(e,t){var i=this._selectionStart,n=this._selectionEnd;return!(!i||!n)&&(this._columnSelectMode?e>=i[0]&&t>=i[1]&&ei[1]&&t=i[0]&&e=i[0])},r}();c.BaseRenderLayer=h},2512:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CursorRenderLayer=void 0;var m=w(1546),v=w(511),a=w(2585),o=w(4725),_=600,h=function(e){function t(i,n,l,s,y,b,g,S,C,k){var L=e.call(this,i,"cursor",n,!0,l,s,b,g,k)||this;return L._onRequestRedraw=y,L._coreService=S,L._coreBrowserService=C,L._cell=new v.CellData,L._state={x:0,y:0,isFocused:!1,style:"",width:0},L._cursorRenderers={bar:L._renderBarCursor.bind(L),block:L._renderBlockCursor.bind(L),underline:L._renderUnderlineCursor.bind(L)},L}return u(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(i){e.prototype.resize.call(this,i),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var i;this._clearCursor(),(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var i,n=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new r(this._coreBrowserService.isFocused,function(){n._render(!0)})):((i=this._cursorBlinkStateManager)===null||i===void 0||i.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation()},t.prototype.onGridChanged=function(i,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(i){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=n-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(s,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var y=this._optionsService.rawOptions.cursorStyle;return y&&y!=="block"?this._cursorRenderers[y](s,l,this._cell):this._renderBlurCursor(s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=y,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===s&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(i,n,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(i,n,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,i,n),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(i,n),this._ctx.restore()},t.prototype._renderBlurCursor=function(i,n,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(i,n,l.getWidth(),1),this._ctx.restore()},f([d(5,a.IBufferService),d(6,a.IOptionsService),d(7,a.ICoreService),d(8,o.ICoreBrowserService),d(9,a.IDecorationService)],t)}(m.BaseRenderLayer);c.CursorRenderLayer=h;var r=function(){function e(t,i){this._renderCallback=i,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},e.prototype._restartInterval=function(t){var i=this;t===void 0&&(t=_),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(i._animationTimeRestarted){var n=_-(Date.now()-i._animationTimeRestarted);if(i._animationTimeRestarted=void 0,n>0)return void i._restartInterval(n)}i.isCursorVisible=!1,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0}),i._blinkInterval=window.setInterval(function(){if(i._animationTimeRestarted){var l=_-(Date.now()-i._animationTimeRestarted);return i._animationTimeRestarted=void 0,void i._restartInterval(l)}i.isCursorVisible=!i.isCursorVisible,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})},_)},t)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(W,c,w){var p,u,f,d,m,v,a,o,_,h,r,e,t,i,n,l,s,y,b,g,S,C,k,L,R,x,E,M,T,U,q,F,z,N,A,Y,Z,te,B,ee,X,j,O,D,H,G,V,$,ie,ce,le,K,he,pe,we,Ie,Ht,Ft,jt,Wt,Ut,qt,Ue,qe,Ne,ze,Ke,Ge,Ve,Xe,Ze,Ye,Je,$e,Qe,et,tt,rt,it,nt,ot,st,at,ct,lt,ht,ut,ft,dt,_t,pt,vt,yt,gt,mt,St,bt,Ct,wt,Lt,Et,xt,Rt,kt,At,Mt,Ot,Dt,Tt,Bt,Pt,It,Nt,zt,Kt,Gt,Vt,Xt,Zt,Yt,Jt,$t,Qt,er,tr,rr,ir,nr,ar=this&&this.__read||function(P,I){var se=typeof Symbol=="function"&&P[Symbol.iterator];if(!se)return P;var ve,Le,me=se.call(P),ne=[];try{for(;(I===void 0||I-- >0)&&!(ve=me.next()).done;)ne.push(ve.value)}catch(Se){Le={error:Se}}finally{try{ve&&!ve.done&&(se=me.return)&&se.call(me)}finally{if(Le)throw Le.error}}return ne},or=this&&this.__values||function(P){var I=typeof Symbol=="function"&&Symbol.iterator,se=I&&P[I],ve=0;if(se)return se.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&ve>=P.length&&(P=void 0),{value:P&&P[ve++],done:!P}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.tryDrawCustomChar=c.powerlineDefinitions=c.boxDrawingDefinitions=c.blockElementDefinitions=void 0;var cr=w(1752);c.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gr={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};c.boxDrawingDefinitions={"\u2500":(p={},p[1]="M0,.5 L1,.5",p),"\u2501":(u={},u[3]="M0,.5 L1,.5",u),"\u2502":(f={},f[1]="M.5,0 L.5,1",f),"\u2503":(d={},d[3]="M.5,0 L.5,1",d),"\u250C":(m={},m[1]="M0.5,1 L.5,.5 L1,.5",m),"\u250F":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"\u2510":(a={},a[1]="M0,.5 L.5,.5 L.5,1",a),"\u2513":(o={},o[3]="M0,.5 L.5,.5 L.5,1",o),"\u2514":(_={},_[1]="M.5,0 L.5,.5 L1,.5",_),"\u2517":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"\u2518":(r={},r[1]="M.5,0 L.5,.5 L0,.5",r),"\u251B":(e={},e[3]="M.5,0 L.5,.5 L0,.5",e),"\u251C":(t={},t[1]="M.5,0 L.5,1 M.5,.5 L1,.5",t),"\u2523":(i={},i[3]="M.5,0 L.5,1 M.5,.5 L1,.5",i),"\u2524":(n={},n[1]="M.5,0 L.5,1 M.5,.5 L0,.5",n),"\u252B":(l={},l[3]="M.5,0 L.5,1 M.5,.5 L0,.5",l),"\u252C":(s={},s[1]="M0,.5 L1,.5 M.5,.5 L.5,1",s),"\u2533":(y={},y[3]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"\u2534":(b={},b[1]="M0,.5 L1,.5 M.5,.5 L.5,0",b),"\u253B":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"\u253C":(S={},S[1]="M0,.5 L1,.5 M.5,0 L.5,1",S),"\u254B":(C={},C[3]="M0,.5 L1,.5 M.5,0 L.5,1",C),"\u2574":(k={},k[1]="M.5,.5 L0,.5",k),"\u2578":(L={},L[3]="M.5,.5 L0,.5",L),"\u2575":(R={},R[1]="M.5,.5 L.5,0",R),"\u2579":(x={},x[3]="M.5,.5 L.5,0",x),"\u2576":(E={},E[1]="M.5,.5 L1,.5",E),"\u257A":(M={},M[3]="M.5,.5 L1,.5",M),"\u2577":(T={},T[1]="M.5,.5 L.5,1",T),"\u257B":(U={},U[3]="M.5,.5 L.5,1",U),"\u2550":(q={},q[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},q),"\u2551":(F={},F[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},F),"\u2552":(z={},z[1]=function(P,I){return"M.5,1 L.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},z),"\u2553":(N={},N[1]=function(P,I){return"M"+(.5-P)+",1 L"+(.5-P)+",.5 L1,.5 M"+(.5+P)+",.5 L"+(.5+P)+",1"},N),"\u2554":(A={},A[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},A),"\u2555":(Y={},Y[1]=function(P,I){return"M0,"+(.5-I)+" L.5,"+(.5-I)+" L.5,1 M0,"+(.5+I)+" L.5,"+(.5+I)},Y),"\u2556":(Z={},Z[1]=function(P,I){return"M"+(.5+P)+",1 L"+(.5+P)+",.5 L0,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1"},Z),"\u2557":(te={},te[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",1"},te),"\u2558":(B={},B[1]=function(P,I){return"M.5,0 L.5,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5-I)+" L1,"+(.5-I)},B),"\u2559":(ee={},ee[1]=function(P,I){return"M1,.5 L"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},ee),"\u255A":(X={},X[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0 M1,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",0"},X),"\u255B":(j={},j[1]=function(P,I){return"M0,"+(.5+I)+" L.5,"+(.5+I)+" L.5,0 M0,"+(.5-I)+" L.5,"+(.5-I)},j),"\u255C":(O={},O[1]=function(P,I){return"M0,.5 L"+(.5+P)+",.5 L"+(.5+P)+",0 M"+(.5-P)+",.5 L"+(.5-P)+",0"},O),"\u255D":(D={},D[1]=function(P,I){return"M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M0,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",0"},D),"\u255E":(H={},H[1]=function(P,I){return"M.5,0 L.5,1 M.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},H),"\u255F":(G={},G[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1 M"+(.5+P)+",.5 L1,.5"},G),"\u2560":(V={},V[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},V),"\u2561":($={},$[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L.5,"+(.5-I)+" M0,"+(.5+I)+" L.5,"+(.5+I)},$),"\u2562":(ie={},ie[1]=function(P,I){return"M0,.5 L"+(.5-P)+",.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},ie),"\u2563":(ce={},ce[1]=function(P,I){return"M"+(.5+P)+",0 L"+(.5+P)+",1 M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0"},ce),"\u2564":(le={},le[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5+I)+" L.5,1"},le),"\u2565":(K={},K[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1 M"+(.5+P)+",.5 L"+(.5+P)+",1"},K),"\u2566":(he={},he[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},he),"\u2567":(pe={},pe[1]=function(P,I){return"M.5,0 L.5,"+(.5-I)+" M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},pe),"\u2568":(we={},we[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},we),"\u2569":(Ie={},Ie[1]=function(P,I){return"M0,"+(.5+I)+" L1,"+(.5+I)+" M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},Ie),"\u256A":(Ht={},Ht[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},Ht),"\u256B":(Ft={},Ft[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},Ft),"\u256C":(jt={},jt[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},jt),"\u2571":(Wt={},Wt[1]="M1,0 L0,1",Wt),"\u2572":(Ut={},Ut[1]="M0,0 L1,1",Ut),"\u2573":(qt={},qt[1]="M1,0 L0,1 M0,0 L1,1",qt),"\u257C":(Ue={},Ue[1]="M.5,.5 L0,.5",Ue[3]="M.5,.5 L1,.5",Ue),"\u257D":(qe={},qe[1]="M.5,.5 L.5,0",qe[3]="M.5,.5 L.5,1",qe),"\u257E":(Ne={},Ne[1]="M.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"\u257F":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L.5,0",ze),"\u250D":(Ke={},Ke[1]="M.5,.5 L.5,1",Ke[3]="M.5,.5 L1,.5",Ke),"\u250E":(Ge={},Ge[1]="M.5,.5 L1,.5",Ge[3]="M.5,.5 L.5,1",Ge),"\u2511":(Ve={},Ve[1]="M.5,.5 L.5,1",Ve[3]="M.5,.5 L0,.5",Ve),"\u2512":(Xe={},Xe[1]="M.5,.5 L0,.5",Xe[3]="M.5,.5 L.5,1",Xe),"\u2515":(Ze={},Ze[1]="M.5,.5 L.5,0",Ze[3]="M.5,.5 L1,.5",Ze),"\u2516":(Ye={},Ye[1]="M.5,.5 L1,.5",Ye[3]="M.5,.5 L.5,0",Ye),"\u2519":(Je={},Je[1]="M.5,.5 L.5,0",Je[3]="M.5,.5 L0,.5",Je),"\u251A":($e={},$e[1]="M.5,.5 L0,.5",$e[3]="M.5,.5 L.5,0",$e),"\u251D":(Qe={},Qe[1]="M.5,0 L.5,1",Qe[3]="M.5,.5 L1,.5",Qe),"\u251E":(et={},et[1]="M0.5,1 L.5,.5 L1,.5",et[3]="M.5,.5 L.5,0",et),"\u251F":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M.5,.5 L.5,1",tt),"\u2520":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1",rt),"\u2521":(it={},it[1]="M.5,.5 L.5,1",it[3]="M.5,0 L.5,.5 L1,.5",it),"\u2522":(nt={},nt[1]="M.5,.5 L.5,0",nt[3]="M0.5,1 L.5,.5 L1,.5",nt),"\u2525":(ot={},ot[1]="M.5,0 L.5,1",ot[3]="M.5,.5 L0,.5",ot),"\u2526":(st={},st[1]="M0,.5 L.5,.5 L.5,1",st[3]="M.5,.5 L.5,0",st),"\u2527":(at={},at[1]="M.5,0 L.5,.5 L0,.5",at[3]="M.5,.5 L.5,1",at),"\u2528":(ct={},ct[1]="M.5,.5 L0,.5",ct[3]="M.5,0 L.5,1",ct),"\u2529":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,0 L.5,.5 L0,.5",lt),"\u252A":(ht={},ht[1]="M.5,.5 L.5,0",ht[3]="M0,.5 L.5,.5 L.5,1",ht),"\u252D":(ut={},ut[1]="M0.5,1 L.5,.5 L1,.5",ut[3]="M.5,.5 L0,.5",ut),"\u252E":(ft={},ft[1]="M0,.5 L.5,.5 L.5,1",ft[3]="M.5,.5 L1,.5",ft),"\u252F":(dt={},dt[1]="M.5,.5 L.5,1",dt[3]="M0,.5 L1,.5",dt),"\u2530":(_t={},_t[1]="M0,.5 L1,.5",_t[3]="M.5,.5 L.5,1",_t),"\u2531":(pt={},pt[1]="M.5,.5 L1,.5",pt[3]="M0,.5 L.5,.5 L.5,1",pt),"\u2532":(vt={},vt[1]="M.5,.5 L0,.5",vt[3]="M0.5,1 L.5,.5 L1,.5",vt),"\u2535":(yt={},yt[1]="M.5,0 L.5,.5 L1,.5",yt[3]="M.5,.5 L0,.5",yt),"\u2536":(gt={},gt[1]="M.5,0 L.5,.5 L0,.5",gt[3]="M.5,.5 L1,.5",gt),"\u2537":(mt={},mt[1]="M.5,.5 L.5,0",mt[3]="M0,.5 L1,.5",mt),"\u2538":(St={},St[1]="M0,.5 L1,.5",St[3]="M.5,.5 L.5,0",St),"\u2539":(bt={},bt[1]="M.5,.5 L1,.5",bt[3]="M.5,0 L.5,.5 L0,.5",bt),"\u253A":(Ct={},Ct[1]="M.5,.5 L0,.5",Ct[3]="M.5,0 L.5,.5 L1,.5",Ct),"\u253D":(wt={},wt[1]="M.5,0 L.5,1 M.5,.5 L1,.5",wt[3]="M.5,.5 L0,.5",wt),"\u253E":(Lt={},Lt[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Lt[3]="M.5,.5 L1,.5",Lt),"\u253F":(Et={},Et[1]="M.5,0 L.5,1",Et[3]="M0,.5 L1,.5",Et),"\u2540":(xt={},xt[1]="M0,.5 L1,.5 M.5,.5 L.5,1",xt[3]="M.5,.5 L.5,0",xt),"\u2541":(Rt={},Rt[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Rt[3]="M.5,.5 L.5,1",Rt),"\u2542":(kt={},kt[1]="M0,.5 L1,.5",kt[3]="M.5,0 L.5,1",kt),"\u2543":(At={},At[1]="M0.5,1 L.5,.5 L1,.5",At[3]="M.5,0 L.5,.5 L0,.5",At),"\u2544":(Mt={},Mt[1]="M0,.5 L.5,.5 L.5,1",Mt[3]="M.5,0 L.5,.5 L1,.5",Mt),"\u2545":(Ot={},Ot[1]="M.5,0 L.5,.5 L1,.5",Ot[3]="M0,.5 L.5,.5 L.5,1",Ot),"\u2546":(Dt={},Dt[1]="M.5,0 L.5,.5 L0,.5",Dt[3]="M0.5,1 L.5,.5 L1,.5",Dt),"\u2547":(Tt={},Tt[1]="M.5,.5 L.5,1",Tt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Tt),"\u2548":(Bt={},Bt[1]="M.5,.5 L.5,0",Bt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Bt),"\u2549":(Pt={},Pt[1]="M.5,.5 L1,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Pt),"\u254A":(It={},It[1]="M.5,.5 L0,.5",It[3]="M.5,0 L.5,1 M.5,.5 L1,.5",It),"\u254C":(Nt={},Nt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Nt),"\u254D":(zt={},zt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",zt),"\u2504":(Kt={},Kt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Kt),"\u2505":(Gt={},Gt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gt),"\u2508":(Vt={},Vt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Vt),"\u2509":(Xt={},Xt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Xt),"\u254E":(Zt={},Zt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Zt),"\u254F":(Yt={},Yt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yt),"\u2506":(Jt={},Jt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Jt),"\u2507":($t={},$t[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",$t),"\u250A":(Qt={},Qt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Qt),"\u250B":(er={},er[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",er),"\u256D":(tr={},tr[1]="C.5,1,.5,.5,1,.5",tr),"\u256E":(rr={},rr[1]="C.5,1,.5,.5,0,.5",rr),"\u256F":(ir={},ir[1]="C.5,0,.5,.5,0,.5",ir),"\u2570":(nr={},nr[1]="C.5,0,.5,.5,1,.5",nr)},c.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0},"\uE0B1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0},"\uE0B3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},c.tryDrawCustomChar=function(P,I,se,ve,Le,me){var ne=c.blockElementDefinitions[I];if(ne)return function(re,ye,Te,Be,Me,Oe){for(var ue=0;ue7&&parseInt(Q.slice(7,9),16)||1;else{if(!Q.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Q+'" when drawing pattern glyph');He=(ue=ar(Q.substring(5,Q.length-1).split(",").map(function(We){return parseFloat(We)}),4))[0],De=ue[1],Ae=ue[2],Fe=ue[3]}for(var Re=0;Re{Object.defineProperty(c,"__esModule",{value:!0}),c.GridCache=void 0;var w=function(){function p(){this.cache=[]}return p.prototype.resize=function(u,f){for(var d=0;d=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.LinkRenderLayer=void 0;var m=w(1546),v=w(8803),a=w(2040),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b,g){var S=h.call(this,e,"link",t,!0,i,n,y,b,g)||this;return l.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),l.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),s.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),s.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),S}return u(r,h),r.prototype.resize=function(e){h.prototype.resize.call(this,e),this._state=void 0},r.prototype.reset=function(){this._clearCurrentLink()},r.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},r.prototype._onShowLinkUnderline=function(e){if(e.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,a.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;L--)(S=s[L])&&(k=(C<3?S(k):C>3?S(y,b,k):S(y,b))||k);return C>3&&k&&Object.defineProperty(y,b,k),k},d=this&&this.__param||function(s,y){return function(b,g){y(b,g,s)}},m=this&&this.__values||function(s){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&s[y],g=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&g>=s.length&&(s=void 0),{value:s&&s[g++],done:!s}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Renderer=void 0;var v=w(9596),a=w(4149),o=w(2512),_=w(5098),h=w(844),r=w(4725),e=w(2585),t=w(1420),i=w(8460),n=1,l=function(s){function y(b,g,S,C,k,L,R,x){var E=s.call(this)||this;E._colors=b,E._screenElement=g,E._bufferService=L,E._charSizeService=R,E._optionsService=x,E._id=n++,E._onRequestRedraw=new i.EventEmitter;var M=E._optionsService.rawOptions.allowTransparency;return E._renderLayers=[k.createInstance(v.TextRenderLayer,E._screenElement,0,E._colors,M,E._id),k.createInstance(a.SelectionRenderLayer,E._screenElement,1,E._colors,E._id),k.createInstance(_.LinkRenderLayer,E._screenElement,2,E._colors,E._id,S,C),k.createInstance(o.CursorRenderLayer,E._screenElement,3,E._colors,E._id,E._onRequestRedraw)],E.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},E._devicePixelRatio=window.devicePixelRatio,E._updateDimensions(),E.onOptionsChanged(),E}return u(y,s),Object.defineProperty(y.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.dispose()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}s.prototype.dispose.call(this),(0,t.removeTerminalFromCache)(this._id)},y.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},y.prototype.setColors=function(b){var g,S;this._colors=b;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next()){var L=k.value;L.setColors(this._colors),L.reset()}}catch(R){g={error:R}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.onResize=function(b,g){var S,C;this._updateDimensions();try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.resize(this.dimensions)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},y.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},y.prototype.onBlur=function(){this._runOperation(function(b){return b.onBlur()})},y.prototype.onFocus=function(){this._runOperation(function(b){return b.onFocus()})},y.prototype.onSelectionChanged=function(b,g,S){S===void 0&&(S=!1),this._runOperation(function(C){return C.onSelectionChanged(b,g,S)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},y.prototype.onCursorMove=function(){this._runOperation(function(b){return b.onCursorMove()})},y.prototype.onOptionsChanged=function(){this._runOperation(function(b){return b.onOptionsChanged()})},y.prototype.clear=function(){this._runOperation(function(b){return b.reset()})},y.prototype._runOperation=function(b){var g,S;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next())b(k.value)}catch(L){g={error:L}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.renderRows=function(b,g){var S,C;try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.onGridChanged(b,g)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}},y.prototype.clearTextureAtlas=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.clearTextureAtlas()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}},y.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},f([d(4,e.IInstantiationService),d(5,e.IBufferService),d(6,r.ICharSizeService),d(7,e.IOptionsService)],y)}(h.Disposable);c.Renderer=l},1752:(W,c)=>{function w(p){return 57508<=p&&p<=57558}Object.defineProperty(c,"__esModule",{value:!0}),c.excludeFromContrastRatioDemands=c.isPowerlineGlyph=c.throwIfFalsy=void 0,c.throwIfFalsy=function(p){if(!p)throw new Error("value must not be falsy");return p},c.isPowerlineGlyph=w,c.excludeFromContrastRatioDemands=function(p){return w(p)||function(u){return 9472<=u&&u<=9631}(p)}},4149:function(W,c,w){var p,u=this&&this.__extends||(p=function(o,_){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,r){h.__proto__=r}||function(h,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(h[e]=r[e])},p(o,_)},function(o,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function h(){this.constructor=o}p(o,_),o.prototype=_===null?Object.create(_):(h.prototype=_.prototype,new h)}),f=this&&this.__decorate||function(o,_,h,r){var e,t=arguments.length,i=t<3?_:r===null?r=Object.getOwnPropertyDescriptor(_,h):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,_,h,r);else for(var n=o.length-1;n>=0;n--)(e=o[n])&&(i=(t<3?e(i):t>3?e(_,h,i):e(_,h))||i);return t>3&&i&&Object.defineProperty(_,h,i),i},d=this&&this.__param||function(o,_){return function(h,r){_(h,r,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionRenderLayer=void 0;var m=w(1546),v=w(2585),a=function(o){function _(h,r,e,t,i,n,l){var s=o.call(this,h,"selection",r,!0,e,t,i,n,l)||this;return s._clearState(),s}return u(_,o),_.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},_.prototype.resize=function(h){o.prototype.resize.call(this,h),this._clearState()},_.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},_.prototype.onSelectionChanged=function(h,r,e){if(o.prototype.onSelectionChanged.call(this,h,r,e),this._didStateChange(h,r,e,this._bufferService.buffer.ydisp))if(this._clearAll(),h&&r){var t=h[1]-this._bufferService.buffer.ydisp,i=r[1]-this._bufferService.buffer.ydisp,n=Math.max(t,0),l=Math.min(i,this._bufferService.rows-1);if(n>=this._bufferService.rows||l<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,e){var s=h[0],y=r[0]-s,b=l-n+1;this._fillCells(s,n,y,b)}else{s=t===n?h[0]:0;var g=n===i?r[0]:this._bufferService.cols;this._fillCells(s,n,g-s,1);var S=Math.max(l-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,S),n!==l){var C=i===l?r[0]:this._bufferService.cols;this._fillCells(0,l,C,1)}}this._state.start=[h[0],h[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=e,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},_.prototype._didStateChange=function(h,r,e,t){return!this._areCoordinatesEqual(h,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||e!==this._state.columnSelectMode||t!==this._state.ydisp},_.prototype._areCoordinatesEqual=function(h,r){return!(!h||!r)&&h[0]===r[0]&&h[1]===r[1]},f([d(4,v.IBufferService),d(5,v.IOptionsService),d(6,v.IDecorationService)],_)}(m.BaseRenderLayer);c.SelectionRenderLayer=a},9596:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.TextRenderLayer=void 0;var v=w(3700),a=w(1546),o=w(3734),_=w(643),h=w(511),r=w(2585),e=w(4725),t=w(4269),i=function(n){function l(s,y,b,g,S,C,k,L,R){var x=n.call(this,s,"text",y,g,b,S,C,k,R)||this;return x._characterJoinerService=L,x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new h.CellData,x._state=new v.GridCache,x}return u(l,n),l.prototype.resize=function(s){n.prototype.resize.call(this,s);var y=this._getFont(!1,!1);this._characterWidth===s.scaledCharWidth&&this._characterFont===y||(this._characterWidth=s.scaledCharWidth,this._characterFont=y,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(s,y,b){for(var g=s;g<=y;g++)for(var S=g+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.lines.get(S),k=this._characterJoinerService.getJoinedCharacters(S),L=0;L0&&L===k[0][0]){x=!0;var M=k.shift();R=new t.JoinedCellData(this._workCell,C.translateToString(!0,M[0],M[1]),M[1]-M[0]),E=M[1]-1}!x&&this._isOverlapping(R)&&Ethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[y]=b,b},f([d(5,r.IBufferService),d(6,r.IOptionsService),d(7,e.ICharacterJoinerService),d(8,r.IDecorationService)],l)}(a.BaseRenderLayer);c.TextRenderLayer=i},9616:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BaseCharAtlas=void 0;var w=function(){function p(){this._didWarmUp=!1}return p.prototype.dispose=function(){},p.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},p.prototype._doWarmUp=function(){},p.prototype.clear=function(){},p.prototype.beginFrame=function(){},p}();c.BaseCharAtlas=w},1420:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.removeTerminalFromCache=c.acquireCharAtlas=void 0;var p=w(2040),u=w(1906),f=[];c.acquireCharAtlas=function(d,m,v,a,o){for(var _=(0,p.generateConfig)(a,o,d,v),h=0;h=0){if((0,p.configEquals)(e.config,_))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),f.splice(h,1)):e.ownedBy.splice(r,1);break}}for(h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.is256Color=c.configEquals=c.generateConfig=void 0;var p=w(643);c.generateConfig=function(u,f,d,m){var v={foreground:m.foreground,background:m.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:m.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:u,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:v}},c.configEquals=function(u,f){for(var d=0;d{Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR_ATLAS_CELL_SPACING=c.TEXT_BASELINE=c.DIM_OPACITY=c.INVERTED_DEFAULT_COLOR=void 0;var p=w(6114);c.INVERTED_DEFAULT_COLOR=257,c.DIM_OPACITY=.5,c.TEXT_BASELINE=p.isFirefox||p.isLegacyEdge?"bottom":"ideographic",c.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,c,w){var p,u=this&&this.__extends||(p=function(s,y){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&(b[S]=g[S])},p(s,y)},function(s,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=s}p(s,y),s.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)});Object.defineProperty(c,"__esModule",{value:!0}),c.NoneCharAtlas=c.DynamicCharAtlas=c.getGlyphCacheKey=void 0;var f=w(8803),d=w(9616),m=w(5680),v=w(7001),a=w(6114),o=w(1752),_=w(8055),h=1024,r=1024,e={css:"rgba(0, 0, 0, 0)",rgba:0};function t(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}c.getGlyphCacheKey=t;var i=function(s){function y(b,g){var S=s.call(this)||this;S._config=g,S._drawToCacheCount=0,S._glyphsWaitingOnBitmap=[],S._bitmapCommitTimeout=null,S._bitmap=null,S._cacheCanvas=b.createElement("canvas"),S._cacheCanvas.width=h,S._cacheCanvas.height=r,S._cacheCtx=(0,o.throwIfFalsy)(S._cacheCanvas.getContext("2d",{alpha:!0}));var C=b.createElement("canvas");C.width=S._config.scaledCharWidth,C.height=S._config.scaledCharHeight,S._tmpCtx=(0,o.throwIfFalsy)(C.getContext("2d",{alpha:S._config.allowTransparency})),S._width=Math.floor(h/S._config.scaledCharWidth),S._height=Math.floor(r/S._config.scaledCharHeight);var k=S._width*S._height;return S._cacheMap=new v.LRUMap(k),S._cacheMap.prealloc(k),S}return u(y,s),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.clear=function(){if(this._cacheMap.size>0){var b=this._width*this._height;this._cacheMap=new v.LRUMap(b),this._cacheMap.prealloc(b)}this._cacheCtx.clearRect(0,0,h,r),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},y.prototype.draw=function(b,g,S,C){if(g.code===32)return!0;if(!this._canCache(g))return!1;var k=t(g),L=this._cacheMap.get(k);if(L!=null)return this._drawFromCache(b,L,S,C),!0;if(this._drawToCacheCount<100){var R;R=this._cacheMap.size>>24,S=y.rgba>>>16&255,C=y.rgba>>>8&255,k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.LRUMap=void 0;var w=function(){function p(u){this.capacity=u,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return p.prototype._unlinkNode=function(u){var f=u.prev,d=u.next;u===this._head&&(this._head=d),u===this._tail&&(this._tail=f),f!==null&&(f.next=d),d!==null&&(d.prev=f)},p.prototype._appendNode=function(u){var f=this._tail;f!==null&&(f.next=u),u.prev=f,u.next=null,this._tail=u,this._head===null&&(this._head=u)},p.prototype.prealloc=function(u){for(var f=this._nodePool,d=0;d=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=u,d.value=f,this._map[u]=d;else{var m=this._nodePool;m.length>0?((d=m.pop()).key=u,d.value=f):d={prev:null,next:null,key:u,value:f},this._map[u]=d,this.size++}this._appendNode(d)},p}();c.LRUMap=w},1296:function(W,c,w){var p,u=this&&this.__extends||(p=function(g,S){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(C[L]=k[L])},p(g,S)},function(g,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function C(){this.constructor=g}p(g,S),g.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),f=this&&this.__decorate||function(g,S,C,k){var L,R=arguments.length,x=R<3?S:k===null?k=Object.getOwnPropertyDescriptor(S,C):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(g,S,C,k);else for(var E=g.length-1;E>=0;E--)(L=g[E])&&(x=(R<3?L(x):R>3?L(S,C,x):L(S,C))||x);return R>3&&x&&Object.defineProperty(S,C,x),x},d=this&&this.__param||function(g,S){return function(C,k){S(C,k,g)}},m=this&&this.__values||function(g){var S=typeof Symbol=="function"&&Symbol.iterator,C=S&&g[S],k=0;if(C)return C.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&k>=g.length&&(g=void 0),{value:g&&g[k++],done:!g}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRenderer=void 0;var v=w(3787),a=w(8803),o=w(844),_=w(4725),h=w(2585),r=w(8460),e=w(8055),t=w(9631),i="xterm-dom-renderer-owner-",n="xterm-fg-",l="xterm-bg-",s="xterm-focus",y=1,b=function(g){function S(C,k,L,R,x,E,M,T,U,q){var F=g.call(this)||this;return F._colors=C,F._element=k,F._screenElement=L,F._viewportElement=R,F._linkifier=x,F._linkifier2=E,F._charSizeService=T,F._optionsService=U,F._bufferService=q,F._terminalClass=y++,F._rowElements=[],F._rowContainer=document.createElement("div"),F._rowContainer.classList.add("xterm-rows"),F._rowContainer.style.lineHeight="normal",F._rowContainer.setAttribute("aria-hidden","true"),F._refreshRowElements(F._bufferService.cols,F._bufferService.rows),F._selectionContainer=document.createElement("div"),F._selectionContainer.classList.add("xterm-selection"),F._selectionContainer.setAttribute("aria-hidden","true"),F.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},F._updateDimensions(),F._injectCss(),F._rowFactory=M.createInstance(v.DomRendererRowFactory,document,F._colors),F._element.classList.add(i+F._terminalClass),F._screenElement.appendChild(F._rowContainer),F._screenElement.appendChild(F._selectionContainer),F.register(F._linkifier.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F.register(F._linkifier2.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier2.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F}return u(S,g),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this._element.classList.remove(i+this._terminalClass),(0,t.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),g.prototype.dispose.call(this)},S.prototype._updateDimensions=function(){var C,k;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next()){var x=R.value;x.style.width=this.dimensions.canvasWidth+"px",x.style.height=this.dimensions.actualCellHeight+"px",x.style.lineHeight=this.dimensions.actualCellHeight+"px",x.style.overflow="hidden"}}catch(M){C={error:M}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},S.prototype.setColors=function(C){this._colors=C,this._injectCss()},S.prototype._injectCss=function(){var C=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var k=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";k+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",k+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",k+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",k+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",k+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(L,R){k+=C._terminalSelector+" ."+n+R+" { color: "+L.css+"; }"+C._terminalSelector+" ."+l+R+" { background-color: "+L.css+"; }"}),k+=this._terminalSelector+" ."+n+a.INVERTED_DEFAULT_COLOR+" { color: "+e.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+l+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=k},S.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},S.prototype._refreshRowElements=function(C,k){for(var L=this._rowElements.length;L<=k;L++){var R=document.createElement("div");this._rowContainer.appendChild(R),this._rowElements.push(R)}for(;this._rowElements.length>k;)this._rowContainer.removeChild(this._rowElements.pop())},S.prototype.onResize=function(C,k){this._refreshRowElements(C,k),this._updateDimensions()},S.prototype.onCharSizeChanged=function(){this._updateDimensions()},S.prototype.onBlur=function(){this._rowContainer.classList.remove(s)},S.prototype.onFocus=function(){this._rowContainer.classList.add(s)},S.prototype.onSelectionChanged=function(C,k,L){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(C,k,L),this.renderRows(0,this._bufferService.rows-1),C&&k){var R=C[1]-this._bufferService.buffer.ydisp,x=k[1]-this._bufferService.buffer.ydisp,E=Math.max(R,0),M=Math.min(x,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||M<0)){var T=document.createDocumentFragment();if(L){var U=C[0]>k[0];T.appendChild(this._createSelectionElement(E,U?k[0]:C[0],U?C[0]:k[0],M-E+1))}else{var q=R===E?C[0]:0,F=E===x?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(E,q,F));var z=M-E-1;if(T.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,z)),E!==M){var N=x===M?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(M,0,N))}}this._selectionContainer.appendChild(T)}}},S.prototype._createSelectionElement=function(C,k,L,R){R===void 0&&(R=1);var x=document.createElement("div");return x.style.height=R*this.dimensions.actualCellHeight+"px",x.style.top=C*this.dimensions.actualCellHeight+"px",x.style.left=k*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(L-k)+"px",x},S.prototype.onCursorMove=function(){},S.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},S.prototype.clear=function(){var C,k;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next())R.value.innerText=""}catch(x){C={error:x}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}},S.prototype.renderRows=function(C,k){for(var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,R=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.rawOptions.cursorBlink,E=C;E<=k;E++){var M=this._rowElements[E];M.innerText="";var T=E+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(T),q=this._optionsService.rawOptions.cursorStyle;M.appendChild(this._rowFactory.createRow(U,T,T===L,q,R,x,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(S.prototype,"_terminalSelector",{get:function(){return"."+i+this._terminalClass},enumerable:!1,configurable:!0}),S.prototype._onLinkHover=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!0)},S.prototype._onLinkLeave=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!1)},S.prototype._setCellUnderline=function(C,k,L,R,x,E){for(;C!==k||L!==R;){var M=this._rowElements[L];if(!M)return;var T=M.children[C];T&&(T.style.textDecoration=E?"underline":"none"),++C>=x&&(C=0,L++)}},f([d(6,h.IInstantiationService),d(7,_.ICharSizeService),d(8,h.IOptionsService),d(9,h.IBufferService)],S)}(o.Disposable);c.DomRenderer=b},3787:function(W,c,w){var p=this&&this.__decorate||function(i,n,l,s){var y,b=arguments.length,g=b<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,l):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,l,s);else for(var S=i.length-1;S>=0;S--)(y=i[S])&&(g=(b<3?y(g):b>3?y(n,l,g):y(n,l))||g);return b>3&&g&&Object.defineProperty(n,l,g),g},u=this&&this.__param||function(i,n){return function(l,s){n(l,s,i)}},f=this&&this.__values||function(i){var n=typeof Symbol=="function"&&Symbol.iterator,l=n&&i[n],s=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRendererRowFactory=c.CURSOR_STYLE_UNDERLINE_CLASS=c.CURSOR_STYLE_BAR_CLASS=c.CURSOR_STYLE_BLOCK_CLASS=c.CURSOR_BLINK_CLASS=c.CURSOR_CLASS=c.STRIKETHROUGH_CLASS=c.UNDERLINE_CLASS=c.ITALIC_CLASS=c.DIM_CLASS=c.BOLD_CLASS=void 0;var d=w(8803),m=w(643),v=w(511),a=w(2585),o=w(8055),_=w(4725),h=w(4269),r=w(1752);c.BOLD_CLASS="xterm-bold",c.DIM_CLASS="xterm-dim",c.ITALIC_CLASS="xterm-italic",c.UNDERLINE_CLASS="xterm-underline",c.STRIKETHROUGH_CLASS="xterm-strikethrough",c.CURSOR_CLASS="xterm-cursor",c.CURSOR_BLINK_CLASS="xterm-cursor-blink",c.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",c.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",c.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var e=function(){function i(n,l,s,y,b,g){this._document=n,this._colors=l,this._characterJoinerService=s,this._optionsService=y,this._coreService=b,this._decorationService=g,this._workCell=new v.CellData,this._columnSelectMode=!1}return i.prototype.setColors=function(n){this._colors=n},i.prototype.onSelectionChanged=function(n,l,s){this._selectionStart=n,this._selectionEnd=l,this._columnSelectMode=s},i.prototype.createRow=function(n,l,s,y,b,g,S,C){for(var k,L,R=this._document.createDocumentFragment(),x=this._characterJoinerService.getJoinedCharacters(l),E=0,M=Math.min(n.length,C)-1;M>=0;M--)if(n.loadCell(M,this._workCell).getCode()!==m.NULL_CELL_CODE||s&&M===b){E=M+1;break}for(M=0;M0&&M===x[0][0]){U=!0;var z=x.shift();F=new h.JoinedCellData(this._workCell,n.translateToString(!0,z[0],z[1]),z[1]-z[0]),q=z[1]-1,T=F.getWidth()}var N=this._document.createElement("span");if(T>1&&(N.style.width=S*T+"px"),U&&(N.style.display="inline",b>=M&&b<=q&&(b=M)),!this._coreService.isCursorHidden&&s&&M===b)switch(N.classList.add(c.CURSOR_CLASS),g&&N.classList.add(c.CURSOR_BLINK_CLASS),y){case"bar":N.classList.add(c.CURSOR_STYLE_BAR_CLASS);break;case"underline":N.classList.add(c.CURSOR_STYLE_UNDERLINE_CLASS);break;default:N.classList.add(c.CURSOR_STYLE_BLOCK_CLASS)}F.isBold()&&N.classList.add(c.BOLD_CLASS),F.isItalic()&&N.classList.add(c.ITALIC_CLASS),F.isDim()&&N.classList.add(c.DIM_CLASS),F.isUnderline()&&N.classList.add(c.UNDERLINE_CLASS),F.isInvisible()?N.textContent=m.WHITESPACE_CELL_CHAR:N.textContent=F.getChars()||m.WHITESPACE_CELL_CHAR,F.isStrikethrough()&&N.classList.add(c.STRIKETHROUGH_CLASS);var A=F.getFgColor(),Y=F.getFgColorMode(),Z=F.getBgColor(),te=F.getBgColorMode(),B=!!F.isInverse();if(B){var ee=A;A=Z,Z=ee;var X=Y;Y=te,te=X}var j=void 0,O=void 0,D=!1;try{for(var H=(k=void 0,f(this._decorationService.getDecorationsAtCell(M,l))),G=H.next();!G.done;G=H.next()){var V=G.value;V.options.layer!=="top"&&D||(V.backgroundColorRGB&&(te=50331648,Z=V.backgroundColorRGB.rgba>>8&16777215,j=V.backgroundColorRGB),V.foregroundColorRGB&&(Y=50331648,A=V.foregroundColorRGB.rgba>>8&16777215,O=V.foregroundColorRGB),D=V.options.layer==="top")}}catch(le){k={error:le}}finally{try{G&&!G.done&&(L=H.return)&&L.call(H)}finally{if(k)throw k.error}}var $=this._isCellInSelection(M,l);D||this._colors.selectionForeground&&$&&(Y=50331648,A=this._colors.selectionForeground.rgba>>8&16777215,O=this._colors.selectionForeground),$&&(j=this._colors.selectionOpaque,D=!0),D&&N.classList.add("xterm-decoration-top");var ie=void 0;switch(te){case 16777216:case 33554432:ie=this._colors.ansi[Z],N.classList.add("xterm-bg-"+Z);break;case 50331648:ie=o.rgba.toColor(Z>>16,Z>>8&255,255&Z),this._addStyle(N,"background-color:#"+t((Z>>>0).toString(16),"0",6));break;default:B?(ie=this._colors.foreground,N.classList.add("xterm-bg-"+d.INVERTED_DEFAULT_COLOR)):ie=this._colors.background}switch(Y){case 16777216:case 33554432:F.isBold()&&A<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(A+=8),this._applyMinimumContrast(N,ie,this._colors.ansi[A],F,j,void 0)||N.classList.add("xterm-fg-"+A);break;case 50331648:var ce=o.rgba.toColor(A>>16&255,A>>8&255,255&A);this._applyMinimumContrast(N,ie,ce,F,j,O)||this._addStyle(N,"color:#"+t(A.toString(16),"0",6));break;default:this._applyMinimumContrast(N,ie,this._colors.foreground,F,j,void 0)||B&&N.classList.add("xterm-fg-"+d.INVERTED_DEFAULT_COLOR)}R.appendChild(N),M=q}}return R},i.prototype._applyMinimumContrast=function(n,l,s,y,b,g){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,r.excludeFromContrastRatioDemands)(y.getCode()))return!1;var S=void 0;return b||g||(S=this._colors.contrastCache.getColor(l.rgba,s.rgba)),S===void 0&&(S=o.color.ensureContrastRatio(b||l,g||s,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((b||l).rgba,(g||s).rgba,S!=null?S:null)),!!S&&(this._addStyle(n,"color:"+S.css),!0)},i.prototype._addStyle=function(n,l){n.setAttribute("style",""+(n.getAttribute("style")||"")+l+";")},i.prototype._isCellInSelection=function(n,l){var s=this._selectionStart,y=this._selectionEnd;return!(!s||!y)&&(this._columnSelectMode?s[0]<=y[0]?n>=s[0]&&l>=s[1]&&n=s[1]&&n>=y[0]&&l<=y[1]:l>s[1]&&l=s[0]&&n=s[0])},p([u(2,_.ICharacterJoinerService),u(3,a.IOptionsService),u(4,a.ICoreService),u(5,a.IDecorationService)],i)}();function t(i,n,l){for(;i.length{Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionModel=void 0;var w=function(){function p(u){this._bufferService=u,this.isSelectAllActive=!1,this.selectionStartLength=0}return p.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(p.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?u%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)-1]:[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[u,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[Math.max(u,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var u},enumerable:!1,configurable:!0}),p.prototype.areSelectionValuesReversed=function(){var u=this.selectionStart,f=this.selectionEnd;return!(!u||!f)&&(u[1]>f[1]||u[1]===f[1]&&u[0]>f[0])},p.prototype.onTrim=function(u){return this.selectionStart&&(this.selectionStart[1]-=u),this.selectionEnd&&(this.selectionEnd[1]-=u),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},p}();c.SelectionModel=w},428:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharSizeService=void 0;var f=w(2585),d=w(8460),m=function(){function a(o,_,h){this._optionsService=h,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new v(o,_,this._optionsService)}return Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),a.prototype.measure=function(){var o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},p([u(2,f.IOptionsService)],a)}();c.CharSizeService=m;var v=function(){function a(o,_,h){this._document=o,this._parentElement=_,this._optionsService=h,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return a.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},a}()},4269:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharacterJoinerService=c.JoinedCellData=void 0;var m=w(3734),v=w(643),a=w(511),o=w(2585),_=function(r){function e(t,i,n){var l=r.call(this)||this;return l.content=0,l.combinedData="",l.fg=t.fg,l.bg=t.bg,l.combinedData=i,l._width=n,l}return u(e,r),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(t){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(m.AttributeData);c.JoinedCellData=_;var h=function(){function r(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return r.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},r.prototype.deregister=function(e){for(var t=0;t1)for(var C=this._getJoinedRanges(n,y,s,t,l),k=0;k1)for(C=this._getJoinedRanges(n,y,s,t,l),k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreBrowserService=void 0;var w=function(){function p(u){this._textarea=u}return Object.defineProperty(p.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),p}();c.CoreBrowserService=w},8934:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseService=void 0;var f=w(4725),d=w(9806),m=function(){function v(a,o){this._renderService=a,this._charSizeService=o}return v.prototype.getCoords=function(a,o,_,h,r){return(0,d.getCoords)(window,a,o,_,h,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)},v.prototype.getRawByteCoords=function(a,o,_,h){var r=this.getCoords(a,o,_,h);return(0,d.getRawByteCoords)(r)},p([u(0,f.IRenderService),u(1,f.ICharSizeService)],v)}();c.MouseService=m},3230:function(W,c,w){var p,u=this&&this.__extends||(p=function(t,i){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(n[s]=l[s])},p(t,i)},function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}p(t,i),t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}),f=this&&this.__decorate||function(t,i,n,l){var s,y=arguments.length,b=y<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(t,i,n,l);else for(var g=t.length-1;g>=0;g--)(s=t[g])&&(b=(y<3?s(b):y>3?s(i,n,b):s(i,n))||b);return y>3&&b&&Object.defineProperty(i,n,b),b},d=this&&this.__param||function(t,i){return function(n,l){i(n,l,t)}};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderService=void 0;var m=w(6193),v=w(8460),a=w(844),o=w(5596),_=w(3656),h=w(2585),r=w(4725),e=function(t){function i(n,l,s,y,b,g,S){var C=t.call(this)||this;if(C._renderer=n,C._rowCount=l,C._charSizeService=b,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new v.EventEmitter,C._onRenderedViewportChange=new v.EventEmitter,C._onRender=new v.EventEmitter,C._onRefreshRequest=new v.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new m.RenderDebouncer(function(L,R){return C._renderRows(L,R)}),C.register(C._renderDebouncer),C._screenDprMonitor=new o.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(S.onResize(function(){return C._fullRefresh()})),C.register(S.buffers.onBufferActivate(function(){var L;return(L=C._renderer)===null||L===void 0?void 0:L.clear()})),C.register(y.onOptionChange(function(){return C._handleOptionsChanged()})),C.register(C._charSizeService.onCharSizeChange(function(){return C.onCharSizeChanged()})),C.register(g.onDecorationRegistered(function(){return C._fullRefresh()})),C.register(g.onDecorationRemoved(function(){return C._fullRefresh()})),C._renderer.onRequestRedraw(function(L){return C.refreshRows(L.start,L.end,!0)}),C.register((0,_.addDisposableDomListener)(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var k=new IntersectionObserver(function(L){return C._onIntersectionChange(L[L.length-1])},{threshold:0});k.observe(s),C.register({dispose:function(){return k.disconnect()}})}return C}return u(i,t),Object.defineProperty(i.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),i.prototype._onIntersectionChange=function(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},i.prototype.refreshRows=function(n,l,s){s===void 0&&(s=!1),this._isPaused?this._needsFullRefresh=!0:(s||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,l,this._rowCount))},i.prototype._renderRows=function(n,l){this._renderer.renderRows(n,l),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:l}),this._onRender.fire({start:n,end:l}),this._isNextRenderRedrawOnly=!0},i.prototype.resize=function(n,l){this._rowCount=l,this._fireOnCanvasResize()},i.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},i.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},i.prototype.dispose=function(){t.prototype.dispose.call(this)},i.prototype.setRenderer=function(n){var l=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRedraw(function(s){return l.refreshRows(s.start,s.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},i.prototype.addRefreshCallback=function(n){return this._renderDebouncer.addRefreshCallback(n)},i.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},i.prototype.clearTextureAtlas=function(){var n,l;(l=(n=this._renderer)===null||n===void 0?void 0:n.clearTextureAtlas)===null||l===void 0||l.call(n),this._fullRefresh()},i.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},i.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},i.prototype.onResize=function(n,l){this._renderer.onResize(n,l),this._fullRefresh()},i.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},i.prototype.onBlur=function(){this._renderer.onBlur()},i.prototype.onFocus=function(){this._renderer.onFocus()},i.prototype.onSelectionChanged=function(n,l,s){this._selectionState.start=n,this._selectionState.end=l,this._selectionState.columnSelectMode=s,this._renderer.onSelectionChanged(n,l,s)},i.prototype.onCursorMove=function(){this._renderer.onCursorMove()},i.prototype.clear=function(){this._renderer.clear()},f([d(3,h.IOptionsService),d(4,r.ICharSizeService),d(5,h.IDecorationService),d(6,h.IBufferService)],i)}(a.Disposable);c.RenderService=e},9312:function(W,c,w){var p,u=this&&this.__extends||(p=function(y,b){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,S){g.__proto__=S}||function(g,S){for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&(g[C]=S[C])},p(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function g(){this.constructor=y}p(y,b),y.prototype=b===null?Object.create(b):(g.prototype=b.prototype,new g)}),f=this&&this.__decorate||function(y,b,g,S){var C,k=arguments.length,L=k<3?b:S===null?S=Object.getOwnPropertyDescriptor(b,g):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(y,b,g,S);else for(var R=y.length-1;R>=0;R--)(C=y[R])&&(L=(k<3?C(L):k>3?C(b,g,L):C(b,g))||L);return k>3&&L&&Object.defineProperty(b,g,L),L},d=this&&this.__param||function(y,b){return function(g,S){b(g,S,y)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionService=void 0;var m=w(6114),v=w(456),a=w(511),o=w(8460),_=w(4725),h=w(2585),r=w(9806),e=w(9504),t=w(844),i=w(4841),n=String.fromCharCode(160),l=new RegExp(n,"g"),s=function(y){function b(g,S,C,k,L,R,x,E){var M=y.call(this)||this;return M._element=g,M._screenElement=S,M._linkifier=C,M._bufferService=k,M._coreService=L,M._mouseService=R,M._optionsService=x,M._renderService=E,M._dragScrollAmount=0,M._enabled=!0,M._workCell=new a.CellData,M._mouseDownTimeStamp=0,M._oldHasSelection=!1,M._oldSelectionStart=void 0,M._oldSelectionEnd=void 0,M._onLinuxMouseSelection=M.register(new o.EventEmitter),M._onRedrawRequest=M.register(new o.EventEmitter),M._onSelectionChange=M.register(new o.EventEmitter),M._onRequestScrollLines=M.register(new o.EventEmitter),M._mouseMoveListener=function(T){return M._onMouseMove(T)},M._mouseUpListener=function(T){return M._onMouseUp(T)},M._coreService.onUserInput(function(){M.hasSelection&&M.clearSelection()}),M._trimListener=M._bufferService.buffer.lines.onTrim(function(T){return M._onTrim(T)}),M.register(M._bufferService.buffers.onBufferActivate(function(T){return M._onBufferActivate(T)})),M.enable(),M._model=new v.SelectionModel(M._bufferService),M._activeSelectionMode=0,M}return u(b,y),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;return!(!g||!S||g[0]===S[0]&&g[1]===S[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;if(!g||!S)return"";var C=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(g[0]===S[0])return"";for(var L=g[0]S[1]&&g[1]=S[0]&&g[0]=S[0]},b.prototype._selectWordAtCursor=function(g,S){var C,k,L=(k=(C=this._linkifier.currentLink)===null||C===void 0?void 0:C.link)===null||k===void 0?void 0:k.range;if(L)return this._model.selectionStart=[L.start.x-1,L.start.y-1],this._model.selectionStartLength=(0,i.getRangeLength)(L,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var R=this._getMouseBufferCoords(g);return!!R&&(this._selectWordAt(R,S),this._model.selectionEnd=void 0,!0)},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(g,S){this._model.clearSelection(),g=Math.max(g,0),S=Math.min(S,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,g],this._model.selectionEnd=[this._bufferService.cols,S],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(g){this._model.onTrim(g)&&this.refresh()},b.prototype._getMouseBufferCoords=function(g){var S=this._mouseService.getCoords(g,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(S)return S[0]--,S[1]--,S[1]+=this._bufferService.buffer.ydisp,S},b.prototype._getMouseEventScrollAmount=function(g){var S=(0,r.getCoordsRelativeToElement)(window,g,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return S>=0&&S<=C?0:(S>C&&(S-=C),S=Math.min(Math.max(S,-50),50),(S/=50)/Math.abs(S)+Math.round(14*S))},b.prototype.shouldForceSelection=function(g){return m.isMac?g.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:g.shiftKey},b.prototype.onMouseDown=function(g){if(this._mouseDownTimeStamp=g.timeStamp,(g.button!==2||!this.hasSelection)&&g.button===0){if(!this._enabled){if(!this.shouldForceSelection(g))return;g.stopPropagation()}g.preventDefault(),this._dragScrollAmount=0,this._enabled&&g.shiftKey?this._onIncrementalClick(g):g.detail===1?this._onSingleClick(g):g.detail===2?this._onDoubleClick(g):g.detail===3&&this._onTripleClick(g),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var g=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return g._dragScroll()},50)},b.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},b.prototype._onIncrementalClick=function(g){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(g))},b.prototype._onSingleClick=function(g){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(g)?3:0,this._model.selectionStart=this._getMouseBufferCoords(g),this._model.selectionStart){this._model.selectionEnd=void 0;var S=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);S&&S.length!==this._model.selectionStart[0]&&S.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(g){this._selectWordAtCursor(g,!0)&&(this._activeSelectionMode=1)},b.prototype._onTripleClick=function(g){var S=this._getMouseBufferCoords(g);S&&(this._activeSelectionMode=2,this._selectLineAt(S[1]))},b.prototype.shouldColumnSelect=function(g){return g.altKey&&!(m.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(g){if(g.stopImmediatePropagation(),this._model.selectionStart){var S=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(g),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(g.ydisp+this._bufferService.rows,g.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=g.ydisp),this.refresh()}},b.prototype._onMouseUp=function(g){var S=g.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&S<500&&g.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(g,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var k=(0,e.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(k,!0)}}}else this._fireEventIfSelectionChanged()},b.prototype._fireEventIfSelectionChanged=function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd,C=!(!g||!S||g[0]===S[0]&&g[1]===S[1]);C?g&&S&&(this._oldSelectionStart&&this._oldSelectionEnd&&g[0]===this._oldSelectionStart[0]&&g[1]===this._oldSelectionStart[1]&&S[0]===this._oldSelectionEnd[0]&&S[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(g,S,C)):this._oldHasSelection&&this._fireOnSelectionChange(g,S,C)},b.prototype._fireOnSelectionChange=function(g,S,C){this._oldSelectionStart=g,this._oldSelectionEnd=S,this._oldHasSelection=C,this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(g){var S=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=g.activeBuffer.lines.onTrim(function(C){return S._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(g,S){for(var C=S[0],k=0;S[0]>=k;k++){var L=g.loadCell(k,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:L>1&&S[0]!==k&&(C+=L-1)}return C},b.prototype.setSelection=function(g,S,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[g,S],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()},b.prototype.rightClickSelect=function(g){this._isClickInSelection(g)||(this._selectWordAtCursor(g,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},b.prototype._getWordAt=function(g,S,C,k){if(C===void 0&&(C=!0),k===void 0&&(k=!0),!(g[0]>=this._bufferService.cols)){var L=this._bufferService.buffer,R=L.lines.get(g[1]);if(R){var x=L.translateBufferLineToString(g[1],!1),E=this._convertViewportColToCharacterIndex(R,g),M=E,T=g[0]-E,U=0,q=0,F=0,z=0;if(x.charAt(E)===" "){for(;E>0&&x.charAt(E-1)===" ";)E--;for(;M1&&(z+=Y-1,M+=Y-1);N>0&&E>0&&!this._isCharWordSeparator(R.loadCell(N-1,this._workCell));){R.loadCell(N-1,this._workCell);var Z=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,N--):Z>1&&(F+=Z-1,E-=Z-1),E--,N--}for(;A1&&(z+=te-1,M+=te-1),M++,A++}}M++;var B=E+T-U+F,ee=Math.min(this._bufferService.cols,M-E+U+q-F-z);if(S||x.slice(E,M).trim()!==""){if(C&&B===0&&R.getCodePoint(0)!==32){var X=L.lines.get(g[1]-1);if(X&&R.isWrapped&&X.getCodePoint(this._bufferService.cols-1)!==32){var j=this._getWordAt([this._bufferService.cols-1,g[1]-1],!1,!0,!1);if(j){var O=this._bufferService.cols-j.start;B-=O,ee+=O}}}if(k&&B+ee===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){var D=L.lines.get(g[1]+1);if((D==null?void 0:D.isWrapped)&&D.getCodePoint(0)!==32){var H=this._getWordAt([0,g[1]+1],!1,!1,!0);H&&(ee+=H.length)}}return{start:B,length:ee}}}}},b.prototype._selectWordAt=function(g,S){var C=this._getWordAt(g,S);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,g[1]--;this._model.selectionStart=[C.start,g[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(g){var S=this._getWordAt(g,!0);if(S){for(var C=g[1];S.start<0;)S.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;S.start+S.length>this._bufferService.cols;)S.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?S.start:S.start+S.length,C]}},b.prototype._isCharWordSeparator=function(g){return g.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(g.getChars())>=0},b.prototype._selectLineAt=function(g){var S=this._bufferService.buffer.getWrappedRangeForLine(g),C={start:{x:0,y:S.first},end:{x:this._bufferService.cols-1,y:S.last}};this._model.selectionStart=[0,S.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,i.getRangeLength)(C,this._bufferService.cols)},f([d(3,h.IBufferService),d(4,h.ICoreService),d(5,_.IMouseService),d(6,h.IOptionsService),d(7,_.IRenderService)],b)}(t.Disposable);c.SelectionService=s},4725:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ICharacterJoinerService=c.ISoundService=c.ISelectionService=c.IRenderService=c.IMouseService=c.ICoreBrowserService=c.ICharSizeService=void 0;var p=w(8343);c.ICharSizeService=(0,p.createDecorator)("CharSizeService"),c.ICoreBrowserService=(0,p.createDecorator)("CoreBrowserService"),c.IMouseService=(0,p.createDecorator)("MouseService"),c.IRenderService=(0,p.createDecorator)("RenderService"),c.ISelectionService=(0,p.createDecorator)("SelectionService"),c.ISoundService=(0,p.createDecorator)("SoundService"),c.ICharacterJoinerService=(0,p.createDecorator)("CharacterJoinerService")},357:function(W,c,w){var p=this&&this.__decorate||function(m,v,a,o){var _,h=arguments.length,r=h<3?v:o===null?o=Object.getOwnPropertyDescriptor(v,a):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(m,v,a,o);else for(var e=m.length-1;e>=0;e--)(_=m[e])&&(r=(h<3?_(r):h>3?_(v,a,r):_(v,a))||r);return h>3&&r&&Object.defineProperty(v,a,r),r},u=this&&this.__param||function(m,v){return function(a,o){v(a,o,m)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SoundService=void 0;var f=w(2585),d=function(){function m(v){this._optionsService=v}return Object.defineProperty(m,"audioContext",{get:function(){if(!m._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;m._audioContext=new v}return m._audioContext},enumerable:!1,configurable:!0}),m.prototype.playBellSound=function(){var v=m.audioContext;if(v){var a=v.createBufferSource();v.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(o){a.buffer=o,a.connect(v.destination),a.start(0)})}},m.prototype._base64ToArrayBuffer=function(v){for(var a=window.atob(v),o=a.length,_=new Uint8Array(o),h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.CircularList=void 0;var p=w(8460),u=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new p.EventEmitter,this.onInsertEmitter=new p.EventEmitter,this.onTrimEmitter=new p.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(d){if(this._maxLength!==d){for(var m=new Array(d),v=0;vthis._length)for(var m=this._length;m=d;o--)this._array[this._getCyclicIndex(o+v.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o
s?n={row:s+1,column:0}:this.start.row
>=1)&&(s+=s);return n};var w=/^\s\s*/,p=/\s\s*$/;m.stringTrimLeft=function(s){return s.replace(w,"")},m.stringTrimRight=function(s){return s.replace(p,"")},m.copyObject=function(s){var a,n={};for(a in s)n[a]=s[a];return n},m.copyArray=function(s){for(var a=[],n=0,e=s.length;nDate.now()-50)||(w=!1)},cancel:function(){w=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(f,m,b){var w=f("../lib/event"),p=f("../lib/useragent"),s=f("../lib/dom"),a=f("../lib/lang"),n=f("../clipboard"),e=p.isChrome<18,t=p.isIE,i=63ae+1?me.length:de,de+=fe.length+1,fe=fe+` +`+me):h&&0=_.length&&ae.value===_&&_&&ae.selectionEnd!==H}),E=null,$=(this.setInputHandler=function(ae){E=ae},!(this.getInputHandler=function(){return E})),G=function(ae,me){if($=$&&!1,A)return B(),ae&&v.onPaste(ae),A=!1,"";for(var ce=d.selectionStart,de=d.selectionEnd,fe=F,be=_.length-H,ke=ae,Me=ae.length-ce,Je=ae.length-de,He=0;0F-1&&_[_.length-He]==ae[ae.length-He];)He++,be--;Me-=He-1,Je-=He-1;var Qe=ke.length-He+1;return Qe<0&&(fe=-Qe,Qe=0),ke=ke.slice(0,Qe),me||ke||Me||fe||be||Je?(Qe=!(I=!0),p.isAndroid&&ke==". "&&(ke=" ",Qe=!0),ke&&!fe&&!be&&!Me&&!Je||L?v.onTextInput(ke):v.onTextInput(ke,{extendLeft:fe,extendRight:be,restoreStart:Me,restoreEnd:Je}),I=!1,_=ae,F=ce,H=de,z=Je,Qe?` +`:ke):""},K=function(me){if(x)return he();if(me&&me.inputType){if(me.inputType=="historyUndo")return v.execCommand("undo");if(me.inputType=="historyRedo")return v.execCommand("redo")}var me=d.value,ce=G(me,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(n){var n=n.getDocumentPosition(),e=this.editor,t=e.session.getBracketRange(n);t?(t.isEmpty()&&(t.start.column--,t.end.column++),this.setState("select")):(t=e.selection.getWordRange(n.row,n.column),this.setState("selectByWords")),this.$clickSelection=t,this.select()},this.onTripleClick=function(n){var n=n.getDocumentPosition(),e=this.editor,t=(this.setState("selectByLines"),e.getSelectionRange());t.isMultiLine()&&t.contains(n.row,n.column)?(this.$clickSelection=e.selection.getLineRange(t.start.row),this.$clickSelection.end=e.selection.getLineRange(t.end.row).end):this.$clickSelection=e.selection.getLineRange(n.row),this.select()},this.onQuadClick=function(a){var n=this.editor;n.selectAll(),this.$clickSelection=n.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(a){var n,e,t,i,r,l,o;if(!a.getAccelKey())return a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0),n=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),e=this.$lastScroll,t=a.domEvent.timeStamp,l=t-e.t,i=l?a.wheelX/l:e.vx,r=l?a.wheelY/l:e.vy,l<550&&(i=(i+e.vx)/2,r=(r+e.vy)/2),l=Math.abs(i/r),o=!1,1<=l&&n.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(o=!0),(o=l<=1&&n.renderer.isScrollableBy(0,a.wheelY*a.speed)?!0:o)?e.allowed=t:t-e.allowed<550&&(Math.abs(i)<=1.5*Math.abs(e.vx)&&Math.abs(r)<=1.5*Math.abs(e.vy)?(o=!0,e.allowed=t):e.allowed=0),e.t=t,e.vx=i,e.vy=r,o?(n.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()):void 0}}).call(p.prototype),m.DefaultHandlers=p}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(f,m,b){f("./lib/oop");var w=f("./lib/dom"),p="ace_tooltip";function s(a){this.isOpen=!1,this.$element=null,this.$parentNode=a}(function(){this.$init=function(){return this.$element=w.createElement("div"),this.$element.className=p,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(a){this.getElement().textContent=a},this.setHtml=function(a){this.getElement().innerHTML=a},this.setPosition=function(a,n){this.getElement().style.left=a+"px",this.getElement().style.top=n+"px"},this.setClassName=function(a){w.addCssClass(this.getElement(),a)},this.show=function(a,n,e){a!=null&&this.setText(a),n!=null&&e!=null&&this.setPosition(n,e),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=p,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(s.prototype),m.Tooltip=s}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(f,m,b){var w=f("../lib/dom"),p=f("../lib/oop"),s=f("../lib/event"),a=f("../tooltip").Tooltip;function n(e){a.call(this,e)}p.inherits(n,a),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,l=this.getWidth(),o=this.getHeight();i<(e+=15)+l&&(e-=e+l-i),r<(t+=15)+o&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(n.prototype),m.GutterHandler=function(e){var t,i,r,l=e.editor,o=l.renderer.$gutterLayer,c=new n(l.container);function h(){t=t&&clearTimeout(t),r&&(c.hide(),r=null,l._signal("hideGutterTooltip",c),l.off("mousewheel",h))}function y(v){c.setPosition(v.x,v.y)}e.editor.setDefaultHandler("guttermousedown",function(v){if(l.isFocused()&&v.getButton()==0){var d=o.getRegion(v);if(d!="foldWidgets"){var d=v.getDocumentPosition().row,u=l.session.selection;if(v.getShiftKey())u.selectTo(d,0);else{if(v.domEvent.detail==2)return l.selectAll(),v.preventDefault();e.$clickSelection=l.selection.getLineRange(d)}return e.setState("selectByLines"),e.captureMouse(v),v.preventDefault()}}}),e.editor.setDefaultHandler("guttermousemove",function(v){var d=v.domEvent.target||v.domEvent.srcElement;if(w.hasCssClass(d,"ace_fold-widget"))return h();r&&e.$tooltipFollowsMouse&&y(v),i=v,t=t||setTimeout(function(){t=null,(i&&!e.isMousePressed?function(){var u=i.getDocumentPosition().row,A=o.$annotations[u];if(!A)return h();if(u==l.session.getLength()){var u=l.renderer.pixelToScreenCoordinates(0,i.y).row,x=i.$pos;if(u>l.session.documentToScreenRow(x.row,x.column))return h()}r!=A&&(r=A.text.join(""),c.setHtml(r),(u=A.className)&&c.setClassName(u.trim()),c.show(),l._signal("showGutterTooltip",c),l.on("mousewheel",h),e.$tooltipFollowsMouse?y(i):(x=i.domEvent.target.getBoundingClientRect(),(A=c.getElement().style).left=x.right+"px",A.top=x.bottom+"px"))}:h)()},50)}),s.addListener(l.renderer.$gutter,"mouseout",function(v){i=null,r&&!t&&(t=setTimeout(function(){t=null,h()},50))},l),l.on("changeSession",h)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(s,m,b){var w=s("../lib/event"),p=s("../lib/useragent"),s=m.MouseEvent=function(a,n){this.domEvent=a,this.editor=n,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){w.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){w.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a,n=this.editor.getSelectionRange();return n.isEmpty()?this.$inSelection=!1:(a=this.getDocumentPosition(),this.$inSelection=n.contains(a.row,a.column)),this.$inSelection},this.getButton=function(){return w.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=p.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(f,m,b){var w=f("../lib/dom"),p=f("../lib/event"),s=f("../lib/useragent");function a(e){var t,i,r,l,o,c,h,y,v,d,u,A=e.editor,x=w.createElement("div"),I=(x.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",x.textContent="\xA0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(J){e[J]=this[J]},this),A.on("mousedown",this.onMouseDown.bind(e)),A.container),T=0;function L(){var J,R,V,B,C,E,$,G,K=c;c=A.renderer.screenToTextCoordinates(i,r),V=c,R=K,B=Date.now(),J=!R||V.row!=R.row,R=!R||V.column!=R.column,!d||J||R?(A.moveCursorToPosition(V),d=B,u={x:i,y:r}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),s.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;s.isIE&&this.state=="dragReady"&&3H&&(i=-1),e=_.clientX=R,t=_.clientY=J,A=x=0,new w(_,n));if(c=R.getDocumentPosition(),D-i<500&&F.length==1&&!d)u++,_.preventDefault(),_.button=0,l=null,clearTimeout(l),n.selection.moveToPosition(c),(J=2<=u?n.selection.getLineRange(c.row):n.session.getBracketRange(c))&&!J.isEmpty()?n.selection.setRange(J):n.selection.selectWord(),v="wait";else{u=0;var R=n.selection.cursor,F=n.selection.isEmpty()?R:n.selection.anchor,J=n.renderer.$cursorLayer.getPixelPosition(R,!0),R=n.renderer.$cursorLayer.getPixelPosition(F,!0),F=n.renderer.scroller.getBoundingClientRect(),V=n.renderer.layerConfig.offset,B=n.renderer.scrollLeft,C=function(K,Q){return(K/=z)*K+(Q=Q/H-.75)*Q};if(_.clientX=_e.length||($e=Se[ue-1])!=l&&$e!=o||(de=_e[ue+1])!=l&&de!=o?c:(de=s?o:de)==$e?de:c;case A:return($e=0=B){for($=he+1;$=B;)$++;for(G=he,K=$-1;G>8;return E==0?191v&&C[ee]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?n.fromPoints(t,t):this.isBackwards()?n.fromPoints(t,e):n.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,r){var i=r?e.end:e.start,r=r?e.start:e.end;this.$setSelection(i.row,i.column,r.row,r.column)},this.$setSelection=function(e,t,i,r){var l,o;this.$silent||(l=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,r),this.$isEmpty=!n.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||o)&&this._emit("changeSelection"))},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return t===void 0&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(i,t){var i=typeof i=="number"?i:this.lead.row,r=this.session.getFoldLine(i),r=r?(i=r.start.row,r.end.row):i;return t===!0?new n(i,0,r,this.session.getLine(r).length):new n(i,0,r+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var r=e.column,l=e.column+t;return i<0&&(r=e.column-t,l=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,l).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):t.column===0?0=i.length)return this.moveCursorTo(e,i.length),this.moveCursorRight(),void(eh&&(d=a.substring(h,I-x.length),v.type==u?v.value+=d:(v.type&&c.push(v),v={type:u,value:d}));for(var T=0;Ts){for(y>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:a});h=this.$rowTokens.length;){if(this.$row+=1,s=s||this.$session.getLength(),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var s=this.$rowTokens,a=this.$tokenIndex,n=s[a].start;if(n!==void 0)return n;for(n=0;0V.length&&(R=V.length)}),u==1/0&&(u=R,d=v=!1),x&&u%A!=0&&(u=Math.floor(u/A)*A),J(d?I:L)},this.toggleBlockComment=function(l,o,c,h){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var v,d,u=(L=new i(o,h.row,h.column)).getCurrentToken(),A=(o.selection,o.selection.toOrientedRange());if(u&&/comment/.test(u.type)){for(;u&&/comment/.test(u.type);){if((k=u.value.indexOf(y.start))!=-1){var x=L.getCurrentTokenRow(),I=L.getCurrentTokenColumn()+k,T=new r(x,I,x,I+y.start.length);break}u=L.stepBackward()}for(var L,k,u=(L=new i(o,h.row,h.column)).getCurrentToken();u&&/comment/.test(u.type);){if((k=u.value.indexOf(y.end))!=-1){var x=L.getCurrentTokenRow(),I=L.getCurrentTokenColumn()+k,_=new r(x,I,x,I+y.end.length);break}u=L.stepForward()}_&&o.remove(_),T&&(o.remove(T),v=T.start.row,d=-y.start.length)}else d=y.start.length,v=c.start.row,o.insert(c.end,y.end),o.insert(c.start,y.start);A.start.row==v&&(A.start.column+=d),A.end.row==v&&(A.end.column+=d),o.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(l,o,c){return this.$getIndent(o)},this.checkOutdent=function(l,o,c){return!1},this.autoOutdent=function(l,o,c){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){for(var o in this.$embeds=[],this.$modes={},l){var c,h,y;l[o]&&(h=(c=l[o]).prototype.$id,(y=p.$modes[h])||(p.$modes[h]=y=new c),p.$modes[o]||(p.$modes[o]=y),this.$embeds.push(o),this.$modes[o]=y)}for(var v=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;othis.row||(n=function(e,t,i){var c=e.action=="insert",r=(c?1:-1)*(e.end.row-e.start.row),l=(c?1:-1)*(e.end.column-e.start.column),o=e.start,c=c?o:e.end;return a(t,o,i)?{row:t.row,column:t.column}:a(c,t,!i)?{row:t.row+r,column:t.column+(t.row==c.row?l:0)}:{row:o.row,column:o.column}}(n,{row:this.row,column:this.column},this.$insertRight),this.setPosition(n.row,n.column,!0))},this.setPosition=function(n,e,t){t=t?{row:n,column:e}:this.$clipPositionToDocument(n,e),this.row==t.row&&this.column==t.column||(n={row:this.row,column:this.column},this.row=t.row,this.column=t.column,this._signal("change",{old:n,value:t}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(n){this.document=n||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(n,e){var t={};return n>=this.document.getLength()?(t.row=Math.max(0,this.document.getLength()-1),t.column=this.document.getLine(t.row).length):n<0?(t.row=0,t.column=0):(t.row=n,t.column=Math.min(this.document.getLine(t.row).length,Math.max(0,e))),e<0&&(t.column=0),t}}).call(s.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(f,m,b){function w(t){this.$lines=[""],t.length===0?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)}var p=f("./lib/oop"),s=f("./apply_delta").applyDelta,a=f("./lib/event_emitter").EventEmitter,n=f("./range").Range,e=f("./anchor").Anchor;(function(){p.implement(this,a),this.setValue=function(t){var i=this.getLength()-1;this.remove(new n(0,0,i,this.getLine(i).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,i){return new e(this,t,i)},"aaa".split(/a/).length===0?this.$split=function(t){return t.replace(/\r\n|\r/g,` +`).split(` +`)}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){t=t.match(/^.*?(\r\n|\r|\n)/m),this.$autoNewLine=t?t[1]:` +`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r +`;case"unix":return` +`;default:return this.$autoNewLine||` +`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return t==`\r +`||t=="\r"||t==` +`},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,i){return this.$lines.slice(t,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var i,r;return t.start.row===t.end.row?i=[this.getLine(t.start.row).substring(t.start.column,t.end.column)]:((i=this.getLines(t.start.row,t.end.row))[0]=(i[0]||"").substring(t.start.column),r=i.length-1,t.end.row-t.start.row==r&&(i[r]=i[r].substring(0,t.end.column))),i},this.insertLines=function(t,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,i)},this.removeLines=function(t,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,i)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(t,this.$split(i))},this.insertInLine=function(l,i){var r=this.clippedPos(l.row,l.column),l=this.pos(l.row,l.column+i.length);return this.applyDelta({start:r,end:l,action:"insert",lines:[i]},!0),this.clonePos(l)},this.clippedPos=function(t,i){var r=this.getLength(),r=(t===void 0?t=r:t<0?t=0:r<=t&&(t=r-1,i=void 0),this.getLine(t));return i==null&&(i=r.length),{row:t,column:i=Math.min(Math.max(i,0),r.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,i){return{row:t,column:i}},this.$clipPosition=function(t){var i=this.getLength();return t.row>=i?(t.row=Math.max(0,i-1),t.column=this.getLine(i-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,i){var r=0,r=(t=Math.min(Math.max(t,0),this.getLength()))a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=e.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(w.prototype),m.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(f,m,b){function w(a,n,e){this.setRegexp(a),this.clazz=n,this.type=e||"text"}var p=f("./lib/lang"),s=(f("./lib/oop"),f("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(a){this.regExp+""!=a+""&&(this.regExp=a,this.cache=[])},this.update=function(a,n,e,t){if(this.regExp)for(var i=t.firstRow,r=t.lastRow,l={},o=i;o<=r;o++){var c=this.cache[o];c==null&&(c=(c=(c=p.getMatchOffsets(e.getLine(o),this.regExp)).length>this.MAX_RANGES?c.slice(0,this.MAX_RANGES):c).map(function(d){return new s(o,d.offset,o,d.offset+d.length)}),this.cache[o]=c.length?c:"");for(var h=c.length;h--;){var y=c[h].toScreenRange(e),v=y.toString();l[v]||(l[v]=!0,n.drawSingleLineMarker(a,y,this.clazz,t))}}}}).call(w.prototype),m.SearchHighlight=w}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(f,m,b){var w=f("../range").Range;function p(s,a){this.foldData=s,Array.isArray(a)?this.folds=a:a=this.folds=[a],s=a[a.length-1],this.range=new w(a[0].start.row,a[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(n){n.setFoldLine(this)},this)}(function(){this.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(a){a.start.row+=s,a.end.row+=s})},this.addFold=function(s){if(s.sameRow){if(s.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(a,n){return-a.range.compareEnd(n.start.row,n.start.column)}),0=this.start.row&&s<=this.end.row},this.walk=function(s,a,n){var e,t,i=0,r=this.folds,l=!0;a==null&&(a=this.end.row,n=this.end.column);for(var o=0;oa||n[n.length-1].start.row=e);r++);if(s.action=="insert")for(var o=t-e,c=-a.column+n.column;re);r++)h.start.row==e&&h.start.column>=a.column&&(h.start.column==a.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=o)),h.end.row==e&&h.end.column>=a.column&&(h.end.column==a.column&&this.$bias<0||(h.end.column==a.column&&0h.start.column&&h.end.column==i[r+1].start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=o));else for(var h,o=e-t,c=a.column-n.column;rt);r++)h.end.rowa.column)&&(h.end.column=a.column,h.end.row=a.row):(h.end.column+=c,h.end.row+=o):h.end.row>t&&(h.end.row+=o),h.start.rowa.column)&&(h.start.column=a.column,h.start.row=a.row):(h.start.column+=c,h.start.row+=o):h.start.row>t&&(h.start.row+=o);if(o!=0&&r=n)return r;if(r.end.row>n)return null}return null},this.getNextFoldLine=function(n,e){var t=this.$foldData,i=0;for((i=e?t.indexOf(e):i)==-1&&(i=0);i=n)return r}return null},this.getFoldedRowCount=function(n,e){for(var t=this.$foldData,i=e-n+1,r=0;rc)break;while(r&&o.test(r.type));r=i.stepBackward()}else r=i.getCurrentToken();return l.end.row=i.getCurrentTokenRow(),l.end.column=i.getCurrentTokenColumn()+r.value.length-2,l}},this.foldAll=function(n,e,t,i){t==null&&(t=1e5);var r=this.foldWidgets;if(r){e=e||this.getLength();for(var l,o=n=n||0;o=n&&(o=l.end.row,l.collapseChildren=t,this.addFold("...",l))}},this.foldToLevel=function(n){for(this.foldAll();0=n)break}i--}return{range:i!==-1&&l,firstRange:o}},this.onFoldWidgetClick=function(n,e){var t={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};this.$toggleFoldWidget(n,t)||(n=e.target||e.srcElement)&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")},this.$toggleFoldWidget=function(n,e){if(this.getFoldWidget){var l=this.getFoldWidget(n),t=this.getLine(n),l=l==="end"?-1:1,t=this.getFoldAt(n,l==-1?0:t.length,l);if(t)return e.children||e.all?this.removeFold(t):this.expandFold(t),t;var i,r,l=this.getFoldWidgetRange(n,!0);return l&&!l.isMultiLine()&&(t=this.getFoldAt(l.start.row,l.start.column,1))&&l.isEqual(t.range)?(this.removeFold(t),t):(e.siblings?((t=this.getParentFoldRangeData(n)).range&&(i=t.range.start.row+1,r=t.range.end.row),this.foldAll(i,r,e.all?1e4:0)):e.children?(r=l?l.end.row:this.getLength(),this.foldAll(n+1,r,e.all?1e4:0)):l&&(e.all&&(l.collapseChildren=1e4),this.addFold("...",l)),l)}},this.toggleFoldWidget=function(n){var e,t=this.selection.getCursor().row;t=this.getRowFoldStart(t),this.$toggleFoldWidget(t,{})||(e=(e=this.getParentFoldRangeData(t,!0)).range||e.firstRange)&&(t=e.start.row,(t=this.getFoldAt(t,this.getLine(t).length,1))?this.removeFold(t):this.addFold("...",e))},this.updateFoldWidgets=function(n){var e=n.start.row,t=n.end.row-e;t==0?this.foldWidgets[e]=null:n.action=="remove"?this.foldWidgets.splice(e,1+t,null):((n=Array(1+t)).unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,n))},this.tokenizerUpdateFoldWidgets=function(n){n=n.data,n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(f,m,b){var w=f("../token_iterator").TokenIterator,p=f("../range").Range;m.BracketMatch=function(){this.findMatchingBracket=function(s,a){return s.column==0||(a=a||this.getLine(s.row).charAt(s.column-1),a=="")?null:(a=a.match(/([\(\[\{])|([\)\]\}])/),a?a[1]?this.$findClosingBracket(a[1],s):this.$findOpeningBracket(a[2],s):null)},this.getBracketRange=function(s){var a,n,e=this.getLine(s.row),t=!0,i=e.charAt(s.column-1),r=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(r||(i=e.charAt(s.column),s={row:s.row,column:s.column+1},r=i&&i.match(/([\(\[\{])|([\)\]\}])/),t=!1),!r)return null;if(r[1]){if(!(n=this.$findClosingBracket(r[1],s)))return null;a=p.fromPoints(s,n),t||(a.end.column++,a.start.column--),a.cursor=a.end}else{if(!(n=this.$findOpeningBracket(r[2],s)))return null;a=p.fromPoints(n,s),t||(a.start.column++,a.end.column--),a.cursor=a.start}return a},this.getMatchingBracketRanges=function(s){var a=this.getLine(s.row),n=a.charAt(s.column-1),e=n&&n.match(/([\(\[\{])|([\)\]\}])/);return e||(n=a.charAt(s.column),s={row:s.row,column:s.column+1},e=n&&n.match(/([\(\[\{])|([\)\]\}])/)),e?(a=new p(s.row,s.column-1,s.row,s.column),n=e[1]?this.$findClosingBracket(e[1],s):this.$findOpeningBracket(e[2],s),n?[a,new p(n.row,n.column,n.row,n.column+1)]:[a]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,a,n){var e=this.$brackets[s],t=1,i=new w(this,a.row,a.column),r=i.getCurrentToken();if(r=r||i.stepForward()){n=n||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var l=a.column-i.getCurrentTokenColumn()-2,o=r.value;;){for(;0<=l;){var c=o.charAt(l);if(c==e){if(--t==0)return{row:i.getCurrentTokenRow(),column:l+i.getCurrentTokenColumn()}}else c==s&&(t+=1);--l}for(;(r=i.stepBackward())&&!n.test(r.type););if(r==null)break;l=(o=r.value).length-1}return null}},this.$findClosingBracket=function(s,a,n){var e=this.$brackets[s],t=1,i=new w(this,a.row,a.column),r=i.getCurrentToken();if(r=r||i.stepForward()){n=n||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var l=a.column-i.getCurrentTokenColumn();;){for(var o=r.value,c=o.length;l>1,T=d[I];if(Td&&(d=u.screenWidth)}),this.lineWidgetWidth=d},this.$computeWidth=function(d){if(this.$modified||d){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var u=this.doc.getAllLines(),A=this.$rowLengthCache,x=0,I=0,T=this.$foldData[I],L=T?T.start.row:1/0,k=u.length,_=0;_x&&(x=A[_])}this.screenWidth=x}},this.getLine=function(d){return this.doc.getLine(d)},this.getLines=function(d,u){return this.doc.getLines(d,u)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(d){return this.doc.getTextRange(d||this.selection.getRange())},this.insert=function(d,u){return this.doc.insert(d,u)},this.remove=function(d){return this.doc.remove(d)},this.removeFullLines=function(d,u){return this.doc.removeFullLines(d,u)},this.undoChanges=function(d,u){if(d.length){this.$fromUndo=!0;for(var A=d.length-1;A!=-1;A--){var x=d[A];x.action=="insert"||x.action=="remove"?this.doc.revertDelta(x):x.folds&&this.addFolds(x.folds)}!u&&this.$undoSelect&&(d.selectionBefore?this.selection.fromJSON(d.selectionBefore):this.selection.setRange(this.$getUndoSelection(d,!0))),this.$fromUndo=!1}},this.redoChanges=function(d,u){if(d.length){this.$fromUndo=!0;for(var A=0;Ad.end.column&&(_.start.column+=T),_.end.row==d.end.row&&_.end.column>d.end.column&&(_.end.column+=T)),I&&_.start.row>=d.end.row&&(_.start.row+=I,_.end.row+=I)),_.end=this.insert(_.start,L),k.length&&(x=d.start,A=_.start,I=A.row-x.row,T=A.column-x.column,this.addFolds(k.map(function(F){return(F=F.clone()).start.row==x.row&&(F.start.column+=T),F.end.row==x.row&&(F.end.column+=T),F.start.row+=I,F.end.row+=I,F}))),_},this.indentRows=function(d,u,A){A=A.replace(/\t/g,this.getTabString());for(var x=d;x<=u;x++)this.doc.insertInLine({row:x,column:0},A)},this.outdentRows=function(d){for(var u=d.collapseRows(),A=new r(0,0,0,0),x=this.getTabSize(),I=u.start.row;I<=u.end.row;++I){var T=this.getLine(I);A.start.row=I,A.end.row=I;for(var L=0;Lthis.doc.getLength()-1)return 0;x=I-u}else d=this.$clipRowToDocument(d),x=(u=this.$clipRowToDocument(u))-d+1;var I=new r(d,0,u,Number.MAX_VALUE),I=this.getFoldsInRange(I).map(function(L){return(L=L.clone()).start.row+=x,L.end.row+=x,L}),T=T==0?this.doc.getLines(d,u):this.doc.removeFullLines(d,u);return this.doc.insertFullLines(d+x,T),I.length&&this.addFolds(I),x},this.moveLinesUp=function(d,u){return this.$moveLines(d,u,-1)},this.moveLinesDown=function(d,u){return this.$moveLines(d,u,1)},this.duplicateLines=function(d,u){return this.$moveLines(d,u,0)},this.$clipRowToDocument=function(d){return Math.max(0,Math.min(d,this.doc.getLength()-1))},this.$clipColumnToRow=function(d,u){return u<0?0:Math.min(this.doc.getLine(d).length,u)},this.$clipPositionToDocument=function(d,u){var A;return u=Math.max(0,u),u=d<0?d=0:(A=this.doc.getLength())<=d?this.doc.getLine(d=A-1).length:Math.min(this.doc.getLine(d).length,u),{row:d,column:u}},this.$clipRangeToDocument=function(d){d.start.row<0?(d.start.row=0,d.start.column=0):d.start.column=this.$clipColumnToRow(d.start.row,d.start.column);var u=this.doc.getLength()-1;return d.end.row>u?(d.end.row=u,d.end.column=this.doc.getLine(u).length):d.end.column=this.$clipColumnToRow(d.end.row,d.end.column),d},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(d){d!=this.$useWrapMode&&(this.$useWrapMode=d,this.$modified=!0,this.$resetRowCache(0),d&&(d=this.getLength(),this.$wrapData=Array(d),this.$updateWrapData(0,d-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(d,u){this.$wrapLimitRange.min===d&&this.$wrapLimitRange.max===u||(this.$wrapLimitRange={min:d,max:u},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(d,x){var A=this.$wrapLimitRange,x=(A.max<0&&(A={min:x,max:x}),this.$constrainWrapLimit(d,A.min,A.max));return x!=this.$wrapLimit&&1=I.row&&J.shiftRow(-k);L=T}else{var z=Array(k),D=(z.unshift(T,0),u?this.$wrapData:this.$rowLengthCache),F=(D.splice.apply(D,z),this.$foldData),H=0;for((J=this.getFoldLine(T))&&((D=J.range.compareInside(x.row,x.column))==0?(J=J.split(x.row,x.column))&&(J.shiftRow(k),J.addRemoveChars(L,0,I.column-x.column)):D==-1&&(J.addRemoveChars(T,0,I.column-x.column),J.shiftRow(k)),H=F.indexOf(J)+1);H=T&&J.shiftRow(k)}else{var J,k=Math.abs(d.start.column-d.end.column);A==="remove"&&(_=this.getFoldsInRange(d),this.removeFolds(_),k=-k),(J=this.getFoldLine(T))&&J.addRemoveChars(T,x.column,k)}return u&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,u?this.$updateWrapData(T,L):this.$updateRowLengthCache(T,L),_},this.$updateRowLengthCache=function(d,u,A){this.$rowLengthCache[d]=null,this.$rowLengthCache[u]=null},this.$updateWrapData=function(d,u){var A,x,I=this.doc.getAllLines(),T=this.getTabSize(),L=this.$wrapData,k=this.$wrapLimit,_=d;for(u=Math.min(u,I.length-1);_<=u;)(x=this.getFoldLine(_,x))?(A=[],x.walk(function(F,H,z,D){var J;if(F!=null){(J=this.$getDisplayTokens(F,A.length))[0]=h;for(var R=1;R>2)),T-1);JH[D-1]):!D,this.getLength()-1),R=this.getNextFoldLine(L),V=R?R.start.row:1/0;_<=d&&!(d<_+(F=this.getRowLength(L))||J<=L);)_+=F,V<++L&&(L=R.end.row+1,V=(R=this.getNextFoldLine(L,R))?R.start.row:1/0),T&&(this.$docRowCache.push(L),this.$screenRowCache.push(_));if(R&&R.start.row<=L)x=this.getFoldDisplayLine(R),L=R.start.row;else{if(_+F<=d||JL[k-1]):!k,this.getNextFoldLine(T)),F=_?_.start.row:1/0;T=J[R];)A++,R++;H=H.substring(J[R-1]||0,H.length),D=0d||(r.push(o=new a(y,d,y+c-1,u)),2L&&r[v].end.row==t.end.row;)v--;for(r=r.slice(A,v+1),A=0,v=r.length;An.getLength())){var I=n.getLine(x),d=I.search(t[0]);if(!(!l&&d=I.length)break;t.lastIndex=k+=1}if(x.index+L>u)break;T.push(x.index,L)}for(var _=T.length-1;0<=_;_-=2){var F=T[_-1];if(A(d,F,d,F+(L=T[_])))return!0}}:function(d,u,A){var x=n.getLine(d);for(t.lastIndex=u;I=t.exec(x);){var I,T=I[0].length;if(A(d,I=I.index,d,I+T))return!0;if(!T&&(t.lastIndex=I+=1,I>=x.length))return!1}},{forEach:l?function(d){var u=h.row;if(!r(u,h.column,d)){for(u--;y<=u;u--)if(r(u,Number.MAX_VALUE,d))return;if(e.wrap!=0){for(u=v,y=h.row;y<=u;u--)if(r(u,Number.MAX_VALUE,d))return}}}:function(d){var u=h.row;if(!r(u,h.column,d)){for(u+=1;u<=v;u++)if(r(u,0,d))return;if(e.wrap!=0){for(u=y,v=h.row;u<=v;u++)if(r(u,0,d))return}}}}}}).call(w.prototype),m.Search=w}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(f,m,b){var w=f("../lib/keys"),p=f("../lib/useragent"),s=w.KEY_MODS;function a(e,t){this.platform=t||(p.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function n(e,t){a.call(this,e,t),this.$singleCommand=!1}n.prototype=a.prototype,function(){function e(t){return typeof t=="object"&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,i){var r,l=t&&(typeof t=="string"?t:t.name),o=(t=this.commands[l],i||delete this.commands[l],this.commandKeyBinding);for(r in o){var c,h=o[r];h==t?delete o[r]:Array.isArray(h)&&(c=h.indexOf(t))!=-1&&(h.splice(c,1),h.length==1&&(o[r]=h[0]))}},this.bindKey=function(t,i,r){if(typeof t=="object"&&t&&(r==null&&(r=t.position),t=t[this.platform]),t)return typeof i=="function"?this.addCommand({exec:i,bindKey:t,name:i.name||t}):void t.split("|").forEach(function(h){var o="",c=(h.indexOf(" ")!=-1&&(h=(c=h.split(/\s+/)).pop(),c.forEach(function(y){y=this.parseKeys(y),y=s[y.hashId]+y.key,o+=(o?" ":"")+y,this._addCommandToBinding(o,"chainKeys")},this),o+=" "),this.parseKeys(h)),h=s[c.hashId]+c.key;this._addCommandToBinding(o+h,i,r)},this)},this._addCommandToBinding=function(t,i,r){var l=this.commandKeyBinding;if(i)if(!l[t]||this.$singleCommand)l[t]=i;else{Array.isArray(l[t])?(c=l[t].indexOf(i))!=-1&&l[t].splice(c,1):l[t]=[l[t]],typeof r!="number"&&(r=e(i));for(var o=l[t],c=0;cr?r+1:r,e.selection.moveCursorTo(t.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,l=[];r.length<1&&(r=[e.selection.getRange()]);for(var o=0;o=k.lastRow||L.end.row<=k.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}I=this.selection.toJSON(),this.curOp.selectionAfter=I,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(I),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(I){var T,L,k,_;this.$mergeUndoDeltas&&(T=this.prevOp,L=this.$mergeableCommands,k=T.command&&I.command.name==T.command.name,I.command.name=="insertstring"?(_=I.args,this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),k=k&&this.mergeNextCommand&&(!/\s/.test(_)||/\s/.test(T.args)),this.mergeNextCommand=!0):k=k&&L.indexOf(I.command.name)!==-1,(k=this.$mergeUndoDeltas!="always"&&2e3"&&z--),_&&0<=z;);else{do if(_=D,D=k.stepBackward(),_){if(_.type.indexOf("tag-name")!==-1)F===_.value&&(D.value==="<"?z++:D.value===""&&z--);else if(_.value==="/>"){for(var J=0,R=D;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===F){z--;break}if(R.value==="<")break;R=k.stepBackward(),J++}for(var V=0;VD.search(/\S|$/)&&(z=D.substr(F.column).search(/\S|$/),k.doc.removeInLine(F.row,F.column,F.column+z))),this.clearSelection(),F.column),z=k.getState(F.row),D=k.getLine(F.row),J=_.checkOutdent(z,D,I);k.insert(F,I),L&&L.selection&&(L.selection.length==2?this.selection.setSelectionRange(new c(F.row,H+L.selection[0],F.row,H+L.selection[1])):this.selection.setSelectionRange(new c(F.row+L.selection[0],L.selection[1],F.row+L.selection[2],L.selection[3]))),this.$enableAutoIndent&&(k.getDocument().isNewLine(I)&&(H=_.getNextLineIndent(z,D.slice(0,F.column),k.getTabString()),k.insert({row:F.row+1,column:0},H)),J&&_.autoOutdent(z,k,F.row))},this.autoIndent=function(){for(var I,T,L,k,_,F=this.session,H=F.getMode(),z=(L=this.selection.isEmpty()?(T=0,F.doc.getLength()-1):(T=(I=this.getSelectionRange()).start.row,I.end.row),""),D="",J=F.getTabString(),R=T;R<=L;R++)0z.toLowerCase()?1:0});for(var _=new c(0,0,0,0),k=I.first;k<=I.last;k++){var F=T.getLine(k);_.start.row=k,_.end.row=k,_.end.column=F.length,T.replace(_,L[k-I.first])}},this.toggleCommentLines=function(){var I=this.session.getState(this.getCursorPosition().row),T=this.$getSelectedRows();this.session.getMode().toggleCommentLines(I,this.session,T.first,T.last)},this.toggleBlockComment=function(){var I=this.getCursorPosition(),T=this.session.getState(I.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(T,this.session,L,I)},this.getNumberAt=function(I,T){for(var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g,k=(L.lastIndex=0,this.session.getLine(I));L.lastIndex=T)return{value:_[0],start:_.index,end:_.index+_[0].length}}return null},this.modifyNumber=function(I){var T,L,k,_=this.selection.getCursor().row,F=this.selection.getCursor().column,H=new c(_,F-1,_,F),H=this.session.getTextRange(H);!isNaN(parseFloat(H))&&isFinite(H)?(H=this.getNumberAt(_,F))&&(k=0<=H.value.indexOf(".")?H.start+H.value.indexOf(".")+1:H.end,T=H.start+H.value.length-k,L=parseFloat(H.value),L*=Math.pow(10,T),k!==H.end&&FC+1)break;C=E.last}for(R--,z=this.session.$moveLines(B,C,T?0:I),T&&I==-1&&(V=R+1);V<=R;)H[V].moveBy(z,0),V++;D+=z=T?z:0}L.fromOrientedRange(L.ranges[0]),L.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(I){return I=(I||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(I.start.row),last:this.session.getRowFoldEnd(I.end.row)}},this.onCompositionStart=function(I){this.renderer.showComposition(I)},this.onCompositionUpdate=function(I){this.renderer.setCompositionText(I)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(I){return I>=this.getFirstVisibleRow()&&I<=this.getLastVisibleRow()},this.isRowFullyVisible=function(I){return I>=this.renderer.getFirstFullyVisibleRow()&&I<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(F,T){var L=this.renderer,k=this.renderer.layerConfig,_=F*Math.floor(k.height/k.lineHeight),F=(T===!0?this.selection.$moveSelection(function(){this.moveCursorBy(_,0)}):T===!1&&(this.selection.moveCursorBy(_,0),this.selection.clearSelection()),L.scrollTop);L.scrollBy(0,_*k.lineHeight),T!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(F)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(I){this.renderer.scrollToRow(I)},this.scrollToLine=function(I,T,L,k){this.renderer.scrollToLine(I,T,L,k)},this.centerSelection=function(){var I=this.getSelectionRange(),I={row:Math.floor(I.start.row+(I.end.row-I.start.row)/2),column:Math.floor(I.start.column+(I.end.column-I.start.column)/2)};this.renderer.alignCursor(I,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(I,T){this.selection.moveCursorTo(I,T)},this.moveCursorToPosition=function(I){this.selection.moveCursorToPosition(I)},this.jumpToMatching=function(I,T){var L=this.getCursorPosition(),k=new u(this.session,L.row,L.column),_=k.getCurrentToken(),F=_||k.stepForward();if(F){var H,z,D,J=!1,R={},V=L.column-F.start,B={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do if(F.value.match(/[{}()\[\]]/g)){for(;Vwindow.innerHeight)&&null)!=null&&(_.style.top=R+"px",_.style.left=D.left+"px",_.style.height=J.lineHeight+"px",_.scrollIntoView(k)),k=T=null)}),this.setAutoScrollEditorIntoView=function(D){D||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",H))})},this.$resetCursorStyle=function(){var I=this.$cursorStyle||"ace",T=this.renderer.$cursorLayer;T&&(T.setSmoothBlinking(/smooth/.test(I)),T.isBlinking=!this.$readOnly&&I!="wide",s.setCssClass(T.element,"ace_slim-cursors",/slim/.test(I)))},this.prompt=function(I,T,L){var k=this;d.loadModule("./ext/prompt",function(_){_.prompt(k,I,T,L)})}}.call(w.prototype),d.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(I){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:I})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(I){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(I){this.textInput.setReadOnly(I),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(I){this.textInput.setCopyWithEmptySelection(I)},initialValue:!1},cursorStyle:{set:function(I){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(I){this.setAutoScrollEditorIntoView(I)}},keyboardHandler:{set:function(I){this.setKeyboardHandler(I)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(I){this.session.setValue(I)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(I){this.setSession(I)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(I){this.renderer.$gutterLayer.setShowLineNumbers(I),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),I&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(I){this.$showLineNumbers&&I?x.attach(this):x.detach(this)}},placeholder:{set:function(I){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var T=this.session&&(this.renderer.$composition||this.getValue());T&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),s.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):T||this.renderer.placeholderNode?!T&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),s.addCssClass(this.container,"ace_hasPlaceholder"),(T=s.createElement("div")).className="ace_placeholder",T.textContent=this.$placeholder||"",this.renderer.placeholderNode=T,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(I,T){return(Math.abs(I.selection.lead.row-T)||T+1+(T<9?"\xB7":""))+""},getWidth:function(I,T,L){return Math.max(T.toString().length,(L.lastRow+1).toString().length,2)*L.characterWidth},update:function(I,T){T.renderer.$loop.schedule(T.renderer.CHANGE_GUTTER)},attach:function(I){I.renderer.$gutterLayer.$renderer=this,I.on("changeSelection",this.update),this.update(null,I)},detach:function(I){I.renderer.$gutterLayer.$renderer==this&&(I.renderer.$gutterLayer.$renderer=null),I.off("changeSelection",this.update),this.update(null,I)}});m.Editor=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(f,m,b){function w(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}(function(){this.addSession=function(o){this.$session=o},this.add=function(o,c,h){this.$fromUndo||o!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),c!==!1&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),o.id=this.$rev=++this.$maxRev),o.action!="remove"&&o.action!="insert"||(this.$lastDelta=o),this.lastDeltas.push(o))},this.addSelection=function(o,c){this.selections.push({value:o,rev:c||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(o,c){c==null&&(c=this.$rev+1);for(var h=this.$undoStack,y=h.length;y--;){var v=h[y][0];if(v.id<=o)break;v.id"+o.end.row+":"+o.end.column}function t(o,c){var h=o.action=="insert",y=c.action=="insert";if(h&&y)if(0<=s(c.start,o.end))i(c,o,-1);else{if(!(s(c.start,o.start)<=0))return;i(o,c,1)}else if(h&&!y)if(0<=s(c.start,o.end))i(c,o,-1);else{if(!(s(c.end,o.start)<=0))return;i(o,c,-1)}else if(!h&&y)if(0<=s(c.start,o.start))i(c,o,1);else{if(!(s(c.start,o.start)<=0))return;i(o,c,1)}else if(!h&&!y)if(0<=s(c.start,o.start))i(c,o,1);else{if(!(s(c.end,o.start)<=0))return;i(o,c,-1)}return 1}function i(o,c,h){r(o.start,c.start,c.end,h),r(o.end,c.start,c.end,h)}function r(o,c,h,y){o.row==(y==1?c:h).row&&(o.column+=y*(h.column-c.column)),o.row+=y*(h.row-c.row)}function l(o,c){var h=o.lines,y=o.end,d=(o.end=a(c),o.end.row-o.start.row),v=h.splice(d,h.length),d=d?c.column:c.column-o.start.column;return h.push(v[0].substring(0,d)),v[0]=v[0].substr(d),{start:a(c),end:y,lines:v,action:o.action}}m.UndoManager=w}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(f,m,b){function w(s,a){this.element=s,this.canvasHeight=a||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var p=f("../lib/dom");(function(){this.moveContainer=function(s){p.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},this.pageChanged=function(s,a){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(a.firstRowScreen*a.lineHeight/this.canvasHeight)},this.computeLineTop=function(s,a,n){var e=a.firstRowScreen*a.lineHeight,e=Math.floor(e/this.canvasHeight);return n.documentToScreenRow(s,0)*a.lineHeight-e*this.canvasHeight},this.computeLineHeight=function(s,a,n){return a.lineHeight*n.getRowLineCount(s)},this.getLength=function(){return this.cells.length},this.get=function(s){return this.cells[s]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var a=p.createFragment(this.element),n=0;nv+1;)this.$lines.pop();break}(y=this.$lines.get(++v))?y.row=d:(y=this.$lines.createCell(d,i,this.session,t),this.$lines.push(y)),this.$renderCell(y,i,c,d),d++}this._signal("afterRender"),this.$updateGutterWidth(i)},this.$updateGutterWidth=function(i){var r=this.session,c=r.gutterRenderer||this.$renderer,o=r.$firstLineNumber,l=this.$lines.last()?this.$lines.last().text:"",o=((this.$fixedWidth||r.$useWrapMode)&&(l=r.getLength()+o-1),c?c.getWidth(r,l,i):l.toString().length*i.characterWidth),c=this.$padding||this.$computePadding();(o+=c.left+c.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){var i;this.$highlightGutterLine&&(i=this.session.selection.getCursor(),this.$cursorRow!==i.row&&(this.$cursorRow=i.row))},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!this.$cursorCell||this.$cursorCell.row!=i){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var r=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(o.row>this.$cursorRow){var c=this.session.getFoldLine(this.$cursorRow);if(!(0l.right-r.right?"foldWidgets":void 0}}).call(w.prototype),m.Gutter=w}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(f,m,b){function w(a){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}var p=f("../range").Range,s=f("../lib/dom");(function(){this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setMarkers=function(a){this.markers=a},this.elt=function(a,n){var e=this.i!=-1&&this.element.childNodes[this.i];e?this.i++:(e=document.createElement("div"),this.element.appendChild(e),this.i=-1),e.style.cssText=n,e.className=a},this.update=function(a){if(a){var n,e;for(e in this.config=a,this.i=0,this.markers){var t,i,r,l=this.markers[e];l.range?(r=l.range.clipRows(a.firstRow,a.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),l.renderer?(t=this.$getTop(r.start.row,a),i=this.$padding+r.start.column*a.characterWidth,l.renderer(n,r,i,t,a)):l.type=="fullLine"?this.drawFullLineMarker(n,r,l.clazz,a):l.type=="screenLine"?this.drawScreenLineMarker(n,r,l.clazz,a):r.isMultiLine()?l.type=="text"?this.drawTextMarker(n,r,l.clazz,a):this.drawMultiLineMarker(n,r,l.clazz,a):this.drawSingleLineMarker(n,r,l.clazz+" ace_start ace_br15",a)):l.update(n,this,this.session,a)}if(this.i!=-1)for(;this.it.lastRow)for(o=this.session.getFoldedRowCount(t.lastRow+1,i.lastRow);0i.lastRow&&this.$lines.push(this.$renderLinesFragment(t,i.lastRow+1,t.lastRow))},this.$renderLinesFragment=function(t,i,r){for(var l=[],o=i,c=this.session.getNextFoldLine(o),h=c?c.start.row:1/0;h=c;)h=this.$renderToken(y,h,d,u.substring(0,c-l)),u=u.substring(c-l),l=c,y=this.$createLineElement(),t.appendChild(y),y.appendChild(this.dom.createTextNode(a.stringRepeat("\xA0",r.indent),this.element)),h=0,c=r[++o]||Number.MAX_VALUE;u.length!=0&&(l+=u.length,h=this.$renderToken(y,h,d,u))}}r[r.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(y,h,null,"",!0)},this.$renderSimpleLine=function(t,i){for(var r=0,l=0;lthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,r,o,c);r=this.$renderToken(t,r,o,c)}}},this.$renderOverflowMessage=function(t,i,r,l,o){r&&this.$renderToken(t,i,r,l.slice(0,this.MAX_LINE_LENGTH-i)),r=this.dom.createElement("span"),r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"":"",t.appendChild(r)},this.$renderLine=function(t,i,r){var l,o,c=t;(l=(r=r||r==0?r:this.session.getFoldLine(i))?this.$getFoldLineTokens(i,r):this.session.getTokens(i)).length?(o=this.session.getRowSplitData(i))&&o.length?(this.$renderWrappedLine(t,l,o),c=t.lastChild):(c=t,this.$useLineGroups()&&(c=this.$createLineElement(),t.appendChild(c)),this.$renderSimpleLine(c,l)):this.$useLineGroups()&&(c=this.$createLineElement(),t.appendChild(c)),this.showEOL&&c&&(r&&(i=r.end.row),(o=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",o.textContent=i==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,c.appendChild(o))},this.$getFoldLineTokens=function(t,i){var r=this.session,l=[],o=r.getTokens(t);return i.walk(function(c,h,y,v,d){if(c!=null)l.push({type:"fold",value:c});else if((o=d?r.getTokens(h):o).length){for(var u,A=o,x=v,I=y,T=0,L=0;L+A[T].value.lengthI-x&&(u=u.substring(0,I-x)),l.push({type:A[T].type,value:u}),L=x+u.length,T+=1);LI?l.push({type:A[T].type,value:u.substring(0,I-L)}):l.push(A[T]),L+=u.length,T+=1}},i.end.row,this.session.getLine(i.end.row).length),l},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(w.prototype),m.Text=w}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(f,m,b){function w(s){this.element=p.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),p.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var p=f("../lib/dom");(function(){this.$updateOpacity=function(s){for(var a=this.cursors,n=a.length;n--;)p.setStyle(a[n].style,"opacity",s?"":"0")},this.$startCssAnimation=function(){for(var s=this.cursors,a=s.length;a--;)s[a].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&p.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,p.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(s){this.$padding=s},this.setSession=function(s){this.session=s},this.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},this.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},this.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,p.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var s=p.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},this.removeCursor=function(){var s;if(1s.height+s.offset||l.top<0)&&1n;)this.removeCursor();var o=this.session.getOverwrite();this.$setOverwrite(o),this.$pixelPos=l,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(s){s!=this.overwrite&&((this.overwrite=s)?p.addCssClass(this.element,"ace_overwrite-cursors"):p.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(w.prototype),m.Cursor=w}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(f,m,b){function w(i){this.element=n.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=n.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xA0",this.element.appendChild(this.inner),i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,e.addListener(this.element,"scroll",this.onScroll.bind(this)),e.addListener(this.element,"mousedown",e.preventDefault)}function p(i,r){w.call(this,i),this.scrollTop=0,this.scrollHeight=0,r.$scrollbarWidth=this.width=n.scrollbarWidth(i.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function s(i,r){w.call(this,i),this.scrollLeft=0,this.height=r.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var a=f("./lib/oop"),n=f("./lib/dom"),e=f("./lib/event"),t=f("./lib/event_emitter").EventEmitter;(function(){a.implement(this,t),this.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1}}).call(w.prototype),a.inherits(p,w),function(){this.classSuffix="-v",this.onScroll=function(){var i;this.skipEvent||(this.scrollTop=this.element.scrollTop,this.coeff!=1&&(i=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-i)/(this.coeff-i)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(i){this.element.style.height=i+"px"},this.setInnerHeight=this.setScrollHeight=function(i){32768<(this.scrollHeight=i)?(this.coeff=32768/i,i=32768):this.coeff!=1&&(this.coeff=1),this.inner.style.height=i+"px"},this.setScrollTop=function(i){this.scrollTop!=i&&(this.skipEvent=!0,this.scrollTop=i,this.element.scrollTop=i*this.coeff)}}.call(p.prototype),a.inherits(s,w),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(i){this.element.style.width=i+"px"},this.setInnerWidth=function(i){this.inner.style.width=i+"px"},this.setScrollWidth=function(i){this.inner.style.width=i+"px"},this.setScrollLeft=function(i){this.scrollLeft!=i&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=i)}}.call(s.prototype),m.ScrollBar=p,m.ScrollBarV=p,m.ScrollBarH=s,m.VScrollBar=p,m.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(f,m,b){function w(s,a){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=a||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;t&&(p.blockIdle(100),n.changes=0,n.onRender(t)),n.changes?n.$recursionLimit--<0||n.schedule():n.$recursionLimit=2}}var p=f("./lib/event");(function(){this.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(p.nextFrame(this._flush),this.pending=!0)},this.clear=function(s){var a=this.changes;return this.changes=0,a}}).call(w.prototype),m.RenderLoop=w}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(i,m,b){var w=i("../lib/oop"),p=i("../lib/dom"),s=i("../lib/lang"),a=i("../lib/event"),n=i("../lib/useragent"),e=i("../lib/event_emitter").EventEmitter,t=typeof ResizeObserver=="function",i=m.FontMetrics=function(r){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},t?this.$addObserver():this.checkForSizeChanges()};(function(){w.implement(this,e),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(r,l){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",n.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=l?"hidden":"visible"},this.checkForSizeChanges=function(r){var l;!(r=r===void 0?this.$measureSizes():r)||this.$characterSize.width===r.width&&this.$characterSize.height===r.height||(this.$measureNode.style.fontWeight="bold",l=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=l&&l.width===r.width&&l.height===r.height,this._emit("changeCharacterSize",{data:r}))},this.$addObserver=function(){var r=this;this.$observer=new window.ResizeObserver(function(l){r.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var r=this;return this.$pollSizeChangesTimer=a.onIdle(function l(){r.checkForSizeChanges(),a.onIdle(l,500)},500)},this.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(r){return r={height:(r||this.$measureNode).clientHeight,width:(r||this.$measureNode).clientWidth/256},r.width===0||r.height===0?null:r},this.$measureCharWidth=function(r){return this.$main.textContent=s.stringRepeat(r,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(r){var l=this.charSizes[r];return l=l===void 0?this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width:l},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function r(l){return l&&l.parentElement?(window.getComputedStyle(l).zoom||1)*r(l.parentElement):1},this.$initTransformMeasureNodes=function(){function r(l,o){return["div",{style:"position: absolute;top:"+l+"px;left:"+o+"px;"}]}this.els=p.buildDom([r(0,0),r(200,0),r(0,200),r(200,200)],this.el)},this.transformCoordinates=function(r,T){function o(L,k,_){var F=L[1]*k[0]-L[0]*k[1];return[(-k[1]*_[0]+k[0]*_[1])/F,(+L[1]*_[0]-L[0]*_[1])/F]}function c(L,k){return[L[0]-k[0],L[1]-k[1]]}function h(L,k){return[L[0]+k[0],L[1]+k[1]]}function y(L,k){return[L*k[0],L*k[1]]}function v(L){return L=L.getBoundingClientRect(),[L.left,L.top]}r=r&&y(1/this.$getZoom(this.el),r),this.els||this.$initTransformMeasureNodes();var d=v(this.els[0]),A=v(this.els[1]),x=v(this.els[2]),u=v(this.els[3]),u=o(c(u,A),c(u,x),c(h(A,x),h(u,d))),A=y(1+u[0],c(A,d)),x=y(1+u[1],c(x,d));if(T)return I=u[0]*T[0]/200+u[1]*T[1]/200+1,T=h(y(T[0],A),y(T[1],x)),h(y(1/I/200,T),d);var I=c(r,d),T=o(c(A,y(u[0],I)),c(x,y(u[1],I)),I);return y(200,T)}}).call(i.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(f,m,b){function w(I,A){var x=this,I=(this.container=I||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),a.get("useStrictCSP")==null&&a.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new n(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new e(this.content),this.$textLayer=new t(this.content));this.canvas=I.element,this.$markerFront=new e(this.content),this.$cursorLayer=new i(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new l(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(T){x.$scrollAnimation||x.session.setScrollTop(T.data-x.scrollMargin.top)}),this.scrollBarH.on("scroll",function(T){x.$scrollAnimation||x.session.setScrollLeft(T.data-x.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new c(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(T){x.updateCharacterSize(),x.onResize(!0,x.gutterWidth,x.$size.width,x.$size.height),x._signal("changeCharacterSize",T)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new o(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),a.resetOptions(this),a._signal("renderer",this)}var p=f("./lib/oop"),s=f("./lib/dom"),a=f("./config"),n=f("./layer/gutter").Gutter,e=f("./layer/marker").Marker,t=f("./layer/text").Text,i=f("./layer/cursor").Cursor,r=f("./scrollbar").HScrollBar,l=f("./scrollbar").VScrollBar,o=f("./renderloop").RenderLoop,c=f("./layer/font_metrics").FontMetrics,h=f("./lib/event_emitter").EventEmitter,y=`.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}`,v=f("./lib/useragent"),d=v.isIE;s.importCssString(y,"ace_editor.css",!1),function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,p.implement(this,h),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(u){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=u)&&this.scrollMargin.top&&u.getScrollTop()<=0&&u.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(u),this.$markerBack.setSession(u),this.$markerFront.setSession(u),this.$gutterLayer.setSession(u),this.$textLayer.setSession(u),u&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(u,A,x){if(A===void 0&&(A=1/0),this.$changedLines?(this.$changedLines.firstRow>u&&(this.$changedLines.firstRow=u),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(u){u?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(u,A,x,I){if(!(2k.height-I?s.translate(this.textarea,0,0):(k=1,T=this.$size.height-I,L?L.useTextareaForIME?(L=this.textarea.value,k=this.characterWidth*this.session.$getStringScreenWidth(L)[0]):A+=this.lineHeight+2:A+=this.lineHeight,(x-=this.scrollLeft)>this.$size.scrollerWidth-k&&(x=this.$size.scrollerWidth-k),x+=this.gutterWidth+this.margin.left,s.setStyle(u,"height",I+"px"),s.setStyle(u,"width",k+"px"),s.translate(this.textarea,Math.min(x,this.$size.scrollerWidth-k),Math.min(A,T)))):s.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var u=this.layerConfig,A=u.lastRow;return this.session.documentToScreenRow(A,0)*u.lineHeight-this.session.getScrollTop()>u.height-u.lineHeight?A-1:A},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(u){this.$padding=u,this.$textLayer.setPadding(u),this.$cursorLayer.setPadding(u),this.$markerFront.setPadding(u),this.$markerBack.setPadding(u),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(u,A,x,I){var T=this.scrollMargin;T.top=0|u,T.bottom=0|A,T.right=0|I,T.left=0|x,T.v=T.top+T.bottom,T.h=T.left+T.right,T.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-T.top),this.updateFull()},this.setMargin=function(u,A,x,I){var T=this.margin;T.top=0|u,T.bottom=0|A,T.right=0|I,T.left=0|x,T.v=T.top+T.bottom,T.h=T.left+T.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(u){this.setOption("hScrollBarAlwaysVisible",u)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(u){this.setOption("vScrollBarAlwaysVisible",u)},this.$updateScrollBarV=function(){var u=this.layerConfig.maxHeight,A=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(u-=(A-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>u-A&&(u=this.scrollTop+A,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(u+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(u,A){if(this.$changes&&(u|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(u||A)){if(this.$size.$dirty)return this.$changes|=u,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",u),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var x,I,A=this.layerConfig;return(u&this.CHANGE_FULL||u&this.CHANGE_SIZE||u&this.CHANGE_TEXT||u&this.CHANGE_LINES||u&this.CHANGE_SCROLL||u&this.CHANGE_H_SCROLL)&&(u|=this.$computeLayerConfig()|this.$loop.clear(),A.firstRow!=this.layerConfig.firstRow&&A.firstRowScreen==this.layerConfig.firstRowScreen&&0<(x=this.scrollTop+(A.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=x,u=(u|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),A=this.layerConfig,this.$updateScrollBarV(),u&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-A.offset),x=A.width+2*this.$padding+"px",I=A.minHeight+"px",s.setStyle(this.content.style,"width",x),s.setStyle(this.content.style,"height",I)),u&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-A.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),u&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor(),void this._signal("afterRender",u)):(u&this.CHANGE_SCROLL?(this.$changedLines=null,u&this.CHANGE_TEXT||u&this.CHANGE_LINES?this.$textLayer.update(A):this.$textLayer.scrollLines(A),this.$showGutter&&(u&this.CHANGE_GUTTER||u&this.CHANGE_LINES?this.$gutterLayer.update(A):this.$gutterLayer.scrollLines(A)),this.$markerBack.update(A),this.$markerFront.update(A),this.$cursorLayer.update(A),this.$moveTextAreaToCursor()):(u&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(A),this.$showGutter&&this.$gutterLayer.update(A)):u&this.CHANGE_LINES?(this.$updateLines()||u&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(A):u&this.CHANGE_TEXT||u&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(A):u&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(A),u&this.CHANGE_CURSOR&&(this.$cursorLayer.update(A),this.$moveTextAreaToCursor()),u&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(A),u&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(A)),void this._signal("afterRender",u))}this.$changes|=u},this.$autosize=function(){var u=this.session.getScreenLength()*this.lineHeight,A=this.$maxLines*this.lineHeight,x=Math.min(A,Math.max((this.$minLines||1)*this.lineHeight,u))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(x+=this.scrollBarH.getHeight()),A=!((x=this.$maxPixelHeight&&x>this.$maxPixelHeight?this.$maxPixelHeight:x)<=2*this.lineHeight)&&A_.top)),k=F!==z,_=(k&&(this.$vScroll=z,this.scrollBarV.setVisible(z)),this.scrollTop%this.lineHeight),F=Math.ceil(L/this.lineHeight)-1,F=(z=Math.max(0,Math.round((this.scrollTop-_)/this.lineHeight)))+F,H=this.lineHeight,z=J.screenToDocumentRow(z,0),D=J.getFoldLine(z),J=(D&&(z=D.start.row),D=J.documentToScreenRow(z,0),u=J.getRowLength(z)*H,F=Math.min(J.screenToDocumentRow(F,0),J.getLength()-1),L=A.scrollerHeight+J.getRowLength(F)*H+u,_=this.scrollTop-D*H,0);return this.layerConfig.width==I&&!T||(J=this.CHANGE_H_SCROLL),(T||k)&&(J|=this.$updateCachedSize(!0,this.gutterWidth,A.width,A.height),this._signal("scrollbarVisibilityChanged"),k&&(I=this.$getLongestLine())),this.layerConfig={width:I,padding:this.$padding,firstRow:z,firstRowScreen:D,lastRow:F,lineHeight:H,characterWidth:this.characterWidth,minHeight:L,maxHeight:x,offset:_,gutterOffset:H?Math.max(0,Math.ceil((_+A.height-A.scrollerHeight)/H)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(I-this.$padding),J},this.$updateLines=function(){if(this.$changedLines){var u=this.$changedLines.firstRow,A=this.$changedLines.lastRow,x=(this.$changedLines=null,this.layerConfig);if(!(u>x.lastRow+1||Athis.$textLayer.MAX_LINE_LENGTH&&(u=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(u*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(u,A){this.$gutterLayer.addGutterDecoration(u,A)},this.removeGutterDecoration=function(u,A){this.$gutterLayer.removeGutterDecoration(u,A)},this.updateBreakpoints=function(u){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(u){this.$gutterLayer.setAnnotations(u),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(u,A,x){this.scrollCursorIntoView(u,x),this.scrollCursorIntoView(A,x)},this.scrollCursorIntoView=function(u,A,x){var I,T,L;this.$size.scrollerHeight!==0&&(I=(u=this.$cursorLayer.getPixelPosition(u)).left,u=u.top,L=x&&x.top||0,x=x&&x.bottom||0,u<(T=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+L?(A&&T+L>u+this.lineHeight&&(u-=A*this.$size.scrollerHeight),u===0&&(u=-this.scrollMargin.top),this.session.setScrollTop(u)):T+this.$size.scrollerHeight-x=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(e.prototype),m.UIWorkerClient=function(t,i,r){var l=null,o=!1,c=Object.create(s),h=[],y=new e({messageBuffer:h,terminate:function(){},postMessage:function(d){h.push(d),l&&(o?setTimeout(v):v())}}),v=(y.setEmitSync=function(d){o=d},function(){var d=h.shift();d.command?l[d.command].apply(l,d.args):d.event&&c._signal(d.event,d.data)});return c.postMessage=function(d){y.onMessage({data:d})},c.callback=function(d,u){this.postMessage({type:"call",id:u,data:d})},c.emit=function(d,u){this.postMessage({type:"event",name:d,data:u})},a.loadModule(["worker",i],function(d){for(l=new d[r](c);h.length;)v()}),y},m.WorkerClient=e,m.createWorker=n}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(f,m,b){function w(n,c,t,i,r,l){var o=this,c=(this.length=c,this.session=n,this.doc=n.getDocument(),this.mainClass=r,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){o.onCursorChange()})},this.$pos=t,n.getUndoManager().$undoStack||n.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=c.length,this.setup(),n.selection.on("changeCursor",this.$onCursorChange)}var p=f("./range").Range,s=f("./lib/event_emitter").EventEmitter,a=f("./lib/oop");(function(){a.implement(this,s),this.setup=function(){var n=this,e=this.doc,t=this.session,i=(this.selectionBefore=t.selection.toJSON(),t.selection.inMultiSelectMode&&t.selection.toSingleRange(),this.pos=e.createAnchor(this.$pos.row,this.$pos.column),this.pos);i.$insertRight=!0,i.detach(),i.markerId=t.addMarker(new p(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(r){r=e.createAnchor(r.row,r.column),r.$insertRight=!0,r.detach(),n.others.push(r)}),t.setUndoSelect(!1)},this.showOtherMarkers=function(){var n,e;this.othersActive||(n=this.session,(e=this).othersActive=!0,this.others.forEach(function(t){t.markerId=n.addMarker(new p(t.row,t.column,t.row,t.column+e.length),e.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&e.start.column<=this.pos.column+this.length+1,r=e.start.column-this.pos.column;if(this.updateAnchors(n),i&&(this.length+=t),i&&!this.session.$fromUndo){if(n.action==="insert")for(var l=this.others.length-1;0<=l;l--){var o={row:(c=this.others[l]).row,column:c.column+r};this.doc.insertMergedLines(o,n.lines)}else if(n.action==="remove")for(l=this.others.length-1;0<=l;l--){var c,o={row:(c=this.others[l]).row,column:c.column+r};this.doc.remove(new p(o.row,o.column,o.row,o.column-t))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(n){this.pos.onChange(n);for(var e=this.others.length;e--;)this.others[e].onChange(n);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,e=this.session,t=function(r,l){e.removeMarker(r.markerId),r.markerId=e.addMarker(new p(r.row,r.column,r.row,r.column+n.length),l,null,!1)};t(this.pos,this.mainClass);for(var i=this.others.length;i--;)t(this.others[i],this.othersClass)}},this.onCursorChange=function(n){var e;!this.$updating&&this.session&&((e=this.session.selection.getCursor()).row===this.pos.row&&e.column>=this.pos.column&&e.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),e=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,t=0;td&&(d=F.column),(H=H==-1?0:H)T[1].length&&(h=T[1].length),yT[3].length&&(v=T[3].length)),T):[I]}).map(c?x:d?u?function(I){return I[2]?A(h+y-I[2].length)+I[2]+A(v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}:x:function(I){return I[2]?A(h)+I[2]+A(v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]});function A(I){return e.stringRepeat(" ",I)}function x(I){return I[2]?A(h)+I[2]+A(y-I[2].length+v)+I[4].replace(/^([=:])\s+/,"$1 "):I[0]}}}).call(r.prototype),m.onSessionChange=function(h){var c=h.session,h=(c&&!c.multiSelect&&(c.$selectionMarkers=[],c.selection.$initRangeList(),c.multiSelect=c.selection),this.multiSelect=c&&c.multiSelect,h.oldSession);h&&(h.multiSelect.off("addRange",this.$onAddRange),h.multiSelect.off("removeRange",this.$onRemoveRange),h.multiSelect.off("multiSelect",this.$onMultiSelect),h.multiSelect.off("singleSelect",this.$onSingleSelect),h.multiSelect.lead.off("change",this.$checkMultiselectChange),h.multiSelect.anchor.off("change",this.$checkMultiselectChange)),c&&(c.multiSelect.on("addRange",this.$onAddRange),c.multiSelect.on("removeRange",this.$onRemoveRange),c.multiSelect.on("multiSelect",this.$onMultiSelect),c.multiSelect.on("singleSelect",this.$onSingleSelect),c.multiSelect.lead.on("change",this.$checkMultiselectChange),c.multiSelect.anchor.on("change",this.$checkMultiselectChange)),c&&this.inMultiSelectMode!=c.selection.inMultiSelectMode&&(c.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},m.MultiSelect=l,f("./config").defineOptions(r.prototype,"editor",{enableMultiselect:{set:function(o){l(this),o?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(o){this.$blockSelectEnabled=o},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(p,m,b){var w=p("../../range").Range,p=m.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(s,a,n){return s=s.getLine(n),this.foldingStartMarker.test(s)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(s,a,n){return null},this.indentationBlock=function(s,a,n){var e=/\S/,t=s.getLine(a),i=t.search(e);if(i!=-1){for(var r,n=n||t.length,l=s.getLength(),t=a,o=a;++an.row&&(e.row--,e.column=s.getLine(e.row).length),w.fromPoints(n,e)},this.closingBracketBlock=function(s,a,n,e,t){if(n={row:n,column:e},e=s.$findOpeningBracket(a,n),e)return e.column++,n.column--,w.fromPoints(e,n)}}).call(p.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(f,m,b){m.isDark=!1,m.cssClass="ace-tm",m.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',m.$id="ace/theme/textmate",f("../lib/dom").importCssString(m.cssText,m.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(f,m,b){var w=f("./lib/dom");function p(s){this.session=s,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(s){var a=this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowCount||0;return this.$useWrapMode&&this.$wrapData[s]?this.$wrapData[s].length+1+a:1+a},this.$getWidgetScreenLength=function(){var s=0;return this.lineWidgets.forEach(function(a){a&&a.rowCount&&!a.hidden&&(s+=a.rowCount)}),s},this.$onChangeEditor=function(s){this.attach(s.editor)},this.attach=function(s){s&&s.widgetManager&&s.widgetManager!=this&&s.widgetManager.detach(),this.editor!=s&&(this.detach(),(this.editor=s)&&(s.widgetManager=this,s.renderer.on("beforeRender",this.measureWidgets),s.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(s){var a=this.editor;a&&(this.editor=null,a.widgetManager=null,a.renderer.off("beforeRender",this.measureWidgets),a.renderer.off("afterRender",this.renderWidgets),(a=this.session.lineWidgets)&&a.forEach(function(n){n&&n.el&&n.el.parentNode&&(n._inDocument=!1,n.el.parentNode.removeChild(n.el))}))},this.updateOnFold=function(s,a){var n=a.lineWidgets;if(n&&s.action){for(var a=s.data,e=a.start.row,t=a.end.row,i=s.action=="add",r=e+1;rt[a].column&&a++,e.unshift(a,0),t.splice.apply(t,e)),this.$updateRows()))},this.$updateRows=function(){var s,a=this.session.lineWidgets;a&&(s=!0,a.forEach(function(n,e){if(n)for(s=!1,n.row=e;n.$oldWidget;)n.$oldWidget.row=e,n=n.$oldWidget}),s&&(this.session.lineWidgets=null))},this.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var a=this.session.lineWidgets[s.row];return a&&(s.$oldWidget=a).el&&a.el.parentNode&&(a.el.parentNode.removeChild(a.el),a._inDocument=!1),this.session.lineWidgets[s.row]=s},this.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var a,n=this.editor.renderer,e=(s.html&&!s.el&&(s.el=w.createElement("div"),s.el.innerHTML=s.html),s.el&&(w.addCssClass(s.el,"ace_lineWidgetContainer"),s.el.style.position="absolute",s.el.style.zIndex=5,n.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/n.layerConfig.lineHeight),this.session.getFoldAt(s.row,0));return(s.$fold=e)&&(a=this.session.lineWidgets,s.row!=e.end.row||a[e.start.row]?s.hidden=!0:a[e.start.row]=s),this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(s),s},this.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var a=this.session.lineWidgets[s.row];if(a==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;a;){if(a.$oldWidget==s){a.$oldWidget=s.$oldWidget;break}a=a.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(s){for(var a=this.session.lineWidgets,n=a&&a[s],e=[];n;)e.push(n),n=n.$oldWidget;return e},this.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(s,a){var n=this.session._changedWidgets,e=a.layerConfig;if(n&&n.length){for(var t=1/0,i=0;i>1,A=y(h,c[u]);if(0=i.length?r=0"),c.appendChild(p.createElement("div")),o.destroy=function(){n.$mouseHandler.isMousePressed||(n.keyBinding.removeKeyboardHandler(l),i.widgetManager.removeLineWidget(o),n.off("changeSelection",o.destroy),n.off("changeSession",o.destroy),n.off("mouseup",o.destroy),n.off("change",o.destroy))},n.keyBinding.addKeyboardHandler(l),n.on("changeSelection",o.destroy),n.on("changeSession",o.destroy),n.on("mouseup",o.destroy),n.on("change",o.destroy),n.session.widgetManager.addLineWidget(o),o.el.onmousedown=n.focus.bind(n),n.renderer.scrollCursorIntoView(null,.5,{bottom:o.el.offsetHeight})},p.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(f,m,b){f("./lib/fixoldbrowsers");var w=f("./lib/dom"),p=f("./lib/event"),s=f("./range").Range,a=f("./editor").Editor,n=f("./edit_session").EditSession,e=f("./undomanager").UndoManager,t=f("./virtual_renderer").VirtualRenderer;f("./worker/worker_client"),f("./keyboard/hash_handler"),f("./placeholder"),f("./multi_select"),f("./mode/folding/fold_mode"),f("./theme/textmate"),f("./ext/error_marker"),m.config=f("./config"),m.require=f,m.define=X.amdD,m.edit=function(c,r){if(typeof c=="string"){var o=c;if(!(c=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(c&&c.env&&c.env.editor instanceof a)return c.env.editor;var l,o="",o=(c&&/input|textarea/i.test(c.tagName)?(o=(l=c).value,c=w.createElement("pre"),l.parentNode.replaceChild(c,l)):c&&(o=c.textContent,c.innerHTML=""),m.createEditSession(o)),c=new a(new t(c),o,r),h={document:o,editor:c,onResize:c.resize.bind(c,null)};return l&&(h.textarea=l),p.addListener(window,"resize",h.onResize),c.on("destroy",function(){p.removeListener(window,"resize",h.onResize),h.editor.container.env=null}),c.container.env=c.env=h,c},m.createEditSession=function(i,r){return i=new n(i,r),i.setUndoManager(new e),i},m.Range=s,m.Editor=a,m.EditSession=n,m.UndoManager=e,m.VirtualRenderer=t,m.version=m.config.version}),ace.require(["ace/ace"],function(f){for(var m in f&&(f.config.init(!0),f.define=ace.define),window.ace||(window.ace=f),f)f.hasOwnProperty(m)&&(window.ace[m]=f[m]);window.ace.default=window.ace,ie&&(ie.exports=window.ace)})},4317:function(ie,g,X){ie=X.nmd(ie),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(P,S,N){var t=P("./lib/dom"),Z=P("./lib/oop"),O=P("./lib/event_emitter").EventEmitter,W=P("./lib/lang"),M=P("./range").Range,j=P("./range_list").RangeList,f=P("./keyboard/hash_handler").HashHandler,m=P("./tokenizer").Tokenizer,b=P("./clipboard"),w={CURRENT_WORD:function(i){return i.session.getTextRange(i.session.getWordRange())},SELECTION:function(i,r,l){return i=i.session.getTextRange(),l?i.replace(/\n\r?([ \t]*\S)/g,` +`+l+"$1"):i},CURRENT_LINE:function(i){return i.session.getLine(i.getCursorPosition().row)},PREV_LINE:function(i){return i.session.getLine(i.getCursorPosition().row-1)},LINE_INDEX:function(i){return i.getCursorPosition().row},LINE_NUMBER:function(i){return i.getCursorPosition().row+1},SOFT_TABS:function(i){return i.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(i){return i.session.getTabSize()},CLIPBOARD:function(i){return b.getText&&b.getText()},FILENAME:function(i){return/[^/\\]*$/.exec(this.FILEPATH(i))[0]},FILENAME_BASE:function(i){return/[^/\\]*$/.exec(this.FILEPATH(i))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(i){return this.FILEPATH(i).replace(/[^/\\]*$/,"")},FILEPATH:function(i){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(i){return i=i.session.$mode||{},i.blockComment&&i.blockComment.start||""},BLOCK_COMMENT_END:function(i){return i=i.session.$mode||{},i.blockComment&&i.blockComment.end||""},LINE_COMMENT:function(i){return(i.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(i){return i=new Date().toLocaleString("en-us",i),i.length==1?"0"+i:i}w.SELECTED_TEXT=w.SELECTION;function s(){this.snippetMap={},this.snippetNameMap={}}(function(){Z.implement(this,O),this.getTokenizer=function(){return s.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function i(o){return o=o.substr(1),/^\d+$/.test(o)?[{tabstopId:parseInt(o,10)}]:[{text:o}]}function r(o){return"(?:[^\\\\"+o+"]|\\\\.)"}var l={regex:"/("+r("/")+"+)/",onMatch:function(o,c,h){return h=h[0],h.fmtString=!0,h.guard=o.slice(1,-1),h.flag=""},next:"formatString"};return s.$tokenizer=new m({start:[{regex:/\\./,onMatch:function(o,c,h){var y=o[1];return[o=y=="}"&&h.length||"`$\\".indexOf(y)!=-1?y:o]}},{regex:/}/,onMatch:function(o,c,h){return[h.length?h.shift():o]}},{regex:/\$(?:\d+|\w+)/,onMatch:i},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(o,c,h){return o=i(o.substr(1)),h.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+r("\\|")+"*\\|",onMatch:function(o,c,h){return o=o.slice(1,-1).replace(/\\[,|\\]|,/g,function(y){return y.length==2?y[1]:"\0"}).split("\0").map(function(y){return{value:y}}),[(h[0].choices=o)[0]]},next:"start"},l,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(o,c,h){return h.length&&h[0].expectElse?(h[0].expectElse=!1,h[0].ifEnd={elseEnd:h[0]},[h[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(o,c,h){var y=o[1];return y=="}"&&h.length||"`$\\".indexOf(y)!=-1?o=y:y=="n"?o=` +`:y=="t"?o=" ":"ulULE".indexOf(y)!=-1&&(o={changeCase:y,local:"a"v&&(x=v-h.offsetWidth),h.style.left=x+"px",this._signal("show"),s=null,n.isOpen=!0},n.goTo=function(l){var o=this.getRow(),c=this.session.getLength()-1;switch(l){case"up":o=o<=0?c:o-1;break;case"down":o=c<=o?-1:o+1;break;case"start":o=0;break;case"end":o=c}this.setRow(o)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},S.$singleLineEditor=Z}),ace.define("ace/autocomplete/util",["require","exports","module"],function(P,S,N){S.parForEach=function(O,W,M){var j=0,f=O.length;f===0&&M();for(var m=0;mthis.filterText&&p.lastIndexOf(this.filterText,0)===0?this.filtered:this.all,this.filterText=p,s=(s=this.filterCompletions(s,this.filterText)).sort(function(n,e){return e.exactMatch-n.exactMatch||e.$score-n.$score||(n.caption||n.value).localeCompare(e.caption||e.value)});var s,a=null;s=s.filter(function(n){return n=n.snippet||n.caption||n.value,n!==a&&(a=n,!0)}),this.filtered=s},this.filterCompletions=function(p,s){var a=[],n=s.toUpperCase(),e=s.toLowerCase();e:for(var t,i=0;t=p[i];i++){var r=t.caption||t.value||t.snippet;if(r){var l=-1,o=0,c=0;if(this.exactMatch){if(s!==r.substr(0,s.length))continue}else{var h=r.toLowerCase().indexOf(e);if(-1",f.escapeHTML(t.caption),"","",f.escapeHTML((t=t.snippet,i={},t.replace(/\${(\d+)(:(.*?))?}/g,function(r,l,o,c){return i[l]=c||""}).replace(/\$(\d+?)/g,function(r,l){return i[l]})))].join(""))}},p=[w,e,b],s=(S.setCompleters=function(t){p.length=0,t&&p.push.apply(p,t)},S.addCompleter=function(t){p.push(t)},S.textCompleter=e,S.keyWordCompleter=b,S.snippetCompleter=w,{name:"expandSnippet",exec:function(t){return W.expandWithTab(t)},bindKey:"Tab"}),a=function(t){(t=typeof t=="string"?j.$modes[t]:t)&&(W.files||(W.files={}),n(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(a))},n=function(t,i){i&&t&&!W.files[t]&&(W.files[t]={},j.loadModule(i,function(r){r&&(!(W.files[t]=r).snippets&&r.snippetText&&(r.snippets=W.parseSnippetFile(r.snippetText)),W.register(r.snippets||[],r.scope),r.includeScopes&&(W.snippetMap[r.scope].includeScopes=r.includeScopes,r.includeScopes.forEach(function(l){a("ace/mode/"+l)})))}))},e=P("../editor").Editor;P("../config").defineOptions(e.prototype,"editor",{enableBasicAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:p),this.commands.addCommand(M.startCommand)):this.commands.removeCommand(M.startCommand)},value:!1},enableLiveAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:p),this.commands.on("afterExec",O)):this.commands.removeListener("afterExec",O)},value:!1},enableSnippets:{set:function(t){t?(this.commands.addCommand(s),this.on("changeMode",Z),Z(0,this)):(this.commands.removeCommand(s),this.off("changeMode",Z))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(P){ie&&(ie.exports=P)})},3330:function(ie,g,X){ie=X.nmd(ie),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(P,S,N){function Z(b,w,p){var s=O.createElement("div");O.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"\u200B"],["span",{action:"findNext",class:"ace_searchbtn next"},"\u200B"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],s),this.element=s.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(b),O.importCssString(j,"ace_searchbox",b.container)}var O=P("../lib/dom"),W=P("../lib/lang"),M=P("../lib/event"),j='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',f=P("../keyboard/hash_handler").HashHandler,m=P("../lib/keys");O.importCssString(j,"ace_searchbox",!1),function(){this.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},this.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},this.$init=function(){var b=this.element,w=(this.$initElements(b),this);M.addListener(b,"mousedown",function(p){setTimeout(function(){w.activeInput.focus()},0),M.stopPropagation(p)}),M.addListener(b,"click",function(p){var s=(p.target||p.srcElement).getAttribute("action");s&&w[s]?w[s]():w.$searchBarKb.commands[s]&&w.$searchBarKb.commands[s].exec(w),M.stopPropagation(p)}),M.addCommandKeyListener(b,function(p,s,a){a=m.keyCodeToString(a),s=w.$searchBarKb.findKeyCommand(s,a),s&&s.exec&&(s.exec(w),M.stopEvent(p))}),this.$onChange=W.delayedCall(function(){w.find(!1,!1)}),M.addListener(this.searchInput,"input",function(){w.$onChange.schedule(20)}),M.addListener(this.searchInput,"focus",function(){w.activeInput=w.searchInput,w.searchInput.value&&w.highlight()}),M.addListener(this.replaceInput,"focus",function(){w.activeInput=w.replaceInput,w.searchInput.value&&w.highlight()})},this.$closeSearchBarKb=new f([{bindKey:"Esc",name:"closeSearchBar",exec:function(b){b.searchBox.hide()}}]),this.$searchBarKb=new f,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(b){var w=b.isReplace=!b.isReplace;b.replaceBox.style.display=w?"":"none",b.replaceOption.checked=!1,b.$syncOptions(),b.searchInput.focus()},"Ctrl-H|Command-Option-F":function(b){b.editor.getReadOnly()||(b.replaceOption.checked=!0,b.$syncOptions(),b.replaceInput.focus())},"Ctrl-G|Command-G":function(b){b.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(b){b.findPrev()},esc:function(b){setTimeout(function(){b.hide()})},Return:function(b){b.activeInput==b.replaceInput&&b.replace(),b.findNext()},"Shift-Return":function(b){b.activeInput==b.replaceInput&&b.replace(),b.findPrev()},"Alt-Return":function(b){b.activeInput==b.replaceInput&&b.replaceAll(),b.findAll()},Tab:function(b){(b.activeInput==b.replaceInput?b.searchInput:b.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(b){b.regExpOption.checked=!b.regExpOption.checked,b.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(b){b.caseSensitiveOption.checked=!b.caseSensitiveOption.checked,b.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(b){b.wholeWordOption.checked=!b.wholeWordOption.checked,b.$syncOptions()}},{name:"toggleReplace",exec:function(b){b.replaceOption.checked=!b.replaceOption.checked,b.$syncOptions()}},{name:"searchInSelection",exec:function(b){b.searchOption.checked=!b.searchRange,b.setSearchRange(b.searchOption.checked&&b.editor.getSelectionRange()),b.$syncOptions()}}]),this.setSearchRange=function(b){(this.searchRange=b)?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(b){O.setCssClass(this.replaceOption,"checked",this.searchRange),O.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",O.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),O.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),O.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var w=this.editor.getReadOnly();this.replaceOption.style.display=w?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!w?"":"none",this.find(!1,!1,b)},this.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(b,w,p){b=!this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:w,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:p,range:this.searchRange})&&this.searchInput.value,O.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var b=this.editor,w=b.$search.$options.re,p=0,s=0;if(w){var a,n,e=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue(),t=b.session.doc.positionToIndex(b.selection.anchor);for(this.searchRange&&(t-=b.session.doc.positionToIndex(this.searchRange.start)),w.lastIndex=0;(n=w.exec(e))&&((a=n.index)<=t&&s++,!(999<++p))&&(n[0]||(w.lastIndex=a+=1,!(a>=e.length))););}this.searchCounter.textContent=s+" of "+(999%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,j=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,b=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,w=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function p(r){return P.copy(p[r=r=="full"?"full":"fast"])}function s(c){if(c=c.match(S),!c)return!1;var l=+c[1],o=+c[2],c=+c[3];return 1<=o&&o<=12&&1<=c&&c<=(o!=2||(c=l)%4!=0||c%100==0&&c%400!=0?N[o]:29)}function a(y,l){if(y=y.match(Z),!y)return!1;var o=y[1],c=y[2],h=y[3],y=y[5];return(o<=23&&c<=59&&h<=59||o==23&&c==59&&h==60)&&(!l||y)}(ie.exports=p).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w},p.full={date:s,time:a,"date-time":function(r){return r=r.split(n),r.length==2&&s(r[0])&&a(r[1],!0)},uri:function(r){return e.test(r)&&W.test(r)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w};var n=/t|\s/i,e=/\/|:/,t=/[^\\]\\Z/;function i(r){if(t.test(r))return!1;try{return new RegExp(r),!0}catch{return!1}}},5689:function(ie,g,X){var P=X(3969),S=X(3724),N=X(5359),Z=X(3508),O=X(1869),W=S.ucs2length,M=X(2303),j=N.Validation;function f(n,e,t,i){var r=this,l=this._opts,o=[void 0],c={},h=[],y={},v=[],d={},u=[],A=(e=e||{schema:n,refVal:o,refs:c},function(B,C,E){var $=m.call(this,B,C,E);return 0<=$?{index:$,compiling:!0}:($=this._compilations.length,this._compilations[$]={schema:B,root:C,baseId:E},{index:$,compiling:!1})}.call(this,n,e,i)),x=this._compilations[A.index];if(A.compiling)return x.callValidate=_;var I=this._formats,T=this.RULES;try{var L=F(n,e,t,i),k=(x.validate=L,x.callValidate);return k&&(k.schema=L.schema,k.errors=null,k.refs=L.refs,k.refVal=L.refVal,k.root=L.root,k.$async=L.$async,l.sourceCode&&(k.source=L.source)),L}finally{(function(B,C,E){B=m.call(this,B,C,E),0<=B&&this._compilations.splice(B,1)}).call(this,n,e,i)}function _(){var B=x.validate,C=B.apply(this,arguments);return _.errors=B.errors,C}function F(B,C,E,$){var G=!C||C.schema==B;if(C.schema!=e.schema)return f.call(r,B,C,E,$);E=B.$async===!0,$=O({isTop:!0,schema:B,isRoot:G,baseId:$,root:C,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:N.MissingRef,RULES:T,validate:O,util:S,resolve:P,resolveRef:H,usePattern:J,useDefault:R,useCustomRule:V,opts:l,formats:I,logger:r.logger,self:r}),$=a(o,p)+a(h,b)+a(v,w)+a(u,s)+$,l.processCode&&($=l.processCode($,B));try{var K=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",$)(r,T,I,e,o,v,u,M,W,j);o[0]=K}catch(Q){throw r.logger.error("Error compiling schema, function code:",$),Q}return K.schema=B,K.errors=null,K.refs=c,K.refVal=o,K.root=G?K:C,E&&(K.$async=!0),l.sourceCode===!0&&(K.source={code:$,patterns:h,defaults:v}),K}function H(B,C,Q){C=P.url(B,C);var $=c[C];if($!==void 0)return D(G=o[$],K="refVal["+$+"]");if(!Q&&e.refs&&($=e.refs[C],$!==void 0))return D(G=e.refVal[$],K=z(C,G));var G,K=z(C),Q=P.call(r,F,e,C);if(Q!==void 0||($=t&&t[C])&&(Q=P.inlineRef($,l.inlineRefs)?$:f.call(r,$,e,t,B)),Q!==void 0)return G=Q,$=c[$=C],o[$]=G,D(Q,K);delete c[C]}function z(B,C){var E=o.length;return o[E]=C,"refVal"+(c[B]=E)}function D(B,C){return typeof B=="object"||typeof B=="boolean"?{code:C,schema:B,inline:!0}:{code:C,$async:B&&!!B.$async}}function J(B){var C=y[B];return C===void 0&&(C=y[B]=h.length,h[C]=B),"pattern"+C}function R(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return S.toQuotedString(B);case"object":if(B===null)return"null";var C=Z(B),E=d[C];return E===void 0&&(E=d[C]=v.length,v[E]=B),"default"+E}}function V(B,C,E,$){if(r._opts.validateSchema!==!1){var K=B.definition.dependencies;if(K&&!K.every(function(xe){return Object.prototype.hasOwnProperty.call(E,xe)}))throw new Error("parent schema must have all required keywords: "+K.join(","));if(K=B.definition.validateSchema,K&&!K(C)){if(K="keyword schema is invalid: "+r.errorsText(K.errors),r._opts.validateSchema!="log")throw new Error(K);r.logger.error(K)}}var G,K=B.definition.compile,Q=B.definition.inline,ee=B.definition.macro;if(K)G=K.call(r,C,E,$);else if(ee)G=ee.call(r,C,E,$),l.validateSchema!==!1&&r.validateSchema(G,!0);else if(Q)G=Q.call(r,$,B.keyword,C,E);else if(!(G=B.definition.validate))return;if(G===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');return K=u.length,{code:"customRule"+K,validate:u[K]=G}}}function m(n,e,t){for(var i=0;i",o=e?">":"<",c=void 0;if(!a&&typeof m!="number"&&m!==void 0)throw new Error(X+" must be number");if(!r&&i!==void 0&&typeof i!="number"&&typeof i!="boolean")throw new Error(t+" must be number or boolean");r?(f=g.util.getData(i.$data,f,g.dataPathArr),Z="exclIsNumber"+j,O="' + "+(W="op"+j)+" + '",c=t,(h=h||[]).push(M=M+(" var schemaExcl"+j+" = "+f+"; ")+(" var "+(S="exclusive"+j)+"; var "+(N="exclType"+j)+" = typeof "+(f="schemaExcl"+j)+"; if ("+N+" != 'boolean' && "+N+" != 'undefined' && "+N+" != 'number') { ")),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: {} ",g.opts.messages!==!1&&(M+=" , message: '"+t+" should be boolean' "),g.opts.verbose&&(M+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ",y=M,M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } else if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+N+" == 'number' ? ( ("+S+" = "+n+" === undefined || "+f+" "+l+"= "+n+") ? "+s+" "+o+"= "+f+" : "+s+" "+o+" "+n+" ) : ( ("+S+" = "+f+" === true) ? "+s+" "+o+"= "+n+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { var op"+j+" = "+S+" ? '"+l+"' : '"+l+"='; ",m===void 0&&(w=g.errSchemaPath+"/"+(c=t),n=f,a=r)):(O=l,(Z=typeof i=="number")&&a?(W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" ( "+n+" === undefined || "+i+" "+l+"= "+n+" ? "+s+" "+o+"= "+i+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { "):(Z&&m===void 0?(S=!0,w=g.errSchemaPath+"/"+(c=t),n=i,o+="="):(Z&&(n=Math[e?"min":"max"](i,m)),i===(!Z||n)?(S=!0,w=g.errSchemaPath+"/"+(c=t),o+="="):(S=!1,O+="=")),W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+s+" "+o+" "+n+" || "+s+" !== "+s+") { ")),c=c||X,(h=h||[]).push(M),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: { comparison: "+W+", limit: "+n+", exclusive: "+S+" } ",g.opts.messages!==!1&&(M=M+" , message: 'should be "+O+" "+(a?"' + "+n:n+"'")),g.opts.verbose&&(M=(M+=" , schema: ")+(a?"validate.schema"+b:""+m)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ";var h,y=M;return M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } ",p&&(M+=" else { "),M}},2407:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" "+W+".length "+(X=="maxItems"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxItems"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" items' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},1250:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || "),g.opts.unicode===!1?b+=" "+W+".length ":b+=" ucs2length("+W+") ";var m=X,f=[],m=(f.push(b+=" "+(X=="maxLength"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT be ")+(X=="maxLength"?"longer":"shorter")+" than ")+(M?"' + "+j+" + '":""+S)+" characters' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},2596:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" Object.keys("+W+").length "+(X=="maxProperties"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxProperties"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" properties' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},9486:function(ie){ie.exports=function(g,X,P){var S=" ",N=g.schema[X],Z=g.schemaPath+g.util.getProperty(X),O=g.errSchemaPath+"/"+X,W=!g.opts.allErrors,M=g.util.copy(g),j="",f=(M.level++,"valid"+M.level),m=M.baseId,b=!0,w=N;if(w)for(var p,s=-1,a=w.length-1;s "+l+") { ",c=M+"["+l+"]",m.schema=y,m.schemaPath=Z+"["+l+"]",m.errSchemaPath=O+"/"+l,m.errorPath=g.util.getPathExpr(g.errorPath,l,g.opts.jsonPointers,!0),m.dataPathArr[s]=l,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",S+=" } ",W&&(S+=" if ("+w+") { ",b+="}"))}typeof i=="object"&&(g.opts.strictKeywords?typeof i=="object"&&0 "+N.length+") { for (var "+p+" = "+N.length+"; "+p+" < "+M+".length; "+p+"++) { ",m.errorPath=g.util.getPathExpr(g.errorPath,p,g.opts.jsonPointers,!0),c=M+"["+p+"]",m.dataPathArr[s]=p,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",W&&(S+=" if (!"+w+") break; "),S+=" } } ",W&&(S+=" if ("+w+") { ",b+="}"))}else(g.opts.strictKeywords?typeof N=="object"&&0 1e-"+g.opts.multipleOfPrecision+" ":S+=" division"+N+" !== parseInt(division"+N+") ",S+=" ) ",f&&(S+=" ) "),X=[],X.push(S+=" ) { "),S="",g.createErrors!==!1?(S+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { multipleOf: "+m+" } ",g.opts.messages!==!1&&(S=S+" , message: 'should be multiple of "+(f?"' + "+m:m+"'")),g.opts.verbose&&(S=(S+=" , schema: ")+(f?"validate.schema"+O:""+Z)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ",N=S,S=X.pop(),!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+N+"]); ":S+=" validate.errors = ["+N+"]; return false; ":S+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+="} ",M&&(S+=" else { "),S}},7946:function(ie){ie.exports=function(g,M,P){var S,N,Z=" ",m=g.level,f=g.dataLevel,O=g.schema[M],W=g.schemaPath+g.util.getProperty(M),M=g.errSchemaPath+"/"+M,j=!g.opts.allErrors,f="data"+(f||""),m="errs__"+m,b=g.util.copy(g),w=(b.level++,"valid"+b.level);return(g.opts.strictKeywords?typeof O=="object"&&0=g.opts.loopRequired,i=g.opts.ownProperties;if(M)if(S+=" var missing"+N+"; ",Z){m||(S+=" var "+b+" = validate.schema"+O+"; ");var r="' + "+(v="schema"+N+"["+(c="i"+N)+"]")+" + '";g.opts._errorDataPathProperty&&(g.errorPath=g.util.getPathExpr(t,v,g.opts.jsonPointers)),S+=" var "+f+" = true; ",m&&(S+=" if (schema"+N+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+N+")) "+f+" = false; else {"),S+=" for (var "+c+" = 0; "+c+" < "+b+".length; "+c+"++) { "+f+" = "+j+"["+b+"["+c+"]] !== undefined ",i&&(S+=" && Object.prototype.hasOwnProperty.call("+j+", "+b+"["+c+"]) "),S+="; if (!"+f+") break; } ",m&&(S+=" } "),(y=y||[]).push(S+=" if (!"+f+") { "),S="",g.createErrors!==!1?(S+=" { keyword: 'required' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { missingProperty: '"+r+"' } ",g.opts.messages!==!1&&(S+=" , message: '",g.opts._errorDataPathProperty?S+="is a required property":S+="should have required property \\'"+r+"\\'",S+="' "),g.opts.verbose&&(S+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ";var l=S,S=y.pop();!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+l+"]); ":S+=" validate.errors = ["+l+"]; return false; ":S+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+=" } else { "}else{S+=" if ( ";var o=w;if(o)for(var c=-1,h=o.length-1;c 1) { ",Z=g.schema.items&&g.schema.items.type,w=Array.isArray(Z),!Z||Z=="object"||Z=="array"||w&&(0<=Z.indexOf("object")||0<=Z.indexOf("array"))?N+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+m+" = false; break outer; } } } ":(N=(N+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ")+" if ("+g.util["checkDataType"+(w?"s":"")](Z,"item",g.opts.strictNumbers,!0)+") continue; ",w&&(N+=` if (typeof item == 'string') item = '"' + item; `),N+=" if (typeof itemIndices[item] == 'number') { "+m+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),N+=" } ",b&&(N+=" } "),(S=S||[]).push(N+=" if (!"+m+") { "),N="",g.createErrors!==!1?(N+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(M)+" , params: { i: i, j: j } ",g.opts.messages!==!1&&(N+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),g.opts.verbose&&(N=(N+=" , schema: ")+(b?"validate.schema"+W:""+O)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+f+" "),N+=" } "):N+=" {} ",Z=N,N=S.pop(),!g.compositeRule&&j?g.async?N+=" throw new ValidationError(["+Z+"]); ":N+=" validate.errors = ["+Z+"]; return false; ":N+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+=" } ",j&&(N+=" else { ")):j&&(N+=" if (true) { "),N}},1869:function(ie){ie.exports=function(g,X,P){var S="",N=g.schema.$async===!0,Z=g.util.schemaHasRulesExcept(g.schema,g.RULES.all,"$ref"),O=g.self._getId(g.schema);if(g.opts.strictKeywords){var W=g.util.schemaUnknownRules(g.schema,g.RULES.keywords);if(W){if(W="unknown keyword: "+W,g.opts.strictKeywords!=="log")throw new Error(W);g.logger.warn(W)}}if(g.isTop&&(S+=" var validate = ",N&&(g.async=!0,S+="async "),S+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",O&&(g.opts.sourceCode||g.opts.processCode)&&(S+=" /*# sourceURL="+O+" */ ")),typeof g.schema=="boolean"||!Z&&!g.schema.$ref)return j=g.level,f=g.dataLevel,T=g.schema[X="false schema"],r=g.schemaPath+g.util.getProperty(X),l=g.errSchemaPath+"/"+X,p=!g.opts.allErrors,m="data"+(f||""),w="valid"+j,g.schema===!1?(g.isTop?p=!0:S+=" var "+w+" = false; ",(R=R||[]).push(S),S="",g.createErrors!==!1?(S+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(l)+" , params: {} ",g.opts.messages!==!1&&(S+=" , message: 'boolean schema is false' "),g.opts.verbose&&(S+=" , schema: false , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),S+=" } "):S+=" {} ",u=S,S=R.pop(),!g.compositeRule&&p?g.async?S+=" throw new ValidationError(["+u+"]); ":S+=" validate.errors = ["+u+"]; return false; ":S+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):g.isTop?S+=N?" return data; ":" validate.errors = null; return true; ":S+=" var "+w+" = true; ",g.isTop&&(S+=" }; return validate; "),S;if(g.isTop){var M=g.isTop,j=g.level=0,f=g.dataLevel=0,m="data";if(g.rootId=g.resolve.fullPath(g.self._getId(g.root.schema)),g.baseId=g.baseId||g.rootId,delete g.isTop,g.dataPathArr=[""],g.schema.default!==void 0&&g.opts.useDefaults&&g.opts.strictDefaults){var b="default is ignored in the schema root";if(g.opts.strictDefaults!=="log")throw new Error(b);g.logger.warn(b)}S=(S+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(j=g.level,m="data"+((f=g.dataLevel)||""),O&&(g.baseId=g.resolve.url(g.baseId,O)),N&&!g.async)throw new Error("async schema in sync schema");S+=" var errs_"+j+" = errors;"}var w="valid"+j,p=!g.opts.allErrors,s="",a="",n=g.schema.type,e=Array.isArray(n);if(n&&g.opts.nullable&&g.schema.nullable===!0&&(e?n.indexOf("null")==-1&&(n=n.concat("null")):n!="null"&&(n=[n,"null"],e=!0)),e&&n.length==1&&(n=n[0],e=!1),g.schema.$ref&&Z){if(g.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+g.errSchemaPath+'" (see option extendRefs)');g.opts.extendRefs!==!0&&(Z=!1,g.logger.warn('$ref: keywords ignored in schema at path "'+g.errSchemaPath+'"'))}if(g.schema.$comment&&g.opts.$comment&&(S+=" "+g.RULES.all.$comment.code(g,"$comment")),n){g.opts.coerceTypes&&(t=g.util.coerceToTypes(g.opts.coerceTypes,n));var t,i=g.RULES.types[n];if(t||e||i===!0||i&&!$(i)){var r=g.schemaPath+".type",l=g.errSchemaPath+"/type",r=g.schemaPath+".type",l=g.errSchemaPath+"/type";if(S+=" if ("+g.util[e?"checkDataTypes":"checkDataType"](n,m,g.opts.strictNumbers,!0)+") { ",t){var o="dataType"+j,c="coerced"+j,h=(S+=" var "+o+" = typeof "+m+"; var "+c+" = undefined; ",g.opts.coerceTypes=="array"&&(S+=" if ("+o+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+o+" = typeof "+m+"; if ("+g.util.checkDataType(g.schema.type,m,g.opts.strictNumbers)+") "+c+" = "+m+"; } "),S+=" if ("+c+" !== undefined) ; ",t);if(h)for(var y,v=-1,d=h.length-1;v",9:"Array"},M="UnquotedIdentifier",j="QuotedIdentifier",f="Rbracket",m="Rparen",b="Comma",w="Colon",p="Rbrace",s="Number",a="Current",n="Expref",e="Pipe",t="Flatten",i="Star",r="Filter",l="Lbrace",o="Lbracket",c="Lparen",h="Literal",y={".":"Dot","*":i,",":b,":":w,"{":l,"}":p,"]":f,"(":c,")":m,"@":a},v={"<":!0,">":!0,"=":!0,"!":!0},d={" ":!0," ":!0,"\n":!0};function u(k){return"0"<=k&&k<="9"||k==="-"}function A(){}A.prototype={tokenize:function(k){var _,F,H=[];for(this._current=0;this._current"?k[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:_}):{type:"GT",value:">",start:_}:F==="="&&k[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:_}):void 0},_consumeLiteral:function(k){this._current++;for(var _=this._current,F=k.length;k[this._current]!=="`"&&this._currentNumber.MAX_SAFE_INTEGER||R=s.length)throw new SyntaxError("Unexpected end of JSON input")}},g.stringify=function(s,a,n){if(N(s)){var e=0;switch(typeof(i=typeof n=="object"?n.space:n)){case"number":var t=101){U[0]=U[0].slice(0,-1);for(var se=U.length-1,re=1;re= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=p-s,v=Math.floor,d=String.fromCharCode;function u(q){throw new RangeError(h[q])}function A(q,U){for(var te=[],se=q.length;se--;)te[se]=U(q[se]);return te}function x(q,U){var te=q.split("@"),se="";te.length>1&&(se=te[0]+"@",q=te[1]),q=q.replace(c,".");var re=q.split("."),Ee=A(re,U).join(".");return se+Ee}function I(q){for(var U=[],te=0,se=q.length;te=55296&&re<=56319&&te>1,U+=v(U/te);U>y*a>>1;re+=p)U=v(U/y);return v(re+(y+1)*U/(U+n))},_=function(U){var te=[],se=U.length,re=0,Ee=i,Re=t,Pe=U.lastIndexOf(r);Pe<0&&(Pe=0);for(var je=0;je=128&&u("not-basic"),te.push(U.charCodeAt(je));for(var Ke=Pe>0?Pe+1:0;Ke=se&&u("invalid-input");var Le=T(U.charCodeAt(Ke++));(Le>=p||Le>v((w-re)/Ve))&&u("overflow"),re+=Le*Ve;var Ze=ze<=Re?s:ze>=Re+a?a:ze-Re;if(Lev(w/Xe)&&u("overflow"),Ve*=Xe}var Oe=te.length+1;Re=k(re-Ne,Oe,Ne==0),v(re/Oe)>w-Ee&&u("overflow"),Ee+=v(re/Oe),re%=Oe,te.splice(re++,0,Ee)}return String.fromCodePoint.apply(String,te)},F=function(U){var te=[];U=I(U);var se=U.length,re=i,Ee=0,Re=t,Pe=!0,je=!1,Ke=void 0;try{for(var Ne=U[Symbol.iterator](),Ve;!(Pe=(Ve=Ne.next()).done);Pe=!0){var ze=Ve.value;ze<128&&te.push(d(ze))}}catch(vt){je=!0,Ke=vt}finally{try{!Pe&&Ne.return&&Ne.return()}finally{if(je)throw Ke}}var Le=te.length,Ze=Le;for(Le&&te.push(r);Ze=re&&dtv((w-Ee)/et)&&u("overflow"),Ee+=(Xe-re)*et,re=Xe;var rt=!0,ht=!1,lt=void 0;try{for(var Ct=U[Symbol.iterator](),$t;!(rt=($t=Ct.next()).done);rt=!0){var Lt=$t.value;if(Ltw&&u("overflow"),Lt==re){for(var wt=Ee,xt=p;;xt+=p){var St=xt<=Re?s:xt>=Re+a?a:xt-Re;if(wt>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():te="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),te}function J(q){for(var U="",te=0,se=q.length;te=194&&re<224){if(se-te>=6){var Ee=parseInt(q.substr(te+4,2),16);U+=String.fromCharCode((re&31)<<6|Ee&63)}else U+=q.substr(te,6);te+=6}else if(re>=224){if(se-te>=9){var Re=parseInt(q.substr(te+4,2),16),Pe=parseInt(q.substr(te+7,2),16);U+=String.fromCharCode((re&15)<<12|(Re&63)<<6|Pe&63)}else U+=q.substr(te,9);te+=9}else U+=q.substr(te,3),te+=3}return U}function R(q,U){function te(se){var re=J(se);return re.match(U.UNRESERVED)?re:se}return q.scheme&&(q.scheme=String(q.scheme).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(U.PCT_ENCODED,te).replace(U.NOT_USERINFO,D).replace(U.PCT_ENCODED,Z)),q.host!==void 0&&(q.host=String(q.host).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_HOST,D).replace(U.PCT_ENCODED,Z)),q.path!==void 0&&(q.path=String(q.path).replace(U.PCT_ENCODED,te).replace(q.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,D).replace(U.PCT_ENCODED,Z)),q.query!==void 0&&(q.query=String(q.query).replace(U.PCT_ENCODED,te).replace(U.NOT_QUERY,D).replace(U.PCT_ENCODED,Z)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(U.PCT_ENCODED,te).replace(U.NOT_FRAGMENT,D).replace(U.PCT_ENCODED,Z)),q}function V(q){return q.replace(/^0*(.*)/,"$1")||"0"}function B(q,U){var te=q.match(U.IPV4ADDRESS)||[],se=m(te,2),re=se[1];return re?re.split(".").map(V).join("."):q}function C(q,U){var te=q.match(U.IPV6ADDRESS)||[],se=m(te,3),re=se[1],Ee=se[2];if(re){for(var Re=re.toLowerCase().split("::").reverse(),Pe=m(Re,2),je=Pe[0],Ke=Pe[1],Ne=Ke?Ke.split(":").map(V):[],Ve=je.split(":").map(V),ze=U.IPV4ADDRESS.test(Ve[Ve.length-1]),Le=ze?7:8,Ze=Ve.length-Le,Xe=Array(Le),Oe=0;Oe1){var pt=Xe.slice(0,nt.index),dt=Xe.slice(nt.index+nt.length);ot=pt.join(":")+"::"+dt.join(":")}else ot=Xe.join(":");return Ee&&(ot+="%"+Ee),ot}else return q}var E=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$="".match(/(){0}/)[1]===void 0;function G(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te={},se=U.iri!==!1?f:j;U.reference==="suffix"&&(q=(U.scheme?U.scheme+":":"")+"//"+q);var re=q.match(E);if(re){$?(te.scheme=re[1],te.userinfo=re[3],te.host=re[4],te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=re[7],te.fragment=re[8],isNaN(te.port)&&(te.port=re[5])):(te.scheme=re[1]||void 0,te.userinfo=q.indexOf("@")!==-1?re[3]:void 0,te.host=q.indexOf("//")!==-1?re[4]:void 0,te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=q.indexOf("?")!==-1?re[7]:void 0,te.fragment=q.indexOf("#")!==-1?re[8]:void 0,isNaN(te.port)&&(te.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?re[4]:void 0)),te.host&&(te.host=C(B(te.host,se),se)),te.scheme===void 0&&te.userinfo===void 0&&te.host===void 0&&te.port===void 0&&!te.path&&te.query===void 0?te.reference="same-document":te.scheme===void 0?te.reference="relative":te.fragment===void 0?te.reference="absolute":te.reference="uri",U.reference&&U.reference!=="suffix"&&U.reference!==te.reference&&(te.error=te.error||"URI is not a "+U.reference+" reference.");var Ee=z[(U.scheme||te.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(te.host&&(U.domainHost||Ee&&Ee.domainHost))try{te.host=H.toASCII(te.host.replace(se.PCT_ENCODED,J).toLowerCase())}catch(Re){te.error=te.error||"Host's domain name can not be converted to ASCII via punycode: "+Re}R(te,j)}else R(te,se);Ee&&Ee.parse&&Ee.parse(te,U)}else te.error=te.error||"URI can not be parsed.";return te}function K(q,U){var te=U.iri!==!1?f:j,se=[];return q.userinfo!==void 0&&(se.push(q.userinfo),se.push("@")),q.host!==void 0&&se.push(C(B(String(q.host),te),te).replace(te.IPV6ADDRESS,function(re,Ee,Re){return"["+Ee+(Re?"%25"+Re:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(se.push(":"),se.push(String(q.port))),se.length?se.join(""):void 0}var Q=/^\.\.?\//,ee=/^\/\.(\/|$)/,he=/^\/\.\.(\/|$)/,xe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(q){for(var U=[];q.length;)if(q.match(Q))q=q.replace(Q,"");else if(q.match(ee))q=q.replace(ee,"/");else if(q.match(he))q=q.replace(he,"/"),U.pop();else if(q==="."||q==="..")q="";else{var te=q.match(xe);if(te){var se=te[0];q=q.slice(se.length),U.push(se)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Ce(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=U.iri?f:j,se=[],re=z[(U.scheme||q.scheme||"").toLowerCase()];if(re&&re.serialize&&re.serialize(q,U),q.host&&!te.IPV6ADDRESS.test(q.host)){if(U.domainHost||re&&re.domainHost)try{q.host=U.iri?H.toUnicode(q.host):H.toASCII(q.host.replace(te.PCT_ENCODED,J).toLowerCase())}catch(Pe){q.error=q.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}R(q,te),U.reference!=="suffix"&&q.scheme&&(se.push(q.scheme),se.push(":"));var Ee=K(q,U);if(Ee!==void 0&&(U.reference!=="suffix"&&se.push("//"),se.push(Ee),q.path&&q.path.charAt(0)!=="/"&&se.push("/")),q.path!==void 0){var Re=q.path;!U.absolutePath&&(!re||!re.absolutePath)&&(Re=ge(Re)),Ee===void 0&&(Re=Re.replace(/^\/\//,"/%2F")),se.push(Re)}return q.query!==void 0&&(se.push("?"),se.push(q.query)),q.fragment!==void 0&&(se.push("#"),se.push(q.fragment)),se.join("")}function ve(q,U){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=arguments[3],re={};return se||(q=G(Ce(q,te),te),U=G(Ce(U,te),te)),te=te||{},!te.tolerant&&U.scheme?(re.scheme=U.scheme,re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.path?(U.path.charAt(0)==="/"?re.path=ge(U.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?re.path="/"+U.path:q.path?re.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+U.path:re.path=U.path,re.path=ge(re.path)),re.query=U.query):(re.path=q.path,U.query!==void 0?re.query=U.query:re.query=q.query),re.userinfo=q.userinfo,re.host=q.host,re.port=q.port),re.scheme=q.scheme),re.fragment=U.fragment,re}function ye(q,U,te){var se=W({scheme:"null"},te);return Ce(ve(G(q,se),G(U,se),se,!0),se)}function Te(q,U){return typeof q=="string"?q=Ce(G(q,U),U):N(q)==="object"&&(q=G(Ce(q,U),U)),q}function _e(q,U,te){return typeof q=="string"?q=Ce(G(q,te),te):N(q)==="object"&&(q=Ce(q,te)),typeof U=="string"?U=Ce(G(U,te),te):N(U)==="object"&&(U=Ce(U,te)),q===U}function Se(q,U){return q&&q.toString().replace(!U||!U.iri?j.ESCAPE:f.ESCAPE,D)}function ue(q,U){return q&&q.toString().replace(!U||!U.iri?j.PCT_ENCODED:f.PCT_ENCODED,J)}var $e={scheme:"http",domainHost:!0,parse:function(U,te){return U.host||(U.error=U.error||"HTTP URIs must have a host."),U},serialize:function(U,te){var se=String(U.scheme).toLowerCase()==="https";return(U.port===(se?443:80)||U.port==="")&&(U.port=void 0),U.path||(U.path="/"),U}},ae={scheme:"https",domainHost:$e.domainHost,parse:$e.parse,serialize:$e.serialize};function me(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var ce={scheme:"ws",domainHost:!0,parse:function(U,te){var se=U;return se.secure=me(se),se.resourceName=(se.path||"/")+(se.query?"?"+se.query:""),se.path=void 0,se.query=void 0,se},serialize:function(U,te){if((U.port===(me(U)?443:80)||U.port==="")&&(U.port=void 0),typeof U.secure=="boolean"&&(U.scheme=U.secure?"wss":"ws",U.secure=void 0),U.resourceName){var se=U.resourceName.split("?"),re=m(se,2),Ee=re[0],Re=re[1];U.path=Ee&&Ee!=="/"?Ee:void 0,U.query=Re,U.resourceName=void 0}return U.fragment=void 0,U}},de={scheme:"wss",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize},fe={},be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ke="[0-9A-Fa-f]",Me=S(S("%[EFef]"+ke+"%"+ke+ke+"%"+ke+ke)+"|"+S("%[89A-Fa-f]"+ke+"%"+ke+ke)+"|"+S("%"+ke+ke)),Je="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",He=P("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Qe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",At=new RegExp(be,"g"),Y=new RegExp(Me,"g"),ne=new RegExp(P("[^]",Je,"[\\.]",'[\\"]',He),"g"),oe=new RegExp(P("[^]",be,Qe),"g"),pe=oe;function we(q){var U=J(q);return U.match(At)?U:q}var Ae={scheme:"mailto",parse:function(U,te){var se=U,re=se.to=se.path?se.path.split(","):[];if(se.path=void 0,se.query){for(var Ee=!1,Re={},Pe=se.query.split("&"),je=0,Ke=Pe.length;je1&&arguments[1]!==void 0?arguments[1]:1,r=i>0?t.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):t.toString();return r||"0"}var Z=function(){function t(i,r,l,o){g(this,t);var c=this;function h(v){if(v.startsWith("hsl")){var d=v.match(/([\-\d\.e]+)/g).map(Number),u=P(d,4),A=u[0],x=u[1],I=u[2],T=u[3];T===void 0&&(T=1),A/=360,x/=100,I/=100,c.hsla=[A,x,I,T]}else if(v.startsWith("rgb")){var L=v.match(/([\-\d\.e]+)/g).map(Number),k=P(L,4),_=k[0],F=k[1],H=k[2],z=k[3];z===void 0&&(z=1),c.rgba=[_,F,H,z]}else v.startsWith("#")?c.rgba=t.hexToRgb(v):c.rgba=t.nameToRgb(v)||t.hexToRgb(v)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(l===void 0){var y=i&&""+i;y&&h(y.toLowerCase())}else this.rgba=[i,r,l,o===void 0?1:o]}return X(t,[{key:"printRGB",value:function(r){var l=r?this.rgba:this.rgba.slice(0,3),o=l.map(function(c,h){return N(c,h===3?3:0)});return r?"rgba("+o+")":"rgb("+o+")"}},{key:"printHSL",value:function(r){var l=[360,100,100,1],o=["","%","%",""],c=r?this.hsla:this.hsla.slice(0,3),h=c.map(function(y,v){return N(y*l[v],v===3?3:1)+o[v]});return r?"hsla("+h+")":"hsl("+h+")"}},{key:"printHex",value:function(r){var l=this.hex;return r?l:l.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(r){r.length===3&&(r[3]=1),this._rgba=r,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(r){r.length===3&&(r[3]=1),this._hsla=r,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var r=this.rgba,l=r.map(function(o,c){return c<3?o.toString(16):Math.round(o*255).toString(16)});return"#"+l.map(function(o){return o.padStart(2,"0")}).join("")},set:function(r){this.rgba=t.hexToRgb(r)}}],[{key:"hexToRgb",value:function(r){var l=(r.startsWith("#")?r.slice(1):r).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!l.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+r);var o=l.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(c){return parseInt(c,16)});return o[3]=o[3]/255,o}},{key:"nameToRgb",value:function(r){var l=r.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),o=S[l];return o===void 0?o:t.hexToRgb(o.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(r){var l=P(r,4),o=l[0],c=l[1],h=l[2],y=l[3];o/=255,c/=255,h/=255;var v=Math.max(o,c,h),d=Math.min(o,c,h),u=void 0,A=void 0,x=(v+d)/2;if(v===d)u=A=0;else{var I=v-d;switch(A=x>.5?I/(2-v-d):I/(v+d),v){case o:u=(c-h)/I+(c1&&(F-=1),F<.16666666666666666?k+(_-k)*6*F:F<.5?_:F<.6666666666666666?k+(_-k)*(.6666666666666666-F)*6:k},x=h<.5?h*(1+c):h+c-h*c,I=2*h-x;v=A(I,x,o+1/3),d=A(I,x,o),u=A(I,x,o-1/3)}var T=[v*255,d*255,u*255].map(Math.round);return T[3]=y,T}}]),t}(),O=function(){function t(){g(this,t),this._events=[]}return X(t,[{key:"add",value:function(r,l,o){r.addEventListener(l,o,!1),this._events.push({target:r,type:l,handler:o})}},{key:"remove",value:function(r,l,o){this._events=this._events.filter(function(c){var h=!0;return r&&r!==c.target&&(h=!1),l&&l!==c.type&&(h=!1),o&&o!==c.handler&&(h=!1),h&&t._doRemove(c.target,c.type,c.handler),!h})}},{key:"destroy",value:function(){this._events.forEach(function(r){return t._doRemove(r.target,r.type,r.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(r,l,o){r.removeEventListener(l,o,!1)}}]),t}();function W(t){var i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}function M(t,i,r){var l=!1;function o(v,d,u){return Math.max(d,Math.min(v,u))}function c(v,d,u){if(u&&(l=!0),!!l){v.preventDefault();var A=i.getBoundingClientRect(),x=A.width,I=A.height,T=d.clientX,L=d.clientY,k=o(T-A.left,0,x),_=o(L-A.top,0,I);r(k/x,_/I)}}function h(v,d){var u=v.buttons===void 0?v.which:v.buttons;u===1?c(v,v,d):l=!1}function y(v,d){v.touches.length===1?c(v,v.touches[0],d):l=!1}t.add(i,"mousedown",function(v){h(v,!0)}),t.add(i,"touchstart",function(v){y(v,!0)}),t.add(window,"mousemove",h),t.add(i,"touchmove",y),t.add(window,"mouseup",function(v){l=!1}),t.add(i,"touchend",function(v){l=!1}),t.add(i,"touchcancel",function(v){l=!1})}var j=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em, + linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,f=360,m="keydown",b="mousedown",w="focusin";function p(t,i){return(i||document).querySelector(t)}function s(t){t.preventDefault(),t.stopPropagation()}function a(t,i,r,l,o){t.add(i,m,function(c){r.indexOf(c.key)>=0&&(o&&s(c),l(c))})}var n=function(){function t(i){g(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new O,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return X(t,[{key:"setOptions",value:function(r){var l=this;if(!r)return;var o=this.settings;function c(d,u,A){for(var x in d)A&&A.indexOf(x)>=0||(u[x]=d[x])}if(r instanceof HTMLElement)o.parent=r;else{o.parent&&r.parent&&o.parent!==r.parent&&(this._events.remove(o.parent),this._popupInited=!1),c(r,o),r.onChange&&(this.onChange=r.onChange),r.onDone&&(this.onDone=r.onDone),r.onOpen&&(this.onOpen=r.onOpen),r.onClose&&(this.onClose=r.onClose);var h=r.color||r.colour;h&&this._setColor(h)}var y=o.parent;if(y&&o.popup&&!this._popupInited){var v=function(u){return l.openHandler(u)};this._events.add(y,"click",v),a(this._events,y,[" ","Spacebar","Enter"],v),this._popupInited=!0}else r.parent&&!o.popup&&this.show()}},{key:"openHandler",value:function(r){if(this.show()){r&&r.preventDefault(),this.settings.parent.style.pointerEvents="none";var l=r&&r.type===m?this._domEdit:this.domElement;setTimeout(function(){return l.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(r){var l=r&&r.type,o=!1;if(!r)o=!0;else if(l===b||l===w){var c=(this.__containedEvent||0)+100;r.timeStamp>c&&(o=!0)}else s(r),o=!0;o&&this.hide()&&(this.settings.parent.style.pointerEvents="",l!==b&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(r,l){this.closeHandler(),this.setOptions(r),l&&this.openHandler()}},{key:"setColor",value:function(r,l){this._setColor(r,{silent:l})}},{key:"_setColor",value:function(r,l){if(typeof r=="string"&&(r=r.trim()),!!r){l=l||{};var o=void 0;try{o=new Z(r)}catch(h){if(l.failSilently)return;throw h}if(!this.settings.alpha){var c=o.hsla;c[3]=1,o.hsla=c}this.colour=this.color=o,this._setHSLA(null,null,null,null,l)}}},{key:"setColour",value:function(r,l){this.setColor(r,l)}},{key:"show",value:function(){var r=this.settings.parent;if(!r)return!1;if(this.domElement){var l=this._toggleDOM(!0);return this._setPosition(),l}var o=this.settings.template||'OkCancel',c=W(o);return this.domElement=c,this._domH=p(".picker_hue",c),this._domSL=p(".picker_sl",c),this._domA=p(".picker_alpha",c),this._domEdit=p(".picker_editor input",c),this._domSample=p(".picker_sample",c),this._domOkay=p(".picker_done button",c),this._domCancel=p(".picker_cancel button",c),c.classList.add("layout_"+this.settings.layout),this.settings.alpha||c.classList.add("no_alpha"),this.settings.editor||c.classList.add("no_editor"),this.settings.cancelButton||c.classList.add("no_cancel"),this._ifPopup(function(){return c.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var r=this,l=this,o=this.domElement,c=this._events;function h(d,u,A){c.add(d,u,A)}h(o,"click",function(d){return d.preventDefault()}),M(c,this._domH,function(d,u){return l._setHSLA(d)}),M(c,this._domSL,function(d,u){return l._setHSLA(null,d,1-u)}),this.settings.alpha&&M(c,this._domA,function(d,u){return l._setHSLA(null,null,null,1-u)});var y=this._domEdit;h(y,"input",function(d){l._setColor(this.value,{fromEditor:!0,failSilently:!0})}),h(y,"focus",function(d){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var d=function(x){return r.closeHandler(x)};h(window,b,d),h(window,w,d),a(c,o,["Esc","Escape"],d);var u=function(x){r.__containedEvent=x.timeStamp};h(o,b,u),h(o,w,u),h(r._domCancel,"click",d)});var v=function(u){r._ifPopup(function(){return r.closeHandler(u)}),r.onDone&&r.onDone(r.colour)};h(this._domOkay,"click",v),a(c,o,["Enter"],v)}},{key:"_setPosition",value:function(){var r=this.settings.parent,l=this.domElement;r!==l.parentNode&&r.appendChild(l),this._ifPopup(function(o){getComputedStyle(r).position==="static"&&(r.style.position="relative");var c=o===!0?"popup_right":"popup_"+o;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(h){h===c?l.classList.add(h):l.classList.remove(h)}),l.classList.add(c)})}},{key:"_setHSLA",value:function(r,l,o,c,h){h=h||{};var y=this.colour,v=y.hsla;[r,l,o,c].forEach(function(d,u){(d||d===0)&&(v[u]=d)}),y.hsla=v,this._updateUI(h),this.onChange&&!h.silent&&this.onChange(y)}},{key:"_updateUI",value:function(r){if(!this.domElement)return;r=r||{};var l=this.colour,o=l.hsla,c="hsl("+o[0]*f+", 100%, 50%)",h=l.hslString,y=l.hslaString,v=this._domH,d=this._domSL,u=this._domA,A=p(".picker_selector",v),x=p(".picker_selector",d),I=p(".picker_selector",u);function T(J,R,V){R.style.left=V*100+"%"}function L(J,R,V){R.style.top=V*100+"%"}T(v,A,o[0]),this._domSL.style.backgroundColor=this._domH.style.color=c,T(d,x,o[1]),L(d,x,1-o[2]),d.style.color=h,L(u,I,1-o[3]);var k=h,_=k.replace("hsl","hsla").replace(")",", 0)"),F="linear-gradient("+[k,_]+")";if(this._domA.style.background=F+", "+j,!r.fromEditor){var H=this.settings.editorFormat,z=this.settings.alpha,D=void 0;switch(H){case"rgb":D=l.printRGB(z);break;case"hsl":D=l.printHSL(z);break;default:D=l.printHex(z)}this._domEdit.value=D}this._domSample.style.color=y}},{key:"_ifPopup",value:function(r,l){this.settings.parent&&this.settings.popup?r&&r(this.settings.popup):l&&l()}},{key:"_toggleDOM",value:function(r){var l=this.domElement;if(!l)return!1;var o=r?"":"none",c=l.style.display!==o;return c&&(l.style.display=o),c}}]),t}(),e=document.createElement("style");return e.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(e),n.StyleElement=e,n}()},402:function(ie,g){function X(P,S){if(!(this instanceof X))throw new SyntaxError("Constructor must be called with the new operator");this.message=P+" (char "+S+")",this.char=S,this.stack=new Error().stack}Object.defineProperty(g,"__esModule",{value:!0}),((g.default=X).prototype=new Error).constructor=Error},3860:function(ie,g,X){ie.exports=X(7490).default},7490:function(ie,g,X){g.default=function(u){n="",e=0,t=(a=u).charAt(0),i="",r=f,h();var A=r;if(d(),y(),i==="")return n;if(A===r&&c()){for(var x="";A===r&&c();)n=(0,S.insertBeforeLastWhitespace)(n,","),x+=n,n="",d(),y();return`[ +`.concat(x).concat(n,` +]`)}throw new P.default("Unexpected characters",e-i.length)};var P=(g=X(402))&&g.__esModule?g:{default:g},S=X(9422),N=0,Z=1,O=2,W=3,M=4,j=5,f=6,m={"":!0,"{":!0,"}":!0,"[":!0,"]":!0,":":!0,",":!0,"(":!0,")":!0,";":!0,"+":!0},b={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "},w={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},p={null:"null",true:"true",false:"false"},s={None:"null",True:"true",False:"false"},a="",n="",e=0,t="",i="",r=f;function l(){e++,t=a.charAt(e)}function o(){l(),t==="\\"&&l()}function c(){return r===N&&(i==="["||i==="{")||r===O||r===Z||r===W}function h(){if(n+=i,r=f,i="",m[t])r=N,i=t,l();else if((0,S.isDigit)(t)||t==="-"){if(r=Z,t==="-"){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e)}else t==="0"&&(i+=t,l());for(;(0,S.isDigit)(t);)i+=t,l();if(t==="."){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}if(t==="e"||t==="E"){if(i+=t,l(),t!=="+"&&t!=="-"||(i+=t,l()),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}}else t==="\\"&&a.charAt(e+1)==='"'?(l(),v(o)):v(l);r===M&&(i=(0,S.normalizeWhitespace)(i),h()),r===j&&(r=f,i="",h())}function y(){i===","&&(i="",r=f,h())}function v(u){if((0,S.isQuote)(t)){var A=(0,S.normalizeQuote)(t),x=(0,S.isSingleQuote)(t)?S.isSingleQuote:S.isDoubleQuote;for(i+='"',r=O,u();t!==""&&!x(t);)if(t==="\\")if(u(),b[t]!==void 0)i+="\\"+t,u();else if(t==="u"){i+="\\u",u();for(var I=0;I<4;I++){if(!(0,S.isHex)(t))throw new P.default("Invalid unicode character",e-i.length);i+=t,u()}}else{if(t!=="'")throw new P.default('Invalid escape character "\\'+t+'"',e);i+="'",u()}else w[t]?i+=w[t]:i+=t==='"'?'\\"':t,u();if((0,S.normalizeQuote)(t)!==A)throw new P.default("End of string expected",e-i.length);return i+='"',void u()}if((0,S.isAlpha)(t))for(r=W;(0,S.isAlpha)(t)||(0,S.isDigit)(t)||t==="$";)i+=t,l();else if((0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t))for(r=M;(0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t);)i+=t,l();else if(t==="/"&&a[e+1]==="*"){for(r=j;t!==""&&(t!=="*"||t==="*"&&a[e+1]!=="/");)i+=t,l();t==="*"&&a[e+1]==="/"&&(i+=t,l(),i+=t,l())}else if(t==="/"&&a[e+1]==="/")for(r=j;t!==""&&t!==` +`;)i+=t,l();else{for(r=f;t!=="";)i+=t,l();throw new P.default('Syntax error in part "'+i+'"',e-i.length)}}function d(){if(r===N&&i==="{")if(h(),r===N&&i==="}")h();else{for(;;){if(r!==W&&r!==Z||(r=O,i='"'.concat(i,'"')),r!==O)throw new P.default("Object key expected",e-i.length);if(h(),r===N&&i===":")h();else{if(!c())throw new P.default("Colon expected",e-i.length);n=(0,S.insertBeforeLastWhitespace)(n,":")}if(d(),r===N&&i===","){if(h(),r===N&&i==="}"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(r!==O&&r!==Z&&r!==W)break;n=(0,S.insertBeforeLastWhitespace)(n,",")}}r===N&&i==="}"?h():n=(0,S.insertBeforeLastWhitespace)(n,"}")}else if(r===N&&i==="[")if(h(),r===N&&i==="]")h();else{for(;;)if(d(),r===N&&i===","){if(h(),r===N&&i==="]"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(!c())break;n=(0,S.insertBeforeLastWhitespace)(n,",")}r===N&&i==="]"?h():n=(0,S.insertBeforeLastWhitespace)(n,"]")}else if(r===O)for(h();r===N&&i==="+";){var u;i="",h(),r===O&&(u=n.lastIndexOf('"'),n=n.substring(0,u)+i.substring(1),i="",h())}else if(r===Z)h();else{if(r!==W)throw i===""?new P.default("Unexpected end of json string",e-i.length):new P.default("Value expected",e-i.length);if(p[i])h();else{if(s[i])return i=s[i],void h();var A=i,x=n.length;if(i="",h(),r===N&&i==="(")return i="",h(),d(),void(r===N&&i===")"&&(i="",h(),r===N&&i===";"&&(i="",h())));for(n=(0,S.insertAtIndex)(n,'"'.concat(A),x);r===W||r===Z;)h();n+='"'}}}},9422:function(ie,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isAlpha=function(M){return S.test(M)},g.isHex=function(M){return N.test(M)},g.isDigit=function(M){return Z.test(M)},g.isWhitespace=O,g.isSpecialWhitespace=W,g.normalizeWhitespace=function(M){for(var j="",f=0;f{N.width=Ie.width,N.height=Ie.height,W(),Z(Ge.value)}),qt(()=>{X==null||X.destroy(),X=null}),ei(()=>Ie.modelValue,M=>{X||W(),Z(M)});const Z=M=>{S||(typeof M=="string"?(P="string",X.set(JSON.parse(M))):(P="object",X.set(M)))},O=()=>{try{const M=X.get();P=="string"?le("update:modelValue",JSON.stringify(M)):le("update:modelValue",M),le("onChange",M),S=!0,ti(()=>{S=!1})}catch{}},W=()=>{console.log("init json editor");const M=Et(kt({},it.value),{mode:ie.value,modes:st.value,onChange:O});X=new oi(g.value,M)};return Et(kt({},_t(N)),{jsoneditorVue:g})}});function si(Ie,le,Ge,it,st,ie){return qe(),gt("div",null,[tt("div",{ref:"jsoneditorVue",style:ii({height:Ie.height,width:Ie.width})},null,4)])}var ai=Vt(ri,[["render",si]]);const li=Gt({name:"MongoDataOp",components:{ProjectEnvSelect:Xt,JsonEdit:ai},setup(){const Ie=Mt(null),le=Ht({loading:!1,mongoList:[],query:{envId:0},mongoId:null,database:"",collection:"",activeName:"",databases:[],collections:[],dataTabs:{},findDialog:{visible:!1,findParam:{filter:"",sort:""}},insertDocDialog:{visible:!1,doc:""},jsoneditorDialog:{visible:!1,doc:"",item:{}}}),Ge=async()=>{Jt(le.query.envId,"\u8BF7\u5148\u9009\u62E9\u9879\u76EE\u73AF\u5883");const a=await ut.mongoList.request(le.query);le.mongoList=a.list},it=(a,n)=>{le.databases=[],le.collections=[],le.mongoId=null,le.collection="",le.database="",le.dataTabs={},n!=null&&(le.query.envId=n,Ge())},st=()=>{le.databases=[],le.collections=[],le.dataTabs={},ie()},ie=async()=>{const a=await ut.databases.request({id:le.mongoId});le.databases=a.Databases},g=()=>{le.collections=[],le.collection="",le.dataTabs={},X()},X=async()=>{le.collections=await ut.collections.request({id:le.mongoId,database:le.database})},P=()=>{const a=le.collection;if(!le.dataTabs[a]){const e={filter:"{}",sort:'{"_id": -1}',skip:0,limit:12},t={name:a,datas:[],findParamStr:JSON.stringify(e),findParam:e};le.dataTabs[a]=t}le.activeName=a,Z(a)},S=a=>{const n=Object.keys(le.dataTabs);for(let e=0;e{le.dataTabs[le.activeName].findParam=le.findDialog.findParam,le.dataTabs[le.activeName].findParamStr=JSON.stringify(le.findDialog.findParam),le.findDialog.visible=!1,Z(le.activeName)},Z=async a=>{const e=le.dataTabs[a].findParam;let t,i;try{t=e.filter?JSON.parse(e.filter):{},i=e.sort?JSON.parse(e.sort):{}}catch{ft.error("filter\u6216sort\u5B57\u6BB5json\u5B57\u7B26\u4E32\u503C\u9519\u8BEF\u3002\u6CE8\u610F: json key\u9700\u53CC\u5F15\u53F7");return}const r=await ut.findCommand.request({id:le.mongoId,database:le.database,collection:a,filter:t,sort:i,limit:e.limit||12,skip:e.skip||0});le.dataTabs[a].datas=O(r)},O=a=>{const n=[];if(!a)return n;for(let e of a)n.push({value:JSON.stringify(e,null,4)});return n},W=()=>{const a=le.dataTabs[le.activeName].datas[0];let n="";if(a){const e=JSON.parse(a.value);delete e._id,n=JSON.stringify(e,null,4)}le.insertDocDialog.doc=n,le.insertDocDialog.visible=!0},M=async()=>{let a;try{a=JSON.parse(le.insertDocDialog.doc)}catch{ft.error("\u6587\u6863\u5185\u5BB9\u9519\u8BEF,\u65E0\u6CD5\u89E3\u6790\u4E3Ajson\u5BF9\u8C61")}const n=await ut.insertCommand.request({id:le.mongoId,database:le.database,collection:le.activeName,doc:a});Tt(n.InsertedID,"\u65B0\u589E\u5931\u8D25"),ft.success("\u65B0\u589E\u6210\u529F"),Z(le.activeName),le.insertDocDialog.visible=!1},j=a=>{le.jsoneditorDialog.item=a,le.jsoneditorDialog.doc=a.value,le.jsoneditorDialog.visible=!0},f=()=>{le.jsoneditorDialog.item.value=JSON.stringify(JSON.parse(le.jsoneditorDialog.doc),null,4)},m=async a=>{const n=w(a),e=n._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728"),delete n._id;const t=await ut.updateByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e,update:{$set:n}});Tt(t.ModifiedCount==1,"\u4FEE\u6539\u5931\u8D25"),ft.success("\u4FDD\u5B58\u6210\u529F")},b=async a=>{const e=w(a)._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728");const t=await ut.deleteByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e});Tt(t.DeletedCount==1,"\u5220\u9664\u5931\u8D25"),ft.success("\u5220\u9664\u6210\u529F"),Z(le.activeName)},w=a=>{try{return JSON.parse(a)}catch(n){throw ft.error("\u6587\u6863\u5185\u5BB9\u89E3\u6790\u4E3Ajson\u5BF9\u8C61\u5931\u8D25"),n}},p=a=>{const n=a.props.name;le.collection=n},s=a=>{const n=Object.keys(le.dataTabs);let e=le.activeName;n.forEach((t,i)=>{if(t===a){const r=n[i+1]||n[i-1];r&&(e=r)}}),le.activeName=e,e==a?le.collection="":le.collection=e,delete le.dataTabs[a]};return Et(kt({},_t(le)),{findParamInputRef:Ie,changeProjectEnv:it,changeMongo:st,changeDatabase:g,changeCollection:P,onDataTabClick:p,removeDataTab:s,showFindDialog:S,confirmFindDialog:N,findCommand:Z,showInsertDocDialog:W,onInsertDoc:M,onSaveDoc:m,onDeleteDoc:b,onJsonEditor:j,onCloseJsonEditDialog:f,formatByteSize:Yt})}}),ci={class:"toolbar"},di={style:{float:"left"}},hi={style:{float:"right",color:"#8492a6","margin-left":"6px","font-size":"13px"}},ui={style:{float:"left"}},gi={style:{float:"right",color:"#8492a6","margin-left":"4px","font-size":"13px"}},pi=yt("\u67E5\u8BE2\u53C2\u6570"),mi={style:{padding:"3px",float:"right"},class:"mr5 mongo-doc-btns"},fi=yt("\u53D6 \u6D88"),Ci=yt("\u786E \u5B9A"),vi=yt("\u53D6 \u6D88"),Ii=yt("\u786E \u5B9A"),bi=tt("div",{style:{"text-align":"center","margin-top":"10px"}},null,-1);function yi(Ie,le,Ge,it,st,ie){const g=Ye("el-option"),X=Ye("el-select"),P=Ye("el-form-item"),S=Ye("project-env-select"),N=Ye("el-col"),Z=Ye("el-row"),O=Ye("el-link"),W=Ye("el-input"),M=Ye("el-divider"),j=Ye("el-popconfirm"),f=Ye("el-card"),m=Ye("el-tab-pane"),b=Ye("el-tabs"),w=Ye("el-container"),p=Ye("el-form"),s=Ye("el-button"),a=Ye("el-dialog"),n=Ye("json-edit");return qe(),gt("div",null,[tt("div",ci,[Be(Z,{type:"flex",justify:"space-between"},{default:We(()=>[Be(N,{span:24},{default:We(()=>[Be(S,{onChangeProjectEnv:Ie.changeProjectEnv},{default:We(()=>[Be(P,{label:"\u5B9E\u4F8B","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.mongoId,"onUpdate:modelValue":le[0]||(le[0]=e=>Ie.mongoId=e),placeholder:"\u8BF7\u9009\u62E9mongo",onChange:Ie.changeMongo},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.mongoList,e=>(qe(),mt(g,{key:e.id,label:e.name,value:e.id},{default:We(()=>[tt("span",di,Rt(e.name),1),tt("span",hi,Rt(` [${e.uri}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u5E93","label-width":"20px"},{default:We(()=>[Be(X,{modelValue:Ie.database,"onUpdate:modelValue":le[1]||(le[1]=e=>Ie.database=e),placeholder:"\u8BF7\u9009\u62E9\u5E93",onChange:Ie.changeDatabase,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.databases,e=>(qe(),mt(g,{key:e.Name,label:e.Name,value:e.Name},{default:We(()=>[tt("span",ui,Rt(e.Name),1),tt("span",gi,Rt(` [${Ie.formatByteSize(e.SizeOnDisk)}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u96C6\u5408","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.collection,"onUpdate:modelValue":le[2]||(le[2]=e=>Ie.collection=e),placeholder:"\u8BF7\u9009\u62E9\u96C6\u5408",onChange:Ie.changeCollection,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.collections,e=>(qe(),mt(g,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["onChangeProjectEnv"])]),_:1})]),_:1})]),Be(w,{id:"data-exec",style:{border:"1px solid #eee","margin-top":"1px"}},{default:We(()=>[Be(b,{onTabRemove:Ie.removeDataTab,onTabClick:Ie.onDataTabClick,style:{width:"100%","margin-left":"5px"},modelValue:Ie.activeName,"onUpdate:modelValue":le[4]||(le[4]=e=>Ie.activeName=e)},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.dataTabs,e=>(qe(),mt(m,{closable:"",key:e.name,label:e.name,name:e.name},{default:We(()=>[Ie.mongoId?(qe(),mt(Z,{key:0},{default:We(()=>[Be(O,{onClick:le[3]||(le[3]=t=>Ie.findCommand(Ie.activeName)),icon:"refresh",underline:!1,class:"ml5"}),Be(O,{onClick:Ie.showInsertDocDialog,class:"ml5",type:"primary",icon:"plus",underline:!1},null,8,["onClick"])]),_:1})):ni("",!0),Be(Z,{class:"mt5 mb5"},{default:We(()=>[Be(W,{ref_for:!0,ref:"findParamInputRef",modelValue:e.findParamStr,"onUpdate:modelValue":t=>e.findParamStr=t,placeholder:"\u70B9\u51FB\u8F93\u5165\u76F8\u5E94\u67E5\u8BE2\u6761\u4EF6",onFocus:t=>Ie.showFindDialog(e.name)},{prepend:We(()=>[pi]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:2},1024),Be(Z,null,{default:We(()=>[(qe(!0),gt(It,null,bt(e.datas,t=>(qe(),mt(N,{span:6,key:t},{default:We(()=>[Be(f,{"body-style":{padding:"0px",position:"relative"}},{default:We(()=>[Be(W,{type:"textarea",modelValue:t.value,"onUpdate:modelValue":i=>t.value=i,rows:12},null,8,["modelValue","onUpdate:modelValue"]),tt("div",mi,[tt("div",null,[Be(O,{onClick:i=>Ie.onJsonEditor(t),underline:!1,type:"success",icon:"MagicStick"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(O,{onClick:i=>Ie.onSaveDoc(t.value),underline:!1,type:"warning",icon:"DocumentChecked"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(j,{onConfirm:i=>Ie.onDeleteDoc(t.value),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u6587\u6863?"},{reference:We(()=>[Be(O,{underline:!1,type:"danger",icon:"DocumentDelete"})]),_:2},1032,["onConfirm"])])])]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["onTabRemove","onTabClick","modelValue"])]),_:1}),Be(a,{width:"600px",title:"find\u53C2\u6570",modelValue:Ie.findDialog.visible,"onUpdate:modelValue":le[10]||(le[10]=e=>Ie.findDialog.visible=e)},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[9]||(le[9]=e=>Ie.findDialog.visible=!1)},{default:We(()=>[fi]),_:1}),Be(s,{onClick:Ie.confirmFindDialog,type:"primary"},{default:We(()=>[Ci]),_:1},8,["onClick"])])]),default:We(()=>[Be(p,{"label-width":"70px"},{default:We(()=>[Be(P,{label:"filter"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.filter,"onUpdate:modelValue":le[5]||(le[5]=e=>Ie.findDialog.findParam.filter=e),type:"textarea",rows:6,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"sort"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.sort,"onUpdate:modelValue":le[6]||(le[6]=e=>Ie.findDialog.findParam.sort=e),type:"textarea",rows:3,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"limit"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.limit,"onUpdate:modelValue":le[7]||(le[7]=e=>Ie.findDialog.findParam.limit=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"skip"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.skip,"onUpdate:modelValue":le[8]||(le[8]=e=>Ie.findDialog.findParam.skip=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),Be(a,{width:"800px",title:`\u65B0\u589E'${Ie.activeName}'\u96C6\u5408\u6587\u6863`,modelValue:Ie.insertDocDialog.visible,"onUpdate:modelValue":le[13]||(le[13]=e=>Ie.insertDocDialog.visible=e),"close-on-click-modal":!1},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[12]||(le[12]=e=>Ie.insertDocDialog.visible=!1)},{default:We(()=>[vi]),_:1}),Be(s,{onClick:Ie.onInsertDoc,type:"primary"},{default:We(()=>[Ii]),_:1},8,["onClick"])])]),default:We(()=>[Be(n,{currentMode:"code",modelValue:Ie.insertDocDialog.doc,"onUpdate:modelValue":le[11]||(le[11]=e=>Ie.insertDocDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["title","modelValue"]),Be(a,{width:"70%",title:"json\u7F16\u8F91\u5668",modelValue:Ie.jsoneditorDialog.visible,"onUpdate:modelValue":le[15]||(le[15]=e=>Ie.jsoneditorDialog.visible=e),onClose:Ie.onCloseJsonEditDialog,"close-on-click-modal":!1},{default:We(()=>[Be(n,{modelValue:Ie.jsoneditorDialog.doc,"onUpdate:modelValue":le[14]||(le[14]=e=>Ie.jsoneditorDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["modelValue","onClose"]),bi])}var _i=Vt(li,[["render",yi]]);export{_i as default}; diff --git a/server/static/static/assets/MongoList.1661345446364.js b/server/static/static/assets/MongoList.1661345446364.js new file mode 100644 index 00000000..d2ca1e63 --- /dev/null +++ b/server/static/static/assets/MongoList.1661345446364.js @@ -0,0 +1 @@ +var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var U=(e,o,c)=>o in e?X(e,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[o]=c,_=(e,o)=>{for(var c in o||(o={}))x.call(o,c)&&U(e,c,o[c]);if(T)for(var c of T(o))ee.call(o,c)&&U(e,c,o[c]);return e},M=(e,o)=>Y(e,Z(o));import{m as C}from"./api.16613454463646.js";import{p as N}from"./api.16613454463644.js";import{m as le}from"./api.16613454463643.js";import{A as O,q as ae,r as P,v as oe,t as H,_ as G,E as k,b as u,d as f,e as F,g as l,w as a,h as j,F as q,j as A,k as z,z as L,B as i,o as te,i as g,G as ne}from"./index.1661345446364.js";import{f as ie}from"./format.1661345446364.js";import"./Api.1661345446364.js";const se=O({name:"MongoEdit",props:{visible:{type:Boolean},projects:{type:Array},mongo:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:o}){const c=ae(null),r=P({dialogVisible:!1,projects:[],envs:[],sshTunnelMachineList:[],form:{id:null,name:null,uri:null,enableSshTunnel:-1,sshTunnelMachineId:null,project:null,projectId:null,envId:null,env:null},btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["change","blur"]}],uri:[{required:!0,message:"\u8BF7\u8F93\u5165mongo uri",trigger:["change","blur"]}]}});oe(e,async s=>{r.dialogVisible=s.visible,r.dialogVisible&&(r.projects=s.projects,s.mongo?(E(s.mongo.projectId),r.form=_({},s.mongo)):(r.envs=[],r.form={db:0}),y())});const y=async()=>{if(r.form.enableSshTunnel==1&&r.sshTunnelMachineList.length==0){const s=await le.list.request({pageNum:1,pageSize:100});r.sshTunnelMachineList=s.list}},E=async s=>{r.envs=await N.projectEnvs.request({projectId:s})},p=s=>{for(let m of r.projects)m.id==s&&(r.form.project=m.name);r.form.envId=null,r.form.env=null,r.envs=[],E(s)},h=s=>{for(let m of r.envs)m.id==s&&(r.form.env=m.name)},b=async()=>{c.value.validate(async s=>{if(s){const m=_({},r.form);C.saveMongo.request(m).then(()=>{k.success("\u4FDD\u5B58\u6210\u529F"),o("val-change",r.form),r.btnLoading=!0,setTimeout(()=>{r.btnLoading=!1},1e3),v()})}else return k.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},v=()=>{o("update:visible",!1),o("cancel")};return M(_({},H(r)),{mongoForm:c,changeProject:p,getSshTunnelMachines:y,changeEnv:h,btnOk:b,cancel:v})}}),ue=i(" \u673A\u5668: "),re={class:"dialog-footer"},de=i("\u53D6 \u6D88"),ge=i("\u786E \u5B9A");function me(e,o,c,r,y,E){const p=u("el-option"),h=u("el-select"),b=u("el-form-item"),v=u("el-input"),s=u("el-checkbox"),m=u("el-col"),D=u("el-form"),S=u("el-button"),B=u("el-dialog");return f(),F("div",null,[l(B,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":o[7]||(o[7]=t=>e.dialogVisible=t),"before-close":e.cancel,"close-on-click-modal":!1,width:"38%","destroy-on-close":!0},{footer:a(()=>[j("div",re,[l(S,{onClick:o[6]||(o[6]=t=>e.cancel())},{default:a(()=>[de]),_:1}),l(S,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:a(()=>[ge]),_:1},8,["loading","onClick"])])]),default:a(()=>[l(D,{model:e.form,ref:"mongoForm",rules:e.rules,"label-width":"85px"},{default:a(()=>[l(b,{prop:"projectId",label:"\u9879\u76EE",required:""},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l(b,{prop:"envId",label:"\u73AF\u5883",required:""},{default:a(()=>[l(h,{onChange:e.changeEnv,style:{width:"100%"},modelValue:e.form.envId,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.envId=t),placeholder:"\u8BF7\u9009\u62E9\u73AF\u5883"},{default:a(()=>[(f(!0),F(q,null,A(e.envs,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(b,{prop:"name",label:"\u540D\u79F0",required:""},{default:a(()=>[l(v,{modelValue:e.form.name,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"uri",label:"uri",required:""},{default:a(()=>[l(v,{type:"textarea",rows:2,modelValue:e.form.uri,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.uri=t),modelModifiers:{trim:!0},placeholder:"\u5F62\u5982 mongodb://username:password@host1:port1","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"enableSshTunnel",label:"SSH\u96A7\u9053:"},{default:a(()=>[l(m,{span:3},{default:a(()=>[l(s,{onChange:e.getSshTunnelMachines,modelValue:e.form.enableSshTunnel,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.enableSshTunnel=t),"true-label":1,"false-label":-1},null,8,["onChange","modelValue"])]),_:1}),e.form.enableSshTunnel==1?(f(),z(m,{key:0,span:2},{default:a(()=>[ue]),_:1})):L("",!0),e.form.enableSshTunnel==1?(f(),z(m,{key:1,span:19},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.sshTunnelMachineId,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sshTunnelMachineId=t),placeholder:"\u8BF7\u9009\u62E9SSH\u96A7\u9053\u673A\u5668"},{default:a(()=>[(f(!0),F(q,null,A(e.sshTunnelMachineList,t=>(f(),z(p,{key:t.id,label:`${t.ip}:${t.port} [${t.name}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):L("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var ce=G(se,[["render",me]]);const pe=O({name:"MongoList",components:{MongoEdit:ce},setup(){const e=P({projects:[],list:[],total:0,currentId:null,currentData:null,query:{pageNum:1,pageSize:10,prjectId:null,clusterId:null},mongoEditDialog:{visible:!1,data:null,title:"\u65B0\u589Emongo"},databaseDialog:{visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},collectionsDialog:{database:"",visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},createCollectionDialog:{visible:!1,form:{name:""}}});te(async()=>{D()});const o=t=>{e.query.pageNum=t,D()},c=t=>{!t||(e.currentId=t.id,e.currentData=t)},r=async t=>{e.databaseDialog.data=(await C.databases.request({id:t})).Databases,e.databaseDialog.title="\u6570\u636E\u5E93\u5217\u8868",e.databaseDialog.visible=!0},y=async t=>{e.databaseDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:t,command:{dbStats:1}}),e.databaseDialog.statsDialog.title=`'${t}' stats`,e.databaseDialog.statsDialog.visible=!0},E=async t=>{e.collectionsDialog.database=t,e.collectionsDialog.data=[],p(t),e.collectionsDialog.title=`'${t}' \u96C6\u5408`,e.collectionsDialog.visible=!0},p=async t=>{const $=await C.collections.request({id:e.currentId,database:t}),d=[];for(let I of $)d.push({name:I});e.collectionsDialog.data=d},h=async t=>{e.collectionsDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{collStats:t}}),e.collectionsDialog.statsDialog.title=`'${t}' stats`,e.collectionsDialog.statsDialog.visible=!0},b=async t=>{await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{drop:t}}),k.success("\u96C6\u5408\u5220\u9664\u6210\u529F"),p(e.collectionsDialog.database)},v=()=>{e.createCollectionDialog.visible=!0},s=async()=>{const t=e.createCollectionDialog.form;await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{create:t.name}}),k.success("\u96C6\u5408\u521B\u5EFA\u6210\u529F"),e.createCollectionDialog.visible=!1,e.createCollectionDialog.form={},p(e.collectionsDialog.database)},m=async()=>{try{await ne.confirm("\u786E\u5B9A\u5220\u9664\u8BE5mongo?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await C.deleteMongo.request({id:e.currentId}),k.success("\u5220\u9664\u6210\u529F"),e.currentData=null,e.currentId=null,D()}catch{}},D=async()=>{const t=await C.mongoList.request(e.query);e.list=t.list,e.total=t.total},S=async(t=!1)=>{e.projects=await N.accountProjects.request(null),t?(e.mongoEditDialog.data=null,e.mongoEditDialog.title="\u65B0\u589Emongo"):(e.mongoEditDialog.data=e.currentData,e.mongoEditDialog.title="\u4FEE\u6539mongo"),e.mongoEditDialog.visible=!0},B=()=>{e.currentId=null,e.currentData=null,D()};return M(_({},H(e)),{search:D,handlePageChange:o,choose:c,showDatabases:r,showDatabaseStats:y,showCollections:E,showCollectionStats:h,onDeleteCollection:b,showCreateCollectionDialog:v,onCreateCollection:s,formatByteSize:ie,deleteMongo:m,editMongo:S,valChange:B})}}),fe=i("\u6DFB\u52A0"),be=i("\u7F16\u8F91"),De=i("\u5220\u9664"),he={style:{float:"right"}},ve=j("i",null,null,-1),Ce=i("\u6570\u636E\u5E93"),ye=i("stats"),Ee=i("\u96C6\u5408"),Se=i("\u65B0\u5EFA"),we=i("stats"),ze=i("\u5220\u9664"),Fe=i("\u53D6 \u6D88"),Be=i("\u786E \u5B9A");function Ve(e,o,c,r,y,E){const p=u("el-button"),h=u("el-option"),b=u("el-select"),v=u("el-radio"),s=u("el-table-column"),m=u("el-link"),D=u("el-table"),S=u("el-pagination"),B=u("el-row"),t=u("el-card"),$=u("el-divider"),d=u("el-descriptions-item"),I=u("el-descriptions"),V=u("el-dialog"),R=u("el-popconfirm"),J=u("el-input"),K=u("el-form-item"),Q=u("el-form"),W=u("mongo-edit");return f(),F("div",null,[l(t,null,{default:a(()=>[l(p,{type:"primary",icon:"plus",onClick:o[0]||(o[0]=n=>e.editMongo(!0)),plain:""},{default:a(()=>[fe]),_:1}),l(p,{type:"primary",icon:"edit",disabled:e.currentId==null,onClick:o[1]||(o[1]=n=>e.editMongo(!1)),plain:""},{default:a(()=>[be]),_:1},8,["disabled"]),l(p,{type:"danger",icon:"delete",disabled:e.currentId==null,onClick:e.deleteMongo,plain:""},{default:a(()=>[De]),_:1},8,["disabled","onClick"]),j("div",he,[l(b,{modelValue:e.query.projectId,"onUpdate:modelValue":o[2]||(o[2]=n=>e.query.projectId=n),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",filterable:"",clearable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,n=>(f(),z(h,{key:n.id,label:`${n.name} [${n.remark}]`,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l(p,{class:"ml5",onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])]),l(D,{data:e.list,style:{width:"100%"},onCurrentChange:e.choose,stripe:""},{default:a(()=>[l(s,{label:"\u9009\u62E9",width:"60px"},{default:a(n=>[l(v,{modelValue:e.currentId,"onUpdate:modelValue":o[3]||(o[3]=w=>e.currentId=w),label:n.row.id},{default:a(()=>[ve]),_:2},1032,["modelValue","label"])]),_:1}),l(s,{prop:"project",label:"\u9879\u76EE",width:""}),l(s,{prop:"env",label:"\u73AF\u5883",width:""}),l(s,{prop:"name",label:"\u540D\u79F0",width:""}),l(s,{prop:"uri",label:"\u8FDE\u63A5uri","min-width":"150","show-overflow-tooltip":""},{default:a(n=>[i(g(n.row.uri.split("@")[1]),1)]),_:1}),l(s,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"},{default:a(n=>[i(g(e.$filters.dateFormat(n.row.createTime)),1)]),_:1}),l(s,{prop:"creator",label:"\u521B\u5EFA\u4EBA"}),l(s,{label:"\u64CD\u4F5C",width:""},{default:a(n=>[l(m,{type:"primary",onClick:w=>e.showDatabases(n.row.id),plain:"",size:"small",underline:!1},{default:a(()=>[Ce]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),l(B,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(S,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":o[4]||(o[4]=n=>e.query.pageNum=n),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),l(V,{width:"800px",title:e.databaseDialog.title,modelValue:e.databaseDialog.visible,"onUpdate:modelValue":o[6]||(o[6]=n=>e.databaseDialog.visible=n)},{default:a(()=>[l(D,{data:e.databaseDialog.data,size:"small"},{default:a(()=>[l(s,{"min-width":"130",property:"Name",label:"\u5E93\u540D"}),l(s,{"min-width":"90",property:"SizeOnDisk",label:"size"},{default:a(n=>[i(g(e.formatByteSize(n.row.SizeOnDisk)),1)]),_:1}),l(s,{"min-width":"80",property:"Empty",label:"\u662F\u5426\u4E3A\u7A7A"}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showDatabaseStats(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[ye]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(m,{type:"primary",onClick:w=>e.showCollections(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[Ee]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.databaseDialog.statsDialog.title,modelValue:e.databaseDialog.statsDialog.visible,"onUpdate:modelValue":o[5]||(o[5]=n=>e.databaseDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u5E93\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"db","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.db),1)]),_:1}),l(d,{label:"collections","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.collections),1)]),_:1}),l(d,{label:"objects","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.objects),1)]),_:1}),l(d,{label:"indexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.indexes),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"dataSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.dataSize)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"fsTotalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsTotalSize)),1)]),_:1}),l(d,{label:"fsUsedSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsUsedSize)),1)]),_:1}),l(d,{label:"indexSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.indexSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"600px",title:e.collectionsDialog.title,modelValue:e.collectionsDialog.visible,"onUpdate:modelValue":o[8]||(o[8]=n=>e.collectionsDialog.visible=n)},{default:a(()=>[j("div",null,[l(p,{onClick:e.showCreateCollectionDialog,type:"primary",icon:"plus",size:"small"},{default:a(()=>[Se]),_:1},8,["onClick"])]),l(D,{border:"",stripe:"",data:e.collectionsDialog.data,size:"small"},{default:a(()=>[l(s,{prop:"name",label:"\u540D\u79F0","show-overflow-tooltip":""}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showCollectionStats(n.row.name),plain:"",size:"small",underline:!1},{default:a(()=>[we]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(R,{onConfirm:w=>e.onDeleteCollection(n.row.name),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u96C6\u5408?"},{reference:a(()=>[l(m,{type:"danger",plain:"",size:"small",underline:!1},{default:a(()=>[ze]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.collectionsDialog.statsDialog.title,modelValue:e.collectionsDialog.statsDialog.visible,"onUpdate:modelValue":o[7]||(o[7]=n=>e.collectionsDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u96C6\u5408\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"ns","label-align":"right",span:2,align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.ns),1)]),_:1}),l(d,{label:"count","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.count),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"nindexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.nindexes),1)]),_:1}),l(d,{label:"size","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.size)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"freeStorageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.freeStorageSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"400px",title:"\u65B0\u5EFA\u96C6\u5408",modelValue:e.createCollectionDialog.visible,"onUpdate:modelValue":o[11]||(o[11]=n=>e.createCollectionDialog.visible=n),"destroy-on-close":!0},{footer:a(()=>[j("div",null,[l(p,{onClick:o[10]||(o[10]=n=>e.createCollectionDialog.visible=!1)},{default:a(()=>[Fe]),_:1}),l(p,{onClick:e.onCreateCollection,type:"primary"},{default:a(()=>[Be]),_:1},8,["onClick"])])]),default:a(()=>[l(Q,{model:e.createCollectionDialog.form,"label-width":"70px"},{default:a(()=>[l(K,{prop:"name",label:"\u96C6\u5408\u540D",required:""},{default:a(()=>[l(J,{modelValue:e.createCollectionDialog.form.name,"onUpdate:modelValue":o[9]||(o[9]=n=>e.createCollectionDialog.form.name=n),clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),l(W,{onValChange:e.valChange,projects:e.projects,title:e.mongoEditDialog.title,visible:e.mongoEditDialog.visible,"onUpdate:visible":o[12]||(o[12]=n=>e.mongoEditDialog.visible=n),mongo:e.mongoEditDialog.data,"onUpdate:mongo":o[13]||(o[13]=n=>e.mongoEditDialog.data=n)},null,8,["onValChange","projects","title","visible","mongo"])])}var Me=G(pe,[["render",Ve]]);export{Me as default}; diff --git a/server/static/static/assets/ProjectEnvSelect.1661345446364.js b/server/static/static/assets/ProjectEnvSelect.1661345446364.js new file mode 100644 index 00000000..2cc0c195 --- /dev/null +++ b/server/static/static/assets/ProjectEnvSelect.1661345446364.js @@ -0,0 +1 @@ +var P=Object.defineProperty,V=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var h=(o,e,n)=>e in o?P(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,j=(o,e)=>{for(var n in e||(e={}))B.call(e,n)&&h(o,n,e[n]);if(v)for(var n of v(e))$.call(e,n)&&h(o,n,e[n]);return o},_=(o,e)=>V(o,w(e));import{p as g}from"./api.16613454463644.js";import{A as S,r as F,o as A,t as N,_ as q,b as p,d as r,e as u,g as s,w as a,F as b,j as y,k as E,h as I,i as k,a3 as U}from"./index.1661345446364.js";const z=S({name:"ProjectEnvSelect",props:{visible:{type:Boolean},data:{type:Object},title:{type:String},machineId:{type:Number},isCommon:{type:Boolean}},setup(o,{emit:e}){const n=F({projects:[],envs:[],projectId:null,envId:null});A(async()=>{n.projects=await g.accountProjects.request(null)});const c=async l=>{e("update:projectId",l),e("changeProjectEnv",n.projectId,null),n.envId=null,n.envs=await g.projectEnvs.request({projectId:l})},d=l=>{e("update:envId",l),e("changeProjectEnv",n.projectId,l)};return _(j({},N(n)),{changeProject:c,changeEnv:d})}}),D={style:{float:"left"}},L={style:{float:"right",color:"#8492a6","font-size":"13px"}};function M(o,e,n,c,d,l){const i=p("el-option"),f=p("el-select"),m=p("el-form-item"),C=p("el-form");return r(),u("div",null,[s(C,{class:"search-form","label-position":"right",inline:!0},{default:a(()=>[s(m,{prop:"project",label:"\u9879\u76EE","label-width":"40px"},{default:a(()=>[s(f,{modelValue:o.projectId,"onUpdate:modelValue":e[0]||(e[0]=t=>o.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:o.changeProject,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.projects,t=>(r(),E(i,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),s(m,{prop:"env",label:"env","label-width":"33px"},{default:a(()=>[s(f,{style:{width:"80px"},modelValue:o.envId,"onUpdate:modelValue":e[1]||(e[1]=t=>o.envId=t),placeholder:"\u73AF\u5883",onChange:o.changeEnv,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.envs,t=>(r(),E(i,{key:t.id,label:t.name,value:t.id},{default:a(()=>[I("span",D,k(t.name),1),I("span",L,k(t.remark),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),U(o.$slots,"default")]),_:3})])}var H=q(z,[["render",M]]);export{H as P}; diff --git a/server/static/static/assets/ProjectList.1661345446364.js b/server/static/static/assets/ProjectList.1661345446364.js new file mode 100644 index 00000000..a13f14de --- /dev/null +++ b/server/static/static/assets/ProjectList.1661345446364.js @@ -0,0 +1 @@ +var L=Object.defineProperty,S=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var N=(e,l,d)=>l in e?L(e,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[l]=d,k=(e,l)=>{for(var d in l||(l={}))G.call(l,d)&&N(e,d,l[d]);if(U)for(var d of U(l))R.call(l,d)&&N(e,d,l[d]);return e},T=(e,l)=>S(e,_(l));import{p}from"./api.16613454463644.js";import{b as H}from"./api.16613454463642.js";import{n as B,b as J}from"./assert.1661345446364.js";import{_ as K,A as O,r as Q,o as W,t as X,b as i,C as Y,d as m,e as z,g as a,w as t,h as g,x as D,k as c,B as u,i as I,F as Z,j as x,E as y,G as ee}from"./index.1661345446364.js";import"./Api.1661345446364.js";const oe=O({name:"ProjectList",components:{},setup(){const e=Q({permissions:{saveProject:"project:save",delProject:"project:del",saveMember:"project:member:add",delMember:"project:member:del",saveEnv:"project:env:add"},query:{pageNum:1,pageSize:10,name:null},total:0,projects:[],btnLoading:!1,chooseId:null,chooseData:null,addProjectDialog:{title:"\u65B0\u589E\u9879\u76EE",visible:!1,form:{name:"",remark:""}},showEnvDialog:{visible:!1,envs:[],title:"",addVisible:!1,envForm:{name:"",remark:"",projectId:0}},showMemDialog:{visible:!1,chooseId:null,chooseData:null,query:{pageSize:8,pageNum:1,projectId:null},members:{list:[],total:null},title:"",addVisible:!1,memForm:{},accounts:[]}});W(()=>{l()});const l=async()=>{let o=await p.projects.request(e.query);e.projects=o.list,e.total=o.total},d=o=>{e.query.pageNum=o,l()},q=o=>{o?e.addProjectDialog.form=k({},o):e.addProjectDialog.form={},e.addProjectDialog.visible=!0},j=()=>{e.addProjectDialog.visible=!1,e.addProjectDialog.form={}},$=async()=>{const o=e.addProjectDialog.form;B(o.name,"\u9879\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A"),B(o.remark,"\u9879\u76EE\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"),await p.saveProject.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),l(),j()},s=async()=>{try{await ee.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u9879\u76EE?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await p.delProject.request({id:e.chooseId}),y.success("\u5220\u9664\u6210\u529F"),e.chooseData=null,e.chooseId=null,l()}catch{}},h=o=>{!o||(e.chooseId=o.id,e.chooseData=o)},M=async o=>{e.showMemDialog.query.projectId=o.id,await b(),e.showMemDialog.title=`${o.name}\u7684\u6210\u5458\u4FE1\u606F`,e.showMemDialog.visible=!0},n=o=>{!o||(e.showMemDialog.chooseData=o,e.showMemDialog.chooseId=o.id)},F=async()=>{J(e.showMemDialog.chooseData,"\u8BF7\u9009\u9009\u62E9\u6210\u5458"),await p.deleteProjectMem.request(e.showMemDialog.chooseData),y.success("\u79FB\u9664\u6210\u529F"),b()},b=async()=>{const o=await p.projectMems.request(e.showMemDialog.query);e.showMemDialog.members.list=o.list,e.showMemDialog.members.total=o.total},C=async o=>{e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.id}),e.showEnvDialog.title=`${o.name}\u7684\u73AF\u5883\u4FE1\u606F`,e.showEnvDialog.visible=!0},V=()=>{e.showMemDialog.addVisible=!0},f=async()=>{const o=e.showMemDialog.memForm;o.projectId=e.chooseData.id,B(o.accountId,"\u8BF7\u5148\u9009\u62E9\u8D26\u53F7"),await p.saveProjectMem.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),b(),v()},v=()=>{e.showMemDialog.memForm={},e.showMemDialog.addVisible=!1,e.showMemDialog.chooseData=null,e.showMemDialog.chooseId=null},w=o=>{H.list.request({username:o}).then(E=>{e.showMemDialog.accounts=E.list})},A=()=>{e.showEnvDialog.addVisible=!0},P=async()=>{const o=e.showEnvDialog.envForm;o.projectId=e.chooseData.id,await p.saveProjectEnv.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.projectId}),r()},r=()=>{e.showEnvDialog.envForm={},e.showEnvDialog.addVisible=!1};return T(k({},X(e)),{search:l,handlePageChange:d,choose:h,showAddProjectDialog:q,addProject:$,delProject:s,cancelAddProject:j,showMembers:M,setMemebers:b,showEnv:C,showAddMemberDialog:V,addMember:f,chooseMember:n,deleteMember:F,cancelAddMember:v,showAddEnvDialog:A,addEnv:P,cancelAddEnv:r,getAccount:w})}}),le={class:"project-list"},ae=u("\u6DFB\u52A0"),te=u("\u7F16\u8F91"),se=u("\u6210\u5458\u7BA1\u7406"),ue=u("\u73AF\u5883\u7BA1\u7406"),ne=u("\u5220\u9664"),de={style:{float:"right"}},ie=g("i",null,null,-1),re={class:"dialog-footer"},me=u("\u53D6 \u6D88"),pe=u("\u786E \u5B9A"),ce={class:"toolbar"},ge=u("\u6DFB\u52A0"),De={class:"dialog-footer"},he=u("\u53D6 \u6D88"),be=u("\u786E \u5B9A"),fe={class:"toolbar"},we=u("\u6DFB\u52A0"),ve=u("\u79FB\u9664"),Fe=g("i",null,null,-1),Ee={class:"dialog-footer"},ye=u("\u53D6 \u6D88"),Me=u("\u786E \u5B9A");function je(e,l,d,q,j,$){const s=i("el-button"),h=i("el-input"),M=i("el-radio"),n=i("el-table-column"),F=i("el-table"),b=i("el-pagination"),C=i("el-row"),V=i("el-card"),f=i("el-form-item"),v=i("el-form"),w=i("el-dialog"),A=i("el-option"),P=i("el-select"),r=Y("auth");return m(),z("div",le,[a(V,null,{default:t(()=>[g("div",null,[D((m(),c(s,{onClick:e.showAddProjectDialog,type:"primary",icon:"plus"},{default:t(()=>[ae]),_:1},8,["onClick"])),[[r,e.permissions.saveProject]]),D((m(),c(s,{onClick:l[0]||(l[0]=o=>e.showAddProjectDialog(e.chooseData)),disabled:e.chooseId==null,type:"primary",icon:"edit"},{default:t(()=>[te]),_:1},8,["disabled"])),[[r,e.permissions.saveProject]]),a(s,{onClick:l[1]||(l[1]=o=>e.showMembers(e.chooseData)),disabled:e.chooseId==null,type:"success",icon:"user"},{default:t(()=>[se]),_:1},8,["disabled"]),a(s,{onClick:l[2]||(l[2]=o=>e.showEnv(e.chooseData)),disabled:e.chooseId==null,type:"info",icon:"setting"},{default:t(()=>[ue]),_:1},8,["disabled"]),D((m(),c(s,{onClick:e.delProject,disabled:e.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ne]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delProject]]),g("div",de,[a(h,{class:"mr2",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\uFF01",style:{width:"200px"},modelValue:e.query.name,"onUpdate:modelValue":l[3]||(l[3]=o=>e.query.name=o),onClear:e.search,clearable:""},null,8,["modelValue","onClear"]),a(s,{onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])])]),a(F,{data:e.projects,onCurrentChange:e.choose,ref:"table",style:{width:"100%"}},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"55px"},{default:t(o=>[a(M,{modelValue:e.chooseId,"onUpdate:modelValue":l[4]||(l[4]=E=>e.chooseId=E),label:o.row.id},{default:t(()=>[ie]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{prop:"name",label:"\u9879\u76EE\u540D"}),a(n,{prop:"remark",label:"\u63CF\u8FF0","min-width":"180px","show-overflow-tooltip":""}),a(n,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{prop:"creator",label:"\u521B\u5EFA\u8005"})]),_:1},8,["data","onCurrentChange"]),a(C,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:t(()=>[a(b,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":l[5]||(l[5]=o=>e.query.pageNum=o),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),a(w,{width:"400px",title:"\u9879\u76EE\u7F16\u8F91","before-close":e.cancelAddProject,modelValue:e.addProjectDialog.visible,"onUpdate:modelValue":l[9]||(l[9]=o=>e.addProjectDialog.visible=o)},{footer:t(()=>[g("div",re,[a(s,{onClick:l[8]||(l[8]=o=>e.cancelAddProject())},{default:t(()=>[me]),_:1}),a(s,{onClick:e.addProject,type:"primary"},{default:t(()=>[pe]),_:1},8,["onClick"])])]),default:t(()=>[a(v,{model:e.addProjectDialog.form,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u9879\u76EE\u540D:",required:""},{default:t(()=>[a(h,{disabled:!!e.addProjectDialog.form.id,modelValue:e.addProjectDialog.form.name,"onUpdate:modelValue":l[6]||(l[6]=o=>e.addProjectDialog.form.name=o),"auto-complete":"off"},null,8,["disabled","modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.addProjectDialog.form.remark,"onUpdate:modelValue":l[7]||(l[7]=o=>e.addProjectDialog.form.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"]),a(w,{width:"500px",title:e.showEnvDialog.title,modelValue:e.showEnvDialog.visible,"onUpdate:modelValue":l[14]||(l[14]=o=>e.showEnvDialog.visible=o)},{default:t(()=>[g("div",ce,[D((m(),c(s,{onClick:e.showAddEnvDialog,type:"primary",icon:"plus"},{default:t(()=>[ge]),_:1},8,["onClick"])),[[r,e.permissions.saveMember]])]),a(F,{border:"",data:e.showEnvDialog.envs},{default:t(()=>[a(n,{property:"name",label:"\u73AF\u5883\u540D",width:"125"}),a(n,{property:"remark",label:"\u63CF\u8FF0",width:"125"}),a(n,{property:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1})]),_:1},8,["data"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u73AF\u5883","before-close":e.cancelAddEnv,modelValue:e.showEnvDialog.addVisible,"onUpdate:modelValue":l[13]||(l[13]=o=>e.showEnvDialog.addVisible=o)},{footer:t(()=>[g("div",De,[a(s,{onClick:l[12]||(l[12]=o=>e.cancelAddEnv())},{default:t(()=>[he]),_:1}),D((m(),c(s,{onClick:e.addEnv,type:"primary",loading:e.btnLoading},{default:t(()=>[be]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveEnv]])])]),default:t(()=>[a(v,{model:e.showEnvDialog.envForm,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u73AF\u5883\u540D:",required:""},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.name,"onUpdate:modelValue":l[10]||(l[10]=o=>e.showEnvDialog.envForm.name=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.remark,"onUpdate:modelValue":l[11]||(l[11]=o=>e.showEnvDialog.envForm.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"]),a(w,{width:"500px",title:e.showMemDialog.title,modelValue:e.showMemDialog.visible,"onUpdate:modelValue":l[21]||(l[21]=o=>e.showMemDialog.visible=o)},{default:t(()=>[g("div",fe,[D((m(),c(s,{onClick:l[15]||(l[15]=o=>e.showAddMemberDialog()),type:"primary",icon:"plus"},{default:t(()=>[we]),_:1})),[[r,e.permissions.saveMember]]),D((m(),c(s,{onClick:e.deleteMember,disabled:e.showMemDialog.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ve]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delMember]])]),a(F,{onCurrentChange:e.chooseMember,border:"",data:e.showMemDialog.members.list},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"50px"},{default:t(o=>[a(M,{modelValue:e.showMemDialog.chooseId,"onUpdate:modelValue":l[16]||(l[16]=E=>e.showMemDialog.chooseId=E),label:o.row.id},{default:t(()=>[Fe]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{property:"username",label:"\u8D26\u53F7",width:"125"}),a(n,{property:"createTime",label:"\u52A0\u5165\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{property:"creator",label:"\u5206\u914D\u8005",width:"125"})]),_:1},8,["onCurrentChange","data"]),a(b,{onCurrentChange:e.setMemebers,style:{"text-align":"center"},background:"",layout:"prev, pager, next, total, jumper",total:e.showMemDialog.members.total,"current-page":e.showMemDialog.query.pageNum,"onUpdate:current-page":l[17]||(l[17]=o=>e.showMemDialog.query.pageNum=o),"page-size":e.showMemDialog.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u6210\u5458","before-close":e.cancelAddMember,modelValue:e.showMemDialog.addVisible,"onUpdate:modelValue":l[20]||(l[20]=o=>e.showMemDialog.addVisible=o)},{footer:t(()=>[g("div",Ee,[a(s,{onClick:l[19]||(l[19]=o=>e.cancelAddMember())},{default:t(()=>[ye]),_:1}),D((m(),c(s,{onClick:e.addMember,type:"primary",loading:e.btnLoading},{default:t(()=>[Me]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveMember]])])]),default:t(()=>[a(v,{model:e.showMemDialog.memForm,"label-width":"70px"},{default:t(()=>[a(f,{label:"\u8D26\u53F7:"},{default:t(()=>[a(P,{style:{width:"100%"},remote:"","remote-method":e.getAccount,modelValue:e.showMemDialog.memForm.accountId,"onUpdate:modelValue":l[18]||(l[18]=o=>e.showMemDialog.memForm.accountId=o),filterable:"",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7\u6A21\u7CCA\u641C\u7D22\u5E76\u9009\u62E9"},{default:t(()=>[(m(!0),z(Z,null,x(e.showMemDialog.accounts,o=>(m(),c(A,{key:o.id,label:o.username,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["remote-method","modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"])])}var Ie=K(oe,[["render",je]]);export{Ie as default}; diff --git a/server/static/static/assets/SqlExecBox.1661345446364.css b/server/static/static/assets/SqlExecBox.1661345446364.css new file mode 100644 index 00000000..0ff166b3 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.css @@ -0,0 +1 @@ +.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::selection,.cm-s-base16-light .CodeMirror-line>span::selection,.cm-s-base16-light .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::-moz-selection,.cm-s-base16-light .CodeMirror-line>span::-moz-selection,.cm-s-base16-light .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-gutters{background:#f5f5f5;border-right:0px}.cm-s-base16-light .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light .CodeMirror-guttermarker-subtle,.cm-s-base16-light .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light span.cm-comment{color:#8f5536}.cm-s-base16-light span.cm-atom,.cm-s-base16-light span.cm-number{color:#aa759f}.cm-s-base16-light span.cm-property,.cm-s-base16-light span.cm-attribute{color:#90a959}.cm-s-base16-light span.cm-keyword{color:#ac4142}.cm-s-base16-light span.cm-string{color:#f4bf75}.cm-s-base16-light span.cm-variable{color:#90a959}.cm-s-base16-light span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light span.cm-def{color:#d28445}.cm-s-base16-light span.cm-bracket{color:#202020}.cm-s-base16-light span.cm-tag{color:#ac4142}.cm-s-base16-light span.cm-link{color:#aa759f}.cm-s-base16-light span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light .CodeMirror-activeline-background{background:#DDDCDC}.cm-s-base16-light .CodeMirror-matchingbracket{color:#f5f5f5!important;background-color:#6a9fb5!important}.codesql{font-size:9pt;font-weight:600} diff --git a/server/static/static/assets/SqlExecBox.1661345446364.js b/server/static/static/assets/SqlExecBox.1661345446364.js new file mode 100644 index 00000000..0ad57e21 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.js @@ -0,0 +1,21 @@ +var TT=Object.defineProperty,RT=Object.defineProperties;var AT=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var tT=Object.prototype.hasOwnProperty,ST=Object.prototype.propertyIsEnumerable;var fe=(R,e,S)=>e in R?TT(R,e,{enumerable:!0,configurable:!0,writable:!0,value:S}):R[e]=S,Ue=(R,e)=>{for(var S in e||(e={}))tT.call(e,S)&&fe(R,S,e[S]);if(Me)for(var S of Me(e))ST.call(e,S)&&fe(R,S,e[S]);return R},le=(R,e)=>RT(R,AT(e));import{A as OT,Z as rT,$ as IT,a0 as NT,q as nT,r as _T,t as LT,E as gE,m as CT,_ as oT,b as OE,d as aT,e as iT,g as RE,w as rE,h as PT,B as Xe,a1 as uT,a2 as DT}from"./index.1661345446364.js";import{A as k}from"./Api.1661345446364.js";import{c as sT}from"./codemirror.1661345446364.js";const MT={dbs:k.create("/dbs","get"),saveDb:k.create("/dbs","post"),getAllDatabase:k.create("/dbs/databases","post"),getDbPwd:k.create("/dbs/{id}/pwd","get"),deleteDb:k.create("/dbs/{id}","delete"),dumpDb:k.create("/dbs/{id}/dump","post"),tableInfos:k.create("/dbs/{id}/t-infos","get"),tableIndex:k.create("/dbs/{id}/t-index","get"),tableDdl:k.create("/dbs/{id}/t-create-ddl","get"),tableMetadata:k.create("/dbs/{id}/t-metadata","get"),columnMetadata:k.create("/dbs/{id}/c-metadata","get"),hintTables:k.create("/dbs/{id}/hint-tables","get"),sqlExec:k.create("/dbs/{id}/exec-sql","post"),saveSql:k.create("/dbs/{id}/sql","post"),getSql:k.create("/dbs/{id}/sql","get"),getSqlNames:k.create("/dbs/{id}/sql-names","get"),deleteDbSql:k.create("/dbs/{id}/sql","delete"),getSqlExecs:k.create("/dbs/{dbId}/sql-execs","get")};var ge={},$={},wE={exports:{}},J={exports:{}},SE={};Object.defineProperty(SE,"__esModule",{value:!0});SE.indentString=fT;SE.isTabularStyle=UT;function fT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"?" ".repeat(10):R.useTabs?" ":" ".repeat(R.tabWidth)}function UT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"}var kE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function S(c,C){if(!(c instanceof C))throw new TypeError("Cannot call a class as a function")}function r(c,C){for(var G=0;G0?{type:r.NodeType.statement,children:a,hasSemicolon:!1}:void 0;a.push(this.expression())}}},{key:"expression",value:function(){return this.limitClause()||this.clause()||this.setOperation()||this.functionCall()||this.arraySubscript()||this.parenthesis()||this.betweenPredicate()||this.allColumnsAsterisk()||this.nextTokenNode()}},{key:"clause",value:function(){if(this.look().type===S.TokenType.RESERVED_COMMAND){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.clause,nameToken:a,children:o}}}},{key:"setOperation",value:function(){if(this.look().type===S.TokenType.RESERVED_SET_OPERATION){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.set_operation,nameToken:a,children:o}}}},{key:"functionCall",value:function(){if(this.look().type===S.TokenType.RESERVED_FUNCTION_NAME&&this.look(1).text==="(")return{type:r.NodeType.function_call,nameToken:this.next(),parenthesis:this.parenthesis()}}},{key:"arraySubscript",value:function(){if((this.look().type===S.TokenType.RESERVED_KEYWORD||this.look().type===S.TokenType.IDENTIFIER)&&this.look(1).text==="[")return{type:r.NodeType.array_subscript,arrayToken:this.next(),parenthesis:this.parenthesis()}}},{key:"parenthesis",value:function(){if(this.look().type===S.TokenType.OPEN_PAREN){for(var a=[],o=this.next(),I=o.text,M="";this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.EOF;)a.push(this.expression());return this.look().type===S.TokenType.CLOSE_PAREN&&(M=this.next().text),{type:r.NodeType.parenthesis,children:a,openParen:I,closeParen:M}}}},{key:"betweenPredicate",value:function(){if(S.isToken.BETWEEN(this.look())&&S.isToken.AND(this.look(2)))return{type:r.NodeType.between_predicate,betweenToken:this.next(),expr1:this.next(),andToken:this.next(),expr2:this.next()}}},{key:"limitClause",value:function(){if(S.isToken.LIMIT(this.look())){var a=this.next(),o=this.expressionsUntilClauseEnd(function(M){return M.type===S.TokenType.COMMA});if(this.look().type===S.TokenType.COMMA){this.next();var I=this.expressionsUntilClauseEnd();return{type:r.NodeType.limit_clause,limitToken:a,offset:o,count:I}}else return{type:r.NodeType.limit_clause,limitToken:a,count:o}}}},{key:"allColumnsAsterisk",value:function(){if(this.look().text==="*"&&S.isToken.SELECT(this.look(-1)))return this.next(),{type:r.NodeType.all_columns_asterisk}}},{key:"expressionsUntilClauseEnd",value:function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},o=[];this.look().type!==S.TokenType.RESERVED_COMMAND&&this.look().type!==S.TokenType.RESERVED_SET_OPERATION&&this.look().type!==S.TokenType.EOF&&this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.DELIMITER&&!a(this.look());)o.push(this.expression());return o}},{key:"look",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.tokens[this.index+a]||S.EOF_TOKEN}},{key:"next",value:function(){return this.tokens[this.index++]||S.EOF_TOKEN}},{key:"nextTokenNode",value:function(){return{type:r.NodeType.token,token:this.next()}}}]),G}();e.default=C,R.exports=e.default})(xE,xE.exports);var QE={exports:{}},h={};Object.defineProperty(h,"__esModule",{value:!0});h.sum=h.sortByLengthDesc=h.maxLength=h.last=h.flatKeywordList=h.equalizeWhitespace=h.dedupe=void 0;function yT(R,e){var S=typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(!S){if(Array.isArray(R)||(S=Ke(R))||e&&R&&typeof R.length=="number"){S&&(R=S);var r=0,f=function(){};return{s:f,n:function(){return r>=R.length?{done:!0}:{done:!1,value:R[r++]}},e:function(G){throw G},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,U=!1,c;return{s:function(){S=S.call(R)},n:function(){var G=S.next();return p=G.done,G},e:function(G){U=!0,c=G},f:function(){try{!p&&S.return!=null&&S.return()}finally{if(U)throw c}}}}function HT(R){return YT(R)||FT(R)||Ke(R)||BT()}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ke(R,e){if(!!R){if(typeof R=="string")return ZE(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return ZE(R,e)}}function FT(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function YT(R){if(Array.isArray(R))return ZE(R)}function ZE(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);Sd.length)&&(H=d.length);for(var i=0,u=new Array(H);iL.length)&&(a=L.length);for(var o=0,I=new Array(a);o=o.length?{done:!0}:{done:!1,value:o[y++]}},e:function(s){throw s},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,i=!1,u;return{s:function(){M=M.call(o)},n:function(){var s=M.next();return H=s.done,s},e:function(s){i=!0,u=s},f:function(){try{!H&&M.return!=null&&M.return()}finally{if(i)throw u}}}}function U(o,I){if(!!o){if(typeof o=="string")return c(o,I);var M=Object.prototype.toString.call(o).slice(8,-1);if(M==="Object"&&o.constructor&&(M=o.constructor.name),M==="Map"||M==="Set")return Array.from(o);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(o,I)}}function c(o,I){(I==null||I>o.length)&&(I=o.length);for(var M=0,y=new Array(I);Mthis.expressionWidth)return y}}catch(u){d.e(u)}finally{d.f()}return y}},{key:"betweenWidth",value:function(M){return(0,S.sum)([M.betweenToken,M.expr1,M.andToken,M.expr2].map(function(y){return y.text.length}))}},{key:"isForbiddenToken",value:function(M){return M.type===r.TokenType.RESERVED_LOGICAL_OPERATOR||M.type===r.TokenType.LINE_COMMENT||M.type===r.TokenType.BLOCK_COMMENT||r.isToken.CASE(M)}}]),o}();e.default=a,R.exports=e.default})($E,$E.exports);var ue={};(function(R){Object.defineProperty(R,"__esModule",{value:!0}),R.default=R.WS=void 0;var e=h;function S(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function r(L,a){for(var o=0;o0)switch((0,e.last)(this.items)){case U.NEWLINE:this.items.pop(),this.items.push(o);break;case U.MANDATORY_NEWLINE:break;default:this.items.push(o);break}}},{key:"addIndentation",value:function(){for(var o=0;oI.length)&&(M=I.length);for(var y=0,d=new Array(M);y=10&&I.includes(" ")){var d=I.split(" "),H=p(d);I=H[0],y=H.slice(1)}return M==="tabularLeft"?I=I.padEnd(9," "):I=I.padStart(9," "),I+[""].concat(S(y)).join(" ")}function o(I){return I.type===e.TokenType.RESERVED_LOGICAL_OPERATOR||I.type===e.TokenType.RESERVED_DEPENDENT_CLAUSE||I.type===e.TokenType.RESERVED_COMMAND||I.type===e.TokenType.RESERVED_SET_OPERATION||I.type===e.TokenType.RESERVED_JOIN}})(ke);(function(R,e){function S(i){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},S(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h,f=SE,p=X,U=z,c=o($E.exports),C=ue,G=a(ke);function L(i){if(typeof WeakMap!="function")return null;var u=new WeakMap,n=new WeakMap;return(L=function(F){return F?n:u})(i)}function a(i,u){if(!u&&i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var n=L(u);if(n&&n.has(i))return n.get(i);var s={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in i)if(v!=="default"&&Object.prototype.hasOwnProperty.call(i,v)){var P=F?Object.getOwnPropertyDescriptor(i,v):null;P&&(P.get||P.set)?Object.defineProperty(s,v,P):s[v]=i[v]}return s.default=i,n&&n.set(i,s),s}function o(i){return i&&i.__esModule?i:{default:i}}function I(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function M(i,u){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:this.inline;return new i({cfg:this.cfg,params:this.params,layout:this.layout,inline:s}).format(n)}},{key:"formatToken",value:function(n){switch(n.type){case p.TokenType.LINE_COMMENT:return this.formatLineComment(n);case p.TokenType.BLOCK_COMMENT:return this.formatBlockComment(n);case p.TokenType.RESERVED_JOIN:return this.formatJoin(n);case p.TokenType.RESERVED_DEPENDENT_CLAUSE:return this.formatDependentClause(n);case p.TokenType.RESERVED_LOGICAL_OPERATOR:return this.formatLogicalOperator(n);case p.TokenType.RESERVED_KEYWORD:case p.TokenType.RESERVED_FUNCTION_NAME:case p.TokenType.RESERVED_PHRASE:return this.formatKeyword(n);case p.TokenType.RESERVED_CASE_START:return this.formatCaseStart(n);case p.TokenType.RESERVED_CASE_END:return this.formatCaseEnd(n);case p.TokenType.COMMA:return this.formatComma(n);case p.TokenType.OPERATOR:return this.formatOperator(n);case p.TokenType.IDENTIFIER:case p.TokenType.QUOTED_IDENTIFIER:case p.TokenType.STRING:case p.TokenType.NUMBER:case p.TokenType.VARIABLE:case p.TokenType.NAMED_PARAMETER:case p.TokenType.QUOTED_PARAMETER:case p.TokenType.NUMBERED_PARAMETER:case p.TokenType.POSITIONAL_PARAMETER:return this.formatLiteral(n);default:throw new Error("Unexpected token type: ".concat(n.type))}}},{key:"formatLiteral",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLineComment",value:function(n){/\n/.test(n.precedingWhitespace||"")?this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT):this.layout.add(C.WS.NO_NEWLINE,C.WS.SPACE,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT)}},{key:"formatBlockComment",value:function(n){var s=this;this.splitBlockComment(n.text).forEach(function(F){s.layout.add(C.WS.NEWLINE,C.WS.INDENT,F)}),this.layout.add(C.WS.NEWLINE,C.WS.INDENT)}},{key:"splitBlockComment",value:function(n){return n.split(/\n/).map(function(s){return/^\s*\*/.test(s)?" "+s.replace(/^\s*/,""):s.replace(/^\s*/,"")})}},{key:"formatJoin",value:function(n){(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatKeyword",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatDependentClause",value:function(n){this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatOperator",value:function(n){if(n.text===":"){this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE);return}else if(n.text==="."||n.text==="::"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}else if(n.text==="@"&&this.cfg.language==="plsql"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}this.cfg.denseOperators?this.layout.add(C.WS.NO_SPACE,this.show(n)):this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLogicalOperator",value:function(n){this.cfg.logicalOperatorNewline==="before"?(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE):this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseStart",value:function(n){this.layout.indentation.increaseBlockLevel(),this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseEnd",value:function(n){this.formatMultilineBlockEnd(n)}},{key:"formatMultilineBlockEnd",value:function(n){this.layout.indentation.decreaseBlockLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatComma",value:function(n){this.inline?this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE):this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"show",value:function(n){return(0,G.isTabularToken)(n)?(0,G.default)(this.showToken(n),this.cfg.indentStyle):this.showToken(n)}},{key:"showNonTabular",value:function(n){return this.showToken(n)}},{key:"showToken",value:function(n){if((0,p.isReserved)(n))switch(this.cfg.keywordCase){case"preserve":return(0,r.equalizeWhitespace)(n.raw);case"upper":return n.text;case"lower":return n.text.toLowerCase()}else return(0,p.isParameter)(n)?this.params.get(n):n.text}}]),i}();e.default=H,R.exports=e.default})(qE,qE.exports);var zE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=h;function r(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function f(L,a){for(var o=0;o0&&(0,S.last)(this.indentTypes)===c&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0;){var o=this.indentTypes.pop();if(o!==c)break}}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}]),L}();e.default=G,R.exports=e.default})(zE,zE.exports);(function(R,e){function S(u){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=SE,f=I(kE.exports),p=I(xE.exports),U=I(QE.exports),c=I(jE.exports),C=I(qE.exports),G=o(ue),L=I(zE.exports);function a(u){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(a=function(v){return v?s:n})(u)}function o(u,n){if(!n&&u&&u.__esModule)return u;if(u===null||S(u)!=="object"&&typeof u!="function")return{default:u};var s=a(n);if(s&&s.has(u))return s.get(u);var F={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in u)if(P!=="default"&&Object.prototype.hasOwnProperty.call(u,P)){var t=v?Object.getOwnPropertyDescriptor(u,P):null;t&&(t.get||t.set)?Object.defineProperty(F,P,t):F[P]=u[P]}return F.default=u,s&&s.set(u,F),F}function I(u){return u&&u.__esModule?u:{default:u}}function M(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function y(u,n){for(var s=0;sR.length)&&(e=R.length);for(var S=0,r=new Array(e);S1&&arguments[1]!==void 0?arguments[1]:{};if(e.length===0)return/^\b$/;var r=ER(S),f=(0,Je.sortByLengthDesc)(e).map(w.toCaseInsensitivePattern).join("|").replace(/ /g,"\\s+");return new RegExp("(?:".concat(f,")").concat(r,"\\b"),"iuy")};g.reservedWord=eR;var TR=function(e,S){if(!!e.length){var r=e.map(w.escapeRegExp).join("|");return(0,w.patternToRegex)("(?:".concat(r,")(?:").concat(S,")"))}};g.parameter=TR;var RR=function(){var e={"<":">","[":"]","(":")","{":"}"},S="{left}(?:(?!{right}').)*?{right}",r=Object.entries(e).map(function(c){var C=xT(c,2),G=C[0],L=C[1];return S.replace(/{left}/g,(0,w.escapeRegExp)(G)).replace(/{right}/g,(0,w.escapeRegExp)(L))}),f=(0,w.escapeRegExp)(Object.keys(e).join("")),p=String.raw(ce||(ce=EE(["(?[^s","])(?:(?!k').)*?k"],["(?[^\\s","])(?:(?!\\k').)*?\\k"])),f),U="[Qq]'(?:".concat(p,"|").concat(r.join("|"),")'");return U},ee={"``":"(?:`[^`]*(?:$|`))+","[]":String.raw(Ge||(Ge=EE(["(?:[[^]]*(?:$|]))(?:][^]]*(?:$|]))*"],["(?:\\[[^\\]]*(?:$|\\]))(?:\\][^\\]]*(?:$|\\]))*"]))),'""':String.raw(pe||(pe=EE(['(?:"[^"\\]*(?:\\.[^"\\]*)*(?:"|$))+'],['(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*(?:"|$))+']))),"''":String.raw(de||(de=EE(["(?:'[^'\\]*(?:\\.[^'\\]*)*(?:'|$))+"],["(?:'[^'\\\\]*(?:\\\\.[^'\\\\]*)*(?:'|$))+"]))),$$:String.raw(ye||(ye=EE(["(?$w*$)[sS]*?(?:k|$)"],["(?\\$\\w*\\$)[\\s\\S]*?(?:\\k|$)"]))),"'''..'''":String.raw(He||(He=EE(["'''[^\\]*?(?:\\.[^\\]*?)*?(?:'''|$)"],["'''[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:'''|$)"]))),'""".."""':String.raw(Be||(Be=EE(['"""[^\\]*?(?:\\.[^\\]*?)*?(?:"""|$)'],['"""[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:"""|$)']))),"{}":String.raw(Fe||(Fe=EE(["(?:{[^}]*(?:$|}))"],["(?:\\{[^\\}]*(?:$|\\}))"]))),"q''":RR()};g.quotePatterns=ee;var Qe=function(e){return typeof e=="string"?ee[e]:(0,w.prefixesPattern)(e)+ee[e.quote]},AR=function(e){return(0,w.patternToRegex)(e.map(function(S){return"regex"in S?S.regex:Qe(S)}).join("|"))};g.variable=AR;var Ze=function(e){return e.map(Qe).join("|")};g.stringPattern=Ze;var tR=function(e){return(0,w.patternToRegex)(Ze(e))};g.string=tR;var SR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,w.patternToRegex)(je(e))};g.identifier=SR;var je=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=e.first,r=e.rest,f=e.dashes,p=e.allowFirstCharNumber,U="\\p{Alphabetic}\\p{Mark}_",c="\\p{Decimal_Number}",C=(0,w.escapeRegExp)(S!=null?S:""),G=(0,w.escapeRegExp)(r!=null?r:""),L=p?"[".concat(U).concat(c).concat(C,"][").concat(U).concat(c).concat(G,"]*"):"[".concat(U).concat(C,"][").concat(U).concat(c).concat(G,"]*");return f?(0,w.withDashes)(L):L};g.identifierPattern=je;var Te={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=X,r=x;function f(a,o){var I=Object.keys(a);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(a);o&&(M=M.filter(function(y){return Object.getOwnPropertyDescriptor(a,y).enumerable})),I.push.apply(I,M)}return I}function p(a){for(var o=1;oN.length)&&(E=N.length);for(var T=0,O=new Array(E);T<=.:$@#?~![]{}",["<>","<=",">=","!="].concat(y((m=T.operators)!==null&&m!==void 0?m:[])))}),V))}},{key:"buildParamRules",value:function(T,O){var D,l,B,Y,m,V={named:(O==null?void 0:O.named)||((D=T.paramTypes)===null||D===void 0?void 0:D.named)||[],quoted:(O==null?void 0:O.quoted)||((l=T.paramTypes)===null||l===void 0?void 0:l.quoted)||[],numbered:(O==null?void 0:O.numbered)||((B=T.paramTypes)===null||B===void 0?void 0:B.numbered)||[],positional:typeof(O==null?void 0:O.positional)=="boolean"?O.positional:(Y=T.paramTypes)===null||Y===void 0?void 0:Y.positional};return this.validRules((m={},A(m,r.TokenType.NAMED_PARAMETER,{regex:f.parameter(V.named,f.identifierPattern(T.paramChars||T.identChars)),key:function(b){return b.slice(1)}}),A(m,r.TokenType.QUOTED_PARAMETER,{regex:f.parameter(V.quoted,f.stringPattern(T.identTypes)),key:function(b){return function(TE){var XE=TE.tokenKey,se=TE.quoteChar;return XE.replace(new RegExp((0,U.escapeRegExp)("\\"+se),"gu"),se)}({tokenKey:b.slice(2,-1),quoteChar:b.slice(-1)})}}),A(m,r.TokenType.NUMBERED_PARAMETER,{regex:f.parameter(V.numbered,"[0-9]+"),key:function(b){return b.slice(1)}}),A(m,r.TokenType.POSITIONAL_PARAMETER,{regex:V.positional?new RegExp("[?]","y"):void 0}),m))}},{key:"validRules",value:function(T){return Object.fromEntries(Object.entries(T).filter(function(O){var D=a(O,2);D[0];var l=D[1];return l.regex}))}}]),N}();e.default=_,R.exports=e.default})(Q,Q.exports);var K={};Object.defineProperty(K,"__esModule",{value:!0});K.expandSinglePhrase=K.expandPhrases=void 0;function OR(R){return IR(R)||$e(R)||qe(R)||rR()}function rR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(R){if(Array.isArray(R))return R}function NR(R){return _R(R)||$e(R)||qe(R)||nR()}function nR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(R,e){if(!!R){if(typeof R=="string")return Re(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return Re(R,e)}}function $e(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function _R(R){if(Array.isArray(R))return Re(R)}function Re(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);S>","<<","||"]);function N(l){return E(T(l))}function E(l){var B=p.EOF_TOKEN;return l.map(function(Y){return Y.text==="OFFSET"&&B.text==="["?(B=Y,a(a({},Y),{},{type:p.TokenType.RESERVED_FUNCTION_NAME})):(B=Y,Y)})}function T(l){for(var B=[],Y=0;Y"?Y--:V.text===">>"&&(Y-=2),Y===0)return m}return l.length-1}R.exports=e.default})(wE,wE.exports);var Ae={exports:{}},LE={};Object.defineProperty(LE,"__esModule",{value:!0});LE.functions=void 0;var DR=h,sR=(0,DR.flatKeywordList)({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","RATIO_TO_REPORT"],cast:["CAST"]});LE.functions=sR;var CE={};Object.defineProperty(CE,"__esModule",{value:!0});CE.keywords=void 0;var MR=h,fR=(0,MR.flatKeywordList)({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]});CE.keywords=fR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=LE,c=CE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","\xAC<","!>","!<","||"]),R.exports=e.default})(Ae,Ae.exports);var te={exports:{}},oE={};Object.defineProperty(oE,"__esModule",{value:!0});oE.functions=void 0;var UR=h,lR=(0,UR.flatKeywordList)({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]});oE.functions=lR;var aE={};Object.defineProperty(aE,"__esModule",{value:!0});aE.keywords=void 0;var cR=h,GR=(0,cR.flatKeywordList)({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]});aE.keywords=GR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=oE,c=aE;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A","==","||"]),R.exports=e.default})(te,te.exports);var Se={exports:{}},iE={};Object.defineProperty(iE,"__esModule",{value:!0});iE.keywords=void 0;var pR=h,dR=(0,pR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]});iE.keywords=dR;var PE={};Object.defineProperty(PE,"__esModule",{value:!0});PE.functions=void 0;var yR=h,HR=(0,yR.flatKeywordList)({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]});PE.functions=HR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=iE,C=PE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Se,Se.exports);var Oe={exports:{}},uE={};Object.defineProperty(uE,"__esModule",{value:!0});uE.keywords=void 0;var BR=h,FR=(0,BR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]});uE.keywords=FR;var DE={};Object.defineProperty(DE,"__esModule",{value:!0});DE.functions=void 0;var YR=h,vR=(0,YR.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});DE.functions=vR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=uE,C=DE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||","->","->>"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Oe,Oe.exports);var re={exports:{}},sE={};Object.defineProperty(sE,"__esModule",{value:!0});sE.functions=void 0;var hR=h,VR=(0,hR.flatKeywordList)({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]});sE.functions=VR;var ME={};Object.defineProperty(ME,"__esModule",{value:!0});ME.keywords=void 0;var mR=h,WR=(0,mR.flatKeywordList)({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]});ME.keywords=WR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=sE,c=ME;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A>","<<","=>"]);function N(E){var T=U.EOF_TOKEN;return E.map(function(O){return U.isToken.SET(O)&&U.isToken.BY(T)?a(a({},O),{},{type:U.TokenType.RESERVED_KEYWORD}):((0,U.isReserved)(O)&&(T=O),O)})}R.exports=e.default})(Ie,Ie.exports);var Ne={exports:{}},lE={};Object.defineProperty(lE,"__esModule",{value:!0});lE.functions=void 0;var wR=h,kR=(0,wR.flatKeywordList)({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]});lE.functions=kR;var cE={};Object.defineProperty(cE,"__esModule",{value:!0});cE.keywords=void 0;var xR=h,JR=(0,xR.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]});cE.keywords=JR;(function(R,e){function S(A){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},S(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=lE,c=cE;function C(A){return A&&A.__esModule?A:{default:A}}function G(A,_){if(!(A instanceof _))throw new TypeError("Cannot call a class as a function")}function L(A,_){for(var N=0;N<_.length;N++){var E=_[N];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function a(A,_,N){return _&&L(A.prototype,_),N&&L(A,N),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(_&&_.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),_&&I(A,_)}function I(A,_){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},I(A,_)}function M(A){var _=H();return function(){var E=i(A),T;if(_){var O=i(this).constructor;T=Reflect.construct(E,arguments,O)}else T=E.apply(this,arguments);return y(this,T)}}function y(A,_){if(_&&(S(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(A)}function d(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function H(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(A){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},i(A)}function u(A,_,N){return _ in A?Object.defineProperty(A,_,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[_]=N,A}var n=(0,r.expandPhrases)(["WITH [RECURSIVE]","SELECT [ALL | DISTINCT]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE [ONLY]","SET","WHERE CURRENT OF","DELETE FROM [ONLY]","TRUNCATE [TABLE] [ONLY]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DO","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","RETURNING","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM","AFTER","SET SCHEMA"]),s=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),F=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),v=["ON DELETE","ON UPDATE"],P=["<<",">>","|/","||/","!!","||","~~","~~*","!~~","!~~*","~","~*","!~","!~*","<%","<<%","%>","%>>","~>~","~<~","~>=~","~<=~","@-@","@@","#","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=",">>=","<<=","@@@","?","@?","?&","->","->>","#>","#>>","#-",":=","::","=>","-|-"],t=function(A){o(N,A);var _=M(N);function N(){return G(this,N),_.apply(this,arguments)}return a(N,[{key:"tokenizer",value:function(){return new p.default({reservedCommands:n,reservedSetOperations:s,reservedJoins:F,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:v,reservedKeywords:c.keywords,reservedFunctionNames:U.functions,openParens:["(","["],closeParens:[")","]"],stringTypes:["$$",{quote:"''",prefixes:["B","E","X","U&"]}],identTypes:[{quote:'""',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:N.operators})}}]),N}(f.default);e.default=t,u(t,"operators",P),R.exports=e.default})(Ne,Ne.exports);var ne={exports:{}},GE={};Object.defineProperty(GE,"__esModule",{value:!0});GE.functions=void 0;var QR=h,ZR=(0,QR.flatKeywordList)({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]});GE.functions=ZR;var pE={};Object.defineProperty(pE,"__esModule",{value:!0});pE.keywords=void 0;var jR=h,qR=(0,jR.flatKeywordList)({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]});pE.keywords=qR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=GE,c=pE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_>","||"]),R.exports=e.default})(ne,ne.exports);var _e={exports:{}},dE={};Object.defineProperty(dE,"__esModule",{value:!0});dE.keywords=void 0;var $R=h,zR=(0,$R.flatKeywordList)({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]});dE.keywords=zR;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});yE.functions=void 0;var EA=h,eA=(0,EA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]});yE.functions=eA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=dE,C=yE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","&&","||","==","->"]);function N(E){return E.map(function(T,O){var D=E[O-1]||U.EOF_TOKEN,l=E[O+1]||U.EOF_TOKEN;return U.isToken.WINDOW(T)&&l.type===U.TokenType.OPEN_PAREN?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T.text==="ITEMS"&&T.type===U.TokenType.RESERVED_KEYWORD&&!(D.text==="COLLECTION"&&l.text==="TERMINATED")?a(a({},T),{},{type:U.TokenType.IDENTIFIER,text:T.raw}):T})}R.exports=e.default})(_e,_e.exports);var Le={exports:{}},HE={};Object.defineProperty(HE,"__esModule",{value:!0});HE.functions=void 0;var TA=h,RA=(0,TA.flatKeywordList)({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]});HE.functions=RA;var BE={};Object.defineProperty(BE,"__esModule",{value:!0});BE.keywords=void 0;var AA=h,tA=(0,AA.flatKeywordList)({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]});BE.keywords=tA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=HE,c=BE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","->>","||","<<",">>","=="]),R.exports=e.default})(Le,Le.exports);var Ce={exports:{}},FE={};Object.defineProperty(FE,"__esModule",{value:!0});FE.functions=void 0;var SA=h,OA=(0,SA.flatKeywordList)({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]});FE.functions=OA;var YE={};Object.defineProperty(YE,"__esModule",{value:!0});YE.keywords=void 0;var rA=h,IA=(0,rA.flatKeywordList)({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]});YE.keywords=IA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=FE,c=YE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_"]),R.exports=e.default})(oe,oe.exports);var ae={exports:{}},VE={};Object.defineProperty(VE,"__esModule",{value:!0});VE.functions=void 0;var CA=h,oA=(0,CA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["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:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","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"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","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"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]});VE.functions=oA;var mE={};Object.defineProperty(mE,"__esModule",{value:!0});mE.keywords=void 0;var aA=h,iA=(0,aA.flatKeywordList)({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]});mE.keywords=iA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=VE,c=mE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","+=","-=","*=","/=","%=","|=","&=","^=","::"]),R.exports=e.default})(ae,ae.exports);var ie={exports:{}},WE={};Object.defineProperty(WE,"__esModule",{value:!0});WE.keywords=void 0;var PA=h,uA=(0,PA.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]});WE.keywords=uA;var bE={};Object.defineProperty(bE,"__esModule",{value:!0});bE.functions=void 0;var DA=h,sA=(0,DA.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});bE.functions=sA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=WE,C=bE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","<<",">>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(ie,ie.exports);Object.defineProperty($,"__esModule",{value:!0});$.supportedDialects=$.formatters=$.format=$.ConfigError=void 0;var MA=q(wE.exports),fA=q(Ae.exports),UA=q(te.exports),lA=q(Se.exports),cA=q(Oe.exports),GA=q(re.exports),pA=q(Ie.exports),dA=q(Ne.exports),yA=q(ne.exports),HA=q(_e.exports),BA=q(Le.exports),FA=q(Ce.exports),YA=q(oe.exports),vA=q(ae.exports),hA=q(ie.exports);function q(R){return R&&R.__esModule?R:{default:R}}function me(R,e){for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+NE(e));var r=JA(be(be({},kA),S)),f=typeof r.language=="string"?De[r.language]:r.language;return new f(r).format(e)};$.format=xA;var eE=function(R){WA(S,R);var e=bA(S);function S(){return mA(this,S),e.apply(this,arguments)}return VA(S)}(Pe(Error));$.ConfigError=eE;function JA(R){if(typeof R.language=="string"&&!eT.includes(R.language))throw new eE("Unsupported SQL dialect: ".concat(R.language));if("multilineLists"in R)throw new eE("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in R)throw new eE("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in R)throw new eE("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in R)throw new eE("aliasAs config is no more supported.");if(R.expressionWidth<=0)throw new eE("expressionWidth config must be positive number. Received ".concat(R.expressionWidth," instead."));if(R.commaPosition==="before"&&R.useTabs)throw new eE("commaPosition: before does not work when tabs are used for indentation.");return R.params&&!QA(R.params)&&console.warn('WARNING: All "params" option values should be strings.'),R}function QA(R){var e=R instanceof Array?R:Object.values(R);return e.every(function(S){return typeof S=="string"})}(function(R){Object.defineProperty(R,"__esModule",{value:!0});var e={Formatter:!0,Tokenizer:!0,expandPhrases:!0};Object.defineProperty(R,"Formatter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(R,"Tokenizer",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(R,"expandPhrases",{enumerable:!0,get:function(){return p.expandPhrases}});var S=$;Object.keys(S).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(e,c)||c in R&&R[c]===S[c]||Object.defineProperty(R,c,{enumerable:!0,get:function(){return S[c]}})});var r=U(J.exports),f=U(Q.exports),p=K;function U(c){return c&&c.__esModule?c:{default:c}}})(ge);const ZA=OT({name:"SqlExecDialog",components:{codemirror:sT,ElButton:rT,ElDialog:IT,ElInput:NT},props:{visible:{type:Boolean},dbId:{type:[Number]},db:{type:String},sql:{type:String}},setup(R){const e=nT(),S=_T({dialogVisible:!1,sqlValue:"",dbId:0,db:"",remark:"",btnLoading:!1,cmOptions:{tabSize:4,mode:"text/x-sql",lineNumbers:!0,line:!0,indentWithTabs:!0,smartIndent:!0,matchBrackets:!0,theme:"base16-light",autofocus:!0,extraKeys:{Tab:"autocomplete"}}});S.sqlValue=R.sql;let r,f,p=!1;const U=async()=>{if(!S.remark){gE.error("\u8BF7\u8F93\u5165\u6267\u884C\u7684\u5907\u6CE8\u4FE1\u606F");return}try{S.btnLoading=!0;const G=await MT.sqlExec.request({id:S.dbId,db:S.db,remark:S.remark,sql:S.sqlValue.trim()});parseInt(G.res[0].\u5F71\u54CD\u6761\u6570)>=1?(gE.success("\u6267\u884C\u6210\u529F"),p=!0):(gE.error("\u6267\u884C\u5931\u8D25"),p=!1)}catch{p=!1}p&&r&&r(),S.btnLoading=!1,c()},c=()=>{S.dialogVisible=!1,!p&&f&&f(),setTimeout(()=>{S.dbId=0,S.sqlValue="",S.remark="",r=null,f=null,p=!1},200)},C=G=>{r=G.runSuccessCallback,f=G.cancelCallback,S.sqlValue=ge.format(G.sql),S.dbId=G.dbId,S.db=G.db,S.dialogVisible=!0,CT(()=>{setTimeout(()=>{var L;(L=e.value)==null||L.focus()})})};return le(Ue({},LT(S)),{remarkInputRef:e,open:C,runSql:U,cancel:c})}}),jA={class:"dialog-footer"},qA=Xe("\u53D6 \u6D88"),$A=Xe("\u6267 \u884C");function zA(R,e,S,r,f,p){const U=OE("codemirror"),c=OE("el-input"),C=OE("el-button"),G=OE("el-dialog");return aT(),iT("div",null,[RE(G,{title:"\u5F85\u6267\u884CSQL",modelValue:R.dialogVisible,"onUpdate:modelValue":e[2]||(e[2]=L=>R.dialogVisible=L),"show-close":!1,width:"600px"},{footer:rE(()=>[PT("span",jA,[RE(C,{onClick:R.cancel},{default:rE(()=>[qA]),_:1},8,["onClick"]),RE(C,{onClick:R.runSql,type:"primary",loading:R.btnLoading},{default:rE(()=>[$A]),_:1},8,["onClick","loading"])])]),default:rE(()=>[RE(U,{height:"350px",class:"codesql",ref:"cmEditor",language:"sql",modelValue:R.sqlValue,"onUpdate:modelValue":e[0]||(e[0]=L=>R.sqlValue=L),options:R.cmOptions},null,8,["modelValue","options"]),RE(c,{ref:"remarkInputRef",modelValue:R.remark,"onUpdate:modelValue":e[1]||(e[1]=L=>R.remark=L),placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u5907\u6CE8",class:"mt5"},null,8,["modelValue"])]),_:1},8,["modelValue"])])}var Et=oT(ZA,[["render",zA]]);const et="sql-exec-id",Tt=()=>{const R={sql:"",dbId:0},e=document.createElement("div");e.id=et;const S=uT(Et,R);return DT(S,e),document.body.appendChild(e),S};let KE;const Rt=R=>{KE?KE.component.proxy.open(R):(KE=Tt(),Rt(R))};export{Rt as S,MT as d,ge as l}; diff --git a/server/static/static/assets/SshTerminal.1661345446364.css b/server/static/static/assets/SshTerminal.1661345446364.css new file mode 100644 index 00000000..b0956eee --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.css @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative} diff --git a/server/static/static/assets/SshTerminal.1661345446364.js b/server/static/static/assets/SshTerminal.1661345446364.js new file mode 100644 index 00000000..dd468c4f --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.js @@ -0,0 +1,8 @@ +var mr=Object.defineProperty;var dr=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var _r=(ae,J,oe)=>J in ae?mr(ae,J,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ae[J]=oe,pr=(ae,J)=>{for(var oe in J||(J={}))Sr.call(J,oe)&&_r(ae,oe,J[oe]);if(dr)for(var oe of dr(J))br.call(J,oe)&&_r(ae,oe,J[oe]);return ae};import{A as Cr,r as wr,v as Lr,o as Er,L as xr,a as Rr,c as kr,m as Ar,J as Mr,I as Or,t as Dr,_ as Tr,d as Br,e as Pr,l as Ir}from"./index.1661345446364.js";var vr={exports:{}};(function(ae,J){(function(oe,ge){ae.exports=ge()})(self,function(){return(()=>{var oe={4567:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;var f=w(9042),d=w(6114),m=w(9924),v=w(3656),a=w(844),o=w(5596),_=w(9631),h=function(r){function e(t,i){var n=r.call(this)||this;n._terminal=t,n._renderService=i,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var l=0;lt;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t},e.prototype._onTab=function(t){for(var i=0;i0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){i._accessibilityTreeRoot.appendChild(i._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&(0,_.removeElementFromParent)(this._liveRegion)},e.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},e.prototype._refreshRows=function(t,i){this._renderRowsDebouncer.refresh(t,i,this._terminal.rows)},e.prototype._renderRows=function(t,i){for(var n=this._terminal.buffer,l=n.lines.length.toString(),s=t;s<=i;s++){var y=n.translateBufferLineToString(n.ydisp+s,!0),b=(n.ydisp+s+1).toString(),g=this._rowElements[s];g&&(y.length===0?g.innerText="\xA0":g.textContent=y,g.setAttribute("aria-posinset",b),g.setAttribute("aria-setsize",l))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var t=0;t{function w(d){return d.replace(/\r?\n/g,"\r")}function p(d,m){return m?"\x1B[200~"+d+"\x1B[201~":d}function u(d,m,v){d=p(d=w(d),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(d,!0),m.value=""}function f(d,m,v){var a=v.getBoundingClientRect(),o=d.clientX-a.left-10,_=d.clientY-a.top-10;m.style.width="20px",m.style.height="20px",m.style.left=o+"px",m.style.top=_+"px",m.style.zIndex="1000",m.focus()}Object.defineProperty(c,"__esModule",{value:!0}),c.rightClickHandler=c.moveTextAreaUnderMouseCursor=c.paste=c.handlePasteEvent=c.copyHandler=c.bracketTextForPaste=c.prepareTextForTerminal=void 0,c.prepareTextForTerminal=w,c.bracketTextForPaste=p,c.copyHandler=function(d,m){d.clipboardData&&d.clipboardData.setData("text/plain",m.selectionText),d.preventDefault()},c.handlePasteEvent=function(d,m,v){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),m,v)},c.paste=u,c.moveTextAreaUnderMouseCursor=f,c.rightClickHandler=function(d,m,v,a,o){f(d,m,v),o&&a.rightClickSelect(d),m.value=a.selectionText,m.select()}},7239:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorContrastCache=void 0;var w=function(){function p(){this._color={},this._rgba={}}return p.prototype.clear=function(){this._color={},this._rgba={}},p.prototype.setCss=function(u,f,d){this._rgba[u]||(this._rgba[u]={}),this._rgba[u][f]=d},p.prototype.getCss=function(u,f){return this._rgba[u]?this._rgba[u][f]:void 0},p.prototype.setColor=function(u,f,d){this._color[u]||(this._color[u]={}),this._color[u][f]=d},p.prototype.getColor=function(u,f){return this._color[u]?this._color[u][f]:void 0},p}();c.ColorContrastCache=w},5680:function(W,c,w){var p=this&&this.__read||function(h,r){var e=typeof Symbol=="function"&&h[Symbol.iterator];if(!e)return h;var t,i,n=e.call(h),l=[];try{for(;(r===void 0||r-- >0)&&!(t=n.next()).done;)l.push(t.value)}catch(s){i={error:s}}finally{try{t&&!t.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return l};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorManager=c.DEFAULT_ANSI_COLORS=void 0;var u=w(8055),f=w(7239),d=u.css.toColor("#ffffff"),m=u.css.toColor("#000000"),v=u.css.toColor("#ffffff"),a=u.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};c.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var h=[u.css.toColor("#2e3436"),u.css.toColor("#cc0000"),u.css.toColor("#4e9a06"),u.css.toColor("#c4a000"),u.css.toColor("#3465a4"),u.css.toColor("#75507b"),u.css.toColor("#06989a"),u.css.toColor("#d3d7cf"),u.css.toColor("#555753"),u.css.toColor("#ef2929"),u.css.toColor("#8ae234"),u.css.toColor("#fce94f"),u.css.toColor("#729fcf"),u.css.toColor("#ad7fa8"),u.css.toColor("#34e2e2"),u.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],e=0;e<216;e++){var t=r[e/36%6|0],i=r[e/6%6|0],n=r[e%6];h.push({css:u.channels.toCss(t,i,n),rgba:u.channels.toRgba(t,i,n)})}for(e=0;e<24;e++){var l=8+10*e;h.push({css:u.channels.toCss(l,l,l),rgba:u.channels.toRgba(l,l,l)})}return h}());var _=function(){function h(r,e){this.allowTransparency=e;var t=r.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new f.ColorContrastCache,this.colors={foreground:d,background:m,cursor:v,cursorAccent:a,selectionTransparent:o,selectionOpaque:u.color.blend(m,o),selectionForeground:void 0,ansi:c.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return h.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},h.prototype.setTheme=function(r){r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,d),this.colors.background=this._parseColor(r.background,m),this.colors.cursor=this._parseColor(r.cursor,v,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(r.selection,o,!0),this.colors.selectionOpaque=u.color.blend(this.colors.background,this.colors.selectionTransparent);var e={css:"",rgba:0};this.colors.selectionForeground=r.selectionForeground?this._parseColor(r.selectionForeground,e):void 0,this.colors.selectionForeground===e&&(this.colors.selectionForeground=void 0),u.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=u.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,c.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,c.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,c.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,c.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,c.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,c.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,c.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,c.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,c.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,c.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,c.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,c.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,c.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,c.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,c.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,c.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},h.prototype.restoreColor=function(r){if(r!==void 0)switch(r){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[r]=this._restoreColors.ansi[r]}else for(var e=0;e=p.length&&(p=void 0),{value:p&&p[d++],done:!p}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.removeElementFromParent=void 0,c.removeElementFromParent=function(){for(var p,u,f,d=[],m=0;m{Object.defineProperty(c,"__esModule",{value:!0}),c.addDisposableDomListener=void 0,c.addDisposableDomListener=function(w,p,u,f){w.addEventListener(p,u,f);var d=!1;return{dispose:function(){d||(d=!0,w.removeEventListener(p,u,f))}}}},3551:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZone=c.Linkifier=void 0;var f=w(8460),d=w(2585),m=function(){function a(o,_,h){this._bufferService=o,this._logService=_,this._unicodeService=h,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(a.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),a.prototype.attachToDom=function(o,_){this._element=o,this._mouseZoneManager=_},a.prototype.linkifyRows=function(o,_){var h=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=_):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,_)),this._mouseZoneManager.clearAll(o,_),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return h._linkifyRows()},a._timeBeforeLatency))},a.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var _=o.ydisp+this._rowsToLinkify.start;if(!(_>=o.lines.length)){for(var h=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,r=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,_,h,r,r);e.hasNext();)for(var t=e.next(),i=0;i=0;_--)if(o.priority<=this._linkMatchers[_].priority)return void this._linkMatchers.splice(_+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},a.prototype.deregisterLinkMatcher=function(o){for(var _=0;_>9&511:void 0;h.validationCallback?h.validationCallback(s,function(C){e._rowsTimeoutId||C&&e._addLink(y[1],y[0]-e._bufferService.buffer.ydisp,s,h,S)}):l._addLink(y[1],y[0]-l._bufferService.buffer.ydisp,s,h,S)},l=this;(r=t.exec(_))!==null&&n()!=="break";);},a.prototype._addLink=function(o,_,h,r,e){var t=this;if(this._mouseZoneManager&&this._element){var i=this._unicodeService.getStringCellWidth(h),n=o%this._bufferService.cols,l=_+Math.floor(o/this._bufferService.cols),s=(n+i)%this._bufferService.cols,y=l+Math.floor((n+i)/this._bufferService.cols);s===0&&(s=this._bufferService.cols,y--),this._mouseZoneManager.add(new v(n+1,l+1,s+1,y+1,function(b){if(r.handler)return r.handler(b,h);var g=window.open();g?(g.opener=null,g.location.href=h):console.warn("Opening link blocked as opener could not be cleared")},function(){t._onShowLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.add("xterm-cursor-pointer")},function(b){t._onLinkTooltip.fire(t._createLinkHoverEvent(n,l,s,y,e)),r.hoverTooltipCallback&&r.hoverTooltipCallback(b,h,{start:{x:n,y:l},end:{x:s,y}})},function(){t._onHideLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(b){return!r.willLinkActivate||r.willLinkActivate(b,h)}))}},a.prototype._createLinkHoverEvent=function(o,_,h,r,e){return{x1:o,y1:_,x2:h,y2:r,cols:this._bufferService.cols,fg:e}},a._timeBeforeLatency=200,a=p([u(0,d.IBufferService),u(1,d.ILogService),u(2,d.IUnicodeService)],a)}();c.Linkifier=m;var v=function(a,o,_,h,r,e,t,i,n){this.x1=a,this.y1=o,this.x2=_,this.y2=h,this.clickCallback=r,this.hoverCallback=e,this.tooltipCallback=t,this.leaveCallback=i,this.willLinkActivate=n};c.MouseZone=v},6465:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}},m=this&&this.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__read||function(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n,l,s=i.call(e),y=[];try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)y.push(n.value)}catch(b){l={error:b}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(l)throw l.error}}return y};Object.defineProperty(c,"__esModule",{value:!0}),c.Linkifier2=void 0;var a=w(2585),o=w(8460),_=w(844),h=w(3656),r=function(e){function t(i){var n=e.call(this)||this;return n._bufferService=i,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new o.EventEmitter),n._onHideLinkUnderline=n.register(new o.EventEmitter),n.register((0,_.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return u(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(i){var n=this;return this._linkProviders.push(i),{dispose:function(){var l=n._linkProviders.indexOf(i);l!==-1&&n._linkProviders.splice(l,1)}}},t.prototype.attachToDom=function(i,n,l){var s=this;this._element=i,this._mouseService=n,this._renderService=l,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",function(){s._isMouseOut=!0,s._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(i){if(this._lastMouseEvent=i,this._element&&this._mouseService){var n=this._positionFromMouseEvent(i,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var l=i.composedPath(),s=0;si?this._bufferService.cols:g.link.range.end.x,k=S;k<=C;k++){if(l.has(k)){y.splice(b--,1);break}l.add(k)}}},t.prototype._checkLinkProviderResult=function(i,n,l){var s,y=this;if(!this._activeProviderReplies)return l;for(var b=this._activeProviderReplies.get(i),g=!1,S=0;S=i&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(i){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(i.link,l)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:function(s){var y,b;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&n._currentLink.state.decorations.pointerCursor!==s&&(n._currentLink.state.decorations.pointerCursor=s,n._currentLink.state.isHovered&&((b=n._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",s)))}},underline:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.underline},set:function(s){var y,b,g;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&((g=(b=n._currentLink)===null||b===void 0?void 0:b.state)===null||g===void 0?void 0:g.decorations.underline)!==s&&(n._currentLink.state.decorations.underline=s,n._currentLink.state.isHovered&&n._fireUnderlineEvent(i.link,s))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(s){var y=s.start===0?0:s.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(y,s.end+1+n._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(l,n.text)},t.prototype._fireUnderlineEvent=function(i,n){var l=i.range,s=this._bufferService.buffer.ydisp,y=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-s-1,l.end.x,l.end.y-s-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(y)},t.prototype._linkLeave=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(l,n.text)},t.prototype._linkAtPosition=function(i,n){var l=i.range.start.y===i.range.end.y,s=i.range.start.yn.y;return(l&&i.range.start.x<=n.x&&i.range.end.x>=n.x||s&&i.range.end.x>=n.x||y&&i.range.start.x<=n.x||s&&y)&&i.range.start.y<=n.y&&i.range.end.y>=n.y},t.prototype._positionFromMouseEvent=function(i,n,l){var s=l.getCoords(i,n,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(i,n,l,s,y){return{x1:i,y1:n,x2:l,y2:s,cols:this._bufferService.cols,fg:y}},f([d(0,a.IBufferService)],t)}(_.Disposable);c.Linkifier2=r},9042:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.tooMuchOutput=c.promptLabel=void 0,c.promptLabel="Terminal input",c.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZoneManager=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s){var y=h.call(this)||this;return y._element=e,y._screenElement=t,y._bufferService=i,y._mouseService=n,y._selectionService=l,y._optionsService=s,y._zones=[],y._areZonesActive=!1,y._lastHoverCoords=[void 0,void 0],y._initialSelectionLength=0,y.register((0,v.addDisposableDomListener)(y._element,"mousedown",function(b){return y._onMouseDown(b)})),y._mouseMoveListener=function(b){return y._onMouseMove(b)},y._mouseLeaveListener=function(b){return y._onMouseLeave(b)},y._clickListener=function(b){return y._onClick(b)},y}return u(r,h),r.prototype.dispose=function(){h.prototype.dispose.call(this),this._deactivate()},r.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},r.prototype.clearAll=function(e,t){if(this._zones.length!==0){e&&t||(e=0,t=this._bufferService.rows-1);for(var i=0;ie&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}this._zones.length===0&&this._deactivate()}},r.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},r.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},r.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},r.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},r.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t==null||t.tooltipCallback(e)},r.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);t!=null&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},r.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},r.prototype._onClick=function(e){var t=this._findZoneEventAt(e),i=this._getSelectionLength();t&&i===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},r.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},r.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var i=t[0],n=t[1],l=0;l=s.x1&&i=s.x1||n===s.y2&&is.y1&&n=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderDebouncer=void 0;var p=function(){function u(f){this._renderCallback=f,this._refreshCallbacks=[]}return u.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},u.prototype.addRefreshCallback=function(f){var d=this;return this._refreshCallbacks.push(f),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()})),this._animationFrame},u.prototype.refresh=function(f,d,m){var v=this;this._rowCount=m,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return v._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._animationFrame=void 0,this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(f,d),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},u.prototype._runRefreshCallbacks=function(){var f,d;try{for(var m=w(this._refreshCallbacks),v=m.next();!v.done;v=m.next())(0,v.value)(0)}catch(a){f={error:a}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}this._refreshCallbacks=[]},u}();c.RenderDebouncer=p},5596:function(W,c,w){var p,u=this&&this.__extends||(p=function(d,m){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,a){v.__proto__=a}||function(v,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(v[o]=a[o])},p(d,m)},function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function v(){this.constructor=d}p(d,m),d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(c,"__esModule",{value:!0}),c.ScreenDprMonitor=void 0;var f=function(d){function m(){var v=d!==null&&d.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return u(m,d),m.prototype.setListener=function(v){var a=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){a._listener&&(a._listener(window.devicePixelRatio,a._currentDevicePixelRatio),a._updateDpr())},this._updateDpr()},m.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},m.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},m.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},m}(w(844).Disposable);c.ScreenDprMonitor=f},3236:function(W,c,w){var p,u=this&&this.__extends||(p=function(X,j){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var H in D)Object.prototype.hasOwnProperty.call(D,H)&&(O[H]=D[H])},p(X,j)},function(X,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function O(){this.constructor=X}p(X,j),X.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}),f=this&&this.__values||function(X){var j=typeof Symbol=="function"&&Symbol.iterator,O=j&&X[j],D=0;if(O)return O.call(X);if(X&&typeof X.length=="number")return{next:function(){return X&&D>=X.length&&(X=void 0),{value:X&&X[D++],done:!X}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(X,j){var O=typeof Symbol=="function"&&X[Symbol.iterator];if(!O)return X;var D,H,G=O.call(X),V=[];try{for(;(j===void 0||j-- >0)&&!(D=G.next()).done;)V.push(D.value)}catch($){H={error:$}}finally{try{D&&!D.done&&(O=G.return)&&O.call(G)}finally{if(H)throw H.error}}return V},m=this&&this.__spreadArray||function(X,j,O){if(O||arguments.length===2)for(var D,H=0,G=j.length;H4)&&D.coreMouseService.triggerMouseEvent({col:we.x-33,row:we.y-33,button:he,action:pe,ctrl:K.ctrlKey,alt:K.altKey,shift:K.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},$=function(K){return G(K),K.buttons||(O._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.removeEventListener("mousemove",V.mousedrag)),O.cancel(K)},ie=function(K){return G(K),O.cancel(K,!0)},ce=function(K){K.buttons&&G(K)},le=function(K){K.buttons||G(K)};this.register(this.coreMouseService.onProtocolChange(function(K){K?(O.optionsService.rawOptions.logLevel==="debug"&&O._logService.debug("Binding to mouse events:",O.coreMouseService.explainEvents(K)),O.element.classList.add("enable-mouse-events"),O._selectionService.disable()):(O._logService.debug("Unbinding from mouse events."),O.element.classList.remove("enable-mouse-events"),O._selectionService.enable()),8&K?V.mousemove||(H.addEventListener("mousemove",le),V.mousemove=le):(H.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&K?V.wheel||(H.addEventListener("wheel",ie,{passive:!1}),V.wheel=ie):(H.removeEventListener("wheel",V.wheel),V.wheel=null),2&K?V.mouseup||(V.mouseup=$):(O._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&K?V.mousedrag||(V.mousedrag=ce):(O._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,n.addDisposableDomListener)(H,"mousedown",function(K){if(K.preventDefault(),O.focus(),O.coreMouseService.areMouseEventsActive&&!O._selectionService.shouldForceSelection(K))return G(K),V.mouseup&&O._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.addEventListener("mousemove",V.mousedrag),O.cancel(K)})),this.register((0,n.addDisposableDomListener)(H,"wheel",function(K){if(!V.wheel){if(!O.buffer.hasScrollback){var he=O.viewport.getLinesScrolled(K);if(he===0)return;for(var pe=_.C0.ESC+(O.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(K.deltaY<0?"A":"B"),we="",Ie=0;Ie=65&&O.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(H.key!==_.C0.ETX&&H.key!==_.C0.CR||(this.textarea.value=""),this._onKey.fire({key:H.key,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(H.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(O,!0))))},j.prototype._isThirdLevelShift=function(O,D){var H=O.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||O.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||O.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?H:H&&(!D.keyCode||D.keyCode>47)},j.prototype._keyUp=function(O){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(O)||this.focus(),this.updateCursorStyle(O),this._keyPressHandled=!1)},j.prototype._keyPress=function(O){var D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(this.cancel(O),O.charCode)D=O.charCode;else if(O.which===null||O.which===void 0)D=O.keyCode;else{if(O.which===0||O.charCode===0)return!1;D=O.which}return!(!D||(O.altKey||O.ctrlKey||O.metaKey)&&!this._isThirdLevelShift(this.browser,O)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},j.prototype._inputEvent=function(O){if(O.data&&O.inputType==="insertText"&&(!O.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var D=O.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(O),!0}return!1},j.prototype.bell=function(){var O;this._soundBell()&&((O=this._soundService)===null||O===void 0||O.playBellSound()),this._onBell.fire()},j.prototype.resize=function(O,D){O!==this.cols||D!==this.rows?X.prototype.resize.call(this,O,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},j.prototype._afterResize=function(O,D){var H,G;(H=this._charSizeService)===null||H===void 0||H.measure(),(G=this.viewport)===null||G===void 0||G.syncScrollArea(!0)},j.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var O=1;O{Object.defineProperty(c,"__esModule",{value:!0}),c.TimeBasedDebouncer=void 0;var w=function(){function p(u,f){f===void 0&&(f=1e3),this._renderCallback=u,this._debounceThresholdMS=f,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return p.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},p.prototype.refresh=function(u,f,d){var m=this;this._rowCount=d,u=u!==void 0?u:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var a=v-this._lastRefreshMs,o=this._debounceThresholdMS-a;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){m._lastRefreshMs=Date.now(),m._innerRefresh(),m._additionalRefreshRequested=!1,m._refreshTimeoutID=void 0},o)}},p.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(u,f)}},p}();c.TimeBasedDebouncer=w},1680:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Viewport=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b){var g=h.call(this)||this;return g._scrollLines=e,g._viewportElement=t,g._scrollArea=i,g._element=n,g._bufferService=l,g._optionsService=s,g._charSizeService=y,g._renderService=b,g.scrollBarWidth=0,g._currentRowHeight=0,g._currentScaledCellHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register((0,v.addDisposableDomListener)(g._viewportElement,"scroll",g._onScroll.bind(g))),g._activeBuffer=g._bufferService.buffer,g.register(g._bufferService.buffers.onBufferActivate(function(S){return g._activeBuffer=S.activeBuffer})),g._renderDimensions=g._renderService.dimensions,g.register(g._renderService.onDimensionsChange(function(S){return g._renderDimensions=S})),setTimeout(function(){return g.syncScrollArea()},0),g}return u(r,h),r.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},r.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},r.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},r.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},r.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},r.prototype._bubbleScroll=function(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&i0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},r.prototype._applyScrollModifier=function(e,t){var i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&t.altKey||i==="ctrl"&&t.ctrlKey||i==="shift"&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},r.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},r.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},f([d(4,o.IBufferService),d(5,o.IOptionsService),d(6,a.ICharSizeService),d(7,a.IRenderService)],r)}(m.Disposable);c.Viewport=_},3107:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}},m=this&&this.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferDecorationRenderer=void 0;var v=w(3656),a=w(4725),o=w(844),_=w(2585),h=function(r){function e(t,i,n,l){var s=r.call(this)||this;return s._screenElement=t,s._bufferService=i,s._decorationService=n,s._renderService=l,s._decorationElements=new Map,s._altBufferIsActive=!1,s._dimensionsChanged=!1,s._container=document.createElement("div"),s._container.classList.add("xterm-decoration-container"),s._screenElement.appendChild(s._container),s.register(s._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),s.register(s._renderService.onDimensionsChange(function(){s._dimensionsChanged=!0,s._queueRefresh()})),s.register((0,v.addDisposableDomListener)(window,"resize",function(){return s._queueRefresh()})),s.register(s._bufferService.buffers.onBufferActivate(function(){s._altBufferIsActive=s._bufferService.buffer===s._bufferService.buffers.alt})),s.register(s._decorationService.onDecorationRegistered(function(){return s._queueRefresh()})),s.register(s._decorationService.onDecorationRemoved(function(y){return s._removeDecoration(y)})),s}return u(e,r),e.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),r.prototype.dispose.call(this)},e.prototype._queueRefresh=function(){var t=this;this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(function(){t.refreshDecorations(),t._animationFrame=void 0}))},e.prototype.refreshDecorations=function(){var t,i;try{for(var n=m(this._decorationService.decorations),l=n.next();!l.done;l=n.next()){var s=l.value;this._renderDecoration(s)}}catch(y){t={error:y}}finally{try{l&&!l.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}this._dimensionsChanged=!1},e.prototype._renderDecoration=function(t){this._refreshStyle(t),this._dimensionsChanged&&this._refreshXPosition(t)},e.prototype._createElement=function(t){var i,n=document.createElement("div");n.classList.add("xterm-decoration"),n.style.width=Math.round((t.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",n.style.height=(t.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",n.style.top=(t.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",n.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var l=(i=t.options.x)!==null&&i!==void 0?i:0;return l&&l>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(t,n),n},e.prototype._refreshStyle=function(t){var i=this,n=t.marker.line-this._bufferService.buffers.active.ydisp;if(n<0||n>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{var l=this._decorationElements.get(t);l||(t.onDispose(function(){return i._removeDecoration(t)}),l=this._createElement(t),t.element=l,this._decorationElements.set(t,l),this._container.appendChild(l)),l.style.top=n*this._renderService.dimensions.actualCellHeight+"px",l.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(l)}},e.prototype._refreshXPosition=function(t,i){var n;if(i===void 0&&(i=t.element),i){var l=(n=t.options.x)!==null&&n!==void 0?n:0;(t.options.anchor||"left")==="right"?i.style.right=l?l*this._renderService.dimensions.actualCellWidth+"px":"":i.style.left=l?l*this._renderService.dimensions.actualCellWidth+"px":""}},e.prototype._removeDecoration=function(t){var i;(i=this._decorationElements.get(t))===null||i===void 0||i.remove(),this._decorationElements.delete(t)},f([d(1,_.IBufferService),d(2,_.IDecorationService),d(3,a.IRenderService)],e)}(o.Disposable);c.BufferDecorationRenderer=h},5871:function(W,c){var w=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorZoneStore=void 0;var p=function(){function u(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(u.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),u.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},u.prototype.addDecoration=function(f){var d,m;if(f.options.overviewRulerOptions){try{for(var v=w(this._zones),a=v.next();!a.done;a=v.next()){var o=a.value;if(o.color===f.options.overviewRulerOptions.color&&o.position===f.options.overviewRulerOptions.position){if(this._lineIntersectsZone(o,f.marker.line))return;if(this._lineAdjacentToZone(o,f.marker.line,f.options.overviewRulerOptions.position))return void this._addLineToZone(o,f.marker.line)}}}catch(_){d={error:_}}finally{try{a&&!a.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}if(this._zonePoolIndex=f.startBufferLine&&d<=f.endBufferLine},u.prototype._lineAdjacentToZone=function(f,d,m){return d>=f.startBufferLine-this._linePadding[m||"full"]&&d<=f.endBufferLine+this._linePadding[m||"full"]},u.prototype._addLineToZone=function(f,d){f.startBufferLine=Math.min(f.startBufferLine,d),f.endBufferLine=Math.max(f.endBufferLine,d)},u}();c.ColorZoneStore=p},5744:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.OverviewRulerRenderer=void 0;var v=w(5871),a=w(3656),o=w(4725),_=w(844),h=w(2585),r={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0},i=function(n){function l(s,y,b,g,S,C){var k,L=n.call(this)||this;L._viewportElement=s,L._screenElement=y,L._bufferService=b,L._decorationService=g,L._renderService=S,L._optionsService=C,L._colorZoneStore=new v.ColorZoneStore,L._shouldUpdateDimensions=!0,L._shouldUpdateAnchor=!0,L._lastKnownBufferLength=0,L._canvas=document.createElement("canvas"),L._canvas.classList.add("xterm-decoration-overview-ruler"),L._refreshCanvasDimensions(),(k=L._viewportElement.parentElement)===null||k===void 0||k.insertBefore(L._canvas,L._viewportElement);var R=L._canvas.getContext("2d");if(!R)throw new Error("Ctx cannot be null");return L._ctx=R,L._registerDecorationListeners(),L._registerBufferChangeListeners(),L._registerDimensionChangeListeners(),L}return u(l,n),Object.defineProperty(l.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),l.prototype._registerDecorationListeners=function(){var s=this;this.register(this._decorationService.onDecorationRegistered(function(){return s._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return s._queueRefresh(void 0,!0)}))},l.prototype._registerBufferChangeListeners=function(){var s=this;this.register(this._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){s._canvas.style.display=s._bufferService.buffer===s._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){s._lastKnownBufferLength!==s._bufferService.buffers.normal.lines.length&&(s._refreshDrawHeightConstants(),s._refreshColorZonePadding())}))},l.prototype._registerDimensionChangeListeners=function(){var s=this;this.register(this._renderService.onRender(function(){s._containerHeight&&s._containerHeight===s._screenElement.clientHeight||(s._queueRefresh(!0),s._containerHeight=s._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(y){y==="overviewRulerWidth"&&s._queueRefresh(!0)})),this.register((0,a.addDisposableDomListener)(window,"resize",function(){s._queueRefresh(!0)})),this._queueRefresh(!0)},l.prototype.dispose=function(){var s;(s=this._canvas)===null||s===void 0||s.remove(),n.prototype.dispose.call(this)},l.prototype._refreshDrawConstants=function(){var s=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=s,e.center=y,e.right=s,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=e.left,t.right=e.left+e.center},l.prototype._refreshDrawHeightConstants=function(){r.full=Math.round(2*window.devicePixelRatio);var s=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(s,12),6)*window.devicePixelRatio);r.left=y,r.center=y,r.right=y},l.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},l.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},l.prototype._refreshDecorations=function(){var s,y,b,g,S,C;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var k=m(this._decorationService.decorations),L=k.next();!L.done;L=k.next()){var R=L.value;this._colorZoneStore.addDecoration(R)}}catch(F){s={error:F}}finally{try{L&&!L.done&&(y=k.return)&&y.call(k)}finally{if(s)throw s.error}}this._ctx.lineWidth=1;var x=this._colorZoneStore.zones;try{for(var E=m(x),M=E.next();!M.done;M=E.next())(q=M.value).position!=="full"&&this._renderColorZone(q)}catch(F){b={error:F}}finally{try{M&&!M.done&&(g=E.return)&&g.call(E)}finally{if(b)throw b.error}}try{for(var T=m(x),U=T.next();!U.done;U=T.next()){var q;(q=U.value).position==="full"&&this._renderColorZone(q)}}catch(F){S={error:F}}finally{try{U&&!U.done&&(C=T.return)&&C.call(T)}finally{if(S)throw S.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},l.prototype._renderColorZone=function(s){this._ctx.fillStyle=s.color,this._ctx.fillRect(t[s.position||"full"],Math.round((this._canvas.height-1)*(s.startBufferLine/this._bufferService.buffers.active.lines.length)-r[s.position||"full"]/2),e[s.position||"full"],Math.round((this._canvas.height-1)*((s.endBufferLine-s.startBufferLine)/this._bufferService.buffers.active.lines.length)+r[s.position||"full"]))},l.prototype._queueRefresh=function(s,y){var b=this;this._shouldUpdateDimensions=s||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){b._refreshDecorations(),b._animationFrame=void 0}))},f([d(2,h.IBufferService),d(3,h.IDecorationService),d(4,o.IRenderService),d(5,h.IOptionsService)],l)}(_.Disposable);c.OverviewRulerRenderer=i},2950:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CompositionHelper=void 0;var f=w(4725),d=w(2585),m=function(){function v(a,o,_,h,r,e){this._textarea=a,this._compositionView=o,this._bufferService=_,this._optionsService=h,this._coreService=r,this._renderService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(a){var o=this;this._compositionView.textContent=a.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(a){if(this._isComposing||this._isSendingComposition){if(a.keyCode===229||a.keyCode===16||a.keyCode===17||a.keyCode===18)return!1;this._finalizeComposition(!1)}return a.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(a){var o=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,a){var _={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(o._isSendingComposition){o._isSendingComposition=!1;var r;_.start+=o._dataAlreadySent.length,(r=o._isComposing?o._textarea.value.substring(_.start,_.end):o._textarea.value.substring(_.start)).length>0&&o._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;var h=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(h,!0)}},v.prototype._handleAnyTextareaChanges=function(){var a=this,o=this._textarea.value;setTimeout(function(){if(!a._isComposing){var _=a._textarea.value.replace(o,"");_.length>0&&(a._dataAlreadySent=_,a._coreService.triggerDataEvent(_,!0))}},0)},v.prototype.updateCompositionElements=function(a){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var _=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),h=this._renderService.dimensions.actualCellHeight,r=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,e=_*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=e+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=e+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}a||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},p([u(2,d.IBufferService),u(3,d.IOptionsService),u(4,d.ICoreService),u(5,f.IRenderService)],v)}();c.CompositionHelper=m},9806:(W,c)=>{function w(p,u,f){var d=f.getBoundingClientRect(),m=p.getComputedStyle(f),v=parseInt(m.getPropertyValue("padding-left")),a=parseInt(m.getPropertyValue("padding-top"));return[u.clientX-d.left-v,u.clientY-d.top-a]}Object.defineProperty(c,"__esModule",{value:!0}),c.getRawByteCoords=c.getCoords=c.getCoordsRelativeToElement=void 0,c.getCoordsRelativeToElement=w,c.getCoords=function(p,u,f,d,m,v,a,o,_){if(v){var h=w(p,u,f);if(h)return h[0]=Math.ceil((h[0]+(_?a/2:0))/a),h[1]=Math.ceil(h[1]/o),h[0]=Math.min(Math.max(h[0],1),d+(_?1:0)),h[1]=Math.min(Math.max(h[1],1),m),h}},c.getRawByteCoords=function(p){if(p)return{x:p[0]+32,y:p[1]+32}}},9504:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.moveToCellSequence=void 0;var p=w(2584);function u(o,_,h,r){var e=o-f(h,o),t=_-f(h,_),i=Math.abs(e-t)-function(n,l,s){for(var y=0,b=n-f(s,n),g=l-f(s,l),S=0;S=0&&__?"A":"B"}function m(o,_,h,r,e,t){for(var i=o,n=_,l="";i!==h||n!==r;)i+=e?1:-1,e&&i>t.cols-1?(l+=t.buffer.translateBufferLineToString(n,!1,o,i),i=0,o=0,n++):!e&&i<0&&(l+=t.buffer.translateBufferLineToString(n,!1,0,o+1),o=i=t.cols-1,n--);return l+t.buffer.translateBufferLineToString(n,!1,o,i)}function v(o,_){var h=_?"O":"[";return p.C0.ESC+h+o}function a(o,_){o=Math.floor(o);for(var h="",r=0;r0?b-f(g,b):s;var k=b,L=function(R,x,E,M,T,U){var q;return q=u(E,M,T,U).length>0?M-f(T,M):x,R=E&&qo?"D":"C",a(Math.abs(t-o),v(e,r));e=i>_?"D":"C";var n=Math.abs(i-_);return a(function(l,s){return s.cols-l}(i>_?o:t,h)+(n-1)*h.cols+1+((i>_?t:o)-1),v(e,r))}},4389:function(W,c,w){var p=this&&this.__assign||function(){return p=Object.assign||function(r){for(var e,t=1,i=arguments.length;t=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;var f=w(3236),d=w(9042),m=w(7975),v=w(7090),a=w(5741),o=w(8285),_=["cols","rows"],h=function(){function r(e){var t=this;this._core=new f.Terminal(e),this._addonManager=new a.AddonManager,this._publicOptions=p({},this._core.options);var i=function(y){return t._core.options[y]},n=function(y,b){t._checkReadonlyOptions(y),t._core.options[y]=b};for(var l in this._core.options){var s={get:i.bind(this,l),set:n.bind(this,l)};Object.defineProperty(this._publicOptions,l,s)}}return r.prototype._checkReadonlyOptions=function(e){if(_.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},r.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new m.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new v.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new o.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},r.prototype.open=function(e){this._core.open(e)},r.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},r.prototype.registerLinkMatcher=function(e,t,i){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,i)},r.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},r.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},r.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},r.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},r.prototype.registerMarker=function(e){return e===void 0&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},r.prototype.registerDecoration=function(e){var t,i,n;return this._checkProposedApi(),this._verifyPositiveIntegers((t=e.x)!==null&&t!==void 0?t:0,(i=e.width)!==null&&i!==void 0?i:0,(n=e.height)!==null&&n!==void 0?n:0),this._core.registerDecoration(e)},r.prototype.addMarker=function(e){return this.registerMarker(e)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},r.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(e,t){this._core.write(e,t)},r.prototype.writeUtf8=function(e,t){this._core.write(e,t)},r.prototype.writeln=function(e,t){this._core.write(e),this._core.write(`\r +`,t)},r.prototype.paste=function(e){this._core.paste(e)},r.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},r.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},r.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},r.prototype.reset=function(){this._core.reset()},r.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},r.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(r,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var e,t,i=[],n=0;n=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BaseRenderLayer=void 0;var u=w(643),f=w(8803),d=w(1420),m=w(3734),v=w(1752),a=w(8055),o=w(9631),_=w(8978),h=function(){function r(e,t,i,n,l,s,y,b,g){this._container=e,this._alpha=n,this._colors=l,this._rendererId=s,this._bufferService=y,this._optionsService=b,this._decorationService=g,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return r.prototype.dispose=function(){var e;(0,o.removeElementFromParent)(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},r.prototype._initCanvas=function(){this._ctx=(0,v.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},r.prototype.onOptionsChanged=function(){},r.prototype.onBlur=function(){},r.prototype.onFocus=function(){},r.prototype.onCursorMove=function(){},r.prototype.onGridChanged=function(e,t){},r.prototype.onSelectionChanged=function(e,t,i){i===void 0&&(i=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i},r.prototype.setColors=function(e){this._refreshCharAtlas(e)},r.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},r.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,d.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},r.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},r.prototype.clearTextureAtlas=function(){var e;(e=this._charAtlas)===null||e===void 0||e.clear()},r.prototype._fillCells=function(e,t,i,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight)},r.prototype._fillMiddleLineAtCells=function(e,t,i){i===void 0&&(i=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillBottomLineAtCells=function(e,t,i){i===void 0&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillLeftLineAtCell=function(e,t,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},r.prototype._strokeRectAtCell=function(e,t,i,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},r.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},r.prototype._clearCells=function(e,t,i,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight))},r.prototype._fillCharTrueColor=function(e,t,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=f.TEXT_BASELINE,this._clipRow(i);var n=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(n=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},r.prototype._drawChars=function(e,t,i){var n,l,s,y=this._getContrastColor(e,t,i);if(y||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,i,y);else{var b,g;e.isInverse()?(b=e.isBgDefault()?f.INVERTED_DEFAULT_COLOR:e.getBgColor(),g=e.isFgDefault()?f.INVERTED_DEFAULT_COLOR:e.getFgColor()):(g=e.isBgDefault()?u.DEFAULT_COLOR:e.getBgColor(),b=e.isFgDefault()?u.DEFAULT_COLOR:e.getFgColor()),b+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&b<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||u.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||u.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=g,this._currentGlyphIdentifier.fg=b,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var S=!1;try{for(var C=p(this._decorationService.getDecorationsAtCell(t,i)),k=C.next();!k.done;k=C.next()){var L=k.value;if(L.backgroundColorRGB||L.foregroundColorRGB){S=!0;break}}}catch(R){n={error:R}}finally{try{k&&!k.done&&(l=C.return)&&l.call(C)}finally{if(n)throw n.error}}!S&&((s=this._charAtlas)===null||s===void 0?void 0:s.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,i)}},r.prototype._drawUncachedChars=function(e,t,i,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=f.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=f.DIM_OPACITY);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},r.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},r.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},r.prototype._getContrastColor=function(e,t,i){var n,l,s,y,b=!1;try{for(var g=p(this._decorationService.getDecorationsAtCell(t,i)),S=g.next();!S.done;S=g.next()){var C=S.value;C.options.layer!=="top"&&b||(C.backgroundColorRGB&&(s=C.backgroundColorRGB.rgba),C.foregroundColorRGB&&(y=C.foregroundColorRGB.rgba),b=C.options.layer==="top")}}catch(Y){n={error:Y}}finally{try{S&&!S.done&&(l=g.return)&&l.call(g)}finally{if(n)throw n.error}}if(b||this._colors.selectionForeground&&this._isCellInSelection(t,i)&&(y=this._colors.selectionForeground.rgba),s||y||this._optionsService.rawOptions.minimumContrastRatio!==1&&!(0,v.excludeFromContrastRatioDemands)(e.getCode())){if(!s&&!y){var k=this._colors.contrastCache.getColor(e.bg,e.fg);if(k!==void 0)return k||void 0}var L=e.getFgColor(),R=e.getFgColorMode(),x=e.getBgColor(),E=e.getBgColorMode(),M=!!e.isInverse(),T=!!e.isInverse();if(M){var U=L;L=x,x=U;var q=R;R=E,E=q}var F=this._resolveBackgroundRgba(s!==void 0?50331648:E,s!=null?s:x,M),z=this._resolveForegroundRgba(R,L,M,T),N=a.rgba.ensureContrastRatio(s!=null?s:F,y!=null?y:z,this._optionsService.rawOptions.minimumContrastRatio);if(!N){if(!y)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);N=y}var A={css:a.channels.toCss(N>>24&255,N>>16&255,N>>8&255),rgba:N};return s||y||this._colors.contrastCache.setColor(e.bg,e.fg,A),A}},r.prototype._resolveBackgroundRgba=function(e,t,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.foreground.rgba:this._colors.background.rgba}},r.prototype._resolveForegroundRgba=function(e,t,i,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.background.rgba:this._colors.foreground.rgba}},r.prototype._isCellInSelection=function(e,t){var i=this._selectionStart,n=this._selectionEnd;return!(!i||!n)&&(this._columnSelectMode?e>=i[0]&&t>=i[1]&&ei[1]&&t=i[0]&&e=i[0])},r}();c.BaseRenderLayer=h},2512:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CursorRenderLayer=void 0;var m=w(1546),v=w(511),a=w(2585),o=w(4725),_=600,h=function(e){function t(i,n,l,s,y,b,g,S,C,k){var L=e.call(this,i,"cursor",n,!0,l,s,b,g,k)||this;return L._onRequestRedraw=y,L._coreService=S,L._coreBrowserService=C,L._cell=new v.CellData,L._state={x:0,y:0,isFocused:!1,style:"",width:0},L._cursorRenderers={bar:L._renderBarCursor.bind(L),block:L._renderBlockCursor.bind(L),underline:L._renderUnderlineCursor.bind(L)},L}return u(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(i){e.prototype.resize.call(this,i),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var i;this._clearCursor(),(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var i,n=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new r(this._coreBrowserService.isFocused,function(){n._render(!0)})):((i=this._cursorBlinkStateManager)===null||i===void 0||i.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation()},t.prototype.onGridChanged=function(i,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(i){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=n-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(s,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var y=this._optionsService.rawOptions.cursorStyle;return y&&y!=="block"?this._cursorRenderers[y](s,l,this._cell):this._renderBlurCursor(s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=y,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===s&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(i,n,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(i,n,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,i,n),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(i,n),this._ctx.restore()},t.prototype._renderBlurCursor=function(i,n,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(i,n,l.getWidth(),1),this._ctx.restore()},f([d(5,a.IBufferService),d(6,a.IOptionsService),d(7,a.ICoreService),d(8,o.ICoreBrowserService),d(9,a.IDecorationService)],t)}(m.BaseRenderLayer);c.CursorRenderLayer=h;var r=function(){function e(t,i){this._renderCallback=i,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},e.prototype._restartInterval=function(t){var i=this;t===void 0&&(t=_),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(i._animationTimeRestarted){var n=_-(Date.now()-i._animationTimeRestarted);if(i._animationTimeRestarted=void 0,n>0)return void i._restartInterval(n)}i.isCursorVisible=!1,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0}),i._blinkInterval=window.setInterval(function(){if(i._animationTimeRestarted){var l=_-(Date.now()-i._animationTimeRestarted);return i._animationTimeRestarted=void 0,void i._restartInterval(l)}i.isCursorVisible=!i.isCursorVisible,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})},_)},t)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(W,c,w){var p,u,f,d,m,v,a,o,_,h,r,e,t,i,n,l,s,y,b,g,S,C,k,L,R,x,E,M,T,U,q,F,z,N,A,Y,Z,te,B,ee,X,j,O,D,H,G,V,$,ie,ce,le,K,he,pe,we,Ie,Ht,Ft,jt,Wt,Ut,qt,Ue,qe,Ne,ze,Ke,Ge,Ve,Xe,Ze,Ye,Je,$e,Qe,et,tt,rt,it,nt,ot,st,at,ct,lt,ht,ut,ft,dt,_t,pt,vt,yt,gt,mt,St,bt,Ct,wt,Lt,Et,xt,Rt,kt,At,Mt,Ot,Dt,Tt,Bt,Pt,It,Nt,zt,Kt,Gt,Vt,Xt,Zt,Yt,Jt,$t,Qt,er,tr,rr,ir,nr,ar=this&&this.__read||function(P,I){var se=typeof Symbol=="function"&&P[Symbol.iterator];if(!se)return P;var ve,Le,me=se.call(P),ne=[];try{for(;(I===void 0||I-- >0)&&!(ve=me.next()).done;)ne.push(ve.value)}catch(Se){Le={error:Se}}finally{try{ve&&!ve.done&&(se=me.return)&&se.call(me)}finally{if(Le)throw Le.error}}return ne},or=this&&this.__values||function(P){var I=typeof Symbol=="function"&&Symbol.iterator,se=I&&P[I],ve=0;if(se)return se.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&ve>=P.length&&(P=void 0),{value:P&&P[ve++],done:!P}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.tryDrawCustomChar=c.powerlineDefinitions=c.boxDrawingDefinitions=c.blockElementDefinitions=void 0;var cr=w(1752);c.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gr={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};c.boxDrawingDefinitions={"\u2500":(p={},p[1]="M0,.5 L1,.5",p),"\u2501":(u={},u[3]="M0,.5 L1,.5",u),"\u2502":(f={},f[1]="M.5,0 L.5,1",f),"\u2503":(d={},d[3]="M.5,0 L.5,1",d),"\u250C":(m={},m[1]="M0.5,1 L.5,.5 L1,.5",m),"\u250F":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"\u2510":(a={},a[1]="M0,.5 L.5,.5 L.5,1",a),"\u2513":(o={},o[3]="M0,.5 L.5,.5 L.5,1",o),"\u2514":(_={},_[1]="M.5,0 L.5,.5 L1,.5",_),"\u2517":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"\u2518":(r={},r[1]="M.5,0 L.5,.5 L0,.5",r),"\u251B":(e={},e[3]="M.5,0 L.5,.5 L0,.5",e),"\u251C":(t={},t[1]="M.5,0 L.5,1 M.5,.5 L1,.5",t),"\u2523":(i={},i[3]="M.5,0 L.5,1 M.5,.5 L1,.5",i),"\u2524":(n={},n[1]="M.5,0 L.5,1 M.5,.5 L0,.5",n),"\u252B":(l={},l[3]="M.5,0 L.5,1 M.5,.5 L0,.5",l),"\u252C":(s={},s[1]="M0,.5 L1,.5 M.5,.5 L.5,1",s),"\u2533":(y={},y[3]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"\u2534":(b={},b[1]="M0,.5 L1,.5 M.5,.5 L.5,0",b),"\u253B":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"\u253C":(S={},S[1]="M0,.5 L1,.5 M.5,0 L.5,1",S),"\u254B":(C={},C[3]="M0,.5 L1,.5 M.5,0 L.5,1",C),"\u2574":(k={},k[1]="M.5,.5 L0,.5",k),"\u2578":(L={},L[3]="M.5,.5 L0,.5",L),"\u2575":(R={},R[1]="M.5,.5 L.5,0",R),"\u2579":(x={},x[3]="M.5,.5 L.5,0",x),"\u2576":(E={},E[1]="M.5,.5 L1,.5",E),"\u257A":(M={},M[3]="M.5,.5 L1,.5",M),"\u2577":(T={},T[1]="M.5,.5 L.5,1",T),"\u257B":(U={},U[3]="M.5,.5 L.5,1",U),"\u2550":(q={},q[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},q),"\u2551":(F={},F[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},F),"\u2552":(z={},z[1]=function(P,I){return"M.5,1 L.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},z),"\u2553":(N={},N[1]=function(P,I){return"M"+(.5-P)+",1 L"+(.5-P)+",.5 L1,.5 M"+(.5+P)+",.5 L"+(.5+P)+",1"},N),"\u2554":(A={},A[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},A),"\u2555":(Y={},Y[1]=function(P,I){return"M0,"+(.5-I)+" L.5,"+(.5-I)+" L.5,1 M0,"+(.5+I)+" L.5,"+(.5+I)},Y),"\u2556":(Z={},Z[1]=function(P,I){return"M"+(.5+P)+",1 L"+(.5+P)+",.5 L0,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1"},Z),"\u2557":(te={},te[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",1"},te),"\u2558":(B={},B[1]=function(P,I){return"M.5,0 L.5,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5-I)+" L1,"+(.5-I)},B),"\u2559":(ee={},ee[1]=function(P,I){return"M1,.5 L"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},ee),"\u255A":(X={},X[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0 M1,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",0"},X),"\u255B":(j={},j[1]=function(P,I){return"M0,"+(.5+I)+" L.5,"+(.5+I)+" L.5,0 M0,"+(.5-I)+" L.5,"+(.5-I)},j),"\u255C":(O={},O[1]=function(P,I){return"M0,.5 L"+(.5+P)+",.5 L"+(.5+P)+",0 M"+(.5-P)+",.5 L"+(.5-P)+",0"},O),"\u255D":(D={},D[1]=function(P,I){return"M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M0,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",0"},D),"\u255E":(H={},H[1]=function(P,I){return"M.5,0 L.5,1 M.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},H),"\u255F":(G={},G[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1 M"+(.5+P)+",.5 L1,.5"},G),"\u2560":(V={},V[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},V),"\u2561":($={},$[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L.5,"+(.5-I)+" M0,"+(.5+I)+" L.5,"+(.5+I)},$),"\u2562":(ie={},ie[1]=function(P,I){return"M0,.5 L"+(.5-P)+",.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},ie),"\u2563":(ce={},ce[1]=function(P,I){return"M"+(.5+P)+",0 L"+(.5+P)+",1 M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0"},ce),"\u2564":(le={},le[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5+I)+" L.5,1"},le),"\u2565":(K={},K[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1 M"+(.5+P)+",.5 L"+(.5+P)+",1"},K),"\u2566":(he={},he[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},he),"\u2567":(pe={},pe[1]=function(P,I){return"M.5,0 L.5,"+(.5-I)+" M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},pe),"\u2568":(we={},we[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},we),"\u2569":(Ie={},Ie[1]=function(P,I){return"M0,"+(.5+I)+" L1,"+(.5+I)+" M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},Ie),"\u256A":(Ht={},Ht[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},Ht),"\u256B":(Ft={},Ft[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},Ft),"\u256C":(jt={},jt[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},jt),"\u2571":(Wt={},Wt[1]="M1,0 L0,1",Wt),"\u2572":(Ut={},Ut[1]="M0,0 L1,1",Ut),"\u2573":(qt={},qt[1]="M1,0 L0,1 M0,0 L1,1",qt),"\u257C":(Ue={},Ue[1]="M.5,.5 L0,.5",Ue[3]="M.5,.5 L1,.5",Ue),"\u257D":(qe={},qe[1]="M.5,.5 L.5,0",qe[3]="M.5,.5 L.5,1",qe),"\u257E":(Ne={},Ne[1]="M.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"\u257F":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L.5,0",ze),"\u250D":(Ke={},Ke[1]="M.5,.5 L.5,1",Ke[3]="M.5,.5 L1,.5",Ke),"\u250E":(Ge={},Ge[1]="M.5,.5 L1,.5",Ge[3]="M.5,.5 L.5,1",Ge),"\u2511":(Ve={},Ve[1]="M.5,.5 L.5,1",Ve[3]="M.5,.5 L0,.5",Ve),"\u2512":(Xe={},Xe[1]="M.5,.5 L0,.5",Xe[3]="M.5,.5 L.5,1",Xe),"\u2515":(Ze={},Ze[1]="M.5,.5 L.5,0",Ze[3]="M.5,.5 L1,.5",Ze),"\u2516":(Ye={},Ye[1]="M.5,.5 L1,.5",Ye[3]="M.5,.5 L.5,0",Ye),"\u2519":(Je={},Je[1]="M.5,.5 L.5,0",Je[3]="M.5,.5 L0,.5",Je),"\u251A":($e={},$e[1]="M.5,.5 L0,.5",$e[3]="M.5,.5 L.5,0",$e),"\u251D":(Qe={},Qe[1]="M.5,0 L.5,1",Qe[3]="M.5,.5 L1,.5",Qe),"\u251E":(et={},et[1]="M0.5,1 L.5,.5 L1,.5",et[3]="M.5,.5 L.5,0",et),"\u251F":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M.5,.5 L.5,1",tt),"\u2520":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1",rt),"\u2521":(it={},it[1]="M.5,.5 L.5,1",it[3]="M.5,0 L.5,.5 L1,.5",it),"\u2522":(nt={},nt[1]="M.5,.5 L.5,0",nt[3]="M0.5,1 L.5,.5 L1,.5",nt),"\u2525":(ot={},ot[1]="M.5,0 L.5,1",ot[3]="M.5,.5 L0,.5",ot),"\u2526":(st={},st[1]="M0,.5 L.5,.5 L.5,1",st[3]="M.5,.5 L.5,0",st),"\u2527":(at={},at[1]="M.5,0 L.5,.5 L0,.5",at[3]="M.5,.5 L.5,1",at),"\u2528":(ct={},ct[1]="M.5,.5 L0,.5",ct[3]="M.5,0 L.5,1",ct),"\u2529":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,0 L.5,.5 L0,.5",lt),"\u252A":(ht={},ht[1]="M.5,.5 L.5,0",ht[3]="M0,.5 L.5,.5 L.5,1",ht),"\u252D":(ut={},ut[1]="M0.5,1 L.5,.5 L1,.5",ut[3]="M.5,.5 L0,.5",ut),"\u252E":(ft={},ft[1]="M0,.5 L.5,.5 L.5,1",ft[3]="M.5,.5 L1,.5",ft),"\u252F":(dt={},dt[1]="M.5,.5 L.5,1",dt[3]="M0,.5 L1,.5",dt),"\u2530":(_t={},_t[1]="M0,.5 L1,.5",_t[3]="M.5,.5 L.5,1",_t),"\u2531":(pt={},pt[1]="M.5,.5 L1,.5",pt[3]="M0,.5 L.5,.5 L.5,1",pt),"\u2532":(vt={},vt[1]="M.5,.5 L0,.5",vt[3]="M0.5,1 L.5,.5 L1,.5",vt),"\u2535":(yt={},yt[1]="M.5,0 L.5,.5 L1,.5",yt[3]="M.5,.5 L0,.5",yt),"\u2536":(gt={},gt[1]="M.5,0 L.5,.5 L0,.5",gt[3]="M.5,.5 L1,.5",gt),"\u2537":(mt={},mt[1]="M.5,.5 L.5,0",mt[3]="M0,.5 L1,.5",mt),"\u2538":(St={},St[1]="M0,.5 L1,.5",St[3]="M.5,.5 L.5,0",St),"\u2539":(bt={},bt[1]="M.5,.5 L1,.5",bt[3]="M.5,0 L.5,.5 L0,.5",bt),"\u253A":(Ct={},Ct[1]="M.5,.5 L0,.5",Ct[3]="M.5,0 L.5,.5 L1,.5",Ct),"\u253D":(wt={},wt[1]="M.5,0 L.5,1 M.5,.5 L1,.5",wt[3]="M.5,.5 L0,.5",wt),"\u253E":(Lt={},Lt[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Lt[3]="M.5,.5 L1,.5",Lt),"\u253F":(Et={},Et[1]="M.5,0 L.5,1",Et[3]="M0,.5 L1,.5",Et),"\u2540":(xt={},xt[1]="M0,.5 L1,.5 M.5,.5 L.5,1",xt[3]="M.5,.5 L.5,0",xt),"\u2541":(Rt={},Rt[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Rt[3]="M.5,.5 L.5,1",Rt),"\u2542":(kt={},kt[1]="M0,.5 L1,.5",kt[3]="M.5,0 L.5,1",kt),"\u2543":(At={},At[1]="M0.5,1 L.5,.5 L1,.5",At[3]="M.5,0 L.5,.5 L0,.5",At),"\u2544":(Mt={},Mt[1]="M0,.5 L.5,.5 L.5,1",Mt[3]="M.5,0 L.5,.5 L1,.5",Mt),"\u2545":(Ot={},Ot[1]="M.5,0 L.5,.5 L1,.5",Ot[3]="M0,.5 L.5,.5 L.5,1",Ot),"\u2546":(Dt={},Dt[1]="M.5,0 L.5,.5 L0,.5",Dt[3]="M0.5,1 L.5,.5 L1,.5",Dt),"\u2547":(Tt={},Tt[1]="M.5,.5 L.5,1",Tt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Tt),"\u2548":(Bt={},Bt[1]="M.5,.5 L.5,0",Bt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Bt),"\u2549":(Pt={},Pt[1]="M.5,.5 L1,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Pt),"\u254A":(It={},It[1]="M.5,.5 L0,.5",It[3]="M.5,0 L.5,1 M.5,.5 L1,.5",It),"\u254C":(Nt={},Nt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Nt),"\u254D":(zt={},zt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",zt),"\u2504":(Kt={},Kt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Kt),"\u2505":(Gt={},Gt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gt),"\u2508":(Vt={},Vt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Vt),"\u2509":(Xt={},Xt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Xt),"\u254E":(Zt={},Zt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Zt),"\u254F":(Yt={},Yt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yt),"\u2506":(Jt={},Jt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Jt),"\u2507":($t={},$t[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",$t),"\u250A":(Qt={},Qt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Qt),"\u250B":(er={},er[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",er),"\u256D":(tr={},tr[1]="C.5,1,.5,.5,1,.5",tr),"\u256E":(rr={},rr[1]="C.5,1,.5,.5,0,.5",rr),"\u256F":(ir={},ir[1]="C.5,0,.5,.5,0,.5",ir),"\u2570":(nr={},nr[1]="C.5,0,.5,.5,1,.5",nr)},c.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0},"\uE0B1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0},"\uE0B3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},c.tryDrawCustomChar=function(P,I,se,ve,Le,me){var ne=c.blockElementDefinitions[I];if(ne)return function(re,ye,Te,Be,Me,Oe){for(var ue=0;ue7&&parseInt(Q.slice(7,9),16)||1;else{if(!Q.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Q+'" when drawing pattern glyph');He=(ue=ar(Q.substring(5,Q.length-1).split(",").map(function(We){return parseFloat(We)}),4))[0],De=ue[1],Ae=ue[2],Fe=ue[3]}for(var Re=0;Re{Object.defineProperty(c,"__esModule",{value:!0}),c.GridCache=void 0;var w=function(){function p(){this.cache=[]}return p.prototype.resize=function(u,f){for(var d=0;d=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.LinkRenderLayer=void 0;var m=w(1546),v=w(8803),a=w(2040),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b,g){var S=h.call(this,e,"link",t,!0,i,n,y,b,g)||this;return l.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),l.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),s.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),s.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),S}return u(r,h),r.prototype.resize=function(e){h.prototype.resize.call(this,e),this._state=void 0},r.prototype.reset=function(){this._clearCurrentLink()},r.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},r.prototype._onShowLinkUnderline=function(e){if(e.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,a.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;L--)(S=s[L])&&(k=(C<3?S(k):C>3?S(y,b,k):S(y,b))||k);return C>3&&k&&Object.defineProperty(y,b,k),k},d=this&&this.__param||function(s,y){return function(b,g){y(b,g,s)}},m=this&&this.__values||function(s){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&s[y],g=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&g>=s.length&&(s=void 0),{value:s&&s[g++],done:!s}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Renderer=void 0;var v=w(9596),a=w(4149),o=w(2512),_=w(5098),h=w(844),r=w(4725),e=w(2585),t=w(1420),i=w(8460),n=1,l=function(s){function y(b,g,S,C,k,L,R,x){var E=s.call(this)||this;E._colors=b,E._screenElement=g,E._bufferService=L,E._charSizeService=R,E._optionsService=x,E._id=n++,E._onRequestRedraw=new i.EventEmitter;var M=E._optionsService.rawOptions.allowTransparency;return E._renderLayers=[k.createInstance(v.TextRenderLayer,E._screenElement,0,E._colors,M,E._id),k.createInstance(a.SelectionRenderLayer,E._screenElement,1,E._colors,E._id),k.createInstance(_.LinkRenderLayer,E._screenElement,2,E._colors,E._id,S,C),k.createInstance(o.CursorRenderLayer,E._screenElement,3,E._colors,E._id,E._onRequestRedraw)],E.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},E._devicePixelRatio=window.devicePixelRatio,E._updateDimensions(),E.onOptionsChanged(),E}return u(y,s),Object.defineProperty(y.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.dispose()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}s.prototype.dispose.call(this),(0,t.removeTerminalFromCache)(this._id)},y.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},y.prototype.setColors=function(b){var g,S;this._colors=b;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next()){var L=k.value;L.setColors(this._colors),L.reset()}}catch(R){g={error:R}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.onResize=function(b,g){var S,C;this._updateDimensions();try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.resize(this.dimensions)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},y.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},y.prototype.onBlur=function(){this._runOperation(function(b){return b.onBlur()})},y.prototype.onFocus=function(){this._runOperation(function(b){return b.onFocus()})},y.prototype.onSelectionChanged=function(b,g,S){S===void 0&&(S=!1),this._runOperation(function(C){return C.onSelectionChanged(b,g,S)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},y.prototype.onCursorMove=function(){this._runOperation(function(b){return b.onCursorMove()})},y.prototype.onOptionsChanged=function(){this._runOperation(function(b){return b.onOptionsChanged()})},y.prototype.clear=function(){this._runOperation(function(b){return b.reset()})},y.prototype._runOperation=function(b){var g,S;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next())b(k.value)}catch(L){g={error:L}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.renderRows=function(b,g){var S,C;try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.onGridChanged(b,g)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}},y.prototype.clearTextureAtlas=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.clearTextureAtlas()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}},y.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},f([d(4,e.IInstantiationService),d(5,e.IBufferService),d(6,r.ICharSizeService),d(7,e.IOptionsService)],y)}(h.Disposable);c.Renderer=l},1752:(W,c)=>{function w(p){return 57508<=p&&p<=57558}Object.defineProperty(c,"__esModule",{value:!0}),c.excludeFromContrastRatioDemands=c.isPowerlineGlyph=c.throwIfFalsy=void 0,c.throwIfFalsy=function(p){if(!p)throw new Error("value must not be falsy");return p},c.isPowerlineGlyph=w,c.excludeFromContrastRatioDemands=function(p){return w(p)||function(u){return 9472<=u&&u<=9631}(p)}},4149:function(W,c,w){var p,u=this&&this.__extends||(p=function(o,_){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,r){h.__proto__=r}||function(h,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(h[e]=r[e])},p(o,_)},function(o,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function h(){this.constructor=o}p(o,_),o.prototype=_===null?Object.create(_):(h.prototype=_.prototype,new h)}),f=this&&this.__decorate||function(o,_,h,r){var e,t=arguments.length,i=t<3?_:r===null?r=Object.getOwnPropertyDescriptor(_,h):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,_,h,r);else for(var n=o.length-1;n>=0;n--)(e=o[n])&&(i=(t<3?e(i):t>3?e(_,h,i):e(_,h))||i);return t>3&&i&&Object.defineProperty(_,h,i),i},d=this&&this.__param||function(o,_){return function(h,r){_(h,r,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionRenderLayer=void 0;var m=w(1546),v=w(2585),a=function(o){function _(h,r,e,t,i,n,l){var s=o.call(this,h,"selection",r,!0,e,t,i,n,l)||this;return s._clearState(),s}return u(_,o),_.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},_.prototype.resize=function(h){o.prototype.resize.call(this,h),this._clearState()},_.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},_.prototype.onSelectionChanged=function(h,r,e){if(o.prototype.onSelectionChanged.call(this,h,r,e),this._didStateChange(h,r,e,this._bufferService.buffer.ydisp))if(this._clearAll(),h&&r){var t=h[1]-this._bufferService.buffer.ydisp,i=r[1]-this._bufferService.buffer.ydisp,n=Math.max(t,0),l=Math.min(i,this._bufferService.rows-1);if(n>=this._bufferService.rows||l<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,e){var s=h[0],y=r[0]-s,b=l-n+1;this._fillCells(s,n,y,b)}else{s=t===n?h[0]:0;var g=n===i?r[0]:this._bufferService.cols;this._fillCells(s,n,g-s,1);var S=Math.max(l-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,S),n!==l){var C=i===l?r[0]:this._bufferService.cols;this._fillCells(0,l,C,1)}}this._state.start=[h[0],h[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=e,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},_.prototype._didStateChange=function(h,r,e,t){return!this._areCoordinatesEqual(h,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||e!==this._state.columnSelectMode||t!==this._state.ydisp},_.prototype._areCoordinatesEqual=function(h,r){return!(!h||!r)&&h[0]===r[0]&&h[1]===r[1]},f([d(4,v.IBufferService),d(5,v.IOptionsService),d(6,v.IDecorationService)],_)}(m.BaseRenderLayer);c.SelectionRenderLayer=a},9596:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.TextRenderLayer=void 0;var v=w(3700),a=w(1546),o=w(3734),_=w(643),h=w(511),r=w(2585),e=w(4725),t=w(4269),i=function(n){function l(s,y,b,g,S,C,k,L,R){var x=n.call(this,s,"text",y,g,b,S,C,k,R)||this;return x._characterJoinerService=L,x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new h.CellData,x._state=new v.GridCache,x}return u(l,n),l.prototype.resize=function(s){n.prototype.resize.call(this,s);var y=this._getFont(!1,!1);this._characterWidth===s.scaledCharWidth&&this._characterFont===y||(this._characterWidth=s.scaledCharWidth,this._characterFont=y,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(s,y,b){for(var g=s;g<=y;g++)for(var S=g+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.lines.get(S),k=this._characterJoinerService.getJoinedCharacters(S),L=0;L0&&L===k[0][0]){x=!0;var M=k.shift();R=new t.JoinedCellData(this._workCell,C.translateToString(!0,M[0],M[1]),M[1]-M[0]),E=M[1]-1}!x&&this._isOverlapping(R)&&Ethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[y]=b,b},f([d(5,r.IBufferService),d(6,r.IOptionsService),d(7,e.ICharacterJoinerService),d(8,r.IDecorationService)],l)}(a.BaseRenderLayer);c.TextRenderLayer=i},9616:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BaseCharAtlas=void 0;var w=function(){function p(){this._didWarmUp=!1}return p.prototype.dispose=function(){},p.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},p.prototype._doWarmUp=function(){},p.prototype.clear=function(){},p.prototype.beginFrame=function(){},p}();c.BaseCharAtlas=w},1420:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.removeTerminalFromCache=c.acquireCharAtlas=void 0;var p=w(2040),u=w(1906),f=[];c.acquireCharAtlas=function(d,m,v,a,o){for(var _=(0,p.generateConfig)(a,o,d,v),h=0;h=0){if((0,p.configEquals)(e.config,_))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),f.splice(h,1)):e.ownedBy.splice(r,1);break}}for(h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.is256Color=c.configEquals=c.generateConfig=void 0;var p=w(643);c.generateConfig=function(u,f,d,m){var v={foreground:m.foreground,background:m.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:m.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:u,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:v}},c.configEquals=function(u,f){for(var d=0;d{Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR_ATLAS_CELL_SPACING=c.TEXT_BASELINE=c.DIM_OPACITY=c.INVERTED_DEFAULT_COLOR=void 0;var p=w(6114);c.INVERTED_DEFAULT_COLOR=257,c.DIM_OPACITY=.5,c.TEXT_BASELINE=p.isFirefox||p.isLegacyEdge?"bottom":"ideographic",c.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,c,w){var p,u=this&&this.__extends||(p=function(s,y){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&(b[S]=g[S])},p(s,y)},function(s,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=s}p(s,y),s.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)});Object.defineProperty(c,"__esModule",{value:!0}),c.NoneCharAtlas=c.DynamicCharAtlas=c.getGlyphCacheKey=void 0;var f=w(8803),d=w(9616),m=w(5680),v=w(7001),a=w(6114),o=w(1752),_=w(8055),h=1024,r=1024,e={css:"rgba(0, 0, 0, 0)",rgba:0};function t(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}c.getGlyphCacheKey=t;var i=function(s){function y(b,g){var S=s.call(this)||this;S._config=g,S._drawToCacheCount=0,S._glyphsWaitingOnBitmap=[],S._bitmapCommitTimeout=null,S._bitmap=null,S._cacheCanvas=b.createElement("canvas"),S._cacheCanvas.width=h,S._cacheCanvas.height=r,S._cacheCtx=(0,o.throwIfFalsy)(S._cacheCanvas.getContext("2d",{alpha:!0}));var C=b.createElement("canvas");C.width=S._config.scaledCharWidth,C.height=S._config.scaledCharHeight,S._tmpCtx=(0,o.throwIfFalsy)(C.getContext("2d",{alpha:S._config.allowTransparency})),S._width=Math.floor(h/S._config.scaledCharWidth),S._height=Math.floor(r/S._config.scaledCharHeight);var k=S._width*S._height;return S._cacheMap=new v.LRUMap(k),S._cacheMap.prealloc(k),S}return u(y,s),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.clear=function(){if(this._cacheMap.size>0){var b=this._width*this._height;this._cacheMap=new v.LRUMap(b),this._cacheMap.prealloc(b)}this._cacheCtx.clearRect(0,0,h,r),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},y.prototype.draw=function(b,g,S,C){if(g.code===32)return!0;if(!this._canCache(g))return!1;var k=t(g),L=this._cacheMap.get(k);if(L!=null)return this._drawFromCache(b,L,S,C),!0;if(this._drawToCacheCount<100){var R;R=this._cacheMap.size>>24,S=y.rgba>>>16&255,C=y.rgba>>>8&255,k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.LRUMap=void 0;var w=function(){function p(u){this.capacity=u,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return p.prototype._unlinkNode=function(u){var f=u.prev,d=u.next;u===this._head&&(this._head=d),u===this._tail&&(this._tail=f),f!==null&&(f.next=d),d!==null&&(d.prev=f)},p.prototype._appendNode=function(u){var f=this._tail;f!==null&&(f.next=u),u.prev=f,u.next=null,this._tail=u,this._head===null&&(this._head=u)},p.prototype.prealloc=function(u){for(var f=this._nodePool,d=0;d=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=u,d.value=f,this._map[u]=d;else{var m=this._nodePool;m.length>0?((d=m.pop()).key=u,d.value=f):d={prev:null,next:null,key:u,value:f},this._map[u]=d,this.size++}this._appendNode(d)},p}();c.LRUMap=w},1296:function(W,c,w){var p,u=this&&this.__extends||(p=function(g,S){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(C[L]=k[L])},p(g,S)},function(g,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function C(){this.constructor=g}p(g,S),g.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),f=this&&this.__decorate||function(g,S,C,k){var L,R=arguments.length,x=R<3?S:k===null?k=Object.getOwnPropertyDescriptor(S,C):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(g,S,C,k);else for(var E=g.length-1;E>=0;E--)(L=g[E])&&(x=(R<3?L(x):R>3?L(S,C,x):L(S,C))||x);return R>3&&x&&Object.defineProperty(S,C,x),x},d=this&&this.__param||function(g,S){return function(C,k){S(C,k,g)}},m=this&&this.__values||function(g){var S=typeof Symbol=="function"&&Symbol.iterator,C=S&&g[S],k=0;if(C)return C.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&k>=g.length&&(g=void 0),{value:g&&g[k++],done:!g}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRenderer=void 0;var v=w(3787),a=w(8803),o=w(844),_=w(4725),h=w(2585),r=w(8460),e=w(8055),t=w(9631),i="xterm-dom-renderer-owner-",n="xterm-fg-",l="xterm-bg-",s="xterm-focus",y=1,b=function(g){function S(C,k,L,R,x,E,M,T,U,q){var F=g.call(this)||this;return F._colors=C,F._element=k,F._screenElement=L,F._viewportElement=R,F._linkifier=x,F._linkifier2=E,F._charSizeService=T,F._optionsService=U,F._bufferService=q,F._terminalClass=y++,F._rowElements=[],F._rowContainer=document.createElement("div"),F._rowContainer.classList.add("xterm-rows"),F._rowContainer.style.lineHeight="normal",F._rowContainer.setAttribute("aria-hidden","true"),F._refreshRowElements(F._bufferService.cols,F._bufferService.rows),F._selectionContainer=document.createElement("div"),F._selectionContainer.classList.add("xterm-selection"),F._selectionContainer.setAttribute("aria-hidden","true"),F.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},F._updateDimensions(),F._injectCss(),F._rowFactory=M.createInstance(v.DomRendererRowFactory,document,F._colors),F._element.classList.add(i+F._terminalClass),F._screenElement.appendChild(F._rowContainer),F._screenElement.appendChild(F._selectionContainer),F.register(F._linkifier.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F.register(F._linkifier2.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier2.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F}return u(S,g),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this._element.classList.remove(i+this._terminalClass),(0,t.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),g.prototype.dispose.call(this)},S.prototype._updateDimensions=function(){var C,k;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next()){var x=R.value;x.style.width=this.dimensions.canvasWidth+"px",x.style.height=this.dimensions.actualCellHeight+"px",x.style.lineHeight=this.dimensions.actualCellHeight+"px",x.style.overflow="hidden"}}catch(M){C={error:M}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},S.prototype.setColors=function(C){this._colors=C,this._injectCss()},S.prototype._injectCss=function(){var C=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var k=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";k+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",k+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",k+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",k+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",k+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(L,R){k+=C._terminalSelector+" ."+n+R+" { color: "+L.css+"; }"+C._terminalSelector+" ."+l+R+" { background-color: "+L.css+"; }"}),k+=this._terminalSelector+" ."+n+a.INVERTED_DEFAULT_COLOR+" { color: "+e.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+l+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=k},S.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},S.prototype._refreshRowElements=function(C,k){for(var L=this._rowElements.length;L<=k;L++){var R=document.createElement("div");this._rowContainer.appendChild(R),this._rowElements.push(R)}for(;this._rowElements.length>k;)this._rowContainer.removeChild(this._rowElements.pop())},S.prototype.onResize=function(C,k){this._refreshRowElements(C,k),this._updateDimensions()},S.prototype.onCharSizeChanged=function(){this._updateDimensions()},S.prototype.onBlur=function(){this._rowContainer.classList.remove(s)},S.prototype.onFocus=function(){this._rowContainer.classList.add(s)},S.prototype.onSelectionChanged=function(C,k,L){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(C,k,L),this.renderRows(0,this._bufferService.rows-1),C&&k){var R=C[1]-this._bufferService.buffer.ydisp,x=k[1]-this._bufferService.buffer.ydisp,E=Math.max(R,0),M=Math.min(x,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||M<0)){var T=document.createDocumentFragment();if(L){var U=C[0]>k[0];T.appendChild(this._createSelectionElement(E,U?k[0]:C[0],U?C[0]:k[0],M-E+1))}else{var q=R===E?C[0]:0,F=E===x?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(E,q,F));var z=M-E-1;if(T.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,z)),E!==M){var N=x===M?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(M,0,N))}}this._selectionContainer.appendChild(T)}}},S.prototype._createSelectionElement=function(C,k,L,R){R===void 0&&(R=1);var x=document.createElement("div");return x.style.height=R*this.dimensions.actualCellHeight+"px",x.style.top=C*this.dimensions.actualCellHeight+"px",x.style.left=k*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(L-k)+"px",x},S.prototype.onCursorMove=function(){},S.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},S.prototype.clear=function(){var C,k;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next())R.value.innerText=""}catch(x){C={error:x}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}},S.prototype.renderRows=function(C,k){for(var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,R=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.rawOptions.cursorBlink,E=C;E<=k;E++){var M=this._rowElements[E];M.innerText="";var T=E+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(T),q=this._optionsService.rawOptions.cursorStyle;M.appendChild(this._rowFactory.createRow(U,T,T===L,q,R,x,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(S.prototype,"_terminalSelector",{get:function(){return"."+i+this._terminalClass},enumerable:!1,configurable:!0}),S.prototype._onLinkHover=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!0)},S.prototype._onLinkLeave=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!1)},S.prototype._setCellUnderline=function(C,k,L,R,x,E){for(;C!==k||L!==R;){var M=this._rowElements[L];if(!M)return;var T=M.children[C];T&&(T.style.textDecoration=E?"underline":"none"),++C>=x&&(C=0,L++)}},f([d(6,h.IInstantiationService),d(7,_.ICharSizeService),d(8,h.IOptionsService),d(9,h.IBufferService)],S)}(o.Disposable);c.DomRenderer=b},3787:function(W,c,w){var p=this&&this.__decorate||function(i,n,l,s){var y,b=arguments.length,g=b<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,l):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,l,s);else for(var S=i.length-1;S>=0;S--)(y=i[S])&&(g=(b<3?y(g):b>3?y(n,l,g):y(n,l))||g);return b>3&&g&&Object.defineProperty(n,l,g),g},u=this&&this.__param||function(i,n){return function(l,s){n(l,s,i)}},f=this&&this.__values||function(i){var n=typeof Symbol=="function"&&Symbol.iterator,l=n&&i[n],s=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRendererRowFactory=c.CURSOR_STYLE_UNDERLINE_CLASS=c.CURSOR_STYLE_BAR_CLASS=c.CURSOR_STYLE_BLOCK_CLASS=c.CURSOR_BLINK_CLASS=c.CURSOR_CLASS=c.STRIKETHROUGH_CLASS=c.UNDERLINE_CLASS=c.ITALIC_CLASS=c.DIM_CLASS=c.BOLD_CLASS=void 0;var d=w(8803),m=w(643),v=w(511),a=w(2585),o=w(8055),_=w(4725),h=w(4269),r=w(1752);c.BOLD_CLASS="xterm-bold",c.DIM_CLASS="xterm-dim",c.ITALIC_CLASS="xterm-italic",c.UNDERLINE_CLASS="xterm-underline",c.STRIKETHROUGH_CLASS="xterm-strikethrough",c.CURSOR_CLASS="xterm-cursor",c.CURSOR_BLINK_CLASS="xterm-cursor-blink",c.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",c.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",c.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var e=function(){function i(n,l,s,y,b,g){this._document=n,this._colors=l,this._characterJoinerService=s,this._optionsService=y,this._coreService=b,this._decorationService=g,this._workCell=new v.CellData,this._columnSelectMode=!1}return i.prototype.setColors=function(n){this._colors=n},i.prototype.onSelectionChanged=function(n,l,s){this._selectionStart=n,this._selectionEnd=l,this._columnSelectMode=s},i.prototype.createRow=function(n,l,s,y,b,g,S,C){for(var k,L,R=this._document.createDocumentFragment(),x=this._characterJoinerService.getJoinedCharacters(l),E=0,M=Math.min(n.length,C)-1;M>=0;M--)if(n.loadCell(M,this._workCell).getCode()!==m.NULL_CELL_CODE||s&&M===b){E=M+1;break}for(M=0;M0&&M===x[0][0]){U=!0;var z=x.shift();F=new h.JoinedCellData(this._workCell,n.translateToString(!0,z[0],z[1]),z[1]-z[0]),q=z[1]-1,T=F.getWidth()}var N=this._document.createElement("span");if(T>1&&(N.style.width=S*T+"px"),U&&(N.style.display="inline",b>=M&&b<=q&&(b=M)),!this._coreService.isCursorHidden&&s&&M===b)switch(N.classList.add(c.CURSOR_CLASS),g&&N.classList.add(c.CURSOR_BLINK_CLASS),y){case"bar":N.classList.add(c.CURSOR_STYLE_BAR_CLASS);break;case"underline":N.classList.add(c.CURSOR_STYLE_UNDERLINE_CLASS);break;default:N.classList.add(c.CURSOR_STYLE_BLOCK_CLASS)}F.isBold()&&N.classList.add(c.BOLD_CLASS),F.isItalic()&&N.classList.add(c.ITALIC_CLASS),F.isDim()&&N.classList.add(c.DIM_CLASS),F.isUnderline()&&N.classList.add(c.UNDERLINE_CLASS),F.isInvisible()?N.textContent=m.WHITESPACE_CELL_CHAR:N.textContent=F.getChars()||m.WHITESPACE_CELL_CHAR,F.isStrikethrough()&&N.classList.add(c.STRIKETHROUGH_CLASS);var A=F.getFgColor(),Y=F.getFgColorMode(),Z=F.getBgColor(),te=F.getBgColorMode(),B=!!F.isInverse();if(B){var ee=A;A=Z,Z=ee;var X=Y;Y=te,te=X}var j=void 0,O=void 0,D=!1;try{for(var H=(k=void 0,f(this._decorationService.getDecorationsAtCell(M,l))),G=H.next();!G.done;G=H.next()){var V=G.value;V.options.layer!=="top"&&D||(V.backgroundColorRGB&&(te=50331648,Z=V.backgroundColorRGB.rgba>>8&16777215,j=V.backgroundColorRGB),V.foregroundColorRGB&&(Y=50331648,A=V.foregroundColorRGB.rgba>>8&16777215,O=V.foregroundColorRGB),D=V.options.layer==="top")}}catch(le){k={error:le}}finally{try{G&&!G.done&&(L=H.return)&&L.call(H)}finally{if(k)throw k.error}}var $=this._isCellInSelection(M,l);D||this._colors.selectionForeground&&$&&(Y=50331648,A=this._colors.selectionForeground.rgba>>8&16777215,O=this._colors.selectionForeground),$&&(j=this._colors.selectionOpaque,D=!0),D&&N.classList.add("xterm-decoration-top");var ie=void 0;switch(te){case 16777216:case 33554432:ie=this._colors.ansi[Z],N.classList.add("xterm-bg-"+Z);break;case 50331648:ie=o.rgba.toColor(Z>>16,Z>>8&255,255&Z),this._addStyle(N,"background-color:#"+t((Z>>>0).toString(16),"0",6));break;default:B?(ie=this._colors.foreground,N.classList.add("xterm-bg-"+d.INVERTED_DEFAULT_COLOR)):ie=this._colors.background}switch(Y){case 16777216:case 33554432:F.isBold()&&A<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(A+=8),this._applyMinimumContrast(N,ie,this._colors.ansi[A],F,j,void 0)||N.classList.add("xterm-fg-"+A);break;case 50331648:var ce=o.rgba.toColor(A>>16&255,A>>8&255,255&A);this._applyMinimumContrast(N,ie,ce,F,j,O)||this._addStyle(N,"color:#"+t(A.toString(16),"0",6));break;default:this._applyMinimumContrast(N,ie,this._colors.foreground,F,j,void 0)||B&&N.classList.add("xterm-fg-"+d.INVERTED_DEFAULT_COLOR)}R.appendChild(N),M=q}}return R},i.prototype._applyMinimumContrast=function(n,l,s,y,b,g){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,r.excludeFromContrastRatioDemands)(y.getCode()))return!1;var S=void 0;return b||g||(S=this._colors.contrastCache.getColor(l.rgba,s.rgba)),S===void 0&&(S=o.color.ensureContrastRatio(b||l,g||s,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((b||l).rgba,(g||s).rgba,S!=null?S:null)),!!S&&(this._addStyle(n,"color:"+S.css),!0)},i.prototype._addStyle=function(n,l){n.setAttribute("style",""+(n.getAttribute("style")||"")+l+";")},i.prototype._isCellInSelection=function(n,l){var s=this._selectionStart,y=this._selectionEnd;return!(!s||!y)&&(this._columnSelectMode?s[0]<=y[0]?n>=s[0]&&l>=s[1]&&n=s[1]&&n>=y[0]&&l<=y[1]:l>s[1]&&l=s[0]&&n=s[0])},p([u(2,_.ICharacterJoinerService),u(3,a.IOptionsService),u(4,a.ICoreService),u(5,a.IDecorationService)],i)}();function t(i,n,l){for(;i.length{Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionModel=void 0;var w=function(){function p(u){this._bufferService=u,this.isSelectAllActive=!1,this.selectionStartLength=0}return p.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(p.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?u%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)-1]:[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[u,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[Math.max(u,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var u},enumerable:!1,configurable:!0}),p.prototype.areSelectionValuesReversed=function(){var u=this.selectionStart,f=this.selectionEnd;return!(!u||!f)&&(u[1]>f[1]||u[1]===f[1]&&u[0]>f[0])},p.prototype.onTrim=function(u){return this.selectionStart&&(this.selectionStart[1]-=u),this.selectionEnd&&(this.selectionEnd[1]-=u),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},p}();c.SelectionModel=w},428:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharSizeService=void 0;var f=w(2585),d=w(8460),m=function(){function a(o,_,h){this._optionsService=h,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new v(o,_,this._optionsService)}return Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),a.prototype.measure=function(){var o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},p([u(2,f.IOptionsService)],a)}();c.CharSizeService=m;var v=function(){function a(o,_,h){this._document=o,this._parentElement=_,this._optionsService=h,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return a.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},a}()},4269:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharacterJoinerService=c.JoinedCellData=void 0;var m=w(3734),v=w(643),a=w(511),o=w(2585),_=function(r){function e(t,i,n){var l=r.call(this)||this;return l.content=0,l.combinedData="",l.fg=t.fg,l.bg=t.bg,l.combinedData=i,l._width=n,l}return u(e,r),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(t){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(m.AttributeData);c.JoinedCellData=_;var h=function(){function r(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return r.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},r.prototype.deregister=function(e){for(var t=0;t1)for(var C=this._getJoinedRanges(n,y,s,t,l),k=0;k1)for(C=this._getJoinedRanges(n,y,s,t,l),k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreBrowserService=void 0;var w=function(){function p(u){this._textarea=u}return Object.defineProperty(p.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),p}();c.CoreBrowserService=w},8934:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseService=void 0;var f=w(4725),d=w(9806),m=function(){function v(a,o){this._renderService=a,this._charSizeService=o}return v.prototype.getCoords=function(a,o,_,h,r){return(0,d.getCoords)(window,a,o,_,h,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)},v.prototype.getRawByteCoords=function(a,o,_,h){var r=this.getCoords(a,o,_,h);return(0,d.getRawByteCoords)(r)},p([u(0,f.IRenderService),u(1,f.ICharSizeService)],v)}();c.MouseService=m},3230:function(W,c,w){var p,u=this&&this.__extends||(p=function(t,i){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(n[s]=l[s])},p(t,i)},function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}p(t,i),t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}),f=this&&this.__decorate||function(t,i,n,l){var s,y=arguments.length,b=y<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(t,i,n,l);else for(var g=t.length-1;g>=0;g--)(s=t[g])&&(b=(y<3?s(b):y>3?s(i,n,b):s(i,n))||b);return y>3&&b&&Object.defineProperty(i,n,b),b},d=this&&this.__param||function(t,i){return function(n,l){i(n,l,t)}};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderService=void 0;var m=w(6193),v=w(8460),a=w(844),o=w(5596),_=w(3656),h=w(2585),r=w(4725),e=function(t){function i(n,l,s,y,b,g,S){var C=t.call(this)||this;if(C._renderer=n,C._rowCount=l,C._charSizeService=b,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new v.EventEmitter,C._onRenderedViewportChange=new v.EventEmitter,C._onRender=new v.EventEmitter,C._onRefreshRequest=new v.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new m.RenderDebouncer(function(L,R){return C._renderRows(L,R)}),C.register(C._renderDebouncer),C._screenDprMonitor=new o.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(S.onResize(function(){return C._fullRefresh()})),C.register(S.buffers.onBufferActivate(function(){var L;return(L=C._renderer)===null||L===void 0?void 0:L.clear()})),C.register(y.onOptionChange(function(){return C._handleOptionsChanged()})),C.register(C._charSizeService.onCharSizeChange(function(){return C.onCharSizeChanged()})),C.register(g.onDecorationRegistered(function(){return C._fullRefresh()})),C.register(g.onDecorationRemoved(function(){return C._fullRefresh()})),C._renderer.onRequestRedraw(function(L){return C.refreshRows(L.start,L.end,!0)}),C.register((0,_.addDisposableDomListener)(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var k=new IntersectionObserver(function(L){return C._onIntersectionChange(L[L.length-1])},{threshold:0});k.observe(s),C.register({dispose:function(){return k.disconnect()}})}return C}return u(i,t),Object.defineProperty(i.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),i.prototype._onIntersectionChange=function(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},i.prototype.refreshRows=function(n,l,s){s===void 0&&(s=!1),this._isPaused?this._needsFullRefresh=!0:(s||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,l,this._rowCount))},i.prototype._renderRows=function(n,l){this._renderer.renderRows(n,l),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:l}),this._onRender.fire({start:n,end:l}),this._isNextRenderRedrawOnly=!0},i.prototype.resize=function(n,l){this._rowCount=l,this._fireOnCanvasResize()},i.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},i.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},i.prototype.dispose=function(){t.prototype.dispose.call(this)},i.prototype.setRenderer=function(n){var l=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRedraw(function(s){return l.refreshRows(s.start,s.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},i.prototype.addRefreshCallback=function(n){return this._renderDebouncer.addRefreshCallback(n)},i.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},i.prototype.clearTextureAtlas=function(){var n,l;(l=(n=this._renderer)===null||n===void 0?void 0:n.clearTextureAtlas)===null||l===void 0||l.call(n),this._fullRefresh()},i.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},i.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},i.prototype.onResize=function(n,l){this._renderer.onResize(n,l),this._fullRefresh()},i.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},i.prototype.onBlur=function(){this._renderer.onBlur()},i.prototype.onFocus=function(){this._renderer.onFocus()},i.prototype.onSelectionChanged=function(n,l,s){this._selectionState.start=n,this._selectionState.end=l,this._selectionState.columnSelectMode=s,this._renderer.onSelectionChanged(n,l,s)},i.prototype.onCursorMove=function(){this._renderer.onCursorMove()},i.prototype.clear=function(){this._renderer.clear()},f([d(3,h.IOptionsService),d(4,r.ICharSizeService),d(5,h.IDecorationService),d(6,h.IBufferService)],i)}(a.Disposable);c.RenderService=e},9312:function(W,c,w){var p,u=this&&this.__extends||(p=function(y,b){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,S){g.__proto__=S}||function(g,S){for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&(g[C]=S[C])},p(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function g(){this.constructor=y}p(y,b),y.prototype=b===null?Object.create(b):(g.prototype=b.prototype,new g)}),f=this&&this.__decorate||function(y,b,g,S){var C,k=arguments.length,L=k<3?b:S===null?S=Object.getOwnPropertyDescriptor(b,g):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(y,b,g,S);else for(var R=y.length-1;R>=0;R--)(C=y[R])&&(L=(k<3?C(L):k>3?C(b,g,L):C(b,g))||L);return k>3&&L&&Object.defineProperty(b,g,L),L},d=this&&this.__param||function(y,b){return function(g,S){b(g,S,y)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionService=void 0;var m=w(6114),v=w(456),a=w(511),o=w(8460),_=w(4725),h=w(2585),r=w(9806),e=w(9504),t=w(844),i=w(4841),n=String.fromCharCode(160),l=new RegExp(n,"g"),s=function(y){function b(g,S,C,k,L,R,x,E){var M=y.call(this)||this;return M._element=g,M._screenElement=S,M._linkifier=C,M._bufferService=k,M._coreService=L,M._mouseService=R,M._optionsService=x,M._renderService=E,M._dragScrollAmount=0,M._enabled=!0,M._workCell=new a.CellData,M._mouseDownTimeStamp=0,M._oldHasSelection=!1,M._oldSelectionStart=void 0,M._oldSelectionEnd=void 0,M._onLinuxMouseSelection=M.register(new o.EventEmitter),M._onRedrawRequest=M.register(new o.EventEmitter),M._onSelectionChange=M.register(new o.EventEmitter),M._onRequestScrollLines=M.register(new o.EventEmitter),M._mouseMoveListener=function(T){return M._onMouseMove(T)},M._mouseUpListener=function(T){return M._onMouseUp(T)},M._coreService.onUserInput(function(){M.hasSelection&&M.clearSelection()}),M._trimListener=M._bufferService.buffer.lines.onTrim(function(T){return M._onTrim(T)}),M.register(M._bufferService.buffers.onBufferActivate(function(T){return M._onBufferActivate(T)})),M.enable(),M._model=new v.SelectionModel(M._bufferService),M._activeSelectionMode=0,M}return u(b,y),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;return!(!g||!S||g[0]===S[0]&&g[1]===S[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;if(!g||!S)return"";var C=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(g[0]===S[0])return"";for(var L=g[0]S[1]&&g[1]=S[0]&&g[0]=S[0]},b.prototype._selectWordAtCursor=function(g,S){var C,k,L=(k=(C=this._linkifier.currentLink)===null||C===void 0?void 0:C.link)===null||k===void 0?void 0:k.range;if(L)return this._model.selectionStart=[L.start.x-1,L.start.y-1],this._model.selectionStartLength=(0,i.getRangeLength)(L,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var R=this._getMouseBufferCoords(g);return!!R&&(this._selectWordAt(R,S),this._model.selectionEnd=void 0,!0)},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(g,S){this._model.clearSelection(),g=Math.max(g,0),S=Math.min(S,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,g],this._model.selectionEnd=[this._bufferService.cols,S],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(g){this._model.onTrim(g)&&this.refresh()},b.prototype._getMouseBufferCoords=function(g){var S=this._mouseService.getCoords(g,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(S)return S[0]--,S[1]--,S[1]+=this._bufferService.buffer.ydisp,S},b.prototype._getMouseEventScrollAmount=function(g){var S=(0,r.getCoordsRelativeToElement)(window,g,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return S>=0&&S<=C?0:(S>C&&(S-=C),S=Math.min(Math.max(S,-50),50),(S/=50)/Math.abs(S)+Math.round(14*S))},b.prototype.shouldForceSelection=function(g){return m.isMac?g.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:g.shiftKey},b.prototype.onMouseDown=function(g){if(this._mouseDownTimeStamp=g.timeStamp,(g.button!==2||!this.hasSelection)&&g.button===0){if(!this._enabled){if(!this.shouldForceSelection(g))return;g.stopPropagation()}g.preventDefault(),this._dragScrollAmount=0,this._enabled&&g.shiftKey?this._onIncrementalClick(g):g.detail===1?this._onSingleClick(g):g.detail===2?this._onDoubleClick(g):g.detail===3&&this._onTripleClick(g),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var g=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return g._dragScroll()},50)},b.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},b.prototype._onIncrementalClick=function(g){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(g))},b.prototype._onSingleClick=function(g){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(g)?3:0,this._model.selectionStart=this._getMouseBufferCoords(g),this._model.selectionStart){this._model.selectionEnd=void 0;var S=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);S&&S.length!==this._model.selectionStart[0]&&S.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(g){this._selectWordAtCursor(g,!0)&&(this._activeSelectionMode=1)},b.prototype._onTripleClick=function(g){var S=this._getMouseBufferCoords(g);S&&(this._activeSelectionMode=2,this._selectLineAt(S[1]))},b.prototype.shouldColumnSelect=function(g){return g.altKey&&!(m.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(g){if(g.stopImmediatePropagation(),this._model.selectionStart){var S=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(g),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(g.ydisp+this._bufferService.rows,g.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=g.ydisp),this.refresh()}},b.prototype._onMouseUp=function(g){var S=g.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&S<500&&g.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(g,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var k=(0,e.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(k,!0)}}}else this._fireEventIfSelectionChanged()},b.prototype._fireEventIfSelectionChanged=function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd,C=!(!g||!S||g[0]===S[0]&&g[1]===S[1]);C?g&&S&&(this._oldSelectionStart&&this._oldSelectionEnd&&g[0]===this._oldSelectionStart[0]&&g[1]===this._oldSelectionStart[1]&&S[0]===this._oldSelectionEnd[0]&&S[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(g,S,C)):this._oldHasSelection&&this._fireOnSelectionChange(g,S,C)},b.prototype._fireOnSelectionChange=function(g,S,C){this._oldSelectionStart=g,this._oldSelectionEnd=S,this._oldHasSelection=C,this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(g){var S=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=g.activeBuffer.lines.onTrim(function(C){return S._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(g,S){for(var C=S[0],k=0;S[0]>=k;k++){var L=g.loadCell(k,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:L>1&&S[0]!==k&&(C+=L-1)}return C},b.prototype.setSelection=function(g,S,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[g,S],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()},b.prototype.rightClickSelect=function(g){this._isClickInSelection(g)||(this._selectWordAtCursor(g,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},b.prototype._getWordAt=function(g,S,C,k){if(C===void 0&&(C=!0),k===void 0&&(k=!0),!(g[0]>=this._bufferService.cols)){var L=this._bufferService.buffer,R=L.lines.get(g[1]);if(R){var x=L.translateBufferLineToString(g[1],!1),E=this._convertViewportColToCharacterIndex(R,g),M=E,T=g[0]-E,U=0,q=0,F=0,z=0;if(x.charAt(E)===" "){for(;E>0&&x.charAt(E-1)===" ";)E--;for(;M1&&(z+=Y-1,M+=Y-1);N>0&&E>0&&!this._isCharWordSeparator(R.loadCell(N-1,this._workCell));){R.loadCell(N-1,this._workCell);var Z=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,N--):Z>1&&(F+=Z-1,E-=Z-1),E--,N--}for(;A1&&(z+=te-1,M+=te-1),M++,A++}}M++;var B=E+T-U+F,ee=Math.min(this._bufferService.cols,M-E+U+q-F-z);if(S||x.slice(E,M).trim()!==""){if(C&&B===0&&R.getCodePoint(0)!==32){var X=L.lines.get(g[1]-1);if(X&&R.isWrapped&&X.getCodePoint(this._bufferService.cols-1)!==32){var j=this._getWordAt([this._bufferService.cols-1,g[1]-1],!1,!0,!1);if(j){var O=this._bufferService.cols-j.start;B-=O,ee+=O}}}if(k&&B+ee===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){var D=L.lines.get(g[1]+1);if((D==null?void 0:D.isWrapped)&&D.getCodePoint(0)!==32){var H=this._getWordAt([0,g[1]+1],!1,!1,!0);H&&(ee+=H.length)}}return{start:B,length:ee}}}}},b.prototype._selectWordAt=function(g,S){var C=this._getWordAt(g,S);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,g[1]--;this._model.selectionStart=[C.start,g[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(g){var S=this._getWordAt(g,!0);if(S){for(var C=g[1];S.start<0;)S.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;S.start+S.length>this._bufferService.cols;)S.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?S.start:S.start+S.length,C]}},b.prototype._isCharWordSeparator=function(g){return g.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(g.getChars())>=0},b.prototype._selectLineAt=function(g){var S=this._bufferService.buffer.getWrappedRangeForLine(g),C={start:{x:0,y:S.first},end:{x:this._bufferService.cols-1,y:S.last}};this._model.selectionStart=[0,S.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,i.getRangeLength)(C,this._bufferService.cols)},f([d(3,h.IBufferService),d(4,h.ICoreService),d(5,_.IMouseService),d(6,h.IOptionsService),d(7,_.IRenderService)],b)}(t.Disposable);c.SelectionService=s},4725:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ICharacterJoinerService=c.ISoundService=c.ISelectionService=c.IRenderService=c.IMouseService=c.ICoreBrowserService=c.ICharSizeService=void 0;var p=w(8343);c.ICharSizeService=(0,p.createDecorator)("CharSizeService"),c.ICoreBrowserService=(0,p.createDecorator)("CoreBrowserService"),c.IMouseService=(0,p.createDecorator)("MouseService"),c.IRenderService=(0,p.createDecorator)("RenderService"),c.ISelectionService=(0,p.createDecorator)("SelectionService"),c.ISoundService=(0,p.createDecorator)("SoundService"),c.ICharacterJoinerService=(0,p.createDecorator)("CharacterJoinerService")},357:function(W,c,w){var p=this&&this.__decorate||function(m,v,a,o){var _,h=arguments.length,r=h<3?v:o===null?o=Object.getOwnPropertyDescriptor(v,a):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(m,v,a,o);else for(var e=m.length-1;e>=0;e--)(_=m[e])&&(r=(h<3?_(r):h>3?_(v,a,r):_(v,a))||r);return h>3&&r&&Object.defineProperty(v,a,r),r},u=this&&this.__param||function(m,v){return function(a,o){v(a,o,m)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SoundService=void 0;var f=w(2585),d=function(){function m(v){this._optionsService=v}return Object.defineProperty(m,"audioContext",{get:function(){if(!m._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;m._audioContext=new v}return m._audioContext},enumerable:!1,configurable:!0}),m.prototype.playBellSound=function(){var v=m.audioContext;if(v){var a=v.createBufferSource();v.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(o){a.buffer=o,a.connect(v.destination),a.start(0)})}},m.prototype._base64ToArrayBuffer=function(v){for(var a=window.atob(v),o=a.length,_=new Uint8Array(o),h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.CircularList=void 0;var p=w(8460),u=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new p.EventEmitter,this.onInsertEmitter=new p.EventEmitter,this.onTrimEmitter=new p.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(d){if(this._maxLength!==d){for(var m=new Array(d),v=0;vthis._length)for(var m=this._length;m=d;o--)this._array[this._getCyclicIndex(o+v.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o
%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,j=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,b=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,w=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function p(r){return P.copy(p[r=r=="full"?"full":"fast"])}function s(c){if(c=c.match(S),!c)return!1;var l=+c[1],o=+c[2],c=+c[3];return 1<=o&&o<=12&&1<=c&&c<=(o!=2||(c=l)%4!=0||c%100==0&&c%400!=0?N[o]:29)}function a(y,l){if(y=y.match(Z),!y)return!1;var o=y[1],c=y[2],h=y[3],y=y[5];return(o<=23&&c<=59&&h<=59||o==23&&c==59&&h==60)&&(!l||y)}(ie.exports=p).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w},p.full={date:s,time:a,"date-time":function(r){return r=r.split(n),r.length==2&&s(r[0])&&a(r[1],!0)},uri:function(r){return e.test(r)&&W.test(r)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":M,url:j,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:O,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:i,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":b,"relative-json-pointer":w};var n=/t|\s/i,e=/\/|:/,t=/[^\\]\\Z/;function i(r){if(t.test(r))return!1;try{return new RegExp(r),!0}catch{return!1}}},5689:function(ie,g,X){var P=X(3969),S=X(3724),N=X(5359),Z=X(3508),O=X(1869),W=S.ucs2length,M=X(2303),j=N.Validation;function f(n,e,t,i){var r=this,l=this._opts,o=[void 0],c={},h=[],y={},v=[],d={},u=[],A=(e=e||{schema:n,refVal:o,refs:c},function(B,C,E){var $=m.call(this,B,C,E);return 0<=$?{index:$,compiling:!0}:($=this._compilations.length,this._compilations[$]={schema:B,root:C,baseId:E},{index:$,compiling:!1})}.call(this,n,e,i)),x=this._compilations[A.index];if(A.compiling)return x.callValidate=_;var I=this._formats,T=this.RULES;try{var L=F(n,e,t,i),k=(x.validate=L,x.callValidate);return k&&(k.schema=L.schema,k.errors=null,k.refs=L.refs,k.refVal=L.refVal,k.root=L.root,k.$async=L.$async,l.sourceCode&&(k.source=L.source)),L}finally{(function(B,C,E){B=m.call(this,B,C,E),0<=B&&this._compilations.splice(B,1)}).call(this,n,e,i)}function _(){var B=x.validate,C=B.apply(this,arguments);return _.errors=B.errors,C}function F(B,C,E,$){var G=!C||C.schema==B;if(C.schema!=e.schema)return f.call(r,B,C,E,$);E=B.$async===!0,$=O({isTop:!0,schema:B,isRoot:G,baseId:$,root:C,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:N.MissingRef,RULES:T,validate:O,util:S,resolve:P,resolveRef:H,usePattern:J,useDefault:R,useCustomRule:V,opts:l,formats:I,logger:r.logger,self:r}),$=a(o,p)+a(h,b)+a(v,w)+a(u,s)+$,l.processCode&&($=l.processCode($,B));try{var K=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",$)(r,T,I,e,o,v,u,M,W,j);o[0]=K}catch(Q){throw r.logger.error("Error compiling schema, function code:",$),Q}return K.schema=B,K.errors=null,K.refs=c,K.refVal=o,K.root=G?K:C,E&&(K.$async=!0),l.sourceCode===!0&&(K.source={code:$,patterns:h,defaults:v}),K}function H(B,C,Q){C=P.url(B,C);var $=c[C];if($!==void 0)return D(G=o[$],K="refVal["+$+"]");if(!Q&&e.refs&&($=e.refs[C],$!==void 0))return D(G=e.refVal[$],K=z(C,G));var G,K=z(C),Q=P.call(r,F,e,C);if(Q!==void 0||($=t&&t[C])&&(Q=P.inlineRef($,l.inlineRefs)?$:f.call(r,$,e,t,B)),Q!==void 0)return G=Q,$=c[$=C],o[$]=G,D(Q,K);delete c[C]}function z(B,C){var E=o.length;return o[E]=C,"refVal"+(c[B]=E)}function D(B,C){return typeof B=="object"||typeof B=="boolean"?{code:C,schema:B,inline:!0}:{code:C,$async:B&&!!B.$async}}function J(B){var C=y[B];return C===void 0&&(C=y[B]=h.length,h[C]=B),"pattern"+C}function R(B){switch(typeof B){case"boolean":case"number":return""+B;case"string":return S.toQuotedString(B);case"object":if(B===null)return"null";var C=Z(B),E=d[C];return E===void 0&&(E=d[C]=v.length,v[E]=B),"default"+E}}function V(B,C,E,$){if(r._opts.validateSchema!==!1){var K=B.definition.dependencies;if(K&&!K.every(function(xe){return Object.prototype.hasOwnProperty.call(E,xe)}))throw new Error("parent schema must have all required keywords: "+K.join(","));if(K=B.definition.validateSchema,K&&!K(C)){if(K="keyword schema is invalid: "+r.errorsText(K.errors),r._opts.validateSchema!="log")throw new Error(K);r.logger.error(K)}}var G,K=B.definition.compile,Q=B.definition.inline,ee=B.definition.macro;if(K)G=K.call(r,C,E,$);else if(ee)G=ee.call(r,C,E,$),l.validateSchema!==!1&&r.validateSchema(G,!0);else if(Q)G=Q.call(r,$,B.keyword,C,E);else if(!(G=B.definition.validate))return;if(G===void 0)throw new Error('custom keyword "'+B.keyword+'"failed to compile');return K=u.length,{code:"customRule"+K,validate:u[K]=G}}}function m(n,e,t){for(var i=0;i",o=e?">":"<",c=void 0;if(!a&&typeof m!="number"&&m!==void 0)throw new Error(X+" must be number");if(!r&&i!==void 0&&typeof i!="number"&&typeof i!="boolean")throw new Error(t+" must be number or boolean");r?(f=g.util.getData(i.$data,f,g.dataPathArr),Z="exclIsNumber"+j,O="' + "+(W="op"+j)+" + '",c=t,(h=h||[]).push(M=M+(" var schemaExcl"+j+" = "+f+"; ")+(" var "+(S="exclusive"+j)+"; var "+(N="exclType"+j)+" = typeof "+(f="schemaExcl"+j)+"; if ("+N+" != 'boolean' && "+N+" != 'undefined' && "+N+" != 'number') { ")),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: {} ",g.opts.messages!==!1&&(M+=" , message: '"+t+" should be boolean' "),g.opts.verbose&&(M+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ",y=M,M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } else if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+N+" == 'number' ? ( ("+S+" = "+n+" === undefined || "+f+" "+l+"= "+n+") ? "+s+" "+o+"= "+f+" : "+s+" "+o+" "+n+" ) : ( ("+S+" = "+f+" === true) ? "+s+" "+o+"= "+n+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { var op"+j+" = "+S+" ? '"+l+"' : '"+l+"='; ",m===void 0&&(w=g.errSchemaPath+"/"+(c=t),n=f,a=r)):(O=l,(Z=typeof i=="number")&&a?(W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" ( "+n+" === undefined || "+i+" "+l+"= "+n+" ? "+s+" "+o+"= "+i+" : "+s+" "+o+" "+n+" ) || "+s+" !== "+s+") { "):(Z&&m===void 0?(S=!0,w=g.errSchemaPath+"/"+(c=t),n=i,o+="="):(Z&&(n=Math[e?"min":"max"](i,m)),i===(!Z||n)?(S=!0,w=g.errSchemaPath+"/"+(c=t),o+="="):(S=!1,O+="=")),W="'"+O+"'",M+=" if ( ",a&&(M+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),M+=" "+s+" "+o+" "+n+" || "+s+" !== "+s+") { ")),c=c||X,(h=h||[]).push(M),M="",g.createErrors!==!1?(M+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(w)+" , params: { comparison: "+W+", limit: "+n+", exclusive: "+S+" } ",g.opts.messages!==!1&&(M=M+" , message: 'should be "+O+" "+(a?"' + "+n:n+"'")),g.opts.verbose&&(M=(M+=" , schema: ")+(a?"validate.schema"+b:""+m)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+s+" "),M+=" } "):M+=" {} ";var h,y=M;return M=h.pop(),!g.compositeRule&&p?g.async?M+=" throw new ValidationError(["+y+"]); ":M+=" validate.errors = ["+y+"]; return false; ":M+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M+=" } ",p&&(M+=" else { "),M}},2407:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" "+W+".length "+(X=="maxItems"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxItems"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" items' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},1250:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || "),g.opts.unicode===!1?b+=" "+W+".length ":b+=" ucs2length("+W+") ";var m=X,f=[],m=(f.push(b+=" "+(X=="maxLength"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT be ")+(X=="maxLength"?"longer":"shorter")+" than ")+(M?"' + "+j+" + '":""+S)+" characters' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},2596:function(ie){ie.exports=function(g,X,P){var b=" ",m=g.level,j=g.dataLevel,S=g.schema[X],N=g.schemaPath+g.util.getProperty(X),Z=g.errSchemaPath+"/"+X,O=!g.opts.allErrors,W="data"+(j||""),M=g.opts.$data&&S&&S.$data,j=M?(b+=" var schema"+m+" = "+g.util.getData(S.$data,j,g.dataPathArr)+"; ","schema"+m):S;if(!M&&typeof S!="number")throw new Error(X+" must be number");b+="if ( ",M&&(b+=" ("+j+" !== undefined && typeof "+j+" != 'number') || ");var m=X,f=[],m=(f.push(b+=" Object.keys("+W+").length "+(X=="maxProperties"?">":"<")+" "+j+") { "),b="",g.createErrors!==!1?(b+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(Z)+" , params: { limit: "+j+" } ",g.opts.messages!==!1&&(b=(b=(b+=" , message: 'should NOT have ")+(X=="maxProperties"?"more":"fewer")+" than ")+(M?"' + "+j+" + '":""+S)+" properties' "),g.opts.verbose&&(b=(b+=" , schema: ")+(M?"validate.schema"+N:""+S)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+W+" "),b+=" } "):b+=" {} ",b),b=f.pop();return!g.compositeRule&&O?g.async?b+=" throw new ValidationError(["+m+"]); ":b+=" validate.errors = ["+m+"]; return false; ":b+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",b+="} ",O&&(b+=" else { "),b}},9486:function(ie){ie.exports=function(g,X,P){var S=" ",N=g.schema[X],Z=g.schemaPath+g.util.getProperty(X),O=g.errSchemaPath+"/"+X,W=!g.opts.allErrors,M=g.util.copy(g),j="",f=(M.level++,"valid"+M.level),m=M.baseId,b=!0,w=N;if(w)for(var p,s=-1,a=w.length-1;s "+l+") { ",c=M+"["+l+"]",m.schema=y,m.schemaPath=Z+"["+l+"]",m.errSchemaPath=O+"/"+l,m.errorPath=g.util.getPathExpr(g.errorPath,l,g.opts.jsonPointers,!0),m.dataPathArr[s]=l,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",S+=" } ",W&&(S+=" if ("+w+") { ",b+="}"))}typeof i=="object"&&(g.opts.strictKeywords?typeof i=="object"&&0 "+N.length+") { for (var "+p+" = "+N.length+"; "+p+" < "+M+".length; "+p+"++) { ",m.errorPath=g.util.getPathExpr(g.errorPath,p,g.opts.jsonPointers,!0),c=M+"["+p+"]",m.dataPathArr[s]=p,h=g.validate(m),m.baseId=n,g.util.varOccurences(h,a)<2?S+=" "+g.util.varReplace(h,a,c)+" ":S+=" var "+a+" = "+c+"; "+h+" ",W&&(S+=" if (!"+w+") break; "),S+=" } } ",W&&(S+=" if ("+w+") { ",b+="}"))}else(g.opts.strictKeywords?typeof N=="object"&&0 1e-"+g.opts.multipleOfPrecision+" ":S+=" division"+N+" !== parseInt(division"+N+") ",S+=" ) ",f&&(S+=" ) "),X=[],X.push(S+=" ) { "),S="",g.createErrors!==!1?(S+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { multipleOf: "+m+" } ",g.opts.messages!==!1&&(S=S+" , message: 'should be multiple of "+(f?"' + "+m:m+"'")),g.opts.verbose&&(S=(S+=" , schema: ")+(f?"validate.schema"+O:""+Z)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ",N=S,S=X.pop(),!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+N+"]); ":S+=" validate.errors = ["+N+"]; return false; ":S+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+="} ",M&&(S+=" else { "),S}},7946:function(ie){ie.exports=function(g,M,P){var S,N,Z=" ",m=g.level,f=g.dataLevel,O=g.schema[M],W=g.schemaPath+g.util.getProperty(M),M=g.errSchemaPath+"/"+M,j=!g.opts.allErrors,f="data"+(f||""),m="errs__"+m,b=g.util.copy(g),w=(b.level++,"valid"+b.level);return(g.opts.strictKeywords?typeof O=="object"&&0=g.opts.loopRequired,i=g.opts.ownProperties;if(M)if(S+=" var missing"+N+"; ",Z){m||(S+=" var "+b+" = validate.schema"+O+"; ");var r="' + "+(v="schema"+N+"["+(c="i"+N)+"]")+" + '";g.opts._errorDataPathProperty&&(g.errorPath=g.util.getPathExpr(t,v,g.opts.jsonPointers)),S+=" var "+f+" = true; ",m&&(S+=" if (schema"+N+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+N+")) "+f+" = false; else {"),S+=" for (var "+c+" = 0; "+c+" < "+b+".length; "+c+"++) { "+f+" = "+j+"["+b+"["+c+"]] !== undefined ",i&&(S+=" && Object.prototype.hasOwnProperty.call("+j+", "+b+"["+c+"]) "),S+="; if (!"+f+") break; } ",m&&(S+=" } "),(y=y||[]).push(S+=" if (!"+f+") { "),S="",g.createErrors!==!1?(S+=" { keyword: 'required' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(W)+" , params: { missingProperty: '"+r+"' } ",g.opts.messages!==!1&&(S+=" , message: '",g.opts._errorDataPathProperty?S+="is a required property":S+="should have required property \\'"+r+"\\'",S+="' "),g.opts.verbose&&(S+=" , schema: validate.schema"+O+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+j+" "),S+=" } "):S+=" {} ";var l=S,S=y.pop();!g.compositeRule&&M?g.async?S+=" throw new ValidationError(["+l+"]); ":S+=" validate.errors = ["+l+"]; return false; ":S+=" var err = "+l+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",S+=" } else { "}else{S+=" if ( ";var o=w;if(o)for(var c=-1,h=o.length-1;c 1) { ",Z=g.schema.items&&g.schema.items.type,w=Array.isArray(Z),!Z||Z=="object"||Z=="array"||w&&(0<=Z.indexOf("object")||0<=Z.indexOf("array"))?N+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+m+" = false; break outer; } } } ":(N=(N+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ")+" if ("+g.util["checkDataType"+(w?"s":"")](Z,"item",g.opts.strictNumbers,!0)+") continue; ",w&&(N+=` if (typeof item == 'string') item = '"' + item; `),N+=" if (typeof itemIndices[item] == 'number') { "+m+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "),N+=" } ",b&&(N+=" } "),(S=S||[]).push(N+=" if (!"+m+") { "),N="",g.createErrors!==!1?(N+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(M)+" , params: { i: i, j: j } ",g.opts.messages!==!1&&(N+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),g.opts.verbose&&(N=(N+=" , schema: ")+(b?"validate.schema"+W:""+O)+" , parentSchema: validate.schema"+g.schemaPath+" , data: "+f+" "),N+=" } "):N+=" {} ",Z=N,N=S.pop(),!g.compositeRule&&j?g.async?N+=" throw new ValidationError(["+Z+"]); ":N+=" validate.errors = ["+Z+"]; return false; ":N+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",N+=" } ",j&&(N+=" else { ")):j&&(N+=" if (true) { "),N}},1869:function(ie){ie.exports=function(g,X,P){var S="",N=g.schema.$async===!0,Z=g.util.schemaHasRulesExcept(g.schema,g.RULES.all,"$ref"),O=g.self._getId(g.schema);if(g.opts.strictKeywords){var W=g.util.schemaUnknownRules(g.schema,g.RULES.keywords);if(W){if(W="unknown keyword: "+W,g.opts.strictKeywords!=="log")throw new Error(W);g.logger.warn(W)}}if(g.isTop&&(S+=" var validate = ",N&&(g.async=!0,S+="async "),S+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",O&&(g.opts.sourceCode||g.opts.processCode)&&(S+=" /*# sourceURL="+O+" */ ")),typeof g.schema=="boolean"||!Z&&!g.schema.$ref)return j=g.level,f=g.dataLevel,T=g.schema[X="false schema"],r=g.schemaPath+g.util.getProperty(X),l=g.errSchemaPath+"/"+X,p=!g.opts.allErrors,m="data"+(f||""),w="valid"+j,g.schema===!1?(g.isTop?p=!0:S+=" var "+w+" = false; ",(R=R||[]).push(S),S="",g.createErrors!==!1?(S+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+g.errorPath+" , schemaPath: "+g.util.toQuotedString(l)+" , params: {} ",g.opts.messages!==!1&&(S+=" , message: 'boolean schema is false' "),g.opts.verbose&&(S+=" , schema: false , parentSchema: validate.schema"+g.schemaPath+" , data: "+m+" "),S+=" } "):S+=" {} ",u=S,S=R.pop(),!g.compositeRule&&p?g.async?S+=" throw new ValidationError(["+u+"]); ":S+=" validate.errors = ["+u+"]; return false; ":S+=" var err = "+u+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "):g.isTop?S+=N?" return data; ":" validate.errors = null; return true; ":S+=" var "+w+" = true; ",g.isTop&&(S+=" }; return validate; "),S;if(g.isTop){var M=g.isTop,j=g.level=0,f=g.dataLevel=0,m="data";if(g.rootId=g.resolve.fullPath(g.self._getId(g.root.schema)),g.baseId=g.baseId||g.rootId,delete g.isTop,g.dataPathArr=[""],g.schema.default!==void 0&&g.opts.useDefaults&&g.opts.strictDefaults){var b="default is ignored in the schema root";if(g.opts.strictDefaults!=="log")throw new Error(b);g.logger.warn(b)}S=(S+=" var vErrors = null; ")+" var errors = 0; if (rootData === undefined) rootData = data; "}else{if(j=g.level,m="data"+((f=g.dataLevel)||""),O&&(g.baseId=g.resolve.url(g.baseId,O)),N&&!g.async)throw new Error("async schema in sync schema");S+=" var errs_"+j+" = errors;"}var w="valid"+j,p=!g.opts.allErrors,s="",a="",n=g.schema.type,e=Array.isArray(n);if(n&&g.opts.nullable&&g.schema.nullable===!0&&(e?n.indexOf("null")==-1&&(n=n.concat("null")):n!="null"&&(n=[n,"null"],e=!0)),e&&n.length==1&&(n=n[0],e=!1),g.schema.$ref&&Z){if(g.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+g.errSchemaPath+'" (see option extendRefs)');g.opts.extendRefs!==!0&&(Z=!1,g.logger.warn('$ref: keywords ignored in schema at path "'+g.errSchemaPath+'"'))}if(g.schema.$comment&&g.opts.$comment&&(S+=" "+g.RULES.all.$comment.code(g,"$comment")),n){g.opts.coerceTypes&&(t=g.util.coerceToTypes(g.opts.coerceTypes,n));var t,i=g.RULES.types[n];if(t||e||i===!0||i&&!$(i)){var r=g.schemaPath+".type",l=g.errSchemaPath+"/type",r=g.schemaPath+".type",l=g.errSchemaPath+"/type";if(S+=" if ("+g.util[e?"checkDataTypes":"checkDataType"](n,m,g.opts.strictNumbers,!0)+") { ",t){var o="dataType"+j,c="coerced"+j,h=(S+=" var "+o+" = typeof "+m+"; var "+c+" = undefined; ",g.opts.coerceTypes=="array"&&(S+=" if ("+o+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+o+" = typeof "+m+"; if ("+g.util.checkDataType(g.schema.type,m,g.opts.strictNumbers)+") "+c+" = "+m+"; } "),S+=" if ("+c+" !== undefined) ; ",t);if(h)for(var y,v=-1,d=h.length-1;v",9:"Array"},M="UnquotedIdentifier",j="QuotedIdentifier",f="Rbracket",m="Rparen",b="Comma",w="Colon",p="Rbrace",s="Number",a="Current",n="Expref",e="Pipe",t="Flatten",i="Star",r="Filter",l="Lbrace",o="Lbracket",c="Lparen",h="Literal",y={".":"Dot","*":i,",":b,":":w,"{":l,"}":p,"]":f,"(":c,")":m,"@":a},v={"<":!0,">":!0,"=":!0,"!":!0},d={" ":!0," ":!0,"\n":!0};function u(k){return"0"<=k&&k<="9"||k==="-"}function A(){}A.prototype={tokenize:function(k){var _,F,H=[];for(this._current=0;this._current"?k[this._current]==="="?(this._current++,{type:"GTE",value:">=",start:_}):{type:"GT",value:">",start:_}:F==="="&&k[this._current]==="="?(this._current++,{type:"EQ",value:"==",start:_}):void 0},_consumeLiteral:function(k){this._current++;for(var _=this._current,F=k.length;k[this._current]!=="`"&&this._currentNumber.MAX_SAFE_INTEGER||R=s.length)throw new SyntaxError("Unexpected end of JSON input")}},g.stringify=function(s,a,n){if(N(s)){var e=0;switch(typeof(i=typeof n=="object"?n.space:n)){case"number":var t=101){U[0]=U[0].slice(0,-1);for(var se=U.length-1,re=1;re= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=p-s,v=Math.floor,d=String.fromCharCode;function u(q){throw new RangeError(h[q])}function A(q,U){for(var te=[],se=q.length;se--;)te[se]=U(q[se]);return te}function x(q,U){var te=q.split("@"),se="";te.length>1&&(se=te[0]+"@",q=te[1]),q=q.replace(c,".");var re=q.split("."),Ee=A(re,U).join(".");return se+Ee}function I(q){for(var U=[],te=0,se=q.length;te=55296&&re<=56319&&te>1,U+=v(U/te);U>y*a>>1;re+=p)U=v(U/y);return v(re+(y+1)*U/(U+n))},_=function(U){var te=[],se=U.length,re=0,Ee=i,Re=t,Pe=U.lastIndexOf(r);Pe<0&&(Pe=0);for(var je=0;je=128&&u("not-basic"),te.push(U.charCodeAt(je));for(var Ke=Pe>0?Pe+1:0;Ke=se&&u("invalid-input");var Le=T(U.charCodeAt(Ke++));(Le>=p||Le>v((w-re)/Ve))&&u("overflow"),re+=Le*Ve;var Ze=ze<=Re?s:ze>=Re+a?a:ze-Re;if(Lev(w/Xe)&&u("overflow"),Ve*=Xe}var Oe=te.length+1;Re=k(re-Ne,Oe,Ne==0),v(re/Oe)>w-Ee&&u("overflow"),Ee+=v(re/Oe),re%=Oe,te.splice(re++,0,Ee)}return String.fromCodePoint.apply(String,te)},F=function(U){var te=[];U=I(U);var se=U.length,re=i,Ee=0,Re=t,Pe=!0,je=!1,Ke=void 0;try{for(var Ne=U[Symbol.iterator](),Ve;!(Pe=(Ve=Ne.next()).done);Pe=!0){var ze=Ve.value;ze<128&&te.push(d(ze))}}catch(vt){je=!0,Ke=vt}finally{try{!Pe&&Ne.return&&Ne.return()}finally{if(je)throw Ke}}var Le=te.length,Ze=Le;for(Le&&te.push(r);Ze=re&&dtv((w-Ee)/et)&&u("overflow"),Ee+=(Xe-re)*et,re=Xe;var rt=!0,ht=!1,lt=void 0;try{for(var Ct=U[Symbol.iterator](),$t;!(rt=($t=Ct.next()).done);rt=!0){var Lt=$t.value;if(Ltw&&u("overflow"),Lt==re){for(var wt=Ee,xt=p;;xt+=p){var St=xt<=Re?s:xt>=Re+a?a:xt-Re;if(wt>6|192).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase():te="%"+(U>>12|224).toString(16).toUpperCase()+"%"+(U>>6&63|128).toString(16).toUpperCase()+"%"+(U&63|128).toString(16).toUpperCase(),te}function J(q){for(var U="",te=0,se=q.length;te=194&&re<224){if(se-te>=6){var Ee=parseInt(q.substr(te+4,2),16);U+=String.fromCharCode((re&31)<<6|Ee&63)}else U+=q.substr(te,6);te+=6}else if(re>=224){if(se-te>=9){var Re=parseInt(q.substr(te+4,2),16),Pe=parseInt(q.substr(te+7,2),16);U+=String.fromCharCode((re&15)<<12|(Re&63)<<6|Pe&63)}else U+=q.substr(te,9);te+=9}else U+=q.substr(te,3),te+=3}return U}function R(q,U){function te(se){var re=J(se);return re.match(U.UNRESERVED)?re:se}return q.scheme&&(q.scheme=String(q.scheme).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(U.PCT_ENCODED,te).replace(U.NOT_USERINFO,D).replace(U.PCT_ENCODED,Z)),q.host!==void 0&&(q.host=String(q.host).replace(U.PCT_ENCODED,te).toLowerCase().replace(U.NOT_HOST,D).replace(U.PCT_ENCODED,Z)),q.path!==void 0&&(q.path=String(q.path).replace(U.PCT_ENCODED,te).replace(q.scheme?U.NOT_PATH:U.NOT_PATH_NOSCHEME,D).replace(U.PCT_ENCODED,Z)),q.query!==void 0&&(q.query=String(q.query).replace(U.PCT_ENCODED,te).replace(U.NOT_QUERY,D).replace(U.PCT_ENCODED,Z)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(U.PCT_ENCODED,te).replace(U.NOT_FRAGMENT,D).replace(U.PCT_ENCODED,Z)),q}function V(q){return q.replace(/^0*(.*)/,"$1")||"0"}function B(q,U){var te=q.match(U.IPV4ADDRESS)||[],se=m(te,2),re=se[1];return re?re.split(".").map(V).join("."):q}function C(q,U){var te=q.match(U.IPV6ADDRESS)||[],se=m(te,3),re=se[1],Ee=se[2];if(re){for(var Re=re.toLowerCase().split("::").reverse(),Pe=m(Re,2),je=Pe[0],Ke=Pe[1],Ne=Ke?Ke.split(":").map(V):[],Ve=je.split(":").map(V),ze=U.IPV4ADDRESS.test(Ve[Ve.length-1]),Le=ze?7:8,Ze=Ve.length-Le,Xe=Array(Le),Oe=0;Oe1){var pt=Xe.slice(0,nt.index),dt=Xe.slice(nt.index+nt.length);ot=pt.join(":")+"::"+dt.join(":")}else ot=Xe.join(":");return Ee&&(ot+="%"+Ee),ot}else return q}var E=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$="".match(/(){0}/)[1]===void 0;function G(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te={},se=U.iri!==!1?f:j;U.reference==="suffix"&&(q=(U.scheme?U.scheme+":":"")+"//"+q);var re=q.match(E);if(re){$?(te.scheme=re[1],te.userinfo=re[3],te.host=re[4],te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=re[7],te.fragment=re[8],isNaN(te.port)&&(te.port=re[5])):(te.scheme=re[1]||void 0,te.userinfo=q.indexOf("@")!==-1?re[3]:void 0,te.host=q.indexOf("//")!==-1?re[4]:void 0,te.port=parseInt(re[5],10),te.path=re[6]||"",te.query=q.indexOf("?")!==-1?re[7]:void 0,te.fragment=q.indexOf("#")!==-1?re[8]:void 0,isNaN(te.port)&&(te.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?re[4]:void 0)),te.host&&(te.host=C(B(te.host,se),se)),te.scheme===void 0&&te.userinfo===void 0&&te.host===void 0&&te.port===void 0&&!te.path&&te.query===void 0?te.reference="same-document":te.scheme===void 0?te.reference="relative":te.fragment===void 0?te.reference="absolute":te.reference="uri",U.reference&&U.reference!=="suffix"&&U.reference!==te.reference&&(te.error=te.error||"URI is not a "+U.reference+" reference.");var Ee=z[(U.scheme||te.scheme||"").toLowerCase()];if(!U.unicodeSupport&&(!Ee||!Ee.unicodeSupport)){if(te.host&&(U.domainHost||Ee&&Ee.domainHost))try{te.host=H.toASCII(te.host.replace(se.PCT_ENCODED,J).toLowerCase())}catch(Re){te.error=te.error||"Host's domain name can not be converted to ASCII via punycode: "+Re}R(te,j)}else R(te,se);Ee&&Ee.parse&&Ee.parse(te,U)}else te.error=te.error||"URI can not be parsed.";return te}function K(q,U){var te=U.iri!==!1?f:j,se=[];return q.userinfo!==void 0&&(se.push(q.userinfo),se.push("@")),q.host!==void 0&&se.push(C(B(String(q.host),te),te).replace(te.IPV6ADDRESS,function(re,Ee,Re){return"["+Ee+(Re?"%25"+Re:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(se.push(":"),se.push(String(q.port))),se.length?se.join(""):void 0}var Q=/^\.\.?\//,ee=/^\/\.(\/|$)/,he=/^\/\.\.(\/|$)/,xe=/^\/?(?:.|\n)*?(?=\/|$)/;function ge(q){for(var U=[];q.length;)if(q.match(Q))q=q.replace(Q,"");else if(q.match(ee))q=q.replace(ee,"/");else if(q.match(he))q=q.replace(he,"/"),U.pop();else if(q==="."||q==="..")q="";else{var te=q.match(xe);if(te){var se=te[0];q=q.slice(se.length),U.push(se)}else throw new Error("Unexpected dot segment condition")}return U.join("")}function Ce(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=U.iri?f:j,se=[],re=z[(U.scheme||q.scheme||"").toLowerCase()];if(re&&re.serialize&&re.serialize(q,U),q.host&&!te.IPV6ADDRESS.test(q.host)){if(U.domainHost||re&&re.domainHost)try{q.host=U.iri?H.toUnicode(q.host):H.toASCII(q.host.replace(te.PCT_ENCODED,J).toLowerCase())}catch(Pe){q.error=q.error||"Host's domain name can not be converted to "+(U.iri?"Unicode":"ASCII")+" via punycode: "+Pe}}R(q,te),U.reference!=="suffix"&&q.scheme&&(se.push(q.scheme),se.push(":"));var Ee=K(q,U);if(Ee!==void 0&&(U.reference!=="suffix"&&se.push("//"),se.push(Ee),q.path&&q.path.charAt(0)!=="/"&&se.push("/")),q.path!==void 0){var Re=q.path;!U.absolutePath&&(!re||!re.absolutePath)&&(Re=ge(Re)),Ee===void 0&&(Re=Re.replace(/^\/\//,"/%2F")),se.push(Re)}return q.query!==void 0&&(se.push("?"),se.push(q.query)),q.fragment!==void 0&&(se.push("#"),se.push(q.fragment)),se.join("")}function ve(q,U){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=arguments[3],re={};return se||(q=G(Ce(q,te),te),U=G(Ce(U,te),te)),te=te||{},!te.tolerant&&U.scheme?(re.scheme=U.scheme,re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.userinfo!==void 0||U.host!==void 0||U.port!==void 0?(re.userinfo=U.userinfo,re.host=U.host,re.port=U.port,re.path=ge(U.path||""),re.query=U.query):(U.path?(U.path.charAt(0)==="/"?re.path=ge(U.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?re.path="/"+U.path:q.path?re.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+U.path:re.path=U.path,re.path=ge(re.path)),re.query=U.query):(re.path=q.path,U.query!==void 0?re.query=U.query:re.query=q.query),re.userinfo=q.userinfo,re.host=q.host,re.port=q.port),re.scheme=q.scheme),re.fragment=U.fragment,re}function ye(q,U,te){var se=W({scheme:"null"},te);return Ce(ve(G(q,se),G(U,se),se,!0),se)}function Te(q,U){return typeof q=="string"?q=Ce(G(q,U),U):N(q)==="object"&&(q=G(Ce(q,U),U)),q}function _e(q,U,te){return typeof q=="string"?q=Ce(G(q,te),te):N(q)==="object"&&(q=Ce(q,te)),typeof U=="string"?U=Ce(G(U,te),te):N(U)==="object"&&(U=Ce(U,te)),q===U}function Se(q,U){return q&&q.toString().replace(!U||!U.iri?j.ESCAPE:f.ESCAPE,D)}function ue(q,U){return q&&q.toString().replace(!U||!U.iri?j.PCT_ENCODED:f.PCT_ENCODED,J)}var $e={scheme:"http",domainHost:!0,parse:function(U,te){return U.host||(U.error=U.error||"HTTP URIs must have a host."),U},serialize:function(U,te){var se=String(U.scheme).toLowerCase()==="https";return(U.port===(se?443:80)||U.port==="")&&(U.port=void 0),U.path||(U.path="/"),U}},ae={scheme:"https",domainHost:$e.domainHost,parse:$e.parse,serialize:$e.serialize};function me(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var ce={scheme:"ws",domainHost:!0,parse:function(U,te){var se=U;return se.secure=me(se),se.resourceName=(se.path||"/")+(se.query?"?"+se.query:""),se.path=void 0,se.query=void 0,se},serialize:function(U,te){if((U.port===(me(U)?443:80)||U.port==="")&&(U.port=void 0),typeof U.secure=="boolean"&&(U.scheme=U.secure?"wss":"ws",U.secure=void 0),U.resourceName){var se=U.resourceName.split("?"),re=m(se,2),Ee=re[0],Re=re[1];U.path=Ee&&Ee!=="/"?Ee:void 0,U.query=Re,U.resourceName=void 0}return U.fragment=void 0,U}},de={scheme:"wss",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize},fe={},be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ke="[0-9A-Fa-f]",Me=S(S("%[EFef]"+ke+"%"+ke+ke+"%"+ke+ke)+"|"+S("%[89A-Fa-f]"+ke+"%"+ke+ke)+"|"+S("%"+ke+ke)),Je="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",He=P("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Qe="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",At=new RegExp(be,"g"),Y=new RegExp(Me,"g"),ne=new RegExp(P("[^]",Je,"[\\.]",'[\\"]',He),"g"),oe=new RegExp(P("[^]",be,Qe),"g"),pe=oe;function we(q){var U=J(q);return U.match(At)?U:q}var Ae={scheme:"mailto",parse:function(U,te){var se=U,re=se.to=se.path?se.path.split(","):[];if(se.path=void 0,se.query){for(var Ee=!1,Re={},Pe=se.query.split("&"),je=0,Ke=Pe.length;je1&&arguments[1]!==void 0?arguments[1]:1,r=i>0?t.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):t.toString();return r||"0"}var Z=function(){function t(i,r,l,o){g(this,t);var c=this;function h(v){if(v.startsWith("hsl")){var d=v.match(/([\-\d\.e]+)/g).map(Number),u=P(d,4),A=u[0],x=u[1],I=u[2],T=u[3];T===void 0&&(T=1),A/=360,x/=100,I/=100,c.hsla=[A,x,I,T]}else if(v.startsWith("rgb")){var L=v.match(/([\-\d\.e]+)/g).map(Number),k=P(L,4),_=k[0],F=k[1],H=k[2],z=k[3];z===void 0&&(z=1),c.rgba=[_,F,H,z]}else v.startsWith("#")?c.rgba=t.hexToRgb(v):c.rgba=t.nameToRgb(v)||t.hexToRgb(v)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(l===void 0){var y=i&&""+i;y&&h(y.toLowerCase())}else this.rgba=[i,r,l,o===void 0?1:o]}return X(t,[{key:"printRGB",value:function(r){var l=r?this.rgba:this.rgba.slice(0,3),o=l.map(function(c,h){return N(c,h===3?3:0)});return r?"rgba("+o+")":"rgb("+o+")"}},{key:"printHSL",value:function(r){var l=[360,100,100,1],o=["","%","%",""],c=r?this.hsla:this.hsla.slice(0,3),h=c.map(function(y,v){return N(y*l[v],v===3?3:1)+o[v]});return r?"hsla("+h+")":"hsl("+h+")"}},{key:"printHex",value:function(r){var l=this.hex;return r?l:l.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(r){r.length===3&&(r[3]=1),this._rgba=r,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(r){r.length===3&&(r[3]=1),this._hsla=r,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var r=this.rgba,l=r.map(function(o,c){return c<3?o.toString(16):Math.round(o*255).toString(16)});return"#"+l.map(function(o){return o.padStart(2,"0")}).join("")},set:function(r){this.rgba=t.hexToRgb(r)}}],[{key:"hexToRgb",value:function(r){var l=(r.startsWith("#")?r.slice(1):r).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!l.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+r);var o=l.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(c){return parseInt(c,16)});return o[3]=o[3]/255,o}},{key:"nameToRgb",value:function(r){var l=r.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),o=S[l];return o===void 0?o:t.hexToRgb(o.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(r){var l=P(r,4),o=l[0],c=l[1],h=l[2],y=l[3];o/=255,c/=255,h/=255;var v=Math.max(o,c,h),d=Math.min(o,c,h),u=void 0,A=void 0,x=(v+d)/2;if(v===d)u=A=0;else{var I=v-d;switch(A=x>.5?I/(2-v-d):I/(v+d),v){case o:u=(c-h)/I+(c1&&(F-=1),F<.16666666666666666?k+(_-k)*6*F:F<.5?_:F<.6666666666666666?k+(_-k)*(.6666666666666666-F)*6:k},x=h<.5?h*(1+c):h+c-h*c,I=2*h-x;v=A(I,x,o+1/3),d=A(I,x,o),u=A(I,x,o-1/3)}var T=[v*255,d*255,u*255].map(Math.round);return T[3]=y,T}}]),t}(),O=function(){function t(){g(this,t),this._events=[]}return X(t,[{key:"add",value:function(r,l,o){r.addEventListener(l,o,!1),this._events.push({target:r,type:l,handler:o})}},{key:"remove",value:function(r,l,o){this._events=this._events.filter(function(c){var h=!0;return r&&r!==c.target&&(h=!1),l&&l!==c.type&&(h=!1),o&&o!==c.handler&&(h=!1),h&&t._doRemove(c.target,c.type,c.handler),!h})}},{key:"destroy",value:function(){this._events.forEach(function(r){return t._doRemove(r.target,r.type,r.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(r,l,o){r.removeEventListener(l,o,!1)}}]),t}();function W(t){var i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}function M(t,i,r){var l=!1;function o(v,d,u){return Math.max(d,Math.min(v,u))}function c(v,d,u){if(u&&(l=!0),!!l){v.preventDefault();var A=i.getBoundingClientRect(),x=A.width,I=A.height,T=d.clientX,L=d.clientY,k=o(T-A.left,0,x),_=o(L-A.top,0,I);r(k/x,_/I)}}function h(v,d){var u=v.buttons===void 0?v.which:v.buttons;u===1?c(v,v,d):l=!1}function y(v,d){v.touches.length===1?c(v,v.touches[0],d):l=!1}t.add(i,"mousedown",function(v){h(v,!0)}),t.add(i,"touchstart",function(v){y(v,!0)}),t.add(window,"mousemove",h),t.add(i,"touchmove",y),t.add(window,"mouseup",function(v){l=!1}),t.add(i,"touchend",function(v){l=!1}),t.add(i,"touchcancel",function(v){l=!1})}var j=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em, + linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,f=360,m="keydown",b="mousedown",w="focusin";function p(t,i){return(i||document).querySelector(t)}function s(t){t.preventDefault(),t.stopPropagation()}function a(t,i,r,l,o){t.add(i,m,function(c){r.indexOf(c.key)>=0&&(o&&s(c),l(c))})}var n=function(){function t(i){g(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new O,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return X(t,[{key:"setOptions",value:function(r){var l=this;if(!r)return;var o=this.settings;function c(d,u,A){for(var x in d)A&&A.indexOf(x)>=0||(u[x]=d[x])}if(r instanceof HTMLElement)o.parent=r;else{o.parent&&r.parent&&o.parent!==r.parent&&(this._events.remove(o.parent),this._popupInited=!1),c(r,o),r.onChange&&(this.onChange=r.onChange),r.onDone&&(this.onDone=r.onDone),r.onOpen&&(this.onOpen=r.onOpen),r.onClose&&(this.onClose=r.onClose);var h=r.color||r.colour;h&&this._setColor(h)}var y=o.parent;if(y&&o.popup&&!this._popupInited){var v=function(u){return l.openHandler(u)};this._events.add(y,"click",v),a(this._events,y,[" ","Spacebar","Enter"],v),this._popupInited=!0}else r.parent&&!o.popup&&this.show()}},{key:"openHandler",value:function(r){if(this.show()){r&&r.preventDefault(),this.settings.parent.style.pointerEvents="none";var l=r&&r.type===m?this._domEdit:this.domElement;setTimeout(function(){return l.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(r){var l=r&&r.type,o=!1;if(!r)o=!0;else if(l===b||l===w){var c=(this.__containedEvent||0)+100;r.timeStamp>c&&(o=!0)}else s(r),o=!0;o&&this.hide()&&(this.settings.parent.style.pointerEvents="",l!==b&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(r,l){this.closeHandler(),this.setOptions(r),l&&this.openHandler()}},{key:"setColor",value:function(r,l){this._setColor(r,{silent:l})}},{key:"_setColor",value:function(r,l){if(typeof r=="string"&&(r=r.trim()),!!r){l=l||{};var o=void 0;try{o=new Z(r)}catch(h){if(l.failSilently)return;throw h}if(!this.settings.alpha){var c=o.hsla;c[3]=1,o.hsla=c}this.colour=this.color=o,this._setHSLA(null,null,null,null,l)}}},{key:"setColour",value:function(r,l){this.setColor(r,l)}},{key:"show",value:function(){var r=this.settings.parent;if(!r)return!1;if(this.domElement){var l=this._toggleDOM(!0);return this._setPosition(),l}var o=this.settings.template||'OkCancel',c=W(o);return this.domElement=c,this._domH=p(".picker_hue",c),this._domSL=p(".picker_sl",c),this._domA=p(".picker_alpha",c),this._domEdit=p(".picker_editor input",c),this._domSample=p(".picker_sample",c),this._domOkay=p(".picker_done button",c),this._domCancel=p(".picker_cancel button",c),c.classList.add("layout_"+this.settings.layout),this.settings.alpha||c.classList.add("no_alpha"),this.settings.editor||c.classList.add("no_editor"),this.settings.cancelButton||c.classList.add("no_cancel"),this._ifPopup(function(){return c.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var r=this,l=this,o=this.domElement,c=this._events;function h(d,u,A){c.add(d,u,A)}h(o,"click",function(d){return d.preventDefault()}),M(c,this._domH,function(d,u){return l._setHSLA(d)}),M(c,this._domSL,function(d,u){return l._setHSLA(null,d,1-u)}),this.settings.alpha&&M(c,this._domA,function(d,u){return l._setHSLA(null,null,null,1-u)});var y=this._domEdit;h(y,"input",function(d){l._setColor(this.value,{fromEditor:!0,failSilently:!0})}),h(y,"focus",function(d){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var d=function(x){return r.closeHandler(x)};h(window,b,d),h(window,w,d),a(c,o,["Esc","Escape"],d);var u=function(x){r.__containedEvent=x.timeStamp};h(o,b,u),h(o,w,u),h(r._domCancel,"click",d)});var v=function(u){r._ifPopup(function(){return r.closeHandler(u)}),r.onDone&&r.onDone(r.colour)};h(this._domOkay,"click",v),a(c,o,["Enter"],v)}},{key:"_setPosition",value:function(){var r=this.settings.parent,l=this.domElement;r!==l.parentNode&&r.appendChild(l),this._ifPopup(function(o){getComputedStyle(r).position==="static"&&(r.style.position="relative");var c=o===!0?"popup_right":"popup_"+o;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(h){h===c?l.classList.add(h):l.classList.remove(h)}),l.classList.add(c)})}},{key:"_setHSLA",value:function(r,l,o,c,h){h=h||{};var y=this.colour,v=y.hsla;[r,l,o,c].forEach(function(d,u){(d||d===0)&&(v[u]=d)}),y.hsla=v,this._updateUI(h),this.onChange&&!h.silent&&this.onChange(y)}},{key:"_updateUI",value:function(r){if(!this.domElement)return;r=r||{};var l=this.colour,o=l.hsla,c="hsl("+o[0]*f+", 100%, 50%)",h=l.hslString,y=l.hslaString,v=this._domH,d=this._domSL,u=this._domA,A=p(".picker_selector",v),x=p(".picker_selector",d),I=p(".picker_selector",u);function T(J,R,V){R.style.left=V*100+"%"}function L(J,R,V){R.style.top=V*100+"%"}T(v,A,o[0]),this._domSL.style.backgroundColor=this._domH.style.color=c,T(d,x,o[1]),L(d,x,1-o[2]),d.style.color=h,L(u,I,1-o[3]);var k=h,_=k.replace("hsl","hsla").replace(")",", 0)"),F="linear-gradient("+[k,_]+")";if(this._domA.style.background=F+", "+j,!r.fromEditor){var H=this.settings.editorFormat,z=this.settings.alpha,D=void 0;switch(H){case"rgb":D=l.printRGB(z);break;case"hsl":D=l.printHSL(z);break;default:D=l.printHex(z)}this._domEdit.value=D}this._domSample.style.color=y}},{key:"_ifPopup",value:function(r,l){this.settings.parent&&this.settings.popup?r&&r(this.settings.popup):l&&l()}},{key:"_toggleDOM",value:function(r){var l=this.domElement;if(!l)return!1;var o=r?"":"none",c=l.style.display!==o;return c&&(l.style.display=o),c}}]),t}(),e=document.createElement("style");return e.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(e),n.StyleElement=e,n}()},402:function(ie,g){function X(P,S){if(!(this instanceof X))throw new SyntaxError("Constructor must be called with the new operator");this.message=P+" (char "+S+")",this.char=S,this.stack=new Error().stack}Object.defineProperty(g,"__esModule",{value:!0}),((g.default=X).prototype=new Error).constructor=Error},3860:function(ie,g,X){ie.exports=X(7490).default},7490:function(ie,g,X){g.default=function(u){n="",e=0,t=(a=u).charAt(0),i="",r=f,h();var A=r;if(d(),y(),i==="")return n;if(A===r&&c()){for(var x="";A===r&&c();)n=(0,S.insertBeforeLastWhitespace)(n,","),x+=n,n="",d(),y();return`[ +`.concat(x).concat(n,` +]`)}throw new P.default("Unexpected characters",e-i.length)};var P=(g=X(402))&&g.__esModule?g:{default:g},S=X(9422),N=0,Z=1,O=2,W=3,M=4,j=5,f=6,m={"":!0,"{":!0,"}":!0,"[":!0,"]":!0,":":!0,",":!0,"(":!0,")":!0,";":!0,"+":!0},b={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "},w={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},p={null:"null",true:"true",false:"false"},s={None:"null",True:"true",False:"false"},a="",n="",e=0,t="",i="",r=f;function l(){e++,t=a.charAt(e)}function o(){l(),t==="\\"&&l()}function c(){return r===N&&(i==="["||i==="{")||r===O||r===Z||r===W}function h(){if(n+=i,r=f,i="",m[t])r=N,i=t,l();else if((0,S.isDigit)(t)||t==="-"){if(r=Z,t==="-"){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e)}else t==="0"&&(i+=t,l());for(;(0,S.isDigit)(t);)i+=t,l();if(t==="."){if(i+=t,l(),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}if(t==="e"||t==="E"){if(i+=t,l(),t!=="+"&&t!=="-"||(i+=t,l()),!(0,S.isDigit)(t))throw new P.default("Invalid number, digit expected",e);for(;(0,S.isDigit)(t);)i+=t,l()}}else t==="\\"&&a.charAt(e+1)==='"'?(l(),v(o)):v(l);r===M&&(i=(0,S.normalizeWhitespace)(i),h()),r===j&&(r=f,i="",h())}function y(){i===","&&(i="",r=f,h())}function v(u){if((0,S.isQuote)(t)){var A=(0,S.normalizeQuote)(t),x=(0,S.isSingleQuote)(t)?S.isSingleQuote:S.isDoubleQuote;for(i+='"',r=O,u();t!==""&&!x(t);)if(t==="\\")if(u(),b[t]!==void 0)i+="\\"+t,u();else if(t==="u"){i+="\\u",u();for(var I=0;I<4;I++){if(!(0,S.isHex)(t))throw new P.default("Invalid unicode character",e-i.length);i+=t,u()}}else{if(t!=="'")throw new P.default('Invalid escape character "\\'+t+'"',e);i+="'",u()}else w[t]?i+=w[t]:i+=t==='"'?'\\"':t,u();if((0,S.normalizeQuote)(t)!==A)throw new P.default("End of string expected",e-i.length);return i+='"',void u()}if((0,S.isAlpha)(t))for(r=W;(0,S.isAlpha)(t)||(0,S.isDigit)(t)||t==="$";)i+=t,l();else if((0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t))for(r=M;(0,S.isWhitespace)(t)||(0,S.isSpecialWhitespace)(t);)i+=t,l();else if(t==="/"&&a[e+1]==="*"){for(r=j;t!==""&&(t!=="*"||t==="*"&&a[e+1]!=="/");)i+=t,l();t==="*"&&a[e+1]==="/"&&(i+=t,l(),i+=t,l())}else if(t==="/"&&a[e+1]==="/")for(r=j;t!==""&&t!==` +`;)i+=t,l();else{for(r=f;t!=="";)i+=t,l();throw new P.default('Syntax error in part "'+i+'"',e-i.length)}}function d(){if(r===N&&i==="{")if(h(),r===N&&i==="}")h();else{for(;;){if(r!==W&&r!==Z||(r=O,i='"'.concat(i,'"')),r!==O)throw new P.default("Object key expected",e-i.length);if(h(),r===N&&i===":")h();else{if(!c())throw new P.default("Colon expected",e-i.length);n=(0,S.insertBeforeLastWhitespace)(n,":")}if(d(),r===N&&i===","){if(h(),r===N&&i==="}"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(r!==O&&r!==Z&&r!==W)break;n=(0,S.insertBeforeLastWhitespace)(n,",")}}r===N&&i==="}"?h():n=(0,S.insertBeforeLastWhitespace)(n,"}")}else if(r===N&&i==="[")if(h(),r===N&&i==="]")h();else{for(;;)if(d(),r===N&&i===","){if(h(),r===N&&i==="]"){n=(0,S.stripLastOccurrence)(n,",");break}if(i===""){n=(0,S.stripLastOccurrence)(n,",");break}}else{if(!c())break;n=(0,S.insertBeforeLastWhitespace)(n,",")}r===N&&i==="]"?h():n=(0,S.insertBeforeLastWhitespace)(n,"]")}else if(r===O)for(h();r===N&&i==="+";){var u;i="",h(),r===O&&(u=n.lastIndexOf('"'),n=n.substring(0,u)+i.substring(1),i="",h())}else if(r===Z)h();else{if(r!==W)throw i===""?new P.default("Unexpected end of json string",e-i.length):new P.default("Value expected",e-i.length);if(p[i])h();else{if(s[i])return i=s[i],void h();var A=i,x=n.length;if(i="",h(),r===N&&i==="(")return i="",h(),d(),void(r===N&&i===")"&&(i="",h(),r===N&&i===";"&&(i="",h())));for(n=(0,S.insertAtIndex)(n,'"'.concat(A),x);r===W||r===Z;)h();n+='"'}}}},9422:function(ie,g){Object.defineProperty(g,"__esModule",{value:!0}),g.isAlpha=function(M){return S.test(M)},g.isHex=function(M){return N.test(M)},g.isDigit=function(M){return Z.test(M)},g.isWhitespace=O,g.isSpecialWhitespace=W,g.normalizeWhitespace=function(M){for(var j="",f=0;f{N.width=Ie.width,N.height=Ie.height,W(),Z(Ge.value)}),qt(()=>{X==null||X.destroy(),X=null}),ei(()=>Ie.modelValue,M=>{X||W(),Z(M)});const Z=M=>{S||(typeof M=="string"?(P="string",X.set(JSON.parse(M))):(P="object",X.set(M)))},O=()=>{try{const M=X.get();P=="string"?le("update:modelValue",JSON.stringify(M)):le("update:modelValue",M),le("onChange",M),S=!0,ti(()=>{S=!1})}catch{}},W=()=>{console.log("init json editor");const M=Et(kt({},it.value),{mode:ie.value,modes:st.value,onChange:O});X=new oi(g.value,M)};return Et(kt({},_t(N)),{jsoneditorVue:g})}});function si(Ie,le,Ge,it,st,ie){return qe(),gt("div",null,[tt("div",{ref:"jsoneditorVue",style:ii({height:Ie.height,width:Ie.width})},null,4)])}var ai=Vt(ri,[["render",si]]);const li=Gt({name:"MongoDataOp",components:{ProjectEnvSelect:Xt,JsonEdit:ai},setup(){const Ie=Mt(null),le=Ht({loading:!1,mongoList:[],query:{envId:0},mongoId:null,database:"",collection:"",activeName:"",databases:[],collections:[],dataTabs:{},findDialog:{visible:!1,findParam:{filter:"",sort:""}},insertDocDialog:{visible:!1,doc:""},jsoneditorDialog:{visible:!1,doc:"",item:{}}}),Ge=async()=>{Jt(le.query.envId,"\u8BF7\u5148\u9009\u62E9\u9879\u76EE\u73AF\u5883");const a=await ut.mongoList.request(le.query);le.mongoList=a.list},it=(a,n)=>{le.databases=[],le.collections=[],le.mongoId=null,le.collection="",le.database="",le.dataTabs={},n!=null&&(le.query.envId=n,Ge())},st=()=>{le.databases=[],le.collections=[],le.dataTabs={},ie()},ie=async()=>{const a=await ut.databases.request({id:le.mongoId});le.databases=a.Databases},g=()=>{le.collections=[],le.collection="",le.dataTabs={},X()},X=async()=>{le.collections=await ut.collections.request({id:le.mongoId,database:le.database})},P=()=>{const a=le.collection;if(!le.dataTabs[a]){const e={filter:"{}",sort:'{"_id": -1}',skip:0,limit:12},t={name:a,datas:[],findParamStr:JSON.stringify(e),findParam:e};le.dataTabs[a]=t}le.activeName=a,Z(a)},S=a=>{const n=Object.keys(le.dataTabs);for(let e=0;e{le.dataTabs[le.activeName].findParam=le.findDialog.findParam,le.dataTabs[le.activeName].findParamStr=JSON.stringify(le.findDialog.findParam),le.findDialog.visible=!1,Z(le.activeName)},Z=async a=>{const e=le.dataTabs[a].findParam;let t,i;try{t=e.filter?JSON.parse(e.filter):{},i=e.sort?JSON.parse(e.sort):{}}catch{ft.error("filter\u6216sort\u5B57\u6BB5json\u5B57\u7B26\u4E32\u503C\u9519\u8BEF\u3002\u6CE8\u610F: json key\u9700\u53CC\u5F15\u53F7");return}const r=await ut.findCommand.request({id:le.mongoId,database:le.database,collection:a,filter:t,sort:i,limit:e.limit||12,skip:e.skip||0});le.dataTabs[a].datas=O(r)},O=a=>{const n=[];if(!a)return n;for(let e of a)n.push({value:JSON.stringify(e,null,4)});return n},W=()=>{const a=le.dataTabs[le.activeName].datas[0];let n="";if(a){const e=JSON.parse(a.value);delete e._id,n=JSON.stringify(e,null,4)}le.insertDocDialog.doc=n,le.insertDocDialog.visible=!0},M=async()=>{let a;try{a=JSON.parse(le.insertDocDialog.doc)}catch{ft.error("\u6587\u6863\u5185\u5BB9\u9519\u8BEF,\u65E0\u6CD5\u89E3\u6790\u4E3Ajson\u5BF9\u8C61")}const n=await ut.insertCommand.request({id:le.mongoId,database:le.database,collection:le.activeName,doc:a});Tt(n.InsertedID,"\u65B0\u589E\u5931\u8D25"),ft.success("\u65B0\u589E\u6210\u529F"),Z(le.activeName),le.insertDocDialog.visible=!1},j=a=>{le.jsoneditorDialog.item=a,le.jsoneditorDialog.doc=a.value,le.jsoneditorDialog.visible=!0},f=()=>{le.jsoneditorDialog.item.value=JSON.stringify(JSON.parse(le.jsoneditorDialog.doc),null,4)},m=async a=>{const n=w(a),e=n._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728"),delete n._id;const t=await ut.updateByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e,update:{$set:n}});Tt(t.ModifiedCount==1,"\u4FEE\u6539\u5931\u8D25"),ft.success("\u4FDD\u5B58\u6210\u529F")},b=async a=>{const e=w(a)._id;Pt(e,"\u6587\u6863\u7684_id\u5C5E\u6027\u4E0D\u5B58\u5728");const t=await ut.deleteByIdCommand.request({id:le.mongoId,database:le.database,collection:le.collection,docId:e});Tt(t.DeletedCount==1,"\u5220\u9664\u5931\u8D25"),ft.success("\u5220\u9664\u6210\u529F"),Z(le.activeName)},w=a=>{try{return JSON.parse(a)}catch(n){throw ft.error("\u6587\u6863\u5185\u5BB9\u89E3\u6790\u4E3Ajson\u5BF9\u8C61\u5931\u8D25"),n}},p=a=>{const n=a.props.name;le.collection=n},s=a=>{const n=Object.keys(le.dataTabs);let e=le.activeName;n.forEach((t,i)=>{if(t===a){const r=n[i+1]||n[i-1];r&&(e=r)}}),le.activeName=e,e==a?le.collection="":le.collection=e,delete le.dataTabs[a]};return Et(kt({},_t(le)),{findParamInputRef:Ie,changeProjectEnv:it,changeMongo:st,changeDatabase:g,changeCollection:P,onDataTabClick:p,removeDataTab:s,showFindDialog:S,confirmFindDialog:N,findCommand:Z,showInsertDocDialog:W,onInsertDoc:M,onSaveDoc:m,onDeleteDoc:b,onJsonEditor:j,onCloseJsonEditDialog:f,formatByteSize:Yt})}}),ci={class:"toolbar"},di={style:{float:"left"}},hi={style:{float:"right",color:"#8492a6","margin-left":"6px","font-size":"13px"}},ui={style:{float:"left"}},gi={style:{float:"right",color:"#8492a6","margin-left":"4px","font-size":"13px"}},pi=yt("\u67E5\u8BE2\u53C2\u6570"),mi={style:{padding:"3px",float:"right"},class:"mr5 mongo-doc-btns"},fi=yt("\u53D6 \u6D88"),Ci=yt("\u786E \u5B9A"),vi=yt("\u53D6 \u6D88"),Ii=yt("\u786E \u5B9A"),bi=tt("div",{style:{"text-align":"center","margin-top":"10px"}},null,-1);function yi(Ie,le,Ge,it,st,ie){const g=Ye("el-option"),X=Ye("el-select"),P=Ye("el-form-item"),S=Ye("project-env-select"),N=Ye("el-col"),Z=Ye("el-row"),O=Ye("el-link"),W=Ye("el-input"),M=Ye("el-divider"),j=Ye("el-popconfirm"),f=Ye("el-card"),m=Ye("el-tab-pane"),b=Ye("el-tabs"),w=Ye("el-container"),p=Ye("el-form"),s=Ye("el-button"),a=Ye("el-dialog"),n=Ye("json-edit");return qe(),gt("div",null,[tt("div",ci,[Be(Z,{type:"flex",justify:"space-between"},{default:We(()=>[Be(N,{span:24},{default:We(()=>[Be(S,{onChangeProjectEnv:Ie.changeProjectEnv},{default:We(()=>[Be(P,{label:"\u5B9E\u4F8B","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.mongoId,"onUpdate:modelValue":le[0]||(le[0]=e=>Ie.mongoId=e),placeholder:"\u8BF7\u9009\u62E9mongo",onChange:Ie.changeMongo},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.mongoList,e=>(qe(),mt(g,{key:e.id,label:e.name,value:e.id},{default:We(()=>[tt("span",di,Rt(e.name),1),tt("span",hi,Rt(` [${e.uri}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u5E93","label-width":"20px"},{default:We(()=>[Be(X,{modelValue:Ie.database,"onUpdate:modelValue":le[1]||(le[1]=e=>Ie.database=e),placeholder:"\u8BF7\u9009\u62E9\u5E93",onChange:Ie.changeDatabase,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.databases,e=>(qe(),mt(g,{key:e.Name,label:e.Name,value:e.Name},{default:We(()=>[tt("span",ui,Rt(e.Name),1),tt("span",gi,Rt(` [${Ie.formatByteSize(e.SizeOnDisk)}]`),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Be(P,{label:"\u96C6\u5408","label-width":"40px"},{default:We(()=>[Be(X,{modelValue:Ie.collection,"onUpdate:modelValue":le[2]||(le[2]=e=>Ie.collection=e),placeholder:"\u8BF7\u9009\u62E9\u96C6\u5408",onChange:Ie.changeCollection,filterable:""},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.collections,e=>(qe(),mt(g,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["onChangeProjectEnv"])]),_:1})]),_:1})]),Be(w,{id:"data-exec",style:{border:"1px solid #eee","margin-top":"1px"}},{default:We(()=>[Be(b,{onTabRemove:Ie.removeDataTab,onTabClick:Ie.onDataTabClick,style:{width:"100%","margin-left":"5px"},modelValue:Ie.activeName,"onUpdate:modelValue":le[4]||(le[4]=e=>Ie.activeName=e)},{default:We(()=>[(qe(!0),gt(It,null,bt(Ie.dataTabs,e=>(qe(),mt(m,{closable:"",key:e.name,label:e.name,name:e.name},{default:We(()=>[Ie.mongoId?(qe(),mt(Z,{key:0},{default:We(()=>[Be(O,{onClick:le[3]||(le[3]=t=>Ie.findCommand(Ie.activeName)),icon:"refresh",underline:!1,class:"ml5"}),Be(O,{onClick:Ie.showInsertDocDialog,class:"ml5",type:"primary",icon:"plus",underline:!1},null,8,["onClick"])]),_:1})):ni("",!0),Be(Z,{class:"mt5 mb5"},{default:We(()=>[Be(W,{ref_for:!0,ref:"findParamInputRef",modelValue:e.findParamStr,"onUpdate:modelValue":t=>e.findParamStr=t,placeholder:"\u70B9\u51FB\u8F93\u5165\u76F8\u5E94\u67E5\u8BE2\u6761\u4EF6",onFocus:t=>Ie.showFindDialog(e.name)},{prepend:We(()=>[pi]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:2},1024),Be(Z,null,{default:We(()=>[(qe(!0),gt(It,null,bt(e.datas,t=>(qe(),mt(N,{span:6,key:t},{default:We(()=>[Be(f,{"body-style":{padding:"0px",position:"relative"}},{default:We(()=>[Be(W,{type:"textarea",modelValue:t.value,"onUpdate:modelValue":i=>t.value=i,rows:12},null,8,["modelValue","onUpdate:modelValue"]),tt("div",mi,[tt("div",null,[Be(O,{onClick:i=>Ie.onJsonEditor(t),underline:!1,type:"success",icon:"MagicStick"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(O,{onClick:i=>Ie.onSaveDoc(t.value),underline:!1,type:"warning",icon:"DocumentChecked"},null,8,["onClick"]),Be(M,{direction:"vertical","border-style":"dashed"}),Be(j,{onConfirm:i=>Ie.onDeleteDoc(t.value),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u6587\u6863?"},{reference:We(()=>[Be(O,{underline:!1,type:"danger",icon:"DocumentDelete"})]),_:2},1032,["onConfirm"])])])]),_:2},1024)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["onTabRemove","onTabClick","modelValue"])]),_:1}),Be(a,{width:"600px",title:"find\u53C2\u6570",modelValue:Ie.findDialog.visible,"onUpdate:modelValue":le[10]||(le[10]=e=>Ie.findDialog.visible=e)},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[9]||(le[9]=e=>Ie.findDialog.visible=!1)},{default:We(()=>[fi]),_:1}),Be(s,{onClick:Ie.confirmFindDialog,type:"primary"},{default:We(()=>[Ci]),_:1},8,["onClick"])])]),default:We(()=>[Be(p,{"label-width":"70px"},{default:We(()=>[Be(P,{label:"filter"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.filter,"onUpdate:modelValue":le[5]||(le[5]=e=>Ie.findDialog.findParam.filter=e),type:"textarea",rows:6,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"sort"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.sort,"onUpdate:modelValue":le[6]||(le[6]=e=>Ie.findDialog.findParam.sort=e),type:"textarea",rows:3,clearable:"","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"limit"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.limit,"onUpdate:modelValue":le[7]||(le[7]=e=>Ie.findDialog.findParam.limit=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1}),Be(P,{label:"skip"},{default:We(()=>[Be(W,{modelValue:Ie.findDialog.findParam.skip,"onUpdate:modelValue":le[8]||(le[8]=e=>Ie.findDialog.findParam.skip=e),modelModifiers:{number:!0},type:"number","auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),Be(a,{width:"800px",title:`\u65B0\u589E'${Ie.activeName}'\u96C6\u5408\u6587\u6863`,modelValue:Ie.insertDocDialog.visible,"onUpdate:modelValue":le[13]||(le[13]=e=>Ie.insertDocDialog.visible=e),"close-on-click-modal":!1},{footer:We(()=>[tt("div",null,[Be(s,{onClick:le[12]||(le[12]=e=>Ie.insertDocDialog.visible=!1)},{default:We(()=>[vi]),_:1}),Be(s,{onClick:Ie.onInsertDoc,type:"primary"},{default:We(()=>[Ii]),_:1},8,["onClick"])])]),default:We(()=>[Be(n,{currentMode:"code",modelValue:Ie.insertDocDialog.doc,"onUpdate:modelValue":le[11]||(le[11]=e=>Ie.insertDocDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["title","modelValue"]),Be(a,{width:"70%",title:"json\u7F16\u8F91\u5668",modelValue:Ie.jsoneditorDialog.visible,"onUpdate:modelValue":le[15]||(le[15]=e=>Ie.jsoneditorDialog.visible=e),onClose:Ie.onCloseJsonEditDialog,"close-on-click-modal":!1},{default:We(()=>[Be(n,{modelValue:Ie.jsoneditorDialog.doc,"onUpdate:modelValue":le[14]||(le[14]=e=>Ie.jsoneditorDialog.doc=e)},null,8,["modelValue"])]),_:1},8,["modelValue","onClose"]),bi])}var _i=Vt(li,[["render",yi]]);export{_i as default}; diff --git a/server/static/static/assets/MongoList.1661345446364.js b/server/static/static/assets/MongoList.1661345446364.js new file mode 100644 index 00000000..d2ca1e63 --- /dev/null +++ b/server/static/static/assets/MongoList.1661345446364.js @@ -0,0 +1 @@ +var X=Object.defineProperty,Y=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var U=(e,o,c)=>o in e?X(e,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[o]=c,_=(e,o)=>{for(var c in o||(o={}))x.call(o,c)&&U(e,c,o[c]);if(T)for(var c of T(o))ee.call(o,c)&&U(e,c,o[c]);return e},M=(e,o)=>Y(e,Z(o));import{m as C}from"./api.16613454463646.js";import{p as N}from"./api.16613454463644.js";import{m as le}from"./api.16613454463643.js";import{A as O,q as ae,r as P,v as oe,t as H,_ as G,E as k,b as u,d as f,e as F,g as l,w as a,h as j,F as q,j as A,k as z,z as L,B as i,o as te,i as g,G as ne}from"./index.1661345446364.js";import{f as ie}from"./format.1661345446364.js";import"./Api.1661345446364.js";const se=O({name:"MongoEdit",props:{visible:{type:Boolean},projects:{type:Array},mongo:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:o}){const c=ae(null),r=P({dialogVisible:!1,projects:[],envs:[],sshTunnelMachineList:[],form:{id:null,name:null,uri:null,enableSshTunnel:-1,sshTunnelMachineId:null,project:null,projectId:null,envId:null,env:null},btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["change","blur"]}],uri:[{required:!0,message:"\u8BF7\u8F93\u5165mongo uri",trigger:["change","blur"]}]}});oe(e,async s=>{r.dialogVisible=s.visible,r.dialogVisible&&(r.projects=s.projects,s.mongo?(E(s.mongo.projectId),r.form=_({},s.mongo)):(r.envs=[],r.form={db:0}),y())});const y=async()=>{if(r.form.enableSshTunnel==1&&r.sshTunnelMachineList.length==0){const s=await le.list.request({pageNum:1,pageSize:100});r.sshTunnelMachineList=s.list}},E=async s=>{r.envs=await N.projectEnvs.request({projectId:s})},p=s=>{for(let m of r.projects)m.id==s&&(r.form.project=m.name);r.form.envId=null,r.form.env=null,r.envs=[],E(s)},h=s=>{for(let m of r.envs)m.id==s&&(r.form.env=m.name)},b=async()=>{c.value.validate(async s=>{if(s){const m=_({},r.form);C.saveMongo.request(m).then(()=>{k.success("\u4FDD\u5B58\u6210\u529F"),o("val-change",r.form),r.btnLoading=!0,setTimeout(()=>{r.btnLoading=!1},1e3),v()})}else return k.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},v=()=>{o("update:visible",!1),o("cancel")};return M(_({},H(r)),{mongoForm:c,changeProject:p,getSshTunnelMachines:y,changeEnv:h,btnOk:b,cancel:v})}}),ue=i(" \u673A\u5668: "),re={class:"dialog-footer"},de=i("\u53D6 \u6D88"),ge=i("\u786E \u5B9A");function me(e,o,c,r,y,E){const p=u("el-option"),h=u("el-select"),b=u("el-form-item"),v=u("el-input"),s=u("el-checkbox"),m=u("el-col"),D=u("el-form"),S=u("el-button"),B=u("el-dialog");return f(),F("div",null,[l(B,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":o[7]||(o[7]=t=>e.dialogVisible=t),"before-close":e.cancel,"close-on-click-modal":!1,width:"38%","destroy-on-close":!0},{footer:a(()=>[j("div",re,[l(S,{onClick:o[6]||(o[6]=t=>e.cancel())},{default:a(()=>[de]),_:1}),l(S,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:a(()=>[ge]),_:1},8,["loading","onClick"])])]),default:a(()=>[l(D,{model:e.form,ref:"mongoForm",rules:e.rules,"label-width":"85px"},{default:a(()=>[l(b,{prop:"projectId",label:"\u9879\u76EE",required:""},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l(b,{prop:"envId",label:"\u73AF\u5883",required:""},{default:a(()=>[l(h,{onChange:e.changeEnv,style:{width:"100%"},modelValue:e.form.envId,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.envId=t),placeholder:"\u8BF7\u9009\u62E9\u73AF\u5883"},{default:a(()=>[(f(!0),F(q,null,A(e.envs,t=>(f(),z(p,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["onChange","modelValue"])]),_:1}),l(b,{prop:"name",label:"\u540D\u79F0",required:""},{default:a(()=>[l(v,{modelValue:e.form.name,"onUpdate:modelValue":o[2]||(o[2]=t=>e.form.name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"uri",label:"uri",required:""},{default:a(()=>[l(v,{type:"textarea",rows:2,modelValue:e.form.uri,"onUpdate:modelValue":o[3]||(o[3]=t=>e.form.uri=t),modelModifiers:{trim:!0},placeholder:"\u5F62\u5982 mongodb://username:password@host1:port1","auto-complete":"off"},null,8,["modelValue"])]),_:1}),l(b,{prop:"enableSshTunnel",label:"SSH\u96A7\u9053:"},{default:a(()=>[l(m,{span:3},{default:a(()=>[l(s,{onChange:e.getSshTunnelMachines,modelValue:e.form.enableSshTunnel,"onUpdate:modelValue":o[4]||(o[4]=t=>e.form.enableSshTunnel=t),"true-label":1,"false-label":-1},null,8,["onChange","modelValue"])]),_:1}),e.form.enableSshTunnel==1?(f(),z(m,{key:0,span:2},{default:a(()=>[ue]),_:1})):L("",!0),e.form.enableSshTunnel==1?(f(),z(m,{key:1,span:19},{default:a(()=>[l(h,{style:{width:"100%"},modelValue:e.form.sshTunnelMachineId,"onUpdate:modelValue":o[5]||(o[5]=t=>e.form.sshTunnelMachineId=t),placeholder:"\u8BF7\u9009\u62E9SSH\u96A7\u9053\u673A\u5668"},{default:a(()=>[(f(!0),F(q,null,A(e.sshTunnelMachineList,t=>(f(),z(p,{key:t.id,label:`${t.ip}:${t.port} [${t.name}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):L("",!0)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var ce=G(se,[["render",me]]);const pe=O({name:"MongoList",components:{MongoEdit:ce},setup(){const e=P({projects:[],list:[],total:0,currentId:null,currentData:null,query:{pageNum:1,pageSize:10,prjectId:null,clusterId:null},mongoEditDialog:{visible:!1,data:null,title:"\u65B0\u589Emongo"},databaseDialog:{visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},collectionsDialog:{database:"",visible:!1,data:[],title:"",statsDialog:{visible:!1,data:{},title:""}},createCollectionDialog:{visible:!1,form:{name:""}}});te(async()=>{D()});const o=t=>{e.query.pageNum=t,D()},c=t=>{!t||(e.currentId=t.id,e.currentData=t)},r=async t=>{e.databaseDialog.data=(await C.databases.request({id:t})).Databases,e.databaseDialog.title="\u6570\u636E\u5E93\u5217\u8868",e.databaseDialog.visible=!0},y=async t=>{e.databaseDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:t,command:{dbStats:1}}),e.databaseDialog.statsDialog.title=`'${t}' stats`,e.databaseDialog.statsDialog.visible=!0},E=async t=>{e.collectionsDialog.database=t,e.collectionsDialog.data=[],p(t),e.collectionsDialog.title=`'${t}' \u96C6\u5408`,e.collectionsDialog.visible=!0},p=async t=>{const $=await C.collections.request({id:e.currentId,database:t}),d=[];for(let I of $)d.push({name:I});e.collectionsDialog.data=d},h=async t=>{e.collectionsDialog.statsDialog.data=await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{collStats:t}}),e.collectionsDialog.statsDialog.title=`'${t}' stats`,e.collectionsDialog.statsDialog.visible=!0},b=async t=>{await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{drop:t}}),k.success("\u96C6\u5408\u5220\u9664\u6210\u529F"),p(e.collectionsDialog.database)},v=()=>{e.createCollectionDialog.visible=!0},s=async()=>{const t=e.createCollectionDialog.form;await C.runCommand.request({id:e.currentId,database:e.collectionsDialog.database,command:{create:t.name}}),k.success("\u96C6\u5408\u521B\u5EFA\u6210\u529F"),e.createCollectionDialog.visible=!1,e.createCollectionDialog.form={},p(e.collectionsDialog.database)},m=async()=>{try{await ne.confirm("\u786E\u5B9A\u5220\u9664\u8BE5mongo?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await C.deleteMongo.request({id:e.currentId}),k.success("\u5220\u9664\u6210\u529F"),e.currentData=null,e.currentId=null,D()}catch{}},D=async()=>{const t=await C.mongoList.request(e.query);e.list=t.list,e.total=t.total},S=async(t=!1)=>{e.projects=await N.accountProjects.request(null),t?(e.mongoEditDialog.data=null,e.mongoEditDialog.title="\u65B0\u589Emongo"):(e.mongoEditDialog.data=e.currentData,e.mongoEditDialog.title="\u4FEE\u6539mongo"),e.mongoEditDialog.visible=!0},B=()=>{e.currentId=null,e.currentData=null,D()};return M(_({},H(e)),{search:D,handlePageChange:o,choose:c,showDatabases:r,showDatabaseStats:y,showCollections:E,showCollectionStats:h,onDeleteCollection:b,showCreateCollectionDialog:v,onCreateCollection:s,formatByteSize:ie,deleteMongo:m,editMongo:S,valChange:B})}}),fe=i("\u6DFB\u52A0"),be=i("\u7F16\u8F91"),De=i("\u5220\u9664"),he={style:{float:"right"}},ve=j("i",null,null,-1),Ce=i("\u6570\u636E\u5E93"),ye=i("stats"),Ee=i("\u96C6\u5408"),Se=i("\u65B0\u5EFA"),we=i("stats"),ze=i("\u5220\u9664"),Fe=i("\u53D6 \u6D88"),Be=i("\u786E \u5B9A");function Ve(e,o,c,r,y,E){const p=u("el-button"),h=u("el-option"),b=u("el-select"),v=u("el-radio"),s=u("el-table-column"),m=u("el-link"),D=u("el-table"),S=u("el-pagination"),B=u("el-row"),t=u("el-card"),$=u("el-divider"),d=u("el-descriptions-item"),I=u("el-descriptions"),V=u("el-dialog"),R=u("el-popconfirm"),J=u("el-input"),K=u("el-form-item"),Q=u("el-form"),W=u("mongo-edit");return f(),F("div",null,[l(t,null,{default:a(()=>[l(p,{type:"primary",icon:"plus",onClick:o[0]||(o[0]=n=>e.editMongo(!0)),plain:""},{default:a(()=>[fe]),_:1}),l(p,{type:"primary",icon:"edit",disabled:e.currentId==null,onClick:o[1]||(o[1]=n=>e.editMongo(!1)),plain:""},{default:a(()=>[be]),_:1},8,["disabled"]),l(p,{type:"danger",icon:"delete",disabled:e.currentId==null,onClick:e.deleteMongo,plain:""},{default:a(()=>[De]),_:1},8,["disabled","onClick"]),j("div",he,[l(b,{modelValue:e.query.projectId,"onUpdate:modelValue":o[2]||(o[2]=n=>e.query.projectId=n),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",filterable:"",clearable:""},{default:a(()=>[(f(!0),F(q,null,A(e.projects,n=>(f(),z(h,{key:n.id,label:`${n.name} [${n.remark}]`,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),l(p,{class:"ml5",onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])]),l(D,{data:e.list,style:{width:"100%"},onCurrentChange:e.choose,stripe:""},{default:a(()=>[l(s,{label:"\u9009\u62E9",width:"60px"},{default:a(n=>[l(v,{modelValue:e.currentId,"onUpdate:modelValue":o[3]||(o[3]=w=>e.currentId=w),label:n.row.id},{default:a(()=>[ve]),_:2},1032,["modelValue","label"])]),_:1}),l(s,{prop:"project",label:"\u9879\u76EE",width:""}),l(s,{prop:"env",label:"\u73AF\u5883",width:""}),l(s,{prop:"name",label:"\u540D\u79F0",width:""}),l(s,{prop:"uri",label:"\u8FDE\u63A5uri","min-width":"150","show-overflow-tooltip":""},{default:a(n=>[i(g(n.row.uri.split("@")[1]),1)]),_:1}),l(s,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4","min-width":"150"},{default:a(n=>[i(g(e.$filters.dateFormat(n.row.createTime)),1)]),_:1}),l(s,{prop:"creator",label:"\u521B\u5EFA\u4EBA"}),l(s,{label:"\u64CD\u4F5C",width:""},{default:a(n=>[l(m,{type:"primary",onClick:w=>e.showDatabases(n.row.id),plain:"",size:"small",underline:!1},{default:a(()=>[Ce]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),l(B,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:a(()=>[l(S,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":o[4]||(o[4]=n=>e.query.pageNum=n),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),l(V,{width:"800px",title:e.databaseDialog.title,modelValue:e.databaseDialog.visible,"onUpdate:modelValue":o[6]||(o[6]=n=>e.databaseDialog.visible=n)},{default:a(()=>[l(D,{data:e.databaseDialog.data,size:"small"},{default:a(()=>[l(s,{"min-width":"130",property:"Name",label:"\u5E93\u540D"}),l(s,{"min-width":"90",property:"SizeOnDisk",label:"size"},{default:a(n=>[i(g(e.formatByteSize(n.row.SizeOnDisk)),1)]),_:1}),l(s,{"min-width":"80",property:"Empty",label:"\u662F\u5426\u4E3A\u7A7A"}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showDatabaseStats(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[ye]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(m,{type:"primary",onClick:w=>e.showCollections(n.row.Name),plain:"",size:"small",underline:!1},{default:a(()=>[Ee]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.databaseDialog.statsDialog.title,modelValue:e.databaseDialog.statsDialog.visible,"onUpdate:modelValue":o[5]||(o[5]=n=>e.databaseDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u5E93\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"db","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.db),1)]),_:1}),l(d,{label:"collections","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.collections),1)]),_:1}),l(d,{label:"objects","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.objects),1)]),_:1}),l(d,{label:"indexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.databaseDialog.statsDialog.data.indexes),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"dataSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.dataSize)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"fsTotalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsTotalSize)),1)]),_:1}),l(d,{label:"fsUsedSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.fsUsedSize)),1)]),_:1}),l(d,{label:"indexSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.databaseDialog.statsDialog.data.indexSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"600px",title:e.collectionsDialog.title,modelValue:e.collectionsDialog.visible,"onUpdate:modelValue":o[8]||(o[8]=n=>e.collectionsDialog.visible=n)},{default:a(()=>[j("div",null,[l(p,{onClick:e.showCreateCollectionDialog,type:"primary",icon:"plus",size:"small"},{default:a(()=>[Se]),_:1},8,["onClick"])]),l(D,{border:"",stripe:"",data:e.collectionsDialog.data,size:"small"},{default:a(()=>[l(s,{prop:"name",label:"\u540D\u79F0","show-overflow-tooltip":""}),l(s,{"min-width":"80",label:"\u64CD\u4F5C"},{default:a(n=>[l(m,{type:"success",onClick:w=>e.showCollectionStats(n.row.name),plain:"",size:"small",underline:!1},{default:a(()=>[we]),_:2},1032,["onClick"]),l($,{direction:"vertical","border-style":"dashed"}),l(R,{onConfirm:w=>e.onDeleteCollection(n.row.name),title:"\u786E\u5B9A\u5220\u9664\u8BE5\u96C6\u5408?"},{reference:a(()=>[l(m,{type:"danger",plain:"",size:"small",underline:!1},{default:a(()=>[ze]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),l(V,{width:"700px",title:e.collectionsDialog.statsDialog.title,modelValue:e.collectionsDialog.statsDialog.visible,"onUpdate:modelValue":o[7]||(o[7]=n=>e.collectionsDialog.statsDialog.visible=n)},{default:a(()=>[l(I,{title:"\u96C6\u5408\u72B6\u6001\u4FE1\u606F",column:3,border:"",size:"small"},{default:a(()=>[l(d,{label:"ns","label-align":"right",span:2,align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.ns),1)]),_:1}),l(d,{label:"count","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.count),1)]),_:1}),l(d,{label:"avgObjSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.avgObjSize)),1)]),_:1}),l(d,{label:"nindexes","label-align":"right",align:"center"},{default:a(()=>[i(g(e.collectionsDialog.statsDialog.data.nindexes),1)]),_:1}),l(d,{label:"size","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.size)),1)]),_:1}),l(d,{label:"totalSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.totalSize)),1)]),_:1}),l(d,{label:"storageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.storageSize)),1)]),_:1}),l(d,{label:"freeStorageSize","label-align":"right",align:"center"},{default:a(()=>[i(g(e.formatByteSize(e.collectionsDialog.statsDialog.data.freeStorageSize)),1)]),_:1})]),_:1})]),_:1},8,["title","modelValue"])]),_:1},8,["title","modelValue"]),l(V,{width:"400px",title:"\u65B0\u5EFA\u96C6\u5408",modelValue:e.createCollectionDialog.visible,"onUpdate:modelValue":o[11]||(o[11]=n=>e.createCollectionDialog.visible=n),"destroy-on-close":!0},{footer:a(()=>[j("div",null,[l(p,{onClick:o[10]||(o[10]=n=>e.createCollectionDialog.visible=!1)},{default:a(()=>[Fe]),_:1}),l(p,{onClick:e.onCreateCollection,type:"primary"},{default:a(()=>[Be]),_:1},8,["onClick"])])]),default:a(()=>[l(Q,{model:e.createCollectionDialog.form,"label-width":"70px"},{default:a(()=>[l(K,{prop:"name",label:"\u96C6\u5408\u540D",required:""},{default:a(()=>[l(J,{modelValue:e.createCollectionDialog.form.name,"onUpdate:modelValue":o[9]||(o[9]=n=>e.createCollectionDialog.form.name=n),clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),l(W,{onValChange:e.valChange,projects:e.projects,title:e.mongoEditDialog.title,visible:e.mongoEditDialog.visible,"onUpdate:visible":o[12]||(o[12]=n=>e.mongoEditDialog.visible=n),mongo:e.mongoEditDialog.data,"onUpdate:mongo":o[13]||(o[13]=n=>e.mongoEditDialog.data=n)},null,8,["onValChange","projects","title","visible","mongo"])])}var Me=G(pe,[["render",Ve]]);export{Me as default}; diff --git a/server/static/static/assets/ProjectEnvSelect.1661345446364.js b/server/static/static/assets/ProjectEnvSelect.1661345446364.js new file mode 100644 index 00000000..2cc0c195 --- /dev/null +++ b/server/static/static/assets/ProjectEnvSelect.1661345446364.js @@ -0,0 +1 @@ +var P=Object.defineProperty,V=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var h=(o,e,n)=>e in o?P(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,j=(o,e)=>{for(var n in e||(e={}))B.call(e,n)&&h(o,n,e[n]);if(v)for(var n of v(e))$.call(e,n)&&h(o,n,e[n]);return o},_=(o,e)=>V(o,w(e));import{p as g}from"./api.16613454463644.js";import{A as S,r as F,o as A,t as N,_ as q,b as p,d as r,e as u,g as s,w as a,F as b,j as y,k as E,h as I,i as k,a3 as U}from"./index.1661345446364.js";const z=S({name:"ProjectEnvSelect",props:{visible:{type:Boolean},data:{type:Object},title:{type:String},machineId:{type:Number},isCommon:{type:Boolean}},setup(o,{emit:e}){const n=F({projects:[],envs:[],projectId:null,envId:null});A(async()=>{n.projects=await g.accountProjects.request(null)});const c=async l=>{e("update:projectId",l),e("changeProjectEnv",n.projectId,null),n.envId=null,n.envs=await g.projectEnvs.request({projectId:l})},d=l=>{e("update:envId",l),e("changeProjectEnv",n.projectId,l)};return _(j({},N(n)),{changeProject:c,changeEnv:d})}}),D={style:{float:"left"}},L={style:{float:"right",color:"#8492a6","font-size":"13px"}};function M(o,e,n,c,d,l){const i=p("el-option"),f=p("el-select"),m=p("el-form-item"),C=p("el-form");return r(),u("div",null,[s(C,{class:"search-form","label-position":"right",inline:!0},{default:a(()=>[s(m,{prop:"project",label:"\u9879\u76EE","label-width":"40px"},{default:a(()=>[s(f,{modelValue:o.projectId,"onUpdate:modelValue":e[0]||(e[0]=t=>o.projectId=t),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:o.changeProject,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.projects,t=>(r(),E(i,{key:t.id,label:`${t.name} [${t.remark}]`,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),s(m,{prop:"env",label:"env","label-width":"33px"},{default:a(()=>[s(f,{style:{width:"80px"},modelValue:o.envId,"onUpdate:modelValue":e[1]||(e[1]=t=>o.envId=t),placeholder:"\u73AF\u5883",onChange:o.changeEnv,filterable:""},{default:a(()=>[(r(!0),u(b,null,y(o.envs,t=>(r(),E(i,{key:t.id,label:t.name,value:t.id},{default:a(()=>[I("span",D,k(t.name),1),I("span",L,k(t.remark),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),U(o.$slots,"default")]),_:3})])}var H=q(z,[["render",M]]);export{H as P}; diff --git a/server/static/static/assets/ProjectList.1661345446364.js b/server/static/static/assets/ProjectList.1661345446364.js new file mode 100644 index 00000000..a13f14de --- /dev/null +++ b/server/static/static/assets/ProjectList.1661345446364.js @@ -0,0 +1 @@ +var L=Object.defineProperty,S=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var N=(e,l,d)=>l in e?L(e,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[l]=d,k=(e,l)=>{for(var d in l||(l={}))G.call(l,d)&&N(e,d,l[d]);if(U)for(var d of U(l))R.call(l,d)&&N(e,d,l[d]);return e},T=(e,l)=>S(e,_(l));import{p}from"./api.16613454463644.js";import{b as H}from"./api.16613454463642.js";import{n as B,b as J}from"./assert.1661345446364.js";import{_ as K,A as O,r as Q,o as W,t as X,b as i,C as Y,d as m,e as z,g as a,w as t,h as g,x as D,k as c,B as u,i as I,F as Z,j as x,E as y,G as ee}from"./index.1661345446364.js";import"./Api.1661345446364.js";const oe=O({name:"ProjectList",components:{},setup(){const e=Q({permissions:{saveProject:"project:save",delProject:"project:del",saveMember:"project:member:add",delMember:"project:member:del",saveEnv:"project:env:add"},query:{pageNum:1,pageSize:10,name:null},total:0,projects:[],btnLoading:!1,chooseId:null,chooseData:null,addProjectDialog:{title:"\u65B0\u589E\u9879\u76EE",visible:!1,form:{name:"",remark:""}},showEnvDialog:{visible:!1,envs:[],title:"",addVisible:!1,envForm:{name:"",remark:"",projectId:0}},showMemDialog:{visible:!1,chooseId:null,chooseData:null,query:{pageSize:8,pageNum:1,projectId:null},members:{list:[],total:null},title:"",addVisible:!1,memForm:{},accounts:[]}});W(()=>{l()});const l=async()=>{let o=await p.projects.request(e.query);e.projects=o.list,e.total=o.total},d=o=>{e.query.pageNum=o,l()},q=o=>{o?e.addProjectDialog.form=k({},o):e.addProjectDialog.form={},e.addProjectDialog.visible=!0},j=()=>{e.addProjectDialog.visible=!1,e.addProjectDialog.form={}},$=async()=>{const o=e.addProjectDialog.form;B(o.name,"\u9879\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A"),B(o.remark,"\u9879\u76EE\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"),await p.saveProject.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),l(),j()},s=async()=>{try{await ee.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u9879\u76EE?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await p.delProject.request({id:e.chooseId}),y.success("\u5220\u9664\u6210\u529F"),e.chooseData=null,e.chooseId=null,l()}catch{}},h=o=>{!o||(e.chooseId=o.id,e.chooseData=o)},M=async o=>{e.showMemDialog.query.projectId=o.id,await b(),e.showMemDialog.title=`${o.name}\u7684\u6210\u5458\u4FE1\u606F`,e.showMemDialog.visible=!0},n=o=>{!o||(e.showMemDialog.chooseData=o,e.showMemDialog.chooseId=o.id)},F=async()=>{J(e.showMemDialog.chooseData,"\u8BF7\u9009\u9009\u62E9\u6210\u5458"),await p.deleteProjectMem.request(e.showMemDialog.chooseData),y.success("\u79FB\u9664\u6210\u529F"),b()},b=async()=>{const o=await p.projectMems.request(e.showMemDialog.query);e.showMemDialog.members.list=o.list,e.showMemDialog.members.total=o.total},C=async o=>{e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.id}),e.showEnvDialog.title=`${o.name}\u7684\u73AF\u5883\u4FE1\u606F`,e.showEnvDialog.visible=!0},V=()=>{e.showMemDialog.addVisible=!0},f=async()=>{const o=e.showMemDialog.memForm;o.projectId=e.chooseData.id,B(o.accountId,"\u8BF7\u5148\u9009\u62E9\u8D26\u53F7"),await p.saveProjectMem.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),b(),v()},v=()=>{e.showMemDialog.memForm={},e.showMemDialog.addVisible=!1,e.showMemDialog.chooseData=null,e.showMemDialog.chooseId=null},w=o=>{H.list.request({username:o}).then(E=>{e.showMemDialog.accounts=E.list})},A=()=>{e.showEnvDialog.addVisible=!0},P=async()=>{const o=e.showEnvDialog.envForm;o.projectId=e.chooseData.id,await p.saveProjectEnv.request(o),y.success("\u4FDD\u5B58\u6210\u529F"),e.showEnvDialog.envs=await p.projectEnvs.request({projectId:o.projectId}),r()},r=()=>{e.showEnvDialog.envForm={},e.showEnvDialog.addVisible=!1};return T(k({},X(e)),{search:l,handlePageChange:d,choose:h,showAddProjectDialog:q,addProject:$,delProject:s,cancelAddProject:j,showMembers:M,setMemebers:b,showEnv:C,showAddMemberDialog:V,addMember:f,chooseMember:n,deleteMember:F,cancelAddMember:v,showAddEnvDialog:A,addEnv:P,cancelAddEnv:r,getAccount:w})}}),le={class:"project-list"},ae=u("\u6DFB\u52A0"),te=u("\u7F16\u8F91"),se=u("\u6210\u5458\u7BA1\u7406"),ue=u("\u73AF\u5883\u7BA1\u7406"),ne=u("\u5220\u9664"),de={style:{float:"right"}},ie=g("i",null,null,-1),re={class:"dialog-footer"},me=u("\u53D6 \u6D88"),pe=u("\u786E \u5B9A"),ce={class:"toolbar"},ge=u("\u6DFB\u52A0"),De={class:"dialog-footer"},he=u("\u53D6 \u6D88"),be=u("\u786E \u5B9A"),fe={class:"toolbar"},we=u("\u6DFB\u52A0"),ve=u("\u79FB\u9664"),Fe=g("i",null,null,-1),Ee={class:"dialog-footer"},ye=u("\u53D6 \u6D88"),Me=u("\u786E \u5B9A");function je(e,l,d,q,j,$){const s=i("el-button"),h=i("el-input"),M=i("el-radio"),n=i("el-table-column"),F=i("el-table"),b=i("el-pagination"),C=i("el-row"),V=i("el-card"),f=i("el-form-item"),v=i("el-form"),w=i("el-dialog"),A=i("el-option"),P=i("el-select"),r=Y("auth");return m(),z("div",le,[a(V,null,{default:t(()=>[g("div",null,[D((m(),c(s,{onClick:e.showAddProjectDialog,type:"primary",icon:"plus"},{default:t(()=>[ae]),_:1},8,["onClick"])),[[r,e.permissions.saveProject]]),D((m(),c(s,{onClick:l[0]||(l[0]=o=>e.showAddProjectDialog(e.chooseData)),disabled:e.chooseId==null,type:"primary",icon:"edit"},{default:t(()=>[te]),_:1},8,["disabled"])),[[r,e.permissions.saveProject]]),a(s,{onClick:l[1]||(l[1]=o=>e.showMembers(e.chooseData)),disabled:e.chooseId==null,type:"success",icon:"user"},{default:t(()=>[se]),_:1},8,["disabled"]),a(s,{onClick:l[2]||(l[2]=o=>e.showEnv(e.chooseData)),disabled:e.chooseId==null,type:"info",icon:"setting"},{default:t(()=>[ue]),_:1},8,["disabled"]),D((m(),c(s,{onClick:e.delProject,disabled:e.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ne]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delProject]]),g("div",de,[a(h,{class:"mr2",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\uFF01",style:{width:"200px"},modelValue:e.query.name,"onUpdate:modelValue":l[3]||(l[3]=o=>e.query.name=o),onClear:e.search,clearable:""},null,8,["modelValue","onClear"]),a(s,{onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])])]),a(F,{data:e.projects,onCurrentChange:e.choose,ref:"table",style:{width:"100%"}},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"55px"},{default:t(o=>[a(M,{modelValue:e.chooseId,"onUpdate:modelValue":l[4]||(l[4]=E=>e.chooseId=E),label:o.row.id},{default:t(()=>[ie]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{prop:"name",label:"\u9879\u76EE\u540D"}),a(n,{prop:"remark",label:"\u63CF\u8FF0","min-width":"180px","show-overflow-tooltip":""}),a(n,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{prop:"creator",label:"\u521B\u5EFA\u8005"})]),_:1},8,["data","onCurrentChange"]),a(C,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:t(()=>[a(b,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":l[5]||(l[5]=o=>e.query.pageNum=o),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1}),a(w,{width:"400px",title:"\u9879\u76EE\u7F16\u8F91","before-close":e.cancelAddProject,modelValue:e.addProjectDialog.visible,"onUpdate:modelValue":l[9]||(l[9]=o=>e.addProjectDialog.visible=o)},{footer:t(()=>[g("div",re,[a(s,{onClick:l[8]||(l[8]=o=>e.cancelAddProject())},{default:t(()=>[me]),_:1}),a(s,{onClick:e.addProject,type:"primary"},{default:t(()=>[pe]),_:1},8,["onClick"])])]),default:t(()=>[a(v,{model:e.addProjectDialog.form,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u9879\u76EE\u540D:",required:""},{default:t(()=>[a(h,{disabled:!!e.addProjectDialog.form.id,modelValue:e.addProjectDialog.form.name,"onUpdate:modelValue":l[6]||(l[6]=o=>e.addProjectDialog.form.name=o),"auto-complete":"off"},null,8,["disabled","modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.addProjectDialog.form.remark,"onUpdate:modelValue":l[7]||(l[7]=o=>e.addProjectDialog.form.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"]),a(w,{width:"500px",title:e.showEnvDialog.title,modelValue:e.showEnvDialog.visible,"onUpdate:modelValue":l[14]||(l[14]=o=>e.showEnvDialog.visible=o)},{default:t(()=>[g("div",ce,[D((m(),c(s,{onClick:e.showAddEnvDialog,type:"primary",icon:"plus"},{default:t(()=>[ge]),_:1},8,["onClick"])),[[r,e.permissions.saveMember]])]),a(F,{border:"",data:e.showEnvDialog.envs},{default:t(()=>[a(n,{property:"name",label:"\u73AF\u5883\u540D",width:"125"}),a(n,{property:"remark",label:"\u63CF\u8FF0",width:"125"}),a(n,{property:"createTime",label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1})]),_:1},8,["data"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u73AF\u5883","before-close":e.cancelAddEnv,modelValue:e.showEnvDialog.addVisible,"onUpdate:modelValue":l[13]||(l[13]=o=>e.showEnvDialog.addVisible=o)},{footer:t(()=>[g("div",De,[a(s,{onClick:l[12]||(l[12]=o=>e.cancelAddEnv())},{default:t(()=>[he]),_:1}),D((m(),c(s,{onClick:e.addEnv,type:"primary",loading:e.btnLoading},{default:t(()=>[be]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveEnv]])])]),default:t(()=>[a(v,{model:e.showEnvDialog.envForm,"label-width":"70px"},{default:t(()=>[a(f,{prop:"name",label:"\u73AF\u5883\u540D:",required:""},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.name,"onUpdate:modelValue":l[10]||(l[10]=o=>e.showEnvDialog.envForm.name=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u63CF\u8FF0:"},{default:t(()=>[a(h,{modelValue:e.showEnvDialog.envForm.remark,"onUpdate:modelValue":l[11]||(l[11]=o=>e.showEnvDialog.envForm.remark=o),"auto-complete":"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"]),a(w,{width:"500px",title:e.showMemDialog.title,modelValue:e.showMemDialog.visible,"onUpdate:modelValue":l[21]||(l[21]=o=>e.showMemDialog.visible=o)},{default:t(()=>[g("div",fe,[D((m(),c(s,{onClick:l[15]||(l[15]=o=>e.showAddMemberDialog()),type:"primary",icon:"plus"},{default:t(()=>[we]),_:1})),[[r,e.permissions.saveMember]]),D((m(),c(s,{onClick:e.deleteMember,disabled:e.showMemDialog.chooseId==null,type:"danger",icon:"delete"},{default:t(()=>[ve]),_:1},8,["onClick","disabled"])),[[r,e.permissions.delMember]])]),a(F,{onCurrentChange:e.chooseMember,border:"",data:e.showMemDialog.members.list},{default:t(()=>[a(n,{label:"\u9009\u62E9",width:"50px"},{default:t(o=>[a(M,{modelValue:e.showMemDialog.chooseId,"onUpdate:modelValue":l[16]||(l[16]=E=>e.showMemDialog.chooseId=E),label:o.row.id},{default:t(()=>[Fe]),_:2},1032,["modelValue","label"])]),_:1}),a(n,{property:"username",label:"\u8D26\u53F7",width:"125"}),a(n,{property:"createTime",label:"\u52A0\u5165\u65F6\u95F4"},{default:t(o=>[u(I(e.$filters.dateFormat(o.row.createTime)),1)]),_:1}),a(n,{property:"creator",label:"\u5206\u914D\u8005",width:"125"})]),_:1},8,["onCurrentChange","data"]),a(b,{onCurrentChange:e.setMemebers,style:{"text-align":"center"},background:"",layout:"prev, pager, next, total, jumper",total:e.showMemDialog.members.total,"current-page":e.showMemDialog.query.pageNum,"onUpdate:current-page":l[17]||(l[17]=o=>e.showMemDialog.query.pageNum=o),"page-size":e.showMemDialog.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"]),a(w,{width:"400px",title:"\u6DFB\u52A0\u6210\u5458","before-close":e.cancelAddMember,modelValue:e.showMemDialog.addVisible,"onUpdate:modelValue":l[20]||(l[20]=o=>e.showMemDialog.addVisible=o)},{footer:t(()=>[g("div",Ee,[a(s,{onClick:l[19]||(l[19]=o=>e.cancelAddMember())},{default:t(()=>[ye]),_:1}),D((m(),c(s,{onClick:e.addMember,type:"primary",loading:e.btnLoading},{default:t(()=>[Me]),_:1},8,["onClick","loading"])),[[r,e.permissions.saveMember]])])]),default:t(()=>[a(v,{model:e.showMemDialog.memForm,"label-width":"70px"},{default:t(()=>[a(f,{label:"\u8D26\u53F7:"},{default:t(()=>[a(P,{style:{width:"100%"},remote:"","remote-method":e.getAccount,modelValue:e.showMemDialog.memForm.accountId,"onUpdate:modelValue":l[18]||(l[18]=o=>e.showMemDialog.memForm.accountId=o),filterable:"",placeholder:"\u8BF7\u8F93\u5165\u8D26\u53F7\u6A21\u7CCA\u641C\u7D22\u5E76\u9009\u62E9"},{default:t(()=>[(m(!0),z(Z,null,x(e.showMemDialog.accounts,o=>(m(),c(A,{key:o.id,label:o.username,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["remote-method","modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["before-close","modelValue"])]),_:1},8,["title","modelValue"])])}var Ie=K(oe,[["render",je]]);export{Ie as default}; diff --git a/server/static/static/assets/SqlExecBox.1661345446364.css b/server/static/static/assets/SqlExecBox.1661345446364.css new file mode 100644 index 00000000..0ff166b3 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.css @@ -0,0 +1 @@ +.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::selection,.cm-s-base16-light .CodeMirror-line>span::selection,.cm-s-base16-light .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-line::-moz-selection,.cm-s-base16-light .CodeMirror-line>span::-moz-selection,.cm-s-base16-light .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light .CodeMirror-gutters{background:#f5f5f5;border-right:0px}.cm-s-base16-light .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light .CodeMirror-guttermarker-subtle,.cm-s-base16-light .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light span.cm-comment{color:#8f5536}.cm-s-base16-light span.cm-atom,.cm-s-base16-light span.cm-number{color:#aa759f}.cm-s-base16-light span.cm-property,.cm-s-base16-light span.cm-attribute{color:#90a959}.cm-s-base16-light span.cm-keyword{color:#ac4142}.cm-s-base16-light span.cm-string{color:#f4bf75}.cm-s-base16-light span.cm-variable{color:#90a959}.cm-s-base16-light span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light span.cm-def{color:#d28445}.cm-s-base16-light span.cm-bracket{color:#202020}.cm-s-base16-light span.cm-tag{color:#ac4142}.cm-s-base16-light span.cm-link{color:#aa759f}.cm-s-base16-light span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light .CodeMirror-activeline-background{background:#DDDCDC}.cm-s-base16-light .CodeMirror-matchingbracket{color:#f5f5f5!important;background-color:#6a9fb5!important}.codesql{font-size:9pt;font-weight:600} diff --git a/server/static/static/assets/SqlExecBox.1661345446364.js b/server/static/static/assets/SqlExecBox.1661345446364.js new file mode 100644 index 00000000..0ad57e21 --- /dev/null +++ b/server/static/static/assets/SqlExecBox.1661345446364.js @@ -0,0 +1,21 @@ +var TT=Object.defineProperty,RT=Object.defineProperties;var AT=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var tT=Object.prototype.hasOwnProperty,ST=Object.prototype.propertyIsEnumerable;var fe=(R,e,S)=>e in R?TT(R,e,{enumerable:!0,configurable:!0,writable:!0,value:S}):R[e]=S,Ue=(R,e)=>{for(var S in e||(e={}))tT.call(e,S)&&fe(R,S,e[S]);if(Me)for(var S of Me(e))ST.call(e,S)&&fe(R,S,e[S]);return R},le=(R,e)=>RT(R,AT(e));import{A as OT,Z as rT,$ as IT,a0 as NT,q as nT,r as _T,t as LT,E as gE,m as CT,_ as oT,b as OE,d as aT,e as iT,g as RE,w as rE,h as PT,B as Xe,a1 as uT,a2 as DT}from"./index.1661345446364.js";import{A as k}from"./Api.1661345446364.js";import{c as sT}from"./codemirror.1661345446364.js";const MT={dbs:k.create("/dbs","get"),saveDb:k.create("/dbs","post"),getAllDatabase:k.create("/dbs/databases","post"),getDbPwd:k.create("/dbs/{id}/pwd","get"),deleteDb:k.create("/dbs/{id}","delete"),dumpDb:k.create("/dbs/{id}/dump","post"),tableInfos:k.create("/dbs/{id}/t-infos","get"),tableIndex:k.create("/dbs/{id}/t-index","get"),tableDdl:k.create("/dbs/{id}/t-create-ddl","get"),tableMetadata:k.create("/dbs/{id}/t-metadata","get"),columnMetadata:k.create("/dbs/{id}/c-metadata","get"),hintTables:k.create("/dbs/{id}/hint-tables","get"),sqlExec:k.create("/dbs/{id}/exec-sql","post"),saveSql:k.create("/dbs/{id}/sql","post"),getSql:k.create("/dbs/{id}/sql","get"),getSqlNames:k.create("/dbs/{id}/sql-names","get"),deleteDbSql:k.create("/dbs/{id}/sql","delete"),getSqlExecs:k.create("/dbs/{dbId}/sql-execs","get")};var ge={},$={},wE={exports:{}},J={exports:{}},SE={};Object.defineProperty(SE,"__esModule",{value:!0});SE.indentString=fT;SE.isTabularStyle=UT;function fT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"?" ".repeat(10):R.useTabs?" ":" ".repeat(R.tabWidth)}function UT(R){return R.indentStyle==="tabularLeft"||R.indentStyle==="tabularRight"}var kE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function S(c,C){if(!(c instanceof C))throw new TypeError("Cannot call a class as a function")}function r(c,C){for(var G=0;G0?{type:r.NodeType.statement,children:a,hasSemicolon:!1}:void 0;a.push(this.expression())}}},{key:"expression",value:function(){return this.limitClause()||this.clause()||this.setOperation()||this.functionCall()||this.arraySubscript()||this.parenthesis()||this.betweenPredicate()||this.allColumnsAsterisk()||this.nextTokenNode()}},{key:"clause",value:function(){if(this.look().type===S.TokenType.RESERVED_COMMAND){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.clause,nameToken:a,children:o}}}},{key:"setOperation",value:function(){if(this.look().type===S.TokenType.RESERVED_SET_OPERATION){var a=this.next(),o=this.expressionsUntilClauseEnd();return{type:r.NodeType.set_operation,nameToken:a,children:o}}}},{key:"functionCall",value:function(){if(this.look().type===S.TokenType.RESERVED_FUNCTION_NAME&&this.look(1).text==="(")return{type:r.NodeType.function_call,nameToken:this.next(),parenthesis:this.parenthesis()}}},{key:"arraySubscript",value:function(){if((this.look().type===S.TokenType.RESERVED_KEYWORD||this.look().type===S.TokenType.IDENTIFIER)&&this.look(1).text==="[")return{type:r.NodeType.array_subscript,arrayToken:this.next(),parenthesis:this.parenthesis()}}},{key:"parenthesis",value:function(){if(this.look().type===S.TokenType.OPEN_PAREN){for(var a=[],o=this.next(),I=o.text,M="";this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.EOF;)a.push(this.expression());return this.look().type===S.TokenType.CLOSE_PAREN&&(M=this.next().text),{type:r.NodeType.parenthesis,children:a,openParen:I,closeParen:M}}}},{key:"betweenPredicate",value:function(){if(S.isToken.BETWEEN(this.look())&&S.isToken.AND(this.look(2)))return{type:r.NodeType.between_predicate,betweenToken:this.next(),expr1:this.next(),andToken:this.next(),expr2:this.next()}}},{key:"limitClause",value:function(){if(S.isToken.LIMIT(this.look())){var a=this.next(),o=this.expressionsUntilClauseEnd(function(M){return M.type===S.TokenType.COMMA});if(this.look().type===S.TokenType.COMMA){this.next();var I=this.expressionsUntilClauseEnd();return{type:r.NodeType.limit_clause,limitToken:a,offset:o,count:I}}else return{type:r.NodeType.limit_clause,limitToken:a,count:o}}}},{key:"allColumnsAsterisk",value:function(){if(this.look().text==="*"&&S.isToken.SELECT(this.look(-1)))return this.next(),{type:r.NodeType.all_columns_asterisk}}},{key:"expressionsUntilClauseEnd",value:function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){return!1},o=[];this.look().type!==S.TokenType.RESERVED_COMMAND&&this.look().type!==S.TokenType.RESERVED_SET_OPERATION&&this.look().type!==S.TokenType.EOF&&this.look().type!==S.TokenType.CLOSE_PAREN&&this.look().type!==S.TokenType.DELIMITER&&!a(this.look());)o.push(this.expression());return o}},{key:"look",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.tokens[this.index+a]||S.EOF_TOKEN}},{key:"next",value:function(){return this.tokens[this.index++]||S.EOF_TOKEN}},{key:"nextTokenNode",value:function(){return{type:r.NodeType.token,token:this.next()}}}]),G}();e.default=C,R.exports=e.default})(xE,xE.exports);var QE={exports:{}},h={};Object.defineProperty(h,"__esModule",{value:!0});h.sum=h.sortByLengthDesc=h.maxLength=h.last=h.flatKeywordList=h.equalizeWhitespace=h.dedupe=void 0;function yT(R,e){var S=typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(!S){if(Array.isArray(R)||(S=Ke(R))||e&&R&&typeof R.length=="number"){S&&(R=S);var r=0,f=function(){};return{s:f,n:function(){return r>=R.length?{done:!0}:{done:!1,value:R[r++]}},e:function(G){throw G},f}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,U=!1,c;return{s:function(){S=S.call(R)},n:function(){var G=S.next();return p=G.done,G},e:function(G){U=!0,c=G},f:function(){try{!p&&S.return!=null&&S.return()}finally{if(U)throw c}}}}function HT(R){return YT(R)||FT(R)||Ke(R)||BT()}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ke(R,e){if(!!R){if(typeof R=="string")return ZE(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return ZE(R,e)}}function FT(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function YT(R){if(Array.isArray(R))return ZE(R)}function ZE(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);Sd.length)&&(H=d.length);for(var i=0,u=new Array(H);iL.length)&&(a=L.length);for(var o=0,I=new Array(a);o=o.length?{done:!0}:{done:!1,value:o[y++]}},e:function(s){throw s},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,i=!1,u;return{s:function(){M=M.call(o)},n:function(){var s=M.next();return H=s.done,s},e:function(s){i=!0,u=s},f:function(){try{!H&&M.return!=null&&M.return()}finally{if(i)throw u}}}}function U(o,I){if(!!o){if(typeof o=="string")return c(o,I);var M=Object.prototype.toString.call(o).slice(8,-1);if(M==="Object"&&o.constructor&&(M=o.constructor.name),M==="Map"||M==="Set")return Array.from(o);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(o,I)}}function c(o,I){(I==null||I>o.length)&&(I=o.length);for(var M=0,y=new Array(I);Mthis.expressionWidth)return y}}catch(u){d.e(u)}finally{d.f()}return y}},{key:"betweenWidth",value:function(M){return(0,S.sum)([M.betweenToken,M.expr1,M.andToken,M.expr2].map(function(y){return y.text.length}))}},{key:"isForbiddenToken",value:function(M){return M.type===r.TokenType.RESERVED_LOGICAL_OPERATOR||M.type===r.TokenType.LINE_COMMENT||M.type===r.TokenType.BLOCK_COMMENT||r.isToken.CASE(M)}}]),o}();e.default=a,R.exports=e.default})($E,$E.exports);var ue={};(function(R){Object.defineProperty(R,"__esModule",{value:!0}),R.default=R.WS=void 0;var e=h;function S(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function r(L,a){for(var o=0;o0)switch((0,e.last)(this.items)){case U.NEWLINE:this.items.pop(),this.items.push(o);break;case U.MANDATORY_NEWLINE:break;default:this.items.push(o);break}}},{key:"addIndentation",value:function(){for(var o=0;oI.length)&&(M=I.length);for(var y=0,d=new Array(M);y=10&&I.includes(" ")){var d=I.split(" "),H=p(d);I=H[0],y=H.slice(1)}return M==="tabularLeft"?I=I.padEnd(9," "):I=I.padStart(9," "),I+[""].concat(S(y)).join(" ")}function o(I){return I.type===e.TokenType.RESERVED_LOGICAL_OPERATOR||I.type===e.TokenType.RESERVED_DEPENDENT_CLAUSE||I.type===e.TokenType.RESERVED_COMMAND||I.type===e.TokenType.RESERVED_SET_OPERATION||I.type===e.TokenType.RESERVED_JOIN}})(ke);(function(R,e){function S(i){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},S(i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h,f=SE,p=X,U=z,c=o($E.exports),C=ue,G=a(ke);function L(i){if(typeof WeakMap!="function")return null;var u=new WeakMap,n=new WeakMap;return(L=function(F){return F?n:u})(i)}function a(i,u){if(!u&&i&&i.__esModule)return i;if(i===null||S(i)!=="object"&&typeof i!="function")return{default:i};var n=L(u);if(n&&n.has(i))return n.get(i);var s={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in i)if(v!=="default"&&Object.prototype.hasOwnProperty.call(i,v)){var P=F?Object.getOwnPropertyDescriptor(i,v):null;P&&(P.get||P.set)?Object.defineProperty(s,v,P):s[v]=i[v]}return s.default=i,n&&n.set(i,s),s}function o(i){return i&&i.__esModule?i:{default:i}}function I(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}function M(i,u){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:this.inline;return new i({cfg:this.cfg,params:this.params,layout:this.layout,inline:s}).format(n)}},{key:"formatToken",value:function(n){switch(n.type){case p.TokenType.LINE_COMMENT:return this.formatLineComment(n);case p.TokenType.BLOCK_COMMENT:return this.formatBlockComment(n);case p.TokenType.RESERVED_JOIN:return this.formatJoin(n);case p.TokenType.RESERVED_DEPENDENT_CLAUSE:return this.formatDependentClause(n);case p.TokenType.RESERVED_LOGICAL_OPERATOR:return this.formatLogicalOperator(n);case p.TokenType.RESERVED_KEYWORD:case p.TokenType.RESERVED_FUNCTION_NAME:case p.TokenType.RESERVED_PHRASE:return this.formatKeyword(n);case p.TokenType.RESERVED_CASE_START:return this.formatCaseStart(n);case p.TokenType.RESERVED_CASE_END:return this.formatCaseEnd(n);case p.TokenType.COMMA:return this.formatComma(n);case p.TokenType.OPERATOR:return this.formatOperator(n);case p.TokenType.IDENTIFIER:case p.TokenType.QUOTED_IDENTIFIER:case p.TokenType.STRING:case p.TokenType.NUMBER:case p.TokenType.VARIABLE:case p.TokenType.NAMED_PARAMETER:case p.TokenType.QUOTED_PARAMETER:case p.TokenType.NUMBERED_PARAMETER:case p.TokenType.POSITIONAL_PARAMETER:return this.formatLiteral(n);default:throw new Error("Unexpected token type: ".concat(n.type))}}},{key:"formatLiteral",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLineComment",value:function(n){/\n/.test(n.precedingWhitespace||"")?this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT):this.layout.add(C.WS.NO_NEWLINE,C.WS.SPACE,this.show(n),C.WS.MANDATORY_NEWLINE,C.WS.INDENT)}},{key:"formatBlockComment",value:function(n){var s=this;this.splitBlockComment(n.text).forEach(function(F){s.layout.add(C.WS.NEWLINE,C.WS.INDENT,F)}),this.layout.add(C.WS.NEWLINE,C.WS.INDENT)}},{key:"splitBlockComment",value:function(n){return n.split(/\n/).map(function(s){return/^\s*\*/.test(s)?" "+s.replace(/^\s*/,""):s.replace(/^\s*/,"")})}},{key:"formatJoin",value:function(n){(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatKeyword",value:function(n){this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatDependentClause",value:function(n){this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatOperator",value:function(n){if(n.text===":"){this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE);return}else if(n.text==="."||n.text==="::"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}else if(n.text==="@"&&this.cfg.language==="plsql"){this.layout.add(C.WS.NO_SPACE,this.show(n));return}this.cfg.denseOperators?this.layout.add(C.WS.NO_SPACE,this.show(n)):this.layout.add(this.show(n),C.WS.SPACE)}},{key:"formatLogicalOperator",value:function(n){this.cfg.logicalOperatorNewline==="before"?(0,f.isTabularStyle)(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE):this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseStart",value:function(n){this.layout.indentation.increaseBlockLevel(),this.layout.add(this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"formatCaseEnd",value:function(n){this.formatMultilineBlockEnd(n)}},{key:"formatMultilineBlockEnd",value:function(n){this.layout.indentation.decreaseBlockLevel(),this.layout.add(C.WS.NEWLINE,C.WS.INDENT,this.show(n),C.WS.SPACE)}},{key:"formatComma",value:function(n){this.inline?this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.SPACE):this.layout.add(C.WS.NO_SPACE,this.show(n),C.WS.NEWLINE,C.WS.INDENT)}},{key:"show",value:function(n){return(0,G.isTabularToken)(n)?(0,G.default)(this.showToken(n),this.cfg.indentStyle):this.showToken(n)}},{key:"showNonTabular",value:function(n){return this.showToken(n)}},{key:"showToken",value:function(n){if((0,p.isReserved)(n))switch(this.cfg.keywordCase){case"preserve":return(0,r.equalizeWhitespace)(n.raw);case"upper":return n.text;case"lower":return n.text.toLowerCase()}else return(0,p.isParameter)(n)?this.params.get(n):n.text}}]),i}();e.default=H,R.exports=e.default})(qE,qE.exports);var zE={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=h;function r(L,a){if(!(L instanceof a))throw new TypeError("Cannot call a class as a function")}function f(L,a){for(var o=0;o0&&(0,S.last)(this.indentTypes)===c&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0;){var o=this.indentTypes.pop();if(o!==c)break}}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}]),L}();e.default=G,R.exports=e.default})(zE,zE.exports);(function(R,e){function S(u){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},S(u)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=SE,f=I(kE.exports),p=I(xE.exports),U=I(QE.exports),c=I(jE.exports),C=I(qE.exports),G=o(ue),L=I(zE.exports);function a(u){if(typeof WeakMap!="function")return null;var n=new WeakMap,s=new WeakMap;return(a=function(v){return v?s:n})(u)}function o(u,n){if(!n&&u&&u.__esModule)return u;if(u===null||S(u)!=="object"&&typeof u!="function")return{default:u};var s=a(n);if(s&&s.has(u))return s.get(u);var F={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in u)if(P!=="default"&&Object.prototype.hasOwnProperty.call(u,P)){var t=v?Object.getOwnPropertyDescriptor(u,P):null;t&&(t.get||t.set)?Object.defineProperty(F,P,t):F[P]=u[P]}return F.default=u,s&&s.set(u,F),F}function I(u){return u&&u.__esModule?u:{default:u}}function M(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function y(u,n){for(var s=0;sR.length)&&(e=R.length);for(var S=0,r=new Array(e);S1&&arguments[1]!==void 0?arguments[1]:{};if(e.length===0)return/^\b$/;var r=ER(S),f=(0,Je.sortByLengthDesc)(e).map(w.toCaseInsensitivePattern).join("|").replace(/ /g,"\\s+");return new RegExp("(?:".concat(f,")").concat(r,"\\b"),"iuy")};g.reservedWord=eR;var TR=function(e,S){if(!!e.length){var r=e.map(w.escapeRegExp).join("|");return(0,w.patternToRegex)("(?:".concat(r,")(?:").concat(S,")"))}};g.parameter=TR;var RR=function(){var e={"<":">","[":"]","(":")","{":"}"},S="{left}(?:(?!{right}').)*?{right}",r=Object.entries(e).map(function(c){var C=xT(c,2),G=C[0],L=C[1];return S.replace(/{left}/g,(0,w.escapeRegExp)(G)).replace(/{right}/g,(0,w.escapeRegExp)(L))}),f=(0,w.escapeRegExp)(Object.keys(e).join("")),p=String.raw(ce||(ce=EE(["(?[^s","])(?:(?!k').)*?k"],["(?[^\\s","])(?:(?!\\k').)*?\\k"])),f),U="[Qq]'(?:".concat(p,"|").concat(r.join("|"),")'");return U},ee={"``":"(?:`[^`]*(?:$|`))+","[]":String.raw(Ge||(Ge=EE(["(?:[[^]]*(?:$|]))(?:][^]]*(?:$|]))*"],["(?:\\[[^\\]]*(?:$|\\]))(?:\\][^\\]]*(?:$|\\]))*"]))),'""':String.raw(pe||(pe=EE(['(?:"[^"\\]*(?:\\.[^"\\]*)*(?:"|$))+'],['(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*(?:"|$))+']))),"''":String.raw(de||(de=EE(["(?:'[^'\\]*(?:\\.[^'\\]*)*(?:'|$))+"],["(?:'[^'\\\\]*(?:\\\\.[^'\\\\]*)*(?:'|$))+"]))),$$:String.raw(ye||(ye=EE(["(?$w*$)[sS]*?(?:k|$)"],["(?\\$\\w*\\$)[\\s\\S]*?(?:\\k|$)"]))),"'''..'''":String.raw(He||(He=EE(["'''[^\\]*?(?:\\.[^\\]*?)*?(?:'''|$)"],["'''[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:'''|$)"]))),'""".."""':String.raw(Be||(Be=EE(['"""[^\\]*?(?:\\.[^\\]*?)*?(?:"""|$)'],['"""[^\\\\]*?(?:\\\\.[^\\\\]*?)*?(?:"""|$)']))),"{}":String.raw(Fe||(Fe=EE(["(?:{[^}]*(?:$|}))"],["(?:\\{[^\\}]*(?:$|\\}))"]))),"q''":RR()};g.quotePatterns=ee;var Qe=function(e){return typeof e=="string"?ee[e]:(0,w.prefixesPattern)(e)+ee[e.quote]},AR=function(e){return(0,w.patternToRegex)(e.map(function(S){return"regex"in S?S.regex:Qe(S)}).join("|"))};g.variable=AR;var Ze=function(e){return e.map(Qe).join("|")};g.stringPattern=Ze;var tR=function(e){return(0,w.patternToRegex)(Ze(e))};g.string=tR;var SR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,w.patternToRegex)(je(e))};g.identifier=SR;var je=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=e.first,r=e.rest,f=e.dashes,p=e.allowFirstCharNumber,U="\\p{Alphabetic}\\p{Mark}_",c="\\p{Decimal_Number}",C=(0,w.escapeRegExp)(S!=null?S:""),G=(0,w.escapeRegExp)(r!=null?r:""),L=p?"[".concat(U).concat(c).concat(C,"][").concat(U).concat(c).concat(G,"]*"):"[".concat(U).concat(C,"][").concat(U).concat(c).concat(G,"]*");return f?(0,w.withDashes)(L):L};g.identifierPattern=je;var Te={exports:{}};(function(R,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var S=X,r=x;function f(a,o){var I=Object.keys(a);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(a);o&&(M=M.filter(function(y){return Object.getOwnPropertyDescriptor(a,y).enumerable})),I.push.apply(I,M)}return I}function p(a){for(var o=1;oN.length)&&(E=N.length);for(var T=0,O=new Array(E);T<=.:$@#?~![]{}",["<>","<=",">=","!="].concat(y((m=T.operators)!==null&&m!==void 0?m:[])))}),V))}},{key:"buildParamRules",value:function(T,O){var D,l,B,Y,m,V={named:(O==null?void 0:O.named)||((D=T.paramTypes)===null||D===void 0?void 0:D.named)||[],quoted:(O==null?void 0:O.quoted)||((l=T.paramTypes)===null||l===void 0?void 0:l.quoted)||[],numbered:(O==null?void 0:O.numbered)||((B=T.paramTypes)===null||B===void 0?void 0:B.numbered)||[],positional:typeof(O==null?void 0:O.positional)=="boolean"?O.positional:(Y=T.paramTypes)===null||Y===void 0?void 0:Y.positional};return this.validRules((m={},A(m,r.TokenType.NAMED_PARAMETER,{regex:f.parameter(V.named,f.identifierPattern(T.paramChars||T.identChars)),key:function(b){return b.slice(1)}}),A(m,r.TokenType.QUOTED_PARAMETER,{regex:f.parameter(V.quoted,f.stringPattern(T.identTypes)),key:function(b){return function(TE){var XE=TE.tokenKey,se=TE.quoteChar;return XE.replace(new RegExp((0,U.escapeRegExp)("\\"+se),"gu"),se)}({tokenKey:b.slice(2,-1),quoteChar:b.slice(-1)})}}),A(m,r.TokenType.NUMBERED_PARAMETER,{regex:f.parameter(V.numbered,"[0-9]+"),key:function(b){return b.slice(1)}}),A(m,r.TokenType.POSITIONAL_PARAMETER,{regex:V.positional?new RegExp("[?]","y"):void 0}),m))}},{key:"validRules",value:function(T){return Object.fromEntries(Object.entries(T).filter(function(O){var D=a(O,2);D[0];var l=D[1];return l.regex}))}}]),N}();e.default=_,R.exports=e.default})(Q,Q.exports);var K={};Object.defineProperty(K,"__esModule",{value:!0});K.expandSinglePhrase=K.expandPhrases=void 0;function OR(R){return IR(R)||$e(R)||qe(R)||rR()}function rR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IR(R){if(Array.isArray(R))return R}function NR(R){return _R(R)||$e(R)||qe(R)||nR()}function nR(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(R,e){if(!!R){if(typeof R=="string")return Re(R,e);var S=Object.prototype.toString.call(R).slice(8,-1);if(S==="Object"&&R.constructor&&(S=R.constructor.name),S==="Map"||S==="Set")return Array.from(R);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return Re(R,e)}}function $e(R){if(typeof Symbol!="undefined"&&R[Symbol.iterator]!=null||R["@@iterator"]!=null)return Array.from(R)}function _R(R){if(Array.isArray(R))return Re(R)}function Re(R,e){(e==null||e>R.length)&&(e=R.length);for(var S=0,r=new Array(e);S>","<<","||"]);function N(l){return E(T(l))}function E(l){var B=p.EOF_TOKEN;return l.map(function(Y){return Y.text==="OFFSET"&&B.text==="["?(B=Y,a(a({},Y),{},{type:p.TokenType.RESERVED_FUNCTION_NAME})):(B=Y,Y)})}function T(l){for(var B=[],Y=0;Y"?Y--:V.text===">>"&&(Y-=2),Y===0)return m}return l.length-1}R.exports=e.default})(wE,wE.exports);var Ae={exports:{}},LE={};Object.defineProperty(LE,"__esModule",{value:!0});LE.functions=void 0;var DR=h,sR=(0,DR.flatKeywordList)({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","RATIO_TO_REPORT"],cast:["CAST"]});LE.functions=sR;var CE={};Object.defineProperty(CE,"__esModule",{value:!0});CE.keywords=void 0;var MR=h,fR=(0,MR.flatKeywordList)({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]});CE.keywords=fR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=LE,c=CE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","\xAC<","!>","!<","||"]),R.exports=e.default})(Ae,Ae.exports);var te={exports:{}},oE={};Object.defineProperty(oE,"__esModule",{value:!0});oE.functions=void 0;var UR=h,lR=(0,UR.flatKeywordList)({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]});oE.functions=lR;var aE={};Object.defineProperty(aE,"__esModule",{value:!0});aE.keywords=void 0;var cR=h,GR=(0,cR.flatKeywordList)({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]});aE.keywords=GR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=oE,c=aE;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A","==","||"]),R.exports=e.default})(te,te.exports);var Se={exports:{}},iE={};Object.defineProperty(iE,"__esModule",{value:!0});iE.keywords=void 0;var pR=h,dR=(0,pR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]});iE.keywords=dR;var PE={};Object.defineProperty(PE,"__esModule",{value:!0});PE.functions=void 0;var yR=h,HR=(0,yR.flatKeywordList)({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]});PE.functions=HR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=iE,C=PE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Se,Se.exports);var Oe={exports:{}},uE={};Object.defineProperty(uE,"__esModule",{value:!0});uE.keywords=void 0;var BR=h,FR=(0,BR.flatKeywordList)({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]});uE.keywords=FR;var DE={};Object.defineProperty(DE,"__esModule",{value:!0});DE.functions=void 0;var YR=h,vR=(0,YR.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});DE.functions=vR;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=uE,C=DE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T>","<=>","&&","||","->","->>"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(Oe,Oe.exports);var re={exports:{}},sE={};Object.defineProperty(sE,"__esModule",{value:!0});sE.functions=void 0;var hR=h,VR=(0,hR.flatKeywordList)({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]});sE.functions=VR;var ME={};Object.defineProperty(ME,"__esModule",{value:!0});ME.keywords=void 0;var mR=h,WR=(0,mR.flatKeywordList)({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]});ME.keywords=WR;(function(R,e){function S(P){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=sE,c=ME;function C(P){return P&&P.__esModule?P:{default:P}}function G(P,t){if(!(P instanceof t))throw new TypeError("Cannot call a class as a function")}function L(P,t){for(var A=0;A>","<<","=>"]);function N(E){var T=U.EOF_TOKEN;return E.map(function(O){return U.isToken.SET(O)&&U.isToken.BY(T)?a(a({},O),{},{type:U.TokenType.RESERVED_KEYWORD}):((0,U.isReserved)(O)&&(T=O),O)})}R.exports=e.default})(Ie,Ie.exports);var Ne={exports:{}},lE={};Object.defineProperty(lE,"__esModule",{value:!0});lE.functions=void 0;var wR=h,kR=(0,wR.flatKeywordList)({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]});lE.functions=kR;var cE={};Object.defineProperty(cE,"__esModule",{value:!0});cE.keywords=void 0;var xR=h,JR=(0,xR.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","COMPRESSION","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DEPTH","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FINALIZE","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURN","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"]});cE.keywords=JR;(function(R,e){function S(A){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},S(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=lE,c=cE;function C(A){return A&&A.__esModule?A:{default:A}}function G(A,_){if(!(A instanceof _))throw new TypeError("Cannot call a class as a function")}function L(A,_){for(var N=0;N<_.length;N++){var E=_[N];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}function a(A,_,N){return _&&L(A.prototype,_),N&&L(A,N),Object.defineProperty(A,"prototype",{writable:!1}),A}function o(A,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(_&&_.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),_&&I(A,_)}function I(A,_){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,T){return E.__proto__=T,E},I(A,_)}function M(A){var _=H();return function(){var E=i(A),T;if(_){var O=i(this).constructor;T=Reflect.construct(E,arguments,O)}else T=E.apply(this,arguments);return y(this,T)}}function y(A,_){if(_&&(S(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(A)}function d(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function H(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(A){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},i(A)}function u(A,_,N){return _ in A?Object.defineProperty(A,_,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[_]=N,A}var n=(0,r.expandPhrases)(["WITH [RECURSIVE]","SELECT [ALL | DISTINCT]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","UPDATE [ONLY]","SET","WHERE CURRENT OF","DELETE FROM [ONLY]","TRUNCATE [TABLE] [ONLY]","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DO","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","RETURNING","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM","AFTER","SET SCHEMA"]),s=(0,r.expandPhrases)(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),F=(0,r.expandPhrases)(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),v=["ON DELETE","ON UPDATE"],P=["<<",">>","|/","||/","!!","||","~~","~~*","!~~","!~~*","~","~*","!~","!~*","<%","<<%","%>","%>>","~>~","~<~","~>=~","~<=~","@-@","@@","#","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=",">>=","<<=","@@@","?","@?","?&","->","->>","#>","#>>","#-",":=","::","=>","-|-"],t=function(A){o(N,A);var _=M(N);function N(){return G(this,N),_.apply(this,arguments)}return a(N,[{key:"tokenizer",value:function(){return new p.default({reservedCommands:n,reservedSetOperations:s,reservedJoins:F,reservedDependentClauses:["WHEN","ELSE"],reservedPhrases:v,reservedKeywords:c.keywords,reservedFunctionNames:U.functions,openParens:["(","["],closeParens:[")","]"],stringTypes:["$$",{quote:"''",prefixes:["B","E","X","U&"]}],identTypes:[{quote:'""',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:N.operators})}}]),N}(f.default);e.default=t,u(t,"operators",P),R.exports=e.default})(Ne,Ne.exports);var ne={exports:{}},GE={};Object.defineProperty(GE,"__esModule",{value:!0});GE.functions=void 0;var QR=h,ZR=(0,QR.flatKeywordList)({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]});GE.functions=ZR;var pE={};Object.defineProperty(pE,"__esModule",{value:!0});pE.keywords=void 0;var jR=h,qR=(0,jR.flatKeywordList)({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]});pE.keywords=qR;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=GE,c=pE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_>","||"]),R.exports=e.default})(ne,ne.exports);var _e={exports:{}},dE={};Object.defineProperty(dE,"__esModule",{value:!0});dE.keywords=void 0;var $R=h,zR=(0,$R.flatKeywordList)({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]});dE.keywords=zR;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});yE.functions=void 0;var EA=h,eA=(0,EA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]});yE.functions=eA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=dE,C=yE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","&&","||","==","->"]);function N(E){return E.map(function(T,O){var D=E[O-1]||U.EOF_TOKEN,l=E[O+1]||U.EOF_TOKEN;return U.isToken.WINDOW(T)&&l.type===U.TokenType.OPEN_PAREN?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T.text==="ITEMS"&&T.type===U.TokenType.RESERVED_KEYWORD&&!(D.text==="COLLECTION"&&l.text==="TERMINATED")?a(a({},T),{},{type:U.TokenType.IDENTIFIER,text:T.raw}):T})}R.exports=e.default})(_e,_e.exports);var Le={exports:{}},HE={};Object.defineProperty(HE,"__esModule",{value:!0});HE.functions=void 0;var TA=h,RA=(0,TA.flatKeywordList)({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]});HE.functions=RA;var BE={};Object.defineProperty(BE,"__esModule",{value:!0});BE.keywords=void 0;var AA=h,tA=(0,AA.flatKeywordList)({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]});BE.keywords=tA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=HE,c=BE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","->>","||","<<",">>","=="]),R.exports=e.default})(Le,Le.exports);var Ce={exports:{}},FE={};Object.defineProperty(FE,"__esModule",{value:!0});FE.functions=void 0;var SA=h,OA=(0,SA.flatKeywordList)({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]});FE.functions=OA;var YE={};Object.defineProperty(YE,"__esModule",{value:!0});YE.keywords=void 0;var rA=h,IA=(0,rA.flatKeywordList)({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]});YE.keywords=IA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=FE,c=YE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_"]),R.exports=e.default})(oe,oe.exports);var ae={exports:{}},VE={};Object.defineProperty(VE,"__esModule",{value:!0});VE.functions=void 0;var CA=h,oA=(0,CA.flatKeywordList)({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["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:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","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"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","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"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]});VE.functions=oA;var mE={};Object.defineProperty(mE,"__esModule",{value:!0});mE.keywords=void 0;var aA=h,iA=(0,aA.flatKeywordList)({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]});mE.keywords=iA;(function(R,e){function S(t){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},S(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=C(J.exports),p=C(Q.exports),U=VE,c=mE;function C(t){return t&&t.__esModule?t:{default:t}}function G(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function L(t,A){for(var _=0;_","+=","-=","*=","/=","%=","|=","&=","^=","::"]),R.exports=e.default})(ae,ae.exports);var ie={exports:{}},WE={};Object.defineProperty(WE,"__esModule",{value:!0});WE.keywords=void 0;var PA=h,uA=(0,PA.flatKeywordList)({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]});WE.keywords=uA;var bE={};Object.defineProperty(bE,"__esModule",{value:!0});bE.functions=void 0;var DA=h,sA=(0,DA.flatKeywordList)({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]});bE.functions=sA;(function(R,e){function S(E){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=K,f=G(J.exports),p=G(Q.exports),U=X,c=WE,C=bE;function G(E){return E&&E.__esModule?E:{default:E}}function L(E,T){var O=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);T&&(D=D.filter(function(l){return Object.getOwnPropertyDescriptor(E,l).enumerable})),O.push.apply(O,D)}return O}function a(E){for(var T=1;T","<<",">>","&&","||"]);function N(E){return E.map(function(T,O){var D=E[O+1]||U.EOF_TOKEN;return U.isToken.SET(T)&&D.text==="("?a(a({},T),{},{type:U.TokenType.RESERVED_FUNCTION_NAME}):T})}R.exports=e.default})(ie,ie.exports);Object.defineProperty($,"__esModule",{value:!0});$.supportedDialects=$.formatters=$.format=$.ConfigError=void 0;var MA=q(wE.exports),fA=q(Ae.exports),UA=q(te.exports),lA=q(Se.exports),cA=q(Oe.exports),GA=q(re.exports),pA=q(Ie.exports),dA=q(Ne.exports),yA=q(ne.exports),HA=q(_e.exports),BA=q(Le.exports),FA=q(Ce.exports),YA=q(oe.exports),vA=q(ae.exports),hA=q(ie.exports);function q(R){return R&&R.__esModule?R:{default:R}}function me(R,e){for(var S=0;S1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="string")throw new Error("Invalid query argument. Expected string, instead got "+NE(e));var r=JA(be(be({},kA),S)),f=typeof r.language=="string"?De[r.language]:r.language;return new f(r).format(e)};$.format=xA;var eE=function(R){WA(S,R);var e=bA(S);function S(){return mA(this,S),e.apply(this,arguments)}return VA(S)}(Pe(Error));$.ConfigError=eE;function JA(R){if(typeof R.language=="string"&&!eT.includes(R.language))throw new eE("Unsupported SQL dialect: ".concat(R.language));if("multilineLists"in R)throw new eE("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in R)throw new eE("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in R)throw new eE("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in R)throw new eE("aliasAs config is no more supported.");if(R.expressionWidth<=0)throw new eE("expressionWidth config must be positive number. Received ".concat(R.expressionWidth," instead."));if(R.commaPosition==="before"&&R.useTabs)throw new eE("commaPosition: before does not work when tabs are used for indentation.");return R.params&&!QA(R.params)&&console.warn('WARNING: All "params" option values should be strings.'),R}function QA(R){var e=R instanceof Array?R:Object.values(R);return e.every(function(S){return typeof S=="string"})}(function(R){Object.defineProperty(R,"__esModule",{value:!0});var e={Formatter:!0,Tokenizer:!0,expandPhrases:!0};Object.defineProperty(R,"Formatter",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(R,"Tokenizer",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(R,"expandPhrases",{enumerable:!0,get:function(){return p.expandPhrases}});var S=$;Object.keys(S).forEach(function(c){c==="default"||c==="__esModule"||Object.prototype.hasOwnProperty.call(e,c)||c in R&&R[c]===S[c]||Object.defineProperty(R,c,{enumerable:!0,get:function(){return S[c]}})});var r=U(J.exports),f=U(Q.exports),p=K;function U(c){return c&&c.__esModule?c:{default:c}}})(ge);const ZA=OT({name:"SqlExecDialog",components:{codemirror:sT,ElButton:rT,ElDialog:IT,ElInput:NT},props:{visible:{type:Boolean},dbId:{type:[Number]},db:{type:String},sql:{type:String}},setup(R){const e=nT(),S=_T({dialogVisible:!1,sqlValue:"",dbId:0,db:"",remark:"",btnLoading:!1,cmOptions:{tabSize:4,mode:"text/x-sql",lineNumbers:!0,line:!0,indentWithTabs:!0,smartIndent:!0,matchBrackets:!0,theme:"base16-light",autofocus:!0,extraKeys:{Tab:"autocomplete"}}});S.sqlValue=R.sql;let r,f,p=!1;const U=async()=>{if(!S.remark){gE.error("\u8BF7\u8F93\u5165\u6267\u884C\u7684\u5907\u6CE8\u4FE1\u606F");return}try{S.btnLoading=!0;const G=await MT.sqlExec.request({id:S.dbId,db:S.db,remark:S.remark,sql:S.sqlValue.trim()});parseInt(G.res[0].\u5F71\u54CD\u6761\u6570)>=1?(gE.success("\u6267\u884C\u6210\u529F"),p=!0):(gE.error("\u6267\u884C\u5931\u8D25"),p=!1)}catch{p=!1}p&&r&&r(),S.btnLoading=!1,c()},c=()=>{S.dialogVisible=!1,!p&&f&&f(),setTimeout(()=>{S.dbId=0,S.sqlValue="",S.remark="",r=null,f=null,p=!1},200)},C=G=>{r=G.runSuccessCallback,f=G.cancelCallback,S.sqlValue=ge.format(G.sql),S.dbId=G.dbId,S.db=G.db,S.dialogVisible=!0,CT(()=>{setTimeout(()=>{var L;(L=e.value)==null||L.focus()})})};return le(Ue({},LT(S)),{remarkInputRef:e,open:C,runSql:U,cancel:c})}}),jA={class:"dialog-footer"},qA=Xe("\u53D6 \u6D88"),$A=Xe("\u6267 \u884C");function zA(R,e,S,r,f,p){const U=OE("codemirror"),c=OE("el-input"),C=OE("el-button"),G=OE("el-dialog");return aT(),iT("div",null,[RE(G,{title:"\u5F85\u6267\u884CSQL",modelValue:R.dialogVisible,"onUpdate:modelValue":e[2]||(e[2]=L=>R.dialogVisible=L),"show-close":!1,width:"600px"},{footer:rE(()=>[PT("span",jA,[RE(C,{onClick:R.cancel},{default:rE(()=>[qA]),_:1},8,["onClick"]),RE(C,{onClick:R.runSql,type:"primary",loading:R.btnLoading},{default:rE(()=>[$A]),_:1},8,["onClick","loading"])])]),default:rE(()=>[RE(U,{height:"350px",class:"codesql",ref:"cmEditor",language:"sql",modelValue:R.sqlValue,"onUpdate:modelValue":e[0]||(e[0]=L=>R.sqlValue=L),options:R.cmOptions},null,8,["modelValue","options"]),RE(c,{ref:"remarkInputRef",modelValue:R.remark,"onUpdate:modelValue":e[1]||(e[1]=L=>R.remark=L),placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u5907\u6CE8",class:"mt5"},null,8,["modelValue"])]),_:1},8,["modelValue"])])}var Et=oT(ZA,[["render",zA]]);const et="sql-exec-id",Tt=()=>{const R={sql:"",dbId:0},e=document.createElement("div");e.id=et;const S=uT(Et,R);return DT(S,e),document.body.appendChild(e),S};let KE;const Rt=R=>{KE?KE.component.proxy.open(R):(KE=Tt(),Rt(R))};export{Rt as S,MT as d,ge as l}; diff --git a/server/static/static/assets/SshTerminal.1661345446364.css b/server/static/static/assets/SshTerminal.1661345446364.css new file mode 100644 index 00000000..b0956eee --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.css @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative} diff --git a/server/static/static/assets/SshTerminal.1661345446364.js b/server/static/static/assets/SshTerminal.1661345446364.js new file mode 100644 index 00000000..dd468c4f --- /dev/null +++ b/server/static/static/assets/SshTerminal.1661345446364.js @@ -0,0 +1,8 @@ +var mr=Object.defineProperty;var dr=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable;var _r=(ae,J,oe)=>J in ae?mr(ae,J,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ae[J]=oe,pr=(ae,J)=>{for(var oe in J||(J={}))Sr.call(J,oe)&&_r(ae,oe,J[oe]);if(dr)for(var oe of dr(J))br.call(J,oe)&&_r(ae,oe,J[oe]);return ae};import{A as Cr,r as wr,v as Lr,o as Er,L as xr,a as Rr,c as kr,m as Ar,J as Mr,I as Or,t as Dr,_ as Tr,d as Br,e as Pr,l as Ir}from"./index.1661345446364.js";var vr={exports:{}};(function(ae,J){(function(oe,ge){ae.exports=ge()})(self,function(){return(()=>{var oe={4567:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;var f=w(9042),d=w(6114),m=w(9924),v=w(3656),a=w(844),o=w(5596),_=w(9631),h=function(r){function e(t,i){var n=r.call(this)||this;n._terminal=t,n._renderService=i,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var l=0;lt;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t},e.prototype._onTab=function(t){for(var i=0;i0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){i._accessibilityTreeRoot.appendChild(i._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&(0,_.removeElementFromParent)(this._liveRegion)},e.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},e.prototype._refreshRows=function(t,i){this._renderRowsDebouncer.refresh(t,i,this._terminal.rows)},e.prototype._renderRows=function(t,i){for(var n=this._terminal.buffer,l=n.lines.length.toString(),s=t;s<=i;s++){var y=n.translateBufferLineToString(n.ydisp+s,!0),b=(n.ydisp+s+1).toString(),g=this._rowElements[s];g&&(y.length===0?g.innerText="\xA0":g.textContent=y,g.setAttribute("aria-posinset",b),g.setAttribute("aria-setsize",l))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var t=0;t{function w(d){return d.replace(/\r?\n/g,"\r")}function p(d,m){return m?"\x1B[200~"+d+"\x1B[201~":d}function u(d,m,v){d=p(d=w(d),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(d,!0),m.value=""}function f(d,m,v){var a=v.getBoundingClientRect(),o=d.clientX-a.left-10,_=d.clientY-a.top-10;m.style.width="20px",m.style.height="20px",m.style.left=o+"px",m.style.top=_+"px",m.style.zIndex="1000",m.focus()}Object.defineProperty(c,"__esModule",{value:!0}),c.rightClickHandler=c.moveTextAreaUnderMouseCursor=c.paste=c.handlePasteEvent=c.copyHandler=c.bracketTextForPaste=c.prepareTextForTerminal=void 0,c.prepareTextForTerminal=w,c.bracketTextForPaste=p,c.copyHandler=function(d,m){d.clipboardData&&d.clipboardData.setData("text/plain",m.selectionText),d.preventDefault()},c.handlePasteEvent=function(d,m,v){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),m,v)},c.paste=u,c.moveTextAreaUnderMouseCursor=f,c.rightClickHandler=function(d,m,v,a,o){f(d,m,v),o&&a.rightClickSelect(d),m.value=a.selectionText,m.select()}},7239:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorContrastCache=void 0;var w=function(){function p(){this._color={},this._rgba={}}return p.prototype.clear=function(){this._color={},this._rgba={}},p.prototype.setCss=function(u,f,d){this._rgba[u]||(this._rgba[u]={}),this._rgba[u][f]=d},p.prototype.getCss=function(u,f){return this._rgba[u]?this._rgba[u][f]:void 0},p.prototype.setColor=function(u,f,d){this._color[u]||(this._color[u]={}),this._color[u][f]=d},p.prototype.getColor=function(u,f){return this._color[u]?this._color[u][f]:void 0},p}();c.ColorContrastCache=w},5680:function(W,c,w){var p=this&&this.__read||function(h,r){var e=typeof Symbol=="function"&&h[Symbol.iterator];if(!e)return h;var t,i,n=e.call(h),l=[];try{for(;(r===void 0||r-- >0)&&!(t=n.next()).done;)l.push(t.value)}catch(s){i={error:s}}finally{try{t&&!t.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}return l};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorManager=c.DEFAULT_ANSI_COLORS=void 0;var u=w(8055),f=w(7239),d=u.css.toColor("#ffffff"),m=u.css.toColor("#000000"),v=u.css.toColor("#ffffff"),a=u.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};c.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var h=[u.css.toColor("#2e3436"),u.css.toColor("#cc0000"),u.css.toColor("#4e9a06"),u.css.toColor("#c4a000"),u.css.toColor("#3465a4"),u.css.toColor("#75507b"),u.css.toColor("#06989a"),u.css.toColor("#d3d7cf"),u.css.toColor("#555753"),u.css.toColor("#ef2929"),u.css.toColor("#8ae234"),u.css.toColor("#fce94f"),u.css.toColor("#729fcf"),u.css.toColor("#ad7fa8"),u.css.toColor("#34e2e2"),u.css.toColor("#eeeeec")],r=[0,95,135,175,215,255],e=0;e<216;e++){var t=r[e/36%6|0],i=r[e/6%6|0],n=r[e%6];h.push({css:u.channels.toCss(t,i,n),rgba:u.channels.toRgba(t,i,n)})}for(e=0;e<24;e++){var l=8+10*e;h.push({css:u.channels.toCss(l,l,l),rgba:u.channels.toRgba(l,l,l)})}return h}());var _=function(){function h(r,e){this.allowTransparency=e;var t=r.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new f.ColorContrastCache,this.colors={foreground:d,background:m,cursor:v,cursorAccent:a,selectionTransparent:o,selectionOpaque:u.color.blend(m,o),selectionForeground:void 0,ansi:c.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return h.prototype.onOptionsChange=function(r){r==="minimumContrastRatio"&&this._contrastCache.clear()},h.prototype.setTheme=function(r){r===void 0&&(r={}),this.colors.foreground=this._parseColor(r.foreground,d),this.colors.background=this._parseColor(r.background,m),this.colors.cursor=this._parseColor(r.cursor,v,!0),this.colors.cursorAccent=this._parseColor(r.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(r.selection,o,!0),this.colors.selectionOpaque=u.color.blend(this.colors.background,this.colors.selectionTransparent);var e={css:"",rgba:0};this.colors.selectionForeground=r.selectionForeground?this._parseColor(r.selectionForeground,e):void 0,this.colors.selectionForeground===e&&(this.colors.selectionForeground=void 0),u.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=u.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(r.black,c.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(r.red,c.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(r.green,c.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(r.yellow,c.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(r.blue,c.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(r.magenta,c.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(r.cyan,c.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(r.white,c.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(r.brightBlack,c.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(r.brightRed,c.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(r.brightGreen,c.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(r.brightYellow,c.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(r.brightBlue,c.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(r.brightMagenta,c.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(r.brightCyan,c.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(r.brightWhite,c.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},h.prototype.restoreColor=function(r){if(r!==void 0)switch(r){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[r]=this._restoreColors.ansi[r]}else for(var e=0;e=p.length&&(p=void 0),{value:p&&p[d++],done:!p}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.removeElementFromParent=void 0,c.removeElementFromParent=function(){for(var p,u,f,d=[],m=0;m{Object.defineProperty(c,"__esModule",{value:!0}),c.addDisposableDomListener=void 0,c.addDisposableDomListener=function(w,p,u,f){w.addEventListener(p,u,f);var d=!1;return{dispose:function(){d||(d=!0,w.removeEventListener(p,u,f))}}}},3551:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZone=c.Linkifier=void 0;var f=w(8460),d=w(2585),m=function(){function a(o,_,h){this._bufferService=o,this._logService=_,this._unicodeService=h,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(a.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),a.prototype.attachToDom=function(o,_){this._element=o,this._mouseZoneManager=_},a.prototype.linkifyRows=function(o,_){var h=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=_):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,_)),this._mouseZoneManager.clearAll(o,_),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return h._linkifyRows()},a._timeBeforeLatency))},a.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var _=o.ydisp+this._rowsToLinkify.start;if(!(_>=o.lines.length)){for(var h=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,r=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,_,h,r,r);e.hasNext();)for(var t=e.next(),i=0;i=0;_--)if(o.priority<=this._linkMatchers[_].priority)return void this._linkMatchers.splice(_+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},a.prototype.deregisterLinkMatcher=function(o){for(var _=0;_>9&511:void 0;h.validationCallback?h.validationCallback(s,function(C){e._rowsTimeoutId||C&&e._addLink(y[1],y[0]-e._bufferService.buffer.ydisp,s,h,S)}):l._addLink(y[1],y[0]-l._bufferService.buffer.ydisp,s,h,S)},l=this;(r=t.exec(_))!==null&&n()!=="break";);},a.prototype._addLink=function(o,_,h,r,e){var t=this;if(this._mouseZoneManager&&this._element){var i=this._unicodeService.getStringCellWidth(h),n=o%this._bufferService.cols,l=_+Math.floor(o/this._bufferService.cols),s=(n+i)%this._bufferService.cols,y=l+Math.floor((n+i)/this._bufferService.cols);s===0&&(s=this._bufferService.cols,y--),this._mouseZoneManager.add(new v(n+1,l+1,s+1,y+1,function(b){if(r.handler)return r.handler(b,h);var g=window.open();g?(g.opener=null,g.location.href=h):console.warn("Opening link blocked as opener could not be cleared")},function(){t._onShowLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.add("xterm-cursor-pointer")},function(b){t._onLinkTooltip.fire(t._createLinkHoverEvent(n,l,s,y,e)),r.hoverTooltipCallback&&r.hoverTooltipCallback(b,h,{start:{x:n,y:l},end:{x:s,y}})},function(){t._onHideLinkUnderline.fire(t._createLinkHoverEvent(n,l,s,y,e)),t._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()},function(b){return!r.willLinkActivate||r.willLinkActivate(b,h)}))}},a.prototype._createLinkHoverEvent=function(o,_,h,r,e){return{x1:o,y1:_,x2:h,y2:r,cols:this._bufferService.cols,fg:e}},a._timeBeforeLatency=200,a=p([u(0,d.IBufferService),u(1,d.ILogService),u(2,d.IUnicodeService)],a)}();c.Linkifier=m;var v=function(a,o,_,h,r,e,t,i,n){this.x1=a,this.y1=o,this.x2=_,this.y2=h,this.clickCallback=r,this.hoverCallback=e,this.tooltipCallback=t,this.leaveCallback=i,this.willLinkActivate=n};c.MouseZone=v},6465:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}},m=this&&this.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__read||function(e,t){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var n,l,s=i.call(e),y=[];try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)y.push(n.value)}catch(b){l={error:b}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(l)throw l.error}}return y};Object.defineProperty(c,"__esModule",{value:!0}),c.Linkifier2=void 0;var a=w(2585),o=w(8460),_=w(844),h=w(3656),r=function(e){function t(i){var n=e.call(this)||this;return n._bufferService=i,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new o.EventEmitter),n._onHideLinkUnderline=n.register(new o.EventEmitter),n.register((0,_.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return u(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(i){var n=this;return this._linkProviders.push(i),{dispose:function(){var l=n._linkProviders.indexOf(i);l!==-1&&n._linkProviders.splice(l,1)}}},t.prototype.attachToDom=function(i,n,l){var s=this;this._element=i,this._mouseService=n,this._renderService=l,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",function(){s._isMouseOut=!0,s._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(i){if(this._lastMouseEvent=i,this._element&&this._mouseService){var n=this._positionFromMouseEvent(i,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var l=i.composedPath(),s=0;si?this._bufferService.cols:g.link.range.end.x,k=S;k<=C;k++){if(l.has(k)){y.splice(b--,1);break}l.add(k)}}},t.prototype._checkLinkProviderResult=function(i,n,l){var s,y=this;if(!this._activeProviderReplies)return l;for(var b=this._activeProviderReplies.get(i),g=!1,S=0;S=i&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,_.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(i){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(i.link,l)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:function(s){var y,b;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&n._currentLink.state.decorations.pointerCursor!==s&&(n._currentLink.state.decorations.pointerCursor=s,n._currentLink.state.isHovered&&((b=n._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",s)))}},underline:{get:function(){var s,y;return(y=(s=n._currentLink)===null||s===void 0?void 0:s.state)===null||y===void 0?void 0:y.decorations.underline},set:function(s){var y,b,g;((y=n._currentLink)===null||y===void 0?void 0:y.state)&&((g=(b=n._currentLink)===null||b===void 0?void 0:b.state)===null||g===void 0?void 0:g.decorations.underline)!==s&&(n._currentLink.state.decorations.underline=s,n._currentLink.state.isHovered&&n._fireUnderlineEvent(i.link,s))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(s){var y=s.start===0?0:s.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(y,s.end+1+n._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(l,n.text)},t.prototype._fireUnderlineEvent=function(i,n){var l=i.range,s=this._bufferService.buffer.ydisp,y=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-s-1,l.end.x,l.end.y-s-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(y)},t.prototype._linkLeave=function(i,n,l){var s;!((s=this._currentLink)===null||s===void 0)&&s.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(l,n.text)},t.prototype._linkAtPosition=function(i,n){var l=i.range.start.y===i.range.end.y,s=i.range.start.yn.y;return(l&&i.range.start.x<=n.x&&i.range.end.x>=n.x||s&&i.range.end.x>=n.x||y&&i.range.start.x<=n.x||s&&y)&&i.range.start.y<=n.y&&i.range.end.y>=n.y},t.prototype._positionFromMouseEvent=function(i,n,l){var s=l.getCoords(i,n,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(i,n,l,s,y){return{x1:i,y1:n,x2:l,y2:s,cols:this._bufferService.cols,fg:y}},f([d(0,a.IBufferService)],t)}(_.Disposable);c.Linkifier2=r},9042:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.tooMuchOutput=c.promptLabel=void 0,c.promptLabel="Terminal input",c.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZoneManager=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s){var y=h.call(this)||this;return y._element=e,y._screenElement=t,y._bufferService=i,y._mouseService=n,y._selectionService=l,y._optionsService=s,y._zones=[],y._areZonesActive=!1,y._lastHoverCoords=[void 0,void 0],y._initialSelectionLength=0,y.register((0,v.addDisposableDomListener)(y._element,"mousedown",function(b){return y._onMouseDown(b)})),y._mouseMoveListener=function(b){return y._onMouseMove(b)},y._mouseLeaveListener=function(b){return y._onMouseLeave(b)},y._clickListener=function(b){return y._onClick(b)},y}return u(r,h),r.prototype.dispose=function(){h.prototype.dispose.call(this),this._deactivate()},r.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},r.prototype.clearAll=function(e,t){if(this._zones.length!==0){e&&t||(e=0,t=this._bufferService.rows-1);for(var i=0;ie&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(i--,1))}this._zones.length===0&&this._deactivate()}},r.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},r.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},r.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},r.prototype._onHover=function(e){var t=this,i=this._findZoneEventAt(e);i!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),i&&(this._currentZone=i,i.hoverCallback&&i.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},r.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t==null||t.tooltipCallback(e)},r.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);t!=null&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},r.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},r.prototype._onClick=function(e){var t=this._findZoneEventAt(e),i=this._getSelectionLength();t&&i===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},r.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},r.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var i=t[0],n=t[1],l=0;l=s.x1&&i=s.x1||n===s.y2&&is.y1&&n=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderDebouncer=void 0;var p=function(){function u(f){this._renderCallback=f,this._refreshCallbacks=[]}return u.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},u.prototype.addRefreshCallback=function(f){var d=this;return this._refreshCallbacks.push(f),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()})),this._animationFrame},u.prototype.refresh=function(f,d,m){var v=this;this._rowCount=m,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return v._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._animationFrame=void 0,this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(f,d),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},u.prototype._runRefreshCallbacks=function(){var f,d;try{for(var m=w(this._refreshCallbacks),v=m.next();!v.done;v=m.next())(0,v.value)(0)}catch(a){f={error:a}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}this._refreshCallbacks=[]},u}();c.RenderDebouncer=p},5596:function(W,c,w){var p,u=this&&this.__extends||(p=function(d,m){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,a){v.__proto__=a}||function(v,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(v[o]=a[o])},p(d,m)},function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function v(){this.constructor=d}p(d,m),d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(c,"__esModule",{value:!0}),c.ScreenDprMonitor=void 0;var f=function(d){function m(){var v=d!==null&&d.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return u(m,d),m.prototype.setListener=function(v){var a=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){a._listener&&(a._listener(window.devicePixelRatio,a._currentDevicePixelRatio),a._updateDpr())},this._updateDpr()},m.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},m.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},m.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},m}(w(844).Disposable);c.ScreenDprMonitor=f},3236:function(W,c,w){var p,u=this&&this.__extends||(p=function(X,j){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var H in D)Object.prototype.hasOwnProperty.call(D,H)&&(O[H]=D[H])},p(X,j)},function(X,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function O(){this.constructor=X}p(X,j),X.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}),f=this&&this.__values||function(X){var j=typeof Symbol=="function"&&Symbol.iterator,O=j&&X[j],D=0;if(O)return O.call(X);if(X&&typeof X.length=="number")return{next:function(){return X&&D>=X.length&&(X=void 0),{value:X&&X[D++],done:!X}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(X,j){var O=typeof Symbol=="function"&&X[Symbol.iterator];if(!O)return X;var D,H,G=O.call(X),V=[];try{for(;(j===void 0||j-- >0)&&!(D=G.next()).done;)V.push(D.value)}catch($){H={error:$}}finally{try{D&&!D.done&&(O=G.return)&&O.call(G)}finally{if(H)throw H.error}}return V},m=this&&this.__spreadArray||function(X,j,O){if(O||arguments.length===2)for(var D,H=0,G=j.length;H4)&&D.coreMouseService.triggerMouseEvent({col:we.x-33,row:we.y-33,button:he,action:pe,ctrl:K.ctrlKey,alt:K.altKey,shift:K.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},$=function(K){return G(K),K.buttons||(O._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.removeEventListener("mousemove",V.mousedrag)),O.cancel(K)},ie=function(K){return G(K),O.cancel(K,!0)},ce=function(K){K.buttons&&G(K)},le=function(K){K.buttons||G(K)};this.register(this.coreMouseService.onProtocolChange(function(K){K?(O.optionsService.rawOptions.logLevel==="debug"&&O._logService.debug("Binding to mouse events:",O.coreMouseService.explainEvents(K)),O.element.classList.add("enable-mouse-events"),O._selectionService.disable()):(O._logService.debug("Unbinding from mouse events."),O.element.classList.remove("enable-mouse-events"),O._selectionService.enable()),8&K?V.mousemove||(H.addEventListener("mousemove",le),V.mousemove=le):(H.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&K?V.wheel||(H.addEventListener("wheel",ie,{passive:!1}),V.wheel=ie):(H.removeEventListener("wheel",V.wheel),V.wheel=null),2&K?V.mouseup||(V.mouseup=$):(O._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&K?V.mousedrag||(V.mousedrag=ce):(O._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,n.addDisposableDomListener)(H,"mousedown",function(K){if(K.preventDefault(),O.focus(),O.coreMouseService.areMouseEventsActive&&!O._selectionService.shouldForceSelection(K))return G(K),V.mouseup&&O._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.addEventListener("mousemove",V.mousedrag),O.cancel(K)})),this.register((0,n.addDisposableDomListener)(H,"wheel",function(K){if(!V.wheel){if(!O.buffer.hasScrollback){var he=O.viewport.getLinesScrolled(K);if(he===0)return;for(var pe=_.C0.ESC+(O.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(K.deltaY<0?"A":"B"),we="",Ie=0;Ie=65&&O.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(H.key!==_.C0.ETX&&H.key!==_.C0.CR||(this.textarea.value=""),this._onKey.fire({key:H.key,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(H.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(O,!0))))},j.prototype._isThirdLevelShift=function(O,D){var H=O.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||O.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||O.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?H:H&&(!D.keyCode||D.keyCode>47)},j.prototype._keyUp=function(O){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(O)||this.focus(),this.updateCursorStyle(O),this._keyPressHandled=!1)},j.prototype._keyPress=function(O){var D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(this.cancel(O),O.charCode)D=O.charCode;else if(O.which===null||O.which===void 0)D=O.keyCode;else{if(O.which===0||O.charCode===0)return!1;D=O.which}return!(!D||(O.altKey||O.ctrlKey||O.metaKey)&&!this._isThirdLevelShift(this.browser,O)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},j.prototype._inputEvent=function(O){if(O.data&&O.inputType==="insertText"&&(!O.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var D=O.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(O),!0}return!1},j.prototype.bell=function(){var O;this._soundBell()&&((O=this._soundService)===null||O===void 0||O.playBellSound()),this._onBell.fire()},j.prototype.resize=function(O,D){O!==this.cols||D!==this.rows?X.prototype.resize.call(this,O,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},j.prototype._afterResize=function(O,D){var H,G;(H=this._charSizeService)===null||H===void 0||H.measure(),(G=this.viewport)===null||G===void 0||G.syncScrollArea(!0)},j.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var O=1;O{Object.defineProperty(c,"__esModule",{value:!0}),c.TimeBasedDebouncer=void 0;var w=function(){function p(u,f){f===void 0&&(f=1e3),this._renderCallback=u,this._debounceThresholdMS=f,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return p.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},p.prototype.refresh=function(u,f,d){var m=this;this._rowCount=d,u=u!==void 0?u:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var a=v-this._lastRefreshMs,o=this._debounceThresholdMS-a;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){m._lastRefreshMs=Date.now(),m._innerRefresh(),m._additionalRefreshRequested=!1,m._refreshTimeoutID=void 0},o)}},p.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(u,f)}},p}();c.TimeBasedDebouncer=w},1680:function(W,c,w){var p,u=this&&this.__extends||(p=function(h,r){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},p(h,r)},function(h,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=h}p(h,r),h.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}),f=this&&this.__decorate||function(h,r,e,t){var i,n=arguments.length,l=n<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,r,e,t);else for(var s=h.length-1;s>=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Viewport=void 0;var m=w(844),v=w(3656),a=w(4725),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b){var g=h.call(this)||this;return g._scrollLines=e,g._viewportElement=t,g._scrollArea=i,g._element=n,g._bufferService=l,g._optionsService=s,g._charSizeService=y,g._renderService=b,g.scrollBarWidth=0,g._currentRowHeight=0,g._currentScaledCellHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register((0,v.addDisposableDomListener)(g._viewportElement,"scroll",g._onScroll.bind(g))),g._activeBuffer=g._bufferService.buffer,g.register(g._bufferService.buffers.onBufferActivate(function(S){return g._activeBuffer=S.activeBuffer})),g._renderDimensions=g._renderService.dimensions,g.register(g._renderService.onDimensionsChange(function(S){return g._renderDimensions=S})),setTimeout(function(){return g.syncScrollArea()},0),g}return u(r,h),r.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},r.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},r.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},r.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},r.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},r.prototype._bubbleScroll=function(e,t){var i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&i0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},r.prototype._applyScrollModifier=function(e,t){var i=this._optionsService.rawOptions.fastScrollModifier;return i==="alt"&&t.altKey||i==="ctrl"&&t.ctrlKey||i==="shift"&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},r.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},r.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},f([d(4,o.IBufferService),d(5,o.IOptionsService),d(6,a.ICharSizeService),d(7,a.IRenderService)],r)}(m.Disposable);c.Viewport=_},3107:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}},m=this&&this.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferDecorationRenderer=void 0;var v=w(3656),a=w(4725),o=w(844),_=w(2585),h=function(r){function e(t,i,n,l){var s=r.call(this)||this;return s._screenElement=t,s._bufferService=i,s._decorationService=n,s._renderService=l,s._decorationElements=new Map,s._altBufferIsActive=!1,s._dimensionsChanged=!1,s._container=document.createElement("div"),s._container.classList.add("xterm-decoration-container"),s._screenElement.appendChild(s._container),s.register(s._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),s.register(s._renderService.onDimensionsChange(function(){s._dimensionsChanged=!0,s._queueRefresh()})),s.register((0,v.addDisposableDomListener)(window,"resize",function(){return s._queueRefresh()})),s.register(s._bufferService.buffers.onBufferActivate(function(){s._altBufferIsActive=s._bufferService.buffer===s._bufferService.buffers.alt})),s.register(s._decorationService.onDecorationRegistered(function(){return s._queueRefresh()})),s.register(s._decorationService.onDecorationRemoved(function(y){return s._removeDecoration(y)})),s}return u(e,r),e.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),r.prototype.dispose.call(this)},e.prototype._queueRefresh=function(){var t=this;this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(function(){t.refreshDecorations(),t._animationFrame=void 0}))},e.prototype.refreshDecorations=function(){var t,i;try{for(var n=m(this._decorationService.decorations),l=n.next();!l.done;l=n.next()){var s=l.value;this._renderDecoration(s)}}catch(y){t={error:y}}finally{try{l&&!l.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}this._dimensionsChanged=!1},e.prototype._renderDecoration=function(t){this._refreshStyle(t),this._dimensionsChanged&&this._refreshXPosition(t)},e.prototype._createElement=function(t){var i,n=document.createElement("div");n.classList.add("xterm-decoration"),n.style.width=Math.round((t.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",n.style.height=(t.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",n.style.top=(t.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",n.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var l=(i=t.options.x)!==null&&i!==void 0?i:0;return l&&l>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(t,n),n},e.prototype._refreshStyle=function(t){var i=this,n=t.marker.line-this._bufferService.buffers.active.ydisp;if(n<0||n>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{var l=this._decorationElements.get(t);l||(t.onDispose(function(){return i._removeDecoration(t)}),l=this._createElement(t),t.element=l,this._decorationElements.set(t,l),this._container.appendChild(l)),l.style.top=n*this._renderService.dimensions.actualCellHeight+"px",l.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(l)}},e.prototype._refreshXPosition=function(t,i){var n;if(i===void 0&&(i=t.element),i){var l=(n=t.options.x)!==null&&n!==void 0?n:0;(t.options.anchor||"left")==="right"?i.style.right=l?l*this._renderService.dimensions.actualCellWidth+"px":"":i.style.left=l?l*this._renderService.dimensions.actualCellWidth+"px":""}},e.prototype._removeDecoration=function(t){var i;(i=this._decorationElements.get(t))===null||i===void 0||i.remove(),this._decorationElements.delete(t)},f([d(1,_.IBufferService),d(2,_.IDecorationService),d(3,a.IRenderService)],e)}(o.Disposable);c.BufferDecorationRenderer=h},5871:function(W,c){var w=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorZoneStore=void 0;var p=function(){function u(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(u.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),u.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},u.prototype.addDecoration=function(f){var d,m;if(f.options.overviewRulerOptions){try{for(var v=w(this._zones),a=v.next();!a.done;a=v.next()){var o=a.value;if(o.color===f.options.overviewRulerOptions.color&&o.position===f.options.overviewRulerOptions.position){if(this._lineIntersectsZone(o,f.marker.line))return;if(this._lineAdjacentToZone(o,f.marker.line,f.options.overviewRulerOptions.position))return void this._addLineToZone(o,f.marker.line)}}}catch(_){d={error:_}}finally{try{a&&!a.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}if(this._zonePoolIndex=f.startBufferLine&&d<=f.endBufferLine},u.prototype._lineAdjacentToZone=function(f,d,m){return d>=f.startBufferLine-this._linePadding[m||"full"]&&d<=f.endBufferLine+this._linePadding[m||"full"]},u.prototype._addLineToZone=function(f,d){f.startBufferLine=Math.min(f.startBufferLine,d),f.endBufferLine=Math.max(f.endBufferLine,d)},u}();c.ColorZoneStore=p},5744:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.OverviewRulerRenderer=void 0;var v=w(5871),a=w(3656),o=w(4725),_=w(844),h=w(2585),r={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0},i=function(n){function l(s,y,b,g,S,C){var k,L=n.call(this)||this;L._viewportElement=s,L._screenElement=y,L._bufferService=b,L._decorationService=g,L._renderService=S,L._optionsService=C,L._colorZoneStore=new v.ColorZoneStore,L._shouldUpdateDimensions=!0,L._shouldUpdateAnchor=!0,L._lastKnownBufferLength=0,L._canvas=document.createElement("canvas"),L._canvas.classList.add("xterm-decoration-overview-ruler"),L._refreshCanvasDimensions(),(k=L._viewportElement.parentElement)===null||k===void 0||k.insertBefore(L._canvas,L._viewportElement);var R=L._canvas.getContext("2d");if(!R)throw new Error("Ctx cannot be null");return L._ctx=R,L._registerDecorationListeners(),L._registerBufferChangeListeners(),L._registerDimensionChangeListeners(),L}return u(l,n),Object.defineProperty(l.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),l.prototype._registerDecorationListeners=function(){var s=this;this.register(this._decorationService.onDecorationRegistered(function(){return s._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return s._queueRefresh(void 0,!0)}))},l.prototype._registerBufferChangeListeners=function(){var s=this;this.register(this._renderService.onRenderedViewportChange(function(){return s._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){s._canvas.style.display=s._bufferService.buffer===s._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){s._lastKnownBufferLength!==s._bufferService.buffers.normal.lines.length&&(s._refreshDrawHeightConstants(),s._refreshColorZonePadding())}))},l.prototype._registerDimensionChangeListeners=function(){var s=this;this.register(this._renderService.onRender(function(){s._containerHeight&&s._containerHeight===s._screenElement.clientHeight||(s._queueRefresh(!0),s._containerHeight=s._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(y){y==="overviewRulerWidth"&&s._queueRefresh(!0)})),this.register((0,a.addDisposableDomListener)(window,"resize",function(){s._queueRefresh(!0)})),this._queueRefresh(!0)},l.prototype.dispose=function(){var s;(s=this._canvas)===null||s===void 0||s.remove(),n.prototype.dispose.call(this)},l.prototype._refreshDrawConstants=function(){var s=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=s,e.center=y,e.right=s,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=e.left,t.right=e.left+e.center},l.prototype._refreshDrawHeightConstants=function(){r.full=Math.round(2*window.devicePixelRatio);var s=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(s,12),6)*window.devicePixelRatio);r.left=y,r.center=y,r.right=y},l.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*r.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},l.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},l.prototype._refreshDecorations=function(){var s,y,b,g,S,C;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var k=m(this._decorationService.decorations),L=k.next();!L.done;L=k.next()){var R=L.value;this._colorZoneStore.addDecoration(R)}}catch(F){s={error:F}}finally{try{L&&!L.done&&(y=k.return)&&y.call(k)}finally{if(s)throw s.error}}this._ctx.lineWidth=1;var x=this._colorZoneStore.zones;try{for(var E=m(x),M=E.next();!M.done;M=E.next())(q=M.value).position!=="full"&&this._renderColorZone(q)}catch(F){b={error:F}}finally{try{M&&!M.done&&(g=E.return)&&g.call(E)}finally{if(b)throw b.error}}try{for(var T=m(x),U=T.next();!U.done;U=T.next()){var q;(q=U.value).position==="full"&&this._renderColorZone(q)}}catch(F){S={error:F}}finally{try{U&&!U.done&&(C=T.return)&&C.call(T)}finally{if(S)throw S.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},l.prototype._renderColorZone=function(s){this._ctx.fillStyle=s.color,this._ctx.fillRect(t[s.position||"full"],Math.round((this._canvas.height-1)*(s.startBufferLine/this._bufferService.buffers.active.lines.length)-r[s.position||"full"]/2),e[s.position||"full"],Math.round((this._canvas.height-1)*((s.endBufferLine-s.startBufferLine)/this._bufferService.buffers.active.lines.length)+r[s.position||"full"]))},l.prototype._queueRefresh=function(s,y){var b=this;this._shouldUpdateDimensions=s||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){b._refreshDecorations(),b._animationFrame=void 0}))},f([d(2,h.IBufferService),d(3,h.IDecorationService),d(4,o.IRenderService),d(5,h.IOptionsService)],l)}(_.Disposable);c.OverviewRulerRenderer=i},2950:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CompositionHelper=void 0;var f=w(4725),d=w(2585),m=function(){function v(a,o,_,h,r,e){this._textarea=a,this._compositionView=o,this._bufferService=_,this._optionsService=h,this._coreService=r,this._renderService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(a){var o=this;this._compositionView.textContent=a.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(a){if(this._isComposing||this._isSendingComposition){if(a.keyCode===229||a.keyCode===16||a.keyCode===17||a.keyCode===18)return!1;this._finalizeComposition(!1)}return a.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(a){var o=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,a){var _={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(o._isSendingComposition){o._isSendingComposition=!1;var r;_.start+=o._dataAlreadySent.length,(r=o._isComposing?o._textarea.value.substring(_.start,_.end):o._textarea.value.substring(_.start)).length>0&&o._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;var h=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(h,!0)}},v.prototype._handleAnyTextareaChanges=function(){var a=this,o=this._textarea.value;setTimeout(function(){if(!a._isComposing){var _=a._textarea.value.replace(o,"");_.length>0&&(a._dataAlreadySent=_,a._coreService.triggerDataEvent(_,!0))}},0)},v.prototype.updateCompositionElements=function(a){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var _=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),h=this._renderService.dimensions.actualCellHeight,r=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,e=_*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=e+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=e+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}a||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},p([u(2,d.IBufferService),u(3,d.IOptionsService),u(4,d.ICoreService),u(5,f.IRenderService)],v)}();c.CompositionHelper=m},9806:(W,c)=>{function w(p,u,f){var d=f.getBoundingClientRect(),m=p.getComputedStyle(f),v=parseInt(m.getPropertyValue("padding-left")),a=parseInt(m.getPropertyValue("padding-top"));return[u.clientX-d.left-v,u.clientY-d.top-a]}Object.defineProperty(c,"__esModule",{value:!0}),c.getRawByteCoords=c.getCoords=c.getCoordsRelativeToElement=void 0,c.getCoordsRelativeToElement=w,c.getCoords=function(p,u,f,d,m,v,a,o,_){if(v){var h=w(p,u,f);if(h)return h[0]=Math.ceil((h[0]+(_?a/2:0))/a),h[1]=Math.ceil(h[1]/o),h[0]=Math.min(Math.max(h[0],1),d+(_?1:0)),h[1]=Math.min(Math.max(h[1],1),m),h}},c.getRawByteCoords=function(p){if(p)return{x:p[0]+32,y:p[1]+32}}},9504:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.moveToCellSequence=void 0;var p=w(2584);function u(o,_,h,r){var e=o-f(h,o),t=_-f(h,_),i=Math.abs(e-t)-function(n,l,s){for(var y=0,b=n-f(s,n),g=l-f(s,l),S=0;S=0&&__?"A":"B"}function m(o,_,h,r,e,t){for(var i=o,n=_,l="";i!==h||n!==r;)i+=e?1:-1,e&&i>t.cols-1?(l+=t.buffer.translateBufferLineToString(n,!1,o,i),i=0,o=0,n++):!e&&i<0&&(l+=t.buffer.translateBufferLineToString(n,!1,0,o+1),o=i=t.cols-1,n--);return l+t.buffer.translateBufferLineToString(n,!1,o,i)}function v(o,_){var h=_?"O":"[";return p.C0.ESC+h+o}function a(o,_){o=Math.floor(o);for(var h="",r=0;r0?b-f(g,b):s;var k=b,L=function(R,x,E,M,T,U){var q;return q=u(E,M,T,U).length>0?M-f(T,M):x,R=E&&qo?"D":"C",a(Math.abs(t-o),v(e,r));e=i>_?"D":"C";var n=Math.abs(i-_);return a(function(l,s){return s.cols-l}(i>_?o:t,h)+(n-1)*h.cols+1+((i>_?t:o)-1),v(e,r))}},4389:function(W,c,w){var p=this&&this.__assign||function(){return p=Object.assign||function(r){for(var e,t=1,i=arguments.length;t=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;var f=w(3236),d=w(9042),m=w(7975),v=w(7090),a=w(5741),o=w(8285),_=["cols","rows"],h=function(){function r(e){var t=this;this._core=new f.Terminal(e),this._addonManager=new a.AddonManager,this._publicOptions=p({},this._core.options);var i=function(y){return t._core.options[y]},n=function(y,b){t._checkReadonlyOptions(y),t._core.options[y]=b};for(var l in this._core.options){var s={get:i.bind(this,l),set:n.bind(this,l)};Object.defineProperty(this._publicOptions,l,s)}}return r.prototype._checkReadonlyOptions=function(e){if(_.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},r.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(r.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new m.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"unicode",{get:function(){return this._checkProposedApi(),new v.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new o.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),r.prototype.blur=function(){this._core.blur()},r.prototype.focus=function(){this._core.focus()},r.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},r.prototype.open=function(e){this._core.open(e)},r.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},r.prototype.registerLinkMatcher=function(e,t,i){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,i)},r.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},r.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},r.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},r.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},r.prototype.registerMarker=function(e){return e===void 0&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},r.prototype.registerDecoration=function(e){var t,i,n;return this._checkProposedApi(),this._verifyPositiveIntegers((t=e.x)!==null&&t!==void 0?t:0,(i=e.width)!==null&&i!==void 0?i:0,(n=e.height)!==null&&n!==void 0?n:0),this._core.registerDecoration(e)},r.prototype.addMarker=function(e){return this.registerMarker(e)},r.prototype.hasSelection=function(){return this._core.hasSelection()},r.prototype.select=function(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)},r.prototype.getSelection=function(){return this._core.getSelection()},r.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},r.prototype.clearSelection=function(){this._core.clearSelection()},r.prototype.selectAll=function(){this._core.selectAll()},r.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},r.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},r.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},r.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},r.prototype.scrollToTop=function(){this._core.scrollToTop()},r.prototype.scrollToBottom=function(){this._core.scrollToBottom()},r.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},r.prototype.clear=function(){this._core.clear()},r.prototype.write=function(e,t){this._core.write(e,t)},r.prototype.writeUtf8=function(e,t){this._core.write(e,t)},r.prototype.writeln=function(e,t){this._core.write(e),this._core.write(`\r +`,t)},r.prototype.paste=function(e){this._core.paste(e)},r.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},r.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},r.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},r.prototype.reset=function(){this._core.reset()},r.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},r.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(r,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),r.prototype._verifyIntegers=function(){for(var e,t,i=[],n=0;n=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BaseRenderLayer=void 0;var u=w(643),f=w(8803),d=w(1420),m=w(3734),v=w(1752),a=w(8055),o=w(9631),_=w(8978),h=function(){function r(e,t,i,n,l,s,y,b,g){this._container=e,this._alpha=n,this._colors=l,this._rendererId=s,this._bufferService=y,this._optionsService=b,this._decorationService=g,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=i.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return r.prototype.dispose=function(){var e;(0,o.removeElementFromParent)(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},r.prototype._initCanvas=function(){this._ctx=(0,v.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},r.prototype.onOptionsChanged=function(){},r.prototype.onBlur=function(){},r.prototype.onFocus=function(){},r.prototype.onCursorMove=function(){},r.prototype.onGridChanged=function(e,t){},r.prototype.onSelectionChanged=function(e,t,i){i===void 0&&(i=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i},r.prototype.setColors=function(e){this._refreshCharAtlas(e)},r.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},r.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,d.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},r.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},r.prototype.clearTextureAtlas=function(){var e;(e=this._charAtlas)===null||e===void 0||e.clear()},r.prototype._fillCells=function(e,t,i,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight)},r.prototype._fillMiddleLineAtCells=function(e,t,i){i===void 0&&(i=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillBottomLineAtCells=function(e,t,i){i===void 0&&(i=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,i*this._scaledCellWidth,window.devicePixelRatio)},r.prototype._fillLeftLineAtCell=function(e,t,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*i,this._scaledCellHeight)},r.prototype._strokeRectAtCell=function(e,t,i,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,i*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},r.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},r.prototype._clearCells=function(e,t,i,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,i*this._scaledCellWidth,n*this._scaledCellHeight))},r.prototype._fillCharTrueColor=function(e,t,i){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=f.TEXT_BASELINE,this._clipRow(i);var n=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(n=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},r.prototype._drawChars=function(e,t,i){var n,l,s,y=this._getContrastColor(e,t,i);if(y||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,i,y);else{var b,g;e.isInverse()?(b=e.isBgDefault()?f.INVERTED_DEFAULT_COLOR:e.getBgColor(),g=e.isFgDefault()?f.INVERTED_DEFAULT_COLOR:e.getFgColor()):(g=e.isBgDefault()?u.DEFAULT_COLOR:e.getBgColor(),b=e.isFgDefault()?u.DEFAULT_COLOR:e.getFgColor()),b+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&b<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||u.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||u.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=g,this._currentGlyphIdentifier.fg=b,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var S=!1;try{for(var C=p(this._decorationService.getDecorationsAtCell(t,i)),k=C.next();!k.done;k=C.next()){var L=k.value;if(L.backgroundColorRGB||L.foregroundColorRGB){S=!0;break}}}catch(R){n={error:R}}finally{try{k&&!k.done&&(l=C.return)&&l.call(C)}finally{if(n)throw n.error}}!S&&((s=this._charAtlas)===null||s===void 0?void 0:s.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,i)}},r.prototype._drawUncachedChars=function(e,t,i,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=f.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(i),e.isDim()&&(this._ctx.globalAlpha=f.DIM_OPACITY);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,_.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,i*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},r.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},r.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},r.prototype._getContrastColor=function(e,t,i){var n,l,s,y,b=!1;try{for(var g=p(this._decorationService.getDecorationsAtCell(t,i)),S=g.next();!S.done;S=g.next()){var C=S.value;C.options.layer!=="top"&&b||(C.backgroundColorRGB&&(s=C.backgroundColorRGB.rgba),C.foregroundColorRGB&&(y=C.foregroundColorRGB.rgba),b=C.options.layer==="top")}}catch(Y){n={error:Y}}finally{try{S&&!S.done&&(l=g.return)&&l.call(g)}finally{if(n)throw n.error}}if(b||this._colors.selectionForeground&&this._isCellInSelection(t,i)&&(y=this._colors.selectionForeground.rgba),s||y||this._optionsService.rawOptions.minimumContrastRatio!==1&&!(0,v.excludeFromContrastRatioDemands)(e.getCode())){if(!s&&!y){var k=this._colors.contrastCache.getColor(e.bg,e.fg);if(k!==void 0)return k||void 0}var L=e.getFgColor(),R=e.getFgColorMode(),x=e.getBgColor(),E=e.getBgColorMode(),M=!!e.isInverse(),T=!!e.isInverse();if(M){var U=L;L=x,x=U;var q=R;R=E,E=q}var F=this._resolveBackgroundRgba(s!==void 0?50331648:E,s!=null?s:x,M),z=this._resolveForegroundRgba(R,L,M,T),N=a.rgba.ensureContrastRatio(s!=null?s:F,y!=null?y:z,this._optionsService.rawOptions.minimumContrastRatio);if(!N){if(!y)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);N=y}var A={css:a.channels.toCss(N>>24&255,N>>16&255,N>>8&255),rgba:N};return s||y||this._colors.contrastCache.setColor(e.bg,e.fg,A),A}},r.prototype._resolveBackgroundRgba=function(e,t,i){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.foreground.rgba:this._colors.background.rgba}},r.prototype._resolveForegroundRgba=function(e,t,i,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return i?this._colors.background.rgba:this._colors.foreground.rgba}},r.prototype._isCellInSelection=function(e,t){var i=this._selectionStart,n=this._selectionEnd;return!(!i||!n)&&(this._columnSelectMode?e>=i[0]&&t>=i[1]&&ei[1]&&t=i[0]&&e=i[0])},r}();c.BaseRenderLayer=h},2512:function(W,c,w){var p,u=this&&this.__extends||(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])},p(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}p(e,t),e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}),f=this&&this.__decorate||function(e,t,i,n){var l,s=arguments.length,y=s<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,i,n);else for(var b=e.length-1;b>=0;b--)(l=e[b])&&(y=(s<3?l(y):s>3?l(t,i,y):l(t,i))||y);return s>3&&y&&Object.defineProperty(t,i,y),y},d=this&&this.__param||function(e,t){return function(i,n){t(i,n,e)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CursorRenderLayer=void 0;var m=w(1546),v=w(511),a=w(2585),o=w(4725),_=600,h=function(e){function t(i,n,l,s,y,b,g,S,C,k){var L=e.call(this,i,"cursor",n,!0,l,s,b,g,k)||this;return L._onRequestRedraw=y,L._coreService=S,L._coreBrowserService=C,L._cell=new v.CellData,L._state={x:0,y:0,isFocused:!1,style:"",width:0},L._cursorRenderers={bar:L._renderBarCursor.bind(L),block:L._renderBlockCursor.bind(L),underline:L._renderUnderlineCursor.bind(L)},L}return u(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(i){e.prototype.resize.call(this,i),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var i;this._clearCursor(),(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var i,n=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new r(this._coreBrowserService.isFocused,function(){n._render(!0)})):((i=this._cursorBlinkStateManager)===null||i===void 0||i.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation()},t.prototype.onGridChanged=function(i,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(i){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=n-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(s,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var y=this._optionsService.rawOptions.cursorStyle;return y&&y!=="block"?this._cursorRenderers[y](s,l,this._cell):this._renderBlurCursor(s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=y,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===s&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](s,l,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(i,n,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(i,n,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,i,n),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(i,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(i,n),this._ctx.restore()},t.prototype._renderBlurCursor=function(i,n,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(i,n,l.getWidth(),1),this._ctx.restore()},f([d(5,a.IBufferService),d(6,a.IOptionsService),d(7,a.ICoreService),d(8,o.ICoreBrowserService),d(9,a.IDecorationService)],t)}(m.BaseRenderLayer);c.CursorRenderLayer=h;var r=function(){function e(t,i){this._renderCallback=i,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},e.prototype._restartInterval=function(t){var i=this;t===void 0&&(t=_),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(i._animationTimeRestarted){var n=_-(Date.now()-i._animationTimeRestarted);if(i._animationTimeRestarted=void 0,n>0)return void i._restartInterval(n)}i.isCursorVisible=!1,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0}),i._blinkInterval=window.setInterval(function(){if(i._animationTimeRestarted){var l=_-(Date.now()-i._animationTimeRestarted);return i._animationTimeRestarted=void 0,void i._restartInterval(l)}i.isCursorVisible=!i.isCursorVisible,i._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})},_)},t)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(W,c,w){var p,u,f,d,m,v,a,o,_,h,r,e,t,i,n,l,s,y,b,g,S,C,k,L,R,x,E,M,T,U,q,F,z,N,A,Y,Z,te,B,ee,X,j,O,D,H,G,V,$,ie,ce,le,K,he,pe,we,Ie,Ht,Ft,jt,Wt,Ut,qt,Ue,qe,Ne,ze,Ke,Ge,Ve,Xe,Ze,Ye,Je,$e,Qe,et,tt,rt,it,nt,ot,st,at,ct,lt,ht,ut,ft,dt,_t,pt,vt,yt,gt,mt,St,bt,Ct,wt,Lt,Et,xt,Rt,kt,At,Mt,Ot,Dt,Tt,Bt,Pt,It,Nt,zt,Kt,Gt,Vt,Xt,Zt,Yt,Jt,$t,Qt,er,tr,rr,ir,nr,ar=this&&this.__read||function(P,I){var se=typeof Symbol=="function"&&P[Symbol.iterator];if(!se)return P;var ve,Le,me=se.call(P),ne=[];try{for(;(I===void 0||I-- >0)&&!(ve=me.next()).done;)ne.push(ve.value)}catch(Se){Le={error:Se}}finally{try{ve&&!ve.done&&(se=me.return)&&se.call(me)}finally{if(Le)throw Le.error}}return ne},or=this&&this.__values||function(P){var I=typeof Symbol=="function"&&Symbol.iterator,se=I&&P[I],ve=0;if(se)return se.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&ve>=P.length&&(P=void 0),{value:P&&P[ve++],done:!P}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.tryDrawCustomChar=c.powerlineDefinitions=c.boxDrawingDefinitions=c.blockElementDefinitions=void 0;var cr=w(1752);c.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gr={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};c.boxDrawingDefinitions={"\u2500":(p={},p[1]="M0,.5 L1,.5",p),"\u2501":(u={},u[3]="M0,.5 L1,.5",u),"\u2502":(f={},f[1]="M.5,0 L.5,1",f),"\u2503":(d={},d[3]="M.5,0 L.5,1",d),"\u250C":(m={},m[1]="M0.5,1 L.5,.5 L1,.5",m),"\u250F":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"\u2510":(a={},a[1]="M0,.5 L.5,.5 L.5,1",a),"\u2513":(o={},o[3]="M0,.5 L.5,.5 L.5,1",o),"\u2514":(_={},_[1]="M.5,0 L.5,.5 L1,.5",_),"\u2517":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"\u2518":(r={},r[1]="M.5,0 L.5,.5 L0,.5",r),"\u251B":(e={},e[3]="M.5,0 L.5,.5 L0,.5",e),"\u251C":(t={},t[1]="M.5,0 L.5,1 M.5,.5 L1,.5",t),"\u2523":(i={},i[3]="M.5,0 L.5,1 M.5,.5 L1,.5",i),"\u2524":(n={},n[1]="M.5,0 L.5,1 M.5,.5 L0,.5",n),"\u252B":(l={},l[3]="M.5,0 L.5,1 M.5,.5 L0,.5",l),"\u252C":(s={},s[1]="M0,.5 L1,.5 M.5,.5 L.5,1",s),"\u2533":(y={},y[3]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"\u2534":(b={},b[1]="M0,.5 L1,.5 M.5,.5 L.5,0",b),"\u253B":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"\u253C":(S={},S[1]="M0,.5 L1,.5 M.5,0 L.5,1",S),"\u254B":(C={},C[3]="M0,.5 L1,.5 M.5,0 L.5,1",C),"\u2574":(k={},k[1]="M.5,.5 L0,.5",k),"\u2578":(L={},L[3]="M.5,.5 L0,.5",L),"\u2575":(R={},R[1]="M.5,.5 L.5,0",R),"\u2579":(x={},x[3]="M.5,.5 L.5,0",x),"\u2576":(E={},E[1]="M.5,.5 L1,.5",E),"\u257A":(M={},M[3]="M.5,.5 L1,.5",M),"\u2577":(T={},T[1]="M.5,.5 L.5,1",T),"\u257B":(U={},U[3]="M.5,.5 L.5,1",U),"\u2550":(q={},q[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},q),"\u2551":(F={},F[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},F),"\u2552":(z={},z[1]=function(P,I){return"M.5,1 L.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},z),"\u2553":(N={},N[1]=function(P,I){return"M"+(.5-P)+",1 L"+(.5-P)+",.5 L1,.5 M"+(.5+P)+",.5 L"+(.5+P)+",1"},N),"\u2554":(A={},A[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},A),"\u2555":(Y={},Y[1]=function(P,I){return"M0,"+(.5-I)+" L.5,"+(.5-I)+" L.5,1 M0,"+(.5+I)+" L.5,"+(.5+I)},Y),"\u2556":(Z={},Z[1]=function(P,I){return"M"+(.5+P)+",1 L"+(.5+P)+",.5 L0,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1"},Z),"\u2557":(te={},te[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",1"},te),"\u2558":(B={},B[1]=function(P,I){return"M.5,0 L.5,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5-I)+" L1,"+(.5-I)},B),"\u2559":(ee={},ee[1]=function(P,I){return"M1,.5 L"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},ee),"\u255A":(X={},X[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0 M1,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",0"},X),"\u255B":(j={},j[1]=function(P,I){return"M0,"+(.5+I)+" L.5,"+(.5+I)+" L.5,0 M0,"+(.5-I)+" L.5,"+(.5-I)},j),"\u255C":(O={},O[1]=function(P,I){return"M0,.5 L"+(.5+P)+",.5 L"+(.5+P)+",0 M"+(.5-P)+",.5 L"+(.5-P)+",0"},O),"\u255D":(D={},D[1]=function(P,I){return"M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M0,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",0"},D),"\u255E":(H={},H[1]=function(P,I){return"M.5,0 L.5,1 M.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},H),"\u255F":(G={},G[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1 M"+(.5+P)+",.5 L1,.5"},G),"\u2560":(V={},V[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},V),"\u2561":($={},$[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L.5,"+(.5-I)+" M0,"+(.5+I)+" L.5,"+(.5+I)},$),"\u2562":(ie={},ie[1]=function(P,I){return"M0,.5 L"+(.5-P)+",.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},ie),"\u2563":(ce={},ce[1]=function(P,I){return"M"+(.5+P)+",0 L"+(.5+P)+",1 M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0"},ce),"\u2564":(le={},le[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5+I)+" L.5,1"},le),"\u2565":(K={},K[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1 M"+(.5+P)+",.5 L"+(.5+P)+",1"},K),"\u2566":(he={},he[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},he),"\u2567":(pe={},pe[1]=function(P,I){return"M.5,0 L.5,"+(.5-I)+" M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},pe),"\u2568":(we={},we[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},we),"\u2569":(Ie={},Ie[1]=function(P,I){return"M0,"+(.5+I)+" L1,"+(.5+I)+" M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},Ie),"\u256A":(Ht={},Ht[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},Ht),"\u256B":(Ft={},Ft[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},Ft),"\u256C":(jt={},jt[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},jt),"\u2571":(Wt={},Wt[1]="M1,0 L0,1",Wt),"\u2572":(Ut={},Ut[1]="M0,0 L1,1",Ut),"\u2573":(qt={},qt[1]="M1,0 L0,1 M0,0 L1,1",qt),"\u257C":(Ue={},Ue[1]="M.5,.5 L0,.5",Ue[3]="M.5,.5 L1,.5",Ue),"\u257D":(qe={},qe[1]="M.5,.5 L.5,0",qe[3]="M.5,.5 L.5,1",qe),"\u257E":(Ne={},Ne[1]="M.5,.5 L1,.5",Ne[3]="M.5,.5 L0,.5",Ne),"\u257F":(ze={},ze[1]="M.5,.5 L.5,1",ze[3]="M.5,.5 L.5,0",ze),"\u250D":(Ke={},Ke[1]="M.5,.5 L.5,1",Ke[3]="M.5,.5 L1,.5",Ke),"\u250E":(Ge={},Ge[1]="M.5,.5 L1,.5",Ge[3]="M.5,.5 L.5,1",Ge),"\u2511":(Ve={},Ve[1]="M.5,.5 L.5,1",Ve[3]="M.5,.5 L0,.5",Ve),"\u2512":(Xe={},Xe[1]="M.5,.5 L0,.5",Xe[3]="M.5,.5 L.5,1",Xe),"\u2515":(Ze={},Ze[1]="M.5,.5 L.5,0",Ze[3]="M.5,.5 L1,.5",Ze),"\u2516":(Ye={},Ye[1]="M.5,.5 L1,.5",Ye[3]="M.5,.5 L.5,0",Ye),"\u2519":(Je={},Je[1]="M.5,.5 L.5,0",Je[3]="M.5,.5 L0,.5",Je),"\u251A":($e={},$e[1]="M.5,.5 L0,.5",$e[3]="M.5,.5 L.5,0",$e),"\u251D":(Qe={},Qe[1]="M.5,0 L.5,1",Qe[3]="M.5,.5 L1,.5",Qe),"\u251E":(et={},et[1]="M0.5,1 L.5,.5 L1,.5",et[3]="M.5,.5 L.5,0",et),"\u251F":(tt={},tt[1]="M.5,0 L.5,.5 L1,.5",tt[3]="M.5,.5 L.5,1",tt),"\u2520":(rt={},rt[1]="M.5,.5 L1,.5",rt[3]="M.5,0 L.5,1",rt),"\u2521":(it={},it[1]="M.5,.5 L.5,1",it[3]="M.5,0 L.5,.5 L1,.5",it),"\u2522":(nt={},nt[1]="M.5,.5 L.5,0",nt[3]="M0.5,1 L.5,.5 L1,.5",nt),"\u2525":(ot={},ot[1]="M.5,0 L.5,1",ot[3]="M.5,.5 L0,.5",ot),"\u2526":(st={},st[1]="M0,.5 L.5,.5 L.5,1",st[3]="M.5,.5 L.5,0",st),"\u2527":(at={},at[1]="M.5,0 L.5,.5 L0,.5",at[3]="M.5,.5 L.5,1",at),"\u2528":(ct={},ct[1]="M.5,.5 L0,.5",ct[3]="M.5,0 L.5,1",ct),"\u2529":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M.5,0 L.5,.5 L0,.5",lt),"\u252A":(ht={},ht[1]="M.5,.5 L.5,0",ht[3]="M0,.5 L.5,.5 L.5,1",ht),"\u252D":(ut={},ut[1]="M0.5,1 L.5,.5 L1,.5",ut[3]="M.5,.5 L0,.5",ut),"\u252E":(ft={},ft[1]="M0,.5 L.5,.5 L.5,1",ft[3]="M.5,.5 L1,.5",ft),"\u252F":(dt={},dt[1]="M.5,.5 L.5,1",dt[3]="M0,.5 L1,.5",dt),"\u2530":(_t={},_t[1]="M0,.5 L1,.5",_t[3]="M.5,.5 L.5,1",_t),"\u2531":(pt={},pt[1]="M.5,.5 L1,.5",pt[3]="M0,.5 L.5,.5 L.5,1",pt),"\u2532":(vt={},vt[1]="M.5,.5 L0,.5",vt[3]="M0.5,1 L.5,.5 L1,.5",vt),"\u2535":(yt={},yt[1]="M.5,0 L.5,.5 L1,.5",yt[3]="M.5,.5 L0,.5",yt),"\u2536":(gt={},gt[1]="M.5,0 L.5,.5 L0,.5",gt[3]="M.5,.5 L1,.5",gt),"\u2537":(mt={},mt[1]="M.5,.5 L.5,0",mt[3]="M0,.5 L1,.5",mt),"\u2538":(St={},St[1]="M0,.5 L1,.5",St[3]="M.5,.5 L.5,0",St),"\u2539":(bt={},bt[1]="M.5,.5 L1,.5",bt[3]="M.5,0 L.5,.5 L0,.5",bt),"\u253A":(Ct={},Ct[1]="M.5,.5 L0,.5",Ct[3]="M.5,0 L.5,.5 L1,.5",Ct),"\u253D":(wt={},wt[1]="M.5,0 L.5,1 M.5,.5 L1,.5",wt[3]="M.5,.5 L0,.5",wt),"\u253E":(Lt={},Lt[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Lt[3]="M.5,.5 L1,.5",Lt),"\u253F":(Et={},Et[1]="M.5,0 L.5,1",Et[3]="M0,.5 L1,.5",Et),"\u2540":(xt={},xt[1]="M0,.5 L1,.5 M.5,.5 L.5,1",xt[3]="M.5,.5 L.5,0",xt),"\u2541":(Rt={},Rt[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Rt[3]="M.5,.5 L.5,1",Rt),"\u2542":(kt={},kt[1]="M0,.5 L1,.5",kt[3]="M.5,0 L.5,1",kt),"\u2543":(At={},At[1]="M0.5,1 L.5,.5 L1,.5",At[3]="M.5,0 L.5,.5 L0,.5",At),"\u2544":(Mt={},Mt[1]="M0,.5 L.5,.5 L.5,1",Mt[3]="M.5,0 L.5,.5 L1,.5",Mt),"\u2545":(Ot={},Ot[1]="M.5,0 L.5,.5 L1,.5",Ot[3]="M0,.5 L.5,.5 L.5,1",Ot),"\u2546":(Dt={},Dt[1]="M.5,0 L.5,.5 L0,.5",Dt[3]="M0.5,1 L.5,.5 L1,.5",Dt),"\u2547":(Tt={},Tt[1]="M.5,.5 L.5,1",Tt[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Tt),"\u2548":(Bt={},Bt[1]="M.5,.5 L.5,0",Bt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Bt),"\u2549":(Pt={},Pt[1]="M.5,.5 L1,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Pt),"\u254A":(It={},It[1]="M.5,.5 L0,.5",It[3]="M.5,0 L.5,1 M.5,.5 L1,.5",It),"\u254C":(Nt={},Nt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Nt),"\u254D":(zt={},zt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",zt),"\u2504":(Kt={},Kt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Kt),"\u2505":(Gt={},Gt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gt),"\u2508":(Vt={},Vt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Vt),"\u2509":(Xt={},Xt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Xt),"\u254E":(Zt={},Zt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Zt),"\u254F":(Yt={},Yt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yt),"\u2506":(Jt={},Jt[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Jt),"\u2507":($t={},$t[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",$t),"\u250A":(Qt={},Qt[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Qt),"\u250B":(er={},er[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",er),"\u256D":(tr={},tr[1]="C.5,1,.5,.5,1,.5",tr),"\u256E":(rr={},rr[1]="C.5,1,.5,.5,0,.5",rr),"\u256F":(ir={},ir[1]="C.5,0,.5,.5,0,.5",ir),"\u2570":(nr={},nr[1]="C.5,0,.5,.5,1,.5",nr)},c.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0},"\uE0B1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0},"\uE0B3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},c.tryDrawCustomChar=function(P,I,se,ve,Le,me){var ne=c.blockElementDefinitions[I];if(ne)return function(re,ye,Te,Be,Me,Oe){for(var ue=0;ue7&&parseInt(Q.slice(7,9),16)||1;else{if(!Q.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Q+'" when drawing pattern glyph');He=(ue=ar(Q.substring(5,Q.length-1).split(",").map(function(We){return parseFloat(We)}),4))[0],De=ue[1],Ae=ue[2],Fe=ue[3]}for(var Re=0;Re{Object.defineProperty(c,"__esModule",{value:!0}),c.GridCache=void 0;var w=function(){function p(){this.cache=[]}return p.prototype.resize=function(u,f){for(var d=0;d=0;s--)(i=h[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);return n>3&&l&&Object.defineProperty(r,e,l),l},d=this&&this.__param||function(h,r){return function(e,t){r(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.LinkRenderLayer=void 0;var m=w(1546),v=w(8803),a=w(2040),o=w(2585),_=function(h){function r(e,t,i,n,l,s,y,b,g){var S=h.call(this,e,"link",t,!0,i,n,y,b,g)||this;return l.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),l.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),s.onShowLinkUnderline(function(C){return S._onShowLinkUnderline(C)}),s.onHideLinkUnderline(function(C){return S._onHideLinkUnderline(C)}),S}return u(r,h),r.prototype.resize=function(e){h.prototype.resize.call(this,e),this._state=void 0},r.prototype.reset=function(){this._clearCurrentLink()},r.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},r.prototype._onShowLinkUnderline=function(e){if(e.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,a.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;L--)(S=s[L])&&(k=(C<3?S(k):C>3?S(y,b,k):S(y,b))||k);return C>3&&k&&Object.defineProperty(y,b,k),k},d=this&&this.__param||function(s,y){return function(b,g){y(b,g,s)}},m=this&&this.__values||function(s){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&s[y],g=0;if(b)return b.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&g>=s.length&&(s=void 0),{value:s&&s[g++],done:!s}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Renderer=void 0;var v=w(9596),a=w(4149),o=w(2512),_=w(5098),h=w(844),r=w(4725),e=w(2585),t=w(1420),i=w(8460),n=1,l=function(s){function y(b,g,S,C,k,L,R,x){var E=s.call(this)||this;E._colors=b,E._screenElement=g,E._bufferService=L,E._charSizeService=R,E._optionsService=x,E._id=n++,E._onRequestRedraw=new i.EventEmitter;var M=E._optionsService.rawOptions.allowTransparency;return E._renderLayers=[k.createInstance(v.TextRenderLayer,E._screenElement,0,E._colors,M,E._id),k.createInstance(a.SelectionRenderLayer,E._screenElement,1,E._colors,E._id),k.createInstance(_.LinkRenderLayer,E._screenElement,2,E._colors,E._id,S,C),k.createInstance(o.CursorRenderLayer,E._screenElement,3,E._colors,E._id,E._onRequestRedraw)],E.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},E._devicePixelRatio=window.devicePixelRatio,E._updateDimensions(),E.onOptionsChanged(),E}return u(y,s),Object.defineProperty(y.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.dispose()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}s.prototype.dispose.call(this),(0,t.removeTerminalFromCache)(this._id)},y.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},y.prototype.setColors=function(b){var g,S;this._colors=b;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next()){var L=k.value;L.setColors(this._colors),L.reset()}}catch(R){g={error:R}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.onResize=function(b,g){var S,C;this._updateDimensions();try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.resize(this.dimensions)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},y.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},y.prototype.onBlur=function(){this._runOperation(function(b){return b.onBlur()})},y.prototype.onFocus=function(){this._runOperation(function(b){return b.onFocus()})},y.prototype.onSelectionChanged=function(b,g,S){S===void 0&&(S=!1),this._runOperation(function(C){return C.onSelectionChanged(b,g,S)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},y.prototype.onCursorMove=function(){this._runOperation(function(b){return b.onCursorMove()})},y.prototype.onOptionsChanged=function(){this._runOperation(function(b){return b.onOptionsChanged()})},y.prototype.clear=function(){this._runOperation(function(b){return b.reset()})},y.prototype._runOperation=function(b){var g,S;try{for(var C=m(this._renderLayers),k=C.next();!k.done;k=C.next())b(k.value)}catch(L){g={error:L}}finally{try{k&&!k.done&&(S=C.return)&&S.call(C)}finally{if(g)throw g.error}}},y.prototype.renderRows=function(b,g){var S,C;try{for(var k=m(this._renderLayers),L=k.next();!L.done;L=k.next())L.value.onGridChanged(b,g)}catch(R){S={error:R}}finally{try{L&&!L.done&&(C=k.return)&&C.call(k)}finally{if(S)throw S.error}}},y.prototype.clearTextureAtlas=function(){var b,g;try{for(var S=m(this._renderLayers),C=S.next();!C.done;C=S.next())C.value.clearTextureAtlas()}catch(k){b={error:k}}finally{try{C&&!C.done&&(g=S.return)&&g.call(S)}finally{if(b)throw b.error}}},y.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},f([d(4,e.IInstantiationService),d(5,e.IBufferService),d(6,r.ICharSizeService),d(7,e.IOptionsService)],y)}(h.Disposable);c.Renderer=l},1752:(W,c)=>{function w(p){return 57508<=p&&p<=57558}Object.defineProperty(c,"__esModule",{value:!0}),c.excludeFromContrastRatioDemands=c.isPowerlineGlyph=c.throwIfFalsy=void 0,c.throwIfFalsy=function(p){if(!p)throw new Error("value must not be falsy");return p},c.isPowerlineGlyph=w,c.excludeFromContrastRatioDemands=function(p){return w(p)||function(u){return 9472<=u&&u<=9631}(p)}},4149:function(W,c,w){var p,u=this&&this.__extends||(p=function(o,_){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,r){h.__proto__=r}||function(h,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(h[e]=r[e])},p(o,_)},function(o,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function h(){this.constructor=o}p(o,_),o.prototype=_===null?Object.create(_):(h.prototype=_.prototype,new h)}),f=this&&this.__decorate||function(o,_,h,r){var e,t=arguments.length,i=t<3?_:r===null?r=Object.getOwnPropertyDescriptor(_,h):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,_,h,r);else for(var n=o.length-1;n>=0;n--)(e=o[n])&&(i=(t<3?e(i):t>3?e(_,h,i):e(_,h))||i);return t>3&&i&&Object.defineProperty(_,h,i),i},d=this&&this.__param||function(o,_){return function(h,r){_(h,r,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionRenderLayer=void 0;var m=w(1546),v=w(2585),a=function(o){function _(h,r,e,t,i,n,l){var s=o.call(this,h,"selection",r,!0,e,t,i,n,l)||this;return s._clearState(),s}return u(_,o),_.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},_.prototype.resize=function(h){o.prototype.resize.call(this,h),this._clearState()},_.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},_.prototype.onSelectionChanged=function(h,r,e){if(o.prototype.onSelectionChanged.call(this,h,r,e),this._didStateChange(h,r,e,this._bufferService.buffer.ydisp))if(this._clearAll(),h&&r){var t=h[1]-this._bufferService.buffer.ydisp,i=r[1]-this._bufferService.buffer.ydisp,n=Math.max(t,0),l=Math.min(i,this._bufferService.rows-1);if(n>=this._bufferService.rows||l<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,e){var s=h[0],y=r[0]-s,b=l-n+1;this._fillCells(s,n,y,b)}else{s=t===n?h[0]:0;var g=n===i?r[0]:this._bufferService.cols;this._fillCells(s,n,g-s,1);var S=Math.max(l-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,S),n!==l){var C=i===l?r[0]:this._bufferService.cols;this._fillCells(0,l,C,1)}}this._state.start=[h[0],h[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=e,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},_.prototype._didStateChange=function(h,r,e,t){return!this._areCoordinatesEqual(h,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||e!==this._state.columnSelectMode||t!==this._state.ydisp},_.prototype._areCoordinatesEqual=function(h,r){return!(!h||!r)&&h[0]===r[0]&&h[1]===r[1]},f([d(4,v.IBufferService),d(5,v.IOptionsService),d(6,v.IDecorationService)],_)}(m.BaseRenderLayer);c.SelectionRenderLayer=a},9596:function(W,c,w){var p,u=this&&this.__extends||(p=function(n,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,y){s.__proto__=y}||function(s,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(s[b]=y[b])},p(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function s(){this.constructor=n}p(n,l),n.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}),f=this&&this.__decorate||function(n,l,s,y){var b,g=arguments.length,S=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,s):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(n,l,s,y);else for(var C=n.length-1;C>=0;C--)(b=n[C])&&(S=(g<3?b(S):g>3?b(l,s,S):b(l,s))||S);return g>3&&S&&Object.defineProperty(l,s,S),S},d=this&&this.__param||function(n,l){return function(s,y){l(s,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,s=l&&n[l],y=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.TextRenderLayer=void 0;var v=w(3700),a=w(1546),o=w(3734),_=w(643),h=w(511),r=w(2585),e=w(4725),t=w(4269),i=function(n){function l(s,y,b,g,S,C,k,L,R){var x=n.call(this,s,"text",y,g,b,S,C,k,R)||this;return x._characterJoinerService=L,x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new h.CellData,x._state=new v.GridCache,x}return u(l,n),l.prototype.resize=function(s){n.prototype.resize.call(this,s);var y=this._getFont(!1,!1);this._characterWidth===s.scaledCharWidth&&this._characterFont===y||(this._characterWidth=s.scaledCharWidth,this._characterFont=y,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(s,y,b){for(var g=s;g<=y;g++)for(var S=g+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.lines.get(S),k=this._characterJoinerService.getJoinedCharacters(S),L=0;L0&&L===k[0][0]){x=!0;var M=k.shift();R=new t.JoinedCellData(this._workCell,C.translateToString(!0,M[0],M[1]),M[1]-M[0]),E=M[1]-1}!x&&this._isOverlapping(R)&&Ethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[y]=b,b},f([d(5,r.IBufferService),d(6,r.IOptionsService),d(7,e.ICharacterJoinerService),d(8,r.IDecorationService)],l)}(a.BaseRenderLayer);c.TextRenderLayer=i},9616:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BaseCharAtlas=void 0;var w=function(){function p(){this._didWarmUp=!1}return p.prototype.dispose=function(){},p.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},p.prototype._doWarmUp=function(){},p.prototype.clear=function(){},p.prototype.beginFrame=function(){},p}();c.BaseCharAtlas=w},1420:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.removeTerminalFromCache=c.acquireCharAtlas=void 0;var p=w(2040),u=w(1906),f=[];c.acquireCharAtlas=function(d,m,v,a,o){for(var _=(0,p.generateConfig)(a,o,d,v),h=0;h=0){if((0,p.configEquals)(e.config,_))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),f.splice(h,1)):e.ownedBy.splice(r,1);break}}for(h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.is256Color=c.configEquals=c.generateConfig=void 0;var p=w(643);c.generateConfig=function(u,f,d,m){var v={foreground:m.foreground,background:m.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:m.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:u,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:v}},c.configEquals=function(u,f){for(var d=0;d{Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR_ATLAS_CELL_SPACING=c.TEXT_BASELINE=c.DIM_OPACITY=c.INVERTED_DEFAULT_COLOR=void 0;var p=w(6114);c.INVERTED_DEFAULT_COLOR=257,c.DIM_OPACITY=.5,c.TEXT_BASELINE=p.isFirefox||p.isLegacyEdge?"bottom":"ideographic",c.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,c,w){var p,u=this&&this.__extends||(p=function(s,y){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&(b[S]=g[S])},p(s,y)},function(s,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function b(){this.constructor=s}p(s,y),s.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)});Object.defineProperty(c,"__esModule",{value:!0}),c.NoneCharAtlas=c.DynamicCharAtlas=c.getGlyphCacheKey=void 0;var f=w(8803),d=w(9616),m=w(5680),v=w(7001),a=w(6114),o=w(1752),_=w(8055),h=1024,r=1024,e={css:"rgba(0, 0, 0, 0)",rgba:0};function t(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}c.getGlyphCacheKey=t;var i=function(s){function y(b,g){var S=s.call(this)||this;S._config=g,S._drawToCacheCount=0,S._glyphsWaitingOnBitmap=[],S._bitmapCommitTimeout=null,S._bitmap=null,S._cacheCanvas=b.createElement("canvas"),S._cacheCanvas.width=h,S._cacheCanvas.height=r,S._cacheCtx=(0,o.throwIfFalsy)(S._cacheCanvas.getContext("2d",{alpha:!0}));var C=b.createElement("canvas");C.width=S._config.scaledCharWidth,C.height=S._config.scaledCharHeight,S._tmpCtx=(0,o.throwIfFalsy)(C.getContext("2d",{alpha:S._config.allowTransparency})),S._width=Math.floor(h/S._config.scaledCharWidth),S._height=Math.floor(r/S._config.scaledCharHeight);var k=S._width*S._height;return S._cacheMap=new v.LRUMap(k),S._cacheMap.prealloc(k),S}return u(y,s),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.clear=function(){if(this._cacheMap.size>0){var b=this._width*this._height;this._cacheMap=new v.LRUMap(b),this._cacheMap.prealloc(b)}this._cacheCtx.clearRect(0,0,h,r),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},y.prototype.draw=function(b,g,S,C){if(g.code===32)return!0;if(!this._canCache(g))return!1;var k=t(g),L=this._cacheMap.get(k);if(L!=null)return this._drawFromCache(b,L,S,C),!0;if(this._drawToCacheCount<100){var R;R=this._cacheMap.size>>24,S=y.rgba>>>16&255,C=y.rgba>>>8&255,k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.LRUMap=void 0;var w=function(){function p(u){this.capacity=u,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return p.prototype._unlinkNode=function(u){var f=u.prev,d=u.next;u===this._head&&(this._head=d),u===this._tail&&(this._tail=f),f!==null&&(f.next=d),d!==null&&(d.prev=f)},p.prototype._appendNode=function(u){var f=this._tail;f!==null&&(f.next=u),u.prev=f,u.next=null,this._tail=u,this._head===null&&(this._head=u)},p.prototype.prealloc=function(u){for(var f=this._nodePool,d=0;d=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=u,d.value=f,this._map[u]=d;else{var m=this._nodePool;m.length>0?((d=m.pop()).key=u,d.value=f):d={prev:null,next:null,key:u,value:f},this._map[u]=d,this.size++}this._appendNode(d)},p}();c.LRUMap=w},1296:function(W,c,w){var p,u=this&&this.__extends||(p=function(g,S){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(C[L]=k[L])},p(g,S)},function(g,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function C(){this.constructor=g}p(g,S),g.prototype=S===null?Object.create(S):(C.prototype=S.prototype,new C)}),f=this&&this.__decorate||function(g,S,C,k){var L,R=arguments.length,x=R<3?S:k===null?k=Object.getOwnPropertyDescriptor(S,C):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(g,S,C,k);else for(var E=g.length-1;E>=0;E--)(L=g[E])&&(x=(R<3?L(x):R>3?L(S,C,x):L(S,C))||x);return R>3&&x&&Object.defineProperty(S,C,x),x},d=this&&this.__param||function(g,S){return function(C,k){S(C,k,g)}},m=this&&this.__values||function(g){var S=typeof Symbol=="function"&&Symbol.iterator,C=S&&g[S],k=0;if(C)return C.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&k>=g.length&&(g=void 0),{value:g&&g[k++],done:!g}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRenderer=void 0;var v=w(3787),a=w(8803),o=w(844),_=w(4725),h=w(2585),r=w(8460),e=w(8055),t=w(9631),i="xterm-dom-renderer-owner-",n="xterm-fg-",l="xterm-bg-",s="xterm-focus",y=1,b=function(g){function S(C,k,L,R,x,E,M,T,U,q){var F=g.call(this)||this;return F._colors=C,F._element=k,F._screenElement=L,F._viewportElement=R,F._linkifier=x,F._linkifier2=E,F._charSizeService=T,F._optionsService=U,F._bufferService=q,F._terminalClass=y++,F._rowElements=[],F._rowContainer=document.createElement("div"),F._rowContainer.classList.add("xterm-rows"),F._rowContainer.style.lineHeight="normal",F._rowContainer.setAttribute("aria-hidden","true"),F._refreshRowElements(F._bufferService.cols,F._bufferService.rows),F._selectionContainer=document.createElement("div"),F._selectionContainer.classList.add("xterm-selection"),F._selectionContainer.setAttribute("aria-hidden","true"),F.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},F._updateDimensions(),F._injectCss(),F._rowFactory=M.createInstance(v.DomRendererRowFactory,document,F._colors),F._element.classList.add(i+F._terminalClass),F._screenElement.appendChild(F._rowContainer),F._screenElement.appendChild(F._selectionContainer),F.register(F._linkifier.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F.register(F._linkifier2.onShowLinkUnderline(function(z){return F._onLinkHover(z)})),F.register(F._linkifier2.onHideLinkUnderline(function(z){return F._onLinkLeave(z)})),F}return u(S,g),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return new r.EventEmitter().event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this._element.classList.remove(i+this._terminalClass),(0,t.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),g.prototype.dispose.call(this)},S.prototype._updateDimensions=function(){var C,k;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next()){var x=R.value;x.style.width=this.dimensions.canvasWidth+"px",x.style.height=this.dimensions.actualCellHeight+"px",x.style.lineHeight=this.dimensions.actualCellHeight+"px",x.style.overflow="hidden"}}catch(M){C={error:M}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},S.prototype.setColors=function(C){this._colors=C,this._injectCss()},S.prototype._injectCss=function(){var C=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var k=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";k+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",k+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",k+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",k+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",k+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(L,R){k+=C._terminalSelector+" ."+n+R+" { color: "+L.css+"; }"+C._terminalSelector+" ."+l+R+" { background-color: "+L.css+"; }"}),k+=this._terminalSelector+" ."+n+a.INVERTED_DEFAULT_COLOR+" { color: "+e.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+l+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=k},S.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},S.prototype._refreshRowElements=function(C,k){for(var L=this._rowElements.length;L<=k;L++){var R=document.createElement("div");this._rowContainer.appendChild(R),this._rowElements.push(R)}for(;this._rowElements.length>k;)this._rowContainer.removeChild(this._rowElements.pop())},S.prototype.onResize=function(C,k){this._refreshRowElements(C,k),this._updateDimensions()},S.prototype.onCharSizeChanged=function(){this._updateDimensions()},S.prototype.onBlur=function(){this._rowContainer.classList.remove(s)},S.prototype.onFocus=function(){this._rowContainer.classList.add(s)},S.prototype.onSelectionChanged=function(C,k,L){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(C,k,L),this.renderRows(0,this._bufferService.rows-1),C&&k){var R=C[1]-this._bufferService.buffer.ydisp,x=k[1]-this._bufferService.buffer.ydisp,E=Math.max(R,0),M=Math.min(x,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||M<0)){var T=document.createDocumentFragment();if(L){var U=C[0]>k[0];T.appendChild(this._createSelectionElement(E,U?k[0]:C[0],U?C[0]:k[0],M-E+1))}else{var q=R===E?C[0]:0,F=E===x?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(E,q,F));var z=M-E-1;if(T.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,z)),E!==M){var N=x===M?k[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(M,0,N))}}this._selectionContainer.appendChild(T)}}},S.prototype._createSelectionElement=function(C,k,L,R){R===void 0&&(R=1);var x=document.createElement("div");return x.style.height=R*this.dimensions.actualCellHeight+"px",x.style.top=C*this.dimensions.actualCellHeight+"px",x.style.left=k*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(L-k)+"px",x},S.prototype.onCursorMove=function(){},S.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},S.prototype.clear=function(){var C,k;try{for(var L=m(this._rowElements),R=L.next();!R.done;R=L.next())R.value.innerText=""}catch(x){C={error:x}}finally{try{R&&!R.done&&(k=L.return)&&k.call(L)}finally{if(C)throw C.error}}},S.prototype.renderRows=function(C,k){for(var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,R=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.rawOptions.cursorBlink,E=C;E<=k;E++){var M=this._rowElements[E];M.innerText="";var T=E+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(T),q=this._optionsService.rawOptions.cursorStyle;M.appendChild(this._rowFactory.createRow(U,T,T===L,q,R,x,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(S.prototype,"_terminalSelector",{get:function(){return"."+i+this._terminalClass},enumerable:!1,configurable:!0}),S.prototype._onLinkHover=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!0)},S.prototype._onLinkLeave=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!1)},S.prototype._setCellUnderline=function(C,k,L,R,x,E){for(;C!==k||L!==R;){var M=this._rowElements[L];if(!M)return;var T=M.children[C];T&&(T.style.textDecoration=E?"underline":"none"),++C>=x&&(C=0,L++)}},f([d(6,h.IInstantiationService),d(7,_.ICharSizeService),d(8,h.IOptionsService),d(9,h.IBufferService)],S)}(o.Disposable);c.DomRenderer=b},3787:function(W,c,w){var p=this&&this.__decorate||function(i,n,l,s){var y,b=arguments.length,g=b<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,l):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,l,s);else for(var S=i.length-1;S>=0;S--)(y=i[S])&&(g=(b<3?y(g):b>3?y(n,l,g):y(n,l))||g);return b>3&&g&&Object.defineProperty(n,l,g),g},u=this&&this.__param||function(i,n){return function(l,s){n(l,s,i)}},f=this&&this.__values||function(i){var n=typeof Symbol=="function"&&Symbol.iterator,l=n&&i[n],s=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRendererRowFactory=c.CURSOR_STYLE_UNDERLINE_CLASS=c.CURSOR_STYLE_BAR_CLASS=c.CURSOR_STYLE_BLOCK_CLASS=c.CURSOR_BLINK_CLASS=c.CURSOR_CLASS=c.STRIKETHROUGH_CLASS=c.UNDERLINE_CLASS=c.ITALIC_CLASS=c.DIM_CLASS=c.BOLD_CLASS=void 0;var d=w(8803),m=w(643),v=w(511),a=w(2585),o=w(8055),_=w(4725),h=w(4269),r=w(1752);c.BOLD_CLASS="xterm-bold",c.DIM_CLASS="xterm-dim",c.ITALIC_CLASS="xterm-italic",c.UNDERLINE_CLASS="xterm-underline",c.STRIKETHROUGH_CLASS="xterm-strikethrough",c.CURSOR_CLASS="xterm-cursor",c.CURSOR_BLINK_CLASS="xterm-cursor-blink",c.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",c.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",c.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var e=function(){function i(n,l,s,y,b,g){this._document=n,this._colors=l,this._characterJoinerService=s,this._optionsService=y,this._coreService=b,this._decorationService=g,this._workCell=new v.CellData,this._columnSelectMode=!1}return i.prototype.setColors=function(n){this._colors=n},i.prototype.onSelectionChanged=function(n,l,s){this._selectionStart=n,this._selectionEnd=l,this._columnSelectMode=s},i.prototype.createRow=function(n,l,s,y,b,g,S,C){for(var k,L,R=this._document.createDocumentFragment(),x=this._characterJoinerService.getJoinedCharacters(l),E=0,M=Math.min(n.length,C)-1;M>=0;M--)if(n.loadCell(M,this._workCell).getCode()!==m.NULL_CELL_CODE||s&&M===b){E=M+1;break}for(M=0;M0&&M===x[0][0]){U=!0;var z=x.shift();F=new h.JoinedCellData(this._workCell,n.translateToString(!0,z[0],z[1]),z[1]-z[0]),q=z[1]-1,T=F.getWidth()}var N=this._document.createElement("span");if(T>1&&(N.style.width=S*T+"px"),U&&(N.style.display="inline",b>=M&&b<=q&&(b=M)),!this._coreService.isCursorHidden&&s&&M===b)switch(N.classList.add(c.CURSOR_CLASS),g&&N.classList.add(c.CURSOR_BLINK_CLASS),y){case"bar":N.classList.add(c.CURSOR_STYLE_BAR_CLASS);break;case"underline":N.classList.add(c.CURSOR_STYLE_UNDERLINE_CLASS);break;default:N.classList.add(c.CURSOR_STYLE_BLOCK_CLASS)}F.isBold()&&N.classList.add(c.BOLD_CLASS),F.isItalic()&&N.classList.add(c.ITALIC_CLASS),F.isDim()&&N.classList.add(c.DIM_CLASS),F.isUnderline()&&N.classList.add(c.UNDERLINE_CLASS),F.isInvisible()?N.textContent=m.WHITESPACE_CELL_CHAR:N.textContent=F.getChars()||m.WHITESPACE_CELL_CHAR,F.isStrikethrough()&&N.classList.add(c.STRIKETHROUGH_CLASS);var A=F.getFgColor(),Y=F.getFgColorMode(),Z=F.getBgColor(),te=F.getBgColorMode(),B=!!F.isInverse();if(B){var ee=A;A=Z,Z=ee;var X=Y;Y=te,te=X}var j=void 0,O=void 0,D=!1;try{for(var H=(k=void 0,f(this._decorationService.getDecorationsAtCell(M,l))),G=H.next();!G.done;G=H.next()){var V=G.value;V.options.layer!=="top"&&D||(V.backgroundColorRGB&&(te=50331648,Z=V.backgroundColorRGB.rgba>>8&16777215,j=V.backgroundColorRGB),V.foregroundColorRGB&&(Y=50331648,A=V.foregroundColorRGB.rgba>>8&16777215,O=V.foregroundColorRGB),D=V.options.layer==="top")}}catch(le){k={error:le}}finally{try{G&&!G.done&&(L=H.return)&&L.call(H)}finally{if(k)throw k.error}}var $=this._isCellInSelection(M,l);D||this._colors.selectionForeground&&$&&(Y=50331648,A=this._colors.selectionForeground.rgba>>8&16777215,O=this._colors.selectionForeground),$&&(j=this._colors.selectionOpaque,D=!0),D&&N.classList.add("xterm-decoration-top");var ie=void 0;switch(te){case 16777216:case 33554432:ie=this._colors.ansi[Z],N.classList.add("xterm-bg-"+Z);break;case 50331648:ie=o.rgba.toColor(Z>>16,Z>>8&255,255&Z),this._addStyle(N,"background-color:#"+t((Z>>>0).toString(16),"0",6));break;default:B?(ie=this._colors.foreground,N.classList.add("xterm-bg-"+d.INVERTED_DEFAULT_COLOR)):ie=this._colors.background}switch(Y){case 16777216:case 33554432:F.isBold()&&A<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(A+=8),this._applyMinimumContrast(N,ie,this._colors.ansi[A],F,j,void 0)||N.classList.add("xterm-fg-"+A);break;case 50331648:var ce=o.rgba.toColor(A>>16&255,A>>8&255,255&A);this._applyMinimumContrast(N,ie,ce,F,j,O)||this._addStyle(N,"color:#"+t(A.toString(16),"0",6));break;default:this._applyMinimumContrast(N,ie,this._colors.foreground,F,j,void 0)||B&&N.classList.add("xterm-fg-"+d.INVERTED_DEFAULT_COLOR)}R.appendChild(N),M=q}}return R},i.prototype._applyMinimumContrast=function(n,l,s,y,b,g){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,r.excludeFromContrastRatioDemands)(y.getCode()))return!1;var S=void 0;return b||g||(S=this._colors.contrastCache.getColor(l.rgba,s.rgba)),S===void 0&&(S=o.color.ensureContrastRatio(b||l,g||s,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((b||l).rgba,(g||s).rgba,S!=null?S:null)),!!S&&(this._addStyle(n,"color:"+S.css),!0)},i.prototype._addStyle=function(n,l){n.setAttribute("style",""+(n.getAttribute("style")||"")+l+";")},i.prototype._isCellInSelection=function(n,l){var s=this._selectionStart,y=this._selectionEnd;return!(!s||!y)&&(this._columnSelectMode?s[0]<=y[0]?n>=s[0]&&l>=s[1]&&n=s[1]&&n>=y[0]&&l<=y[1]:l>s[1]&&l=s[0]&&n=s[0])},p([u(2,_.ICharacterJoinerService),u(3,a.IOptionsService),u(4,a.ICoreService),u(5,a.IDecorationService)],i)}();function t(i,n,l){for(;i.length{Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionModel=void 0;var w=function(){function p(u){this._bufferService=u,this.isSelectAllActive=!1,this.selectionStartLength=0}return p.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(p.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?u%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)-1]:[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[u,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[Math.max(u,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var u},enumerable:!1,configurable:!0}),p.prototype.areSelectionValuesReversed=function(){var u=this.selectionStart,f=this.selectionEnd;return!(!u||!f)&&(u[1]>f[1]||u[1]===f[1]&&u[0]>f[0])},p.prototype.onTrim=function(u){return this.selectionStart&&(this.selectionStart[1]-=u),this.selectionEnd&&(this.selectionEnd[1]-=u),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},p}();c.SelectionModel=w},428:function(W,c,w){var p=this&&this.__decorate||function(a,o,_,h){var r,e=arguments.length,t=e<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,_):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(a,o,_,h);else for(var i=a.length-1;i>=0;i--)(r=a[i])&&(t=(e<3?r(t):e>3?r(o,_,t):r(o,_))||t);return e>3&&t&&Object.defineProperty(o,_,t),t},u=this&&this.__param||function(a,o){return function(_,h){o(_,h,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharSizeService=void 0;var f=w(2585),d=w(8460),m=function(){function a(o,_,h){this._optionsService=h,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new v(o,_,this._optionsService)}return Object.defineProperty(a.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),a.prototype.measure=function(){var o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},p([u(2,f.IOptionsService)],a)}();c.CharSizeService=m;var v=function(){function a(o,_,h){this._document=o,this._parentElement=_,this._optionsService=h,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return a.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},a}()},4269:function(W,c,w){var p,u=this&&this.__extends||(p=function(r,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},p(r,e)},function(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}p(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(r,e,t,i){var n,l=arguments.length,s=l<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var y=r.length-1;y>=0;y--)(n=r[y])&&(s=(l<3?n(s):l>3?n(e,t,s):n(e,t))||s);return l>3&&s&&Object.defineProperty(e,t,s),s},d=this&&this.__param||function(r,e){return function(t,i){e(t,i,r)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharacterJoinerService=c.JoinedCellData=void 0;var m=w(3734),v=w(643),a=w(511),o=w(2585),_=function(r){function e(t,i,n){var l=r.call(this)||this;return l.content=0,l.combinedData="",l.fg=t.fg,l.bg=t.bg,l.combinedData=i,l._width=n,l}return u(e,r),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(t){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(m.AttributeData);c.JoinedCellData=_;var h=function(){function r(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}return r.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},r.prototype.deregister=function(e){for(var t=0;t1)for(var C=this._getJoinedRanges(n,y,s,t,l),k=0;k1)for(C=this._getJoinedRanges(n,y,s,t,l),k=0;k{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreBrowserService=void 0;var w=function(){function p(u){this._textarea=u}return Object.defineProperty(p.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),p}();c.CoreBrowserService=w},8934:function(W,c,w){var p=this&&this.__decorate||function(v,a,o,_){var h,r=arguments.length,e=r<3?a:_===null?_=Object.getOwnPropertyDescriptor(a,o):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,a,o,_);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(r<3?h(e):r>3?h(a,o,e):h(a,o))||e);return r>3&&e&&Object.defineProperty(a,o,e),e},u=this&&this.__param||function(v,a){return function(o,_){a(o,_,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseService=void 0;var f=w(4725),d=w(9806),m=function(){function v(a,o){this._renderService=a,this._charSizeService=o}return v.prototype.getCoords=function(a,o,_,h,r){return(0,d.getCoords)(window,a,o,_,h,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,r)},v.prototype.getRawByteCoords=function(a,o,_,h){var r=this.getCoords(a,o,_,h);return(0,d.getRawByteCoords)(r)},p([u(0,f.IRenderService),u(1,f.ICharSizeService)],v)}();c.MouseService=m},3230:function(W,c,w){var p,u=this&&this.__extends||(p=function(t,i){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(n[s]=l[s])},p(t,i)},function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}p(t,i),t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}),f=this&&this.__decorate||function(t,i,n,l){var s,y=arguments.length,b=y<3?i:l===null?l=Object.getOwnPropertyDescriptor(i,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(t,i,n,l);else for(var g=t.length-1;g>=0;g--)(s=t[g])&&(b=(y<3?s(b):y>3?s(i,n,b):s(i,n))||b);return y>3&&b&&Object.defineProperty(i,n,b),b},d=this&&this.__param||function(t,i){return function(n,l){i(n,l,t)}};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderService=void 0;var m=w(6193),v=w(8460),a=w(844),o=w(5596),_=w(3656),h=w(2585),r=w(4725),e=function(t){function i(n,l,s,y,b,g,S){var C=t.call(this)||this;if(C._renderer=n,C._rowCount=l,C._charSizeService=b,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new v.EventEmitter,C._onRenderedViewportChange=new v.EventEmitter,C._onRender=new v.EventEmitter,C._onRefreshRequest=new v.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new m.RenderDebouncer(function(L,R){return C._renderRows(L,R)}),C.register(C._renderDebouncer),C._screenDprMonitor=new o.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(S.onResize(function(){return C._fullRefresh()})),C.register(S.buffers.onBufferActivate(function(){var L;return(L=C._renderer)===null||L===void 0?void 0:L.clear()})),C.register(y.onOptionChange(function(){return C._handleOptionsChanged()})),C.register(C._charSizeService.onCharSizeChange(function(){return C.onCharSizeChanged()})),C.register(g.onDecorationRegistered(function(){return C._fullRefresh()})),C.register(g.onDecorationRemoved(function(){return C._fullRefresh()})),C._renderer.onRequestRedraw(function(L){return C.refreshRows(L.start,L.end,!0)}),C.register((0,_.addDisposableDomListener)(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var k=new IntersectionObserver(function(L){return C._onIntersectionChange(L[L.length-1])},{threshold:0});k.observe(s),C.register({dispose:function(){return k.disconnect()}})}return C}return u(i,t),Object.defineProperty(i.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),i.prototype._onIntersectionChange=function(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},i.prototype.refreshRows=function(n,l,s){s===void 0&&(s=!1),this._isPaused?this._needsFullRefresh=!0:(s||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,l,this._rowCount))},i.prototype._renderRows=function(n,l){this._renderer.renderRows(n,l),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:l}),this._onRender.fire({start:n,end:l}),this._isNextRenderRedrawOnly=!0},i.prototype.resize=function(n,l){this._rowCount=l,this._fireOnCanvasResize()},i.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},i.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},i.prototype.dispose=function(){t.prototype.dispose.call(this)},i.prototype.setRenderer=function(n){var l=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRedraw(function(s){return l.refreshRows(s.start,s.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},i.prototype.addRefreshCallback=function(n){return this._renderDebouncer.addRefreshCallback(n)},i.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},i.prototype.clearTextureAtlas=function(){var n,l;(l=(n=this._renderer)===null||n===void 0?void 0:n.clearTextureAtlas)===null||l===void 0||l.call(n),this._fullRefresh()},i.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},i.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},i.prototype.onResize=function(n,l){this._renderer.onResize(n,l),this._fullRefresh()},i.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},i.prototype.onBlur=function(){this._renderer.onBlur()},i.prototype.onFocus=function(){this._renderer.onFocus()},i.prototype.onSelectionChanged=function(n,l,s){this._selectionState.start=n,this._selectionState.end=l,this._selectionState.columnSelectMode=s,this._renderer.onSelectionChanged(n,l,s)},i.prototype.onCursorMove=function(){this._renderer.onCursorMove()},i.prototype.clear=function(){this._renderer.clear()},f([d(3,h.IOptionsService),d(4,r.ICharSizeService),d(5,h.IDecorationService),d(6,h.IBufferService)],i)}(a.Disposable);c.RenderService=e},9312:function(W,c,w){var p,u=this&&this.__extends||(p=function(y,b){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,S){g.__proto__=S}||function(g,S){for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&(g[C]=S[C])},p(y,b)},function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function g(){this.constructor=y}p(y,b),y.prototype=b===null?Object.create(b):(g.prototype=b.prototype,new g)}),f=this&&this.__decorate||function(y,b,g,S){var C,k=arguments.length,L=k<3?b:S===null?S=Object.getOwnPropertyDescriptor(b,g):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(y,b,g,S);else for(var R=y.length-1;R>=0;R--)(C=y[R])&&(L=(k<3?C(L):k>3?C(b,g,L):C(b,g))||L);return k>3&&L&&Object.defineProperty(b,g,L),L},d=this&&this.__param||function(y,b){return function(g,S){b(g,S,y)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionService=void 0;var m=w(6114),v=w(456),a=w(511),o=w(8460),_=w(4725),h=w(2585),r=w(9806),e=w(9504),t=w(844),i=w(4841),n=String.fromCharCode(160),l=new RegExp(n,"g"),s=function(y){function b(g,S,C,k,L,R,x,E){var M=y.call(this)||this;return M._element=g,M._screenElement=S,M._linkifier=C,M._bufferService=k,M._coreService=L,M._mouseService=R,M._optionsService=x,M._renderService=E,M._dragScrollAmount=0,M._enabled=!0,M._workCell=new a.CellData,M._mouseDownTimeStamp=0,M._oldHasSelection=!1,M._oldSelectionStart=void 0,M._oldSelectionEnd=void 0,M._onLinuxMouseSelection=M.register(new o.EventEmitter),M._onRedrawRequest=M.register(new o.EventEmitter),M._onSelectionChange=M.register(new o.EventEmitter),M._onRequestScrollLines=M.register(new o.EventEmitter),M._mouseMoveListener=function(T){return M._onMouseMove(T)},M._mouseUpListener=function(T){return M._onMouseUp(T)},M._coreService.onUserInput(function(){M.hasSelection&&M.clearSelection()}),M._trimListener=M._bufferService.buffer.lines.onTrim(function(T){return M._onTrim(T)}),M.register(M._bufferService.buffers.onBufferActivate(function(T){return M._onBufferActivate(T)})),M.enable(),M._model=new v.SelectionModel(M._bufferService),M._activeSelectionMode=0,M}return u(b,y),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;return!(!g||!S||g[0]===S[0]&&g[1]===S[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;if(!g||!S)return"";var C=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(g[0]===S[0])return"";for(var L=g[0]S[1]&&g[1]=S[0]&&g[0]=S[0]},b.prototype._selectWordAtCursor=function(g,S){var C,k,L=(k=(C=this._linkifier.currentLink)===null||C===void 0?void 0:C.link)===null||k===void 0?void 0:k.range;if(L)return this._model.selectionStart=[L.start.x-1,L.start.y-1],this._model.selectionStartLength=(0,i.getRangeLength)(L,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var R=this._getMouseBufferCoords(g);return!!R&&(this._selectWordAt(R,S),this._model.selectionEnd=void 0,!0)},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(g,S){this._model.clearSelection(),g=Math.max(g,0),S=Math.min(S,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,g],this._model.selectionEnd=[this._bufferService.cols,S],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(g){this._model.onTrim(g)&&this.refresh()},b.prototype._getMouseBufferCoords=function(g){var S=this._mouseService.getCoords(g,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(S)return S[0]--,S[1]--,S[1]+=this._bufferService.buffer.ydisp,S},b.prototype._getMouseEventScrollAmount=function(g){var S=(0,r.getCoordsRelativeToElement)(window,g,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return S>=0&&S<=C?0:(S>C&&(S-=C),S=Math.min(Math.max(S,-50),50),(S/=50)/Math.abs(S)+Math.round(14*S))},b.prototype.shouldForceSelection=function(g){return m.isMac?g.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:g.shiftKey},b.prototype.onMouseDown=function(g){if(this._mouseDownTimeStamp=g.timeStamp,(g.button!==2||!this.hasSelection)&&g.button===0){if(!this._enabled){if(!this.shouldForceSelection(g))return;g.stopPropagation()}g.preventDefault(),this._dragScrollAmount=0,this._enabled&&g.shiftKey?this._onIncrementalClick(g):g.detail===1?this._onSingleClick(g):g.detail===2?this._onDoubleClick(g):g.detail===3&&this._onTripleClick(g),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var g=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return g._dragScroll()},50)},b.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},b.prototype._onIncrementalClick=function(g){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(g))},b.prototype._onSingleClick=function(g){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(g)?3:0,this._model.selectionStart=this._getMouseBufferCoords(g),this._model.selectionStart){this._model.selectionEnd=void 0;var S=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);S&&S.length!==this._model.selectionStart[0]&&S.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(g){this._selectWordAtCursor(g,!0)&&(this._activeSelectionMode=1)},b.prototype._onTripleClick=function(g){var S=this._getMouseBufferCoords(g);S&&(this._activeSelectionMode=2,this._selectLineAt(S[1]))},b.prototype.shouldColumnSelect=function(g){return g.altKey&&!(m.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(g){if(g.stopImmediatePropagation(),this._model.selectionStart){var S=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(g),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(g.ydisp+this._bufferService.rows,g.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=g.ydisp),this.refresh()}},b.prototype._onMouseUp=function(g){var S=g.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&S<500&&g.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(g,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var k=(0,e.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(k,!0)}}}else this._fireEventIfSelectionChanged()},b.prototype._fireEventIfSelectionChanged=function(){var g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd,C=!(!g||!S||g[0]===S[0]&&g[1]===S[1]);C?g&&S&&(this._oldSelectionStart&&this._oldSelectionEnd&&g[0]===this._oldSelectionStart[0]&&g[1]===this._oldSelectionStart[1]&&S[0]===this._oldSelectionEnd[0]&&S[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(g,S,C)):this._oldHasSelection&&this._fireOnSelectionChange(g,S,C)},b.prototype._fireOnSelectionChange=function(g,S,C){this._oldSelectionStart=g,this._oldSelectionEnd=S,this._oldHasSelection=C,this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(g){var S=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=g.activeBuffer.lines.onTrim(function(C){return S._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(g,S){for(var C=S[0],k=0;S[0]>=k;k++){var L=g.loadCell(k,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:L>1&&S[0]!==k&&(C+=L-1)}return C},b.prototype.setSelection=function(g,S,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[g,S],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()},b.prototype.rightClickSelect=function(g){this._isClickInSelection(g)||(this._selectWordAtCursor(g,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},b.prototype._getWordAt=function(g,S,C,k){if(C===void 0&&(C=!0),k===void 0&&(k=!0),!(g[0]>=this._bufferService.cols)){var L=this._bufferService.buffer,R=L.lines.get(g[1]);if(R){var x=L.translateBufferLineToString(g[1],!1),E=this._convertViewportColToCharacterIndex(R,g),M=E,T=g[0]-E,U=0,q=0,F=0,z=0;if(x.charAt(E)===" "){for(;E>0&&x.charAt(E-1)===" ";)E--;for(;M1&&(z+=Y-1,M+=Y-1);N>0&&E>0&&!this._isCharWordSeparator(R.loadCell(N-1,this._workCell));){R.loadCell(N-1,this._workCell);var Z=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,N--):Z>1&&(F+=Z-1,E-=Z-1),E--,N--}for(;A1&&(z+=te-1,M+=te-1),M++,A++}}M++;var B=E+T-U+F,ee=Math.min(this._bufferService.cols,M-E+U+q-F-z);if(S||x.slice(E,M).trim()!==""){if(C&&B===0&&R.getCodePoint(0)!==32){var X=L.lines.get(g[1]-1);if(X&&R.isWrapped&&X.getCodePoint(this._bufferService.cols-1)!==32){var j=this._getWordAt([this._bufferService.cols-1,g[1]-1],!1,!0,!1);if(j){var O=this._bufferService.cols-j.start;B-=O,ee+=O}}}if(k&&B+ee===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){var D=L.lines.get(g[1]+1);if((D==null?void 0:D.isWrapped)&&D.getCodePoint(0)!==32){var H=this._getWordAt([0,g[1]+1],!1,!1,!0);H&&(ee+=H.length)}}return{start:B,length:ee}}}}},b.prototype._selectWordAt=function(g,S){var C=this._getWordAt(g,S);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,g[1]--;this._model.selectionStart=[C.start,g[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(g){var S=this._getWordAt(g,!0);if(S){for(var C=g[1];S.start<0;)S.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;S.start+S.length>this._bufferService.cols;)S.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?S.start:S.start+S.length,C]}},b.prototype._isCharWordSeparator=function(g){return g.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(g.getChars())>=0},b.prototype._selectLineAt=function(g){var S=this._bufferService.buffer.getWrappedRangeForLine(g),C={start:{x:0,y:S.first},end:{x:this._bufferService.cols-1,y:S.last}};this._model.selectionStart=[0,S.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,i.getRangeLength)(C,this._bufferService.cols)},f([d(3,h.IBufferService),d(4,h.ICoreService),d(5,_.IMouseService),d(6,h.IOptionsService),d(7,_.IRenderService)],b)}(t.Disposable);c.SelectionService=s},4725:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ICharacterJoinerService=c.ISoundService=c.ISelectionService=c.IRenderService=c.IMouseService=c.ICoreBrowserService=c.ICharSizeService=void 0;var p=w(8343);c.ICharSizeService=(0,p.createDecorator)("CharSizeService"),c.ICoreBrowserService=(0,p.createDecorator)("CoreBrowserService"),c.IMouseService=(0,p.createDecorator)("MouseService"),c.IRenderService=(0,p.createDecorator)("RenderService"),c.ISelectionService=(0,p.createDecorator)("SelectionService"),c.ISoundService=(0,p.createDecorator)("SoundService"),c.ICharacterJoinerService=(0,p.createDecorator)("CharacterJoinerService")},357:function(W,c,w){var p=this&&this.__decorate||function(m,v,a,o){var _,h=arguments.length,r=h<3?v:o===null?o=Object.getOwnPropertyDescriptor(v,a):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(m,v,a,o);else for(var e=m.length-1;e>=0;e--)(_=m[e])&&(r=(h<3?_(r):h>3?_(v,a,r):_(v,a))||r);return h>3&&r&&Object.defineProperty(v,a,r),r},u=this&&this.__param||function(m,v){return function(a,o){v(a,o,m)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SoundService=void 0;var f=w(2585),d=function(){function m(v){this._optionsService=v}return Object.defineProperty(m,"audioContext",{get:function(){if(!m._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;m._audioContext=new v}return m._audioContext},enumerable:!1,configurable:!0}),m.prototype.playBellSound=function(){var v=m.audioContext;if(v){var a=v.createBufferSource();v.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(o){a.buffer=o,a.connect(v.destination),a.start(0)})}},m.prototype._base64ToArrayBuffer=function(v){for(var a=window.atob(v),o=a.length,_=new Uint8Array(o),h=0;h{Object.defineProperty(c,"__esModule",{value:!0}),c.CircularList=void 0;var p=w(8460),u=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new p.EventEmitter,this.onInsertEmitter=new p.EventEmitter,this.onTrimEmitter=new p.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(f.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"maxLength",{get:function(){return this._maxLength},set:function(d){if(this._maxLength!==d){for(var m=new Array(d),v=0;vthis._length)for(var m=this._length;m=d;o--)this._array[this._getCyclicIndex(o+v.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o