diff --git a/magic-editor/src/console/dist/assets/JetBrainsMono-Regular.bceff071.woff2 b/magic-editor/src/console/dist/assets/JetBrainsMono-Regular.bceff071.woff2 new file mode 100644 index 00000000..8c862e33 Binary files /dev/null and b/magic-editor/src/console/dist/assets/JetBrainsMono-Regular.bceff071.woff2 differ diff --git a/magic-editor/src/console/dist/assets/app.abe91525.js b/magic-editor/src/console/dist/assets/app.abe91525.js new file mode 100644 index 00000000..8b084257 --- /dev/null +++ b/magic-editor/src/console/dist/assets/app.abe91525.js @@ -0,0 +1,50 @@ +var Bi=Object.defineProperty,Fi=Object.defineProperties;var ji=Object.getOwnPropertyDescriptors;var jn=Object.getOwnPropertySymbols;var Gi=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable;var en=(e,t,n)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_e=(e,t)=>{for(var n in t||(t={}))Gi.call(t,n)&&en(e,n,t[n]);if(jn)for(var n of jn(t))Hi.call(t,n)&&en(e,n,t[n]);return e},He=(e,t)=>Fi(e,ji(t));var ht=(e,t,n)=>(en(e,typeof t!="symbol"?t+"":t,n),n);import{r as T,o as v,c as U,u as k,a as L,F as Q,b as ce,n as de,w as ve,d as Z,e as R,t as j,f as $e,g as P,h as x,i as d,j as tn,k as Vi,p as Ze,l as ft,m as Yi,q as et,s as Pe,v as Ye,x as gt,y as ae,z as X,A as tt,B as nt,C as pe,D as oe,T as Gn,E as mt,G as we,H as Ki,I as nn,J as Wi,K as an,L as Hn,M as rt,N as qi,O as At,P as ke,Q as zi}from"./vue.7304e5c5.js";import{l as Vn,e as Ke,a as W,R as it,W as Xi,b as Ji,C as Yn,K as lt,c as vt,d as Qi,f as sn,T as Zi,t as ea}from"./vendor.5f04ef2d.js";import{a as ta}from"./axios.23e7b955.js";const na={setup(e){let t={};try{parent&&parent.MAGIC_EDITOR_CONFIG&&(t=_e({},parent.MAGIC_EDITOR_CONFIG))}catch{}return window.MAGIC_EDITOR_CONFIG&&(t=_e(_e({},t),window.MAGIC_EDITOR_CONFIG)),t.baseURL="./",t.serverURL="./",t.inJar=!0,(n,i)=>{const a=T("magic-editor");return v(),U(a,{config:k(t)},null,8,["config"])}}};const ia="modulepreload",Kn={},aa="./",M=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${aa}${i}`,i in Kn)return;Kn[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const o=document.createElement("link");if(o.rel=a?"stylesheet":ia,a||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),a)return new Promise((r,l)=>{o.addEventListener("load",r),o.addEventListener("error",l)})})).then(()=>t())};var H=(e,t)=>{for(const[n,i]of t)e[n]=i;return e};const sa={props:{menus:Array,onDestory:Function,position:Object},data(){return{style:{left:this.position.x+"px",top:this.position.y+"px"}}},mounted(){document.addEventListener("mouseup",this.onMouseup);const e=this.position.x+this.$root.$el.offsetWidth,t=document.querySelector(".magic-editor").getBoundingClientRect();t.x+t.widthe.icon)}}},oa=["onMouseup"],ra={key:0,class:"magic-context-menu-icon"};function la(e,t,n,i,a,s){const o=T("magic-icon");return v(),L("ul",{class:"magic-context-menu none-select",style:$e(a.style)},[(v(!0),L(Q,null,ce(n.menus,(r,l)=>(v(),L("li",{key:l,class:de({divided:r.divided}),onMouseup:ve(()=>{s.onMouseup(),r.onClick&&r.onClick()},["stop"])},[s.hasIcon?(v(),L("span",ra,[r.icon?(v(),U(o,{key:0,icon:r.icon,size:"12px"},null,8,["icon"])):Z("",!0)])):Z("",!0),R("label",null,j(r.label),1)],42,oa))),128))],4)}var Wn=H(sa,[["render",la],["__scopeId","data-v-1ef3ef60"]]),ua=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Wn});const ca={props:{title:{type:String,default:"\u63D0\u793A"},ok:{type:String,default:"\u786E\u5B9A"},message:{type:String,required:!0},onClose:{type:Function,default:()=>{}}},setup(e){const t=P(!0);return(n,i)=>{const a=T("magic-button"),s=T("magic-button-group"),o=T("magic-dialog");return v(),U(o,{value:t.value,"onUpdate:value":i[1]||(i[1]=r=>t.value=r),title:e.title,ref:(r,l)=>{l.dialog=r},onClose:i[2]||(i[2]=r=>e.onClose())},{default:x(()=>[R("pre",null,j(e.message),1),d(s,{align:"center",style:{padding:"5px 0"}},{default:x(()=>[d(a,{value:e.ok,type:"active",onOnClick:i[0]||(i[0]=r=>n.$refs.dialog.close())},null,8,["value"])]),_:1})]),_:1},8,["value","title"])}}};var qn=H(ca,[["__scopeId","data-v-a540702c"]]),_a=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:qn});const pa=["innerHTML"],da={props:{title:{type:String,default:"\u63D0\u793A"},ok:{type:String,default:"\u786E\u5B9A"},cancel:{type:String,default:"\u53D6\u6D88"},message:{type:String,required:!0},success:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}}},setup(e){const t=P(!0);return(n,i)=>{const a=T("magic-button"),s=T("magic-button-group"),o=T("magic-dialog");return v(),U(o,{value:t.value,"onUpdate:value":i[2]||(i[2]=r=>t.value=r),title:e.title,ref:(r,l)=>{l.dialog=r},onClose:i[3]||(i[3]=r=>e.onClose())},{default:x(()=>[R("pre",{innerHTML:e.message},null,8,pa),d(s,{align:"right",style:{padding:"5px 0"}},{default:x(()=>[d(a,{value:e.ok,type:"active",onOnClick:i[0]||(i[0]=()=>{e.success(),n.$refs.dialog.close()})},null,8,["value"]),d(a,{value:e.cancel,onOnClick:i[1]||(i[1]=r=>n.$refs.dialog.close())},null,8,["value"])]),_:1})]),_:1},8,["value","title"])}}};var zn=H(da,[["__scopeId","data-v-bf9f8d80"]]),ha=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zn});let Xn=null;const Jn=(e,t)=>{const n=document.createElement("div");document.querySelector(".magic-editor .magic-mounts").appendChild(n);const i=tn(e,He(_e({},t),{onClose:()=>n.remove()}));Xn(i),i.mount(n)},me={alert:(e,t,n)=>Jn(qn,{message:e,title:t,ok:n}),confirm:(e,t,n)=>Jn(zn,{title:e,message:t,success:n})},Qn=(e,t)=>{Xn=t,Object.keys(me).forEach(n=>e.config.globalProperties[`$${n}`]=me[n])};var fa=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",install:Qn,default:me});const ga="magic-editor",ma="2.0.0",va={dev:"vite",build:"vite build"},Ea={axios:"^0.24.0","monaco-editor":"0.29.1",qs:"^6.10.1",vue:"^3.2.21"},Ta={"@vitejs/plugin-vue":"^1.9.4",vite:"^2.6.13","@vue/compiler-sfc":"^3.2.21"};var ba={name:ga,version:ma,scripts:va,dependencies:Ea,devDependencies:Ta};let Zn=ba.version,Sa="V"+Zn.replace(/\./g,"_");const D={BASE_URL:"",WEBSOCKET_SERVER:"",SERVER_URL:"",AUTO_SAVE:!0,user:null,DECORATION_TIMEOUT:1e4,CHECK_UPDATE:!0,BLOCK_CLOSE:!0,MAGIC_API_VERSION_TEXT:Zn,MAGIC_API_VERSION:Sa,API_DEFAULT_METHOD:"GET",CLIENT_ID:"none",HEADER_REQUEST_CLIENT_ID:"Magic-Request-Client-Id",HEADER_REQUEST_SCRIPT_ID:"Magic-Request-Script-Id",HEADER_REQUEST_BREAKPOINTS:"Magic-Request-Breakpoints",HEADER_RESPONSE_MAGIC_CONTENT_TYPE:"ma-content-type",HEADER_APPLICATION_STREAM:"application/octet-stream",HEADER_CONTENT_DISPOSITION:"ma-content-disposition",HEADER_MAGIC_TOKEN:"magic-token",HEADER_MAGIC_TOKEN_VALUE:"unauthorization",IGNORE_VERSION:"ignore-version",RECENT_OPENED_TAB:"recent_opened_tab",RECENT_OPENED:"recent_opened",RESPONSE_CODE_DEBUG:1e3,RESPONSE_CODE_SCRIPT_ERROR:-1e3,RESPONSE_NO_PERMISSION:-10,DEFAULT_EXPAND:!0,LOGINED:!1,LOG_MAX_ROWS:1/0,LOCKED:"1",UNLOCK:"0",STORE:{theme:"theme",token:"token"},GLOBAL:{parameters:[],headers:[]},THEME:"default",JDBC_DRIVERS:["com.mysql.jdbc.Driver","com.mysql.cj.jdbc.Driver","oracle.jdbc.driver.OracleDriver","org.postgresql.Driver","com.microsoft.sqlserver.jdbc.SQLServerDriver","com.ibm.db2.jcc.DB2Driver"],DATASOURCE_TYPES:["com.zaxxer.hikari.HikariDataSource","com.alibaba.druid.pool.DruidDataSource","org.apache.tomcat.jdbc.pool.DataSource","org.apache.commons.dbcp2.BasicDataSource"],OPTIONS:[],EDITOR_FONT_FAMILY:'JetBrainsMono, Consolas, "Courier New",monospace, \u5FAE\u8F6F\u96C5\u9ED1',EDITOR_FONT_SIZE:14,VALIDATE_TYPES:[{value:"pass",text:"\u4E0D\u9A8C\u8BC1"},{value:"expression",text:"\u8868\u8FBE\u5F0F\u9A8C\u8BC1"},{value:"pattern",text:"\u6B63\u5219\u9A8C\u8BC1"}],DEFAULT_VALIDATE_TYPE:"pass",REQUEST_PARAMETER_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"},{value:"MultipartFile",text:"MultipartFile"},{value:"MultipartFiles",text:"MultipartFiles"}],GLOBAL_PARAMETER_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"}],DEFAULT_REQUEST_PARAMETER_TYPE:"String",REQUEST_SIMPLE_TYPES:[{value:"String",text:"String"},{value:"Boolean",text:"Boolean"},{value:"Integer",text:"Integer"},{value:"Date",text:"Date"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"}],DEFAULT_REQUEST_SIMPLE_TYPE:"String",REQUEST_METHODS:[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"},{value:"HEAD",text:"HEAD"},{value:"PATCH",text:"PATCH"}],DEFAULT_REQUEST_METHOD:"GET",FUNCTION_RETURN_TYPES:[{value:"java.lang.Number",text:"\u6570\u503C"},{value:"java.lang.String",text:"\u5B57\u7B26\u4E32"},{value:"java.util.Collection",text:"\u96C6\u5408"},{value:"java.util.Map",text:"Map"},{value:"java.lang.Object",text:"Object"}],BODY_DATA_TYPES:[{value:"String",text:"String"},{value:"Integer",text:"Integer"},{value:"Double",text:"Double"},{value:"Long",text:"Long"},{value:"Short",text:"Short"},{value:"Float",text:"Float"},{value:"Byte",text:"Byte"},{value:"Boolean",text:"Boolean"},{value:"Object",text:"Object"},{value:"Array",text:"Array"}],DEFAULT_FUNCTION_RETURN_TYPE:"java.lang.Object",config:{}},ei={};Object.entries({"./components/magic-editor.vue":()=>M(()=>Promise.resolve().then(function(){return no}),void 0),"./components/common/magic-context-menu.vue":()=>M(()=>Promise.resolve().then(function(){return ua}),void 0),"./components/common/magic-empty.vue":()=>M(()=>Promise.resolve().then(function(){return oo}),void 0),"./components/common/magic-loading.vue":()=>M(()=>Promise.resolve().then(function(){return co}),void 0),"./components/common/magic-monaco-diff-editor.vue":()=>M(()=>Promise.resolve().then(function(){return go}),void 0),"./components/common/magic-monaco-editor.vue":()=>M(()=>Promise.resolve().then(function(){return bo}),void 0),"./components/common/magic-resizer.vue":()=>M(()=>Promise.resolve().then(function(){return Ao}),void 0),"./components/panel/magic-cron-info.vue":()=>M(()=>Promise.resolve().then(function(){return Io}),void 0),"./components/panel/magic-function-info.vue":()=>M(()=>Promise.resolve().then(function(){return ko}),void 0),"./components/panel/magic-websocket-info.vue":()=>M(()=>Promise.resolve().then(function(){return $o}),void 0),"./components/common/data/magic-navbar-item.vue":()=>M(()=>Promise.resolve().then(function(){return Fo}),void 0),"./components/common/data/magic-navbar.css":()=>M(()=>Promise.resolve().then(function(){return Go}),void 0),"./components/common/data/magic-navbar.js":()=>M(()=>Promise.resolve().then(function(){return Ko}),void 0),"./components/common/data/magic-tab.css":()=>M(()=>Promise.resolve().then(function(){return qo}),void 0),"./components/common/data/magic-tab.js":()=>M(()=>Promise.resolve().then(function(){return Xo}),void 0),"./components/common/data/magic-table-column.vue":()=>M(()=>Promise.resolve().then(function(){return Qo}),void 0),"./components/common/data/magic-table.css":()=>M(()=>Promise.resolve().then(function(){return er}),void 0),"./components/common/data/magic-table.js":()=>M(()=>Promise.resolve().then(function(){return nr}),void 0),"./components/common/data/magic-tree.css":()=>M(()=>Promise.resolve().then(function(){return ar}),void 0),"./components/common/data/magic-tree.js":()=>M(()=>Promise.resolve().then(function(){return or}),void 0),"./components/common/dialog/magic-alert.vue":()=>M(()=>Promise.resolve().then(function(){return _a}),void 0),"./components/common/dialog/magic-confirm.vue":()=>M(()=>Promise.resolve().then(function(){return ha}),void 0),"./components/common/dialog/magic-dialog.vue":()=>M(()=>Promise.resolve().then(function(){return cr}),void 0),"./components/common/dialog/magic-modal.js":()=>M(()=>Promise.resolve().then(function(){return fa}),void 0),"./components/common/dialog/magic-notify.vue":()=>M(()=>Promise.resolve().then(function(){return mr}),void 0),"./components/common/form/magic-button-group.vue":()=>M(()=>Promise.resolve().then(function(){return Tr}),void 0),"./components/common/form/magic-button.vue":()=>M(()=>Promise.resolve().then(function(){return yr}),void 0),"./components/common/form/magic-checkbox.vue":()=>M(()=>Promise.resolve().then(function(){return Ir}),void 0),"./components/common/form/magic-file.vue":()=>M(()=>Promise.resolve().then(function(){return Pr}),void 0),"./components/common/form/magic-input.vue":()=>M(()=>Promise.resolve().then(function(){return $r}),void 0),"./components/common/form/magic-select.vue":()=>M(()=>Promise.resolve().then(function(){return Gr}),void 0),"./components/common/form/magic-textarea.vue":()=>M(()=>Promise.resolve().then(function(){return Kr}),void 0),"./components/common/icon/magic-avatar-group.vue":()=>M(()=>Promise.resolve().then(function(){return zr}),void 0),"./components/common/icon/magic-avatar.vue":()=>M(()=>Promise.resolve().then(function(){return Zr}),void 0),"./components/common/icon/magic-icon.vue":()=>M(()=>Promise.resolve().then(function(){return Vo}),void 0),"./components/common/icon/magic-text-icon.vue":()=>M(()=>Promise.resolve().then(function(){return il}),void 0),"./components/panel/api/magic-api-body.vue":()=>M(()=>Promise.resolve().then(function(){return ol}),void 0),"./components/panel/api/magic-api-description.vue":()=>M(()=>Promise.resolve().then(function(){return ll}),void 0),"./components/panel/api/magic-api-group.vue":()=>M(()=>Promise.resolve().then(function(){return hl}),void 0),"./components/panel/api/magic-api-header.vue":()=>M(()=>Promise.resolve().then(function(){return ml}),void 0),"./components/panel/api/magic-api-info.vue":()=>M(()=>Promise.resolve().then(function(){return Ol}),void 0),"./components/panel/api/magic-api-option.vue":()=>M(()=>Promise.resolve().then(function(){return Il}),void 0),"./components/panel/api/magic-api-parameter.vue":()=>M(()=>Promise.resolve().then(function(){return Ll}),void 0),"./components/panel/api/magic-api-path.vue":()=>M(()=>Promise.resolve().then(function(){return wl}),void 0),"./components/panel/api/magic-api-request-body.vue":()=>M(()=>Promise.resolve().then(function(){return Dl}),void 0),"./components/panel/api/magic-api-request-structure.vue":()=>M(()=>Promise.resolve().then(function(){return jl}),void 0),"./components/panel/api/magic-api-response-body.vue":()=>M(()=>Promise.resolve().then(function(){return Yl}),void 0),"./components/panel/api/magic-api-response-header.vue":()=>M(()=>Promise.resolve().then(function(){return ql}),void 0),"./components/panel/api/magic-api-response-structure.vue":()=>M(()=>Promise.resolve().then(function(){return eu}),void 0),"./components/panel/api/magic-api-response.vue":()=>M(()=>Promise.resolve().then(function(){return au}),void 0),"./components/panel/api/magic-global-header.vue":()=>M(()=>Promise.resolve().then(function(){return ru}),void 0),"./components/panel/api/magic-global-parameter.vue":()=>M(()=>Promise.resolve().then(function(){return cu}),void 0),"./components/panel/api/magic-global.vue":()=>M(()=>Promise.resolve().then(function(){return hu}),void 0),"./components/panel/common/magic-panel-common-toolbar.vue":()=>M(()=>Promise.resolve().then(function(){return gu}),void 0),"./components/panel/common/magic-panel-toolbar.vue":()=>M(()=>Promise.resolve().then(function(){return bu}),void 0),"./components/panel/common/magic-resource-choose.vue":()=>M(()=>Promise.resolve().then(function(){return Iu}),void 0),"./components/panel/datasource/magic-datasource-datasource.vue":()=>M(()=>Promise.resolve().then(function(){return Wu}),void 0),"./components/panel/footer/magic-backup.vue":()=>M(()=>Promise.resolve().then(function(){return tc}),void 0),"./components/panel/footer/magic-debug.vue":()=>M(()=>Promise.resolve().then(function(){return Ic}),void 0),"./components/panel/footer/magic-event.vue":()=>M(()=>Promise.resolve().then(function(){return Pc}),void 0),"./components/panel/footer/magic-log.vue":()=>M(()=>Promise.resolve().then(function(){return $c}),void 0),"./components/panel/footer/magic-online.vue":()=>M(()=>Promise.resolve().then(function(){return Fc}),void 0),"./components/panel/footer/magic-status-bar.vue":()=>M(()=>Promise.resolve().then(function(){return Kc}),void 0),"./components/panel/footer/magic-todo.vue":()=>M(()=>Promise.resolve().then(function(){return Qc}),void 0),"./components/panel/footer/magic-toolbar.vue":()=>M(()=>Promise.resolve().then(function(){return a_}),void 0),"./components/panel/function/magic-function-parameter.vue":()=>M(()=>Promise.resolve().then(function(){return r_}),void 0),"./components/panel/header/magic-export.vue":()=>M(()=>Promise.resolve().then(function(){return c_}),void 0),"./components/panel/header/magic-header.vue":()=>M(()=>Promise.resolve().then(function(){return b_}),void 0),"./components/panel/header/magic-push.vue":()=>M(()=>Promise.resolve().then(function(){return I_}),void 0),"./components/panel/header/magic-search.vue":()=>M(()=>Promise.resolve().then(function(){return $_}),void 0),"./components/panel/header/magic-upload.vue":()=>M(()=>Promise.resolve().then(function(){return U_}),void 0),"./components/panel/main/magic-data-resource.vue":()=>M(()=>Promise.resolve().then(function(){return K_}),void 0),"./components/panel/main/magic-login.vue":()=>M(()=>Promise.resolve().then(function(){return ep}),void 0),"./components/panel/main/magic-main.vue":()=>M(()=>Promise.resolve().then(function(){return fp}),void 0),"./components/panel/main/magic-recent-opened.vue":()=>M(()=>Promise.resolve().then(function(){return Sp}),void 0),"./components/panel/main/magic-resource.vue":()=>M(()=>Promise.resolve().then(function(){return wp}),void 0),"./components/panel/main/magic-script-editor.vue":()=>M(()=>Promise.resolve().then(function(){return jp}),void 0)}).forEach(([e,t])=>ei[e.substring(e.lastIndexOf("/")+1,e.lastIndexOf("."))]=Vi(t));const on=e=>{let t;Object.entries(ei).forEach(([n,i])=>{e.component(n,i)}),e.config.globalProperties.$contextmenu=n=>{t!=null&&t.unmount(),t=tn(Wn,{menus:n.menus,position:{x:n.event.clientX,y:n.event.clientY},onDestory:()=>{t&&t.unmount(),t=null}}),on(t),t.mount(".magic-editor .magic-mounts")},Object.keys(D).forEach(n=>e.config.globalProperties[`$${n}`]=D[n]),Qn(e,on)},ti=tn(na);ti.use(on);ti.mount("#app");const Rt={baseURL:"",method:"post",timeout:0,withCredentials:!0,responseType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(e){return e instanceof FormData?e:Vn.stringify(e,{arrayFormat:"repeat",allowDots:!0})}],paramsSerializer(e){return Vn.stringify(e,{arrayFormat:"repeat",allowDots:!0})}};class ya{constructor(){ht(this,"successHandle",null);ht(this,"errorHandle",null);ht(this,"endHandle",null);ht(this,"exceptionHandle",(t,n)=>{me.alert(n,`\u8BF7\u6C42\u51FA\u9519\uFF0C\u5F02\u5E38\u4EE3\u7801(${t})`)})}success(t){return this.successHandle=t,this}exception(t){return this.exceptionHandle=t,this}error(t){return this.errorHandle=t,this}end(t){this.endHandle=t}}class Oa{constructor(){ht(this,"_axios",null);this._axios=ta.create(Rt)}getAxios(){return this._axios}setBaseURL(t){Rt.baseURL=t}execute(t){let n=_e({baseURL:Rt.baseURL},t);return n.headers=n.headers||{},n.headers[D.HEADER_MAGIC_TOKEN]=D.HEADER_MAGIC_TOKEN_VALUE,this._axios.request(n)}processError(t){t.response?me.alert(JSON.stringify(t.response.data||"")||`\u8BF7\u6C42\u51FA\u9519HttpStatus:(${t.response.status})`,`\u8BF7\u6C42\u51FA\u9519HttpStatus:(${t.response.status})`):me.alert(t.message,"\u8BF7\u6C42\u51FA\u9519"),console.error(t)}sendJson(t,n,i){return this.send(t,JSON.stringify(n),i||{method:"post",headers:{"Content-Type":"application/json"},transformRequest:[]})}sendGet(t,n,i){return i=i||{},i.method="get",this.send(t,n,i)}sendPost(t,n,i){return i=i||{},i.method="post",this.send(t,n,i)}send(t,n,i){let a=i||Rt||{};a.url=t,(a.method||"").toLowerCase()==="post"?a.data=n:a.params=n,a.baseURL=Rt.baseURL;let s=new ya,o=!1,r=(l,u)=>{l instanceof Blob?(o=!0,s.successHandle&&s.successHandle(l,u)):l.code===1?(o=!0,s.successHandle&&s.successHandle(l.data,u)):(l.code===401&&console.log("\u672A\u767B\u5F55"),s.exceptionHandle&&s.exceptionHandle(l.code,l.message,u))};return this.execute(a).then(l=>{let u=l.data,c=l.headers["content-type"]&&l.headers["content-type"].startsWith("application/json");if(u instanceof Blob&&c){let f=new FileReader;f.readAsText(u),f.onload=function(){try{u=JSON.parse(this.result),r(u,l)}catch(g){console.error(g),r(u,l)}};return}r(u,l)}).catch(l=>{typeof s.errorHandle=="function"?s.errorHandle(l.response.data,l.response,l):this.processError(l)}).finally(()=>{typeof s.endHandle=="function"&&s.endHandle(o)}),s}}var Y=new Oa;const re={Alt:512,Ctrl:1024,Shift:2048};new Array(26).fill(0).forEach((e,t)=>re[String.fromCharCode(65+t)]=65+t);new Array(12).fill(0).forEach((e,t)=>re[`F${t+1}`]=112+t);const Gt=[],ni=e=>{if(e.keyCode){let t=e.keyCode;t|=e.ctrlKey&&re.Ctrl||0,t|=e.shiftKey&&re.Shift||0,t|=e.altKey&&re.Alt||0,t|=e.metaKey&&re.Ctrl||0;for(let n=0,i=Gt.length;ndocument.addEventListener("keydown",ni);re.bind=(e,t,n)=>{rn||(rn=!0,re.init()),typeof n=="function"&&Gt.push({target:e,code:t,callback:n})};re.unbind=()=>{Gt.length=0,document.removeEventListener("keydown",ni),rn=!1};var Aa={editor:{base:"vs",rules:[{background:"#ffffff"},{token:"keywords",foreground:"000080",fontStyle:"bold"},{token:"number",foreground:"0000FF"},{token:"keyword",foreground:"000080",fontStyle:"bold"},{token:"string.sql",foreground:"008000"},{token:"tag.sql",foreground:"0033B3"},{token:"attribute.name.sql",foreground:"174AD4"},{token:"attribute.value.sql",foreground:"067D17"},{token:"predefined",foreground:"000000",fontStyle:"italic"},{token:"operator.sql",foreground:"000080",fontStyle:"bold"},{token:"key",foreground:"660E7A"},{token:"string.key.json",foreground:"660E7A"},{token:"string.value.json",foreground:"008000"},{token:"keyword.json",foreground:"0000FF"},{token:"string",foreground:"008000",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"808080",fontStyle:"italic"},{token:"comment.todo",foreground:"008DDE",fontStyle:"italic"},{token:"string.escape",foreground:"000080"}],colors:{"editor.foreground":"#000000","editor.background":"#ffffff","editorLineNumber.foreground":"#999999","editorGutter.background":"#f0f0f0","editor.lineHighlightBackground":"#FFFAE3","dropdown.background":"#F2F2F2","dropdown.foreground":"#000000","list.activeSelectionBackground":"#1A7DC4","list.activeSelectionForeground":"#ffffff"}}},Ra={editor:{base:"vs-dark",rules:[{foreground:"A9B7C6"},{token:"keywords",foreground:"CC7832",fontStyle:"bold"},{token:"keyword",foreground:"CC7832",fontStyle:"bold"},{token:"number",foreground:"6897BB"},{token:"string",foreground:"6A8759",fontStyle:"bold"},{token:"string.sql",foreground:"6A8759"},{token:"tag.sql",foreground:"E8BF6A"},{token:"attribute.name.sql",foreground:"BABABA"},{token:"attribute.value.sql",foreground:"6A8759"},{token:"predefined.sql",foreground:"A9B7C6",fontStyle:"italic"},{token:"predefined.magicscript",foreground:"A9B7C6",fontStyle:"italic"},{token:"key",foreground:"9876AA"},{token:"string.key.json",foreground:"9876AA"},{token:"string.value.json",foreground:"6A8759"},{token:"keyword.json",foreground:"6897BB"},{token:"operator.sql",foreground:"CC7832",fontStyle:"bold"},{token:"string.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape.invalid",foreground:"008000",background:"FFCCCC"},{token:"string.escape",foreground:"000080",fontStyle:"bold"},{token:"comment",foreground:"808080",fontStyle:"italic"},{token:"comment.doc",foreground:"629755",fontStyle:"italic"},{token:"comment.todo",foreground:"A8C023",fontStyle:"italic"},{token:"string.escape",foreground:"CC7832"}],colors:{"editor.background":"#2B2B2B","editorLineNumber.foreground":"#999999","editorGutter.background":"#313335","editor.lineHighlightBackground":"#323232","dropdown.background":"#3C3F41","dropdown.foreground":"#BBBBBB","list.activeSelectionBackground":"#4B6EAF","list.activeSelectionForeground":"#FFFFFF","editorSuggestWidget.selectedBackground":"#113A5C"}},styles:{"main-background-color":"#3C3F41","main-border-color":"#323232","main-color":"#bbb","main-selected-background-color":"#323232","main-hover-background-color":"#353739","main-hover-icon-background-color":"#4C5052","main-selected-color":"#fff","main-icon-color":"#AFB1B3","header-title-color":"#bbb","header-version-color":"#999","header-default-color":"#AFB1B3","empty-background-color":"#282828","empty-key-color":"#489DF6","empty-color":"#A0A0A0","button-hover-background-color":"#365880","button-hover-border-color":"#43688C","button-background-color":"#4C5052","button-border-color":"#5E6060","button-disabled-color":"#5a5a5a","navbar-body-background-color":"#3C3F41","navbar-body-border-color":"#555555","resource-label-color":"#bbb","resource-span-color":"#787878","tree-hover-background-color":"#0d293e","tree-icon-color":"#aeb9c0","table-border-color":"#646464","input-border-color":"#646464","input-foucs-color":"#3D6185","input-background-color":"#45494A","select-background-color":"#3C3F41","select-hover-background-color":"#3C3F41","select-option-background-color":"#3C3F41","select-option-hover-background-color":"#4B6EAF","select-option-border-color":"#808080","data-type-default-color":"#a9b7c6","data-type-string-color":"#6a8759","data-type-integer-color":"#6897bb","data-type-byte-color":"#6897bb","data-type-long-color":"#6897bb","data-type-float-color":"#6897bb","data-type-double-color":"#6897bb","data-type-short-color":"#6897bb","data-type-number-color":"#6897bb","data-type-boolean-color":"#cc7832","data-type-class-color":"#9876aa","data-type-key-color":"#FF8E8E","run-log-background-color":"#2b2b2b","log-level-info":"#ABC023","log-level-error":"#CC666E","log-level-debug":"#299999","log-level-warn":"unset","log-level-trace":"#5394EC","log-color-cyan":"#009191","log-color-link":"#287BDE","todo-color":"#A8C023","debug-line-background-color":"#2D6099","breakpoints-background-color":"#C75450","breakpoint-line-background-color":"#3a2323","select-inputable-background-color":"#45494a","select-inputable-border":"transparent","tab-selected-background-color":"#4E5254","message-em-color":"#68dd9a","checkbox-background-color":"#43494A","checkbox-border-color":"#6B6B6B","checkbox-text-color":"#bbb","checkbox-selected-background-color":"#43494A","checkbox-selected-border-color":"#6B6B6B","toolbox-list-label-color":"#bbb","toolbox-list-span-color":"#787878","toolbox-border-color":"#323232","toolbox-list-hover-background":"#0D293E","toolbox-border-right-color":"#555555","footer-border-color":"#323232","tab-bar-border-color":"#323232","dialog-border-color":"#282828","dialog-shadow-color":"#151515","table-col-border-color":"#333638","table-row-border-color":"#333638","table-hover-background":"#4B6EAF","debug-line-background":"#2D6099","breakpoints-background":"#C75450","breakpoint-line-background":"#3a2323","table-even-background":"#414547","button-disabled-background":"#5A5A5A","toolbox-list-header-icon-color":"#AFB1B3","log-error-color":"#CC666E","text-string-color":"#6A8759","text-number-color":"#6897BB","text-boolean-color":"#CC7832","text-property-color":"#9876aa","text-key-color":"#9876aa","suggest-hover-background":"#113A5C","suggest-hover-color":"#fff","statusbar-em-color":"#68dd9a"}};const Ht={},ln=(e,t)=>{t=t||{};let n=t.editor||{};n.base=n.base||"vs",n.inherit=n.inherit===void 0?!0:n.inherit,n.rules=n.rules||[],n.colors=n.colors||[],Ke.defineTheme(e,n),Ht[e]=t.styles||{}};function It(e,t,n,i){if(e&&e.length>0&&n){let a=function(r,l){return r[n].localeCompare(l[n],"zh-CN")},s=[],o=[];e.forEach(r=>{r.folder===!0?(i&&(r[i]=It(r[i],t,n,i)),s.push(r)):o.push(r)}),s.sort(a),o.sort(a),t===!1&&(s.reverse(),o.reverse()),e.splice(0,e.length,...s.concat(o))}return e}function Ia(e){return Array(e).fill(0).map(()=>(Math.random()*16|0).toString(16)).join("")}function Et(e,t){return t=t||2,(Array(t).join(0)+e).slice(-t)}function xt(e){if(typeof e=="number"&&(e.toString().length===13?e=new Date(e):e=new Date(e*1e3)),e instanceof Date){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),a=e.getMinutes(),s=e.getSeconds();return e.getFullYear()+"-"+Et(t)+"-"+Et(n)+" "+Et(i)+":"+Et(a)+":"+Et(s)}return""}function ut(e){return e.replace(/:?\/+/g,t=>t.indexOf(":")>-1?t:"/")}function xa(e){const t=a=>{if(Array.isArray(a)){let s=a.length,o=100;if(s>o){let r=[];for(let l=0;li(""+(l+c),void 0,JSON.stringify(u),u))});return r}return a.map((r,l)=>i(""+l,void 0,JSON.stringify(r),r))}else return Object.keys(a).map(s=>{const o=a[s];return i(s,void 0,JSON.stringify(o),o)})},n=a=>{try{return JSON.parse(a)}catch{return a}},i=(a,s,o,r)=>{var O;let l=(s||"").startsWith("java.lang"),u,c,f;l?(u=((O=s==null?void 0:s.substring(10))==null?void 0:O.toLowerCase())||typeof r,["integer","double","float","byte","short","long"].indexOf(u)>-1&&(u="number"),u==="class"&&(o=o.substring(1,o.length-1))):(r=r||o&&n(o),!Array.isArray(r)&&typeof r!="object"?(l=!0,u=typeof r):(Array.isArray(r)?(f=`size = ${r.length}`,u="array"):(f=`members = ${r&&Object.keys(r).length}`,u="object"),s=s||(Array.isArray(r)?"Array":typeof r),c=r&&t(r)||[]));let g=r==null&&!l;return g&&(s="null",l=!0,o="null"),{name:a,value:o,data:r,dataType:u,type:s,size:f,isNull:g,folder:!l,opened:!1,children:c}};return e&&e.map(a=>i(a.name,a.type,a.value))||[]}function Ca(e){const t=["B","KB","MB"];let n=0;for(;n=1024;)e=e/1024,n++;return e=e.toFixed(2),`${e} ${t[n]}`}function We(e,t){const n=i=>i.filter(a=>a.folder).forEach(a=>{n(a.children||[]),t(a)});n(e||[])}function un(e,t){let n=document.createElement("a"),i=window.URL.createObjectURL(e);n.href=i,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(i)}function ii(e){try{var t=document.createElement("textarea");return t.style="position:absolute;left:-99999999px",document.body.appendChild(t),t.innerHTML=e,t.readOnly=!1,t.select(),document.execCommand("copy"),!0}catch{return!1}}function La(e){let t=0;for(let n=0,i=0,a=e.length;no.apply(this,s))}}report(t){try{window._czc.push(["_trackEvent",t,t])}catch{}}send(t,n){this.$emit("message",t,n)}status(t,n){const i=new Date;n===!1&&(t=`${t}`),this.statusLog.value.push({content:t,timestamp:xt(i)+"."+Et(i.getMilliseconds(),3)}),this.$emit("status",t)}clearStatusLog(){this.statusLog.value=[]}getStatusLog(){return this.statusLog}}var E=new Na;const cn={escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,builtinFunctions:[],digits:/[0-9_]+/,binarydigits:/[0-1_]+/,hexdigits:/[[0-9a-fA-F_]+/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/\s+/,"white"],[/```$/,{token:"string",next:"@codeblock"}],[/[a-zA-Z_$][\w$]*[\s]?/,{cases:{"@builtinFunctions":"predefined","~(new|var|if|else|for|in|return|import|break|continue|as|null|true|false|try|catch|finally|async|while|exit|asc|desc|ASC|DESC|assert|let|const|throw)[\\s]?":{token:"keywords"},"~(select|from|left|join|on|and|or|order|by|where|group|having|limit|offset|SELECT|FROM|LEFT|JOIN|ON|AND|OR|ORDER|BY|WHERE|GROUP|HAVING|LIMIT|OFFSET)[\\s]{1}":{token:"keywords"},"@default":"identifier"}}],[/::[a-zA-Z]+/,"keywords"],[/[{}()[\]]/,"@brackets"],[/(@digits)\.(@digits)/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)[lLbBsSdDfFmM]?/,"number"],[/\/\*\**/,"comment","@comment"],[/\/\//,"comment","@commentTodo"],[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@string_multi_embedded",nextEmbedded:"mybatis"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],comment:[[/\*\//,"comment","@popall"],[/\S((TODO)|(todo)|(fixme)|(FIXME))\s+/,"comment"],[/((TODO)|(todo)|(fixme)|(FIXME))\s+[^(*/)]+/,"comment.todo"],[/\S/,"comment"]],commentTodo:[[/^/,"","@popall"],[/\S((TODO)|(todo)|(fixme)|(FIXME))\s+/,"comment"],[/((TODO)|(todo)|(fixme)|(FIXME))[ \t]+[^\n]+/,"comment.todo","@popall"],[/\S/,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],codeblock:[[/^```$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_multi_embedded:[[/[^"]+/,""],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"root"}]}};let qe={},_n={},Ct=[],pn=[],Vt,dn;const Pa=e=>e==="int"||e==="java.lang.Integer"?"java.lang.Integer":e==="string"||e==="java.lang.String"?"java.lang.String":e==="double"||e==="java.lang.Double"?"java.lang.Double":e==="float"||e==="java.lang.Float"?"java.lang.Float":e==="byte"||e==="java.lang.Byte"?"java.lang.Byte":e==="short"||e==="java.lang.Short"?"java.lang.Short":e==="long"||e==="java.lang.Long"?"java.lang.Long":e.indexOf("[]")>-1?"[Ljava.lang.Object;":e||"java.lang.Object",hn=e=>{let t=e.lastIndexOf(".");return t>-1?e.substring(t+1):e},wa=(e,t,n)=>e.length>0&&e[e.length-1].varArgs?n?e.length-1<=t.length:e.length<=t.length:n?e.length-1===t.length:e.length===t.length,ka=function(){return new Promise((e,t)=>{Y.sendPost("/classes").success(n=>{qe=n.classes||{},_n=n.extensions||{},pn=n.functions||[],cn.builtinFunctions=pn.map(i=>i.name),W.setMonarchTokensProvider("magicscript",cn),e()}).exception(n=>{t()}).error(n=>{t()})})},Da=()=>new Promise((e,t)=>{Y.execute({url:"classes.txt",responseType:"text",method:"get"}).then(n=>{const i=[];n.data.split(` +`).forEach(a=>{const s=a.split(":");s.length===1?i.push(s[0].trim()):i.push(...s[1].split(",").map(o=>s[0]+"."+o.trim()))}),Ct=i,e()}).catch(n=>{t()})}),ai=(e,t)=>Array(t>(e+"").length?t-(""+e).length-1:0).join(0)+e,si=e=>{let t=[];return e&&(t=e.enums||[],e.superClass&&(t=t.concat(si(e.superClass)))),t},oi=(e,t,n)=>{if(e.insertText=e.name,e.parameters.length>t){let i=[],a=[];for(let s=t;s{fn[e]=t},gn=e=>{let t=[];if(e){if(t=e.attributes||[],e.superClass&&(t=t.concat(gn(e.superClass))),e.interfaces&&e.interfaces.length>0)for(let n=0,i=e.interfaces.length;n{t=t||0;let n=[],i=(a,s,o)=>{if(a&&a.methods)for(let r=0,l=a.methods.length;r0)for(let a=0,s=e.interfaces.length;a_n[e],Ua=e=>{if(!e)throw new Error("className is required");let t=qe[e];if(!t){let n=Ct.findIndex(i=>i===e);t=Ct[n]}return t};async function Ba(e){let t=qe[e];if(t)t=qe[t.className]||t;else try{(await Y.execute({url:"/class",data:{className:e}})).data.data.forEach(a=>{qe[a.className]=a}),t=qe[e]}catch{}return t}const Fa=()=>pn.map(e=>oi(e,0,1)),ri=()=>{if(!Vt&&D.config){let e=D.config;e.autoImportModuleList&&(Vt={},e.autoImportModuleList.forEach(n=>{Vt[n]=n}));let t=["java.util.","java.lang."].concat((e.autoImportPackage||"").replace(/\\s/g,"").replace(/\*/g,"").split(","));dn={},Ct.forEach(n=>{t.forEach(i=>{n.indexOf(i)===0&&n.indexOf(".",i.length)===-1&&(dn[n.substring(n.lastIndexOf(".")+1)]=n)})})}},ja=()=>(ri(),Vt||{}),Ga=()=>(ri(),dn||{}),Ha=()=>Ct;let vn;const Va=e=>{vn=e},Ya=e=>vn&&vn(e),Ka=()=>Object.keys(qe).filter(e=>qe[e].module);let li;const Wa=e=>{li=e};let ui;const qa=e=>{ui=e},za=()=>li,Xa=()=>ui,ne={findEnums:si,findAttributes:gn,findMethods:mn,findFunction:Fa,loadClass:Ba,findClass:Ua,initClasses:ka,initImportClass:Da,getWrapperClass:Pa,matchTypes:wa,getAutoImportModule:ja,getAutoImportClass:Ga,getExtension:Ma,getImportClass:Ha,getOnlineFunction:Ya,setupOnlineFunction:Va,setExtensionAttribute:$a,getSimpleClass:hn,getDefineModules:Ka,setApiFinder:Wa,setFunctionFinder:qa,getApiFinder:za,getFunctionFinder:Xa};class he extends Error{constructor(t,n){super(t);this.name="ParseException",this.span=n}}class Ja{constructor(t,n,i,a,s,o,r){this.source=t,this.start=n,this.end=i,this.lineNumber=a,this.endLineNumber=s,this.startCol=o,this.endCol=r}}class z{constructor(t,n,i){t instanceof z&&n instanceof z?(this.source=t.source,this.start=t.start,this.end=n.end,this.cachedText=this.source.substring(this.start,this.end)):(this.source=t,this.start=n||0,this.end=i||t.length,this.cachedText=t.substring(this.start,this.end))}getText(){return this.cachedText}getSource(){return this.source}getStart(){return this.start}getEnd(){return this.end}toString(){return"Span [text="+this.getText()+", start="+this.start+", end="+this.end+"]"}inPosition(t){return this.start<=t&&this.end>=t}getLine(){if(this.line!=null)return this.line;let t=this.start;for(;tthis.source.length-1||this.source.charAt(n)===` +`);)n++;let i=0,a=t;for(;a>0&&a",error:">"},LessEqual:{literal:"<=",error:"<="},GreaterEqual:{literal:">=",error:">="},Equal:{literal:"==",error:"=="},NotEqual:{literal:"!=",error:"!="},Assignment:{literal:"=",error:"="},PlusPlus:{literal:"++",error:"++"},MinusMinus:{literal:"--",error:"--"},PlusEqual:{literal:"+=",error:"+="},MinusEqual:{literal:"-=",error:"-="},AsteriskEqual:{literal:"*=",error:"*="},ForwardSlashEqual:{literal:"/=",error:"/="},PercentEqual:{literal:"%=",error:"%="},ColonColon:{literal:"::",error:"::"},EqualEqualEqual:{literal:"===",error:"==="},NotEqualEqual:{literal:"!==",error:"!=="},And:{literal:"&&",error:"&&"},Or:{literal:"||",error:"||"},Xor:{literal:"^",error:"^"},Not:{literal:"!",error:"!"},BitAnd:{literal:"&",error:"&"},BitOr:{literal:"|",error:"|"},BitNot:{literal:"~",error:"~"},LShift:{literal:"<<",error:"<<"},RShift:{literal:">>",error:">>"},RShift2:{literal:">>>",error:">>>"},XorEqual:{literal:"^=",error:"^=",modifiable:!0},BitAndEqual:{literal:"&=",error:"&=",modifiable:!0},BitOrEqual:{literal:"|=",error:"|=",modifiable:!0},LShiftEqual:{literal:"<<=",error:"<<=",modifiable:!0},RShiftEqual:{literal:">>=",error:">>=",modifiable:!0},RShift2Equal:{literal:">>>=",error:">>>=",modifiable:!0},SqlAnd:{literal:"and",error:"and"},SqlOr:{literal:"or",error:"or"},SqlNotEqual:{literal:"<>",error:"<>",inLinq:!0},Questionmark:{literal:"?",error:"?"},DoubleQuote:{literal:'"',error:'"'},TripleQuote:{literal:'"""',error:'"""'},SingleQuote:{literal:"'",error:"'"},Lambda:{error:"=> \u6216 ->"},BooleanLiteral:{error:"true \u6216 false"},DoubleLiteral:{error:"\u4E00\u4E2A double \u7C7B\u578B\u6570\u503C"},DecimalLiteral:{error:"\u4E00\u4E2A BigDecimal \u7C7B\u578B\u6570\u503C"},FloatLiteral:{error:"\u4E00\u4E2A float \u7C7B\u578B\u6570\u503C"},LongLiteral:{error:"\u4E00\u4E2A long \u7C7B\u578B\u6570\u503C"},IntegerLiteral:{error:"\u4E00\u4E2A int \u7C7B\u578B\u6570\u503C"},ShortLiteral:{error:"\u4E00\u4E2A short \u7C7B\u578B\u6570\u503C"},ByteLiteral:{error:"\u4E00\u4E2A byte \u7C7B\u578B\u6570\u636E"},CharacterLiteral:{error:"\u4E00\u4E2A char \u7C7B\u578B\u6570\u636E"},RegexpLiteral:{error:"\u4E00\u4E2A \u6B63\u5219\u8868\u8FBE\u5F0F"},StringLiteral:{error:"\u4E00\u4E2A \u5B57\u7B26\u4E32"},NullLiteral:{error:"null"},Language:{error:"language"},Identifier:{error:"\u6807\u8BC6\u7B26"},Unknown:{error:"unknown"}};let Qa=Object.getOwnPropertyNames(_).map(e=>_[e]);_.getSortedValues=function(){return this.values?this.values:(this.values=Qa.sort(function(e,t){return!e.literal&&!t.literal?0:!e.literal&&!!t.literal?1:!!e.literal&&!t.literal?-1:t.literal.length-e.literal.length}),this.values)};class Me{constructor(t,n,i){this.type=t,this.span=n,i instanceof Tt?this.tokenStream=i:i&&(this.value=i)}getTokenType(){return this.type}getTokenStream(){return this.tokenStream}getSpan(){return this.span}getText(){return this.span.getText()}}class Ce extends Me{constructor(t,n,i){super(t,n,i)}getJavaType(){return this.type===_.StringLiteral?"java.lang.String":this.type===_.DoubleLiteral?"java.lang.Double":this.type===_.ByteLiteral?"java.lang.Byte":this.type===_.FloatLiteral?"java.lang.Float":this.type===_.DecimalLiteral?"java.math.BigDecimal":this.type===_.IntegerLiteral?"java.lang.Integer":this.type===_.LongLiteral?"java.lang.Long":this.type===_.BooleanLiteral?"java.lang.Boolean":this.type===_.RegexpLiteral?"java.util.regex.Pattern":"java.lang.Object"}}class Za{constructor(t,n,i){this.index=n===void 0?0:n,this.end=i===void 0?t.length:i,this.source=t,this.spanStart=0}hasMore(){return this.indexthis.end)return!1;for(let a=0,s=this.index;a=this.end||t.charAt(a)!==this.source.charAt(s))return!1;return n&&(this.index+=i),!0}matchAny(t,n){for(let i=0,a=t.length;i=this.end)return!1;let n=this.source.charAt(this.index);return n.match(/[a-zA-Z0-9_\u4e00-\u9fa5]/)||n==="$"||n==="_"||n==="@"?(t&&this.index++,!0):!1}matchIdentifierPart(t){if(this.index>=this.end)return!1;let n=this.source.charAt(this.index);return n.match(/[a-zA-Z0-9_\u4e00-\u9fa5]/)||n==="@"?(t&&this.index++,!0):!1}skipWhiteSpace(){for(;this.index0&&this.tokens[this.end-1]}hasMore(){return this.index=this.end)return!1;let a=!1;if(Array.isArray(t)){for(let s=0,o=t.length;sn.push(this.textToString(i))),n.join(",")}else return t.error}expect(t,n){if(this.match(t,!0,n))return this.tokens[this.index-1];if(this.hasMore()){let i=this.tokens[this.index];throw t instanceof Me&&(t=t.type.error),new he("Expected '"+this.textToString(t)+"', but got '"+i.getText()+"'",i.getSpan())}else{let i=this.tokens[this.index-1].getSpan();return new Me(_.Unknown,i)}}hasPrev(){return this.index>0}getSource(){return this.tokens.length===0?null:this.tokens[0].getSpan().getSource()}}const es=(e,t)=>{if(t.length>0){let n=t[t.length-1];if(n instanceof Ce)return!1;switch(n.getTokenType()){case _.Comma:case _.Semicolon:case _.Colon:case _.RightCurly:case _.LeftBracket:case _.LeftParantheses:case _.Assignment:case _.NotEqual:case _.EqualEqualEqual:case _.NotEqualEqual:case _.Equal:case _.And:case _.Or:case _.SqlAnd:case _.SqlOr:case _.SqlNotEqual:case _.Questionmark:case _.Lambda:break;default:return!1}}if(e.match("/",!1)){let n=e.getPosition();e.consume(),e.startSpan();let i=!1,a=0,s=0,o=0;for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match("[",!1))a++,s=e.getPosition();else if(a>0&&e.match("]",!1))a--;else if(e.match(_.ForwardSlash.literal,!0))if(a===0){e.match("g",!0),e.match("i",!0),e.match("m",!0),e.match("s",!0),e.match("u",!0),e.match("y",!0),i=!0;break}else o=e.getPosition();let l=e.consume();if(l==="\r"||l===` +`)return e.reset(n),!1}if(a!==0)throw new he("Missing ']'",e.getSpan(s,o-1));if(!i)return e.reset(n),!1;let r=e.endSpan();return r=e.getSpan(r.getStart()-1,r.getEnd()),t.push(new Ce(_.RegexpLiteral,r)),!0}return!1},En=(e,t,n)=>{if(e.match(t,!0)){e.startSpan();let i=!1;for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match(t.literal,!0)){i=!0;break}let s=e.consume();if(t!==_.TripleQuote&&(s==="\r"||s===` +`))throw new he(t.error+t.error+"\u5B9A\u4E49\u7684\u5B57\u7B26\u4E32\u4E0D\u80FD\u6362\u884C",e.endSpan())}if(!i)throw new he("\u5B57\u7B26\u4E32\u6CA1\u6709\u7ED3\u675F\u7B26"+t.error,e.endSpan());let a=e.endSpan();return a=e.getSpan(a.getStart(),a.getEnd()-t.literal.length),n.push(new Ce(_.StringLiteral,a)),!0}return!1},ci=(e,t)=>{let n=Number.parseInt(e.getText().substring(2).replace(/\_/g,""),t);return n>2147483647||n<-2147483648?new Ce(_.LongLiteral,e,n):n>127||n<-128?new Ce(_.LongLiteral,e,n):new Ce(_.ByteLiteral,e,n)},ts=(e,t)=>{if(e.match("0",!1)){let n=e.getPosition();if(e.startSpan(),e.consume(),e.matchAny(["x","X"],!0)){for(;e.matchDigit(!0)||e.matchAny(["A","B","C","D","E","F","a","b","c","d","e","f","_"],!0););if(e.matchAny(["L","l"],!0)){let i=e.endSpan(),a=i.getText();return t.push(new Ce(_.LongLiteral,i,parseInt(a.substring(2,a.length-1).replace(/\_/g,""),16))),!0}return t.push(ci(e.endSpan(),16)),!0}else if(e.matchAny(["b","B"],!0)){for(;e.matchAny(["0","1","_"],!0););if(e.matchAny(["L","l"],!0)){let i=e.endSpan(),a=i.getText();return t.push(new Ce(_.LongLiteral,i,parseInt(a.substring(2,a.length-1).replace(/\_/g,""),2))),!0}return t.push(ci(e.endSpan(),2)),!0}e.reset(n)}if(e.matchDigit(!1)){let n=_.IntegerLiteral;for(e.startSpan();e.matchDigit(!0)||e.match("_",!0););if(e.match(_.Period.literal,!0))if(e.hasMore())for(n=_.DoubleLiteral;e.matchDigit(!0)||e.match("_",!0););else e.reset(e.getPosition()-1);if(e.matchAny(["b","B"],!0)){if(n===_.DoubleLiteral)throw new he("Byte literal can not have a decimal point.",e.endSpan());n=_.ByteLiteral}else if(e.matchAny(["s","S"],!0)){if(n===_.DoubleLiteral)throw new he("Short literal can not have a decimal point.",e.endSpan());n=_.ShortLiteral}else if(e.matchAny(["l","L"],!0)){if(n===_.DoubleLiteral)throw new he("Long literal can not have a decimal point.",e.endSpan());n=_.LongLiteral}else e.matchAny(["f","F"],!0)?n=_.FloatLiteral:e.matchAny(["d","D"],!0)?n=_.DoubleLiteral:e.matchAny(["m","M"],!0)&&(n=_.DecimalLiteral);return t.push(new Ce(n,e.endSpan())),!0}return!1},ns=(e,t)=>{if(e.match("```",!0))if(e.startSpan(),e.matchIdentifierStart(!0)){for(;e.matchIdentifierPart(!0););let n=e.endSpan();if(t.push(new Me(_.Language,n)),e.startSpan(),!e.skipUntil("```"))throw new he("```\u9700\u8981\u4EE5```\u7ED3\u5C3E",e.endSpan());return t.push(new Me(_.Language,e.endSpan(-3))),!0}else throw new he("```\u540E\u9700\u8981\u6807\u8BC6\u8BED\u8A00\u7C7B\u578B",e.endSpan());return!1},is=(e,t)=>{if(e.matchIdentifierStart(!0)){for(e.startSpan();e.matchIdentifierPart(!0););let n=e.endSpan();return n=e.getSpan(n.getStart()-1,n.getEnd()),n.getText()==="true"||n.getText()==="false"?t.push(new Ce(_.BooleanLiteral,n)):n.getText()==="null"?t.push(new Ce(_.NullLiteral,n)):_.SqlAnd.literal===n.getText()?t.push(new Me(_.SqlAnd,n)):_.SqlOr.literal===n.getText()?t.push(new Me(_.SqlOr,n)):t.push(new Me(_.Identifier,n)),!0}return!1},as=(e,t)=>{if(e.match("`",!0)){let n=e.getPosition(),i=n,a=[];for(;e.hasMore();){if(e.match("\\",!0)){e.consume();continue}if(e.match("`",!0))break;if(e.match("${",!0)){let r=e.getPosition();i0&&a.push(new Ce(_.StringLiteral,e.endSpan(i,o))),s=e.getSpan(s.getStart()-1,s.getEnd()),t.push(new Ce(_.StringLiteral,s,new Tt(a))),!0}return!1},_i=(e,t,n)=>{let i=0,a=0;for(;e.hasMore();){if(e.skipWhiteSpace(),n&&e.match(n,!0))return t;if(e.match("//",!0)){e.skipLine();continue}if(e.match("/*",!0)){e.skipUntil("*/");continue}if(ts(e,t)||En(e,_.SingleQuote,t)||En(e,_.TripleQuote,t)||En(e,_.DoubleQuote,t)||es(e,t)||ns(e,t)||as(e,t)||is(e,t))continue;if(e.matchAny(["=>","->"],!0)){t.push(new Me(_.Lambda,e.getSpan(e.getPosition()-2,e.getPosition())));continue}let s=!1,o=_.getSortedValues();for(let r=0,l=o.length;r_i(new Za(e,0,e.length),[]);class le{constructor(t){this.span=t}getSpan(){return this.span}async getJavaType(t){return await this.getExpressionsJavaType(t),"java.lang.Object"}async getExpressionsJavaType(t){for(const n of this.expressions().filter(i=>i))await n.getJavaType(t)}expressions(){return[]}toString(){return this.span.getText()}}class bt extends le{constructor(t){super(t)}}class Ae extends bt{constructor(t,n,i){super(t);this.javaType=n,this.expressionList=i||[]}expressions(){return this.expressionList}async getJavaType(){return this.javaType}getValue(){return this.getSpan().getText().replace(/\\\\/g,"\\").replace(/\\n/g,` +`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\'/g,"'")}}class Kt extends le{constructor(t,n,i){super(t);this.target=n,this.args=i}expressions(){return[this.target,...this.args]}getMethod(){return this.target}getArguments(){return this.args}async getJavaType(t){let n=this.target.member.getText(),i=await this.target.getJavaType(t),a=ne.findMethods(i);if(a)for(let s=0,o=a.length;si.name===this.target.variable);if(n)return n.returnType}return await this.target.getJavaType(t)}}class ct extends le{constructor(t,n,i,a,s){super(t);this.target=n,this.optional=i,this.member=a,this.whole=s}isWhole(){return this.whole===!0}expressions(){return[this.target]}getTarget(){return this.target}async getJavaType(t){let n=await this.target.getJavaType(t),i=await ne.loadClass(n),a=i==null?void 0:i.methods;if(a)for(let s=0,o=a.length;s=0&&!n;a--)n=ne.findClass(i[a]+this.variable)}return n||"java.lang.Object"}}class Wt extends le{constructor(t,n,i){super(t);this.target=n,this.keyOrIndex=i}async getJavaType(t){return await this.target.getJavaType(t)==="db"?"db":super.getJavaType(t)}}class pi extends le{constructor(t,n,i,a,s){super(t);this.condition=n,this.trueBlock=i||[],this.elseIfs=a||[],this.falseBlock=s||[]}expressions(){return[this.condition,...this.trueBlock,...this.elseIfs,...this.falseBlock]}}class di extends Ae{constructor(t){super(t)}}class bn extends le{constructor(t,n,i){super(t);this.parameters=n,this.childNodes=i}expressions(){return[...this.childNodes]}async getJavaType(t){if(Array.isArray(this.childNodes)&&this.childNodes.length>0){for(let n=0,i=this.childNodes.length;n=0&&!n;a--)n=ne.findClass(i[a]+this.identifier)}return n||"java.lang.Object"}}class cs extends le{constructor(t,n){super(t);this.expression=n}expressions(){return[this.expression]}async getJavaType(t){return"java.util.concurrent.Future"}}class Sn extends le{constructor(t,n,i){super(new z(t.getSpan(),n.getSpan()));this.operand=n,this.operator=t,this.atAfter=i}async getJavaType(t){return await this.operand.getJavaType(t)}}class _s extends le{constructor(t,n,i,a,s){super(t);this.exceptionVarNode=n,this.tryBlock=i,this.catchBlock=a,this.finallyBlock=s}expressions(){return[...this.tryBlock,...this.catchBlock,...this.finallyBlock]}}class ps extends le{constructor(t,n,i,a,s){super(t);this.indexOrKey=n,this.value=i,this.mapOrArray=a,this.body=s}expressions(){return[this.mapOrArray,...this.body]}}class ds extends le{constructor(t,n,i){super(t);this.condition=n,this.trueBlock=i}expressions(){return[this.condition,...this.trueBlock]}}class hs extends le{constructor(t,n,i,a){super(t);this.packageName=n,this.varName=i,this.module=a}async getJavaType(t){if(this.packageName.endsWith(".*"))t["@import"].push(this.packageName.substring(0,this.packageName.length-1));else if(this.module)t[this.packageName]=this.packageName;else if(this.varName)t[this.varName]=this.packageName;else{let n=this.packageName.lastIndexOf(".");n>-1&&(t[this.packageName.substring(n+1)]=this.packageName)}}}class yn extends le{constructor(t,n,i,a){super(t);this.varName=n,this.expression=i,this.defineType=a!=="var"&&a!=="const"&&a!=="let"&&a}getVarName(){return this.varName}expressions(){return this.expression==null?[]:[this.expression]}async getJavaType(t){let n="java.lang.Object";return this.defineType?n=t[this.defineType]||n:this.expression&&(n=await this.expression.getJavaType(t)),t[this.varName]=n,n}}class hi extends le{constructor(t,n,i){super(new z(t.getSpan(),i.getSpan()));this.condition=t,this.trueExpression=n,this.falseExpression=i}expressions(){return[this.condition,this.trueExpression,this.falseExpression]}}class fs extends le{constructor(t,n){super(t);this.target=n}expressions(){return[this.target]}}class St extends Ae{constructor(t,n,i){super(t,"java.util.LinkedHashMap");this.keys=n,this.values=i}expressions(){return this.values}}class yt extends Ae{constructor(t,n){super(t,"java.util.ArrayList");this.values=n}expressions(){return this.values}}class gs extends le{constructor(t){super(t)}async getJavaType(){return"java.util.function.Function"}expressions(){return[]}}class fi extends le{constructor(t,n,i,a){super(new z(t.getSpan(),i.getSpan()));this.left=t,this.right=i,this.operator=n,this.linqLevel=a}getOperator(){return this.operator}setRightOperand(t){this.right=t}getRightOperand(){return this.right}expressions(){return[this.left,this.right]}async getJavaType(t){let n=await this.left.getJavaType(t),i=await this.right.getJavaType(t);return n=n.toLowerCase().substring(n.lastIndexOf(".")+1),i=i.toLowerCase().substring(i.lastIndexOf(".")+1),(this.operator.type===_.Plus||this.operator.type===_.PlusEqual)&&(n==="string"||i==="string")?"java.lang.String":this.operator.type===_.Equal||this.operator.type===_.Assignment&&this.linqLevel>0?"java.lang.Boolean":n==="bigdecimal"||i==="bigdecimal"?"java.math.BigDecimal":n==="double"||i==="double"?"java.lang.Double":n==="float"||i==="float"?"java.lang.Float":n==="long"||i==="long"?"java.lang.Long":n==="integer"||i==="integer"?"java.lang.Integer":n==="short"||i==="short"?"java.lang.Short":n==="byte"||i==="byte"?"java.lang.Byte":"java.lang.Object"}}class Pt extends bt{constructor(t,n,i){super(t);this.expression=n,this.alias=i}expressions(){return[this.expression]}}class ms extends bt{constructor(t,n,i,a){super(t);this.leftJoin=n,this.target=i,this.condition=a}expressions(){return[this.target,this.condition]}}class vs extends bt{constructor(t,n,i,a){super(t);this.expression=n,this.alias=i,this.order=a}expressions(){return[this.expression]}}class gi extends bt{constructor(t,n,i,a){super(t);this.convert=n,this.target=i,this.args=a}expressions(){return[this.target,...this.args]}async getJavaType(){return this.convert=="double"?"java.lang.Double":this.convert=="float"?"java.lang.Float":this.convert=="long"?"java.lang.Long":this.convert=="int"?"java.lang.Integer":this.convert=="short"?"java.lang.Short":this.convert=="byte"?"java.lang.Byte":this.convert=="date"?"java.util.Date":"java.lang.Object"}}class mi extends bt{constructor(t,n,i,a,s,o,r,l,u,c){super(t);this.fields=n,this.from=i,this.joins=a,this.where=s,this.groups=o,this.having=r,this.orders=l,this.limit=u,this.offset=c}expressions(){let t=[];return this.where&&t.push(this.where),this.having&&t.push(this.having),[...this.fields,this.from,...this.joins,...this.groups,...t,...this.orders,this.limit,this.offset]}async getJavaType(){return"java.util.List"}}const qt={environmentFunction:()=>{},setEnvironment:e=>qt.environmentFunction=e},Es=["import","as","var","let","const","return","break","continue","if","for","in","new","true","false","null","else","try","catch","finally","async","while","exit","and","or","throw"],vi=["from","join","left","group","by","as","having","and","or","in","where","on","limit","offset"],Ts=[[_.Assignment],[_.RShift2Equal,_.RShiftEqual,_.LShiftEqual,_.XorEqual,_.BitOrEqual,_.BitAndEqual,_.PercentEqual,_.ForwardSlashEqual,_.AsteriskEqual,_.MinusEqual,_.PlusEqual],[_.Or,_.SqlOr],[_.And,_.SqlAnd],[_.BitOr],[_.Xor],[_.BitAnd],[_.EqualEqualEqual,_.Equal,_.NotEqualEqual,_.NotEqual,_.SqlNotEqual],[_.Less,_.LessEqual,_.Greater,_.GreaterEqual],[_.Plus,_.Minus],[_.LShift,_.RShift,_.RShift2],[_.Asterisk,_.ForwardSlash,_.Percentage]],bs=[[_.RShift2Equal,_.RShiftEqual,_.LShiftEqual,_.XorEqual,_.BitOrEqual,_.BitAndEqual,_.PercentEqual,_.ForwardSlashEqual,_.AsteriskEqual,_.MinusEqual,_.PlusEqual],[_.Or,_.SqlOr],[_.And,_.SqlAnd],[_.BitOr],[_.Xor],[_.BitAnd],[_.Assignment,_.EqualEqualEqual,_.Equal,_.NotEqualEqual,_.Equal,_.NotEqual,_.SqlNotEqual],[_.Less,_.LessEqual,_.Greater,_.GreaterEqual],[_.Plus,_.Minus],[_.LShift,_.RShift,_.RShift2],[_.Asterisk,_.ForwardSlash,_.Percentage]],Ss=[_.MinusMinus,_.PlusPlus,_.BitNot,_.Minus,_.Plus,_.Not];class zt{constructor(t){this.stream=t,this.linqLevel=0}parse(t){let n=[];try{for(;this.stream.hasMore();){let i=this.parseStatement();i!=null&&(this.validateNode(i),n.push(i))}}catch(i){if(t!==!0)throw i}return n}async parseBest(t){let n=this.parse(),i=await this.processEnv(n);return{best:this.findBestMatch(n[n.length-1],t),env:i}}async processEnv(t){let n=t.length,i=He(_e(_e(_e({},qt.environmentFunction()),ne.getAutoImportClass()),ne.getAutoImportModule()),{"@import":[]});for(let a=0;a-1)throw new he("\u53D8\u91CF\u540D\u4E0D\u80FD\u5B9A\u4E49\u4E3A\u5173\u952E\u5B57",t)}parseThrow(){let t=this.stream.consume().getSpan(),n=this.parseExpression();return new ls(new z(t,this.stream.getPrev().getSpan()),n)}parseExit(){let t=this.stream.expect("exit").getSpan(),n=[];do n.push(this.parseExpression());while(this.stream.match(_.Comma,!0));return new rs(new z(t,this.stream.getPrev().getSpan()),n)}parseAssert(){let t=this.stream.makeIndex();try{let n=this.stream.expect("assert").getSpan(),i=this.parseExpression();this.stream.expect(_.Colon);let a=[];do a.push(this.parseExpression());while(this.stream.match(_.Comma,!0));return new us(new z(n,this.stream.getPrev().getSpan()),i,a)}catch{return this.stream.resetIndex(t),this.parseExpression()}}parseImport(){let t=this.stream.expect("import").getSpan();if(this.stream.hasMore()){let n=this.stream.consume(),i=null,a=n.getTokenType()===_.StringLiteral;if(a)i=this.createStringLiteral(n).getValue();else if(n.type===_.Identifier){let o=n.getSpan(),r=null;for(i=o.getText();this.stream.match(_.Period,!0);){if(a=!0,this.stream.match(_.Asterisk,!1)){n=this.stream.consume();break}n=this.stream.expect(_.Identifier)}a&&(r=n.getSpan(),i=new z(o,r).getText())}else throw new he("Expected identifier or string, but got stream is "+n.getTokenType().error,this.stream.getPrev().getSpan());let s=i;if(a)if(this.stream.match("as",!0))n=this.stream.expect(_.Identifier),this.checkKeyword(n.getSpan()),s=n.getSpan().getText();else{let o=i;if(o.startsWith("@"))throw new he("Expected as",this.stream.getPrev().getSpan());{let r=o.lastIndexOf(".");r!=-1&&(o=o.substring(r+1))}s=o}return new hs(new z(t,n.getSpan()),i,s,!a)}throw new he("Expected identifier or string, but got stream is EOF",this.stream.getPrev().getSpan())}parseReturn(){let t=this.stream.expect("return").getSpan();if(this.stream.match(";",!1))return new Lt(t,null);let n=this.parseExpression();return new Lt(new z(t,n.getSpan()),n)}parseAsync(){let t=this.stream.expect("async").getSpan(),n=this.parseExpression();return new cs(new z(t,this.stream.getPrev().getSpan()),n)}parseIfStatement(){let t=this.stream.expect("if").getSpan(),n=this.parseExpression(),i=this.parseFunctionBody(),a=[],s=[];for(;this.stream.hasMore()&&this.stream.match("else",!0);)if(this.stream.hasMore()&&this.stream.match("if",!1)){let r=this.stream.expect("if").getSpan(),l=this.parseExpression(),u=this.parseFunctionBody(),c=new z(r,u.length>0?u[u.length-1].getSpan():r);a.push(new pi(c,l,u,[]))}else{s=s.concat(this.parseFunctionBody());break}let o=this.stream.getPrev().getSpan();return new pi(new z(t,o),n,i,a,s)}parseNewExpression(t){let n=this.parseAccessOrCall(_.Identifier,!0),i=new z(t.getSource(),t.getStart(),this.stream.getPrev().getSpan().getEnd());return n instanceof Kt?this.parseAccessOrCall(new Nt(i,n.getMethod(),n.getArguments())):n instanceof Tn?this.parseAccessOrCall(new Nt(i,n.getFunction(),n.getArguments())):this.parseAccessOrCall(new Nt(i,n,[]))}parseArguments(){this.stream.expect(_.LeftParantheses);let t=[];for(;this.stream.hasMore()&&!this.stream.match(_.RightParantheses,!1);)t.push(this.parseExpression()),this.stream.match(_.RightParantheses,!1)||this.stream.expect(_.Comma);return t}parseForStatement(){let t=this.stream.expect("for").getSpan();this.stream.expect("(");let n=null,i=this.stream.expect(_.Identifier).getSpan();this.checkKeyword(i),this.stream.match(_.Comma,!0)&&(n=i,i=this.stream.expect(_.Identifier).getSpan(),this.checkKeyword(i)),this.stream.expect("in");let a=this.parseExpression();this.stream.expect(")");let s=this.parseFunctionBody();return new ps(new z(t,this.stream.getPrev().getSpan()),n&&n.getText(),i&&i.getText(),a,s)}parseVarDefine(){let t=this.stream.consume().getSpan(),n=this.stream.expect(_.Identifier);this.checkKeyword(n.getSpan());let i;return this.stream.match(_.Assignment,!0)?i=new yn(new z(t,this.stream.getPrev().getSpan()),n.getText(),this.parseExpression(),t.getText()):i=new yn(new z(t,this.stream.getPrev().getSpan()),n.getText(),null,t.getText()),i}parseTryStatement(){let t=this.stream.expect("try"),n=this.parseFunctionBody(),i=[],a=[],s=null;return this.stream.match("catch",!0)&&(this.stream.match("(",!0)&&(s=this.stream.expect(_.Identifier).getText(),this.stream.expect(")")),i=i.concat(this.parseFunctionBody())),this.stream.match("finally",!0)&&(a=a.concat(this.parseFunctionBody())),new _s(new z(t.getSpan(),this.stream.getPrev().getSpan()),s,n,i,a)}parseWhileStatement(){let t=this.stream.expect("while").getSpan(),n=this.parseExpression(),i=this.parseFunctionBody(),a=this.stream.getPrev().getSpan();return new ds(new z(t,a),n,i)}parseFunctionBody(){this.stream.expect("{");let t=[];for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let n=this.parseStatement(!0);n!=null&&(this.validateNode(n),t.push(n))}return this.expectCloseing(),t}expectCloseing(){return!this.stream.hasMore(),this.stream.expect("}").getSpan()}parseExpression(t){return this.parseTernaryOperator(t)}parseTernaryOperator(t){let n=this.parseBinaryOperator(0,t);if(this.stream.match(_.Questionmark,!0)){let i=this.parseTernaryOperator(t);this.stream.expect(_.Colon);let a=this.parseTernaryOperator(t);return n instanceof fi&&n.getOperator()===_.Assignment?(n.setRightOperand(new hi(n.getRightOperand(),i,a)),n):new hi(n,i,a)}else return n}parseBinaryOperator(t,n){let i=t+1,a=this.linqLevel>0?bs:Ts,s=i===a.length?this.parseUnaryOperator(n):this.parseBinaryOperator(i,n),o=a[t];for(;this.stream.hasMore()&&this.stream.match(o,!1);){let r=this.stream.consume();if(r.type.inLinq&&this.linqLevel===0)throw new he(r.getText()+" \u53EA\u80FD\u5728Linq\u4E2D\u4F7F\u7528",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());let l=i===a.length?this.parseUnaryOperator(n):this.parseBinaryOperator(i,n);s=new fi(s,r,l,this.linqLevel)}return s}parseUnaryOperator(t){if(this.stream.match(Ss,!1))return new Sn(this.stream.consume(),this.parseUnaryOperator(t));if(this.stream.match(_.LeftParantheses,!1)){let n=this.stream.expect(_.LeftParantheses).getSpan(),i=this.stream.makeIndex(),a=[];for(;this.stream.match(_.Identifier,!1);){let o=this.stream.expect(_.Identifier);if(a.push(o.getSpan().getText()),!this.stream.match(_.Comma,!0)&&this.stream.match(_.RightParantheses,!0)){if(this.stream.match(_.Lambda,!0))return this.parseLambdaBody(n,a);break}}if(this.stream.match(_.RightParantheses,!0)&&this.stream.match(_.Lambda,!0))return this.parseLambdaBody(n,a);this.stream.resetIndex(i);let s=this.parseExpression();return this.stream.expect(_.RightParantheses),this.parseAccessOrCall(s)}else{let n=this.parseAccessOrCallOrLiteral(t);return(n instanceof ct||n instanceof Ve||n instanceof Wt)&&this.stream.match([_.PlusPlus,_.MinusMinus],!1)?new Sn(this.stream.consume(),n):n}}parseLambdaBody(t,n){let i=this.stream.makeIndex(),a=[];try{let s=this.parseExpression();return a.push(new Lt(new z("return",0,6),s)),new bn(new z(t,s.getSpan()),n,a)}catch{if(this.stream.resetIndex(i),this.stream.match(_.LeftCurly,!0)){for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let r=this.parseStatement(!0);this.validateNode(r),a.push(r)}let o=this.expectCloseing();return new bn(new z(t,o),n,a)}else{let o=this.parseStatement();return a.push(new Lt(new z("return",0,6),o)),new bn(new z(t,o.getSpan()),n,a)}}}parseSpreadAccess(t){t||(t=this.stream.expect(_.Spread));let n=this.parseExpression();return new fs(new z(t.getSpan(),n.getSpan()),n)}parseAccessOrCall(t,n){if(t===_.StringLiteral||t===_.Identifier){let i=this.stream.expect(t),a=i.getSpan();if(t===_.Identifier&&a.getText()==="new")return this.parseNewExpression(a);if(t===_.Identifier&&this.stream.match(_.Lambda,!0))return this.parseLambdaBody(a,[a.getText()]);let s=t===_.StringLiteral?this.createStringLiteral(i):new Ve(a,a.getText());return this.parseAccessOrCall(s,n)}else{for(;this.stream.hasMore()&&this.stream.match([_.LeftParantheses,_.LeftBracket,_.Period,_.QuestionPeriod,_.ColonColon],!1);)if(this.stream.match(_.ColonColon,!1)){let i=this.stream.consume().getSpan(),a=[],s=this.stream.expect(_.Identifier),o=s.getSpan();this.stream.match(_.LeftParantheses,!1)&&(a=this.parseArguments(),o=this.stream.expect(_.RightParantheses).getSpan()),t=new gi(new z(i,o),s.getText(),t,a)}else if(this.stream.match(_.LeftParantheses,!1)){let i=this.parseArguments(),a=this.stream.expect(_.RightParantheses).getSpan();if(t instanceof Ve||t instanceof Wt)t=new Tn(new z(t.getSpan(),a),t,i,this.linqLevel>0);else if(t instanceof ct)t=new Kt(new z(t.getSpan(),a),t,i,this.linqLevel>0);else throw new he("Expected a variable, field or method.",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());if(n)break}else if(this.stream.match(_.LeftBracket,!0)){let i=this.parseExpression(),a=this.stream.expect(_.RightBracket).getSpan();t=new Wt(new z(t.getSpan(),a),t,i)}else if(this.stream.match([_.Period,_.QuestionPeriod],!1)){let i=this.stream.consume().getTokenType()===_.QuestionPeriod;if(this.linqLevel>0&&this.stream.match(_.Asterisk,!1))t=new ct(t.getSpan(),i,this.stream.expect(_.Asterisk).getSpan(),!0);else{let a=this.stream.expect([_.Identifier,_.SqlAnd,_.SqlOr]).getSpan();t=new ct(new z(t.getSpan(),a),t,i,a,!1)}}return t}}parseMapLiteral(){let t=this.stream.expect(_.LeftCurly).getSpan(),n=[],i=[];for(;this.stream.hasMore()&&!this.stream.match("}",!1);){let s;if(this.stream.hasPrev()){let o=this.stream.getPrev();if(this.stream.match(_.Spread,!1)&&(o.getTokenType()===_.LeftCurly||o.getTokenType()===_.Comma)){let r=this.stream.expect(_.Spread);n.push(r),i.push(this.parseSpreadAccess(r)),this.stream.match([_.Comma,_.RightCurly],!1)&&this.stream.match(_.Comma,!0);continue}}this.stream.match(_.StringLiteral,!1)?s=this.stream.expect(_.StringLiteral):this.stream.match(_.LeftBracket,!0)?(s=this.parseExpression(),this.stream.expect(_.RightBracket)):s=this.stream.expect(_.Identifier),n.push(s),this.stream.match([_.Comma,_.RightCurly],!1)?(this.stream.match(_.Comma,!0),s instanceof Ve?i.push(s):s.getTokenType()===_.Identifier?i.push(new Ve(s.getSpan(),s.getText())):i.push(new Ae(s.getSpan(),"java.lang.String"))):(this.stream.expect(":"),i.push(this.parseExpression()),this.stream.match("}",!1)||this.stream.expect(_.Comma))}let a=this.stream.expect("}").getSpan();return new St(new z(t,a),n,i)}parseListLiteral(){let t=this.stream.expect(_.LeftBracket).getSpan(),n=[];for(;this.stream.hasMore()&&!this.stream.match(_.RightBracket,!1);)n.push(this.parseExpression()),this.stream.match(_.RightBracket,!1)||this.stream.expect(_.Comma);let i=this.stream.expect(_.RightBracket).getSpan();return new yt(new z(t,i),n)}parseSelect(){let t=this.stream.expect("select",!0).getSpan();this.linqLevel++;let n=this.parseLinqFields();this.stream.expect("from",!0);let i=this.parseLinqField(),a=this.parseLinqJoins(),s;this.stream.match("where",!0,!0)&&(s=this.parseExpression());let o=this.parseGroup(),r;this.stream.match("having",!0,!0)&&(r=this.parseExpression());let l=this.parseLinqOrders();this.linqLevel--;let u,c;this.stream.match("limit",!0,!0)&&(u=this.parseExpression(),this.stream.match("offset",!0,!0)&&(c=this.parseExpression()));let f=this.stream.getPrev().getSpan();return new mi(new z(t,f),n,i,a,s,o,r,l,u,c)}parseGroup(){let t=[];if(this.stream.match("group",!0,!0)){this.stream.expect("by",!0);do{let n=this.parseExpression();t.push(new Pt(n.getSpan(),n,null))}while(this.stream.match(_.Comma,!0))}return t}parseLinqOrders(){let t=[];if(this.stream.match("order",!0,!0)){this.stream.expect("by",!0);do{let n=this.parseExpression(),i=1;this.stream.match(["desc","asc"],!1,!0)&&this.stream.consume().getText()==="desc"&&(i=-1),t.push(new vs(new z(n.getSpan(),this.stream.getPrev().getSpan()),n,null,i))}while(this.stream.match(_.Comma,!0))}return t}parseLinqField(){let t=this.parseExpression();if(this.stream.match(_.Identifier,!1)&&!this.stream.match(vi,!1,!0)){let n=this.stream.expect(_.Identifier).getSpan();return new Pt(new z(t.getSpan(),n),t,n.getText())}return new Pt(t.getSpan(),t,null)}parseLinqFields(){let t=[];do{let n=this.parseExpression();if(this.stream.match(_.Identifier,!1)&&!this.stream.match(vi,!1,!0)){if(n instanceof di)throw new he("* \u540E\u8FB9\u4E0D\u80FD\u8DDF\u522B\u540D",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());if(n instanceof ct&&n.isWhole())throw new he(n.getSpan().getText()+" \u540E\u8FB9\u4E0D\u80FD\u8DDF\u522B\u540D",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());let i=this.stream.consume().getSpan();t.push(new Pt(new z(n.getSpan(),i),n,i.getText()))}else t.push(new Pt(n.getSpan(),n,null))}while(this.stream.match(_.Comma,!0));if(t.length===0)throw new he("\u81F3\u5C11\u8981\u67E5\u8BE2\u4E00\u4E2A\u5B57\u6BB5",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());return t}parseLinqJoins(){let t=[];do{let n=this.stream.match("left",!1),i=n?this.stream.consume().getSpan():null;if(this.stream.match("join",!0)){i=n?i:this.stream.getPrev().getSpan();let a=this.parseLinqField();this.stream.expect("on");let s=this.parseExpression();t.push(new ms(new z(i,this.stream.getPrev().getSpan()),n,a,s))}}while(this.stream.match(["left","join"],!1));return t}parseAccessOrCallOrLiteral(t){let n;if(t&&this.stream.match("}",!1))return null;if(this.stream.match(_.Spread,!1))n=this.parseSpreadAccess();else if(this.stream.match(_.Identifier,!1))this.stream.match("async",!1)?n=this.parseAsync():this.stream.match("select",!1,!0)?n=this.parseSelect():n=this.parseAccessOrCall(_.Identifier);else if(this.stream.match(_.LeftCurly,!1))n=this.parseMapLiteral();else if(this.stream.match(_.LeftBracket,!1))n=this.parseListLiteral();else if(this.stream.match(_.StringLiteral,!1))n=this.createStringLiteral(this.stream.expect(_.StringLiteral));else if(this.stream.match(_.BooleanLiteral,!1))n=new Ae(this.stream.expect(_.BooleanLiteral).getSpan(),"java.lang.Boolean");else if(this.stream.match(_.DoubleLiteral,!1))n=new Ae(this.stream.expect(_.DoubleLiteral).getSpan(),"java.lang.Double");else if(this.stream.match(_.FloatLiteral,!1))n=new Ae(this.stream.expect(_.FloatLiteral).getSpan(),"java.lang.Float");else if(this.stream.match(_.ByteLiteral,!1))n=new Ae(this.stream.expect(_.ByteLiteral).getSpan(),"java.lang.Byte");else if(this.stream.match(_.ShortLiteral,!1))n=new Ae(this.stream.expect(_.ShortLiteral).getSpan(),"java.lang.Short");else if(this.stream.match(_.IntegerLiteral,!1))n=new Ae(this.stream.expect(_.IntegerLiteral).getSpan(),"java.lang.Integer");else if(this.stream.match(_.LongLiteral,!1))n=new Ae(this.stream.expect(_.LongLiteral).getSpan(),"java.lang.Long");else if(this.stream.match(_.DecimalLiteral,!1))n=new Ae(this.stream.expect(_.DecimalLiteral).getSpan(),"java.math.BigDecimal");else if(this.stream.match(_.RegexpLiteral,!1)){let i=this.stream.expect(_.RegexpLiteral);n=new Ae(i.getSpan(),"java.util.regex.Pattern")}else this.stream.match(_.NullLiteral,!1)?n=new Ae(this.stream.expect(_.NullLiteral).getSpan(),"null"):this.linqLevel>0&&this.stream.match(_.Asterisk,!1)?n=new di(this.stream.expect(_.Asterisk).getSpan()):this.stream.match(_.Language,!1)&&(n=new gs(this.stream.consume().getSpan(),this.stream.consume().getSpan()));if(n==null)throw new he("Expected a variable, field, map, array, function or method call, or literal.",this.stream.hasMore()?this.stream.consume().getSpan():this.stream.getPrev().getSpan());return this.parseAccessOrCall(n)}createStringLiteral(t){if(t.getTokenStream()==null)return new Ae(t.getSpan(),"java.lang.String");let n=this.stream;this.stream=t.getTokenStream();let i=[];for(;this.stream.hasMore();)i.push(this.parseExpression());return this.stream=n,new Ae(t.getSpan(),"java.lang.String",i)}findBestMatch(t,n){let i=t.expressions().filter(a=>a);for(let a in i){let s=this.findBestMatch(i[a],n);if(s)return s}return t.getSpan().inPosition(n)?t:null}}const Ei=e=>{var n;const t={};return(n=e==null?void 0:e.children)==null||n.forEach(i=>t[i.name]=i),t};function On(e,t){let n=[],i={name:"",value:"",dataType:"",required:!1,validateType:"",expression:"",error:"",description:"",children:[]};if(e instanceof St)e.keys.forEach((a,s)=>{var u,c,f,g,O;const o=a.span.getText().replace(/['"]/g,"");let r=e.values[s],l=He(_e({},i),{description:((u=t[o])==null?void 0:u.description)||"",required:((c=t[o])==null?void 0:c.required)===!0,validateType:((f=t[o])==null?void 0:f.validateType)||"",expression:((g=t[o])==null?void 0:g.expression)||"",error:((O=t[o])==null?void 0:O.error)||"",name:o,value:Ti(r)?r.span.getText().trim():"",dataType:An(r)});(r instanceof St||r instanceof yt)&&(l.children=On(r,Ei(t[o]))),n.push(l)});else if(e instanceof yt&&e.values[0]){let a=e.values[0],s=He(_e({},i),{value:Ti(a)?a.span.getText().trim():"",dataType:An(a)});(a instanceof St||a instanceof yt)&&(s.children=On(a,{})),n.push(s)}return n}function Ti(e){return!(e instanceof St||e instanceof yt)}function An(e){if(e instanceof St)return"Object";if(e instanceof yt)return"Array";e instanceof Sn&&(e=e.operand);let t=e.javaType.substring(e.javaType.lastIndexOf(".")+1);return t==="Integer"&&Number(e.span.getText())>2147483647||Number(e.span.getText())<-2147483648?"Long":t==="null"?"Object":t}function bi(e,t){t=t||{};try{JSON.parse(e);let i=new zt(new Tt(Yt(e))).parseExpression();return{name:"",value:"",dataType:An(i),required:t.required,validateType:t.validateType||"",expression:t.expression||"",error:t.error||"",description:t.description||"",children:On(i,Ei(t))}}catch{}}const Si=(e,t,n,i)=>{let a=-1,s=ne.getImportClass();if(n!==0&&t&&(a=s.length)>0){t=t.toLowerCase(),ne.getDefineModules().filter(r=>r.toLowerCase().indexOf(t)>-1).forEach(r=>e.push({label:r,filterText:r,kind:W.CompletionItemKind.Module,detail:r,insertText:r,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet}));let o=new Set;for(let r=0;r-1){let c=l.substring(l.lastIndexOf(".")+1);if(u===0){let f=l.substring(t.length),g=f;if(f.startsWith("."))g=t+".",f=t.substring(t.lastIndexOf(".")+1)+".";else{if(f.indexOf(".")===-1){e.push({sortText:`2${c}`,label:c,kind:W.CompletionItemKind.Class,filterText:l,detail:l,insertText:c,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet});continue}let O=f.substring(0,f.indexOf(".")+1);g=t+O,f=t.substring(t.lastIndexOf(".")+1)+O}if(o.has(f))continue;o.add(f),e.push({sortText:`1${f}`,label:f,kind:W.CompletionItemKind.Folder,filterText:l,detail:g.replace(/\.$/,""),insertText:f,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,command:{id:"editor.action.triggerSuggest"}})}else c.toLowerCase().indexOf(t)>-1&&e.push({sortText:`2${c}`,label:c,kind:W.CompletionItemKind.Class,filterText:c,detail:l,insertText:l,range:new it(i.lineNumber,n+1,i.lineNumber,i.column)})}}}else ne.getDefineModules().forEach(o=>e.push({label:o,filterText:o,kind:W.CompletionItemKind.Module,detail:o,insertText:o,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet}))},ys=(e,t,n,i)=>{let a=n.indexOf('"')+1;if(a===0&&(a=n.indexOf("'")+1),a===0){n=n.trim().replace("import","").trim(),Si(e,n,i+1,t);return}let s=n.substring(i).trim().replace(/['|"]/g,"");if(s.startsWith("@")){if(s.indexOf(" ")>-1)return;let o=ne.getApiFinder();(o&&o()||[]).forEach(r=>{let l="@"+r.method+":"+r.path;e.push({sortText:l,label:l,kind:W.CompletionItemKind.Reference,filterText:l,detail:r.name,insertText:l,range:new it(t.lineNumber,a+1,t.lineNumber,t.column)})}),o=ne.getFunctionFinder(),(o&&o()||[]).forEach(r=>{let l="@"+r.path;e.push({sortText:l,label:l,kind:W.CompletionItemKind.Reference,filterText:l,detail:r.name,insertText:l,range:new it(t.lineNumber,a+1,t.lineNumber,t.column)})});return}Si(e,s,a,t)},wt=async(e,t,n,i,a)=>{if(n=n||{},i&&i instanceof Ve&&await i.getJavaType(n)==="java.lang.Object"){let u=ne.getImportClass();const c=i.variable;u.forEach(f=>{let g=f.substring(f.lastIndexOf(".")+1);g.indexOf(c)>-1&&e.push({sortText:`${g}`,label:g,kind:W.CompletionItemKind.Class,filterText:g,detail:f,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,command:{id:"editor.action.scrollUp1Line"},insertText:g+(a?"()":""),additionalTextEdits:[{forceMoveMarkers:!0,text:`import ${f}\r +`,range:new it(1,0,1,0)}]})})}ne.findFunction().forEach(u=>{e.push({sortText:u.sortText||u.fullName,label:u.fullName,filterText:u.name,kind:W.CompletionItemKind.Method,detail:u.comment,insertText:u.insertText,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})});let s=e.map(u=>u.detail),o=t.match(/[a-zA-Z_$]+/ig)||[],r=o.length,l=Object.keys(n);l.forEach(u=>{e.push({label:u,filterText:u,kind:W.CompletionItemKind.Variable,detail:n[u],insertText:u,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})}),r>2&&Array.from(new Set(o)).filter((u,c)=>c+2{e.push({label:u,filterText:u,kind:W.CompletionItemKind.Text,detail:u,insertText:u,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})})},yi=async(e,t)=>{let n=await ne.loadClass(e),i=e.lastIndexOf("."),a=i>0?e.substring(i+1):e,s=ne.findEnums(n);if(s)for(let l=0;l({label:l[0],kind:W.CompletionItemKind.Struct,detail:l[2]||l[1],insertText:l[1],filterText:l[0],insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet,range:s}));return i.length>1&&i.trim().indexOf("import")===0?(ys(r,t,i,i.indexOf("import")+6),o=!0):i.endsWith("::")?r=["int","long","date","string","short","byte","float","double","json","stringify","sql"].map(l=>({label:l,detail:`\u8F6C\u6362\u4E3A${l==="stringify"?"json\u5B57\u7B26\u4E32":l==="sql"?"sql\u53C2\u6570\u7C7B\u578B":l}`,insertText:l,kind:W.CompletionItemKind.TypeParameter,insertTextRules:W.CompletionItemInsertTextRule.InsertAsSnippet})):n.length>1?await Os(r,n):await wt(r,n,_e(_e(_e({},qt.environmentFunction()),ne.getAutoImportClass()),ne.getAutoImportModule())),{suggestions:r,incomplete:o}},triggerCharacters:[".",":"]};let Oi=function(e,t){for(var n=0,i=0,a=e.length;i16777215||n>16777215)){var a=this._length;this._startIndexes[a]=t,this._endIndexes[a]=n,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}}toIndentRanges(t){var n=[];if(this._length<=this._foldingRangesLimit){new Uint32Array(this._length),new Uint32Array(this._length);for(var i=this._length-1,a=0;i>=0;i--,a++)n.push({start:this._startIndexes[i],end:this._endIndexes[i]})}else{for(var s=0,o=this._indentOccurrences.length,i=0;ithis._foldingRangesLimit){o=i;break}s+=r}}var l=t.getOptions().tabSize;new Uint32Array(this._foldingRangesLimit),new Uint32Array(this._foldingRangesLimit);for(var i=this._length-1,a=0;i>=0;i--){var u=this._startIndexes[i],c=t.getLineContent(u),f=Oi(c,l);(f{let n=e.getOptions().tabSize,i=new Is(5e3),a=[],s=e.getLineCount()+1,o=-1,r=-1,l=[];a.push({indent:-1,endAbove:s,line:s});for(let c=e.getLineCount();c>0;c--){let f=e.getLineContent(c);f.startsWith("import")||f.trim().startsWith("import")?o==-1?o=c:r=c:(r>-1&&o>-1&&l.push({start:r,end:o,kind:W.FoldingRangeKind.Imports}),r=-1,o=-1);let g=Oi(f,n),O=a[a.length-1];if(g!==-1){if(O.indent>g){do a.pop(),O=a[a.length-1];while(O.indent>g);var u=O.endAbove-1;u-c>=1&&i.insertFirst(c,u,g)}O.indent===g?O.endAbove=c:a.push({indent:g,endAbove:c,line:c})}}return r>-1&&o>-1&&l.push({start:r,end:o,kind:W.FoldingRangeKind.Imports}),l.concat(i.toIndentRanges(e))}},Cs={signatureHelpRetriggerCharacters:["(",","],signatureHelpTriggerCharacters:["(",","],provideSignatureHelp:async(e,t,n,i)=>{if(i.activeSignatureHelp){let s=i.activeSignatureHelp;return s.activeSignature+=1,s.activeSignature===s.signatures.length&&(s.activeSignature=0),{dispose:function(){},value:s}}let a=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column});try{let s=Yt(a),o=new zt(new Tt(s));const{best:r,env:l}=await o.parseBest(a.length-1);if(r&&r instanceof Kt){let u=r.target,c=await u.getTarget().getJavaType(l),f=u.member.getText(),g=ne.findMethods(await ne.loadClass(c)),O=[];if(g.filter(h=>h.name===f).forEach(h=>{let m=[];for(let p=h.extension?1:0;p0)return{dispose:function(){},value:{activeParameter:0,activeSignature:0,signatures:O}}}}catch{}}},Rn=(e,t,n)=>{n.push({value:`${e}${t.fullName}`}),t.comment&&n.push({value:`${t.comment}`}),t.parameters.forEach((i,a)=>{(a>0||!t.extension)&&n.push({value:`${i.name}\uFF1A${i.comment||i.type}`})}),n.push({value:`\u8FD4\u56DE\u7C7B\u578B\uFF1A\`${t.returnType}\``})},In=(e,t,n,i)=>{let a=ne.findFunction().filter(s=>s.name===e);if(a.length>0)Rn("",a[0],n);else{let s=t[e];if(s&&s.indexOf("@")===0){let o=s.substring(1),r=ne.getOnlineFunction(o);if(r){let l=Array.isArray(r.parameter)?r.parameter:JSON.parse(r.parameter||"[]");l.forEach(u=>u.comment=u.description),Rn("",{fullName:e+" "+r.name,comment:r.description||"",parameters:l,returnType:r.returnType},n)}}else n.push({value:`${i?"\u521B\u5EFA\u5BF9\u8C61":"\u8BBF\u95EE\u53D8\u91CF"}\uFF1A${e}`}),n.push({value:`\u7C7B\u578B\uFF1A${s||"unknow"}`})}},Ls={provideHover:async(e,t)=>{var u,c,f;let n=e.getValue(),i=Yt(n),a=new Tt(i),s=new zt(a),o=s.parse(!0),l=e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}).length;for(let g=0,O=o.length;gC.name===y).forEach(C=>Rn(`${ne.getSimpleClass(A)}.`,C,p)),ne.findEnums(I).filter(C=>C===y).forEach(C=>{p.push({value:`\u8BBF\u95EE\u679A\u4E3E\uFF1A\`${A}.${y}\``})}),ne.findAttributes(I).filter(C=>C.name===y).forEach(C=>{p.push({value:`\u8BBF\u95EE\u5C5E\u6027\uFF1A\`${A}.${y}\``}),C.comment&&p.push({value:`${C.comment}`}),p.push({value:`\u5C5E\u6027\u7C7B\u578B\uFF1A\`${C.type}\``})}),b=h.member.getLine()}else if(h instanceof Tn){let A=h.target;In(A.variable,m,p)}else if(h instanceof Nt){let A=h.identifier;A instanceof Ve&&In(A,m,p,!0)}else if(h instanceof Wt)p.push({value:"\u8BBF\u95EEMap\u6216\u6570\u7EC4"});else if(h instanceof mi)p.push({value:"linq\u67E5\u8BE2"});else return;return{range:new it(b.lineNumber,b.startCol,b.endLineNumber,b.endCol+1),contents:p}}}}},Ns=()=>{const e="mybatis";W.register({id:e}),W.setLanguageConfiguration(e,{comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),W.setMonarchTokensProvider(e,{defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/(<)(where|set|foreach|if|trim)/,["delimiter",{token:"tag",next:"@xml"}]],[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]],xml:[[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@xmlEmbedded",nextEmbedded:"mybatis"}],[/[ \t\r\n]+/],[/(<\/)(where|if|set|foreach|trim)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],xmlEmbedded:[[/<\/(where|if|set|foreach|trim)/,{token:"tag",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}})};function Ee(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}Ee.prototype.clone_empty=function(){var e=new Ee(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e};Ee.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]};Ee.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1};Ee.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};Ee.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};Ee.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};Ee.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1};Ee.prototype.is_empty=function(){return this.__items.length===0};Ee.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};Ee.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(` +`);t!==-1?this.__character_count=e.length-t:this.__character_count+=e.length};Ee.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e};Ee.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};Ee.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};Ee.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};Ee.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function kt(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}kt.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n};kt.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n};kt.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()};kt.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)};function Te(e,t){this.__indent_cache=new kt(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new Ee(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}Te.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};Te.prototype.get_line_number=function(){return this.__lines.length};Te.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)};Te.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)};Te.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};Te.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};Te.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===` +`&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(` +`);return e===`\r +`?n=n.replace(/([^\r])\n/g,`$1${e}`):e!==` +`&&(n=n.replace(/[\n]/g,e)),n};Te.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};Te.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)};Te.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};Te.prototype.just_added_newline=function(){return this.current_line.is_empty()};Te.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};Te.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(i.item(0).indexOf(e)!==0&&i.item(-1)!==t){this.__lines.splice(n+1,0,new Ee(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}};function xn(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}var Ps="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",Ai="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",Cn="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",Ri="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",ws="(?:\\\\u[0-9a-fA-F]{4}|["+Ps+Cn+"])",ks="(?:\\\\u[0-9a-fA-F]{4}|["+Ai+Cn+Ri+"])*";const Ii=new RegExp(ws+ks,"g"),Ds=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+Ai+Cn+Ri+"])+"),Dt=/[\n\r\u2028\u2029]/,$t=new RegExp(`\r +|`+Dt.source),Mt=new RegExp($t.source,"g");function ze(e,t){this.raw_options=$s(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}ze.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return typeof n=="object"?n!==null&&typeof n.concat=="function"&&(i=n.concat()):typeof n=="string"&&(i=n.split(/[^a-zA-Z0-9_/-]+/)),i};ze.prototype._get_boolean=function(e,t){var n=this.raw_options[e],i=n===void 0?!!t:!!n;return i};ze.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return typeof n=="string"&&(i=n.replace(/\\r/,"\r").replace(/\\n/,` +`).replace(/\\t/," ")),i};ze.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i};ze.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values: +`+t+` +You passed in: '`+this.raw_options[e]+"'");return i[0]};ze.prototype._get_selection_list=function(e,t,n){if(!t||t.length===0)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values: +`+t+` +You passed in: '`+this.raw_options[e]+"'");return i};ze.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(n){return t.indexOf(n)===-1})};function $s(e,t){var n={};e=Ms(e);var i;for(i in e)i!==t&&(n[i]=e[i]);if(t&&e[t])for(i in e[t])n[i]=e[t][i];return n}function Ms(e){var t={},n;for(n in e){var i=n.replace(/-/g,"_");t[i]=e[n]}return t}var Us=["before-newline","after-newline","preserve-newline"];function xi(e){ze.call(this,e,"js");var t=this.raw_options.brace_style||null;t==="expand-strict"?this.raw_options.brace_style="expand":t==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i0&&(this.__position-=1)};be.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e};function Xe(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}Xe.prototype.restart=function(){this.__position=0};Xe.prototype.isEmpty=function(){return this.__tokens_length===0};Xe.prototype.hasNext=function(){return this.__position=0&&e/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}Fe.prototype=new Ie;Fe.prototype._create=function(){return new Fe(this._input,this)};Fe.prototype._update=function(){this.__set_templated_pattern()};Fe.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t};Fe.prototype.read_options=function(e){var t=this._create();for(var n in Nn)t._disabled[n]=e.templating.indexOf(n)===-1;return t._update(),t};Fe.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t};Fe.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e};Fe.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")};Fe.prototype._read_template=function(){var e="",t=this._input.peek();if(t==="<"){var n=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&n==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&n==="%"&&(e=e||this.__patterns.erb.read())}else t==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e};function Pn(e,t){return t.indexOf(e)!==-1}const S={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:_t.START,RAW:_t.RAW,EOF:_t.EOF};var Li=new Ln(/\/\*/,/\*\//),Bs=/0[xX][0123456789abcdefABCDEF_]*[mMdDlLfFsSbB]?|0[oO][01234567_]*[mMdDlLfFsSbB]?|0[bB][01_]*[mMdDlLfFsSbB]?|\d[\d_]*[mMdDlLfFsSbB]|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,Fs=/[0-9]/,js=/[^\d.]/;const Ut=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" ");var pt=">>>= ... >>= <<= === >>> !== **= => -> ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";pt=pt.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&");pt="\\?\\.(?!\\d) "+pt;pt=pt.replace(/ /g,"|");var Gs=new RegExp(pt);const Ot="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var Hs=Ot.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),Vs=new RegExp("^(?:"+Hs.join("|")+")$"),Xt;const Se=function(e,t){Be.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new Ie(this._input),i=new Fe(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(Ii).matching(Ds),number:n.matching(Bs),punct:n.matching(Gs),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after($t),shebang:n.starting_with(/#!/).until_after($t),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};Se.prototype=new Be;Se.prototype._is_comment=function(e){return e.type===S.COMMENT||e.type===S.BLOCK_COMMENT||e.type===S.UNKNOWN};Se.prototype._is_opening=function(e){return e.type===S.START_BLOCK||e.type===S.START_EXPR};Se.prototype._is_closing=function(e,t){return(e.type===S.END_BLOCK||e.type===S.END_EXPR)&&t&&(e.text==="]"&&t.text==="["||e.text===")"&&t.text==="("||e.text==="}"&&t.text==="{")};Se.prototype._reset=function(){Xt=!1};Se.prototype._get_next_token=function(e){var t=null;this._readWhitespace();var n=this._input.peek();return n===null?this._create_token(S.EOF,""):(t=t||this._read_non_javascript(n),t=t||this._read_multi_string(n),t=t||this._read_string(n),t=t||this._read_word(e),t=t||this._read_singles(n),t=t||this._read_comment(n),t=t||this._read_regexp(n,e),t=t||this._read_xml(n,e),t=t||this._read_punctuation(),t=t||this._create_token(S.UNKNOWN,this._input.next()),t)};Se.prototype._read_word=function(e){var t;if(t=this.__patterns.identifier.read(),t!=="")return t=t.replace(Mt,` +`),!(e.type===S.DOT||e.type===S.RESERVED&&(e.text==="set"||e.text==="get"))&&Vs.test(t)?t==="in"||t==="of"?this._create_token(S.OPERATOR,t):this._create_token(S.RESERVED,t):this._create_token(S.WORD,t);if(t=this.__patterns.number.read(),t!=="")return this._create_token(S.WORD,t)};Se.prototype._read_singles=function(e){var t=null;return e==="("||e==="["?t=this._create_token(S.START_EXPR,e):e===")"||e==="]"?t=this._create_token(S.END_EXPR,e):e==="{"?t=this._create_token(S.START_BLOCK,e):e==="}"?t=this._create_token(S.END_BLOCK,e):e===";"?t=this._create_token(S.SEMICOLON,e):e==="."&&js.test(this._input.peek(1))?t=this._create_token(S.DOT,e):e===","&&(t=this._create_token(S.COMMA,e)),t&&this._input.next(),t};Se.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(e!=="")return e==="="?this._create_token(S.EQUALS,e):e==="?."?this._create_token(S.DOT,e):this._create_token(S.OPERATOR,e)};Se.prototype._read_non_javascript=function(e){var t="";if(e==="#"){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(S.UNKNOWN,t.trim()+` +`);if(t=this.__patterns.include.read(),t)return this._create_token(S.UNKNOWN,t.trim()+` +`);e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(Fs)){do e=this._input.next(),n+=e;while(this._input.hasNext()&&e!=="#"&&e!=="=");return e==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(n+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(n+="{}",this._input.next(),this._input.next())),this._create_token(S.WORD,n)}this._input.back()}else if(e==="<"&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){for(;this._input.hasNext()&&!this._input.testChar(Dt);)t+=this._input.next();return Xt=!0,this._create_token(S.COMMENT,t)}}else if(Xt&&e==="-"&&(t=this.__patterns.html_comment_end.read(),t))return Xt=!1,this._create_token(S.COMMENT,t);return null};Se.prototype._read_comment=function(e){var t=null;if(e==="/"){var n="";if(this._input.peek(1)==="*"){n=this.__patterns.block_comment.read();var i=Li.get_directives(n);i&&i.ignore==="start"&&(n+=Li.readIgnored(this._input)),n=n.replace(Mt,` +`),t=this._create_token(S.BLOCK_COMMENT,n),t.directives=i}else this._input.peek(1)==="/"&&(n=this.__patterns.comment.read(),t=this._create_token(S.COMMENT,n))}return t};Se.prototype._read_multi_string=function(){if(this._input.match(/"""/g)){let e=this._input.readUntilAfter(/"""/g);return this._create_token(S.STRING,'"""'+e)}return null};Se.prototype._read_string=function(e){if(e==="`"||e==="'"||e==='"'){var t=this._input.next();return this.has_char_escapes=!1,e==="`"?t+=this._read_string_recursive("`",!0,"${"):t+=this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=Ys(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(Mt,` +`),this._create_token(S.STRING,t)}return null};Se.prototype._allow_regexp_or_xml=function(e){return e.type===S.RESERVED&&Pn(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===S.END_EXPR&&e.text===")"&&e.opened.previous.type===S.RESERVED&&Pn(e.opened.previous.text,["if","while","for"])||Pn(e.type,[S.COMMENT,S.START_EXPR,S.START_BLOCK,S.START,S.END_BLOCK,S.OPERATOR,S.EQUALS,S.EOF,S.SEMICOLON,S.COMMA])};Se.prototype._read_regexp=function(e,t){if(e==="/"&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),i=!1,a=!1;this._input.hasNext()&&(i||a||this._input.peek()!==e)&&!this._input.testChar(Dt);)n+=this._input.peek(),i?i=!1:(i=this._input.peek()==="\\",this._input.peek()==="["?a=!0:this._input.peek()==="]"&&(a=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(Ii)),this._create_token(S.STRING,n)}return null};Se.prototype._read_xml=function(e,t){if(this._options.e4x&&e==="<"&&this._allow_regexp_or_xml(t)){var n="",i=this.__patterns.xml.read_match();if(i){for(var a=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=a.indexOf("{")===0,o=0;i;){var r=!!i[1],l=i[2],u=!!i[i.length-1]||l.slice(0,8)==="![CDATA[";if(!u&&(l===a||s&&l.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(r?--o:++o),n+=i[0],o<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(Mt,` +`),this._create_token(S.STRING,n)}}return null};function Ys(e){for(var t="",n=0,i=new be(e),a=null;i.hasNext();)if(a=i.match(/([\s]|[^\\]|\\\\)+/g),a&&(t+=a[0]),i.peek()==="\\"){if(i.next(),i.peek()==="x")a=i.match(/x([0-9A-Fa-f]{2})/g);else if(i.peek()==="u")a=i.match(/u([0-9A-Fa-f]{4})/g);else{t+="\\",i.hasNext()&&(t+=i.next());continue}if(!a||(n=parseInt(a[1],16),n>126&&n<=255&&a[0].indexOf("x")===0))return e;if(n>=0&&n<32){t+="\\"+a[0];continue}else n===34||n===39||n===92?t+="\\"+String.fromCharCode(n):t+=String.fromCharCode(n)}return t}Se.prototype._read_string_recursive=function(e,t,n){var i,a;e==="'"?a=this.__patterns.single_quote:e==='"'?a=this.__patterns.double_quote:e==="`"?a=this.__patterns.template_text:e==="}"&&(a=this.__patterns.template_expression);for(var s=a.read(),o="";this._input.hasNext();){if(o=this._input.next(),o===e||!t&&Dt.test(o)){this._input.back();break}else o==="\\"&&this._input.hasNext()?(i=this._input.peek(),i==="x"||i==="u"?this.has_char_escapes=!0:i==="\r"&&this._input.peek(1)===` +`&&this._input.next(),o+=this._input.next()):n&&(n==="${"&&o==="$"&&this._input.peek()==="{"&&(o+=this._input.next()),n===o&&(e==="`"?o+=this._read_string_recursive("}",t,"`"):o+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(o+=this._input.next())));o+=a.read(),s+=o}return s};function J(e,t){return t.indexOf(e)!==-1}function Ks(e){return e.replace(/^\s+/g,"")}function Ws(e){for(var t={},n=0;nn&&(n=e.line_indent_level));var i={mode:t,parent:e,last_token:e?e.last_token:new xn(S.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return i};ie.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new Te(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(V.BlockStatement);var n=new Se(e,this._options);return this._tokens=n.tokenize(),e};ie.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),n=this._options.eol;this._options.eol==="auto"&&(n=` +`,t&&$t.test(t||"")&&(n=t.match($t)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return e=this._output.get_code(n),e};ie.prototype.handle_token=function(e,t){e.type===S.START_EXPR?this.handle_start_expr(e):e.type===S.END_EXPR?this.handle_end_expr(e):e.type===S.START_BLOCK?this.handle_start_block(e):e.type===S.END_BLOCK?this.handle_end_block(e):e.type===S.WORD?this.handle_word(e):e.type===S.RESERVED?this.handle_word(e):e.type===S.SEMICOLON?this.handle_semicolon(e):e.type===S.STRING?this.handle_string(e):e.type===S.EQUALS?this.handle_equals(e):e.type===S.OPERATOR?this.handle_operator(e):e.type===S.COMMA?this.handle_comma(e):e.type===S.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===S.COMMENT?this.handle_comment(e,t):e.type===S.DOT?this.handle_dot(e):e.type===S.EOF?this.handle_eof(e):e.type===S.UNKNOWN?this.handle_unknown(e,t):this.handle_unknown(e,t)};ie.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,i=this._options.keep_array_indentation&&st(this._flags.mode);if(e.comments_before)for(var a=e.comments_before.next();a;)this.handle_whitespace_and_comments(a,t),this.handle_token(a,t),a=e.comments_before.next();if(i)for(var s=0;s0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var o=1;o0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};ie.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)};ie.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===V.Statement&&Pi(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))};ie.prototype.start_of_object_property=function(){return this._flags.parent.mode===V.ObjectLiteral&&this._flags.mode===V.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ue(this._flags.last_token,["get","set"]))};ie.prototype.start_of_statement=function(e){var t=!1;return t=t||ue(this._flags.last_token,["var","let","const"])&&e.type===S.WORD,t=t||Ue(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===V.ObjectLiteral&&this._flags.mode===V.Statement)&&ue(this._flags.last_token,wn)&&!e.newlines,t=t||Ue(this._flags.last_token,"else")&&!(Ue(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===S.END_EXPR&&(this._previous_flags.mode===V.ForInitializer||this._previous_flags.mode===V.Conditional),t=t||this._flags.last_token.type===S.WORD&&this._flags.mode===V.BlockStatement&&!this._flags.in_case&&!(e.text==="--"||e.text==="++")&&this._last_last_text!=="function"&&e.type!==S.WORD&&e.type!==S.RESERVED,t=t||this._flags.mode===V.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ue(this._flags.last_token,["get","set"])),t?(this.set_mode(V.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,ue(e,["do","for","if","while"])),!0):!1};ie.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=V.Expression;if(e.text==="["){if(this._flags.last_token.type===S.WORD||this._flags.last_token.text===")"){ue(this._flags.last_token,Ot)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=V.ArrayLiteral,st(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),J(this._flags.last_token.type,[S.START_EXPR,S.END_EXPR,S.WORD,S.OPERATOR,S.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===S.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,t=V.ForInitializer):J(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=V.Conditional):J(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&e.whitespace_before===""?this._output.space_before_token=!1:(J(this._flags.last_token.text,Ot)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===S.EQUALS||this._flags.last_token.type===S.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===S.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);ue(n,["async","function"])||n.text==="*"&&ue(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===V.ObjectLiteral&&(n.text==="{"||n.text===","||n.text==="*"&&(i.text==="{"||i.text===","))&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===S.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(J(this._last_last_text,["function","yield"])||this._flags.mode===V.ObjectLiteral&&J(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===S.START_BLOCK?this.print_newline():(this._flags.last_token.type===S.END_EXPR||this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===S.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()};ie.prototype.handle_end_expr=function(e){for(;this._flags.mode===V.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,e.text==="]"&&st(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===S.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(e),this.restore_mode(),Pi(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===V.Conditional&&(this._previous_flags.mode=V.Expression,this._flags.do_block=!1,this._flags.do_while=!1)};ie.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===S.END_EXPR?(this.set_mode(V.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(V.BlockStatement):n&&(J(n.text,[":",","])&&J(t.type,[S.STRING,S.WORD,S.RESERVED])||J(t.text,["get","set","..."])&&J(n.type,[S.WORD,S.RESERVED]))?J(this._last_last_text,["class","interface"])?this.set_mode(V.BlockStatement):this.set_mode(V.ObjectLiteral):this._flags.last_token.type===S.OPERATOR&&(this._flags.last_token.text==="=>"||this._flags.last_token.text==="->")?this.set_mode(V.BlockStatement):J(this._flags.last_token.type,[S.EQUALS,S.START_EXPR,S.COMMA,S.OPERATOR])||ue(this._flags.last_token,["return","throw","import","default"])?this.set_mode(V.ObjectLiteral):this.set_mode(V.BlockStatement);var i=!t.comments_before&&t.text==="}",a=i&&this._flags.last_word==="function"&&this._flags.last_token.type===S.END_EXPR;if(this._options.brace_preserve_inline){var s=0,o=null;this._flags.inline_frame=!0;do if(s+=1,o=this._tokens.peek(s-1),o.newlines){this._flags.inline_frame=!1;break}while(o.type!==S.EOF&&!(o.type===S.END_BLOCK&&o.opened===e))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==S.OPERATOR&&(a||this._flags.last_token.type===S.EQUALS||ue(this._flags.last_token,Jt)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(st(this._previous_flags.mode)&&(this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.COMMA)&&((this._flags.last_token.type===S.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==S.OPERATOR&&this._flags.last_token.type!==S.START_EXPR&&(this._flags.last_token.type===S.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),!i&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()};ie.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===V.Statement;)this.restore_mode();var t=this._flags.last_token.type===S.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:this._options.brace_style==="expand"?t||this.print_newline():t||(st(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)};ie.prototype.handle_word=function(e){if(e.type===S.RESERVED){if(J(e.text,["set","get"])&&this._flags.mode!==V.ObjectLiteral)e.type=S.WORD;else if(e.text==="import"&&this._tokens.peek().text==="(")e.type=S.WORD;else if(J(e.text,["as","from"])&&!this._flags.import_block)e.type=S.WORD;else if(this._flags.mode===V.ObjectLiteral){var t=this._tokens.peek();t.text===":"&&(e.type=S.WORD)}}if(this.start_of_statement(e)?ue(this._flags.last_token,["var","let","const"])&&e.type===S.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!Ft(this._flags.mode)&&(this._flags.last_token.type!==S.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==S.EQUALS&&(this._options.preserve_newlines||!ue(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while)if(Ue(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&Ue(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===V.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&ue(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if((this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.EQUALS||this._flags.last_token.type===S.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e)),Ue(e,"function")){(J(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(J(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===S.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===S.RESERVED||this._flags.last_token.type===S.WORD?ue(this._flags.last_token,["get","set","new","export"])||ue(this._flags.last_token,wn)?this._output.space_before_token=!0:Ue(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===S.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Ft(this._flags.mode)||st(this._flags.mode))||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var n="NONE";if(this._flags.last_token.type===S.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":ue(e,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===S.SEMICOLON&&this._flags.mode===V.BlockStatement?n="NEWLINE":this._flags.last_token.type===S.SEMICOLON&&Ft(this._flags.mode)||this._flags.last_token.type===S.STRING||this._flags.last_token.type===S.RESERVED||this._flags.last_token.type===S.WORD||this._flags.last_token.text==="*"&&(J(this._last_last_text,["function","yield"])||this._flags.mode===V.ObjectLiteral&&J(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===S.START_BLOCK?this._flags.inline_frame?n="SPACE":n="NEWLINE":this._flags.last_token.type===S.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),ue(e,Ot)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?n="SPACE":n="NEWLINE"),ue(e,["else","catch","finally"]))if((!(this._flags.last_token.type===S.END_BLOCK&&this._previous_flags.mode===V.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var i=this._output.current_line;i.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else n==="NEWLINE"?ue(this._flags.last_token,Jt)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&ue(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==S.END_EXPR?(this._flags.last_token.type!==S.START_EXPR||!ue(e,["var","let","const"]))&&this._flags.last_token.text!==":"&&(Ue(e,"if")&&Ue(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):ue(e,Ot)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&st(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():n==="SPACE"&&(this._output.space_before_token=!0);e.previous&&(e.previous.type===S.WORD||e.previous.type===S.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===S.RESERVED&&(e.text==="do"?this._flags.do_block=!0:e.text==="if"?this._flags.if_block=!0:e.text==="import"?this._flags.import_block=!0:this._flags.import_block&&Ue(e,"from")&&(this._flags.import_block=!1))};ie.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===V.Statement&&!(this._flags.if_block&&Ue(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)};ie.prototype.handle_string=function(e){e.text.startsWith("`")&&e.newlines===0&&e.whitespace_before===""&&(e.previous.text===")"||this._flags.last_token.type===S.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===S.RESERVED||this._flags.last_token.type===S.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.EQUALS||this._flags.last_token.type===S.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===S.END_EXPR&&(e.previous.text==="]"||e.previous.text===")")&&e.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)};ie.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0};ie.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(Ft(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===V.ObjectLiteral||this._flags.mode===V.Statement&&this._flags.parent.mode===V.ObjectLiteral?(this._flags.mode===V.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)};ie.prototype.handle_operator=function(e){var t=e.text==="*"&&(ue(this._flags.last_token,["function","yield"])||J(this._flags.last_token.type,[S.START_BLOCK,S.COMMA,S.END_BLOCK,S.SEMICOLON])),n=J(e.text,["-","+"])&&(J(this._flags.last_token.type,[S.START_BLOCK,S.START_EXPR,S.EQUALS,S.OPERATOR])||J(this._flags.last_token.text,Ot)||this._flags.last_token.text===",");if(!this.start_of_statement(e)){var i=!t;this.handle_whitespace_and_comments(e,i)}if(ue(this._flags.last_token,Jt)){this._output.space_before_token=!0,this.print_token(e);return}if(e.text==="*"&&this._flags.last_token.type===S.DOT){this.print_token(e);return}if(e.text==="::"){this.print_token(e);return}if(this._flags.last_token.type===S.OPERATOR&&J(this._options.operator_position,Ni)&&this.allow_wrap_or_preserved_newline(e),e.text===":"&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==S.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var a=!0,s=!0,o=!1;if(e.text===":"?this._flags.ternary_depth===0?a=!1:(this._flags.ternary_depth-=1,o=!0):e.text==="?"&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&J(e.text,Ut)){var r=e.text===":",l=r&&o,u=r&&!o;switch(this._options.operator_position){case Bt.before_newline:this._output.space_before_token=!u,this.print_token(e),(!r||l)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case Bt.after_newline:this._output.space_before_token=!0,!r||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case Bt.preserve_newline:u||this.allow_wrap_or_preserved_newline(e),a=!(this._output.just_added_newline()||u),this._output.space_before_token=a,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),a=!1;var c=this._tokens.peek();s=c&&J(c.type,[S.WORD,S.RESERVED])}else e.text==="..."?(this.allow_wrap_or_preserved_newline(e),a=this._flags.last_token.type===S.START_BLOCK,s=!1):(J(e.text,["--","++","!","~"])||n)&&((this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),a=!1,s=!1,e.newlines&&(e.text==="--"||e.text==="++"||e.text==="~")&&this.print_newline(!1,!0),this._flags.last_token.text===";"&&Ft(this._flags.mode)&&(a=!0),this._flags.last_token.type===S.RESERVED?a=!0:this._flags.last_token.type===S.END_EXPR?a=!(this._flags.last_token.text==="]"&&(e.text==="--"||e.text==="++")):this._flags.last_token.type===S.OPERATOR&&(a=J(e.text,["--","-","++","+"])&&J(this._flags.last_token.text,["--","-","++","+"]),J(e.text,["+","-"])&&J(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode===V.BlockStatement&&!this._flags.inline_frame||this._flags.mode===V.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline());this._output.space_before_token=this._output.space_before_token||a,this.print_token(e),this._output.space_before_token=s};ie.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&e.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),e.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!Dt.test(e.text)&&!e.newlines){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}else this.print_block_commment(e,t)};ie.prototype.print_block_commment=function(e,t){var n=zs(e.text),i,a=!1,s=!1,o=e.whitespace_before,r=o.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(n[0]),this.print_newline(!1,t),n.length>1){for(n=n.slice(1),a=Xs(n,"*"),s=Js(n,o),a&&(this._flags.alignment=1),i=0;i{Ns();const e="magicscript";W.register({id:e}),W.setLanguageConfiguration(e,{wordPattern:/(-?\d*\.\d\w*)|([^`~!#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]+)/g,brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:W.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:W.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:W.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:W.IndentAction.None,removeText:1}}],comments:{lineComment:"//",blockComment:["/*","*/"]},operators:["<=",">=","==","!=","+","-","*","/","%","&","|","!","&&","||","?",":","++","--","+=","-=","*=","/="],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string.multi"]},{open:"",close:""},{open:"'},{open:"",close:""},{open:"'},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]},{open:"/**",close:" */",notIn:["string"]}]}),W.setMonarchTokensProvider(e,cn),W.registerCompletionItemProvider(e,Rs),W.registerFoldingRangeProvider(e,xs),W.registerSignatureHelpProvider(e,Cs),W.registerHoverProvider(e,Ls),W.registerDocumentFormattingEditProvider(e,{provideDocumentFormattingEdits(t,n,i){return[{text:new ie(t.getValue()).beautify(),range:t.getFullModelRange()}]}})};function ye(e,t,n){var i={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null,binaryType:"blob"};n||(n={});for(var a in i)typeof n[a]!="undefined"?this[a]=n[a]:this[a]=i[a];this.url=e,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,o,r=!1,l=!1,u=document.createElement("div");u.addEventListener("open",function(f){s.onopen(f)}),u.addEventListener("close",function(f){s.onclose(f)}),u.addEventListener("connecting",function(f){s.onconnecting(f)}),u.addEventListener("message",function(f){s.onmessage(f)}),u.addEventListener("error",function(f){s.onerror(f)}),this.addEventListener=u.addEventListener.bind(u),this.removeEventListener=u.removeEventListener.bind(u),this.dispatchEvent=u.dispatchEvent.bind(u);function c(f,g){var O=document.createEvent("CustomEvent");return O.initCustomEvent(f,!1,!1,g),O}this.open=function(f){if(o=new WebSocket(s.url,t||[]),o.binaryType=this.binaryType,f){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else u.dispatchEvent(c("connecting")),this.reconnectAttempts=0;(s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var g=o,O=setTimeout(function(){(s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),l=!0,g.close(),l=!1},s.timeoutInterval);o.onopen=function(h){clearTimeout(O),(s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=o.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var m=c("open");m.isReconnect=f,f=!1,u.dispatchEvent(m)},o.onclose=function(h){if(clearTimeout(p),o=null,r)s.readyState=WebSocket.CLOSED,u.dispatchEvent(c("close"));else{s.readyState=WebSocket.CONNECTING;var m=c("connecting");m.code=h.code,m.reason=h.reason,m.wasClean=h.wasClean,u.dispatchEvent(m),!f&&!l&&((s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),u.dispatchEvent(c("close")));var p=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},p>s.maxReconnectInterval?s.maxReconnectInterval:p)}},o.onmessage=function(h){(s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,h.data);var m=c("message");m.data=h.data,u.dispatchEvent(m)},o.onerror=function(h){(s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,h),u.dispatchEvent(c("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(f){if(o)return(s.debug||ye.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,f),o.send(f);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(f,g){typeof f=="undefined"&&(f=1e3),r=!0,o&&o.close(f,g)},this.refresh=function(){o&&o.close()}}ye.prototype.onopen=function(e){};ye.prototype.onclose=function(e){};ye.prototype.onconnecting=function(e){};ye.prototype.onmessage=function(e){};ye.prototype.onerror=function(e){};ye.debugAll=!1;ye.CONNECTING=WebSocket.CONNECTING;ye.OPEN=WebSocket.OPEN;ye.CLOSING=WebSocket.CLOSING;ye.CLOSED=WebSocket.CLOSED;function jt(e){this.listeners={},this.socket=new ye(e),this.socket.onmessage=this.messageReceived,this.socket.onconnecting=()=>{E.status("\u8FDE\u63A5\u8C03\u8BD5\u670D\u52A1\u5668...")},this.socket.onopen=()=>{E.status("\u8FDE\u63A5\u8C03\u8BD5\u670D\u52A1\u5668\u6210\u529F"),E.$emit("ws_open")},this.socket.onclose=()=>{E.status("\u8C03\u8BD5\u670D\u52A1\u5668\u5DF2\u65AD\u5F00"),E.$emit("ws_close")}}jt.prototype.on=function(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)};jt.prototype.messageReceived=function(e){let t=e.data,n=t.indexOf(","),i=n===-1?t:t.substring(0,n),a=[];for(;n>-1;){if(t=t.substring(n+1),t.startsWith("[")||t.startsWith("{")){a.push(JSON.parse(t));break}n=t.indexOf(","),a.push(n===-1?t:t.substring(0,n))}E.$emit("ws_"+i,a)};jt.prototype.send=function(e){this.socket.send(e)};jt.prototype.close=function(){this.socket.close()};var Re={OPEN:"open",BREAKPOINT:"breakpoint",LOGIN:"login",RESUME_BREAKPOINT:"resume_breakpoint",LOGIN_RESPONSE:"login_response",LOG:"log",LOGS:"logs",EXCEPTION:"exception",USER_LOGIN:"user_login",USER_LOGOUT:"user_logout",GET_ONLINE:"get_online",ONLINE_USERS:"online_users",SET_FILE_ID:"set_file_id",INTO_FILE_ID:"into_file_id"},w={DO_SAVE:"doSave",DO_TEST:"doTest",LOGINED:"logined",LOGOUT:"logout",DO_DOWNLOAD:"do-download",DO_UPLOAD:"do-upload",DO_PUSH:"do-push",DO_RECENT:"do-recent",OPEN:"open",SELECT_NAVBAR_BY_ITEM:"select-navbar-by-item",OPEN_WITH_ID:"open-with-id",OPEN_ITEM:"open-item",DELETE_FILE:"delete-file",DEBUG_CONTINUE:"debug-continue",DEBUG_SETPINTO:"debug-setpinto",SWITCH_THEME:"switch-theme",OPEN_GROUP:"open-group",SWITCH_TOOLBAR:"switch-toolbar",STATUS:"status",MESSAGE:"message",CLOSE:"close",OPEN_EMPTY:"open-empty",LOAD_RESOURCES:"load-resources",DO_SEARCH:"doSearch",NOTIFY:"notify",RELOAD_RESOURCES:"reload-resources",RELOAD_RESOURCES_FINISH:"reload-resources-finish",LOAD_RESOURCES_FINISH:"load-resources-finish"};const kn="magic-";class Zs{constructor(){}set(t,n){(Array.isArray(n)||typeof n=="object")&&(n=JSON.stringify(n)),localStorage.setItem(`${kn}${t}`,n)}remove(t){localStorage.removeItem(`${kn}${t}`)}get(t){return localStorage.getItem(`${kn}${t}`)}}var je=new Zs;const eo=R("div",{class:"magic-mounts"},null,-1),to={props:{config:{type:Object,required:!0}},setup(e){const t=e;Qs(),self.MonacoEnvironment={getWorker:function(p,b){return b==="json"?new Xi:new Ji}},t.config.header=t.config.header||{};const n=P(!1),i=P(null),a=P(null);Ze("ELEMENT_ROOT",a),Ze("activateUserFiles",P({}));let s=null;const o=t.config;D.BASE_URL=o.baseURL||"",D.SERVER_URL=o.serverURL||"";let r=`${location.protocol}//${location.host}${location.pathname}`.replace("/index.html","");D.BASE_URL.startsWith("http")?r=D.BASE_URL:D.BASE_URL.startsWith("/")?r=`${location.protocol}/${location.host}${D.BASE_URL}`:r=r+"/"+D.BASE_URL,Y.setBaseURL(D.BASE_URL),E.status("\u52A0\u8F7Dclasses\u4FE1\u606F..."),Promise.all([ne.initClasses(),ne.initImportClass()]).then(()=>E.status("classes\u4FE1\u606F\u52A0\u8F7D\u5B8C\u6BD5")).catch(p=>{E.status("classes\u4FE1\u606F\u52A0\u8F7D\u5931\u8D25")}).finally(()=>g);const l=t.config.options||[];Ze("options",l),l.length===0&&Y.sendGet("/options").success(p=>{p.forEach(b=>l.push(b))});const u=()=>{D.LOGINED=!0,s=new jt(ut(r.replace(/^http/,"ws")+"/console")),Pe(()=>i.value.loadResources())};E.$on(w.LOGINED,u);const c=()=>{fetch("https://img.shields.io/maven-metadata/v.json?label=maven-central&metadataUrl=https%3A%2F%2Frepo1.maven.org%2Fmaven2%2Forg%2Fssssssss%2Fmagic-api%2Fmaven-metadata.xml").then(p=>{p.status===200&&p.json().then(b=>{D.config.version!==b.value.replace("v","")?(E.status(`\u7248\u672C\u68C0\u6D4B\u5B8C\u6BD5\uFF0C\u6700\u65B0\u7248\u672C\u4E3A\uFF1A${b.value},\u5EFA\u8BAE\u66F4\u65B0\uFF01\uFF01`),b.value!==je.get(D.IGNORE_VERSION)&&E.$emit(w.NOTIFY,{title:"\u66F4\u65B0\u63D0\u793A",icon:"warning",content:`\u68C0\u6D4B\u5230\u5DF2\u6709\u65B0\u7248\u672C${b.value}\uFF0C\u662F\u5426\u66F4\u65B0\uFF1F`,buttons:[{title:"\u66F4\u65B0\u65E5\u5FD7",onClick:()=>{window.open("http://www.ssssssss.org/magic-api/changelog.html")}},{title:"\u4E0D\u518D\u63D0\u9192",onClick:()=>{je.set(D.IGNORE_VERSION,b.value)}}]})):E.status("\u7248\u672C\u68C0\u6D4B\u5B8C\u6BD5\uFF0C\u5F53\u524D\u5DF2\u662F\u6700\u65B0\u7248")})})},f=()=>{D.HEADER_MAGIC_TOKEN_VALUE=je.get(D.STORE.token)||D.HEADER_MAGIC_TOKEN_VALUE,E.status("\u5C1D\u8BD5\u81EA\u52A8\u767B\u5F55"),Y.sendPost("/login").success(p=>{p?(E.status("\u81EA\u52A8\u767B\u5F55\u6210\u529F"),E.$emit(w.LOGINED)):n.value=!0})},g=()=>{typeof hideMaLoading=="function"&&hideMaLoading()},O=()=>{Y.execute({url:"/config.json",method:"get"}).then(p=>{if(D.config=p.data,t.config.inJar&&location.href.indexOf(p.data.web)>-1){let b=location.href.substring(0,location.href.indexOf(p.data.web));D.SERVER_URL=ut(b+"/"+(p.data.prefix||""))}if(D.config.version&&D.config.version!==D.MAGIC_API_VERSION_TEXT){const b=`\u68C0\u6D4B\u5230\u524D\u540E\u7AEF\u7248\u672C\u4E0D\u4E00\u81F4\uFF08\u524D\u7AEF\uFF1A${D.MAGIC_API_VERSION_TEXT} \u540E\u7AEF\uFF1A${D.config.version}\uFF09\uFF0C\u8BF7\u68C0\u67E5`;E.status(b,!1),E.$emit(w.NOTIFY,{icon:"error",title:"\u7248\u672C\u68C0\u6D4B",content:b})}g(),f(),t.config.checkUpdate!==!1&&c()}).catch(p=>{console.error(p),g(),me.alert("\u52A0\u8F7D\u914D\u7F6E\u5931\u8D25","\u52A0\u8F7D\u914D\u7F6E\u5931\u8D25"),E.status("\u52A0\u8F7D\u914D\u7F6E\u5931\u8D25",!1)})},h=()=>{const p=document.body;re.bind(p,re.Ctrl|re.S,()=>E.$emit(w.DO_SAVE,!0)),re.bind(p,re.Ctrl|re.Q,()=>E.$emit(w.DO_TEST)),re.bind(p,re.Ctrl|re.E,()=>E.$emit(w.DO_RECENT)),re.bind(p,re.F8,()=>E.$emit(w.DEBUG_CONTINUE)),re.bind(p,re.F6,()=>E.$emit(w.DEBUG_SETPINTO)),re.bind(p,re.Ctrl|re.Shift|re.F,()=>E.$emit(w.DO_SEARCH))};ft(()=>{h()}),Yi(()=>re.unbind());const m=et({});return ln("default",Aa),ln("dark",Ra),Ke.setTheme("default"),Object.keys(o.themes||{}).forEach(p=>{ln(p,o.themes[p])}),E.$on(w.MESSAGE,(p,b)=>{s&&(b?s.send(`${p},${b}`):s.send(p))}),E.$event(Re.OPEN,()=>{D.CLIENT_ID=Ia(16),E.send(Re.LOGIN,[D.HEADER_MAGIC_TOKEN_VALUE,D.CLIENT_ID].join(","))}),E.$event(Re.LOGIN_RESPONSE,([p,b])=>{p==="1"&&(D.user=b)}),E.$on(w.LOGOUT,()=>{n.value=!0,s&&s.close(),s=null}),(p,b)=>{const A=T("magic-header"),I=T("magic-main"),y=T("magic-status-bar"),C=T("magic-login"),$=T("magic-notify");return v(),L("div",{class:"magic-editor",style:$e(k(m)),onContextmenu:b[1]||(b[1]=ve(()=>{},["prevent"])),ref:(q,ee)=>{ee.root=q,a.value=q}},[d(A,{themeStyle:k(m)},null,8,["themeStyle"]),d(I,{ref:(q,ee)=>{ee.componentMain=q,i.value=q},onOnLoad:O},null,512),d(y,{config:k(o)},null,8,["config"]),d(C,{value:n.value,"onUpdate:value":b[0]||(b[0]=q=>n.value=q)},null,8,["value"]),d($),eo],36)}}};var no=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:to});const io={class:"magic-empty"},ao={props:{text:{type:String,default:"\u65E0\u6570\u636E"}},setup(e){return(t,n)=>(v(),L("div",io,[R("p",null,j(e.text),1)]))}};var so=H(ao,[["__scopeId","data-v-594aa0b8"]]),oo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:so});const ro={class:"icon"},lo={props:{loading:Boolean,loadingText:{type:String,default:"\u52A0\u8F7D\u4E2D..."},style:Object},setup(e){return(t,n)=>{const i=T("magic-icon");return e.loading?(v(),L("div",{key:0,class:"magic-loading",style:$e(e.style)},[R("p",null,[R("span",ro,[d(i,{icon:"refresh",size:"20px"})]),Ye(" "+j(e.loadingText),1)])],4)):gt(t.$slots,"default",{key:1},void 0,!0)}}};var uo=H(lo,[["__scopeId","data-v-6d83fffa"]]),co=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:uo});const _o={props:{language:{type:String,required:!0},editorConfig:{type:Object,default:{}},value:Array},setup(){return{instance:null,instancePromise:null}},mounted(){this.instance=Ke.createDiffEditor(this.$refs.editor,He(_e({},this.editorConfig),{enableSplitViewResizing:!1,language:this.language,minimap:{enabled:!1},folding:!1,lineDecorationsWidth:20,wordWrap:"on",fixedOverflowWidgets:!1,fontFamily:D.EDITOR_FONT_FAMILY,fontSize:D.EDITOR_FONT_SIZE,fontLigatures:!0,renderWhitespace:"none",theme:D.THEME,readOnly:this.readonly===!0,value:this.value||"",automaticLayout:!0})),this.instance.setModel({original:Ke.createModel(this.value[0],this.language),modified:Ke.createModel(this.value[1],this.language)})},methods:{getEditorDom(){return this.$refs.editor},getInstance(){return this.instance}},watch:{value(e){this.instance.setModel({original:Ke.createModel(e[0],this.language),modified:Ke.createModel(e[1],this.language)})}}},po={class:"magic-monaco-editor",ref:"editor"};function ho(e,t,n,i,a,s){return v(),L("div",po,null,512)}var fo=H(_o,[["render",ho],["__scopeId","data-v-7c84fbe0"]]),go=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:fo});const mo={props:{language:{type:String,required:!0},editorConfig:{type:Object,default:{}},value:String,decorations:Array,readonly:{type:Boolean,default:!1},supportBreakpoint:{type:Boolean,default:!1},matches:String},setup(){return{instance:null,instancePromise:null}},emits:["update:value","change","update:decorations"],mounted(){this.instance=Ke.create(this.$refs.editor,He(_e({},this.editorConfig),{language:this.language,minimap:{enabled:!1},folding:!0,lineDecorationsWidth:this.supportBreakpoint?35:void 0,wordWrap:"on",fontFamily:D.EDITOR_FONT_FAMILY,fontSize:D.EDITOR_FONT_SIZE,fontLigatures:!0,renderWhitespace:"none",theme:D.THEME,readOnly:this.readonly===!0,value:this.value||"",automaticLayout:!0})),this.instance.onDidChangeModelContent(e=>{this.$emit("update:value",this.instance.getValue()),this.$emit("change")}),this.instance.addAction({id:"editor.action.triggerSuggest.extension",label:"\u89E6\u53D1\u4EE3\u7801\u63D0\u793A",precondition:"!suggestWidgetVisible && !markersNavigationVisible && !parameterHintsVisible && !findWidgetVisible",run:()=>{this.instance.trigger(null,"editor.action.triggerSuggest",{})}}),Yn.registerCommand("editor.action.scrollUp1Line",()=>{this.instance.setScrollTop(this.instance.getScrollTop()-22)}),this.instance.addCommand(lt.Alt|vt.US_SLASH,()=>{let e=this.instance.getAction("editor.action.triggerParameterHints"),t=this.instance.getAction("editor.action.triggerSuggest.extension");e.run().then(()=>{setTimeout(()=>{t.isSupported()&&t.run()},0)})},"!findWidgetVisible && !inreferenceSearchEditor && !editorHasSelection"),this.initKeys(),this.initDecorations()},methods:{getEditorDom(){return this.$refs.editor},match(){this.matches&&Pe(()=>{let e=this.instance.getModel().findMatches(this.matches);e&&e.length>0&&this.instance.setSelections(e.map(({range:t})=>({positionColumn:t.endColumn,positionLineNumber:t.endLineNumber,selectionStartColumn:t.startColumn,selectionStartLineNumber:t.startLineNumber})))})},initKeys(){[["editor.action.triggerParameterHints",lt.Alt|vt.US_SLASH],["editor.action.triggerSuggest",lt.Alt|vt.US_SLASH],["toggleSuggestionDetails",lt.Alt|vt.US_SLASH,Qi.deserialize("suggestWidgetVisible && textInputFocus")],["editor.action.formatDocument",lt.CtrlCmd|lt.Alt|vt.KEY_L],["editor.action.marker.nextInFiles",lt.CtrlCmd|vt.F8]].forEach(t=>{var s;let n=t[0];const{handler:i,when:a}=(s=Yn.getCommand(n))!=null?s:{};if(i){let o=sn._coreKeybindings.findIndex(r=>r.command===n);o>0&&sn._coreKeybindings.splice(o,1),this.instance._standaloneKeybindingService.addDynamicKeybinding(n,t[1],i,a||t[2])}}),sn._cachedMergedKeybindings=null},getInstance(){return this.instance},initDecorations(){this.instance.onMouseDown(e=>{if(!e.target.element.classList.contains("codicon")&&e.target.detail&&e.target.detail.offsetX&&e.target.detail.offsetX>=0&&e.target.detail.offsetX<=65){var t=e.target.position.lineNumber;if(this.instance.getModel().getLineContent(t).trim()==="")return;let i=this.instance.getLineDecorations(t).filter(a=>a.options.linesDecorationsClassName==="breakpoints");i&&i.length>0?this.instance.getModel().deltaDecorations([i[0].id],[]):this.instance.getModel().deltaDecorations([],[{range:new it(t,1,t,1),options:{isWholeLine:!0,linesDecorationsClassName:"breakpoints",className:"breakpoint-line"}}]),this.updateDecoration()}})},appendDecoration(e){const t=this.instance.deltaDecorations([],e);return this.updateDecoration(),t},removedDecorations(e){this.instance.deltaDecorations(e,[]),this.updateDecoration()},updateDecoration(){this.$emit("update:decorations",this.instance.getModel().getAllDecorations())}},watch:{value(e){e!==this.instance.getValue()&&(this.instance.setValue(e||""),this.match(),this.$emit("change"))},matches(){this.match()}}},vo={class:"magic-monaco-editor",ref:"editor"};function Eo(e,t,n,i,a,s){return v(),L("div",vo,null,512)}var To=H(mo,[["render",Eo],["__scopeId","data-v-319cefd8"]]),bo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:To});const So={props:{max:Number,min:Number,direction:String,reverse:{type:Boolean,default:!1}},setup(e){return{style:P({[e.direction==="x"?"width":"height"]:e.min+"px"})}},mounted(){new ResizeObserver(this.updateCss).observe(this.$refs.resizer)},methods:{updateCss(){try{const e=this.$refs.resizer.parentElement;this.$refs.resizer.style.setProperty("--width",e.offsetWidth+"px"),this.$refs.resizer.style.setProperty("--height",e.offsetHeight+"px")}catch{}},mousedown(e){const t=this.direction==="x",n=t?e.clientX:e.clientY,i=e.target.parentElement.getBoundingClientRect();document.onmousemove=a=>{let s=t?i.width:i.height;t?this.reverse?s=n-a.clientX+i.width:s=a.clientX-n+i.width:this.reverse?s=a.clientY-n+i.height:s=n-a.clientY+i.height,s>=this.min&&s<=this.max&&(this.style[t?"width":"height"]=`${s}px`)},document.onmouseup=()=>{document.onmousemove=document.onmouseup=null},e.stopPropagation(),e.preventDefault()}}};function yo(e,t,n,i,a,s){return v(),L("div",{class:de(`magic-resizer-${this.direction}`),style:$e(i.style)},[gt(e.$slots,"default",{},void 0,!0),R("div",{class:de(["magic-resizer-event",{reverse:n.reverse}]),onMousedown:t[0]||(t[0]=(...o)=>s.mousedown&&s.mousedown(...o)),ref:"resizer"},null,34)],6)}var Oo=H(So,[["render",yo],["__scopeId","data-v-7de8c22c"]]),Ao=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Oo});const Ro={props:{info:Object},setup(e){return(t,n)=>null}};var Io=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ro});const Dn=e=>(tt("data-v-4b164a55"),e=e(),nt(),e),xo={class:"magic-function-info"},Co=Dn(()=>R("label",null,"\u8FD4\u56DE\u503C",-1)),Lo=Dn(()=>R("label",null,"\u51FD\u6570\u540D\u79F0",-1)),No=Dn(()=>R("label",null,"\u51FD\u6570\u8DEF\u5F84",-1)),Po={setup(e){const t=ae("info"),n=[{title:"\u51FD\u6570\u53C2\u6570",component:X("magic-function-parameter")},{title:"\u51FD\u6570\u63CF\u8FF0",component:X("magic-api-description")}];return(i,a)=>{const s=T("magic-select"),o=T("magic-input"),r=T("magic-navbar-item"),l=T("magic-navbar");return v(),L(Q,null,[R("div",xo,[R("form",null,[Co,d(s,{width:"100px",options:i.$FUNCTION_RETURN_TYPES,"default-select":i.$DEFAULT_FUNCTION_RETURN_TYPE,value:k(t).method,"onUpdate:value":a[0]||(a[0]=u=>k(t).method=u)},null,8,["options","default-select","value"]),Lo,d(o,{value:k(t).name,"onUpdate:value":a[1]||(a[1]=u=>k(t).name=u),placeholder:"\u8BF7\u8F93\u5165\u51FD\u6570\u540D\u79F0",width:"200px"},null,8,["value"]),No,d(o,{value:k(t).path,"onUpdate:value":a[2]||(a[2]=u=>k(t).path=u),placeholder:"\u8BF7\u8F93\u5165\u51FD\u6570\u8DEF\u5F84",width:"auto",style:{flex:"1"}},null,8,["value"])])]),d(l,{direction:"horizontal",ref:(u,c)=>{c.navbar=u},style:{flex:"1"},"allow-close":!1},{default:x(()=>[(v(),L(Q,null,ce(n,(u,c)=>d(r,{key:c,title:u.title},{default:x(()=>[(v(),U(X(u.component),{info:k(t)},null,8,["info"]))]),_:2},1032,["title"])),64))]),_:1},512)],64)}}};var wo=H(Po,[["__scopeId","data-v-4b164a55"]]),ko=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:wo});const Do={props:{info:Object},setup(e){return(t,n)=>null}};var $o=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Do});const Mo={class:"magic-navbar-item"},Uo={props:{title:String,style:Object,show:{type:Boolean,default:!0},to:HTMLElement},setup(e){return(t,n)=>(v(),L("div",Mo,[gt(t.$slots,"default",{},void 0,!0)]))}};var Bo=H(Uo,[["__scopeId","data-v-30388e35"]]),Fo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Bo}),jo="",Go=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:jo});const Ho={props:{icon:String,size:String},setup(e){const n={fontSize:e.size};return(i,a)=>(v(),L("i",{class:de(`magic-icon magic-icon-${e.icon}`),style:n},null,2))}};var $n=H(Ho,[["__scopeId","data-v-50969699"]]),Vo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:$n}),Yo={props:{direction:{type:String,default:""},reverse:{type:Boolean,default:!1},defaultSelect:{type:Number,default:0},allowClose:{type:Boolean,default:!0},spliter:Boolean,value:Array,to:HTMLElement},setup(e,t){const n=P(e.defaultSelect);return{slots:pe(()=>t.slots.default()[0].children),navbars:pe(()=>t.slots.default()[0].children.flatMap(i=>i.props)),selectIndex:n}},methods:{select(e){this.selectIndex=e}},render(){const e=i=>{const a=parseInt(Math.random()*1e8),s=i.length*6;return oe("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:22,height:s},[oe("defs",oe("path",{id:`path-text-${a}`,d:this.reverse?`M6,0 L6,${s}`:`M14,${s} L14,0`})),oe("text",{fill:"var(--main-color)"},oe("textPath",{"xlink:href":`#path-text-${a}`},i))])},t=i=>{if(this.spliter&&this.direction==="vertical"&&i.match(/\w/g)){const a=[];let s="",o=1,r;const l=i.split("");for(let u=0,c=l.length;u{const s=[oe("div",{class:"magic-navbar-title"},[...t(i.title)])];i.icon&&s.push(oe($n,{icon:i.icon}));const o=i.style||{};return i.show===!1&&(o.display="none"),oe("li",{class:this.selectIndex===a?"selected":"",style:o,onClick:()=>{this.selectIndex===a&&this.allowClose?this.selectIndex=-1:this.selectIndex=a}},s)}))];return this.slots.forEach((i,a)=>{const s=a!==this.selectIndex||i.props.show===!1?{display:"none"}:{};this.to?n.push(oe(Gn,{to:this.to},oe("div",{class:"magic-navbar-body",style:s},i))):n.push(oe("div",{class:"magic-navbar-body",style:s},i))}),oe("div",{class:`magic-navbar magic-navbar__${this.direction}`+(this.reverse?" reverse":"")},n)}},Ko=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Yo}),Wo="",qo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Wo}),zo={props:{tabs:Array,className:String,value:Object,allowClose:{type:Boolean}},emits:["update:value","change","close","item-contextmenu"],setup(e){const t=P({}),n=P({});function i(o,r,l){switch(l){case"dragstart":t.value=o,r.stopPropagation();break;case"dragenter":n.value=o,r.stopPropagation();break;case"dragend":if(t.value!==n.value){const u=e.tabs.indexOf(t.value),c=e.tabs.indexOf(n.value);e.tabs.splice(u,1),e.tabs.splice(c,0,t.value)}n.value={},r.stopPropagation();break;case"dragover":t.value!==n.value&&r.preventDefault();break}}const a=P({});function s(o){let r=o.wheelDelta||o.detail;a.value.value.el.scrollLeft+=r>0?-100:100}return{selectIndex:P(0),draggableItem:t,draggableTargetItem:n,tabDraggable:i,scrollbar:a,scrollbarHandler:s}},mounted(){Pe(()=>{this.scrollbar.value.el.addEventListener("DOMMouseScroll",this.scrollbarHandler,!1),this.scrollbar.value.el.addEventListener("mousewheel",this.scrollbarHandler,!1)})},destroyed(){Pe(()=>{this.scrollbar.value.el.removeEventListener("DOMMouseScroll",this.scrollbarHandler),this.scrollbar.value.el.removeEventListener("mousewheel",this.scrollbarHandler)})},render(){const e=this.tabs&&oe("ul",this.tabs.map((t,n)=>{const i=[this.$slots.default({tab:t})];return this.allowClose&&i.push(oe($n,{icon:"close",size:"12px",style:{marginLeft:"5px"},onClick:a=>{this.$emit("close",t),a.stopPropagation(),a.preventDefault()}})),oe("li",{class:[this.value===t?"selected":"",t===this.draggableTargetItem?"draggable-target-item":""],onClick:a=>{this.value!==t&&(this.$emit("update:value",t),this.$emit("change",t)),a.stopPropagation(),a.preventDefault()},onMousedown:a=>{a.which===2&&this.allowClose&&this.$emit("close",t)},onContextmenu:a=>{this.$emit("item-contextmenu",a,t,n),a.preventDefault()},draggable:!0,onDragenter:a=>this.tabDraggable(t,a,"dragenter"),onDragstart:a=>this.tabDraggable(t,a,"dragstart"),onDragend:a=>this.tabDraggable(t,a,"dragend"),onDragover:a=>this.tabDraggable(t,a,"dragover")},i)}));return this.scrollbar.value=e,oe("div",{class:"magic-tab none-select"+(this.className?" "+this.className:"")},e)}},Xo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:zo});const Jo={class:"magic-table-row"},wi={props:{title:String,row:Object,flex:String,width:String,align:String},setup(e){return(t,n)=>(v(),L("div",Jo,[gt(t.$slots,"default",{row:e.row})]))}};var Qo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:wi}),Zo="",er=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Zo}),tr={props:{data:{type:Array,default:[]},width:String,border:{type:Boolean,default:!1}},emits:["clickRow","contextmenu"],render(){const e=this.$slots.default(),t=n=>{n=n||{};let i=[];if(n.width){let a=`width: ${n.width}`;!n.width.endsWith("%")&&!isNaN(n.width)&&(a+="px"),i.push(a),i.push("flex:none")}else n.flex&&i.push(`flex: ${n.flex}`);return n.align&&i.push(`text-align: ${n.align}`),i.join(";")};return oe("div",{class:"magic-table"+(this.border?" magic-table__border":"")},[oe("div",{class:"magic-table-header none-select"},e.map(n=>oe("div",{class:"magic-table-column",style:t(n.props)},n.props.title))),oe("div",{class:"magic-table-body",onScroll:n=>{n.target.scrollTop+n.target.offsetHeight+40>=n.target.scrollHeight&&this.$emit("loadNext")}},this.data.map((n,i)=>oe(wi,{row:n,onClick:()=>{this.$emit("clickRow",i)}},{default:()=>e.map(a=>oe("div",{class:"magic-table-column",onContextmenu:s=>{this.$emit("contextmenu",s,n),s.stopPropagation(),s.preventDefault()},style:t(a.props)},a.children.default({row:n})))})))])}},nr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:tr}),ir="",ar=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ir}),sr={props:{data:Array,sort:Boolean,descending:Boolean,filter:String,filterText:Function,selected:Object,draggable:{type:Boolean,default:!1},onMove:{type:Function,defeault:()=>new Promise(e=>e(!0))}},emits:["drag","contextmenu","onMove","itemClick"],setup(e,t){const n=t.emit,i=et({item:{},itemParent:{},target:{},targetParent:{}});function a(s,o,r,l){function u(){return!(i.item===i.target||i.itemParent===i.target||!i.target.folder&&i.itemParent===i.targetParent)}switch(l){case"dragstart":i.item=o,i.itemParent=s,r.stopPropagation();break;case"dragenter":i.target=o,i.targetParent=s,r.stopPropagation();break;case"dragover":u()&&r.preventDefault();break;case"dragend":if(!u())break;e.onMove(o,i.target||i.targetParent).then(c=>{if(c){const f=i.itemParent||{children:e.data};f.children.splice(f.children.indexOf(o),1),i.target.folder?(i.target.children=i.target.children||[],i.target.children.push(i.item)):(i.targetParent.children=i.targetParent.children||[],i.targetParent.children.push(i.item)),e.sort&&It(i.target.folder?i.target.children:i.targetParent.children,e.descending,"name"),i.target={},i.targetParent={}}}),r.stopPropagation();break}n("drag",l,i,r)}return e.sort&&(It(e.data,e.descending,"name","children"),mt(()=>e.data,s=>{It(e.data,e.descending,"name","children")}),mt(()=>e.descending,s=>{It(e.data,e.descending,"name","children")})),{draggableItem:i,itemDraggable:a}},data(){return{scrollId:"",scrollItem:null}},methods:{scrollIntoView(e){this.scrollId="s"+new Date().getTime()+""+parseInt(Math.random()*1e7),this.scrollItem=e;const t=n=>{let i=!1;for(const a in n){const s=n[a];if(i=s===e){s.opened!==void 0&&(s.opened=!0);break}else if(s.children&&s.children.length>0&&(i=t(s.children))){s.opened=!0;break}}return i};t(this.data)&&Pe(()=>{const n=document.querySelector("#"+this.scrollId);n&&n.scrollIntoView(!0)})}},render(){const e=n=>this.filter?this.filterText(we(n)).indexOf(this.filter)>-1||n.children&&n.children.some(i=>e(i)):!0,t=(n,i,a)=>{const s=a>0?{paddingLeft:`${a*17}px`}:{};return e(i)&&oe("li",{onDblclick:o=>{i.folder&&(i.opened=!i.opened),o.stopPropagation(),o.preventDefault()},onClick:o=>{this.$emit("itemClick",i),o.stopPropagation(),o.preventDefault()},onContextmenu:o=>{this.$emit("contextmenu",i,o),o.stopPropagation(),o.preventDefault()},draggable:this.draggable,onDragenter:o=>this.itemDraggable(n,i,o,"dragenter"),onDragstart:o=>this.itemDraggable(n,i,o,"dragstart"),onDragend:o=>this.itemDraggable(n,i,o,"dragend"),onDragover:o=>this.itemDraggable(n,i,o,"dragover")},[oe("div",{class:["magic-tree-item",i===this.draggableItem.target?"draggable-target-item":"",i===this.selected?"selected":""],style:s,id:this.scrollItem===i||this.scrollItem===i.id?this.scrollId:void 0},i.folder?this.$slots.folder({item:i}):this.$slots.file({item:i})),i.folder&&i.opened&&oe("ul",{class:i.opened&&"opened"||"hide"},i.children&&i.children.map(o=>t(i,o,a+1)))])};return oe("div",{class:"magic-tree none-select"},oe("ul",{},this.data&&this.data.map(n=>t(null,n,0))))}},or=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sr});const rr=["onMousedown"],lr={props:{value:{type:Boolean,default:!0},className:String,showClose:{type:Boolean,default:!0},shade:{type:Boolean,default:!0},padding:{type:String,default:"5px 10px"},height:{type:String,default:"auto"},width:{type:String,default:"auto"},moveable:{type:Boolean,default:!0},overflow:{type:String,default:"auto"},top:String,maxHeight:String,maxWidth:String,contentHeight:String,title:String,content:String,onClose:Function},emits:["update:value","onClose"],setup(e,{expose:t,emit:n}){const i=e,a=P(i.top||"auto"),s=P("auto"),o=P("relative"),r=P(null);function l(){n("update:value",!1)}const u=()=>{n("close"),typeof i.onClose=="function"&&i.onClose(),l()};let c,f=!1,g,O;function h(y){i.moveable&&(c=y,g=y.target.parentNode.getBoundingClientRect(),O=document.getElementsByClassName("magic-editor")[0].getBoundingClientRect(),f=!0)}function m(y){if(i.moveable&&f){let C=Math.min(Math.max(g.top+(y.pageY-c.pageY),O.y),O.y+O.height-g.height),$=Math.min(Math.max(g.left+(y.pageX-c.pageX),O.x),O.x+O.width-g.width);a.value=C+"px",s.value=$+"px",o.value="absolute"}}let p=!1;const b=()=>{!p&&r.value&&(o.value="absolute",s.value=r.value.getBoundingClientRect().x+"px"),p=!0};i.top&&Ki(b);const A=y=>{i.showClose&&y.keyCode===27&&u()};function I(y){f=!1}return t({close:u}),(y,C)=>{const $=T("magic-icon");return e.value?(v(),U(Gn,{key:0,to:".magic-editor"},[R("div",{class:de(["magic-dialog",(e.shade?"magic-dialog__shade":"")+(e.className?" "+e.className:"")]),tabindex:"1",onMousemove:m,onMouseup:I,onKeydown:A},[R("div",{class:"magic-dialog-main",style:$e({position:o.value,top:a.value,left:s.value,width:e.width,height:e.height,"max-width":e.maxWidth}),ref:(q,ee)=>{ee.dialog=q,r.value=q}},[R("div",{ref:(q,ee)=>{ee.title=q},class:de(["magic-dialog-header none-select",{moveable:e.moveable}]),onMousedown:h},[Ye(j(e.title)+" ",1),e.showClose?(v(),L("span",{key:0,onMousedown:ve(u,["stop"])},[d($,{icon:"close"})],40,rr)):Z("",!0)],34),R("div",{class:"magic-dialog-body",style:$e({padding:e.padding,"max-height":e.maxHeight,height:e.contentHeight,overflow:e.overflow})},[e.content?(v(),L(Q,{key:0},[Ye(j(e.content),1)],64)):gt(y.$slots,"default",{key:1},void 0,!0)],4)],4)],34)])):Z("",!0)}}};var ur=H(lr,[["__scopeId","data-v-cbcc8c70"]]),cr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ur});const _r={class:"magic-notify"},pr=["onClick"],dr=["innerHTML"],hr=["innerHTML"],fr={setup(e){const t={error:'',warning:'',info:''},n=et([]),i=s=>{const o=n.findIndex(r=>s.id===r.id);return o>-1&&n.splice(o,1),!0},a=s=>{s.icon=t[s.icon]||t.info,s.id=parseInt(Math.random()*1e7),n.push(s),s.duration&&setTimeout(()=>i(s),parseInt(s.duration))};return E.$on(w.NOTIFY,a),(s,o)=>{const r=T("magic-icon"),l=T("magic-button"),u=T("magic-button-group");return v(),L("div",_r,[(v(!0),L(Q,null,ce(k(n),(c,f)=>(v(),L("div",{class:"magic-notify-item",key:f},[R("div",{class:"close",onClick:g=>i(c)},[d(r,{icon:"close"})],8,pr),R("h3",null,[(v(),L("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",innerHTML:c.icon},null,8,dr)),Ye(j(c.title),1)]),R("p",{innerHTML:c.content},null,8,hr),c.buttons?(v(),U(u,{key:0},{default:x(()=>[(v(!0),L(Q,null,ce(c.buttons,(g,O)=>(v(),U(l,{key:O,value:g.title,type:"link",onClick:()=>i(c)&&g.onClick()},null,8,["value","onClick"]))),128))]),_:2},1024)):Z("",!0)]))),128))])}}};var gr=H(fr,[["__scopeId","data-v-413b2c61"]]),mr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:gr});const vr={props:{align:{type:String,default:"left"}},setup(e){return(t,n)=>(v(),L("div",{class:de(["magic-button-group",e.align])},[gt(t.$slots,"default",{},void 0,!0)],2))}};var Er=H(vr,[["__scopeId","data-v-70c60ab6"]]),Tr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Er});const br={props:{value:String,type:String},setup(e){return(t,n)=>(v(),L("button",{onClick:n[0]||(n[0]=ve(i=>t.$emit("onClick"),["stop"])),class:de(["magic-button",e.type]),type:"button"},j(e.value),3))}};var Sr=H(br,[["__scopeId","data-v-2e4c463a"]]),yr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Sr});const Or=["checked"],Ar={props:{value:{type:[Number,Boolean],default:()=>!1},checkedHalf:{type:Boolean,default:!1}},setup(e){const t=new Date().getTime()+""+Math.floor(Math.random()*1e3);return(n,i)=>(v(),L("div",{class:"magic-checkbox",onClick:i[1]||(i[1]=ve(a=>n.$emit("click",a),["stop"]))},[R("input",{id:t,ref:(a,s)=>{s.checkbox=a},type:"checkbox",onChange:i[0]||(i[0]=()=>{n.$emit("update:value",n.$refs.checkbox.checked),n.$emit("change",n.$refs.checkbox.checked)}),checked:e.value},null,40,Or),R("label",{for:t,class:de({checkedHalf:e.checkedHalf&&e.value})},null,2)]))}};var Rr=H(Ar,[["__scopeId","data-v-22b807f1"]]),Ir=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Rr});const xr={class:"magic-file"},Cr=["accept","multiple"],Lr={props:{value:[Object,String],placeholder:{type:String,default:"\u8BF7\u9009\u62E9\u6587\u4EF6"},accept:String,multiple:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:t}){const n=e,i=P(null),a=P(null),s=()=>{i.value.files[0]&&(a.value=Array.from(i.value.files).map(o=>o.name).join(",")),t("update:value",n.multiple?i.value.files:i.value.files[0])};return(o,r)=>{const l=T("magic-input"),u=T("magic-icon");return v(),L("div",xr,[R("input",{type:"file",style:{display:"none"},ref:(c,f)=>{f.file=c,i.value=c},onChange:s,accept:e.accept,multiple:e.multiple},null,40,Cr),d(l,{readonly:!0,style:{width:"100%"},placeholder:e.placeholder,onClick:()=>o.$refs.file.click(),value:a.value,border:e.border},null,8,["placeholder","onClick","value","border"]),d(u,{icon:"upload"})])}}};var Nr=H(Lr,[["__scopeId","data-v-5c4a8b85"]]),Pr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nr});const wr=["value","placeholder","readonly","type"],kr={props:{value:[String,Number,Object],placeholder:String,defaultValue:[String,Number,Object],readonly:{type:Boolean,default:!1},type:{type:String,default:"text"},width:{type:String,default:"100%"},border:{type:Boolean,default:!0}},emits:["update:value"],setup(e,{emit:t}){const n=e;!n.value&&n.defaultValue&&t("update:value",n.defaultValue);const i={width:n.width};return(a,s)=>(v(),L("input",{class:de(["magic-input",{"magic-input__border":e.border}]),value:e.value,placeholder:e.placeholder,readonly:e.readonly,style:i,type:e.type,onInput:s[0]||(s[0]=o=>a.$emit("update:value",o.target.value))},null,42,wr))}};var Dr=H(kr,[["__scopeId","data-v-3a157bc4"]]),$r=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Dr});const Mr={key:0},Ur=["placeholder"],Br=["onClick"],Fr={props:{value:[Object,String,Number],options:Array,defaultSelect:[Object,String,Number],width:String,border:{type:Boolean,default:!0},placeholder:String,inputable:{type:Boolean,default:!1}},emits:["update:value","select"],setup(e,{emit:t}){const n=e;document.body.addEventListener("click",()=>a.value=!1);const i=P("-2px"),a=P(!1),s=P("auto"),o=P("0px"),r=pe(()=>{const g=n.options.find(O=>O.value===n.value)||n.options.find(O=>O.value===n.defaultSelect);return g&&g.text||""}),l=g=>{t("update:value",g),t("select",g),a.value=!1},u=ae("ELEMENT_ROOT"),c=(g,O)=>O+g.scrollTop>0?g.scrollTop:g.parentElement?c(g.parentElement,O+g.scrollTop):g.scrollTop,f=(g,O)=>{i.value=-c(g,0)-1+"px",a.value=!0,Pe(()=>{o.value=-(window.pageXOffset+1)+"px",s.value=g.clientWidth+"px";let h=O.offsetHeight;O.offsetTop+h+20>u.value.offsetTop+u.value.offsetHeight&&(i.value=-(h+g.offsetHeight)+"px")})};return(g,O)=>(v(),L("div",{class:de([{inputable:e.inputable,border:e.border},"magic-select not-select"]),style:$e({width:e.width}),onClick:O[2]||(O[2]=ve(h=>f(g.$refs.container,g.$refs.selectList),["stop"])),ref:(h,m)=>{m.container=h}},[e.inputable?Z("",!0):(v(),L("span",Mr,j(k(r)),1)),e.inputable?nn((v(),L("input",{key:1,ref:(h,m)=>{m.input=h},"onUpdate:modelValue":O[0]||(O[0]=h=>an(value)?value.value=h:null),autocomplete:"off",type:"text",onInput:O[1]||(O[1]=h=>l(h.target.value)),placeholder:e.placeholder},null,40,Ur)),[[Wi,e.value]]):Z("",!0),nn(R("ul",{style:$e({width:s.value,marginTop:i.value,marginLeft:o.value}),ref:(h,m)=>{m.selectList=h}},[(v(!0),L(Q,null,ce(e.options,h=>(v(),L("li",{key:h.value,onClick:ve(m=>l(h.value),["stop"])},j(h.text),9,Br))),128))],4),[[Hn,a.value]])],6))}};var jr=H(Fr,[["__scopeId","data-v-869742dc"]]),Gr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:jr});const Hr=["placeholder","value"],Vr={props:{value:String,placeholder:String},setup(e){return(t,n)=>(v(),L("textarea",{class:"magic-textarea",placeholder:e.placeholder,value:e.value,onInput:n[0]||(n[0]=i=>t.$emit("update:value",i.target.value))},null,40,Hr))}};var Yr=H(Vr,[["__scopeId","data-v-ca6693f6"]]),Kr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Yr});const Wr={props:{users:Array,max:Number,size:{type:Number,default:22}},setup(e){const t=e,n=pe(()=>({height:t.size+"px",lineHeight:t.size+"px"})),i=pe(()=>t.users.slice(0,t.max||t.users.length));return(a,s)=>{const o=T("magic-avatar");return t.users&&t.users.length>0?(v(),L("div",{key:0,class:"magic-avatar-group",style:$e(k(n))},[(v(!0),L(Q,null,ce(k(i),(r,l)=>(v(),U(o,{key:l,user:r,size:e.size},null,8,["user","size"]))),128)),t.users.length>k(i).length?(v(),U(o,{key:0,text:`${e.max}+`,size:e.size},null,8,["text","size"])):Z("",!0)],4)):Z("",!0)}}};var qr=H(Wr,[["__scopeId","data-v-511f7f80"]]),zr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:qr});const Xr=["title"],Jr={props:{user:Object,text:String,size:{type:Number,default:22}},setup(e){const t=e,n=["#1abc9c","#2ecc71","#3498db","#9b59b6","#16a085","#27ae60","#2980b9","#8e44ad","#f1c40f","#e67e22","#e74c3c","#eca0f1","#95a5a6","#f39c12","#d35400","#c0392b","#bdc3c7","#7f8c8d"],i=pe(()=>({width:t.size+"px",height:t.size+"px",lineHeight:t.size+"px",borderRadius:t.size/2+"px",backgroundColor:t.text&&"#bdc3c7"||n[La(`${t.user.cid}`)%n.length]})),a=pe(()=>t.text||t.user.username.substring(0,1)),s=pe(()=>t.user?`\u7528\u6237\u540D\uFF1A${t.user.username} +IP\uFF1A${t.user.ip||"unknown"}`:void 0);return(o,r)=>(v(),L("div",{class:"magic-avatar",style:$e(k(i)),title:k(s)},j(k(a)),13,Xr))}};var Qr=H(Jr,[["__scopeId","data-v-4b5e69aa"]]),Zr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Qr});const el=["width"],tl=["x","fill"],nl={props:{icon:String},setup(e){const t=e,n={GET:"#0cbb52",POST:"#FFB400",DELETE:["DEL","#EB2013"],PUT:"#097BED",function:["Fn","#9012FE"],websocket:["WS","#6B6B6B"],task:["TASK","#9012FE"],resource:["RES","#9012FE"]},i=pe(()=>{let a=n[t.icon];const s=a!==void 0&&Array.isArray(a),o=s?a[0]:t.icon,r=o.length*9,l=s?a[1]:a||"var(--main-icon-color)";return{width:r,color:l,text:o}});return(a,s)=>(v(),L("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:k(i).width,height:"12","font-size":"10","font-weight":"bolder","font-family":"inherit"},[R("text",{x:k(i).width/2,y:"8",fill:k(i).color,style:{"dominant-baseline":"middle","text-anchor":"middle"}},j(k(i).text),9,tl)],8,el))}};var il=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:nl});const al={props:{opened:Object},setup(e){const t=[{title:"Json",icon:"json",component:X("magic-api-request-body")},{title:"\u89C6\u56FE",icon:"structure",component:X("magic-api-request-structure")}];return(n,i)=>{const a=T("magic-navbar-item"),s=T("magic-navbar");return v(),U(s,{spliter:!0,direction:"vertical"},{default:x(()=>[(v(),L(Q,null,ce(t,(o,r)=>d(a,rt({key:r},o),{default:x(()=>[(v(),U(X(o.component)))]),_:2},1040)),64))]),_:1})}}};var sl=H(al,[["__scopeId","data-v-1e478b66"]]),ol=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:sl});const rl={setup(e){const t=ae("info");return(n,i)=>{const a=T("magic-textarea");return v(),U(a,{value:k(t).description,"onUpdate:value":i[0]||(i[0]=s=>k(t).description=s)},null,8,["value"])}}};var ll=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:rl});const ki=e=>(tt("data-v-430d6958"),e=e(),nt(),e),ul={class:"magic-api-group"},cl=ki(()=>R("label",null,"\u5206\u7EC4\u540D\u79F0",-1)),_l=ki(()=>R("label",null,"\u5206\u7EC4\u8DEF\u5F84",-1)),pl={setup(e){const t=ae("info"),n=[{title:"\u8DEF\u5F84\u53D8\u91CF",component:X("magic-api-path")},{title:"\u5206\u7EC4\u9009\u9879",component:X("magic-api-option")}],i=()=>{const a=t.value;Y.sendJson("/resource/folder/save",{id:a.id,name:a.name,parentId:a.parentId,type:a.type,path:a.path,paths:a.paths,options:a.options})};return(a,s)=>{const o=T("magic-input"),r=T("magic-button"),l=T("magic-navbar-item"),u=T("magic-navbar");return v(),L(Q,null,[R("div",ul,[R("form",null,[cl,d(o,{value:k(t).name,"onUpdate:value":s[0]||(s[0]=c=>k(t).name=c),placeholder:"\u8BF7\u8F93\u5165\u63A5\u53E3\u540D\u79F0",width:"200px"},null,8,["value"]),_l,d(o,{value:k(t).path,"onUpdate:value":s[1]||(s[1]=c=>k(t).path=c),placeholder:"\u8BF7\u8F93\u5165\u63A5\u53E3\u8DEF\u5F84",width:"auto",style:{flex:"1"}},null,8,["value"]),d(r,{value:"\u4FDD\u5B58",onOnClick:i})])]),d(u,{direction:"horizontal",ref:(c,f)=>{f.navbar=c},style:{flex:"1"},"allow-close":!1},{default:x(()=>[(v(),L(Q,null,ce(n,(c,f)=>d(l,rt({key:f},c),{default:x(()=>[(v(),U(X(c.component)))]),_:2},1040)),64))]),_:1},512)],64)}}};var dl=H(pl,[["__scopeId","data-v-430d6958"]]),hl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:dl});const fl={class:"magic-panel-api"},gl={setup(e){const t=ae("info"),n=P(-1);return(i,a)=>{const s=T("magic-panel-common-toolbar"),o=T("magic-checkbox"),r=T("magic-table-column"),l=T("magic-input"),u=T("magic-select"),c=T("magic-table");return v(),L("div",fl,[d(s,{index:n.value,"onUpdate:index":a[0]||(a[0]=f=>n.value=f),value:k(t).headers},null,8,["index","value"]),d(c,{data:k(t).headers,border:"",onClickRow:a[1]||(a[1]=f=>n.value=f)},{default:x(()=>[d(r,{title:"\u5FC5\u586B",width:"35"},{default:x(({row:f})=>[d(o,{value:f.required,"onUpdate:value":g=>f.required=g},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Key"},{default:x(({row:f})=>[d(l,{value:f.name,"onUpdate:value":g=>f.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Value"},{default:x(({row:f})=>[d(l,{value:f.value,"onUpdate:value":g=>f.value=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u53C2\u6570\u7C7B\u578B",width:"135"},{default:x(({row:f})=>[d(u,{options:i.$REQUEST_SIMPLE_TYPES,value:f.dataType,"onUpdate:value":g=>f.dataType=g,"default-select":i.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(r,{title:"\u9ED8\u8BA4\u503C"},{default:x(({row:f})=>[d(l,{value:f.defaultValue,"onUpdate:value":g=>f.defaultValue=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u9A8C\u8BC1\u65B9\u5F0F",width:"100"},{default:x(({row:f})=>[d(u,{options:i.$VALIDATE_TYPES,value:f.validateType,"onUpdate:value":g=>f.validateType=g,"default-select":i.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(r,{title:"\u8868\u8FBE\u5F0F\u6216\u6B63\u5219\u8868\u8FBE\u5F0F"},{default:x(({row:f})=>[d(l,{value:f.expression,"onUpdate:value":g=>f.expression=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u9A8C\u8BC1\u8BF4\u660E"},{default:x(({row:f})=>[d(l,{value:f.error,"onUpdate:value":g=>f.error=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u63CF\u8FF0",flex:"2"},{default:x(({row:f})=>[d(l,{value:f.description,"onUpdate:value":g=>f.description=g,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var ml=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:gl});const Mn=e=>(tt("data-v-0aa3270a"),e=e(),nt(),e),vl={class:"magic-api-info"},El=Mn(()=>R("label",null,"\u8BF7\u6C42\u65B9\u6CD5",-1)),Tl=Mn(()=>R("label",null,"\u63A5\u53E3\u540D\u79F0",-1)),bl=Mn(()=>R("label",null,"\u63A5\u53E3\u8DEF\u5F84",-1)),Sl={setup(e){const t=ae("info"),n=[{title:"\u8BF7\u6C42\u53C2\u6570",component:X("magic-api-parameter")},{title:"\u8BF7\u6C42Header",component:X("magic-api-header")},{title:"\u8DEF\u5F84\u53D8\u91CF",component:X("magic-api-path")},{title:"\u8BF7\u6C42Body",component:X("magic-api-body")},{title:"\u63A5\u53E3\u9009\u9879",component:X("magic-api-option")},{title:"\u63A5\u53E3\u63CF\u8FF0",component:X("magic-api-description")}];return(i,a)=>{const s=T("magic-select"),o=T("magic-input"),r=T("magic-navbar-item"),l=T("magic-navbar");return v(),L(Q,null,[R("div",vl,[R("form",null,[El,d(s,{width:"100px",options:i.$REQUEST_METHODS,"default-select":i.$DEFAULT_REQUEST_METHOD,value:k(t).method,"onUpdate:value":a[0]||(a[0]=u=>k(t).method=u)},null,8,["options","default-select","value"]),Tl,d(o,{value:k(t).name,"onUpdate:value":a[1]||(a[1]=u=>k(t).name=u),placeholder:"\u8BF7\u8F93\u5165\u63A5\u53E3\u540D\u79F0",width:"200px"},null,8,["value"]),bl,d(o,{value:k(t).path,"onUpdate:value":a[2]||(a[2]=u=>k(t).path=u),placeholder:"\u8BF7\u8F93\u5165\u63A5\u53E3\u8DEF\u5F84",width:"auto",style:{flex:"1"}},null,8,["value"])])]),d(l,{direction:"horizontal",ref:(u,c)=>{c.navbar=u},style:{flex:"1"},"allow-close":!1},{default:x(()=>[(v(),L(Q,null,ce(n,(u,c)=>d(r,rt({key:c},u),{default:x(()=>[(v(),U(X(u.component)))]),_:2},1040)),64))]),_:1},512)],64)}}};var yl=H(Sl,[["__scopeId","data-v-0aa3270a"]]),Ol=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:yl});const Al={class:"magic-panel-api"},Rl={setup(e){const t=ae("info"),n=ae("options")||[],i=pe(()=>n.map(o=>({text:o[0],value:o[0],description:o[1],defaultValue:o[2]}))),a=P(-1),s=(o,r)=>{const l=n.find(u=>u[0]===o);l&&(r.description=l[1]||"",r.value=l[2]||"")};return(o,r)=>{const l=T("magic-panel-common-toolbar"),u=T("magic-select"),c=T("magic-table-column"),f=T("magic-input"),g=T("magic-table");return v(),L("div",Al,[d(l,{index:a.value,"onUpdate:index":r[0]||(r[0]=O=>a.value=O),value:k(t).options},null,8,["index","value"]),d(g,{data:k(t).options,border:"",onClickRow:r[1]||(r[1]=O=>a.value=O)},{default:x(()=>[d(c,{title:"\u952E",width:"20%"},{default:x(({row:O})=>[d(u,{options:k(i),value:O.name,"onUpdate:value":h=>O.name=h,"default-select":o.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1,inputable:"",onSelect:h=>s(h,O)},null,8,["options","value","onUpdate:value","default-select","onSelect"])]),_:1}),d(c,{title:"\u503C",width:"60%"},{default:x(({row:O})=>[d(f,{value:O.value,"onUpdate:value":h=>O.value=h,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(c,{title:"\u63CF\u8FF0",width:"20%"},{default:x(({row:O})=>[d(f,{value:O.description,"onUpdate:value":h=>O.description=h,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var Il=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Rl});const xl={class:"magic-panel-api"},Cl={setup(e){const t=P(-1),n=ae("info");return(i,a)=>{const s=T("magic-panel-common-toolbar"),o=T("magic-checkbox"),r=T("magic-table-column"),l=T("magic-input"),u=T("magic-file"),c=T("magic-select"),f=T("magic-table");return v(),L("div",xl,[d(s,{index:t.value,"onUpdate:index":a[0]||(a[0]=g=>t.value=g),value:k(n).parameters},null,8,["index","value"]),d(f,{data:k(n).parameters,border:"",onClickRow:a[1]||(a[1]=g=>t.value=g)},{default:x(()=>[d(r,{title:"\u5FC5\u586B",width:"35"},{default:x(({row:g})=>[d(o,{value:g.required,"onUpdate:value":O=>g.required=O},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Key"},{default:x(({row:g})=>[d(l,{value:g.name,"onUpdate:value":O=>g.name=O,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Value"},{default:x(({row:g})=>[g.dataType==="MultipartFile"?(v(),U(u,{key:0,value:g.value,"onUpdate:value":O=>g.value=O,border:!1},null,8,["value","onUpdate:value"])):g.dataType==="MultipartFiles"?(v(),U(u,{key:1,value:g.value,"onUpdate:value":O=>g.value=O,border:!1,multiple:""},null,8,["value","onUpdate:value"])):(v(),U(l,{key:2,value:g.value,"onUpdate:value":O=>g.value=O,border:!1},null,8,["value","onUpdate:value"]))]),_:1}),d(r,{title:"\u53C2\u6570\u7C7B\u578B",width:"135"},{default:x(({row:g})=>[d(c,{options:i.$REQUEST_PARAMETER_TYPES,value:g.dataType,"onUpdate:value":O=>g.dataType=O,"default-select":i.$DEFAULT_REQUEST_PARAMETER_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(r,{title:"\u9ED8\u8BA4\u503C"},{default:x(({row:g})=>[d(l,{value:g.defaultValue,"onUpdate:value":O=>g.defaultValue=O,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u9A8C\u8BC1\u65B9\u5F0F",width:"100"},{default:x(({row:g})=>[d(c,{options:i.$VALIDATE_TYPES,value:g.validateType,"onUpdate:value":O=>g.validateType=O,"default-select":i.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(r,{title:"\u8868\u8FBE\u5F0F\u6216\u6B63\u5219\u8868\u8FBE\u5F0F"},{default:x(({row:g})=>[d(l,{value:g.expression,"onUpdate:value":O=>g.expression=O,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u9A8C\u8BC1\u8BF4\u660E"},{default:x(({row:g})=>[d(l,{value:g.error,"onUpdate:value":O=>g.error=O,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u63CF\u8FF0",flex:"2"},{default:x(({row:g})=>[d(l,{value:g.description,"onUpdate:value":O=>g.description=O,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var Ll=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Cl});const Nl={class:"magic-panel-api"},Pl={setup(e){const t=P(-1),n=ae("info");return(i,a)=>{const s=T("magic-panel-common-toolbar"),o=T("magic-input"),r=T("magic-table-column"),l=T("magic-select"),u=T("magic-table");return v(),L("div",Nl,[d(s,{index:t.value,"onUpdate:index":a[0]||(a[0]=c=>t.value=c),value:k(n).paths},null,8,["index","value"]),d(u,{data:k(n).paths,border:"",onClickRow:a[1]||(a[1]=c=>t.value=c)},{default:x(()=>[d(r,{title:"Key"},{default:x(({row:c})=>[d(o,{value:c.name,"onUpdate:value":f=>c.name=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Value"},{default:x(({row:c})=>[d(o,{value:c.value,"onUpdate:value":f=>c.value=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u53C2\u6570\u7C7B\u578B",width:"135"},{default:x(({row:c})=>[d(l,{options:i.$REQUEST_SIMPLE_TYPES,value:c.dataType,"onUpdate:value":f=>c.dataType=f,"default-select":i.$DEFAULT_REQUEST_SIMPLE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(r,{title:"\u9A8C\u8BC1\u65B9\u5F0F",width:"100"},{default:x(({row:c})=>[d(l,{options:i.$VALIDATE_TYPES,value:c.validateType,"onUpdate:value":f=>c.validateType=f,"default-select":i.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(r,{title:"\u8868\u8FBE\u5F0F\u6216\u6B63\u5219\u8868\u8FBE\u5F0F"},{default:x(({row:c})=>[d(o,{value:c.expression,"onUpdate:value":f=>c.expression=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u9A8C\u8BC1\u8BF4\u660E"},{default:x(({row:c})=>[d(o,{value:c.error,"onUpdate:value":f=>c.error=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"\u63CF\u8FF0",flex:"2"},{default:x(({row:c})=>[d(o,{value:c.description,"onUpdate:value":f=>c.description=f,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var wl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Pl});const kl={setup(e){const t=ae("info"),n=()=>{const i=bi(t.value.requestBody,t.value.requestBodyDefinition);i&&(t.value.requestBodyDefinition=i)};return(i,a)=>{const s=T("magic-monaco-editor");return v(),U(s,{value:k(t).requestBody,"onUpdate:value":a[0]||(a[0]=o=>k(t).requestBody=o),language:"json",onChange:n},null,8,["value"])}}};var Dl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:kl});const $l=["onClick"],Ml={key:0,align:"center",style:{flex:"1"}},Ul={key:1,align:"center",style:{flex:"1"}},Bl={setup(e){const t=ae("info");let n=[];const i=(r,l)=>{const u={level:l,node:r,name:l===0?"\u6839\u8282\u70B9":r.name,folder:(r==null?void 0:r.dataType)==="Object"||(r==null?void 0:r.dataType)==="Array",display:!0};u.folder&&(u.expand=!0),n.push(u)},a=(r,l)=>{(r||[]).forEach(u=>{i(u,l),a(u.children,l+1)})},s=pe(()=>{var r;return n=[],i(t.value.requestBodyDefinition||{},0),a(((r=t.value.requestBodyDefinition)==null?void 0:r.children)||[],1),n.filter(l=>l.display)}),o=r=>{const l=n.findIndex(c=>c===r),u=r.level;r.expand=!r.expand;for(let c=l+1,f=n.length;cu)g.display=r.expand;else break}};return(r,l)=>{const u=T("magic-icon"),c=T("magic-table-column"),f=T("magic-checkbox"),g=T("magic-select"),O=T("magic-input"),h=T("magic-table");return v(),U(h,{data:k(s),border:""},{default:x(()=>[d(c,{title:"\u5B57\u6BB5"},{default:x(({row:m})=>[R("span",{style:$e({paddingLeft:`${(m.level+(m.folder?0:1))*16}px`}),onClick:p=>o(m)},[m.folder?(v(),U(u,{key:0,icon:m.expand?"arrow-bottom":"arrow-right"},null,8,["icon"])):Z("",!0)],12,$l),R("span",null,j(m.name||"-"),1)]),_:1}),d(c,{title:"\u5FC5\u586B",width:"35"},{default:x(({row:m})=>[d(f,{value:m.node.required,"onUpdate:value":p=>m.node.required=p},null,8,["value","onUpdate:value"])]),_:1}),d(c,{title:"\u7C7B\u578B",width:"80"},{default:x(({row:m})=>[d(g,{options:r.$BODY_DATA_TYPES,value:m.node.dataType,"onUpdate:value":p=>m.node.dataType=p,border:!1},null,8,["options","value","onUpdate:value"])]),_:1}),d(c,{title:"\u503C",flex:"2"},{default:x(({row:m})=>{var p;return[m.folder?(v(),L("p",Ml,"-")):(v(),L("span",{key:1,class:de(["magic-data-type",(p=m.node.dataType)==null?void 0:p.toLowerCase()])},j(m.node.value),3))]}),_:1}),d(c,{title:"\u9ED8\u8BA4\u503C"},{default:x(({row:m})=>[d(O,{value:m.node.defaultValue,"onUpdate:value":p=>m.node.defaultValue=p,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(c,{title:"\u9A8C\u8BC1\u65B9\u5F0F",width:"100"},{default:x(({row:m})=>[d(g,{options:r.$VALIDATE_TYPES,value:m.node.validateType,"onUpdate:value":p=>m.node.validateType=p,"default-select":r.$DEFAULT_VALIDATE_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(c,{title:"\u8868\u8FBE\u5F0F\u6216\u6B63\u5219\u8868\u8FBE\u5F0F"},{default:x(({row:m})=>[d(O,{value:m.node.expression,"onUpdate:value":p=>m.node.expression=p,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(c,{title:"\u9A8C\u8BC1\u8BF4\u660E"},{default:x(({row:m})=>[d(O,{value:m.node.error,"onUpdate:value":p=>m.node.error=p,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(c,{title:"\u5B57\u6BB5\u6CE8\u91CA"},{default:x(({row:m})=>[m.name?(v(),U(O,{key:0,value:m.node.description,"onUpdate:value":p=>m.node.description=p,border:!1},null,8,["value","onUpdate:value"])):(v(),L("p",Ul,"-"))]),_:1})]),_:1},8,["data"])}}};var Fl=H(Bl,[["__scopeId","data-v-12babf82"]]),jl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fl});const Gl=["src"],Hl={setup(e){const t=ae("info"),n=ae("opened"),i=pe(()=>new ie(t.value.responseBody||"").beautify()),a=pe(()=>{if(n.value.responseBlob){const s=n.value.responseHeaders["content-disposition"];if(s){const o=s.replace(/.*filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,"$1");un(n.value.responseBlobValue,o);return}return URL.createObjectURL(n.value.responseBlobValue)}});return(s,o)=>{const r=T("magic-monaco-editor"),l=T("magic-empty");return k(n).responseBlob?k(a)?(v(),L("iframe",{key:1,src:k(a)},null,8,Gl)):(v(),U(l,{key:2,text:"\u65E0\u54CD\u5E94Body"})):(v(),U(r,{key:0,value:k(i),"onUpdate:value":o[0]||(o[0]=u=>an(i)?i.value=u:null),language:"json",readonly:!0},null,8,["value"]))}}};var Vl=H(Hl,[["__scopeId","data-v-72af9b10"]]),Yl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Vl});const Kl={setup(e){const t=ae("opened"),n=pe(()=>Object.keys(t.value.responseHeaders||{}).map(i=>({key:i,value:t.value.responseHeaders[i]})));return(i,a)=>{const s=T("magic-table-column"),o=T("magic-table");return v(),U(o,{data:k(n),border:""},{default:x(()=>[d(s,{title:"Key"},{default:x(({row:r})=>[R("span",null,j(r.key),1)]),_:1}),d(s,{title:"Value"},{default:x(({row:r})=>[R("span",null,j(r.value),1)]),_:1})]),_:1},8,["data"])}}};var Wl=H(Kl,[["__scopeId","data-v-db168582"]]),ql=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Wl});const zl=["onClick"],Xl={key:0,align:"center",style:{flex:"1"}},Jl={key:1,align:"center",style:{flex:"1"}},Ql={setup(e){var l;const t=ae("info"),n=ae("opened");let i=[];const a=(u,c)=>{const f={level:c,node:u,name:c===0?"\u6839\u8282\u70B9":u.name,folder:(u==null?void 0:u.dataType)==="Object"||(u==null?void 0:u.dataType)==="Array",display:!0};f.folder&&(f.expand=!0),i.push(f)},s=(u,c)=>{(u||[]).forEach(f=>{a(f,c),s(f.children,c+1)})},o=u=>{const c=i.findIndex(g=>g===u),f=u.level;u.expand=!u.expand;for(let g=c+1,O=i.length;gf)h.display=u.expand;else break}};s(((l=t.value.responseBodyDefinition)==null?void 0:l.children)||[],1);const r=pe(()=>{var u;return i=[],n.value.responseBlob||(a(t.value.responseBodyDefinition||{},0),s(((u=t.value.responseBodyDefinition)==null?void 0:u.children)||[],1)),i.filter(c=>c.display)});return(u,c)=>{const f=T("magic-icon"),g=T("magic-table-column"),O=T("magic-select"),h=T("magic-input"),m=T("magic-table"),p=T("magic-empty");return k(r).length?(v(),U(m,{key:0,data:k(r),border:""},{default:x(()=>[d(g,{title:"\u5B57\u6BB5"},{default:x(({row:b})=>[R("span",{style:$e({paddingLeft:`${(b.level+(b.folder?0:1))*16}px`}),onClick:A=>o(b)},[b.folder?(v(),U(f,{key:0,icon:b.expand?"arrow-bottom":"arrow-right"},null,8,["icon"])):Z("",!0)],12,zl),R("span",null,j(b.name||"-"),1)]),_:1}),d(g,{title:"\u7C7B\u578B",width:"80"},{default:x(({row:b})=>[d(O,{options:u.$BODY_DATA_TYPES,value:b.node.dataType,"onUpdate:value":A=>b.node.dataType=A,border:!1},null,8,["options","value","onUpdate:value"])]),_:1}),d(g,{title:"\u503C",flex:"3"},{default:x(({row:b})=>{var A;return[b.folder?(v(),L("p",Xl,"-")):(v(),L("span",{key:1,class:de(["magic-data-type",(A=b.node.dataType)==null?void 0:A.toLowerCase()])},j(b.node.value),3))]}),_:1}),d(g,{title:"\u5B57\u6BB5\u6CE8\u91CA"},{default:x(({row:b})=>[b.name?(v(),U(h,{key:0,value:b.node.description,"onUpdate:value":A=>b.node.description=A,border:!1},null,8,["value","onUpdate:value"])):(v(),L("p",Jl,"-"))]),_:1})]),_:1},8,["data"])):(v(),U(p,{key:1,text:"\u65E0\u54CD\u5E94\u7ED3\u6784"}))}}};var Zl=H(Ql,[["__scopeId","data-v-ea08c446"]]),eu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Zl});const tu={class:"magic-panel-api-response"},nu={props:{opened:Object},setup(e){const t=[{title:"Body",component:X("magic-api-response-body")},{title:"\u54CD\u5E94Header",component:X("magic-api-response-header")},{title:"\u54CD\u5E94\u7ED3\u6784",component:X("magic-api-response-structure")}];return(n,i)=>{const a=T("magic-navbar-item"),s=T("magic-navbar");return v(),L("div",tu,[d(s,{direction:"horizontal",ref:(o,r)=>{r.navbar=o},style:{flex:"1"},"allow-close":!1},{default:x(()=>[(v(),L(Q,null,ce(t,(o,r)=>d(a,{key:r,title:o.title},{default:x(()=>[(v(),U(qi,null,[(v(),U(X(o.component),{opened:e.opened},null,8,["opened"]))],1024))]),_:2},1032,["title"])),64))]),_:1},512)])}}};var iu=H(nu,[["__scopeId","data-v-3d951bef"]]),au=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:iu});const su={class:"magic-panel-global"},ou={setup(e){const t=P(D.GLOBAL),n=P(-1);return(i,a)=>{const s=T("magic-panel-common-toolbar"),o=T("magic-input"),r=T("magic-table-column"),l=T("magic-table");return v(),L("div",su,[d(s,{index:n.value,"onUpdate:index":a[0]||(a[0]=u=>n.value=u),value:t.value.headers},null,8,["index","value"]),d(l,{data:t.value.headers,border:"",onClickRow:a[1]||(a[1]=u=>n.value=u)},{default:x(()=>[d(r,{title:"Key"},{default:x(({row:u})=>[d(o,{value:u.name,"onUpdate:value":c=>u.name=c,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Value"},{default:x(({row:u})=>[d(o,{value:u.value,"onUpdate:value":c=>u.value=c,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var ru=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ou});const lu={class:"magic-panel-global"},uu={setup(e){const t=P(-1),n=P(D.GLOBAL);return(i,a)=>{const s=T("magic-panel-common-toolbar"),o=T("magic-input"),r=T("magic-table-column"),l=T("magic-file"),u=T("magic-table");return v(),L("div",lu,[d(s,{index:t.value,"onUpdate:index":a[0]||(a[0]=c=>t.value=c),value:n.value.parameters},null,8,["index","value"]),d(u,{data:n.value.parameters,border:"",onClickRow:a[1]||(a[1]=c=>t.value=c)},{default:x(()=>[d(r,{title:"Key"},{default:x(({row:c})=>[d(o,{value:c.name,"onUpdate:value":f=>c.name=f,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(r,{title:"Value"},{default:x(({row:c})=>[c.dataType==="MultipartFile"?(v(),U(l,{key:0,value:c.value,"onUpdate:value":f=>c.value=f,border:!1},null,8,["value","onUpdate:value"])):c.dataType==="MultipartFiles"?(v(),U(l,{key:1,value:c.value,"onUpdate:value":f=>c.value=f,border:!1,multiple:""},null,8,["value","onUpdate:value"])):(v(),U(o,{key:2,value:c.value,"onUpdate:value":f=>c.value=f,border:!1},null,8,["value","onUpdate:value"]))]),_:1})]),_:1},8,["data"])])}}};var cu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:uu});const _u={class:"magic-global"},pu={setup(e){const t=[{title:"\u5168\u5C40\u8BF7\u6C42\u53C2\u6570",component:X("magic-global-parameter")},{title:"\u5168\u5C40\u8BF7\u6C42Header",component:X("magic-global-header")}];return(n,i)=>{const a=T("magic-navbar-item"),s=T("magic-navbar");return v(),L("div",_u,[d(s,{direction:"horizontal",ref:(o,r)=>{r.navbar=o},style:{flex:"1"},"allow-close":!1},{default:x(()=>[(v(),L(Q,null,ce(t,(o,r)=>d(a,rt({key:r},o),{default:x(()=>[(v(),U(X(o.component)))]),_:2},1040)),64))]),_:1},512)])}}};var du=H(pu,[["__scopeId","data-v-03e7bbcc"]]),hu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:du});const fu={props:{value:Array,index:Number},emits:["update:index"],setup(e,{emit:t}){const n=e,i=[{title:"\u589E\u52A0\u4E00\u884C",icon:"plus",onClick(){n.value.push({}),t("update:index",n.value.length-1)}},{title:"\u5220\u9664\u4E00\u884C",icon:"minus",onClick(){n.value.length>0&&(n.value.splice(n.index==-1?n.value.length-1:n.index,1),t("update:index",-1))}}];return(a,s)=>{const o=T("magic-panel-toolbar");return v(),U(o,{toolbars:i})}}};var gu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:fu});const mu={class:"magic-panel-toolbar"},vu=["title","onClick"],Eu={props:{toolbars:Array},setup(e){return(t,n)=>{const i=T("magic-icon");return v(),L("ul",mu,[(v(!0),L(Q,null,ce(e.toolbars,(a,s)=>(v(),L("li",{key:s,title:a.title,onClick:ve(o=>a.disabled!==!0&&a.onClick(),["stop"]),class:de({disabled:a.disabled})},[d(i,{icon:a.icon},null,8,["icon"])],10,vu))),128))])}}};var Tu=H(Eu,[["__scopeId","data-v-e91df708"]]),bu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Tu});const Su={class:"magic-resource-choose"},yu={key:1},Ou={key:2},Au={props:{value:[Array,Object],type:String,single:{type:Boolean,default:()=>!1},file:{type:Boolean,default:()=>!0}},emits:["update:value"],setup(e,{expose:t,emit:n}){const i=e,a=ae("resources"),s=ae("service"),o=P([]),r=()=>{let h=[],m=p=>{p.id.endsWith("-root")?h.push({type:"root",id:p.type}):h.push({type:p.folder?"group":p.type,id:p.id}),p.children&&p.children.filter(b=>b.selected).forEach(b=>m(b))};o.value.filter(p=>p.selected).forEach(p=>m(p)),n("update:value",i.single?h[0]:h)},l=(h,m)=>{let p=[];return h&&h.forEach(b=>{var A;if(b.folder||i.file){if(b.folder)b.icon="list";else{const I=(A=s[m.type])==null?void 0:A.getIcon;b.icon=I&&I(b)||m.icon,b.textIcon=I!==void 0,b.type=m.type}p.push(b)}b.folder&&b.children&&(b.children=l(b.children,m))}),p},u=h=>{let m=h,p=[],b=A=>{A.forEach(I=>{I.id===m?(p.push(I),m=I.parentId||I.groupId,b(o.value)):I.children&&I.children.length>0&&b(I.children)})};return b(o.value),p},c=(h,m)=>{m!==void 0&&(h.selected=m);let p=b=>{b.selected=i.single?!1:h.selected,b.checkedHalf=i.single?!1:!h.selected,b.children&&b.children.forEach(A=>p(A))};h.children&&h.children.forEach(b=>p(b)),h.folder&&(h.checkedHalf=!1),u(h.folder?h.parentId:h.groupId).forEach(b=>{b.selected=i.single?!1:b.children.some(A=>A.selected),b.checkedHalf=i.single?!1:b.children.some(A=>!A.selected||A.checkedHalf)}),i.single?n("update:value",h.selected?h:void 0):r()},f=h=>c(h,!h.selected);return a().filter(h=>!i.type||i.type===h.navbar.type).forEach(h=>{const m=h.navbar.type,p=l(h.tree,h.navbar);p.forEach(b=>{b.folder?b.parentId=m+"-root":b.groupId=m+"-root"}),o.value.push({icon:h.navbar.icon,name:h.navbar.title,iconClass:"root",folder:!0,opened:!0,type:h.navbar.type,id:m+"-root",children:p})}),t({selectAll:h=>We(o.value,m=>{m.checkedHalf=!1,m.selected=h,m.children&&m.children.forEach(p=>p.selected=h),r()}),expand:h=>We(o.value,m=>{m.folder&&(m.opened=h)})}),(h,m)=>{const p=T("magic-checkbox"),b=T("magic-icon"),A=T("magic-text-icon"),I=T("magic-tree");return v(),L("div",Su,[d(I,{data:o.value,sort:!1,onItemClick:f},{folder:x(({item:y})=>[d(p,{value:y.selected,"onUpdate:value":C=>y.selected=C,"checked-half":y.checkedHalf,onChange:C=>c(y)},null,8,["value","onUpdate:value","checked-half","onChange"]),y.children&&y.children.length>0?(v(),U(b,{key:0,icon:y.opened?"arrow-bottom":"arrow-right",onClick:ve(C=>y.opened=!y.opened,["stop"])},null,8,["icon","onClick"])):Z("",!0),d(b,{icon:y.icon,class:de(y.iconClass)},null,8,["icon","class"]),R("label",null,j(y.name),1),y.path?(v(),L("span",yu,"("+j(y.path)+")",1)):Z("",!0)]),file:x(({item:y})=>[d(p,{value:y.selected,"onUpdate:value":C=>y.selected=C,"checked-half":y.checkedHalf,onChange:C=>c(y)},null,8,["value","onUpdate:value","checked-half","onChange"]),y.textIcon?(v(),U(A,{key:0,icon:y.icon},null,8,["icon"])):(v(),U(b,{key:1,icon:y.icon},null,8,["icon"])),R("label",null,j(y.name),1),y.path?(v(),L("span",Ou,"("+j(y.path)+")",1)):Z("",!0)]),_:1},8,["data"])])}}};var Ru=H(Au,[["__scopeId","data-v-7eb90c29"]]),Iu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ru});const xu={class:"magic-form-row"},Cu=R("label",null,"\u540D\u79F0",-1),Lu={class:"magic-form-row"},Nu=R("label",null,"Key",-1),Pu={class:"magic-form-row"},wu=R("label",null,"URL",-1),ku={class:"magic-form-row"},Du=R("label",null,"\u7528\u6237\u540D",-1),$u={class:"magic-form-row"},Mu=R("label",null,"\u5BC6\u7801",-1),Uu={class:"magic-form-row"},Bu=R("label",null,"\u9A71\u52A8\u7C7B",-1),Fu={class:"magic-form-row"},ju=R("label",null,"\u7C7B\u578B",-1),Gu={class:"magic-form-row"},Hu=R("label",null,"maxRows",-1),Vu={class:"magic-form-row"},Yu=R("label",null,"\u5176\u5B83\u914D\u7F6E",-1),Ku={props:{info:Object},setup(e){const{info:t}=e,n=P(JSON.stringify(t.properties||{}));return mt(n,i=>{try{t.properties=JSON.parse(i)}catch{t.properties={}}}),(i,a)=>{const s=T("magic-input"),o=T("magic-select"),r=T("magic-monaco-editor");return v(),L(Q,null,[R("div",xu,[Cu,d(s,{value:e.info.name,"onUpdate:value":a[0]||(a[0]=l=>e.info.name=l),placeholder:"\u6570\u636E\u6E90\u540D\u79F0\uFF0C\u4EC5\u505A\u5C55\u793A\u4F7F\u7528"},null,8,["value"])]),R("div",Lu,[Nu,d(s,{value:e.info.key,"onUpdate:value":a[1]||(a[1]=l=>e.info.key=l),placeholder:"\u6570\u636E\u5E93key\uFF0C\u540E\u7EED\u4EE3\u7801\u4E2D\u4F7F\u7528"},null,8,["value"])]),R("div",Pu,[wu,d(s,{value:e.info.url,"onUpdate:value":a[2]||(a[2]=l=>e.info.url=l),placeholder:"\u8BF7\u8F93\u5165jdbcurl\uFF0C\u5982\uFF1Ajdbc:mysql://localhost"},null,8,["value"])]),R("div",ku,[Du,d(s,{value:e.info.username,"onUpdate:value":a[3]||(a[3]=l=>e.info.username=l),placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u7528\u6237\u540D"},null,8,["value"])]),R("div",$u,[Mu,d(s,{value:e.info.password,"onUpdate:value":a[4]||(a[4]=l=>e.info.password=l),type:"password",placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u5E93\u5BC6\u7801"},null,8,["value"])]),R("div",Uu,[Bu,d(o,{inputable:"",value:e.info.driverClassName,"onUpdate:value":a[5]||(a[5]=l=>e.info.driverClassName=l),width:"100%",options:i.$JDBC_DRIVERS.map(l=>({text:l,value:l})),placeholder:"\u9A71\u52A8\u7C7B\uFF0C\u53EF\u9009\uFF0C\u5185\u90E8\u81EA\u52A8\u8BC6\u522B\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u8F93\u5165\u6307\u5B9A"},null,8,["value","options"])]),R("div",Fu,[ju,d(o,{inputable:"",value:e.info.type,"onUpdate:value":a[6]||(a[6]=l=>e.info.type=l),width:"100%",options:i.$DATASOURCE_TYPES.map(l=>({text:l,value:l})),placeholder:"\u6570\u636E\u6E90\u7C7B\u578B\uFF0C\u53EF\u9009\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u8F93\u5165\u6307\u5B9A"},null,8,["value","options"])]),R("div",Gu,[Hu,d(s,{value:e.info.maxRows,"onUpdate:value":a[7]||(a[7]=l=>e.info.maxRows=l),placeholder:"\u6700\u591A\u8FD4\u56DE\u6761\u6570\uFF0C-1\u672A\u4E0D\u9650\u5236","default-value":-1,type:"number"},null,8,["value"])]),R("div",Vu,[Yu,d(r,{language:"json",value:n.value,"onUpdate:value":a[8]||(a[8]=l=>n.value=l),style:{height:"150px"}},null,8,["value"])])],64)}}};var Wu=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ku});const qu=e=>(tt("data-v-0e33e135"),e=e(),nt(),e),zu={class:"magic-backup"},Xu={class:"magic-backup-diff-container"},Ju={class:"magic-backup-diff-header"},Qu=qu(()=>R("div",null,"\u5F53\u524D\u7248\u672C",-1)),Zu={setup(e){const t=P(!0),n=[{icon:"refresh",title:"\u5237\u65B0",onClick(){g()}},{icon:"copy",title:"\u5168\u91CF\u5907\u4EFD",onClick(){Y.sendPost("/backup/full").success(()=>{E.status("\u5168\u91CF\u5907\u4EFD\u5B8C\u6BD5"),g()})}}],i=P([]),a=P([]),s=P(!1),o=P(!0),r=P(""),l=P({});let u=!1,c=!1,f;const g=y=>{t.value=!0,Y.sendGet("/backups",{timestamp:y}).success(C=>{y?a.value.push(...C):a.value=C,(c=C.length>=100)&&(f=C[C.length-1].createDate),t.value=!1})},O=ae("service"),h=y=>{var C;return y.endsWith("-group")?O[y.replace("-group","")].name+"\u5206\u7EC4":y==="full"?"\u5168\u91CF\u5907\u4EFD":((C=O[y])==null?void 0:C.name)||y};let m=!1;E.$on(w.LOAD_RESOURCES_FINISH,y=>y||g());const p=()=>{c&&!u&&g(f)};ft(()=>{!m&&D.LOGINED&&g(),m=!0});const{proxy:b}=At(),A=(y,C)=>{const $=[];C.id!=="full"&&!C.id.endsWith("-group")&&$.push({icon:"difference",label:"\u5BF9\u6BD4\u4E0D\u540C",onClick(){r.value=xt(C.createDate),s.value=!0,o.value=!0,Promise.all([new Promise(q=>Y.sendGet("/backup",{id:C.id,timestamp:C.createDate}).success(ee=>q(ee))),new Promise(q=>Y.sendGet("/resource/file/"+C.id).success(ee=>q((ee==null?void 0:ee.script)||"")))]).then(q=>{l.value=C,o.value=!1,i.value=q}).catch(q=>{console.error(q),s.value=!1})}}),(C.id==="full"||!C.id.endsWith("-group"))&&$.push({icon:"rollback",label:"\u8FD8\u539F\u4FEE\u6539",onClick(){const q=`${C.name}(${xt(C.createDate)})`;me.confirm("\u8FD8\u539F\u5907\u4EFD","\u8BE5\u6A21\u5F0F\u662F\u5168\u91CF\u4ECE\u5907\u4EFD\u6587\u4EF6\u4E2D\u8BFB\u53D6\uFF0C\u5E76\u8986\u76D6\u66F4\u65B0\u5F53\u524D\u8D44\u6E90\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",()=>{Y.sendPost("/backup/rollback",{id:C.id,timestamp:C.createDate}).success(ee=>{ee?(E.report("resource-rollback-full"),E.status(`\u6062\u590D\u300C${q}\u300D\u6210\u529F`),E.$emit(w.LOAD_RESOURCES)):(me.alert(`\u6062\u590D${q}\u5931\u8D25`),E.status(`\u6062\u590D\u300C${q}\u300D\u5931\u8D25`,!1))})})}}),$.length>0&&b.$contextmenu({event:y,menus:$})},I=()=>{s.value=!1;const y=`${l.value.name}(${xt(l.value.createDate)})`;Y.sendPost("/backup/rollback",{id:l.value.id,timestamp:l.value.createDate}).success(C=>{C?(E.report("resource-rollback"),E.status(`\u6062\u590D\u300C${y}\u300D\u6210\u529F`),E.$emit(w.LOAD_RESOURCES,l.value.type)):(me.alert(`\u6062\u590D${y}\u5931\u8D25`),E.status(`\u6062\u590D\u300C${y}\u300D\u5931\u8D25`,!1))})};return(y,C)=>{const $=T("magic-panel-toolbar"),q=T("magic-loading"),ee=T("magic-table-column"),fe=T("magic-table"),xe=T("magic-empty"),De=T("magic-monaco-diff-editor"),te=T("magic-button"),Oe=T("magic-button-group"),Je=T("magic-dialog");return v(),L(Q,null,[R("div",zu,[d($,{toolbars:n}),R("div",null,[d(q,{loading:t.value},null,8,["loading"]),a.value.length>0?(v(),U(fe,{key:0,data:a.value,border:!0,onContextmenu:A,onLoadNext:p},{default:x(()=>[d(ee,{title:"\u8BB0\u5F55\u65F6\u95F4",align:"center",width:"160"},{default:x(({row:se})=>[Ye(j(k(xt)(se.createDate)),1)]),_:1}),d(ee,{title:"\u7C7B\u578B",align:"center",width:"90"},{default:x(({row:se})=>[R("span",null,j(h(se.type)),1)]),_:1}),d(ee,{title:"\u64CD\u4F5C\u4EBA",align:"center",width:"100"},{default:x(({row:se})=>[Ye(j(se.createBy||"guest"),1)]),_:1}),d(ee,{title:"\u540D\u79F0"},{default:x(({row:se})=>[Ye(j(se.name),1)]),_:1})]),_:1},8,["data"])):(v(),U(xe,{key:1,text:"\u6682\u65E0\u5386\u53F2\u8BB0\u5F55"}))])]),d(Je,{value:s.value,"onUpdate:value":C[1]||(C[1]=se=>s.value=se),title:"\u5386\u53F2\u8BB0\u5F55",width:"80%",maxWidth:"100%",top:"60px",height:"80%",className:"magic-dialog-diff"},{default:x(()=>[R("div",Xu,[R("div",Ju,[R("div",null,j(r.value),1),Qu]),o.value?(v(),U(q,{key:1,loading:o.value},null,8,["loading"])):(v(),U(De,{key:0,value:i.value,"onUpdate:value":C[0]||(C[0]=se=>i.value=se),language:"magicscript"},null,8,["value"]))]),d(Oe,{align:"right"},{default:x(()=>[d(te,{value:"\u6062\u590D",type:"active",onClick:I})]),_:1})]),_:1},8,["value"])],64)}}};var ec=H(Zu,[["__scopeId","data-v-0e33e135"]]),tc=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ec});const ot=e=>(tt("data-v-d6992652"),e=e(),nt(),e),nc={class:"magic-debug"},ic={class:"magic-debug-variables"},ac={key:0,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},sc=ot(()=>R("path",{d:"M201.472 320h-49.6V129.408l-59.2 18.368v-40.32L196.16 70.4h5.312V320z m50.816 320.128H81.024v-33.92l80.832-86.208c6.016-6.656 11.136-12.672 15.36-18.176a133.76 133.76 0 0 0 10.112-15.104 57.728 57.728 0 0 0 5.504-12.8 42.88 42.88 0 0 0 1.6-11.392c0-11.136-2.816-19.84-8.384-26.24-5.632-6.272-13.632-9.472-24.064-9.472a36.224 36.224 0 0 0-15.488 3.2 31.808 31.808 0 0 0-11.328 8.704 39.232 39.232 0 0 0-6.976 13.312 56.32 56.32 0 0 0-2.368 16.832h-49.792c0-11.2 1.984-21.76 6.016-31.744 3.968-9.984 9.792-18.624 17.28-26.112 7.616-7.424 16.704-13.312 27.392-17.664 10.688-4.352 22.784-6.528 36.16-6.528 13.12 0 24.768 1.664 34.88 4.928 10.176 3.2 18.624 7.872 25.536 13.952 6.848 6.08 12.032 13.504 15.616 22.336 3.52 8.768 5.312 18.688 5.312 29.696 0 8.32-1.28 16.384-3.968 24.192-2.56 7.744-6.336 15.552-11.136 23.296a190.08 190.08 0 0 1-17.408 23.68 528.64 528.64 0 0 1-22.784 24.768l-44.096 46.464h107.456v40zM131.456 812.8h26.432c12.608 0 21.888-3.136 27.968-9.408a34.56 34.56 0 0 0 9.088-25.088 38.656 38.656 0 0 0-2.048-12.8 26.304 26.304 0 0 0-16.832-16.704 42.112 42.112 0 0 0-14.912-2.432 41.792 41.792 0 0 0-12.928 1.984 33.664 33.664 0 0 0-10.688 5.568 25.6 25.6 0 0 0-9.856 20.608H78.08a60.8 60.8 0 0 1 6.4-28.032c4.352-8.448 10.176-15.552 17.536-21.44 7.424-5.888 16-10.496 25.984-13.76 9.984-3.2 20.608-4.864 32-4.864 12.544 0 24 1.472 34.368 4.48 10.368 3.072 19.2 7.616 26.688 13.632 7.424 5.952 13.184 13.44 17.28 22.272 4.16 8.896 6.208 19.2 6.208 30.848a52.8 52.8 0 0 1-9.856 30.72 67.968 67.968 0 0 1-28.032 22.976 62.08 62.08 0 0 1 31.488 22.656 61.44 61.44 0 0 1 10.368 35.712 66.56 66.56 0 0 1-25.408 54.336c-7.872 6.208-17.28 10.88-28.032 14.208a121.024 121.024 0 0 1-66.368 0.64 81.92 81.92 0 0 1-27.2-13.248 68.032 68.032 0 0 1-19.2-22.4 66.304 66.304 0 0 1-7.296-32h49.6a29.824 29.824 0 0 0 10.368 22.912 36.48 36.48 0 0 0 11.584 6.592 48.64 48.64 0 0 0 30.4 0 30.336 30.336 0 0 0 19.392-17.792 46.208 46.208 0 0 0-0.256-31.04 28.544 28.544 0 0 0-8.192-11.584 34.304 34.304 0 0 0-12.928-6.592 63.104 63.104 0 0 0-17.088-2.176h-26.432V812.8z",fill:"#9AA7B0"},null,-1)),oc=ot(()=>R("path",{d:"M384 128h512v192H384zM384 768h512v192H384zM384 448h512v192H384z",fill:"#40B6E0","fill-opacity":".7"},null,-1)),rc=[sc,oc],lc={key:1,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},uc=ot(()=>R("path",{d:"M192 128h640v192H192zM192 384h640v192H192zM192 640h640v192H192z",fill:"#F4AF3D","fill-opacity":".6"},null,-1)),cc=[uc],_c={class:"key"},pc=ot(()=>R("label",{class:"separator"},"=",-1)),dc={key:2,class:"object-type"},hc={key:3,class:"object-type"},fc={key:0,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},gc=ot(()=>R("path",{d:"M128 128h768v768H128z",fill:"#40B6E0","fill-opacity":".6","p-id":"8251"},null,-1)),mc=ot(()=>R("path",{d:"M691.968 704V422.912l-62.464 15.36L613.12 373.76l102.912-30.72h53.76V704h-77.824z m-284.288 6.144c-95.744 0-158.72-80.384-158.72-184.32V524.8c0-103.936 64.512-185.344 159.744-185.344 94.72 0 158.72 80.384 158.72 184.32V524.8c0 103.936-64 185.344-159.744 185.344z m1.408-71.168c47.616 0 77.824-48.128 77.824-113.152V524.8c0-65.024-31.744-114.176-78.848-114.176S330.24 458.24 330.24 523.776V524.8c0 65.536 31.232 114.176 78.848 114.176z",fill:"#231F20","fill-opacity":".7","p-id":"8252"},null,-1)),vc=[gc,mc],Ec={key:1,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Tc=ot(()=>R("path",{d:"M192 128h640v192H192zM192 384h640v192H192zM192 640h640v192H192z",fill:"#F4AF3D","fill-opacity":".6"},null,-1)),bc=[Tc],Sc={class:"key"},yc=ot(()=>R("label",{class:"separator"},"=",-1)),Oc={key:2,class:"object-type"},Ac={setup(e){const t=ae("opened"),n=pe(()=>!t.value.variables),i=P([{title:"\u7EE7\u7EED(F8)",icon:"continue",disabled:n,onClick(){E.$emit(w.DEBUG_CONTINUE)}},{title:"\u5355\u6B65(F6)",icon:"step-over",disabled:n,onClick(){E.$emit(w.DEBUG_SETPINTO)}},{title:"\u5C55\u5F00",icon:"expand-all",disabled:n,onClick:()=>We(t.value.variables,a=>a.opened=!0)},{title:"\u6298\u53E0",icon:"collapse-all",disabled:n,onClick:()=>We(t.value.variables,a=>a.opened=!1)}]);return(a,s)=>{const o=T("magic-panel-toolbar"),r=T("magic-icon"),l=T("magic-tree"),u=T("magic-empty");return v(),L("div",nc,[d(o,{toolbars:i.value},null,8,["toolbars"]),R("div",ic,[k(t).variables?(v(),U(l,{key:0,data:k(t).variables},{folder:x(({item:c})=>[d(r,{icon:c.opened?"arrow-bottom":"arrow-right",onClick:ve(f=>c.opened=!c.opened,["stop"])},null,8,["icon","onClick"]),c.dataType==="array"?(v(),L("svg",ac,rc)):(v(),L("svg",lc,cc)),R("label",_c,j(c.name),1),pc,c.size?(v(),L("span",dc,"("+j(c.size)+")",1)):Z("",!0),c.type?(v(),L("span",hc,j(`{${c.type}}`),1)):Z("",!0)]),file:x(({item:c})=>[d(r,{icon:"empty"}),c.dataType==="number"?(v(),L("svg",fc,vc)):(v(),L("svg",Ec,bc)),R("label",Sc,j(c.name),1),yc,R("span",{class:de(["magic-data-type",c.dataType])},j(c.value),3),c.type&&!c.isNull?(v(),L("span",Oc," ("+j(c.type)+")",1)):Z("",!0)]),_:1},8,["data"])):(v(),U(u,{key:1,text:"\u6682\u65E0\u53D8\u91CF\u4FE1\u606F"}))])])}}};var Rc=H(Ac,[["__scopeId","data-v-d6992652"]]),Ic=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Rc});const xc={class:"magic-event"},Cc=["innerHTML"],Lc={setup(e){const t=E.getStatusLog(),n=[{title:"\u6E05\u7A7A",icon:"clear",onClick:()=>{E.clearStatusLog()}}];return(i,a)=>{const s=T("magic-panel-toolbar"),o=T("magic-table-column"),r=T("magic-table");return v(),L("div",xc,[d(s,{toolbars:n}),d(r,{data:k(t),border:""},{default:x(()=>[d(o,{title:"\u65F6\u95F4",width:"180"},{default:x(({row:l})=>[Ye(j(l.timestamp),1)]),_:1}),d(o,{title:"\u4E8B\u4EF6\u5185\u5BB9"},{default:x(({row:l})=>[R("div",{innerHTML:l.content},null,8,Cc)]),_:1})]),_:1},8,["data"])])}}};var Nc=H(Lc,[["__scopeId","data-v-535abac4"]]),Pc=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Nc});const wc=["innerHTML"],kc=["onClick"],Dc={setup(e){const t=P([]),n=P(null),{proxy:i}=At(),a=o=>{i.$contextmenu({event:o,menus:[{icon:"delete",label:"\u6E05\u7A7A\u65E5\u5FD7",onClick:()=>t.value.splice(0)},{icon:"expand-all",label:"\u5168\u90E8\u5C55\u5F00",onClick:()=>t.value.forEach(r=>r.showMore=!0)},{icon:"collapse-all",label:"\u5168\u90E8\u6536\u7F29",onClick:()=>t.value.forEach(r=>r.showMore=!1)}]})},s=o=>{const r=o.map(l=>{let u=l.replace(/[&<>]/gm,function(f){return f==="&"?"&":f==="<"?"<":f===">"?">":""});u=u.replace(/(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}\s+)([^\s]+)( --- \[)(.{15})(] )(.{40})/gm,'$1 $2$3$4$5$6'),u=u.replace(/(https?:\/\/[^\s]+)/gm,'$1'),u=u.replace(/(\tat .*\()(.*?:\d+)(\).*?[\r\n])/g,'$1$2$3');let c=l.split(` +`).length;return{html:u,multiple:c>3,lines:c-4,showMore:!1}});r&&(t.value.push(...r),Pe(()=>{n.value&&(n.value.scrollTop=n.value.scrollHeight)}))};return E.$event(Re.LOGS,([o])=>s(o)),E.$event(Re.LOG,([o])=>s([o])),(o,r)=>{const l=T("magic-empty");return v(),L("div",{class:"magic-log-wrapper",onContextmenu:r[0]||(r[0]=ve(u=>a(u),["prevent"]))},[!t.value||t.value.length===0?(v(),U(l,{key:0,text:"\u6682\u65E0\u65E5\u5FD7"})):(v(),L("div",{key:1,class:"magic-log",ref:(u,c)=>{c.element=u,n.value=u}},[(v(!0),L(Q,null,ce(t.value,(u,c)=>(v(),L("div",{class:de({multiple:u.multiple,more:u.showMore}),key:"run_log_"+c},[R("pre",{innerHTML:u.html},null,8,wc),u.multiple?(v(),L("span",{key:0,class:"multiple",onClick:f=>u.showMore=!u.showMore},j(u.showMore?"\u70B9\u51FB\u9690\u85CF\u591A\u884C\u65E5\u5FD7":`\u6709 ${u.lines} \u884C\u65E5\u5FD7\u88AB\u9690\u85CF \u70B9\u51FB\u663E\u793A`),9,kc)):Z("",!0)],2))),128))],512))],32)}}};var $c=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Dc});const Mc={class:"magic-online"},Uc={setup(e){const t=et([]),n=ae("activateUserFiles"),i=(s,o)=>{const r=t.find(l=>l.cid===s);r&&(Object.values(n.value).forEach(l=>{const u=l.findIndex(c=>c.cid===s);u>-1&&l.splice(u,1)}),n.value[o]=n.value[o]||[],n.value[o].push(r))},a=s=>{t.some(o=>o.cid===s.cid)||t.push(s)};return E.$event(Re.LOGIN_RESPONSE,([s])=>{s==="1"&&t.splice(0,t.length),n.value={}}),E.$event(Re.USER_LOGIN,([s])=>{D.CLIENT_ID!==s.cid?(E.$emit(w.NOTIFY,{title:"\u7528\u6237\u4E0A\u7EBF",content:`\u7528\u6237${s.username}\u5DF2\u4E0A\u7EBF\uFF0CIP:${s.ip}`,duration:3e3}),E.status(`\u7528\u6237${s.username}\u5DF2\u4E0A\u7EBF\uFF0CIP:${s.ip}`)):E.send(Re.GET_ONLINE),a(s)}),E.$event(Re.USER_LOGOUT,([s])=>{D.CLIENT_ID!==s.cid&&(E.$emit(w.NOTIFY,{title:"\u7528\u6237\u4E0B\u7EBF",content:`\u7528\u6237${s.username}\u5DF2\u4E0B\u7EBF\uFF0CIP:${s.ip}`,duration:3e3}),E.status(`\u7528\u6237${s.username}\u5DF2\u4E0B\u7EBF\uFF0CIP:${s.ip}`));const o=t.findIndex(r=>r.cid===s.cid);i(s.cid,"0"),o>-1&&t.splice(o,1)}),E.$event(Re.ONLINE_USERS,([s])=>{s.forEach(o=>{D.CLIENT_ID!==o.cid&&(a(o),o.fileId&&i(o.cid,o.fileId))})}),E.$event(Re.INTO_FILE_ID,([s,o])=>i(s,o)),(s,o)=>{const r=T("magic-avatar-group");return v(),L("div",Mc,[d(r,{users:k(t),max:9},null,8,["users"]),R("span",null,"\u5F53\u524D\u5728\u7EBF\uFF1A"+j(k(t).length)+"\u4EBA",1)])}}};var Bc=H(Uc,[["__scopeId","data-v-14e0ee9e"]]),Fc=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Bc});const jc={class:"magic-status-bar"},Gc=["innerHTML"],Hc=["title","onClick"],Vc={props:{config:Object},setup(e){const t=e,n=P(null),i=[{icon:"gitee",title:"Gitee",displayKey:"repo",onClick:()=>window.open("https://gitee.com/ssssssss-team/magic-api")},{icon:"git",title:"Github",displayKey:"repo",onClick:()=>window.open("https://github.com/ssssssss-team/magic-api")},{icon:"qq",title:"\u52A0\u5165QQ\u7FA4",displayKey:"qqGroup",onClick:()=>window.open("https://qm.qq.com/cgi-bin/qm/qr?k=Q6dLmVS8cHwoaaP18A3tteK_o0244e6B&jump_from=webapi")},{icon:"help",title:"\u5E2E\u52A9\u6587\u6863",displayKey:"document",onClick:()=>window.open("https://ssssssss.org/magic-api")}],a=pe(()=>{const o=i.filter(r=>t.config.header[r.displayKey]!==!1);return n.value&&n.value.id&&n.value.username&&o.push({icon:"logout",title:n.value.username,onClick:()=>me.confirm("\u6CE8\u9500\u767B\u5F55",`\u662F\u5426\u8981\u6CE8\u9500\u767B\u5F55\u300C${n.value.username}\u300D`,()=>Y.sendPost("/logout").success(()=>{n.value=null,D.HEADER_MAGIC_TOKEN_VALUE="unauthorization",D.LOGINED=!1,je.remove(D.STORE.token),E.$emit(w.LOGOUT),E.status("\u6CE8\u9500\u767B\u5F55\u6210\u529F")}))}),o}),s=P("");return E.$on(w.LOGINED,()=>{E.status("\u83B7\u53D6\u5F53\u524D\u767B\u5F55\u7528\u6237\u4FE1\u606F"),Y.send("/user").success(o=>n.value=o)}),E.$on(w.STATUS,o=>s.value=o),(o,r)=>{const l=T("magic-online"),u=T("magic-icon");return v(),L("div",jc,[R("div",{class:"message",innerHTML:s.value},null,8,Gc),d(l),R("ul",null,[(v(!0),L(Q,null,ce(k(a),(c,f)=>(v(),L("li",{title:c.title,key:f,onClick:ve(c.onClick,["stop"])},[d(u,{icon:c.icon},null,8,["icon"])],8,Hc))),128))])])}}};var Yc=H(Vc,[["__scopeId","data-v-7891cbf6"]]),Kc=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Yc});const Wc={class:"magic-todo"},qc={key:3},zc={class:"todo"},Xc={setup(e){const t=P(!0),n=[{icon:"refresh",title:"\u5237\u65B0",onClick(){c()}},{icon:"expand-all",title:"\u5C55\u5F00",onClick:()=>We(i.value,g=>g.opened=!0)},{icon:"collapse-all",title:"\u6298\u53E0",onClick:()=>We(i.value,g=>g.opened=!1)}],i=P([]),a=ae("resources"),s={},o=g=>{(g.groupId||g.line)&&E.$emit(w.OPEN_WITH_ID,g.id)},r=(g,O)=>{let h=g.find(m=>m.id===O);if(!h)for(let m=0;m{let O=[];return g.forEach(h=>{h.line>0?O.push(h):h.folder&&h.children&&(h.children=l(h.children),h.children.length&&O.push(h))}),O},u=ae("service"),c=()=>{i.value=[],t.value=!0,Y.sendGet("/todo").success(g=>{const O=a();O.forEach(m=>s[m.navbar.type]=m.navbar);let h=!1;g.forEach(m=>{for(let p=0;pm.display).map(m=>({folder:!0,icon:m.navbar.icon,name:m.navbar.title,children:m.tree,root:!0}))),We(i.value,m=>m.opened=!0)),t.value=!1})};let f=!1;return E.$on(w.LOAD_RESOURCES_FINISH,c),ft(()=>{!f&&D.LOGINED&&c(),f=!0}),(g,O)=>{const h=T("magic-panel-toolbar"),m=T("magic-loading"),p=T("magic-icon"),b=T("magic-text-icon"),A=T("magic-tree"),I=T("magic-empty");return v(),L("div",Wc,[d(h,{toolbars:n}),R("div",null,[d(m,{loading:t.value},null,8,["loading"]),i.value.length>0?(v(),U(A,{key:0,data:i.value,onItemClick:o},{folder:x(({item:y})=>[d(p,{icon:y.opened?"arrow-bottom":"arrow-right",onClick:ve(C=>y.opened=!y.opened,["stop"])},null,8,["icon","onClick"]),y.root?(v(),U(p,{key:0,icon:y.icon},null,8,["icon"])):y.icon?(v(),U(b,{key:1,icon:y.icon},null,8,["icon"])):(v(),U(p,{key:2,icon:"list"})),R("label",null,j(y.name),1),y.path?(v(),L("span",qc,"("+j(y.path)+")",1)):Z("",!0)]),file:x(({item:y})=>[d(p),d(p,{icon:"todo"}),R("label",zc,j(y.text),1)]),_:1},8,["data"])):(v(),U(I,{key:1,text:"\u6682\u65E0TODO\u4E8B\u9879"}))])])}}};var Jc=H(Xc,[["__scopeId","data-v-4bb5213c"]]),Qc=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Jc});const Zc={class:"magic-toolbar"},e_={class:"magic-toolbar-header"},t_={class:"magic-toolbar-header-buttons"},n_={setup(e){const t=P(null),n=et([{type:"api",title:"\u63A5\u53E3\u4FE1\u606F",icon:"parameter",component:ke(X("magic-api-info"))},{id:"response",type:"api",title:"\u6267\u884C\u7ED3\u679C",icon:"run",component:ke(X("magic-api-response"))},{id:"debug",type:"api",title:"\u8C03\u8BD5\u4FE1\u606F",icon:"debug-info",component:ke(X("magic-debug"))},{type:"function",title:"\u51FD\u6570\u4FE1\u606F",icon:"parameter",component:ke(X("magic-function-info"))},{type:"group-api",title:"\u63A5\u53E3\u5206\u7EC4",icon:"parameter",component:ke(X("magic-api-group"))},{type:"websocket",title:"WebSocket\u4FE1\u606F",icon:"parameter",component:ke(X("magic-todo"))},{type:"cron",title:"\u5B9A\u65F6\u4EFB\u52A1\u4FE1\u606F",icon:"parameter",component:ke(X("magic-todo"))},{type:"resource",title:"\u8D44\u6E90\u4FE1\u606F",icon:"parameter",component:ke(X("magic-todo"))},{id:"log",title:"\u8FD0\u884C\u65E5\u5FD7",icon:"log",component:ke(X("magic-log"))},{type:"api",title:"\u5168\u5C40\u53C2\u6570",icon:"settings",component:ke(X("magic-global"))},{id:"todo",title:"TODO",icon:"todo",component:ke(X("magic-todo"))},{id:"history",title:"\u5386\u53F2\u8BB0\u5F55",icon:"history",component:ke(X("magic-backup"))},{id:"event",title:"\u4E8B\u4EF6",icon:"event",component:ke(X("magic-event")),style:{float:"right"}}]),i=P({}),a=P({});Ze("opened",i),Ze("info",a);const s=o=>{n.forEach(r=>r.show=r.type===void 0||r.type===o),t.value&&t.value.select(n.findIndex(r=>r.show))};return s(""),E.$on(w.OPEN_EMPTY,()=>s("")),E.$on(w.OPEN,o=>{o.responseBlobValue=null,i.value=o,a.value=o.item,s(o.type)}),E.$on(w.OPEN_GROUP,o=>{s("group-"+o.type),a.value=o}),E.$on(w.SWITCH_TOOLBAR,o=>{const r=n.findIndex(l=>l.id===o);r>-1&&t.value.select(r)}),(o,r)=>{const l=T("magic-icon"),u=T("magic-resizer"),c=T("magic-navbar-item"),f=T("magic-navbar");return v(),L("div",Zc,[d(f,{direction:"horizontal",ref:(g,O)=>{O.navbar=g,t.value=g}},{default:x(()=>[(v(!0),L(Q,null,ce(k(n),(g,O)=>(v(),U(c,rt({key:O},g),{default:x(()=>[d(u,{direction:"y",max:600,min:250},{default:x(()=>[R("div",e_,[R("label",null,j(g.title),1),R("div",t_,[d(l,{icon:"minimize",size:"14px",title:"\u6700\u5C0F\u5316",onClick:r[0]||(r[0]=h=>t.value.select(-1))})])]),(v(),U(X(g.component)))]),_:2},1024)]),_:2},1040))),128))]),_:1},512)])}}};var i_=H(n_,[["__scopeId","data-v-8958a5f2"]]),a_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:i_});const s_={class:"magic-panel-function"},o_={props:{info:Object},setup(e){const{info:t}=e,n=P(-1),i=P(we(t.parameters));return(a,s)=>{const o=T("magic-panel-common-toolbar"),r=T("magic-input"),l=T("magic-table-column"),u=T("magic-select"),c=T("magic-table");return v(),L("div",s_,[d(o,{index:n.value,"onUpdate:index":s[0]||(s[0]=f=>n.value=f),value:i.value},null,8,["index","value"]),d(c,{data:i.value,border:"",onClickRow:s[1]||(s[1]=f=>n.value=f)},{default:x(()=>[d(l,{title:"\u53C2\u6570\u540D",width:"20%"},{default:x(({row:f})=>[d(r,{value:f.name,"onUpdate:value":g=>f.name=g,border:!1},null,8,["value","onUpdate:value"])]),_:1}),d(l,{title:"\u53C2\u6570\u7C7B\u578B",width:"20%"},{default:x(({row:f})=>[d(u,{options:a.$FUNCTION_RETURN_TYPES,value:f.dataType,"onUpdate:value":g=>f.dataType=g,"default-select":a.$DEFAULT_FUNCTION_RETURN_TYPE,border:!1},null,8,["options","value","onUpdate:value","default-select"])]),_:1}),d(l,{title:"\u63CF\u8FF0",flex:"1"},{default:x(({row:f})=>[d(r,{value:f.description,"onUpdate:value":g=>f.description=g,border:!1},null,8,["value","onUpdate:value"])]),_:1})]),_:1},8,["data"])])}}};var r_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:o_});const l_={setup(e){const t=P(!1),n=P([]);E.$on(w.DO_DOWNLOAD,()=>t.value=!0);const i=()=>{n.value.length?Y.sendJson("/download",n.value,{method:"post",headers:{"Content-Type":"application/json"},transformRequest:[],responseType:"blob"}).success(a=>{un(a,"magic-api.zip"),E.status("\u6570\u636E\u5DF2\u5BFC\u51FA\u5B8C\u6BD5"),t.value=!1,E.report("resource-export")}):me.alert("\u8BF7\u9009\u62E9\u4E4B\u540E\u5728\u8FDB\u884C\u5BFC\u51FA\uFF01")};return(a,s)=>{const o=T("magic-resource-choose"),r=T("magic-button"),l=T("magic-button-group"),u=T("magic-dialog");return v(),U(u,{title:"\u5BFC\u51FA",value:t.value,"onUpdate:value":s[5]||(s[5]=c=>t.value=c),shade:!1,padding:"0",width:"400px",top:"60px",overflow:"hidden"},{default:x(()=>[d(o,{ref:(c,f)=>{f.resource=c},value:n.value,"onUpdate:value":s[0]||(s[0]=c=>n.value=c)},null,8,["value"]),d(l,{align:"right",style:{margin:"5px 0","margin-right":"5px"}},{default:x(()=>[d(r,{value:"\u5C55\u5F00",onOnClick:s[1]||(s[1]=c=>a.$refs.resource.expand(!0))}),d(r,{value:"\u6536\u7F29",onOnClick:s[2]||(s[2]=c=>a.$refs.resource.expand(!1))}),d(r,{value:"\u5168\u9009",onOnClick:s[3]||(s[3]=c=>a.$refs.resource.selectAll(!0))}),d(r,{value:"\u53D6\u6D88\u5168\u9009",onOnClick:s[4]||(s[4]=c=>a.$refs.resource.selectAll(!1))}),d(r,{type:"active",value:"\u5BFC\u51FA",onOnClick:i})]),_:1})]),_:1},8,["value"])}}};var u_=H(l_,[["__scopeId","data-v-17f31570"]]),c_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:u_});const __={class:"magic-header"},p_={class:"magic-logo"},d_=["title"],h_=["title"],f_={class:"magic-header-title"},g_=["title","onClick"],m_={class:"magic-skin-selector"},v_=["onClick"],E_={props:{title:{type:String,default:"magic-api"},themeStyle:Object},setup(e){const{themeStyle:t}=e,n=D.MAGIC_API_VERSION_TEXT,i=P(!1),a=P({}),s=P("");E.$on(w.OPEN_EMPTY,()=>{s.value="",a.value={}}),E.$on(w.OPEN,u=>{a.value=u,s.value=u.path(),mt(u,()=>{a.value===u&&(s.value=u.path())})});const o=P([{name:"\u8FD0\u884C(Ctrl + Q)",icon:"run",disabled:pe(()=>a.value.runnable!==!0||a.value.running===!0),onClick:()=>E.$emit(w.DO_TEST)},{name:"\u4FDD\u5B58(Ctrl + S)",icon:"save",onClick:()=>E.$emit(w.DO_SAVE,!0)},{name:"\u641C\u7D22(Ctrl + Shift + F)",icon:"search",onClick:()=>E.$emit(w.DO_SEARCH)},{name:"\u4E0A\u4F20",icon:"upload",onClick:()=>E.$emit(w.DO_UPLOAD)},{name:"\u5BFC\u51FA",icon:"download",onClick:()=>E.$emit(w.DO_DOWNLOAD)},{name:"\u63A8\u9001",icon:"push",onClick:()=>E.$emit(w.DO_PUSH)},{name:"\u76AE\u80A4",icon:"skin",onClick:()=>i.value=!i.value},{name:"\u91CD\u65B0\u52A0\u8F7D\u6240\u6709\u6570\u636E",icon:"refresh",onClick:()=>E.$emit(w.RELOAD_RESOURCES)}]),r=u=>{D.THEME=u,E.$emit(w.SWITCH_THEME,u),E.status(`\u5207\u6362\u76AE\u80A4\u81F3\u300C${u}\u300D`),Ke.setTheme(u),Object.keys(t).forEach(f=>t[f]=void 0);let c=Ht[u];je.set(D.STORE.theme,u),Object.keys(c).forEach(f=>t[`--${f}`]=c[f]),i.value=!1},l=je.get(D.STORE.theme);return l!==D.THEME&&Ht[l]&&r(l),(u,c)=>{const f=T("magic-icon");return v(),L(Q,null,[R("div",__,[R("div",p_,[R("label",{title:e.title},j(e.title),9,d_),R("label",{title:k(n)},j(k(n)),9,h_)]),R("div",f_,j(s.value),1),R("ul",null,[(v(!0),L(Q,null,ce(o.value,(g,O)=>(v(),L("li",{key:O,title:g.name,onClick:ve(h=>g.disabled!==!0&&g.onClick(),["stop"]),class:de({disabled:g.disabled===!0})},[d(f,{icon:g.icon},null,8,["icon"])],10,g_))),128))])]),nn(R("div",m_,[R("ul",null,[(v(!0),L(Q,null,ce(Object.keys(k(Ht)),g=>(v(),L("li",{key:"theme_"+g,onClick:O=>r(g)},j(g),9,v_))),128))])],512),[[Hn,i.value]])],64)}}};var T_=H(E_,[["__scopeId","data-v-6bfe1363"]]),b_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:T_});const Di=e=>(tt("data-v-32537a17"),e=e(),nt(),e),S_={class:"magic-push-form"},y_=Di(()=>R("label",null,"\u8FDC\u7A0B\u5730\u5740\uFF1A",-1)),O_=Di(()=>R("label",null,"\u79D8\u94A5\uFF1A",-1)),A_={setup(e){const t=P(!1),n=P([]),i=P("http://host:port/_magic-api-sync"),a=P("123456789");E.$on(w.DO_PUSH,()=>t.value=!0);const s=r=>{Y.sendJson("/push",n.value,{method:"post",headers:{"magic-push-target":i.value,"magic-push-secret-key":a.value,"magic-push-mode":r,"Content-Type":"application/json"},transformRequest:[]}).success(()=>{const l=r==="full"?"\u5168\u91CF\u63A8\u9001":"\u589E\u91CF\u63A8\u9001";E.status(l+"\u6210\u529F"),t.value=!1,E.$emit(w.LOAD_RESOURCES),E.report("resource-push")})},o=r=>{n.value.length?r==="full"?me.confirm("\u8FDC\u7A0B\u63A8\u9001","\u5168\u91CF\u6A21\u5F0F\u63A8\u9001\u65F6\uFF0C\u4EE5\u672C\u5730\u6570\u636E\u4E3A\u51C6\u5168\u91CF\u8986\u76D6\u66F4\u65B0,\u662F\u5426\u7EE7\u7EED\uFF1F",()=>s(r)):s(r):me.alert("\u8BF7\u9009\u62E9\u4E4B\u540E\u5728\u8FDB\u884C\u63A8\u9001\uFF01")};return(r,l)=>{const u=T("magic-resource-choose"),c=T("magic-input"),f=T("magic-button"),g=T("magic-button-group"),O=T("magic-dialog");return v(),U(O,{title:"\u63A8\u9001",value:t.value,"onUpdate:value":l[7]||(l[7]=h=>t.value=h),shade:!1,padding:"0",width:"400px",top:"60px",overflow:"hidden"},{default:x(()=>[d(u,{ref:(h,m)=>{m.resource=h},value:n.value,"onUpdate:value":l[0]||(l[0]=h=>n.value=h)},null,8,["value"]),R("div",S_,[R("div",null,[y_,d(c,{value:i.value,"onUpdate:value":l[1]||(l[1]=h=>i.value=h)},null,8,["value"])]),R("div",null,[O_,d(c,{value:a.value,"onUpdate:value":l[2]||(l[2]=h=>a.value=h),type:"password"},null,8,["value"])])]),d(g,{align:"right",style:{margin:"5px 0","margin-right":"5px"}},{default:x(()=>[d(f,{value:"\u5168\u9009",onOnClick:l[3]||(l[3]=h=>r.$refs.resource.selectAll(!0))}),d(f,{value:"\u53D6\u6D88\u5168\u9009",onOnClick:l[4]||(l[4]=h=>r.$refs.resource.selectAll(!1))}),d(f,{type:"active",value:"\u589E\u91CF\u63A8\u9001",onOnClick:l[5]||(l[5]=h=>o("increment"))}),d(f,{value:"\u5168\u91CF\u63A8\u9001",onOnClick:l[6]||(l[6]=h=>o("full"))})]),_:1})]),_:1},8,["value"])}}};var R_=H(A_,[["__scopeId","data-v-32537a17"]]),I_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:R_});const x_={class:"magic-search-result"},C_=["onClick"],L_=["innerHTML"],N_={class:"name"},P_=["textContent"],w_={class:"display-text"},k_={setup(e){const t=P(""),n=P(!1),i=ae("findResource"),a=P([]),s=P({}),o=pe(()=>s.value.name+(s.value.path?`(${s.value.path})`:"")),r=m=>{m.script||Y.sendGet(`/resource/file/${m.id}`).success(p=>{m.script=p.script})},l=m=>{s.value=m,r(m),E.$emit(w.OPEN_WITH_ID,m.id),n.value=!1,a.value=[],t.value=""};E.$on(w.DO_SEARCH,()=>{a.value=[],t.value="",n.value=!n.value});let u=null;const c=m=>{const p=[...m.childNodes],b=[];for(;p.length;){const A=p.shift();A.nodeType===A.TEXT_NODE?b.push(A):p.unshift(...A.childNodes)}return b},f=m=>{let p=0;return m.map(b=>{let A=p,I=p+b.wholeText.length;return p=I,{text:b.wholeText,startIdx:A,endIdx:I}})},g=(m,p)=>{const b=[..."[]()?.+*^${}:"].reduce((I,y)=>(I[y]=!0,I),{});p=p.split("").map(I=>b[I]?`\\${I}`:I).join("[\\s\\n]*");const A=new RegExp(p,"gmi");return[...m.matchAll(A)]},O=(m,p,b)=>{for(let A=b.length-1;A>=0;A--){const I=b[A],y=I.index,C=y+I[0].length;for(let $=0;$=C)break;let xe=m[$];const De=Math.max(0,y-ee),te=Math.min(fe,C)-ee-De;De>0&&(xe=xe.splitText(De)),te{if(!p)return m;const b=document.createElement("div");b.innerHTML=m;const A=c(b),I=f(A),y=I.map(({text:$})=>$).join(""),C=g(y,p);return O(A,I,C),b.innerHTML};return mt(t,m=>{const p=m.trim();clearTimeout(u),p&&(u=setTimeout(()=>{Y.send("/search",{keyword:p},{method:"POST"}).success(async b=>{const A=[],I=await Zi.getPromise("magicscript");for(let y=0;y0&&(s.value=A[0],r(s.value)),a.value=A})},600))}),(m,p)=>{const b=T("magic-input"),A=T("magic-monaco-editor"),I=T("magic-dialog");return v(),U(I,{title:"\u5168\u5C40\u641C\u7D22",value:n.value,"onUpdate:value":p[1]||(p[1]=y=>n.value=y),shade:!1,padding:"0",width:"700px",top:"60px"},{default:x(()=>[d(b,{value:t.value,"onUpdate:value":p[0]||(p[0]=y=>t.value=y),placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22"},null,8,["value"]),a.value.length>0?(v(),L(Q,{key:0},[R("div",x_,[(v(!0),L(Q,null,ce(a.value,(y,C)=>(v(),L("div",{key:C,class:de(["magic-search-result-item",{selected:s.value===y}]),onClick:$=>l(y)},[R("div",{class:"label",innerHTML:y.text},null,8,L_),R("div",N_,j(y.name),1),R("div",{class:"line",textContent:j(y.line)},null,8,P_)],10,C_))),128))]),R("div",w_,j(k(o)),1),d(A,{readonly:"",value:s.value.script,language:"magicscript",style:{width:"100%",height:"300px"},matches:t.value},null,8,["value","matches"])],64)):Z("",!0)]),_:1},8,["value"])}}};var D_=H(k_,[["__scopeId","data-v-2baa1fdc"]]),$_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:D_});const M_={setup(e){const t=P(!1),n=P(null),i=a=>{if(n.value){const s=new FormData;s.append("file",n.value,n.value.name),s.append("mode",a);const o=()=>{Y.send("/upload",s,{method:"post",headers:{"Content-Type":"multipart/form-data"}}).success(r=>{const l=a==="full"?"\u5168\u91CF\u4E0A\u4F20":"\u589E\u91CF\u4E0A\u4F20";r?(E.status(l+"\u6210\u529F"),t.value=!1,E.$emit(w.LOAD_RESOURCES),E.report(`upload-${a}`)):(E.status(l+"\u5931\u8D25",!1),E.report(`upload-${a}-error`))})};a==="full"?me.confirm("\u4E0A\u4F20","\u5168\u91CF\u6A21\u5F0F\u4E0A\u4F20\u65F6\uFF0C\u4EE5\u4E0A\u4F20\u7684\u6570\u636E\u4E3A\u51C6\u8FDB\u884C\u8986\u76D6\u66F4\u65B0\u64CD\u4F5C\uFF0C\u53EF\u80FD\u4F1A\u5220\u9664\u5176\u4ED6\u63A5\u53E3
\u5728\u975E\u5168\u91CF\u5BFC\u51FA\u65F6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u589E\u91CF\u66F4\u65B0\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",o):o()}};return E.$on(w.DO_UPLOAD,()=>t.value=!0),(a,s)=>{const o=T("magic-file"),r=T("magic-button"),l=T("magic-button-group"),u=T("magic-dialog");return v(),U(u,{title:"\u4E0A\u4F20",value:t.value,"onUpdate:value":s[3]||(s[3]=c=>t.value=c)},{default:x(()=>[d(o,{value:n.value,"onUpdate:value":s[0]||(s[0]=c=>n.value=c),accept:"application/x-zip-compressed"},null,8,["value"]),d(l,{align:"right",style:{"margin-top":"5px"}},{default:x(()=>[d(r,{value:"\u589E\u91CF\u4E0A\u4F20",type:"active",onClick:s[1]||(s[1]=c=>i("increment"))}),d(r,{value:"\u5168\u91CF\u4E0A\u4F20",onClick:s[2]||(s[2]=c=>i("full"))})]),_:1})]),_:1},8,["value"])}}};var U_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:M_});const B_={class:"magic-data-resource"},F_={class:"magic-data-resource-header"},j_=["title","onClick"],G_={key:1},H_=["onContextmenu"],V_={props:{type:String,title:String,data:Array},setup(e){const t=e,n=X(`magic-datasource-${t.type}`),i=P(!1),a=P(""),s=P({}),o=P(""),r=P(""),l=P(!0),u=pe(()=>t.data&&t.data.length>0&&t.data[0].children&&t.data[0].children.filter(I=>I.name.indexOf(o.value)>-1||I.key.indexOf(o.value)>-1)||[]),c=ae("service")[t.type],f=[{name:`\u65B0\u5EFA${t.title}`,icon:"plus",onClick:()=>{a.value=`\u521B\u5EFA${t.title}`,r.value="\u521B\u5EFA",s.value={},i.value=!0,l.value=!1}}],g=()=>{c.doTest(s.value)},{proxy:O}=At(),h=(I,y)=>{I.groupId=`${t.type}:0`,Y.sendJson(`/resource/file/${t.type}/save`,I).success(C=>{if(C){I.id===C?E.report("datasource-save"):E.report("datasource-add"),I.id=C,E.status(`${y}\u6210\u529F`);const $=t.data[0].children.find(q=>q.id===I.id);$?Object.keys(I).forEach(q=>$[q]=I[q]):t.data[0].children.push(I),i.value=!1}else E.status(`${y}\u5931\u8D25`,!1),O.$alert(`${y}\u5931\u8D25`)})},m=()=>{const I=_e({},s.value);h(I,`\u4FDD\u5B58${t.title}\u300C${p(I)}\u300D`)},p=I=>`${I.name}(${I.key})`,b=I=>{const y=t.data[0].children.findIndex(C=>C===I);y>-1&&t.data[0].children.splice(y,1)},A=(I,y)=>{const C=[{label:`\u4FEE\u6539${t.title}`,icon:"update",divided:!0,onClick:()=>{l.value=!0,a.value=`\u4FEE\u6539${t.title}`,r.value="\u4FEE\u6539",i.value=!0,E.status(`\u83B7\u53D6${t.title}\u300C${p(I)}\u300D\u8BE6\u60C5`),Y.sendGet(`/resource/file/${I.id}`).success($=>s.value=$).end(()=>{l.value=!1})}},{label:`\u5220\u9664${t.title}`,icon:"delete",onClick:()=>{O.$confirm(`\u5220\u9664${t.title}`,`\u662F\u5426\u8981\u5220\u9664${t.title}\u300C${p(I)}\u300D`,()=>{Y.send("/resource/delete",{id:I.id}).success($=>{E.status(`\u5220\u9664${t.title}\u300C${p(I)}\u300D${$?"\u6210\u529F":"\u5931\u8D25"}`,$),$?(E.report("datasource-delete"),b(I)):O.$alert(`\u5220\u9664${t.title}\u300C${p(I)}\u300D\u5931\u8D25`)})})}},{label:`\u590D\u5236${t.title}`,icon:"copy",divided:!0,onClick:()=>{Y.send(`/resource/file/${I.id}`).success($=>{$.id=void 0,$.name=$.name+"(\u590D\u5236)",$.key=$.key+"_copy",h($,`\u590D\u5236${t.title}\u300C${p($)}\u300D`)})}}];I.lock===D.LOCKED?C.push({label:"\u89E3\u9501",icon:"unlock",onClick:()=>Y.sendPost("/resource/unlock",{id:I.id}).success($=>{E.status(`${t.title}\u300C${p(I)}\u300D\u89E3\u9501${$?"\u6210\u529F":"\u5931\u8D25"}`,$),$&&(I.lock=D.UNLOCK,E.report("resource-unlock"))})}):C.push({label:"\u9501\u5B9A",icon:"lock",onClick:()=>Y.sendPost("/resource/lock",{id:I.id}).success($=>{E.status(`${t.title}\u300C${p(I)}\u300D\u9501\u5B9A${$?"\u6210\u529F":"\u5931\u8D25"}`,$),$&&(I.lock=D.LOCKED,E.report("resource-lock"))})}),O.$contextmenu({menus:C,event:y})};return(I,y)=>{const C=T("magic-icon"),$=T("magic-input"),q=T("magic-empty"),ee=T("magic-button"),fe=T("magic-button-group"),xe=T("magic-loading"),De=T("magic-dialog");return v(),L(Q,null,[R("div",B_,[R("div",F_,[R("ul",null,[(v(),L(Q,null,ce(f,(te,Oe)=>(v(),L(Q,{key:Oe},[!te.show||te.show()?(v(),L("li",{key:0,title:te.name||"",onClick:Je=>te.onClick&&te.onClick(),class:de({separator:te.separator})},[te.separator?Z("",!0):(v(),U(C,{key:0,icon:te.icon},null,8,["icon"]))],10,j_)):Z("",!0)],64))),64))]),d($,{value:o.value,"onUpdate:value":y[0]||(y[0]=te=>o.value=te),placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",width:"auto"},null,8,["value"]),d(C,{icon:"search",size:"14px"})]),k(u).length===0?(v(),U(q,{key:0,text:`\u6682\u65E0${e.title}\u4FE1\u606F`},null,8,["text"])):(v(),L("ul",G_,[(v(!0),L(Q,null,ce(k(u),(te,Oe)=>(v(),L("li",{key:Oe,onContextmenu:ve(Je=>A(te,Je),["prevent"])},[d(C,{icon:"datasource"}),R("label",null,j(te.name||"\u4E3B\u6570\u636E\u6E90"),1),R("span",null,"("+j(te.key||"default")+")",1),te.lock==="1"?(v(),U(C,{key:0,icon:"lock"})):Z("",!0)],40,H_))),128))]))]),d(De,{value:i.value,"onUpdate:value":y[4]||(y[4]=te=>i.value=te),title:a.value,width:"450px"},{default:x(()=>[d(xe,{loading:l.value,style:{"min-height":"200px"}},{default:x(()=>[(v(),U(X(k(n)),{info:s.value},null,8,["info"])),d(fe,{align:"right",style:{padding:"5px 0"}},{default:x(()=>[d(ee,{value:r.value,type:"active",onOnClick:y[1]||(y[1]=te=>m())},null,8,["value"]),d(ee,{value:"\u6D4B\u8BD5\u8FDE\u63A5",onOnClick:y[2]||(y[2]=te=>g())}),d(ee,{value:"\u53D6\u6D88",onOnClick:y[3]||(y[3]=te=>i.value=!1)})]),_:1})]),_:1},8,["loading"])]),_:1},8,["value","title"])],64)}}};var Y_=H(V_,[["__scopeId","data-v-41719f90"]]),K_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Y_});const Qt=e=>(tt("data-v-39f3ed68"),e=e(),nt(),e),W_={class:"magic-login"},q_=Qt(()=>R("label",null,"\u7528\u6237\u540D\uFF1A",-1)),z_=Qt(()=>R("div",{style:{height:"2px"}},null,-1)),X_=Qt(()=>R("label",null,"\u5BC6\u7801\uFF1A",-1)),J_=Qt(()=>R("div",{style:{height:"2px"}},null,-1)),Q_={props:{value:Boolean},emits:["update:value"],setup(e,{emit:t}){const n=P(""),i=P(""),a=()=>{n.value&&i.value&&Y.sendPost("/login",{username:n.value,password:i.value}).success((s,o)=>{s&&(t("update:value",!1),D.HEADER_MAGIC_TOKEN_VALUE=o.headers[D.HEADER_MAGIC_TOKEN],je.set(D.STORE.token,D.HEADER_MAGIC_TOKEN_VALUE),E.$emit(w.LOGINED))})};return(s,o)=>{const r=T("magic-input"),l=T("magic-button"),u=T("magic-button-group"),c=T("magic-dialog");return v(),U(c,{title:"\u767B\u5F55",showClose:!1,value:e.value,"onUpdate:value":o[2]||(o[2]=f=>an(value)?value.value=f:null)},{default:x(()=>[R("div",W_,[q_,d(r,{onEnter:a,value:n.value,"onUpdate:value":o[0]||(o[0]=f=>n.value=f)},null,8,["value"]),z_,X_,d(r,{onEnter:a,value:i.value,"onUpdate:value":o[1]||(o[1]=f=>i.value=f),type:"password"},null,8,["value"]),J_]),d(u,{align:"center"},{default:x(()=>[d(l,{value:"\u767B\u5F55",onOnClick:a})]),_:1})]),_:1},8,["value"])}}};var Z_=H(Q_,[["__scopeId","data-v-39f3ed68"]]),ep=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Z_});function tp(e,t){E.$emit(w.SWITCH_TOOLBAR,"log"),t.headers[D.HEADER_REQUEST_CLIENT_ID]=D.CLIENT_ID,t.headers[D.HEADER_REQUEST_SCRIPT_ID]=e.item.id,t.headers[D.HEADER_MAGIC_TOKEN]=D.HEADER_MAGIC_TOKEN_VALUE,t.headers[D.HEADER_REQUEST_BREAKPOINTS]=(e.decorations||[]).filter(s=>s.options.linesDecorationsClassName==="breakpoints").map(s=>s.range.startLineNumber).join(","),t.responseType="blob",t.validateStatus=()=>!0;let n=0;t.transformResponse=[function(s,o){return n=s.size,o["content-disposition"]?new Promise(r=>r(s)):new Promise(r=>{const l=new FileReader;l.readAsText(s),l.onload=function(){try{r(JSON.parse(this.result))}catch{r(s)}}})}];const i=e.path();E.status(`\u5F00\u59CB\u6D4B\u8BD5\u300C${i}\u300D`);const a=new Date().getTime();Y.execute(t).then(s=>s.data.then(o=>{E.status(`\u300C${i}\u300D\u6D4B\u8BD5\u5B8C\u6BD5\uFF0C\u72B6\u6001\uFF1A${s.status} \u5927\u5C0F\uFF1A${Ca(n)} \u8017\u65F6\uFF1A${new Date().getTime()-a} ms`),e.running=!1,(e.responseBlob=o instanceof Blob)?(e.responseBlobValue=o,e.item.responseBody=null,e.item.responseBodyDefinition=null):(e.item.responseBody=JSON.stringify(o),e.item.responseBodyDefinition=bi(e.item.responseBody,e.item.responseBodyDefinition)),e.responseHeaders=s.headers,Pe(()=>E.$emit(w.SWITCH_TOOLBAR,"response"))})).catch(s=>{E.status(`\u8BF7\u6C42\u51FA\u9519\uFF1A\u300C${i}\u300D`,!1),e.running=!1,Y.processError(s)}),E.report("api-run")}function np(e){e.running=!0;const t=e.item,n={baseURL:D.SERVER_URL,url:e.requestPath(),method:t.method,headers:{},responseType:"json",withCredentials:!0},i=s=>s.filter(o=>o.value&&o.value.trim()).forEach(o=>n.url=n.url.replace(new RegExp(`{${o.name}}`,"g"),o.value.trim()));if(e.getGroups().filter(s=>s.paths&&s.paths.length>0).map(s=>s.paths).forEach(s=>i(s)),i(t.paths||[]),n.url.indexOf("{")>-1){me.alert("\u8BF7\u586B\u5199\u8DEF\u5F84\u53D8\u91CF\u540E\u5728\u6D4B\u8BD5\uFF01"),e.running=!1;return}D.GLOBAL.headers.filter(s=>s.name).forEach(s=>n.headers[s.name]=s.value),t.headers.filter(s=>s.name).forEach(s=>n.headers[s.name]=s.value);const a={};if(D.GLOBAL.parameters.filter(s=>s.name).forEach(s=>a[s.name]=s.value),t.parameters.filter(s=>s.name).forEach(s=>a[s.name]=s.value),Object.values(a).some(s=>s instanceof FileList||s instanceof File)){n.headers["Content-Type"]="multipart/form-data";const s=new FormData;Object.keys(a).forEach(o=>{let r=a[o];r instanceof FileList?Array.from(r).forEach(l=>s.append(o,l,l.name)):r instanceof File?s.append(o,r,r.name):s.append(o,r)}),n.data=s}else{n.headers["Content-Type"]="application/x-www-form-urlencoded",n.method!=="POST"||t.requestBody?n.params=a:n.data=a;try{if(t.requestBody){const s=JSON.parse(t.requestBody);(Array.isArray(s)&&s.length>0||typeof s=="object"&&Object.keys(s).length>0)&&(n.params=a,n.data=t.requestBody,n.headers["Content-Type"]="application/json",n.transformRequest=[])}}catch{e.running=!1,me.alert("RequestBody \u53C2\u6570\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\uFF01")}}tp(e,n)}var ip={doTest:np,getIcon:e=>e.method||"GET",runnable:!0,requirePath:!0,name:"\u63A5\u53E3",merge:e=>(e.method=e.method||D.DEFAULT_REQUEST_METHOD,e.parameters=e.parameters||[],e.headers=e.headers||[],e.paths=e.paths||[],e.options=e.options||[],e),processSave:e=>({id:e.id,name:e.name,path:e.path,groupId:e.groupId,lock:e.lock,method:e.method,description:e.description,createBy:e.createBy,createDate:e.createDate,properties:e.properties,script:e.script,responseBody:e.responseBody,responseBodyDefinition:e.responseBodyDefinition,requestBody:e.requestBody,requestBodyDefinition:e.requestBodyDefinition,parameters:e.parameters.filter(t=>t.name),headers:e.headers.filter(t=>t.name),paths:e.paths.filter(t=>t.name),options:e.options.filter(t=>t.name)})},ap={getIcon:e=>"function",name:"\u51FD\u6570",runnable:!1,requirePath:!0,merge:e=>(e.parameters=e.parameters||[],e)},sp={getIcon:e=>"websocket",runnable:!1,requirePath:!0,merge:e=>e},op={getIcon:e=>"task",runnable:!1,requirePath:!1,merge:e=>e},rp={getIcon:e=>"task",runnable:!1,requirePath:!1,merge:e=>e},lp={getIcon:e=>"task",runnable:!1,requirePath:!1,merge:e=>e},up={doTest:e=>{Y.sendJson("/datasource/jdbc/test",e).success(t=>{t==="ok"?me.alert("\u8FDE\u63A5\u6210\u529F","\u6D4B\u8BD5\u8FDE\u63A5"):me.alert(`\u8FDE\u63A5\u5931\u8D25\uFF0C\u9519\u8BEF\u539F\u56E0\uFF1A\r +`+t,"\u6D4B\u8BD5\u8FDE\u63A5")})}};const cp={class:"magic-main"},_p={class:"magic-main-body-wrapper"},pp={class:"magic-main-body"},dp={emits:["onLoad"],setup(e,{expose:t,emit:n}){const i=P(!1),a=P({}),s=P(!0),o=P(null),r=(p,b,A)=>{for(let I=0,y=p.length;I{const b=Object.entries(a.value);for(let A=0,I=b.length;A0)return{item:y[0],type:C[0],name:ut("/"+y.reverse().map($=>$.name).join("/")),path:ut("/"+y.reverse().map($=>$.path||"").join("/"))}}});const l=[{type:"api",title:"\u63A5\u53E3",icon:"api"},{type:"function",title:"\u51FD\u6570",icon:"function"},{type:"websocket",title:"WebSocket",icon:"websocket"},{type:"cron",title:"\u5B9A\u65F6\u4EFB\u52A1",icon:"task"},{type:"resource",title:"\u8D44\u6E90\u6587\u4EF6",icon:"resource"}];Ze("service",{api:ip,function:ap,websocket:sp,task:rp,cron:lp,resource:op,datasource:up}),l.map(p=>p.type).forEach(p=>a.value[p]=[]);const u=[{type:"datasource",title:"Datasource",icon:"datasource",name:"\u6570\u636E\u6E90"},{type:"redis",title:"Redis",icon:"redis",name:"Redis\u6570\u636E\u6E90"},{type:"mongo",title:"Mongo",icon:"mongo",name:"Mongo\u6570\u636E\u6E90"},{type:"elasticsearch",title:"ElasticSearch",icon:"elasticsearch",name:"ElasticSearch\u6570\u636E\u6E90"}];u.map(p=>p.type).forEach(p=>a.value[p]=[]),Ze("resources",()=>{const p=[...l,...u],b=A=>A.length===1&&A[0].id.endsWith(":0")?A[0].children:A;return p.map(A=>({key:A.type,navbar:A,tree:b(JSON.parse(JSON.stringify(a.value[A.type]||[])))}))}),Pe(()=>i.value=!0);const c=p=>He(_e({},p.node),{folder:p.node.parentId!==void 0,opened:p.node.parentId!==void 0,children:p.children&&p.children.length?p.children.map(b=>c(b)):void 0}),f=(p,b)=>{var I;s.value=!0,a.value={};const A=p?((I=l.find(y=>y.type===p)||u.find(y=>y.type===p))==null?void 0:I.title)||"":"\u5168\u90E8";E.status(`\u83B7\u53D6${A}\u8D44\u6E90`),Y.send("/resource").success(y=>{Object.keys(y).forEach(C=>a.value[C]=y[C].children.map($=>c($))),s.value=!1,E.status(`\u83B7\u53D6${A}\u8D44\u6E90\u5B8C\u6BD5`),Pe(()=>b())})};E.$on(w.RELOAD_RESOURCES,()=>{s.value=!0,Y.sendGet("/reload").success(()=>{E.status("\u91CD\u65B0\u52A0\u8F7D\u8D44\u6E90\u6210\u529F"),f(null,()=>E.$emit(w.RELOAD_RESOURCES_FINISH))}).end(()=>s.value=!1)});const g=p=>f(p,()=>E.$emit(w.LOAD_RESOURCES_FINISH,p));E.$on(w.LOAD_RESOURCES,g),E.$on(w.RELOAD_RESOURCES_FINISH,g);const O=p=>{let b;return Object.values(a.value).some(A=>{const I=[];if(r(A,p,I)){b=I[0];const y=l.findIndex(C=>C.type===I[I.length-1].type);return o.value&&o.value.select(y),!0}return!1}),b};E.$on(w.SELECT_NAVBAR_BY_ITEM,O),E.$on(w.OPEN_WITH_ID,p=>{const b=O(p);b&&E.$emit(w.OPEN_ITEM,b)}),E.$on(w.LOGOUT,()=>a.value={}),t({loadResources:g}),ft(()=>n("onLoad"));let h=0;const m=()=>{if(++h%l.length==0)try{JSON.parse(je.get(D.RECENT_OPENED_TAB)||"[]").forEach(p=>{E.$emit(w.OPEN_WITH_ID,p)})}catch(p){console.error(p)}};return(p,b)=>{const A=T("magic-resource"),I=T("magic-loading"),y=T("magic-resizer"),C=T("magic-navbar-item"),$=T("magic-navbar"),q=T("magic-script-editor"),ee=T("magic-toolbar"),fe=T("magic-data-resource"),xe=T("magic-search"),De=T("magic-export"),te=T("magic-upload"),Oe=T("magic-push"),Je=T("magic-recent-opened");return v(),L("div",cp,[i.value?(v(),U($,{key:0,direction:"vertical",to:p.$refs.mrl,ref:(se,Le)=>{Le.mnl=se,o.value=se},spliter:!0},{default:x(()=>[(v(),L(Q,null,ce(l,(se,Le)=>d(C,rt({key:Le},se),{default:x(()=>[d(y,{max:600,min:350,direction:"x"},{default:x(()=>[d(I,{loading:s.value},{default:x(()=>[d(A,rt(se,{data:a.value[se.type],onClose:b[0]||(b[0]=Un=>p.$refs.mnl.select(-1)),onOnLoad:m}),null,16,["data"])]),_:2},1032,["loading"])]),_:2},1024)]),_:2},1040)),64))]),_:1},8,["to"])):Z("",!0),R("div",_p,[R("div",pp,[R("div",{ref:(se,Le)=>{Le.mrl=se},class:"magic-navbar magic-navbar__vertical"},null,512),d(q),R("div",{ref:(se,Le)=>{Le.mrr=se},class:"magic-navbar magic-navbar__vertical reverse"},null,512)]),d(ee)]),d($,{reverse:!0,"default-select":-1,direction:"vertical",to:p.$refs.mrr,spliter:!0},{default:x(()=>[(v(),L(Q,null,ce(u,(se,Le)=>d(C,{key:Le,title:se.title,icon:se.icon},{default:x(()=>[i.value?(v(),U(y,{key:0,max:320,min:220,direction:"x",reverse:!0},{default:x(()=>[d(I,{loading:s.value},{default:x(()=>[d(fe,{type:se.type,title:se.name,data:a.value[se.type],component:se.component},null,8,["type","title","data","component"])]),_:2},1032,["loading"])]),_:2},1024)):Z("",!0)]),_:2},1032,["title","icon"])),64))]),_:1},8,["to"]),d(xe),d(De),d(te),d(Oe),d(Je)])}}};var hp=H(dp,[["__scopeId","data-v-4f9d1b24"]]),fp=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:hp});const gp={class:"magic-recent-opened"},mp=["onClick"],vp={key:1},Ep={key:0,style:{width:"100%",height:"100px"}},Tp={setup(e){const t=et([]),n=P(!1),i=ae("findResource"),a=ae("service");try{JSON.parse(je.get(D.RECENT_OPENED)||"[]").forEach(r=>t.push(r))}catch{}const s=pe(()=>t.map(r=>i(r)).filter(r=>r&&a[r.type])),o=r=>{E.$emit(w.OPEN_WITH_ID,r),n.value=!1};return E.$on(w.DO_RECENT,()=>n.value=!n.value),E.$on(w.CLOSE,r=>{if(r.id){const l=t.findIndex(u=>u===r.id);l>-1&&t.splice(l,1),t.unshift(r.id),t.length>20&&t.splice(t.length-1,1),je.set(D.RECENT_OPENED,we(t))}}),(r,l)=>{const u=T("magic-text-icon"),c=T("magic-empty"),f=T("magic-dialog");return v(),U(f,{value:n.value,"onUpdate:value":l[0]||(l[0]=g=>n.value=g),title:"\u6700\u8FD1\u6253\u5F00",padding:"0",shade:!1},{default:x(()=>[R("ul",gp,[(v(!0),L(Q,null,ce(k(s),(g,O)=>(v(),L("li",{key:O,onClick:ve(h=>o(g.item.id),["stop"])},[k(a)[g.type]&&k(a)[g.type].getIcon?(v(),U(u,{key:0,icon:k(a)[g.type].getIcon(g.item)},null,8,["icon"])):Z("",!0),R("label",null,j(g.name),1),k(a)[g.type].requirePath&&g.path?(v(),L("span",vp,"("+j(g.path)+")",1)):Z("",!0)],8,mp))),128))]),k(s).length===0?(v(),L("div",Ep,[d(c,{text:"empty."})])):Z("",!0)]),_:1},8,["value"])}}};var bp=H(Tp,[["__scopeId","data-v-5cd0c142"]]),Sp=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:bp});const $i=e=>(tt("data-v-5bd90c18"),e=e(),nt(),e),yp={class:"magic-resource-header"},Op=["title","onClick"],Ap={key:0},Rp={key:0},Ip={class:"magic-create-group"},xp=$i(()=>R("label",null,"\u5206\u7EC4\u540D\u79F0\uFF1A",-1)),Cp={key:0},Lp=$i(()=>R("label",null,"\u5206\u7EC4\u8DEF\u5F84\uFF1A",-1)),Np={props:{type:String,title:String,data:Array},emits:["close","onLoad"],setup(e,{emit:t}){const n=e,i=ae("service")[n.type],a=i.requirePath,s=i.getIcon,o=P(""),r=P(!0),l=P(!1),u=P(""),c=P(null),f=ae("activateUserFiles"),g=pe(()=>r.value?"\u521B\u5EFA":"\u4FEE\u6539"),O=P(!0),h=P({}),m=P({}),p=P(!1),b=P({type:n.type}),A=pe(()=>n.data),I=P([{name:"\u65B0\u5EFA\u5206\u7EC4",icon:"group-add",onClick:()=>{b.value={type:n.type,parentId:"0"},r.value=!0,p.value=!0}},{name:"\u5168\u90E8\u5C55\u5F00",icon:"expand-all",onClick:()=>We(A.value,N=>N.opened=!0)},{name:"\u5168\u90E8\u6298\u53E0",icon:"collapse-all",onClick:()=>We(A.value,N=>N.opened=!1)},{name:"\u6309\u5B57\u6BCD\u964D\u5E8F",icon:"descending",show:()=>O.value,onClick:()=>O.value=!1},{name:"\u6309\u5B57\u6BCD\u5347\u5E8F",icon:"ascending",show:()=>!O.value,onClick:()=>O.value=!0},{separator:!0},{name:"\u5B9A\u4F4D\u5F53\u524D\u6587\u4EF6",icon:"position",onClick:()=>{m.value&&h.value&&(E.$emit(w.SELECT_NAVBAR_BY_ITEM,h.value),m.value.scrollIntoView(h.value))}},{name:"\u9690\u85CF",icon:"minimize",onClick:()=>t("close")}]),y=(N,B,G,F,ge)=>{ge=ge||[];let Ge=B.find(Qe=>Qe===N||Qe.id===N);if(Ge)return G.push(Ge.name),ge.push(Ge),i.requirePath&&Ge.path&&F.push(Ge.path),Ge;for(let Qe=0,Zt=B.length;Qe{const G=[],F=[];y(we(N),we(A.value),G,F);const ge=F.length>0?ut(`/${F.join("/")}`):"";return B?ge:`/${G.join("/")}${i.requirePath?`(${ge})`:""}`},$=N=>C(N),q=[],ee=N=>{if(N)if(N.folder)E.$emit(w.OPEN_GROUP,N);else{let B=q.find(G=>G.item==N);B||(B=et({type:n.type,title:n.title,item:i.merge(N),path:()=>C(N),requestPath:()=>{const G=[];return y(we(N),we(A.value),[],G),ut(`/${G.join("/")}`)},getGroups:()=>{const G=[];return y(we(N),we(A.value),[],[],G),G},getIcon:i.getIcon,runnable:i.runnable,doTest:i.doTest,processSave:i.processSave||(G=>G)}),q.push(B)),E.$emit(w.OPEN,B)}};E.$on(w.OPEN,N=>h.value=N.item),E.$on(w.OPEN_EMPTY,()=>h.value=null);const{proxy:fe}=At(),xe=()=>{r.value;const N=_e({},b.value);delete N.children,delete N.opened,delete N.folder,Y.sendJson("/resource/folder/save",N).success(B=>{const G=`\u4FDD\u5B58${n.title}\u5206\u7EC4\u300C${C(N)}\u300D`;B?(E.status(`${G}\u6210\u529F`),Oe(He(_e({},we(b.value)),{folder:!0,id:B})),p.value=!1,E.report("group-save")):(E.status("${msg}\u5931\u8D25",!1),fe.$alert("${msg}\u5931\u8D25",`\u4FDD\u5B58${n.title}\u5206\u7EC4`))})},De=(N,B)=>new Promise(G=>Y.send("/resource/move",{src:N.id,groupId:B.groupId||B.id}).success(F=>{const ge=`\u79FB\u52A8${N.folder?`${n.title}\u5206\u7EC4`:""}\u300C${C(N)}\u300D`;F?(N[N.folder?"parentId":"groupId"]=B.groupId||B.id,E.status(`${ge}\u6210\u529F`)):(fe.$alert(`${ge}\u5931\u8D25`),E.status(`${ge}\u5931\u8D25`,!1)),G(F)})),te=(N,B)=>{B=B||A.value;const G=B.findIndex(F=>F===N||F.id===N.id);G>-1?B.splice(G,1):B.forEach(F=>te(N,F.children||[]))},Oe=(N,B)=>{B=B||A.value||[];const G=B.find(F=>F.id===N.id||N.groupId===F.id);if(G)return G.children=G.children||[],G.opened=!0,G.id===N.id?(G.name=N.name,G.path=N.path,G.parentId=N.parentId):G.children.push(N),!0;if(N.parentId==="0")return B.push(N),!0;{if(B.some(ge=>Oe(N,ge.children||[])))return!0;const F=N.parentId!==void 0&&B.find(ge=>ge.id===N.parentId);if(F)return F.children.push(N),!0}return!1};E.$on(w.OPEN_ITEM,N=>{const B=we(A.value);B&&ee(y(we(N),B,[],[]))});const Je=(N,B)=>{if(N&&B){const G=[];N.folder?(G.push.apply(G,[{label:`\u65B0\u5EFA${n.title}`,icon:"plus",onClick(){const F={groupId:N.id,name:"\u672A\u5B9A\u4E49\u540D\u79F0",script:"hello",path:i.requirePath?"":void 0};Oe(F),ee(F)}},{label:"\u65B0\u5EFA\u5206\u7EC4",icon:"group-add",onClick(){r.value=!0,b.value={parentId:N.id,type:n.type},p.value=!0}},{label:"\u4FEE\u6539\u5206\u7EC4",icon:"update",onClick(){r.value=!1,b.value=_e({},N),p.value=!0}},{label:"\u590D\u5236\u5206\u7EC4",icon:"copy",onClick(){u.value=N.id,l.value=!0}},{label:"\u5220\u9664\u5206\u7EC4",icon:"delete",onClick(){fe.$confirm("\u5220\u9664\u5206\u7EC4",`\u662F\u5426\u8981\u5220\u9664\u5206\u7EC4\u300C${C(N)}\u300D`,()=>{N.id?Y.send("/resource/delete",{id:N.id}).success(F=>{F?(E.status(`\u5220\u9664${n.title}\u5206\u7EC4\u300C${C(N)}\u300D\u6210\u529F`),te(N)):(fe.$alert(`\u5220\u9664${n.title}\u5206\u7EC4\u300C${C(N)}\u300D\u5931\u8D25`),E.status(`\u5220\u9664${n.title}\u5206\u7EC4\u300C${C(N)}\u300D\u5931\u8D25`,!1),E.report("group-delete"))}):te(N)})}},{label:"\u5BFC\u51FA",icon:"download",onClick(){Y.send(`/download?groupId=${N.id}`,null,{headers:{"Content-Type":"application/json"},responseType:"blob"}).success(F=>{un(F,`${N.name}.zip`),E.$emit("status",`\u5206\u7EC4\u300C${N.name}\u300D\u76F8\u5173${n.title}\u5DF2\u5BFC\u51FA`),E.report("group-export")})}}]),N.parentId!=="0"&&G.push({label:"\u79FB\u52A8\u5230\u6839\u8282\u70B9",icon:"move",onClick(){fe.$confirm("\u79FB\u52A8\u5206\u7EC4",`\u662F\u5426\u8981\u5C06\u5206\u7EC4\u300C${C(N)}\u300D\u79FB\u52A8\u81F3\u6839\u8282\u70B9`,()=>{Y.send("/resource/move",{src:N.id,groupId:"0"}).success(F=>{F?(E.status(`\u79FB\u52A8${n.title}\u5206\u7EC4\u300C${C(N)}\u300D\u81F3\u6839\u8282\u70B9\u6210\u529F`),N.parentId="0",te(N),Oe(N),E.report("group-move")):(fe.$alert(`\u79FB\u52A8${n.title}\u5206\u7EC4\u300C${C(N)}\u300D\u81F3\u6839\u8282\u70B9\u5931\u8D25`),E.status(`\u79FB\u52A8${n.title}\u5206\u7EC4\u300C${C(N)}\u300D\u81F3\u6839\u8282\u70B9\u5931\u8D25`,!1))})})}})):(G.push.apply(G,[{label:`\u590D\u5236${n.title}`,icon:"copy",divided:!0,onClick:()=>{Y.send(`/resource/file/${N.id}`).success(F=>{F.id=`copy${parseInt(Math.random()*1e10)}`,F.name=F.name+"(\u590D\u5236)",i.requirePath&&(F.path=F.path+"_copy"),Oe(F),ee(F)})}}]),i.requirePath&&(n.type==="api"&&G.push({label:"\u590D\u5236\u8DEF\u5F84",icon:"copy",onClick:()=>{let F=C(N,!0);F&&(F=ut(D.SERVER_URL+"/"+F),ii(F)?E.status(`${n.title}\u8DEF\u5F84\u300C${F}\u300D\u590D\u5236\u6210\u529F`):E.status(`${n.title}\u8DEF\u5F84\u300C${F}\u300D\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236`))}}),G.push.apply(G,[{label:"\u590D\u5236\u76F8\u5BF9\u8DEF\u5F84",icon:"copy",divided:!0,onClick:()=>{const F=C(N,!0);F&&(ii(F)?E.status(`${n.title}\u76F8\u5BF9\u8DEF\u5F84\u300C${F}\u300D\u590D\u5236\u6210\u529F`):E.status(`${n.title}\u76F8\u5BF9\u8DEF\u5F84\u300C${F}\u300D\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236`))}}]),N.lock===D.LOCKED?G.push({label:"\u89E3\u9501",icon:"unlock",onClick:()=>Y.sendPost("/resource/unlock",{id:N.id}).success(F=>{E.status(`${n.title}\u300C${C(N)}\u300D\u89E3\u9501${F?"\u6210\u529F":"\u5931\u8D25"}`,F),F&&(N.lock=D.UNLOCK,E.report("resource-unlock"))})}):G.push({label:"\u9501\u5B9A",icon:"lock",onClick:()=>Y.sendPost("/resource/lock",{id:N.id}).success(F=>{E.status(`${n.title}\u300C${C(N)}\u300D\u9501\u5B9A${F?"\u6210\u529F":"\u5931\u8D25"}`,F),F&&(N.lock=D.LOCKED,E.report("resource-lock"))})})),G.push.apply(G,[{label:"\u5237\u65B0",icon:"refresh"},{label:"\u5220\u9664",icon:"delete",onClick:()=>{const F=`\u5220\u9664${n.title}\u300C${C(N)}\u300D`;fe.$confirm(`\u5220\u9664${n.title}`,`\u662F\u5426\u8981\u5220\u9664${n.title}\u300C${C(N)}\u300D`,()=>{N.id&&!N.id.startsWith("copy")?Y.send("/resource/delete",{id:N.id}).success(ge=>{ge?(E.status(`${F}\u6210\u529F`),te(N),E.$emit(w.DELETE_FILE,N),E.report("resource-delete")):(E.status(`${F}\u5931\u8D25`,!1),fe.$alert(`${F}\u5931\u8D25`))}):(E.status(`${F}\u6210\u529F`),te(N),E.$emit(w.DELETE_FILE,N))})}}])),fe.$contextmenu({menus:G,event:B})}},se=N=>{fe.$contextmenu({event:N,menus:I.value.slice(0,5).filter(B=>!B.show||B.show()).map(B=>({icon:B.icon,label:B.name,onClick:B.onClick}))})};let Le=null;const Un=()=>{c.value&&Y.sendPost("/resource/folder/copy",{src:u.value,target:c.value.id.endsWith("-root")?"0":c.value.id}).success(N=>{Le=N,l.value=!1,E.$emit(w.LOAD_RESOURCES)})},Mi=ae("findResource");return E.$on(w.LOAD_RESOURCES_FINISH,()=>{Le&&Pe(()=>{const N=Mi(Le);E.$emit(w.SELECT_NAVBAR_BY_ITEM,N.item),E.$emit(w.OPEN_GROUP,N.item)})}),ft(()=>t("onLoad")),(N,B)=>{const G=T("magic-icon"),F=T("magic-input"),ge=T("magic-empty"),Ge=T("magic-text-icon"),Qe=T("magic-avatar-group"),Zt=T("magic-tree"),Ne=T("magic-button"),Bn=T("magic-button-group"),Fn=T("magic-dialog"),Ui=T("magic-resource-choose");return v(),L("div",{class:"magic-resource",onContextmenu:B[10]||(B[10]=ve(K=>se(K),["prevent"]))},[R("div",yp,[d(G,{icon:"search",size:"14px"}),d(F,{value:o.value,"onUpdate:value":B[0]||(B[0]=K=>o.value=K),placeholder:"\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",width:"auto"},null,8,["value"]),R("ul",null,[(v(!0),L(Q,null,ce(I.value,(K,dt)=>(v(),L(Q,{key:dt},[!K.show||K.show()?(v(),L("li",{key:0,title:K.name||"",onClick:Gp=>K.onClick&&K.onClick(),class:de({separator:K.separator})},[K.separator?Z("",!0):(v(),U(G,{key:0,icon:K.icon},null,8,["icon"]))],10,Op)):Z("",!0)],64))),128))])]),!e.data||e.data.length===0?(v(),U(ge,{key:0,text:`\u6682\u65E0${e.title}\u4FE1\u606F`},null,8,["text"])):(v(),U(Zt,{key:1,ref:(K,dt)=>{dt.treeObj=K,m.value=K},data:k(A),onItemClick:ee,onContextmenu:Je,draggable:!0,sort:!0,descending:O.value,onMove:De,filter:o.value,"filter-text":$,selected:h.value},{folder:x(({item:K})=>[d(G,{icon:K.opened?"arrow-bottom":"arrow-right",onClick:ve(dt=>K.opened=!K.opened,["stop"])},null,8,["icon","onClick"]),d(G,{icon:"list"}),R("label",null,j(K.name),1),k(a)&&K.path?(v(),L("span",Ap,"("+j(K.path)+")",1)):Z("",!0)]),file:x(({item:K})=>[d(Ge,{icon:k(s)(K)},null,8,["icon"]),R("label",null,j(K.name),1),k(a)&&K.path?(v(),L("span",Rp,"("+j(K.path)+")",1)):Z("",!0),K.lock==="1"?(v(),U(G,{key:1,icon:"lock"})):Z("",!0),d(Qe,{users:k(f)[K.id]||[],max:3,size:20},null,8,["users"])]),_:1},8,["data","descending","filter","selected"])),d(Fn,{title:`${k(g)}${e.title}\u5206\u7EC4`,value:p.value,"onUpdate:value":B[5]||(B[5]=K=>p.value=K)},{default:x(()=>[R("ul",Ip,[R("li",null,[xp,d(F,{value:b.value.name,"onUpdate:value":B[1]||(B[1]=K=>b.value.name=K),placeholder:`\u8BF7\u8F93\u5165${e.title}\u5206\u7EC4\u540D\u79F0`},null,8,["value","placeholder"])]),k(a)?(v(),L("li",Cp,[Lp,d(F,{value:b.value.path,"onUpdate:value":B[2]||(B[2]=K=>b.value.path=K),placeholder:`\u8BF7\u8F93\u5165${e.title}\u5206\u7EC4\u8DEF\u5F84`},null,8,["value","placeholder"])])):Z("",!0)]),d(Bn,{align:"right",style:{padding:"5px 0"}},{default:x(()=>[d(Ne,{value:k(g),type:"active",onOnClick:B[3]||(B[3]=K=>xe())},null,8,["value"]),d(Ne,{value:"\u53D6\u6D88",onOnClick:B[4]||(B[4]=K=>p.value=!1)})]),_:1})]),_:1},8,["title","value"]),d(Fn,{value:l.value,"onUpdate:value":B[9]||(B[9]=K=>l.value=K),title:"\u590D\u5236\u5206\u7EC4",shade:!1,padding:"0",width:"400px",overflow:"hidden"},{default:x(()=>[d(Ui,{ref:(K,dt)=>{dt.chooseGroup=K},value:c.value,"onUpdate:value":B[6]||(B[6]=K=>c.value=K),file:!1,type:e.type,single:!0},null,8,["value","type"]),d(Bn,{align:"right",style:{"margin-right":"5px","margin-bottom":"5px"}},{default:x(()=>[d(Ne,{value:"\u5C55\u5F00",onOnClick:B[7]||(B[7]=K=>N.$refs.chooseGroup.expand(!0))}),d(Ne,{value:"\u6536\u7F29",onOnClick:B[8]||(B[8]=K=>N.$refs.chooseGroup.expand(!1))}),d(Ne,{type:"active",value:"\u590D\u5236",onOnClick:Un})]),_:1})]),_:1},8,["value"])],32)}}};var Pp=H(Np,[["__scopeId","data-v-5bd90c18"]]),wp=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Pp});const kp={class:"magic-script-editor"},Dp={key:0,class:"magic-empty-container"},$p=zi('

\u4FDD\u5B58Ctrl + S
\u6D4B\u8BD5Ctrl + Q
\u4EE3\u7801\u63D0\u793AAlt + /
\u6062\u590D\u65AD\u70B9F8
\u6B65\u8FDBF6
\u4EE3\u7801\u683C\u5F0F\u5316Ctrl + Alt + L
\u6700\u8FD1\u6253\u5F00Ctrl + E

',1),Mp=[$p],Up={key:0},Bp={emits:["onLoad"],setup(e,{emit:t}){const{proxy:n}=At(),i=et([]),a=P({}),s=P(!0),o=P(null),r=ae("activateUserFiles"),l={String:"java.lang.String",Integer:"java.lang.Integer",Double:"java.lang.Double",Long:"java.lang.Long",Byte:"java.lang.Byte",Short:"java.lang.Short",Float:"java.lang.Float",MultipartFile:"org.springframework.web.multipart.MultipartFile",MultipartFiles:"java.util.List"};qt.setEnvironment(()=>{var b;const h={},m=(b=a.value)==null?void 0:b.item,p=A=>A&&Array.isArray(A)&&A.forEach(I=>{I&&typeof I.name=="string"&&I.dataType&&(h[I.name]=l[I.dataType]||"java.lang.Object")});return m&&(p(m==null?void 0:m.parameters),p(m==null?void 0:m.paths)),h});const u=h=>{let m=i.findIndex(p=>p===h);if(i.splice(m,1),h===a.value){let p=i.length;m0&&E.$emit(w.OPEN,i[m-1])}E.$emit(w.CLOSE,h.item),i.length===0&&(E.$emit(w.OPEN_EMPTY),a.value={})};mt(i,h=>{je.set(D.RECENT_OPENED_TAB,h.filter(m=>{var p;return(p=m.item)==null?void 0:p.id}).map(m=>m.item.id))}),E.$event(Re.EXCEPTION,([[h,m,p]])=>{var b,A;if(((A=(b=a.value)==null?void 0:b.item)==null?void 0:A.id)===h){const I=new it(p[0],p[2],p[1],p[3]+1),y=o.value.getInstance(),C=y.deltaDecorations([],[{range:I,options:{hoverMessage:{value:m},inlineClassName:"squiggly-error"}}]);y.revealRangeInCenter(I),y.focus(),D.DECORATION_TIMEOUT>=0&&setTimeout(()=>y.deltaDecorations(C,[]),D.DECORATION_TIMEOUT)}}),E.$on(w.LOGOUT,()=>[...i].forEach(h=>u(h))),E.$on(w.DELETE_FILE,h=>{const m=i.findIndex(p=>p.item===h);m>-1&&u(i[m])}),E.$on(w.RELOAD_RESOURCES_FINISH,()=>{i.filter(h=>h.item&&h.item.id).forEach(h=>Y.sendGet(`/resource/file/${h.item.id}`).success(m=>{E.status(`\u83B7\u53D6${h.title}\u300C${h.path()}\u300D\u8BE6\u60C5\u6210\u529F`),Object.keys(m).forEach(p=>h.item[p]=m[p])}))}),E.$event(Re.LOGIN_RESPONSE,()=>{var h;a.value&&E.send(Re.SET_FILE_ID,((h=a.value.item)==null?void 0:h.id)||"0")}),E.$on(w.OPEN,h=>{let m=i.find(p=>p.item===h.item||p.item.id&&p.item.id===h.item.id);E.send(Re.SET_FILE_ID,h.item.id||"0"),m?(a.value=m,s.value=!1):(i.push(h),a.value=h,h.item.id&&!h.item.script?(s.value=!0,Y.sendGet(`/resource/file/${h.item.id}`).success(p=>{E.status(`\u83B7\u53D6${h.title}\u300C${h.path()}\u300D\u8BE6\u60C5\u6210\u529F`),Object.keys(p).forEach(b=>h.item[b]=p[b]),h.tmpScript=p.script,s.value=!1})):s.value=!1),a.value.decorations&&a.value.decorations.length>0&&Pe(()=>{const p=we(a.value.decorations);a.value.debugDecorations=o.value.appendDecoration(p).map((b,A)=>{var I;return((I=p[A].options)==null?void 0:I.className)==="debug-line"?b:null}).filter(b=>b!==null)||[]})});const c=h=>{const m=a.value;if(m&&m.item){const p=a.value.processSave(m.item);return Object.keys(p).forEach(b=>m.item[b]=p[b]),Y.sendJson(`/resource/file/${a.value.type}/save?auto=${h?0:1}`,p).success(b=>{b?(E.status(`\u4FDD\u5B58${m.title}\u300C${m.path()}\u300D\u6210\u529F`),m.tmpScript=p.script,m.item.id!==b?E.report("script-add"):E.report("script-save"),m.item.id=b):(E.status(`\u4FDD\u5B58${m.title}\u300C${m.path()}\u300D\u5931\u8D25`,!1),n.$alert(`\u4FDD\u5B58${m.title}\u300C${m.path()}\u300D\u5931\u8D25`))})}},f=()=>a.value.doTest(a.value);E.$on(w.DO_SAVE,c),E.$on(w.DO_TEST,()=>{const h=a.value;h&&h.item&&h.runnable&&h.doTest&&h.running!==!0&&(D.AUTO_SAVE&&h.item.lock!=="1"?c().end(m=>m&&f()):f())}),E.$event(Re.BREAKPOINT,([h,{range:m,variables:p}])=>{var b,A;if(E.status("\u8FDB\u5165\u65AD\u70B9.."),((A=(b=a.value)==null?void 0:b.item)==null?void 0:A.id)!==h){const I=i.find(y=>y.item.id===h);I&&E.$emit(w.OPEN,I)}Pe(()=>{a.value.variables=xa(p),a.value.debuging=!0,a.value.debugDecorations=[o.value.appendDecoration([{range:new it(m[0],1,m[0],1),options:{isWholeLine:!0,inlineClassName:"debug-line",className:"debug-line"}}])],E.$emit(w.SWITCH_TOOLBAR,"debug")}),E.report("debug-in")});const g=h=>{if(a.value.debuging){o.value.removedDecorations(a.value.debugDecorations),a.value.debuging=!1,a.value.variables=null;const m=(a.value.decorations||[]).filter(p=>p.options.linesDecorationsClassName==="breakpoints").map(p=>p.range.startLineNumber).join("|");E.send(Re.RESUME_BREAKPOINT,[a.value.item.id,h===!0?"1":"0",m].join(","))}};E.$on(w.DEBUG_CONTINUE,g),E.$on(w.DEBUG_SETPINTO,()=>g(!0));const O=(h,m,p)=>{const b=[{label:"\u5173\u95ED",divided:!0,onClick(){u(m)}},{label:"\u5173\u95ED\u5176\u4ED6",divided:!0,onClick(){[...i].forEach((A,I)=>I!=p&&u(A))}},{label:"\u5173\u95ED\u5DE6\u4FA7",onClick(){[...i].forEach((A,I)=>II>p&&u(A))}},{label:"\u5168\u90E8\u5173\u95ED",onClick(){[...i].forEach(A=>u(A))}}];n.$contextmenu({menus:b,event:h})};return ft(()=>t("onLoad")),(h,m)=>{const p=T("magic-text-icon"),b=T("magic-icon"),A=T("magic-avatar-group"),I=T("magic-tab"),y=T("magic-monaco-editor"),C=T("magic-loading");return v(),L("div",kp,[k(i).length===0?(v(),L("div",Dp,Mp)):(v(),L(Q,{key:1},[d(I,{value:a.value,"onUpdate:value":m[0]||(m[0]=$=>a.value=$),tabs:k(i),className:"magic-script-tab","allow-close":!0,onClose:u,onChange:m[1]||(m[1]=$=>k(E).$emit("open",$)),onItemContextmenu:O},{default:x(({tab:$})=>[d(p,{icon:$.getIcon($.item)},null,8,["icon"]),Ye(j($.item.name),1),$.item.script!==$.tmpScript?(v(),L("span",Up,"*")):Z("",!0),$.item.lock===h.$LOCKED?(v(),U(b,{key:1,icon:"lock"})):Z("",!0),d(A,{users:k(r)[$.item.id]||[],max:3,size:20},null,8,["users"])]),_:1},8,["value","tabs"]),d(C,{loading:s.value},{default:x(()=>[d(y,{ref:($,q)=>{q.editor=$,o.value=$},value:a.value.item.script,"onUpdate:value":m[2]||(m[2]=$=>a.value.item.script=$),decorations:a.value.decorations,"onUpdate:decorations":m[3]||(m[3]=$=>a.value.decorations=$),language:"magicscript","support-breakpoint":!0},null,8,["value","decorations"])]),_:1},8,["loading"])],64))])}}};var Fp=H(Bp,[["__scopeId","data-v-603a1ac6"]]),jp=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Fp}); diff --git a/magic-editor/src/console/dist/assets/axios.23e7b955.js b/magic-editor/src/console/dist/assets/axios.23e7b955.js new file mode 100644 index 00000000..9c68baf3 --- /dev/null +++ b/magic-editor/src/console/dist/assets/axios.23e7b955.js @@ -0,0 +1,2 @@ +function gr(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:function(){return r[t]}})}),e}var D={exports:{}},K=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s=0)return;a==="set-cookie"?t[a]=(t[a]?t[a]:[]).concat([n]):t[a]=t[a]?t[a]+", "+n:n}}),t},te=h,Ke=te.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),a;function n(s){var o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return a=n(window.location.href),function(o){var u=te.isString(o)?n(o):o;return u.protocol===a.protocol&&u.host===a.host}}():function(){return function(){return!0}}();function H(r){this.message=r}H.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};H.prototype.__CANCEL__=!0;var $=H,P=h,Ge=Me,Ye=ke,Qe=Z,Ze=Ve,er=Xe,rr=Ke,I=re,tr=U,nr=$,ne=function(e){return new Promise(function(a,n){var s=e.data,o=e.headers,u=e.responseType,f;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}P.isFormData(s)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+d)}var R=Ze(e.baseURL,e.url);i.open(e.method.toUpperCase(),Qe(R,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function W(){if(!!i){var m="getAllResponseHeaders"in i?er(i.getAllResponseHeaders()):null,w=!u||u==="text"||u==="json"?i.responseText:i.response,b={data:w,status:i.status,statusText:i.statusText,headers:m,config:e,request:i};Ge(function(L){a(L),v()},function(L){n(L),v()},b),i=null}}if("onloadend"in i?i.onloadend=W:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(W)},i.onabort=function(){!i||(n(I("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(I("Network Error",e,null,i)),i=null},i.ontimeout=function(){var w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",b=e.transitional||tr.transitional;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),n(I(w,e,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",i)),i=null},P.isStandardBrowserEnv()){var X=(e.withCredentials||rr(R))&&e.xsrfCookieName?Ye.read(e.xsrfCookieName):void 0;X&&(o[e.xsrfHeaderName]=X)}"setRequestHeader"in i&&P.forEach(o,function(w,b){typeof s=="undefined"&&b.toLowerCase()==="content-type"?delete o[b]:i.setRequestHeader(b,w)}),P.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),u&&u!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(m){!i||(n(!m||m&&m.type?new nr("canceled"):m),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),s||(s=null),i.send(s)})},c=h,ae=_e,ar=ee,sr={"Content-Type":"application/x-www-form-urlencoded"};function se(r,e){!c.isUndefined(r)&&c.isUndefined(r["Content-Type"])&&(r["Content-Type"]=e)}function ir(){var r;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(r=ne),r}function or(r,e,t){if(c.isString(r))try{return(e||JSON.parse)(r),c.trim(r)}catch(a){if(a.name!=="SyntaxError")throw a}return(t||JSON.stringify)(r)}var T={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:ir(),transformRequest:[function(e,t){return ae(t,"Accept"),ae(t,"Content-Type"),c.isFormData(e)||c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)?e:c.isArrayBufferView(e)?e.buffer:c.isURLSearchParams(e)?(se(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):c.isObject(e)||t&&t["Content-Type"]==="application/json"?(se(t,"application/json"),or(e)):e}],transformResponse:[function(e){var t=this.transitional||T.transitional,a=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!a&&this.responseType==="json";if(s||n&&c.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?ar(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(e){T.headers[e]={}});c.forEach(["post","put","patch"],function(e){T.headers[e]=c.merge(sr)});var U=T,ur=h,fr=U,lr=function(e,t,a){var n=this||fr;return ur.forEach(a,function(o){e=o.call(n,e,t)}),e},ie=function(e){return!!(e&&e.__CANCEL__)},oe=h,J=lr,cr=ie,dr=U,hr=$;function z(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new hr("canceled")}var pr=function(e){z(e),e.headers=e.headers||{},e.data=J.call(e,e.data,e.headers,e.transformRequest),e.headers=oe.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),oe.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var t=e.adapter||dr.adapter;return t(e).then(function(n){return z(e),n.data=J.call(e,n.data,n.headers,e.transformResponse),n},function(n){return cr(n)||(z(e),n&&n.response&&(n.response.data=J.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},p=h,ue=function(e,t){t=t||{};var a={};function n(i,l){return p.isPlainObject(i)&&p.isPlainObject(l)?p.merge(i,l):p.isPlainObject(l)?p.merge({},l):p.isArray(l)?l.slice():l}function s(i){if(p.isUndefined(t[i])){if(!p.isUndefined(e[i]))return n(void 0,e[i])}else return n(e[i],t[i])}function o(i){if(!p.isUndefined(t[i]))return n(void 0,t[i])}function u(i){if(p.isUndefined(t[i])){if(!p.isUndefined(e[i]))return n(void 0,e[i])}else return n(void 0,t[i])}function f(i){if(i in t)return n(e[i],t[i]);if(i in e)return n(void 0,e[i])}var v={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return p.forEach(Object.keys(e).concat(Object.keys(t)),function(l){var d=v[l]||s,R=d(l);p.isUndefined(R)&&d!==f||(a[l]=R)}),a},fe={version:"0.24.0"},mr=fe.version,V={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){V[r]=function(a){return typeof a===r||"a"+(e<1?"n ":" ")+r}});var le={};V.transitional=function(e,t,a){function n(s,o){return"[Axios v"+mr+"] Transitional option '"+s+"'"+o+(a?". "+a:"")}return function(s,o,u){if(e===!1)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!le[o]&&(le[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,u):!0}};function vr(r,e,t){if(typeof r!="object")throw new TypeError("options must be an object");for(var a=Object.keys(r),n=a.length;n-- >0;){var s=a[n],o=e[s];if(o){var u=r[s],f=u===void 0||o(u,s,r);if(f!==!0)throw new TypeError("option "+s+" must be "+f);continue}if(t!==!0)throw Error("Unknown option "+s)}}var yr={assertOptions:vr,validators:V},ce=h,br=Z,de=Le,he=pr,j=ue,pe=yr,O=pe.validators;function x(r){this.defaults=r,this.interceptors={request:new de,response:new de}}x.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=j(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;t!==void 0&&pe.assertOptions(t,{silentJSONParsing:O.transitional(O.boolean),forcedJSONParsing:O.transitional(O.boolean),clarifyTimeoutError:O.transitional(O.boolean)},!1);var a=[],n=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(n=n&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});var s=[];this.interceptors.response.forEach(function(d){s.push(d.fulfilled,d.rejected)});var o;if(!n){var u=[he,void 0];for(Array.prototype.unshift.apply(u,a),u=u.concat(s),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var f=e;a.length;){var v=a.shift(),i=a.shift();try{f=v(f)}catch(l){i(l);break}}try{o=he(f)}catch(l){return Promise.reject(l)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};x.prototype.getUri=function(e){return e=j(this.defaults,e),br(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};ce.forEach(["delete","get","head","options"],function(e){x.prototype[e]=function(t,a){return this.request(j(a||{},{method:e,url:t,data:(a||{}).data}))}});ce.forEach(["post","put","patch"],function(e){x.prototype[e]=function(t,a,n){return this.request(j(n||{},{method:e,url:t,data:a}))}});var Er=x,wr=$;function C(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(n){e=n});var t=this;this.promise.then(function(a){if(!!t._listeners){var n,s=t._listeners.length;for(n=0;n{(function(Ae){"use strict";class Ot{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?new Error(t.message+` + +`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Kt=new Ot;function en(e){tn(e)||Kt.onUnexpectedError(e)}function Qe(e){if(e instanceof Error){let{name:t,message:n}=e;const s=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:s}}return e}const Ze="Canceled";function tn(e){return e instanceof Error&&e.name===Ze&&e.message===Ze}function nn(e){const t=this;let n=!1,s;return function(){return n||(n=!0,s=e.apply(t,arguments)),s}}var we;(function(e){function t(d){return d&&typeof d=="object"&&typeof d[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function s(){return n}e.empty=s;function*r(d){yield d}e.single=r;function i(d){return d||n}e.from=i;function l(d){return!d||d[Symbol.iterator]().next().done===!0}e.isEmpty=l;function u(d){return d[Symbol.iterator]().next().value}e.first=u;function a(d,h){for(const g of d)if(h(g))return!0;return!1}e.some=a;function o(d,h){for(const g of d)if(h(g))return g}e.find=o;function*f(d,h){for(const g of d)h(g)&&(yield g)}e.filter=f;function*c(d,h){let g=0;for(const _ of d)yield h(_,g++)}e.map=c;function*m(...d){for(const h of d)for(const g of h)yield g}e.concat=m;function*L(d){for(const h of d)for(const g of h)yield g}e.concatNested=L;function b(d,h,g){let _=g;for(const A of d)_=h(_,A);return _}e.reduce=b;function*w(d,h,g=d.length){for(h<0&&(h+=d.length),g<0?g+=d.length:g>d.length&&(g=d.length);h_===A){const _=d[Symbol.iterator](),A=h[Symbol.iterator]();for(;;){const S=_.next(),N=A.next();if(S.done!==N.done)return!1;if(S.done)return!0;if(!g(S.value,N.value))return!1}}e.equals=P})(we||(we={}));function sn(e){return e}function rn(e,t){}class ln extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function Xe(e){if(we.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(s){t.push(s)}if(t.length===1)throw t[0];if(t.length>1)throw new ln(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function un(...e){return Je(()=>Xe(e))}function Je(e){return sn({dispose:nn(()=>{e()})})}class le{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{Xe(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?le.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}le.DISABLE_DISPOSED_WARNING=!1;class Oe{constructor(){this._store=new le,rn(this._store)}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Oe.None=Object.freeze({dispose(){}});var Ce;const he="en";let ve=!1,Me=!1,Pe=!1,me,pe=he,an,Z;const T=typeof self=="object"?self:typeof global=="object"?global:{};let k;typeof T.vscode!="undefined"&&typeof T.vscode.process!="undefined"?k=T.vscode.process:typeof process!="undefined"&&(k=process);const on=typeof((Ce=k==null?void 0:k.versions)===null||Ce===void 0?void 0:Ce.electron)=="string"&&k.type==="renderer";if(typeof navigator=="object"&&!on)Z=navigator.userAgent,ve=Z.indexOf("Windows")>=0,Me=Z.indexOf("Macintosh")>=0,(Z.indexOf("Macintosh")>=0||Z.indexOf("iPad")>=0||Z.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Pe=Z.indexOf("Linux")>=0,me=navigator.language,pe=me;else if(typeof k=="object"){ve=k.platform==="win32",Me=k.platform==="darwin",Pe=k.platform==="linux",Pe&&!!k.env.SNAP&&k.env.SNAP_REVISION,me=he,pe=he;const e=k.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];me=t.locale,pe=n||he,an=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const ue=ve,cn=Me,Ke=function(){if(T.setImmediate)return T.setImmediate.bind(T);if(typeof T.postMessage=="function"&&!T.importScripts){let n=[];T.addEventListener("message",r=>{if(r.data&&r.data.vscodeSetImmediateId)for(let i=0,l=n.length;i{const i=++s;n.push({id:i,callback:r}),T.postMessage({vscodeSetImmediateId:i},"*")}}if(typeof(k==null?void 0:k.nextTick)=="function")return k.nextTick.bind(k);const t=Promise.resolve();return n=>t.then(n)}();function fn(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function Re(e){const t=[];for(const n of fn(e))typeof e[n]=="function"&&t.push(n);return t}function et(e,t){const n=r=>function(){const i=Array.prototype.slice.call(arguments,0);return t(r,i)};let s={};for(const r of e)s[r]=n(r);return s}const hn="$initialize";class mn{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(t){this._workerId=t}sendMessage(t,n){let s=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[s]={resolve:r,reject:i},this._send({vsWorker:this._workerId,req:s,method:t,args:n})})}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){if(t.seq){let i=t;if(!this._pendingReplies[i.seq]){console.warn("Got reply to unknown seq");return}let l=this._pendingReplies[i.seq];if(delete this._pendingReplies[i.seq],i.err){let u=i.err;i.err.$isError&&(u=new Error,u.name=i.err.name,u.message=i.err.message,u.stack=i.err.stack),l.reject(u);return}l.resolve(i.res);return}let n=t,s=n.req;this._handler.handleMessage(n.method,n.args).then(i=>{this._send({vsWorker:this._workerId,seq:s,res:i,err:void 0})},i=>{i.detail instanceof Error&&(i.detail=Qe(i.detail)),this._send({vsWorker:this._workerId,seq:s,res:void 0,err:Qe(i)})})}_send(t){let n=[];if(t.req){const s=t;for(let r=0;r{t(s,r)},handleMessage:(s,r)=>this._handleMessage(s,r)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===hn)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(s){return Promise.reject(s)}}initialize(t,n,s,r){this._protocol.setWorkerId(t);const l=et(r,(u,a)=>this._protocol.sendMessage(u,a));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(Re(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&typeof n.paths.vs!="undefined"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,self.require.config(n)),new Promise((u,a)=>{self.require([s],o=>{if(this._requestHandler=o.create(l),!this._requestHandler){a(new Error("No RequestHandler!"));return}u(Re(this._requestHandler))},a)}))}}class ${constructor(t,n,s,r){this.originalStart=t,this.originalLength=n,this.modifiedStart=s,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function gn(e){return e.split(/\r\n|\r|\n/)}function _n(e){for(let t=0,n=e.length;t=0;n--){const s=e.charCodeAt(n);if(s!==32&&s!==9)return n}return-1}function tt(e,t){return(t<<5)-t+e|0}function Nn(e,t){t=tt(149417,t);for(let n=0,s=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new $(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class z{constructor(t,n,s=null){this.ContinueProcessingPredicate=s,this._originalSequence=t,this._modifiedSequence=n;const[r,i,l]=z._getElements(t),[u,a,o]=z._getElements(n);this._hasStrings=l&&o,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=u,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(z._isStringArray(n)){const s=new Int32Array(n.length);for(let r=0,i=n.length;r=t&&r>=s&&this.ElementsAreEqual(n,r);)n--,r--;if(t>n||s>r){let c;return s<=r?(K.Assert(t===n+1,"originalStart should only be one more than originalEnd"),c=[new $(t,0,s,r-s+1)]):t<=n?(K.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),c=[new $(t,n-t+1,s,0)]):(K.Assert(t===n+1,"originalStart should only be one more than originalEnd"),K.Assert(s===r+1,"modifiedStart should only be one more than modifiedEnd"),c=[]),c}const l=[0],u=[0],a=this.ComputeRecursionPoint(t,n,s,r,l,u,i),o=l[0],f=u[0];if(a!==null)return a;if(!i[0]){const c=this.ComputeDiffRecursive(t,o,s,f,i);let m=[];return i[0]?m=[new $(o+1,n-(o+1)+1,f+1,r-(f+1)+1)]:m=this.ComputeDiffRecursive(o+1,n,f+1,r,i),this.ConcatenateChanges(c,m)}return[new $(t,n-t+1,s,r-s+1)]}WALKTRACE(t,n,s,r,i,l,u,a,o,f,c,m,L,b,w,M,P,d){let h=null,g=null,_=new st,A=n,S=s,N=L[0]-M[0]-r,p=-1073741824,I=this.m_forwardHistory.length-1;do{const R=N+t;R===A||R=0&&(o=this.m_forwardHistory[I],t=o[0],A=1,S=o.length-1)}while(--I>=-1);if(h=_.getReverseChanges(),d[0]){let R=L[0]+1,C=M[0]+1;if(h!==null&&h.length>0){const Q=h[h.length-1];R=Math.max(R,Q.getOriginalEnd()),C=Math.max(C,Q.getModifiedEnd())}g=[new $(R,m-R+1,C,w-C+1)]}else{_=new st,A=l,S=u,N=L[0]-M[0]-a,p=1073741824,I=P?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const R=N+i;R===A||R=f[R+1]?(c=f[R+1]-1,b=c-N-a,c>p&&_.MarkNextChange(),p=c+1,_.AddOriginalElement(c+1,b+1),N=R+1-i):(c=f[R-1],b=c-N-a,c>p&&_.MarkNextChange(),p=c,_.AddModifiedElement(c+1,b+1),N=R-1-i),I>=0&&(f=this.m_reverseHistory[I],i=f[0],A=1,S=f.length-1)}while(--I>=-1);g=_.getChanges()}return this.ConcatenateChanges(h,g)}ComputeRecursionPoint(t,n,s,r,i,l,u){let a=0,o=0,f=0,c=0,m=0,L=0;t--,s--,i[0]=0,l[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=n-t+(r-s),w=b+1,M=new Int32Array(w),P=new Int32Array(w),d=r-s,h=n-t,g=t-s,_=n-r,S=(h-d)%2==0;M[d]=t,P[h]=n,u[0]=!1;for(let N=1;N<=b/2+1;N++){let p=0,I=0;f=this.ClipDiagonalBound(d-N,N,d,w),c=this.ClipDiagonalBound(d+N,N,d,w);for(let C=f;C<=c;C+=2){C===f||Cp+I&&(p=a,I=o),!S&&Math.abs(C-h)<=N-1&&a>=P[C])return i[0]=a,l[0]=o,Q<=P[C]&&1447>0&&N<=1447+1?this.WALKTRACE(d,f,c,g,h,m,L,_,M,P,a,n,i,o,r,l,S,u):null}const R=(p-t+(I-s)-N)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(p,R))return u[0]=!0,i[0]=p,l[0]=I,R>0&&1447>0&&N<=1447+1?this.WALKTRACE(d,f,c,g,h,m,L,_,M,P,a,n,i,o,r,l,S,u):(t++,s++,[new $(t,n-t+1,s,r-s+1)]);m=this.ClipDiagonalBound(h-N,N,h,w),L=this.ClipDiagonalBound(h+N,N,h,w);for(let C=m;C<=L;C+=2){C===m||C=P[C+1]?a=P[C+1]-1:a=P[C-1],o=a-(C-h)-_;const Q=a;for(;a>t&&o>s&&this.ElementsAreEqual(a,o);)a--,o--;if(P[C]=a,S&&Math.abs(C-d)<=N&&a<=M[C])return i[0]=a,l[0]=o,Q>=M[C]&&1447>0&&N<=1447+1?this.WALKTRACE(d,f,c,g,h,m,L,_,M,P,a,n,i,o,r,l,S,u):null}if(N<=1447){let C=new Int32Array(c-f+2);C[0]=d-f+1,ee.Copy2(M,f,C,1,c-f+1),this.m_forwardHistory.push(C),C=new Int32Array(L-m+2),C[0]=h-m+1,ee.Copy2(P,m,C,1,L-m+1),this.m_reverseHistory.push(C)}}return this.WALKTRACE(d,f,c,g,h,m,L,_,M,P,a,n,i,o,r,l,S,u)}PrettifyChanges(t){for(let n=0;n0,u=s.modifiedLength>0;for(;s.originalStart+s.originalLength=0;n--){const s=t[n];let r=0,i=0;if(n>0){const c=t[n-1];r=c.originalStart+c.originalLength,i=c.modifiedStart+c.modifiedLength}const l=s.originalLength>0,u=s.modifiedLength>0;let a=0,o=this._boundaryScore(s.originalStart,s.originalLength,s.modifiedStart,s.modifiedLength);for(let c=1;;c++){const m=s.originalStart-c,L=s.modifiedStart-c;if(mo&&(o=w,a=c)}s.originalStart-=a,s.modifiedStart-=a;const f=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],f)){t[n-1]=f[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,s=t.length;n0&&L>a&&(a=L,o=c,f=m)}return a>0?[o,f]:null}_contiguousSequenceScore(t,n,s){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const s=t+n;if(this._OriginalIsBoundary(s-1)||this._OriginalIsBoundary(s))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const s=t+n;if(this._ModifiedIsBoundary(s-1)||this._ModifiedIsBoundary(s))return!0}return!1}_boundaryScore(t,n,s,r){const i=this._OriginalRegionIsBoundary(t,n)?1:0,l=this._ModifiedRegionIsBoundary(s,r)?1:0;return i+l}ConcatenateChanges(t,n){let s=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],s)){const r=new Array(t.length+n.length-1);return ee.Copy(t,0,r,0,t.length-1),r[t.length-1]=s[0],ee.Copy(n,1,r,t.length,n.length-1),r}else{const r=new Array(t.length+n.length);return ee.Copy(t,0,r,0,t.length),ee.Copy(n,0,r,t.length,n.length),r}}ChangesOverlap(t,n,s){if(K.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),K.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const r=t.originalStart;let i=t.originalLength;const l=t.modifiedStart;let u=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(u=n.modifiedStart+n.modifiedLength-t.modifiedStart),s[0]=new $(r,i,l,u),!0}else return s[0]=null,!1}ClipDiagonalBound(t,n,s,r){if(t>=0&&t=An&&e<=Cn||e>=wn&&e<=vn}function de(e,t,n,s){let r="",i=0,l=-1,u=0,a=0;for(let o=0;o<=e.length;++o){if(o2){const f=r.lastIndexOf(n);f===-1?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf(n)),l=o,u=0;continue}else if(r.length!==0){r="",i=0,l=o,u=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",i=2)}else r.length>0?r+=`${n}${e.slice(l+1,o)}`:r=e.slice(l+1,o),i=o-l-1;l=o,u=0}else a===G&&u!==-1?++u:u=-1}return r}function it(e,t){if(t===null||typeof t!="object")throw new rt("pathObject","Object",t);const n=t.dir||t.root,s=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${s}`:`${n}${e}${s}`:s}const H={resolve(...e){let t="",n="",s=!1;for(let r=e.length-1;r>=-1;r--){let i;if(r>=0){if(i=e[r],D(i,"path"),i.length===0)continue}else t.length===0?i=Ue():(i=bn[`=${t}`]||Ue(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===q)&&(i=`${t}\\`));const l=i.length;let u=0,a="",o=!1;const f=i.charCodeAt(0);if(l===1)v(f)&&(u=1,o=!0);else if(v(f))if(o=!0,v(i.charCodeAt(1))){let c=2,m=c;for(;c2&&v(i.charCodeAt(2))&&(o=!0,u=3));if(a.length>0)if(t.length>0){if(a.toLowerCase()!==t.toLowerCase())continue}else t=a;if(s){if(t.length>0)break}else if(n=`${i.slice(u)}\\${n}`,s=o,o&&t.length>0)break}return n=de(n,!s,"\\",v),s?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){D(e,"path");const t=e.length;if(t===0)return".";let n=0,s,r=!1;const i=e.charCodeAt(0);if(t===1)return xe(i)?"\\":e;if(v(i))if(r=!0,v(e.charCodeAt(1))){let u=2,a=u;for(;u2&&v(e.charCodeAt(2))&&(r=!0,n=3));let l=n0&&v(e.charCodeAt(t-1))&&(l+="\\"),s===void 0?r?`\\${l}`:l:r?`${s}\\${l}`:`${s}${l}`},isAbsolute(e){D(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return v(n)||t>2&&y(n)&&e.charCodeAt(1)===j&&v(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i0&&(t===void 0?t=n=l:t+=`\\${l}`)}if(t===void 0)return".";let s=!0,r=0;if(typeof n=="string"&&v(n.charCodeAt(0))){++r;const i=n.length;i>1&&v(n.charCodeAt(1))&&(++r,i>2&&(v(n.charCodeAt(2))?++r:s=!1))}if(s){for(;r=2&&(t=`\\${t.slice(r)}`)}return H.normalize(t)},relative(e,t){if(D(e,"from"),D(t,"to"),e===t)return"";const n=H.resolve(e),s=H.resolve(t);if(n===s||(e=n.toLowerCase(),t=s.toLowerCase(),e===t))return"";let r=0;for(;rr&&e.charCodeAt(i-1)===q;)i--;const l=i-r;let u=0;for(;uu&&t.charCodeAt(a-1)===q;)a--;const o=a-u,f=lf){if(t.charCodeAt(u+m)===q)return s.slice(u+m+1);if(m===2)return s.slice(u+m)}l>f&&(e.charCodeAt(r+m)===q?c=m:m===2&&(c=3)),c===-1&&(c=0)}let L="";for(m=r+c+1;m<=i;++m)(m===i||e.charCodeAt(m)===q)&&(L+=L.length===0?"..":"\\..");return u+=c,L.length>0?`${L}${s.slice(u,a)}`:(s.charCodeAt(u)===q&&++u,s.slice(u,a))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=H.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===q){if(t.charCodeAt(1)===q){const n=t.charCodeAt(2);if(n!==Mn&&n!==G)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(y(t.charCodeAt(0))&&t.charCodeAt(1)===j&&t.charCodeAt(2)===q)return`\\\\?\\${t}`;return e},dirname(e){D(e,"path");const t=e.length;if(t===0)return".";let n=-1,s=0;const r=e.charCodeAt(0);if(t===1)return v(r)?e:".";if(v(r)){if(n=s=1,v(e.charCodeAt(1))){let u=2,a=u;for(;u2&&v(e.charCodeAt(2))?3:2,s=n);let i=-1,l=!0;for(let u=t-1;u>=s;--u)if(v(e.charCodeAt(u))){if(!l){i=u;break}}else l=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&D(t,"ext"),D(e,"path");let n=0,s=-1,r=!0,i;if(e.length>=2&&y(e.charCodeAt(0))&&e.charCodeAt(1)===j&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let l=t.length-1,u=-1;for(i=e.length-1;i>=n;--i){const a=e.charCodeAt(i);if(v(a)){if(!r){n=i+1;break}}else u===-1&&(r=!1,u=i+1),l>=0&&(a===t.charCodeAt(l)?--l==-1&&(s=i):(l=-1,s=u))}return n===s?s=u:s===-1&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=n;--i)if(v(e.charCodeAt(i))){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":e.slice(n,s)},extname(e){D(e,"path");let t=0,n=-1,s=0,r=-1,i=!0,l=0;e.length>=2&&e.charCodeAt(1)===j&&y(e.charCodeAt(0))&&(t=s=2);for(let u=e.length-1;u>=t;--u){const a=e.charCodeAt(u);if(v(a)){if(!i){s=u+1;break}continue}r===-1&&(i=!1,r=u+1),a===G?n===-1?n=u:l!==1&&(l=1):n!==-1&&(l=-1)}return n===-1||r===-1||l===0||l===1&&n===r-1&&n===s+1?"":e.slice(n,r)},format:it.bind(null,"\\"),parse(e){D(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let s=0,r=e.charCodeAt(0);if(n===1)return v(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(v(r)){if(s=1,v(e.charCodeAt(1))){let c=2,m=c;for(;c0&&(t.root=e.slice(0,s));let i=-1,l=s,u=-1,a=!0,o=e.length-1,f=0;for(;o>=s;--o){if(r=e.charCodeAt(o),v(r)){if(!a){l=o+1;break}continue}u===-1&&(a=!1,u=o+1),r===G?i===-1?i=o:f!==1&&(f=1):i!==-1&&(f=-1)}return u!==-1&&(i===-1||f===0||f===1&&i===u-1&&i===l+1?t.base=t.name=e.slice(l,u):(t.name=e.slice(l,i),t.base=e.slice(l,u),t.ext=e.slice(i,u))),l>0&&l!==s?t.dir=e.slice(0,l-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},W={resolve(...e){let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){const r=s>=0?e[s]:Ue();D(r,"path"),r.length!==0&&(t=`${r}/${t}`,n=r.charCodeAt(0)===F)}return t=de(t,!n,"/",xe),n?`/${t}`:t.length>0?t:"."},normalize(e){if(D(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===F,n=e.charCodeAt(e.length-1)===F;return e=de(e,!t,"/",xe),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return D(e,"path"),e.length>0&&e.charCodeAt(0)===F},join(...e){if(e.length===0)return".";let t;for(let n=0;n0&&(t===void 0?t=s:t+=`/${s}`)}return t===void 0?".":W.normalize(t)},relative(e,t){if(D(e,"from"),D(t,"to"),e===t||(e=W.resolve(e),t=W.resolve(t),e===t))return"";const n=1,s=e.length,r=s-n,i=1,l=t.length-i,u=ru){if(t.charCodeAt(i+o)===F)return t.slice(i+o+1);if(o===0)return t.slice(i+o)}else r>u&&(e.charCodeAt(n+o)===F?a=o:o===0&&(a=0));let f="";for(o=n+a+1;o<=s;++o)(o===s||e.charCodeAt(o)===F)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(i+a)}`},toNamespacedPath(e){return e},dirname(e){if(D(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===F;let n=-1,s=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===F){if(!s){n=r;break}}else s=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&D(t,"ext"),D(e,"path");let n=0,s=-1,r=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let l=t.length-1,u=-1;for(i=e.length-1;i>=0;--i){const a=e.charCodeAt(i);if(a===F){if(!r){n=i+1;break}}else u===-1&&(r=!1,u=i+1),l>=0&&(a===t.charCodeAt(l)?--l==-1&&(s=i):(l=-1,s=u))}return n===s?s=u:s===-1&&(s=e.length),e.slice(n,s)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===F){if(!r){n=i+1;break}}else s===-1&&(r=!1,s=i+1);return s===-1?"":e.slice(n,s)},extname(e){D(e,"path");let t=-1,n=0,s=-1,r=!0,i=0;for(let l=e.length-1;l>=0;--l){const u=e.charCodeAt(l);if(u===F){if(!r){n=l+1;break}continue}s===-1&&(r=!1,s=l+1),u===G?t===-1?t=l:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||s===-1||i===0||i===1&&t===s-1&&t===n+1?"":e.slice(t,s)},format:it.bind(null,"/"),parse(e){D(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===F;let s;n?(t.root="/",s=1):s=0;let r=-1,i=0,l=-1,u=!0,a=e.length-1,o=0;for(;a>=s;--a){const f=e.charCodeAt(a);if(f===F){if(!u){i=a+1;break}continue}l===-1&&(u=!1,l=a+1),f===G?r===-1?r=a:o!==1&&(o=1):r!==-1&&(o=-1)}if(l!==-1){const f=i===0&&n?1:i;r===-1||o===0||o===1&&r===l-1&&r===i+1?t.base=t.name=e.slice(f,l):(t.name=e.slice(f,r),t.base=e.slice(f,l),t.ext=e.slice(r,l))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};W.win32=H.win32=H,W.posix=H.posix=W,X==="win32"?H.normalize:W.normalize,X==="win32"?H.resolve:W.resolve,X==="win32"?H.relative:W.relative,X==="win32"?H.dirname:W.dirname,X==="win32"?H.basename:W.basename,X==="win32"?H.extname:W.extname,X==="win32"?H.sep:W.sep;const Pn=/^\w[\w\d+.-]*$/,pn=/^\//,Rn=/^\/\//;function lt(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Pn.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!pn.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Rn.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Un(e,t){return!e&&!t?"file":e}function xn(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Y&&(t=Y+t):t=Y;break}return t}const x="",Y="/",En=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class J{constructor(t,n,s,r,i,l=!1){typeof t=="object"?(this.scheme=t.scheme||x,this.authority=t.authority||x,this.path=t.path||x,this.query=t.query||x,this.fragment=t.fragment||x):(this.scheme=Un(t,l),this.authority=n||x,this.path=xn(this.scheme,s||x),this.query=r||x,this.fragment=i||x,lt(this,l))}static isUri(t){return t instanceof J?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}get fsPath(){return Ee(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:s,path:r,query:i,fragment:l}=t;return n===void 0?n=this.scheme:n===null&&(n=x),s===void 0?s=this.authority:s===null&&(s=x),r===void 0?r=this.path:r===null&&(r=x),i===void 0?i=this.query:i===null&&(i=x),l===void 0?l=this.fragment:l===null&&(l=x),n===this.scheme&&s===this.authority&&r===this.path&&i===this.query&&l===this.fragment?this:new ne(n,s,r,i,l)}static parse(t,n=!1){const s=En.exec(t);return s?new ne(s[2]||x,ge(s[4]||x),ge(s[5]||x),ge(s[7]||x),ge(s[9]||x),n):new ne(x,x,x,x,x)}static file(t){let n=x;if(ue&&(t=t.replace(/\\/g,Y)),t[0]===Y&&t[1]===Y){const s=t.indexOf(Y,2);s===-1?(n=t.substring(2),t=Y):(n=t.substring(2,s),t=t.substring(s)||Y)}return new ne("file",n,t,x,x)}static from(t){const n=new ne(t.scheme,t.authority,t.path,t.query,t.fragment);return lt(n,!0),n}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let s;return ue&&t.scheme==="file"?s=J.file(H.join(Ee(t,!0),...n)).path:s=W.join(t.path,...n),t.with({path:s})}toString(t=!1){return De(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof J)return t;{const n=new ne(t);return n._formatted=t.external,n._fsPath=t._sep===ut?t.fsPath:null,n}}else return t}}const ut=ue?1:void 0;class ne extends J{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ee(this,!1)),this._fsPath}toString(t=!1){return t?De(this,!0):(this._formatted||(this._formatted=De(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=ut),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const at={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function ot(e,t){let n,s=-1;for(let r=0;r=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===45||i===46||i===95||i===126||t&&i===47)s!==-1&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),n!==void 0&&(n+=e.charAt(r));else{n===void 0&&(n=e.substr(0,r));const l=at[i];l!==void 0?(s!==-1&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),n+=l):s===-1&&(s=r)}}return s!==-1&&(n+=encodeURIComponent(e.substring(s))),n!==void 0?n:e}function Dn(e){let t;for(let n=0;n1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,ue&&(n=n.replace(/\//g,"\\")),n}function De(e,t){const n=t?Dn:ot;let s="",{scheme:r,authority:i,path:l,query:u,fragment:a}=e;if(r&&(s+=r,s+=":"),(i||r==="file")&&(s+=Y,s+=Y),i){let o=i.indexOf("@");if(o!==-1){const f=i.substr(0,o);i=i.substr(o+1),o=f.indexOf(":"),o===-1?s+=n(f,!1):(s+=n(f.substr(0,o),!1),s+=":",s+=n(f.substr(o+1),!1)),s+="@"}i=i.toLowerCase(),o=i.indexOf(":"),o===-1?s+=n(i,!1):(s+=n(i.substr(0,o),!1),s+=i.substr(o))}if(l){if(l.length>=3&&l.charCodeAt(0)===47&&l.charCodeAt(2)===58){const o=l.charCodeAt(1);o>=65&&o<=90&&(l=`/${String.fromCharCode(o+32)}:${l.substr(3)}`)}else if(l.length>=2&&l.charCodeAt(1)===58){const o=l.charCodeAt(0);o>=65&&o<=90&&(l=`${String.fromCharCode(o+32)}:${l.substr(2)}`)}s+=n(l,!0)}return u&&(s+="?",s+=n(u,!1)),a&&(s+="#",s+=t?a:ot(a,!1)),s}function ct(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+ct(e.substr(3)):e}}const ft=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ge(e){return e.match(ft)?e.replace(ft,t=>ct(t)):e}class B{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new B(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return B.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return B.isBefore(this,t)}static isBefore(t,n){return t.lineNumbers||t===s&&n>r?(this.startLineNumber=s,this.startColumn=r,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=s,this.endColumn=r)}isEmpty(){return E.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return E.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumbert.endLineNumber||n.lineNumber===t.startLineNumber&&n.columnt.endColumn)}containsRange(t){return E.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumnt.endColumn)}strictContainsRange(t){return E.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumbert.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return E.plusRange(this,t)}static plusRange(t,n){let s,r,i,l;return n.startLineNumbert.endLineNumber?(i=n.endLineNumber,l=n.endColumn):n.endLineNumber===t.endLineNumber?(i=n.endLineNumber,l=Math.max(n.endColumn,t.endColumn)):(i=t.endLineNumber,l=t.endColumn),new E(s,r,i,l)}intersectRanges(t){return E.intersectRanges(this,t)}static intersectRanges(t,n){let s=t.startLineNumber,r=t.startColumn,i=t.endLineNumber,l=t.endColumn,u=n.startLineNumber,a=n.startColumn,o=n.endLineNumber,f=n.endColumn;return so?(i=o,l=f):i===o&&(l=Math.min(l,f)),s>i||s===i&&r>l?null:new E(s,r,i,l)}equalsRange(t){return E.equalsRange(this,t)}static equalsRange(t,n){return!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return E.getEndPosition(this)}static getEndPosition(t){return new B(t.endLineNumber,t.endColumn)}getStartPosition(){return E.getStartPosition(this)}static getStartPosition(t){return new B(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new E(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new E(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return E.collapseToStart(this)}static collapseToStart(t){return new E(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}static fromPositions(t,n=t){return new E(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new E(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumbert.startLineNumber}}const kn=3;function ht(e,t,n,s){return new z(e,t,n).ComputeDiff(s)}class mt{constructor(t){const n=[],s=[];for(let r=0,i=t.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const L=s.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),b=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);let w=ht(L,b,i,!0).changes;u&&(w=Tn(w)),m=[];for(let M=0,P=w.length;M1&&w>1;){const M=m.charCodeAt(b-2),P=L.charCodeAt(w-2);if(M!==P)break;b--,w--}(b>1||w>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,b,l+1,1,w)}{let b=Fe(m,1),w=Fe(L,1);const M=m.length+1,P=L.length+1;for(;b!0;const t=Date.now();return()=>Date.now()-t255?255:e|0}function se(e){return e<0?0:e>4294967295?4294967295:e|0}class Hn{constructor(t,n){this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class qn{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=se(t);const s=this.values,r=this.prefixSum,i=n.length;return i===0?!1:(this.values=new Uint32Array(s.length+i),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t),t+i),this.values.set(n,t),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(t,n){return t=se(t),n=se(n),this.values[t]===n?!1:(this.values[t]=n,t-1=s.length)return!1;let i=s.length-t;return n>=i&&(n=i),n===0?!1:(this.values=new Uint32Array(s.length-n),this.values.set(s.subarray(0,t),0),this.values.set(s.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=se(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let s=n;s<=t;s++)this.prefixSum[s]=this.prefixSum[s-1]+this.values[s];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,s=this.values.length-1,r=0,i=0,l=0;for(;n<=s;)if(r=n+(s-n)/2|0,i=this.prefixSum[r],l=i-this.values[r],t=i)n=r+1;else break;return new Hn(r,t-l)}}class Wn{constructor(t,n,s,r){this._uri=t,this._lines=n,this._eol=s,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const s of n)this._acceptDeleteRange(s.range),this._acceptInsertText(new B(s.range.startLineNumber,s.range.startColumn),s.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,s=new Uint32Array(n);for(let r=0;r/?";function Yn(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Bn)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Vn=Yn();function $n(e){let t=Vn;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const zn={maxLen:1e3,windowSize:15,timeBudget:150};function _t(e,t,n,s,r=zn){if(n.length>r.maxLen){let o=e-r.maxLen/2;return o<0?o=0:s+=o,n=n.substring(o,e+r.maxLen/2),_t(e,t,n,s,r)}const i=Date.now(),l=e-1-s;let u=-1,a=null;for(let o=1;!(Date.now()-i>=r.timeBudget);o++){const f=l-r.windowSize*o;t.lastIndex=Math.max(0,f);const c=Gn(t,n,l,u);if(!c&&a||(a=c,f<=0))break;u=f}if(a){let o={word:a[0],startColumn:s+1+a.index,endColumn:s+1+a.index+a[0].length};return t.lastIndex=0,o}return null}function Gn(e,t,n,s){let r;for(;r=e.exec(t);){const i=r.index||0;if(i<=n&&e.lastIndex>=n)return r;if(s>0&&i>s)return null}return null}class Te{constructor(t){let n=gt(t);this._defaultValue=n,this._asciiMap=Te._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){let n=new Uint8Array(256);for(let s=0;s<256;s++)n[s]=t;return n}set(t,n){let s=gt(n);t>=0&&t<256?this._asciiMap[t]=s:this._map.set(t,s)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}}class jn{constructor(t,n,s){const r=new Uint8Array(t*n);for(let i=0,l=t*n;in&&(n=a),u>s&&(s=u),o>s&&(s=o)}n++,s++;let r=new jn(s,n,0);for(let i=0,l=t.length;i=this._maxCharCode?0:this._states.get(t,n)}}let Ie=null;function Qn(){return Ie===null&&(Ie=new yn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ie}let ce=null;function Zn(){if(ce===null){ce=new Te(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let n=0;nr);if(r>0){const u=n.charCodeAt(r-1),a=n.charCodeAt(l);(u===40&&a===41||u===91&&a===93||u===123&&a===125)&&l--}return{range:{startLineNumber:s,startColumn:r+1,endLineNumber:s,endColumn:l+2},url:n.substring(r,l+1)}}static computeLinks(t,n=Qn()){const s=Zn();let r=[];for(let i=1,l=t.getLineCount();i<=l;i++){const u=t.getLineContent(i),a=u.length;let o=0,f=0,c=0,m=1,L=!1,b=!1,w=!1,M=!1;for(;o=0?(r+=s?1:-1,r<0?r=t.length-1:r%=t.length,t[r]):null}}He.INSTANCE=new He;class U{constructor(t){this.element=t,this.next=U.Undefined,this.prev=U.Undefined}}U.Undefined=new U(void 0);class Lt{constructor(){this._first=U.Undefined,this._last=U.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===U.Undefined}clear(){let t=this._first;for(;t!==U.Undefined;){const n=t.next;t.prev=U.Undefined,t.next=U.Undefined,t=n}this._first=U.Undefined,this._last=U.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const s=new U(t);if(this._first===U.Undefined)this._first=s,this._last=s;else if(n){const i=this._last;this._last=s,s.prev=i,i.next=s}else{const i=this._first;this._first=s,s.next=i,i.prev=s}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(s))}}shift(){if(this._first!==U.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==U.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==U.Undefined&&t.next!==U.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===U.Undefined&&t.next===U.Undefined?(this._first=U.Undefined,this._last=U.Undefined):t.next===U.Undefined?(this._last=this._last.prev,this._last.next=U.Undefined):t.prev===U.Undefined&&(this._first=this._first.next,this._first.prev=U.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==U.Undefined;)yield t.element,t=t.next}}const Jn=T.performance&&typeof T.performance.now=="function";class Le{constructor(t){this._highResolution=Jn&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new Le(t)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?T.performance.now():Date.now()}}var qe;(function(e){e.None=()=>Oe.None;function t(d){return(h,g=null,_)=>{let A=!1,S;return S=d(N=>{if(!A)return S?S.dispose():A=!0,h.call(g,N)},null,_),A&&S.dispose(),S}}e.once=t;function n(d,h){return a((g,_=null,A)=>d(S=>g.call(_,h(S)),null,A))}e.map=n;function s(d,h){return a((g,_=null,A)=>d(S=>{h(S),g.call(_,S)},null,A))}e.forEach=s;function r(d,h){return a((g,_=null,A)=>d(S=>h(S)&&g.call(_,S),null,A))}e.filter=r;function i(d){return d}e.signal=i;function l(...d){return(h,g=null,_)=>un(...d.map(A=>A(S=>h.call(g,S),null,_)))}e.any=l;function u(d,h,g){let _=g;return n(d,A=>(_=h(_,A),_))}e.reduce=u;function a(d){let h;const g=new O({onFirstListenerAdd(){h=d(g.fire,g)},onLastListenerRemove(){h.dispose()}});return g.event}function o(d,h,g=100,_=!1,A){let S,N,p,I=0;const R=new O({leakWarningThreshold:A,onFirstListenerAdd(){S=d(C=>{I++,N=h(N,C),_&&!p&&(R.fire(N),N=void 0),clearTimeout(p),p=setTimeout(()=>{const Q=N;N=void 0,p=void 0,(!_||I>1)&&R.fire(Q),I=0},g)})},onLastListenerRemove(){S.dispose()}});return R.event}e.debounce=o;function f(d,h=(g,_)=>g===_){let g=!0,_;return r(d,A=>{const S=g||!h(A,_);return g=!1,_=A,S})}e.latch=f;function c(d,h){return[e.filter(d,h),e.filter(d,g=>!h(g))]}e.split=c;function m(d,h=!1,g=[]){let _=g.slice(),A=d(p=>{_?_.push(p):N.fire(p)});const S=()=>{_&&_.forEach(p=>N.fire(p)),_=null},N=new O({onFirstListenerAdd(){A||(A=d(p=>N.fire(p)))},onFirstListenerDidAdd(){_&&(h?setTimeout(S):S())},onLastListenerRemove(){A&&A.dispose(),A=null}});return N.event}e.buffer=m;class L{constructor(h){this.event=h}map(h){return new L(n(this.event,h))}forEach(h){return new L(s(this.event,h))}filter(h){return new L(r(this.event,h))}reduce(h,g){return new L(u(this.event,h,g))}latch(){return new L(f(this.event))}debounce(h,g=100,_=!1,A){return new L(o(this.event,h,g,_,A))}on(h,g,_){return this.event(h,g,_)}once(h,g,_){return t(this.event)(h,g,_)}}function b(d){return new L(d)}e.chain=b;function w(d,h,g=_=>_){const _=(...p)=>N.fire(g(...p)),A=()=>d.on(h,_),S=()=>d.removeListener(h,_),N=new O({onFirstListenerAdd:A,onLastListenerRemove:S});return N.event}e.fromNodeEventEmitter=w;function M(d,h,g=_=>_){const _=(...p)=>N.fire(g(...p)),A=()=>d.addEventListener(h,_),S=()=>d.removeEventListener(h,_),N=new O({onFirstListenerAdd:A,onLastListenerRemove:S});return N.event}e.fromDOMEventEmitter=M;function P(d){return new Promise(h=>t(d)(h))}e.toPromise=P})(qe||(qe={}));class Ne{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${Ne._idPool++}`}start(t){this._stopWatch=new Le(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Ne._idPool=0;class O{constructor(t){var n;this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=((n=this._options)===null||n===void 0?void 0:n._profName)?new Ne(this._options._profName):void 0}get event(){return this._event||(this._event=(t,n,s)=>{var r;this._listeners||(this._listeners=new Lt);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const l=this._listeners.push(n?[t,n]:t);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,n);const u=(r=this._leakageMon)===null||r===void 0?void 0:r.check(this._listeners.size),a=Je(()=>{u&&u(),this._disposed||(l(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return s instanceof le?s.add(a):Array.isArray(s)&&s.push(a),a}),this._event}fire(t){var n,s;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Lt);for(let r of this._listeners)this._deliveryQueue.push([r,t]);for((n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[r,i]=this._deliveryQueue.shift();try{typeof r=="function"?r.call(void 0,i):r[0].call(r[1],i)}catch(l){en(l)}}(s=this._perfMon)===null||s===void 0||s.stop()}}dispose(){var t,n,s,r,i;this._disposed||(this._disposed=!0,(t=this._listeners)===null||t===void 0||t.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(),(r=(s=this._options)===null||s===void 0?void 0:s.onLastListenerRemove)===null||r===void 0||r.call(s),(i=this._leakageMon)===null||i===void 0||i.dispose())}}const Nt=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Se;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof be?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:qe.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nt})})(Se||(Se={}));class be{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Nt:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class On{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new be),this._token}cancel(){this._token?this._token instanceof be&&this._token.cancel():this._token=Se.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof be&&this._token.dispose():this._token=Se.None}}class We{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Be=new We,Ye=new We,Ve=new We;(function(){function e(t,n,s=n,r=s){Be.define(t,n),Ye.define(t,s),Ve.define(t,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})();var St;(function(e){function t(l){return Be.keyCodeToStr(l)}e.toString=t;function n(l){return Be.strToKeyCode(l)}e.fromString=n;function s(l){return Ye.keyCodeToStr(l)}e.toUserSettingsUS=s;function r(l){return Ve.keyCodeToStr(l)}e.toUserSettingsGeneral=r;function i(l){return Ye.strToKeyCode(l)||Ve.strToKeyCode(l)}e.fromUserSettings=i})(St||(St={}));function Kn(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class V extends E{constructor(t,n,s,r){super(t,n,s,r);this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=s,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return V.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new V(this.startLineNumber,this.startColumn,t,n):new V(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new B(this.positionLineNumber,this.positionColumn)}setStartPosition(t,n){return this.getDirection()===0?new V(t,n,this.endLineNumber,this.endColumn):new V(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new V(t.lineNumber,t.column,n.lineNumber,n.column)}static liftSelection(t){return new V(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let s=0,r=t.length;sthis._lines.length)n=this._lines.length,s=this._lines[n-1].length+1,r=!0;else{let i=this._lines[n-1].length+1;s<1?(s=1,r=!0):s>i&&(s=i,r=!0)}return r?{lineNumber:n,column:s}:t}}class ie{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}acceptNewModel(t){this._models[t.url]=new ns(J.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}acceptRemovedModel(t){!this._models[t]||delete this._models[t]}computeDiff(t,n,s,r){return re(this,void 0,void 0,function*(){const i=this._getModel(t),l=this._getModel(n);if(!i||!l)return null;const u=i.getLinesContent(),a=l.getLinesContent(),f=new In(u,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:s,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),c=f.changes.length>0?!1:this._modelsAreIdentical(i,l);return{quitEarly:f.quitEarly,identical:c,changes:f.changes}})}_modelsAreIdentical(t,n){const s=t.getLineCount(),r=n.getLineCount();if(s!==r)return!1;for(let i=1;i<=s;i++){const l=t.getLineContent(i),u=n.getLineContent(i);if(l!==u)return!1}return!0}computeMoreMinimalEdits(t,n){return re(this,void 0,void 0,function*(){const s=this._getModel(t);if(!s)return n;const r=[];let i;n=n.slice(0).sort((l,u)=>{if(l.range&&u.range)return E.compareRangesUsingStarts(l.range,u.range);let a=l.range?0:1,o=u.range?0:1;return a-o});for(let{range:l,text:u,eol:a}of n){if(typeof a=="number"&&(i=a),E.isEmpty(l)&&!u)continue;const o=s.getValueInRange(l);if(u=u.replace(/\r\n|\n|\r/g,s.eol),o===u)continue;if(Math.max(u.length,o.length)>ie._diffLimit){r.push({range:l,text:u});continue}const f=Sn(o,u,!1),c=s.offsetAt(E.lift(l).getStartPosition());for(const m of f){const L=s.positionAt(c+m.originalStart),b=s.positionAt(c+m.originalStart+m.originalLength),w={text:u.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:L.lineNumber,startColumn:L.column,endLineNumber:b.lineNumber,endColumn:b.column}};s.getValueInRange(w.range)!==w.text&&r.push(w)}}return typeof i=="number"&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r})}computeLinks(t){return re(this,void 0,void 0,function*(){let n=this._getModel(t);return n?Xn(n):null})}textualSuggest(t,n,s,r){return re(this,void 0,void 0,function*(){const i=new Le(!0),l=new RegExp(s,r),u=new Set;e:for(let a of t){const o=this._getModel(a);if(!!o){for(let f of o.words(l))if(!(f===n||!isNaN(Number(f)))&&(u.add(f),u.size>ie._suggestionsLimit))break e}}return{words:Array.from(u),duration:i.elapsed()}})}computeWordRanges(t,n,s,r){return re(this,void 0,void 0,function*(){let i=this._getModel(t);if(!i)return Object.create(null);const l=new RegExp(s,r),u=Object.create(null);for(let a=n.startLineNumber;athis._host.fhr(u,a)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(l,n),Promise.resolve(Re(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(s){return Promise.reject(s)}}}ie._diffLimit=1e5,ie._suggestionsLimit=1e4,typeof importScripts=="function"&&(T.monaco=ts());let ye=!1;function Jt(e){if(ye)return;ye=!0;const t=new dn(n=>{self.postMessage(n)},n=>new ie(n,e));self.onmessage=n=>{t.onmessage(n.data)}}return self.onmessage=e=>{ye||Jt(null)},Ae.initialize=Jt,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae})({});})(); diff --git a/magic-editor/src/console/dist/assets/iconfont.c1c53300.ttf b/magic-editor/src/console/dist/assets/iconfont.c1c53300.ttf new file mode 100644 index 00000000..bd98611a Binary files /dev/null and b/magic-editor/src/console/dist/assets/iconfont.c1c53300.ttf differ diff --git a/magic-editor/src/console/dist/assets/index.0b4f4017.js b/magic-editor/src/console/dist/assets/index.0b4f4017.js new file mode 100644 index 00000000..e3f98d64 --- /dev/null +++ b/magic-editor/src/console/dist/assets/index.0b4f4017.js @@ -0,0 +1 @@ +import"./app.abe91525.js";import"./vue.7304e5c5.js";import"./vendor.5f04ef2d.js";import"./axios.23e7b955.js";const s=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}};s(); diff --git a/magic-editor/src/console/dist/assets/json.worker.d0289ce1.js b/magic-editor/src/console/dist/assets/json.worker.d0289ce1.js new file mode 100644 index 00000000..d54fbec6 --- /dev/null +++ b/magic-editor/src/console/dist/assets/json.worker.d0289ce1.js @@ -0,0 +1,29 @@ +(()=>{(function(){"use strict";class Wi{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?new Error(t.message+` + +`+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const qi=new Wi;function Hi(e){Bi(e)||qi.onUnexpectedError(e)}function jr(e){if(e instanceof Error){let{name:t,message:r}=e;const n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n}}return e}const Ur="Canceled";function Bi(e){return e instanceof Error&&e.name===Ur&&e.message===Ur}function Yi(e){const t=this;let r=!1,n;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var Rt;(function(e){function t(p){return p&&typeof p=="object"&&typeof p[Symbol.iterator]=="function"}e.is=t;const r=Object.freeze([]);function n(){return r}e.empty=n;function*i(p){yield p}e.single=i;function s(p){return p||r}e.from=s;function a(p){return!p||p[Symbol.iterator]().next().done===!0}e.isEmpty=a;function o(p){return p[Symbol.iterator]().next().value}e.first=o;function u(p,g){for(const _ of p)if(g(_))return!0;return!1}e.some=u;function l(p,g){for(const _ of p)if(g(_))return _}e.find=l;function*c(p,g){for(const _ of p)g(_)&&(yield _)}e.filter=c;function*f(p,g){let _=0;for(const L of p)yield g(L,_++)}e.map=f;function*h(...p){for(const g of p)for(const _ of g)yield _}e.concat=h;function*d(p){for(const g of p)for(const _ of g)yield _}e.concatNested=d;function m(p,g,_){let L=_;for(const S of p)L=g(L,S);return L}e.reduce=m;function*v(p,g,_=p.length){for(g<0&&(g+=p.length),_<0?_+=p.length:_>p.length&&(_=p.length);g<_;g++)yield p[g]}e.slice=v;function b(p,g=Number.POSITIVE_INFINITY){const _=[];if(g===0)return[_,p];const L=p[Symbol.iterator]();for(let S=0;SL===S){const L=p[Symbol.iterator](),S=g[Symbol.iterator]();for(;;){const A=L.next(),w=S.next();if(A.done!==w.done)return!1;if(A.done)return!0;if(!_(A.value,w.value))return!1}}e.equals=N})(Rt||(Rt={}));function zi(e){return e}function Gi(e,t){}class Ji extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function Rr(e){if(Rt.is(e)){let t=[];for(const r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new Ji(t);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Qi(...e){return Or(()=>Rr(e))}function Or(e){return zi({dispose:Yi(()=>{e()})})}class tt{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{Rr(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?tt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}tt.DISABLE_DISPOSED_WARNING=!1;class Vr{constructor(){this._store=new tt,Gi(this._store)}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}Vr.None=Object.freeze({dispose(){}});var Ot;const bt="en";let Vt=!1,$t=!1,Wt=!1,yt,qt=bt,Xi,je;const ee=typeof self=="object"?self:typeof global=="object"?global:{};let Z;typeof ee.vscode!="undefined"&&typeof ee.vscode.process!="undefined"?Z=ee.vscode.process:typeof process!="undefined"&&(Z=process);const Zi=typeof((Ot=Z==null?void 0:Z.versions)===null||Ot===void 0?void 0:Ot.electron)=="string"&&Z.type==="renderer";if(typeof navigator=="object"&&!Zi)je=navigator.userAgent,Vt=je.indexOf("Windows")>=0,$t=je.indexOf("Macintosh")>=0,(je.indexOf("Macintosh")>=0||je.indexOf("iPad")>=0||je.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wt=je.indexOf("Linux")>=0,yt=navigator.language,qt=yt;else if(typeof Z=="object"){Vt=Z.platform==="win32",$t=Z.platform==="darwin",Wt=Z.platform==="linux",Wt&&!!Z.env.SNAP&&Z.env.SNAP_REVISION,yt=bt,qt=bt;const e=Z.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),r=t.availableLanguages["*"];yt=t.locale,qt=r||bt,Xi=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const rt=Vt,Ki=$t,$r=function(){if(ee.setImmediate)return ee.setImmediate.bind(ee);if(typeof ee.postMessage=="function"&&!ee.importScripts){let r=[];ee.addEventListener("message",i=>{if(i.data&&i.data.vscodeSetImmediateId)for(let s=0,a=r.length;s{const s=++n;r.push({id:s,callback:i}),ee.postMessage({vscodeSetImmediateId:s},"*")}}if(typeof(Z==null?void 0:Z.nextTick)=="function")return Z.nextTick.bind(Z);const t=Promise.resolve();return r=>t.then(r)}();function es(e){let t=[],r=Object.getPrototypeOf(e);for(;Object.prototype!==r;)t=t.concat(Object.getOwnPropertyNames(r)),r=Object.getPrototypeOf(r);return t}function Ht(e){const t=[];for(const r of es(e))typeof e[r]=="function"&&t.push(r);return t}function Wr(e,t){const r=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)};let n={};for(const i of e)n[i]=r(i);return n}const ts="$initialize";class rs{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(t){this._workerId=t}sendMessage(t,r){let n=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[n]={resolve:i,reject:s},this._send({vsWorker:this._workerId,req:n,method:t,args:r})})}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){if(t.seq){let s=t;if(!this._pendingReplies[s.seq]){console.warn("Got reply to unknown seq");return}let a=this._pendingReplies[s.seq];if(delete this._pendingReplies[s.seq],s.err){let o=s.err;s.err.$isError&&(o=new Error,o.name=s.err.name,o.message=s.err.message,o.stack=s.err.stack),a.reject(o);return}a.resolve(s.res);return}let r=t,n=r.req;this._handler.handleMessage(r.method,r.args).then(s=>{this._send({vsWorker:this._workerId,seq:n,res:s,err:void 0})},s=>{s.detail instanceof Error&&(s.detail=jr(s.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:jr(s)})})}_send(t){let r=[];if(t.req){const n=t;for(let i=0;i{t(n,i)},handleMessage:(n,i)=>this._handleMessage(n,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,r){if(t===ts)return this.initialize(r[0],r[1],r[2],r[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,r))}catch(n){return Promise.reject(n)}}initialize(t,r,n,i){this._protocol.setWorkerId(t);const a=Wr(i,(o,u)=>this._protocol.sendMessage(o,u));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(a),Promise.resolve(Ht(this._requestHandler))):(r&&(typeof r.baseUrl!="undefined"&&delete r.baseUrl,typeof r.paths!="undefined"&&typeof r.paths.vs!="undefined"&&delete r.paths.vs,typeof r.trustedTypesPolicy!==void 0&&delete r.trustedTypesPolicy,r.catchError=!0,self.require.config(r)),new Promise((o,u)=>{self.require([n],l=>{if(this._requestHandler=l.create(a),!this._requestHandler){u(new Error("No RequestHandler!"));return}o(Ht(this._requestHandler))},u)}))}}class Le{constructor(t,r,n,i){this.originalStart=t,this.originalLength=r,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function is(e){return e.split(/\r\n|\r|\n/)}function ss(e){for(let t=0,r=e.length;t=0;r--){const n=e.charCodeAt(r);if(n!==32&&n!==9)return r}return-1}function qr(e,t){return(t<<5)-t+e|0}function os(e,t){t=qr(149417,t);for(let r=0,n=e.length;r0||this.m_modifiedCount>0)&&this.m_changes.push(new Le(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++}AddModifiedElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ce{constructor(t,r,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=t,this._modifiedSequence=r;const[i,s,a]=Ce._getElements(t),[o,u,l]=Ce._getElements(r);this._hasStrings=a&&l,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const r=t.getElements();if(Ce._isStringArray(r)){const n=new Int32Array(r.length);for(let i=0,s=r.length;i=t&&i>=n&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||n>i){let f;return n<=i?(He.Assert(t===r+1,"originalStart should only be one more than originalEnd"),f=[new Le(t,0,n,i-n+1)]):t<=r?(He.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new Le(t,r-t+1,n,0)]):(He.Assert(t===r+1,"originalStart should only be one more than originalEnd"),He.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}const a=[0],o=[0],u=this.ComputeRecursionPoint(t,r,n,i,a,o,s),l=a[0],c=o[0];if(u!==null)return u;if(!s[0]){const f=this.ComputeDiffRecursive(t,l,n,c,s);let h=[];return s[0]?h=[new Le(l+1,r-(l+1)+1,c+1,i-(c+1)+1)]:h=this.ComputeDiffRecursive(l+1,r,c+1,i,s),this.ConcatenateChanges(f,h)}return[new Le(t,r-t+1,n,i-n+1)]}WALKTRACE(t,r,n,i,s,a,o,u,l,c,f,h,d,m,v,b,N,p){let g=null,_=null,L=new Br,S=r,A=n,w=d[0]-b[0]-i,y=-1073741824,T=this.m_forwardHistory.length-1;do{const M=w+t;M===S||M=0&&(l=this.m_forwardHistory[T],t=l[0],S=1,A=l.length-1)}while(--T>=-1);if(g=L.getReverseChanges(),p[0]){let M=d[0]+1,k=b[0]+1;if(g!==null&&g.length>0){const F=g[g.length-1];M=Math.max(M,F.getOriginalEnd()),k=Math.max(k,F.getModifiedEnd())}_=[new Le(M,h-M+1,k,v-k+1)]}else{L=new Br,S=a,A=o,w=d[0]-b[0]-u,y=1073741824,T=N?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const M=w+s;M===S||M=c[M+1]?(f=c[M+1]-1,m=f-w-u,f>y&&L.MarkNextChange(),y=f+1,L.AddOriginalElement(f+1,m+1),w=M+1-s):(f=c[M-1],m=f-w-u,f>y&&L.MarkNextChange(),y=f,L.AddModifiedElement(f+1,m+1),w=M-1-s),T>=0&&(c=this.m_reverseHistory[T],s=c[0],S=1,A=c.length-1)}while(--T>=-1);_=L.getChanges()}return this.ConcatenateChanges(g,_)}ComputeRecursionPoint(t,r,n,i,s,a,o){let u=0,l=0,c=0,f=0,h=0,d=0;t--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=r-t+(i-n),v=m+1,b=new Int32Array(v),N=new Int32Array(v),p=i-n,g=r-t,_=t-n,L=r-i,A=(g-p)%2==0;b[p]=t,N[g]=r,o[0]=!1;for(let w=1;w<=m/2+1;w++){let y=0,T=0;c=this.ClipDiagonalBound(p-w,w,p,v),f=this.ClipDiagonalBound(p+w,w,p,v);for(let k=c;k<=f;k+=2){k===c||ky+T&&(y=u,T=l),!A&&Math.abs(k-g)<=w-1&&u>=N[k])return s[0]=u,a[0]=l,F<=N[k]&&1447>0&&w<=1447+1?this.WALKTRACE(p,c,f,_,g,h,d,L,b,N,u,r,s,l,i,a,A,o):null}const M=(y-t+(T-n)-w)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(y,M))return o[0]=!0,s[0]=y,a[0]=T,M>0&&1447>0&&w<=1447+1?this.WALKTRACE(p,c,f,_,g,h,d,L,b,N,u,r,s,l,i,a,A,o):(t++,n++,[new Le(t,r-t+1,n,i-n+1)]);h=this.ClipDiagonalBound(g-w,w,g,v),d=this.ClipDiagonalBound(g+w,w,g,v);for(let k=h;k<=d;k+=2){k===h||k=N[k+1]?u=N[k+1]-1:u=N[k-1],l=u-(k-g)-L;const F=u;for(;u>t&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(N[k]=u,A&&Math.abs(k-p)<=w&&u<=b[k])return s[0]=u,a[0]=l,F>=b[k]&&1447>0&&w<=1447+1?this.WALKTRACE(p,c,f,_,g,h,d,L,b,N,u,r,s,l,i,a,A,o):null}if(w<=1447){let k=new Int32Array(f-c+2);k[0]=p-c+1,Be.Copy2(b,c,k,1,f-c+1),this.m_forwardHistory.push(k),k=new Int32Array(d-h+2),k[0]=g-h+1,Be.Copy2(N,h,k,1,d-h+1),this.m_reverseHistory.push(k)}}return this.WALKTRACE(p,c,f,_,g,h,d,L,b,N,u,r,s,l,i,a,A,o)}PrettifyChanges(t){for(let r=0;r0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;r--){const n=t[r];let i=0,s=0;if(r>0){const f=t[r-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}const a=n.originalLength>0,o=n.modifiedLength>0;let u=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let f=1;;f++){const h=n.originalStart-f,d=n.modifiedStart-f;if(hl&&(l=v,u=f)}n.originalStart-=u,n.modifiedStart-=u;const c=[null];if(r>0&&this.ChangesOverlap(t[r-1],t[r],c)){t[r-1]=c[0],t.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,n=t.length;r0&&d>u&&(u=d,l=f,c=h)}return u>0?[l,c]:null}_contiguousSequenceScore(t,r,n){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,r){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(r>0){const n=t+r;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,r){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(r>0){const n=t+r;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(t,r,n,i){const s=this._OriginalRegionIsBoundary(t,r)?1:0,a=this._ModifiedRegionIsBoundary(n,i)?1:0;return s+a}ConcatenateChanges(t,r){let n=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],n)){const i=new Array(t.length+r.length-1);return Be.Copy(t,0,i,0,t.length-1),i[t.length-1]=n[0],Be.Copy(r,1,i,t.length,r.length-1),i}else{const i=new Array(t.length+r.length);return Be.Copy(t,0,i,0,t.length),Be.Copy(r,0,i,t.length,r.length),i}}ChangesOverlap(t,r,n){if(He.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),He.Assert(t.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=r.originalStart||t.modifiedStart+t.modifiedLength>=r.modifiedStart){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(s=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(o=r.modifiedStart+r.modifiedLength-t.modifiedStart),n[0]=new Le(i,s,a,o),!0}else return n[0]=null,!1}ClipDiagonalBound(t,r,n,i){if(t>=0&&t=fs&&e<=hs||e>=cs&&e<=ds}function St(e,t,r,n){let i="",s=0,a=-1,o=0,u=0;for(let l=0;l<=e.length;++l){if(l2){const c=i.lastIndexOf(r);c===-1?(i="",s=0):(i=i.slice(0,c),s=i.length-1-i.lastIndexOf(r)),a=l,o=0;continue}else if(i.length!==0){i="",s=0,a=l,o=0;continue}}t&&(i+=i.length>0?`${r}..`:"..",s=2)}else i.length>0?i+=`${r}${e.slice(a+1,l)}`:i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else u===xe&&o!==-1?++o:o=-1}return i}function zr(e,t){if(t===null||typeof t!="object")throw new Yr("pathObject","Object",t);const r=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${n}`:`${r}${e}${n}`:n}const ie={resolve(...e){let t="",r="",n=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],J(s,"path"),s.length===0)continue}else t.length===0?s=Bt():(s=ls[`=${t}`]||Bt(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===se)&&(s=`${t}\\`));const a=s.length;let o=0,u="",l=!1;const c=s.charCodeAt(0);if(a===1)R(c)&&(o=1,l=!0);else if(R(c))if(l=!0,R(s.charCodeAt(1))){let f=2,h=f;for(;f2&&R(s.charCodeAt(2))&&(l=!0,o=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(n){if(t.length>0)break}else if(r=`${s.slice(o)}\\${r}`,n=l,l&&t.length>0)break}return r=St(r,!n,"\\",R),n?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){J(e,"path");const t=e.length;if(t===0)return".";let r=0,n,i=!1;const s=e.charCodeAt(0);if(t===1)return Yt(s)?"\\":e;if(R(s))if(i=!0,R(e.charCodeAt(1))){let o=2,u=o;for(;o2&&R(e.charCodeAt(2))&&(i=!0,r=3));let a=r0&&R(e.charCodeAt(t-1))&&(a+="\\"),n===void 0?i?`\\${a}`:a:i?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){J(e,"path");const t=e.length;if(t===0)return!1;const r=e.charCodeAt(0);return R(r)||t>2&&Te(r)&&e.charCodeAt(1)===ke&&R(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let s=0;s0&&(t===void 0?t=r=a:t+=`\\${a}`)}if(t===void 0)return".";let n=!0,i=0;if(typeof r=="string"&&R(r.charCodeAt(0))){++i;const s=r.length;s>1&&R(r.charCodeAt(1))&&(++i,s>2&&(R(r.charCodeAt(2))?++i:n=!1))}if(n){for(;i=2&&(t=`\\${t.slice(i)}`)}return ie.normalize(t)},relative(e,t){if(J(e,"from"),J(t,"to"),e===t)return"";const r=ie.resolve(e),n=ie.resolve(t);if(r===n||(e=r.toLowerCase(),t=n.toLowerCase(),e===t))return"";let i=0;for(;ii&&e.charCodeAt(s-1)===se;)s--;const a=s-i;let o=0;for(;oo&&t.charCodeAt(u-1)===se;)u--;const l=u-o,c=ac){if(t.charCodeAt(o+h)===se)return n.slice(o+h+1);if(h===2)return n.slice(o+h)}a>c&&(e.charCodeAt(i+h)===se?f=h:h===2&&(f=3)),f===-1&&(f=0)}let d="";for(h=i+f+1;h<=s;++h)(h===s||e.charCodeAt(h)===se)&&(d+=d.length===0?"..":"\\..");return o+=f,d.length>0?`${d}${n.slice(o,u)}`:(n.charCodeAt(o)===se&&++o,n.slice(o,u))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const t=ie.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===se){if(t.charCodeAt(1)===se){const r=t.charCodeAt(2);if(r!==gs&&r!==xe)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Te(t.charCodeAt(0))&&t.charCodeAt(1)===ke&&t.charCodeAt(2)===se)return`\\\\?\\${t}`;return e},dirname(e){J(e,"path");const t=e.length;if(t===0)return".";let r=-1,n=0;const i=e.charCodeAt(0);if(t===1)return R(i)?e:".";if(R(i)){if(r=n=1,R(e.charCodeAt(1))){let o=2,u=o;for(;o2&&R(e.charCodeAt(2))?3:2,n=r);let s=-1,a=!0;for(let o=t-1;o>=n;--o)if(R(e.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(r===-1)return".";s=r}return e.slice(0,s)},basename(e,t){t!==void 0&&J(t,"ext"),J(e,"path");let r=0,n=-1,i=!0,s;if(e.length>=2&&Te(e.charCodeAt(0))&&e.charCodeAt(1)===ke&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=r;--s){const u=e.charCodeAt(s);if(R(u)){if(!i){r=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(u===t.charCodeAt(a)?--a==-1&&(n=s):(a=-1,n=o))}return r===n?n=o:n===-1&&(n=e.length),e.slice(r,n)}for(s=e.length-1;s>=r;--s)if(R(e.charCodeAt(s))){if(!i){r=s+1;break}}else n===-1&&(i=!1,n=s+1);return n===-1?"":e.slice(r,n)},extname(e){J(e,"path");let t=0,r=-1,n=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===ke&&Te(e.charCodeAt(0))&&(t=n=2);for(let o=e.length-1;o>=t;--o){const u=e.charCodeAt(o);if(R(u)){if(!s){n=o+1;break}continue}i===-1&&(s=!1,i=o+1),u===xe?r===-1?r=o:a!==1&&(a=1):r!==-1&&(a=-1)}return r===-1||i===-1||a===0||a===1&&r===i-1&&r===n+1?"":e.slice(r,i)},format:zr.bind(null,"\\"),parse(e){J(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const r=e.length;let n=0,i=e.charCodeAt(0);if(r===1)return R(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(R(i)){if(n=1,R(e.charCodeAt(1))){let f=2,h=f;for(;f0&&(t.root=e.slice(0,n));let s=-1,a=n,o=-1,u=!0,l=e.length-1,c=0;for(;l>=n;--l){if(i=e.charCodeAt(l),R(i)){if(!u){a=l+1;break}continue}o===-1&&(u=!1,o=l+1),i===xe?s===-1?s=l:c!==1&&(c=1):s!==-1&&(c=-1)}return o!==-1&&(s===-1||c===0||c===1&&s===o-1&&s===a+1?t.base=t.name=e.slice(a,o):(t.name=e.slice(a,s),t.base=e.slice(a,o),t.ext=e.slice(s,o))),a>0&&a!==n?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ae={resolve(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:Bt();J(i,"path"),i.length!==0&&(t=`${i}/${t}`,r=i.charCodeAt(0)===K)}return t=St(t,!r,"/",Yt),r?`/${t}`:t.length>0?t:"."},normalize(e){if(J(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===K,r=e.charCodeAt(e.length-1)===K;return e=St(e,!t,"/",Yt),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return J(e,"path"),e.length>0&&e.charCodeAt(0)===K},join(...e){if(e.length===0)return".";let t;for(let r=0;r0&&(t===void 0?t=n:t+=`/${n}`)}return t===void 0?".":ae.normalize(t)},relative(e,t){if(J(e,"from"),J(t,"to"),e===t||(e=ae.resolve(e),t=ae.resolve(t),e===t))return"";const r=1,n=e.length,i=n-r,s=1,a=t.length-s,o=io){if(t.charCodeAt(s+l)===K)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>o&&(e.charCodeAt(r+l)===K?u=l:l===0&&(u=0));let c="";for(l=r+u+1;l<=n;++l)(l===n||e.charCodeAt(l)===K)&&(c+=c.length===0?"..":"/..");return`${c}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(J(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===K;let r=-1,n=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===K){if(!n){r=i;break}}else n=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&J(t,"ext"),J(e,"path");let r=0,n=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=0;--s){const u=e.charCodeAt(s);if(u===K){if(!i){r=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(u===t.charCodeAt(a)?--a==-1&&(n=s):(a=-1,n=o))}return r===n?n=o:n===-1&&(n=e.length),e.slice(r,n)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===K){if(!i){r=s+1;break}}else n===-1&&(i=!1,n=s+1);return n===-1?"":e.slice(r,n)},extname(e){J(e,"path");let t=-1,r=0,n=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const o=e.charCodeAt(a);if(o===K){if(!i){r=a+1;break}continue}n===-1&&(i=!1,n=a+1),o===xe?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:zr.bind(null,"/"),parse(e){J(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const r=e.charCodeAt(0)===K;let n;r?(t.root="/",n=1):n=0;let i=-1,s=0,a=-1,o=!0,u=e.length-1,l=0;for(;u>=n;--u){const c=e.charCodeAt(u);if(c===K){if(!o){s=u+1;break}continue}a===-1&&(o=!1,a=u+1),c===xe?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(a!==-1){const c=s===0&&r?1:s;i===-1||l===0||l===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(c,a):(t.name=e.slice(c,i),t.base=e.slice(c,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ae.win32=ie.win32=ie,ae.posix=ie.posix=ae,Ue==="win32"?ie.normalize:ae.normalize,Ue==="win32"?ie.resolve:ae.resolve,Ue==="win32"?ie.relative:ae.relative,Ue==="win32"?ie.dirname:ae.dirname,Ue==="win32"?ie.basename:ae.basename,Ue==="win32"?ie.extname:ae.extname,Ue==="win32"?ie.sep:ae.sep;const ms=/^\w[\w\d+.-]*$/,ps=/^\//,vs=/^\/\//;function Gr(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ms.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ps.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(vs.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function bs(e,t){return!e&&!t?"file":e}function ys(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ge&&(t=ge+t):t=ge;break}return t}const Y="",ge="/",Ss=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Re{constructor(t,r,n,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||Y,this.authority=t.authority||Y,this.path=t.path||Y,this.query=t.query||Y,this.fragment=t.fragment||Y):(this.scheme=bs(t,a),this.authority=r||Y,this.path=ys(this.scheme,n||Y),this.query=i||Y,this.fragment=s||Y,Gr(this,a))}static isUri(t){return t instanceof Re?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}get fsPath(){return zt(this,!1)}with(t){if(!t)return this;let{scheme:r,authority:n,path:i,query:s,fragment:a}=t;return r===void 0?r=this.scheme:r===null&&(r=Y),n===void 0?n=this.authority:n===null&&(n=Y),i===void 0?i=this.path:i===null&&(i=Y),s===void 0?s=this.query:s===null&&(s=Y),a===void 0?a=this.fragment:a===null&&(a=Y),r===this.scheme&&n===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new ze(r,n,i,s,a)}static parse(t,r=!1){const n=Ss.exec(t);return n?new ze(n[2]||Y,_t(n[4]||Y),_t(n[5]||Y),_t(n[7]||Y),_t(n[9]||Y),r):new ze(Y,Y,Y,Y,Y)}static file(t){let r=Y;if(rt&&(t=t.replace(/\\/g,ge)),t[0]===ge&&t[1]===ge){const n=t.indexOf(ge,2);n===-1?(r=t.substring(2),t=ge):(r=t.substring(2,n),t=t.substring(n)||ge)}return new ze("file",r,t,Y,Y)}static from(t){const r=new ze(t.scheme,t.authority,t.path,t.query,t.fragment);return Gr(r,!0),r}static joinPath(t,...r){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return rt&&t.scheme==="file"?n=Re.file(ie.join(zt(t,!0),...r)).path:n=ae.join(t.path,...r),t.with({path:n})}toString(t=!1){return Gt(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Re)return t;{const r=new ze(t);return r._formatted=t.external,r._fsPath=t._sep===Jr?t.fsPath:null,r}}else return t}}const Jr=rt?1:void 0;class ze extends Re{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=zt(this,!1)),this._fsPath}toString(t=!1){return t?Gt(this,!0):(this._formatted||(this._formatted=Gt(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Jr),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const Qr={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function Xr(e,t){let r,n=-1;for(let i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47)n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));const a=Qr[s];a!==void 0?(n!==-1&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=a):n===-1&&(n=i)}}return n!==-1&&(r+=encodeURIComponent(e.substring(n))),r!==void 0?r:e}function _s(e){let t;for(let r=0;r1&&e.scheme==="file"?r=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?r=e.path.substr(1):r=e.path[1].toLowerCase()+e.path.substr(2):r=e.path,rt&&(r=r.replace(/\//g,"\\")),r}function Gt(e,t){const r=t?_s:Xr;let n="",{scheme:i,authority:s,path:a,query:o,fragment:u}=e;if(i&&(n+=i,n+=":"),(s||i==="file")&&(n+=ge,n+=ge),s){let l=s.indexOf("@");if(l!==-1){const c=s.substr(0,l);s=s.substr(l+1),l=c.indexOf(":"),l===-1?n+=r(c,!1):(n+=r(c.substr(0,l),!1),n+=":",n+=r(c.substr(l+1),!1)),n+="@"}s=s.toLowerCase(),l=s.indexOf(":"),l===-1?n+=r(s,!1):(n+=r(s.substr(0,l),!1),n+=s.substr(l))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const l=a.charCodeAt(1);l>=65&&l<=90&&(a=`/${String.fromCharCode(l+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const l=a.charCodeAt(0);l>=65&&l<=90&&(a=`${String.fromCharCode(l+32)}:${a.substr(2)}`)}n+=r(a,!0)}return o&&(n+="?",n+=r(o,!1)),u&&(n+="#",n+=t?u:Xr(u,!1)),n}function Zr(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Zr(e.substr(3)):e}}const Kr=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _t(e){return e.match(Kr)?e.replace(Kr,t=>Zr(t)):e}class le{constructor(t,r){this.lineNumber=t,this.column=r}with(t=this.lineNumber,r=this.column){return t===this.lineNumber&&r===this.column?this:new le(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return le.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return le.isBefore(this,t)}static isBefore(t,r){return t.lineNumbern||t===n&&r>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return G.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return G.containsPosition(this,t)}static containsPosition(t,r){return!(r.lineNumbert.endLineNumber||r.lineNumber===t.startLineNumber&&r.columnt.endColumn)}containsRange(t){return G.containsRange(this,t)}static containsRange(t,r){return!(r.startLineNumbert.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumnt.endColumn)}strictContainsRange(t){return G.strictContainsRange(this,t)}static strictContainsRange(t,r){return!(r.startLineNumbert.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)}plusRange(t){return G.plusRange(this,t)}static plusRange(t,r){let n,i,s,a;return r.startLineNumbert.endLineNumber?(s=r.endLineNumber,a=r.endColumn):r.endLineNumber===t.endLineNumber?(s=r.endLineNumber,a=Math.max(r.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new G(n,i,s,a)}intersectRanges(t){return G.intersectRanges(this,t)}static intersectRanges(t,r){let n=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn,o=r.startLineNumber,u=r.startColumn,l=r.endLineNumber,c=r.endColumn;return nl?(s=l,a=c):s===l&&(a=Math.min(a,c)),n>s||n===s&&i>a?null:new G(n,i,s,a)}equalsRange(t){return G.equalsRange(this,t)}static equalsRange(t,r){return!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn}getEndPosition(){return G.getEndPosition(this)}static getEndPosition(t){return new le(t.endLineNumber,t.endColumn)}getStartPosition(){return G.getStartPosition(this)}static getStartPosition(t){return new le(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new G(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new G(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return G.collapseToStart(this)}static collapseToStart(t){return new G(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}static fromPositions(t,r=t){return new G(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new G(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,r){return!(t.endLineNumbert.startLineNumber}}const As=3;function en(e,t,r,n){return new Ce(e,t,r).ComputeDiff(n)}class tn{constructor(t){const r=[],n=[];for(let i=0,s=t.length;i0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&s()){const d=n.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),m=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);let v=en(d,m,s,!0).changes;o&&(v=Ns(v)),h=[];for(let b=0,N=v.length;b1&&v>1;){const b=h.charCodeAt(m-2),N=d.charCodeAt(v-2);if(b!==N)break;m--,v--}(m>1||v>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,m,a+1,1,v)}{let m=Qt(h,1),v=Qt(d,1);const b=h.length+1,N=d.length+1;for(;m!0;const t=Date.now();return()=>Date.now()-t255?255:e|0}function Ge(e){return e<0?0:e>4294967295?4294967295:e|0}class Cs{constructor(t,r){this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=r}}class xs{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,r){t=Ge(t);const n=this.values,i=this.prefixSum,s=r.length;return s===0?!1:(this.values=new Uint32Array(n.length+s),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+s),this.values.set(r,t),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(t,r){return t=Ge(t),r=Ge(r),this.values[t]===r?!1:(this.values[t]=r,t-1=n.length)return!1;let s=n.length-t;return r>=s&&(r=s),r===0?!1:(this.values=new Uint32Array(n.length-r),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t+r),t),this.prefixSum=new Uint32Array(this.values.length),t-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Ge(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),t>=this.values.length&&(t=this.values.length-1);for(let n=r;n<=t;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let r=0,n=this.values.length-1,i=0,s=0,a=0;for(;r<=n;)if(i=r+(n-r)/2|0,s=this.prefixSum[i],a=s-this.values[i],t=s)r=i+1;else break;return new Cs(i,t-a)}}class ks{constructor(t,r,n,i){this._uri=t,this._lines=r,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const r=t.changes;for(const n of r)this._acceptDeleteRange(n.range),this._acceptInsertText(new le(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,r=this._lines.length,n=new Uint32Array(r);for(let i=0;i/?";function Ps(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const r of Ts)e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}const Ms=Ps();function Es(e){let t=Ms;if(e&&e instanceof RegExp)if(e.global)t=e;else{let r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}const Is={maxLen:1e3,windowSize:15,timeBudget:150};function sn(e,t,r,n,i=Is){if(r.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:n+=l,r=r.substring(l,e+i.maxLen/2),sn(e,t,r,n,i)}const s=Date.now(),a=e-1-n;let o=-1,u=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){const c=a-i.windowSize*l;t.lastIndex=Math.max(0,c);const f=Fs(t,r,a,o);if(!f&&u||(u=f,c<=0))break;o=c}if(u){let l={word:u[0],startColumn:n+1+u.index,endColumn:n+1+u.index+u[0].length};return t.lastIndex=0,l}return null}function Fs(e,t,r,n){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=r&&e.lastIndex>=r)return i;if(n>0&&s>n)return null}return null}class Xt{constructor(t){let r=nn(t);this._defaultValue=r,this._asciiMap=Xt._createAsciiMap(r),this._map=new Map}static _createAsciiMap(t){let r=new Uint8Array(256);for(let n=0;n<256;n++)r[n]=t;return r}set(t,r){let n=nn(r);t>=0&&t<256?this._asciiMap[t]=n:this._map.set(t,n)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}}class Ds{constructor(t,r,n){const i=new Uint8Array(t*r);for(let s=0,a=t*r;sr&&(r=u),o>n&&(n=o),l>n&&(n=l)}r++,n++;let i=new Ds(n,r,0);for(let s=0,a=t.length;s=this._maxCharCode?0:this._states.get(t,r)}}let Zt=null;function Us(){return Zt===null&&(Zt=new js([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Zt}let st=null;function Rs(){if(st===null){st=new Xt(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let r=0;ri);if(i>0){const o=r.charCodeAt(i-1),u=r.charCodeAt(a);(o===40&&u===41||o===91&&u===93||o===123&&u===125)&&a--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:a+2},url:r.substring(i,a+1)}}static computeLinks(t,r=Us()){const n=Rs();let i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const o=t.getLineContent(s),u=o.length;let l=0,c=0,f=0,h=1,d=!1,m=!1,v=!1,b=!1;for(;l=0?(i+=n?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}}Kt.INSTANCE=new Kt;class H{constructor(t){this.element=t,this.next=H.Undefined,this.prev=H.Undefined}}H.Undefined=new H(void 0);class an{constructor(){this._first=H.Undefined,this._last=H.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===H.Undefined}clear(){let t=this._first;for(;t!==H.Undefined;){const r=t.next;t.prev=H.Undefined,t.next=H.Undefined,t=r}this._first=H.Undefined,this._last=H.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){const n=new H(t);if(this._first===H.Undefined)this._first=n,this._last=n;else if(r){const s=this._last;this._last=n,n.prev=s,s.next=n}else{const s=this._first;this._first=n,n.next=s,s.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==H.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==H.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==H.Undefined&&t.next!==H.Undefined){const r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===H.Undefined&&t.next===H.Undefined?(this._first=H.Undefined,this._last=H.Undefined):t.next===H.Undefined?(this._last=this._last.prev,this._last.next=H.Undefined):t.prev===H.Undefined&&(this._first=this._first.next,this._first.prev=H.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==H.Undefined;)yield t.element,t=t.next}}const Vs=ee.performance&&typeof ee.performance.now=="function";class wt{constructor(t){this._highResolution=Vs&&t,this._startTime=this._now(),this._stopTime=-1}static create(t=!0){return new wt(t)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?ee.performance.now():Date.now()}}var er;(function(e){e.None=()=>Vr.None;function t(p){return(g,_=null,L)=>{let S=!1,A;return A=p(w=>{if(!S)return A?A.dispose():S=!0,g.call(_,w)},null,L),S&&A.dispose(),A}}e.once=t;function r(p,g){return u((_,L=null,S)=>p(A=>_.call(L,g(A)),null,S))}e.map=r;function n(p,g){return u((_,L=null,S)=>p(A=>{g(A),_.call(L,A)},null,S))}e.forEach=n;function i(p,g){return u((_,L=null,S)=>p(A=>g(A)&&_.call(L,A),null,S))}e.filter=i;function s(p){return p}e.signal=s;function a(...p){return(g,_=null,L)=>Qi(...p.map(S=>S(A=>g.call(_,A),null,L)))}e.any=a;function o(p,g,_){let L=_;return r(p,S=>(L=g(L,S),L))}e.reduce=o;function u(p){let g;const _=new Oe({onFirstListenerAdd(){g=p(_.fire,_)},onLastListenerRemove(){g.dispose()}});return _.event}function l(p,g,_=100,L=!1,S){let A,w,y,T=0;const M=new Oe({leakWarningThreshold:S,onFirstListenerAdd(){A=p(k=>{T++,w=g(w,k),L&&!y&&(M.fire(w),w=void 0),clearTimeout(y),y=setTimeout(()=>{const F=w;w=void 0,y=void 0,(!L||T>1)&&M.fire(F),T=0},_)})},onLastListenerRemove(){A.dispose()}});return M.event}e.debounce=l;function c(p,g=(_,L)=>_===L){let _=!0,L;return i(p,S=>{const A=_||!g(S,L);return _=!1,L=S,A})}e.latch=c;function f(p,g){return[e.filter(p,g),e.filter(p,_=>!g(_))]}e.split=f;function h(p,g=!1,_=[]){let L=_.slice(),S=p(y=>{L?L.push(y):w.fire(y)});const A=()=>{L&&L.forEach(y=>w.fire(y)),L=null},w=new Oe({onFirstListenerAdd(){S||(S=p(y=>w.fire(y)))},onFirstListenerDidAdd(){L&&(g?setTimeout(A):A())},onLastListenerRemove(){S&&S.dispose(),S=null}});return w.event}e.buffer=h;class d{constructor(g){this.event=g}map(g){return new d(r(this.event,g))}forEach(g){return new d(n(this.event,g))}filter(g){return new d(i(this.event,g))}reduce(g,_){return new d(o(this.event,g,_))}latch(){return new d(c(this.event))}debounce(g,_=100,L=!1,S){return new d(l(this.event,g,_,L,S))}on(g,_,L){return this.event(g,_,L)}once(g,_,L){return t(this.event)(g,_,L)}}function m(p){return new d(p)}e.chain=m;function v(p,g,_=L=>L){const L=(...y)=>w.fire(_(...y)),S=()=>p.on(g,L),A=()=>p.removeListener(g,L),w=new Oe({onFirstListenerAdd:S,onLastListenerRemove:A});return w.event}e.fromNodeEventEmitter=v;function b(p,g,_=L=>L){const L=(...y)=>w.fire(_(...y)),S=()=>p.addEventListener(g,L),A=()=>p.removeEventListener(g,L),w=new Oe({onFirstListenerAdd:S,onLastListenerRemove:A});return w.event}e.fromDOMEventEmitter=b;function N(p){return new Promise(g=>t(p)(g))}e.toPromise=N})(er||(er={}));class Nt{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${Nt._idPool++}`}start(t){this._stopWatch=new wt(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Nt._idPool=0;class Oe{constructor(t){var r;this._disposed=!1,this._options=t,this._leakageMon=void 0,this._perfMon=((r=this._options)===null||r===void 0?void 0:r._profName)?new Nt(this._options._profName):void 0}get event(){return this._event||(this._event=(t,r,n)=>{var i;this._listeners||(this._listeners=new an);const s=this._listeners.isEmpty();s&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(r?[t,r]:t);s&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,r);const o=(i=this._leakageMon)===null||i===void 0?void 0:i.check(this._listeners.size),u=Or(()=>{o&&o(),this._disposed||(a(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof tt?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(t){var r,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new an);for(let i of this._listeners)this._deliveryQueue.push([i,t]);for((r=this._perfMon)===null||r===void 0||r.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,s]=this._deliveryQueue.shift();try{typeof i=="function"?i.call(void 0,s):i[0].call(i[1],s)}catch(a){Hi(a)}}(n=this._perfMon)===null||n===void 0||n.stop()}}dispose(){var t,r,n,i,s;this._disposed||(this._disposed=!0,(t=this._listeners)===null||t===void 0||t.clear(),(r=this._deliveryQueue)===null||r===void 0||r.clear(),(i=(n=this._options)===null||n===void 0?void 0:n.onLastListenerRemove)===null||i===void 0||i.call(n),(s=this._leakageMon)===null||s===void 0||s.dispose())}}const on=Object.freeze(function(e,t){const r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}});var Lt;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Ct?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:er.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:on})})(Lt||(Lt={}));class Ct{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?on:(this._emitter||(this._emitter=new Oe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class $s{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ct),this._token}cancel(){this._token?this._token instanceof Ct&&this._token.cancel():this._token=Lt.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Ct&&this._token.dispose():this._token=Lt.None}}class tr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const rr=new tr,nr=new tr,ir=new tr;(function(){function e(t,r,n=r,i=n){rr.define(t,r),nr.define(t,n),ir.define(t,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})();var un;(function(e){function t(a){return rr.keyCodeToStr(a)}e.toString=t;function r(a){return rr.strToKeyCode(a)}e.fromString=r;function n(a){return nr.keyCodeToStr(a)}e.toUserSettingsUS=n;function i(a){return ir.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function s(a){return nr.strToKeyCode(a)||ir.strToKeyCode(a)}e.fromUserSettings=s})(un||(un={}));function Ws(e,t){const r=(t&65535)<<16>>>0;return(e|r)>>>0}class me extends G{constructor(t,r,n,i){super(t,r,n,i);this.selectionStartLineNumber=t,this.selectionStartColumn=r,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return me.selectionsEqual(this,t)}static selectionsEqual(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,r){return this.getDirection()===0?new me(this.startLineNumber,this.startColumn,t,r):new me(t,r,this.startLineNumber,this.startColumn)}getPosition(){return new le(this.positionLineNumber,this.positionColumn)}setStartPosition(t,r){return this.getDirection()===0?new me(t,r,this.endLineNumber,this.endColumn):new me(this.endLineNumber,this.endColumn,t,r)}static fromPositions(t,r=t){return new me(t.lineNumber,t.column,r.lineNumber,r.column)}static liftSelection(t){return new me(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(let n=0,i=t.length;nthis._lines.length)r=this._lines.length,n=this._lines[r-1].length+1,i=!0;else{let s=this._lines[r-1].length+1;n<1?(n=1,i=!0):n>s&&(n=s,i=!0)}return i?{lineNumber:r,column:n}:t}}class Qe{constructor(t,r){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(r=>t.push(this._models[r])),t}acceptNewModel(t){this._models[t.url]=new Bs(Re.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,r){if(!this._models[t])return;this._models[t].onEvents(r)}acceptRemovedModel(t){!this._models[t]||delete this._models[t]}computeDiff(t,r,n,i){return Je(this,void 0,void 0,function*(){const s=this._getModel(t),a=this._getModel(r);if(!s||!a)return null;const o=s.getLinesContent(),u=a.getLinesContent(),c=new Ls(o,u,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),f=c.changes.length>0?!1:this._modelsAreIdentical(s,a);return{quitEarly:c.quitEarly,identical:f,changes:c.changes}})}_modelsAreIdentical(t,r){const n=t.getLineCount(),i=r.getLineCount();if(n!==i)return!1;for(let s=1;s<=n;s++){const a=t.getLineContent(s),o=r.getLineContent(s);if(a!==o)return!1}return!0}computeMoreMinimalEdits(t,r){return Je(this,void 0,void 0,function*(){const n=this._getModel(t);if(!n)return r;const i=[];let s;r=r.slice(0).sort((a,o)=>{if(a.range&&o.range)return G.compareRangesUsingStarts(a.range,o.range);let u=a.range?0:1,l=o.range?0:1;return u-l});for(let{range:a,text:o,eol:u}of r){if(typeof u=="number"&&(s=u),G.isEmpty(a)&&!o)continue;const l=n.getValueInRange(a);if(o=o.replace(/\r\n|\n|\r/g,n.eol),l===o)continue;if(Math.max(o.length,l.length)>Qe._diffLimit){i.push({range:a,text:o});continue}const c=us(l,o,!1),f=n.offsetAt(G.lift(a).getStartPosition());for(const h of c){const d=n.positionAt(f+h.originalStart),m=n.positionAt(f+h.originalStart+h.originalLength),v={text:o.substr(h.modifiedStart,h.modifiedLength),range:{startLineNumber:d.lineNumber,startColumn:d.column,endLineNumber:m.lineNumber,endColumn:m.column}};n.getValueInRange(v.range)!==v.text&&i.push(v)}}return typeof s=="number"&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i})}computeLinks(t){return Je(this,void 0,void 0,function*(){let r=this._getModel(t);return r?Os(r):null})}textualSuggest(t,r,n,i){return Je(this,void 0,void 0,function*(){const s=new wt(!0),a=new RegExp(n,i),o=new Set;e:for(let u of t){const l=this._getModel(u);if(!!l){for(let c of l.words(a))if(!(c===r||!isNaN(Number(c)))&&(o.add(c),o.size>Qe._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(t,r,n,i){return Je(this,void 0,void 0,function*(){let s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(n,i),o=Object.create(null);for(let u=r.startLineNumber;uthis._host.fhr(o,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,r),Promise.resolve(Ht(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,r){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,r))}catch(n){return Promise.reject(n)}}}Qe._diffLimit=1e5,Qe._suggestionsLimit=1e4,typeof importScripts=="function"&&(ee.monaco=Hs());let lr=!1;function Vn(e){if(lr)return;lr=!0;const t=new ns(r=>{self.postMessage(r)},r=>new Qe(r,e));self.onmessage=r=>{t.onmessage(r.data)}}self.onmessage=e=>{lr||Vn(null)};function fr(e,t){t===void 0&&(t=!1);var r=e.length,n=0,i="",s=0,a=16,o=0,u=0,l=0,c=0,f=0;function h(g,_){for(var L=0,S=0;L=48&&A<=57)S=S*16+A-48;else if(A>=65&&A<=70)S=S*16+A-65+10;else if(A>=97&&A<=102)S=S*16+A-97+10;else break;n++,L++}return L=r){g+=e.substring(_,n),f=2;break}var L=e.charCodeAt(n);if(L===34){g+=e.substring(_,n),n++;break}if(L===92){if(g+=e.substring(_,n),n++,n>=r){f=2;break}var S=e.charCodeAt(n++);switch(S){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=` +`;break;case 114:g+="\r";break;case 116:g+=" ";break;case 117:var A=h(4,!0);A>=0?g+=String.fromCharCode(A):f=4;break;default:f=5}_=n;continue}if(L>=0&&L<=31)if(ot(L)){g+=e.substring(_,n),f=2;break}else f=6;n++}return g}function b(){if(i="",f=0,s=n,u=o,c=l,n>=r)return s=r,a=17;var g=e.charCodeAt(n);if(cr(g)){do n++,i+=String.fromCharCode(g),g=e.charCodeAt(n);while(cr(g));return a=15}if(ot(g))return n++,i+=String.fromCharCode(g),g===13&&e.charCodeAt(n)===10&&(n++,i+=` +`),o++,l=n,a=14;switch(g){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=v(),a=10;case 47:var _=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&g<=15);return g}return{setPosition:d,getPosition:function(){return n},scan:t?p:b,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return s},getTokenLength:function(){return n-s},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return s-c},getTokenError:function(){return f}}}function cr(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function ot(e){return e===10||e===13||e===8232||e===8233}function Xe(e){return e>=48&&e<=57}function Ys(e,t,r){var n,i,s,a,o;if(t){for(a=t.offset,o=a+t.length,s=a;s>0&&!$n(e,s-1);)s--;for(var u=o;ua)&&e.substring(F,V)!==k&&N.push({offset:F,length:V-F,content:k})}var g=b();if(g!==17){var _=d.getTokenOffset()+s,L=hr(h,n);p(L,s,_)}for(;g!==17;){for(var S=d.getTokenOffset()+d.getTokenLength()+s,A=b(),w="",y=!1;!c&&(A===12||A===13);){var T=d.getTokenOffset()+s;p(" ",S,T),S=d.getTokenOffset()+d.getTokenLength()+s,y=A===12,w=y?v():"",A=b()}if(A===2)g!==1&&(f--,w=v());else if(A===4)g!==3&&(f--,w=v());else{switch(g){case 3:case 1:f++,w=v();break;case 5:case 12:w=v();break;case 13:c?w=v():y||(w=" ");break;case 6:y||(w=" ");break;case 10:if(A===6){y||(w="");break}case 7:case 8:case 9:case 11:case 2:case 4:A===12||A===13?y||(w=" "):A!==5&&A!==17&&(m=!0);break;case 16:m=!0;break}c&&(A===12||A===13)&&(w=v())}A===17&&(w=r.insertFinalNewline?l:"");var M=d.getTokenOffset()+s;p(w,S,M),g=A}return N}function hr(e,t){for(var r="",n=0;n=e.offset&&t0)for(var k=n.getToken();k!==17;){if(T.indexOf(k)!==-1){N();break}else if(M.indexOf(k)!==-1)break;k=N()}}function g(y){var T=n.getTokenValue();return y?f(T):o(T),N(),!0}function _(){switch(n.getToken()){case 11:var y=n.getTokenValue(),T=Number(y);isNaN(T)&&(p(2),T=0),f(T);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return N(),!0}function L(){return n.getToken()!==10?(p(3,[],[2,5]),!1):(g(!1),n.getToken()===6?(h(":"),N(),w()||p(4,[],[2,5])):p(5,[],[2,5]),!0)}function S(){a(),N();for(var y=!1;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(y||p(4,[],[]),h(","),N(),n.getToken()===2&&b)break}else y&&p(6,[],[]);L()||p(4,[],[2,5]),y=!0}return u(),n.getToken()!==2?p(7,[2],[]):N(),!0}function A(){l(),N();for(var y=!1;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(y||p(4,[],[]),h(","),N(),n.getToken()===4&&b)break}else y&&p(6,[],[]);w()||p(4,[],[4,5]),y=!0}return c(),n.getToken()!==4?p(8,[4],[]):N(),!0}function w(){switch(n.getToken()){case 3:return A();case 1:return S();case 10:return g(!0);default:return _()}}return N(),n.getToken()===17?r.allowEmptyContent?!0:(p(4,[],[]),!1):w()?(n.getToken()!==17&&p(9,[],[]),!0):(p(4,[],[]),!1)}var Ze=fr,Zs=Js,Ks=qn,ea=Wn,ta=dr;function ra(e,t,r){return Ys(e,t,r)}function ut(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;var r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r0?e.lastIndexOf(t)===r:r===0?e===t:!1}function kt(e){return Hn(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}var Bn;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Bn||(Bn={}));var Tt;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(Tt||(Tt={}));var pe;(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=Tt.MAX_VALUE),i===Number.MAX_VALUE&&(i=Tt.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){var i=n;return C.objectLiteral(i)&&C.uinteger(i.line)&&C.uinteger(i.character)}e.is=r})(pe||(pe={}));var q;(function(e){function t(n,i,s,a){if(C.uinteger(n)&&C.uinteger(i)&&C.uinteger(s)&&C.uinteger(a))return{start:pe.create(n,i),end:pe.create(s,a)};if(pe.is(n)&&pe.is(i))return{start:n,end:i};throw new Error("Range#create called with invalid arguments["+n+", "+i+", "+s+", "+a+"]")}e.create=t;function r(n){var i=n;return C.objectLiteral(i)&&pe.is(i.start)&&pe.is(i.end)}e.is=r})(q||(q={}));var ft;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){var i=n;return C.defined(i)&&q.is(i.range)&&(C.string(i.uri)||C.undefined(i.uri))}e.is=r})(ft||(ft={}));var Yn;(function(e){function t(n,i,s,a){return{targetUri:n,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function r(n){var i=n;return C.defined(i)&&q.is(i.targetRange)&&C.string(i.targetUri)&&(q.is(i.targetSelectionRange)||C.undefined(i.targetSelectionRange))&&(q.is(i.originSelectionRange)||C.undefined(i.originSelectionRange))}e.is=r})(Yn||(Yn={}));var gr;(function(e){function t(n,i,s,a){return{red:n,green:i,blue:s,alpha:a}}e.create=t;function r(n){var i=n;return C.numberRange(i.red,0,1)&&C.numberRange(i.green,0,1)&&C.numberRange(i.blue,0,1)&&C.numberRange(i.alpha,0,1)}e.is=r})(gr||(gr={}));var zn;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){var i=n;return q.is(i.range)&&gr.is(i.color)}e.is=r})(zn||(zn={}));var Gn;(function(e){function t(n,i,s){return{label:n,textEdit:i,additionalTextEdits:s}}e.create=t;function r(n){var i=n;return C.string(i.label)&&(C.undefined(i.textEdit)||ve.is(i))&&(C.undefined(i.additionalTextEdits)||C.typedArray(i.additionalTextEdits,ve.is))}e.is=r})(Gn||(Gn={}));var ct;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(ct||(ct={}));var Jn;(function(e){function t(n,i,s,a,o){var u={startLine:n,endLine:i};return C.defined(s)&&(u.startCharacter=s),C.defined(a)&&(u.endCharacter=a),C.defined(o)&&(u.kind=o),u}e.create=t;function r(n){var i=n;return C.uinteger(i.startLine)&&C.uinteger(i.startLine)&&(C.undefined(i.startCharacter)||C.uinteger(i.startCharacter))&&(C.undefined(i.endCharacter)||C.uinteger(i.endCharacter))&&(C.undefined(i.kind)||C.string(i.kind))}e.is=r})(Jn||(Jn={}));var mr;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){var i=n;return C.defined(i)&&ft.is(i.location)&&C.string(i.message)}e.is=r})(mr||(mr={}));var ce;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ce||(ce={}));var Qn;(function(e){e.Unnecessary=1,e.Deprecated=2})(Qn||(Qn={}));var Xn;(function(e){function t(r){var n=r;return n!=null&&C.string(n.href)}e.is=t})(Xn||(Xn={}));var we;(function(e){function t(n,i,s,a,o,u){var l={range:n,message:i};return C.defined(s)&&(l.severity=s),C.defined(a)&&(l.code=a),C.defined(o)&&(l.source=o),C.defined(u)&&(l.relatedInformation=u),l}e.create=t;function r(n){var i,s=n;return C.defined(s)&&q.is(s.range)&&C.string(s.message)&&(C.number(s.severity)||C.undefined(s.severity))&&(C.integer(s.code)||C.string(s.code)||C.undefined(s.code))&&(C.undefined(s.codeDescription)||C.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(C.string(s.source)||C.undefined(s.source))&&(C.undefined(s.relatedInformation)||C.typedArray(s.relatedInformation,mr.is))}e.is=r})(we||(we={}));var ht;(function(e){function t(n,i){for(var s=[],a=2;a0&&(o.arguments=s),o}e.create=t;function r(n){var i=n;return C.defined(i)&&C.string(i.title)&&C.string(i.command)}e.is=r})(ht||(ht={}));var ve;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function r(s,a){return{range:{start:s,end:s},newText:a}}e.insert=r;function n(s){return{range:s,newText:""}}e.del=n;function i(s){var a=s;return C.objectLiteral(a)&&C.string(a.newText)&&q.is(a.range)}e.is=i})(ve||(ve={}));var Ke;(function(e){function t(n,i,s){var a={label:n};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function r(n){var i=n;return i!==void 0&&C.objectLiteral(i)&&C.string(i.label)&&(C.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(C.string(i.description)||i.description===void 0)}e.is=r})(Ke||(Ke={}));var ne;(function(e){function t(r){var n=r;return typeof n=="string"}e.is=t})(ne||(ne={}));var Pe;(function(e){function t(s,a,o){return{range:s,newText:a,annotationId:o}}e.replace=t;function r(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}e.insert=r;function n(s,a){return{range:s,newText:"",annotationId:a}}e.del=n;function i(s){var a=s;return ve.is(a)&&(Ke.is(a.annotationId)||ne.is(a.annotationId))}e.is=i})(Pe||(Pe={}));var Pt;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){var i=n;return C.defined(i)&&Et.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(Pt||(Pt={}));var dt;(function(e){function t(n,i,s){var a={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){var i=n;return i&&i.kind==="create"&&C.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||C.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||C.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ne.is(i.annotationId))}e.is=r})(dt||(dt={}));var gt;(function(e){function t(n,i,s,a){var o={kind:"rename",oldUri:n,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}e.create=t;function r(n){var i=n;return i&&i.kind==="rename"&&C.string(i.oldUri)&&C.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||C.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||C.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ne.is(i.annotationId))}e.is=r})(gt||(gt={}));var mt;(function(e){function t(n,i,s){var a={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){var i=n;return i&&i.kind==="delete"&&C.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||C.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||C.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ne.is(i.annotationId))}e.is=r})(mt||(mt={}));var pr;(function(e){function t(r){var n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(i){return C.string(i.kind)?dt.is(i)||gt.is(i)||mt.is(i):Pt.is(i)}))}e.is=t})(pr||(pr={}));var Mt=function(){function e(t,r){this.edits=t,this.changeAnnotations=r}return e.prototype.insert=function(t,r,n){var i,s;if(n===void 0?i=ve.insert(t,r):ne.is(n)?(s=n,i=Pe.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),i=Pe.insert(t,r,s)),this.edits.push(i),s!==void 0)return s},e.prototype.replace=function(t,r,n){var i,s;if(n===void 0?i=ve.replace(t,r):ne.is(n)?(s=n,i=Pe.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),i=Pe.replace(t,r,s)),this.edits.push(i),s!==void 0)return s},e.prototype.delete=function(t,r){var n,i;if(r===void 0?n=ve.del(t):ne.is(r)?(i=r,n=Pe.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=Pe.del(t,i)),this.edits.push(n),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Zn=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,r){var n;if(ne.is(t)?n=t:(n=this.nextId(),r=t),this._annotations[n]!==void 0)throw new Error("Id "+n+" is already in use.");if(r===void 0)throw new Error("No annotation provided for id "+n);return this._annotations[n]=r,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var r=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new Zn(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(n){if(Pt.is(n)){var i=new Mt(n.edits,r._changeAnnotations);r._textEditChanges[n.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(n){var i=new Mt(t.changes[n]);r._textEditChanges[n]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(Et.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r={uri:t.uri,version:t.version},n=this._textEditChanges[r.uri];if(!n){var i=[],s={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(s),n=new Mt(i,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[t];if(!n){var i=[];this._workspaceEdit.changes[t]=i,n=new Mt(i),this._textEditChanges[t]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Zn,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Ke.is(r)||ne.is(r)?i=r:n=r;var s,a;if(i===void 0?s=dt.create(t,n):(a=ne.is(i)?i:this._changeAnnotations.manage(i),s=dt.create(t,n,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e.prototype.renameFile=function(t,r,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Ke.is(n)||ne.is(n)?s=n:i=n;var a,o;if(s===void 0?a=gt.create(t,r,i):(o=ne.is(s)?s:this._changeAnnotations.manage(s),a=gt.create(t,r,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.deleteFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Ke.is(r)||ne.is(r)?i=r:n=r;var s,a;if(i===void 0?s=mt.create(t,n):(a=ne.is(i)?i:this._changeAnnotations.manage(i),s=mt.create(t,n,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e})();var Kn;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){var i=n;return C.defined(i)&&C.string(i.uri)}e.is=r})(Kn||(Kn={}));var ei;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return C.defined(i)&&C.string(i.uri)&&C.integer(i.version)}e.is=r})(ei||(ei={}));var Et;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return C.defined(i)&&C.string(i.uri)&&(i.version===null||C.integer(i.version))}e.is=r})(Et||(Et={}));var ti;(function(e){function t(n,i,s,a){return{uri:n,languageId:i,version:s,text:a}}e.create=t;function r(n){var i=n;return C.defined(i)&&C.string(i.uri)&&C.string(i.languageId)&&C.integer(i.version)&&C.string(i.text)}e.is=r})(ti||(ti={}));var Ne;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(Ne||(Ne={})),function(e){function t(r){var n=r;return n===e.PlainText||n===e.Markdown}e.is=t}(Ne||(Ne={}));var vr;(function(e){function t(r){var n=r;return C.objectLiteral(r)&&Ne.is(n.kind)&&C.string(n.value)}e.is=t})(vr||(vr={}));var he;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(he||(he={}));var X;(function(e){e.PlainText=1,e.Snippet=2})(X||(X={}));var ri;(function(e){e.Deprecated=1})(ri||(ri={}));var ni;(function(e){function t(n,i,s){return{newText:n,insert:i,replace:s}}e.create=t;function r(n){var i=n;return i&&C.string(i.newText)&&q.is(i.insert)&&q.is(i.replace)}e.is=r})(ni||(ni={}));var ii;(function(e){e.asIs=1,e.adjustIndentation=2})(ii||(ii={}));var br;(function(e){function t(r){return{label:r}}e.create=t})(br||(br={}));var si;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(si||(si={}));var It;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){var i=n;return C.string(i)||C.objectLiteral(i)&&C.string(i.language)&&C.string(i.value)}e.is=r})(It||(It={}));var ai;(function(e){function t(r){var n=r;return!!n&&C.objectLiteral(n)&&(vr.is(n.contents)||It.is(n.contents)||C.typedArray(n.contents,It.is))&&(r.range===void 0||q.is(r.range))}e.is=t})(ai||(ai={}));var oi;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(oi||(oi={}));var ui;(function(e){function t(r,n){for(var i=[],s=2;s=0;c--){var f=u[c],h=s.offsetAt(f.range.start),d=s.offsetAt(f.range.end);if(d<=l)o=o.substring(0,h)+f.newText+o.substring(d,o.length);else throw new Error("Overlapping edit");l=h}return o}e.applyEdits=n;function i(s,a){if(s.length<=1)return s;var o=s.length/2|0,u=s.slice(0,o),l=s.slice(o);i(u,a),i(l,a);for(var c=0,f=0,h=0;c0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return pe.create(0,t);for(;nt?i=s:n=s+1}var a=n-1;return pe.create(a,t-r[a])},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1t?i=s:n=s+1}var a=n-1;return{line:a,character:t-r[a]}},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1u&&l.push(a.substring(u,d)),h.newText.length&&l.push(h.newText),u=i.offsetAt(h.range.end)}return l.push(a.substr(u)),l.join("")}e.applyEdits=n})(yr||(yr={}));function Sr(e,t){if(e.length<=1)return e;var r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);Sr(n,t),Sr(i,t);for(var s=0,a=0,o=0;sr.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function sa(e){var t=wi(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var W;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(W||(W={}));var Ni;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Ne.Markdown,Ne.PlainText],commitCharactersSupport:!0}}}}})(Ni||(Ni={}));function aa(e,t){var r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,function(n,i){var s=i[0];return typeof t[s]!="undefined"?t[s]:n}),r}function oa(e,t){for(var r=[],n=2;n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},$e=function(){function e(t,r,n){n===void 0&&(n=0),this.offset=r,this.length=n,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),la=function(e){Ve(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="null",i.value=null,i}return t}($e),Li=function(e){Ve(t,e);function t(r,n,i){var s=e.call(this,r,i)||this;return s.type="boolean",s.value=n,s}return t}($e),fa=function(e){Ve(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}($e),ca=function(e){Ve(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}($e),_r=function(e){Ve(t,e);function t(r,n,i){var s=e.call(this,r,n,i)||this;return s.type="string",s.value="",s}return t}($e),ha=function(e){Ve(t,e);function t(r,n,i){var s=e.call(this,r,n)||this;return s.type="property",s.colonOffset=-1,s.keyNode=i,s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}($e),da=function(e){Ve(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}($e);function oe(e){return Se(e)?e?{}:{not:{}}:e}var Ci;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Ci||(Ci={}));var ga=function(){function e(t,r){t===void 0&&(t=-1),this.focusOffset=t,this.exclude=r,this.schemas=[]}return e.prototype.add=function(t){this.schemas.push(t)},e.prototype.merge=function(t){Array.prototype.push.apply(this.schemas,t.schemas)},e.prototype.include=function(t){return(this.focusOffset===-1||xi(t,this.focusOffset))&&t!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Ar=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),ue=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(t){for(var r=0,n=t;r=e.offset&&t0?P={schema:$,validationResult:j,matchingSchemas:O}:B===0&&(P.matchingSchemas.merge(O),P.validationResult.mergeEnumValues(j))}}return z.length>1&&V&&r.problems.push({location:{offset:i.offset,length:1},message:D("oneOfWarning","Matches multiple schemas when only one must validate.")}),P&&(r.merge(P.validationResult),r.propertiesMatches+=P.validationResult.propertiesMatches,r.propertiesValueMatches+=P.validationResult.propertiesValueMatches,n.merge(P.matchingSchemas)),z.length};Array.isArray(t.anyOf)&&_(t.anyOf,!1),Array.isArray(t.oneOf)&&_(t.oneOf,!0);var L=function(F){var V=new ue,z=n.newSub();te(i,oe(F),V,z),r.merge(V),r.propertiesMatches+=V.propertiesMatches,r.propertiesValueMatches+=V.propertiesValueMatches,n.merge(z)},S=function(F,V,z){var P=oe(F),x=new ue,E=n.newSub();te(i,P,x,E),n.merge(E),x.hasProblems()?z&&L(z):V&&L(V)},A=oe(t.if);if(A&&S(A,oe(t.then),oe(t.else)),Array.isArray(t.enum)){for(var w=Me(i),y=!1,T=0,M=t.enum;T=A&&h.problems.push({location:{offset:c.offset,length:c.length},message:D("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",A)});var w=L(f.minimum,f.exclusiveMinimum);fe(w)&&my&&h.problems.push({location:{offset:c.offset,length:c.length},message:D("maximumWarning","Value is above the maximum of {0}.",y)})}function o(c,f,h,d){if(fe(f.minLength)&&c.value.lengthf.maxLength&&h.problems.push({location:{offset:c.offset,length:c.length},message:D("maxLengthWarning","String is longer than the maximum length of {0}.",f.maxLength)}),na(f.pattern)){var m=kt(f.pattern);m.test(c.value)||h.problems.push({location:{offset:c.offset,length:c.length},message:f.patternErrorMessage||f.errorMessage||D("patternWarning",'String does not match the pattern of "{0}".',f.pattern)})}if(f.format)switch(f.format){case"uri":case"uri-reference":{var v=void 0;if(!c.value)v=D("uriEmpty","URI expected.");else{var b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(c.value);b?!b[2]&&f.format==="uri"&&(v=D("uriSchemeMissing","URI with a scheme is expected.")):v=D("uriMissing","URI is expected.")}v&&h.problems.push({location:{offset:c.offset,length:c.length},message:f.patternErrorMessage||f.errorMessage||D("uriFormatWarning","String is not a URI: {0}",v)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var N=ua[f.format];(!c.value||!N.pattern.exec(c.value))&&h.problems.push({location:{offset:c.offset,length:c.length},message:f.patternErrorMessage||f.errorMessage||N.errorMessage})}}function u(c,f,h,d){if(Array.isArray(f.items)){for(var m=f.items,v=0;v=m.length&&h.propertiesValueMatches++}if(c.items.length>m.length)if(typeof f.additionalItems=="object")for(var _=m.length;_f.maxItems&&h.problems.push({location:{offset:c.offset,length:c.length},message:D("maxItemsWarning","Array has too many items. Expected {0} or fewer.",f.maxItems)}),f.uniqueItems===!0){var T=Me(c),M=T.some(function(k,F){return F!==T.lastIndexOf(k)});M&&h.problems.push({location:{offset:c.offset,length:c.length},message:D("uniqueItemsWarning","Array has duplicate items.")})}}function l(c,f,h,d){for(var m=Object.create(null),v=[],b=0,N=c.properties;b=0;)v.splice(Dr,1),Dr=v.indexOf($i)};if(f.properties)for(var T=0,M=Object.keys(f.properties);T0)for(var B=0,re=v;Bf.maxProperties&&h.problems.push({location:{offset:c.offset,length:c.length},message:D("MaxPropWarning","Object has more properties than limit of {0}.",f.maxProperties)}),fe(f.minProperties)&&c.properties.length0){for(M--;M>0&&/\s/.test(i.charAt(M));)M--;k=M+1}if(u(S,A,M,k),w&&f(w,!1),y.length+T.length>0)for(var F=s.getToken();F!==17;){if(y.indexOf(F)!==-1){o();break}else if(T.indexOf(F)!==-1)break;F=o()}return w}function c(){switch(s.getTokenError()){case 4:return l(D("InvalidUnicode","Invalid unicode sequence in string."),W.InvalidUnicode),!0;case 5:return l(D("InvalidEscapeCharacter","Invalid escape character in string."),W.InvalidEscapeCharacter),!0;case 3:return l(D("UnexpectedEndOfNumber","Unexpected end of number."),W.UnexpectedEndOfNumber),!0;case 1:return l(D("UnexpectedEndOfComment","Unexpected end of comment."),W.UnexpectedEndOfComment),!0;case 2:return l(D("UnexpectedEndOfString","Unexpected end of string."),W.UnexpectedEndOfString),!0;case 6:return l(D("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),W.InvalidCharacter),!0}return!1}function f(S,A){return S.length=s.getTokenOffset()+s.getTokenLength()-S.offset,A&&o(),S}function h(S){if(s.getToken()===3){var A=new fa(S,s.getTokenOffset());o();for(var w=!1;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){w||l(D("ValueExpected","Value expected"),W.ValueExpected);var y=s.getTokenOffset();if(o(),s.getToken()===4){w&&u(D("TrailingComma","Trailing comma"),W.TrailingComma,y,y+1);continue}}else w&&l(D("ExpectedComma","Expected comma"),W.CommaExpected);var T=g(A);T?A.items.push(T):l(D("PropertyExpected","Value expected"),W.ValueExpected,void 0,[],[4,5]),w=!0}return s.getToken()!==4?l(D("ExpectedCloseBracket","Expected comma or closing bracket"),W.CommaOrCloseBacketExpected,A):f(A,!0)}}var d=new _r(void 0,0,0);function m(S,A){var w=new ha(S,s.getTokenOffset(),d),y=b(w);if(!y)if(s.getToken()===16){l(D("DoubleQuotesExpected","Property keys must be doublequoted"),W.Undefined);var T=new _r(w,s.getTokenOffset(),s.getTokenLength());T.value=s.getTokenValue(),y=T,o()}else return;w.keyNode=y;var M=A[y.value];if(M?(u(D("DuplicateKeyWarning","Duplicate object key"),W.DuplicateKey,w.keyNode.offset,w.keyNode.offset+w.keyNode.length,ce.Warning),typeof M=="object"&&u(D("DuplicateKeyWarning","Duplicate object key"),W.DuplicateKey,M.keyNode.offset,M.keyNode.offset+M.keyNode.length,ce.Warning),A[y.value]=!0):A[y.value]=w,s.getToken()===6)w.colonOffset=s.getTokenOffset(),o();else if(l(D("ColonExpected","Colon expected"),W.ColonExpected),s.getToken()===10&&e.positionAt(y.offset+y.length).line=0;r--){var n=this.contributions[r].resolveCompletion;if(n){var i=n(t);if(i)return i}}return this.promiseConstructor.resolve(t)},e.prototype.doComplete=function(t,r,n){var i=this,s={items:[],isIncomplete:!1},a=t.getText(),o=t.offsetAt(r),u=n.getNodeFromOffset(o,!0);if(this.isInComment(t,u?u.offset:0,o))return Promise.resolve(s);if(u&&o===u.offset+u.length&&o>0){var l=a[o-1];(u.type==="object"&&l==="}"||u.type==="array"&&l==="]")&&(u=u.parent)}var c=this.getCurrentWord(t,o),f;if(u&&(u.type==="string"||u.type==="number"||u.type==="boolean"||u.type==="null"))f=q.create(t.positionAt(u.offset),t.positionAt(u.offset+u.length));else{var h=o-c.length;h>0&&a[h-1]==='"'&&h--,f=q.create(t.positionAt(h),r)}var d={},m={add:function(v){var b=v.label,N=d[b];if(N)N.documentation||(N.documentation=v.documentation),N.detail||(N.detail=v.detail);else{if(b=b.replace(/[\n]/g,"\u21B5"),b.length>60){var p=b.substr(0,57).trim()+"...";d[p]||(b=p)}f&&v.insertText!==void 0&&(v.textEdit=ve.replace(f,v.insertText)),v.label=b,d[b]=v,s.items.push(v)}},setAsIncomplete:function(){s.isIncomplete=!0},error:function(v){console.error(v)},log:function(v){console.log(v)},getNumberOfProposals:function(){return s.items.length}};return this.schemaService.getSchemaForResource(t.uri,n).then(function(v){var b=[],N=!0,p="",g=void 0;if(u&&u.type==="string"){var _=u.parent;_&&_.type==="property"&&_.keyNode===u&&(N=!_.valueNode,g=_,p=a.substr(u.offset+1,u.length-2),_&&(u=_.parent))}if(u&&u.type==="object"){if(u.offset===o)return s;var L=u.properties;L.forEach(function(y){(!g||g!==y)&&(d[y.keyNode.value]=br.create("__"))});var S="";N&&(S=i.evaluateSeparatorAfter(t,t.offsetAt(f.end))),v?i.getPropertyCompletions(v,n,u,N,S,m):i.getSchemaLessPropertyCompletions(n,u,p,m);var A=wr(u);i.contributions.forEach(function(y){var T=y.collectPropertyCompletions(t.uri,A,c,N,S==="",m);T&&b.push(T)}),!v&&c.length>0&&a.charAt(o-c.length-1)!=='"'&&(m.add({kind:he.Property,label:i.getLabelForValue(c),insertText:i.getInsertTextForProperty(c,void 0,!1,S),insertTextFormat:X.Snippet,documentation:""}),m.setAsIncomplete())}var w={};return v?i.getValueCompletions(v,n,u,o,t,m,w):i.getSchemaLessValueCompletions(n,u,o,t,m),i.contributions.length>0&&i.getContributedValueCompletions(n,u,o,t,m,b),i.promiseConstructor.all(b).then(function(){if(m.getNumberOfProposals()===0){var y=o;u&&(u.type==="string"||u.type==="number"||u.type==="boolean"||u.type==="null")&&(y=u.offset+u.length);var T=i.evaluateSeparatorAfter(t,y);i.addFillerValueCompletions(w,T,m)}return s})})},e.prototype.getPropertyCompletions=function(t,r,n,i,s,a){var o=this,u=r.getMatchingSchemas(t.schema,n.offset);u.forEach(function(l){if(l.node===n&&!l.inverted){var c=l.schema.properties;c&&Object.keys(c).forEach(function(v){var b=c[v];if(typeof b=="object"&&!b.deprecationMessage&&!b.doNotSuggest){var N={kind:he.Property,label:v,insertText:o.getInsertTextForProperty(v,b,i,s),insertTextFormat:X.Snippet,filterText:o.getFilterTextForValue(v),documentation:o.fromMarkup(b.markdownDescription)||b.description||""};b.suggestSortText!==void 0&&(N.sortText=b.suggestSortText),N.insertText&<(N.insertText,"$1"+s)&&(N.command={title:"Suggest",command:"editor.action.triggerSuggest"}),a.add(N)}});var f=l.schema.propertyNames;if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){var h=function(v,b){b===void 0&&(b=void 0);var N={kind:he.Property,label:v,insertText:o.getInsertTextForProperty(v,void 0,i,s),insertTextFormat:X.Snippet,filterText:o.getFilterTextForValue(v),documentation:b||o.fromMarkup(f.markdownDescription)||f.description||""};f.suggestSortText!==void 0&&(N.sortText=f.suggestSortText),N.insertText&<(N.insertText,"$1"+s)&&(N.command={title:"Suggest",command:"editor.action.triggerSuggest"}),a.add(N)};if(f.enum)for(var d=0;d(r.colonOffset||0)){var c=r.valueNode;if(c&&(n>c.offset+c.length||c.type==="object"||c.type==="array"))return;var f=r.keyNode.value;t.visit(function(d){return d.type==="property"&&d.keyNode.value===f&&d.valueNode&&l(d.valueNode),!0}),f==="$schema"&&r.parent&&!r.parent.parent&&this.addDollarSchemaCompletions(u,s)}if(r.type==="array")if(r.parent&&r.parent.type==="property"){var h=r.parent.keyNode.value;t.visit(function(d){return d.type==="property"&&d.keyNode.value===h&&d.valueNode&&d.valueNode.type==="array"&&d.valueNode.items.forEach(l),!0})}else r.items.forEach(l)},e.prototype.getValueCompletions=function(t,r,n,i,s,a,o){var u=i,l=void 0,c=void 0;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(u=n.offset+n.length,c=n,n=n.parent),!n){this.addSchemaValueCompletions(t.schema,"",a,o);return}if(n.type==="property"&&i>(n.colonOffset||0)){var f=n.valueNode;if(f&&i>f.offset+f.length)return;l=n.keyNode.value,n=n.parent}if(n&&(l!==void 0||n.type==="array")){for(var h=this.evaluateSeparatorAfter(s,u),d=r.getMatchingSchemas(t.schema,n.offset,c),m=0,v=d;m(r.colonOffset||0)){var o=r.keyNode.value,u=r.valueNode;if((!u||n<=u.offset+u.length)&&r.parent){var l=wr(r.parent);this.contributions.forEach(function(c){var f=c.collectValueCompletions(i.uri,l,o,s);f&&a.push(f)})}}},e.prototype.addSchemaValueCompletions=function(t,r,n,i){var s=this;typeof t=="object"&&(this.addEnumValueCompletions(t,r,n),this.addDefaultValueCompletions(t,r,n),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(function(a){return s.addSchemaValueCompletions(a,r,n,i)}),Array.isArray(t.anyOf)&&t.anyOf.forEach(function(a){return s.addSchemaValueCompletions(a,r,n,i)}),Array.isArray(t.oneOf)&&t.oneOf.forEach(function(a){return s.addSchemaValueCompletions(a,r,n,i)}))},e.prototype.addDefaultValueCompletions=function(t,r,n,i){var s=this;i===void 0&&(i=0);var a=!1;if(Ae(t.default)){for(var o=t.type,u=t.default,l=i;l>0;l--)u=[u],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(u),insertText:this.getInsertTextForValue(u,r),insertTextFormat:X.Snippet,detail:Lr("json.suggest.default","Default value")}),a=!0}Array.isArray(t.examples)&&t.examples.forEach(function(c){for(var f=t.type,h=c,d=i;d>0;d--)h=[h],f="array";n.add({kind:s.getSuggestionKind(f),label:s.getLabelForValue(h),insertText:s.getInsertTextForValue(h,r),insertTextFormat:X.Snippet}),a=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(function(c){var f=t.type,h=c.body,d=c.label,m,v;if(Ae(h)){t.type;for(var b=i;b>0;b--)h=[h];m=s.getInsertTextForSnippetValue(h,r),v=s.getFilterTextForSnippetValue(h),d=d||s.getLabelForSnippetValue(h)}else if(typeof c.bodyText=="string"){for(var N="",p="",g="",b=i;b>0;b--)N=N+g+`[ +`,p=p+` +`+g+"]",g+=" ",f="array";m=N+g+c.bodyText.split(` +`).join(` +`+g)+p+r,d=d||m,v=m.replace(/[\n]/g,"")}else return;n.add({kind:s.getSuggestionKind(f),label:d,documentation:s.fromMarkup(c.markdownDescription)||c.description,insertText:m,insertTextFormat:X.Snippet,filterText:v}),a=!0}),!a&&typeof t.items=="object"&&!Array.isArray(t.items)&&i<5&&this.addDefaultValueCompletions(t.items,r,n,i+1)},e.prototype.addEnumValueCompletions=function(t,r,n){if(Ae(t.const)&&n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,r),insertTextFormat:X.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(var i=0,s=t.enum.length;i0?r[0]:void 0}if(!t)return he.Value;switch(t){case"string":return he.Value;case"object":return he.Module;case"property":return he.Property;default:return he.Value}},e.prototype.getLabelTextForMatchingNode=function(t,r){switch(t.type){case"array":return"[]";case"object":return"{}";default:var n=r.getText().substr(t.offset,t.length);return n}},e.prototype.getInsertTextForMatchingNode=function(t,r,n){switch(t.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var i=r.getText().substr(t.offset,t.length)+n;return this.getInsertTextForPlainText(i)}},e.prototype.getInsertTextForProperty=function(t,r,n,i){var s=this.getInsertTextForValue(t,"");if(!n)return s;var a=s+": ",o,u=0;if(r){if(Array.isArray(r.defaultSnippets)){if(r.defaultSnippets.length===1){var l=r.defaultSnippets[0].body;Ae(l)&&(o=this.getInsertTextForSnippetValue(l,""))}u+=r.defaultSnippets.length}if(r.enum&&(!o&&r.enum.length===1&&(o=this.getInsertTextForGuessedValue(r.enum[0],"")),u+=r.enum.length),Ae(r.default)&&(o||(o=this.getInsertTextForGuessedValue(r.default,"")),u++),Array.isArray(r.examples)&&r.examples.length&&(o||(o=this.getInsertTextForGuessedValue(r.examples[0],"")),u+=r.examples.length),u===0){var c=Array.isArray(r.type)?r.type[0]:r.type;switch(c||(r.properties?c="object":r.items&&(c="array")),c){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return s}}}return(!o||u>1)&&(o="$1"),a+o+i},e.prototype.getCurrentWord=function(t,r){for(var n=r-1,i=t.getText();n>=0&&` +\r\v":{[,]}`.indexOf(i.charAt(n))===-1;)n--;return i.substring(n+1,r)},e.prototype.evaluateSeparatorAfter=function(t,r){var n=Ze(t.getText(),!0);n.setPosition(r);var i=n.scan();switch(i){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(t,r,n){for(var i=Ze(r.getText(),!0),s=t.items,a=s.length-1;a>=0;a--){var o=s[a];if(n>o.offset+o.length){i.setPosition(o.offset+o.length);var u=i.scan();return u===5&&n>=i.getTokenOffset()+i.getTokenLength()?a+1:a}else if(n>=o.offset)return a}return 0},e.prototype.isInComment=function(t,r,n){var i=Ze(t.getText(),!1);i.setPosition(r);for(var s=i.scan();s!==17&&i.getTokenOffset()+i.getTokenLength()s.offset+1&&i=0;f--){var h=this.contributions[f],d=h.getInfoContribution(t.uri,c);if(d)return d.then(function(m){return l(m)})}return this.schemaService.getSchemaForResource(t.uri,n).then(function(m){if(m&&s){var v=n.getMatchingSchemas(m.schema,s.offset),b=void 0,N=void 0,p=void 0,g=void 0;v.every(function(L){if(L.node===s&&!L.inverted&&L.schema&&(b=b||L.schema.title,N=N||L.schema.markdownDescription||Cr(L.schema.description),L.schema.enum)){var S=L.schema.enum.indexOf(Me(s));L.schema.markdownEnumDescriptions?p=L.schema.markdownEnumDescriptions[S]:L.schema.enumDescriptions&&(p=Cr(L.schema.enumDescriptions[S])),p&&(g=L.schema.enum[S],typeof g!="string"&&(g=JSON.stringify(g)))}return!0});var _="";return b&&(_=Cr(b)),N&&(_.length>0&&(_+=` + +`),_+=N),p&&(_.length>0&&(_+=` + +`),_+="`"+ya(g)+"`: "+p),l([_])}return null})},e}();function Cr(e){if(e){var t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1 + +$3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function ya(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var Ti;Ti=(()=>{var e={470:n=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,u){for(var l,c="",f=0,h=-1,d=0,m=0;m<=o.length;++m){if(m2){var v=c.lastIndexOf("/");if(v!==c.length-1){v===-1?(c="",f=0):f=(c=c.slice(0,v)).length-1-c.lastIndexOf("/"),h=m,d=0;continue}}else if(c.length===2||c.length===1){c="",f=0,h=m,d=0;continue}}u&&(c.length>0?c+="/..":c="..",f=2)}else c.length>0?c+="/"+o.slice(h+1,m):c=o.slice(h+1,m),f=m-h-1;h=m,d=0}else l===46&&d!==-1?++d:d=-1}return c}var a={resolve:function(){for(var o,u="",l=!1,c=arguments.length-1;c>=-1&&!l;c--){var f;c>=0?f=arguments[c]:(o===void 0&&(o=process.cwd()),f=o),i(f),f.length!==0&&(u=f+"/"+u,l=f.charCodeAt(0)===47)}return u=s(u,!l),l?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(i(o),o.length===0)return".";var u=o.charCodeAt(0)===47,l=o.charCodeAt(o.length-1)===47;return(o=s(o,!u)).length!==0||u||(o="."),o.length>0&&l&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u0&&(o===void 0?o=l:o+="/"+l)}return o===void 0?".":a.normalize(o)},relative:function(o,u){if(i(o),i(u),o===u||(o=a.resolve(o))===(u=a.resolve(u)))return"";for(var l=1;lm){if(u.charCodeAt(h+b)===47)return u.slice(h+b+1);if(b===0)return u.slice(h+b)}else f>m&&(o.charCodeAt(l+b)===47?v=b:b===0&&(v=0));break}var N=o.charCodeAt(l+b);if(N!==u.charCodeAt(h+b))break;N===47&&(v=b)}var p="";for(b=l+v+1;b<=c;++b)b!==c&&o.charCodeAt(b)!==47||(p.length===0?p+="..":p+="/..");return p.length>0?p+u.slice(h+v):(h+=v,u.charCodeAt(h)===47&&++h,u.slice(h))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var u=o.charCodeAt(0),l=u===47,c=-1,f=!0,h=o.length-1;h>=1;--h)if((u=o.charCodeAt(h))===47){if(!f){c=h;break}}else f=!1;return c===-1?l?"/":".":l&&c===1?"//":o.slice(0,c)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');i(o);var l,c=0,f=-1,h=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var d=u.length-1,m=-1;for(l=o.length-1;l>=0;--l){var v=o.charCodeAt(l);if(v===47){if(!h){c=l+1;break}}else m===-1&&(h=!1,m=l+1),d>=0&&(v===u.charCodeAt(d)?--d==-1&&(f=l):(d=-1,f=m))}return c===f?f=m:f===-1&&(f=o.length),o.slice(c,f)}for(l=o.length-1;l>=0;--l)if(o.charCodeAt(l)===47){if(!h){c=l+1;break}}else f===-1&&(h=!1,f=l+1);return f===-1?"":o.slice(c,f)},extname:function(o){i(o);for(var u=-1,l=0,c=-1,f=!0,h=0,d=o.length-1;d>=0;--d){var m=o.charCodeAt(d);if(m!==47)c===-1&&(f=!1,c=d+1),m===46?u===-1?u=d:h!==1&&(h=1):u!==-1&&(h=-1);else if(!f){l=d+1;break}}return u===-1||c===-1||h===0||h===1&&u===c-1&&u===l+1?"":o.slice(u,c)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(u,l){var c=l.dir||l.root,f=l.base||(l.name||"")+(l.ext||"");return c?c===l.root?c+f:c+"/"+f:f}(0,o)},parse:function(o){i(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var l,c=o.charCodeAt(0),f=c===47;f?(u.root="/",l=1):l=0;for(var h=-1,d=0,m=-1,v=!0,b=o.length-1,N=0;b>=l;--b)if((c=o.charCodeAt(b))!==47)m===-1&&(v=!1,m=b+1),c===46?h===-1?h=b:N!==1&&(N=1):h!==-1&&(N=-1);else if(!v){d=b+1;break}return h===-1||m===-1||N===0||N===1&&h===m-1&&h===d+1?m!==-1&&(u.base=u.name=d===0&&f?o.slice(1,m):o.slice(d,m)):(d===0&&f?(u.name=o.slice(1,h),u.base=o.slice(1,m)):(u.name=o.slice(d,h),u.base=o.slice(d,m)),u.ext=o.slice(h,m)),d>0?u.dir=o.slice(0,d-1):f&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,n.exports=a},447:(n,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>N,Utils:()=>k}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var u,l,c=(u=function(P,x){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,I){E.__proto__=I}||function(E,I){for(var $ in I)Object.prototype.hasOwnProperty.call(I,$)&&(E[$]=I[$])})(P,x)},function(P,x){function E(){this.constructor=P}u(P,x),P.prototype=x===null?Object.create(x):(E.prototype=x.prototype,new E)}),f=/^\w[\w\d+.-]*$/,h=/^\//,d=/^\/\//,m="",v="/",b=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,N=function(){function P(x,E,I,$,j,O){O===void 0&&(O=!1),typeof x=="object"?(this.scheme=x.scheme||m,this.authority=x.authority||m,this.path=x.path||m,this.query=x.query||m,this.fragment=x.fragment||m):(this.scheme=function(B,re){return B||re?B:"file"}(x,O),this.authority=E||m,this.path=function(B,re){switch(B){case"https":case"http":case"file":re?re[0]!==v&&(re=v+re):re=v}return re}(this.scheme,I||m),this.query=$||m,this.fragment=j||m,function(B,re){if(!B.scheme&&re)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+B.authority+'", path: "'+B.path+'", query: "'+B.query+'", fragment: "'+B.fragment+'"}');if(B.scheme&&!f.test(B.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(B.path){if(B.authority){if(!h.test(B.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(d.test(B.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,O))}return P.isUri=function(x){return x instanceof P||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="function"&&typeof x.with=="function"&&typeof x.toString=="function"},Object.defineProperty(P.prototype,"fsPath",{get:function(){return A(this,!1)},enumerable:!1,configurable:!0}),P.prototype.with=function(x){if(!x)return this;var E=x.scheme,I=x.authority,$=x.path,j=x.query,O=x.fragment;return E===void 0?E=this.scheme:E===null&&(E=m),I===void 0?I=this.authority:I===null&&(I=m),$===void 0?$=this.path:$===null&&($=m),j===void 0?j=this.query:j===null&&(j=m),O===void 0?O=this.fragment:O===null&&(O=m),E===this.scheme&&I===this.authority&&$===this.path&&j===this.query&&O===this.fragment?this:new g(E,I,$,j,O)},P.parse=function(x,E){E===void 0&&(E=!1);var I=b.exec(x);return I?new g(I[2]||m,M(I[4]||m),M(I[5]||m),M(I[7]||m),M(I[9]||m),E):new g(m,m,m,m,m)},P.file=function(x){var E=m;if(a&&(x=x.replace(/\\/g,v)),x[0]===v&&x[1]===v){var I=x.indexOf(v,2);I===-1?(E=x.substring(2),x=v):(E=x.substring(2,I),x=x.substring(I)||v)}return new g("file",E,x,m,m)},P.from=function(x){return new g(x.scheme,x.authority,x.path,x.query,x.fragment)},P.prototype.toString=function(x){return x===void 0&&(x=!1),w(this,x)},P.prototype.toJSON=function(){return this},P.revive=function(x){if(x){if(x instanceof P)return x;var E=new g(x);return E._formatted=x.external,E._fsPath=x._sep===p?x.fsPath:null,E}return x},P}(),p=a?1:void 0,g=function(P){function x(){var E=P!==null&&P.apply(this,arguments)||this;return E._formatted=null,E._fsPath=null,E}return c(x,P),Object.defineProperty(x.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),x.prototype.toString=function(E){return E===void 0&&(E=!1),E?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},x.prototype.toJSON=function(){var E={$mid:1};return this._fsPath&&(E.fsPath=this._fsPath,E._sep=p),this._formatted&&(E.external=this._formatted),this.path&&(E.path=this.path),this.scheme&&(E.scheme=this.scheme),this.authority&&(E.authority=this.authority),this.query&&(E.query=this.query),this.fragment&&(E.fragment=this.fragment),E},x}(N),_=((l={})[58]="%3A",l[47]="%2F",l[63]="%3F",l[35]="%23",l[91]="%5B",l[93]="%5D",l[64]="%40",l[33]="%21",l[36]="%24",l[38]="%26",l[39]="%27",l[40]="%28",l[41]="%29",l[42]="%2A",l[43]="%2B",l[44]="%2C",l[59]="%3B",l[61]="%3D",l[32]="%20",l);function L(P,x){for(var E=void 0,I=-1,$=0;$=97&&j<=122||j>=65&&j<=90||j>=48&&j<=57||j===45||j===46||j===95||j===126||x&&j===47)I!==-1&&(E+=encodeURIComponent(P.substring(I,$)),I=-1),E!==void 0&&(E+=P.charAt($));else{E===void 0&&(E=P.substr(0,$));var O=_[j];O!==void 0?(I!==-1&&(E+=encodeURIComponent(P.substring(I,$)),I=-1),E+=O):I===-1&&(I=$)}}return I!==-1&&(E+=encodeURIComponent(P.substring(I))),E!==void 0?E:P}function S(P){for(var x=void 0,E=0;E1&&P.scheme==="file"?"//"+P.authority+P.path:P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?x?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,a&&(E=E.replace(/\//g,"\\")),E}function w(P,x){var E=x?S:L,I="",$=P.scheme,j=P.authority,O=P.path,B=P.query,re=P.fragment;if($&&(I+=$,I+=":"),(j||$==="file")&&(I+=v,I+=v),j){var de=j.indexOf("@");if(de!==-1){var qe=j.substr(0,de);j=j.substr(de+1),(de=qe.indexOf(":"))===-1?I+=E(qe,!1):(I+=E(qe.substr(0,de),!1),I+=":",I+=E(qe.substr(de+1),!1)),I+="@"}(de=(j=j.toLowerCase()).indexOf(":"))===-1?I+=E(j,!1):(I+=E(j.substr(0,de),!1),I+=j.substr(de))}if(O){if(O.length>=3&&O.charCodeAt(0)===47&&O.charCodeAt(2)===58)(De=O.charCodeAt(1))>=65&&De<=90&&(O="/"+String.fromCharCode(De+32)+":"+O.substr(3));else if(O.length>=2&&O.charCodeAt(1)===58){var De;(De=O.charCodeAt(0))>=65&&De<=90&&(O=String.fromCharCode(De+32)+":"+O.substr(2))}I+=E(O,!0)}return B&&(I+="?",I+=E(B,!1)),re&&(I+="#",I+=x?re:L(re,!1)),I}function y(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+y(P.substr(3)):P}}var T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function M(P){return P.match(T)?P.replace(T,function(x){return y(x)}):P}var k,F=s(470),V=function(){for(var P=0,x=0,E=arguments.length;x{for(var s in i)r.o(i,s)&&!r.o(n,s)&&Object.defineProperty(n,s,{enumerable:!0,get:i[s]})},r.o=(n,i)=>Object.prototype.hasOwnProperty.call(n,i),r.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r(447)})();const{URI:et,Utils:Za}=Ti;function Sa(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var r=String(e),n="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",u,l=0,c=r.length;l1&&(f==="/"||f===void 0||f==="{"||f===",")&&(d==="/"||d===void 0||d===","||d==="}");m?(d==="/"?l++:f==="/"&&n.endsWith("\\/")&&(n=n.substr(0,n.length-2)),n+="((?:[^/]*(?:/|$))*)"):n+="([^/]*)"}break;default:n+=u}return(!o||!~o.indexOf("g"))&&(n="^"+n+"$"),new RegExp(n,o)}var Ee=pt(),_a="!",Aa="/",wa=function(){function e(t,r){this.globWrappers=[];try{for(var n=0,i=t;n0&&(s[0]===Aa&&(s=s.substring(1)),this.globWrappers.push({regexp:Sa("**/"+s,{extended:!0,globstar:!0}),include:a}))}this.uris=r}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var r=!1,n=0,i=this.globWrappers;n0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var r=this,n=!1;t=Ie(t);for(var i=[t],s=Object.keys(this.schemasById).map(function(l){return r.schemasById[l]});i.length;)for(var a=i.pop(),o=0;o1&&(i=s[1]),lt(i,".")&&(i=i.substr(0,i.length-1)),new We({},[Ee("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Dt(t),i)])})},e.prototype.resolveSchemaContent=function(t,r,n){var i=this,s=t.errors.slice(0),a=t.schema;if(a.$schema){var o=Ie(a.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Pi({},[Ee("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&s.push(Ee("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,l=function(d,m){if(!m)return d;var v=d;return m[0]==="/"&&(m=m.substr(1)),m.split("/").some(function(b){return b=b.replace(/~1/g,"/").replace(/~0/g,"~"),v=v[b],!v}),v},c=function(d,m,v,b){var N=b?decodeURIComponent(b):void 0,p=l(m,N);if(p)for(var g in p)p.hasOwnProperty(g)&&!d.hasOwnProperty(g)&&(d[g]=p[g]);else s.push(Ee("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",N,v))},f=function(d,m,v,b,N){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(m)&&(m=u.resolveRelativePath(m,b)),m=Ie(m);var p=i.getOrAddSchemaHandle(m);return p.getUnresolvedSchema().then(function(g){if(N[m]=!0,g.errors.length){var _=v?m+"#"+v:m;s.push(Ee("json.schema.problemloadingref","Problems loading reference '{0}': {1}",_,g.errors[0]))}return c(d,g.schema,m,v),h(d,g.schema,m,p.dependencies)})},h=function(d,m,v,b){if(!d||typeof d!="object")return Promise.resolve(null);for(var N=[d],p=[],g=[],_=function(){for(var y=[],T=0;T0){g.push(f(y,k[0],k[1],v,b));return}else T.indexOf(M)===-1&&(c(y,m,v,k[1]),T.push(M))}_(y.items,y.additionalItems,y.additionalProperties,y.not,y.contains,y.propertyNames,y.if,y.then,y.else),L(y.definitions,y.properties,y.patternProperties,y.dependencies),S(y.anyOf,y.allOf,y.oneOf,y.items)};N.length;){var w=N.pop();p.indexOf(w)>=0||(p.push(w),A(w))}return i.promise.all(g)};return h(a,a,r,n).then(function(d){return new Pi(a,s)})},e.prototype.getSchemaForResource=function(t,r){if(r&&r.root&&r.root.type==="object"){var n=r.root.properties.filter(function(N){return N.keyNode.value==="$schema"&&N.valueNode&&N.valueNode.type==="string"});if(n.length>0){var i=n[0].valueNode;if(i&&i.type==="string"){var s=Me(i);if(s&&Hn(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,t)),s){var a=Ie(s);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),u=[],l=xa(t),c=0,f=this.filePatternAssociations;c0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:b},b},e.prototype.createCombinedSchema=function(t,r){if(r.length===1)return this.getOrAddSchemaHandle(r[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:r.map(function(s){return{$ref:s}})};return this.addSchemaHandle(n,i)},e.prototype.getMatchingSchemas=function(t,r,n){if(n){var i=n.id||"schemaservice://untitled/matchingSchemas/"+Ca++;return this.resolveSchemaContent(new We(n),i,{}).then(function(s){return r.getMatchingSchemas(s.schema).filter(function(a){return!a.inverted})})}return this.getSchemaForResource(t.uri,r).then(function(s){return s?r.getMatchingSchemas(s.schema).filter(function(a){return!a.inverted}):[]})},e}(),Ca=0;function Ie(e){try{return et.parse(e).toString()}catch{return e}}function xa(e){try{return et.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Dt(e){try{var t=et.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var ka=pt(),Ta=function(){function e(t,r){this.jsonSchemaService=t,this.promise=r,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:ce.Error)},e.prototype.doValidation=function(t,r,n,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},u=function(f){var h=f.range.start.line+" "+f.range.start.character+" "+f.message;o[h]||(o[h]=!0,a.push(f))},l=function(f){var h=(n==null?void 0:n.trailingCommas)?jt(n.trailingCommas):ce.Error,d=(n==null?void 0:n.comments)?jt(n.comments):s.commentSeverity,m=(n==null?void 0:n.schemaValidation)?jt(n.schemaValidation):ce.Warning,v=(n==null?void 0:n.schemaRequest)?jt(n.schemaRequest):ce.Warning;if(f){if(f.errors.length&&r.root&&v){var b=r.root,N=b.type==="object"?b.properties[0]:void 0;if(N&&N.keyNode.value==="$schema"){var p=N.valueNode||N,g=q.create(t.positionAt(p.offset),t.positionAt(p.offset+p.length));u(we.create(g,f.errors[0],v,W.SchemaResolveError))}else{var g=q.create(t.positionAt(b.offset),t.positionAt(b.offset+1));u(we.create(g,f.errors[0],v,W.SchemaResolveError))}}else if(m){var _=r.validate(t,f.schema,m);_&&_.forEach(u)}Mi(f.schema)&&(d=void 0),Ei(f.schema)&&(h=void 0)}for(var L=0,S=r.syntaxErrors;L=Ut&&e<=Ia?e-Ut+10:0)}function Fa(e){if(e[0]==="#")switch(e.length){case 4:return{red:Q(e.charCodeAt(1))*17/255,green:Q(e.charCodeAt(2))*17/255,blue:Q(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Q(e.charCodeAt(1))*17/255,green:Q(e.charCodeAt(2))*17/255,blue:Q(e.charCodeAt(3))*17/255,alpha:Q(e.charCodeAt(4))*17/255};case 7:return{red:(Q(e.charCodeAt(1))*16+Q(e.charCodeAt(2)))/255,green:(Q(e.charCodeAt(3))*16+Q(e.charCodeAt(4)))/255,blue:(Q(e.charCodeAt(5))*16+Q(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Q(e.charCodeAt(1))*16+Q(e.charCodeAt(2)))/255,green:(Q(e.charCodeAt(3))*16+Q(e.charCodeAt(4)))/255,blue:(Q(e.charCodeAt(5))*16+Q(e.charCodeAt(6)))/255,alpha:(Q(e.charCodeAt(7))*16+Q(e.charCodeAt(8)))/255}}}var Da=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,r,n){var i=this;n===void 0&&(n={resultLimit:Number.MAX_VALUE});var s=r.root;if(!s)return[];var a=n.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||lt(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,c=s.items;l0){a--;var T=ft.create(t.uri,Fe(t,w)),M=A?A+"."+w.keyNode.value:w.keyNode.value;g.push({name:i.getKeyLabel(w),kind:i.getSymbolKind(y.type),location:T,containerName:A}),b.push({node:y,containerName:M})}else p=!0})};N0){a--;var M=Fe(t,y),k=M,F=String(T),V={name:F,kind:i.getSymbolKind(y.type),range:M,selectionRange:k,children:[]};w.push(V),p.push({result:V.children,node:y})}else _=!0}):A.type==="object"&&A.properties.forEach(function(y){var T=y.valueNode;if(T)if(a>0){a--;var M=Fe(t,y),k=Fe(t,y.keyNode),F=[],V={name:i.getKeyLabel(y),kind:i.getSymbolKind(T.type),range:M,selectionRange:k,children:F,detail:i.getDetail(T)};w.push(V),p.push({result:F,node:T})}else _=!0})};g0&&i[i.length-1].kind===f){var c=i.pop(),h=e.positionAt(a.getTokenOffset()).line;c&&h>c.startLine+1&&s!==c.startLine&&(c.endLine=h-1,u(c),s=c.startLine)}break}case 13:{var l=e.positionAt(a.getTokenOffset()).line,d=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&l+1=0&&i[b].kind!==ct.Region;)b--;if(b>=0){var c=i[b];i.length=b,h>c.startLine&&s!==c.startLine&&(c.endLine=h,u(c),s=c.startLine)}}}break}}o=a.scan()}var N=t&&t.rangeLimit;if(typeof N!="number"||r.length<=N)return r;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var p=[],g=0,_=n;g<_.length;g++){var L=_[g];L<30&&(p[L]=(p[L]||0)+1)}for(var S=0,A=0,b=0;bN){A=b;break}S+=w}}for(var y=[],b=0;b=f&&u<=h&&c.push(i(f,h)),c.push(i(l.offset,l.offset+l.length));break;case"number":case"boolean":case"null":case"property":c.push(i(l.offset,l.offset+l.length));break}if(l.type==="property"||l.parent&&l.parent.type==="array"){var d=a(l.offset+l.length,5);d!==-1&&c.push(i(l.offset,d))}l=l.parent}for(var m=void 0,v=c.length-1;v>=0;v--)m=Ft.create(c[v],m);return m||(m=Ft.create(q.create(o,o))),m}function i(o,u){return q.create(e.positionAt(o),e.positionAt(u))}var s=Ze(e.getText(),!0);function a(o,u){s.setPosition(o);var l=s.scan();return l===u?s.getTokenOffset()+s.getTokenLength():-1}return t.map(n)}function Va(e,t){var r=[];return t.visit(function(n){var i;if(n.type==="property"&&n.keyNode.value==="$ref"&&((i=n.valueNode)===null||i===void 0?void 0:i.type)==="string"){var s=n.valueNode.value,a=Wa(t,s);if(a){var o=e.positionAt(a.offset);r.push({target:e.uri+"#"+(o.line+1)+","+(o.character+1),range:$a(e,n.valueNode)})}}return!0}),Promise.resolve(r)}function $a(e,t){return q.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function Wa(e,t){var r=qa(t);return r?Pr(r,e.root):null}function Pr(e,t){if(!t)return null;if(e.length===0)return t;var r=e.shift();if(t&&t.type==="object"){var n=t.properties.find(function(a){return a.keyNode.value===r});return n?Pr(e,n.valueNode):null}else if(t&&t.type==="array"&&r.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(r),s=t.items[i];return s?Pr(e,s):null}return null}function qa(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(Ha)}function Ha(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ba(e){var t=e.promiseConstructor||Promise,r=new La(e.schemaRequestService,e.workspaceContext,t);r.setSchemaContributions(xr);var n=new va(r,e.contributions,t,e.clientCapabilities),i=new ba(r,e.contributions,t),s=new Da(r),a=new Ta(r,t);return{configure:function(o){r.clearExternalSchemas(),o.schemas&&o.schemas.forEach(function(u){r.registerExternalSchema(u.uri,u.fileMatch,u.schema)}),a.configure(o)},resetSchema:function(o){return r.onResourceChange(o)},doValidation:a.doValidation.bind(a),parseJSONDocument:function(o){return pa(o,{collectComments:!0})},newJSONDocument:function(o,u){return ma(o,u)},getMatchingSchemas:r.getMatchingSchemas.bind(r),doResolve:n.doResolve.bind(n),doComplete:n.doComplete.bind(n),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:Ra,getSelectionRanges:Oa,findDefinition:function(){return Promise.resolve([])},findLinks:Va,format:function(o,u,l){var c=void 0;if(u){var f=o.offsetAt(u.start),h=o.offsetAt(u.end)-f;c={offset:f,length:h}}var d={tabSize:l?l.tabSize:4,insertSpaces:(l==null?void 0:l.insertSpaces)===!0,insertFinalNewline:(l==null?void 0:l.insertFinalNewline)===!0,eol:` +`};return ra(o.getText(),c,d).map(function(m){return ve.replace(q.create(o.positionAt(m.offset),o.positionAt(m.offset+m.length)),m.content)})}}}var be=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(c){try{l(n.next(c))}catch(f){a(f)}}function u(c){try{l(n.throw(c))}catch(f){a(f)}}function l(c){c.done?s(c.value):i(c.value).then(o,u)}l((n=n.apply(e,t||[])).next())})},ye=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]1&&e[e.length-1].length===0&&t.push("");var s=t.join("/");return e[0].length===0&&(s="/"+s),s}function Qa(e){for(var t=[],r=1;r*[data-v-1ef3ef60]{cursor:pointer;word-break:keep-all}.magic-context-menu li.divided[data-v-1ef3ef60]{border-bottom:1px solid var(--main-border-color)}.magic-context-menu .magic-context-menu-icon[data-v-1ef3ef60]{display:inline-block;text-align:center;margin-right:5px;width:13px}.magic-context-menu li[data-v-1ef3ef60]:hover{background-color:var(--select-option-hover-background-color);color:var(--select-option-hover-color)}.magic-context-menu li[data-v-1ef3ef60]:hover .magic-icon{color:var(--select-option-hover-color)}.magic-dialog[data-v-a540702c] .magic-dialog-body>pre{white-space:normal}.magic-dialog[data-v-bf9f8d80] .magic-dialog-body>pre{white-space:normal}@font-face{font-family:"magic-iconfont";src:url(./iconfont.c1c53300.ttf?t=1641003183544) format("truetype")}.magic-icon{font-family:"magic-iconfont"!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.magic-icon-difference:before{content:"\e603"}.magic-icon-watch:before{content:"\e60e"}.magic-icon-rollback:before{content:"\e613"}.magic-icon-eye:before{content:"\e614"}.magic-icon-debug-array:before{content:"\e604"}.magic-icon-debug-number:before{content:"\e605"}.magic-icon-debug-normal:before{content:"\e60c"}.magic-icon-empty:before{content:"\e644"}.magic-icon-structure:before{content:"\e672"}.magic-icon-json:before{content:"\e882"}.magic-icon-api:before{content:"\e75a"}.magic-icon-mongo:before{content:"\e63e"}.magic-icon-redis:before{content:"\e669"}.magic-icon-function:before{content:"\e62d"}.magic-icon-task:before{content:"\e620"}.magic-icon-elasticsearch:before{content:"\eb85"}.magic-icon-resource:before{content:"\e712"}.magic-icon-websocket:before{content:"\e6a6"}.magic-icon-descending:before{content:"\e69d"}.magic-icon-ascending:before{content:"\e69e"}.magic-icon-expand-all:before{content:"\e612"}.magic-icon-collapse-all:before{content:"\e611"}.magic-icon-group-add:before{content:"\e610"}.magic-icon-arrow-bottom-up:before{content:"\efae"}.magic-icon-options:before{content:"\e60f"}.magic-icon-debug-info:before{content:"\efa1"}.magic-icon-run:before{content:"\e626"}.magic-icon-parameter:before{content:"\e6e9"}.magic-icon-list:before{content:"\e679"}.magic-icon-arrow-right:before{content:"\e600"}.magic-icon-arrow-bottom:before{content:"\efa2"}.magic-icon-script:before{content:"\e61d"}.magic-icon-clear:before{content:"\e673"}.magic-icon-continue:before{content:"\e663"}.magic-icon-format:before{content:"\e6c1"}.magic-icon-git:before{content:"\e64a"}.magic-icon-gitee:before{content:"\e6d6"}.magic-icon-delete:before{content:"\e607"}.magic-icon-help:before{content:"\e60d"}.magic-icon-qq:before{content:"\e635"}.magic-icon-skin:before{content:"\e606"}.magic-icon-close:before{content:"\e652"}.magic-icon-save:before{content:"\e66c"}.magic-icon-minimize:before{content:"\e707"}.magic-icon-log:before{content:"\efac"}.magic-icon-history:before{content:"\e668"}.magic-icon-step-over:before{content:"\e7b2"}.magic-icon-star:before{content:"\e601"}.magic-icon-unfold:before{content:"\e732"}.magic-icon-fold:before{content:"\e66b"}.magic-icon-settings:before{content:"\e786"}.magic-icon-minus:before{content:"\e68a"}.magic-icon-plus:before{content:"\e621"}.magic-icon-refresh:before{content:"\e747"}.magic-icon-search:before{content:"\e608"}.magic-icon-upload:before{content:"\e658"}.magic-icon-download:before{content:"\e659"}.magic-icon-datasource:before{content:"\e615"}.magic-icon-table:before{content:"\e619"}.magic-icon-logout:before{content:"\e65a"}.magic-icon-copy:before{content:"\ec7a"}.magic-icon-move:before{content:"\e727"}.magic-icon-update:before{content:"\e7e4"}.magic-icon-push:before{content:"\e79d"}.magic-icon-todo:before{content:"\e602"}.magic-icon-event:before{content:"\e664"}.magic-icon-collapse:before{content:"\e609"}.magic-icon-expand-copy:before{content:"\efad"}.magic-icon-primary:before{content:"\e60a"}.magic-icon-lock:before{content:"\e64f"}.magic-icon-unlock:before{content:"\e783"}.magic-icon-position:before{content:"\e60b"}.magic-empty[data-v-594aa0b8]{width:100%;height:100%;position:relative}.magic-empty p[data-v-594aa0b8]{text-align:center;width:100%;height:24px;line-height:24px;top:50%;position:relative;margin-top:-12px}.magic-loading[data-v-6d83fffa]{width:100%;height:100%;position:relative;top:0;left:0}.magic-loading p[data-v-6d83fffa]{position:absolute;text-align:center;width:100%;top:50%;margin-top:-20px}.magic-loading .icon[data-v-6d83fffa]{width:20px;margin:0 auto;animation:rotate-6d83fffa 1s linear infinite;display:block}@keyframes rotate-6d83fffa{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.magic-monaco-editor[data-v-7c84fbe0]{flex:1;overflow:hidden}.magic-monaco-editor[data-v-319cefd8]{flex:1;overflow:hidden}.magic-monaco-editor[data-v-319cefd8] .breakpoints{background:var(--breakpoints-background-color);width:10px!important;height:10px!important;right:0px!important;margin-left:12px;top:5px;border-radius:5px}.magic-monaco-editor[data-v-319cefd8] .debug-line{background:var(--debug-line-background-color);color:#fff!important}.magic-monaco-editor[data-v-319cefd8] .breakpoint-line{background:var(--breakpoint-line-background-color)}.magic-resizer-x[data-v-7de8c22c],.magic-resizer-y[data-v-7de8c22c]{display:flex;position:relative;overflow:hidden;transition:none}.magic-resizer-event[data-v-7de8c22c]{position:absolute;z-index:20;--width: 100%;--height: 100%}.magic-resizer-event[data-v-7de8c22c]:after{content:" ";position:fixed;z-index:9999}.magic-resizer-x .magic-resizer-event[data-v-7de8c22c]{width:15px;height:100%;right:-15px;cursor:col-resize}.magic-resizer-x .magic-resizer-event[data-v-7de8c22c]:after{width:10px;height:var(--height)}.magic-resizer-x .magic-resizer-event.reverse[data-v-7de8c22c]{right:unset;left:-5px}.magic-resizer-x[data-v-7de8c22c]{height:100%}.magic-resizer-y .magic-resizer-event[data-v-7de8c22c]{height:10px;width:100%;top:-5px;cursor:row-resize}.magic-resizer-y .magic-resizer-event[data-v-7de8c22c]:after{height:10px;width:var(--width)}.magic-function-info[data-v-4b164a55]{display:flex;flex-direction:column}.magic-function-info form[data-v-4b164a55]{display:flex;padding:5px}.magic-function-info form label[data-v-4b164a55]{display:inline-block;width:75px;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px}.magic-navbar[data-v-4b164a55]{flex-direction:column;overflow:hidden}.magic-navbar[data-v-4b164a55] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-4b164a55] .magic-navbar-body,.magic-navbar[data-v-4b164a55] .magic-navbar-item{width:100%;height:100%}.magic-navbar-item[data-v-30388e35]{height:100%;width:100%}.magic-navbar{display:flex;background-color:var(--main-background-color);transition:.3s}.magic-navbar .magic-navbar-body{background-color:var(--navbar-body-background-color);overflow:auto}.magic-navbar .magic-navbar-header li:hover{background-color:var(--main-hover-background-color)}.magic-navbar .magic-navbar-header li.selected{background-color:var(--main-selected-background-color);color:var(--main-selected-color)}.magic-navbar .magic-navbar-header li.selected svg text{fill:var(--main-selected-color)}.magic-navbar .magic-navbar-header li svg text{letter-spacing:0px;font-size:10px}.magic-navbar__vertical.reverse{flex-direction:row-reverse}.magic-navbar__vertical .magic-navbar-header li{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding:8px 3px;cursor:pointer;border-bottom:1px solid var(--main-border-color)}.magic-navbar__vertical .magic-navbar-header{width:22px;height:100%;letter-spacing:2px;text-align:center;padding:0;border-right:1px solid var(--main-border-color)}.magic-navbar__vertical.reverse .magic-navbar-header{border-left:1px solid var(--main-border-color);border-right:none}.magic-navbar__vertical.reverse .magic-navbar-header li{display:flex;flex-direction:column-reverse}.magic-navbar__vertical .magic-navbar-header li{line-height:14px;word-break:break-all}.magic-navbar__vertical .magic-navbar-body{flex:1}.magic-navbar__vertical .magic-navbar-body{border-right:1px solid var(--navbar-body-border-color)}.magic-navbar__vertical.reverse .magic-navbar-body{border-left:1px solid var(--navbar-body-border-color);border-right:none}.magic-navbar__horizontal>ul{width:100%}.magic-navbar__horizontal>ul li{display:inline-flex;flex-direction:row-reverse;padding:0 8px;height:24px;line-height:24px;cursor:pointer;color:var(--main-color)}.magic-navbar__horizontal>ul li i{padding:0 2px}.magic-navbar__horizontal>ul{border-top:1px solid var(--main-border-color)}.magic-navbar.magic-navbar__vertical .magic-navbar-title{padding-bottom:4px}.magic-navbar.magic-navbar__vertical.reverse .magic-navbar-title{padding-top:4px;padding-bottom:0}.magic-icon[data-v-50969699]{color:var(--main-icon-color)}.magic-tab{width:100%;overflow:hidden;flex-wrap:nowrap;white-space:nowrap;transition:.3s}.magic-tab ul{overflow-x:auto}.magic-tab ul li{display:inline-block;cursor:pointer;padding:0 10px;height:24px;line-height:24px}.magic-tab ul li.selected,.magic-tab ul li:hover,.magic-tab.magic-script-tab ul li.selected:hover,.magic-tab ul li.draggable-target-item{background-color:var(--main-hover-background-color)}.magic-tab.magic-script-tab{border-bottom:1px solid var(--main-border-color);height:30px;position:absolute}.magic-tab.magic-script-tab ul li{height:30px;line-height:30px;border-bottom:3px solid transparent}.magic-tab.magic-script-tab ul li.selected{border-bottom-color:#4083c9;background-color:var(--tab-selected-background-color)}.magic-table{display:flex;flex-direction:column;box-sizing:border-box}.magic-table .magic-table-body{flex:1;overflow:auto}.magic-table .magic-table-header,.magic-table .magic-table-body .magic-table-row{display:flex;height:24px;line-height:24px;border-bottom:1px solid var(--main-border-color)}.magic-table .magic-table-body .magic-table-row:hover{background-color:var(--main-hover-background-color)}.magic-table .magic-table-column{flex:1}.magic-table .magic-table-column .magic-select{width:100%}.magic-table__border .magic-table-body .magic-table-row{border-bottom:1px solid var(--table-border-color)}.magic-table__border .magic-table-body .magic-table-row .magic-table-column:not(:last-child){border-right:1px solid var(--table-border-color)}.magic-tree{position:relative;overflow:auto}.magic-tree>ul{position:absolute;top:0;left:0}.magic-tree .magic-tree-item{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}.magic-tree .magic-tree-item:hover,.magic-tree .magic-tree-item.selected,.magic-tree .magic-tree-item.draggable-target-item{background-color:var(--tree-hover-background-color)}.magic-tree .magic-tree-item .magic-icon{color:var(--tree-icon-color);padding-right:2px;font-size:14px}.magic-tree ul{max-height:99999px;min-width:100%}.magic-tree li{white-space:nowrap;word-break:break-all}.magic-tree .hide{opacity:0;max-height:0;position:relative}.magic-tree .magic-icon-datasource:not(.root){color:#089910}.magic-dialog[data-v-cbcc8c70]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:999999;text-align:center}.magic-dialog__shade[data-v-cbcc8c70]{background-color:#0000004d}.magic-dialog[data-v-cbcc8c70]:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.magic-dialog-main[data-v-cbcc8c70]{background:var(--main-background-color);border:1px solid var(--dialog-border-color);display:inline-block;vertical-align:middle;position:relative;min-width:250px;box-shadow:0 0 8px var(--dialog-shadow-color);max-width:800px;color:var(--main-color);transition:none}.magic-dialog-header[data-v-cbcc8c70]{height:30px;line-height:30px;padding-left:30px;padding-right:75px;background-position:7px 7px;background-repeat:no-repeat;text-align:left}.magic-dialog-header.moveable[data-v-cbcc8c70]{cursor:move}.magic-dialog-header span[data-v-cbcc8c70]{display:inline-block;width:30px;position:absolute;right:0;text-align:center;cursor:pointer;font-size:12px;height:30px;line-height:30px}.magic-dialog-header span[data-v-cbcc8c70]:hover{background-color:#e81123}.magic-dialog-header span:hover .magic-icon[data-v-cbcc8c70]{color:#fff}.magic-dialog-body[data-v-cbcc8c70]{text-align:left;word-break:break-word}.magic-dialog[data-v-cbcc8c70] .magic-loading{min-width:200px;min-height:200px}.magic-notify[data-v-413b2c61]{position:absolute;right:40px;bottom:65px;transition:.5s}.magic-notify .magic-notify-item[data-v-413b2c61]{background-color:var(--main-background-color);padding:5px;position:relative;border-radius:2px;border:1px solid var(--main-border-color);max-width:280px;box-shadow:0 0 8px var(--dialog-shadow-color)}.magic-notify .magic-notify-item[data-v-413b2c61]:not(:first-child){margin-top:5px}.magic-notify .magic-notify-item .magic-icon-close[data-v-413b2c61]{font-size:12px}.magic-notify .magic-notify-item .close[data-v-413b2c61]{position:absolute;top:2px;right:2px;display:none}.magic-notify .magic-notify-item h3[data-v-413b2c61]{font-size:12px;height:20px;line-height:20px;display:flex;align-items:center}.magic-notify .magic-notify-item h3 svg[data-v-413b2c61]{vertical-align:middle;margin-right:2px}.magic-notify .magic-notify-item:hover .close[data-v-413b2c61]{display:block}.magic-notify .magic-notify-item p[data-v-413b2c61]{padding:5px 5px 5px 16px}.magic-notify .magic-notify-item .magic-button-group[data-v-413b2c61]{padding-left:11px}.magic-button-group[data-v-70c60ab6] .magic-button:not(:last-child){margin-right:10px}.magic-button-group.right[data-v-70c60ab6]{text-align:right}.magic-button-group.left[data-v-70c60ab6]{text-align:left}.magic-button-group.center[data-v-70c60ab6]{text-align:center}.magic-button[data-v-2e4c463a]{height:22px;line-height:22px;background-color:var(--button-background-color);text-align:center;padding:0 15px;border:1px solid var(--button-border-color);outline:0;cursor:pointer;color:var(--main-color)}.magic-button.link[data-v-2e4c463a]{background-color:transparent;color:var(--log-color-link);border:none;padding:0 5px}.magic-button.active[data-v-2e4c463a],.magic-button[data-v-2e4c463a]:hover:not(.link){background-color:var(--button-hover-background-color);border-color:var(--button-hover-border-color)}.magic-checkbox[data-v-22b807f1]{width:100%;height:100%;text-align:center;display:inline-block}.magic-checkbox input[data-v-22b807f1]{display:none}.magic-checkbox input+label[data-v-22b807f1]{position:relative;color:#c9c9c9;font-size:12px;height:24px;line-height:24px;width:24px;user-select:none;display:inline-block}.magic-checkbox input+label[data-v-22b807f1]:after{display:inline-block;background-color:var(--checkbox-background-color);border:1px solid var(--checkbox-border-color);content:"";width:16px;height:16px;line-height:16px;position:absolute;top:2px;left:3px;text-align:center;font-size:12px;color:var(--checkbox-text-color)}.magic-checkbox input:checked+label[data-v-22b807f1]:after{content:"\2714";background-color:var(--checkbox-selected-background-color);border-color:var(--checkbox-selected-border-color)}.magic-checkbox input+label.checkedHalf[data-v-22b807f1]:after{content:"\2501"}.magic-file[data-v-5c4a8b85]{width:100%;position:relative}.magic-file .magic-icon[data-v-5c4a8b85]{position:absolute;right:3px;top:3px;height:16px;line-height:16px}.magic-input[data-v-3a157bc4]{height:22px;line-height:22px;border-radius:0;outline:0;border:1px solid transparent;margin:0;padding:0 0 0 5px;background-color:var(--input-background-color);color:var(--mian-color)}.magic-input[data-v-3a157bc4]:focus{border-color:var(--input-focus-color)}.magic-input__border[data-v-3a157bc4]{border-color:var(--input-border-color)}.magic-input[data-v-3a157bc4]::-webkit-outer-spin-button,.magic-input[data-v-3a157bc4]::-webkit-inner-spin-button{-webkit-appearance:none}.magic-input[type=number][data-v-3a157bc4]{-moz-appearance:textfield}.magic-select[data-v-869742dc]{position:relative;display:inline-block;background:var(--select-background-color);height:22px;line-height:22px;width:80px;font-size:12px;text-align:left}.magic-select.inputable[data-v-869742dc]{background:var(--select-inputable-background-color);border-color:var(--select-inputable-border-color)}.magic-select.border[data-v-869742dc]{border:1px solid var(--input-border-color)}.magic-select input[data-v-869742dc]{background:none;border:none;height:22px;line-height:22px;border-radius:0;outline:0;padding-left:5px;width:100%;color:var(--main-color)}.magic-select span[data-v-869742dc]{height:22px;line-height:22px;border-radius:0;outline:0;padding-left:5px}.magic-select[data-v-869742dc]:hover:not(.inputable){background:var(--select-hover-background-color)}.magic-select[data-v-869742dc]:after{content:"\efa2";font-family:"magic-iconfont";position:absolute;right:5px;top:0px}.magic-select ul[data-v-869742dc]{display:block;position:fixed;z-index:10;background:var(--select-option-background-color);border:1px solid var(--select-option-border-color);margin-top:-2px;padding:0;box-sizing:content-box;margin-left:-1px}.magic-select ul li[data-v-869742dc]{padding:0 5px;width:100%!important;height:22px;text-overflow:ellipsis;word-break:keep-all;text-align:left}.magic-select ul li[data-v-869742dc]:hover{background:var(--select-option-hover-background-color);color:var(--select-option-hover-color)}.magic-textarea[data-v-ca6693f6]{line-height:22px;border-radius:0;outline:0;border:1px solid var(--input-border-color);resize:none;background:var(--input-background-color);color:var(--input-color);width:100%;height:100%}.magic-textarea[data-v-ca6693f6]:focus{border-color:var(--input-focus-color)}.magic-avatar-group[data-v-511f7f80]{display:inline-block;height:22px;line-height:22px}.magic-avatar-group .magic-avatar[data-v-511f7f80]{position:relative;margin-left:-5px}.magic-avatar[data-v-4b5e69aa]{color:#fff;display:inline-block;text-align:center}.magic-navbar[data-v-1e478b66]{width:100%;height:100%}.magic-navbar[data-v-1e478b66] .magic-navbar-body{border-right:none;width:100%;height:100%;display:flex}.magic-navbar[data-v-1e478b66] .magic-navbar-item>*{width:100%;height:100%}.magic-api-group[data-v-430d6958]{display:flex;flex-direction:column}.magic-api-group form[data-v-430d6958]{display:flex;padding:5px}.magic-api-group form label[data-v-430d6958]{display:inline-block;width:75px;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px}.magic-api-group+.magic-navbar[data-v-430d6958]{flex-direction:column;overflow:hidden}.magic-api-group+.magic-navbar[data-v-430d6958] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-430d6958] .magic-navbar-body,.magic-navbar[data-v-430d6958] .magic-navbar-item{width:100%;height:100%}.magic-api-group>form .magic-button[data-v-430d6958]{margin-left:10px}.magic-api-info[data-v-0aa3270a]{display:flex;flex-direction:column}.magic-api-info form[data-v-0aa3270a]{display:flex;padding:5px}.magic-api-info form label[data-v-0aa3270a]{display:inline-block;width:75px;height:22px;line-height:22px;font-weight:400;text-align:right;padding:0 5px}.magic-api-info+.magic-navbar[data-v-0aa3270a]{flex-direction:column;overflow:hidden}.magic-api-info+.magic-navbar[data-v-0aa3270a] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-0aa3270a] .magic-navbar-body,.magic-navbar[data-v-0aa3270a] .magic-navbar-item{width:100%;height:100%}.magic-table[data-v-12babf82]{flex:1}.magic-table[data-v-12babf82] .magic-table-column{display:flex}.magic-data-type[data-v-12babf82]{display:inline-block;width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:center}iframe[data-v-72af9b10]{width:100%;height:100%;border:0}.magic-table[data-v-db168582]{flex:1}.magic-table span[data-v-db168582]{padding:0 5px}.magic-table[data-v-ea08c446]{flex:1}.magic-table[data-v-ea08c446] .magic-table-column{display:flex}.magic-data-type[data-v-ea08c446]{display:inline-block;width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.magic-panel-api-response[data-v-3d951bef]{width:100%;height:100%;display:flex;flex-direction:column}.magic-panel-api-response[data-v-3d951bef] .magic-navbar__horizontal>ul{border-top:none;border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-3d951bef]{flex-direction:column;width:100%;height:100%}.magic-panel-api-response[data-v-3d951bef] .magic-navbar .magic-navbar-body,.magic-panel-api-response[data-v-3d951bef] .magic-navbar .magic-navbar-item{width:100%;height:100%}.magic-panel-api-response[data-v-3d951bef] .magic-navbar .magic-navbar-item{display:flex}.magic-global[data-v-03e7bbcc]{display:flex;flex-direction:column;flex:1;width:100%;height:100%}.magic-global>.magic-navbar[data-v-03e7bbcc]{flex-direction:column;overflow:hidden}.magic-global>.magic-navbar[data-v-03e7bbcc] .magic-navbar-header{border-bottom:1px solid var(--main-border-color)}.magic-navbar[data-v-03e7bbcc] .magic-navbar-body,.magic-navbar[data-v-03e7bbcc] .magic-navbar-item{width:100%;height:100%}.magic-global .magic-panel-global[data-v-03e7bbcc]{display:flex;width:100%;height:100%}.magic-global[data-v-03e7bbcc] .magic-panel-global>div{flex:1}.magic-panel-toolbar[data-v-e91df708]{width:24px;border-right:1px solid var(--main-border-color);height:100%;text-align:center}.magic-panel-toolbar li[data-v-e91df708]{cursor:pointer;border-radius:2px;width:18px;height:18px;line-height:18px;margin:3px}.magic-panel-toolbar li[data-v-e91df708]:not(.disabled):hover{background-color:var(--main-hover-icon-background-color)}.magic-panel-toolbar li.disabled i[data-v-e91df708]{color:var(--button-disabled-color)}.magic-resource-choose[data-v-7eb90c29]{max-height:400px;overflow:auto}.magic-resource-choose .magic-tree[data-v-7eb90c29]{margin-bottom:5px;min-height:300px}.magic-resource-choose .magic-tree[data-v-7eb90c29] .magic-icon.root{color:var(--main-icon-color)}.magic-resource-choose .magic-tree[data-v-7eb90c29] .magic-checkbox{display:inline;margin-right:3px}.magic-resource-choose .magic-tree[data-v-7eb90c29] .magic-checkbox input+label{width:12px!important;height:12px!important}.magic-resource-choose .magic-tree[data-v-7eb90c29] .magic-tree-item{padding-left:5px}.magic-resource-choose .magic-tree[data-v-7eb90c29] .magic-checkbox input+label:after{width:12px!important;height:12px!important;line-height:12px!important;top:0!important;left:0!important}.magic-resource-choose[data-v-7eb90c29] .magic-tree label{color:var(--resource-label-color)}.magic-resource-choose[data-v-7eb90c29] .magic-tree span{color:var(--resource-span-color)}.magic-backup[data-v-0e33e135]{display:flex;flex:1;height:100%}.magic-backup>div[data-v-0e33e135]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative;height:100%}.magic-backup .magic-table[data-v-0e33e135]{height:100%;position:absolute;width:100%}.magic-backup[data-v-0e33e135] .magic-table-row .magic-table-column:last-child,.magic-backup[data-v-0e33e135] .magic-table-header .magic-table-column:last-child{padding-left:5px}.magic-backup-diff-container[data-v-0e33e135]{width:100%;height:100%;display:flex;flex-direction:column}.magic-backup-diff-container .magic-backup-diff-header[data-v-0e33e135]{height:30px;line-height:30px;display:flex}.magic-backup-diff-container .magic-backup-diff-header>div[data-v-0e33e135]{flex:1}.magic-backup-diff-container .magic-backup-diff-header>div[data-v-0e33e135]:last-child{text-align:right}.magic-dialog-diff .magic-dialog-main{display:inline-flex;flex-direction:column}.magic-dialog-diff .magic-dialog-main .magic-dialog-body{flex:1;display:flex;flex-direction:column}.magic-panel-toolbar[data-v-d6992652] .magic-icon-continue{color:var(--icon-debug-color)}.magic-panel-toolbar[data-v-d6992652] .magic-icon-step-over{color:var(--icon-step-color)}.magic-debug[data-v-d6992652]{display:flex;flex:1}.magic-debug .magic-debug-variables[data-v-d6992652]{flex:1;background-color:var(--navbar-body-background-color);position:relative;overflow:auto}.magic-debug[data-v-d6992652] .magic-tree{position:absolute;width:100%;height:100%}.magic-debug[data-v-d6992652] .magic-tree .magic-tree-item{height:auto}.magic-debug .object-type[data-v-d6992652]{color:var(--resource-span-color)}.magic-debug label.key[data-v-d6992652]{color:var(--data-type-key-color);padding-left:3px}.magic-debug label.separator[data-v-d6992652]{padding:0 5px}.magic-debug svg[data-v-d6992652]{display:inline-block;width:16px;height:16px;vertical-align:middle}.magic-event[data-v-535abac4],.magic-event[data-v-535abac4] .magic-table{width:100%;height:100%;display:flex}.magic-event[data-v-535abac4] .magic-table .magic-table-header{display:none}.magic-event[data-v-535abac4] .magic-table .magic-table-row{border-right:1px solid var(--main-border-color)}.magic-event[data-v-535abac4] .magic-table .magic-table-column{padding-left:5px}.magic-log-wrapper{position:relative;overflow:auto;width:100%;height:100%;background:var(--run-log-background-color)}.magic-log{position:absolute;font-size:13.5px;height:100%;padding:5px}.magic-log>div{width:100%}.magic-log>div pre{line-height:20px;width:100%}.magic-log>div.multiple pre{max-height:60px;overflow:hidden}.magic-log>div.multiple.more pre{max-height:none}.magic-log span.multiple{opacity:.5;font-size:13px;text-decoration:underline;cursor:pointer}.magic-log pre span.log-INFO{color:var(--log-color-info)}.magic-log pre span.log-DEBUG{color:var(--log-color-debug)}.magic-log pre span.log-ERROR{color:var(--log-color-error)}.magic-log pre span.log-WARN{color:var(--log-color-warn)}.magic-log pre span.log-TRACE{color:var(--log-color-trace)}.magic-log pre span.log-cyan{color:var(--log-color-cyan)}.magic-log pre a.log-link{color:var(--log-color-link)}.magic-online[data-v-14e0ee9e]{height:30px;line-height:30px;float:right;padding-left:10px;max-width:500px}.magic-online>span[data-v-14e0ee9e]{padding-left:5px}.magic-status-bar[data-v-7891cbf6]{height:30px;line-height:30px;display:flex;background-color:var(--main-background-color);padding-left:24px}.magic-status-bar .message[data-v-7891cbf6]{flex:1}.magic-status-bar ul[data-v-7891cbf6]{float:right;display:inline-flex;align-items:center;padding-right:2px}.magic-status-bar ul li[data-v-7891cbf6]{cursor:pointer;padding:0 4px;height:20px;line-height:20px;border-radius:3px}.magic-status-bar ul li .magic-icon[data-v-7891cbf6]{height:20px;line-height:20px}.magic-status-bar ul li[data-v-7891cbf6]:hover{background-color:var(--main-hover-icon-background-color)}.magic-todo[data-v-4bb5213c]{display:flex;flex:1}.magic-todo div[data-v-4bb5213c]{background-color:var(--navbar-body-background-color);flex:1;overflow:hidden;position:relative}.magic-todo div[data-v-4bb5213c] .magic-tree{width:100%;height:100%;position:absolute;overflow:auto}.magic-todo div[data-v-4bb5213c] .magic-tree label{color:var(--resource-label-color)}.magic-todo div[data-v-4bb5213c] .magic-tree label.todo{font-style:italic;color:var(--todo-color)}.magic-todo div[data-v-4bb5213c] .magic-tree span{color:var(--resource-span-color)}.magic-toolbar .magic-navbar[data-v-8958a5f2]{flex-direction:column-reverse}.magic-toolbar-header[data-v-8958a5f2]{height:26px;line-height:26px;border-bottom:1px solid var(--main-border-color);border-top:1px solid var(--main-border-color);background-color:var(--main-background-color)}.magic-toolbar-header label[data-v-8958a5f2]{display:inline-block;padding-left:10px}.magic-toolbar .magic-resizer-y[data-v-8958a5f2]{flex-direction:column}.magic-toolbar-header-buttons[data-v-8958a5f2]{float:right;margin-right:5px;vertical-align:middle;display:flex;align-items:center;height:26px}.magic-toolbar-header-buttons .magic-icon[data-v-8958a5f2]{display:inline-block;cursor:pointer;padding:0 2px;height:18px;line-height:18px;border-radius:3px;z-index:99999}.magic-toolbar-header-buttons .magic-icon[data-v-8958a5f2]:hover{background-color:var(--main-hover-icon-background-color)}.magic-toolbar .magic-navbar[data-v-8958a5f2] .magic-navbar-body{background-color:var(--main-background-color)}.magic-panel-api,.magic-panel-function,.magic-event{display:flex;width:100%;height:100%}.magic-panel-api>div,.magic-panel-function>div,.magic-event>div{flex:1}.magic-dialog[data-v-17f31570] .magic-dialog-body{overflow:hidden}.magic-header[data-v-6bfe1363]{height:30px;line-height:30px;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color);display:flex;color:var(--header-default-color)}.magic-header .magic-logo[data-v-6bfe1363]{float:left;font-weight:700;font-size:0;letter-spacing:0;background-repeat:no-repeat;background-position:4px 7px;padding-left:25px;color:var(--header-title-color)}.magic-header .magic-logo label[data-v-6bfe1363]{font-size:16px;display:inline-block;margin-right:5px;text-align:left;font-weight:400}.magic-header .magic-logo label[data-v-6bfe1363]:last-child{font-size:12px}.magic-header ul[data-v-6bfe1363]{float:right}.magic-header ul li[data-v-6bfe1363]{cursor:pointer;height:30px;text-align:center;display:inline-flex;align-items:center}.magic-header ul li .magic-icon[data-v-6bfe1363]{padding:0 4px;height:22px;line-height:22px;border-radius:4px}.magic-header ul li.disabled i[data-v-6bfe1363]{color:var(--button-disabled-color)}.magic-header ul li:not(.disabled) .magic-icon[data-v-6bfe1363]:hover{background-color:var(--main-hover-icon-background-color)}.magic-header ul li:not(.disabled) i.magic-icon-run[data-v-6bfe1363],.magic-header ul li i.magic-icon-push[data-v-6bfe1363]{color:#59a869}.magic-header-title[data-v-6bfe1363]{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.magic-skin-selector[data-v-6bfe1363]{position:absolute;top:30px;right:30px;z-index:20;background-color:var(--main-background-color);border:1px solid var(--main-border-color);border-top:none}.magic-skin-selector ul li[data-v-6bfe1363]{height:24px;line-height:24px;text-align:center;cursor:pointer;padding:2px 5px}.magic-skin-selector ul li[data-v-6bfe1363]:not(:last-child){border-bottom:1px solid var(--main-border-color)}.magic-skin-selector ul li[data-v-6bfe1363]:hover{background-color:var(--main-hover-background-color)}.magic-dialog[data-v-32537a17] .magic-dialog-body{overflow:hidden}.magic-push-form[data-v-32537a17]{padding:0 10px}.magic-push-form>div[data-v-32537a17]{display:flex;margin-top:5px}.magic-push-form label[data-v-32537a17]{width:80px;text-align:right;display:inline-block}.magic-push-form[data-v-32537a17] .magic-input{width:auto!important;flex:1}.magic-search-result[data-v-2baa1fdc]{overflow:auto;max-height:200px;background-color:var(--navbar-body-background-color)}.magic-search-result .magic-search-result-item[data-v-2baa1fdc]{display:flex;padding:0 5px;line-height:20px}.magic-search-result .magic-search-result-item[data-v-2baa1fdc]:hover,.magic-search-result .magic-search-result-item.selected[data-v-2baa1fdc]{background-color:var(--tree-hover-background-color)}.magic-search-result .magic-search-result-item .label[data-v-2baa1fdc]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.magic-search-result .magic-search-result-item .label[data-v-2baa1fdc] .keyword{background:#FFDE7B;color:#000}.magic-search-result-item .name[data-v-2baa1fdc],.magic-search-result-item .line[data-v-2baa1fdc]{color:var(--resource-span-color)}.magic-search-result .magic-search-result-item .line[data-v-2baa1fdc]{padding-left:5px}.display-text[data-v-2baa1fdc]{padding:0 10px;height:30px;line-height:30px;border-top:1px solid var(--main-border-color);border-bottom:1px solid var(--main-border-color)}.magic-data-resource[data-v-41719f90]{display:flex;flex-direction:column;flex:1;width:100%}.magic-data-resource .magic-data-resource-header[data-v-41719f90]{height:24px;line-height:24px;display:flex;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color);padding-left:3px}.magic-data-resource .magic-data-resource-header input[data-v-41719f90]{flex:1;border:none;background:none;height:24px;line-height:24px}.magic-data-resource .magic-data-resource-header ul[data-v-41719f90]{display:inline-flex;align-items:center}.magic-data-resource .magic-data-resource-header ul li[data-v-41719f90]{display:inline-block;cursor:pointer;padding:0 3px;height:20px;line-height:20px;border-radius:3px}.magic-data-resource .magic-data-resource-header ul li.separator[data-v-41719f90]{background-color:var(--main-border-color);width:1px;border-radius:0;padding:0;margin:0 4px}.magic-data-resource .magic-data-resource-header ul li[data-v-41719f90]:hover{background:var(--main-hover-icon-background-color)}.magic-data-resource>ul li[data-v-41719f90]{line-height:22px;padding-left:10px}.magic-data-resource>ul li[data-v-41719f90]:hover{background-color:var(--tree-hover-background-color)}.magic-data-resource>ul li .magic-icon[data-v-41719f90]{padding-right:2px;font-size:14px}.magic-data-resource>ul li label[data-v-41719f90]{color:var(--resource-label-color)}.magic-data-resource>ul li span[data-v-41719f90]{color:var(--resource-span-color);display:inline-block;height:22px;line-height:22px}.magic-data-resource>ul li .magic-icon-datasource[data-v-41719f90]{color:#089910}.magic-editor .magic-form-row{display:flex;margin-bottom:5px}.magic-editor .magic-form-row label{margin-right:5px;display:inline-block;width:60px;text-align:right;height:22px;line-height:22px}label[data-v-39f3ed68]{width:60px;text-align:right;display:inline-block}.magic-login[data-v-39f3ed68] .magic-input{width:auto!important}.magic-main[data-v-4f9d1b24]{flex:1;display:flex;border-bottom:1px solid var(--main-border-color);height:0;width:100%}.magic-main-body-wrapper[data-v-4f9d1b24]{display:flex;flex:1;flex-direction:column}.magic-main-body[data-v-4f9d1b24]{display:flex;flex:1;overflow:hidden}.magic-toolbar[data-v-4f9d1b24] .magic-resizer-y .magic-resizer-event{top:auto}ul[data-v-5cd0c142]{max-width:400px;max-height:600px;overflow:auto}ul li[data-v-5cd0c142]:hover{background-color:var(--tree-hover-background-color)}ul li[data-v-5cd0c142]{height:20px;line-height:20px;transition:.3s;word-break:break-all;white-space:nowrap}ul li label[data-v-5cd0c142]{color:var(--resource-label-color)}ul li span[data-v-5cd0c142]{color:var(--resource-span-color)}.magic-dialog-main[data-v-5cd0c142] .magic-dialog-body{padding:0}.magic-resource[data-v-5bd90c18]{display:flex;flex-direction:column;flex:1;width:100%}.magic-resource .magic-resource-header[data-v-5bd90c18]{height:24px;line-height:24px;display:flex;background-color:var(--main-background-color);border-bottom:1px solid var(--main-border-color)}.magic-resource .magic-resource-header input[data-v-5bd90c18]{flex:1;border:none;background:none;height:24px;line-height:24px}.magic-resource .magic-resource-header ul[data-v-5bd90c18]{display:inline-flex;align-items:center}.magic-resource .magic-resource-header ul li[data-v-5bd90c18]{display:inline-block;cursor:pointer;padding:0 3px;height:20px;line-height:20px;border-radius:3px}.magic-resource .magic-resource-header ul li.separator[data-v-5bd90c18]{background-color:var(--main-border-color);width:1px;border-radius:0;padding:0;margin:0 4px}.magic-resource .magic-resource-header ul li[data-v-5bd90c18]:hover{background:var(--main-hover-icon-background-color)}.magic-resource .magic-tree label[data-v-5bd90c18]{color:var(--resource-label-color)}.magic-resource .magic-tree span[data-v-5bd90c18]{color:var(--resource-span-color)}.magic-resource .magic-tree .magic-icon-lock[data-v-5bd90c18]{color:var(--resource-label-color);margin-left:5px}.magic-resource>.magic-tree[data-v-5bd90c18]{flex:1;overflow:auto}.magic-create-group li[data-v-5bd90c18]{display:flex;height:26px;line-height:26px}.magic-create-group li input[data-v-5bd90c18]{flex:1}.magic-resource[data-v-5bd90c18] .magic-avatar-group{margin-left:5px}.magic-script-editor[data-v-603a1ac6]{flex:1;display:flex;flex-direction:column;overflow:auto;position:relative}.magic-empty-container[data-v-603a1ac6]{flex:1;position:relative;width:100%;height:100%;background:var(--empty-background-color)}.magic-hot-key[data-v-603a1ac6]{position:absolute;top:50%;margin-top:-105px;text-align:center;color:var(--empty-color);font-size:16px;width:100%}.magic-hot-key p[data-v-603a1ac6]{display:inline-block;text-align:left;line-height:30px}.magic-hot-key p em[data-v-603a1ac6]{margin-left:15px;font-style:normal;color:var(--empty-key-color)}.magic-monaco-editor[data-v-603a1ac6]{position:absolute;top:30px;bottom:0;left:0;right:0}.magic-script-editor[data-v-603a1ac6] .magic-avatar-group{margin-left:5px}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,"Segoe WPC","Segoe UI","HelveticaNeue-Light",system-ui,"Ubuntu","Droid Sans",sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs .view-overlays .current-line,.monaco-editor.vs-dark .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs .cursor,.monaco-editor.vs-dark .cursor{background-color:windowtext!important}.monaco-editor.vs .dnd-target,.monaco-editor.vs-dark .dnd-target{border-color:windowtext!important}.monaco-editor.vs .selected-text,.monaco-editor.vs-dark .selected-text{background-color:highlight!important}.monaco-editor.vs .view-line,.monaco-editor.vs-dark .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs .view-line span,.monaco-editor.vs-dark .view-line span{color:windowtext!important}.monaco-editor.vs .view-line span.inline-selected-text,.monaco-editor.vs-dark .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs .view-overlays,.monaco-editor.vs-dark .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs .selectionHighlight,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs .wordHighlightStrong,.monaco-editor.vs-dark .wordHighlightStrong,.monaco-editor.vs .reference-decoration,.monaco-editor.vs-dark .reference-decoration{border:2px dotted highlight!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .rangeHighlight,.monaco-editor.vs-dark .rangeHighlight{background:transparent!important;border:1px dotted activeborder!important;box-sizing:border-box}.monaco-editor.vs .bracket-match,.monaco-editor.vs-dark .bracket-match{border-color:windowtext!important;background:transparent!important}.monaco-editor.vs .findMatch,.monaco-editor.vs-dark .findMatch,.monaco-editor.vs .currentFindMatch,.monaco-editor.vs-dark .currentFindMatch{border:2px dotted activeborder!important;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .find-widget,.monaco-editor.vs-dark .find-widget{border:1px solid windowtext}.monaco-editor.vs .monaco-list .monaco-list-row,.monaco-editor.vs-dark .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs .monaco-list .monaco-list-row.focused,.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-list .monaco-list-row:hover,.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover{background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;box-sizing:border-box}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:highlight!important}.monaco-editor.vs .decorationsOverviewRuler,.monaco-editor.vs-dark .decorationsOverviewRuler{opacity:0}.monaco-editor.vs .minimap,.monaco-editor.vs-dark .minimap{display:none}.monaco-editor.vs .squiggly-d-error,.monaco-editor.vs-dark .squiggly-d-error{background:transparent!important;border-bottom:4px double #E47777}.monaco-editor.vs .squiggly-c-warning,.monaco-editor.vs-dark .squiggly-c-warning{border-bottom:4px double #71B771}.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs-dark .squiggly-b-info{border-bottom:4px double #71B771}.monaco-editor.vs .squiggly-a-hint,.monaco-editor.vs-dark .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:transparent!important;border:1px solid highlight;box-sizing:border-box}.monaco-diff-editor.vs .diffOverviewRuler,.monaco-diff-editor.vs-dark .diffOverviewRuler{display:none}.monaco-editor.vs .line-insert,.monaco-editor.vs-dark .line-insert,.monaco-editor.vs .line-delete,.monaco-editor.vs-dark .line-delete{background:transparent!important;border:1px solid highlight!important;box-sizing:border-box}.monaco-editor.vs .char-insert,.monaco-editor.vs-dark .char-insert,.monaco-editor.vs .char-delete,.monaco-editor.vs-dark .char-delete{background:transparent!important}}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-mouse-cursor-text{cursor:text}.vs-dark .mac .monaco-mouse-cursor-text,.hc-black .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text,.hc-black.mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:#ddd 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:#ddd 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:#ddd 6px 6px 6px -6px inset}.vs .monaco-scrollable-element>.scrollbar>.slider{background:rgba(100,100,100,.4)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:rgba(121,121,121,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider{background:rgba(111,195,223,.6)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(100,100,100,.7)}.hc-black .monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(111,195,223,.8)}.monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(0,0,0,.6)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(191,191,191,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(111,195,223,1)}.vs-dark .monaco-scrollable-element .shadow.top{box-shadow:none}.vs-dark .monaco-scrollable-element .shadow.left{box-shadow:#000 6px 0 6px -6px inset}.vs-dark .monaco-scrollable-element .shadow.top.left{box-shadow:#000 6px 6px 6px -6px inset}.hc-black .monaco-scrollable-element .shadow.top{box-shadow:none}.hc-black .monaco-scrollable-element .shadow.left{box-shadow:none}.hc-black .monaco-scrollable-element .shadow.top.left{box-shadow:none}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{box-sizing:border-box;background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}:root{--sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--sash-size) * 2);width:calc(var(--sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--sash-size) * -.5);top:calc(var(--sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--sash-size) * -.5);bottom:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--sash-size) * -.5);left:calc(var(--sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--sash-size) * -.5);right:calc(var(--sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;transition:background-color .1s ease-out;background:transparent}.monaco-sash.vertical:before{width:var(--sash-hover-size);left:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--sash-hover-size);top:calc(50% - (var(--sash-hover-size) / 2))}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-label{margin-right:1px}@font-face{font-family:"codicon";font-display:block;src:url(./codicon.d86f69b1.ttf) format("truetype")}.codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}.context-view .monaco-menu{min-width:130px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter{display:flex;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:flex;align-items:center;box-sizing:border-box;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:none;width:16px;height:16px;flex-shrink:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:grab}.monaco-list-type-filter.dragging{cursor:grabbing}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:bold;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-table>.monaco-split-view2,.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight,.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight,.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;justify-content:center;align-items:center}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button>.codicon{margin:0 .2em;color:inherit!important}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown>.monaco-dropdown-button{margin-left:1px}.monaco-description-button{flex-direction:column}.monaco-description-button .monaco-button-label{font-weight:500}.monaco-description-button .monaco-button-description{font-style:italic}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:normal;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;transform:translate(0)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2000;padding:0 1px 1px;left:50%;margin-left:-300px}.quick-input-titlebar{display:flex;align-items:center}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:6px 6px 0;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:27.5px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:bold}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .contentWidgets .codicon-light-bulb,.monaco-editor .contentWidgets .codicon-lightbulb-autofix{display:flex;align-items:center;justify-content:center}.monaco-editor .contentWidgets .codicon-light-bulb:hover,.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover{cursor:pointer}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;-ms-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:center;font-size:13px;margin-left:20px;min-width:0}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .dirname{white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-action-bar .action-item.menu-entry .action-label,.hc-black .monaco-action-bar .action-item.menu-entry .action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-light)}.vs-dark .monaco-dropdown-with-default>.action-container.menu-entry>.action-label,.hc-black .monaco-dropdown-with-default>.action-container.menu-entry>.action-label{background-image:var(--menu-entry-icon-dark)}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{font-weight:bold}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul{margin:8px 0}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul{padding-left:20px}.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .colorpicker-hover:focus{outline:none}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;line-height:24px;cursor:pointer;color:#fff;flex:1;text-align:center}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid transparent;overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{opacity:.5;color:inherit}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:bold}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul{padding-left:20px}.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration{font-style:italic}.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor.vs .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines{cursor:copy}.monaco-custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-custom-checkbox:hover,.monaco-custom-checkbox.checked{opacity:1}.hc-black .monaco-custom-checkbox{background:none}.hc-black .monaco-custom-checkbox:hover{background:none}.monaco-custom-checkbox.monaco-simple-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked):before{visibility:hidden}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px))}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer}.monaco-editor .parameter-hints-widget{z-index:10;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.visible{transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs .markdown-docs code{font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs code{border-radius:3px;padding:0 .4em}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;opacity:.5;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:bold;text-decoration:underline}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:bold;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit}.monaco-editor .rename-box.preview{padding:3px 3px 0}.monaco-editor .rename-box .rename-input{padding:3px;width:calc(100% - 6px)}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;-ms-user-select:text;padding:10px}.tokens-inspect-separator{height:1px;border:0}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:normal;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)} diff --git a/magic-editor/src/console/dist/assets/vendor.5f04ef2d.js b/magic-editor/src/console/dist/assets/vendor.5f04ef2d.js new file mode 100644 index 00000000..e90d531b --- /dev/null +++ b/magic-editor/src/console/dist/assets/vendor.5f04ef2d.js @@ -0,0 +1,829 @@ +import{g as OH}from"./axios.23e7b955.js";var FH=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;e[t]=n;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==!0)return!1}return!0},MR=typeof Symbol!="undefined"&&Symbol,BH=FH,WH=function(){return typeof MR!="function"||typeof Symbol!="function"||typeof MR("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:BH()},VH="Function.prototype.bind called on incompatible ",G1=Array.prototype.slice,HH=Object.prototype.toString,zH="[object Function]",$H=function(e){var t=this;if(typeof t!="function"||HH.call(t)!==zH)throw new TypeError(VH+t);for(var i=G1.call(arguments,1),n,s=function(){if(this instanceof n){var h=t.apply(this,i.concat(G1.call(arguments)));return Object(h)===h?h:this}else return t.apply(e,i.concat(G1.call(arguments)))},o=Math.max(0,t.length-i.length),a=[],l=0;l1&&typeof t!="boolean")throw new gd('"allowMissing" argument must be a boolean');var i=ez(e),n=i.length>0?i[0]:"",s=tz("%"+n+"%",t),o=s.name,a=s.value,l=!1,c=s.alias;c&&(n=c[0],XH(i,YH([0,1],c)));for(var h=1,u=!0;h=i.length){var p=ih(a,d);u=!!p,u&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[d]}else u=Mb(a,d),a=a[d];u&&!l&&(_d[o]=a)}}return a},BR={exports:{}};(function(r){var e=Z1,t=Q1,i=t("%Function.prototype.apply%"),n=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(n,i),o=t("%Object.getOwnPropertyDescriptor%",!0),a=t("%Object.defineProperty%",!0),l=t("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}r.exports=function(u){var d=s(e,n,arguments);if(o&&a){var f=o(d,"length");f.configurable&&a(d,"length",{value:1+l(0,u.length-(arguments.length-1))})}return d};var c=function(){return s(e,i,arguments)};a?a(r.exports,"apply",{value:c}):r.exports.apply=c})(BR);var WR=Q1,VR=BR.exports,iz=VR(WR("String.prototype.indexOf")),nz=function(e,t){var i=WR(e,!!t);return typeof i=="function"&&iz(e,".prototype.")>-1?VR(i):i},rz={},sz=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:rz}),oz=OH(sz),J1=typeof Map=="function"&&Map.prototype,eS=Object.getOwnPropertyDescriptor&&J1?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ob=J1&&eS&&typeof eS.get=="function"?eS.get:null,az=J1&&Map.prototype.forEach,tS=typeof Set=="function"&&Set.prototype,iS=Object.getOwnPropertyDescriptor&&tS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Fb=tS&&iS&&typeof iS.get=="function"?iS.get:null,lz=tS&&Set.prototype.forEach,cz=typeof WeakMap=="function"&&WeakMap.prototype,Zg=cz?WeakMap.prototype.has:null,hz=typeof WeakSet=="function"&&WeakSet.prototype,Yg=hz?WeakSet.prototype.has:null,uz=typeof WeakRef=="function"&&WeakRef.prototype,HR=uz?WeakRef.prototype.deref:null,dz=Boolean.prototype.valueOf,fz=Object.prototype.toString,gz=Function.prototype.toString,pz=String.prototype.match,nS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,rS=Object.getOwnPropertySymbols,sS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Xg=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mz=Object.prototype.propertyIsEnumerable,zR=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null),oS=oz.custom,aS=oS&&UR(oS)?oS:null,qn=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null,_z=function r(e,t,i,n){var s=t||{};if(nh(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nh(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=nh(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nh(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return KR(e,s);if(typeof e=="number")return e===0?1/0/e>0?"0":"-0":String(e);if(typeof e=="bigint")return String(e)+"n";var a=typeof s.depth=="undefined"?5:s.depth;if(typeof i=="undefined"&&(i=0),i>=a&&a>0&&typeof e=="object")return lS(e)?"[Array]":"[Object]";var l=Oz(s,i);if(typeof n=="undefined")n=[];else if(jR(n,e)>=0)return"[Circular]";function c(P,B,U){if(B&&(n=n.slice(),n.push(B)),U){var K={depth:s.depth};return nh(s,"quoteStyle")&&(K.quoteStyle=s.quoteStyle),r(P,K,i+1,n)}return r(P,s,i+1,n)}if(typeof e=="function"){var h=Dz(e),u=Bb(e,c);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(u.length>0?" { "+u.join(", ")+" }":"")}if(UR(e)){var d=Xg?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):sS.call(e);return typeof e=="object"&&!Xg?Qg(d):d}if(Rz(e)){for(var f="<"+String(e.nodeName).toLowerCase(),g=e.attributes||[],p=0;p",f}if(lS(e)){if(e.length===0)return"[]";var _=Bb(e,c);return l&&!Pz(_)?"["+hS(_,l)+"]":"[ "+_.join(", ")+" ]"}if(wz(e)){var v=Bb(e,c);return v.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+v.join(", ")+" }"}if(typeof e=="object"&&o){if(aS&&typeof e[aS]=="function")return e[aS]();if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ez(e)){var b=[];return az.call(e,function(P,B){b.push(c(B,e,!0)+" => "+c(P,e))}),qR("Map",Ob.call(e),b,l)}if(Tz(e)){var C=[];return lz.call(e,function(P){C.push(c(P,e))}),qR("Set",Fb.call(e),C,l)}if(Iz(e))return cS("WeakMap");if(Az(e))return cS("WeakSet");if(Nz(e))return cS("WeakRef");if(Sz(e))return Qg(c(Number(e)));if(xz(e))return Qg(c(nS.call(e)));if(Lz(e))return Qg(dz.call(e));if(yz(e))return Qg(c(String(e)));if(!vz(e)&&!Cz(e)){var S=Bb(e,c),x=zR?zR(e)===Object.prototype:e instanceof Object||e.constructor===Object,y=e instanceof Object?"":"null prototype",w=!x&&qn&&Object(e)===e&&qn in e?Nl(e).slice(8,-1):y?"Object":"",L=x||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",N=L+(w||y?"["+[].concat(w||[],y||[]).join(": ")+"] ":"");return S.length===0?N+"{}":l?N+"{"+hS(S,l)+"}":N+"{ "+S.join(", ")+" }"}return String(e)};function $R(r,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+r+i}function bz(r){return String(r).replace(/"/g,""")}function lS(r){return Nl(r)==="[object Array]"&&(!qn||!(typeof r=="object"&&qn in r))}function vz(r){return Nl(r)==="[object Date]"&&(!qn||!(typeof r=="object"&&qn in r))}function Cz(r){return Nl(r)==="[object RegExp]"&&(!qn||!(typeof r=="object"&&qn in r))}function wz(r){return Nl(r)==="[object Error]"&&(!qn||!(typeof r=="object"&&qn in r))}function yz(r){return Nl(r)==="[object String]"&&(!qn||!(typeof r=="object"&&qn in r))}function Sz(r){return Nl(r)==="[object Number]"&&(!qn||!(typeof r=="object"&&qn in r))}function Lz(r){return Nl(r)==="[object Boolean]"&&(!qn||!(typeof r=="object"&&qn in r))}function UR(r){if(Xg)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!sS)return!1;try{return sS.call(r),!0}catch{}return!1}function xz(r){if(!r||typeof r!="object"||!nS)return!1;try{return nS.call(r),!0}catch{}return!1}var kz=Object.prototype.hasOwnProperty||function(r){return r in this};function nh(r,e){return kz.call(r,e)}function Nl(r){return fz.call(r)}function Dz(r){if(r.name)return r.name;var e=pz.call(gz.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function jR(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return KR(r.slice(0,e.maxStringLength),e)+i}var n=r.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Mz);return $R(n,"single",e)}function Mz(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function Qg(r){return"Object("+r+")"}function cS(r){return r+" { ? }"}function qR(r,e,t,i){var n=i?hS(t,i):t.join(", ");return r+" ("+e+") {"+n+"}"}function Pz(r){for(var e=0;e=0)return!1;return!0}function Oz(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Array(r.indent+1).join(" ");else return null;return{base:t,prev:Array(e+1).join(t)}}function hS(r,e){if(r.length===0)return"";var t=` +`+e.prev+e.base;return t+r.join(","+t)+` +`+e.prev}function Bb(r,e){var t=lS(r),i=[];if(t){i.length=r.length;for(var n=0;n1;){var t=e.pop(),i=t.obj[t.prop];if(rh(i)){for(var n=[],s=0;s=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===Xz.RFC1738&&(c===40||c===41)){a+=o.charAt(l);continue}if(c<128){a=a+Eo[c];continue}if(c<2048){a=a+(Eo[192|c>>6]+Eo[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Eo[224|c>>12]+Eo[128|c>>6&63]+Eo[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|o.charCodeAt(l)&1023),a+=Eo[240|c>>18]+Eo[128|c>>12&63]+Eo[128|c>>6&63]+Eo[128|c&63]}return a},n$=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n0?_.join(",")||null:void 0}];else if(sh(a))C=a;else{var S=Object.keys(_);C=l?S.sort(l):S}for(var x=0;x0?f+d:""},vd=ZR,_S=Object.prototype.hasOwnProperty,p$=Array.isArray,wn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:vd.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},m$=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},eM=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},_$="utf8=%26%2310003%3B",b$="utf8=%E2%9C%93",v$=function(e,t){var i={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,o=n.split(t.delimiter,s),a=-1,l,c=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(g=p$(g)?[g]:g),_S.call(i,f)?i[f]=vd.combine(i[f],g):i[f]=g}return i},C$=function(r,e,t,i){for(var n=i?e:eM(e,t),s=r.length-1;s>=0;--s){var o,a=r[s];if(a==="[]"&&t.parseArrays)o=[].concat(n);else{o=t.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!t.parseArrays&&l===""?o={0:n}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(o=[],o[c]=n):o[l]=n}n=o}return n},w$=function(e,t,i,n){if(!!e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&o.exec(s),c=l?s.slice(0,l.index):s,h=[];if(c){if(!i.plainObjects&&_S.call(Object.prototype,c)&&!i.allowPrototypes)return;h.push(c)}for(var u=0;i.depth>0&&(l=a.exec(s))!==null&&u