From ea1927f2d255c0c7cd8591a548ebbb9515fc6f98 Mon Sep 17 00:00:00 2001 From: saqqdy Date: Tue, 14 Dec 2021 22:11:03 +0800 Subject: [PATCH] gitm status --- .vscode/settings.json | 3 +- README.md | 1 + ...acy.7cb6bbc1.js => add-legacy.3b1ecef6.js} | 2 +- app/www/assets/add.03c6260a.js | 1 - app/www/assets/add.4248df00.js | 1 + ...a98d93b8.js => gitmars-legacy.2382e5d8.js} | 2 +- app/www/assets/gitmars.9b0ab500.js | 1 - app/www/assets/gitmars.e9ec80d0.js | 1 + ...y.a953f163.js => index-legacy.444cfbb5.js} | 2 +- ...y.52a344d0.js => index-legacy.52f87b11.js} | 4 +- ...y.c1e63964.js => index-legacy.6940dcf8.js} | 2 +- ...y.4f080bfb.js => index-legacy.7466f371.js} | 2 +- .../{index.01f2dca5.js => index.1671ba4b.js} | 2 +- app/www/assets/index.3c42119d.js | 1 - app/www/assets/index.3e0a01f3.js | 1 + .../{index.9bccc055.js => index.43700ea2.js} | 2 +- app/www/assets/index.c11758ff.js | 1 + app/www/assets/index.e27c1182.js | 1 - ...cy.b99e267f.js => list-legacy.fd0d45b9.js} | 2 +- .../{list.6b9b3f4f.js => list.21a88cbc.js} | 2 +- app/www/assets/polyfills-legacy.d226e43f.js | 1 + app/www/assets/polyfills-legacy.f1bc0338.js | 1 - ...y.f8e0791a.js => tasks-legacy.78305a13.js} | 2 +- .../{tasks.b0b5155f.js => tasks.ffedb46b.js} | 2 +- ...> use-current-instance-legacy.c588a2fb.js} | 2 +- .../assets/use-current-instance.41699c28.js | 1 - .../assets/use-current-instance.7f019932.js | 1 + .../core-js_3.19.1.js-legacy.1132431e.js | 1 - .../vendor/core-js_3.19.1.js.10a7a3d5.js | 1 - .../core-js_3.19.2.js-legacy.a4aca070.js | 1 + .../vendor/core-js_3.19.2.js.6f042051.js | 1 + ...nt-plus_1.2.0-beta.3.js-legacy.981a4862.js | 1 - .../element-plus_1.2.0-beta.3.js.01fd1cfa.js | 1 - .../element-plus_1.2.0-beta.3.js.fc13d639.css | 1 - ...nt-plus_1.2.0-beta.4.js-legacy.bb515e1f.js | 1 + .../element-plus_1.2.0-beta.4.js.16579006.js | 1 + .../element-plus_1.2.0-beta.4.js.33f41bca.css | 1 + ...js => js-cool_2.3.0.js-legacy.73573478.js} | 2 +- ...71836d.js => js-cool_2.3.0.js.13999879.js} | 2 +- .../vue-router_4.0.12.js-legacy.6506f673.js | 7 +++ .../vue-router_4.0.12.js-legacy.f492a5ac.js | 6 --- .../vendor/vue-router_4.0.12.js.129523b1.js | 6 --- .../vendor/vue-router_4.0.12.js.5ed4c9c6.js | 6 +++ .../vendor/vue_3.2.23.js-legacy.a1ad5e32.js | 1 + .../vendor/vue_3.2.23.js-legacy.cab6a317.js | 1 - ....9f5d2e7e.js => vue_3.2.23.js.2057d383.js} | 2 +- .../vendor/vuex_4.0.2.js-legacy.79be764b.js | 1 - .../vendor/vuex_4.0.2.js-legacy.8d3c9ec4.js | 6 +++ .../assets/vendor/vuex_4.0.2.js.9156b156.js | 6 --- .../assets/vendor/vuex_4.0.2.js.ba8051b7.js | 6 +++ app/www/index.html | 20 ++++---- bin/conf/status.ts | 36 +++++++++++++ bin/gitm-status.ts | 51 +++++++++++++++++++ bin/gitm.ts | 2 + docs/api/index.md | 14 +++++ docs/changelog.md | 4 ++ docs/guide/index.md | 1 + lib/conf/status.js | 31 +++++++++++ lib/gitm-status.js | 40 +++++++++++++++ lib/gitm.js | 3 +- 60 files changed, 248 insertions(+), 60 deletions(-) rename app/www/assets/{add-legacy.7cb6bbc1.js => add-legacy.3b1ecef6.js} (83%) delete mode 100644 app/www/assets/add.03c6260a.js create mode 100644 app/www/assets/add.4248df00.js rename app/www/assets/{gitmars-legacy.a98d93b8.js => gitmars-legacy.2382e5d8.js} (59%) delete mode 100644 app/www/assets/gitmars.9b0ab500.js create mode 100644 app/www/assets/gitmars.e9ec80d0.js rename app/www/assets/{index-legacy.a953f163.js => index-legacy.444cfbb5.js} (77%) rename app/www/assets/{index-legacy.52a344d0.js => index-legacy.52f87b11.js} (71%) rename app/www/assets/{index-legacy.c1e63964.js => index-legacy.6940dcf8.js} (90%) rename app/www/assets/{index-legacy.4f080bfb.js => index-legacy.7466f371.js} (54%) rename app/www/assets/{index.01f2dca5.js => index.1671ba4b.js} (69%) delete mode 100644 app/www/assets/index.3c42119d.js create mode 100644 app/www/assets/index.3e0a01f3.js rename app/www/assets/{index.9bccc055.js => index.43700ea2.js} (83%) create mode 100644 app/www/assets/index.c11758ff.js delete mode 100644 app/www/assets/index.e27c1182.js rename app/www/assets/{list-legacy.b99e267f.js => list-legacy.fd0d45b9.js} (77%) rename app/www/assets/{list.6b9b3f4f.js => list.21a88cbc.js} (76%) create mode 100644 app/www/assets/polyfills-legacy.d226e43f.js delete mode 100644 app/www/assets/polyfills-legacy.f1bc0338.js rename app/www/assets/{tasks-legacy.f8e0791a.js => tasks-legacy.78305a13.js} (91%) rename app/www/assets/{tasks.b0b5155f.js => tasks.ffedb46b.js} (60%) rename app/www/assets/{use-current-instance-legacy.88226956.js => use-current-instance-legacy.c588a2fb.js} (64%) delete mode 100644 app/www/assets/use-current-instance.41699c28.js create mode 100644 app/www/assets/use-current-instance.7f019932.js delete mode 100644 app/www/assets/vendor/core-js_3.19.1.js-legacy.1132431e.js delete mode 100644 app/www/assets/vendor/core-js_3.19.1.js.10a7a3d5.js create mode 100644 app/www/assets/vendor/core-js_3.19.2.js-legacy.a4aca070.js create mode 100644 app/www/assets/vendor/core-js_3.19.2.js.6f042051.js delete mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js-legacy.981a4862.js delete mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js delete mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css create mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.4.js-legacy.bb515e1f.js create mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.4.js.16579006.js create mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.4.js.33f41bca.css rename app/www/assets/vendor/{js-cool_2.3.0.js-legacy.a3236d92.js => js-cool_2.3.0.js-legacy.73573478.js} (97%) rename app/www/assets/vendor/{js-cool_2.3.0.js.f671836d.js => js-cool_2.3.0.js.13999879.js} (98%) create mode 100644 app/www/assets/vendor/vue-router_4.0.12.js-legacy.6506f673.js delete mode 100644 app/www/assets/vendor/vue-router_4.0.12.js-legacy.f492a5ac.js delete mode 100644 app/www/assets/vendor/vue-router_4.0.12.js.129523b1.js create mode 100644 app/www/assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js create mode 100644 app/www/assets/vendor/vue_3.2.23.js-legacy.a1ad5e32.js delete mode 100644 app/www/assets/vendor/vue_3.2.23.js-legacy.cab6a317.js rename app/www/assets/vendor/{vue_3.2.23.js.9f5d2e7e.js => vue_3.2.23.js.2057d383.js} (99%) delete mode 100644 app/www/assets/vendor/vuex_4.0.2.js-legacy.79be764b.js create mode 100644 app/www/assets/vendor/vuex_4.0.2.js-legacy.8d3c9ec4.js delete mode 100644 app/www/assets/vendor/vuex_4.0.2.js.9156b156.js create mode 100644 app/www/assets/vendor/vuex_4.0.2.js.ba8051b7.js create mode 100644 bin/conf/status.ts create mode 100755 bin/gitm-status.ts create mode 100644 lib/conf/status.js create mode 100644 lib/gitm-status.js diff --git a/.vscode/settings.json b/.vscode/settings.json index 8038ea20..f33b4dbb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -94,7 +94,8 @@ "uuidv4", "utf-8", "iid", - "columnify" + "columnify", + "untracked" ], "typescript.tsdk": "node_modules/typescript/lib", "editor.codeActionsOnSave": { diff --git a/README.md b/README.md index 07740665..0296b279 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ gitm copy --help - 撤销提交 [gitm revert](http://www.saqqdy.com/gitmars/api/#gitm-revert) - 撤回某次提交记录或者撤回谋条分支的合并记录 [gitm undo](http://www.saqqdy.com/gitmars/api/#gitm-undo) - 重做某次提交记录或者重做谋条分支的合并记录 [gitm redo](http://www.saqqdy.com/gitmars/api/#gitm-redo) +- 查看当前分支状态 [gitm status](http://www.saqqdy.com/gitmars/api/#gitm-status) - 升级 gitmars [gitm upgrade](http://www.saqqdy.com/gitmars/api/#gitm-upgrade) - 构建 Jenkins [gitm build](http://www.saqqdy.com/gitmars/api/#gitm-build) - 解除软链接 [gitm unlink](http://www.saqqdy.com/gitmars/api/#gitm-unlink) diff --git a/app/www/assets/add-legacy.7cb6bbc1.js b/app/www/assets/add-legacy.3b1ecef6.js similarity index 83% rename from app/www/assets/add-legacy.7cb6bbc1.js rename to app/www/assets/add-legacy.3b1ecef6.js index 09c6d3a4..8c1c0ad5 100644 --- a/app/www/assets/add-legacy.7cb6bbc1.js +++ b/app/www/assets/add-legacy.3b1ecef6.js @@ -1 +1 @@ -!function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function n(n){for(var a=1;aa in s?e(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;import{q as d,V as i,ag as p,s as j,v as c,J as m,G as l,ab as v,u as f,ah as u,ai as b,a5 as _}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";import{u as h,b as y}from"./vendor/vue-router_4.0.12.js.129523b1.js";import{_ as x,u as g}from"./index.3c42119d.js";import{u as w}from"./use-current-instance.41699c28.js";import"./vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.9156b156.js";const O=e=>(u("data-v-f48e2908"),e=e(),b(),e),P={class:"project-add"},q={class:"content"},k=O((()=>m("h2",null,"导入项目",-1))),I={class:"fold"},U=[O((()=>m("span",{class:"iconfont icon-plus-square-fill"},null,-1))),_("导入该项目")];const V=d(($=((e,s)=>{for(var a in s||(s={}))o.call(s,a)&&n(e,a,s[a]);if(r)for(var a of r(s))t.call(s,a)&&n(e,a,s[a]);return e})({},{name:"ProjectAdd"}),s($,a({setup:function(e,{expose:s}){const{globalProperties:{$axios:a,$message:r}}=w(),o=h();y();const t=i({path:"/Users/saqqdy/www/saqqdy/gitmars"}),n=async()=>{t.path||alert("请输入项目完整路径"),await new Promise(((e,s)=>{a({url:"/common/project/check",data:{path:t.path}}).then((({data:{code:s,message:a}={}})=>{0!==s?(r({message:a,type:"error"}),e(!1)):e(!0)})).finally((()=>{e(!1)}))}))&&a({url:"/common/project/add",type:"post",data:{path:t.path}}).then((()=>{r({message:"操作成功!",type:"success"}),o.push("/project/list")}))},{enter:d}=g();return p((()=>{d.value&&n()})),s({form:t,add:n}),(e,s)=>(j(),c("div",P,[m("div",q,[k,m("div",I,[l(m("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>f(t).path=e),placeholder:"请输入项目完整路径"},null,512),[[v,f(t).path,void 0,{trim:!0}]])]),m("div",{class:"btn"},[m("a",{class:"link",href:"javascript:;",onClick:n,type:"button"},U)])])]))}}))));var $,A=x(V,[["__scopeId","data-v-f48e2908"]]);export{A as default}; diff --git a/app/www/assets/add.4248df00.js b/app/www/assets/add.4248df00.js new file mode 100644 index 00000000..a3b60430 --- /dev/null +++ b/app/www/assets/add.4248df00.js @@ -0,0 +1 @@ +var e=Object.defineProperty,s=Object.defineProperties,a=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(s,a,r)=>a in s?e(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;import{q as d,p as i,af as p,s as j,v as c,J as m,G as l,aa as v,u as f,ag as u,ah as b,a4 as _}from"./vendor/vue_3.2.23.js.2057d383.js";import{u as h,b as y}from"./vendor/vue-router_4.0.12.js.5ed4c9c6.js";import{u as x}from"./vendor/element-plus_1.2.0-beta.4.js.16579006.js";import{u as g}from"./use-current-instance.7f019932.js";import{_ as w}from"./index.3e0a01f3.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.13999879.js";import"./vendor/core-js_3.19.2.js.6f042051.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.ba8051b7.js";const O=e=>(u("data-v-f48e2908"),e=e(),b(),e),P={class:"project-add"},q={class:"content"},k=O((()=>m("h2",null,"导入项目",-1))),I={class:"fold"},U=[O((()=>m("span",{class:"iconfont icon-plus-square-fill"},null,-1))),_("导入该项目")];const $=d((A=((e,s)=>{for(var a in s||(s={}))o.call(s,a)&&n(e,a,s[a]);if(r)for(var a of r(s))t.call(s,a)&&n(e,a,s[a]);return e})({},{name:"ProjectAdd"}),s(A,a({setup:function(e,{expose:s}){const{globalProperties:{$axios:a,$message:r}}=g(),o=h();y();const t=i({path:"/Users/saqqdy/www/saqqdy/gitmars"}),n=async()=>{t.path||alert("请输入项目完整路径"),await new Promise(((e,s)=>{a({url:"/common/project/check",data:{path:t.path}}).then((({data:{code:s,message:a}={}})=>{0!==s?(r({message:a,type:"error"}),e(!1)):e(!0)})).finally((()=>{e(!1)}))}))&&a({url:"/common/project/add",type:"post",data:{path:t.path}}).then((()=>{r({message:"操作成功!",type:"success"}),o.push("/project/list")}))},{enter:d}=x();return p((()=>{d.value&&n()})),s({form:t,add:n}),(e,s)=>(j(),c("div",P,[m("div",q,[k,m("div",I,[l(m("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>f(t).path=e),placeholder:"请输入项目完整路径"},null,512),[[v,f(t).path,void 0,{trim:!0}]])]),m("div",{class:"btn"},[m("a",{class:"link",href:"javascript:;",onClick:n,type:"button"},U)])])]))}}))));var A,C=w($,[["__scopeId","data-v-f48e2908"]]);export{C as default}; diff --git a/app/www/assets/gitmars-legacy.a98d93b8.js b/app/www/assets/gitmars-legacy.2382e5d8.js similarity index 59% rename from app/www/assets/gitmars-legacy.a98d93b8.js rename to app/www/assets/gitmars-legacy.2382e5d8.js index 99e8108b..cc77aac8 100644 --- a/app/www/assets/gitmars-legacy.a98d93b8.js +++ b/app/www/assets/gitmars-legacy.2382e5d8.js @@ -1 +1 @@ -!function(){function e(e,n,t,o,a,r,i){try{var l=e[r](i),u=l.value}catch(d){return void t(d)}l.done?n(u):Promise.resolve(u).then(o,a)}function n(n){return function(){var t=this,o=arguments;return new Promise((function(a,r){var i=n.apply(t,o);function l(n){e(i,a,r,l,u,"next",n)}function u(n){e(i,a,r,l,u,"throw",n)}l(void 0)}))}}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(u)throw i}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t0&&(m=m.substr(1)),f&&d.push(m))}}}catch(b){c.e(b)}finally{c.f()}var p,g=o(a);try{for(g.s();!(p=g.n()).done;){var v=p.value;v.value&&i.push(v.value)}}catch(b){g.e(b)}finally{g.f()}return"".concat(r.execName," ").concat(u," ").concat(i.join(" ")," ").concat(d.join("")," ").concat(l.join(" ")).replace(/[\s]{2,}/g," ")}(e)}),{deep:!0,immediate:!0}),t({curBranch:d,cmd:i,exec:c}),function(e,n){var t=f("v3-button");return p(),g("div",J,[v("span",null,j(i.value),1),q(t,{type:"primary",size:"small",onClick:k(c,["stop"]),plain:""},{default:V((function(){return[K]})),_:1},8,["onClick"])])}}}));W="undefined"!=typeof window?window:global,Q={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型",options:["release","bugfix"],value:""}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--combine")&&e.includes("--prod")?t(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}}},"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=Q:"object"===t(e)?e.cmdConfig=Q:(W.gitmarsCmdConfig||(W.gitmarsCmdConfig={}),W.gitmarsCmdConfig.admin=Q);var Z=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:function(e,n,t){e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?t(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?t():t(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var te=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"cleanbranch",short:"clb",args:[{required:!1,name:"branches",variadic:!0,validator:function(e,n,t){t()},description:"指定要清理的分支"}],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1,value:!0},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--target [target]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--target",negate:!1,description:"需要检测是否合过的目标分支名,不传默认是develop和release",defaultValue:null,value:"dev,release"},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?t(new Error("add和commit需要同时选择")):t():t(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var re=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var le=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","undo","redo","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","cleanbranch","clean","revert","link","unlink","postmsg"],value:""}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var de=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var se=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"log",short:"lg",args:[{required:!1,name:"branch",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--json",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--json",negate:!1,description:"是否以json格式输出日志,默认表格方式",defaultValue:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var me=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要恢复的撤销记录"}],options:[{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var be=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var he=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--calc",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calc",negate:!1,description:"清理当前分支撤销失败的记录",recommend:!1},{flags:"--calcAll",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calcAll",negate:!1,description:"清理所有分支撤销失败的记录",recommend:!1}],validatorOpts:function(e,n,t){(e.includes("--calc")||e.includes("--calcAll"))&&e.length>1?t(new Error("--calc和--calcAll只能单独使用")):t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var je=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var xe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var Ve=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);var Ce={"../../../../lib/conf/admin.js":Z,"../../../../lib/conf/branch.js":ee,"../../../../lib/conf/build.js":ne,"../../../../lib/conf/clean.js":te,"../../../../lib/conf/cleanbranch.js":oe,"../../../../lib/conf/combine.js":ae,"../../../../lib/conf/continue.js":re,"../../../../lib/conf/copy.js":ie,"../../../../lib/conf/end.js":le,"../../../../lib/conf/get.js":ue,"../../../../lib/conf/go.js":de,"../../../../lib/conf/hook.js":ce,"../../../../lib/conf/link.js":se,"../../../../lib/conf/log.js":me,"../../../../lib/conf/postmsg.js":fe,"../../../../lib/conf/redo.js":pe,"../../../../lib/conf/revert.js":ge,"../../../../lib/conf/run.js":ve,"../../../../lib/conf/save.js":be,"../../../../lib/conf/start.js":ye,"../../../../lib/conf/ui.js":he,"../../../../lib/conf/undo.js":je,"../../../../lib/conf/unlink.js":xe,"../../../../lib/conf/update.js":Ve,"../../../../lib/conf/upgrade.js":Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"))},we={};for(var _e in Ce){var qe=_e.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(Ce[_e]).length){we=window.gitmarsCmdConfig;break}we[qe]=Ce[_e]}var ke=we,Oe={class:"box row justify-center align-center"},Se=h("   /   ");var Ee=d(i(i({},{inheritAttrs:!1}),{},{setup:function(e,n){var t=n.expose,o=w(),a=c({type:"feature",name:""});return L(),O((function(){o.value.focus()})),t({data:a,submit:function(){return new Promise((function(e,n){if(!a.type||!a.name)return D({message:"请填写分支类型和名称",type:"warning"}),void n();e(s(a))}))}}),function(e,n){return p(),g("div",Oe,[q(C(P),{class:"col-6",modelValue:C(a).type,"onUpdate:modelValue":n[0]||(n[0]=function(e){return C(a).type=e}),placeholder:"请选择分支类型",clearable:""},{default:V((function(){return[q(C(I),{label:"feature",value:"feature"}),q(C(I),{label:"bugfix",value:"bugfix"}),q(C(I),{label:"support",value:"support"})]})),_:1},8,["modelValue"]),Se,q(C(R),{class:"col-18",ref:function(e,n){n.name=e,o.value=e},modelValue:C(a).name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return C(a).name=e}),placeholder:"分支名称"},null,8,["modelValue"])])}}})),Ae=d({name:"ControlGitmars",components:{Xterm:T,Command:F,MapCommand:Y},setup:function(){return n(regeneratorRuntime.mark((function e(){var t,o,i,l,d,s,m,f,p,g,v,b,y,h,j,x,V,C,w,q,k,A,z,M,U,T;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=S($,{}),o=t.getTerminal,t.fitAddon,i=S(B,{}),l=i.socket,d=i.socketGitmars,s=L(),m=s.globalProperties,f=m.$axios,p=m.$box,g=a(),v=r(),b=window.innerWidth,y=window.innerHeight,h=c({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),j=_((function(){return"gitmars-"+h.project.id})),x=c(ke),V=_((function(){var e={bugfix:[],feature:[],others:[]};return h.branches.forEach((function(n){n.indexOf("bugfix/")>-1?e.bugfix.push(n):n.indexOf("feature/")>-1?e.feature.push(n):e.others.push(n)})),e})),O((function(){d.emit("create",{name:h.project.id,cwd:h.project.path}),d.on(h.project.id+"-branch",(function(e){h&&(h.branches=e)})),d.on(h.project.id+"-current",(function(e){h&&(h.current=e)}))})),u((function(){d.emit("remove",h.project.id)})),E((function(e){return h.error=e,!0})),C=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/common/project/list",data:{id:v.query.id}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/list",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/current",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(e){h.terminal&&l.emit(h.terminal.name+"-input","".concat(e,"\r"))},e.next=20,C();case 20:return h.project=e.sent,e.next=23,f({url:"/cmd/cd",data:{dir:h.project.path}});case 23:return e.next=25,w();case 25:return h.branches=e.sent,e.next=28,q();case 28:return h.current=e.sent,h.terminal=o&&o(j.value,h.project.path,parseInt(String((b-60-300-32)/7.05)),parseInt(String((y-64-32-34-400)/17.6))),h.ready=!0,A=function(){console.log("handleItemClick",666)},z=function(){console.log("handleChange",444)},M=function(){var e;p(Ee,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:(e=n(regeneratorRuntime.mark((function e(n){var t,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.component.proxy.submit();case 2:return t=e.sent,o=t.type,a=t.name,k("gitm start ".concat(o," ").concat(a)),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),function(n){return e.apply(this,arguments)})})},U=function(){g.push("/project/list")},T=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("git checkout ".concat(n)),e.next=3,C();case 3:h.project=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.abrupt("return",{data:h,terminalID:j,exec:k,commandValue:x,route:v,branchList:V,handleItemClick:A,handleChange:z,createBranch:M,back:U,checkout:T});case 37:case"end":return e.stop()}}),e)})))()}}),ze=function(e){return z("data-v-e34e4e84"),e=e(),M(),e},Me={key:0,class:"page"},Ue=h(" Gitmars工作流 "),Te=h("创建分支"),Ie=h("返回"),Pe={class:"cont"},Re={class:"nav"},De={key:0,class:"bugfix"},Le=ze((function(){return v("dt",null,"bug分支",-1)})),Ne={class:"name"},$e=h("进入"),Be={key:1,class:"feature"},Ge=ze((function(){return v("dt",null,"feature分支",-1)})),Xe={class:"name"},He=h("进入"),Fe={key:2,class:"others"},Je=ze((function(){return v("dt",null,"其他分支",-1)})),Ke={class:"name"},We=h("进入"),Qe={class:"main"},Ye=ze((function(){return v("span",{class:"iconfont icon-layout"},null,-1)})),Ze={class:"cmd"},en={class:"section"},nn=ze((function(){return v("h4",null,"工作流",-1)})),tn={class:"section"},on=ze((function(){return v("h4",null,"实用工具",-1)}));e("default",N(Ae,[["render",function(e,n,t,o,a,r){var i=f("v3-button"),l=f("MapCommand"),u=f("Command"),d=f("v3-collapse-item"),c=f("v3-collapse"),s=f("Xterm");return e.data.ready?(p(),g("div",Me,[v("h1",null,[Ue,v("p",null,[q(i,{type:"primary",onClick:e.createBranch},{default:V((function(){return[Te]})),_:1},8,["onClick"]),q(i,{type:"default",onClick:e.back},{default:V((function(){return[Ie]})),_:1},8,["onClick"])])]),v("div",Pe,[v("div",Re,[e.branchList.bugfix.length?(p(),g("dl",De,[Le,(p(!0),g(b,null,y(e.branchList.bugfix,(function(n){return p(),g("dd",{class:U({active:n===e.data.current}),key:n},[v("span",Ne,j(n),1),n!==e.data.current?(p(),x(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:V((function(){return[$e]})),_:2},1032,["onClick"])):A("",!0)],2)})),128))])):A("",!0),e.branchList.feature.length?(p(),g("dl",Be,[Ge,(p(!0),g(b,null,y(e.branchList.feature,(function(n){return p(),g("dd",{class:U({active:n===e.data.current}),key:n},[v("span",Xe,j(n),1),n!==e.data.current?(p(),x(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:V((function(){return[He]})),_:2},1032,["onClick"])):A("",!0)],2)})),128))])):A("",!0),e.branchList.others.length?(p(),g("dl",Fe,[Je,(p(!0),g(b,null,y(e.branchList.others,(function(n){return p(),g("dd",{class:U({active:n===e.data.current}),key:n},[v("span",Ke,j(n),1),n!==e.data.current?(p(),x(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:V((function(){return[We]})),_:2},1032,["onClick"])):A("",!0)],2)})),128))])):A("",!0)]),v("div",Qe,[v("h3",null,[v("span",null,[Ye,h(" 当前分支:"+j(e.data.current),1)]),v("p",null,j(e.data.project.path),1)]),v("div",Ze,[v("div",en,[nn,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[9]||(n[9]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:V((function(){return[q(d,{name:"1"},{title:V((function(){return[q(l,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.combine,"onUpdate:modelValue":n[0]||(n[0]=function(n){return e.commandValue.combine=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"2"},{title:V((function(){return[q(l,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.update,"onUpdate:modelValue":n[1]||(n[1]=function(n){return e.commandValue.update=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"3"},{title:V((function(){return[q(l,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.build,"onUpdate:modelValue":n[2]||(n[2]=function(n){return e.commandValue.build=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"4"},{title:V((function(){return[q(l,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.continue,"onUpdate:modelValue":n[3]||(n[3]=function(n){return e.commandValue.continue=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"5"},{title:V((function(){return[q(l,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.end,"onUpdate:modelValue":n[4]||(n[4]=function(n){return e.commandValue.end=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"6"},{title:V((function(){return[q(l,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.branch,"onUpdate:modelValue":n[5]||(n[5]=function(n){return e.commandValue.branch=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"7"},{title:V((function(){return[q(l,{value:e.commandValue.undo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.undo,"onUpdate:modelValue":n[6]||(n[6]=function(n){return e.commandValue.undo=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"8"},{title:V((function(){return[q(l,{value:e.commandValue.redo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.redo,"onUpdate:modelValue":n[7]||(n[7]=function(n){return e.commandValue.redo=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"9"},{title:V((function(){return[q(l,{value:e.commandValue.admin.publish,current:e.data.current,execName:"gitm admin",onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.admin.publish,"onUpdate:modelValue":n[8]||(n[8]=function(n){return e.commandValue.admin.publish=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])]),v("div",tn,[on,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[19]||(n[19]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:V((function(){return[q(d,{name:"11"},{title:V((function(){return[q(l,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.save,"onUpdate:modelValue":n[10]||(n[10]=function(n){return e.commandValue.save=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"12"},{title:V((function(){return[q(l,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.get,"onUpdate:modelValue":n[11]||(n[11]=function(n){return e.commandValue.get=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"13"},{title:V((function(){return[q(l,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.copy,"onUpdate:modelValue":n[12]||(n[12]=function(n){return e.commandValue.copy=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"14"},{title:V((function(){return[q(l,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.revert,"onUpdate:modelValue":n[13]||(n[13]=function(n){return e.commandValue.revert=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"15"},{title:V((function(){return[q(l,{value:e.commandValue.cleanbranch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.cleanbranch,"onUpdate:modelValue":n[14]||(n[14]=function(n){return e.commandValue.cleanbranch=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"16"},{title:V((function(){return[q(l,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.link,"onUpdate:modelValue":n[15]||(n[15]=function(n){return e.commandValue.link=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"17"},{title:V((function(){return[q(l,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":n[16]||(n[16]=function(n){return e.commandValue.unlink=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"18"},{title:V((function(){return[q(l,{value:e.commandValue.clean,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.clean,"onUpdate:modelValue":n[17]||(n[17]=function(n){return e.commandValue.clean=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"19"},{title:V((function(){return[q(l,{value:e.commandValue.log,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:V((function(){return[q(u,{modelValue:e.commandValue.log,"onUpdate:modelValue":n[18]||(n[18]=function(n){return e.commandValue.log=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])])]),e.data.project?(p(),x(s,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):A("",!0)])])])):A("",!0)}],["__scopeId","data-v-e34e4e84"]]))}}}))}(); +!function(){function e(e,n,t,o,a,r,i){try{var l=e[r](i),u=l.value}catch(d){return void t(d)}l.done?n(u):Promise.resolve(u).then(o,a)}function n(n){return function(){var t=this,o=arguments;return new Promise((function(a,r){var i=n.apply(t,o);function l(n){e(i,a,r,l,u,"next",n)}function u(n){e(i,a,r,l,u,"throw",n)}l(void 0)}))}}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(u)throw i}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t0&&(m=m.substr(1)),f&&d.push(m))}}}catch(b){c.e(b)}finally{c.f()}var g,p=o(a);try{for(p.s();!(g=p.n()).done;){var v=g.value;v.value&&i.push(v.value)}}catch(b){p.e(b)}finally{p.f()}return"".concat(r.execName," ").concat(u," ").concat(i.join(" ")," ").concat(d.join("")," ").concat(l.join(" ")).replace(/[\s]{2,}/g," ")}(e)}),{deep:!0,immediate:!0}),t({curBranch:d,cmd:i,exec:c}),function(e,n){var t=f("v3-button");return g(),p("div",J,[v("span",null,j(i.value),1),q(t,{type:"primary",size:"small",onClick:k(c,["stop"]),plain:""},{default:C((function(){return[K]})),_:1},8,["onClick"])])}}}));W="undefined"!=typeof window?window:global,Q={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型",options:["release","bugfix"],value:""}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--combine")&&e.includes("--prod")?t(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}}},"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=Q:"object"===t(e)?e.cmdConfig=Q:(W.gitmarsCmdConfig||(W.gitmarsCmdConfig={}),W.gitmarsCmdConfig.admin=Q);var Z=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:function(e,n,t){e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?t(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?t():t(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var te=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"cleanbranch",short:"clb",args:[{required:!1,name:"branches",variadic:!0,validator:function(e,n,t){t()},description:"指定要清理的分支"}],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1,value:!0},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--target [target]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--target",negate:!1,description:"需要检测是否合过的目标分支名,不传默认是develop和release",defaultValue:null,value:"dev,release"},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?t(new Error("add和commit需要同时选择")):t():t(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var re=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var le=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","undo","redo","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","cleanbranch","clean","revert","link","unlink","postmsg"],value:""}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var de=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var se=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"log",short:"lg",args:[{required:!1,name:"branch",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--json",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--json",negate:!1,description:"是否以json格式输出日志,默认表格方式",defaultValue:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var me=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要恢复的撤销记录"}],options:[{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var be=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"status",short:"",args:[],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.status=o)}("undefined"!=typeof window?window:global);var he=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var je=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--calc",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calc",negate:!1,description:"清理当前分支撤销失败的记录",recommend:!1},{flags:"--calcAll",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calcAll",negate:!1,description:"清理所有分支撤销失败的记录",recommend:!1}],validatorOpts:function(e,n,t){(e.includes("--calc")||e.includes("--calcAll"))&&e.length>1?t(new Error("--calc和--calcAll只能单独使用")):t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var xe=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var Ve=Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);var we={"../../../../lib/conf/admin.js":Z,"../../../../lib/conf/branch.js":ee,"../../../../lib/conf/build.js":ne,"../../../../lib/conf/clean.js":te,"../../../../lib/conf/cleanbranch.js":oe,"../../../../lib/conf/combine.js":ae,"../../../../lib/conf/continue.js":re,"../../../../lib/conf/copy.js":ie,"../../../../lib/conf/end.js":le,"../../../../lib/conf/get.js":ue,"../../../../lib/conf/go.js":de,"../../../../lib/conf/hook.js":ce,"../../../../lib/conf/link.js":se,"../../../../lib/conf/log.js":me,"../../../../lib/conf/postmsg.js":fe,"../../../../lib/conf/redo.js":ge,"../../../../lib/conf/revert.js":pe,"../../../../lib/conf/run.js":ve,"../../../../lib/conf/save.js":be,"../../../../lib/conf/start.js":ye,"../../../../lib/conf/status.js":he,"../../../../lib/conf/ui.js":je,"../../../../lib/conf/undo.js":xe,"../../../../lib/conf/unlink.js":Ce,"../../../../lib/conf/update.js":Ve,"../../../../lib/conf/upgrade.js":Object.freeze(l({__proto__:null},Symbol.toStringTag,"Module"))},_e={};for(var qe in we){var ke=qe.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(we[qe]).length){_e=window.gitmarsCmdConfig;break}_e[ke]=we[qe]}var Oe=_e,Se={class:"box row justify-center align-center"},Ee=h("   /   ");var Ae=d(i(i({},{inheritAttrs:!1}),{},{setup:function(e,n){var t=n.expose,o=w(),a=c({type:"feature",name:""});return L(),O((function(){o.value.focus()})),t({data:a,submit:function(){return new Promise((function(e,n){if(!a.type||!a.name)return D({message:"请填写分支类型和名称",type:"warning"}),void n();e(s(a))}))}}),function(e,n){return g(),p("div",Se,[q(V(P),{class:"col-6",modelValue:V(a).type,"onUpdate:modelValue":n[0]||(n[0]=function(e){return V(a).type=e}),placeholder:"请选择分支类型",clearable:""},{default:C((function(){return[q(V(I),{label:"feature",value:"feature"}),q(V(I),{label:"bugfix",value:"bugfix"}),q(V(I),{label:"support",value:"support"})]})),_:1},8,["modelValue"]),Ee,q(V(R),{class:"col-18",ref:function(e,n){n.name=e,o.value=e},modelValue:V(a).name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return V(a).name=e}),placeholder:"分支名称"},null,8,["modelValue"])])}}})),ze=d({name:"ControlGitmars",components:{Xterm:T,Command:F,MapCommand:Y},setup:function(){return n(regeneratorRuntime.mark((function e(){var t,o,i,l,d,s,m,f,g,p,v,b,y,h,j,x,C,V,w,q,k,A,z,M,U,T;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=S($,{}),o=t.getTerminal,t.fitAddon,i=S(B,{}),l=i.socket,d=i.socketGitmars,s=L(),m=s.globalProperties,f=m.$axios,g=m.$box,p=a(),v=r(),b=window.innerWidth,y=window.innerHeight,h=c({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),j=_((function(){return"gitmars-"+h.project.id})),x=c(Oe),C=_((function(){var e={bugfix:[],feature:[],others:[]};return h.branches.forEach((function(n){n.indexOf("bugfix/")>-1?e.bugfix.push(n):n.indexOf("feature/")>-1?e.feature.push(n):e.others.push(n)})),e})),O((function(){d.emit("create",{name:h.project.id,cwd:h.project.path}),d.on(h.project.id+"-branch",(function(e){h&&(h.branches=e)})),d.on(h.project.id+"-current",(function(e){h&&(h.current=e)}))})),u((function(){d.emit("remove",h.project.id)})),E((function(e){return h.error=e,!0})),V=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/common/project/list",data:{id:v.query.id}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/list",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/current",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(e){h.terminal&&l.emit(h.terminal.name+"-input","".concat(e,"\r"))},e.next=20,V();case 20:return h.project=e.sent,e.next=23,f({url:"/cmd/cd",data:{dir:h.project.path}});case 23:return e.next=25,w();case 25:return h.branches=e.sent,e.next=28,q();case 28:return h.current=e.sent,h.terminal=o&&o(j.value,h.project.path,parseInt(String((b-60-300-32)/7.05)),parseInt(String((y-64-32-34-400)/17.6))),h.ready=!0,A=function(){console.log("handleItemClick",666)},z=function(){console.log("handleChange",444)},M=function(){var e;g(Ae,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:(e=n(regeneratorRuntime.mark((function e(n){var t,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.component.proxy.submit();case 2:return t=e.sent,o=t.type,a=t.name,k("gitm start ".concat(o," ").concat(a)),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),function(n){return e.apply(this,arguments)})})},U=function(){p.push("/project/list")},T=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("git checkout ".concat(n)),e.next=3,V();case 3:h.project=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.abrupt("return",{data:h,terminalID:j,exec:k,commandValue:x,route:v,branchList:C,handleItemClick:A,handleChange:z,createBranch:M,back:U,checkout:T});case 37:case"end":return e.stop()}}),e)})))()}}),Me=function(e){return z("data-v-e34e4e84"),e=e(),M(),e},Ue={key:0,class:"page"},Te=h(" Gitmars工作流 "),Ie=h("创建分支"),Pe=h("返回"),Re={class:"cont"},De={class:"nav"},Le={key:0,class:"bugfix"},Ne=Me((function(){return v("dt",null,"bug分支",-1)})),$e={class:"name"},Be=h("进入"),Ge={key:1,class:"feature"},Xe=Me((function(){return v("dt",null,"feature分支",-1)})),He={class:"name"},Fe=h("进入"),Je={key:2,class:"others"},Ke=Me((function(){return v("dt",null,"其他分支",-1)})),We={class:"name"},Qe=h("进入"),Ye={class:"main"},Ze=Me((function(){return v("span",{class:"iconfont icon-layout"},null,-1)})),en={class:"cmd"},nn={class:"section"},tn=Me((function(){return v("h4",null,"工作流",-1)})),on={class:"section"},an=Me((function(){return v("h4",null,"实用工具",-1)}));e("default",N(ze,[["render",function(e,n,t,o,a,r){var i=f("v3-button"),l=f("MapCommand"),u=f("Command"),d=f("v3-collapse-item"),c=f("v3-collapse"),s=f("Xterm");return e.data.ready?(g(),p("div",Ue,[v("h1",null,[Te,v("p",null,[q(i,{type:"primary",onClick:e.createBranch},{default:C((function(){return[Ie]})),_:1},8,["onClick"]),q(i,{type:"default",onClick:e.back},{default:C((function(){return[Pe]})),_:1},8,["onClick"])])]),v("div",Re,[v("div",De,[e.branchList.bugfix.length?(g(),p("dl",Le,[Ne,(g(!0),p(b,null,y(e.branchList.bugfix,(function(n){return g(),p("dd",{class:U({active:n===e.data.current}),key:n},[v("span",$e,j(n),1),n!==e.data.current?(g(),x(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:C((function(){return[Be]})),_:2},1032,["onClick"])):A("",!0)],2)})),128))])):A("",!0),e.branchList.feature.length?(g(),p("dl",Ge,[Xe,(g(!0),p(b,null,y(e.branchList.feature,(function(n){return g(),p("dd",{class:U({active:n===e.data.current}),key:n},[v("span",He,j(n),1),n!==e.data.current?(g(),x(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:C((function(){return[Fe]})),_:2},1032,["onClick"])):A("",!0)],2)})),128))])):A("",!0),e.branchList.others.length?(g(),p("dl",Je,[Ke,(g(!0),p(b,null,y(e.branchList.others,(function(n){return g(),p("dd",{class:U({active:n===e.data.current}),key:n},[v("span",We,j(n),1),n!==e.data.current?(g(),x(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:C((function(){return[Qe]})),_:2},1032,["onClick"])):A("",!0)],2)})),128))])):A("",!0)]),v("div",Ye,[v("h3",null,[v("span",null,[Ze,h(" 当前分支:"+j(e.data.current),1)]),v("p",null,j(e.data.project.path),1)]),v("div",en,[v("div",nn,[tn,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[9]||(n[9]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:C((function(){return[q(d,{name:"1"},{title:C((function(){return[q(l,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.combine,"onUpdate:modelValue":n[0]||(n[0]=function(n){return e.commandValue.combine=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"2"},{title:C((function(){return[q(l,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.update,"onUpdate:modelValue":n[1]||(n[1]=function(n){return e.commandValue.update=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"3"},{title:C((function(){return[q(l,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.build,"onUpdate:modelValue":n[2]||(n[2]=function(n){return e.commandValue.build=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"4"},{title:C((function(){return[q(l,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.continue,"onUpdate:modelValue":n[3]||(n[3]=function(n){return e.commandValue.continue=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"5"},{title:C((function(){return[q(l,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.end,"onUpdate:modelValue":n[4]||(n[4]=function(n){return e.commandValue.end=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"6"},{title:C((function(){return[q(l,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.branch,"onUpdate:modelValue":n[5]||(n[5]=function(n){return e.commandValue.branch=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"7"},{title:C((function(){return[q(l,{value:e.commandValue.undo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.undo,"onUpdate:modelValue":n[6]||(n[6]=function(n){return e.commandValue.undo=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"8"},{title:C((function(){return[q(l,{value:e.commandValue.redo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.redo,"onUpdate:modelValue":n[7]||(n[7]=function(n){return e.commandValue.redo=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"9"},{title:C((function(){return[q(l,{value:e.commandValue.admin.publish,current:e.data.current,execName:"gitm admin",onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.admin.publish,"onUpdate:modelValue":n[8]||(n[8]=function(n){return e.commandValue.admin.publish=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])]),v("div",on,[an,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[19]||(n[19]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:C((function(){return[q(d,{name:"11"},{title:C((function(){return[q(l,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.save,"onUpdate:modelValue":n[10]||(n[10]=function(n){return e.commandValue.save=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"12"},{title:C((function(){return[q(l,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.get,"onUpdate:modelValue":n[11]||(n[11]=function(n){return e.commandValue.get=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"13"},{title:C((function(){return[q(l,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.copy,"onUpdate:modelValue":n[12]||(n[12]=function(n){return e.commandValue.copy=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"14"},{title:C((function(){return[q(l,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.revert,"onUpdate:modelValue":n[13]||(n[13]=function(n){return e.commandValue.revert=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"15"},{title:C((function(){return[q(l,{value:e.commandValue.cleanbranch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.cleanbranch,"onUpdate:modelValue":n[14]||(n[14]=function(n){return e.commandValue.cleanbranch=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"16"},{title:C((function(){return[q(l,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.link,"onUpdate:modelValue":n[15]||(n[15]=function(n){return e.commandValue.link=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"17"},{title:C((function(){return[q(l,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":n[16]||(n[16]=function(n){return e.commandValue.unlink=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"18"},{title:C((function(){return[q(l,{value:e.commandValue.clean,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.clean,"onUpdate:modelValue":n[17]||(n[17]=function(n){return e.commandValue.clean=n})},null,8,["modelValue"])]})),_:1}),q(d,{name:"19"},{title:C((function(){return[q(l,{value:e.commandValue.log,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:C((function(){return[q(u,{modelValue:e.commandValue.log,"onUpdate:modelValue":n[18]||(n[18]=function(n){return e.commandValue.log=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])])]),e.data.project?(g(),x(s,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):A("",!0)])])])):A("",!0)}],["__scopeId","data-v-e34e4e84"]]))}}}))}(); diff --git a/app/www/assets/gitmars.9b0ab500.js b/app/www/assets/gitmars.9b0ab500.js deleted file mode 100644 index bfd76e26..00000000 --- a/app/www/assets/gitmars.9b0ab500.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,l=(o,a,t)=>a in o?e(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,i=(e,o)=>{for(var a in o||(o={}))r.call(o,a)&&l(e,a,o[a]);if(t)for(var a of t(o))n.call(o,a)&&l(e,a,o[a]);return e},d=(e,t)=>o(e,a(t));import{u as s,b as u,o as c}from"./vendor/vue-router_4.0.12.js.129523b1.js";import{q as m,V as p,a8 as g,w as f,E as v,s as b,v as y,J as h,F as x,a1 as j,a5 as V,O as C,z as _,K as w,u as q,r as k,c as O,A as S,M as E,d as A,l as M,am as U,I as z,ah as T,ai as $,P as I}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";import{X as D}from"./index.e27c1182.js";import{k as N,j as P,i as L,m as B}from"./vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js";import{u as G}from"./use-current-instance.41699c28.js";import{_ as X,T as F,S as H}from"./index.3c42119d.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.9156b156.js";const J={class:"command-wrap"},K={class:"r"},W={class:"r"};const Q=m(d(i({},{name:"Command",inheritAttrs:!1}),{props:{modelValue:{type:Object,default:()=>({options:[],args:[]}),required:!0},current:String},emits:["update:modelValue"],setup:function(e,{expose:o,emit:a}){const t=p(g(e.modelValue));return t.options.forEach((e=>{"value"in e||(e.value=null)})),t.args.forEach((e=>{"value"in e||(e.value=null)})),f(t,(e=>{a("update:modelValue",e)}),{deep:!0}),o({data:t}),(e,o)=>{const a=v("el-option"),r=v("el-select"),n=v("el-input"),l=v("el-checkbox");return b(),y("div",J,[h("ul",null,[(b(!0),y(x,null,j(q(t).args,(e=>(b(),y("li",{key:e.name},[V(C(e.name)+" ",1),h("div",K,[e.options?(b(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(b(!0),y(x,null,j(e.options,(e=>(b(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(b(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))])])))),128))]),h("ul",null,[(b(!0),y(x,null,j(q(t).options,(e=>(b(),y("li",{key:e.long},[V(C(e.description)+" ",1),h("div",W,[e.optional?(b(),y(x,{key:0},[e.options?(b(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(b(!0),y(x,null,j(e.options,(e=>(b(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(b(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))],64)):(b(),_(l,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option-check"},null,8,["modelValue","onUpdate:modelValue"]))])])))),128))])])}}}));const R={class:"map-command-wrap"},Y=V("执行");const Z=m(d(i({},{name:"MapCommand",inheritAttrs:!1}),{props:{data:{type:Object,default:()=>({options:[],args:[]}),required:!1},value:{type:Object,default:()=>({options:[],args:[]}),required:!0},execName:{type:String,default:"gitm",required:!1},current:{type:String,default:"",required:!0}},emits:["exec"],setup:function(e,{expose:o,emit:a}){const t=e,r=k(""),{command:n,short:l}=g(t.value),i=O((()=>{let e=g(t.current).split("/");return["bugfix","feature","support"].includes(e[0])?{type:e[0],name:e[1]}:null})),d=()=>{a("exec",r.value)};return f((()=>t.value),(e=>{r.value=(({options:e,args:o})=>{let a=[],r=[],l=[];for(let t of e)if(null!==t.value){let e=t.short||t.long,o=t.value instanceof Array?t.value.join(" "):t.value;if(t.optional||!t.short){if(o=o||t.defaultValue,!o)continue;t.optional?(o=' "'+o+'"',r.push(e+o)):r.push(e)}else t.short&&(l.length>0&&(e=e.substr(1)),o&&l.push(e))}for(let t of o)t.value&&a.push(t.value);return`${t.execName} ${n} ${a.join(" ")} ${l.join("")} ${r.join(" ")}`.replace(/[\s]{2,}/g," ")})(e)}),{deep:!0,immediate:!0}),o({curBranch:i,cmd:r,exec:d}),(e,o)=>{const a=v("v3-button");return b(),y("div",R,[h("span",null,C(r.value),1),S(a,{type:"primary",size:"small",onClick:E(d,["stop"]),plain:""},{default:w((()=>[Y])),_:1},8,["onClick"])])}}}));!function(e){const o={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型",options:["release","bugfix"],value:""}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--combine")&&e.includes("--prod")?a(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.admin=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:(e,o,a)=>{e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?a(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?a():a(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var te=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"cleanbranch",short:"clb",args:[{required:!1,name:"branches",variadic:!0,validator:(e,o,a)=>{a()},description:"指定要清理的分支"}],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1,value:!0},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--target [target]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--target",negate:!1,description:"需要检测是否合过的目标分支名,不传默认是develop和release",defaultValue:null,value:"dev,release"},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var re=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?a(new Error("add和commit需要同时选择")):a():a(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var le=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var de=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var se=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","undo","redo","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","cleanbranch","clean","revert","link","unlink","postmsg"],value:""}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var me=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"log",short:"lg",args:[{required:!1,name:"branch",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--json",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--json",negate:!1,description:"是否以json格式输出日志,默认表格方式",defaultValue:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要恢复的撤销记录"}],options:[{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var be=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var he=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var xe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--calc",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calc",negate:!1,description:"清理当前分支撤销失败的记录",recommend:!1},{flags:"--calcAll",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calcAll",negate:!1,description:"清理所有分支撤销失败的记录",recommend:!1}],validatorOpts:(e,o,a)=>{(e.includes("--calc")||e.includes("--calcAll"))&&e.length>1?a(new Error("--calc和--calcAll只能单独使用")):a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var je=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var Ve=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);const _e={"../../../../lib/conf/admin.js":ee,"../../../../lib/conf/branch.js":oe,"../../../../lib/conf/build.js":ae,"../../../../lib/conf/clean.js":te,"../../../../lib/conf/cleanbranch.js":re,"../../../../lib/conf/combine.js":ne,"../../../../lib/conf/continue.js":le,"../../../../lib/conf/copy.js":ie,"../../../../lib/conf/end.js":de,"../../../../lib/conf/get.js":se,"../../../../lib/conf/go.js":ue,"../../../../lib/conf/hook.js":ce,"../../../../lib/conf/link.js":me,"../../../../lib/conf/log.js":pe,"../../../../lib/conf/postmsg.js":ge,"../../../../lib/conf/redo.js":fe,"../../../../lib/conf/revert.js":ve,"../../../../lib/conf/run.js":be,"../../../../lib/conf/save.js":ye,"../../../../lib/conf/start.js":he,"../../../../lib/conf/ui.js":xe,"../../../../lib/conf/undo.js":je,"../../../../lib/conf/unlink.js":Ve,"../../../../lib/conf/update.js":Ce,"../../../../lib/conf/upgrade.js":Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"})};let we={};for(let ro in _e){let e=ro.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(_e[ro]).length){we=window.gitmarsCmdConfig;break}we[e]=_e[ro]}var qe=we;const ke={class:"box row justify-center align-center"},Oe=V("   /   ");const Se=m(d(i({},{inheritAttrs:!1}),{setup:function(e,{expose:o}){const a=k(),t=p({type:"feature",name:""});return G(),A((()=>{a.value.focus()})),o({data:t,submit:()=>new Promise(((e,o)=>{if(!t.type||!t.name)return B({message:"请填写分支类型和名称",type:"warning"}),void o();e(g(t))}))}),(e,o)=>(b(),y("div",ke,[S(q(P),{class:"col-6",modelValue:q(t).type,"onUpdate:modelValue":o[0]||(o[0]=e=>q(t).type=e),placeholder:"请选择分支类型",clearable:""},{default:w((()=>[S(q(N),{label:"feature",value:"feature"}),S(q(N),{label:"bugfix",value:"bugfix"}),S(q(N),{label:"support",value:"support"})])),_:1},8,["modelValue"]),Oe,S(q(L),{class:"col-18",ref:(e,o)=>{o.name=e,a.value=e},modelValue:q(t).name,"onUpdate:modelValue":o[1]||(o[1]=e=>q(t).name=e),placeholder:"分支名称"},null,8,["modelValue"])]))}}));const Ee=m({name:"ControlGitmars",components:{Xterm:D,Command:Q,MapCommand:Z},async setup(){const{getTerminal:e,fitAddon:o}=M(F,{}),{socket:a,socketGitmars:t}=M(H,{}),{globalProperties:{$axios:r,$box:n}}=G(),l=s(),i=u(),d=window.innerWidth,m=window.innerHeight,g=p({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),f=O((()=>"gitmars-"+g.project.id)),v=p(qe),b=O((()=>{let e={bugfix:[],feature:[],others:[]};return g.branches.forEach((o=>{o.indexOf("bugfix/")>-1?e.bugfix.push(o):o.indexOf("feature/")>-1?e.feature.push(o):e.others.push(o)})),e}));A((()=>{t.emit("create",{name:g.project.id,cwd:g.project.path}),t.on(g.project.id+"-branch",(e=>{g&&(g.branches=e)})),t.on(g.project.id+"-current",(e=>{g&&(g.current=e)}))})),c((()=>{t.emit("remove",g.project.id)})),U((e=>(g.error=e,!0)));const y=async()=>(await r({url:"/common/project/list",data:{id:i.query.id}})).data,h=e=>{g.terminal&&a.emit(g.terminal.name+"-input",`${e}\r`)};g.project=await y(),await r({url:"/cmd/cd",data:{dir:g.project.path}}),g.branches=await(async()=>(await r({url:"/cmd/branch/list",data:{}})).data)(),g.current=await(async()=>(await r({url:"/cmd/branch/current",data:{}})).data)(),g.terminal=e&&e(f.value,g.project.path,parseInt(String((d-60-300-32)/7.05)),parseInt(String((m-64-32-34-400)/17.6))),g.ready=!0;return{data:g,terminalID:f,exec:h,commandValue:v,route:i,branchList:b,handleItemClick:()=>{console.log("handleItemClick",666)},handleChange:()=>{console.log("handleChange",444)},createBranch:()=>{n(Se,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:async e=>{let{type:o,name:a}=await e.component.proxy.submit();return h(`gitm start ${o} ${a}`),!0}})},back:()=>{l.push("/project/list")},checkout:async e=>{h(`git checkout ${e}`),g.project=await y()}}}}),Ae=e=>(T("data-v-e34e4e84"),e=e(),$(),e),Me={key:0,class:"page"},Ue=V(" Gitmars工作流 "),ze=V("创建分支"),Te=V("返回"),$e={class:"cont"},Ie={class:"nav"},De={key:0,class:"bugfix"},Ne=Ae((()=>h("dt",null,"bug分支",-1))),Pe={class:"name"},Le=V("进入"),Be={key:1,class:"feature"},Ge=Ae((()=>h("dt",null,"feature分支",-1))),Xe={class:"name"},Fe=V("进入"),He={key:2,class:"others"},Je=Ae((()=>h("dt",null,"其他分支",-1))),Ke={class:"name"},We=V("进入"),Qe={class:"main"},Re=Ae((()=>h("span",{class:"iconfont icon-layout"},null,-1))),Ye={class:"cmd"},Ze={class:"section"},eo=Ae((()=>h("h4",null,"工作流",-1))),oo={class:"section"},ao=Ae((()=>h("h4",null,"实用工具",-1)));var to=X(Ee,[["render",function(e,o,a,t,r,n){const l=v("v3-button"),i=v("MapCommand"),d=v("Command"),s=v("v3-collapse-item"),u=v("v3-collapse"),c=v("Xterm");return e.data.ready?(b(),y("div",Me,[h("h1",null,[Ue,h("p",null,[S(l,{type:"primary",onClick:e.createBranch},{default:w((()=>[ze])),_:1},8,["onClick"]),S(l,{type:"default",onClick:e.back},{default:w((()=>[Te])),_:1},8,["onClick"])])]),h("div",$e,[h("div",Ie,[e.branchList.bugfix.length?(b(),y("dl",De,[Ne,(b(!0),y(x,null,j(e.branchList.bugfix,(o=>(b(),y("dd",{class:I({active:o===e.data.current}),key:o},[h("span",Pe,C(o),1),o!==e.data.current?(b(),_(l,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Le])),_:2},1032,["onClick"])):z("",!0)],2)))),128))])):z("",!0),e.branchList.feature.length?(b(),y("dl",Be,[Ge,(b(!0),y(x,null,j(e.branchList.feature,(o=>(b(),y("dd",{class:I({active:o===e.data.current}),key:o},[h("span",Xe,C(o),1),o!==e.data.current?(b(),_(l,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Fe])),_:2},1032,["onClick"])):z("",!0)],2)))),128))])):z("",!0),e.branchList.others.length?(b(),y("dl",He,[Je,(b(!0),y(x,null,j(e.branchList.others,(o=>(b(),y("dd",{class:I({active:o===e.data.current}),key:o},[h("span",Ke,C(o),1),o!==e.data.current?(b(),_(l,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[We])),_:2},1032,["onClick"])):z("",!0)],2)))),128))])):z("",!0)]),h("div",Qe,[h("h3",null,[h("span",null,[Re,V(" 当前分支:"+C(e.data.current),1)]),h("p",null,C(e.data.project.path),1)]),h("div",Ye,[h("div",Ze,[eo,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[9]||(o[9]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"1"},{title:w((()=>[S(i,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.combine,"onUpdate:modelValue":o[0]||(o[0]=o=>e.commandValue.combine=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"2"},{title:w((()=>[S(i,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.update,"onUpdate:modelValue":o[1]||(o[1]=o=>e.commandValue.update=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"3"},{title:w((()=>[S(i,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.build,"onUpdate:modelValue":o[2]||(o[2]=o=>e.commandValue.build=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"4"},{title:w((()=>[S(i,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.continue,"onUpdate:modelValue":o[3]||(o[3]=o=>e.commandValue.continue=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"5"},{title:w((()=>[S(i,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.end,"onUpdate:modelValue":o[4]||(o[4]=o=>e.commandValue.end=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"6"},{title:w((()=>[S(i,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.branch,"onUpdate:modelValue":o[5]||(o[5]=o=>e.commandValue.branch=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"7"},{title:w((()=>[S(i,{value:e.commandValue.undo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.undo,"onUpdate:modelValue":o[6]||(o[6]=o=>e.commandValue.undo=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"8"},{title:w((()=>[S(i,{value:e.commandValue.redo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.redo,"onUpdate:modelValue":o[7]||(o[7]=o=>e.commandValue.redo=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"9"},{title:w((()=>[S(i,{value:e.commandValue.admin.publish,current:e.data.current,execName:"gitm admin",onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.admin.publish,"onUpdate:modelValue":o[8]||(o[8]=o=>e.commandValue.admin.publish=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])]),h("div",oo,[ao,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[19]||(o[19]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"11"},{title:w((()=>[S(i,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.save,"onUpdate:modelValue":o[10]||(o[10]=o=>e.commandValue.save=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"12"},{title:w((()=>[S(i,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.get,"onUpdate:modelValue":o[11]||(o[11]=o=>e.commandValue.get=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"13"},{title:w((()=>[S(i,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.copy,"onUpdate:modelValue":o[12]||(o[12]=o=>e.commandValue.copy=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"14"},{title:w((()=>[S(i,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.revert,"onUpdate:modelValue":o[13]||(o[13]=o=>e.commandValue.revert=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"15"},{title:w((()=>[S(i,{value:e.commandValue.cleanbranch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.cleanbranch,"onUpdate:modelValue":o[14]||(o[14]=o=>e.commandValue.cleanbranch=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"16"},{title:w((()=>[S(i,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.link,"onUpdate:modelValue":o[15]||(o[15]=o=>e.commandValue.link=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"17"},{title:w((()=>[S(i,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":o[16]||(o[16]=o=>e.commandValue.unlink=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"18"},{title:w((()=>[S(i,{value:e.commandValue.clean,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.clean,"onUpdate:modelValue":o[17]||(o[17]=o=>e.commandValue.clean=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"19"},{title:w((()=>[S(i,{value:e.commandValue.log,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.log,"onUpdate:modelValue":o[18]||(o[18]=o=>e.commandValue.log=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])])]),e.data.project?(b(),_(c,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):z("",!0)])])])):z("",!0)}],["__scopeId","data-v-e34e4e84"]]);export{to as default}; diff --git a/app/www/assets/gitmars.e9ec80d0.js b/app/www/assets/gitmars.e9ec80d0.js new file mode 100644 index 00000000..f8c1913d --- /dev/null +++ b/app/www/assets/gitmars.e9ec80d0.js @@ -0,0 +1 @@ +var e=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,l=(o,a,t)=>a in o?e(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,i=(e,o)=>{for(var a in o||(o={}))r.call(o,a)&&l(e,a,o[a]);if(t)for(var a of t(o))n.call(o,a)&&l(e,a,o[a]);return e},d=(e,t)=>o(e,a(t));import{u as s,b as u,o as c}from"./vendor/vue-router_4.0.12.js.5ed4c9c6.js";import{q as m,p,a7 as g,w as f,E as v,s as b,v as y,J as h,F as j,a0 as x,a4 as C,O as V,z as _,K as w,u as q,r as k,c as O,A as S,M as E,d as A,k as M,al as U,I as z,ag as T,ah as $,P as I}from"./vendor/vue_3.2.23.js.2057d383.js";import{X as D}from"./index.c11758ff.js";import{k as N,j as P,i as L,m as B}from"./vendor/element-plus_1.2.0-beta.4.js.16579006.js";import{u as G}from"./use-current-instance.7f019932.js";import{_ as X,T as F,S as H}from"./index.3e0a01f3.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.13999879.js";import"./vendor/core-js_3.19.2.js.6f042051.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.ba8051b7.js";const J={class:"command-wrap"},K={class:"r"},W={class:"r"};const Q=m(d(i({},{name:"Command",inheritAttrs:!1}),{props:{modelValue:{type:Object,default:()=>({options:[],args:[]}),required:!0},current:String},emits:["update:modelValue"],setup:function(e,{expose:o,emit:a}){const t=p(g(e.modelValue));return t.options.forEach((e=>{"value"in e||(e.value=null)})),t.args.forEach((e=>{"value"in e||(e.value=null)})),f(t,(e=>{a("update:modelValue",e)}),{deep:!0}),o({data:t}),(e,o)=>{const a=v("el-option"),r=v("el-select"),n=v("el-input"),l=v("el-checkbox");return b(),y("div",J,[h("ul",null,[(b(!0),y(j,null,x(q(t).args,(e=>(b(),y("li",{key:e.name},[C(V(e.name)+" ",1),h("div",K,[e.options?(b(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(b(!0),y(j,null,x(e.options,(e=>(b(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(b(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))])])))),128))]),h("ul",null,[(b(!0),y(j,null,x(q(t).options,(e=>(b(),y("li",{key:e.long},[C(V(e.description)+" ",1),h("div",W,[e.optional?(b(),y(j,{key:0},[e.options?(b(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(b(!0),y(j,null,x(e.options,(e=>(b(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(b(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))],64)):(b(),_(l,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option-check"},null,8,["modelValue","onUpdate:modelValue"]))])])))),128))])])}}}));const R={class:"map-command-wrap"},Y=C("执行");const Z=m(d(i({},{name:"MapCommand",inheritAttrs:!1}),{props:{data:{type:Object,default:()=>({options:[],args:[]}),required:!1},value:{type:Object,default:()=>({options:[],args:[]}),required:!0},execName:{type:String,default:"gitm",required:!1},current:{type:String,default:"",required:!0}},emits:["exec"],setup:function(e,{expose:o,emit:a}){const t=e,r=k(""),{command:n,short:l}=g(t.value),i=O((()=>{let e=g(t.current).split("/");return["bugfix","feature","support"].includes(e[0])?{type:e[0],name:e[1]}:null})),d=()=>{a("exec",r.value)};return f((()=>t.value),(e=>{r.value=(({options:e,args:o})=>{let a=[],r=[],l=[];for(let t of e)if(null!==t.value){let e=t.short||t.long,o=t.value instanceof Array?t.value.join(" "):t.value;if(t.optional||!t.short){if(o=o||t.defaultValue,!o)continue;t.optional?(o=' "'+o+'"',r.push(e+o)):r.push(e)}else t.short&&(l.length>0&&(e=e.substr(1)),o&&l.push(e))}for(let t of o)t.value&&a.push(t.value);return`${t.execName} ${n} ${a.join(" ")} ${l.join("")} ${r.join(" ")}`.replace(/[\s]{2,}/g," ")})(e)}),{deep:!0,immediate:!0}),o({curBranch:i,cmd:r,exec:d}),(e,o)=>{const a=v("v3-button");return b(),y("div",R,[h("span",null,V(r.value),1),S(a,{type:"primary",size:"small",onClick:E(d,["stop"]),plain:""},{default:w((()=>[Y])),_:1},8,["onClick"])])}}}));!function(e){const o={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型",options:["release","bugfix"],value:""}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--combine")&&e.includes("--prod")?a(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.admin=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:(e,o,a)=>{e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?a(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?a():a(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var te=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"cleanbranch",short:"clb",args:[{required:!1,name:"branches",variadic:!0,validator:(e,o,a)=>{a()},description:"指定要清理的分支"}],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1,value:!0},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--target [target]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--target",negate:!1,description:"需要检测是否合过的目标分支名,不传默认是develop和release",defaultValue:null,value:"dev,release"},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"--exclude [exclude]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--exclude",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"--include [include]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--include",negate:!1,description:"包含关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var re=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?a(new Error("add和commit需要同时选择")):a():a(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var le=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var de=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var se=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","undo","redo","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","cleanbranch","clean","revert","link","unlink","postmsg"],value:""}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var me=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"log",short:"lg",args:[{required:!1,name:"branch",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--json",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--json",negate:!1,description:"是否以json格式输出日志,默认表格方式",defaultValue:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要恢复的撤销记录"}],options:[{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var be=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var he=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"status",short:"",args:[],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.status=o)}("undefined"!=typeof window?window:global);var je=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var xe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"--lastet [lastet]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--no-merges",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-merges",negate:!0,description:"是否排除merge记录",defaultValue:!0,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:null,options:[1,2],value:null},{flags:"--limit [limit]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"--calc",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calc",negate:!1,description:"清理当前分支撤销失败的记录",recommend:!1},{flags:"--calcAll",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--calcAll",negate:!1,description:"清理所有分支撤销失败的记录",recommend:!1}],validatorOpts:(e,o,a)=>{(e.includes("--calc")||e.includes("--calcAll"))&&e.length>1?a(new Error("--calc和--calcAll只能单独使用")):a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var Ve=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var _e=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);const we={"../../../../lib/conf/admin.js":ee,"../../../../lib/conf/branch.js":oe,"../../../../lib/conf/build.js":ae,"../../../../lib/conf/clean.js":te,"../../../../lib/conf/cleanbranch.js":re,"../../../../lib/conf/combine.js":ne,"../../../../lib/conf/continue.js":le,"../../../../lib/conf/copy.js":ie,"../../../../lib/conf/end.js":de,"../../../../lib/conf/get.js":se,"../../../../lib/conf/go.js":ue,"../../../../lib/conf/hook.js":ce,"../../../../lib/conf/link.js":me,"../../../../lib/conf/log.js":pe,"../../../../lib/conf/postmsg.js":ge,"../../../../lib/conf/redo.js":fe,"../../../../lib/conf/revert.js":ve,"../../../../lib/conf/run.js":be,"../../../../lib/conf/save.js":ye,"../../../../lib/conf/start.js":he,"../../../../lib/conf/status.js":je,"../../../../lib/conf/ui.js":xe,"../../../../lib/conf/undo.js":Ce,"../../../../lib/conf/unlink.js":Ve,"../../../../lib/conf/update.js":_e,"../../../../lib/conf/upgrade.js":Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"})};let qe={};for(let no in we){let e=no.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(we[no]).length){qe=window.gitmarsCmdConfig;break}qe[e]=we[no]}var ke=qe;const Oe={class:"box row justify-center align-center"},Se=C("   /   ");const Ee=m(d(i({},{inheritAttrs:!1}),{setup:function(e,{expose:o}){const a=k(),t=p({type:"feature",name:""});return G(),A((()=>{a.value.focus()})),o({data:t,submit:()=>new Promise(((e,o)=>{if(!t.type||!t.name)return B({message:"请填写分支类型和名称",type:"warning"}),void o();e(g(t))}))}),(e,o)=>(b(),y("div",Oe,[S(q(P),{class:"col-6",modelValue:q(t).type,"onUpdate:modelValue":o[0]||(o[0]=e=>q(t).type=e),placeholder:"请选择分支类型",clearable:""},{default:w((()=>[S(q(N),{label:"feature",value:"feature"}),S(q(N),{label:"bugfix",value:"bugfix"}),S(q(N),{label:"support",value:"support"})])),_:1},8,["modelValue"]),Se,S(q(L),{class:"col-18",ref:(e,o)=>{o.name=e,a.value=e},modelValue:q(t).name,"onUpdate:modelValue":o[1]||(o[1]=e=>q(t).name=e),placeholder:"分支名称"},null,8,["modelValue"])]))}}));const Ae=m({name:"ControlGitmars",components:{Xterm:D,Command:Q,MapCommand:Z},async setup(){const{getTerminal:e,fitAddon:o}=M(F,{}),{socket:a,socketGitmars:t}=M(H,{}),{globalProperties:{$axios:r,$box:n}}=G(),l=s(),i=u(),d=window.innerWidth,m=window.innerHeight,g=p({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),f=O((()=>"gitmars-"+g.project.id)),v=p(ke),b=O((()=>{let e={bugfix:[],feature:[],others:[]};return g.branches.forEach((o=>{o.indexOf("bugfix/")>-1?e.bugfix.push(o):o.indexOf("feature/")>-1?e.feature.push(o):e.others.push(o)})),e}));A((()=>{t.emit("create",{name:g.project.id,cwd:g.project.path}),t.on(g.project.id+"-branch",(e=>{g&&(g.branches=e)})),t.on(g.project.id+"-current",(e=>{g&&(g.current=e)}))})),c((()=>{t.emit("remove",g.project.id)})),U((e=>(g.error=e,!0)));const y=async()=>(await r({url:"/common/project/list",data:{id:i.query.id}})).data,h=e=>{g.terminal&&a.emit(g.terminal.name+"-input",`${e}\r`)};g.project=await y(),await r({url:"/cmd/cd",data:{dir:g.project.path}}),g.branches=await(async()=>(await r({url:"/cmd/branch/list",data:{}})).data)(),g.current=await(async()=>(await r({url:"/cmd/branch/current",data:{}})).data)(),g.terminal=e&&e(f.value,g.project.path,parseInt(String((d-60-300-32)/7.05)),parseInt(String((m-64-32-34-400)/17.6))),g.ready=!0;return{data:g,terminalID:f,exec:h,commandValue:v,route:i,branchList:b,handleItemClick:()=>{console.log("handleItemClick",666)},handleChange:()=>{console.log("handleChange",444)},createBranch:()=>{n(Ee,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:async e=>{let{type:o,name:a}=await e.component.proxy.submit();return h(`gitm start ${o} ${a}`),!0}})},back:()=>{l.push("/project/list")},checkout:async e=>{h(`git checkout ${e}`),g.project=await y()}}}}),Me=e=>(T("data-v-e34e4e84"),e=e(),$(),e),Ue={key:0,class:"page"},ze=C(" Gitmars工作流 "),Te=C("创建分支"),$e=C("返回"),Ie={class:"cont"},De={class:"nav"},Ne={key:0,class:"bugfix"},Pe=Me((()=>h("dt",null,"bug分支",-1))),Le={class:"name"},Be=C("进入"),Ge={key:1,class:"feature"},Xe=Me((()=>h("dt",null,"feature分支",-1))),Fe={class:"name"},He=C("进入"),Je={key:2,class:"others"},Ke=Me((()=>h("dt",null,"其他分支",-1))),We={class:"name"},Qe=C("进入"),Re={class:"main"},Ye=Me((()=>h("span",{class:"iconfont icon-layout"},null,-1))),Ze={class:"cmd"},eo={class:"section"},oo=Me((()=>h("h4",null,"工作流",-1))),ao={class:"section"},to=Me((()=>h("h4",null,"实用工具",-1)));var ro=X(Ae,[["render",function(e,o,a,t,r,n){const l=v("v3-button"),i=v("MapCommand"),d=v("Command"),s=v("v3-collapse-item"),u=v("v3-collapse"),c=v("Xterm");return e.data.ready?(b(),y("div",Ue,[h("h1",null,[ze,h("p",null,[S(l,{type:"primary",onClick:e.createBranch},{default:w((()=>[Te])),_:1},8,["onClick"]),S(l,{type:"default",onClick:e.back},{default:w((()=>[$e])),_:1},8,["onClick"])])]),h("div",Ie,[h("div",De,[e.branchList.bugfix.length?(b(),y("dl",Ne,[Pe,(b(!0),y(j,null,x(e.branchList.bugfix,(o=>(b(),y("dd",{class:I({active:o===e.data.current}),key:o},[h("span",Le,V(o),1),o!==e.data.current?(b(),_(l,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Be])),_:2},1032,["onClick"])):z("",!0)],2)))),128))])):z("",!0),e.branchList.feature.length?(b(),y("dl",Ge,[Xe,(b(!0),y(j,null,x(e.branchList.feature,(o=>(b(),y("dd",{class:I({active:o===e.data.current}),key:o},[h("span",Fe,V(o),1),o!==e.data.current?(b(),_(l,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[He])),_:2},1032,["onClick"])):z("",!0)],2)))),128))])):z("",!0),e.branchList.others.length?(b(),y("dl",Je,[Ke,(b(!0),y(j,null,x(e.branchList.others,(o=>(b(),y("dd",{class:I({active:o===e.data.current}),key:o},[h("span",We,V(o),1),o!==e.data.current?(b(),_(l,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Qe])),_:2},1032,["onClick"])):z("",!0)],2)))),128))])):z("",!0)]),h("div",Re,[h("h3",null,[h("span",null,[Ye,C(" 当前分支:"+V(e.data.current),1)]),h("p",null,V(e.data.project.path),1)]),h("div",Ze,[h("div",eo,[oo,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[9]||(o[9]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"1"},{title:w((()=>[S(i,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.combine,"onUpdate:modelValue":o[0]||(o[0]=o=>e.commandValue.combine=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"2"},{title:w((()=>[S(i,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.update,"onUpdate:modelValue":o[1]||(o[1]=o=>e.commandValue.update=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"3"},{title:w((()=>[S(i,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.build,"onUpdate:modelValue":o[2]||(o[2]=o=>e.commandValue.build=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"4"},{title:w((()=>[S(i,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.continue,"onUpdate:modelValue":o[3]||(o[3]=o=>e.commandValue.continue=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"5"},{title:w((()=>[S(i,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.end,"onUpdate:modelValue":o[4]||(o[4]=o=>e.commandValue.end=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"6"},{title:w((()=>[S(i,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.branch,"onUpdate:modelValue":o[5]||(o[5]=o=>e.commandValue.branch=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"7"},{title:w((()=>[S(i,{value:e.commandValue.undo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.undo,"onUpdate:modelValue":o[6]||(o[6]=o=>e.commandValue.undo=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"8"},{title:w((()=>[S(i,{value:e.commandValue.redo,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.redo,"onUpdate:modelValue":o[7]||(o[7]=o=>e.commandValue.redo=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"9"},{title:w((()=>[S(i,{value:e.commandValue.admin.publish,current:e.data.current,execName:"gitm admin",onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.admin.publish,"onUpdate:modelValue":o[8]||(o[8]=o=>e.commandValue.admin.publish=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])]),h("div",ao,[to,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[19]||(o[19]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"11"},{title:w((()=>[S(i,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.save,"onUpdate:modelValue":o[10]||(o[10]=o=>e.commandValue.save=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"12"},{title:w((()=>[S(i,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.get,"onUpdate:modelValue":o[11]||(o[11]=o=>e.commandValue.get=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"13"},{title:w((()=>[S(i,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.copy,"onUpdate:modelValue":o[12]||(o[12]=o=>e.commandValue.copy=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"14"},{title:w((()=>[S(i,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.revert,"onUpdate:modelValue":o[13]||(o[13]=o=>e.commandValue.revert=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"15"},{title:w((()=>[S(i,{value:e.commandValue.cleanbranch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.cleanbranch,"onUpdate:modelValue":o[14]||(o[14]=o=>e.commandValue.cleanbranch=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"16"},{title:w((()=>[S(i,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.link,"onUpdate:modelValue":o[15]||(o[15]=o=>e.commandValue.link=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"17"},{title:w((()=>[S(i,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":o[16]||(o[16]=o=>e.commandValue.unlink=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"18"},{title:w((()=>[S(i,{value:e.commandValue.clean,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.clean,"onUpdate:modelValue":o[17]||(o[17]=o=>e.commandValue.clean=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"19"},{title:w((()=>[S(i,{value:e.commandValue.log,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.log,"onUpdate:modelValue":o[18]||(o[18]=o=>e.commandValue.log=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])])]),e.data.project?(b(),_(c,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):z("",!0)])])])):z("",!0)}],["__scopeId","data-v-e34e4e84"]]);export{ro as default}; diff --git a/app/www/assets/index-legacy.a953f163.js b/app/www/assets/index-legacy.444cfbb5.js similarity index 77% rename from app/www/assets/index-legacy.a953f163.js rename to app/www/assets/index-legacy.444cfbb5.js index 1086e2d2..22f3df76 100644 --- a/app/www/assets/index-legacy.a953f163.js +++ b/app/www/assets/index-legacy.444cfbb5.js @@ -1 +1 @@ -!function(){var e=document.createElement("style");e.innerHTML=".terminal[data-v-028cbdbf]{overflow:hidden;height:100%}\n",document.head.appendChild(e),System.register(["./index-legacy.52a344d0.js","./vendor/vue_3.2.23.js-legacy.cab6a317.js"],(function(e){"use strict";var n,t,r,i,a,d,c,u,o;return{setters:[function(e){n=e._,t=e.T},function(e){r=e.r,i=e.l,a=e.d,d=e.R,c=e.s,u=e.v,o=e.J}],execute:function(){var s={class:"terminal",ref:"terminal"},l=["id"];e("X",n({name:"Xterm",components:{},props:{id:String,path:String},setup:function(e){var n=r(null),c=i(t),u=c.getTerminal,o=(c.fitAddon,u(e.id,e.path));return a((function(){o.term.open(n.value),o.term.focus()})),d((function(){})),{termWrap:n}}},[["render",function(e,n,t,r,i,a){return c(),u("div",s,[o("div",{ref:"termWrap",id:t.id,class:"terminal-pane"},null,8,l)],512)}],["__scopeId","data-v-028cbdbf"]]))}}}))}(); +!function(){var e=document.createElement("style");e.innerHTML=".terminal[data-v-028cbdbf]{overflow:hidden;height:100%}\n",document.head.appendChild(e),System.register(["./index-legacy.52f87b11.js","./vendor/vue_3.2.23.js-legacy.a1ad5e32.js"],(function(e){"use strict";var n,t,r,i,a,d,c,u,o;return{setters:[function(e){n=e._,t=e.T},function(e){r=e.r,i=e.k,a=e.d,d=e.R,c=e.s,u=e.v,o=e.J}],execute:function(){var s={class:"terminal",ref:"terminal"},l=["id"];e("X",n({name:"Xterm",components:{},props:{id:String,path:String},setup:function(e){var n=r(null),c=i(t),u=c.getTerminal,o=(c.fitAddon,u(e.id,e.path));return a((function(){o.term.open(n.value),o.term.focus()})),d((function(){})),{termWrap:n}}},[["render",function(e,n,t,r,i,a){return c(),u("div",s,[o("div",{ref:"termWrap",id:t.id,class:"terminal-pane"},null,8,l)],512)}],["__scopeId","data-v-028cbdbf"]]))}}}))}(); diff --git a/app/www/assets/index-legacy.52a344d0.js b/app/www/assets/index-legacy.52f87b11.js similarity index 71% rename from app/www/assets/index-legacy.52a344d0.js rename to app/www/assets/index-legacy.52f87b11.js index ae3025d0..d98d3102 100644 --- a/app/www/assets/index-legacy.52a344d0.js +++ b/app/www/assets/index-legacy.52f87b11.js @@ -1,7 +1,7 @@ -!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,i,r){return t=n()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r},t.apply(null,arguments)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n._v3-split-bar_1fvmh_11{top:0;bottom:0;border-width:0 1px;width:4px;height:100%;flex-direction:column;cursor:col-resize}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11 span{border-width:1px 0;height:4px;margin:2px 0}._v3-split-box_1fvmh_1._vertical_1fvmh_44{flex-direction:column}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11{left:0;right:0;border-width:1px 0;height:4px;width:100%;cursor:row-resize}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11 span{border-width:0 1px;width:4px;margin:0 2px}.v3-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:16px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.v3-button+.v3-button{margin-left:10px}.v3-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.v3-button:not(.is-disabled):active:after{opacity:.1}.v3-button.is-disabled{opacity:.6}.v3-button-icon{vertical-align:middle;display:inline-block}.v3-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.v3-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.v3-button--primary{color:#fff;background-color:#17c0ae}.v3-button--primary.is-plain{border:1px solid #17c0ae;background-color:transparent;color:#17c0ae}.v3-button--danger{color:#fff;background-color:#ef4f4f}.v3-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.v3-button--large{display:block;width:100%}.v3-button--normal{display:inline-block;padding:0 28px}.v3-button--small{display:inline-block;font-size:14px;padding:0 20px;height:33px}.v3-button--mini{display:inline-block;font-size:14px;padding:0 16px;height:33px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}html,body,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,p,pre,code,input,textarea,div{padding:0;margin:0;font-size:inherit;font-family:JetBrains Mono,Menlo,consolas,Microsoft YaHei,PingFangSC-Regular,Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif}img{border:0;max-width:100%}:focus{outline:0}html,body{font-size:14px;width:100%;height:100%;color:#333;background:#e2e7ef}.w{position:relative;width:1180px;margin:0 auto}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}input::-webkit-input-placeholder,select::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#ccc;font-size:14px}table{border-collapse:collapse}a{color:inherit;text-decoration:none}li{list-style:none}em{font-style:normal}.clear,.clearfix{clear:both}.clearfix:before,.clearfix:after{content:" ";display:block}.clearfix:after{clear:both}.fl{float:left}.fr{float:right}.row{display:flex}.row>*{flex-shrink:0}.row.center{align-items:center;justify-content:center}.column{display:flex!important;flex-direction:column}.column>*{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.align-top{align-items:flex-start}.align-end{align-items:flex-end}.justify-center{justify-content:center}.justify-top{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.col-1{flex:1}.col-2{flex:2}.col-3{flex:3}.col-4{flex:4}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-9{flex:9}.col-10{flex:10}.col-11{flex:11}.col-12{flex:12}.col-13{flex:13}.col-14{flex:14}.col-15{flex:15}.col-16{flex:16}.col-17{flex:17}.col-18{flex:18}.col-19{flex:19}.col-20{flex:20}.col-21{flex:21}.col-22{flex:22}.col-23{flex:23}.col-24{flex:24}.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;justify-content:center;align-items:center}.iconfont{font-size:inherit;-webkit-text-stroke-width:0}.link{cursor:pointer}html,body{background:#2c3e50}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;height:100%}#app #nav{padding:30px;position:fixed;z-index:99;bottom:10px;left:10px}#app #nav a{font-weight:700;color:#fff}#app #nav a.router-link-exact-active{color:#42b983}#project{display:flex;flex-direction:column;height:100%}#project .head{height:110px;padding:0 20px;background:#3a5169;text-align:center}#project .head .title{display:flex;line-height:66px}#project .head .title .left{width:120px;text-align:left}#project .head .title .right{width:120px;text-align:right}#project .head .title h1{flex:1;color:#fff;font:300 24px/66px JetBrains Mono}#project .head .menu a{font-size:16px;line-height:42px;display:inline-block;padding:0 20px;color:#fff;border-bottom:2px solid #3a5169}#project .head .menu a.router-link-active,#project .head .menu a:hover,#project .head .menu a:active{background:#4e6e8e;border-color:#4e6e8e}#project .head .menu a.router-link-active{color:#c486fb;border-color:#c486fb}#project .routerView{flex:1}\n',document.head.appendChild(p),System.register(["./vendor/vue_3.2.23.js-legacy.cab6a317.js","./vendor/element-plus_1.2.0-beta.3.js-legacy.981a4862.js","./vendor/axios_0.24.0.js-legacy.e2791d74.js","./vendor/qs_6.10.1.js-legacy.583b1a92.js","./vendor/js-cool_2.3.0.js-legacy.a3236d92.js","./vendor/uuid_8.3.2.js-legacy.5043e95d.js","./vendor/dayjs_1.10.7.js-legacy.6093b1d6.js","./vendor/xterm_4.15.0.js-legacy.4c228449.js","./vendor/xterm-style_1.1.0.js-legacy.f8f2efde.js","./vendor/xterm-addon-fit_0.5.0.js-legacy.d755db6d.js","./vendor/xterm-addon-search_0.8.1.js-legacy.00f4c2d2.js","./vendor/xterm-addon-web-links_0.4.0.js-legacy.15c01a6a.js","./vendor/vue-router_4.0.12.js-legacy.f492a5ac.js","./vendor/vuex_4.0.2.js-legacy.79be764b.js","./vendor/lodash_4.17.21.js-legacy.975f7fe9.js","./vendor/async-validator_4.0.7.js-legacy.4db26d33.js","./vendor/side-channel_1.0.4.js-legacy.285de11b.js","./vendor/get-intrinsic_1.1.1.js-legacy.cbed8f1c.js","./vendor/has-symbols_1.0.2.js-legacy.b04662aa.js","./vendor/function-bind_1.1.1.js-legacy.dd0fb47d.js","./vendor/has_1.0.3.js-legacy.f30f7bcd.js","./vendor/call-bind_1.0.2.js-legacy.2b18bb76.js","./vendor/object-inspect_1.11.0.js-legacy.1fe2e339.js","./vendor/core-js_3.19.1.js-legacy.1132431e.js"],(function(n,o){"use strict";var i,u,f,p,d,h,v,m,b,y,g,x,w,k,_,z,j,S,C,A,O,E,B,T,N,R,P,I,H,L,M,F,q,D,$,Y,W,V,U,K,J,X,G,Q,Z,ee,te,ne,oe,ie,re,ae,se,ce,le,ue,fe,pe,de,he,ve,me,be,ye,ge,xe,we,ke,_e,ze,je,Se;return{setters:[function(e){i=e.m,u=e.p,f=e.V,p=e.c,d=e.u,h=e.r,v=e.w,m=e.ag,b=e.n,y=e.A,g=e.af,x=e.E,w=e.s,k=e.z,_=e.K,z=e.J,j=e.v,S=e.I,C=e.Q,A=e.P,O=e.F,E=e.a5,B=e.O,T=e.x,N=e.T,R=e.ah,P=e.ai,I=e.d,H=e.W,L=e.S,M=e.l,F=e.a7,q=e.G,D=e.H,$=e.M,Y=e.g,W=e.q,V=e._,U=e.aj},function(e){K=e.E,J=e.a,X=e.b,G=e.c,Q=e.d,Z=e.e,ee=e.f,te=e.g,ne=e.h,oe=e.i,ie=e.j,re=e.k,ae=e.l,se=e.m,ce=e.n},function(e){le=e.a},function(e){ue=e.l},function(e){fe=e.a,pe=e.f,de=e.r,he=e.d,ve=e.e,me=e.n},function(e){be=e.v},function(e){ye=e.d},function(e){e.c,ge=e.x},function(e){xe=e.c},function(e){we=e.x},function(e){ke=e.x},function(e){_e=e.x},function(e){ze=e.c,je=e.a},function(e){Se=e.c},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){n("u",Me);function Ce(e){return new Promise((function(t,n){var o=le.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((function(t){var n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=ue.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(function(e){return Promise.reject(e)})),o.interceptors.response.use((function(t){return t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)}),(function(e){return Promise.reject(e)})),o(e).then((function(e){t(e)})).catch((function(e){e instanceof Error&&console.log(e)}))}))}function Ae(e){return!!i()&&(u(e),!0)}var Oe="undefined"!=typeof window,Ee=function(e){return"string"==typeof e},Be=function(){},Te=Oe?window:void 0;function Ne(){for(var e,t,n,o,i=arguments.length,r=new Array(i),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.reactive,n=void 0!==t&&t,o=e.target,i=void 0===o?Te:o,r=e.aliasMap,a=void 0===r?Le:r,s=e.passive,c=void 0===s||s,l=e.onEventFired,u=void 0===l?Be:l,v=f(new Set),m={toJSON:function(){return{}},current:v},b=n?f(m):m;function y(e,t){var o=e.key.toLowerCase(),i=[e.code.toLowerCase(),o];t?v.add(e.code):v.delete(e.code);for(var r=0,a=i;r320?window.innerWidth-20:300),r=pe(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),a=parseInt(e.maxHeight||e.height||r||480),s=parseInt(e.maxWidth||e.width||i||600);o.maxW=Math.min(s,i)+"px",o.maxH=Math.min(a,r)+"px",o.max&&(o.mWidth=i+"px",o.mHeight=r+"px")},v=function(){e.onOk&&"function"==typeof e.onOk?e.onOk(o.instance).then((function(){e.hide()})):x()},x=function(){de(window,"resize",o.reSize),o.instance=null,g(null,r.value),e.hide()};return o.max=d(e.defaultMax),o.maxH=d(e.maxHeight),o.maxW=d(e.maxWidth)||d(e.width),u(),b((function(){o.instance=y(e.component),o.instance.props=d(e.options),g(o.instance,r.value),o.isAppendContent=!0,fe(window,"resize",l),e.showBtn&&e.showOkBtn?a.value.focus():i.value.focus()})),{v3Box:i,boxContent:r,mainBtn:a,data:o,btns:s,handleOk:v,handleCancel:function(){x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:function(){x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:function(){var t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,i=pe(window.innerWidth>320?window.innerWidth-20:300),r=pe(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);o.max?(o.max=!1,o.mWidth=null,o.mHeight=null):(o.max=!0,o.mWidth=i+"px",o.mHeight=r+"px")}}}},De=["innerHTML"],$e=["innerHTML"],Ye={key:3,class:"v3-box-footer"},We={class:"v3-box-ico"},Ve=function(e){return R("data-v-703a9198"),e=e(),P(),e}((function(){return z("div",{class:"v3-box-filter"},null,-1)}));var Ue=Fe(qe,[["render",function(e,t,n,o,i,r){var a=x("el-button");return w(),k(N,{name:"fade"},{default:_((function(){return[z("div",{ref:"v3Box",class:A(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:C({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(w(),j("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,De)):S("",!0),n.message&&!n.component?(w(),j("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:C({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,$e)):S("",!0),n.component&&!n.message?(w(),j("div",{key:2,ref:"boxContent",class:A(["v3-box-content",{"no-header":!n.showHeader}]),style:C({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):S("",!0),n.showBtn?(w(),j("div",Ye,[e.$slots.footer?S("",!0):(w(),j(O,{key:0},[n.showOkBtn?(w(),k(a,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:_((function(){return[E(B(n.okBtnName),1)]})),_:1},8,["onClick"])):S("",!0),n.showCancelBtn?(w(),k(a,{key:1,onClick:o.handleCancel},{default:_((function(){return[E(B(n.cancelBtnName),1)]})),_:1},8,["onClick"])):S("",!0)],64)),e.$slots.footer?T(e.$slots,"footer",{key:1},void 0,!0):S("",!0)])):S("",!0),z("div",We,[Ve,n.showMax&&o.data.max?(w(),j("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):S("",!0),n.showMax&&!o.data.max?(w(),j("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):S("",!0),n.showClose?(w(),j("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=function(){return o.handleClose&&o.handleClose.apply(o,arguments)})})):S("",!0)])],6)]})),_:3})}],["__scopeId","data-v-703a9198"]]),Ke={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}},Je=function(){function e(t,n,o){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"$el",void 0),s(this,"instance",void 0),o=ve(!0,{},Ke,o),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(me(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+o.opacity+")",this.$el.id=be(),this.instance=y(Ue),this.instance.props=r(r({},o),{},{component:n,hide:function(){i.hide()}}),document.body.appendChild(this.$el),this.show()}var t,n,o;return t=e,(n=[{key:"show",value:function(){g(this.instance,this.$el)}},{key:"hide",value:function(){g(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}])&&a(t.prototype,n),o&&a(t,o),e}();var Xe={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"},Ge={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].indexOf(e)>-1}},modelValue:{type:[Number,String],default:"50%",validator:function(e){return/^([0-9]+)(%|px)?$/.test(e)}},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup:function(e,t){var n=this,o=t.slots,i=t.emit,r=new he,a=f({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),c=h(null),l=p((function(){return Math.round(a.size/100*a.boxSize)})),u=p((function(){var t=0+a.size;return"horizontal"===e.mode?o.right?o.left||(t=0):t=100:o.bottom?n.$slots.top||(t=0):t=100,s({},"horizontal"===e.mode?"width":"height",t+"%")}));v((function(){return e.modelValue}),(function(e){e&&("%"===a.suffix?a.size=pe(parseFloat(e),2):a.boxSize>0&&(a.size=pe(100*parseFloat(e)/a.boxSize,2)))})),v((function(){return a.size}),(function(t){var n=("%"!==a.suffix?l:t)+a.suffix;n!=e.modelValue&&0!==l&&i("input",n)}));var d=function(e){var t=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return t?{x:parseInt(t[12]||t[4]||0),y:parseInt(t[13]||t[5]||0)}:{x:0,y:0}},m=function(t){return String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):a.boxSize>0&&(t=Math.max(t,pe(100*parseInt(e.min)/a.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):a.boxSize>0&&(t=Math.min(t,pe(100*parseInt(e.max)/a.boxSize,2))),t},b=function(e){for(var t=0,n=0,o=0,i=0;e.offsetParent;){var r=d(e);t+=e.offsetLeft+r.x,n+=e.offsetTop+r.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,i+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:i}},y=function(t){var n=t.target;for(a.boxSize=parseInt("horizontal"===e.mode?c.value.clientWidth:c.value.clientHeight);n.parentNode;){if(n.parentNode.className.indexOf(Xe.v3SplitBox)>-1){a.pos=b(n.parentNode);break}n=n.parentNode}t.preventDefault(),t.stopPropagation(),i("move-start"),fe(document,"mousemove",g),fe(document,"mouseup",x)},g=function(t){a.moving=!0,i("moving",t),r.register("v3SplitOnmouseMove",(function(){var n;n="horizontal"===e.mode?t.pageX+a.pos.left-a.pos.x:t.pageY+a.pos.top-a.pos.y,a.size=m(pe(100*n/a.boxSize,2))}),50,!0),t.preventDefault()},x=function e(){a.moving=!1,i("move-end"),de(document,"mousemove",g),de(document,"mouseup",e)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,(function(e,t,n){"%"===n&&(a.size=m(parseInt(t))),a.suffix=n||""})),I((function(){a.boxSize=parseInt("horizontal"===e.mode?c.value.clientWidth:c.value.clientHeight),"%"!==a.suffix&&(a.size=m(pe(100*parseInt(e.modelValue)/a.boxSize,2)))})),function(){return H("div",{class:[Xe.v3SplitBox,Xe[e.mode],a.moving?" moving":""],ref:c},o.default?o.default():[H("div",{class:[Xe.v3SplitPanel,Xe.v3SplitPanel1],style:u.value},"horizontal"===e.mode?o.left():o.top()),("horizontal"===e.mode&&o.left&&o.right||"vertical"===e.mode&&o.top&&o.bottom)&&H("div",{class:Xe.v3SplitBar,onMousedown:y},[H("span"),H("span"),H("span"),H("span")]),H("div",{class:[Xe.v3SplitPanel,Xe.v3SplitPanel2]},"horizontal"===e.mode?o.right():o.bottom())])}}},Qe={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:function(e){return["default","danger","primary"].indexOf(e)>-1}},size:{type:String,default:"normal",validator:function(e){return["mini","small","normal","large"].indexOf(e)>-1}}},setup:function(e,t){var n=t.slots,o=t.emit,i=function(e){o("click",e)};return function(){return[H("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:i,disabled:e.disabled},[n.icon?[H("span",{class:["v3-button-icon"]},n.icon())," "]:e.icon&&[H("span",{class:["v3-button-icon"]},H("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,H("label",{class:["v3-button-text"]},n.default())])]}}};var Ze=Fe({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:function(){return[]}}},setup:function(e,t){t.slots;var n=t.emit,o=h([]);o.value=[].concat(e.modelValue),v((function(){return e.modelValue}),(function(e){console.log("collapse value change",e)}));var i=function(t){t=[].concat(t);var i=e.accordion?t[0]:t;o.value=t,n("update:modelValue",i)},r=function(t){if(e.accordion)i(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{var n=o.value.slice(0),r=n.indexOf(t.name);r>-1?n.splice(r,1):n.push(t.name),i(n)}};return L("collapse",{activeNames:o,handleItemClick:r}),{activeNames:o,setActiveNames:i,handleItemClick:r}}},[["render",function(e,t,n,o,i,r){return w(),j("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=function(){return o.handleItemClick&&o.handleItemClick.apply(o,arguments)})},[T(e.$slots,"default")],32)}]]);function et(e,t,n){this.$children.forEach((function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):et.apply(o,[e,t].concat([n]))}))}function tt(e){return{dispatch:function(t,n,o){for(var i=e.$parent||e.$root,r=i.$options.componentName;i&&(!r||r!==t);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[n].concat(o))},broadcast:function(t,n,o){et.call(e,t,n,o)}}}var nt={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},setup:function(e,t){t.slots,t.emit,t.attrs;var n=Y(),o=n.proxy,i=(n.appContext,tt(o).dispatch),r=M("collapse"),a=r.activeNames,s=r.handleItemClick,c=f({height:"auto",display:"block"}),l=h(0),u=h(!1),d=h(!1),v=h(Math.floor(1e4*Math.random())),m=p((function(){return a.value.indexOf(e.name)>-1}));return{contentWrapStyle:c,contentHeight:l,focusing:u,isClick:d,id:v,isActive:m,handleFocus:function(){setTimeout((function(){d.value?d.value=!1:u.value=!0}),50)},handleHeaderClick:function(){e.disabled||(i("v3Collapse","item-click",o),s&&s(o),u.value=!1,d.value=!0)},handleEnterClick:function(){i("v3Collapse","item-click",o)}}}},ot=["aria-expanded","aria-controls","aria-describedby"],it=["id","tabindex"],rt=["aria-hidden","aria-labelledby","id"],at={class:"v3-collapse-item__content"};var st=Fe(nt,[["render",function(e,t,n,o,i,r){return w(),j("div",{class:A(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[z("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":"v3-collapse-content-".concat(o.id),"aria-describedby":"v3-collapse-content-".concat(o.id)},[z("div",{class:A(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=function(){return o.handleHeaderClick&&o.handleHeaderClick.apply(o,arguments)}),role:"button",id:"v3-collapse-head-".concat(o.id),tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=F($((function(){return o.handleEnterClick&&o.handleEnterClick.apply(o,arguments)}),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(e){return o.focusing=!1})},[T(e.$slots,"title",{},(function(){return[E(B(n.title),1)]})),z("span",{class:A(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,it)],8,ot),q(z("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":"v3-collapse-head-".concat(o.id),id:"v3-collapse-content-".concat(o.id)},[z("div",at,[T(e.$slots,"default")])],8,rt),[[D,o.isActive]])],2)}]]),ct={install:function(e){e.component(Ge.name,Ge),e.component(Qe.name,Qe),e.component(Ze.name,Ze),e.component(st.name,st),e.component(Ue.name,Ue)},v3Split:Ge,v3Button:Qe,v3Collapse:Ze,v3CollapseItem:st},lt={exports:{}}; +!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,i,r){return t=n()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r},t.apply(null,arguments)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n._v3-split-bar_1fvmh_11{top:0;bottom:0;border-width:0 1px;width:4px;height:100%;flex-direction:column;cursor:col-resize}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11 span{border-width:1px 0;height:4px;margin:2px 0}._v3-split-box_1fvmh_1._vertical_1fvmh_44{flex-direction:column}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11{left:0;right:0;border-width:1px 0;height:4px;width:100%;cursor:row-resize}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11 span{border-width:0 1px;width:4px;margin:0 2px}.v3-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:16px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.v3-button+.v3-button{margin-left:10px}.v3-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.v3-button:not(.is-disabled):active:after{opacity:.1}.v3-button.is-disabled{opacity:.6}.v3-button-icon{vertical-align:middle;display:inline-block}.v3-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.v3-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.v3-button--primary{color:#fff;background-color:#17c0ae}.v3-button--primary.is-plain{border:1px solid #17c0ae;background-color:transparent;color:#17c0ae}.v3-button--danger{color:#fff;background-color:#ef4f4f}.v3-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.v3-button--large{display:block;width:100%}.v3-button--normal{display:inline-block;padding:0 28px}.v3-button--small{display:inline-block;font-size:14px;padding:0 20px;height:33px}.v3-button--mini{display:inline-block;font-size:14px;padding:0 16px;height:33px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}html,body,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,p,pre,code,input,textarea,div{padding:0;margin:0;font-size:inherit;font-family:JetBrains Mono,Menlo,consolas,Microsoft YaHei,PingFangSC-Regular,Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif}img{border:0;max-width:100%}:focus{outline:0}html,body{font-size:14px;width:100%;height:100%;color:#333;background:#e2e7ef}.w{position:relative;width:1180px;margin:0 auto}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}input::-webkit-input-placeholder,select::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#ccc;font-size:14px}table{border-collapse:collapse}a{color:inherit;text-decoration:none}li{list-style:none}em{font-style:normal}.clear,.clearfix{clear:both}.clearfix:before,.clearfix:after{content:" ";display:block}.clearfix:after{clear:both}.fl{float:left}.fr{float:right}.row{display:flex}.row>*{flex-shrink:0}.row.center{align-items:center;justify-content:center}.column{display:flex!important;flex-direction:column}.column>*{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.align-top{align-items:flex-start}.align-end{align-items:flex-end}.justify-center{justify-content:center}.justify-top{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.col-1{flex:1}.col-2{flex:2}.col-3{flex:3}.col-4{flex:4}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-9{flex:9}.col-10{flex:10}.col-11{flex:11}.col-12{flex:12}.col-13{flex:13}.col-14{flex:14}.col-15{flex:15}.col-16{flex:16}.col-17{flex:17}.col-18{flex:18}.col-19{flex:19}.col-20{flex:20}.col-21{flex:21}.col-22{flex:22}.col-23{flex:23}.col-24{flex:24}.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;justify-content:center;align-items:center}.iconfont{font-size:inherit;-webkit-text-stroke-width:0}.link{cursor:pointer}html,body{background:#2c3e50}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;height:100%}#app #nav{padding:30px;position:fixed;z-index:99;bottom:10px;left:10px}#app #nav a{font-weight:700;color:#fff}#app #nav a.router-link-exact-active{color:#42b983}#project{display:flex;flex-direction:column;height:100%}#project .head{height:110px;padding:0 20px;background:#3a5169;text-align:center}#project .head .title{display:flex;line-height:66px}#project .head .title .left{width:120px;text-align:left}#project .head .title .right{width:120px;text-align:right}#project .head .title h1{flex:1;color:#fff;font:300 24px/66px JetBrains Mono}#project .head .menu a{font-size:16px;line-height:42px;display:inline-block;padding:0 20px;color:#fff;border-bottom:2px solid #3a5169}#project .head .menu a.router-link-active,#project .head .menu a:hover,#project .head .menu a:active{background:#4e6e8e;border-color:#4e6e8e}#project .head .menu a.router-link-active{color:#c486fb;border-color:#c486fb}#project .routerView{flex:1}\n',document.head.appendChild(p),System.register(["./vendor/vue_3.2.23.js-legacy.a1ad5e32.js","./vendor/element-plus_1.2.0-beta.4.js-legacy.bb515e1f.js","./vendor/axios_0.24.0.js-legacy.e2791d74.js","./vendor/qs_6.10.1.js-legacy.583b1a92.js","./vendor/js-cool_2.3.0.js-legacy.73573478.js","./vendor/uuid_8.3.2.js-legacy.5043e95d.js","./vendor/dayjs_1.10.7.js-legacy.6093b1d6.js","./vendor/xterm_4.15.0.js-legacy.4c228449.js","./vendor/xterm-style_1.1.0.js-legacy.f8f2efde.js","./vendor/xterm-addon-fit_0.5.0.js-legacy.d755db6d.js","./vendor/xterm-addon-search_0.8.1.js-legacy.00f4c2d2.js","./vendor/xterm-addon-web-links_0.4.0.js-legacy.15c01a6a.js","./vendor/vue-router_4.0.12.js-legacy.6506f673.js","./vendor/vuex_4.0.2.js-legacy.8d3c9ec4.js","./vendor/lodash_4.17.21.js-legacy.975f7fe9.js","./vendor/async-validator_4.0.7.js-legacy.4db26d33.js","./vendor/side-channel_1.0.4.js-legacy.285de11b.js","./vendor/get-intrinsic_1.1.1.js-legacy.cbed8f1c.js","./vendor/has-symbols_1.0.2.js-legacy.b04662aa.js","./vendor/function-bind_1.1.1.js-legacy.dd0fb47d.js","./vendor/has_1.0.3.js-legacy.f30f7bcd.js","./vendor/call-bind_1.0.2.js-legacy.2b18bb76.js","./vendor/object-inspect_1.11.0.js-legacy.1fe2e339.js","./vendor/core-js_3.19.2.js-legacy.a4aca070.js"],(function(n,o){"use strict";var i,u,f,p,h,d,v,m,b,y,g,x,k,w,_,z,j,S,C,A,O,E,B,T,N,R,P,I,H,M,L,q,F,D,$,Y,W,V,U,K,J,X,G,Q,Z,ee,te,ne,oe,ie,re,ae,se,ce,le,ue,fe,pe,he,de,ve,me,be,ye,ge,xe,ke,we,_e,ze,je;return{setters:[function(e){i=e.p,u=e.r,f=e.c,p=e.af,h=e.u,d=e.n,v=e.A,m=e.ae,b=e.E,y=e.s,g=e.z,x=e.K,k=e.J,w=e.v,_=e.I,z=e.Q,j=e.P,S=e.F,C=e.a4,A=e.O,O=e.x,E=e.T,B=e.ag,T=e.ah,N=e.w,R=e.d,P=e.W,I=e.U,H=e.k,M=e.a6,L=e.G,q=e.H,F=e.M,D=e.g,$=e.q,Y=e._,W=e.ai},function(e){V=e.E,U=e.u,K=e.a,J=e.b,X=e.c,G=e.d,Q=e.e,Z=e.f,ee=e.g,te=e.h,ne=e.i,oe=e.j,ie=e.k,re=e.l,ae=e.m,se=e.n},function(e){ce=e.a},function(e){le=e.l},function(e){ue=e.a,fe=e.f,pe=e.r,he=e.d,de=e.e,ve=e.n},function(e){me=e.v},function(e){be=e.d},function(e){e.c,ye=e.x},function(e){ge=e.c},function(e){xe=e.x},function(e){ke=e.x},function(e){we=e.x},function(e){_e=e.c,ze=e.a},function(e){je=e.c},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){function Se(e){return new Promise((function(t,n){var o=ce.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((function(t){var n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=le.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(function(e){return Promise.reject(e)})),o.interceptors.response.use((function(t){return t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)}),(function(e){return Promise.reject(e)})),o(e).then((function(e){t(e)})).catch((function(e){e instanceof Error&&console.log(e)}))}))}var Ce=n("_",(function(e,t){var n,o=e.__vccOpts||e,i=l(t);try{for(i.s();!(n=i.n()).done;){var r=c(n.value,2),a=r[0],s=r[1];o[a]=s}}catch(u){i.e(u)}finally{i.f()}return o})),Ae={name:"v3Box",components:{ElButton:V},props:{opacity:{type:Number,default:.4},title:{type:String,required:!0,default:"提示"},width:{type:String,default:"640px"},maxWidth:{type:String},height:String,maxHeight:{type:String,default:"480px"},message:String,okBtnName:{type:String,default:"确定"},cancelBtnName:{type:String,default:"取消"},defaultMax:{type:Boolean,default:!1},showOkBtn:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showBtn:{type:Boolean,default:!0},showMax:{type:Boolean,default:!0},options:{type:Object,default:function(){return{}}},component:{type:Object,default:function(){return{}}},hide:Function,onOk:Function,onCancel:Function,onClose:Function},setup:function(e,t){t.slots,t.emit,t.attrs;var n=new he,o=i({zIndex:0,instance:null,isAppendContent:!1,maxW:"640px",maxH:"360px",mWidth:null,mHeight:null,max:!1}),r=u(null),a=u(null),s=u(null),c=f((function(){return e.showMax?e.showClose?2:1:e.showClose?1:0})),l=U().enter;p((function(){l.value&&g()}));var b=function(){n.register("windowReSize",y,500)},y=function(){var t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,i=fe(window.innerWidth>320?window.innerWidth-20:300),r=fe(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),a=parseInt(e.maxHeight||e.height||r||480),s=parseInt(e.maxWidth||e.width||i||600);o.maxW=Math.min(s,i)+"px",o.maxH=Math.min(a,r)+"px",o.max&&(o.mWidth=i+"px",o.mHeight=r+"px")},g=function(){e.onOk&&"function"==typeof e.onOk?e.onOk(o.instance).then((function(){e.hide()})):x()},x=function(){pe(window,"resize",o.reSize),o.instance=null,m(null,a.value),e.hide()};return o.max=h(e.defaultMax),o.maxH=h(e.maxHeight),o.maxW=h(e.maxWidth)||h(e.width),y(),d((function(){o.instance=v(e.component),o.instance.props=h(e.options),m(o.instance,a.value),o.isAppendContent=!0,ue(window,"resize",b),e.showBtn&&e.showOkBtn?s.value.focus():r.value.focus()})),{v3Box:r,boxContent:a,mainBtn:s,data:o,btns:c,handleOk:g,handleCancel:function(){x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:function(){x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:function(){var t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,i=fe(window.innerWidth>320?window.innerWidth-20:300),r=fe(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);o.max?(o.max=!1,o.mWidth=null,o.mHeight=null):(o.max=!0,o.mWidth=i+"px",o.mHeight=r+"px")}}}},Oe=["innerHTML"],Ee=["innerHTML"],Be={key:3,class:"v3-box-footer"},Te={class:"v3-box-ico"},Ne=function(e){return B("data-v-703a9198"),e=e(),T(),e}((function(){return k("div",{class:"v3-box-filter"},null,-1)}));var Re=Ce(Ae,[["render",function(e,t,n,o,i,r){var a=b("el-button");return y(),g(E,{name:"fade"},{default:x((function(){return[k("div",{ref:"v3Box",class:j(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:z({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(y(),w("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,Oe)):_("",!0),n.message&&!n.component?(y(),w("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:z({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,Ee)):_("",!0),n.component&&!n.message?(y(),w("div",{key:2,ref:"boxContent",class:j(["v3-box-content",{"no-header":!n.showHeader}]),style:z({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):_("",!0),n.showBtn?(y(),w("div",Be,[e.$slots.footer?_("",!0):(y(),w(S,{key:0},[n.showOkBtn?(y(),g(a,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:x((function(){return[C(A(n.okBtnName),1)]})),_:1},8,["onClick"])):_("",!0),n.showCancelBtn?(y(),g(a,{key:1,onClick:o.handleCancel},{default:x((function(){return[C(A(n.cancelBtnName),1)]})),_:1},8,["onClick"])):_("",!0)],64)),e.$slots.footer?O(e.$slots,"footer",{key:1},void 0,!0):_("",!0)])):_("",!0),k("div",Te,[Ne,n.showMax&&o.data.max?(y(),w("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):_("",!0),n.showMax&&!o.data.max?(y(),w("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):_("",!0),n.showClose?(y(),w("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=function(){return o.handleClose&&o.handleClose.apply(o,arguments)})})):_("",!0)])],6)]})),_:3})}],["__scopeId","data-v-703a9198"]]),Pe={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}},Ie=function(){function e(t,n,o){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"$el",void 0),s(this,"instance",void 0),o=de(!0,{},Pe,o),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(ve(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+o.opacity+")",this.$el.id=me(),this.instance=v(Re),this.instance.props=r(r({},o),{},{component:n,hide:function(){i.hide()}}),document.body.appendChild(this.$el),this.show()}var t,n,o;return t=e,(n=[{key:"show",value:function(){m(this.instance,this.$el)}},{key:"hide",value:function(){m(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}])&&a(t.prototype,n),o&&a(t,o),e}();var He={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"},Me={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].indexOf(e)>-1}},modelValue:{type:[Number,String],default:"50%",validator:function(e){return/^([0-9]+)(%|px)?$/.test(e)}},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup:function(e,t){var n=this,o=t.slots,r=t.emit,a=new he,c=i({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),l=u(null),p=f((function(){return Math.round(c.size/100*c.boxSize)})),h=f((function(){var t=0+c.size;return"horizontal"===e.mode?o.right?o.left||(t=0):t=100:o.bottom?n.$slots.top||(t=0):t=100,s({},"horizontal"===e.mode?"width":"height",t+"%")}));N((function(){return e.modelValue}),(function(e){e&&("%"===c.suffix?c.size=fe(parseFloat(e),2):c.boxSize>0&&(c.size=fe(100*parseFloat(e)/c.boxSize,2)))})),N((function(){return c.size}),(function(t){var n=("%"!==c.suffix?p:t)+c.suffix;n!=e.modelValue&&0!==p&&r("input",n)}));var d=function(e){var t=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return t?{x:parseInt(t[12]||t[4]||0),y:parseInt(t[13]||t[5]||0)}:{x:0,y:0}},v=function(t){return String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):c.boxSize>0&&(t=Math.max(t,fe(100*parseInt(e.min)/c.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):c.boxSize>0&&(t=Math.min(t,fe(100*parseInt(e.max)/c.boxSize,2))),t},m=function(e){for(var t=0,n=0,o=0,i=0;e.offsetParent;){var r=d(e);t+=e.offsetLeft+r.x,n+=e.offsetTop+r.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,i+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:i}},b=function(t){var n=t.target;for(c.boxSize=parseInt("horizontal"===e.mode?l.value.clientWidth:l.value.clientHeight);n.parentNode;){if(n.parentNode.className.indexOf(He.v3SplitBox)>-1){c.pos=m(n.parentNode);break}n=n.parentNode}t.preventDefault(),t.stopPropagation(),r("move-start"),ue(document,"mousemove",y),ue(document,"mouseup",g)},y=function(t){c.moving=!0,r("moving",t),a.register("v3SplitOnmouseMove",(function(){var n;n="horizontal"===e.mode?t.pageX+c.pos.left-c.pos.x:t.pageY+c.pos.top-c.pos.y,c.size=v(fe(100*n/c.boxSize,2))}),50,!0),t.preventDefault()},g=function e(){c.moving=!1,r("move-end"),pe(document,"mousemove",y),pe(document,"mouseup",e)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,(function(e,t,n){"%"===n&&(c.size=v(parseInt(t))),c.suffix=n||""})),R((function(){c.boxSize=parseInt("horizontal"===e.mode?l.value.clientWidth:l.value.clientHeight),"%"!==c.suffix&&(c.size=v(fe(100*parseInt(e.modelValue)/c.boxSize,2)))})),function(){return P("div",{class:[He.v3SplitBox,He[e.mode],c.moving?" moving":""],ref:l},o.default?o.default():[P("div",{class:[He.v3SplitPanel,He.v3SplitPanel1],style:h.value},"horizontal"===e.mode?o.left():o.top()),("horizontal"===e.mode&&o.left&&o.right||"vertical"===e.mode&&o.top&&o.bottom)&&P("div",{class:He.v3SplitBar,onMousedown:b},[P("span"),P("span"),P("span"),P("span")]),P("div",{class:[He.v3SplitPanel,He.v3SplitPanel2]},"horizontal"===e.mode?o.right():o.bottom())])}}},Le={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:function(e){return["default","danger","primary"].indexOf(e)>-1}},size:{type:String,default:"normal",validator:function(e){return["mini","small","normal","large"].indexOf(e)>-1}}},setup:function(e,t){var n=t.slots,o=t.emit,i=function(e){o("click",e)};return function(){return[P("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:i,disabled:e.disabled},[n.icon?[P("span",{class:["v3-button-icon"]},n.icon())," "]:e.icon&&[P("span",{class:["v3-button-icon"]},P("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,P("label",{class:["v3-button-text"]},n.default())])]}}};var qe=Ce({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:function(){return[]}}},setup:function(e,t){t.slots;var n=t.emit,o=u([]);o.value=[].concat(e.modelValue),N((function(){return e.modelValue}),(function(e){console.log("collapse value change",e)}));var i=function(t){t=[].concat(t);var i=e.accordion?t[0]:t;o.value=t,n("update:modelValue",i)},r=function(t){if(e.accordion)i(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{var n=o.value.slice(0),r=n.indexOf(t.name);r>-1?n.splice(r,1):n.push(t.name),i(n)}};return I("collapse",{activeNames:o,handleItemClick:r}),{activeNames:o,setActiveNames:i,handleItemClick:r}}},[["render",function(e,t,n,o,i,r){return y(),w("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=function(){return o.handleItemClick&&o.handleItemClick.apply(o,arguments)})},[O(e.$slots,"default")],32)}]]);function Fe(e,t,n){this.$children.forEach((function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):Fe.apply(o,[e,t].concat([n]))}))}function De(e){return{dispatch:function(t,n,o){for(var i=e.$parent||e.$root,r=i.$options.componentName;i&&(!r||r!==t);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[n].concat(o))},broadcast:function(t,n,o){Fe.call(e,t,n,o)}}}var $e={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},setup:function(e,t){t.slots,t.emit,t.attrs;var n=D(),o=n.proxy,r=(n.appContext,De(o).dispatch),a=H("collapse"),s=a.activeNames,c=a.handleItemClick,l=i({height:"auto",display:"block"}),p=u(0),h=u(!1),d=u(!1),v=u(Math.floor(1e4*Math.random())),m=f((function(){return s.value.indexOf(e.name)>-1}));return{contentWrapStyle:l,contentHeight:p,focusing:h,isClick:d,id:v,isActive:m,handleFocus:function(){setTimeout((function(){d.value?d.value=!1:h.value=!0}),50)},handleHeaderClick:function(){e.disabled||(r("v3Collapse","item-click",o),c&&c(o),h.value=!1,d.value=!0)},handleEnterClick:function(){r("v3Collapse","item-click",o)}}}},Ye=["aria-expanded","aria-controls","aria-describedby"],We=["id","tabindex"],Ve=["aria-hidden","aria-labelledby","id"],Ue={class:"v3-collapse-item__content"};var Ke=Ce($e,[["render",function(e,t,n,o,i,r){return y(),w("div",{class:j(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[k("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":"v3-collapse-content-".concat(o.id),"aria-describedby":"v3-collapse-content-".concat(o.id)},[k("div",{class:j(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=function(){return o.handleHeaderClick&&o.handleHeaderClick.apply(o,arguments)}),role:"button",id:"v3-collapse-head-".concat(o.id),tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=M(F((function(){return o.handleEnterClick&&o.handleEnterClick.apply(o,arguments)}),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(e){return o.focusing=!1})},[O(e.$slots,"title",{},(function(){return[C(A(n.title),1)]})),k("span",{class:j(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,We)],8,Ye),L(k("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":"v3-collapse-head-".concat(o.id),id:"v3-collapse-content-".concat(o.id)},[k("div",Ue,[O(e.$slots,"default")])],8,Ve),[[q,o.isActive]])],2)}]]),Je={install:function(e){e.component(Me.name,Me),e.component(Le.name,Le),e.component(qe.name,qe),e.component(Ke.name,Ke),e.component(Re.name,Re)},v3Split:Me,v3Button:Le,v3Collapse:qe,v3CollapseItem:Ke},Xe={exports:{}}; /*! * Socket.IO v4.4.0 * (c) 2014-2021 Guillermo Rauch * Released under the MIT License. */ -!function(t,n){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],x=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var i=y.exec(e||""),r={},a=14;a--;)r[g[a]]=i[a]||"";return-1!=n&&-1!=o&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=w(r,r.path),r.queryKey=k(r,r.query),r};function w(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function k(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=x(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var i=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(n&&n.port===o.port?"":":"+o.port),o}var z={exports:{}};try{z.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(et){z.exports=!1}var j=z.exports,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function C(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||j))return new XMLHttpRequest}catch(n){}if(!t)try{return new(S[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|i>>2,u[c++]=(3&i)<<6|63&r;return l},K="function"==typeof ArrayBuffer,J=function(e,t){if("string"!=typeof e)return{type:"message",data:G(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:X(e.substring(1),t)}:I[n]?e.length>1?{type:I[n],data:e.substring(1)}:{type:I[n]}:H},X=function(e,t){if(K){var n=U(e);return G(n,t)}return{base64:!0,data:e}},G=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Q=String.fromCharCode(30),Z=function(e,t){var n=e.length,o=new Array(n),i=0;e.forEach((function(e,r){q(e,!1,(function(e){o[r]=e,++i===n&&t(o.join(Q))}))}))},ee=function(e,t){for(var n=e.split(Q),o=[],i=0;i0);return t}function le(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new be(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),o}(de),be=function(e){a(o,e);var t=p(o);function o(e,i){var r;return n(this,o),B(u(r=t.call(this)),i),r.opts=i,r.method=i.method||"GET",r.uri=e,r.async=!1!==i.async,r.data=void 0!==i.data?i.data:null,r.create(),r}return i(o,[{key:"create",value:function(){var e=this,t=A(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new C(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((function(){e.onError(r)}),0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=he,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),o}(T);function ye(){for(var e in be.requests)be.requests.hasOwnProperty(e)&&be.requests[e].abort()}be.requestsCount=0,be.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in S?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},xe=S.WebSocket||S.MozWebSocket,we=!0,ke="arraybuffer",_e="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),ze=function(e){a(o,e);var t=p(o);function o(e){var i;return n(this,o),(i=t.call(this,e)).supportsBinary=!e.forceBase64,i}return i(o,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=_e?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=we&&!_e?t?new xe(e,t):new xe(e):new xe(e,t,n)}catch(et){return this.emit("error",et)}this.ws.binaryType=this.socket.binaryType||ke,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],i=n===e.length-1;q(o,t.supportsBinary,(function(e){try{we&&t.ws.send(e)}catch(n){}i&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return n(this,s),i=o.call(this),e&&"object"===t(e)&&(a=e,e=null),e?(e=x(e),a.hostname=e.host,a.secure="https"===e.protocol||"wss"===e.protocol,a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=x(a.host).host),B(u(i),a),i.secure=null!=a.secure?a.secure:"undefined"!=typeof location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=i.secure?"443":"80"),i.hostname=a.hostname||("undefined"!=typeof location?location.hostname:"localhost"),i.port=a.port||("undefined"!=typeof location&&location.port?location.port:i.secure?"443":"80"),i.transports=a.transports||["polling","websocket"],i.readyState="",i.writeBuffer=[],i.prevBufferLen=0,i.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},a),i.opts.path=i.opts.path.replace(/\/$/,"")+"/","string"==typeof i.opts.query&&(i.opts.query=pe.decode(i.opts.query)),i.id=null,i.upgrades=null,i.pingInterval=null,i.pingTimeout=null,i.pingTimeoutTimer=null,"function"==typeof addEventListener&&(i.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){i.transport&&(i.transport.removeAllListeners(),i.transport.close())}),!1),"localhost"!==i.hostname&&(i.offlineEventListener=function(){i.onClose("transport close")},addEventListener("offline",i.offlineEventListener,!1))),i.open(),i}return i(s,[{key:"createTransport",value:function(e){var t=Ce(this.opts.query);t.EIO=te,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new je[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&s.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;s.priorWebsocketSuccess=!1;var i=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;s.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(f(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var i=new Error("probe error");i.transport=n.name,t.emitReserved("upgradeError",i)}})))};function r(){o||(o=!0,f(),n.close(),n=null)}var a=function(e){var o=new Error("probe error: "+e);o.transport=n.name,r(),t.emitReserved("upgradeError",o)};function c(){a("transport closed")}function l(){a("socket closed")}function u(e){n&&e.name!==n.name&&r()}var f=function(){n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",s.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case Me.ACK:case Me.BINARY_ACK:return Array.isArray(n)}}}]),r}(T);function $e(e){try{return JSON.parse(e)}catch(t){return!1}}var Ye=function(){function e(t){n(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return i(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=He(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),We=Object.freeze({__proto__:null,protocol:Fe,get PacketType(){return Me},Encoder:qe,Decoder:De});function Ve(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){a(o,e);var t=p(o);function o(e,i,r){var a;return n(this,o),(a=t.call(this)).connected=!1,a.disconnected=!0,a.receiveBuffer=[],a.sendBuffer=[],a.ids=0,a.acks={},a.flags={},a.io=e,a.nsp=i,r&&r.auth&&(a.auth=r.auth),a.io._autoConnect&&a.open(),a}return i(o,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[Ve(e,"open",this.onopen.bind(this)),Ve(e,"packet",this.onpacket.bind(this)),Ve(e,"error",this.onerror.bind(this)),Ve(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xe.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Xe.prototype.reset=function(){this.attempts=0},Xe.prototype.setMin=function(e){this.ms=e},Xe.prototype.setMax=function(e){this.max=e},Xe.prototype.setJitter=function(e){this.jitter=e};var Ge=function(e){a(r,e);var o=p(r);function r(e,i){var a,s;n(this,r),(a=o.call(this)).nsps={},a.subs=[],e&&"object"===t(e)&&(i=e,e=void 0),(i=i||{}).path=i.path||"/socket.io",a.opts=i,B(u(a),i),a.reconnection(!1!==i.reconnection),a.reconnectionAttempts(i.reconnectionAttempts||1/0),a.reconnectionDelay(i.reconnectionDelay||1e3),a.reconnectionDelayMax(i.reconnectionDelayMax||5e3),a.randomizationFactor(null!==(s=i.randomizationFactor)&&void 0!==s?s:.5),a.backoff=new Je({min:a.reconnectionDelay(),max:a.reconnectionDelayMax(),jitter:a.randomizationFactor()}),a.timeout(null==i.timeout?2e4:i.timeout),a._readyState="closed",a.uri=e;var c=i.parser||We;return a.encoder=new c.Encoder,a.decoder=new c.Decoder,a._autoConnect=!1!==i.autoConnect,a._autoConnect&&a.open(),a}return i(r,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Se(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var i=Ve(n,"open",(function(){o.onopen(),e&&e()})),r=Ve(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var a=this._timeout;0===a&&i();var s=this.setTimeoutFn((function(){i(),n.close(),n.emit("error",new Error("timeout"))}),a);this.opts.autoUnref&&s.unref(),this.subs.push((function(){clearTimeout(s)}))}return this.subs.push(i),this.subs.push(r),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(Ve(e,"ping",this.onping.bind(this)),Ve(e,"data",this.ondata.bind(this)),Ve(e,"error",this.onerror.bind(this)),Ve(e,"close",this.onclose.bind(this)),Ve(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),r}(T),Qe={};function Ze(e,n){"object"===t(e)&&(n=e,e=void 0);var o,i=_(e,(n=n||{}).path||"/socket.io"),r=i.source,a=i.id,s=i.path,c=Qe[a]&&s in Qe[a].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Ge(r,n):(Qe[a]||(Qe[a]=new Ge(r,n)),o=Qe[a]),i.query&&!n.query&&(n.query=i.queryKey),o.socket(i.path,n)}return r(Ze,{Manager:Ge,Socket:Ke,io:Ze,connect:Ze}),Ze}()}(lt);var ut=lt.exports,ft=n("T",Symbol("Terminal")),pt=n("S",Symbol("Socket")),dt=W({setup:function(e){var t=location.origin,n=ut("".concat(t,"/terminal"),{reconnection:!0}),o=ut("".concat(t,"/gitmars"),{reconnection:!0}),i=new we.exports.FitAddon,r=new ke.exports.SearchAddon,a=f({});return L(pt,{socket:n,socketGitmars:o}),L(ft,{getTerminal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;return a[e]||(a[e]={term:new ge.exports.Terminal({theme:xe,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:s,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},a[e].term.loadAddon(new _e.exports.WebLinksAddon),a[e].term.loadAddon(i),a[e].term.loadAddon(r),a[e].term.onData((function(t){n.emit(a[e].name+"-input",t)})),n.on(a[e].name+"-output",(function(t){a[e].term.write(t)})),n.on(a[e].name+"-pid",(function(t){console.info("pid: ",t),a[e].pid=t})),n.emit("create",{name:a[e].name,cwd:t}),window.addEventListener("resize",(function(){a[e].term.fit()}))),a[e]},fitAddon:i}),I((function(){})),function(e,t){var n=x("router-view");return w(),k(V,{to:"#app",class:"app"},[y(n)])}}}),ht=function(e,t){return e()},vt=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:function(){return ht((function(){return o.import("./index-legacy.4f080bfb.js")}))},children:[{path:"list",name:"project_list",component:function(){return ht((function(){return o.import("./list-legacy.b99e267f.js")}))}},{path:"add",name:"project_add",component:function(){return ht((function(){return o.import("./add-legacy.7cb6bbc1.js")}))}}]},{path:"/control",name:"control",component:function(){return ht((function(){return o.import("./index-legacy.c1e63964.js")}))},children:[{path:"gitmars",name:"control_gitmars",component:function(){return ht((function(){return o.import("./gitmars-legacy.a98d93b8.js")}))}},{path:"tasks",name:"control_tasks",component:function(){return ht((function(){return o.import("./tasks-legacy.f8e0791a.js")}))}}]}],mt=ze({history:je(),routes:vt}),bt=Se({state:{},mutations:{},actions:{},modules:{}}),yt=U(dt);yt.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},yt.use(J),yt.use(X),yt.use(G),yt.use(Q),yt.use(Z),yt.use(ee),yt.use(K),yt.use(te),yt.use(ne),yt.use(oe),yt.use(ie),yt.use(re),yt.use(ae),yt.use(se),yt.use(ce),yt.use(bt).use(mt).use(ct).use((function(e){e.config.globalProperties.$nextIndex=me.bind(e),e.config.globalProperties.$axios=Ce,e.config.globalProperties.$delay=new he,e.config.globalProperties.$box=function(){for(var n=arguments.length,o=new Array(n),i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],x=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var i=y.exec(e||""),r={},a=14;a--;)r[g[a]]=i[a]||"";return-1!=n&&-1!=o&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=k(r,r.path),r.queryKey=w(r,r.query),r};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=x(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var i=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(n&&n.port===o.port?"":":"+o.port),o}var z={exports:{}};try{z.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(et){z.exports=!1}var j=z.exports,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function C(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||j))return new XMLHttpRequest}catch(n){}if(!t)try{return new(S[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|i>>2,u[c++]=(3&i)<<6|63&r;return l},K="function"==typeof ArrayBuffer,J=function(e,t){if("string"!=typeof e)return{type:"message",data:G(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:X(e.substring(1),t)}:I[n]?e.length>1?{type:I[n],data:e.substring(1)}:{type:I[n]}:H},X=function(e,t){if(K){var n=U(e);return G(n,t)}return{base64:!0,data:e}},G=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Q=String.fromCharCode(30),Z=function(e,t){var n=e.length,o=new Array(n),i=0;e.forEach((function(e,r){F(e,!1,(function(e){o[r]=e,++i===n&&t(o.join(Q))}))}))},ee=function(e,t){for(var n=e.split(Q),o=[],i=0;i0);return t}function le(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new be(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),o}(he),be=function(e){a(o,e);var t=p(o);function o(e,i){var r;return n(this,o),B(u(r=t.call(this)),i),r.opts=i,r.method=i.method||"GET",r.uri=e,r.async=!1!==i.async,r.data=void 0!==i.data?i.data:null,r.create(),r}return i(o,[{key:"create",value:function(){var e=this,t=A(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new C(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((function(){e.onError(r)}),0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),o}(T);function ye(){for(var e in be.requests)be.requests.hasOwnProperty(e)&&be.requests[e].abort()}be.requestsCount=0,be.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in S?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},xe=S.WebSocket||S.MozWebSocket,ke=!0,we="arraybuffer",_e="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),ze=function(e){a(o,e);var t=p(o);function o(e){var i;return n(this,o),(i=t.call(this,e)).supportsBinary=!e.forceBase64,i}return i(o,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=_e?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!_e?t?new xe(e,t):new xe(e):new xe(e,t,n)}catch(et){return this.emit("error",et)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],i=n===e.length-1;F(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}i&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return n(this,s),i=o.call(this),e&&"object"===t(e)&&(a=e,e=null),e?(e=x(e),a.hostname=e.host,a.secure="https"===e.protocol||"wss"===e.protocol,a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=x(a.host).host),B(u(i),a),i.secure=null!=a.secure?a.secure:"undefined"!=typeof location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=i.secure?"443":"80"),i.hostname=a.hostname||("undefined"!=typeof location?location.hostname:"localhost"),i.port=a.port||("undefined"!=typeof location&&location.port?location.port:i.secure?"443":"80"),i.transports=a.transports||["polling","websocket"],i.readyState="",i.writeBuffer=[],i.prevBufferLen=0,i.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},a),i.opts.path=i.opts.path.replace(/\/$/,"")+"/","string"==typeof i.opts.query&&(i.opts.query=pe.decode(i.opts.query)),i.id=null,i.upgrades=null,i.pingInterval=null,i.pingTimeout=null,i.pingTimeoutTimer=null,"function"==typeof addEventListener&&(i.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){i.transport&&(i.transport.removeAllListeners(),i.transport.close())}),!1),"localhost"!==i.hostname&&(i.offlineEventListener=function(){i.onClose("transport close")},addEventListener("offline",i.offlineEventListener,!1))),i.open(),i}return i(s,[{key:"createTransport",value:function(e){var t=Ce(this.opts.query);t.EIO=te,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new je[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&s.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;s.priorWebsocketSuccess=!1;var i=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;s.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(f(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var i=new Error("probe error");i.transport=n.name,t.emitReserved("upgradeError",i)}})))};function r(){o||(o=!0,f(),n.close(),n=null)}var a=function(e){var o=new Error("probe error: "+e);o.transport=n.name,r(),t.emitReserved("upgradeError",o)};function c(){a("transport closed")}function l(){a("socket closed")}function u(e){n&&e.name!==n.name&&r()}var f=function(){n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",s.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case Le.ACK:case Le.BINARY_ACK:return Array.isArray(n)}}}]),r}(T);function $e(e){try{return JSON.parse(e)}catch(t){return!1}}var Ye=function(){function e(t){n(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return i(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=He(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),We=Object.freeze({__proto__:null,protocol:qe,get PacketType(){return Le},Encoder:Fe,Decoder:De});function Ve(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){a(o,e);var t=p(o);function o(e,i,r){var a;return n(this,o),(a=t.call(this)).connected=!1,a.disconnected=!0,a.receiveBuffer=[],a.sendBuffer=[],a.ids=0,a.acks={},a.flags={},a.io=e,a.nsp=i,r&&r.auth&&(a.auth=r.auth),a.io._autoConnect&&a.open(),a}return i(o,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[Ve(e,"open",this.onopen.bind(this)),Ve(e,"packet",this.onpacket.bind(this)),Ve(e,"error",this.onerror.bind(this)),Ve(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xe.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Xe.prototype.reset=function(){this.attempts=0},Xe.prototype.setMin=function(e){this.ms=e},Xe.prototype.setMax=function(e){this.max=e},Xe.prototype.setJitter=function(e){this.jitter=e};var Ge=function(e){a(r,e);var o=p(r);function r(e,i){var a,s;n(this,r),(a=o.call(this)).nsps={},a.subs=[],e&&"object"===t(e)&&(i=e,e=void 0),(i=i||{}).path=i.path||"/socket.io",a.opts=i,B(u(a),i),a.reconnection(!1!==i.reconnection),a.reconnectionAttempts(i.reconnectionAttempts||1/0),a.reconnectionDelay(i.reconnectionDelay||1e3),a.reconnectionDelayMax(i.reconnectionDelayMax||5e3),a.randomizationFactor(null!==(s=i.randomizationFactor)&&void 0!==s?s:.5),a.backoff=new Je({min:a.reconnectionDelay(),max:a.reconnectionDelayMax(),jitter:a.randomizationFactor()}),a.timeout(null==i.timeout?2e4:i.timeout),a._readyState="closed",a.uri=e;var c=i.parser||We;return a.encoder=new c.Encoder,a.decoder=new c.Decoder,a._autoConnect=!1!==i.autoConnect,a._autoConnect&&a.open(),a}return i(r,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Se(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var i=Ve(n,"open",(function(){o.onopen(),e&&e()})),r=Ve(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var a=this._timeout;0===a&&i();var s=this.setTimeoutFn((function(){i(),n.close(),n.emit("error",new Error("timeout"))}),a);this.opts.autoUnref&&s.unref(),this.subs.push((function(){clearTimeout(s)}))}return this.subs.push(i),this.subs.push(r),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(Ve(e,"ping",this.onping.bind(this)),Ve(e,"data",this.ondata.bind(this)),Ve(e,"error",this.onerror.bind(this)),Ve(e,"close",this.onclose.bind(this)),Ve(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),r}(T),Qe={};function Ze(e,n){"object"===t(e)&&(n=e,e=void 0);var o,i=_(e,(n=n||{}).path||"/socket.io"),r=i.source,a=i.id,s=i.path,c=Qe[a]&&s in Qe[a].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Ge(r,n):(Qe[a]||(Qe[a]=new Ge(r,n)),o=Qe[a]),i.query&&!n.query&&(n.query=i.queryKey),o.socket(i.path,n)}return r(Ze,{Manager:Ge,Socket:Ke,io:Ze,connect:Ze}),Ze}()}(Xe);var Ge=Xe.exports,Qe=n("T",Symbol("Terminal")),Ze=n("S",Symbol("Socket")),et=$({setup:function(e){var t=location.origin,n=Ge("".concat(t,"/terminal"),{reconnection:!0}),o=Ge("".concat(t,"/gitmars"),{reconnection:!0}),r=new xe.exports.FitAddon,a=new ke.exports.SearchAddon,s=i({});return I(Ze,{socket:n,socketGitmars:o}),I(Qe,{getTerminal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;return s[e]||(s[e]={term:new ye.exports.Terminal({theme:ge,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:i,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},s[e].term.loadAddon(new we.exports.WebLinksAddon),s[e].term.loadAddon(r),s[e].term.loadAddon(a),s[e].term.onData((function(t){n.emit(s[e].name+"-input",t)})),n.on(s[e].name+"-output",(function(t){s[e].term.write(t)})),n.on(s[e].name+"-pid",(function(t){console.info("pid: ",t),s[e].pid=t})),n.emit("create",{name:s[e].name,cwd:t}),window.addEventListener("resize",(function(){s[e].term.fit()}))),s[e]},fitAddon:r}),R((function(){})),function(e,t){var n=b("router-view");return y(),g(Y,{to:"#app",class:"app"},[v(n)])}}}),tt=function(e,t){return e()},nt=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:function(){return tt((function(){return o.import("./index-legacy.7466f371.js")}))},children:[{path:"list",name:"project_list",component:function(){return tt((function(){return o.import("./list-legacy.fd0d45b9.js")}))}},{path:"add",name:"project_add",component:function(){return tt((function(){return o.import("./add-legacy.3b1ecef6.js")}))}}]},{path:"/control",name:"control",component:function(){return tt((function(){return o.import("./index-legacy.6940dcf8.js")}))},children:[{path:"gitmars",name:"control_gitmars",component:function(){return tt((function(){return o.import("./gitmars-legacy.2382e5d8.js")}))}},{path:"tasks",name:"control_tasks",component:function(){return tt((function(){return o.import("./tasks-legacy.78305a13.js")}))}}]}],ot=_e({history:ze(),routes:nt}),it=je({state:{},mutations:{},actions:{},modules:{}}),rt=W(et);rt.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},rt.use(K),rt.use(J),rt.use(X),rt.use(G),rt.use(Q),rt.use(Z),rt.use(V),rt.use(ee),rt.use(te),rt.use(ne),rt.use(oe),rt.use(ie),rt.use(re),rt.use(ae),rt.use(se),rt.use(it).use(ot).use(Je).use((function(e){e.config.globalProperties.$nextIndex=ve.bind(e),e.config.globalProperties.$axios=Se,e.config.globalProperties.$delay=new he,e.config.globalProperties.$box=function(){for(var n=arguments.length,o=new Array(n),i=0;it in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{u as l,b as c}from"./vendor/vue-router_4.0.12.js.129523b1.js";import{q as i,E as p,s as u,v as f,J as d,A as j,K as v,a5 as b}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";const m={id:"project"},O={class:"head"},y=d("div",{class:"title"},[d("h1",null,"项目管理器")],-1),w={class:"menu"},P=d("span",{class:"iconfont icon-database-fill"},null,-1),_=b(" 项目 "),g=d("span",{class:"iconfont icon-plus-square-fill"},null,-1),h=b(" 导入 ");const q=i((E=((e,r)=>{for(var t in r||(r={}))s.call(r,t)&&n(e,t,r[t]);if(o)for(var t of o(r))a.call(r,t)&&n(e,t,r[t]);return e})({},{name:"Project"}),r(E,t({setup:function(e){const r=l();return"project"===c().name&&r.replace("/project/list"),(e,r)=>{const t=p("router-link"),o=p("router-view");return u(),f("div",m,[d("div",O,[y,d("div",w,[j(t,{to:"/project/list"},{default:v((()=>[P,_])),_:1}),j(t,{to:"/project/add"},{default:v((()=>[g,h])),_:1})])]),j(o,{class:"routerView"})])}}}))));var E;export{q as default}; +var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,n=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{u as l,b as c}from"./vendor/vue-router_4.0.12.js.5ed4c9c6.js";import{q as i,E as p,s as u,v as d,J as f,A as j,K as v,a4 as b}from"./vendor/vue_3.2.23.js.2057d383.js";const m={id:"project"},O={class:"head"},y=f("div",{class:"title"},[f("h1",null,"项目管理器")],-1),w={class:"menu"},P=f("span",{class:"iconfont icon-database-fill"},null,-1),_=b(" 项目 "),g=f("span",{class:"iconfont icon-plus-square-fill"},null,-1),h=b(" 导入 ");const q=i((E=((e,r)=>{for(var t in r||(r={}))s.call(r,t)&&n(e,t,r[t]);if(o)for(var t of o(r))a.call(r,t)&&n(e,t,r[t]);return e})({},{name:"Project"}),r(E,t({setup:function(e){const r=l();return"project"===c().name&&r.replace("/project/list"),(e,r)=>{const t=p("router-link"),o=p("router-view");return u(),d("div",m,[f("div",O,[y,f("div",w,[j(t,{to:"/project/list"},{default:v((()=>[P,_])),_:1}),j(t,{to:"/project/add"},{default:v((()=>[g,h])),_:1})])]),j(o,{class:"routerView"})])}}}))));var E;export{q as default}; diff --git a/app/www/assets/index.3c42119d.js b/app/www/assets/index.3c42119d.js deleted file mode 100644 index 31d9660a..00000000 --- a/app/www/assets/index.3c42119d.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,a=(e,t,n)=>(s(e,"symbol"!=typeof t?t+"":t,n),n);export function __vite_legacy_guard(){import("data:text/javascript,")}import{m as c,p as l,V as u,c as h,u as p,r as d,w as f,ag as v,n as m,A as y,af as g,E as b,s as k,z as w,K as x,J as _,v as C,I as E,Q as S,P as A,F as O,a5 as j,O as B,x as T,T as N,ah as R,ai as P,d as L,W as I,S as H,l as M,a7 as z,G as $,H as D,M as q,g as F,q as V,_ as W,aj as U}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";import{E as K,a as Y,b as J,c as X,d as G,e as Q,f as Z,g as ee,h as te,i as ne,j as oe,k as re,l as ie,m as se,n as ae}from"./vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js";import{a as ce}from"./vendor/axios_0.24.0.js.52256a15.js";import{l as le}from"./vendor/qs_6.10.1.js.0baad282.js";import{a as ue,f as he,r as pe,d as de,e as fe,n as ve}from"./vendor/js-cool_2.3.0.js.f671836d.js";import{v as me}from"./vendor/uuid_8.3.2.js.8656f24a.js";import{d as ye}from"./vendor/dayjs_1.10.7.js.c37b32ae.js";import{c as ge,x as be}from"./vendor/xterm_4.15.0.js.3e95bd6a.js";import{c as ke}from"./vendor/xterm-style_1.1.0.js.323fb105.js";import{x as we}from"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import{x as xe}from"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import{x as _e}from"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import{c as Ce,a as Ee}from"./vendor/vue-router_4.0.12.js.129523b1.js";import{c as Se}from"./vendor/vuex_4.0.2.js.9156b156.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";function Ae(e){return new Promise(((t,n)=>{const o=ce.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((t=>{const n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=le.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(e=>Promise.reject(e))),o.interceptors.response.use((t=>t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)),(e=>Promise.reject(e))),o(e).then((e=>{t(e)})).catch((e=>{e instanceof Error&&console.log(e)}))}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Oe="undefined"!=typeof window,je=()=>{},Be=Oe?window:void 0;function Te(...e){let t,n,o,r;if("string"==typeof e[0]?([n,o,r]=e,t=Be):[t,n,o,r]=e,!t)return je;let i=je;const s=f((()=>p(t)),(e=>{i(),e&&(e.addEventListener(n,o,r),i=()=>{e.removeEventListener(n,o,r),i=je})}),{immediate:!0,flush:"post"}),a=()=>{s(),i()};var u;return u=a,c()&&l(u),a}Oe&&window.document,Oe&&window.navigator,Oe&&window.location;const Ne={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Re(e={}){const{reactive:t=!1,target:n=Be,aliasMap:o=Ne,passive:r=!0,onEventFired:i=je}=e,s=u(new Set),a={toJSON:()=>({}),current:s},c=t?u(a):a;function l(e,n){const o=e.key.toLowerCase(),r=[e.code.toLowerCase(),o];n?s.add(e.code):s.delete(e.code);for(const i of r)i in c&&(t?c[i]=n:c[i].value=n)}n&&(Te(n,"keydown",(e=>(l(e,!0),i(e))),{passive:r}),Te(n,"keyup",(e=>(l(e,!1),i(e))),{passive:r}));const f=new Proxy(c,{get(e,n,r){if("string"!=typeof n)return Reflect.get(e,n,r);if((n=n.toLowerCase())in o&&(n=o[n]),!(n in c))if(/[+_-]/.test(n)){const e=n.split(/[+_-]/g).map((e=>e.trim()));c[n]=h((()=>e.every((e=>p(f[e])))))}else c[n]=d(!1);const i=Reflect.get(e,n,r);return t?p(i):i}});return f}var Pe,Le,Ie,He;(Le=Pe||(Pe={})).UP="UP",Le.RIGHT="RIGHT",Le.DOWN="DOWN",Le.LEFT="LEFT",Le.NONE="NONE",Oe&&(null==window?void 0:window.navigator)&&(null==(Ie=null==window?void 0:window.navigator)?void 0:Ie.platform)&&/iP(ad|hone|od)/.test(null==(He=null==window?void 0:window.navigator)?void 0:He.platform);var Me=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const ze={name:"v3Box",components:{ElButton:K},props:{opacity:{type:Number,default:.4},title:{type:String,required:!0,default:"提示"},width:{type:String,default:"640px"},maxWidth:{type:String},height:String,maxHeight:{type:String,default:"480px"},message:String,okBtnName:{type:String,default:"确定"},cancelBtnName:{type:String,default:"取消"},defaultMax:{type:Boolean,default:!1},showOkBtn:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showBtn:{type:Boolean,default:!0},showMax:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},component:{type:Object,default:()=>({})},hide:Function,onOk:Function,onCancel:Function,onClose:Function},setup(e,{slots:t,emit:n,attrs:o}){const r=new de,i=u({zIndex:0,instance:null,isAppendContent:!1,maxW:"640px",maxH:"360px",mWidth:null,mHeight:null,max:!1}),s=d(null),a=d(null),c=d(null),l=h((()=>e.showMax?e.showClose?2:1:e.showClose?1:0)),{enter:f}=Re();v((()=>{f.value&&w()}));const b=()=>{r.register("windowReSize",k,500)},k=()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=he(window.innerWidth>320?window.innerWidth-20:300),r=he(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),s=parseInt(e.maxHeight||e.height||r||480),a=parseInt(e.maxWidth||e.width||o||600);i.maxW=Math.min(a,o)+"px",i.maxH=Math.min(s,r)+"px",i.max&&(i.mWidth=o+"px",i.mHeight=r+"px")},w=()=>{e.onOk&&"function"==typeof e.onOk?e.onOk(i.instance).then((()=>{e.hide()})):x()},x=()=>{pe(window,"resize",i.reSize),i.instance=null,g(null,a.value),e.hide()};return i.max=p(e.defaultMax),i.maxH=p(e.maxHeight),i.maxW=p(e.maxWidth)||p(e.width),k(),m((()=>{i.instance=y(e.component),i.instance.props=p(e.options),g(i.instance,a.value),i.isAppendContent=!0,ue(window,"resize",b),e.showBtn&&e.showOkBtn?c.value.focus():s.value.focus()})),{v3Box:s,boxContent:a,mainBtn:c,data:i,btns:l,handleOk:w,handleCancel:()=>{x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:()=>{x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=he(window.innerWidth>320?window.innerWidth-20:300),r=he(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);i.max?(i.max=!1,i.mWidth=null,i.mHeight=null):(i.max=!0,i.mWidth=o+"px",i.mHeight=r+"px")}}}},$e=["innerHTML"],De=["innerHTML"],qe={key:3,class:"v3-box-footer"},Fe={class:"v3-box-ico"},Ve=(e=>(R("data-v-703a9198"),e=e(),P(),e))((()=>_("div",{class:"v3-box-filter"},null,-1)));var We=Me(ze,[["render",function(e,t,n,o,r,i){const s=b("el-button");return k(),w(N,{name:"fade"},{default:x((()=>[_("div",{ref:"v3Box",class:A(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:S({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(k(),C("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,$e)):E("",!0),n.message&&!n.component?(k(),C("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:S({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,De)):E("",!0),n.component&&!n.message?(k(),C("div",{key:2,ref:"boxContent",class:A(["v3-box-content",{"no-header":!n.showHeader}]),style:S({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):E("",!0),n.showBtn?(k(),C("div",qe,[e.$slots.footer?E("",!0):(k(),C(O,{key:0},[n.showOkBtn?(k(),w(s,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:x((()=>[j(B(n.okBtnName),1)])),_:1},8,["onClick"])):E("",!0),n.showCancelBtn?(k(),w(s,{key:1,onClick:o.handleCancel},{default:x((()=>[j(B(n.cancelBtnName),1)])),_:1},8,["onClick"])):E("",!0)],64)),e.$slots.footer?T(e.$slots,"footer",{key:1},void 0,!0):E("",!0)])):E("",!0),_("div",Fe,[Ve,n.showMax&&o.data.max?(k(),C("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=(...e)=>o.handleMax&&o.handleMax(...e))})):E("",!0),n.showMax&&!o.data.max?(k(),C("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=(...e)=>o.handleMax&&o.handleMax(...e))})):E("",!0),n.showClose?(k(),C("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):E("",!0)])],6)])),_:3})}],["__scopeId","data-v-703a9198"]]);const Ue={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}};class Ke{constructor(e,c,l){var u;a(this,"$el"),a(this,"instance"),l=fe(!0,{},Ue,l),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(ve(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+l.opacity+")",this.$el.id=me(),this.instance=y(We),this.instance.props=(u=((e,t)=>{for(var n in t||(t={}))r.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))i.call(t,n)&&s(e,n,t[n]);return e})({},l),t(u,n({component:c,hide:()=>{this.hide()}}))),document.body.appendChild(this.$el),this.show()}show(){g(this.instance,this.$el)}hide(){g(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}var Ye={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"};const Je={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].indexOf(e)>-1},modelValue:{type:[Number,String],default:"50%",validator:e=>/^([0-9]+)(%|px)?$/.test(e)},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup(e,{slots:t,emit:n}){const o=new de,r=u({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),i=d(null),s=h((()=>Math.round(r.size/100*r.boxSize))),a=h((()=>{let n=0+r.size;return"horizontal"===e.mode?t.right?t.left||(n=0):n=100:t.bottom?this.$slots.top||(n=0):n=100,{["horizontal"===e.mode?"width":"height"]:n+"%"}}));f((()=>e.modelValue),(e=>{e&&("%"===r.suffix?r.size=he(parseFloat(e),2):r.boxSize>0&&(r.size=he(100*parseFloat(e)/r.boxSize,2)))})),f((()=>r.size),(t=>{let o=("%"!==r.suffix?s:t)+r.suffix;o!=e.modelValue&&0!==s&&n("input",o)}));const c=e=>{let t,n,o=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return o?(t=parseInt(o[12]||o[4]||0),n=parseInt(o[13]||o[5]||0),{x:t,y:n}):{x:0,y:0}},l=t=>(String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):r.boxSize>0&&(t=Math.max(t,he(100*parseInt(e.min)/r.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):r.boxSize>0&&(t=Math.min(t,he(100*parseInt(e.max)/r.boxSize,2))),t),p=e=>{let t=0,n=0,o=0,r=0;for(;e.offsetParent;){let o=c(e);t+=e.offsetLeft+o.x,n+=e.offsetTop+o.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,r+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:r}},v=t=>{let o=t.target;for(r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight);o.parentNode;){if(o.parentNode.className.indexOf(Ye.v3SplitBox)>-1){r.pos=p(o.parentNode);break}o=o.parentNode}t.preventDefault(),t.stopPropagation(),n("move-start"),ue(document,"mousemove",m),ue(document,"mouseup",y)},m=t=>{r.moving=!0,n("moving",t),o.register("v3SplitOnmouseMove",(()=>{let n;n="horizontal"===e.mode?t.pageX+r.pos.left-r.pos.x:t.pageY+r.pos.top-r.pos.y,r.size=l(he(100*n/r.boxSize,2))}),50,!0),t.preventDefault()},y=()=>{r.moving=!1,n("move-end"),pe(document,"mousemove",m),pe(document,"mouseup",y)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,((e,t,n)=>{"%"===n&&(r.size=l(parseInt(t))),r.suffix=n||""})),L((()=>{r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight),"%"!==r.suffix&&(r.size=l(he(100*parseInt(e.modelValue)/r.boxSize,2)))})),()=>I("div",{class:[Ye.v3SplitBox,Ye[e.mode],r.moving?" moving":""],ref:i},t.default?t.default():[I("div",{class:[Ye.v3SplitPanel,Ye.v3SplitPanel1],style:a.value},"horizontal"===e.mode?t.left():t.top()),("horizontal"===e.mode&&t.left&&t.right||"vertical"===e.mode&&t.top&&t.bottom)&&I("div",{class:Ye.v3SplitBar,onMousedown:v},[I("span"),I("span"),I("span"),I("span")]),I("div",{class:[Ye.v3SplitPanel,Ye.v3SplitPanel2]},"horizontal"===e.mode?t.right():t.bottom())])}};const Xe={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:e=>["default","danger","primary"].indexOf(e)>-1},size:{type:String,default:"normal",validator:e=>["mini","small","normal","large"].indexOf(e)>-1}},setup(e,{slots:t,emit:n}){const o=e=>{n("click",e)};return()=>[I("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:o,disabled:e.disabled},[t.icon?[I("span",{class:["v3-button-icon"]},t.icon())," "]:e.icon&&[I("span",{class:["v3-button-icon"]},I("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,I("label",{class:["v3-button-text"]},t.default())])]}};var Ge=Me({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}},setup(e,{slots:t,emit:n}){const o=d([]);o.value=[].concat(e.modelValue),f((()=>e.modelValue),(e=>{console.log("collapse value change",e)}));const r=t=>{t=[].concat(t);let r=e.accordion?t[0]:t;o.value=t,n("update:modelValue",r)},i=t=>{if(e.accordion)r(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{let e=o.value.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),r(e)}};return H("collapse",{activeNames:o,handleItemClick:i}),{activeNames:o,setActiveNames:r,handleItemClick:i}}},[["render",function(e,t,n,o,r,i){return k(),C("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=(...e)=>o.handleItemClick&&o.handleItemClick(...e))},[T(e.$slots,"default")],32)}]]);function Qe(e,t,n){this.$children.forEach((o=>{o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):Qe.apply(o,[e,t].concat([n]))}))}function Ze(e){return{dispatch:(t,n,o)=>{for(var r=e.$parent||e.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[n].concat(o))},broadcast:(t,n,o)=>{Qe.call(e,t,n,o)}}}const et={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},setup(e,{slots:t,emit:n,attrs:o}){const{proxy:r,appContext:i}=F(),{dispatch:s}=Ze(r),{activeNames:a,handleItemClick:c}=M("collapse"),l=u({height:"auto",display:"block"}),p=d(0),f=d(!1),v=d(!1),m=d(Math.floor(1e4*Math.random())),y=h((()=>a.value.indexOf(e.name)>-1));return{contentWrapStyle:l,contentHeight:p,focusing:f,isClick:v,id:m,isActive:y,handleFocus:()=>{setTimeout((()=>{v.value?v.value=!1:f.value=!0}),50)},handleHeaderClick:()=>{e.disabled||(s("v3Collapse","item-click",r),c&&c(r),f.value=!1,v.value=!0)},handleEnterClick:()=>{s("v3Collapse","item-click",r)}}}},tt=["aria-expanded","aria-controls","aria-describedby"],nt=["id","tabindex"],ot=["aria-hidden","aria-labelledby","id"],rt={class:"v3-collapse-item__content"};var it=Me(et,[["render",function(e,t,n,o,r,i){return k(),C("div",{class:A(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[_("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":`v3-collapse-content-${o.id}`,"aria-describedby":`v3-collapse-content-${o.id}`},[_("div",{class:A(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=(...e)=>o.handleHeaderClick&&o.handleHeaderClick(...e)),role:"button",id:`v3-collapse-head-${o.id}`,tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=z(q(((...e)=>o.handleEnterClick&&o.handleEnterClick(...e)),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>o.handleFocus&&o.handleFocus(...e)),onBlur:t[3]||(t[3]=e=>o.focusing=!1)},[T(e.$slots,"title",{},(()=>[j(B(n.title),1)])),_("span",{class:A(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,nt)],8,tt),$(_("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":`v3-collapse-head-${o.id}`,id:`v3-collapse-content-${o.id}`},[_("div",rt,[T(e.$slots,"default")])],8,ot),[[D,o.isActive]])],2)}]]);var st={install:e=>{e.component(Je.name,Je),e.component(Xe.name,Xe),e.component(Ge.name,Ge),e.component(it.name,it),e.component(We.name,We)},v3Split:Je,v3Button:Xe,v3Collapse:Ge,v3CollapseItem:it},at={exports:{}},ct=at.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],b=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var r=y.exec(e||""),i={},s=14;s--;)i[g[s]]=r[s]||"";return-1!=n&&-1!=o&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=k(i,i.path),i.queryKey=w(i,i.query),i};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=b(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var r=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+r+":"+o.port+t,o.href=o.protocol+"://"+r+(n&&n.port===o.port?"":":"+o.port),o}var _={exports:{}};try{_.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Ze){_.exports=!1}var C=_.exports,E="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function S(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||C))return new XMLHttpRequest}catch(n){}if(!t)try{return new(E[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|r>>2,u[c++]=(3&r)<<6|63&i;return l},K="function"==typeof ArrayBuffer,Y=function(e,t){if("string"!=typeof e)return{type:"message",data:X(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:J(e.substring(1),t)}:L[n]?e.length>1?{type:L[n],data:e.substring(1)}:{type:L[n]}:I},J=function(e,t){if(K){var n=U(e);return X(n,t)}return{base64:!0,data:e}},X=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},G=String.fromCharCode(30),Q=function(e,t){var n=e.length,o=new Array(n),r=0;e.forEach((function(e,i){$(e,!1,(function(e){o[i]=e,++r===n&&t(o.join(G))}))}))},Z=function(e,t){for(var n=e.split(G),o=[],r=0;r0);return t}function ce(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new me(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),s}(pe),me=function(e){i(r,e);var n=h(r);function r(e,o){var i;return t(this,r),B(l(i=n.call(this)),o),i.opts=o,i.method=o.method||"GET",i.uri=e,i.async=!1!==o.async,i.data=void 0!==o.data?o.data:null,i.create(),i}return o(r,[{key:"create",value:function(){var e=this,t=A(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new S(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var o in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.opts.extraHeaders[o])}catch(i){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(i){return void this.setTimeoutFn((function(){e.onError(i)}),0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),r}(T);function ye(){for(var e in me.requests)me.requests.hasOwnProperty(e)&&me.requests[e].abort()}me.requestsCount=0,me.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in E?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},be=E.WebSocket||E.MozWebSocket,ke=!0,we="arraybuffer",xe="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),_e={websocket:function(e){i(r,e);var n=h(r);function r(e){var o;return t(this,r),(o=n.call(this,e)).supportsBinary=!e.forceBase64,o}return o(r,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=xe?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!xe?t?new be(e,t):new be(e):new be(e,t,n)}catch(Ze){return this.emit("error",Ze)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],r=n===e.length-1;$(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}r&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),o=s.call(this),n&&"object"===e(n)&&(i=n,n=null),n?(n=b(n),i.hostname=n.host,i.secure="https"===n.protocol||"wss"===n.protocol,i.port=n.port,n.query&&(i.query=n.query)):i.host&&(i.hostname=b(i.host).host),B(l(o),i),o.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=o.secure?"443":"80"),o.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),o.port=i.port||("undefined"!=typeof location&&location.port?location.port:o.secure?"443":"80"),o.transports=i.transports||["polling","websocket"],o.readyState="",o.writeBuffer=[],o.prevBufferLen=0,o.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),o.opts.path=o.opts.path.replace(/\/$/,"")+"/","string"==typeof o.opts.query&&(o.opts.query=he.decode(o.opts.query)),o.id=null,o.upgrades=null,o.pingInterval=null,o.pingTimeout=null,o.pingTimeoutTimer=null,"function"==typeof addEventListener&&(o.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){o.transport&&(o.transport.removeAllListeners(),o.transport.close())}),!1),"localhost"!==o.hostname&&(o.offlineEventListener=function(){o.onClose("transport close")},addEventListener("offline",o.offlineEventListener,!1))),o.open(),o}return o(a,[{key:"createTransport",value:function(e){var t=Ee(this.opts.query);t.EIO=ee,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new _e[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;a.priorWebsocketSuccess=!1;var r=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;a.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(h(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var r=new Error("probe error");r.transport=n.name,t.emitReserved("upgradeError",r)}})))};function i(){o||(o=!0,h(),n.close(),n=null)}var s=function(e){var o=new Error("probe error: "+e);o.transport=n.name,i(),t.emitReserved("upgradeError",o)};function c(){s("transport closed")}function l(){s("socket closed")}function u(e){n&&e.name!==n.name&&i()}var h=function(){n.removeListener("open",r),n.removeListener("error",s),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",r),n.once("error",s),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case He.ACK:case He.BINARY_ACK:return Array.isArray(n)}}}]),a}(T);function qe(e){try{return JSON.parse(e)}catch(t){return!1}}var Fe=function(){function e(n){t(this,e),this.packet=n,this.buffers=[],this.reconPack=n}return o(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=Le(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),Ve=Object.freeze({__proto__:null,protocol:ze,get PacketType(){return He},Encoder:$e,Decoder:De});function We(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){i(r,e);var n=h(r);function r(e,o,i){var s;return t(this,r),(s=n.call(this)).connected=!1,s.disconnected=!0,s.receiveBuffer=[],s.sendBuffer=[],s.ids=0,s.acks={},s.flags={},s.io=e,s.nsp=o,i&&i.auth&&(s.auth=i.auth),s.io._autoConnect&&s.open(),s}return o(r,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[We(e,"open",this.onopen.bind(this)),We(e,"packet",this.onpacket.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Je.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Je.prototype.reset=function(){this.attempts=0},Je.prototype.setMin=function(e){this.ms=e},Je.prototype.setMax=function(e){this.max=e},Je.prototype.setJitter=function(e){this.jitter=e};var Xe=function(n){i(s,n);var r=h(s);function s(n,o){var i,a;t(this,s),(i=r.call(this)).nsps={},i.subs=[],n&&"object"===e(n)&&(o=n,n=void 0),(o=o||{}).path=o.path||"/socket.io",i.opts=o,B(l(i),o),i.reconnection(!1!==o.reconnection),i.reconnectionAttempts(o.reconnectionAttempts||1/0),i.reconnectionDelay(o.reconnectionDelay||1e3),i.reconnectionDelayMax(o.reconnectionDelayMax||5e3),i.randomizationFactor(null!==(a=o.randomizationFactor)&&void 0!==a?a:.5),i.backoff=new Ye({min:i.reconnectionDelay(),max:i.reconnectionDelayMax(),jitter:i.randomizationFactor()}),i.timeout(null==o.timeout?2e4:o.timeout),i._readyState="closed",i.uri=n;var c=o.parser||Ve;return i.encoder=new c.Encoder,i.decoder=new c.Decoder,i._autoConnect=!1!==o.autoConnect,i._autoConnect&&i.open(),i}return o(s,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Ce(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var r=We(n,"open",(function(){o.onopen(),e&&e()})),i=We(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;0===s&&r();var a=this.setTimeoutFn((function(){r(),n.close(),n.emit("error",new Error("timeout"))}),s);this.opts.autoUnref&&a.unref(),this.subs.push((function(){clearTimeout(a)}))}return this.subs.push(r),this.subs.push(i),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(We(e,"ping",this.onping.bind(this)),We(e,"data",this.ondata.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this)),We(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),s}(T),Ge={};function Qe(t,n){"object"===e(t)&&(n=t,t=void 0);var o,r=x(t,(n=n||{}).path||"/socket.io"),i=r.source,s=r.id,a=r.path,c=Ge[s]&&a in Ge[s].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Xe(i,n):(Ge[s]||(Ge[s]=new Xe(i,n)),o=Ge[s]),r.query&&!n.query&&(n.query=r.queryKey),o.socket(r.path,n)}return r(Qe,{Manager:Xe,Socket:Ke,io:Qe,connect:Qe}),Qe}();const lt=Symbol("Terminal"),ut=Symbol("Socket");const ht=V({setup(e){const t=location.origin,n=ct(`${t}/terminal`,{reconnection:!0}),o=ct(`${t}/gitmars`,{reconnection:!0}),r=new we.exports.FitAddon,i=new xe.exports.SearchAddon,s=u({});return H(ut,{socket:n,socketGitmars:o}),H(lt,{getTerminal:(e,t="",o=100,a=20)=>(s[e]||(s[e]={term:new be.exports.Terminal({theme:ke,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:a,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},s[e].term.loadAddon(new _e.exports.WebLinksAddon),s[e].term.loadAddon(r),s[e].term.loadAddon(i),s[e].term.onData((t=>{n.emit(s[e].name+"-input",t)})),n.on(s[e].name+"-output",(t=>{s[e].term.write(t)})),n.on(s[e].name+"-pid",(t=>{console.info("pid: ",t),s[e].pid=t})),n.emit("create",{name:s[e].name,cwd:t}),window.addEventListener("resize",(()=>{s[e].term.fit()}))),s[e]),fitAddon:r}),L((()=>{})),(e,t)=>{const n=b("router-view");return k(),w(W,{to:"#app",class:"app"},[y(n)])}}}),pt={},dt=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`/${e}`)in pt)return;pt[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,document.head.appendChild(o),t?new Promise(((e,t)=>{o.addEventListener("load",e),o.addEventListener("error",t)})):void 0}))).then((()=>e())):e()},ft=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:()=>dt((()=>import("./index.01f2dca5.js")),["assets/index.01f2dca5.js","assets/vendor/vue-router_4.0.12.js.129523b1.js","assets/vendor/vue_3.2.23.js.9f5d2e7e.js"]),children:[{path:"list",name:"project_list",component:()=>dt((()=>import("./list.6b9b3f4f.js")),["assets/list.6b9b3f4f.js","assets/list.137c183b.css","assets/vendor/vue_3.2.23.js.9f5d2e7e.js","assets/vendor/vue-router_4.0.12.js.129523b1.js","assets/use-current-instance.41699c28.js","assets/vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.9156b156.js"])},{path:"add",name:"project_add",component:()=>dt((()=>import("./add.03c6260a.js")),["assets/add.03c6260a.js","assets/add.ac943c3d.css","assets/vendor/vue_3.2.23.js.9f5d2e7e.js","assets/vendor/vue-router_4.0.12.js.129523b1.js","assets/use-current-instance.41699c28.js","assets/vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.9156b156.js"])}]},{path:"/control",name:"control",component:()=>dt((()=>import("./index.9bccc055.js")),["assets/index.9bccc055.js","assets/index.56abfa7a.css","assets/vendor/vue-router_4.0.12.js.129523b1.js","assets/vendor/vue_3.2.23.js.9f5d2e7e.js","assets/vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.9156b156.js"]),children:[{path:"gitmars",name:"control_gitmars",component:()=>dt((()=>import("./gitmars.9b0ab500.js")),["assets/gitmars.9b0ab500.js","assets/gitmars.80d4d3bb.css","assets/vendor/vue-router_4.0.12.js.129523b1.js","assets/vendor/vue_3.2.23.js.9f5d2e7e.js","assets/index.e27c1182.js","assets/index.a6b03632.css","assets/vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/use-current-instance.41699c28.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.9156b156.js"])},{path:"tasks",name:"control_tasks",component:()=>dt((()=>import("./tasks.b0b5155f.js")),["assets/tasks.b0b5155f.js","assets/tasks.96dcfd4f.css","assets/vendor/vue-router_4.0.12.js.129523b1.js","assets/vendor/vue_3.2.23.js.9f5d2e7e.js","assets/index.e27c1182.js","assets/index.a6b03632.css","assets/use-current-instance.41699c28.js","assets/vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.9156b156.js"])}]}],vt=Ce({history:Ee(),routes:ft});var mt=Se({state:{},mutations:{},actions:{},modules:{}});const yt=U(ht);yt.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},yt.use(Y),yt.use(J),yt.use(X),yt.use(G),yt.use(Q),yt.use(Z),yt.use(K),yt.use(ee),yt.use(te),yt.use(ne),yt.use(oe),yt.use(re),yt.use(ie),yt.use(se),yt.use(ae),yt.use(mt).use(vt).use(st).use((function(e){e.config.globalProperties.$nextIndex=ve.bind(e),e.config.globalProperties.$axios=Ae,e.config.globalProperties.$delay=new de,e.config.globalProperties.$box=(...t)=>new Ke(e,...t)})).use((e=>{e.config.globalProperties.$filter={date:(e,t)=>e?ye(e).format(t):"",point:(e,t)=>e?parseFloat(e).toFixed(t):e}})).mount("#app");export{ut as S,lt as T,Me as _,Re as u}; diff --git a/app/www/assets/index.3e0a01f3.js b/app/www/assets/index.3e0a01f3.js new file mode 100644 index 00000000..676cdf09 --- /dev/null +++ b/app/www/assets/index.3e0a01f3.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,a=(e,t,n)=>(s(e,"symbol"!=typeof t?t+"":t,n),n);export function __vite_legacy_guard(){import("data:text/javascript,")}import{p as c,r as l,c as u,af as h,u as p,n as d,A as f,ae as m,E as v,s as y,z as g,K as b,J as k,v as w,I as x,Q as _,P as C,F as S,a4 as E,O as A,x as O,T as j,ag as B,ah as T,w as N,d as R,W as P,U as L,k as I,a6 as H,G as z,H as M,M as $,g as q,q as D,_ as F,ai as V}from"./vendor/vue_3.2.23.js.2057d383.js";import{E as W,u as U,a as K,b as Y,c as J,d as X,e as G,f as Q,g as Z,h as ee,i as te,j as ne,k as oe,l as re,m as ie,n as se}from"./vendor/element-plus_1.2.0-beta.4.js.16579006.js";import{a as ae}from"./vendor/axios_0.24.0.js.52256a15.js";import{l as ce}from"./vendor/qs_6.10.1.js.0baad282.js";import{a as le,f as ue,r as he,d as pe,e as de,n as fe}from"./vendor/js-cool_2.3.0.js.13999879.js";import{v as me}from"./vendor/uuid_8.3.2.js.8656f24a.js";import{d as ve}from"./vendor/dayjs_1.10.7.js.c37b32ae.js";import{c as ye,x as ge}from"./vendor/xterm_4.15.0.js.3e95bd6a.js";import{c as be}from"./vendor/xterm-style_1.1.0.js.323fb105.js";import{x as ke}from"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import{x as we}from"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import{x as xe}from"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import{c as _e,a as Ce}from"./vendor/vue-router_4.0.12.js.5ed4c9c6.js";import{c as Se}from"./vendor/vuex_4.0.2.js.ba8051b7.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/core-js_3.19.2.js.6f042051.js";function Ee(e){return new Promise(((t,n)=>{const o=ae.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((t=>{const n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=ce.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(e=>Promise.reject(e))),o.interceptors.response.use((t=>t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)),(e=>Promise.reject(e))),o(e).then((e=>{t(e)})).catch((e=>{e instanceof Error&&console.log(e)}))}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var Ae=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const Oe={name:"v3Box",components:{ElButton:W},props:{opacity:{type:Number,default:.4},title:{type:String,required:!0,default:"提示"},width:{type:String,default:"640px"},maxWidth:{type:String},height:String,maxHeight:{type:String,default:"480px"},message:String,okBtnName:{type:String,default:"确定"},cancelBtnName:{type:String,default:"取消"},defaultMax:{type:Boolean,default:!1},showOkBtn:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showBtn:{type:Boolean,default:!0},showMax:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},component:{type:Object,default:()=>({})},hide:Function,onOk:Function,onCancel:Function,onClose:Function},setup(e,{slots:t,emit:n,attrs:o}){const r=new pe,i=c({zIndex:0,instance:null,isAppendContent:!1,maxW:"640px",maxH:"360px",mWidth:null,mHeight:null,max:!1}),s=l(null),a=l(null),v=l(null),y=u((()=>e.showMax?e.showClose?2:1:e.showClose?1:0)),{enter:g}=U();h((()=>{g.value&&w()}));const b=()=>{r.register("windowReSize",k,500)},k=()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=ue(window.innerWidth>320?window.innerWidth-20:300),r=ue(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),s=parseInt(e.maxHeight||e.height||r||480),a=parseInt(e.maxWidth||e.width||o||600);i.maxW=Math.min(a,o)+"px",i.maxH=Math.min(s,r)+"px",i.max&&(i.mWidth=o+"px",i.mHeight=r+"px")},w=()=>{e.onOk&&"function"==typeof e.onOk?e.onOk(i.instance).then((()=>{e.hide()})):x()},x=()=>{he(window,"resize",i.reSize),i.instance=null,m(null,a.value),e.hide()};return i.max=p(e.defaultMax),i.maxH=p(e.maxHeight),i.maxW=p(e.maxWidth)||p(e.width),k(),d((()=>{i.instance=f(e.component),i.instance.props=p(e.options),m(i.instance,a.value),i.isAppendContent=!0,le(window,"resize",b),e.showBtn&&e.showOkBtn?v.value.focus():s.value.focus()})),{v3Box:s,boxContent:a,mainBtn:v,data:i,btns:y,handleOk:w,handleCancel:()=>{x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:()=>{x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=ue(window.innerWidth>320?window.innerWidth-20:300),r=ue(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);i.max?(i.max=!1,i.mWidth=null,i.mHeight=null):(i.max=!0,i.mWidth=o+"px",i.mHeight=r+"px")}}}},je=["innerHTML"],Be=["innerHTML"],Te={key:3,class:"v3-box-footer"},Ne={class:"v3-box-ico"},Re=(e=>(B("data-v-703a9198"),e=e(),T(),e))((()=>k("div",{class:"v3-box-filter"},null,-1)));var Pe=Ae(Oe,[["render",function(e,t,n,o,r,i){const s=v("el-button");return y(),g(j,{name:"fade"},{default:b((()=>[k("div",{ref:"v3Box",class:C(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:_({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(y(),w("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,je)):x("",!0),n.message&&!n.component?(y(),w("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:_({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,Be)):x("",!0),n.component&&!n.message?(y(),w("div",{key:2,ref:"boxContent",class:C(["v3-box-content",{"no-header":!n.showHeader}]),style:_({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):x("",!0),n.showBtn?(y(),w("div",Te,[e.$slots.footer?x("",!0):(y(),w(S,{key:0},[n.showOkBtn?(y(),g(s,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:b((()=>[E(A(n.okBtnName),1)])),_:1},8,["onClick"])):x("",!0),n.showCancelBtn?(y(),g(s,{key:1,onClick:o.handleCancel},{default:b((()=>[E(A(n.cancelBtnName),1)])),_:1},8,["onClick"])):x("",!0)],64)),e.$slots.footer?O(e.$slots,"footer",{key:1},void 0,!0):x("",!0)])):x("",!0),k("div",Ne,[Re,n.showMax&&o.data.max?(y(),w("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=(...e)=>o.handleMax&&o.handleMax(...e))})):x("",!0),n.showMax&&!o.data.max?(y(),w("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=(...e)=>o.handleMax&&o.handleMax(...e))})):x("",!0),n.showClose?(y(),w("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):x("",!0)])],6)])),_:3})}],["__scopeId","data-v-703a9198"]]);const Le={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}};class Ie{constructor(e,c,l){var u;a(this,"$el"),a(this,"instance"),l=de(!0,{},Le,l),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(fe(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+l.opacity+")",this.$el.id=me(),this.instance=f(Pe),this.instance.props=(u=((e,t)=>{for(var n in t||(t={}))r.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))i.call(t,n)&&s(e,n,t[n]);return e})({},l),t(u,n({component:c,hide:()=>{this.hide()}}))),document.body.appendChild(this.$el),this.show()}show(){m(this.instance,this.$el)}hide(){m(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}var He={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"};const ze={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].indexOf(e)>-1},modelValue:{type:[Number,String],default:"50%",validator:e=>/^([0-9]+)(%|px)?$/.test(e)},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup(e,{slots:t,emit:n}){const o=new pe,r=c({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),i=l(null),s=u((()=>Math.round(r.size/100*r.boxSize))),a=u((()=>{let n=0+r.size;return"horizontal"===e.mode?t.right?t.left||(n=0):n=100:t.bottom?this.$slots.top||(n=0):n=100,{["horizontal"===e.mode?"width":"height"]:n+"%"}}));N((()=>e.modelValue),(e=>{e&&("%"===r.suffix?r.size=ue(parseFloat(e),2):r.boxSize>0&&(r.size=ue(100*parseFloat(e)/r.boxSize,2)))})),N((()=>r.size),(t=>{let o=("%"!==r.suffix?s:t)+r.suffix;o!=e.modelValue&&0!==s&&n("input",o)}));const h=e=>{let t,n,o=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return o?(t=parseInt(o[12]||o[4]||0),n=parseInt(o[13]||o[5]||0),{x:t,y:n}):{x:0,y:0}},p=t=>(String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):r.boxSize>0&&(t=Math.max(t,ue(100*parseInt(e.min)/r.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):r.boxSize>0&&(t=Math.min(t,ue(100*parseInt(e.max)/r.boxSize,2))),t),d=e=>{let t=0,n=0,o=0,r=0;for(;e.offsetParent;){let o=h(e);t+=e.offsetLeft+o.x,n+=e.offsetTop+o.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,r+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:r}},f=t=>{let o=t.target;for(r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight);o.parentNode;){if(o.parentNode.className.indexOf(He.v3SplitBox)>-1){r.pos=d(o.parentNode);break}o=o.parentNode}t.preventDefault(),t.stopPropagation(),n("move-start"),le(document,"mousemove",m),le(document,"mouseup",v)},m=t=>{r.moving=!0,n("moving",t),o.register("v3SplitOnmouseMove",(()=>{let n;n="horizontal"===e.mode?t.pageX+r.pos.left-r.pos.x:t.pageY+r.pos.top-r.pos.y,r.size=p(ue(100*n/r.boxSize,2))}),50,!0),t.preventDefault()},v=()=>{r.moving=!1,n("move-end"),he(document,"mousemove",m),he(document,"mouseup",v)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,((e,t,n)=>{"%"===n&&(r.size=p(parseInt(t))),r.suffix=n||""})),R((()=>{r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight),"%"!==r.suffix&&(r.size=p(ue(100*parseInt(e.modelValue)/r.boxSize,2)))})),()=>P("div",{class:[He.v3SplitBox,He[e.mode],r.moving?" moving":""],ref:i},t.default?t.default():[P("div",{class:[He.v3SplitPanel,He.v3SplitPanel1],style:a.value},"horizontal"===e.mode?t.left():t.top()),("horizontal"===e.mode&&t.left&&t.right||"vertical"===e.mode&&t.top&&t.bottom)&&P("div",{class:He.v3SplitBar,onMousedown:f},[P("span"),P("span"),P("span"),P("span")]),P("div",{class:[He.v3SplitPanel,He.v3SplitPanel2]},"horizontal"===e.mode?t.right():t.bottom())])}};const Me={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:e=>["default","danger","primary"].indexOf(e)>-1},size:{type:String,default:"normal",validator:e=>["mini","small","normal","large"].indexOf(e)>-1}},setup(e,{slots:t,emit:n}){const o=e=>{n("click",e)};return()=>[P("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:o,disabled:e.disabled},[t.icon?[P("span",{class:["v3-button-icon"]},t.icon())," "]:e.icon&&[P("span",{class:["v3-button-icon"]},P("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,P("label",{class:["v3-button-text"]},t.default())])]}};var $e=Ae({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}},setup(e,{slots:t,emit:n}){const o=l([]);o.value=[].concat(e.modelValue),N((()=>e.modelValue),(e=>{console.log("collapse value change",e)}));const r=t=>{t=[].concat(t);let r=e.accordion?t[0]:t;o.value=t,n("update:modelValue",r)},i=t=>{if(e.accordion)r(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{let e=o.value.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),r(e)}};return L("collapse",{activeNames:o,handleItemClick:i}),{activeNames:o,setActiveNames:r,handleItemClick:i}}},[["render",function(e,t,n,o,r,i){return y(),w("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=(...e)=>o.handleItemClick&&o.handleItemClick(...e))},[O(e.$slots,"default")],32)}]]);function qe(e,t,n){this.$children.forEach((o=>{o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):qe.apply(o,[e,t].concat([n]))}))}function De(e){return{dispatch:(t,n,o)=>{for(var r=e.$parent||e.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[n].concat(o))},broadcast:(t,n,o)=>{qe.call(e,t,n,o)}}}const Fe={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},setup(e,{slots:t,emit:n,attrs:o}){const{proxy:r,appContext:i}=q(),{dispatch:s}=De(r),{activeNames:a,handleItemClick:h}=I("collapse"),p=c({height:"auto",display:"block"}),d=l(0),f=l(!1),m=l(!1),v=l(Math.floor(1e4*Math.random())),y=u((()=>a.value.indexOf(e.name)>-1));return{contentWrapStyle:p,contentHeight:d,focusing:f,isClick:m,id:v,isActive:y,handleFocus:()=>{setTimeout((()=>{m.value?m.value=!1:f.value=!0}),50)},handleHeaderClick:()=>{e.disabled||(s("v3Collapse","item-click",r),h&&h(r),f.value=!1,m.value=!0)},handleEnterClick:()=>{s("v3Collapse","item-click",r)}}}},Ve=["aria-expanded","aria-controls","aria-describedby"],We=["id","tabindex"],Ue=["aria-hidden","aria-labelledby","id"],Ke={class:"v3-collapse-item__content"};var Ye=Ae(Fe,[["render",function(e,t,n,o,r,i){return y(),w("div",{class:C(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[k("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":`v3-collapse-content-${o.id}`,"aria-describedby":`v3-collapse-content-${o.id}`},[k("div",{class:C(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=(...e)=>o.handleHeaderClick&&o.handleHeaderClick(...e)),role:"button",id:`v3-collapse-head-${o.id}`,tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=H($(((...e)=>o.handleEnterClick&&o.handleEnterClick(...e)),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>o.handleFocus&&o.handleFocus(...e)),onBlur:t[3]||(t[3]=e=>o.focusing=!1)},[O(e.$slots,"title",{},(()=>[E(A(n.title),1)])),k("span",{class:C(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,We)],8,Ve),z(k("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":`v3-collapse-head-${o.id}`,id:`v3-collapse-content-${o.id}`},[k("div",Ke,[O(e.$slots,"default")])],8,Ue),[[M,o.isActive]])],2)}]]);var Je={install:e=>{e.component(ze.name,ze),e.component(Me.name,Me),e.component($e.name,$e),e.component(Ye.name,Ye),e.component(Pe.name,Pe)},v3Split:ze,v3Button:Me,v3Collapse:$e,v3CollapseItem:Ye},Xe={exports:{}},Ge=Xe.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],b=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var r=y.exec(e||""),i={},s=14;s--;)i[g[s]]=r[s]||"";return-1!=n&&-1!=o&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=k(i,i.path),i.queryKey=w(i,i.query),i};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=b(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var r=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+r+":"+o.port+t,o.href=o.protocol+"://"+r+(n&&n.port===o.port?"":":"+o.port),o}var _={exports:{}};try{_.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Ze){_.exports=!1}var C=_.exports,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function E(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||C))return new XMLHttpRequest}catch(n){}if(!t)try{return new(S[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|r>>2,u[c++]=(3&r)<<6|63&i;return l},K="function"==typeof ArrayBuffer,Y=function(e,t){if("string"!=typeof e)return{type:"message",data:X(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:J(e.substring(1),t)}:L[n]?e.length>1?{type:L[n],data:e.substring(1)}:{type:L[n]}:I},J=function(e,t){if(K){var n=U(e);return X(n,t)}return{base64:!0,data:e}},X=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},G=String.fromCharCode(30),Q=function(e,t){var n=e.length,o=new Array(n),r=0;e.forEach((function(e,i){$(e,!1,(function(e){o[i]=e,++r===n&&t(o.join(G))}))}))},Z=function(e,t){for(var n=e.split(G),o=[],r=0;r0);return t}function ce(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new ve(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),s}(pe),ve=function(e){i(r,e);var n=h(r);function r(e,o){var i;return t(this,r),B(l(i=n.call(this)),o),i.opts=o,i.method=o.method||"GET",i.uri=e,i.async=!1!==o.async,i.data=void 0!==o.data?o.data:null,i.create(),i}return o(r,[{key:"create",value:function(){var e=this,t=A(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new E(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var o in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.opts.extraHeaders[o])}catch(i){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(i){return void this.setTimeoutFn((function(){e.onError(i)}),0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),r}(T);function ye(){for(var e in ve.requests)ve.requests.hasOwnProperty(e)&&ve.requests[e].abort()}ve.requestsCount=0,ve.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in S?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},be=S.WebSocket||S.MozWebSocket,ke=!0,we="arraybuffer",xe="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),_e={websocket:function(e){i(r,e);var n=h(r);function r(e){var o;return t(this,r),(o=n.call(this,e)).supportsBinary=!e.forceBase64,o}return o(r,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=xe?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!xe?t?new be(e,t):new be(e):new be(e,t,n)}catch(Ze){return this.emit("error",Ze)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],r=n===e.length-1;$(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}r&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),o=s.call(this),n&&"object"===e(n)&&(i=n,n=null),n?(n=b(n),i.hostname=n.host,i.secure="https"===n.protocol||"wss"===n.protocol,i.port=n.port,n.query&&(i.query=n.query)):i.host&&(i.hostname=b(i.host).host),B(l(o),i),o.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=o.secure?"443":"80"),o.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),o.port=i.port||("undefined"!=typeof location&&location.port?location.port:o.secure?"443":"80"),o.transports=i.transports||["polling","websocket"],o.readyState="",o.writeBuffer=[],o.prevBufferLen=0,o.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),o.opts.path=o.opts.path.replace(/\/$/,"")+"/","string"==typeof o.opts.query&&(o.opts.query=he.decode(o.opts.query)),o.id=null,o.upgrades=null,o.pingInterval=null,o.pingTimeout=null,o.pingTimeoutTimer=null,"function"==typeof addEventListener&&(o.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){o.transport&&(o.transport.removeAllListeners(),o.transport.close())}),!1),"localhost"!==o.hostname&&(o.offlineEventListener=function(){o.onClose("transport close")},addEventListener("offline",o.offlineEventListener,!1))),o.open(),o}return o(a,[{key:"createTransport",value:function(e){var t=Se(this.opts.query);t.EIO=ee,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new _e[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;a.priorWebsocketSuccess=!1;var r=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;a.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(h(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var r=new Error("probe error");r.transport=n.name,t.emitReserved("upgradeError",r)}})))};function i(){o||(o=!0,h(),n.close(),n=null)}var s=function(e){var o=new Error("probe error: "+e);o.transport=n.name,i(),t.emitReserved("upgradeError",o)};function c(){s("transport closed")}function l(){s("socket closed")}function u(e){n&&e.name!==n.name&&i()}var h=function(){n.removeListener("open",r),n.removeListener("error",s),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",r),n.once("error",s),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case He.ACK:case He.BINARY_ACK:return Array.isArray(n)}}}]),a}(T);function De(e){try{return JSON.parse(e)}catch(t){return!1}}var Fe=function(){function e(n){t(this,e),this.packet=n,this.buffers=[],this.reconPack=n}return o(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=Le(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),Ve=Object.freeze({__proto__:null,protocol:Me,get PacketType(){return He},Encoder:$e,Decoder:qe});function We(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){i(r,e);var n=h(r);function r(e,o,i){var s;return t(this,r),(s=n.call(this)).connected=!1,s.disconnected=!0,s.receiveBuffer=[],s.sendBuffer=[],s.ids=0,s.acks={},s.flags={},s.io=e,s.nsp=o,i&&i.auth&&(s.auth=i.auth),s.io._autoConnect&&s.open(),s}return o(r,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[We(e,"open",this.onopen.bind(this)),We(e,"packet",this.onpacket.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Je.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Je.prototype.reset=function(){this.attempts=0},Je.prototype.setMin=function(e){this.ms=e},Je.prototype.setMax=function(e){this.max=e},Je.prototype.setJitter=function(e){this.jitter=e};var Xe=function(n){i(s,n);var r=h(s);function s(n,o){var i,a;t(this,s),(i=r.call(this)).nsps={},i.subs=[],n&&"object"===e(n)&&(o=n,n=void 0),(o=o||{}).path=o.path||"/socket.io",i.opts=o,B(l(i),o),i.reconnection(!1!==o.reconnection),i.reconnectionAttempts(o.reconnectionAttempts||1/0),i.reconnectionDelay(o.reconnectionDelay||1e3),i.reconnectionDelayMax(o.reconnectionDelayMax||5e3),i.randomizationFactor(null!==(a=o.randomizationFactor)&&void 0!==a?a:.5),i.backoff=new Ye({min:i.reconnectionDelay(),max:i.reconnectionDelayMax(),jitter:i.randomizationFactor()}),i.timeout(null==o.timeout?2e4:o.timeout),i._readyState="closed",i.uri=n;var c=o.parser||Ve;return i.encoder=new c.Encoder,i.decoder=new c.Decoder,i._autoConnect=!1!==o.autoConnect,i._autoConnect&&i.open(),i}return o(s,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Ce(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var r=We(n,"open",(function(){o.onopen(),e&&e()})),i=We(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;0===s&&r();var a=this.setTimeoutFn((function(){r(),n.close(),n.emit("error",new Error("timeout"))}),s);this.opts.autoUnref&&a.unref(),this.subs.push((function(){clearTimeout(a)}))}return this.subs.push(r),this.subs.push(i),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(We(e,"ping",this.onping.bind(this)),We(e,"data",this.ondata.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this)),We(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),s}(T),Ge={};function Qe(t,n){"object"===e(t)&&(n=t,t=void 0);var o,r=x(t,(n=n||{}).path||"/socket.io"),i=r.source,s=r.id,a=r.path,c=Ge[s]&&a in Ge[s].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Xe(i,n):(Ge[s]||(Ge[s]=new Xe(i,n)),o=Ge[s]),r.query&&!n.query&&(n.query=r.queryKey),o.socket(r.path,n)}return r(Qe,{Manager:Xe,Socket:Ke,io:Qe,connect:Qe}),Qe}();const Qe=Symbol("Terminal"),Ze=Symbol("Socket");const et=D({setup(e){const t=location.origin,n=Ge(`${t}/terminal`,{reconnection:!0}),o=Ge(`${t}/gitmars`,{reconnection:!0}),r=new ke.exports.FitAddon,i=new we.exports.SearchAddon,s=c({});return L(Ze,{socket:n,socketGitmars:o}),L(Qe,{getTerminal:(e,t="",o=100,a=20)=>(s[e]||(s[e]={term:new ge.exports.Terminal({theme:be,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:a,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},s[e].term.loadAddon(new xe.exports.WebLinksAddon),s[e].term.loadAddon(r),s[e].term.loadAddon(i),s[e].term.onData((t=>{n.emit(s[e].name+"-input",t)})),n.on(s[e].name+"-output",(t=>{s[e].term.write(t)})),n.on(s[e].name+"-pid",(t=>{console.info("pid: ",t),s[e].pid=t})),n.emit("create",{name:s[e].name,cwd:t}),window.addEventListener("resize",(()=>{s[e].term.fit()}))),s[e]),fitAddon:r}),R((()=>{})),(e,t)=>{const n=v("router-view");return y(),g(F,{to:"#app",class:"app"},[f(n)])}}}),tt={},nt=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`/${e}`)in tt)return;tt[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,document.head.appendChild(o),t?new Promise(((e,t)=>{o.addEventListener("load",e),o.addEventListener("error",t)})):void 0}))).then((()=>e())):e()},ot=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:()=>nt((()=>import("./index.1671ba4b.js")),["assets/index.1671ba4b.js","assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js","assets/vendor/vue_3.2.23.js.2057d383.js"]),children:[{path:"list",name:"project_list",component:()=>nt((()=>import("./list.21a88cbc.js")),["assets/list.21a88cbc.js","assets/list.137c183b.css","assets/vendor/vue_3.2.23.js.2057d383.js","assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js","assets/use-current-instance.7f019932.js","assets/vendor/element-plus_1.2.0-beta.4.js.16579006.js","assets/vendor/element-plus_1.2.0-beta.4.js.33f41bca.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.13999879.js","assets/vendor/core-js_3.19.2.js.6f042051.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.ba8051b7.js"])},{path:"add",name:"project_add",component:()=>nt((()=>import("./add.4248df00.js")),["assets/add.4248df00.js","assets/add.ac943c3d.css","assets/vendor/vue_3.2.23.js.2057d383.js","assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js","assets/vendor/element-plus_1.2.0-beta.4.js.16579006.js","assets/vendor/element-plus_1.2.0-beta.4.js.33f41bca.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/use-current-instance.7f019932.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.13999879.js","assets/vendor/core-js_3.19.2.js.6f042051.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.ba8051b7.js"])}]},{path:"/control",name:"control",component:()=>nt((()=>import("./index.43700ea2.js")),["assets/index.43700ea2.js","assets/index.56abfa7a.css","assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js","assets/vendor/vue_3.2.23.js.2057d383.js","assets/vendor/element-plus_1.2.0-beta.4.js.16579006.js","assets/vendor/element-plus_1.2.0-beta.4.js.33f41bca.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.13999879.js","assets/vendor/core-js_3.19.2.js.6f042051.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.ba8051b7.js"]),children:[{path:"gitmars",name:"control_gitmars",component:()=>nt((()=>import("./gitmars.e9ec80d0.js")),["assets/gitmars.e9ec80d0.js","assets/gitmars.80d4d3bb.css","assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js","assets/vendor/vue_3.2.23.js.2057d383.js","assets/index.c11758ff.js","assets/index.a6b03632.css","assets/vendor/element-plus_1.2.0-beta.4.js.16579006.js","assets/vendor/element-plus_1.2.0-beta.4.js.33f41bca.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/use-current-instance.7f019932.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.13999879.js","assets/vendor/core-js_3.19.2.js.6f042051.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.ba8051b7.js"])},{path:"tasks",name:"control_tasks",component:()=>nt((()=>import("./tasks.ffedb46b.js")),["assets/tasks.ffedb46b.js","assets/tasks.96dcfd4f.css","assets/vendor/vue-router_4.0.12.js.5ed4c9c6.js","assets/vendor/vue_3.2.23.js.2057d383.js","assets/index.c11758ff.js","assets/index.a6b03632.css","assets/use-current-instance.7f019932.js","assets/vendor/element-plus_1.2.0-beta.4.js.16579006.js","assets/vendor/element-plus_1.2.0-beta.4.js.33f41bca.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.13999879.js","assets/vendor/core-js_3.19.2.js.6f042051.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.ba8051b7.js"])}]}],rt=_e({history:Ce(),routes:ot});var it=Se({state:{},mutations:{},actions:{},modules:{}});const st=V(et);st.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},st.use(K),st.use(Y),st.use(J),st.use(X),st.use(G),st.use(Q),st.use(W),st.use(Z),st.use(ee),st.use(te),st.use(ne),st.use(oe),st.use(re),st.use(ie),st.use(se),st.use(it).use(rt).use(Je).use((function(e){e.config.globalProperties.$nextIndex=fe.bind(e),e.config.globalProperties.$axios=Ee,e.config.globalProperties.$delay=new pe,e.config.globalProperties.$box=(...t)=>new Ie(e,...t)})).use((e=>{e.config.globalProperties.$filter={date:(e,t)=>e?ve(e).format(t):"",point:(e,t)=>e?parseFloat(e).toFixed(t):e}})).mount("#app");export{Ze as S,Qe as T,Ae as _}; diff --git a/app/www/assets/index.9bccc055.js b/app/www/assets/index.43700ea2.js similarity index 83% rename from app/www/assets/index.9bccc055.js rename to app/www/assets/index.43700ea2.js index e990a3c9..65cc8405 100644 --- a/app/www/assets/index.9bccc055.js +++ b/app/www/assets/index.43700ea2.js @@ -1 +1 @@ -var e=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(r,s,o)=>s in r?e(r,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[s]=o;import{u as l,b as i}from"./vendor/vue-router_4.0.12.js.129523b1.js";import{_ as d}from"./index.3c42119d.js";import{q as c,r as j,am as u,E as m,s as p,v,J as f,A as _,K as b,u as y,O as g,z as x,an as O,ah as q,ai as h}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";import"./vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.9156b156.js";const w=e=>(q("data-v-3b5216d9"),e=e(),h(),e),k={class:"control"},P={class:"menu mini"},E=w((()=>f("span",{class:"iconfont icon-codelibrary"},null,-1))),I=w((()=>f("span",null,"gitmars工作流",-1))),z=w((()=>f("span",{class:"iconfont icon-control"},null,-1))),A=w((()=>f("span",null,"任务",-1))),C=w((()=>f("span",{class:"iconfont icon-left-circle"},null,-1))),D=w((()=>f("span",null,"返回项目列表",-1))),J={key:0,class:"loading"},K=w((()=>f("div",{class:"loading"},"loading...",-1)));const S=c((V=((e,r)=>{for(var s in r||(r={}))a.call(r,s)&&n(e,s,r[s]);if(o)for(var s of o(r))t.call(r,s)&&n(e,s,r[s]);return e})({},{name:"Control"}),r(V,s({setup:function(e,{expose:r}){const s=l(),o=i(),a=j(null);return"control"===o.name&&s.replace({name:"control_gitmars",query:o.query}),u((e=>(a.value=e,!0))),r({router:s,route:o,error:a}),(e,r)=>{const s=m("router-link"),t=m("router-view");return p(),v("div",k,[f("div",P,[f("ul",null,[f("li",null,[_(s,{to:{name:"control_gitmars",query:y(o).query},title:"gitmars工作流"},{default:b((()=>[E,I])),_:1},8,["to"])]),f("li",null,[_(s,{to:{name:"control_tasks",query:y(o).query},title:"任务"},{default:b((()=>[z,A])),_:1},8,["to"])])]),f("ul",null,[f("li",null,[_(s,{to:{name:"project_list"},title:"返回项目列表"},{default:b((()=>[C,D])),_:1})])])]),a.value?(p(),v("div",J,g(a.value),1)):(p(),x(O,{key:1},{default:b((()=>[_(t,{class:"routerView"})])),fallback:b((()=>[K])),_:1}))])}}}))));var V,B=d(S,[["__scopeId","data-v-3b5216d9"]]);export{B as default}; +var e=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(r,s,o)=>s in r?e(r,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[s]=o;import{u as l,b as i}from"./vendor/vue-router_4.0.12.js.5ed4c9c6.js";import{_ as d}from"./index.3e0a01f3.js";import{q as c,r as j,al as u,E as m,s as p,v,J as f,A as _,K as b,u as y,O as g,z as x,am as O,ag as q,ah as h}from"./vendor/vue_3.2.23.js.2057d383.js";import"./vendor/element-plus_1.2.0-beta.4.js.16579006.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.13999879.js";import"./vendor/core-js_3.19.2.js.6f042051.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.ba8051b7.js";const w=e=>(q("data-v-3b5216d9"),e=e(),h(),e),k={class:"control"},P={class:"menu mini"},E=w((()=>f("span",{class:"iconfont icon-codelibrary"},null,-1))),I=w((()=>f("span",null,"gitmars工作流",-1))),z=w((()=>f("span",{class:"iconfont icon-control"},null,-1))),A=w((()=>f("span",null,"任务",-1))),C=w((()=>f("span",{class:"iconfont icon-left-circle"},null,-1))),D=w((()=>f("span",null,"返回项目列表",-1))),J={key:0,class:"loading"},K=w((()=>f("div",{class:"loading"},"loading...",-1)));const S=c((V=((e,r)=>{for(var s in r||(r={}))a.call(r,s)&&n(e,s,r[s]);if(o)for(var s of o(r))t.call(r,s)&&n(e,s,r[s]);return e})({},{name:"Control"}),r(V,s({setup:function(e,{expose:r}){const s=l(),o=i(),a=j(null);return"control"===o.name&&s.replace({name:"control_gitmars",query:o.query}),u((e=>(a.value=e,!0))),r({router:s,route:o,error:a}),(e,r)=>{const s=m("router-link"),t=m("router-view");return p(),v("div",k,[f("div",P,[f("ul",null,[f("li",null,[_(s,{to:{name:"control_gitmars",query:y(o).query},title:"gitmars工作流"},{default:b((()=>[E,I])),_:1},8,["to"])]),f("li",null,[_(s,{to:{name:"control_tasks",query:y(o).query},title:"任务"},{default:b((()=>[z,A])),_:1},8,["to"])])]),f("ul",null,[f("li",null,[_(s,{to:{name:"project_list"},title:"返回项目列表"},{default:b((()=>[C,D])),_:1})])])]),a.value?(p(),v("div",J,g(a.value),1)):(p(),x(O,{key:1},{default:b((()=>[_(t,{class:"routerView"})])),fallback:b((()=>[K])),_:1}))])}}}))));var V,B=d(S,[["__scopeId","data-v-3b5216d9"]]);export{B as default}; diff --git a/app/www/assets/index.c11758ff.js b/app/www/assets/index.c11758ff.js new file mode 100644 index 00000000..b779b98e --- /dev/null +++ b/app/www/assets/index.c11758ff.js @@ -0,0 +1 @@ +import{_ as r,T as e}from"./index.3e0a01f3.js";import{r as a,k as s,d as t,R as n,s as i,v as d,J as o}from"./vendor/vue_3.2.23.js.2057d383.js";const m={class:"terminal",ref:"terminal"},p=["id"];var l=r({name:"Xterm",components:{},props:{id:String,path:String},setup(r){const i=a(null),{getTerminal:d,fitAddon:o}=s(e),m=d(r.id,r.path);return t((()=>{m.term.open(i.value),m.term.focus()})),n((()=>{})),{termWrap:i}}},[["render",function(r,e,a,s,t,n){return i(),d("div",m,[o("div",{ref:"termWrap",id:a.id,class:"terminal-pane"},null,8,p)],512)}],["__scopeId","data-v-028cbdbf"]]);export{l as X}; diff --git a/app/www/assets/index.e27c1182.js b/app/www/assets/index.e27c1182.js deleted file mode 100644 index 69d0eec2..00000000 --- a/app/www/assets/index.e27c1182.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r,T as e}from"./index.3c42119d.js";import{r as a,l as s,d as t,R as n,s as d,v as i,J as o}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";const m={class:"terminal",ref:"terminal"},p=["id"];var l=r({name:"Xterm",components:{},props:{id:String,path:String},setup(r){const d=a(null),{getTerminal:i,fitAddon:o}=s(e),m=i(r.id,r.path);return t((()=>{m.term.open(d.value),m.term.focus()})),n((()=>{})),{termWrap:d}}},[["render",function(r,e,a,s,t,n){return d(),i("div",m,[o("div",{ref:"termWrap",id:a.id,class:"terminal-pane"},null,8,p)],512)}],["__scopeId","data-v-028cbdbf"]]);export{l as X}; diff --git a/app/www/assets/list-legacy.b99e267f.js b/app/www/assets/list-legacy.fd0d45b9.js similarity index 77% rename from app/www/assets/list-legacy.b99e267f.js rename to app/www/assets/list-legacy.fd0d45b9.js index 24863def..a4c16ea2 100644 --- a/app/www/assets/list-legacy.b99e267f.js +++ b/app/www/assets/list-legacy.fd0d45b9.js @@ -1 +1 @@ -!function(){function n(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function e(e){for(var o=1;oe in o?s(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;import{q as i,V as l,ak as c,s as d,v as j,J as p,F as m,a1 as v,a5 as u,O as f,M as b,u as _,ah as h,ai as x}from"./vendor/vue_3.2.23.js.9f5d2e7e.js";import{u as y,b as k}from"./vendor/vue-router_4.0.12.js.129523b1.js";import{u as O}from"./use-current-instance.41699c28.js";import{_ as g}from"./index.3c42119d.js";import"./vendor/element-plus_1.2.0-beta.3.js.01fd1cfa.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.9156b156.js";const C=s=>(h("data-v-745548e5"),s=s(),x(),s),P={class:"project-list"},w={class:"content"},$=C((()=>p("h2",null,"项目列表",-1))),q=["onClick"],B=C((()=>p("span",{class:"iconfont icon-star-fill",title:"收藏"},null,-1))),I={class:"ttl"},T=C((()=>p("span",{class:"tg"},null,-1))),A=["onClick"],D=["onClick"];const E=i((F=((s,o)=>{for(var e in o||(o={}))n.call(o,e)&&a(s,e,o[e]);if(t)for(var e of t(o))r.call(o,e)&&a(s,e,o[e]);return s})({},{name:"ProjectList"}),o(F,e({setup:function(s,{expose:o}){const{globalProperties:{$axios:e,$confirm:t}}=O(),n=y();k();const r=l({list:[]});c((()=>{a()}));const a=()=>{e({url:"/common/project/list",data:{}}).then((({data:s})=>{r.list=[].concat(s)}))},i=({name:s})=>{console.log(s)},h=({id:s})=>{n.push(`/control?id=${s}`)},x=({id:s})=>{t("确认删除这个项目吗","请确认",{distinguishCancelAndClose:!0,confirmButtonText:"确认",cancelButtonText:"取消"}).then((()=>{e({url:"/common/project/del",type:"post",data:{id:s}}).then((()=>{a()}))}))};return o({data:r,open:i,goProject:h,del:x}),(s,o)=>(d(),j("div",P,[p("div",w,[$,p("ul",null,[(d(!0),j(m,null,v(_(r).list,(s=>(d(),j("li",{key:s.id,class:"flex",onClick:o=>h(s)},[B,p("div",I,[p("span",null,[u(f(s.name)+" ",1),T]),p("p",null,f(s.path),1)]),p("span",{class:"iconfont icon-link",onClick:b((o=>i(s)),["stop"]),title:"进入项目首页"},null,8,A),p("span",{class:"iconfont icon-close-circle",onClick:b((o=>x(s)),["stop"]),title:"删除"},null,8,D)],8,q)))),128))])])]))}}))));var F,J=g(E,[["__scopeId","data-v-745548e5"]]);export{J as default}; +var s=Object.defineProperty,o=Object.defineProperties,e=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(o,e,t)=>e in o?s(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;import{q as i,p as l,aj as c,s as d,v as j,J as p,F as m,a0 as v,a4 as u,O as f,M as b,u as _,ag as h,ah as x}from"./vendor/vue_3.2.23.js.2057d383.js";import{u as y,b as g}from"./vendor/vue-router_4.0.12.js.5ed4c9c6.js";import{u as O}from"./use-current-instance.7f019932.js";import{_ as k}from"./index.3e0a01f3.js";import"./vendor/element-plus_1.2.0-beta.4.js.16579006.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.13999879.js";import"./vendor/core-js_3.19.2.js.6f042051.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.ba8051b7.js";const C=s=>(h("data-v-745548e5"),s=s(),x(),s),P={class:"project-list"},w={class:"content"},$=C((()=>p("h2",null,"项目列表",-1))),q=["onClick"],B=C((()=>p("span",{class:"iconfont icon-star-fill",title:"收藏"},null,-1))),I={class:"ttl"},T=C((()=>p("span",{class:"tg"},null,-1))),A=["onClick"],D=["onClick"];const E=i((F=((s,o)=>{for(var e in o||(o={}))n.call(o,e)&&a(s,e,o[e]);if(t)for(var e of t(o))r.call(o,e)&&a(s,e,o[e]);return s})({},{name:"ProjectList"}),o(F,e({setup:function(s,{expose:o}){const{globalProperties:{$axios:e,$confirm:t}}=O(),n=y();g();const r=l({list:[]});c((()=>{a()}));const a=()=>{e({url:"/common/project/list",data:{}}).then((({data:s})=>{r.list=[].concat(s)}))},i=({name:s})=>{console.log(s)},h=({id:s})=>{n.push(`/control?id=${s}`)},x=({id:s})=>{t("确认删除这个项目吗","请确认",{distinguishCancelAndClose:!0,confirmButtonText:"确认",cancelButtonText:"取消"}).then((()=>{e({url:"/common/project/del",type:"post",data:{id:s}}).then((()=>{a()}))}))};return o({data:r,open:i,goProject:h,del:x}),(s,o)=>(d(),j("div",P,[p("div",w,[$,p("ul",null,[(d(!0),j(m,null,v(_(r).list,(s=>(d(),j("li",{key:s.id,class:"flex",onClick:o=>h(s)},[B,p("div",I,[p("span",null,[u(f(s.name)+" ",1),T]),p("p",null,f(s.path),1)]),p("span",{class:"iconfont icon-link",onClick:b((o=>i(s)),["stop"]),title:"进入项目首页"},null,8,A),p("span",{class:"iconfont icon-close-circle",onClick:b((o=>x(s)),["stop"]),title:"删除"},null,8,D)],8,q)))),128))])])]))}}))));var F,J=k(E,[["__scopeId","data-v-745548e5"]]);export{J as default}; diff --git a/app/www/assets/polyfills-legacy.d226e43f.js b/app/www/assets/polyfills-legacy.d226e43f.js new file mode 100644 index 00000000..74bfdcf2 --- /dev/null +++ b/app/www/assets/polyfills-legacy.d226e43f.js @@ -0,0 +1 @@ +!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n={},o=function(t){try{return!!t()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=Function.prototype.call,u=a.bind?a.bind(a):function(){return a.apply(a,arguments)},c={},f={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l=s&&!f.call({1:2},1);c.f=l?function(t){var e=s(this,t);return!!e&&e.enumerable}:f;var h,p,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d=Function.prototype,g=d.bind,y=d.call,m=g&&g.bind(y),b=g?function(t){return t&&m(y,t)}:function(t){return t&&function(){return y.apply(t,arguments)}},w=b,x=w({}.toString),S=w("".slice),E=function(t){return S(x(t),8,-1)},A=b,O=o,T=E,R=r.Object,P=A("".split),I=O((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?P(t,""):R(t)}:R,j=r.TypeError,L=function(t){if(null==t)throw j("Can't call method on "+t);return t},k=I,M=L,U=function(t){return k(M(t))},_=function(t){return"function"==typeof t},N=_,C=function(t){return"object"==typeof t?null!==t:N(t)},F=r,B=_,z=function(t){return B(t)?t:void 0},D=function(t,e){return arguments.length<2?z(F[t]):F[t]&&F[t][e]},W=b({}.isPrototypeOf),q=D("navigator","userAgent")||"",G=r,H=q,Y=G.process,V=G.Deno,$=Y&&Y.versions||V&&V.version,J=$&&$.v8;J&&(p=(h=J.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!p&&H&&(!(h=H.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=H.match(/Chrome\/(\d+)/))&&(p=+h[1]);var K=p,X=K,Q=o,Z=!!Object.getOwnPropertySymbols&&!Q((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=D,rt=_,nt=W,ot=tt,it=r.Object,at=ot?function(t){return"symbol"==typeof t}:function(t){var e=et("Symbol");return rt(e)&&nt(e.prototype,it(t))},ut=r.String,ct=function(t){try{return ut(t)}catch(e){return"Object"}},ft=_,st=ct,lt=r.TypeError,ht=function(t){if(ft(t))return t;throw lt(st(t)+" is not a function")},pt=ht,vt=function(t,e){var r=t[e];return null==r?void 0:pt(r)},dt=u,gt=_,yt=C,mt=r.TypeError,bt={exports:{}},wt=r,xt=Object.defineProperty,St=function(t,e){try{xt(wt,t,{value:e,configurable:!0,writable:!0})}catch(r){wt[t]=e}return e},Et=St,At="__core-js_shared__",Ot=r[At]||Et(At,{}),Tt=Ot;(bt.exports=function(t,e){return Tt[t]||(Tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Rt=L,Pt=r.Object,It=function(t){return Pt(Rt(t))},jt=It,Lt=b({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return Lt(jt(t),e)},Mt=b,Ut=0,_t=Math.random(),Nt=Mt(1..toString),Ct=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Nt(++Ut+_t,36)},Ft=r,Bt=bt.exports,zt=kt,Dt=Ct,Wt=Z,qt=tt,Gt=Bt("wks"),Ht=Ft.Symbol,Yt=Ht&&Ht.for,Vt=qt?Ht:Ht&&Ht.withoutSetter||Dt,$t=function(t){if(!zt(Gt,t)||!Wt&&"string"!=typeof Gt[t]){var e="Symbol."+t;Wt&&zt(Ht,t)?Gt[t]=Ht[t]:Gt[t]=qt&&Yt?Yt(e):Vt(e)}return Gt[t]},Jt=u,Kt=C,Xt=at,Qt=vt,Zt=function(t,e){var r,n;if("string"===e&>(r=t.toString)&&!yt(n=dt(r,t)))return n;if(gt(r=t.valueOf)&&!yt(n=dt(r,t)))return n;if("string"!==e&>(r=t.toString)&&!yt(n=dt(r,t)))return n;throw mt("Can't convert object to primitive value")},te=$t,ee=r.TypeError,re=te("toPrimitive"),ne=function(t,e){if(!Kt(t)||Xt(t))return t;var r,n=Qt(t,re);if(n){if(void 0===e&&(e="default"),r=Jt(n,t,e),!Kt(r)||Xt(r))return r;throw ee("Can't convert object to primitive value")}return void 0===e&&(e="number"),Zt(t,e)},oe=ne,ie=at,ae=function(t){var e=oe(t,"string");return ie(e)?e:e+""},ue=C,ce=r.document,fe=ue(ce)&&ue(ce.createElement),se=function(t){return fe?ce.createElement(t):{}},le=se,he=!i&&!o((function(){return 7!=Object.defineProperty(le("div"),"a",{get:function(){return 7}}).a})),pe=i,ve=u,de=c,ge=v,ye=U,me=ae,be=kt,we=he,xe=Object.getOwnPropertyDescriptor;n.f=pe?xe:function(t,e){if(t=ye(t),e=me(e),we)try{return xe(t,e)}catch(r){}if(be(t,e))return ge(!ve(de.f,t,e),t[e])};var Se={},Ee=r,Ae=C,Oe=Ee.String,Te=Ee.TypeError,Re=function(t){if(Ae(t))return t;throw Te(Oe(t)+" is not an object")},Pe=i,Ie=he,je=Re,Le=ae,ke=r.TypeError,Me=Object.defineProperty;Se.f=Pe?Me:function(t,e,r){if(je(t),e=Le(e),je(r),Ie)try{return Me(t,e,r)}catch(n){}if("get"in r||"set"in r)throw ke("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ue=Se,_e=v,Ne=i?function(t,e,r){return Ue.f(t,e,_e(1,r))}:function(t,e,r){return t[e]=r,t},Ce={exports:{}},Fe=_,Be=Ot,ze=b(Function.toString);Fe(Be.inspectSource)||(Be.inspectSource=function(t){return ze(t)});var De,We,qe,Ge=Be.inspectSource,He=_,Ye=Ge,Ve=r.WeakMap,$e=He(Ve)&&/native code/.test(Ye(Ve)),Je=bt.exports,Ke=Ct,Xe=Je("keys"),Qe=function(t){return Xe[t]||(Xe[t]=Ke(t))},Ze={},tr=$e,er=r,rr=b,nr=C,or=Ne,ir=kt,ar=Ot,ur=Qe,cr=Ze,fr="Object already initialized",sr=er.TypeError,lr=er.WeakMap;if(tr||ar.state){var hr=ar.state||(ar.state=new lr),pr=rr(hr.get),vr=rr(hr.has),dr=rr(hr.set);De=function(t,e){if(vr(hr,t))throw new sr(fr);return e.facade=t,dr(hr,t,e),e},We=function(t){return pr(hr,t)||{}},qe=function(t){return vr(hr,t)}}else{var gr=ur("state");cr[gr]=!0,De=function(t,e){if(ir(t,gr))throw new sr(fr);return e.facade=t,or(t,gr,e),e},We=function(t){return ir(t,gr)?t[gr]:{}},qe=function(t){return ir(t,gr)}}var yr={set:De,get:We,has:qe,enforce:function(t){return qe(t)?We(t):De(t,{})},getterFor:function(t){return function(e){var r;if(!nr(e)||(r=We(e)).type!==t)throw sr("Incompatible receiver, "+t+" required");return r}}},mr=i,br=kt,wr=Function.prototype,xr=mr&&Object.getOwnPropertyDescriptor,Sr=br(wr,"name"),Er={EXISTS:Sr,PROPER:Sr&&"something"===function(){}.name,CONFIGURABLE:Sr&&(!mr||mr&&xr(wr,"name").configurable)},Ar=r,Or=_,Tr=kt,Rr=Ne,Pr=St,Ir=Ge,jr=Er.CONFIGURABLE,Lr=yr.get,kr=yr.enforce,Mr=String(String).split("String");(Ce.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:e;Or(r)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Tr(r,"name")||jr&&r.name!==c)&&Rr(r,"name",c),(o=kr(r)).source||(o.source=Mr.join("string"==typeof c?c:""))),t!==Ar?(i?!u&&t[e]&&(a=!0):delete t[e],a?t[e]=r:Rr(t,e,r)):a?t[e]=r:Pr(e,r)})(Function.prototype,"toString",(function(){return Or(this)&&Lr(this).source||Ir(this)}));var Ur={},_r=Math.ceil,Nr=Math.floor,Cr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Nr:_r)(e)},Fr=Cr,Br=Math.max,zr=Math.min,Dr=function(t,e){var r=Fr(t);return r<0?Br(r+e,0):zr(r,e)},Wr=Cr,qr=Math.min,Gr=function(t){return t>0?qr(Wr(t),9007199254740991):0},Hr=Gr,Yr=function(t){return Hr(t.length)},Vr=U,$r=Dr,Jr=Yr,Kr=function(t){return function(e,r,n){var o,i=Vr(e),a=Jr(i),u=$r(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Xr={includes:Kr(!0),indexOf:Kr(!1)},Qr=kt,Zr=U,tn=Xr.indexOf,en=Ze,rn=b([].push),nn=function(t,e){var r,n=Zr(t),o=0,i=[];for(r in n)!Qr(en,r)&&Qr(n,r)&&rn(i,r);for(;e.length>o;)Qr(n,r=e[o++])&&(~tn(i,r)||rn(i,r));return i},on=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],an=nn,un=on.concat("length","prototype");Ur.f=Object.getOwnPropertyNames||function(t){return an(t,un)};var cn={};cn.f=Object.getOwnPropertySymbols;var fn=D,sn=Ur,ln=cn,hn=Re,pn=b([].concat),vn=fn("Reflect","ownKeys")||function(t){var e=sn.f(hn(t)),r=ln.f;return r?pn(e,r(t)):e},dn=kt,gn=vn,yn=n,mn=Se,bn=function(t,e){for(var r=gn(e),n=mn.f,o=yn.f,i=0;ii;i++)if((u=g(t[i]))&&Vo(Zo,u))return u;return new Qo(!1)}n=$o(t,o)}for(c=n.next;!(f=Wo(c,n)).done;){try{u=g(f.value)}catch(y){Ko(n,"throw",y)}if("object"==typeof u&&u&&Vo(Zo,u))return u}return new Qo(!1)},ei=$t("iterator"),ri=!1;try{var ni=0,oi={next:function(){return{done:!!ni++}},return:function(){ri=!0}};oi[ei]=function(){return this},Array.from(oi,(function(){throw 2}))}catch(HU){}var ii,ai,ui,ci,fi=function(t,e){if(!e&&!ri)return!1;var r=!1;try{var n={};n[ei]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(HU){}return r},si=b,li=o,hi=_,pi=Ao,vi=Ge,di=function(){},gi=[],yi=D("Reflect","construct"),mi=/^\s*(?:class|function)\b/,bi=si(mi.exec),wi=!mi.exec(di),xi=function(t){if(!hi(t))return!1;try{return yi(di,gi,t),!0}catch(HU){return!1}},Si=!yi||li((function(){var t;return xi(xi.call)||!xi(Object)||!xi((function(){t=!0}))||t}))?function(t){if(!hi(t))return!1;switch(pi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wi||!!bi(mi,vi(t))}:xi,Ei=Si,Ai=ct,Oi=r.TypeError,Ti=function(t){if(Ei(t))return t;throw Oi(Ai(t)+" is not a constructor")},Ri=Re,Pi=Ti,Ii=$t("species"),ji=function(t,e){var r,n=Ri(t).constructor;return void 0===n||null==(r=Ri(n)[Ii])?e:Pi(r)},Li=Function.prototype,ki=Li.apply,Mi=Li.bind,Ui=Li.call,_i="object"==typeof Reflect&&Reflect.apply||(Mi?Ui.bind(ki):function(){return Ui.apply(ki,arguments)}),Ni=D("document","documentElement"),Ci=b([].slice),Fi=/(?:ipad|iphone|ipod).*applewebkit/i.test(q),Bi="process"==E(r.process),zi=r,Di=_i,Wi=co,qi=_,Gi=kt,Hi=o,Yi=Ni,Vi=Ci,$i=se,Ji=Fi,Ki=Bi,Xi=zi.setImmediate,Qi=zi.clearImmediate,Zi=zi.process,ta=zi.Dispatch,ea=zi.Function,ra=zi.MessageChannel,na=zi.String,oa=0,ia={},aa="onreadystatechange";try{ii=zi.location}catch(HU){}var ua=function(t){if(Gi(ia,t)){var e=ia[t];delete ia[t],e()}},ca=function(t){return function(){ua(t)}},fa=function(t){ua(t.data)},sa=function(t){zi.postMessage(na(t),ii.protocol+"//"+ii.host)};Xi&&Qi||(Xi=function(t){var e=Vi(arguments,1);return ia[++oa]=function(){Di(qi(t)?t:ea(t),void 0,e)},ai(oa),oa},Qi=function(t){delete ia[t]},Ki?ai=function(t){Zi.nextTick(ca(t))}:ta&&ta.now?ai=function(t){ta.now(ca(t))}:ra&&!Ji?(ci=(ui=new ra).port2,ui.port1.onmessage=fa,ai=Wi(ci.postMessage,ci)):zi.addEventListener&&qi(zi.postMessage)&&!zi.importScripts&&ii&&"file:"!==ii.protocol&&!Hi(sa)?(ai=sa,zi.addEventListener("message",fa,!1)):ai=aa in $i("script")?function(t){Yi.appendChild($i("script")).onreadystatechange=function(){Yi.removeChild(this),ua(t)}}:function(t){setTimeout(ca(t),0)});var la,ha,pa,va,da,ga,ya,ma,ba={set:Xi,clear:Qi},wa=r,xa=/ipad|iphone|ipod/i.test(q)&&void 0!==wa.Pebble,Sa=/web0s(?!.*chrome)/i.test(q),Ea=r,Aa=co,Oa=n.f,Ta=ba.set,Ra=Fi,Pa=xa,Ia=Sa,ja=Bi,La=Ea.MutationObserver||Ea.WebKitMutationObserver,ka=Ea.document,Ma=Ea.process,Ua=Ea.Promise,_a=Oa(Ea,"queueMicrotask"),Na=_a&&_a.value;Na||(la=function(){var t,e;for(ja&&(t=Ma.domain)&&t.exit();ha;){e=ha.fn,ha=ha.next;try{e()}catch(HU){throw ha?va():pa=void 0,HU}}pa=void 0,t&&t.enter()},Ra||ja||Ia||!La||!ka?!Pa&&Ua&&Ua.resolve?((ya=Ua.resolve(void 0)).constructor=Ua,ma=Aa(ya.then,ya),va=function(){ma(la)}):ja?va=function(){Ma.nextTick(la)}:(Ta=Aa(Ta,Ea),va=function(){Ta(la)}):(da=!0,ga=ka.createTextNode(""),new La(la).observe(ga,{characterData:!0}),va=function(){ga.data=da=!da}));var Ca=Na||function(t){var e={fn:t,next:void 0};pa&&(pa.next=e),ha||(ha=e,va()),pa=e},Fa={},Ba=ht,za=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Ba(e),this.reject=Ba(r)};Fa.f=function(t){return new za(t)};var Da,Wa,qa,Ga,Ha=Re,Ya=C,Va=Fa,$a=function(t,e){if(Ha(t),Ya(e)&&e.constructor===t)return e;var r=Va.f(t);return(0,r.resolve)(e),r.promise},Ja=r,Ka="object"==typeof window,Xa=Nn,Qa=r,Za=D,tu=u,eu=Cn,ru=Ce.exports,nu=Bn,ou=Vn,iu=Xn,au=ro,uu=ht,cu=_,fu=C,su=io,lu=Ge,hu=ti,pu=fi,vu=ji,du=ba.set,gu=Ca,yu=$a,mu=function(t,e){var r=Ja.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},bu=Fa,wu=function(t){try{return{error:!1,value:t()}}catch(HU){return{error:!0,value:HU}}},xu=yr,Su=Pn,Eu=Ka,Au=Bi,Ou=K,Tu=$t("species"),Ru="Promise",Pu=xu.get,Iu=xu.set,ju=xu.getterFor(Ru),Lu=eu&&eu.prototype,ku=eu,Mu=Lu,Uu=Qa.TypeError,_u=Qa.document,Nu=Qa.process,Cu=bu.f,Fu=Cu,Bu=!!(_u&&_u.createEvent&&Qa.dispatchEvent),zu=cu(Qa.PromiseRejectionEvent),Du="unhandledrejection",Wu=!1,qu=Su(Ru,(function(){var t=lu(ku),e=t!==String(ku);if(!e&&66===Ou)return!0;if(Ou>=51&&/native code/.test(t))return!1;var r=new ku((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[Tu]=n,!(Wu=r.then((function(){}))instanceof n)||!e&&Eu&&!zu})),Gu=qu||!pu((function(t){ku.all(t).catch((function(){}))})),Hu=function(t){var e;return!(!fu(t)||!cu(e=t.then))&&e},Yu=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;gu((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,c,f=r[i++],s=o?f.ok:f.fail,l=f.resolve,h=f.reject,p=f.domain;try{s?(o||(2===t.rejection&&Ku(t),t.rejection=1),!0===s?a=n:(p&&p.enter(),a=s(n),p&&(p.exit(),c=!0)),a===f.promise?h(Uu("Promise-chain cycle")):(u=Hu(a))?tu(u,a,l,h):l(a)):h(n)}catch(HU){p&&!c&&p.exit(),h(HU)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&$u(t)}))}},Vu=function(t,e,r){var n,o;Bu?((n=_u.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Qa.dispatchEvent(n)):n={promise:e,reason:r},!zu&&(o=Qa["on"+t])?o(n):t===Du&&mu("Unhandled promise rejection",r)},$u=function(t){tu(du,Qa,(function(){var e,r=t.facade,n=t.value;if(Ju(t)&&(e=wu((function(){Au?Nu.emit("unhandledRejection",n,r):Vu(Du,r,n)})),t.rejection=Au||Ju(t)?2:1,e.error))throw e.value}))},Ju=function(t){return 1!==t.rejection&&!t.parent},Ku=function(t){tu(du,Qa,(function(){var e=t.facade;Au?Nu.emit("rejectionHandled",e):Vu("rejectionhandled",e,t.value)}))},Xu=function(t,e,r){return function(n){t(e,n,r)}},Qu=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Yu(t,!0))},Zu=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Uu("Promise can't be resolved itself");var n=Hu(e);n?gu((function(){var r={done:!1};try{tu(n,e,Xu(Zu,r,t),Xu(Qu,r,t))}catch(HU){Qu(r,HU,t)}})):(t.value=e,t.state=1,Yu(t,!1))}catch(HU){Qu({done:!1},HU,t)}}};if(qu&&(Mu=(ku=function(t){su(this,Mu),uu(t),tu(Da,this);var e=Pu(this);try{t(Xu(Zu,e),Xu(Qu,e))}catch(HU){Qu(e,HU)}}).prototype,(Da=function(t){Iu(this,{type:Ru,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=nu(Mu,{then:function(t,e){var r=ju(this),n=r.reactions,o=Cu(vu(this,ku));return o.ok=!cu(t)||t,o.fail=cu(e)&&e,o.domain=Au?Nu.domain:void 0,r.parent=!0,n[n.length]=o,0!=r.state&&Yu(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Wa=function(){var t=new Da,e=Pu(t);this.promise=t,this.resolve=Xu(Zu,e),this.reject=Xu(Qu,e)},bu.f=Cu=function(t){return t===ku||t===qa?new Wa(t):Fu(t)},cu(eu)&&Lu!==Object.prototype)){Ga=Lu.then,Wu||(ru(Lu,"then",(function(t,e){var r=this;return new ku((function(t,e){tu(Ga,r,t,e)})).then(t,e)}),{unsafe:!0}),ru(Lu,"catch",Mu.catch,{unsafe:!0}));try{delete Lu.constructor}catch(HU){}ou&&ou(Lu,Mu)}Xa({global:!0,wrap:!0,forced:qu},{Promise:ku}),iu(ku,Ru,!1),au(Ru),qa=Za(Ru),Xa({target:Ru,stat:!0,forced:qu},{reject:function(t){var e=Cu(this);return tu(e.reject,void 0,t),e.promise}}),Xa({target:Ru,stat:!0,forced:qu},{resolve:function(t){return yu(this,t)}}),Xa({target:Ru,stat:!0,forced:Gu},{all:function(t){var e=this,r=Cu(e),n=r.resolve,o=r.reject,i=wu((function(){var r=uu(e.resolve),i=[],a=0,u=1;hu(t,(function(t){var c=a++,f=!1;u++,tu(r,e,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Cu(e),n=r.reject,o=wu((function(){var o=uu(e.resolve);hu(t,(function(t){tu(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var tc,ec=nn,rc=on,nc=Object.keys||function(t){return ec(t,rc)},oc=Se,ic=Re,ac=U,uc=nc,cc=i?Object.defineProperties:function(t,e){ic(t);for(var r,n=ac(e),o=uc(e),i=o.length,a=0;i>a;)oc.f(t,r=o[a++],n[r]);return t},fc=Re,sc=cc,lc=on,hc=Ze,pc=Ni,vc=se,dc=Qe("IE_PROTO"),gc=function(){},yc=function(t){return" - + + - + @@ -42,17 +42,17 @@ - - + + - - + + - + @@ -61,7 +61,7 @@
- - + + diff --git a/bin/conf/status.ts b/bin/conf/status.ts new file mode 100644 index 00000000..7742d1aa --- /dev/null +++ b/bin/conf/status.ts @@ -0,0 +1,36 @@ +import type { GitmarsOptionType } from '../../typings' +;(function (root) { + const cmdConfig: GitmarsOptionType = { + command: 'status', + short: '', + args: [], + options: [], + // 校验传值 + validatorOpts: (val, opts, cb) => { + cb() + }, + // 校验参数 + validatorArgs: (val, opts, cb) => { + cb() + }, + // 清洗传值 + transformOpts: (val, opts, cb) => { + cb() + }, + // 清洗参数 + transformArgs: (val, opts, cb) => { + cb() + } + } + + /* istanbul ignore next */ + if (typeof exports === 'object' && typeof module === 'object') + module.exports = cmdConfig + // else if (typeof define === 'function' && define.amd) define(['cmdConfig'], () => cmdConfig) + else if (typeof exports === 'object') exports['cmdConfig'] = cmdConfig + else { + if (!root.gitmarsCmdConfig) root.gitmarsCmdConfig = {} + root.gitmarsCmdConfig['status'] = cmdConfig + } + //@ts-ignore +})(typeof window !== 'undefined' ? window : global) diff --git a/bin/gitm-status.ts b/bin/gitm-status.ts new file mode 100755 index 00000000..64036aa3 --- /dev/null +++ b/bin/gitm-status.ts @@ -0,0 +1,51 @@ +#!/usr/bin/env ts-node +const { program } = require('commander') +const columnify = require('columnify') +const { yellow, red, cyan, green } = require('colors') +const { options, args } = require('./conf/status') +const getIsGitProject = require('./core/git/getIsGitProject') +const getCurrentBranch = require('./core/git/getCurrentBranch') +const getGitStatus = require('./core/git/getGitStatus') +const { createArgs } = require('./core/utils/command') +const echo = require('./core/utils/echo') +if (!getIsGitProject()) { + echo(red('当前目录不是git项目目录')) + process.exit(1) +} + +import { GitmarsOptionOptionsType, GitStatusInfoType } from '../typings' + +/** + * gitm status + */ +program + .name('gitm status') + .usage('[-k --keep [keep]]') + .description('恢复暂存区文件') +if (args.length > 0) program.arguments(createArgs(args)) +options.forEach((o: GitmarsOptionOptionsType) => { + program.option(o.flags, o.description, o.defaultValue) +}) +program.action(() => { + const current = getCurrentBranch() + const status: GitStatusInfoType = getGitStatus() + const data = [] + let num = Math.max( + status['??'].length, + status['A'].length, + status['M'].length, + status['D'].length + ) + while (num--) { + data.unshift({ + added: yellow(status['A'][num] || ''), + modified: green(status['M'][num] || ''), + deleted: red(status['D'][num] || ''), + untracked: cyan(status['??'][num] || '') + }) + } + echo(green(`当前分支:${current}\n`)) + echo(columnify(data)) +}) +program.parse(process.argv) +export {} diff --git a/bin/gitm.ts b/bin/gitm.ts index fece8b12..8e9e1f4a 100755 --- a/bin/gitm.ts +++ b/bin/gitm.ts @@ -57,6 +57,7 @@ program .alias('ug') .command('build', '构建Jenkins') .alias('bd') + .command('status', '查看分支状态') .command('ui', '启动网页版gitmars') .command('unlink', '解除软链接') .command('link', '软链接') @@ -117,6 +118,7 @@ program.on('command:*', function (types: string[], opts: string[]) { 'ug', 'build', 'bd', + 'status', 'ui', 'unlink', 'link', diff --git a/docs/api/index.md b/docs/api/index.md index 5d7b2add..944a628c 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1104,6 +1104,20 @@ gitm ug -m gitm clean ``` +### gitm status + +查看当前分支状态 + +- 使用:`gitm status` +- 参数:无 +- 传值:无 + +- 示例: + +```shell +gitm status +``` + ### gitm ui 启动 UI 界面 diff --git a/docs/changelog.md b/docs/changelog.md index 42abbcf5..b0013b40 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,9 @@ # 更新日志 +## 2021.12.14 v2.15.4 更新日志 + +1. 新增`status`指令查看当前分支状态 + ## 2021.12.13 v2.15.3 更新日志 1. `log`指令增加`--json`传值,是否以json格式输出日志,默认表格方式 diff --git a/docs/guide/index.md b/docs/guide/index.md index f7636a72..288f69be 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -73,6 +73,7 @@ title: guide - 撤销提交 [gitm revert](../api/#gitm-revert) - 撤回某次提交记录或者撤回谋条分支的合并记录 [gitm undo](../api/#gitm-undo) - 重做某次提交记录或者重做谋条分支的合并记录 [gitm redo](../api/#gitm-redo) +- 查看当前分支状态 [gitm status](../api/#gitm-status) - 升级 gitmars [gitm upgrade](../api/#gitm-upgrade) - 构建 Jenkins [gitm build](../api/#gitm-build) - 解除软链接 [gitm unlink](../api/#gitm-unlink) diff --git a/lib/conf/status.js b/lib/conf/status.js new file mode 100644 index 00000000..b055bb6f --- /dev/null +++ b/lib/conf/status.js @@ -0,0 +1,31 @@ +'use strict'; + +(function(root) { + const cmdConfig = { + command: "status", + short: "", + args: [], + options: [], + validatorOpts: (val, opts, cb) => { + cb(); + }, + validatorArgs: (val, opts, cb) => { + cb(); + }, + transformOpts: (val, opts, cb) => { + cb(); + }, + transformArgs: (val, opts, cb) => { + cb(); + } + }; + if (typeof exports === "object" && typeof module === "object") + module.exports = cmdConfig; + else if (typeof exports === "object") + exports["cmdConfig"] = cmdConfig; + else { + if (!root.gitmarsCmdConfig) + root.gitmarsCmdConfig = {}; + root.gitmarsCmdConfig["status"] = cmdConfig; + } +})(typeof window !== "undefined" ? window : global); diff --git a/lib/gitm-status.js b/lib/gitm-status.js new file mode 100644 index 00000000..edcadbe3 --- /dev/null +++ b/lib/gitm-status.js @@ -0,0 +1,40 @@ +#!/usr/bin/env node +'use strict'; + +const { program } = require("commander"); +const columnify = require("columnify"); +const { yellow, red, cyan, green } = require("colors"); +const { options, args } = require("./conf/status"); +const getIsGitProject = require("./core/git/getIsGitProject"); +const getCurrentBranch = require("./core/git/getCurrentBranch"); +const getGitStatus = require("./core/git/getGitStatus"); +const { createArgs } = require("./core/utils/command"); +const echo = require("./core/utils/echo"); +if (!getIsGitProject()) { + echo(red("\u5F53\u524D\u76EE\u5F55\u4E0D\u662Fgit\u9879\u76EE\u76EE\u5F55")); + process.exit(1); +} +program.name("gitm status").usage("[-k --keep [keep]]").description("\u6062\u590D\u6682\u5B58\u533A\u6587\u4EF6"); +if (args.length > 0) + program.arguments(createArgs(args)); +options.forEach((o) => { + program.option(o.flags, o.description, o.defaultValue); +}); +program.action(() => { + const current = getCurrentBranch(); + const status = getGitStatus(); + const data = []; + let num = Math.max(status["??"].length, status["A"].length, status["M"].length, status["D"].length); + while (num--) { + data.unshift({ + added: yellow(status["A"][num] || ""), + modified: green(status["M"][num] || ""), + deleted: red(status["D"][num] || ""), + untracked: cyan(status["??"][num] || "") + }); + } + echo(green(`\u5F53\u524D\u5206\u652F\uFF1A${current} +`)); + echo(columnify(data)); +}); +program.parse(process.argv); diff --git a/lib/gitm.js b/lib/gitm.js index 3badc7b3..4650c7ad 100644 --- a/lib/gitm.js +++ b/lib/gitm.js @@ -21,7 +21,7 @@ Y888 | 888 888 888 888 888 C888 888 888 888D v${version}, powered by saqqdy `, "-v, --version", "\u67E5\u770Bgitmars\u7248\u672C"); -program.name("gitm").usage("[command] options").command("init", "\u521D\u59CB\u5316gitmars\u914D\u7F6E").command("config [options]", "\u67E5\u770B/\u8BBE\u7F6Egitmars\u7684\u914D\u7F6E\u9879").command("combine", "\u5206\u652F\u9636\u6BB5\u63D0\u6D4B").alias("cb").command("start ", "\u521B\u5EFAbugfix\u5206\u652F\u3001\u521B\u5EFA/\u5408\u5E76release\u5206\u652F").alias("st").command("end ", "\u5B8C\u6210\u5F00\u53D1\u67D0\u9879\u529F\u80FD").alias("ed").command("update ", "\u66F4\u65B0bug\u4EFB\u52A1\u5206\u652F\u3001\u66F4\u65B0feature\u529F\u80FD\u5F00\u53D1\u5206\u652F").alias("up").command("branch", "\u5217\u51FA\u5206\u652F\u5217\u8868").alias("bh").command("save", "\u6682\u5B58\u5F53\u524D\u5206\u652F\u6587\u4EF6").alias("sv").command("get", "\u6062\u590D\u6682\u5B58\u533A\u6700\u8FD1\u4E00\u6B21\u6682\u5B58\u7684\u6587\u4EF6").alias("gt").command("cleanbranch", "\u6E05\u7406\u5408\u5E76\u8FC7\u7684\u529F\u80FD\u5206\u652F").alias("clb").command("copy ", "\u7B80\u5316git\u7684cherry-pick\u64CD\u4F5C").alias("cp").command("merge ", "\u5408\u5E76\u4EE3\u7801").alias("mg").command("continue", "\u7EE7\u7EED\u672A\u5B8C\u6210\u7684\u64CD\u4F5C").alias("ct").command("revert", "\u64A4\u9500\u63D0\u4EA4").alias("rt").command("upgrade", "\u5347\u7EA7gitmars").alias("ug").command("build", "\u6784\u5EFAJenkins").alias("bd").command("ui", "\u542F\u52A8\u7F51\u9875\u7248gitmars").command("unlink", "\u89E3\u9664\u8F6F\u94FE\u63A5").command("link", "\u8F6F\u94FE\u63A5").command("clean", "\u6E05\u9664\u7F13\u5B58").command("postmsg", "\u63A8\u9001\u6D88\u606F").command("permission", "\u63D0\u4EA4\u6743\u9650").command("hook", "git\u94A9\u5B50\u6307\u4EE4").command("undo", "\u64A4\u56DE\u4E3B\u5E72\u5206\u652F\u4E0A\u7684\u63D0\u4EA4").alias("ud").command("redo", "\u6062\u590D\u64A4\u56DE\u7684\u4EE3\u7801\u91CD\u65B0\u4E0A\u7EBF").alias("rd").command("run", "git\u94A9\u5B50\u8FD0\u884C\u6307\u4EE4").command("log", "\u67E5\u8BE2\u65E5\u5FD7").command("go", "\u667A\u80FD\u731C\u6D4B\u4F60\u8981\u6267\u884C\u7684\u52A8\u4F5C").command("admin ", "\u7BA1\u7406\u5458\u529F\u80FD\uFF0C\u5305\u542B\u5BF9\u53D1\u7248\u5206\u652Fbugfix\u3001release\u7684\u64CD\u4F5C"); +program.name("gitm").usage("[command] options").command("init", "\u521D\u59CB\u5316gitmars\u914D\u7F6E").command("config [options]", "\u67E5\u770B/\u8BBE\u7F6Egitmars\u7684\u914D\u7F6E\u9879").command("combine", "\u5206\u652F\u9636\u6BB5\u63D0\u6D4B").alias("cb").command("start ", "\u521B\u5EFAbugfix\u5206\u652F\u3001\u521B\u5EFA/\u5408\u5E76release\u5206\u652F").alias("st").command("end ", "\u5B8C\u6210\u5F00\u53D1\u67D0\u9879\u529F\u80FD").alias("ed").command("update ", "\u66F4\u65B0bug\u4EFB\u52A1\u5206\u652F\u3001\u66F4\u65B0feature\u529F\u80FD\u5F00\u53D1\u5206\u652F").alias("up").command("branch", "\u5217\u51FA\u5206\u652F\u5217\u8868").alias("bh").command("save", "\u6682\u5B58\u5F53\u524D\u5206\u652F\u6587\u4EF6").alias("sv").command("get", "\u6062\u590D\u6682\u5B58\u533A\u6700\u8FD1\u4E00\u6B21\u6682\u5B58\u7684\u6587\u4EF6").alias("gt").command("cleanbranch", "\u6E05\u7406\u5408\u5E76\u8FC7\u7684\u529F\u80FD\u5206\u652F").alias("clb").command("copy ", "\u7B80\u5316git\u7684cherry-pick\u64CD\u4F5C").alias("cp").command("merge ", "\u5408\u5E76\u4EE3\u7801").alias("mg").command("continue", "\u7EE7\u7EED\u672A\u5B8C\u6210\u7684\u64CD\u4F5C").alias("ct").command("revert", "\u64A4\u9500\u63D0\u4EA4").alias("rt").command("upgrade", "\u5347\u7EA7gitmars").alias("ug").command("build", "\u6784\u5EFAJenkins").alias("bd").command("status", "\u67E5\u770B\u5206\u652F\u72B6\u6001").command("ui", "\u542F\u52A8\u7F51\u9875\u7248gitmars").command("unlink", "\u89E3\u9664\u8F6F\u94FE\u63A5").command("link", "\u8F6F\u94FE\u63A5").command("clean", "\u6E05\u9664\u7F13\u5B58").command("postmsg", "\u63A8\u9001\u6D88\u606F").command("permission", "\u63D0\u4EA4\u6743\u9650").command("hook", "git\u94A9\u5B50\u6307\u4EE4").command("undo", "\u64A4\u56DE\u4E3B\u5E72\u5206\u652F\u4E0A\u7684\u63D0\u4EA4").alias("ud").command("redo", "\u6062\u590D\u64A4\u56DE\u7684\u4EE3\u7801\u91CD\u65B0\u4E0A\u7EBF").alias("rd").command("run", "git\u94A9\u5B50\u8FD0\u884C\u6307\u4EE4").command("log", "\u67E5\u8BE2\u65E5\u5FD7").command("go", "\u667A\u80FD\u731C\u6D4B\u4F60\u8981\u6267\u884C\u7684\u52A8\u4F5C").command("admin ", "\u7BA1\u7406\u5458\u529F\u80FD\uFF0C\u5305\u542B\u5BF9\u53D1\u7248\u5206\u652Fbugfix\u3001release\u7684\u64CD\u4F5C"); program.on("--help", function() { echo("\u4F7F\u7528\u6848\u4F8B:"); echo(" $ gitm init"); @@ -60,6 +60,7 @@ program.on("command:*", function(types, opts) { "ug", "build", "bd", + "status", "ui", "unlink", "link",