@vtj/pro 0.7.32 → 0.7.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/element/index.umd.js +3 -3
  3. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  4. package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/ckeditor.js +7 -0
  5. package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/zh-cn.js +1 -0
  6. package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-vue/ckeditor.js +6 -0
  7. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -3
  9. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  10. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  11. package/dist/assets/@ckeditor-Cpj98o6Y.js +1 -0
  12. package/dist/assets/dayjs-Bz4m6kJv.js +1 -0
  13. package/dist/assets/{element-plus-gu9Rf9y_.js → element-plus-DZc0I8pP.js} +1 -1
  14. package/dist/assets/{index-Bpxco8Ff.js → index-BVpsP8Tm.js} +32 -32
  15. package/dist/assets/index-DWYPoLDp.js +1 -0
  16. package/dist/assets/index-Ik77R_6m.css +1 -0
  17. package/dist/assets/index-O_v7qyie.js +7 -0
  18. package/dist/assets/{mockjs-CMctHrKM.js → mockjs-DCYLE3qz.js} +1 -1
  19. package/dist/assets/preview-BY2oT622.js +7 -0
  20. package/dist/assets/{vue-B4uJKP5b.js → vue-DILL4w2e.js} +2 -2
  21. package/dist/index.html +4 -3
  22. package/package.json +10 -10
  23. package/dist/assets/dayjs-Cdlb6j_n.js +0 -1
  24. package/dist/assets/index-AOmtVMZf.js +0 -7
  25. package/dist/assets/index-B6DPGmji.css +0 -1
  26. package/dist/assets/index-C6vmqgO7.js +0 -1
  27. package/dist/assets/preview-DU7qt63_.js +0 -7
@@ -4,13 +4,13 @@ function __vite__mapDeps(indexes) {
4
4
  }
5
5
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6
6
  }
7
- import{_ as td}from"./monaco-editor-DdPna5vs.js";import{an as zt,d as D,_ as w,a4 as Zi,j as O,o as y,S as V,U as S,M as ce,O as de,P as Bt,W as Ke,G as Jt,r as B,f as se,ab as qt,u as d,c as M,Q as ve,Z as te,a as R,X as I,Y as ue,a1 as Gt,L as vi,af as ln,aa as zn,a5 as un,F as ne,a9 as oe,ad as wt,ae as Dt,J as Re,R as nd,t as jr,h as qn,ao as Ts,w as Os,n as ct,V as xt,T as rd,D as id,i as eo,I as to,ar as Xo,m as gi,at as Bs,av as od,bD as Ct,$ as Kt,bB as yi,aU as ad,s as bi,aC as zs}from"./@vue-DbHY7CtS.js";import{f as sd,a as Br,b as no,c as Ve,d as qe,e as ld,g as ud,h as cd,i as zr,j as dd,k as ro,l as Vr,m as io,n as tt,o as Ds,p as Qo,q as pd,r as oo,s as hd,t as Is,u as md,v as ao,w as so,x as fd,y as vd,A as gd,B as Dn,C as yd,D as lo,F as Yt,G as Rs,H as bd,I as uo,J as wi,K as xi,L as Be,M as wd,N as xd,O as _d,P as Sd,Q as kd,R as Zo,S as ea,T as jd,U as Vd,z as Cd,E as $d,V as Dr,W as Ed,X as Ms,Y as Ad,Z as co,_ as Ps,$ as Td}from"./element-plus-gu9Rf9y_.js";import{Q as Od,w as Bd,n as Ns,R as Fs,D as zd,P as Dd,k as Hs,j as Id,B as Rd,M as Ls,E as po,d as Md,S as Pd}from"./@element-plus-DnwP2ajv.js";import{n as Nd,p as ta,q as mn,s as Fd,v as Hd,w as Ld,x as Ud}from"./@vueuse-J6GfbQpH.js";import{k as Ir}from"./vue-B4uJKP5b.js";import{useRoute as Wd}from"./vue-router-caOqMrBK.js";import{d as Mn}from"./mockjs-CMctHrKM.js";var Jd={ENV_TYPE:"live",NODE_ENV:"production"},qd=typeof global=="object"&&global&&global.Object===Object&&global;const Us=qd;var Kd=typeof self=="object"&&self&&self.Object===Object&&self,Gd=Us||Kd||Function("return this")();const st=Gd;var Yd=st.Symbol;const ht=Yd;var Ws=Object.prototype,Xd=Ws.hasOwnProperty,Qd=Ws.toString,$n=ht?ht.toStringTag:void 0;function Zd(n){var e=Xd.call(n,$n),t=n[$n];try{n[$n]=void 0;var r=!0}catch{}var i=Qd.call(n);return r&&(e?n[$n]=t:delete n[$n]),i}var ep=Object.prototype,tp=ep.toString;function np(n){return tp.call(n)}var rp="[object Null]",ip="[object Undefined]",na=ht?ht.toStringTag:void 0;function St(n){return n==null?n===void 0?ip:rp:na&&na in Object(n)?Zd(n):np(n)}function nt(n){return n!=null&&typeof n=="object"}var op="[object Symbol]";function Rr(n){return typeof n=="symbol"||nt(n)&&St(n)==op}function Js(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var ap=Array.isArray;const at=ap;var sp=1/0,ra=ht?ht.prototype:void 0,ia=ra?ra.toString:void 0;function qs(n){if(typeof n=="string")return n;if(at(n))return Js(n,qs)+"";if(Rr(n))return ia?ia.call(n):"";var e=n+"";return e=="0"&&1/n==-sp?"-0":e}var lp=/\s/;function up(n){for(var e=n.length;e--&&lp.test(n.charAt(e)););return e}var cp=/^\s+/;function dp(n){return n&&n.slice(0,up(n)+1).replace(cp,"")}function De(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var oa=NaN,pp=/^[-+]0x[0-9a-f]+$/i,hp=/^0b[01]+$/i,mp=/^0o[0-7]+$/i,fp=parseInt;function aa(n){if(typeof n=="number")return n;if(Rr(n))return oa;if(De(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=De(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=dp(n);var t=hp.test(n);return t||mp.test(n)?fp(n.slice(2),t?2:8):pp.test(n)?oa:+n}function Ks(n){return n}var vp="[object AsyncFunction]",gp="[object Function]",yp="[object GeneratorFunction]",bp="[object Proxy]";function Pn(n){if(!De(n))return!1;var e=St(n);return e==gp||e==yp||e==vp||e==bp}var wp=st["__core-js_shared__"];const Yr=wp;var sa=function(){var n=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function xp(n){return!!sa&&sa in n}var _p=Function.prototype,Sp=_p.toString;function Xt(n){if(n!=null){try{return Sp.call(n)}catch{}try{return n+""}catch{}}return""}var kp=/[\\^$.*+?()[\]{}|]/g,jp=/^\[object .+?Constructor\]$/,Vp=Function.prototype,Cp=Object.prototype,$p=Vp.toString,Ep=Cp.hasOwnProperty,Ap=RegExp("^"+$p.call(Ep).replace(kp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tp(n){if(!De(n)||xp(n))return!1;var e=Pn(n)?Ap:jp;return e.test(Xt(n))}function Op(n,e){return n?.[e]}function Qt(n,e){var t=Op(n,e);return Tp(t)?t:void 0}var Bp=Qt(st,"WeakMap");const _i=Bp;var la=Object.create,zp=function(){function n(){}return function(e){if(!De(e))return{};if(la)return la(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const Dp=zp;function Gs(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Ys(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Ip=800,Rp=16,Mp=Date.now;function Pp(n){var e=0,t=0;return function(){var r=Mp(),i=Rp-(r-t);if(t=r,i>0){if(++e>=Ip)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Np(n){return function(){return n}}var Fp=function(){try{var n=Qt(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Cr=Fp;var Hp=Cr?function(n,e){return Cr(n,"toString",{configurable:!0,enumerable:!1,value:Np(e),writable:!0})}:Ks;const Lp=Hp;var Up=Pp(Lp);const Wp=Up;function Jp(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var qp=9007199254740991,Kp=/^(?:0|[1-9]\d*)$/;function ho(n,e){var t=typeof n;return e=e??qp,!!e&&(t=="number"||t!="symbol"&&Kp.test(n))&&n>-1&&n%1==0&&n<e}function mo(n,e,t){e=="__proto__"&&Cr?Cr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function yn(n,e){return n===e||n!==n&&e!==e}var Gp=Object.prototype,Yp=Gp.hasOwnProperty;function fo(n,e,t){var r=n[e];(!(Yp.call(n,e)&&yn(r,t))||t===void 0&&!(e in n))&&mo(n,e,t)}function bn(n,e,t,r){var i=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(t[s],n[s],s,t,n):void 0;l===void 0&&(l=n[s]),i?mo(t,s,l):fo(t,s,l)}return t}var ua=Math.max;function Xp(n,e,t){return e=ua(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=ua(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=t(a),Gs(n,this,s)}}function Xs(n,e){return Wp(Xp(n,e,Ks),n+"")}var Qp=9007199254740991;function Qs(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Qp}function Mr(n){return n!=null&&Qs(n.length)&&!Pn(n)}function Zs(n,e,t){if(!De(t))return!1;var r=typeof e;return(r=="number"?Mr(t)&&ho(e,t.length):r=="string"&&e in t)?yn(t[e],n):!1}function el(n){return Xs(function(e,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,a&&Zs(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=t[r];s&&n(e,s,r,o)}return e})}var Zp=Object.prototype;function vo(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Zp;return n===t}function eh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var th="[object Arguments]";function ca(n){return nt(n)&&St(n)==th}var tl=Object.prototype,nh=tl.hasOwnProperty,rh=tl.propertyIsEnumerable,ih=ca(function(){return arguments}())?ca:function(n){return nt(n)&&nh.call(n,"callee")&&!rh.call(n,"callee")};const Si=ih;function oh(){return!1}var nl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,da=nl&&typeof module=="object"&&module&&!module.nodeType&&module,ah=da&&da.exports===nl,pa=ah?st.Buffer:void 0,sh=pa?pa.isBuffer:void 0,lh=sh||oh;const Nn=lh;var uh="[object Arguments]",ch="[object Array]",dh="[object Boolean]",ph="[object Date]",hh="[object Error]",mh="[object Function]",fh="[object Map]",vh="[object Number]",gh="[object Object]",yh="[object RegExp]",bh="[object Set]",wh="[object String]",xh="[object WeakMap]",_h="[object ArrayBuffer]",Sh="[object DataView]",kh="[object Float32Array]",jh="[object Float64Array]",Vh="[object Int8Array]",Ch="[object Int16Array]",$h="[object Int32Array]",Eh="[object Uint8Array]",Ah="[object Uint8ClampedArray]",Th="[object Uint16Array]",Oh="[object Uint32Array]",we={};we[kh]=we[jh]=we[Vh]=we[Ch]=we[$h]=we[Eh]=we[Ah]=we[Th]=we[Oh]=!0,we[uh]=we[ch]=we[_h]=we[dh]=we[Sh]=we[ph]=we[hh]=we[mh]=we[fh]=we[vh]=we[gh]=we[yh]=we[bh]=we[wh]=we[xh]=!1;function Bh(n){return nt(n)&&Qs(n.length)&&!!we[St(n)]}function go(n){return function(e){return n(e)}}var rl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,In=rl&&typeof module=="object"&&module&&!module.nodeType&&module,zh=In&&In.exports===rl,Xr=zh&&Us.process,Dh=function(){try{var n=In&&In.require&&In.require("util").types;return n||Xr&&Xr.binding&&Xr.binding("util")}catch{}}();const mt=Dh;var ha=mt&&mt.isTypedArray,Ih=ha?go(ha):Bh;const yo=Ih;var Rh=Object.prototype,Mh=Rh.hasOwnProperty;function il(n,e){var t=at(n),r=!t&&Si(n),i=!t&&!r&&Nn(n),o=!t&&!r&&!i&&yo(n),a=t||r||i||o,s=a?eh(n.length,String):[],l=s.length;for(var u in n)(e||Mh.call(n,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ho(u,l)))&&s.push(u);return s}function ol(n,e){return function(t){return n(e(t))}}var Ph=ol(Object.keys,Object);const Nh=Ph;var Fh=Object.prototype,Hh=Fh.hasOwnProperty;function Lh(n){if(!vo(n))return Nh(n);var e=[];for(var t in Object(n))Hh.call(n,t)&&t!="constructor"&&e.push(t);return e}function Pr(n){return Mr(n)?il(n):Lh(n)}function Uh(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Wh=Object.prototype,Jh=Wh.hasOwnProperty;function qh(n){if(!De(n))return Uh(n);var e=vo(n),t=[];for(var r in n)r=="constructor"&&(e||!Jh.call(n,r))||t.push(r);return t}function wn(n){return Mr(n)?il(n,!0):qh(n)}var Kh=el(function(n,e,t,r){bn(e,wn(e),n,r)});const ma=Kh;var Gh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yh=/^\w*$/;function Xh(n,e){if(at(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Rr(n)?!0:Yh.test(n)||!Gh.test(n)||e!=null&&n in Object(e)}var Qh=Qt(Object,"create");const Fn=Qh;function Zh(){this.__data__=Fn?Fn(null):{},this.size=0}function e0(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var t0="__lodash_hash_undefined__",n0=Object.prototype,r0=n0.hasOwnProperty;function i0(n){var e=this.__data__;if(Fn){var t=e[n];return t===t0?void 0:t}return r0.call(e,n)?e[n]:void 0}var o0=Object.prototype,a0=o0.hasOwnProperty;function s0(n){var e=this.__data__;return Fn?e[n]!==void 0:a0.call(e,n)}var l0="__lodash_hash_undefined__";function u0(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Fn&&e===void 0?l0:e,this}function Wt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Wt.prototype.clear=Zh,Wt.prototype.delete=e0,Wt.prototype.get=i0,Wt.prototype.has=s0,Wt.prototype.set=u0;function c0(){this.__data__=[],this.size=0}function Nr(n,e){for(var t=n.length;t--;)if(yn(n[t][0],e))return t;return-1}var d0=Array.prototype,p0=d0.splice;function h0(n){var e=this.__data__,t=Nr(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():p0.call(e,t,1),--this.size,!0}function m0(n){var e=this.__data__,t=Nr(e,n);return t<0?void 0:e[t][1]}function f0(n){return Nr(this.__data__,n)>-1}function v0(n,e){var t=this.__data__,r=Nr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function yt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}yt.prototype.clear=c0,yt.prototype.delete=h0,yt.prototype.get=m0,yt.prototype.has=f0,yt.prototype.set=v0;var g0=Qt(st,"Map");const Hn=g0;function y0(){this.size=0,this.__data__={hash:new Wt,map:new(Hn||yt),string:new Wt}}function b0(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Fr(n,e){var t=n.__data__;return b0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function w0(n){var e=Fr(this,n).delete(n);return this.size-=e?1:0,e}function x0(n){return Fr(this,n).get(n)}function _0(n){return Fr(this,n).has(n)}function S0(n,e){var t=Fr(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function bt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}bt.prototype.clear=y0,bt.prototype.delete=w0,bt.prototype.get=x0,bt.prototype.has=_0,bt.prototype.set=S0;var k0="Expected a function";function bo(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(k0);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(bo.Cache||bt),t}bo.Cache=bt;var j0=500;function V0(n){var e=bo(n,function(r){return t.size===j0&&t.clear(),r}),t=e.cache;return e}var C0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$0=/\\(\\)?/g,E0=V0(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(C0,function(t,r,i,o){e.push(i?o.replace($0,"$1"):r||t)}),e});const A0=E0;function Zt(n){return n==null?"":qs(n)}function al(n,e){return at(n)?n:Xh(n,e)?[n]:A0(Zt(n))}var T0=1/0;function sl(n){if(typeof n=="string"||Rr(n))return n;var e=n+"";return e=="0"&&1/n==-T0?"-0":e}function O0(n,e){e=al(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[sl(e[t++])];return t&&t==r?n:void 0}function mr(n,e,t){var r=n==null?void 0:O0(n,e);return r===void 0?t:r}function ll(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var B0=ol(Object.getPrototypeOf,Object);const wo=B0;var z0="[object Object]",D0=Function.prototype,I0=Object.prototype,ul=D0.toString,R0=I0.hasOwnProperty,M0=ul.call(Object);function xo(n){if(!nt(n)||St(n)!=z0)return!1;var e=wo(n);if(e===null)return!0;var t=R0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ul.call(t)==M0}var P0="[object DOMException]",N0="[object Error]";function cl(n){if(!nt(n))return!1;var e=St(n);return e==N0||e==P0||typeof n.message=="string"&&typeof n.name=="string"&&!xo(n)}var F0=Xs(function(n,e){try{return Gs(n,void 0,e)}catch(t){return cl(t)?t:new Error(t)}});const H0=F0;function L0(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=n[r+e];return o}function U0(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:L0(n,e,t)}var W0="\\ud800-\\udfff",J0="\\u0300-\\u036f",q0="\\ufe20-\\ufe2f",K0="\\u20d0-\\u20ff",G0=J0+q0+K0,Y0="\\ufe0e\\ufe0f",X0="\\u200d",Q0=RegExp("["+X0+W0+G0+Y0+"]");function dl(n){return Q0.test(n)}function Z0(n){return n.split("")}var pl="\\ud800-\\udfff",em="\\u0300-\\u036f",tm="\\ufe20-\\ufe2f",nm="\\u20d0-\\u20ff",rm=em+tm+nm,im="\\ufe0e\\ufe0f",om="["+pl+"]",ki="["+rm+"]",ji="\\ud83c[\\udffb-\\udfff]",am="(?:"+ki+"|"+ji+")",hl="[^"+pl+"]",ml="(?:\\ud83c[\\udde6-\\uddff]){2}",fl="[\\ud800-\\udbff][\\udc00-\\udfff]",sm="\\u200d",vl=am+"?",gl="["+im+"]?",lm="(?:"+sm+"(?:"+[hl,ml,fl].join("|")+")"+gl+vl+")*",um=gl+vl+lm,cm="(?:"+[hl+ki+"?",ki,ml,fl,om].join("|")+")",dm=RegExp(ji+"(?="+ji+")|"+cm+um,"g");function pm(n){return n.match(dm)||[]}function hm(n){return dl(n)?pm(n):Z0(n)}function mm(n){return function(e){e=Zt(e);var t=dl(e)?hm(e):void 0,r=t?t[0]:e.charAt(0),i=t?U0(t,1).join(""):e.slice(1);return r[n]()+i}}var fm=mm("toUpperCase");const _o=fm;function vm(n){return _o(Zt(n).toLowerCase())}function gm(n,e,t,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(t=n[++i]);++i<o;)t=e(t,n[i],i,n);return t}function yl(n){return function(e){return n?.[e]}}var ym={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bm=yl(ym);const wm=bm;var xm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_m="\\u0300-\\u036f",Sm="\\ufe20-\\ufe2f",km="\\u20d0-\\u20ff",jm=_m+Sm+km,Vm="["+jm+"]",Cm=RegExp(Vm,"g");function $m(n){return n=Zt(n),n&&n.replace(xm,wm).replace(Cm,"")}var Em=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Am(n){return n.match(Em)||[]}var Tm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Om(n){return Tm.test(n)}var bl="\\ud800-\\udfff",Bm="\\u0300-\\u036f",zm="\\ufe20-\\ufe2f",Dm="\\u20d0-\\u20ff",Im=Bm+zm+Dm,wl="\\u2700-\\u27bf",xl="a-z\\xdf-\\xf6\\xf8-\\xff",Rm="\\xac\\xb1\\xd7\\xf7",Mm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pm="\\u2000-\\u206f",Nm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_l="A-Z\\xc0-\\xd6\\xd8-\\xde",Fm="\\ufe0e\\ufe0f",Sl=Rm+Mm+Pm+Nm,kl="['’]",fa="["+Sl+"]",Hm="["+Im+"]",jl="\\d+",Lm="["+wl+"]",Vl="["+xl+"]",Cl="[^"+bl+Sl+jl+wl+xl+_l+"]",Um="\\ud83c[\\udffb-\\udfff]",Wm="(?:"+Hm+"|"+Um+")",Jm="[^"+bl+"]",$l="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",on="["+_l+"]",qm="\\u200d",va="(?:"+Vl+"|"+Cl+")",Km="(?:"+on+"|"+Cl+")",ga="(?:"+kl+"(?:d|ll|m|re|s|t|ve))?",ya="(?:"+kl+"(?:D|LL|M|RE|S|T|VE))?",Al=Wm+"?",Tl="["+Fm+"]?",Gm="(?:"+qm+"(?:"+[Jm,$l,El].join("|")+")"+Tl+Al+")*",Ym="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qm=Tl+Al+Gm,Zm="(?:"+[Lm,$l,El].join("|")+")"+Qm,ef=RegExp([on+"?"+Vl+"+"+ga+"(?="+[fa,on,"$"].join("|")+")",Km+"+"+ya+"(?="+[fa,on+va,"$"].join("|")+")",on+"?"+va+"+"+ga,on+"+"+ya,Xm,Ym,jl,Zm].join("|"),"g");function tf(n){return n.match(ef)||[]}function nf(n,e,t){return n=Zt(n),e=t?void 0:e,e===void 0?Om(n)?tf(n):Am(n):n.match(e)||[]}var rf="['’]",of=RegExp(rf,"g");function af(n){return function(e){return gm(nf($m(e).replace(of,"")),n,"")}}var sf=af(function(n,e,t){return e=e.toLowerCase(),n+(t?vm(e):e)});const Lt=sf;function lf(){this.__data__=new yt,this.size=0}function uf(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function cf(n){return this.__data__.get(n)}function df(n){return this.__data__.has(n)}var pf=200;function hf(n,e){var t=this.__data__;if(t instanceof yt){var r=t.__data__;if(!Hn||r.length<pf-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new bt(r)}return t.set(n,e),this.size=t.size,this}function lt(n){var e=this.__data__=new yt(n);this.size=e.size}lt.prototype.clear=lf,lt.prototype.delete=uf,lt.prototype.get=cf,lt.prototype.has=df,lt.prototype.set=hf;function mf(n,e){return n&&bn(e,Pr(e),n)}function ff(n,e){return n&&bn(e,wn(e),n)}var Ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ba=Ol&&typeof module=="object"&&module&&!module.nodeType&&module,vf=ba&&ba.exports===Ol,wa=vf?st.Buffer:void 0,xa=wa?wa.allocUnsafe:void 0;function Bl(n,e){if(e)return n.slice();var t=n.length,r=xa?xa(t):new n.constructor(t);return n.copy(r),r}function gf(n,e){for(var t=-1,r=n==null?0:n.length,i=0,o=[];++t<r;){var a=n[t];e(a,t,n)&&(o[i++]=a)}return o}function zl(){return[]}var yf=Object.prototype,bf=yf.propertyIsEnumerable,_a=Object.getOwnPropertySymbols,wf=_a?function(n){return n==null?[]:(n=Object(n),gf(_a(n),function(e){return bf.call(n,e)}))}:zl;const So=wf;function xf(n,e){return bn(n,So(n),e)}var _f=Object.getOwnPropertySymbols,Sf=_f?function(n){for(var e=[];n;)ll(e,So(n)),n=wo(n);return e}:zl;const Dl=Sf;function kf(n,e){return bn(n,Dl(n),e)}function Il(n,e,t){var r=e(n);return at(n)?r:ll(r,t(n))}function Vi(n){return Il(n,Pr,So)}function jf(n){return Il(n,wn,Dl)}var Vf=Qt(st,"DataView");const Ci=Vf;var Cf=Qt(st,"Promise");const $i=Cf;var $f=Qt(st,"Set");const Ei=$f;var Sa="[object Map]",Ef="[object Object]",ka="[object Promise]",ja="[object Set]",Va="[object WeakMap]",Ca="[object DataView]",Af=Xt(Ci),Tf=Xt(Hn),Of=Xt($i),Bf=Xt(Ei),zf=Xt(_i),Ut=St;(Ci&&Ut(new Ci(new ArrayBuffer(1)))!=Ca||Hn&&Ut(new Hn)!=Sa||$i&&Ut($i.resolve())!=ka||Ei&&Ut(new Ei)!=ja||_i&&Ut(new _i)!=Va)&&(Ut=function(n){var e=St(n),t=e==Ef?n.constructor:void 0,r=t?Xt(t):"";if(r)switch(r){case Af:return Ca;case Tf:return Sa;case Of:return ka;case Bf:return ja;case zf:return Va}return e});const Ln=Ut;var Df=Object.prototype,If=Df.hasOwnProperty;function Rf(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&If.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Mf=st.Uint8Array;const $r=Mf;function ko(n){var e=new n.constructor(n.byteLength);return new $r(e).set(new $r(n)),e}function Pf(n,e){var t=e?ko(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var Nf=/\w*$/;function Ff(n){var e=new n.constructor(n.source,Nf.exec(n));return e.lastIndex=n.lastIndex,e}var $a=ht?ht.prototype:void 0,Ea=$a?$a.valueOf:void 0;function Hf(n){return Ea?Object(Ea.call(n)):{}}function Rl(n,e){var t=e?ko(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Lf="[object Boolean]",Uf="[object Date]",Wf="[object Map]",Jf="[object Number]",qf="[object RegExp]",Kf="[object Set]",Gf="[object String]",Yf="[object Symbol]",Xf="[object ArrayBuffer]",Qf="[object DataView]",Zf="[object Float32Array]",ev="[object Float64Array]",tv="[object Int8Array]",nv="[object Int16Array]",rv="[object Int32Array]",iv="[object Uint8Array]",ov="[object Uint8ClampedArray]",av="[object Uint16Array]",sv="[object Uint32Array]";function lv(n,e,t){var r=n.constructor;switch(e){case Xf:return ko(n);case Lf:case Uf:return new r(+n);case Qf:return Pf(n,t);case Zf:case ev:case tv:case nv:case rv:case iv:case ov:case av:case sv:return Rl(n,t);case Wf:return new r;case Jf:case Gf:return new r(n);case qf:return Ff(n);case Kf:return new r;case Yf:return Hf(n)}}function Ml(n){return typeof n.constructor=="function"&&!vo(n)?Dp(wo(n)):{}}var uv="[object Map]";function cv(n){return nt(n)&&Ln(n)==uv}var Aa=mt&&mt.isMap,dv=Aa?go(Aa):cv;const pv=dv;var hv="[object Set]";function mv(n){return nt(n)&&Ln(n)==hv}var Ta=mt&&mt.isSet,fv=Ta?go(Ta):mv;const vv=fv;var gv=1,yv=2,bv=4,Pl="[object Arguments]",wv="[object Array]",xv="[object Boolean]",_v="[object Date]",Sv="[object Error]",Nl="[object Function]",kv="[object GeneratorFunction]",jv="[object Map]",Vv="[object Number]",Fl="[object Object]",Cv="[object RegExp]",$v="[object Set]",Ev="[object String]",Av="[object Symbol]",Tv="[object WeakMap]",Ov="[object ArrayBuffer]",Bv="[object DataView]",zv="[object Float32Array]",Dv="[object Float64Array]",Iv="[object Int8Array]",Rv="[object Int16Array]",Mv="[object Int32Array]",Pv="[object Uint8Array]",Nv="[object Uint8ClampedArray]",Fv="[object Uint16Array]",Hv="[object Uint32Array]",be={};be[Pl]=be[wv]=be[Ov]=be[Bv]=be[xv]=be[_v]=be[zv]=be[Dv]=be[Iv]=be[Rv]=be[Mv]=be[jv]=be[Vv]=be[Fl]=be[Cv]=be[$v]=be[Ev]=be[Av]=be[Pv]=be[Nv]=be[Fv]=be[Hv]=!0,be[Sv]=be[Nl]=be[Tv]=!1;function fr(n,e,t,r,i,o){var a,s=e&gv,l=e&yv,u=e&bv;if(t&&(a=i?t(n,r,i,o):t(n)),a!==void 0)return a;if(!De(n))return n;var c=at(n);if(c){if(a=Rf(n),!s)return Ys(n,a)}else{var p=Ln(n),m=p==Nl||p==kv;if(Nn(n))return Bl(n,s);if(p==Fl||p==Pl||m&&!i){if(a=l||m?{}:Ml(n),!s)return l?kf(n,ff(a,n)):xf(n,mf(a,n))}else{if(!be[p])return i?n:{};a=lv(n,p,s)}}o||(o=new lt);var h=o.get(n);if(h)return h;o.set(n,a),vv(n)?n.forEach(function(g){a.add(fr(g,e,t,g,n,o))}):pv(n)&&n.forEach(function(g,j){a.set(j,fr(g,e,t,j,n,o))});var f=u?l?jf:Vi:l?wn:Pr,v=c?void 0:f(n);return Jp(v||n,function(g,j){v&&(j=g,g=n[j]),fo(a,j,fr(g,e,t,j,n,o))}),a}var Lv=1,Uv=4;function Kn(n){return fr(n,Lv|Uv)}var Wv="__lodash_hash_undefined__";function Jv(n){return this.__data__.set(n,Wv),this}function qv(n){return this.__data__.has(n)}function vr(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new bt;++e<t;)this.add(n[e])}vr.prototype.add=vr.prototype.push=Jv,vr.prototype.has=qv;function Kv(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function Gv(n,e){return n.has(e)}var Yv=1,Xv=2;function Hl(n,e,t,r,i,o){var a=t&Yv,s=n.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(n),c=o.get(e);if(u&&c)return u==e&&c==n;var p=-1,m=!0,h=t&Xv?new vr:void 0;for(o.set(n,e),o.set(e,n);++p<s;){var f=n[p],v=e[p];if(r)var g=a?r(v,f,p,e,n,o):r(f,v,p,n,e,o);if(g!==void 0){if(g)continue;m=!1;break}if(h){if(!Kv(e,function(j,b){if(!Gv(h,b)&&(f===j||i(f,j,t,r,o)))return h.push(b)})){m=!1;break}}else if(!(f===v||i(f,v,t,r,o))){m=!1;break}}return o.delete(n),o.delete(e),m}function Qv(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function Zv(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var e1=1,t1=2,n1="[object Boolean]",r1="[object Date]",i1="[object Error]",o1="[object Map]",a1="[object Number]",s1="[object RegExp]",l1="[object Set]",u1="[object String]",c1="[object Symbol]",d1="[object ArrayBuffer]",p1="[object DataView]",Oa=ht?ht.prototype:void 0,Qr=Oa?Oa.valueOf:void 0;function h1(n,e,t,r,i,o,a){switch(t){case p1:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case d1:return!(n.byteLength!=e.byteLength||!o(new $r(n),new $r(e)));case n1:case r1:case a1:return yn(+n,+e);case i1:return n.name==e.name&&n.message==e.message;case s1:case u1:return n==e+"";case o1:var s=Qv;case l1:var l=r&e1;if(s||(s=Zv),n.size!=e.size&&!l)return!1;var u=a.get(n);if(u)return u==e;r|=t1,a.set(n,e);var c=Hl(s(n),s(e),r,i,o,a);return a.delete(n),c;case c1:if(Qr)return Qr.call(n)==Qr.call(e)}return!1}var m1=1,f1=Object.prototype,v1=f1.hasOwnProperty;function g1(n,e,t,r,i,o){var a=t&m1,s=Vi(n),l=s.length,u=Vi(e),c=u.length;if(l!=c&&!a)return!1;for(var p=l;p--;){var m=s[p];if(!(a?m in e:v1.call(e,m)))return!1}var h=o.get(n),f=o.get(e);if(h&&f)return h==e&&f==n;var v=!0;o.set(n,e),o.set(e,n);for(var g=a;++p<l;){m=s[p];var j=n[m],b=e[m];if(r)var _=a?r(b,j,m,e,n,o):r(j,b,m,n,e,o);if(!(_===void 0?j===b||i(j,b,t,r,o):_)){v=!1;break}g||(g=m=="constructor")}if(v&&!g){var k=n.constructor,C=e.constructor;k!=C&&"constructor"in n&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof C=="function"&&C instanceof C)&&(v=!1)}return o.delete(n),o.delete(e),v}var y1=1,Ba="[object Arguments]",za="[object Array]",nr="[object Object]",b1=Object.prototype,Da=b1.hasOwnProperty;function w1(n,e,t,r,i,o){var a=at(n),s=at(e),l=a?za:Ln(n),u=s?za:Ln(e);l=l==Ba?nr:l,u=u==Ba?nr:u;var c=l==nr,p=u==nr,m=l==u;if(m&&Nn(n)){if(!Nn(e))return!1;a=!0,c=!1}if(m&&!c)return o||(o=new lt),a||yo(n)?Hl(n,e,t,r,i,o):h1(n,e,l,t,r,i,o);if(!(t&y1)){var h=c&&Da.call(n,"__wrapped__"),f=p&&Da.call(e,"__wrapped__");if(h||f){var v=h?n.value():n,g=f?e.value():e;return o||(o=new lt),i(v,g,t,r,o)}}return m?(o||(o=new lt),g1(n,e,t,r,i,o)):!1}function Ll(n,e,t,r,i){return n===e?!0:n==null||e==null||!nt(n)&&!nt(e)?n!==n&&e!==e:w1(n,e,t,r,Ll,i)}function x1(n){return function(e,t,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[n?s:++i];if(t(o[l],l,o)===!1)break}return e}}var _1=x1();const S1=_1;var k1=function(){return st.Date.now()};const Zr=k1;var j1="Expected a function",V1=Math.max,C1=Math.min;function Ul(n,e,t){var r,i,o,a,s,l,u=0,c=!1,p=!1,m=!0;if(typeof n!="function")throw new TypeError(j1);e=aa(e)||0,De(t)&&(c=!!t.leading,p="maxWait"in t,o=p?V1(aa(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function h(x){var A=r,T=i;return r=i=void 0,u=x,a=n.apply(T,A),a}function f(x){return u=x,s=setTimeout(j,e),c?h(x):a}function v(x){var A=x-l,T=x-u,X=e-A;return p?C1(X,o-T):X}function g(x){var A=x-l,T=x-u;return l===void 0||A>=e||A<0||p&&T>=o}function j(){var x=Zr();if(g(x))return b(x);s=setTimeout(j,v(x))}function b(x){return s=void 0,m&&r?h(x):(r=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function k(){return s===void 0?a:b(Zr())}function C(){var x=Zr(),A=g(x);if(r=arguments,i=this,l=x,A){if(s===void 0)return f(l);if(p)return clearTimeout(s),s=setTimeout(j,e),h(l)}return s===void 0&&(s=setTimeout(j,e)),a}return C.cancel=_,C.flush=k,C}function Ai(n,e,t){(t!==void 0&&!yn(n[e],t)||t===void 0&&!(e in n))&&mo(n,e,t)}function $1(n){return nt(n)&&Mr(n)}function Ti(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function E1(n){return bn(n,wn(n))}function A1(n,e,t,r,i,o,a){var s=Ti(n,t),l=Ti(e,t),u=a.get(l);if(u){Ai(n,t,u);return}var c=o?o(s,l,t+"",n,e,a):void 0,p=c===void 0;if(p){var m=at(l),h=!m&&Nn(l),f=!m&&!h&&yo(l);c=l,m||h||f?at(s)?c=s:$1(s)?c=Ys(s):h?(p=!1,c=Bl(l,!0)):f?(p=!1,c=Rl(l,!0)):c=[]:xo(l)||Si(l)?(c=s,Si(s)?c=E1(s):(!De(s)||Pn(s))&&(c=Ml(l))):p=!1}p&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Ai(n,t,c)}function Wl(n,e,t,r,i){n!==e&&S1(e,function(o,a){if(i||(i=new lt),De(o))A1(n,e,a,t,Wl,r,i);else{var s=r?r(Ti(n,a),o,a+"",n,e,i):void 0;s===void 0&&(s=o),Ai(n,a,s)}},wn)}var T1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},O1=yl(T1);const B1=O1;var Jl=/[&<>"']/g,z1=RegExp(Jl.source);function D1(n){return n=Zt(n),n&&z1.test(n)?n.replace(Jl,B1):n}var I1="[object String]";function xn(n){return typeof n=="string"||!at(n)&&nt(n)&&St(n)==I1}function R1(n,e){return Js(e,function(t){return n[t]})}mt&&mt.isArrayBuffer;mt&&mt.isDate;function jo(n,e){return Ll(n,e)}var M1=el(function(n,e,t){Wl(n,e,t)});const dt=M1;function P1(n,e,t,r){if(!De(n))return n;e=al(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++i<o;){var l=sl(e[i]),u=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(i!=a){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=De(c)?c:ho(e[i+1])?[]:{})}fo(s,l,u),s=s[l]}return n}function ei(n,e,t){return n==null?n:P1(n,e,t)}var ql=Object.prototype,N1=ql.hasOwnProperty;function Ia(n,e,t,r){return n===void 0||yn(n,ql[t])&&!N1.call(r,t)?e:n}var F1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function H1(n){return"\\"+F1[n]}var L1=/<%=([\s\S]+?)%>/g;const Kl=L1;var U1=/<%-([\s\S]+?)%>/g;const W1=U1;var J1=/<%([\s\S]+?)%>/g;const q1=J1;var K1={escape:W1,evaluate:q1,interpolate:Kl,variable:"",imports:{_:{escape:D1}}};const Ra=K1;var G1="Invalid `variable` option passed into `_.template`",Y1=/\b__p \+= '';/g,X1=/\b(__p \+=) '' \+/g,Q1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z1=/[()=,{}\[\]\/\s]/,e2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rr=/($^)/,t2=/['\n\r\u2028\u2029\\]/g,n2=Object.prototype,Ma=n2.hasOwnProperty;function Gl(n,e,t){var r=Ra.imports._.templateSettings||Ra;t&&Zs(n,e,t)&&(e=void 0),n=Zt(n),e=ma({},e,r,Ia);var i=ma({},e.imports,r.imports,Ia),o=Pr(i),a=R1(i,o),s,l,u=0,c=e.interpolate||rr,p="__p += '",m=RegExp((e.escape||rr).source+"|"+c.source+"|"+(c===Kl?e2:rr).source+"|"+(e.evaluate||rr).source+"|$","g"),h=Ma.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
8
- `:"";n.replace(m,function(g,j,b,_,k,C){return b||(b=_),p+=n.slice(u,C).replace(t2,H1),j&&(s=!0,p+=`' +
7
+ import{_ as td}from"./monaco-editor-DdPna5vs.js";import{an as zt,d as D,_ as b,a4 as Zi,j as O,o as y,S as V,U as k,M as ce,O as de,P as Bt,W as Ke,G as Jt,r as B,f as se,ab as qt,u as d,c as M,Q as ve,Z as te,a as R,X as I,Y as ue,a1 as Gt,L as vi,af as ln,aa as zn,a5 as un,F as ne,a9 as oe,ad as wt,ae as Dt,J as Re,R as nd,t as jr,h as qn,ao as Ts,w as Os,n as ct,V as xt,T as rd,D as id,i as eo,I as to,ar as Xo,m as gi,at as Bs,av as od,bD as Ct,$ as Kt,bB as yi,aU as ad,s as bi,aC as zs}from"./@vue-DbHY7CtS.js";import{f as sd,a as Br,b as no,c as Ve,d as qe,e as ld,g as ud,h as cd,i as zr,j as dd,k as ro,l as Vr,m as io,n as tt,o as Ds,p as Qo,q as pd,r as oo,s as hd,t as Is,u as md,v as ao,w as so,x as fd,y as vd,A as gd,B as Dn,C as yd,D as lo,F as Yt,G as Rs,H as bd,I as uo,J as wi,K as xi,L as Be,M as wd,N as xd,O as _d,P as Sd,Q as kd,R as Zo,S as ea,T as jd,U as Vd,z as Cd,E as $d,V as Dr,W as Ed,X as Ms,Y as Ad,Z as co,_ as Ps,$ as Td}from"./element-plus-DZc0I8pP.js";import{Q as Od,w as Bd,n as Ns,R as Fs,D as zd,P as Dd,k as Hs,j as Id,B as Rd,M as Ls,E as po,d as Md,S as Pd}from"./@element-plus-DnwP2ajv.js";import{n as Nd,p as ta,q as mn,s as Fd,v as Hd,w as Ld,x as Ud}from"./@vueuse-J6GfbQpH.js";import{v as Ir}from"./vue-DILL4w2e.js";import{useRoute as Wd}from"./vue-router-caOqMrBK.js";import{d as Mn}from"./mockjs-DCYLE3qz.js";var Jd={ENV_TYPE:"live",NODE_ENV:"production"},qd=typeof global=="object"&&global&&global.Object===Object&&global;const Us=qd;var Kd=typeof self=="object"&&self&&self.Object===Object&&self,Gd=Us||Kd||Function("return this")();const st=Gd;var Yd=st.Symbol;const ht=Yd;var Ws=Object.prototype,Xd=Ws.hasOwnProperty,Qd=Ws.toString,$n=ht?ht.toStringTag:void 0;function Zd(n){var e=Xd.call(n,$n),t=n[$n];try{n[$n]=void 0;var r=!0}catch{}var i=Qd.call(n);return r&&(e?n[$n]=t:delete n[$n]),i}var ep=Object.prototype,tp=ep.toString;function np(n){return tp.call(n)}var rp="[object Null]",ip="[object Undefined]",na=ht?ht.toStringTag:void 0;function St(n){return n==null?n===void 0?ip:rp:na&&na in Object(n)?Zd(n):np(n)}function nt(n){return n!=null&&typeof n=="object"}var op="[object Symbol]";function Rr(n){return typeof n=="symbol"||nt(n)&&St(n)==op}function Js(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var ap=Array.isArray;const at=ap;var sp=1/0,ra=ht?ht.prototype:void 0,ia=ra?ra.toString:void 0;function qs(n){if(typeof n=="string")return n;if(at(n))return Js(n,qs)+"";if(Rr(n))return ia?ia.call(n):"";var e=n+"";return e=="0"&&1/n==-sp?"-0":e}var lp=/\s/;function up(n){for(var e=n.length;e--&&lp.test(n.charAt(e)););return e}var cp=/^\s+/;function dp(n){return n&&n.slice(0,up(n)+1).replace(cp,"")}function De(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var oa=NaN,pp=/^[-+]0x[0-9a-f]+$/i,hp=/^0b[01]+$/i,mp=/^0o[0-7]+$/i,fp=parseInt;function aa(n){if(typeof n=="number")return n;if(Rr(n))return oa;if(De(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=De(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=dp(n);var t=hp.test(n);return t||mp.test(n)?fp(n.slice(2),t?2:8):pp.test(n)?oa:+n}function Ks(n){return n}var vp="[object AsyncFunction]",gp="[object Function]",yp="[object GeneratorFunction]",bp="[object Proxy]";function Pn(n){if(!De(n))return!1;var e=St(n);return e==gp||e==yp||e==vp||e==bp}var wp=st["__core-js_shared__"];const Yr=wp;var sa=function(){var n=/[^.]+$/.exec(Yr&&Yr.keys&&Yr.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function xp(n){return!!sa&&sa in n}var _p=Function.prototype,Sp=_p.toString;function Xt(n){if(n!=null){try{return Sp.call(n)}catch{}try{return n+""}catch{}}return""}var kp=/[\\^$.*+?()[\]{}|]/g,jp=/^\[object .+?Constructor\]$/,Vp=Function.prototype,Cp=Object.prototype,$p=Vp.toString,Ep=Cp.hasOwnProperty,Ap=RegExp("^"+$p.call(Ep).replace(kp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tp(n){if(!De(n)||xp(n))return!1;var e=Pn(n)?Ap:jp;return e.test(Xt(n))}function Op(n,e){return n?.[e]}function Qt(n,e){var t=Op(n,e);return Tp(t)?t:void 0}var Bp=Qt(st,"WeakMap");const _i=Bp;var la=Object.create,zp=function(){function n(){}return function(e){if(!De(e))return{};if(la)return la(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const Dp=zp;function Gs(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Ys(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Ip=800,Rp=16,Mp=Date.now;function Pp(n){var e=0,t=0;return function(){var r=Mp(),i=Rp-(r-t);if(t=r,i>0){if(++e>=Ip)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Np(n){return function(){return n}}var Fp=function(){try{var n=Qt(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Cr=Fp;var Hp=Cr?function(n,e){return Cr(n,"toString",{configurable:!0,enumerable:!1,value:Np(e),writable:!0})}:Ks;const Lp=Hp;var Up=Pp(Lp);const Wp=Up;function Jp(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var qp=9007199254740991,Kp=/^(?:0|[1-9]\d*)$/;function ho(n,e){var t=typeof n;return e=e??qp,!!e&&(t=="number"||t!="symbol"&&Kp.test(n))&&n>-1&&n%1==0&&n<e}function mo(n,e,t){e=="__proto__"&&Cr?Cr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function yn(n,e){return n===e||n!==n&&e!==e}var Gp=Object.prototype,Yp=Gp.hasOwnProperty;function fo(n,e,t){var r=n[e];(!(Yp.call(n,e)&&yn(r,t))||t===void 0&&!(e in n))&&mo(n,e,t)}function bn(n,e,t,r){var i=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(t[s],n[s],s,t,n):void 0;l===void 0&&(l=n[s]),i?mo(t,s,l):fo(t,s,l)}return t}var ua=Math.max;function Xp(n,e,t){return e=ua(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=ua(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=t(a),Gs(n,this,s)}}function Xs(n,e){return Wp(Xp(n,e,Ks),n+"")}var Qp=9007199254740991;function Qs(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Qp}function Mr(n){return n!=null&&Qs(n.length)&&!Pn(n)}function Zs(n,e,t){if(!De(t))return!1;var r=typeof e;return(r=="number"?Mr(t)&&ho(e,t.length):r=="string"&&e in t)?yn(t[e],n):!1}function el(n){return Xs(function(e,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,a&&Zs(t[0],t[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=t[r];s&&n(e,s,r,o)}return e})}var Zp=Object.prototype;function vo(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Zp;return n===t}function eh(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var th="[object Arguments]";function ca(n){return nt(n)&&St(n)==th}var tl=Object.prototype,nh=tl.hasOwnProperty,rh=tl.propertyIsEnumerable,ih=ca(function(){return arguments}())?ca:function(n){return nt(n)&&nh.call(n,"callee")&&!rh.call(n,"callee")};const Si=ih;function oh(){return!1}var nl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,da=nl&&typeof module=="object"&&module&&!module.nodeType&&module,ah=da&&da.exports===nl,pa=ah?st.Buffer:void 0,sh=pa?pa.isBuffer:void 0,lh=sh||oh;const Nn=lh;var uh="[object Arguments]",ch="[object Array]",dh="[object Boolean]",ph="[object Date]",hh="[object Error]",mh="[object Function]",fh="[object Map]",vh="[object Number]",gh="[object Object]",yh="[object RegExp]",bh="[object Set]",wh="[object String]",xh="[object WeakMap]",_h="[object ArrayBuffer]",Sh="[object DataView]",kh="[object Float32Array]",jh="[object Float64Array]",Vh="[object Int8Array]",Ch="[object Int16Array]",$h="[object Int32Array]",Eh="[object Uint8Array]",Ah="[object Uint8ClampedArray]",Th="[object Uint16Array]",Oh="[object Uint32Array]",we={};we[kh]=we[jh]=we[Vh]=we[Ch]=we[$h]=we[Eh]=we[Ah]=we[Th]=we[Oh]=!0,we[uh]=we[ch]=we[_h]=we[dh]=we[Sh]=we[ph]=we[hh]=we[mh]=we[fh]=we[vh]=we[gh]=we[yh]=we[bh]=we[wh]=we[xh]=!1;function Bh(n){return nt(n)&&Qs(n.length)&&!!we[St(n)]}function go(n){return function(e){return n(e)}}var rl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,In=rl&&typeof module=="object"&&module&&!module.nodeType&&module,zh=In&&In.exports===rl,Xr=zh&&Us.process,Dh=function(){try{var n=In&&In.require&&In.require("util").types;return n||Xr&&Xr.binding&&Xr.binding("util")}catch{}}();const mt=Dh;var ha=mt&&mt.isTypedArray,Ih=ha?go(ha):Bh;const yo=Ih;var Rh=Object.prototype,Mh=Rh.hasOwnProperty;function il(n,e){var t=at(n),r=!t&&Si(n),i=!t&&!r&&Nn(n),o=!t&&!r&&!i&&yo(n),a=t||r||i||o,s=a?eh(n.length,String):[],l=s.length;for(var u in n)(e||Mh.call(n,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ho(u,l)))&&s.push(u);return s}function ol(n,e){return function(t){return n(e(t))}}var Ph=ol(Object.keys,Object);const Nh=Ph;var Fh=Object.prototype,Hh=Fh.hasOwnProperty;function Lh(n){if(!vo(n))return Nh(n);var e=[];for(var t in Object(n))Hh.call(n,t)&&t!="constructor"&&e.push(t);return e}function Pr(n){return Mr(n)?il(n):Lh(n)}function Uh(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var Wh=Object.prototype,Jh=Wh.hasOwnProperty;function qh(n){if(!De(n))return Uh(n);var e=vo(n),t=[];for(var r in n)r=="constructor"&&(e||!Jh.call(n,r))||t.push(r);return t}function wn(n){return Mr(n)?il(n,!0):qh(n)}var Kh=el(function(n,e,t,r){bn(e,wn(e),n,r)});const ma=Kh;var Gh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yh=/^\w*$/;function Xh(n,e){if(at(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Rr(n)?!0:Yh.test(n)||!Gh.test(n)||e!=null&&n in Object(e)}var Qh=Qt(Object,"create");const Fn=Qh;function Zh(){this.__data__=Fn?Fn(null):{},this.size=0}function e0(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var t0="__lodash_hash_undefined__",n0=Object.prototype,r0=n0.hasOwnProperty;function i0(n){var e=this.__data__;if(Fn){var t=e[n];return t===t0?void 0:t}return r0.call(e,n)?e[n]:void 0}var o0=Object.prototype,a0=o0.hasOwnProperty;function s0(n){var e=this.__data__;return Fn?e[n]!==void 0:a0.call(e,n)}var l0="__lodash_hash_undefined__";function u0(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Fn&&e===void 0?l0:e,this}function Wt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Wt.prototype.clear=Zh,Wt.prototype.delete=e0,Wt.prototype.get=i0,Wt.prototype.has=s0,Wt.prototype.set=u0;function c0(){this.__data__=[],this.size=0}function Nr(n,e){for(var t=n.length;t--;)if(yn(n[t][0],e))return t;return-1}var d0=Array.prototype,p0=d0.splice;function h0(n){var e=this.__data__,t=Nr(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():p0.call(e,t,1),--this.size,!0}function m0(n){var e=this.__data__,t=Nr(e,n);return t<0?void 0:e[t][1]}function f0(n){return Nr(this.__data__,n)>-1}function v0(n,e){var t=this.__data__,r=Nr(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function yt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}yt.prototype.clear=c0,yt.prototype.delete=h0,yt.prototype.get=m0,yt.prototype.has=f0,yt.prototype.set=v0;var g0=Qt(st,"Map");const Hn=g0;function y0(){this.size=0,this.__data__={hash:new Wt,map:new(Hn||yt),string:new Wt}}function b0(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Fr(n,e){var t=n.__data__;return b0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function w0(n){var e=Fr(this,n).delete(n);return this.size-=e?1:0,e}function x0(n){return Fr(this,n).get(n)}function _0(n){return Fr(this,n).has(n)}function S0(n,e){var t=Fr(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function bt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}bt.prototype.clear=y0,bt.prototype.delete=w0,bt.prototype.get=x0,bt.prototype.has=_0,bt.prototype.set=S0;var k0="Expected a function";function bo(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(k0);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(bo.Cache||bt),t}bo.Cache=bt;var j0=500;function V0(n){var e=bo(n,function(r){return t.size===j0&&t.clear(),r}),t=e.cache;return e}var C0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$0=/\\(\\)?/g,E0=V0(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(C0,function(t,r,i,o){e.push(i?o.replace($0,"$1"):r||t)}),e});const A0=E0;function Zt(n){return n==null?"":qs(n)}function al(n,e){return at(n)?n:Xh(n,e)?[n]:A0(Zt(n))}var T0=1/0;function sl(n){if(typeof n=="string"||Rr(n))return n;var e=n+"";return e=="0"&&1/n==-T0?"-0":e}function O0(n,e){e=al(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[sl(e[t++])];return t&&t==r?n:void 0}function mr(n,e,t){var r=n==null?void 0:O0(n,e);return r===void 0?t:r}function ll(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var B0=ol(Object.getPrototypeOf,Object);const wo=B0;var z0="[object Object]",D0=Function.prototype,I0=Object.prototype,ul=D0.toString,R0=I0.hasOwnProperty,M0=ul.call(Object);function xo(n){if(!nt(n)||St(n)!=z0)return!1;var e=wo(n);if(e===null)return!0;var t=R0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ul.call(t)==M0}var P0="[object DOMException]",N0="[object Error]";function cl(n){if(!nt(n))return!1;var e=St(n);return e==N0||e==P0||typeof n.message=="string"&&typeof n.name=="string"&&!xo(n)}var F0=Xs(function(n,e){try{return Gs(n,void 0,e)}catch(t){return cl(t)?t:new Error(t)}});const H0=F0;function L0(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=n[r+e];return o}function U0(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:L0(n,e,t)}var W0="\\ud800-\\udfff",J0="\\u0300-\\u036f",q0="\\ufe20-\\ufe2f",K0="\\u20d0-\\u20ff",G0=J0+q0+K0,Y0="\\ufe0e\\ufe0f",X0="\\u200d",Q0=RegExp("["+X0+W0+G0+Y0+"]");function dl(n){return Q0.test(n)}function Z0(n){return n.split("")}var pl="\\ud800-\\udfff",em="\\u0300-\\u036f",tm="\\ufe20-\\ufe2f",nm="\\u20d0-\\u20ff",rm=em+tm+nm,im="\\ufe0e\\ufe0f",om="["+pl+"]",ki="["+rm+"]",ji="\\ud83c[\\udffb-\\udfff]",am="(?:"+ki+"|"+ji+")",hl="[^"+pl+"]",ml="(?:\\ud83c[\\udde6-\\uddff]){2}",fl="[\\ud800-\\udbff][\\udc00-\\udfff]",sm="\\u200d",vl=am+"?",gl="["+im+"]?",lm="(?:"+sm+"(?:"+[hl,ml,fl].join("|")+")"+gl+vl+")*",um=gl+vl+lm,cm="(?:"+[hl+ki+"?",ki,ml,fl,om].join("|")+")",dm=RegExp(ji+"(?="+ji+")|"+cm+um,"g");function pm(n){return n.match(dm)||[]}function hm(n){return dl(n)?pm(n):Z0(n)}function mm(n){return function(e){e=Zt(e);var t=dl(e)?hm(e):void 0,r=t?t[0]:e.charAt(0),i=t?U0(t,1).join(""):e.slice(1);return r[n]()+i}}var fm=mm("toUpperCase");const _o=fm;function vm(n){return _o(Zt(n).toLowerCase())}function gm(n,e,t,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(t=n[++i]);++i<o;)t=e(t,n[i],i,n);return t}function yl(n){return function(e){return n?.[e]}}var ym={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bm=yl(ym);const wm=bm;var xm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_m="\\u0300-\\u036f",Sm="\\ufe20-\\ufe2f",km="\\u20d0-\\u20ff",jm=_m+Sm+km,Vm="["+jm+"]",Cm=RegExp(Vm,"g");function $m(n){return n=Zt(n),n&&n.replace(xm,wm).replace(Cm,"")}var Em=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Am(n){return n.match(Em)||[]}var Tm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Om(n){return Tm.test(n)}var bl="\\ud800-\\udfff",Bm="\\u0300-\\u036f",zm="\\ufe20-\\ufe2f",Dm="\\u20d0-\\u20ff",Im=Bm+zm+Dm,wl="\\u2700-\\u27bf",xl="a-z\\xdf-\\xf6\\xf8-\\xff",Rm="\\xac\\xb1\\xd7\\xf7",Mm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pm="\\u2000-\\u206f",Nm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_l="A-Z\\xc0-\\xd6\\xd8-\\xde",Fm="\\ufe0e\\ufe0f",Sl=Rm+Mm+Pm+Nm,kl="['’]",fa="["+Sl+"]",Hm="["+Im+"]",jl="\\d+",Lm="["+wl+"]",Vl="["+xl+"]",Cl="[^"+bl+Sl+jl+wl+xl+_l+"]",Um="\\ud83c[\\udffb-\\udfff]",Wm="(?:"+Hm+"|"+Um+")",Jm="[^"+bl+"]",$l="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",on="["+_l+"]",qm="\\u200d",va="(?:"+Vl+"|"+Cl+")",Km="(?:"+on+"|"+Cl+")",ga="(?:"+kl+"(?:d|ll|m|re|s|t|ve))?",ya="(?:"+kl+"(?:D|LL|M|RE|S|T|VE))?",Al=Wm+"?",Tl="["+Fm+"]?",Gm="(?:"+qm+"(?:"+[Jm,$l,El].join("|")+")"+Tl+Al+")*",Ym="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qm=Tl+Al+Gm,Zm="(?:"+[Lm,$l,El].join("|")+")"+Qm,ef=RegExp([on+"?"+Vl+"+"+ga+"(?="+[fa,on,"$"].join("|")+")",Km+"+"+ya+"(?="+[fa,on+va,"$"].join("|")+")",on+"?"+va+"+"+ga,on+"+"+ya,Xm,Ym,jl,Zm].join("|"),"g");function tf(n){return n.match(ef)||[]}function nf(n,e,t){return n=Zt(n),e=t?void 0:e,e===void 0?Om(n)?tf(n):Am(n):n.match(e)||[]}var rf="['’]",of=RegExp(rf,"g");function af(n){return function(e){return gm(nf($m(e).replace(of,"")),n,"")}}var sf=af(function(n,e,t){return e=e.toLowerCase(),n+(t?vm(e):e)});const Lt=sf;function lf(){this.__data__=new yt,this.size=0}function uf(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function cf(n){return this.__data__.get(n)}function df(n){return this.__data__.has(n)}var pf=200;function hf(n,e){var t=this.__data__;if(t instanceof yt){var r=t.__data__;if(!Hn||r.length<pf-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new bt(r)}return t.set(n,e),this.size=t.size,this}function lt(n){var e=this.__data__=new yt(n);this.size=e.size}lt.prototype.clear=lf,lt.prototype.delete=uf,lt.prototype.get=cf,lt.prototype.has=df,lt.prototype.set=hf;function mf(n,e){return n&&bn(e,Pr(e),n)}function ff(n,e){return n&&bn(e,wn(e),n)}var Ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ba=Ol&&typeof module=="object"&&module&&!module.nodeType&&module,vf=ba&&ba.exports===Ol,wa=vf?st.Buffer:void 0,xa=wa?wa.allocUnsafe:void 0;function Bl(n,e){if(e)return n.slice();var t=n.length,r=xa?xa(t):new n.constructor(t);return n.copy(r),r}function gf(n,e){for(var t=-1,r=n==null?0:n.length,i=0,o=[];++t<r;){var a=n[t];e(a,t,n)&&(o[i++]=a)}return o}function zl(){return[]}var yf=Object.prototype,bf=yf.propertyIsEnumerable,_a=Object.getOwnPropertySymbols,wf=_a?function(n){return n==null?[]:(n=Object(n),gf(_a(n),function(e){return bf.call(n,e)}))}:zl;const So=wf;function xf(n,e){return bn(n,So(n),e)}var _f=Object.getOwnPropertySymbols,Sf=_f?function(n){for(var e=[];n;)ll(e,So(n)),n=wo(n);return e}:zl;const Dl=Sf;function kf(n,e){return bn(n,Dl(n),e)}function Il(n,e,t){var r=e(n);return at(n)?r:ll(r,t(n))}function Vi(n){return Il(n,Pr,So)}function jf(n){return Il(n,wn,Dl)}var Vf=Qt(st,"DataView");const Ci=Vf;var Cf=Qt(st,"Promise");const $i=Cf;var $f=Qt(st,"Set");const Ei=$f;var Sa="[object Map]",Ef="[object Object]",ka="[object Promise]",ja="[object Set]",Va="[object WeakMap]",Ca="[object DataView]",Af=Xt(Ci),Tf=Xt(Hn),Of=Xt($i),Bf=Xt(Ei),zf=Xt(_i),Ut=St;(Ci&&Ut(new Ci(new ArrayBuffer(1)))!=Ca||Hn&&Ut(new Hn)!=Sa||$i&&Ut($i.resolve())!=ka||Ei&&Ut(new Ei)!=ja||_i&&Ut(new _i)!=Va)&&(Ut=function(n){var e=St(n),t=e==Ef?n.constructor:void 0,r=t?Xt(t):"";if(r)switch(r){case Af:return Ca;case Tf:return Sa;case Of:return ka;case Bf:return ja;case zf:return Va}return e});const Ln=Ut;var Df=Object.prototype,If=Df.hasOwnProperty;function Rf(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&If.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Mf=st.Uint8Array;const $r=Mf;function ko(n){var e=new n.constructor(n.byteLength);return new $r(e).set(new $r(n)),e}function Pf(n,e){var t=e?ko(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var Nf=/\w*$/;function Ff(n){var e=new n.constructor(n.source,Nf.exec(n));return e.lastIndex=n.lastIndex,e}var $a=ht?ht.prototype:void 0,Ea=$a?$a.valueOf:void 0;function Hf(n){return Ea?Object(Ea.call(n)):{}}function Rl(n,e){var t=e?ko(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Lf="[object Boolean]",Uf="[object Date]",Wf="[object Map]",Jf="[object Number]",qf="[object RegExp]",Kf="[object Set]",Gf="[object String]",Yf="[object Symbol]",Xf="[object ArrayBuffer]",Qf="[object DataView]",Zf="[object Float32Array]",ev="[object Float64Array]",tv="[object Int8Array]",nv="[object Int16Array]",rv="[object Int32Array]",iv="[object Uint8Array]",ov="[object Uint8ClampedArray]",av="[object Uint16Array]",sv="[object Uint32Array]";function lv(n,e,t){var r=n.constructor;switch(e){case Xf:return ko(n);case Lf:case Uf:return new r(+n);case Qf:return Pf(n,t);case Zf:case ev:case tv:case nv:case rv:case iv:case ov:case av:case sv:return Rl(n,t);case Wf:return new r;case Jf:case Gf:return new r(n);case qf:return Ff(n);case Kf:return new r;case Yf:return Hf(n)}}function Ml(n){return typeof n.constructor=="function"&&!vo(n)?Dp(wo(n)):{}}var uv="[object Map]";function cv(n){return nt(n)&&Ln(n)==uv}var Aa=mt&&mt.isMap,dv=Aa?go(Aa):cv;const pv=dv;var hv="[object Set]";function mv(n){return nt(n)&&Ln(n)==hv}var Ta=mt&&mt.isSet,fv=Ta?go(Ta):mv;const vv=fv;var gv=1,yv=2,bv=4,Pl="[object Arguments]",wv="[object Array]",xv="[object Boolean]",_v="[object Date]",Sv="[object Error]",Nl="[object Function]",kv="[object GeneratorFunction]",jv="[object Map]",Vv="[object Number]",Fl="[object Object]",Cv="[object RegExp]",$v="[object Set]",Ev="[object String]",Av="[object Symbol]",Tv="[object WeakMap]",Ov="[object ArrayBuffer]",Bv="[object DataView]",zv="[object Float32Array]",Dv="[object Float64Array]",Iv="[object Int8Array]",Rv="[object Int16Array]",Mv="[object Int32Array]",Pv="[object Uint8Array]",Nv="[object Uint8ClampedArray]",Fv="[object Uint16Array]",Hv="[object Uint32Array]",be={};be[Pl]=be[wv]=be[Ov]=be[Bv]=be[xv]=be[_v]=be[zv]=be[Dv]=be[Iv]=be[Rv]=be[Mv]=be[jv]=be[Vv]=be[Fl]=be[Cv]=be[$v]=be[Ev]=be[Av]=be[Pv]=be[Nv]=be[Fv]=be[Hv]=!0,be[Sv]=be[Nl]=be[Tv]=!1;function fr(n,e,t,r,i,o){var a,s=e&gv,l=e&yv,u=e&bv;if(t&&(a=i?t(n,r,i,o):t(n)),a!==void 0)return a;if(!De(n))return n;var c=at(n);if(c){if(a=Rf(n),!s)return Ys(n,a)}else{var p=Ln(n),m=p==Nl||p==kv;if(Nn(n))return Bl(n,s);if(p==Fl||p==Pl||m&&!i){if(a=l||m?{}:Ml(n),!s)return l?kf(n,ff(a,n)):xf(n,mf(a,n))}else{if(!be[p])return i?n:{};a=lv(n,p,s)}}o||(o=new lt);var h=o.get(n);if(h)return h;o.set(n,a),vv(n)?n.forEach(function(g){a.add(fr(g,e,t,g,n,o))}):pv(n)&&n.forEach(function(g,j){a.set(j,fr(g,e,t,j,n,o))});var f=u?l?jf:Vi:l?wn:Pr,v=c?void 0:f(n);return Jp(v||n,function(g,j){v&&(j=g,g=n[j]),fo(a,j,fr(g,e,t,j,n,o))}),a}var Lv=1,Uv=4;function Kn(n){return fr(n,Lv|Uv)}var Wv="__lodash_hash_undefined__";function Jv(n){return this.__data__.set(n,Wv),this}function qv(n){return this.__data__.has(n)}function vr(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new bt;++e<t;)this.add(n[e])}vr.prototype.add=vr.prototype.push=Jv,vr.prototype.has=qv;function Kv(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function Gv(n,e){return n.has(e)}var Yv=1,Xv=2;function Hl(n,e,t,r,i,o){var a=t&Yv,s=n.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(n),c=o.get(e);if(u&&c)return u==e&&c==n;var p=-1,m=!0,h=t&Xv?new vr:void 0;for(o.set(n,e),o.set(e,n);++p<s;){var f=n[p],v=e[p];if(r)var g=a?r(v,f,p,e,n,o):r(f,v,p,n,e,o);if(g!==void 0){if(g)continue;m=!1;break}if(h){if(!Kv(e,function(j,w){if(!Gv(h,w)&&(f===j||i(f,j,t,r,o)))return h.push(w)})){m=!1;break}}else if(!(f===v||i(f,v,t,r,o))){m=!1;break}}return o.delete(n),o.delete(e),m}function Qv(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function Zv(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var e1=1,t1=2,n1="[object Boolean]",r1="[object Date]",i1="[object Error]",o1="[object Map]",a1="[object Number]",s1="[object RegExp]",l1="[object Set]",u1="[object String]",c1="[object Symbol]",d1="[object ArrayBuffer]",p1="[object DataView]",Oa=ht?ht.prototype:void 0,Qr=Oa?Oa.valueOf:void 0;function h1(n,e,t,r,i,o,a){switch(t){case p1:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case d1:return!(n.byteLength!=e.byteLength||!o(new $r(n),new $r(e)));case n1:case r1:case a1:return yn(+n,+e);case i1:return n.name==e.name&&n.message==e.message;case s1:case u1:return n==e+"";case o1:var s=Qv;case l1:var l=r&e1;if(s||(s=Zv),n.size!=e.size&&!l)return!1;var u=a.get(n);if(u)return u==e;r|=t1,a.set(n,e);var c=Hl(s(n),s(e),r,i,o,a);return a.delete(n),c;case c1:if(Qr)return Qr.call(n)==Qr.call(e)}return!1}var m1=1,f1=Object.prototype,v1=f1.hasOwnProperty;function g1(n,e,t,r,i,o){var a=t&m1,s=Vi(n),l=s.length,u=Vi(e),c=u.length;if(l!=c&&!a)return!1;for(var p=l;p--;){var m=s[p];if(!(a?m in e:v1.call(e,m)))return!1}var h=o.get(n),f=o.get(e);if(h&&f)return h==e&&f==n;var v=!0;o.set(n,e),o.set(e,n);for(var g=a;++p<l;){m=s[p];var j=n[m],w=e[m];if(r)var _=a?r(w,j,m,e,n,o):r(j,w,m,n,e,o);if(!(_===void 0?j===w||i(j,w,t,r,o):_)){v=!1;break}g||(g=m=="constructor")}if(v&&!g){var S=n.constructor,C=e.constructor;S!=C&&"constructor"in n&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(v=!1)}return o.delete(n),o.delete(e),v}var y1=1,Ba="[object Arguments]",za="[object Array]",nr="[object Object]",b1=Object.prototype,Da=b1.hasOwnProperty;function w1(n,e,t,r,i,o){var a=at(n),s=at(e),l=a?za:Ln(n),u=s?za:Ln(e);l=l==Ba?nr:l,u=u==Ba?nr:u;var c=l==nr,p=u==nr,m=l==u;if(m&&Nn(n)){if(!Nn(e))return!1;a=!0,c=!1}if(m&&!c)return o||(o=new lt),a||yo(n)?Hl(n,e,t,r,i,o):h1(n,e,l,t,r,i,o);if(!(t&y1)){var h=c&&Da.call(n,"__wrapped__"),f=p&&Da.call(e,"__wrapped__");if(h||f){var v=h?n.value():n,g=f?e.value():e;return o||(o=new lt),i(v,g,t,r,o)}}return m?(o||(o=new lt),g1(n,e,t,r,i,o)):!1}function Ll(n,e,t,r,i){return n===e?!0:n==null||e==null||!nt(n)&&!nt(e)?n!==n&&e!==e:w1(n,e,t,r,Ll,i)}function x1(n){return function(e,t,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[n?s:++i];if(t(o[l],l,o)===!1)break}return e}}var _1=x1();const S1=_1;var k1=function(){return st.Date.now()};const Zr=k1;var j1="Expected a function",V1=Math.max,C1=Math.min;function Ul(n,e,t){var r,i,o,a,s,l,u=0,c=!1,p=!1,m=!0;if(typeof n!="function")throw new TypeError(j1);e=aa(e)||0,De(t)&&(c=!!t.leading,p="maxWait"in t,o=p?V1(aa(t.maxWait)||0,e):o,m="trailing"in t?!!t.trailing:m);function h(x){var A=r,T=i;return r=i=void 0,u=x,a=n.apply(T,A),a}function f(x){return u=x,s=setTimeout(j,e),c?h(x):a}function v(x){var A=x-l,T=x-u,X=e-A;return p?C1(X,o-T):X}function g(x){var A=x-l,T=x-u;return l===void 0||A>=e||A<0||p&&T>=o}function j(){var x=Zr();if(g(x))return w(x);s=setTimeout(j,v(x))}function w(x){return s=void 0,m&&r?h(x):(r=i=void 0,a)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function S(){return s===void 0?a:w(Zr())}function C(){var x=Zr(),A=g(x);if(r=arguments,i=this,l=x,A){if(s===void 0)return f(l);if(p)return clearTimeout(s),s=setTimeout(j,e),h(l)}return s===void 0&&(s=setTimeout(j,e)),a}return C.cancel=_,C.flush=S,C}function Ai(n,e,t){(t!==void 0&&!yn(n[e],t)||t===void 0&&!(e in n))&&mo(n,e,t)}function $1(n){return nt(n)&&Mr(n)}function Ti(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function E1(n){return bn(n,wn(n))}function A1(n,e,t,r,i,o,a){var s=Ti(n,t),l=Ti(e,t),u=a.get(l);if(u){Ai(n,t,u);return}var c=o?o(s,l,t+"",n,e,a):void 0,p=c===void 0;if(p){var m=at(l),h=!m&&Nn(l),f=!m&&!h&&yo(l);c=l,m||h||f?at(s)?c=s:$1(s)?c=Ys(s):h?(p=!1,c=Bl(l,!0)):f?(p=!1,c=Rl(l,!0)):c=[]:xo(l)||Si(l)?(c=s,Si(s)?c=E1(s):(!De(s)||Pn(s))&&(c=Ml(l))):p=!1}p&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Ai(n,t,c)}function Wl(n,e,t,r,i){n!==e&&S1(e,function(o,a){if(i||(i=new lt),De(o))A1(n,e,a,t,Wl,r,i);else{var s=r?r(Ti(n,a),o,a+"",n,e,i):void 0;s===void 0&&(s=o),Ai(n,a,s)}},wn)}var T1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},O1=yl(T1);const B1=O1;var Jl=/[&<>"']/g,z1=RegExp(Jl.source);function D1(n){return n=Zt(n),n&&z1.test(n)?n.replace(Jl,B1):n}var I1="[object String]";function xn(n){return typeof n=="string"||!at(n)&&nt(n)&&St(n)==I1}function R1(n,e){return Js(e,function(t){return n[t]})}mt&&mt.isArrayBuffer;mt&&mt.isDate;function jo(n,e){return Ll(n,e)}var M1=el(function(n,e,t){Wl(n,e,t)});const dt=M1;function P1(n,e,t,r){if(!De(n))return n;e=al(e,n);for(var i=-1,o=e.length,a=o-1,s=n;s!=null&&++i<o;){var l=sl(e[i]),u=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(i!=a){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=De(c)?c:ho(e[i+1])?[]:{})}fo(s,l,u),s=s[l]}return n}function ei(n,e,t){return n==null?n:P1(n,e,t)}var ql=Object.prototype,N1=ql.hasOwnProperty;function Ia(n,e,t,r){return n===void 0||yn(n,ql[t])&&!N1.call(r,t)?e:n}var F1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function H1(n){return"\\"+F1[n]}var L1=/<%=([\s\S]+?)%>/g;const Kl=L1;var U1=/<%-([\s\S]+?)%>/g;const W1=U1;var J1=/<%([\s\S]+?)%>/g;const q1=J1;var K1={escape:W1,evaluate:q1,interpolate:Kl,variable:"",imports:{_:{escape:D1}}};const Ra=K1;var G1="Invalid `variable` option passed into `_.template`",Y1=/\b__p \+= '';/g,X1=/\b(__p \+=) '' \+/g,Q1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z1=/[()=,{}\[\]\/\s]/,e2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rr=/($^)/,t2=/['\n\r\u2028\u2029\\]/g,n2=Object.prototype,Ma=n2.hasOwnProperty;function Gl(n,e,t){var r=Ra.imports._.templateSettings||Ra;t&&Zs(n,e,t)&&(e=void 0),n=Zt(n),e=ma({},e,r,Ia);var i=ma({},e.imports,r.imports,Ia),o=Pr(i),a=R1(i,o),s,l,u=0,c=e.interpolate||rr,p="__p += '",m=RegExp((e.escape||rr).source+"|"+c.source+"|"+(c===Kl?e2:rr).source+"|"+(e.evaluate||rr).source+"|$","g"),h=Ma.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
8
+ `:"";n.replace(m,function(g,j,w,_,S,C){return w||(w=_),p+=n.slice(u,C).replace(t2,H1),j&&(s=!0,p+=`' +
9
9
  __e(`+j+`) +
10
- '`),k&&(l=!0,p+=`';
11
- `+k+`;
12
- __p += '`),b&&(p+=`' +
13
- ((__t = (`+b+`)) == null ? '' : __t) +
10
+ '`),S&&(l=!0,p+=`';
11
+ `+S+`;
12
+ __p += '`),w&&(p+=`' +
13
+ ((__t = (`+w+`)) == null ? '' : __t) +
14
14
  '`),u=C+g.length,g}),p+=`';
15
15
  `;var f=Ma.call(e,"variable")&&e.variable;if(!f)p=`with (obj) {
16
16
  `+p+`
@@ -21,14 +21,14 @@ __p += '`),b&&(p+=`' +
21
21
  function print() { __p += __j.call(arguments, '') }
22
22
  `:`;
23
23
  `)+p+`return __p
24
- }`;var v=H0(function(){return Function(o,h+"return "+p).apply(void 0,a)});if(v.source=p,cl(v))throw v;return v}var r2="Expected a function";function i2(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(r2);return De(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),Ul(n,e,{leading:r,maxWait:e,trailing:i})}function Er(n){return _o(Lt(n))}var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yl={exports:{}};function o2(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pa={exports:{}},Na;function It(){return Na||(Na=1,function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=t||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof He<"u"&&He.crypto&&(o=He.crypto),!o&&typeof o2=="function")try{o=require("crypto")}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function b(){}return function(_){var k;return b.prototype=_,k=new b,b.prototype=null,k}}(),l={},u=l.lib={},c=u.Base=function(){return{extend:function(b){var _=s(this);return b&&_.mixIn(b),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var _ in b)b.hasOwnProperty(_)&&(this[_]=b[_]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=u.WordArray=c.extend({init:function(b,_){b=this.words=b||[],_!=i?this.sigBytes=_:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var _=this.words,k=b.words,C=this.sigBytes,x=b.sigBytes;if(this.clamp(),C%4)for(var A=0;A<x;A++){var T=k[A>>>2]>>>24-A%4*8&255;_[C+A>>>2]|=T<<24-(C+A)%4*8}else for(var X=0;X<x;X+=4)_[C+X>>>2]=k[X>>>2];return this.sigBytes+=x,this},clamp:function(){var b=this.words,_=this.sigBytes;b[_>>>2]&=4294967295<<32-_%4*8,b.length=r.ceil(_/4)},clone:function(){var b=c.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var _=[],k=0;k<b;k+=4)_.push(a());return new p.init(_,b)}}),m=l.enc={},h=m.Hex={stringify:function(b){for(var _=b.words,k=b.sigBytes,C=[],x=0;x<k;x++){var A=_[x>>>2]>>>24-x%4*8&255;C.push((A>>>4).toString(16)),C.push((A&15).toString(16))}return C.join("")},parse:function(b){for(var _=b.length,k=[],C=0;C<_;C+=2)k[C>>>3]|=parseInt(b.substr(C,2),16)<<24-C%8*4;return new p.init(k,_/2)}},f=m.Latin1={stringify:function(b){for(var _=b.words,k=b.sigBytes,C=[],x=0;x<k;x++){var A=_[x>>>2]>>>24-x%4*8&255;C.push(String.fromCharCode(A))}return C.join("")},parse:function(b){for(var _=b.length,k=[],C=0;C<_;C++)k[C>>>2]|=(b.charCodeAt(C)&255)<<24-C%4*8;return new p.init(k,_)}},v=m.Utf8={stringify:function(b){try{return decodeURIComponent(escape(f.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return f.parse(unescape(encodeURIComponent(b)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=v.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var _,k=this._data,C=k.words,x=k.sigBytes,A=this.blockSize,T=A*4,X=x/T;b?X=r.ceil(X):X=r.max((X|0)-this._minBufferSize,0);var $=X*A,E=r.min($*4,x);if($){for(var P=0;P<$;P+=A)this._doProcessBlock(C,P);_=C.splice(0,$),k.sigBytes-=E}return new p.init(_,E)},clone:function(){var b=c.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});u.Hasher=g.extend({cfg:c.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(b){return function(_,k){return new b.init(k).finalize(_)}},_createHmacHelper:function(b){return function(_,k){return new j.HMAC.init(b,k).finalize(_)}}});var j=l.algo={};return l}(Math);return t})}(Pa)),Pa.exports}(function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return function(r){var i=t,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,u=[];(function(){for(var v=0;v<64;v++)u[v]=r.abs(r.sin(v+1))*4294967296|0})();var c=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var j=0;j<16;j++){var b=g+j,_=v[b];v[b]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var k=this._hash.words,C=v[g+0],x=v[g+1],A=v[g+2],T=v[g+3],X=v[g+4],$=v[g+5],E=v[g+6],P=v[g+7],z=v[g+8],K=v[g+9],L=v[g+10],q=v[g+11],Z=v[g+12],Q=v[g+13],re=v[g+14],ie=v[g+15],F=k[0],U=k[1],J=k[2],G=k[3];F=p(F,U,J,G,C,7,u[0]),G=p(G,F,U,J,x,12,u[1]),J=p(J,G,F,U,A,17,u[2]),U=p(U,J,G,F,T,22,u[3]),F=p(F,U,J,G,X,7,u[4]),G=p(G,F,U,J,$,12,u[5]),J=p(J,G,F,U,E,17,u[6]),U=p(U,J,G,F,P,22,u[7]),F=p(F,U,J,G,z,7,u[8]),G=p(G,F,U,J,K,12,u[9]),J=p(J,G,F,U,L,17,u[10]),U=p(U,J,G,F,q,22,u[11]),F=p(F,U,J,G,Z,7,u[12]),G=p(G,F,U,J,Q,12,u[13]),J=p(J,G,F,U,re,17,u[14]),U=p(U,J,G,F,ie,22,u[15]),F=m(F,U,J,G,x,5,u[16]),G=m(G,F,U,J,E,9,u[17]),J=m(J,G,F,U,q,14,u[18]),U=m(U,J,G,F,C,20,u[19]),F=m(F,U,J,G,$,5,u[20]),G=m(G,F,U,J,L,9,u[21]),J=m(J,G,F,U,ie,14,u[22]),U=m(U,J,G,F,X,20,u[23]),F=m(F,U,J,G,K,5,u[24]),G=m(G,F,U,J,re,9,u[25]),J=m(J,G,F,U,T,14,u[26]),U=m(U,J,G,F,z,20,u[27]),F=m(F,U,J,G,Q,5,u[28]),G=m(G,F,U,J,A,9,u[29]),J=m(J,G,F,U,P,14,u[30]),U=m(U,J,G,F,Z,20,u[31]),F=h(F,U,J,G,$,4,u[32]),G=h(G,F,U,J,z,11,u[33]),J=h(J,G,F,U,q,16,u[34]),U=h(U,J,G,F,re,23,u[35]),F=h(F,U,J,G,x,4,u[36]),G=h(G,F,U,J,X,11,u[37]),J=h(J,G,F,U,P,16,u[38]),U=h(U,J,G,F,L,23,u[39]),F=h(F,U,J,G,Q,4,u[40]),G=h(G,F,U,J,C,11,u[41]),J=h(J,G,F,U,T,16,u[42]),U=h(U,J,G,F,E,23,u[43]),F=h(F,U,J,G,K,4,u[44]),G=h(G,F,U,J,Z,11,u[45]),J=h(J,G,F,U,ie,16,u[46]),U=h(U,J,G,F,A,23,u[47]),F=f(F,U,J,G,C,6,u[48]),G=f(G,F,U,J,P,10,u[49]),J=f(J,G,F,U,re,15,u[50]),U=f(U,J,G,F,$,21,u[51]),F=f(F,U,J,G,Z,6,u[52]),G=f(G,F,U,J,T,10,u[53]),J=f(J,G,F,U,L,15,u[54]),U=f(U,J,G,F,x,21,u[55]),F=f(F,U,J,G,z,6,u[56]),G=f(G,F,U,J,ie,10,u[57]),J=f(J,G,F,U,E,15,u[58]),U=f(U,J,G,F,Q,21,u[59]),F=f(F,U,J,G,X,6,u[60]),G=f(G,F,U,J,q,10,u[61]),J=f(J,G,F,U,A,15,u[62]),U=f(U,J,G,F,K,21,u[63]),k[0]=k[0]+F|0,k[1]=k[1]+U|0,k[2]=k[2]+J|0,k[3]=k[3]+G|0},_doFinalize:function(){var v=this._data,g=v.words,j=this._nDataBytes*8,b=v.sigBytes*8;g[b>>>5]|=128<<24-b%32;var _=r.floor(j/4294967296),k=j;g[(b+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g[(b+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var C=this._hash,x=C.words,A=0;A<4;A++){var T=x[A];x[A]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return C},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,j,b,_,k,C){var x=v+(g&j|~g&b)+_+C;return(x<<k|x>>>32-k)+g}function m(v,g,j,b,_,k,C){var x=v+(g&b|j&~b)+_+C;return(x<<k|x>>>32-k)+g}function h(v,g,j,b,_,k,C){var x=v+(g^j^b)+_+C;return(x<<k|x>>>32-k)+g}function f(v,g,j,b,_,k,C){var x=v+(j^(g|~b))+_+C;return(x<<k|x>>>32-k)+g}i.MD5=s._createHelper(c),i.HmacMD5=s._createHmacHelper(c)}(Math),t.MD5})})(Yl);var Xl=Yl.exports;_n(Xl);var Ql={exports:{}};(function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return function(){var r=t,i=r.lib,o=i.WordArray,a=r.enc;a.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,p=this._map;l.clamp();for(var m=[],h=0;h<c;h+=3)for(var f=u[h>>>2]>>>24-h%4*8&255,v=u[h+1>>>2]>>>24-(h+1)%4*8&255,g=u[h+2>>>2]>>>24-(h+2)%4*8&255,j=f<<16|v<<8|g,b=0;b<4&&h+b*.75<c;b++)m.push(p.charAt(j>>>6*(3-b)&63));var _=p.charAt(64);if(_)for(;m.length%4;)m.push(_);return m.join("")},parse:function(l){var u=l.length,c=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m<c.length;m++)p[c.charCodeAt(m)]=m}var h=c.charAt(64);if(h){var f=l.indexOf(h);f!==-1&&(u=f)}return s(l,u,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,c){for(var p=[],m=0,h=0;h<u;h++)if(h%4){var f=c[l.charCodeAt(h-1)]<<h%4*2,v=c[l.charCodeAt(h)]>>>6-h%4*2,g=f|v;p[m>>>2]|=g<<24-m%4*8,m++}return o.create(p,m)}}(),t.enc.Base64})})(Ql);var Zl=Ql.exports;_n(Zl);var eu={exports:{}};(function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return t.enc.Utf8})})(eu);var a2=eu.exports;_n(a2);var tu={exports:{}},Fa={exports:{}},Ha={exports:{}},La;function s2(){return La||(La=1,function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return function(){var r=t,i=r.lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,p){for(var m=this._hash.words,h=m[0],f=m[1],v=m[2],g=m[3],j=m[4],b=0;b<80;b++){if(b<16)l[b]=c[p+b]|0;else{var _=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=_<<1|_>>>31}var k=(h<<5|h>>>27)+j+l[b];b<20?k+=(f&v|~f&g)+1518500249:b<40?k+=(f^v^g)+1859775393:b<60?k+=(f&v|f&g|v&g)-1894007588:k+=(f^v^g)-899497514,j=g,g=v,v=f<<30|f>>>2,f=h,h=k}m[0]=m[0]+h|0,m[1]=m[1]+f|0,m[2]=m[2]+v|0,m[3]=m[3]+g|0,m[4]=m[4]+j|0},_doFinalize:function(){var c=this._data,p=c.words,m=this._nDataBytes*8,h=c.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=Math.floor(m/4294967296),p[(h+64>>>9<<4)+15]=m,c.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u)}(),t.SHA1})}(Ha)),Ha.exports}var Ua={exports:{}},Wa;function l2(){return Wa||(Wa=1,function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){(function(){var r=t,i=r.lib,o=i.Base,a=r.enc,s=a.Utf8,l=r.algo;l.HMAC=o.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=s.parse(c));var p=u.blockSize,m=p*4;c.sigBytes>m&&(c=u.finalize(c)),c.clamp();for(var h=this._oKey=c.clone(),f=this._iKey=c.clone(),v=h.words,g=f.words,j=0;j<p;j++)v[j]^=1549556828,g[j]^=909522486;h.sigBytes=f.sigBytes=m,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,p=c.finalize(u);c.reset();var m=c.finalize(this._oKey.clone().concat(p));return m}})})()})}(Ua)),Ua.exports}var Ja;function nu(){return Ja||(Ja=1,function(n,e){(function(t,r,i){n.exports=r(It(),s2(),l2())})(He,function(t){return function(){var r=t,i=r.lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,p){for(var m,h=this.cfg,f=h.hasher.create(),v=a.create(),g=v.words,j=h.keySize,b=h.iterations;g.length<j;){m&&f.update(m),m=f.update(c).finalize(p),f.reset();for(var _=1;_<b;_++)m=f.finalize(m),f.reset();v.concat(m)}return v.sigBytes=j*4,v}});r.EvpKDF=function(c,p,m){return u.create(m).compute(c,p)}}(),t.EvpKDF})}(Fa)),Fa.exports}var qa={exports:{}},Ka;function u2(){return Ka||(Ka=1,function(n,e){(function(t,r,i){n.exports=r(It(),nu())})(He,function(t){t.lib.Cipher||function(r){var i=t,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var c=u.Base64,p=i.algo,m=p.EvpKDF,h=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function($,E){return this.create(this._ENC_XFORM_MODE,$,E)},createDecryptor:function($,E){return this.create(this._DEC_XFORM_MODE,$,E)},init:function($,E,P){this.cfg=this.cfg.extend(P),this._xformMode=$,this._key=E,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){$&&this._append($);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $(E){return typeof E=="string"?X:x}return function(E){return{encrypt:function(P,z,K){return $(z).encrypt(E,P,z,K)},decrypt:function(P,z,K){return $(z).decrypt(E,P,z,K)}}}}()});o.StreamCipher=h.extend({_doFinalize:function(){var $=this._process(!0);return $},blockSize:1});var f=i.mode={},v=o.BlockCipherMode=a.extend({createEncryptor:function($,E){return this.Encryptor.create($,E)},createDecryptor:function($,E){return this.Decryptor.create($,E)},init:function($,E){this._cipher=$,this._iv=E}}),g=f.CBC=function(){var $=v.extend();$.Encryptor=$.extend({processBlock:function(P,z){var K=this._cipher,L=K.blockSize;E.call(this,P,z,L),K.encryptBlock(P,z),this._prevBlock=P.slice(z,z+L)}}),$.Decryptor=$.extend({processBlock:function(P,z){var K=this._cipher,L=K.blockSize,q=P.slice(z,z+L);K.decryptBlock(P,z),E.call(this,P,z,L),this._prevBlock=q}});function E(P,z,K){var L,q=this._iv;q?(L=q,this._iv=r):L=this._prevBlock;for(var Z=0;Z<K;Z++)P[z+Z]^=L[Z]}return $}(),j=i.pad={},b=j.Pkcs7={pad:function($,E){for(var P=E*4,z=P-$.sigBytes%P,K=z<<24|z<<16|z<<8|z,L=[],q=0;q<z;q+=4)L.push(K);var Z=s.create(L,z);$.concat(Z)},unpad:function($){var E=$.words[$.sigBytes-1>>>2]&255;$.sigBytes-=E}};o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:b}),reset:function(){var $;h.reset.call(this);var E=this.cfg,P=E.iv,z=E.mode;this._xformMode==this._ENC_XFORM_MODE?$=z.createEncryptor:($=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,P&&P.words):(this._mode=$.call(z,this,P&&P.words),this._mode.__creator=$)},_doProcessBlock:function($,E){this._mode.processBlock($,E)},_doFinalize:function(){var $,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),E.unpad($)),$},blockSize:128/32});var _=o.CipherParams=a.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),k=i.format={},C=k.OpenSSL={stringify:function($){var E,P=$.ciphertext,z=$.salt;return z?E=s.create([1398893684,1701076831]).concat(z).concat(P):E=P,E.toString(c)},parse:function($){var E,P=c.parse($),z=P.words;return z[0]==1398893684&&z[1]==1701076831&&(E=s.create(z.slice(2,4)),z.splice(0,4),P.sigBytes-=16),_.create({ciphertext:P,salt:E})}},x=o.SerializableCipher=a.extend({cfg:a.extend({format:C}),encrypt:function($,E,P,z){z=this.cfg.extend(z);var K=$.createEncryptor(P,z),L=K.finalize(E),q=K.cfg;return _.create({ciphertext:L,key:P,iv:q.iv,algorithm:$,mode:q.mode,padding:q.padding,blockSize:$.blockSize,formatter:z.format})},decrypt:function($,E,P,z){z=this.cfg.extend(z),E=this._parse(E,z.format);var K=$.createDecryptor(P,z).finalize(E.ciphertext);return K},_parse:function($,E){return typeof $=="string"?E.parse($,this):$}}),A=i.kdf={},T=A.OpenSSL={execute:function($,E,P,z,K){if(z||(z=s.random(64/8)),K)var L=m.create({keySize:E+P,hasher:K}).compute($,z);else var L=m.create({keySize:E+P}).compute($,z);var q=s.create(L.words.slice(E),P*4);return L.sigBytes=E*4,_.create({key:L,iv:q,salt:z})}},X=o.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:T}),encrypt:function($,E,P,z){z=this.cfg.extend(z);var K=z.kdf.execute(P,$.keySize,$.ivSize,z.salt,z.hasher);z.iv=K.iv;var L=x.encrypt.call(this,$,E,K.key,z);return L.mixIn(K),L},decrypt:function($,E,P,z){z=this.cfg.extend(z),E=this._parse(E,z.format);var K=z.kdf.execute(P,$.keySize,$.ivSize,E.salt,z.hasher);z.iv=K.iv;var L=x.decrypt.call(this,$,E,K.key,z);return L}})}()})}(qa)),qa.exports}(function(n,e){(function(t,r,i){n.exports=r(It(),Zl,Xl,nu(),u2())})(He,function(t){return function(){var r=t,i=r.lib,o=i.BlockCipher,a=r.algo,s=[],l=[],u=[],c=[],p=[],m=[],h=[],f=[],v=[],g=[];(function(){for(var _=[],k=0;k<256;k++)k<128?_[k]=k<<1:_[k]=k<<1^283;for(var C=0,x=0,k=0;k<256;k++){var A=x^x<<1^x<<2^x<<3^x<<4;A=A>>>8^A&255^99,s[C]=A,l[A]=C;var T=_[C],X=_[T],$=_[X],E=_[A]*257^A*16843008;u[C]=E<<24|E>>>8,c[C]=E<<16|E>>>16,p[C]=E<<8|E>>>24,m[C]=E;var E=$*16843009^X*65537^T*257^C*16843008;h[A]=E<<24|E>>>8,f[A]=E<<16|E>>>16,v[A]=E<<8|E>>>24,g[A]=E,C?(C=T^_[_[_[$^T]]],x^=_[_[x]]):C=x=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],b=a.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var k=this._keyPriorReset=this._key,C=k.words,x=k.sigBytes/4,A=this._nRounds=x+6,T=(A+1)*4,X=this._keySchedule=[],$=0;$<T;$++)$<x?X[$]=C[$]:(_=X[$-1],$%x?x>6&&$%x==4&&(_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255]):(_=_<<8|_>>>24,_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255],_^=j[$/x|0]<<24),X[$]=X[$-x]^_);for(var E=this._invKeySchedule=[],P=0;P<T;P++){var $=T-P;if(P%4)var _=X[$];else var _=X[$-4];P<4||$<=4?E[P]=_:E[P]=h[s[_>>>24]]^f[s[_>>>16&255]]^v[s[_>>>8&255]]^g[s[_&255]]}}},encryptBlock:function(_,k){this._doCryptBlock(_,k,this._keySchedule,u,c,p,m,s)},decryptBlock:function(_,k){var C=_[k+1];_[k+1]=_[k+3],_[k+3]=C,this._doCryptBlock(_,k,this._invKeySchedule,h,f,v,g,l);var C=_[k+1];_[k+1]=_[k+3],_[k+3]=C},_doCryptBlock:function(_,k,C,x,A,T,X,$){for(var E=this._nRounds,P=_[k]^C[0],z=_[k+1]^C[1],K=_[k+2]^C[2],L=_[k+3]^C[3],q=4,Z=1;Z<E;Z++){var Q=x[P>>>24]^A[z>>>16&255]^T[K>>>8&255]^X[L&255]^C[q++],re=x[z>>>24]^A[K>>>16&255]^T[L>>>8&255]^X[P&255]^C[q++],ie=x[K>>>24]^A[L>>>16&255]^T[P>>>8&255]^X[z&255]^C[q++],F=x[L>>>24]^A[P>>>16&255]^T[z>>>8&255]^X[K&255]^C[q++];P=Q,z=re,K=ie,L=F}var Q=($[P>>>24]<<24|$[z>>>16&255]<<16|$[K>>>8&255]<<8|$[L&255])^C[q++],re=($[z>>>24]<<24|$[K>>>16&255]<<16|$[L>>>8&255]<<8|$[P&255])^C[q++],ie=($[K>>>24]<<24|$[L>>>16&255]<<16|$[P>>>8&255]<<8|$[z&255])^C[q++],F=($[L>>>24]<<24|$[P>>>16&255]<<16|$[z>>>8&255]<<8|$[K&255])^C[q++];_[k]=Q,_[k+1]=re,_[k+2]=ie,_[k+3]=F},keySize:256/32});r.AES=o._createHelper(b)}(),t.AES})})(tu);var c2=tu.exports;_n(c2);var d2="0123456789abcdefghijklmnopqrstuvwxyz";function Ga(n){return d2.charAt(n)}function p2(n,e){return n&e}function ir(n,e){return n|e}function Ya(n,e){return n^e}function Xa(n,e){return n&~e}function h2(n){if(n==0)return-1;var e=0;return n&65535||(n>>=16,e+=16),n&255||(n>>=8,e+=8),n&15||(n>>=4,e+=4),n&3||(n>>=2,e+=2),n&1||++e,e}function m2(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var En="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f2="=";function Qa(n){var e,t,r="";for(e=0;e+3<=n.length;e+=3)t=parseInt(n.substring(e,e+3),16),r+=En.charAt(t>>6)+En.charAt(t&63);for(e+1==n.length?(t=parseInt(n.substring(e,e+1),16),r+=En.charAt(t<<2)):e+2==n.length&&(t=parseInt(n.substring(e,e+2),16),r+=En.charAt(t>>2)+En.charAt((t&3)<<4));(r.length&3)>0;)r+=f2;return r}var tn,v2={decode:function(n){var e;if(tn===void 0){var t="0123456789ABCDEF",r=` \f
24
+ }`;var v=H0(function(){return Function(o,h+"return "+p).apply(void 0,a)});if(v.source=p,cl(v))throw v;return v}var r2="Expected a function";function i2(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(r2);return De(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),Ul(n,e,{leading:r,maxWait:e,trailing:i})}function Er(n){return _o(Lt(n))}var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yl={exports:{}};function o2(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pa={exports:{}},Na;function It(){return Na||(Na=1,function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=t||function(r,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof He<"u"&&He.crypto&&(o=He.crypto),!o&&typeof o2=="function")try{o=require("crypto")}catch{}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function w(){}return function(_){var S;return w.prototype=_,S=new w,w.prototype=null,S}}(),l={},u=l.lib={},c=u.Base=function(){return{extend:function(w){var _=s(this);return w&&_.mixIn(w),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var _ in w)w.hasOwnProperty(_)&&(this[_]=w[_]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=u.WordArray=c.extend({init:function(w,_){w=this.words=w||[],_!=i?this.sigBytes=_:this.sigBytes=w.length*4},toString:function(w){return(w||h).stringify(this)},concat:function(w){var _=this.words,S=w.words,C=this.sigBytes,x=w.sigBytes;if(this.clamp(),C%4)for(var A=0;A<x;A++){var T=S[A>>>2]>>>24-A%4*8&255;_[C+A>>>2]|=T<<24-(C+A)%4*8}else for(var X=0;X<x;X+=4)_[C+X>>>2]=S[X>>>2];return this.sigBytes+=x,this},clamp:function(){var w=this.words,_=this.sigBytes;w[_>>>2]&=4294967295<<32-_%4*8,w.length=r.ceil(_/4)},clone:function(){var w=c.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var _=[],S=0;S<w;S+=4)_.push(a());return new p.init(_,w)}}),m=l.enc={},h=m.Hex={stringify:function(w){for(var _=w.words,S=w.sigBytes,C=[],x=0;x<S;x++){var A=_[x>>>2]>>>24-x%4*8&255;C.push((A>>>4).toString(16)),C.push((A&15).toString(16))}return C.join("")},parse:function(w){for(var _=w.length,S=[],C=0;C<_;C+=2)S[C>>>3]|=parseInt(w.substr(C,2),16)<<24-C%8*4;return new p.init(S,_/2)}},f=m.Latin1={stringify:function(w){for(var _=w.words,S=w.sigBytes,C=[],x=0;x<S;x++){var A=_[x>>>2]>>>24-x%4*8&255;C.push(String.fromCharCode(A))}return C.join("")},parse:function(w){for(var _=w.length,S=[],C=0;C<_;C++)S[C>>>2]|=(w.charCodeAt(C)&255)<<24-C%4*8;return new p.init(S,_)}},v=m.Utf8={stringify:function(w){try{return decodeURIComponent(escape(f.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return f.parse(unescape(encodeURIComponent(w)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=v.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var _,S=this._data,C=S.words,x=S.sigBytes,A=this.blockSize,T=A*4,X=x/T;w?X=r.ceil(X):X=r.max((X|0)-this._minBufferSize,0);var $=X*A,E=r.min($*4,x);if($){for(var P=0;P<$;P+=A)this._doProcessBlock(C,P);_=C.splice(0,$),S.sigBytes-=E}return new p.init(_,E)},clone:function(){var w=c.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});u.Hasher=g.extend({cfg:c.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(w){return function(_,S){return new w.init(S).finalize(_)}},_createHmacHelper:function(w){return function(_,S){return new j.HMAC.init(w,S).finalize(_)}}});var j=l.algo={};return l}(Math);return t})}(Pa)),Pa.exports}(function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return function(r){var i=t,o=i.lib,a=o.WordArray,s=o.Hasher,l=i.algo,u=[];(function(){for(var v=0;v<64;v++)u[v]=r.abs(r.sin(v+1))*4294967296|0})();var c=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var j=0;j<16;j++){var w=g+j,_=v[w];v[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var S=this._hash.words,C=v[g+0],x=v[g+1],A=v[g+2],T=v[g+3],X=v[g+4],$=v[g+5],E=v[g+6],P=v[g+7],z=v[g+8],K=v[g+9],L=v[g+10],q=v[g+11],Z=v[g+12],Q=v[g+13],re=v[g+14],ie=v[g+15],F=S[0],U=S[1],J=S[2],G=S[3];F=p(F,U,J,G,C,7,u[0]),G=p(G,F,U,J,x,12,u[1]),J=p(J,G,F,U,A,17,u[2]),U=p(U,J,G,F,T,22,u[3]),F=p(F,U,J,G,X,7,u[4]),G=p(G,F,U,J,$,12,u[5]),J=p(J,G,F,U,E,17,u[6]),U=p(U,J,G,F,P,22,u[7]),F=p(F,U,J,G,z,7,u[8]),G=p(G,F,U,J,K,12,u[9]),J=p(J,G,F,U,L,17,u[10]),U=p(U,J,G,F,q,22,u[11]),F=p(F,U,J,G,Z,7,u[12]),G=p(G,F,U,J,Q,12,u[13]),J=p(J,G,F,U,re,17,u[14]),U=p(U,J,G,F,ie,22,u[15]),F=m(F,U,J,G,x,5,u[16]),G=m(G,F,U,J,E,9,u[17]),J=m(J,G,F,U,q,14,u[18]),U=m(U,J,G,F,C,20,u[19]),F=m(F,U,J,G,$,5,u[20]),G=m(G,F,U,J,L,9,u[21]),J=m(J,G,F,U,ie,14,u[22]),U=m(U,J,G,F,X,20,u[23]),F=m(F,U,J,G,K,5,u[24]),G=m(G,F,U,J,re,9,u[25]),J=m(J,G,F,U,T,14,u[26]),U=m(U,J,G,F,z,20,u[27]),F=m(F,U,J,G,Q,5,u[28]),G=m(G,F,U,J,A,9,u[29]),J=m(J,G,F,U,P,14,u[30]),U=m(U,J,G,F,Z,20,u[31]),F=h(F,U,J,G,$,4,u[32]),G=h(G,F,U,J,z,11,u[33]),J=h(J,G,F,U,q,16,u[34]),U=h(U,J,G,F,re,23,u[35]),F=h(F,U,J,G,x,4,u[36]),G=h(G,F,U,J,X,11,u[37]),J=h(J,G,F,U,P,16,u[38]),U=h(U,J,G,F,L,23,u[39]),F=h(F,U,J,G,Q,4,u[40]),G=h(G,F,U,J,C,11,u[41]),J=h(J,G,F,U,T,16,u[42]),U=h(U,J,G,F,E,23,u[43]),F=h(F,U,J,G,K,4,u[44]),G=h(G,F,U,J,Z,11,u[45]),J=h(J,G,F,U,ie,16,u[46]),U=h(U,J,G,F,A,23,u[47]),F=f(F,U,J,G,C,6,u[48]),G=f(G,F,U,J,P,10,u[49]),J=f(J,G,F,U,re,15,u[50]),U=f(U,J,G,F,$,21,u[51]),F=f(F,U,J,G,Z,6,u[52]),G=f(G,F,U,J,T,10,u[53]),J=f(J,G,F,U,L,15,u[54]),U=f(U,J,G,F,x,21,u[55]),F=f(F,U,J,G,z,6,u[56]),G=f(G,F,U,J,ie,10,u[57]),J=f(J,G,F,U,E,15,u[58]),U=f(U,J,G,F,Q,21,u[59]),F=f(F,U,J,G,X,6,u[60]),G=f(G,F,U,J,q,10,u[61]),J=f(J,G,F,U,A,15,u[62]),U=f(U,J,G,F,K,21,u[63]),S[0]=S[0]+F|0,S[1]=S[1]+U|0,S[2]=S[2]+J|0,S[3]=S[3]+G|0},_doFinalize:function(){var v=this._data,g=v.words,j=this._nDataBytes*8,w=v.sigBytes*8;g[w>>>5]|=128<<24-w%32;var _=r.floor(j/4294967296),S=j;g[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,g[(w+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var C=this._hash,x=C.words,A=0;A<4;A++){var T=x[A];x[A]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return C},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,j,w,_,S,C){var x=v+(g&j|~g&w)+_+C;return(x<<S|x>>>32-S)+g}function m(v,g,j,w,_,S,C){var x=v+(g&w|j&~w)+_+C;return(x<<S|x>>>32-S)+g}function h(v,g,j,w,_,S,C){var x=v+(g^j^w)+_+C;return(x<<S|x>>>32-S)+g}function f(v,g,j,w,_,S,C){var x=v+(j^(g|~w))+_+C;return(x<<S|x>>>32-S)+g}i.MD5=s._createHelper(c),i.HmacMD5=s._createHmacHelper(c)}(Math),t.MD5})})(Yl);var Xl=Yl.exports;_n(Xl);var Ql={exports:{}};(function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return function(){var r=t,i=r.lib,o=i.WordArray,a=r.enc;a.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,p=this._map;l.clamp();for(var m=[],h=0;h<c;h+=3)for(var f=u[h>>>2]>>>24-h%4*8&255,v=u[h+1>>>2]>>>24-(h+1)%4*8&255,g=u[h+2>>>2]>>>24-(h+2)%4*8&255,j=f<<16|v<<8|g,w=0;w<4&&h+w*.75<c;w++)m.push(p.charAt(j>>>6*(3-w)&63));var _=p.charAt(64);if(_)for(;m.length%4;)m.push(_);return m.join("")},parse:function(l){var u=l.length,c=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m<c.length;m++)p[c.charCodeAt(m)]=m}var h=c.charAt(64);if(h){var f=l.indexOf(h);f!==-1&&(u=f)}return s(l,u,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,c){for(var p=[],m=0,h=0;h<u;h++)if(h%4){var f=c[l.charCodeAt(h-1)]<<h%4*2,v=c[l.charCodeAt(h)]>>>6-h%4*2,g=f|v;p[m>>>2]|=g<<24-m%4*8,m++}return o.create(p,m)}}(),t.enc.Base64})})(Ql);var Zl=Ql.exports;_n(Zl);var eu={exports:{}};(function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return t.enc.Utf8})})(eu);var a2=eu.exports;_n(a2);var tu={exports:{}},Fa={exports:{}},Ha={exports:{}},La;function s2(){return La||(La=1,function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){return function(){var r=t,i=r.lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,p){for(var m=this._hash.words,h=m[0],f=m[1],v=m[2],g=m[3],j=m[4],w=0;w<80;w++){if(w<16)l[w]=c[p+w]|0;else{var _=l[w-3]^l[w-8]^l[w-14]^l[w-16];l[w]=_<<1|_>>>31}var S=(h<<5|h>>>27)+j+l[w];w<20?S+=(f&v|~f&g)+1518500249:w<40?S+=(f^v^g)+1859775393:w<60?S+=(f&v|f&g|v&g)-1894007588:S+=(f^v^g)-899497514,j=g,g=v,v=f<<30|f>>>2,f=h,h=S}m[0]=m[0]+h|0,m[1]=m[1]+f|0,m[2]=m[2]+v|0,m[3]=m[3]+g|0,m[4]=m[4]+j|0},_doFinalize:function(){var c=this._data,p=c.words,m=this._nDataBytes*8,h=c.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=Math.floor(m/4294967296),p[(h+64>>>9<<4)+15]=m,c.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u)}(),t.SHA1})}(Ha)),Ha.exports}var Ua={exports:{}},Wa;function l2(){return Wa||(Wa=1,function(n,e){(function(t,r){n.exports=r(It())})(He,function(t){(function(){var r=t,i=r.lib,o=i.Base,a=r.enc,s=a.Utf8,l=r.algo;l.HMAC=o.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=s.parse(c));var p=u.blockSize,m=p*4;c.sigBytes>m&&(c=u.finalize(c)),c.clamp();for(var h=this._oKey=c.clone(),f=this._iKey=c.clone(),v=h.words,g=f.words,j=0;j<p;j++)v[j]^=1549556828,g[j]^=909522486;h.sigBytes=f.sigBytes=m,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,p=c.finalize(u);c.reset();var m=c.finalize(this._oKey.clone().concat(p));return m}})})()})}(Ua)),Ua.exports}var Ja;function nu(){return Ja||(Ja=1,function(n,e){(function(t,r,i){n.exports=r(It(),s2(),l2())})(He,function(t){return function(){var r=t,i=r.lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.MD5,u=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,p){for(var m,h=this.cfg,f=h.hasher.create(),v=a.create(),g=v.words,j=h.keySize,w=h.iterations;g.length<j;){m&&f.update(m),m=f.update(c).finalize(p),f.reset();for(var _=1;_<w;_++)m=f.finalize(m),f.reset();v.concat(m)}return v.sigBytes=j*4,v}});r.EvpKDF=function(c,p,m){return u.create(m).compute(c,p)}}(),t.EvpKDF})}(Fa)),Fa.exports}var qa={exports:{}},Ka;function u2(){return Ka||(Ka=1,function(n,e){(function(t,r,i){n.exports=r(It(),nu())})(He,function(t){t.lib.Cipher||function(r){var i=t,o=i.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var c=u.Base64,p=i.algo,m=p.EvpKDF,h=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function($,E){return this.create(this._ENC_XFORM_MODE,$,E)},createDecryptor:function($,E){return this.create(this._DEC_XFORM_MODE,$,E)},init:function($,E,P){this.cfg=this.cfg.extend(P),this._xformMode=$,this._key=E,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function($){return this._append($),this._process()},finalize:function($){$&&this._append($);var E=this._doFinalize();return E},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function $(E){return typeof E=="string"?X:x}return function(E){return{encrypt:function(P,z,K){return $(z).encrypt(E,P,z,K)},decrypt:function(P,z,K){return $(z).decrypt(E,P,z,K)}}}}()});o.StreamCipher=h.extend({_doFinalize:function(){var $=this._process(!0);return $},blockSize:1});var f=i.mode={},v=o.BlockCipherMode=a.extend({createEncryptor:function($,E){return this.Encryptor.create($,E)},createDecryptor:function($,E){return this.Decryptor.create($,E)},init:function($,E){this._cipher=$,this._iv=E}}),g=f.CBC=function(){var $=v.extend();$.Encryptor=$.extend({processBlock:function(P,z){var K=this._cipher,L=K.blockSize;E.call(this,P,z,L),K.encryptBlock(P,z),this._prevBlock=P.slice(z,z+L)}}),$.Decryptor=$.extend({processBlock:function(P,z){var K=this._cipher,L=K.blockSize,q=P.slice(z,z+L);K.decryptBlock(P,z),E.call(this,P,z,L),this._prevBlock=q}});function E(P,z,K){var L,q=this._iv;q?(L=q,this._iv=r):L=this._prevBlock;for(var Z=0;Z<K;Z++)P[z+Z]^=L[Z]}return $}(),j=i.pad={},w=j.Pkcs7={pad:function($,E){for(var P=E*4,z=P-$.sigBytes%P,K=z<<24|z<<16|z<<8|z,L=[],q=0;q<z;q+=4)L.push(K);var Z=s.create(L,z);$.concat(Z)},unpad:function($){var E=$.words[$.sigBytes-1>>>2]&255;$.sigBytes-=E}};o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:w}),reset:function(){var $;h.reset.call(this);var E=this.cfg,P=E.iv,z=E.mode;this._xformMode==this._ENC_XFORM_MODE?$=z.createEncryptor:($=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==$?this._mode.init(this,P&&P.words):(this._mode=$.call(z,this,P&&P.words),this._mode.__creator=$)},_doProcessBlock:function($,E){this._mode.processBlock($,E)},_doFinalize:function(){var $,E=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(E.pad(this._data,this.blockSize),$=this._process(!0)):($=this._process(!0),E.unpad($)),$},blockSize:128/32});var _=o.CipherParams=a.extend({init:function($){this.mixIn($)},toString:function($){return($||this.formatter).stringify(this)}}),S=i.format={},C=S.OpenSSL={stringify:function($){var E,P=$.ciphertext,z=$.salt;return z?E=s.create([1398893684,1701076831]).concat(z).concat(P):E=P,E.toString(c)},parse:function($){var E,P=c.parse($),z=P.words;return z[0]==1398893684&&z[1]==1701076831&&(E=s.create(z.slice(2,4)),z.splice(0,4),P.sigBytes-=16),_.create({ciphertext:P,salt:E})}},x=o.SerializableCipher=a.extend({cfg:a.extend({format:C}),encrypt:function($,E,P,z){z=this.cfg.extend(z);var K=$.createEncryptor(P,z),L=K.finalize(E),q=K.cfg;return _.create({ciphertext:L,key:P,iv:q.iv,algorithm:$,mode:q.mode,padding:q.padding,blockSize:$.blockSize,formatter:z.format})},decrypt:function($,E,P,z){z=this.cfg.extend(z),E=this._parse(E,z.format);var K=$.createDecryptor(P,z).finalize(E.ciphertext);return K},_parse:function($,E){return typeof $=="string"?E.parse($,this):$}}),A=i.kdf={},T=A.OpenSSL={execute:function($,E,P,z,K){if(z||(z=s.random(64/8)),K)var L=m.create({keySize:E+P,hasher:K}).compute($,z);else var L=m.create({keySize:E+P}).compute($,z);var q=s.create(L.words.slice(E),P*4);return L.sigBytes=E*4,_.create({key:L,iv:q,salt:z})}},X=o.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:T}),encrypt:function($,E,P,z){z=this.cfg.extend(z);var K=z.kdf.execute(P,$.keySize,$.ivSize,z.salt,z.hasher);z.iv=K.iv;var L=x.encrypt.call(this,$,E,K.key,z);return L.mixIn(K),L},decrypt:function($,E,P,z){z=this.cfg.extend(z),E=this._parse(E,z.format);var K=z.kdf.execute(P,$.keySize,$.ivSize,E.salt,z.hasher);z.iv=K.iv;var L=x.decrypt.call(this,$,E,K.key,z);return L}})}()})}(qa)),qa.exports}(function(n,e){(function(t,r,i){n.exports=r(It(),Zl,Xl,nu(),u2())})(He,function(t){return function(){var r=t,i=r.lib,o=i.BlockCipher,a=r.algo,s=[],l=[],u=[],c=[],p=[],m=[],h=[],f=[],v=[],g=[];(function(){for(var _=[],S=0;S<256;S++)S<128?_[S]=S<<1:_[S]=S<<1^283;for(var C=0,x=0,S=0;S<256;S++){var A=x^x<<1^x<<2^x<<3^x<<4;A=A>>>8^A&255^99,s[C]=A,l[A]=C;var T=_[C],X=_[T],$=_[X],E=_[A]*257^A*16843008;u[C]=E<<24|E>>>8,c[C]=E<<16|E>>>16,p[C]=E<<8|E>>>24,m[C]=E;var E=$*16843009^X*65537^T*257^C*16843008;h[A]=E<<24|E>>>8,f[A]=E<<16|E>>>16,v[A]=E<<8|E>>>24,g[A]=E,C?(C=T^_[_[_[$^T]]],x^=_[_[x]]):C=x=1}})();var j=[0,1,2,4,8,16,32,64,128,27,54],w=a.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,C=S.words,x=S.sigBytes/4,A=this._nRounds=x+6,T=(A+1)*4,X=this._keySchedule=[],$=0;$<T;$++)$<x?X[$]=C[$]:(_=X[$-1],$%x?x>6&&$%x==4&&(_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255]):(_=_<<8|_>>>24,_=s[_>>>24]<<24|s[_>>>16&255]<<16|s[_>>>8&255]<<8|s[_&255],_^=j[$/x|0]<<24),X[$]=X[$-x]^_);for(var E=this._invKeySchedule=[],P=0;P<T;P++){var $=T-P;if(P%4)var _=X[$];else var _=X[$-4];P<4||$<=4?E[P]=_:E[P]=h[s[_>>>24]]^f[s[_>>>16&255]]^v[s[_>>>8&255]]^g[s[_&255]]}}},encryptBlock:function(_,S){this._doCryptBlock(_,S,this._keySchedule,u,c,p,m,s)},decryptBlock:function(_,S){var C=_[S+1];_[S+1]=_[S+3],_[S+3]=C,this._doCryptBlock(_,S,this._invKeySchedule,h,f,v,g,l);var C=_[S+1];_[S+1]=_[S+3],_[S+3]=C},_doCryptBlock:function(_,S,C,x,A,T,X,$){for(var E=this._nRounds,P=_[S]^C[0],z=_[S+1]^C[1],K=_[S+2]^C[2],L=_[S+3]^C[3],q=4,Z=1;Z<E;Z++){var Q=x[P>>>24]^A[z>>>16&255]^T[K>>>8&255]^X[L&255]^C[q++],re=x[z>>>24]^A[K>>>16&255]^T[L>>>8&255]^X[P&255]^C[q++],ie=x[K>>>24]^A[L>>>16&255]^T[P>>>8&255]^X[z&255]^C[q++],F=x[L>>>24]^A[P>>>16&255]^T[z>>>8&255]^X[K&255]^C[q++];P=Q,z=re,K=ie,L=F}var Q=($[P>>>24]<<24|$[z>>>16&255]<<16|$[K>>>8&255]<<8|$[L&255])^C[q++],re=($[z>>>24]<<24|$[K>>>16&255]<<16|$[L>>>8&255]<<8|$[P&255])^C[q++],ie=($[K>>>24]<<24|$[L>>>16&255]<<16|$[P>>>8&255]<<8|$[z&255])^C[q++],F=($[L>>>24]<<24|$[P>>>16&255]<<16|$[z>>>8&255]<<8|$[K&255])^C[q++];_[S]=Q,_[S+1]=re,_[S+2]=ie,_[S+3]=F},keySize:256/32});r.AES=o._createHelper(w)}(),t.AES})})(tu);var c2=tu.exports;_n(c2);var d2="0123456789abcdefghijklmnopqrstuvwxyz";function Ga(n){return d2.charAt(n)}function p2(n,e){return n&e}function ir(n,e){return n|e}function Ya(n,e){return n^e}function Xa(n,e){return n&~e}function h2(n){if(n==0)return-1;var e=0;return n&65535||(n>>=16,e+=16),n&255||(n>>=8,e+=8),n&15||(n>>=4,e+=4),n&3||(n>>=2,e+=2),n&1||++e,e}function m2(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var En="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f2="=";function Qa(n){var e,t,r="";for(e=0;e+3<=n.length;e+=3)t=parseInt(n.substring(e,e+3),16),r+=En.charAt(t>>6)+En.charAt(t&63);for(e+1==n.length?(t=parseInt(n.substring(e,e+1),16),r+=En.charAt(t<<2)):e+2==n.length&&(t=parseInt(n.substring(e,e+2),16),r+=En.charAt(t>>2)+En.charAt((t&3)<<4));(r.length&3)>0;)r+=f2;return r}var tn,v2={decode:function(n){var e;if(tn===void 0){var t="0123456789ABCDEF",r=` \f
25
25
  \r  \u2028\u2029`;for(tn={},e=0;e<16;++e)tn[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)tn[t.charAt(e)]=e;for(e=0;e<r.length;++e)tn[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=tn[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Ht,Oi={decode:function(n){var e;if(Ht===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
26
26
  \r  \u2028\u2029`;for(Ht=Object.create(null),e=0;e<64;++e)Ht[t.charAt(e)]=e;for(Ht["-"]=62,Ht._=63,e=0;e<r.length;++e)Ht[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=Ht[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);o|=s,++a>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,a=0):o<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var e=Oi.re.exec(n);if(e)if(e[1])n=e[1];else if(e[2])n=e[2];else throw new Error("RegExp out of sync");return Oi.decode(n)}},nn=1e13,Tn=function(){function n(e){this.buf=[+e||0]}return n.prototype.mulAdd=function(e,t){var r=this.buf,i=r.length,o,a;for(o=0;o<i;++o)a=r[o]*e+t,a<nn?t=0:(t=0|a/nn,a-=t*nn),r[o]=a;t>0&&(r[o]=t)},n.prototype.sub=function(e){var t=this.buf,r=t.length,i,o;for(i=0;i<r;++i)o=t[i]-e,o<0?(o+=nn,e=1):e=0,t[i]=o;for(;t[t.length-1]===0;)t.pop()},n.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),i=t.length-2;i>=0;--i)r+=(nn+t[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var e=this.buf,t=0,r=e.length-1;r>=0;--r)t=t*nn+e[r];return t},n.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},n}(),ru="…",g2=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,y2=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function cn(n,e){return n.length>e&&(n=n.substring(0,e)+ru),n}var ti=function(){function n(e,t){this.hexDigits="0123456789ABCDEF",e instanceof n?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}return n.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},n.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},n.prototype.hexDump=function(e,t,r){for(var i="",o=e;o<t;++o)if(i+=this.hexByte(this.get(o)),r!==!0)switch(o&15){case 7:i+=" ";break;case 15:i+=`
27
27
  `;break;default:i+=" "}return i},n.prototype.isASCII=function(e,t){for(var r=e;r<t;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(e,t){for(var r="",i=e;i<t;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(e,t){for(var r="",i=e;i<t;){var o=this.get(i++);o<128?r+=String.fromCharCode(o):o>191&&o<224?r+=String.fromCharCode((o&31)<<6|this.get(i++)&63):r+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(e,t){for(var r="",i,o,a=e;a<t;)i=this.get(a++),o=this.get(a++),r+=String.fromCharCode(i<<8|o);return r},n.prototype.parseTime=function(e,t,r){var i=this.parseStringISO(e,t),o=(r?g2:y2).exec(i);return o?(r&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(e,t){for(var r=this.get(e),i=r>127,o=i?255:0,a,s="";r==o&&++e<t;)r=this.get(e);if(a=t-e,a===0)return i?-1:0;if(a>4){for(s=r,a<<=3;!((+s^o)&128);)s=+s<<1,--a;s="("+a+` bit)
28
28
  `}i&&(r=r-256);for(var l=new Tn(r),u=e+1;u<t;++u)l.mulAdd(256,this.get(u));return s+l.toString()},n.prototype.parseBitString=function(e,t,r){for(var i=this.get(e),o=(t-e-1<<3)-i,a="("+o+` bit)
29
29
  `,s="",l=e+1;l<t;++l){for(var u=this.get(l),c=l==t-1?i:0,p=7;p>=c;--p)s+=u>>p&1?"1":"0";if(s.length>r)return a+cn(s,r)}return a+s},n.prototype.parseOctetString=function(e,t,r){if(this.isASCII(e,t))return cn(this.parseStringISO(e,t),r);var i=t-e,o="("+i+` byte)
30
30
  `;r/=2,i>r&&(t=e+r);for(var a=e;a<t;++a)o+=this.hexByte(this.get(a));return i>r&&(o+=ru),o},n.prototype.parseOID=function(e,t,r){for(var i="",o=new Tn,a=0,s=e;s<t;++s){var l=this.get(s);if(o.mulAdd(128,l&127),a+=7,!(l&128)){if(i==="")if(o=o.simplify(),o instanceof Tn)o.sub(80),i="2."+o.toString();else{var u=o<80?o<40?0:1:2;i=u+"."+(o-u*40)}else i+="."+o.toString();if(i.length>r)return cn(i,r);o=new Tn,a=0}}return a>0&&(i+=".incomplete"),i},n}(),b2=function(){function n(e,t,r,i,o){if(!(i instanceof Za))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=i,this.sub=o}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);case 6:return this.stream.parseOID(t,t+r,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return cn(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return cn(this.stream.parseStringISO(t,t+r),e);case 30:return cn(this.stream.parseStringBMP(t,t+r),e);case 23:case 24:return this.stream.parseTime(t,t+r,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(e){e===void 0&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
31
- `,this.sub!==null){e+=" ";for(var r=0,i=this.sub.length;r<i;++r)t+=this.sub[r].toPrettyString(e)}return t},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(e){var t=e.get(),r=t&127;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(r===0)return null;t=0;for(var i=0;i<r;++i)t=t*256+e.get();return t},n.prototype.getHexStringValue=function(){var e=this.toHexString(),t=this.header*2,r=this.length*2;return e.substr(t,r)},n.decode=function(e){var t;e instanceof ti?t=e:t=new ti(e,0);var r=new ti(t),i=new Za(t),o=n.decodeLength(t),a=t.pos,s=a-r.pos,l=null,u=function(){var p=[];if(o!==null){for(var m=a+o;t.pos<m;)p[p.length]=n.decode(t);if(t.pos!=m)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var h=n.decode(t);if(h.tag.isEOC())break;p[p.length]=h}o=a-t.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(i.tagConstructed)l=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);t.pos=a+Math.abs(o)}return new n(r,s,o,i,l)},n}(),Za=function(){function n(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var r=new Tn;do t=e.get(),r.mulAdd(128,t&127);while(t&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n}(),At,w2=0xdeadbeefcafe,es=(w2&16777215)==15715070,Fe=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],x2=(1<<26)/Fe[Fe.length-1],le=function(){function n(e,t,r){e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}return n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,i,o=!1,a="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(i=this[s]>>l)>0&&(o=!0,a=Ga(i));s>=0;)l<t?(i=(this[s]&(1<<l)-1)<<t-l,i|=this[--s]>>(l+=this.DB-t)):(i=this[s]>>(l-=t)&r,l<=0&&(l+=this.DB,--s)),i>0&&(o=!0),o&&(a+=Ga(i));return o?a:"0"},n.prototype.negate=function(){var e=pe();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+or(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=pe();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var r;return e<256||t.isEven()?r=new ts(t):r=new ns(t),this.exp(e,r)},n.prototype.clone=function(){var e=pe();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r=this.DB-e*this.DB%8,i,o=0;if(e-- >0)for(r<this.DB&&(i=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=i|this.s<<this.DB-r);e>=0;)r<8?(i=(this[e]&(1<<r)-1)<<8-r,i|=this[--e]>>(r+=this.DB-8)):(i=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),i&128&&(i|=-256),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(t[o++]=i);return t},n.prototype.equals=function(e){return this.compareTo(e)==0},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=pe();return this.bitwiseTo(e,p2,t),t},n.prototype.or=function(e){var t=pe();return this.bitwiseTo(e,ir,t),t},n.prototype.xor=function(e){var t=pe();return this.bitwiseTo(e,Ya,t),t},n.prototype.andNot=function(e){var t=pe();return this.bitwiseTo(e,Xa,t),t},n.prototype.not=function(){for(var e=pe(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=pe();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=pe();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+h2(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=m2(this[r]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<e%this.DB)!=0},n.prototype.setBit=function(e){return this.changeBit(e,ir)},n.prototype.clearBit=function(e){return this.changeBit(e,Xa)},n.prototype.flipBit=function(e){return this.changeBit(e,Ya)},n.prototype.add=function(e){var t=pe();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=pe();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=pe();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=pe();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=pe();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=pe(),r=pe();return this.divRemTo(e,t,r),[t,r]},n.prototype.modPow=function(e,t){var r=e.bitLength(),i,o=Tt(1),a;if(r<=0)return o;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?a=new ts(t):t.isEven()?a=new S2(t):a=new ns(t);var s=[],l=3,u=i-1,c=(1<<i)-1;if(s[1]=a.convert(this),i>1){var p=pe();for(a.sqrTo(s[1],p);l<=c;)s[l]=pe(),a.mulTo(p,s[l-2],s[l]),l+=2}var m=e.t-1,h,f=!0,v=pe(),g;for(r=or(e[m])-1;m>=0;){for(r>=u?h=e[m]>>r-u&c:(h=(e[m]&(1<<r+1)-1)<<u-r,m>0&&(h|=e[m-1]>>this.DB+r-u)),l=i;!(h&1);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--m),f)s[h].copyTo(o),f=!1;else{for(;l>1;)a.sqrTo(o,v),a.sqrTo(v,o),l-=2;l>0?a.sqrTo(o,v):(g=o,o=v,v=g),a.mulTo(v,s[h],o)}for(;m>=0&&!(e[m]&1<<r);)a.sqrTo(o,v),g=o,o=v,v=g,--r<0&&(r=this.DB-1,--m)}return a.revert(o)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return n.ZERO;for(var r=e.clone(),i=this.clone(),o=Tt(1),a=Tt(0),s=Tt(0),l=Tt(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!o.isEven()||!a.isEven())&&(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?((!s.isEven()||!l.isEven())&&(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),t&&s.subTo(o,s),l.subTo(a,l))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},n.prototype.pow=function(e){return this.exp(e,new _2)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var o=t.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return t;for(o<a&&(a=o),a>0&&(t.rShiftTo(a,t),r.rShiftTo(a,r));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},n.prototype.isProbablePrime=function(e){var t,r=this.abs();if(r.t==1&&r[0]<=Fe[Fe.length-1]){for(t=0;t<Fe.length;++t)if(r[0]==Fe[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Fe.length;){for(var i=Fe[t],o=t+1;o<Fe.length&&i<x2;)i*=Fe[o++];for(i=r.modInt(i);t<o;)if(i%Fe[t++]==0)return!1}return r.millerRabin(e)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=r==8?+e[i]&255:is(e,i);if(s<0){e.charAt(i)=="-"&&(o=!0);continue}o=!1,a==0?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=r,a>=this.DB&&(a-=this.DB)}r==8&&+e[0]&128&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+a+1]=this[l]>>i|s,s=(this[l]&o)<<r;for(var l=a-1;l>=0;--l)t[l]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var i=e%this.DB,o=this.DB-i,a=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&a)<<o,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&a)<<o),t.t=this.t-r,t.clamp()},n.prototype.subTo=function(e,t){for(var r=0,i=0,o=Math.min(e.t,this.t);r<o;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=pe());var a=pe(),s=this.s,l=e.s,u=this.DB-or(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var c=a.t,p=a[c-1];if(p!=0){var m=p*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,v=1<<this.F2,g=r.t,j=g-c,b=t??pe();for(a.dlShiftTo(j,b),r.compareTo(b)>=0&&(r[r.t++]=1,r.subTo(b,r)),n.ONE.dlShiftTo(c,b),b.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--j>=0;){var _=r[--g]==p?this.DM:Math.floor(r[g]*h+(r[g-1]+v)*f);if((r[g]+=a.am(0,_,r,j,0,c))<_)for(a.dlShiftTo(j,b),r.subTo(b,r);r[g]<--_;)r.subTo(b,r)}t!=null&&(r.drShiftTo(c,t),s!=l&&n.ZERO.subTo(t,t)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var r=pe(),i=pe(),o=t.convert(this),a=or(e)-1;for(o.copyTo(r);--a>=0;)if(t.sqrTo(r,i),(e&1<<a)>0)t.mulTo(i,o,r);else{var s=r;r=i,i=s}return t.revert(r)},n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=Tt(r),o=pe(),a=pe(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=is(e,l);if(u<0){e.charAt(l)=="-"&&this.signum()==0&&(o=!0);continue}s=t*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0)}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),ir,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=[],o=e&7;i.length=(e>>3)+1,t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,o,a=Math.min(e.t,this.t);for(i=0;i<a;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(o=e.s&this.DM,i=a;i<this.t;++i)r[i]=t(this[i],o);r.t=this.t}else{for(o=this.s&this.DM,i=a;i<e.t;++i)r[i]=t(o,e[i]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var r=0,i=0,o=Math.min(e.t,this.t);r<o;)i+=this[r]+e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i+=e[r],t[r++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,r){var i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var o=r.t-this.t;i<o;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(var o=Math.min(e.t,t);i<o;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},n.prototype.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%e;return r},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);e=e+1>>1,e>Fe.length&&(e=Fe.length);for(var o=pe(),a=0;a<e;++a){o.fromInt(Fe[Math.floor(Math.random()*Fe.length)]);var s=o.modPow(i,this);if(s.compareTo(n.ONE)!=0&&s.compareTo(t)!=0){for(var l=1;l++<r&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(n.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},n.prototype.square=function(){var e=pe();return this.squareTo(e),e},n.prototype.gcda=function(e,t){var r=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(r.compareTo(i)<0){var o=r;r=i,i=o}var a=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0){t(r);return}a<s&&(s=a),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));var l=function(){(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(s>0&&i.lShiftTo(s,i),setTimeout(function(){t(i)},0))};setTimeout(l,10)},n.prototype.fromNumberAsync=function(e,t,r,i){if(typeof t=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),ir,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(n.ONE.shiftLeft(e-1),o),o.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=e&7;s.length=(e>>3)+1,t.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},n}(),_2=function(){function n(){}return n.prototype.convert=function(e){return e},n.prototype.revert=function(e){return e},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},n.prototype.sqrTo=function(e,t){e.squareTo(t)},n}(),ts=function(){function n(e){this.m=e}return n.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),ns=function(){function n(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return n.prototype.convert=function(e){var t=pe();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},n.prototype.revert=function(e){var t=pe();return e.copyTo(t),this.reduce(t),t},n.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e[t]&32767,i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),S2=function(){function n(e){this.m=e,this.r2=pe(),this.q3=pe(),le.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return n.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=pe();return e.copyTo(t),this.reduce(t),t},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}();function pe(){return new le(null)}function ke(n,e){return new le(n,e)}var rs=typeof navigator<"u";rs&&es&&navigator.appName=="Microsoft Internet Explorer"?(le.prototype.am=function(n,e,t,r,i,o){for(var a=e&32767,s=e>>15;--o>=0;){var l=this[n]&32767,u=this[n++]>>15,c=s*l+u*a;l=a*l+((c&32767)<<15)+t[r]+(i&1073741823),i=(l>>>30)+(c>>>15)+s*u+(i>>>30),t[r++]=l&1073741823}return i},At=30):rs&&es&&navigator.appName!="Netscape"?(le.prototype.am=function(n,e,t,r,i,o){for(;--o>=0;){var a=e*this[n++]+t[r]+i;i=Math.floor(a/67108864),t[r++]=a&67108863}return i},At=26):(le.prototype.am=function(n,e,t,r,i,o){for(var a=e&16383,s=e>>14;--o>=0;){var l=this[n]&16383,u=this[n++]>>14,c=s*l+u*a;l=a*l+((c&16383)<<14)+t[r]+i,i=(l>>28)+(c>>14)+s*u,t[r++]=l&268435455}return i},At=28),le.prototype.DB=At,le.prototype.DM=(1<<At)-1,le.prototype.DV=1<<At;var ni=52;le.prototype.FV=Math.pow(2,ni),le.prototype.F1=ni-At,le.prototype.F2=2*At-ni;var Hr=[],fn,Ze;for(fn=48,Ze=0;Ze<=9;++Ze)Hr[fn++]=Ze;for(fn=97,Ze=10;Ze<36;++Ze)Hr[fn++]=Ze;for(fn=65,Ze=10;Ze<36;++Ze)Hr[fn++]=Ze;function is(n,e){var t=Hr[n.charCodeAt(e)];return t??-1}function Tt(n){var e=pe();return e.fromInt(n),e}function or(n){var e=1,t;return(t=n>>>16)!=0&&(n=t,e+=16),(t=n>>8)!=0&&(n=t,e+=8),(t=n>>4)!=0&&(n=t,e+=4),(t=n>>2)!=0&&(n=t,e+=2),(t=n>>1)!=0&&(n=t,e+=1),e}le.ZERO=Tt(0),le.ONE=Tt(1);var k2=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(e){var t,r,i;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},n}();function j2(){return new k2}var iu=256,ar,Ot=null,ot;if(Ot==null){Ot=[],ot=0;var sr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ri=new Uint32Array(256);for(window.crypto.getRandomValues(ri),sr=0;sr<ri.length;++sr)Ot[ot++]=ri[sr]&255}var lr=0,ur=function(n){if(lr=lr||0,lr>=256||ot>=iu){window.removeEventListener?window.removeEventListener("mousemove",ur,!1):window.detachEvent&&window.detachEvent("onmousemove",ur);return}try{var e=n.x+n.y;Ot[ot++]=e&255,lr+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",ur,!1):window.attachEvent&&window.attachEvent("onmousemove",ur))}function V2(){if(ar==null){for(ar=j2();ot<iu;){var n=Math.floor(65536*Math.random());Ot[ot++]=n&255}for(ar.init(Ot),ot=0;ot<Ot.length;++ot)Ot[ot]=0;ot=0}return ar.next()}var Bi=function(){function n(){}return n.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=V2()},n}();function C2(n,e){if(e<n.length+22)return console.error("Message too long for RSA"),null;for(var t=e-n.length-6,r="",i=0;i<t;i+=2)r+="ff";var o="0001"+r+"00"+n;return ke(o,16)}function $2(n,e){if(e<n.length+11)return console.error("Message too long for RSA"),null;for(var t=[],r=n.length-1;r>=0&&e>0;){var i=n.charCodeAt(r--);i<128?t[--e]=i:i>127&&i<2048?(t[--e]=i&63|128,t[--e]=i>>6|192):(t[--e]=i&63|128,t[--e]=i>>6&63|128,t[--e]=i>>12|224)}t[--e]=0;for(var o=new Bi,a=[];e>2;){for(a[0]=0;a[0]==0;)o.nextBytes(a);t[--e]=a[0]}return t[--e]=2,t[--e]=0,new le(t)}var E2=function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,r=$2(e,t);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var o=i.toString(16),a=o.length,s=0;s<t*2-a;s++)o="0"+o;return o},n.prototype.setPrivate=function(e,t,r){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16),this.d=ke(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,t,r,i,o,a,s,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16),this.d=ke(r,16),this.p=ke(i,16),this.q=ke(o,16),this.dmp1=ke(a,16),this.dmq1=ke(s,16),this.coeff=ke(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,t){var r=new Bi,i=e>>1;this.e=parseInt(t,16);for(var o=new le(t,16);;){for(;this.p=new le(e-i,1,r),!(this.p.subtract(le.ONE).gcd(o).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(i,1,r),!(this.q.subtract(le.ONE).gcd(o).compareTo(le.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(le.ONE),l=this.q.subtract(le.ONE),u=s.multiply(l);if(u.gcd(o).compareTo(le.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(e){var t=ke(e,16),r=this.doPrivate(t);return r==null?null:A2(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,t,r){var i=new Bi,o=e>>1;this.e=parseInt(t,16);var a=new le(t,16),s=this,l=function(){var u=function(){if(s.p.compareTo(s.q)<=0){var m=s.p;s.p=s.q,s.q=m}var h=s.p.subtract(le.ONE),f=s.q.subtract(le.ONE),v=h.multiply(f);v.gcd(a).compareTo(le.ONE)==0?(s.n=s.p.multiply(s.q),s.d=a.modInverse(v),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(f),s.coeff=s.q.modInverse(s.p),setTimeout(function(){r()},0)):setTimeout(l,0)},c=function(){s.q=pe(),s.q.fromNumberAsync(o,1,i,function(){s.q.subtract(le.ONE).gcda(a,function(m){m.compareTo(le.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)})})},p=function(){s.p=pe(),s.p.fromNumberAsync(e-o,1,i,function(){s.p.subtract(le.ONE).gcda(a,function(m){m.compareTo(le.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},n.prototype.sign=function(e,t,r){var i=T2(r),o=i+t(e).toString(),a=C2(o,this.n.bitLength()/4);if(a==null)return null;var s=this.doPrivate(a);if(s==null)return null;var l=s.toString(16);return l.length&1?"0"+l:l},n.prototype.verify=function(e,t,r){var i=ke(t,16),o=this.doPublic(i);if(o==null)return null;var a=o.toString(16).replace(/^1f+00/,""),s=O2(a);return s==r(e).toString()},n}();function A2(n,e){for(var t=n.toByteArray(),r=0;r<t.length&&t[r]==0;)++r;if(t.length-r!=e-1||t[r]!=2)return null;for(++r;t[r]!=0;)if(++r>=t.length)return null;for(var i="";++r<t.length;){var o=t[r]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|t[r+1]&63),++r):(i+=String.fromCharCode((o&15)<<12|(t[r+1]&63)<<6|t[r+2]&63),r+=2)}return i}var gr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function T2(n){return gr[n]||""}function O2(n){for(var e in gr)if(gr.hasOwnProperty(e)){var t=gr[e],r=t.length;if(n.substr(0,r)==t)return n.substr(r)}return n}/*!
31
+ `,this.sub!==null){e+=" ";for(var r=0,i=this.sub.length;r<i;++r)t+=this.sub[r].toPrettyString(e)}return t},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(e){var t=e.get(),r=t&127;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(r===0)return null;t=0;for(var i=0;i<r;++i)t=t*256+e.get();return t},n.prototype.getHexStringValue=function(){var e=this.toHexString(),t=this.header*2,r=this.length*2;return e.substr(t,r)},n.decode=function(e){var t;e instanceof ti?t=e:t=new ti(e,0);var r=new ti(t),i=new Za(t),o=n.decodeLength(t),a=t.pos,s=a-r.pos,l=null,u=function(){var p=[];if(o!==null){for(var m=a+o;t.pos<m;)p[p.length]=n.decode(t);if(t.pos!=m)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var h=n.decode(t);if(h.tag.isEOC())break;p[p.length]=h}o=a-t.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(i.tagConstructed)l=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);t.pos=a+Math.abs(o)}return new n(r,s,o,i,l)},n}(),Za=function(){function n(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var r=new Tn;do t=e.get(),r.mulAdd(128,t&127);while(t&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n}(),At,w2=0xdeadbeefcafe,es=(w2&16777215)==15715070,Fe=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],x2=(1<<26)/Fe[Fe.length-1],le=function(){function n(e,t,r){e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}return n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,i,o=!1,a="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(i=this[s]>>l)>0&&(o=!0,a=Ga(i));s>=0;)l<t?(i=(this[s]&(1<<l)-1)<<t-l,i|=this[--s]>>(l+=this.DB-t)):(i=this[s]>>(l-=t)&r,l<=0&&(l+=this.DB,--s)),i>0&&(o=!0),o&&(a+=Ga(i));return o?a:"0"},n.prototype.negate=function(){var e=pe();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+or(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=pe();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var r;return e<256||t.isEven()?r=new ts(t):r=new ns(t),this.exp(e,r)},n.prototype.clone=function(){var e=pe();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r=this.DB-e*this.DB%8,i,o=0;if(e-- >0)for(r<this.DB&&(i=this[e]>>r)!=(this.s&this.DM)>>r&&(t[o++]=i|this.s<<this.DB-r);e>=0;)r<8?(i=(this[e]&(1<<r)-1)<<8-r,i|=this[--e]>>(r+=this.DB-8)):(i=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),i&128&&(i|=-256),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(t[o++]=i);return t},n.prototype.equals=function(e){return this.compareTo(e)==0},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=pe();return this.bitwiseTo(e,p2,t),t},n.prototype.or=function(e){var t=pe();return this.bitwiseTo(e,ir,t),t},n.prototype.xor=function(e){var t=pe();return this.bitwiseTo(e,Ya,t),t},n.prototype.andNot=function(e){var t=pe();return this.bitwiseTo(e,Xa,t),t},n.prototype.not=function(){for(var e=pe(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=pe();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=pe();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+h2(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=m2(this[r]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<e%this.DB)!=0},n.prototype.setBit=function(e){return this.changeBit(e,ir)},n.prototype.clearBit=function(e){return this.changeBit(e,Xa)},n.prototype.flipBit=function(e){return this.changeBit(e,Ya)},n.prototype.add=function(e){var t=pe();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=pe();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=pe();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=pe();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=pe();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=pe(),r=pe();return this.divRemTo(e,t,r),[t,r]},n.prototype.modPow=function(e,t){var r=e.bitLength(),i,o=Tt(1),a;if(r<=0)return o;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?a=new ts(t):t.isEven()?a=new S2(t):a=new ns(t);var s=[],l=3,u=i-1,c=(1<<i)-1;if(s[1]=a.convert(this),i>1){var p=pe();for(a.sqrTo(s[1],p);l<=c;)s[l]=pe(),a.mulTo(p,s[l-2],s[l]),l+=2}var m=e.t-1,h,f=!0,v=pe(),g;for(r=or(e[m])-1;m>=0;){for(r>=u?h=e[m]>>r-u&c:(h=(e[m]&(1<<r+1)-1)<<u-r,m>0&&(h|=e[m-1]>>this.DB+r-u)),l=i;!(h&1);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--m),f)s[h].copyTo(o),f=!1;else{for(;l>1;)a.sqrTo(o,v),a.sqrTo(v,o),l-=2;l>0?a.sqrTo(o,v):(g=o,o=v,v=g),a.mulTo(v,s[h],o)}for(;m>=0&&!(e[m]&1<<r);)a.sqrTo(o,v),g=o,o=v,v=g,--r<0&&(r=this.DB-1,--m)}return a.revert(o)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return n.ZERO;for(var r=e.clone(),i=this.clone(),o=Tt(1),a=Tt(0),s=Tt(0),l=Tt(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!o.isEven()||!a.isEven())&&(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?((!s.isEven()||!l.isEven())&&(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),t&&s.subTo(o,s),l.subTo(a,l))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},n.prototype.pow=function(e){return this.exp(e,new _2)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var o=t.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return t;for(o<a&&(a=o),a>0&&(t.rShiftTo(a,t),r.rShiftTo(a,r));t.signum()>0;)(o=t.getLowestSetBit())>0&&t.rShiftTo(o,t),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},n.prototype.isProbablePrime=function(e){var t,r=this.abs();if(r.t==1&&r[0]<=Fe[Fe.length-1]){for(t=0;t<Fe.length;++t)if(r[0]==Fe[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Fe.length;){for(var i=Fe[t],o=t+1;o<Fe.length&&i<x2;)i*=Fe[o++];for(i=r.modInt(i);t<o;)if(i%Fe[t++]==0)return!1}return r.millerRabin(e)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=r==8?+e[i]&255:is(e,i);if(s<0){e.charAt(i)=="-"&&(o=!0);continue}o=!1,a==0?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,a+=r,a>=this.DB&&(a-=this.DB)}r==8&&+e[0]&128&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+a+1]=this[l]>>i|s,s=(this[l]&o)<<r;for(var l=a-1;l>=0;--l)t[l]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var i=e%this.DB,o=this.DB-i,a=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&a)<<o,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&a)<<o),t.t=this.t-r,t.clamp()},n.prototype.subTo=function(e,t){for(var r=0,i=0,o=Math.min(e.t,this.t);r<o;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=pe());var a=pe(),s=this.s,l=e.s,u=this.DB-or(i[i.t-1]);u>0?(i.lShiftTo(u,a),o.lShiftTo(u,r)):(i.copyTo(a),o.copyTo(r));var c=a.t,p=a[c-1];if(p!=0){var m=p*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,v=1<<this.F2,g=r.t,j=g-c,w=t??pe();for(a.dlShiftTo(j,w),r.compareTo(w)>=0&&(r[r.t++]=1,r.subTo(w,r)),n.ONE.dlShiftTo(c,w),w.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--j>=0;){var _=r[--g]==p?this.DM:Math.floor(r[g]*h+(r[g-1]+v)*f);if((r[g]+=a.am(0,_,r,j,0,c))<_)for(a.dlShiftTo(j,w),r.subTo(w,r);r[g]<--_;)r.subTo(w,r)}t!=null&&(r.drShiftTo(c,t),s!=l&&n.ZERO.subTo(t,t)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var r=pe(),i=pe(),o=t.convert(this),a=or(e)-1;for(o.copyTo(r);--a>=0;)if(t.sqrTo(r,i),(e&1<<a)>0)t.mulTo(i,o,r);else{var s=r;r=i,i=s}return t.revert(r)},n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=Tt(r),o=pe(),a=pe(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=is(e,l);if(u<0){e.charAt(l)=="-"&&this.signum()==0&&(o=!0);continue}s=t*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0)}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),ir,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=[],o=e&7;i.length=(e>>3)+1,t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,o,a=Math.min(e.t,this.t);for(i=0;i<a;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(o=e.s&this.DM,i=a;i<this.t;++i)r[i]=t(this[i],o);r.t=this.t}else{for(o=this.s&this.DM,i=a;i<e.t;++i)r[i]=t(o,e[i]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var r=0,i=0,o=Math.min(e.t,this.t);r<o;)i+=this[r]+e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i+=e[r],t[r++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,r){var i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var o=r.t-this.t;i<o;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(var o=Math.min(e.t,t);i<o;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},n.prototype.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%e;return r},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);e=e+1>>1,e>Fe.length&&(e=Fe.length);for(var o=pe(),a=0;a<e;++a){o.fromInt(Fe[Math.floor(Math.random()*Fe.length)]);var s=o.modPow(i,this);if(s.compareTo(n.ONE)!=0&&s.compareTo(t)!=0){for(var l=1;l++<r&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(n.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},n.prototype.square=function(){var e=pe();return this.squareTo(e),e},n.prototype.gcda=function(e,t){var r=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(r.compareTo(i)<0){var o=r;r=i,i=o}var a=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0){t(r);return}a<s&&(s=a),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));var l=function(){(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(s>0&&i.lShiftTo(s,i),setTimeout(function(){t(i)},0))};setTimeout(l,10)},n.prototype.fromNumberAsync=function(e,t,r,i){if(typeof t=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),ir,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(n.ONE.shiftLeft(e-1),o),o.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=e&7;s.length=(e>>3)+1,t.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},n}(),_2=function(){function n(){}return n.prototype.convert=function(e){return e},n.prototype.revert=function(e){return e},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},n.prototype.sqrTo=function(e,t){e.squareTo(t)},n}(),ts=function(){function n(e){this.m=e}return n.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),ns=function(){function n(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return n.prototype.convert=function(e){var t=pe();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},n.prototype.revert=function(e){var t=pe();return e.copyTo(t),this.reduce(t),t},n.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e[t]&32767,i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),S2=function(){function n(e){this.m=e,this.r2=pe(),this.q3=pe(),le.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return n.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=pe();return e.copyTo(t),this.reduce(t),t},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}();function pe(){return new le(null)}function ke(n,e){return new le(n,e)}var rs=typeof navigator<"u";rs&&es&&navigator.appName=="Microsoft Internet Explorer"?(le.prototype.am=function(n,e,t,r,i,o){for(var a=e&32767,s=e>>15;--o>=0;){var l=this[n]&32767,u=this[n++]>>15,c=s*l+u*a;l=a*l+((c&32767)<<15)+t[r]+(i&1073741823),i=(l>>>30)+(c>>>15)+s*u+(i>>>30),t[r++]=l&1073741823}return i},At=30):rs&&es&&navigator.appName!="Netscape"?(le.prototype.am=function(n,e,t,r,i,o){for(;--o>=0;){var a=e*this[n++]+t[r]+i;i=Math.floor(a/67108864),t[r++]=a&67108863}return i},At=26):(le.prototype.am=function(n,e,t,r,i,o){for(var a=e&16383,s=e>>14;--o>=0;){var l=this[n]&16383,u=this[n++]>>14,c=s*l+u*a;l=a*l+((c&16383)<<14)+t[r]+i,i=(l>>28)+(c>>14)+s*u,t[r++]=l&268435455}return i},At=28),le.prototype.DB=At,le.prototype.DM=(1<<At)-1,le.prototype.DV=1<<At;var ni=52;le.prototype.FV=Math.pow(2,ni),le.prototype.F1=ni-At,le.prototype.F2=2*At-ni;var Hr=[],fn,Ze;for(fn=48,Ze=0;Ze<=9;++Ze)Hr[fn++]=Ze;for(fn=97,Ze=10;Ze<36;++Ze)Hr[fn++]=Ze;for(fn=65,Ze=10;Ze<36;++Ze)Hr[fn++]=Ze;function is(n,e){var t=Hr[n.charCodeAt(e)];return t??-1}function Tt(n){var e=pe();return e.fromInt(n),e}function or(n){var e=1,t;return(t=n>>>16)!=0&&(n=t,e+=16),(t=n>>8)!=0&&(n=t,e+=8),(t=n>>4)!=0&&(n=t,e+=4),(t=n>>2)!=0&&(n=t,e+=2),(t=n>>1)!=0&&(n=t,e+=1),e}le.ZERO=Tt(0),le.ONE=Tt(1);var k2=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(e){var t,r,i;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},n}();function j2(){return new k2}var iu=256,ar,Ot=null,ot;if(Ot==null){Ot=[],ot=0;var sr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ri=new Uint32Array(256);for(window.crypto.getRandomValues(ri),sr=0;sr<ri.length;++sr)Ot[ot++]=ri[sr]&255}var lr=0,ur=function(n){if(lr=lr||0,lr>=256||ot>=iu){window.removeEventListener?window.removeEventListener("mousemove",ur,!1):window.detachEvent&&window.detachEvent("onmousemove",ur);return}try{var e=n.x+n.y;Ot[ot++]=e&255,lr+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",ur,!1):window.attachEvent&&window.attachEvent("onmousemove",ur))}function V2(){if(ar==null){for(ar=j2();ot<iu;){var n=Math.floor(65536*Math.random());Ot[ot++]=n&255}for(ar.init(Ot),ot=0;ot<Ot.length;++ot)Ot[ot]=0;ot=0}return ar.next()}var Bi=function(){function n(){}return n.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=V2()},n}();function C2(n,e){if(e<n.length+22)return console.error("Message too long for RSA"),null;for(var t=e-n.length-6,r="",i=0;i<t;i+=2)r+="ff";var o="0001"+r+"00"+n;return ke(o,16)}function $2(n,e){if(e<n.length+11)return console.error("Message too long for RSA"),null;for(var t=[],r=n.length-1;r>=0&&e>0;){var i=n.charCodeAt(r--);i<128?t[--e]=i:i>127&&i<2048?(t[--e]=i&63|128,t[--e]=i>>6|192):(t[--e]=i&63|128,t[--e]=i>>6&63|128,t[--e]=i>>12|224)}t[--e]=0;for(var o=new Bi,a=[];e>2;){for(a[0]=0;a[0]==0;)o.nextBytes(a);t[--e]=a[0]}return t[--e]=2,t[--e]=0,new le(t)}var E2=function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,r=$2(e,t);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var o=i.toString(16),a=o.length,s=0;s<t*2-a;s++)o="0"+o;return o},n.prototype.setPrivate=function(e,t,r){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16),this.d=ke(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,t,r,i,o,a,s,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=ke(e,16),this.e=parseInt(t,16),this.d=ke(r,16),this.p=ke(i,16),this.q=ke(o,16),this.dmp1=ke(a,16),this.dmq1=ke(s,16),this.coeff=ke(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,t){var r=new Bi,i=e>>1;this.e=parseInt(t,16);for(var o=new le(t,16);;){for(;this.p=new le(e-i,1,r),!(this.p.subtract(le.ONE).gcd(o).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(i,1,r),!(this.q.subtract(le.ONE).gcd(o).compareTo(le.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(le.ONE),l=this.q.subtract(le.ONE),u=s.multiply(l);if(u.gcd(o).compareTo(le.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(e){var t=ke(e,16),r=this.doPrivate(t);return r==null?null:A2(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,t,r){var i=new Bi,o=e>>1;this.e=parseInt(t,16);var a=new le(t,16),s=this,l=function(){var u=function(){if(s.p.compareTo(s.q)<=0){var m=s.p;s.p=s.q,s.q=m}var h=s.p.subtract(le.ONE),f=s.q.subtract(le.ONE),v=h.multiply(f);v.gcd(a).compareTo(le.ONE)==0?(s.n=s.p.multiply(s.q),s.d=a.modInverse(v),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(f),s.coeff=s.q.modInverse(s.p),setTimeout(function(){r()},0)):setTimeout(l,0)},c=function(){s.q=pe(),s.q.fromNumberAsync(o,1,i,function(){s.q.subtract(le.ONE).gcda(a,function(m){m.compareTo(le.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)})})},p=function(){s.p=pe(),s.p.fromNumberAsync(e-o,1,i,function(){s.p.subtract(le.ONE).gcda(a,function(m){m.compareTo(le.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},n.prototype.sign=function(e,t,r){var i=T2(r),o=i+t(e).toString(),a=C2(o,this.n.bitLength()/4);if(a==null)return null;var s=this.doPrivate(a);if(s==null)return null;var l=s.toString(16);return l.length&1?"0"+l:l},n.prototype.verify=function(e,t,r){var i=ke(t,16),o=this.doPublic(i);if(o==null)return null;var a=o.toString(16).replace(/^1f+00/,""),s=O2(a);return s==r(e).toString()},n}();function A2(n,e){for(var t=n.toByteArray(),r=0;r<t.length&&t[r]==0;)++r;if(t.length-r!=e-1||t[r]!=2)return null;for(++r;t[r]!=0;)if(++r>=t.length)return null;for(var i="";++r<t.length;){var o=t[r]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|t[r+1]&63),++r):(i+=String.fromCharCode((o&15)<<12|(t[r+1]&63)<<6|t[r+2]&63),r+=2)}return i}var gr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function T2(n){return gr[n]||""}function O2(n){for(var e in gr)if(gr.hasOwnProperty(e)){var t=gr[e],r=t.length;if(n.substr(0,r)==t)return n.substr(r)}return n}/*!
32
32
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
33
33
  Code licensed under the BSD License:
34
34
  http://developer.yahoo.com/yui/license.html
@@ -40,7 +40,7 @@ version: 2.9.0
40
40
  * @version asn1 1.0.13 (2017-Jun-02)
41
41
  * @since jsrsasign 2.1
42
42
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
43
- */var H={};(typeof H.asn1>"u"||!H.asn1)&&(H.asn1={}),H.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var e=n.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(n){var e=n.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var t=e.substr(1),r=t.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var i="",o=0;o<r;o++)i+="f";var a=new le(i,16),s=a.xor(n).add(le.ONE);e=s.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=H,t=e.asn1,r=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,a=t.DEROctetString,s=t.DERNull,l=t.DERObjectIdentifier,u=t.DEREnumerated,c=t.DERUTF8String,p=t.DERNumericString,m=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,v=t.DERUTCTime,g=t.DERGeneralizedTime,j=t.DERSequence,b=t.DERSet,_=t.DERTaggedObject,k=t.ASN1Util.newObject,C=Object.keys(n);if(C.length!=1)throw"key of param shall be only one.";var x=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":")==-1)throw"undefined key: "+x;if(x=="bool")return new r(n[x]);if(x=="int")return new i(n[x]);if(x=="bitstr")return new o(n[x]);if(x=="octstr")return new a(n[x]);if(x=="null")return new s(n[x]);if(x=="oid")return new l(n[x]);if(x=="enum")return new u(n[x]);if(x=="utf8str")return new c(n[x]);if(x=="numstr")return new p(n[x]);if(x=="prnstr")return new m(n[x]);if(x=="telstr")return new h(n[x]);if(x=="ia5str")return new f(n[x]);if(x=="utctime")return new v(n[x]);if(x=="gentime")return new g(n[x]);if(x=="seq"){for(var A=n[x],T=[],X=0;X<A.length;X++){var $=k(A[X]);T.push($)}return new j({array:T})}if(x=="set"){for(var A=n[x],T=[],X=0;X<A.length;X++){var $=k(A[X]);T.push($)}return new b({array:T})}if(x=="tag"){var E=n[x];if(Object.prototype.toString.call(E)==="[object Array]"&&E.length==3){var P=k(E[2]);return new _({tag:E[0],explicit:E[1],obj:P})}else{var z={};if(E.explicit!==void 0&&(z.explicit=E.explicit),E.tag!==void 0&&(z.tag=E.tag),E.obj===void 0)throw"obj shall be specified for 'tag'.";return z.obj=k(E.obj),new _(z)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},H.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",e=parseInt(n.substr(0,2),16),t=Math.floor(e/40),r=e%40,i=t+"."+r,o="",a=2;a<n.length;a+=2){var s=parseInt(n.substr(a,2),16),l=("00000000"+s.toString(2)).slice(-8);if(o=o+l.substr(1,7),l.substr(0,1)=="0"){var u=new le(o,2);i=i+"."+u.toString(10),o=""}}return i},H.asn1.ASN1Util.oidIntToHex=function(n){var e=function(s){var l=s.toString(16);return l.length==1&&(l="0"+l),l},t=function(s){var l="",u=new le(s,10),c=u.toString(2),p=7-c.length%7;p==7&&(p=0);for(var m="",h=0;h<p;h++)m+="0";c=m+c;for(var h=0;h<c.length-1;h+=7){var f=c.substr(h,7);h!=c.length-7&&(f="1"+f),l+=e(parseInt(f,2))}return l};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),o=parseInt(i[0])*40+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=t(i[a]);return r},H.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var r=t.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+r;return i.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},H.asn1.DERAbstractString=function(n){H.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},Ce.lang.extend(H.asn1.DERAbstractString,H.asn1.ASN1Object),H.asn1.DERAbstractTime=function(n){H.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(e,t,r){var i=this.zeroPadding,o=this.localDateToUTC(e),a=String(o.getFullYear());t=="utc"&&(a=a.substr(2,2));var s=i(String(o.getMonth()+1),2),l=i(String(o.getDate()),2),u=i(String(o.getHours()),2),c=i(String(o.getMinutes()),2),p=i(String(o.getSeconds()),2),m=a+s+l+u+c+p;if(r===!0){var h=o.getMilliseconds();if(h!=0){var f=i(String(h),3);f=f.replace(/[0]+$/,""),m=m+"."+f}}return m+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,r,i,o,a){var s=new Date(Date.UTC(e,t-1,r,i,o,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Ce.lang.extend(H.asn1.DERAbstractTime,H.asn1.ASN1Object),H.asn1.DERAbstractStructured=function(n){H.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},Ce.lang.extend(H.asn1.DERAbstractStructured,H.asn1.ASN1Object),H.asn1.DERBoolean=function(){H.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ce.lang.extend(H.asn1.DERBoolean,H.asn1.ASN1Object),H.asn1.DERInteger=function(n){H.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new le(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},Ce.lang.extend(H.asn1.DERInteger,H.asn1.ASN1Object),H.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=H.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}H.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,r){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var r=8-t.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)t+="0";for(var o="",i=0;i<t.length-1;i+=8){var a=t.substr(i,8),s=parseInt(a,2).toString(16);s.length==1&&(s="0"+s),o+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+r+o},this.setByBooleanArray=function(t){for(var r="",i=0;i<t.length;i++)t[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},Ce.lang.extend(H.asn1.DERBitString,H.asn1.ASN1Object),H.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=H.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}H.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},Ce.lang.extend(H.asn1.DEROctetString,H.asn1.DERAbstractString),H.asn1.DERNull=function(){H.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ce.lang.extend(H.asn1.DERNull,H.asn1.ASN1Object),H.asn1.DERObjectIdentifier=function(n){var e=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},t=function(r){var i="",o=new le(r,10),a=o.toString(2),s=7-a.length%7;s==7&&(s=0);for(var l="",u=0;u<s;u++)l+="0";a=l+a;for(var u=0;u<a.length-1;u+=7){var c=a.substr(u,7);u!=a.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};H.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",o=r.split("."),a=parseInt(o[0])*40+parseInt(o[1]);i+=e(a),o.splice(0,2);for(var s=0;s<o.length;s++)i+=t(o[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=H.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},Ce.lang.extend(H.asn1.DERObjectIdentifier,H.asn1.ASN1Object),H.asn1.DEREnumerated=function(n){H.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new le(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},Ce.lang.extend(H.asn1.DEREnumerated,H.asn1.ASN1Object),H.asn1.DERUTF8String=function(n){H.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},Ce.lang.extend(H.asn1.DERUTF8String,H.asn1.DERAbstractString),H.asn1.DERNumericString=function(n){H.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},Ce.lang.extend(H.asn1.DERNumericString,H.asn1.DERAbstractString),H.asn1.DERPrintableString=function(n){H.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},Ce.lang.extend(H.asn1.DERPrintableString,H.asn1.DERAbstractString),H.asn1.DERTeletexString=function(n){H.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},Ce.lang.extend(H.asn1.DERTeletexString,H.asn1.DERAbstractString),H.asn1.DERIA5String=function(n){H.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},Ce.lang.extend(H.asn1.DERIA5String,H.asn1.DERAbstractString),H.asn1.DERUTCTime=function(n){H.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},Ce.lang.extend(H.asn1.DERUTCTime,H.asn1.DERAbstractTime),H.asn1.DERGeneralizedTime=function(n){H.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},Ce.lang.extend(H.asn1.DERGeneralizedTime,H.asn1.DERAbstractTime),H.asn1.DERSequence=function(n){H.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e+=r.getEncodedHex()}return this.hV=e,this.hV}},Ce.lang.extend(H.asn1.DERSequence,H.asn1.DERAbstractStructured),H.asn1.DERSet=function(n){H.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e.push(r.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},Ce.lang.extend(H.asn1.DERSet,H.asn1.DERAbstractStructured),H.asn1.DERTaggedObject=function(n){H.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,r){this.hT=t,this.isExplicit=e,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ce.lang.extend(H.asn1.DERTaggedObject,H.asn1.ASN1Object);var B2=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();(function(n){B2(e,n);function e(t){var r=n.call(this)||this;return t&&(typeof t=="string"?r.parseKey(t):(e.hasPrivateKeyProperty(t)||e.hasPublicKeyProperty(t))&&r.parsePropertiesFrom(t)),r}return e.prototype.parseKey=function(t){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=o.test(t)?v2.decode(t):Oi.unarmor(t),s=b2.decode(a);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){r=s.sub[1].getHexStringValue(),this.n=ke(r,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=s.sub[3].getHexStringValue();this.d=ke(l,16);var u=s.sub[4].getHexStringValue();this.p=ke(u,16);var c=s.sub[5].getHexStringValue();this.q=ke(c,16);var p=s.sub[6].getHexStringValue();this.dmp1=ke(p,16);var m=s.sub[7].getHexStringValue();this.dmq1=ke(m,16);var h=s.sub[8].getHexStringValue();this.coeff=ke(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var f=s.sub[1],v=f.sub[0];r=v.sub[0].getHexStringValue(),this.n=ke(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=s.sub[0].getHexStringValue(),this.n=ke(r,16),i=s.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new H.asn1.DERInteger({int:0}),new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e}),new H.asn1.DERInteger({bigint:this.d}),new H.asn1.DERInteger({bigint:this.p}),new H.asn1.DERInteger({bigint:this.q}),new H.asn1.DERInteger({bigint:this.dmp1}),new H.asn1.DERInteger({bigint:this.dmq1}),new H.asn1.DERInteger({bigint:this.coeff})]},r=new H.asn1.DERSequence(t);return r.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Qa(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new H.asn1.DERSequence({array:[new H.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new H.asn1.DERNull]}),r=new H.asn1.DERSequence({array:[new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e})]}),i=new H.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),o=new H.asn1.DERSequence({array:[t,i]});return o.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Qa(this.getPublicBaseKey())},e.wordwrap=function(t,r){if(r=r||64,!t)return t;var i="(.{1,"+r+`})( +|$
43
+ */var H={};(typeof H.asn1>"u"||!H.asn1)&&(H.asn1={}),H.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var e=n.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(n){var e=n.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var t=e.substr(1),r=t.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var i="",o=0;o<r;o++)i+="f";var a=new le(i,16),s=a.xor(n).add(le.ONE);e=s.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=H,t=e.asn1,r=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,a=t.DEROctetString,s=t.DERNull,l=t.DERObjectIdentifier,u=t.DEREnumerated,c=t.DERUTF8String,p=t.DERNumericString,m=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,v=t.DERUTCTime,g=t.DERGeneralizedTime,j=t.DERSequence,w=t.DERSet,_=t.DERTaggedObject,S=t.ASN1Util.newObject,C=Object.keys(n);if(C.length!=1)throw"key of param shall be only one.";var x=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":")==-1)throw"undefined key: "+x;if(x=="bool")return new r(n[x]);if(x=="int")return new i(n[x]);if(x=="bitstr")return new o(n[x]);if(x=="octstr")return new a(n[x]);if(x=="null")return new s(n[x]);if(x=="oid")return new l(n[x]);if(x=="enum")return new u(n[x]);if(x=="utf8str")return new c(n[x]);if(x=="numstr")return new p(n[x]);if(x=="prnstr")return new m(n[x]);if(x=="telstr")return new h(n[x]);if(x=="ia5str")return new f(n[x]);if(x=="utctime")return new v(n[x]);if(x=="gentime")return new g(n[x]);if(x=="seq"){for(var A=n[x],T=[],X=0;X<A.length;X++){var $=S(A[X]);T.push($)}return new j({array:T})}if(x=="set"){for(var A=n[x],T=[],X=0;X<A.length;X++){var $=S(A[X]);T.push($)}return new w({array:T})}if(x=="tag"){var E=n[x];if(Object.prototype.toString.call(E)==="[object Array]"&&E.length==3){var P=S(E[2]);return new _({tag:E[0],explicit:E[1],obj:P})}else{var z={};if(E.explicit!==void 0&&(z.explicit=E.explicit),E.tag!==void 0&&(z.tag=E.tag),E.obj===void 0)throw"obj shall be specified for 'tag'.";return z.obj=S(E.obj),new _(z)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},H.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",e=parseInt(n.substr(0,2),16),t=Math.floor(e/40),r=e%40,i=t+"."+r,o="",a=2;a<n.length;a+=2){var s=parseInt(n.substr(a,2),16),l=("00000000"+s.toString(2)).slice(-8);if(o=o+l.substr(1,7),l.substr(0,1)=="0"){var u=new le(o,2);i=i+"."+u.toString(10),o=""}}return i},H.asn1.ASN1Util.oidIntToHex=function(n){var e=function(s){var l=s.toString(16);return l.length==1&&(l="0"+l),l},t=function(s){var l="",u=new le(s,10),c=u.toString(2),p=7-c.length%7;p==7&&(p=0);for(var m="",h=0;h<p;h++)m+="0";c=m+c;for(var h=0;h<c.length-1;h+=7){var f=c.substr(h,7);h!=c.length-7&&(f="1"+f),l+=e(parseInt(f,2))}return l};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),o=parseInt(i[0])*40+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=t(i[a]);return r},H.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var r=t.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+r;return i.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},H.asn1.DERAbstractString=function(n){H.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},Ce.lang.extend(H.asn1.DERAbstractString,H.asn1.ASN1Object),H.asn1.DERAbstractTime=function(n){H.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(e,t,r){var i=this.zeroPadding,o=this.localDateToUTC(e),a=String(o.getFullYear());t=="utc"&&(a=a.substr(2,2));var s=i(String(o.getMonth()+1),2),l=i(String(o.getDate()),2),u=i(String(o.getHours()),2),c=i(String(o.getMinutes()),2),p=i(String(o.getSeconds()),2),m=a+s+l+u+c+p;if(r===!0){var h=o.getMilliseconds();if(h!=0){var f=i(String(h),3);f=f.replace(/[0]+$/,""),m=m+"."+f}}return m+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,r,i,o,a){var s=new Date(Date.UTC(e,t-1,r,i,o,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Ce.lang.extend(H.asn1.DERAbstractTime,H.asn1.ASN1Object),H.asn1.DERAbstractStructured=function(n){H.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},Ce.lang.extend(H.asn1.DERAbstractStructured,H.asn1.ASN1Object),H.asn1.DERBoolean=function(){H.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ce.lang.extend(H.asn1.DERBoolean,H.asn1.ASN1Object),H.asn1.DERInteger=function(n){H.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new le(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},Ce.lang.extend(H.asn1.DERInteger,H.asn1.ASN1Object),H.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=H.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}H.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,r){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var r=8-t.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)t+="0";for(var o="",i=0;i<t.length-1;i+=8){var a=t.substr(i,8),s=parseInt(a,2).toString(16);s.length==1&&(s="0"+s),o+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+r+o},this.setByBooleanArray=function(t){for(var r="",i=0;i<t.length;i++)t[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},Ce.lang.extend(H.asn1.DERBitString,H.asn1.ASN1Object),H.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=H.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}H.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},Ce.lang.extend(H.asn1.DEROctetString,H.asn1.DERAbstractString),H.asn1.DERNull=function(){H.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ce.lang.extend(H.asn1.DERNull,H.asn1.ASN1Object),H.asn1.DERObjectIdentifier=function(n){var e=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},t=function(r){var i="",o=new le(r,10),a=o.toString(2),s=7-a.length%7;s==7&&(s=0);for(var l="",u=0;u<s;u++)l+="0";a=l+a;for(var u=0;u<a.length-1;u+=7){var c=a.substr(u,7);u!=a.length-7&&(c="1"+c),i+=e(parseInt(c,2))}return i};H.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",o=r.split("."),a=parseInt(o[0])*40+parseInt(o[1]);i+=e(a),o.splice(0,2);for(var s=0;s<o.length;s++)i+=t(o[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=H.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},Ce.lang.extend(H.asn1.DERObjectIdentifier,H.asn1.ASN1Object),H.asn1.DEREnumerated=function(n){H.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=H.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new le(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},Ce.lang.extend(H.asn1.DEREnumerated,H.asn1.ASN1Object),H.asn1.DERUTF8String=function(n){H.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},Ce.lang.extend(H.asn1.DERUTF8String,H.asn1.DERAbstractString),H.asn1.DERNumericString=function(n){H.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},Ce.lang.extend(H.asn1.DERNumericString,H.asn1.DERAbstractString),H.asn1.DERPrintableString=function(n){H.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},Ce.lang.extend(H.asn1.DERPrintableString,H.asn1.DERAbstractString),H.asn1.DERTeletexString=function(n){H.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},Ce.lang.extend(H.asn1.DERTeletexString,H.asn1.DERAbstractString),H.asn1.DERIA5String=function(n){H.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},Ce.lang.extend(H.asn1.DERIA5String,H.asn1.DERAbstractString),H.asn1.DERUTCTime=function(n){H.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},Ce.lang.extend(H.asn1.DERUTCTime,H.asn1.DERAbstractTime),H.asn1.DERGeneralizedTime=function(n){H.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},Ce.lang.extend(H.asn1.DERGeneralizedTime,H.asn1.DERAbstractTime),H.asn1.DERSequence=function(n){H.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e+=r.getEncodedHex()}return this.hV=e,this.hV}},Ce.lang.extend(H.asn1.DERSequence,H.asn1.DERAbstractStructured),H.asn1.DERSet=function(n){H.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e.push(r.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},Ce.lang.extend(H.asn1.DERSet,H.asn1.DERAbstractStructured),H.asn1.DERTaggedObject=function(n){H.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,r){this.hT=t,this.isExplicit=e,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ce.lang.extend(H.asn1.DERTaggedObject,H.asn1.ASN1Object);var B2=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();(function(n){B2(e,n);function e(t){var r=n.call(this)||this;return t&&(typeof t=="string"?r.parseKey(t):(e.hasPrivateKeyProperty(t)||e.hasPublicKeyProperty(t))&&r.parsePropertiesFrom(t)),r}return e.prototype.parseKey=function(t){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=o.test(t)?v2.decode(t):Oi.unarmor(t),s=b2.decode(a);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){r=s.sub[1].getHexStringValue(),this.n=ke(r,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=s.sub[3].getHexStringValue();this.d=ke(l,16);var u=s.sub[4].getHexStringValue();this.p=ke(u,16);var c=s.sub[5].getHexStringValue();this.q=ke(c,16);var p=s.sub[6].getHexStringValue();this.dmp1=ke(p,16);var m=s.sub[7].getHexStringValue();this.dmq1=ke(m,16);var h=s.sub[8].getHexStringValue();this.coeff=ke(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var f=s.sub[1],v=f.sub[0];r=v.sub[0].getHexStringValue(),this.n=ke(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=s.sub[0].getHexStringValue(),this.n=ke(r,16),i=s.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new H.asn1.DERInteger({int:0}),new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e}),new H.asn1.DERInteger({bigint:this.d}),new H.asn1.DERInteger({bigint:this.p}),new H.asn1.DERInteger({bigint:this.q}),new H.asn1.DERInteger({bigint:this.dmp1}),new H.asn1.DERInteger({bigint:this.dmq1}),new H.asn1.DERInteger({bigint:this.coeff})]},r=new H.asn1.DERSequence(t);return r.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Qa(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new H.asn1.DERSequence({array:[new H.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new H.asn1.DERNull]}),r=new H.asn1.DERSequence({array:[new H.asn1.DERInteger({bigint:this.n}),new H.asn1.DERInteger({int:this.e})]}),i=new H.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),o=new H.asn1.DERSequence({array:[t,i]});return o.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Qa(this.getPublicBaseKey())},e.wordwrap=function(t,r){if(r=r||64,!t)return t;var i="(.{1,"+r+`})( +|$
44
44
  ?)|(.{1,`+r+"})";return t.match(RegExp(i,"g")).join(`
45
45
  `)},e.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
46
46
  `;return t+=e.wordwrap(this.getPrivateBaseKeyB64())+`
@@ -52,58 +52,58 @@ version: 2.9.0
52
52
  * author : Adam Draper
53
53
  * license : MIT
54
54
  * http://adamwdraper.github.com/Numeral-js/
55
- */(function(n){(function(e,t){n.exports?n.exports=t():e.numeral=t()})(He,function(){var e,t,r="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(u,c){this._input=u,this._value=c}return e=function(u){var c,p,m,h;if(e.isNumeral(u))c=u.value();else if(u===0||typeof u>"u")c=0;else if(u===null||t.isNaN(u))c=null;else if(typeof u=="string")if(s.zeroFormat&&u===s.zeroFormat)c=0;else if(s.nullFormat&&u===s.nullFormat||!u.replace(/[^0-9]+/g,"").length)c=null;else{for(p in i)if(h=typeof i[p].regexps.unformat=="function"?i[p].regexps.unformat():i[p].regexps.unformat,h&&u.match(h)){m=i[p].unformat;break}m=m||e._.stringToNumber,c=m(u)}else c=Number(u)||null;return new l(u,c)},e.version=r,e.isNumeral=function(u){return u instanceof l},e._=t={numberToFormat:function(u,c,p){var m=o[e.options.currentLocale],h=!1,f=!1,v=0,g="",j=1e12,b=1e9,_=1e6,k=1e3,C="",x=!1,A,T,X,$,E,P,z;if(u=u||0,T=Math.abs(u),e._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(E=e._.includes(c,"+")?c.indexOf("+"):u<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(A=c.match(/a(k|m|b|t)?/),A=A?A[1]:!1,e._.includes(c," a")&&(g=" "),c=c.replace(new RegExp(g+"a[kmbt]?"),""),T>=j&&!A||A==="t"?(g+=m.abbreviations.trillion,u=u/j):T<j&&T>=b&&!A||A==="b"?(g+=m.abbreviations.billion,u=u/b):T<b&&T>=_&&!A||A==="m"?(g+=m.abbreviations.million,u=u/_):(T<_&&T>=k&&!A||A==="k")&&(g+=m.abbreviations.thousand,u=u/k)),e._.includes(c,"[.]")&&(f=!0,c=c.replace("[.]",".")),X=u.toString().split(".")[0],$=c.split(".")[1],P=c.indexOf(","),v=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,$?(e._.includes($,"[")?($=$.replace("]",""),$=$.split("["),C=e._.toFixed(u,$[0].length+$[1].length,p,$[1].length)):C=e._.toFixed(u,$.length,p),X=C.split(".")[0],e._.includes(C,".")?C=m.delimiters.decimal+C.split(".")[1]:C="",f&&Number(C.slice(1))===0&&(C="")):X=e._.toFixed(u,0,p),g&&!A&&Number(X)>=1e3&&g!==m.abbreviations.trillion)switch(X=String(Number(X)/1e3),g){case m.abbreviations.thousand:g=m.abbreviations.million;break;case m.abbreviations.million:g=m.abbreviations.billion;break;case m.abbreviations.billion:g=m.abbreviations.trillion;break}if(e._.includes(X,"-")&&(X=X.slice(1),x=!0),X.length<v)for(var K=v-X.length;K>0;K--)X="0"+X;return P>-1&&(X=X.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),c.indexOf(".")===0&&(X=""),z=X+C+(g||""),h?z=(h&&x?"(":"")+z+(h&&x?")":""):E>=0?z=E===0?(x?"-":"+")+z:z+(x?"-":"+"):x&&(z="-"+z),z},stringToNumber:function(u){var c=o[s.currentLocale],p=u,m={thousand:3,million:6,billion:9,trillion:12},h,f,v;if(s.zeroFormat&&u===s.zeroFormat)f=0;else if(s.nullFormat&&u===s.nullFormat||!u.replace(/[^0-9]+/g,"").length)f=null;else{f=1,c.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in m)if(v=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(v)){f*=Math.pow(10,m[h]);break}f*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),f*=Number(u)}return f},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,c){return u.indexOf(c)!==-1},insert:function(u,c,p){return u.slice(0,p)+c+u.slice(p)},reduce:function(u,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(u),m=p.length>>>0,h=0,f;if(arguments.length===3)f=arguments[2];else{for(;h<m&&!(h in p);)h++;if(h>=m)throw new TypeError("Reduce of empty array with no initial value");f=p[h++]}for(;h<m;h++)h in p&&(f=c(f,p[h],h,p));return f},multiplier:function(u){var c=u.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(c,p){var m=t.multiplier(p);return c>m?c:m},1)},toFixed:function(u,c,p,m){var h=u.toString().split("."),f=c-(m||0),v,g,j,b;return h.length===2?v=Math.min(Math.max(h[1].length,f),c):v=f,j=Math.pow(10,v),b=(p(u+"e+"+v)/j).toFixed(v),m>c-v&&(g=new RegExp("\\.?0{1,"+(m-(c-v))+"}$"),b=b.replace(g,"")),b}},e.options=s,e.formats=i,e.locales=o,e.locale=function(u){return u&&(s.currentLocale=u.toLowerCase()),s.currentLocale},e.localeData=function(u){if(!u)return o[s.currentLocale];if(u=u.toLowerCase(),!o[u])throw new Error("Unknown locale : "+u);return o[u]},e.reset=function(){for(var u in a)s[u]=a[u]},e.zeroFormat=function(u){s.zeroFormat=typeof u=="string"?u:null},e.nullFormat=function(u){s.nullFormat=typeof u=="string"?u:null},e.defaultFormat=function(u){s.defaultFormat=typeof u=="string"?u:"0.0"},e.register=function(u,c,p){if(c=c.toLowerCase(),this[u+"s"][c])throw new TypeError(c+" "+u+" already registered.");return this[u+"s"][c]=p,p},e.validate=function(u,c){var p,m,h,f,v,g,j,b;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{j=e.localeData(c)}catch{j=e.localeData(e.locale())}return h=j.currency.symbol,v=j.abbreviations,p=j.delimiters.decimal,j.delimiters.thousands==="."?m="\\.":m=j.delimiters.thousands,b=u.match(/^[^\d]+/),b!==null&&(u=u.substr(1),b[0]!==h)||(b=u.match(/[^\d]+$/),b!==null&&(u=u.slice(0,-1),b[0]!==v.thousand&&b[0]!==v.million&&b[0]!==v.billion&&b[0]!==v.trillion))?!1:(g=new RegExp(m+"{2}"),u.match(/[^\d.,]/g)?!1:(f=u.split(p),f.length>2?!1:f.length<2?!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g):f[0].length===1?!!f[0].match(/^\d+$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/):!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(u,c){var p=this._value,m=u||s.defaultFormat,h,f,v;if(c=c||Math.round,p===0&&s.zeroFormat!==null)f=s.zeroFormat;else if(p===null&&s.nullFormat!==null)f=s.nullFormat;else{for(h in i)if(m.match(i[h].regexps.format)){v=i[h].format;break}v=v||e._.numberToFormat,f=v(p,m,c)}return f},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var c=t.correctionFactor.call(null,this._value,u);function p(m,h,f,v){return m+Math.round(c*h)}return this._value=t.reduce([this._value,u],p,0)/c,this},subtract:function(u){var c=t.correctionFactor.call(null,this._value,u);function p(m,h,f,v){return m-Math.round(c*h)}return this._value=t.reduce([u],p,Math.round(this._value*c))/c,this},multiply:function(u){function c(p,m,h,f){var v=t.correctionFactor(p,m);return Math.round(p*v)*Math.round(m*v)/Math.round(v*v)}return this._value=t.reduce([this._value,u],c,1),this},divide:function(u){function c(p,m,h,f){var v=t.correctionFactor(p,m);return Math.round(p*v)/Math.round(m*v)}return this._value=t.reduce([this._value,u],c),this},difference:function(u){return Math.abs(e(this._value).subtract(u).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var c=u%10;return~~(u%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,c,p){var m=e._.includes(c," BPS")?" ":"",h;return u=u*1e4,c=c.replace(/\s?BPS/,""),h=e._.numberToFormat(u,c,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"BPS"),h=h.join("")):h=h+m+"BPS",h},unformat:function(u){return+(e._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=u.suffixes.concat(c.suffixes.filter(function(h){return u.suffixes.indexOf(h)<0})),m=p.join("|");m="("+m.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(m)},format:function(h,f,v){var g,j=e._.includes(f,"ib")?c:u,b=e._.includes(f," b")||e._.includes(f," ib")?" ":"",_,k,C;for(f=f.replace(/\s?i?b/,""),_=0;_<=j.suffixes.length;_++)if(k=Math.pow(j.base,_),C=Math.pow(j.base,_+1),h===null||h===0||h>=k&&h<C){b+=j.suffixes[_],k>0&&(h=h/k);break}return g=e._.numberToFormat(h,f,v),g+b},unformat:function(h){var f=e._.stringToNumber(h),v,g;if(f){for(v=u.suffixes.length-1;v>=0;v--){if(e._.includes(h,u.suffixes[v])){g=Math.pow(u.base,v);break}if(e._.includes(h,c.suffixes[v])){g=Math.pow(c.base,v);break}}f*=g||1}return f}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(u,c,p){var m=e.locales[e.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},f,v,g;for(c=c.replace(/\s?\$\s?/,""),f=e._.numberToFormat(u,c,p),u>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):u<0&&!e._.includes(h.before,"-")&&!e._.includes(h.before,"(")&&(h.before="-"+h.before),g=0;g<h.before.length;g++)switch(v=h.before[g],v){case"$":f=e._.insert(f,m.currency.symbol,g);break;case" ":f=e._.insert(f," ",g+m.currency.symbol.length-1);break}for(g=h.after.length-1;g>=0;g--)switch(v=h.after[g],v){case"$":f=g===h.after.length-1?f+m.currency.symbol:e._.insert(f,m.currency.symbol,-(h.after.length-(1+g)));break;case" ":f=g===h.after.length-1?f+" ":e._.insert(f," ",-(h.after.length-(1+g)+m.currency.symbol.length-1));break}return f}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,c,p){var m,h=typeof u=="number"&&!e._.isNaN(u)?u.toExponential():"0e+0",f=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),m=e._.numberToFormat(Number(f[0]),c,p),m+"e"+f[1]},unformat:function(u){var c=e._.includes(u,"e+")?u.split("e+"):u.split("e-"),p=Number(c[0]),m=Number(c[1]);m=e._.includes(u,"e-")?m*=-1:m;function h(f,v,g,j){var b=e._.correctionFactor(f,v),_=f*b*(v*b)/(b*b);return _}return e._.reduce([p,Math.pow(10,m)],h,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,c,p){var m=e.locales[e.options.currentLocale],h,f=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),f+=m.ordinal(u),h=e._.numberToFormat(u,c,p),h+f}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,c,p){var m=e._.includes(c," %")?" ":"",h;return e.options.scalePercentBy100&&(u=u*100),c=c.replace(/\s?\%/,""),h=e._.numberToFormat(u,c,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"%"),h=h.join("")):h=h+m+"%",h},unformat:function(u){var c=e._.stringToNumber(u);return e.options.scalePercentBy100?c*.01:c}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,c,p){var m=Math.floor(u/60/60),h=Math.floor((u-m*60*60)/60),f=Math.round(u-m*60*60-h*60);return m+":"+(h<10?"0"+h:h)+":"+(f<10?"0"+f:f)},unformat:function(u){var c=u.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),e})})(au);var D2=au.exports;const I2=_n(D2);function R2(n,e="0.00"){return I2(n).format(e)}var su={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",p="month",m="quarter",h="year",f="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var L=["th","st","nd","rd"],q=K%100;return"["+K+(L[(q-20)%10]||L[q]||L[0])+"]"}},_=function(K,L,q){var Z=String(K);return!Z||Z.length>=L?K:""+Array(L+1-Z.length).join(q)+K},k={s:_,z:function(K){var L=-K.utcOffset(),q=Math.abs(L),Z=Math.floor(q/60),Q=q%60;return(L<=0?"+":"-")+_(Z,2,"0")+":"+_(Q,2,"0")},m:function K(L,q){if(L.date()<q.date())return-K(q,L);var Z=12*(q.year()-L.year())+(q.month()-L.month()),Q=L.clone().add(Z,p),re=q-Q<0,ie=L.clone().add(Z+(re?-1:1),p);return+(-(Z+(q-Q)/(re?Q-ie:ie-Q))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:p,y:h,w:c,d:u,D:f,h:l,m:s,s:a,ms:o,Q:m}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},C="en",x={};x[C]=b;var A="$isDayjsObject",T=function(K){return K instanceof P||!(!K||!K[A])},X=function K(L,q,Z){var Q;if(!L)return C;if(typeof L=="string"){var re=L.toLowerCase();x[re]&&(Q=re),q&&(x[re]=q,Q=re);var ie=L.split("-");if(!Q&&ie.length>1)return K(ie[0])}else{var F=L.name;x[F]=L,Q=F}return!Z&&Q&&(C=Q),Q||!Z&&C},$=function(K,L){if(T(K))return K.clone();var q=typeof L=="object"?L:{};return q.date=K,q.args=arguments,new P(q)},E=k;E.l=X,E.i=T,E.w=function(K,L){return $(K,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var P=function(){function K(q){this.$L=X(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[A]=!0}var L=K.prototype;return L.parse=function(q){this.$d=function(Z){var Q=Z.date,re=Z.utc;if(Q===null)return new Date(NaN);if(E.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var ie=Q.match(g);if(ie){var F=ie[2]-1||0,U=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],F,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,U)):new Date(ie[1],F,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,U)}}return new Date(Q)}(q),this.init()},L.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},L.$utils=function(){return E},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(q,Z){var Q=$(q);return this.startOf(Z)<=Q&&Q<=this.endOf(Z)},L.isAfter=function(q,Z){return $(q)<this.startOf(Z)},L.isBefore=function(q,Z){return this.endOf(Z)<$(q)},L.$g=function(q,Z,Q){return E.u(q)?this[Z]:this.set(Q,q)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(q,Z){var Q=this,re=!!E.u(Z)||Z,ie=E.p(q),F=function(Ft,Ue){var Vt=E.w(Q.$u?Date.UTC(Q.$y,Ue,Ft):new Date(Q.$y,Ue,Ft),Q);return re?Vt:Vt.endOf(u)},U=function(Ft,Ue){return E.w(Q.toDate()[Ft].apply(Q.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(Ue)),Q)},J=this.$W,G=this.$M,Ye=this.$D,en="set"+(this.$u?"UTC":"");switch(ie){case h:return re?F(1,0):F(31,11);case p:return re?F(1,G):F(0,G+1);case c:var Nt=this.$locale().weekStart||0,Vn=(J<Nt?J+7:J)-Nt;return F(re?Ye-Vn:Ye+(6-Vn),G);case u:case f:return U(en+"Hours",0);case l:return U(en+"Minutes",1);case s:return U(en+"Seconds",2);case a:return U(en+"Milliseconds",3);default:return this.clone()}},L.endOf=function(q){return this.startOf(q,!1)},L.$set=function(q,Z){var Q,re=E.p(q),ie="set"+(this.$u?"UTC":""),F=(Q={},Q[u]=ie+"Date",Q[f]=ie+"Date",Q[p]=ie+"Month",Q[h]=ie+"FullYear",Q[l]=ie+"Hours",Q[s]=ie+"Minutes",Q[a]=ie+"Seconds",Q[o]=ie+"Milliseconds",Q)[re],U=re===u?this.$D+(Z-this.$W):Z;if(re===p||re===h){var J=this.clone().set(f,1);J.$d[F](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else F&&this.$d[F](U);return this.init(),this},L.set=function(q,Z){return this.clone().$set(q,Z)},L.get=function(q){return this[E.p(q)]()},L.add=function(q,Z){var Q,re=this;q=Number(q);var ie=E.p(Z),F=function(G){var Ye=$(re);return E.w(Ye.date(Ye.date()+Math.round(G*q)),re)};if(ie===p)return this.set(p,this.$M+q);if(ie===h)return this.set(h,this.$y+q);if(ie===u)return F(1);if(ie===c)return F(7);var U=(Q={},Q[s]=r,Q[l]=i,Q[a]=t,Q)[ie]||1,J=this.$d.getTime()+q*U;return E.w(J,this)},L.subtract=function(q,Z){return this.add(-1*q,Z)},L.format=function(q){var Z=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||v;var re=q||"YYYY-MM-DDTHH:mm:ssZ",ie=E.z(this),F=this.$H,U=this.$m,J=this.$M,G=Q.weekdays,Ye=Q.months,en=Q.meridiem,Nt=function(Ue,Vt,Cn,tr){return Ue&&(Ue[Vt]||Ue(Z,re))||Cn[Vt].slice(0,tr)},Vn=function(Ue){return E.s(F%12||12,Ue,"0")},Ft=en||function(Ue,Vt,Cn){var tr=Ue<12?"AM":"PM";return Cn?tr.toLowerCase():tr};return re.replace(j,function(Ue,Vt){return Vt||function(Cn){switch(Cn){case"YY":return String(Z.$y).slice(-2);case"YYYY":return E.s(Z.$y,4,"0");case"M":return J+1;case"MM":return E.s(J+1,2,"0");case"MMM":return Nt(Q.monthsShort,J,Ye,3);case"MMMM":return Nt(Ye,J);case"D":return Z.$D;case"DD":return E.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return Nt(Q.weekdaysMin,Z.$W,G,2);case"ddd":return Nt(Q.weekdaysShort,Z.$W,G,3);case"dddd":return G[Z.$W];case"H":return String(F);case"HH":return E.s(F,2,"0");case"h":return Vn(1);case"hh":return Vn(2);case"a":return Ft(F,U,!0);case"A":return Ft(F,U,!1);case"m":return String(U);case"mm":return E.s(U,2,"0");case"s":return String(Z.$s);case"ss":return E.s(Z.$s,2,"0");case"SSS":return E.s(Z.$ms,3,"0");case"Z":return ie}return null}(Ue)||ie.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(q,Z,Q){var re,ie=this,F=E.p(Z),U=$(q),J=(U.utcOffset()-this.utcOffset())*r,G=this-U,Ye=function(){return E.m(ie,U)};switch(F){case h:re=Ye()/12;break;case p:re=Ye();break;case m:re=Ye()/3;break;case c:re=(G-J)/6048e5;break;case u:re=(G-J)/864e5;break;case l:re=G/i;break;case s:re=G/r;break;case a:re=G/t;break;default:re=G}return Q?re:E.a(re)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return x[this.$L]},L.locale=function(q,Z){if(!q)return this.$L;var Q=this.clone(),re=X(q,Z,!0);return re&&(Q.$L=re),Q},L.clone=function(){return E.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},K}(),z=P.prototype;return $.prototype=z,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",p],["$y",h],["$D",f]].forEach(function(K){z[K[1]]=function(L){return this.$g(L,K[0],K[1])}}),$.extend=function(K,L){return K.$i||(K(L,P,$),K.$i=!0),$},$.locale=X,$.isDayjs=T,$.unix=function(K){return $(1e3*K)},$.en=x[C],$.Ls=x,$.p={},$})})(su);var lu=su.exports;const M2=_n(lu);var P2={exports:{}};(function(n,e){(function(t,r){n.exports=r(lu)})(He,function(t){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(t),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(P2),M2.locale("zh-cn");const N2=n=>Object.prototype.toString.call(n),oi=n=>N2(n).slice(8,-1),uu=()=>+Date.now();function ut(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function F2(n=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)});return n?e.toLowerCase():e.replace(/-/gi,"")}async function cu(n=0){return new Promise(e=>{setTimeout(e,n)})}function du(n,e){return n.reduce((t,r)=>{const i=r[e];return t.set(i,r),t},new Map)}function H2(n){return[...n.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}function pu(n,e){if(e){const t=du(n,e);return Array.from(t.values())}else return Array.from(new Set(n))}function Vo(n){return n?[].concat(n):[]}function ai(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)||(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,o])=>{r(i,o)||(t[i]=o)})}return t}function L2(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)&&(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,o])=>{r(i,o)&&(t[i]=o)})}return t}var zi={exports:{}};zi.exports,function(n){var e=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function a(l,u){if(!o[l]){o[l]={};for(var c=0;c<l.length;c++)o[l][l.charAt(c)]=c}return o[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(c){return r.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return a(r,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return t(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),c=new Uint8Array(u.length*2),p=0,m=u.length;p<m;p++){var h=u.charCodeAt(p);c[p*2]=h>>>8,c[p*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),c=0,p=u.length;c<p;c++)u[c]=l[c*2]*256+l[c*2+1];var m=[];return u.forEach(function(h){m.push(t(h))}),s.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return a(i,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return t(u)})},_compress:function(l,u,c){if(l==null)return"";var p,m,h={},f={},v="",g="",j="",b=2,_=3,k=2,C=[],x=0,A=0,T;for(T=0;T<l.length;T+=1)if(v=l.charAt(T),Object.prototype.hasOwnProperty.call(h,v)||(h[v]=_++,f[v]=!0),g=j+v,Object.prototype.hasOwnProperty.call(h,g))j=g;else{if(Object.prototype.hasOwnProperty.call(f,j)){if(j.charCodeAt(0)<256){for(p=0;p<k;p++)x=x<<1,A==u-1?(A=0,C.push(c(x)),x=0):A++;for(m=j.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}else{for(m=1,p=0;p<k;p++)x=x<<1|m,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=0;for(m=j.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}b--,b==0&&(b=Math.pow(2,k),k++),delete f[j]}else for(m=h[j],p=0;p<k;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1;b--,b==0&&(b=Math.pow(2,k),k++),h[g]=_++,j=String(v)}if(j!==""){if(Object.prototype.hasOwnProperty.call(f,j)){if(j.charCodeAt(0)<256){for(p=0;p<k;p++)x=x<<1,A==u-1?(A=0,C.push(c(x)),x=0):A++;for(m=j.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}else{for(m=1,p=0;p<k;p++)x=x<<1|m,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=0;for(m=j.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}b--,b==0&&(b=Math.pow(2,k),k++),delete f[j]}else for(m=h[j],p=0;p<k;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1;b--,b==0&&(b=Math.pow(2,k),k++)}for(m=2,p=0;p<k;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1;for(;;)if(x=x<<1,A==u-1){C.push(c(x));break}else A++;return C.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var p=[],m=4,h=4,f=3,v="",g=[],j,b,_,k,C,x,A,T={val:c(0),position:u,index:1};for(j=0;j<3;j+=1)p[j]=j;for(_=0,C=Math.pow(2,2),x=1;x!=C;)k=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(k>0?1:0)*x,x<<=1;switch(_){case 0:for(_=0,C=Math.pow(2,8),x=1;x!=C;)k=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(k>0?1:0)*x,x<<=1;A=t(_);break;case 1:for(_=0,C=Math.pow(2,16),x=1;x!=C;)k=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(k>0?1:0)*x,x<<=1;A=t(_);break;case 2:return""}for(p[3]=A,b=A,g.push(A);;){if(T.index>l)return"";for(_=0,C=Math.pow(2,f),x=1;x!=C;)k=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(k>0?1:0)*x,x<<=1;switch(A=_){case 0:for(_=0,C=Math.pow(2,8),x=1;x!=C;)k=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(k>0?1:0)*x,x<<=1;p[h++]=t(_),A=h-1,m--;break;case 1:for(_=0,C=Math.pow(2,16),x=1;x!=C;)k=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(k>0?1:0)*x,x<<=1;p[h++]=t(_),A=h-1,m--;break;case 2:return g.join("")}if(m==0&&(m=Math.pow(2,f),f++),p[A])v=p[A];else if(A===h)v=b+b.charAt(0);else return null;g.push(v),p[h++]=b+v.charAt(0),m--,b=v,m==0&&(m=Math.pow(2,f),f++)}}};return s}();n!=null?n.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(zi);var hu=zi.exports;function U2(n){return{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(i){i(t)}),(r=n.get("*"))&&r.slice().map(function(i){i(e,t)})}}}function W2(n){for(var e=[],t=0;t<n.length;){var r=n[t];if(r==="*"||r==="+"||r==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(r==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(r==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(r==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(r===":"){for(var i="",o=t+1;o<n.length;){var a=n.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=n[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:i}),t=o;continue}if(r==="("){var s=1,l="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<n.length;){if(n[o]==="\\"){l+=n[o++]+n[o++];continue}if(n[o]===")"){if(s--,s===0){o++;break}}else if(n[o]==="("&&(s++,n[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));l+=n[o++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(t));if(!l)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:l}),t=o;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function mu(n,e){e===void 0&&(e={});for(var t=W2(n),r=e.prefixes,i=r===void 0?"./":r,o="[^".concat(an(e.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,u="",c=function(x){if(l<t.length&&t[l].type===x)return t[l++].value},p=function(x){var A=c(x);if(A!==void 0)return A;var T=t[l],X=T.type,$=T.index;throw new TypeError("Unexpected ".concat(X," at ").concat($,", expected ").concat(x))},m=function(){for(var x="",A;A=c("CHAR")||c("ESCAPED_CHAR");)x+=A;return x};l<t.length;){var h=c("CHAR"),f=c("NAME"),v=c("PATTERN");if(f||v){var g=h||"";i.indexOf(g)===-1&&(u+=g,g=""),u&&(a.push(u),u=""),a.push({name:f||s++,prefix:g,suffix:"",pattern:v||o,modifier:c("MODIFIER")||""});continue}var j=h||c("ESCAPED_CHAR");if(j){u+=j;continue}u&&(a.push(u),u="");var b=c("OPEN");if(b){var g=m(),_=c("NAME")||"",k=c("PATTERN")||"",C=m();p("CLOSE"),a.push({name:_||(k?s++:""),pattern:_&&!k?o:k,prefix:g,suffix:C,modifier:c("MODIFIER")||""});continue}p("END")}return a}function J2(n,e){return q2(mu(n,e),e)}function q2(n,e){e===void 0&&(e={});var t=Co(e),r=e.encode,i=r===void 0?function(l){return l}:r,o=e.validate,a=o===void 0?!0:o,s=n.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),t)});return function(l){for(var u="",c=0;c<n.length;c++){var p=n[c];if(typeof p=="string"){u+=p;continue}var m=l?l[p.name]:void 0,h=p.modifier==="?"||p.modifier==="*",f=p.modifier==="*"||p.modifier==="+";if(Array.isArray(m)){if(!f)throw new TypeError('Expected "'.concat(p.name,'" to not repeat, but got an array'));if(m.length===0){if(h)continue;throw new TypeError('Expected "'.concat(p.name,'" to not be empty'))}for(var v=0;v<m.length;v++){var g=i(m[v],p);if(a&&!s[c].test(g))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));u+=p.prefix+g+p.suffix}continue}if(typeof m=="string"||typeof m=="number"){var g=i(String(m),p);if(a&&!s[c].test(g))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));u+=p.prefix+g+p.suffix;continue}if(!h){var j=f?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(j))}}return u}}function K2(n,e){var t=[],r=$o(n,t,e);return G2(r,t,e)}function G2(n,e,t){t===void 0&&(t={});var r=t.decode,i=r===void 0?function(o){return o}:r;return function(o){var a=n.exec(o);if(!a)return!1;for(var s=a[0],l=a.index,u=Object.create(null),c=function(m){if(a[m]===void 0)return"continue";var h=e[m-1];h.modifier==="*"||h.modifier==="+"?u[h.name]=a[m].split(h.prefix+h.suffix).map(function(f){return i(f,h)}):u[h.name]=i(a[m],h)},p=1;p<a.length;p++)c(p);return{path:s,index:l,params:u}}}function an(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Co(n){return n&&n.sensitive?"":"i"}function Y2(n,e){if(!e)return n;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=t.exec(n.source);i;)e.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=t.exec(n.source);return n}function X2(n,e,t){var r=n.map(function(i){return $o(i,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),Co(t))}function Q2(n,e,t){return Z2(mu(n,t),e,t)}function Z2(n,e,t){t===void 0&&(t={});for(var r=t.strict,i=r===void 0?!1:r,o=t.start,a=o===void 0?!0:o,s=t.end,l=s===void 0?!0:s,u=t.encode,c=u===void 0?function($){return $}:u,p=t.delimiter,m=p===void 0?"/#?":p,h=t.endsWith,f=h===void 0?"":h,v="[".concat(an(f),"]|$"),g="[".concat(an(m),"]"),j=a?"^":"",b=0,_=n;b<_.length;b++){var k=_[b];if(typeof k=="string")j+=an(c(k));else{var C=an(c(k.prefix)),x=an(c(k.suffix));if(k.pattern)if(e&&e.push(k),C||x)if(k.modifier==="+"||k.modifier==="*"){var A=k.modifier==="*"?"?":"";j+="(?:".concat(C,"((?:").concat(k.pattern,")(?:").concat(x).concat(C,"(?:").concat(k.pattern,"))*)").concat(x,")").concat(A)}else j+="(?:".concat(C,"(").concat(k.pattern,")").concat(x,")").concat(k.modifier);else k.modifier==="+"||k.modifier==="*"?j+="((?:".concat(k.pattern,")").concat(k.modifier,")"):j+="(".concat(k.pattern,")").concat(k.modifier);else j+="(?:".concat(C).concat(x,")").concat(k.modifier)}}if(l)i||(j+="".concat(g,"?")),j+=t.endsWith?"(?=".concat(v,")"):"$";else{var T=n[n.length-1],X=typeof T=="string"?g.indexOf(T[T.length-1])>-1:T===void 0;i||(j+="(?:".concat(g,"(?=").concat(v,"))?")),X||(j+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(j,Co(t))}function $o(n,e,t){return n instanceof RegExp?Y2(n,e):Array.isArray(n)?X2(n,e,t):Q2(n,e,t)}hu.compress;hu.decompress;/**!
55
+ */(function(n){(function(e,t){n.exports?n.exports=t():e.numeral=t()})(He,function(){var e,t,r="2.0.6",i={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(u,c){this._input=u,this._value=c}return e=function(u){var c,p,m,h;if(e.isNumeral(u))c=u.value();else if(u===0||typeof u>"u")c=0;else if(u===null||t.isNaN(u))c=null;else if(typeof u=="string")if(s.zeroFormat&&u===s.zeroFormat)c=0;else if(s.nullFormat&&u===s.nullFormat||!u.replace(/[^0-9]+/g,"").length)c=null;else{for(p in i)if(h=typeof i[p].regexps.unformat=="function"?i[p].regexps.unformat():i[p].regexps.unformat,h&&u.match(h)){m=i[p].unformat;break}m=m||e._.stringToNumber,c=m(u)}else c=Number(u)||null;return new l(u,c)},e.version=r,e.isNumeral=function(u){return u instanceof l},e._=t={numberToFormat:function(u,c,p){var m=o[e.options.currentLocale],h=!1,f=!1,v=0,g="",j=1e12,w=1e9,_=1e6,S=1e3,C="",x=!1,A,T,X,$,E,P,z;if(u=u||0,T=Math.abs(u),e._.includes(c,"(")?(h=!0,c=c.replace(/[\(|\)]/g,"")):(e._.includes(c,"+")||e._.includes(c,"-"))&&(E=e._.includes(c,"+")?c.indexOf("+"):u<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),e._.includes(c,"a")&&(A=c.match(/a(k|m|b|t)?/),A=A?A[1]:!1,e._.includes(c," a")&&(g=" "),c=c.replace(new RegExp(g+"a[kmbt]?"),""),T>=j&&!A||A==="t"?(g+=m.abbreviations.trillion,u=u/j):T<j&&T>=w&&!A||A==="b"?(g+=m.abbreviations.billion,u=u/w):T<w&&T>=_&&!A||A==="m"?(g+=m.abbreviations.million,u=u/_):(T<_&&T>=S&&!A||A==="k")&&(g+=m.abbreviations.thousand,u=u/S)),e._.includes(c,"[.]")&&(f=!0,c=c.replace("[.]",".")),X=u.toString().split(".")[0],$=c.split(".")[1],P=c.indexOf(","),v=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,$?(e._.includes($,"[")?($=$.replace("]",""),$=$.split("["),C=e._.toFixed(u,$[0].length+$[1].length,p,$[1].length)):C=e._.toFixed(u,$.length,p),X=C.split(".")[0],e._.includes(C,".")?C=m.delimiters.decimal+C.split(".")[1]:C="",f&&Number(C.slice(1))===0&&(C="")):X=e._.toFixed(u,0,p),g&&!A&&Number(X)>=1e3&&g!==m.abbreviations.trillion)switch(X=String(Number(X)/1e3),g){case m.abbreviations.thousand:g=m.abbreviations.million;break;case m.abbreviations.million:g=m.abbreviations.billion;break;case m.abbreviations.billion:g=m.abbreviations.trillion;break}if(e._.includes(X,"-")&&(X=X.slice(1),x=!0),X.length<v)for(var K=v-X.length;K>0;K--)X="0"+X;return P>-1&&(X=X.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),c.indexOf(".")===0&&(X=""),z=X+C+(g||""),h?z=(h&&x?"(":"")+z+(h&&x?")":""):E>=0?z=E===0?(x?"-":"+")+z:z+(x?"-":"+"):x&&(z="-"+z),z},stringToNumber:function(u){var c=o[s.currentLocale],p=u,m={thousand:3,million:6,billion:9,trillion:12},h,f,v;if(s.zeroFormat&&u===s.zeroFormat)f=0;else if(s.nullFormat&&u===s.nullFormat||!u.replace(/[^0-9]+/g,"").length)f=null;else{f=1,c.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(h in m)if(v=new RegExp("[^a-zA-Z]"+c.abbreviations[h]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(v)){f*=Math.pow(10,m[h]);break}f*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),f*=Number(u)}return f},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,c){return u.indexOf(c)!==-1},insert:function(u,c,p){return u.slice(0,p)+c+u.slice(p)},reduce:function(u,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(u),m=p.length>>>0,h=0,f;if(arguments.length===3)f=arguments[2];else{for(;h<m&&!(h in p);)h++;if(h>=m)throw new TypeError("Reduce of empty array with no initial value");f=p[h++]}for(;h<m;h++)h in p&&(f=c(f,p[h],h,p));return f},multiplier:function(u){var c=u.toString().split(".");return c.length<2?1:Math.pow(10,c[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(c,p){var m=t.multiplier(p);return c>m?c:m},1)},toFixed:function(u,c,p,m){var h=u.toString().split("."),f=c-(m||0),v,g,j,w;return h.length===2?v=Math.min(Math.max(h[1].length,f),c):v=f,j=Math.pow(10,v),w=(p(u+"e+"+v)/j).toFixed(v),m>c-v&&(g=new RegExp("\\.?0{1,"+(m-(c-v))+"}$"),w=w.replace(g,"")),w}},e.options=s,e.formats=i,e.locales=o,e.locale=function(u){return u&&(s.currentLocale=u.toLowerCase()),s.currentLocale},e.localeData=function(u){if(!u)return o[s.currentLocale];if(u=u.toLowerCase(),!o[u])throw new Error("Unknown locale : "+u);return o[u]},e.reset=function(){for(var u in a)s[u]=a[u]},e.zeroFormat=function(u){s.zeroFormat=typeof u=="string"?u:null},e.nullFormat=function(u){s.nullFormat=typeof u=="string"?u:null},e.defaultFormat=function(u){s.defaultFormat=typeof u=="string"?u:"0.0"},e.register=function(u,c,p){if(c=c.toLowerCase(),this[u+"s"][c])throw new TypeError(c+" "+u+" already registered.");return this[u+"s"][c]=p,p},e.validate=function(u,c){var p,m,h,f,v,g,j,w;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{j=e.localeData(c)}catch{j=e.localeData(e.locale())}return h=j.currency.symbol,v=j.abbreviations,p=j.delimiters.decimal,j.delimiters.thousands==="."?m="\\.":m=j.delimiters.thousands,w=u.match(/^[^\d]+/),w!==null&&(u=u.substr(1),w[0]!==h)||(w=u.match(/[^\d]+$/),w!==null&&(u=u.slice(0,-1),w[0]!==v.thousand&&w[0]!==v.million&&w[0]!==v.billion&&w[0]!==v.trillion))?!1:(g=new RegExp(m+"{2}"),u.match(/[^\d.,]/g)?!1:(f=u.split(p),f.length>2?!1:f.length<2?!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g):f[0].length===1?!!f[0].match(/^\d+$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/):!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(u,c){var p=this._value,m=u||s.defaultFormat,h,f,v;if(c=c||Math.round,p===0&&s.zeroFormat!==null)f=s.zeroFormat;else if(p===null&&s.nullFormat!==null)f=s.nullFormat;else{for(h in i)if(m.match(i[h].regexps.format)){v=i[h].format;break}v=v||e._.numberToFormat,f=v(p,m,c)}return f},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var c=t.correctionFactor.call(null,this._value,u);function p(m,h,f,v){return m+Math.round(c*h)}return this._value=t.reduce([this._value,u],p,0)/c,this},subtract:function(u){var c=t.correctionFactor.call(null,this._value,u);function p(m,h,f,v){return m-Math.round(c*h)}return this._value=t.reduce([u],p,Math.round(this._value*c))/c,this},multiply:function(u){function c(p,m,h,f){var v=t.correctionFactor(p,m);return Math.round(p*v)*Math.round(m*v)/Math.round(v*v)}return this._value=t.reduce([this._value,u],c,1),this},divide:function(u){function c(p,m,h,f){var v=t.correctionFactor(p,m);return Math.round(p*v)/Math.round(m*v)}return this._value=t.reduce([this._value,u],c),this},difference:function(u){return Math.abs(e(this._value).subtract(u).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var c=u%10;return~~(u%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(u,c,p){var m=e._.includes(c," BPS")?" ":"",h;return u=u*1e4,c=c.replace(/\s?BPS/,""),h=e._.numberToFormat(u,c,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"BPS"),h=h.join("")):h=h+m+"BPS",h},unformat:function(u){return+(e._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=u.suffixes.concat(c.suffixes.filter(function(h){return u.suffixes.indexOf(h)<0})),m=p.join("|");m="("+m.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(m)},format:function(h,f,v){var g,j=e._.includes(f,"ib")?c:u,w=e._.includes(f," b")||e._.includes(f," ib")?" ":"",_,S,C;for(f=f.replace(/\s?i?b/,""),_=0;_<=j.suffixes.length;_++)if(S=Math.pow(j.base,_),C=Math.pow(j.base,_+1),h===null||h===0||h>=S&&h<C){w+=j.suffixes[_],S>0&&(h=h/S);break}return g=e._.numberToFormat(h,f,v),g+w},unformat:function(h){var f=e._.stringToNumber(h),v,g;if(f){for(v=u.suffixes.length-1;v>=0;v--){if(e._.includes(h,u.suffixes[v])){g=Math.pow(u.base,v);break}if(e._.includes(h,c.suffixes[v])){g=Math.pow(c.base,v);break}}f*=g||1}return f}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(u,c,p){var m=e.locales[e.options.currentLocale],h={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},f,v,g;for(c=c.replace(/\s?\$\s?/,""),f=e._.numberToFormat(u,c,p),u>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):u<0&&!e._.includes(h.before,"-")&&!e._.includes(h.before,"(")&&(h.before="-"+h.before),g=0;g<h.before.length;g++)switch(v=h.before[g],v){case"$":f=e._.insert(f,m.currency.symbol,g);break;case" ":f=e._.insert(f," ",g+m.currency.symbol.length-1);break}for(g=h.after.length-1;g>=0;g--)switch(v=h.after[g],v){case"$":f=g===h.after.length-1?f+m.currency.symbol:e._.insert(f,m.currency.symbol,-(h.after.length-(1+g)));break;case" ":f=g===h.after.length-1?f+" ":e._.insert(f," ",-(h.after.length-(1+g)+m.currency.symbol.length-1));break}return f}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,c,p){var m,h=typeof u=="number"&&!e._.isNaN(u)?u.toExponential():"0e+0",f=h.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),m=e._.numberToFormat(Number(f[0]),c,p),m+"e"+f[1]},unformat:function(u){var c=e._.includes(u,"e+")?u.split("e+"):u.split("e-"),p=Number(c[0]),m=Number(c[1]);m=e._.includes(u,"e-")?m*=-1:m;function h(f,v,g,j){var w=e._.correctionFactor(f,v),_=f*w*(v*w)/(w*w);return _}return e._.reduce([p,Math.pow(10,m)],h,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,c,p){var m=e.locales[e.options.currentLocale],h,f=e._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),f+=m.ordinal(u),h=e._.numberToFormat(u,c,p),h+f}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,c,p){var m=e._.includes(c," %")?" ":"",h;return e.options.scalePercentBy100&&(u=u*100),c=c.replace(/\s?\%/,""),h=e._.numberToFormat(u,c,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"%"),h=h.join("")):h=h+m+"%",h},unformat:function(u){var c=e._.stringToNumber(u);return e.options.scalePercentBy100?c*.01:c}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,c,p){var m=Math.floor(u/60/60),h=Math.floor((u-m*60*60)/60),f=Math.round(u-m*60*60-h*60);return m+":"+(h<10?"0"+h:h)+":"+(f<10?"0"+f:f)},unformat:function(u){var c=u.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),e})})(au);var D2=au.exports;const I2=_n(D2);function R2(n,e="0.00"){return I2(n).format(e)}var su={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",p="month",m="quarter",h="year",f="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var L=["th","st","nd","rd"],q=K%100;return"["+K+(L[(q-20)%10]||L[q]||L[0])+"]"}},_=function(K,L,q){var Z=String(K);return!Z||Z.length>=L?K:""+Array(L+1-Z.length).join(q)+K},S={s:_,z:function(K){var L=-K.utcOffset(),q=Math.abs(L),Z=Math.floor(q/60),Q=q%60;return(L<=0?"+":"-")+_(Z,2,"0")+":"+_(Q,2,"0")},m:function K(L,q){if(L.date()<q.date())return-K(q,L);var Z=12*(q.year()-L.year())+(q.month()-L.month()),Q=L.clone().add(Z,p),re=q-Q<0,ie=L.clone().add(Z+(re?-1:1),p);return+(-(Z+(q-Q)/(re?Q-ie:ie-Q))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:p,y:h,w:c,d:u,D:f,h:l,m:s,s:a,ms:o,Q:m}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},C="en",x={};x[C]=w;var A="$isDayjsObject",T=function(K){return K instanceof P||!(!K||!K[A])},X=function K(L,q,Z){var Q;if(!L)return C;if(typeof L=="string"){var re=L.toLowerCase();x[re]&&(Q=re),q&&(x[re]=q,Q=re);var ie=L.split("-");if(!Q&&ie.length>1)return K(ie[0])}else{var F=L.name;x[F]=L,Q=F}return!Z&&Q&&(C=Q),Q||!Z&&C},$=function(K,L){if(T(K))return K.clone();var q=typeof L=="object"?L:{};return q.date=K,q.args=arguments,new P(q)},E=S;E.l=X,E.i=T,E.w=function(K,L){return $(K,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var P=function(){function K(q){this.$L=X(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[A]=!0}var L=K.prototype;return L.parse=function(q){this.$d=function(Z){var Q=Z.date,re=Z.utc;if(Q===null)return new Date(NaN);if(E.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var ie=Q.match(g);if(ie){var F=ie[2]-1||0,U=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],F,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,U)):new Date(ie[1],F,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,U)}}return new Date(Q)}(q),this.init()},L.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},L.$utils=function(){return E},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(q,Z){var Q=$(q);return this.startOf(Z)<=Q&&Q<=this.endOf(Z)},L.isAfter=function(q,Z){return $(q)<this.startOf(Z)},L.isBefore=function(q,Z){return this.endOf(Z)<$(q)},L.$g=function(q,Z,Q){return E.u(q)?this[Z]:this.set(Q,q)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(q,Z){var Q=this,re=!!E.u(Z)||Z,ie=E.p(q),F=function(Ft,Ue){var Vt=E.w(Q.$u?Date.UTC(Q.$y,Ue,Ft):new Date(Q.$y,Ue,Ft),Q);return re?Vt:Vt.endOf(u)},U=function(Ft,Ue){return E.w(Q.toDate()[Ft].apply(Q.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(Ue)),Q)},J=this.$W,G=this.$M,Ye=this.$D,en="set"+(this.$u?"UTC":"");switch(ie){case h:return re?F(1,0):F(31,11);case p:return re?F(1,G):F(0,G+1);case c:var Nt=this.$locale().weekStart||0,Vn=(J<Nt?J+7:J)-Nt;return F(re?Ye-Vn:Ye+(6-Vn),G);case u:case f:return U(en+"Hours",0);case l:return U(en+"Minutes",1);case s:return U(en+"Seconds",2);case a:return U(en+"Milliseconds",3);default:return this.clone()}},L.endOf=function(q){return this.startOf(q,!1)},L.$set=function(q,Z){var Q,re=E.p(q),ie="set"+(this.$u?"UTC":""),F=(Q={},Q[u]=ie+"Date",Q[f]=ie+"Date",Q[p]=ie+"Month",Q[h]=ie+"FullYear",Q[l]=ie+"Hours",Q[s]=ie+"Minutes",Q[a]=ie+"Seconds",Q[o]=ie+"Milliseconds",Q)[re],U=re===u?this.$D+(Z-this.$W):Z;if(re===p||re===h){var J=this.clone().set(f,1);J.$d[F](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else F&&this.$d[F](U);return this.init(),this},L.set=function(q,Z){return this.clone().$set(q,Z)},L.get=function(q){return this[E.p(q)]()},L.add=function(q,Z){var Q,re=this;q=Number(q);var ie=E.p(Z),F=function(G){var Ye=$(re);return E.w(Ye.date(Ye.date()+Math.round(G*q)),re)};if(ie===p)return this.set(p,this.$M+q);if(ie===h)return this.set(h,this.$y+q);if(ie===u)return F(1);if(ie===c)return F(7);var U=(Q={},Q[s]=r,Q[l]=i,Q[a]=t,Q)[ie]||1,J=this.$d.getTime()+q*U;return E.w(J,this)},L.subtract=function(q,Z){return this.add(-1*q,Z)},L.format=function(q){var Z=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||v;var re=q||"YYYY-MM-DDTHH:mm:ssZ",ie=E.z(this),F=this.$H,U=this.$m,J=this.$M,G=Q.weekdays,Ye=Q.months,en=Q.meridiem,Nt=function(Ue,Vt,Cn,tr){return Ue&&(Ue[Vt]||Ue(Z,re))||Cn[Vt].slice(0,tr)},Vn=function(Ue){return E.s(F%12||12,Ue,"0")},Ft=en||function(Ue,Vt,Cn){var tr=Ue<12?"AM":"PM";return Cn?tr.toLowerCase():tr};return re.replace(j,function(Ue,Vt){return Vt||function(Cn){switch(Cn){case"YY":return String(Z.$y).slice(-2);case"YYYY":return E.s(Z.$y,4,"0");case"M":return J+1;case"MM":return E.s(J+1,2,"0");case"MMM":return Nt(Q.monthsShort,J,Ye,3);case"MMMM":return Nt(Ye,J);case"D":return Z.$D;case"DD":return E.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return Nt(Q.weekdaysMin,Z.$W,G,2);case"ddd":return Nt(Q.weekdaysShort,Z.$W,G,3);case"dddd":return G[Z.$W];case"H":return String(F);case"HH":return E.s(F,2,"0");case"h":return Vn(1);case"hh":return Vn(2);case"a":return Ft(F,U,!0);case"A":return Ft(F,U,!1);case"m":return String(U);case"mm":return E.s(U,2,"0");case"s":return String(Z.$s);case"ss":return E.s(Z.$s,2,"0");case"SSS":return E.s(Z.$ms,3,"0");case"Z":return ie}return null}(Ue)||ie.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(q,Z,Q){var re,ie=this,F=E.p(Z),U=$(q),J=(U.utcOffset()-this.utcOffset())*r,G=this-U,Ye=function(){return E.m(ie,U)};switch(F){case h:re=Ye()/12;break;case p:re=Ye();break;case m:re=Ye()/3;break;case c:re=(G-J)/6048e5;break;case u:re=(G-J)/864e5;break;case l:re=G/i;break;case s:re=G/r;break;case a:re=G/t;break;default:re=G}return Q?re:E.a(re)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return x[this.$L]},L.locale=function(q,Z){if(!q)return this.$L;var Q=this.clone(),re=X(q,Z,!0);return re&&(Q.$L=re),Q},L.clone=function(){return E.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},K}(),z=P.prototype;return $.prototype=z,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",p],["$y",h],["$D",f]].forEach(function(K){z[K[1]]=function(L){return this.$g(L,K[0],K[1])}}),$.extend=function(K,L){return K.$i||(K(L,P,$),K.$i=!0),$},$.locale=X,$.isDayjs=T,$.unix=function(K){return $(1e3*K)},$.en=x[C],$.Ls=x,$.p={},$})})(su);var lu=su.exports;const M2=_n(lu);var P2={exports:{}};(function(n,e){(function(t,r){n.exports=r(lu)})(He,function(t){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(t),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(P2),M2.locale("zh-cn");const N2=n=>Object.prototype.toString.call(n),oi=n=>N2(n).slice(8,-1),uu=()=>+Date.now();function ut(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function F2(n=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)});return n?e.toLowerCase():e.replace(/-/gi,"")}async function cu(n=0){return new Promise(e=>{setTimeout(e,n)})}function du(n,e){return n.reduce((t,r)=>{const i=r[e];return t.set(i,r),t},new Map)}function H2(n){return[...n.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}function pu(n,e){if(e){const t=du(n,e);return Array.from(t.values())}else return Array.from(new Set(n))}function Vo(n){return n?[].concat(n):[]}function ai(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)||(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,o])=>{r(i,o)||(t[i]=o)})}return t}function L2(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)&&(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,o])=>{r(i,o)&&(t[i]=o)})}return t}var zi={exports:{}};zi.exports,function(n){var e=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function a(l,u){if(!o[l]){o[l]={};for(var c=0;c<l.length;c++)o[l][l.charAt(c)]=c}return o[l][u]}var s={compressToBase64:function(l){if(l==null)return"";var u=s._compress(l,6,function(c){return r.charAt(c)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(u){return a(r,l.charAt(u))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(u){return t(u+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(u){return l.charCodeAt(u)-32})},compressToUint8Array:function(l){for(var u=s.compress(l),c=new Uint8Array(u.length*2),p=0,m=u.length;p<m;p++){var h=u.charCodeAt(p);c[p*2]=h>>>8,c[p*2+1]=h%256}return c},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var u=new Array(l.length/2),c=0,p=u.length;c<p;c++)u[c]=l[c*2]*256+l[c*2+1];var m=[];return u.forEach(function(h){m.push(t(h))}),s.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(u){return a(i,l.charAt(u))}))},compress:function(l){return s._compress(l,16,function(u){return t(u)})},_compress:function(l,u,c){if(l==null)return"";var p,m,h={},f={},v="",g="",j="",w=2,_=3,S=2,C=[],x=0,A=0,T;for(T=0;T<l.length;T+=1)if(v=l.charAt(T),Object.prototype.hasOwnProperty.call(h,v)||(h[v]=_++,f[v]=!0),g=j+v,Object.prototype.hasOwnProperty.call(h,g))j=g;else{if(Object.prototype.hasOwnProperty.call(f,j)){if(j.charCodeAt(0)<256){for(p=0;p<S;p++)x=x<<1,A==u-1?(A=0,C.push(c(x)),x=0):A++;for(m=j.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}else{for(m=1,p=0;p<S;p++)x=x<<1|m,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=0;for(m=j.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}w--,w==0&&(w=Math.pow(2,S),S++),delete f[j]}else for(m=h[j],p=0;p<S;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1;w--,w==0&&(w=Math.pow(2,S),S++),h[g]=_++,j=String(v)}if(j!==""){if(Object.prototype.hasOwnProperty.call(f,j)){if(j.charCodeAt(0)<256){for(p=0;p<S;p++)x=x<<1,A==u-1?(A=0,C.push(c(x)),x=0):A++;for(m=j.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}else{for(m=1,p=0;p<S;p++)x=x<<1|m,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=0;for(m=j.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1}w--,w==0&&(w=Math.pow(2,S),S++),delete f[j]}else for(m=h[j],p=0;p<S;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1;w--,w==0&&(w=Math.pow(2,S),S++)}for(m=2,p=0;p<S;p++)x=x<<1|m&1,A==u-1?(A=0,C.push(c(x)),x=0):A++,m=m>>1;for(;;)if(x=x<<1,A==u-1){C.push(c(x));break}else A++;return C.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(u){return l.charCodeAt(u)})},_decompress:function(l,u,c){var p=[],m=4,h=4,f=3,v="",g=[],j,w,_,S,C,x,A,T={val:c(0),position:u,index:1};for(j=0;j<3;j+=1)p[j]=j;for(_=0,C=Math.pow(2,2),x=1;x!=C;)S=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(S>0?1:0)*x,x<<=1;switch(_){case 0:for(_=0,C=Math.pow(2,8),x=1;x!=C;)S=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(S>0?1:0)*x,x<<=1;A=t(_);break;case 1:for(_=0,C=Math.pow(2,16),x=1;x!=C;)S=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(S>0?1:0)*x,x<<=1;A=t(_);break;case 2:return""}for(p[3]=A,w=A,g.push(A);;){if(T.index>l)return"";for(_=0,C=Math.pow(2,f),x=1;x!=C;)S=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(S>0?1:0)*x,x<<=1;switch(A=_){case 0:for(_=0,C=Math.pow(2,8),x=1;x!=C;)S=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(S>0?1:0)*x,x<<=1;p[h++]=t(_),A=h-1,m--;break;case 1:for(_=0,C=Math.pow(2,16),x=1;x!=C;)S=T.val&T.position,T.position>>=1,T.position==0&&(T.position=u,T.val=c(T.index++)),_|=(S>0?1:0)*x,x<<=1;p[h++]=t(_),A=h-1,m--;break;case 2:return g.join("")}if(m==0&&(m=Math.pow(2,f),f++),p[A])v=p[A];else if(A===h)v=w+w.charAt(0);else return null;g.push(v),p[h++]=w+v.charAt(0),m--,w=v,m==0&&(m=Math.pow(2,f),f++)}}};return s}();n!=null?n.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(zi);var hu=zi.exports;function U2(n){return{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(i){i(t)}),(r=n.get("*"))&&r.slice().map(function(i){i(e,t)})}}}function W2(n){for(var e=[],t=0;t<n.length;){var r=n[t];if(r==="*"||r==="+"||r==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(r==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(r==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(r==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(r===":"){for(var i="",o=t+1;o<n.length;){var a=n.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=n[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:i}),t=o;continue}if(r==="("){var s=1,l="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<n.length;){if(n[o]==="\\"){l+=n[o++]+n[o++];continue}if(n[o]===")"){if(s--,s===0){o++;break}}else if(n[o]==="("&&(s++,n[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));l+=n[o++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(t));if(!l)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:l}),t=o;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function mu(n,e){e===void 0&&(e={});for(var t=W2(n),r=e.prefixes,i=r===void 0?"./":r,o="[^".concat(an(e.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,u="",c=function(x){if(l<t.length&&t[l].type===x)return t[l++].value},p=function(x){var A=c(x);if(A!==void 0)return A;var T=t[l],X=T.type,$=T.index;throw new TypeError("Unexpected ".concat(X," at ").concat($,", expected ").concat(x))},m=function(){for(var x="",A;A=c("CHAR")||c("ESCAPED_CHAR");)x+=A;return x};l<t.length;){var h=c("CHAR"),f=c("NAME"),v=c("PATTERN");if(f||v){var g=h||"";i.indexOf(g)===-1&&(u+=g,g=""),u&&(a.push(u),u=""),a.push({name:f||s++,prefix:g,suffix:"",pattern:v||o,modifier:c("MODIFIER")||""});continue}var j=h||c("ESCAPED_CHAR");if(j){u+=j;continue}u&&(a.push(u),u="");var w=c("OPEN");if(w){var g=m(),_=c("NAME")||"",S=c("PATTERN")||"",C=m();p("CLOSE"),a.push({name:_||(S?s++:""),pattern:_&&!S?o:S,prefix:g,suffix:C,modifier:c("MODIFIER")||""});continue}p("END")}return a}function J2(n,e){return q2(mu(n,e),e)}function q2(n,e){e===void 0&&(e={});var t=Co(e),r=e.encode,i=r===void 0?function(l){return l}:r,o=e.validate,a=o===void 0?!0:o,s=n.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),t)});return function(l){for(var u="",c=0;c<n.length;c++){var p=n[c];if(typeof p=="string"){u+=p;continue}var m=l?l[p.name]:void 0,h=p.modifier==="?"||p.modifier==="*",f=p.modifier==="*"||p.modifier==="+";if(Array.isArray(m)){if(!f)throw new TypeError('Expected "'.concat(p.name,'" to not repeat, but got an array'));if(m.length===0){if(h)continue;throw new TypeError('Expected "'.concat(p.name,'" to not be empty'))}for(var v=0;v<m.length;v++){var g=i(m[v],p);if(a&&!s[c].test(g))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));u+=p.prefix+g+p.suffix}continue}if(typeof m=="string"||typeof m=="number"){var g=i(String(m),p);if(a&&!s[c].test(g))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));u+=p.prefix+g+p.suffix;continue}if(!h){var j=f?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(j))}}return u}}function K2(n,e){var t=[],r=$o(n,t,e);return G2(r,t,e)}function G2(n,e,t){t===void 0&&(t={});var r=t.decode,i=r===void 0?function(o){return o}:r;return function(o){var a=n.exec(o);if(!a)return!1;for(var s=a[0],l=a.index,u=Object.create(null),c=function(m){if(a[m]===void 0)return"continue";var h=e[m-1];h.modifier==="*"||h.modifier==="+"?u[h.name]=a[m].split(h.prefix+h.suffix).map(function(f){return i(f,h)}):u[h.name]=i(a[m],h)},p=1;p<a.length;p++)c(p);return{path:s,index:l,params:u}}}function an(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Co(n){return n&&n.sensitive?"":"i"}function Y2(n,e){if(!e)return n;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=t.exec(n.source);i;)e.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=t.exec(n.source);return n}function X2(n,e,t){var r=n.map(function(i){return $o(i,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),Co(t))}function Q2(n,e,t){return Z2(mu(n,t),e,t)}function Z2(n,e,t){t===void 0&&(t={});for(var r=t.strict,i=r===void 0?!1:r,o=t.start,a=o===void 0?!0:o,s=t.end,l=s===void 0?!0:s,u=t.encode,c=u===void 0?function($){return $}:u,p=t.delimiter,m=p===void 0?"/#?":p,h=t.endsWith,f=h===void 0?"":h,v="[".concat(an(f),"]|$"),g="[".concat(an(m),"]"),j=a?"^":"",w=0,_=n;w<_.length;w++){var S=_[w];if(typeof S=="string")j+=an(c(S));else{var C=an(c(S.prefix)),x=an(c(S.suffix));if(S.pattern)if(e&&e.push(S),C||x)if(S.modifier==="+"||S.modifier==="*"){var A=S.modifier==="*"?"?":"";j+="(?:".concat(C,"((?:").concat(S.pattern,")(?:").concat(x).concat(C,"(?:").concat(S.pattern,"))*)").concat(x,")").concat(A)}else j+="(?:".concat(C,"(").concat(S.pattern,")").concat(x,")").concat(S.modifier);else S.modifier==="+"||S.modifier==="*"?j+="((?:".concat(S.pattern,")").concat(S.modifier,")"):j+="(".concat(S.pattern,")").concat(S.modifier);else j+="(?:".concat(C).concat(x,")").concat(S.modifier)}}if(l)i||(j+="".concat(g,"?")),j+=t.endsWith?"(?=".concat(v,")"):"$";else{var T=n[n.length-1],X=typeof T=="string"?g.indexOf(T[T.length-1])>-1:T===void 0;i||(j+="(?:".concat(g,"(?=").concat(v,"))?")),X||(j+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(j,Co(t))}function $o(n,e,t){return n instanceof RegExp?Y2(n,e):Array.isArray(n)?X2(n,e,t):Q2(n,e,t)}hu.compress;hu.decompress;/**!
56
56
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
57
57
  * @name @vtj/core
58
58
  * @author CHC chenhuachun1549@dingtalk.com
59
- * @version 0.7.32
59
+ * @version 0.7.34
60
60
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
61
61
  */const Di="BuiltIn",fu="VueMaterial",vu="VueRouterMaterial",eg={vue:"Vue","vue-router":"VueRouter"},tg={[fu]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[vu]:["RouterView","RouterLink"]};let Eo=class{listeners=[];isReady=!1;triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}},si=class gu{constructor(e,t,r){this.name=e,this.value=t,this.defaultValue=r,this.setValue(t)}isUnset=!1;setValue(e){this.value=e,this.isUnset=this.value===this.defaultValue}getValue(){return this.value??this.defaultValue}static toDsl(e={}){return Object.entries(e).reduce((t,[r,i])=>(i.isUnset||(t[r]=i.getValue()),t),{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new gu(r,i),t),{})}},li=class yu{constructor(e){this.schema=e;const{name:t,handler:r}=this.schema;this.name=t,this.handler=r,this.update(e)}name;handler;modifiers={};update(e){Object.assign(this.schema,e);const{handler:t,modifiers:r={}}=this.schema;this.handler=t,this.modifiers=r}static toDsl(e){return Object.entries(e).reduce((t,[r,i])=>{const{handler:o,modifiers:a}=i;return t[r]={name:r,handler:o,modifiers:a},t},{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new yu(i),t),{})}},sn=class bu{constructor(e){this.schema=e,this.id=e.id||ut(),this.update(e)}id;name="";arg;modifiers;value;iterator;update(e){Object.assign(this.schema,e);const{name:t,arg:r,modifiers:i,value:o,iterator:a}=this.schema;this.name=t,this.arg=r,this.modifiers=i,this.value=o,this.iterator=a}static parse(e=[]){return e.map(t=>new bu(t))}static toDsl(e=[]){return e.map(t=>{const{name:r,arg:i,modifiers:o,value:a,iterator:s,id:l}=t;return{id:l,name:r,arg:i,modifiers:o,value:a,iterator:s}})}};const Se="EVENT_NODE_CHANGE";let Ar=class yr{constructor(e,t=null){this.parent=t;const{id:r=ut(),name:i,from:o=""}=e;this.id=r,this.name=i,this.from=o,this.update(e,!0),yr.nodes[this.id]=this}__VTJ_NODE__=!0;locked=!1;static nodes={};id;name;from;invisible=!1;children="";slot;props={};events={};directives=[];disposed=!1;update(e,t=!1){const{invisible:r=!1,locked:i=!1,children:o=[],slot:a,props:s={},events:l={},directives:u=[]}=e;this.invisible=r,this.locked=i,this.setChildren(o,!0),this.setSlot(a,!0),this.props=si.parse(s),this.events=li.parse(l),this.directives=sn.parse(u),t||W.emit(Se,this)}setChildren(e="",t=!1){Array.isArray(e)?this.children=e.map(r=>new yr(r,this)):this.children=e,t||W.emit(Se,this)}setSlot(e,t=!1){this.slot=typeof e=="string"?{name:e,params:[]}:e,t||W.emit(Se,this)}setProp(e,t,r,i=!1){const o=this.props[e];o?o.setValue(t):this.props[e]=new si(e,t,r),i||W.emit(Se,this)}removeProp(e,t=!1){delete this.props[e],t||W.emit(Se,this)}getPropValue(e){const t=this.props[e];if(t)return t.getValue()}setEvent(e,t=!1){const r=this.events[e.name];r?r.update(e):this.events[e.name]=new li(e),t||W.emit(Se,this)}removeEvent(e,t=!1){delete this.events[e],t||W.emit(Se,this)}setDirective(e,t=!1){const r=this.directives.findIndex(i=>i.id===e.id);r>=0?this.directives.splice(r,1,new sn(e)):this.directives.push(new sn(e)),t||W.emit(Se,this)}removeDirective(e,t=!1){const r=this.directives.findIndex(i=>i===e||i.id===e.id);r>=0&&this.directives.splice(r,1),t||W.emit(Se,this)}removeChild(e,t=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const o=r.findIndex(a=>a===e);e.parent=null,r.splice(o,1),t||W.emit(Se,this)}appendChild(e,t=!1){const{children:r,disposed:i}=this;i||(e.parent=this,Array.isArray(r)?r.push(e):this.children=[e],t||W.emit(Se,this))}insertAfter(e,t=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){e.parent=this.parent;const i=r.indexOf(this);r.splice(i+1,0,e),t||W.emit(Se,this.parent)}}insertBefore(e,t=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){e.parent=this.parent;const i=r.indexOf(this);r.splice(i,0,e),t||W.emit(Se,this.parent)}}movePrev(e=!1){const t=this.parent;if(!t)return;const r=t.children;if(Array.isArray(r)){const i=r.indexOf(this);i>0&&(r.splice(i,1),r.splice(i-1,0,this),e||W.emit(Se,t))}}moveNext(e=!1){const t=this.parent;if(!t)return;const r=t.children;if(Array.isArray(r)){const i=r.indexOf(this);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,this),e||W.emit(Se,t))}}toDsl(){const{id:e,name:t,from:r,invisible:i,locked:o,slot:a,children:s,props:l,directives:u,events:c}=this,p=Array.isArray(s)?s.map(m=>m.toDsl()):s;return{id:e,name:t,from:r,invisible:i,locked:o,slot:a,children:p,props:si.toDsl(l),directives:sn.toDsl(u),events:li.toDsl(c)}}dispose(e=!1){const{children:t,disposed:r}=this;r||(Array.isArray(t)&&t.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,e):e||W.emit(Se,this),this.parent=null,this.disposed=!0,delete yr.nodes[this.id])}lock(e=!1){if(this.locked=!0,Array.isArray(this.children))for(const t of this.children)t.lock(!0);e||W.emit(Se,this)}unlock(e=!1){if(this.locked=!1,Array.isArray(this.children))for(const t of this.children)t.unlock(!0);e||W.emit(Se,this)}setVisible(e,t=!1){if(this.invisible=!e,Array.isArray(this.children))for(const r of this.children)r.setVisible(e,!0);t||W.emit(Se,this)}isChild(e){let t=!1;if(Array.isArray(this.children)){for(const r of this.children)if(e===r||e.id===r.id){t=!0;break}else if(t=r.isChild(e),t)break}return t}};const ge="EVENT_BLOCK_CHANGE";let dn=class Ii{__VTJ_BLOCK__=!0;id;name="";inject=[];state={};lifeCycles={};methods={};computed={};watch=[];css="";props=[];emits=[];slots=[];dataSources={};nodes=[];locked=!1;disposed=!1;static normalAttrs=["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources"];constructor(e){const{id:t}=e;this.id=t||ut(),this.update(e,!0)}update(e,t=!1){for(const i of Ii.normalAttrs){const o=e[i];o&&(this[i]=o)}const{nodes:r=[]}=e;r.length&&(this.nodes=r.map(i=>new Ar(i))),t||W.emit(ge,this)}toDsl(e){const{__VTJ_BLOCK__:t,id:r,nodes:i}=this;return{...Ii.normalAttrs.reduce((o,a)=>(o[a]=this[a],o),{}),__VTJ_BLOCK__:t,__VERSION__:e||uu().toString(),id:r,nodes:i.map(o=>o.toDsl())}}dispose(){this.nodes.map(e=>e.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(e,t,r,i=!1){this[e][t]=r,i||W.emit(ge,this)}removeFunction(e,t,r=!1){delete this[e][t],r||W.emit(ge,this)}setState(e,t,r=!1){this.state[e]=t,r||W.emit(ge,this)}removeState(e,t=!1){delete this.state[e],t||W.emit(ge,this)}setCss(e,t=!1){this.css=e,t||W.emit(ge,this)}setWatch(e,t=!1){e.id=e.id||ut();const r=this.watch.findIndex(i=>i.id&&i.id===e.id||i===e);r>-1?this.watch.splice(r,1,e):this.watch.push(e),t||W.emit(ge,this)}removeWatch(e,t=!1){const r=this.watch.findIndex(i=>i.id&&i.id===e.id||i===e);r>-1&&(this.watch.splice(r,1),t||W.emit(ge,this))}setProp(e,t=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===e.name:i.name===e.name);r>-1?this.props.splice(r,1,e):this.props.push(e),t||W.emit(ge,this)}removeProp(e,t=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===e.name:i.name===e.name);r>-1&&(this.props.splice(r,1),t||W.emit(ge,this))}setEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1?this.emits.splice(r,1,e):this.emits.push(e),t||W.emit(ge,this)}removeEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1&&(this.emits.splice(r,1),t||W.emit(ge,this))}setSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1?this.slots.splice(r,1,e):this.slots.push(e),t||W.emit(ge,this)}removeSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1&&(this.slots.splice(r,1),t||W.emit(ge,this))}setInject(e,t=!1){const r=this.inject.findIndex(i=>i.name===e.name);r>-1?this.inject.splice(r,1,e):this.inject.push(e),t||W.emit(ge,this)}removeInject(e,t=!1){const r=this.inject.findIndex(i=>i.name===e.name);r>-1&&(this.inject.splice(r,1),t||W.emit(ge,this))}setDataSource(e,t=!1){this.dataSources[e.name]=e,t||W.emit(ge,this)}removeDataSource(e,t=!1){delete this.dataSources[e],t||W.emit(ge,this)}insertAfter(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i+1,0,e),r||W.emit(ge,this)}insertBefore(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i,0,e),r||W.emit(ge,this)}appendNode(e,t=!1){e.parent=null,this.nodes.push(e),t||W.emit(ge,this)}addNode(e,t,r="inner",i=!1){t?["left","top"].includes(r)?t.parent?t.insertAfter(e,i):this.insertBefore(e,t,i):["right","bottom"].includes(r)?t.parent?t.insertAfter(e,i):this.insertAfter(e,t,i):t.appendChild(e,i):this.appendNode(e,i)}__removeNode(e,t=!1){const r=this.nodes.findIndex(i=>i.id===e.id);r>-1&&(this.nodes.splice(r,1),t||W.emit(ge,this))}removeNode(e,t=!1){e.parent?e.dispose(t):(e.dispose(!0),this.__removeNode(e,t))}move(e,t,r="inner",i=!1){e.parent?e.parent.removeChild(e,!0):this.__removeNode(e,!0),this.addNode(e,t,r,i)}movePrev(e,t=!1){if(e.parent)e.movePrev(t);else{const r=this.nodes,i=r.indexOf(e);i>0&&(r.splice(i,1),r.splice(i-1,0,e),t||W.emit(ge,this))}}moveNext(e,t=!1){if(e.parent)e.moveNext(t);else{const r=this.nodes,i=r.indexOf(e);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,e),t||W.emit(ge,this))}}cloneNode(e,t=!1){const r=_u(e.toDsl()),i=new Ar(r);return this.addNode(i,e,"bottom",t),i}lock(e=!1){this.locked=!0;for(const t of this.nodes)t.lock(!0);e||W.emit(ge,this)}unlock(e=!1){this.locked=!1;for(const t of this.nodes)t.unlock(!0);e||W.emit(ge,this)}isChild(e){let t=!1;for(const r of this.nodes)if(e===r||e.id===r.id){t=!0;break}else if(t=r.isChild(e),t)break;return t}};const Ne="EVENT_PROJECT_CHANGE",Un="EVENT_PROJECT_ACTIVED",Ri="EVENT_PROJECT_DEPS_CHANGE",On="EVENT_PROJECT_PAGES_CHANGE",br="EVENT_PROJECT_BLOCKS_CHANGE",os="EVENT_PROJECT_APIS_CHANGE",wu="EVENT_PROJECT_PUBLISH",xu="EVENT_PROJECT_FILE_PUBLISH";let ng=class Mi{id="";name="";description="";homepage="";dependencies=[];pages=[];blocks=[];apis=[];currentFile=null;config={};static attrs=["name","homepage","description","dependencies","pages","blocks","apis","config"];constructor(e){const{id:t}=e;this.id=t||ut(),this.update(e,!0)}update(e,t=!1){for(const r of Mi.attrs){const i=e[r];i&&(this[r]=i)}t||W.emit(Ne,{model:this,type:"update",data:e})}isPageFile(e){return e.type==="page"}toDsl(e){const{id:t}=this,r=Mi.attrs.reduce((i,o)=>(i[o]=this[o],i),{});return r.pages&&(r.pages=r.pages.map(i=>(delete i.dsl,i))),r.blocks&&(r.blocks=r.blocks.map(i=>(delete i.dsl,i))),{__VTJ_PROJECT__:!0,__VERSION__:e||uu().toString(),id:t,...r}}active(e,t=!1){this.currentFile=e,t||W.emit(Un,{model:this,type:"update",data:e})}deactivate(e=!1){this.currentFile=null,e||W.emit(Un,{model:this,type:"update",data:null})}setDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(a=>a.package===e.package);let o;if(i>-1?(o="update",r.splice(i,1,{...r[i],...e})):(o="create",r.push(e)),!t){const a={model:this,type:o,data:e};W.emit(Ri,a),W.emit(Ne,a)}}removeDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===e.package);if(i>-1&&r.splice(i,1),!t){const o={model:this,type:"delete",data:e};W.emit(Ri,o),W.emit(Ne,o)}}getPage(e){const t=(r,i=[])=>{for(const o of i){if(o.id===r)return o;if(o.children&&o.children.length){const a=t(r,o.children);if(a)return a}}};return t(e,this.pages)}getPages(){const e=(t=[])=>{let r=[];for(const i of t)i.dir?i.children&&i.children.length&&(r=r.concat(e(i.children))):r.push(i);return r};return e(this.pages)}createPage(e,t,r=!1){if(e.id=e.raw?e.name:e.id||ut(),e.type="page",e.dir?e.children=[]:e.dsl=e.dsl||new dn({id:e.id,name:Er(e.name)}).toDsl(),t){const i=this.getPage(t);i?i.children?i.children.push(e):i.children=[e]:console.warn(`not found PageFile for id: ${t} `)}else this.pages.push(e);if(!this.currentFile&&!e.dir&&this.active(e,r),!r){const i={model:this,type:"create",data:e};W.emit(On,i),W.emit(Ne,i)}}updatePage(e,t=!1){const r=this.getPage(e.id);if(r?Object.assign(r,e):console.warn(`not found PageFile for id: ${e.id} `),!t){const i={model:this,type:"update",data:e};W.emit(On,i),W.emit(Ne,i)}}clonePage(e,t,r=!1){const i=ut(),o=`${e.name}Copy`,a=`${e.title}_副本`,s=new dn({id:i,name:o}).toDsl(),l=dt({},e,{id:i,name:o,title:a,dsl:s}),u=t?this.getPage(t)?.children||[]:this.pages,c=u.findIndex(p=>p.id===e.id);if(u.splice(c+1,0,l),!r){const p={model:this,type:"clone",data:{page:e,newPage:l}};W.emit(On,p),W.emit(Ne,p)}}removePage(e,t=!1){const r=this.getPage(e),i=(o,a)=>{const s=a.findIndex(l=>l.id===o);if(s>=0){a.splice(s,1);return}for(const l of a)if(l.children&&l.children.length)return i(o,l.children)};if(i(e,this.pages),e===this.homepage&&(this.homepage=""),this.currentFile?.id===e&&this.deactivate(t),!t){const o={model:this,type:"delete",data:r};W.emit(On,o),W.emit(Ne,o)}}getBlock(e){return this.blocks.find(t=>t.id===e)}createBlock(e,t=!1){const r=e.id||ut(),i=Er(e.name);if(e.id=r,e.type="block",e.dsl=new dn({id:r,name:i}).toDsl(),this.blocks.push(e),this.currentFile||this.active(e,t),!t){const o={model:this,type:"create",data:e};W.emit(br,o),W.emit(Ne,o)}}updateBlock(e,t=!1){const r=this.getBlock(e.id);if(r?(Object.assign(r,e),r.dsl&&(r.dsl.name=e.name)):console.warn(`not found PageFile for id: ${e.id} `),!t){const i={model:this,type:"update",data:e};W.emit(br,i),W.emit(Ne,i)}}removeBlock(e,t=!1){const r=this.getBlock(e),i=this.blocks,o=i.findIndex(a=>a.id===e);if(o>-1?(i.splice(o,1),this.currentFile?.id===e&&this.deactivate(t)):console.warn(`not found PageFile for id: ${e} `),!t){const a={model:this,type:"delete",data:r};W.emit(br,a),W.emit(Ne,a)}}existBlockName(e,t=[]){return this.blocks.some(r=>r.name===e&&!t.includes(r.id))}existPageName(e,t=[]){return this.getPages().some(r=>r.name===e&&!t.includes(r.id))}setApi(e,t=!1){const r=this.apis.find(o=>o.name===e.name||o.id===e.id);let i;if(r?(i="update",Object.assign(r,e)):(i="create",e.id=ut(),this.apis.push(e)),!t){const o={model:this,type:i,data:e};W.emit(os,o),W.emit(Ne,o)}}removeApi(e,t=!1){const r=this.apis.findIndex(i=>i.name===e||i.id===e);if(r>-1?this.apis.splice(r,1):console.warn(`not found Api for name: ${e} `),!t){const i={model:this,type:"delete",data:e};W.emit(os,i),W.emit(Ne,i)}}existApiName(e,t=[]){return this.apis.some(r=>r.name===e&&!t.includes(r.id))}setHomepage(e,t=!1){if(this.homepage=e,!t){const r={model:this,type:"update",data:e};W.emit(Ne,r)}}setConfig(e,t=!1){if(this.config=Object.assign(this.config,e),!t){const r={model:this,type:"update",data:e};W.emit(Ne,r)}}publish(e){const t={model:this,type:"publish",data:e||this};e?W.emit(xu,t):W.emit(wu,t)}};const Bn="EVENT_HISTORY_CHANGE",wr="EVENT_HISTORY_LOAD";let rg=class{options={max:50};index=-1;id;items;constructor(e,t={}){Object.assign(this.options,t);const{id:r,items:i=[]}=e;this.id=r,this.items=i}toDsl(){const{id:e,items:t}=this;return{id:e,items:t.map(r=>({id:r.id,label:r.label}))}}get(e){return this.items.find(t=>t.id===e)}add(e,t=!1){const{max:r}=this.options,i={id:ut(),label:new Date().toLocaleString(),dsl:Kn(e)};if(this.items.unshift(i),this.items.length>r){const o=this.items.splice(r);t||W.emit(Bn,{model:this,type:"delete",data:o.map(a=>a.id)})}this.index=-1,t||W.emit(Bn,{model:this,type:"create",data:i})}remove(e,t=!1){const r=this.items.findIndex(i=>i.id===e);r>-1?(this.items.splice(r,1),r===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${e} `),t||W.emit(Bn,{model:this,type:"delete",data:[e]})}forward(e=!1){const{index:t,items:r}=this;if(t<0)return;--this.index;const i=r[this.index];i&&!e&&W.emit(wr,{model:this,type:"load",data:i})}backward(e=!1){const{index:t,items:r}=this;if(t>=r.length-1)return;t<0&&(this.index=0),++this.index;const i=r[this.index];i&&!e&&W.emit(wr,{model:this,type:"load",data:i})}load(e,t=!1){const r=this.items.findIndex(i=>i.id===e);r>=0&&(this.index=r,t||W.emit(wr,{model:this,type:"load",data:this.items[r]}))}clear(e=!1){this.index=-1;const t=this.items.map(r=>r.id);this.items=[],e||W.emit(Bn,{model:this,type:"clear",data:t})}};const W=U2();function je(n){return n instanceof dn}function _u(n){return delete n.id,Array.isArray(n.children)&&(n.children=n.children.map(e=>_u(e))),n}/**!
62
62
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
63
63
  * @name @vtj/icons
64
64
  * @author CHC chenhuachun1549@dingtalk.com
65
- * @version 0.7.32
65
+ * @version 0.7.34
66
66
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
- */const ig=D({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M298.666667 298.666667V85.333333h85.333333v298.666667H85.333333V298.666667h213.333334z m426.666666-213.333334v213.333334h213.333334v85.333333h-298.666667V85.333333h85.333333zM298.666667 938.666667v-213.333334H85.333333v-85.333333h298.666667v298.666667H298.666667z m426.666666 0h-85.333333v-298.666667h298.666667v85.333333h-213.333334v213.333334z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),og=D({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M374.442667 486.229333l-81.237334 101.034667c-2.218667 4.352-2.218667 6.570667 0 8.789333 0 2.218667 2.218667 4.352 6.570667 4.352H719.36c4.352 0 6.570667-2.133333 6.570667-4.352 0-2.218667 2.218667-4.437333 0-8.789333l-81.237334-101.034667H374.442667z m362.922666 179.2H281.770667a66.56 66.56 0 0 1-57.173334-35.754666 67.242667 67.242667 0 0 1 7.082667-66.730667l104.96-128.853333h345.856l104.96 128.853333c14.250667 19.029333 19.029333 45.226667 7.168 66.730667a66.56 66.56 0 0 1-57.258667 35.84zM380.16 178.773333H639.146667L680.362667 76.544c2.218667-4.266667 0-6.485333 0-6.485333 0-2.218667-2.133333-4.352-6.485334-4.352H347.562667c-4.352 0-6.570667 2.133333-6.570667 4.266666 0 2.218667-2.133333 4.437333 0 6.570667l39.253333 102.229333z m307.114667 62.122667H331.861333l-57.173333-145.493333a61.269333 61.269333 0 0 1 7.082667-57.173334 63.317333 63.317333 0 0 1 52.48-26.282666h355.413333c21.418667 0 40.533333 9.557333 52.48 26.197333 11.946667 16.725333 14.250667 38.229333 7.082667 57.258667l-61.952 145.493333z",color:"#FFFFFF"},{path:"M386.901333 426.922667h245.248V245.76H386.901333v181.162667z m309.930667 59.733333H322.304V186.026667h372.053333v300.544h2.474667zM510.72 992.256c-19.029333-16.725333-28.586667-40.618667-30.976-66.816L458.24 636.842667h107.349333l-21.418666 288.597333a127.146667 127.146667 0 0 1-33.450667 66.816",color:"#FFFFFF"},{path:"M19.2 905.557333m52.48 0l878.08 0q52.48 0 52.48 52.48l0 0.085334q0 52.48-52.48 52.48l-878.08 0q-52.48 0-52.48-52.48l0-0.085334q0-52.48 52.48-52.48Z",color:"#FFFFFF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ag=D({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M170.666667 170.666667v213.333333H85.333333V85.333333h298.666667v85.333334H170.666667z m682.666666 213.333333V170.666667h-213.333333V85.333333h298.666667v298.666667h-85.333334zM170.666667 640v213.333333h213.333333v85.333334H85.333333v-298.666667h85.333334z m682.666666 0h85.333334v298.666667h-298.666667v-85.333334h213.333333v-213.333333z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),sg=D({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M891.0336 113.7664a32 32 0 0 1 0 45.2352l-104.6016 104.6016a380.1088 380.1088 0 0 1 81.408 65.024l4.5312 4.7104c2.6112 2.6368 5.4272 5.3504 8.704 8.3968l11.6224 10.4192 30.6176 26.624 12.9792 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 47.488-26.7776 79.744-100.3776 142.848l-17.8432 15.4368a471.04 471.04 0 0 0-15.5392 14.1312l-4.7104 4.6592-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-86.784 0-169.5744-18.9696-239.1808-53.3504l-135.5264 135.5008a32 32 0 1 1-45.2352-45.2352l123.8784-123.904a364.9536 364.9536 0 0 1-63.4368-56.192l-1.8176-2.048a249.0112 249.0112 0 0 0-21.4016-20.1728l-12.6976-10.7776-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-38.7072 19.3792-66.5088 70.8096-111.7952l12.4416-10.7776 27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936c-6.656 7.4752-13.2352 14.0032-22.9888 22.6816l-9.216 8.0384-42.8544 36.1728c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 17.4336 14.5152c17.8176 14.8224 28.416 24.0128 36.9664 32.5376l4.9664 5.0944 11.3408 12.3648a315.8272 315.8272 0 0 0 55.168 45.568l89.7536-89.8304a30.0544 30.0544 0 0 1 10.1632-10.1632l217.4976-217.472a146.4064 146.4064 0 0 0-200.1152 70.7328 146.4832 146.4832 0 0 0-12.288 69.632 30.0544 30.0544 0 0 1-60.0064 4.224 206.7712 206.7712 0 0 1 17.408-98.304c46.2592-103.936 168.448-150.8608 272.4096-104.576 9.3696 4.1728 18.2528 8.96 26.6496 14.2592l56.5248-56.5504c-50.5088-17.7408-106.88-27.3664-165.2736-27.3664-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664 75.3152 0 148.0704 14.4896 211.712 41.0368l119.552-119.5008a32 32 0 0 1 45.2352 0z m-148.5568 193.792l-71.0656 71.0912a206.592 206.592 0 0 1 29.824 215.808c-46.2848 103.9616-168.4992 150.8608-272.4608 104.576a205.7216 205.7216 0 0 1-48-29.7472l-60.1088 60.0832 10.112 4.2496c51.968 20.9664 110.7968 32.7168 170.88 34.2016l12.8768 0.1536c124.928 0 240.7168-44.1088 309.504-117.4272l6.656-6.8864c3.1744-3.1744 6.5536-6.4 10.4704-9.984l8.6528-7.7824 44.6976-38.8352c17.5872-15.6928 29.568-27.776 38.8864-39.68 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936c-11.1104-9.728-18.4832-16.4608-25.0112-22.9376l-13.312-13.7472a332.9792 332.9792 0 0 0-75.3408-55.808z m-113.8432 113.8688l-205.056 205.0816a146.4064 146.4064 0 0 0 222.72-56.5248 146.3552 146.3552 0 0 0-17.664-148.5568z",color:"#CCCCCC"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),lg=D({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8z m272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7c-2.9-3.7-8.5-3.7-11.3 0L713.6 306.3c-3.7 4.7-0.4 11.7 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.8-4.7 0.4-11.7-5.6-11.7z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Su=D({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M926.45937303 97.54062697v828.2973677H97.54062697V97.54062697h828.91874606m4.97102697-77.6722963h-838.8608c-39.7682157 0-72.07989097 32.31167525-72.07989097 72.07989096v839.48217837c0 39.7682157 32.31167525 72.07989097 72.07989097 72.07989097h839.48217837c39.7682157 0 72.07989097-32.31167525 72.07989096-72.07989097v-838.8608c0-40.38959408-32.31167525-72.70126933-72.70126933-72.70126933 0.62137837 0 0 0 0 0z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ku=D({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M65.23884 456.152041 958.760137 456.152041l0 111.695918L65.23884 567.847959 65.23884 456.152041z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ju=D({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M959.72 0H294.216a63.96 63.96 0 0 0-63.96 63.96v127.92H64.28A63.96 63.96 0 0 0 0.32 255.84V959.4a63.96 63.96 0 0 0 63.96 63.96h703.56a63.96 63.96 0 0 0 63.96-63.96V792.465h127.92a63.96 63.96 0 0 0 63.96-63.96V63.96A63.96 63.96 0 0 0 959.72 0zM767.84 728.505V959.4H64.28V255.84h703.56z m189.322 0H831.8V255.84a63.96 63.96 0 0 0-63.96-63.96H294.216V63.96H959.72z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ug=D({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M1024 866.459826V1024h-78.781217v-157.540174H1024z m-157.540174 0V1024H801.391304l-13.712695-13.712696v-143.827478h78.781217z m-78.758956-315.080348v157.540174h157.517913V551.401739H1024v236.321391H708.919652v-78.781217h-78.758956l-0.022261 143.805217-78.758957-78.758956v-222.586435h236.321392z m-315.080348 0l-0.022261 143.805218-143.782957-143.805218h143.805218zM1024 0v472.598261H551.379478V0H1024zM472.598261 0v472.598261h-222.564174l-78.758957-78.758957h222.564174V78.758957H78.758957v222.541913L0 222.564174V0h472.598261z m472.620522 78.758957H630.160696v315.080347H945.196522V78.758957zM315.080348 157.540174v157.540174H157.540174V157.540174h157.540174z m551.379478 0v157.540174h-157.540174V157.540174h157.540174z",color:"#26B8CF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Vu=D({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M512 432.46249999L865.92499999 78.49999973a56.13749998 56.13749998 0 0 1 79.53750003-5e-8 56.17500029 56.17500029 0 0 1 0 79.53750002L591.49999971 512l353.925 353.92499999c21.97500029 21.97500029 22.12499972 57.4125003 0 79.53750003a56.17500029 56.17500029 0 0 1-79.53750004 0L512 591.49999971 158.07500001 945.50000027a56.13749998 56.13749998 0 0 1-79.53750003 5e-8 56.17500029 56.17500029 0 0 1 0-79.53750002L432.50000029 512 78.49999973 158.07500001a56.13749998 56.13749998 0 0 1-5e-8-79.53750003 56.17500029 56.17500029 0 0 1 79.53750002 0L512 432.50000029z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),cg=D({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M800.421 436.525h-63.661v-148.673c0-124.507-100.762-225.757-224.732-225.757-123.98 0-224.857 101.25-224.857 225.766v148.662h-63.593c-30.667 0-55.532 24.952-55.532 55.752v407.048c0 30.848 24.865 55.82 55.532 55.82h576.9c30.667 0 55.465-24.97 55.465-55.82v-407.048c0-30.802-24.855-55.752-55.532-55.752zM543.203 706.409v88.88c-0.016 4.026-3.264 7.287-7.282 7.325h-47.733c-4.039-0.022-7.307-3.287-7.334-7.322v-88.882c-22.423-11.518-37.953-34.602-37.953-61.659 0-38.288 30.945-69.425 69.070-69.425 38.183 0 69.138 31.136 69.138 69.415 0.057 27.067-15.473 50.152-37.905 61.659zM650.514 436.525h-276.989v-144.986c0-76.691 62.196-139.146 138.552-139.146 76.366 0 138.447 62.454 138.447 139.146v144.986z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),dg=D({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M796.444 446.009H343.61V320.853c0-86.47 70.542-157.013 157.013-157.013s157.014 70.542 157.014 157.013c0 25.031 20.48 45.511 45.51 45.511s45.512-20.48 45.512-45.51c0-136.534-111.502-248.036-248.036-248.036S252.587 184.32 252.587 320.853V446.01H204.8c-25.031 0-45.511 20.48-45.511 45.511v420.978c0 25.03 20.48 45.51 45.511 45.51h591.644c25.032 0 45.512-20.48 45.512-45.51V491.52c0-25.031-20.48-45.511-45.512-45.511zM537.031 737.28c-2.275 0-4.551 2.276-4.551 4.551v43.236c0 43.235-13.653 50.062-31.858 50.062s-31.858-4.551-31.858-50.062V739.556c0-2.276-2.275-4.552-4.55-4.552-13.654-9.102-22.756-25.03-22.756-45.51 0-31.858 27.306-59.165 59.164-59.165s59.165 25.031 59.165 59.164c2.275 20.48-9.103 36.41-22.756 47.787z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),pg=D({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M915.692308 275.692308h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538462v-59.076923C78.769231 171.323077 92.553846 157.538462 108.307692 157.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538462z m0 293.415384h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-13.784615 13.784615-27.569231 29.538461-27.569231h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076924c0 13.784615-13.784615 27.569231-29.538461 27.56923z m0 297.353846h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-15.753846 13.784615-29.538462 29.538461-29.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538462v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538461z"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),hg=D({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M910.74 338.74L756.8 195.33c-11.5-10.71-27.32-16.15-43.59-14.99-1.53-0.12-3.03-0.18-4.48-0.18h-82.01l-5.75 2.98c-30.39 15.75-69.15 24.42-109.16 24.42s-78.78-8.67-109.16-24.42l-5.75-2.98h-82.02c-20.91 0-39.71 10.63-49.43 27.51L113.29 349.43C102.78 359.21 97 372.22 97 386.06c0 13.84 5.78 26.84 16.29 36.63l111.17 103.58c9.31 8.66 21.33 13.87 34.27 14.95v250.3c0 28.84 25.19 52.31 56.14 52.31h393.85c30.96 0 56.14-23.47 56.14-52.31V530.57c13.1-1 25.28-6.23 34.68-14.98l111.18-103.58c21.7-20.19 21.7-53.07 0.02-73.27z m0 0"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),mg=D({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M301.824 455.509333l-168.021333 18.261334c-5.973333 2.048-8.021333 4.010667-8.021334 8.106666-2.048 1.962667-2.048 5.973333 1.962667 10.069334l386.730667 386.730666c4.010667 4.010667 8.021333 4.010667 10.069333 1.962667 2.048-1.962667 6.058667-1.962667 8.106667-8.021333l18.261333-168.106667-249.088-249.002667z m168.106667 467.626667L83.2 536.661333C62.976 516.266667 56.917333 485.802667 65.024 457.472a80.725333 80.725333 0 0 1 62.72-50.602667l198.4-20.224 293.546667 293.546667-20.224 198.4c-4.010667 28.330667-22.272 54.613333-50.602667 62.72-28.330667 8.106667-58.709333 2.048-78.933333-18.176z m93.098666-720.64l240.896 240.896 133.632-56.661333c6.058667-2.048 6.058667-6.058667 6.058667-6.058667 2.048-2.048 2.048-6.144-2.048-10.24L637.952 66.901333C633.856 62.805333 629.76 62.805333 627.797333 64.853333c-2.048 2.048-6.058667 2.048-6.058666 6.144l-58.709334 131.584z m224.682667 317.866667L486.058667 218.709333 560.981333 46.592a73.557333 73.557333 0 0 1 54.613334-42.496 76.032 76.032 0 0 1 66.901333 22.186667l301.653333 301.738666a75.946667 75.946667 0 0 1 22.186667 66.816 73.557333 73.557333 0 0 1-42.496 54.613334l-176.128 70.826666z",color:"#FFFFFF"},{path:"M360.618667 421.12l224.682666 224.682667 165.973334-165.973334L526.592 255.146667 360.618667 421.12z m226.730666 315.818667L269.482667 419.072l255.146666-255.061333 315.733334 315.818666-255.146667 255.146667 2.133333 1.962667z",color:"#FFFFFF"},{path:"M0.256 1008.213333c-2.048-30.378667 10.069333-58.709333 30.293333-83.029333L257.365333 662.016l91.050667 91.136L85.333333 979.882667a152.576 152.576 0 0 1-84.992 28.330666",color:"#FFFFFF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),fg=D({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M943.081739 44.877913a79.09287 79.09287 0 0 1 79.805218 75.620174l0.111304 4.296348v511.510261a79.09287 79.09287 0 0 1-75.620174 79.805217l-4.296348 0.111304H685.612522v100.930783h178.799304v145.229913l-124.660869-0.022261-54.227479-54.227478h124.66087v-36.730435l-161.413565-0.022261-54.227479-54.227478h36.841739v-100.930783h-137.772521l-54.249739-54.249739h481.458087c26.000696 0 46.124522-18.988522 47.838608-44.432695l0.111305-3.494957V147.055304c0-27.158261-20.769391-47.949913-47.949913-47.949913H102.177391c-25.978435 0-46.124522 19.010783-47.838608 44.432696l-0.111305 3.517217v129.78087L0 222.608696V124.416l0.111304-3.917913A79.026087 79.026087 0 0 1 75.620174 44.966957l4.296348-0.111305h863.165217z m-38.244174 118.160696v435.021913l-529.408-0.022261L118.160696 340.769391V163.038609h786.676869z",color:"#26B8CF"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),vg=D({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>w("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M514.5344 192.2304c137.216 0 265.856 48.0768 346.7008 129.536l8.576 8.9344c5.888 6.144 12.288 12.16 22.8864 21.4528l30.592 26.624 13.0048 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 45.952-25.088 77.6448-93.4144 136.832l-24.832 21.4528c-9.0112 7.936-14.976 13.4656-20.224 18.7904l-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-141.7216 0-272.896-50.6112-353.2544-136.3456l-8.064-8.8576-4.2496-4.4544c-6.7072-6.784-15.3088-14.336-29.8496-26.5216l-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-41.6768 22.4768-70.7328 83.2512-122.5728l27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936l-5.76 6.2464c-6.8608 7.168-14.592 14.336-26.4448 24.4736L124.928 442.24c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 27.2896 22.784c15.1296 12.7488 24.064 20.8896 32.0768 29.3632l11.3408 12.3648c31.7696 33.28 74.496 61.3888 124.16 81.408 55.6544 22.4512 119.2192 34.3552 183.7312 34.3552 121.2672 0 233.9072-41.5488 303.3088-111.0272l12.8512-13.2864 6.7328-6.5024c3.584-3.4048 7.6032-7.04 12.3904-11.264l44.6976-38.8352 10.9312-9.984c11.8528-11.0848 20.7104-20.4288 27.9552-29.696 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936-12.4416-11.0592c-4.8384-4.3776-8.832-8.192-12.544-11.8784l-13.312-13.7472c-69.4272-69.4784-182.016-111.0272-303.3088-111.0272-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664z m-1.8176 111.9488c31.8976 0 62.5664 7.1168 91.008 21.12a30.08 30.08 0 0 1-26.5472 53.9392 146.4064 146.4064 0 0 0-210.688 131.3024 146.4064 146.4064 0 0 0 146.2272 146.2016 146.4064 146.4064 0 0 0 146.2272-146.2016c0-23.936-5.888-47.6672-17.0496-68.608a30.0544 30.0544 0 0 1 53.0688-28.2624 206.7712 206.7712 0 0 1 24.0896 96.8704c0 113.792-92.544 206.336-206.336 206.336s-206.336-92.544-206.336-206.336c0-113.8176 92.544-206.3616 206.336-206.3616z m97.2544 152.0128l3.2256 0.4864c16.2304 3.4048 26.6496 19.2512 23.296 35.4304-3.5072 17.4592-12.7488 42.9312-29.3888 67.4816-28.5184 42.0352-69.248 64.4352-117.504 64.4352-3.9936 0-7.9616-0.1536-12.0064-0.4608a30.0544 30.0544 0 1 1 4.4544-59.9552c29.5424 2.176 53.1456-8.448 71.424-32.384l3.3792-4.6336 2.6624-4.0704c5.888-9.3184 10.5984-19.3792 14.1568-29.4656l2.1504-6.4512a115.712 115.712 0 0 0 0.768-2.6368l1.8944-7.2192c4.352-13.3632 17.4848-21.9392 31.488-20.5568z",color:"#CCCCCC"}].map((e,t)=>w("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),gg=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:ig,Fixed:og,Fullscreen:ag,Invisible:sg,LineHeight:lg,Maximize:Su,Minimize:ku,Popup:ju,QrCodeLogin:ug,RawClose:Vu,RawLock:cg,RawUnLock:dg,Rows:pg,Skin:hg,UnFixed:mg,UserLogin:fg,Visible:vg},Symbol.toStringTag,{value:"Module"}));function Y(n,e){return zt(D({name:n,render(){return w("i",{class:e})}}))}const yg=Y("VtjIconWindowMax","vtj-icon-window-max"),bg=Y("VtjIconWindowMin","vtj-icon-window-min"),wg=Y("VtjIconWindowClose","vtj-icon-window-close"),xg=Y("VtjIconWindowNormal","vtj-icon-window-normal"),_g=Y("VtjIconWindowDown","vtj-icon-window-down"),Sg=Y("VtjIconWindowUp","vtj-icon-window-up"),kg=Y("VtjIconNpSave","vtj-icon-np-save"),jg=Y("VtjIconNpFile","vtj-icon-np-file"),Vg=Y("VtjIconNpEdit","vtj-icon-np-edit"),Cg=Y("VtjIconNpShare","vtj-icon-np-share"),$g=Y("VtjIconNpSearch","vtj-icon-np-search"),Eg=Y("VtjIconNpExport","vtj-icon-np-export"),Ag=Y("VtjIconNpImport","vtj-icon-np-import"),Tg=Y("VtjIconNpList","vtj-icon-np-list"),Og=Y("VtjIconNpPrint","vtj-icon-np-print"),Bg=Y("VtjIconNpCancel","vtj-icon-np-cancel"),zg=Y("VtjIconNpConfirm","vtj-icon-np-confirm"),Dg=Y("VtjIconNpReset","vtj-icon-np-reset"),Ig=Y("VtjIconNpReturnAll","vtj-icon-np-return-all"),Rg=Y("VtjIconNpReturn","vtj-icon-np-return"),Mg=Y("VtjIconNpRemove","vtj-icon-np-remove"),Pg=Y("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),Ng=Y("VtjIconNpDelete","vtj-icon-np-delete"),Fg=Y("VtjIconNpExit","vtj-icon-np-exit"),Hg=Y("VtjIconNpRefresh","vtj-icon-np-refresh"),Lg=Y("VtjIconNpAdd","vtj-icon-np-add"),Ug=Y("VtjIconNpSelect","vtj-icon-np-select"),Wg=Y("VtjIconNpAddRow","vtj-icon-np-add-row"),Jg=Y("VtjIconNpExtend","vtj-icon-np-extend"),qg=Y("VtjIconNpClose","vtj-icon-np-close"),Kg=Y("VtjIconNpSubmit","vtj-icon-np-submit"),Gg=Y("VtjIconDeps","vtj-icon-deps"),Cu=Y("VtjIconBack","vtj-icon-back"),$u=Y("VtjIconHome","vtj-icon-home"),Eu=Y("VtjIconApi","vtj-icon-api"),Yg=Y("VtjIconExport","vtj-icon-export"),Xg=Y("VtjIconImport","vtj-icon-import"),Qg=Y("VtjIconGreater","vtj-icon-greater"),Zg=Y("VtjIconSmaller","vtj-icon-smaller"),Ao=Y("VtjIconCheck","vtj-icon-check"),Au=Y("VtjIconSwitch","vtj-icon-switch"),To=Y("VtjIconCopy","vtj-icon-copy"),Oo=Y("VtjIconLock","vtj-icon-lock"),Tu=Y("VtjIconUnlock","vtj-icon-unlock"),Bo=Y("VtjIconLayers","vtj-icon-layers"),ey=Y("VtjIconConsole","vtj-icon-console"),ty=Y("VtjIconTeam","vtj-icon-team"),ny=Y("VtjIconPublish","vtj-icon-publish"),Ou=Y("VtjIconPreview","vtj-icon-preview"),Bu=Y("VtjIconSave","vtj-icon-save"),zu=Y("VtjIconPc","vtj-icon-pc"),Du=Y("VtjIconPhone","vtj-icon-phone"),Iu=Y("VtjIconPad","vtj-icon-pad"),Ru=Y("VtjIconRedo","vtj-icon-redo"),Mu=Y("VtjIconRefresh","vtj-icon-refresh"),Pu=Y("VtjIconUndo","vtj-icon-undo"),Nu=Y("VtjIconCategory","vtj-icon-category"),ry=Y("VtjIconProject","vtj-icon-project"),iy=Y("VtjIconNotice","vtj-icon-notice"),oy=Y("VtjIconFav","vtj-icon-fav"),ay=Y("VtjIconBug","vtj-icon-bug"),sy=Y("VtjIconFile","vtj-icon-file"),ly=Y("VtjIconFolder","vtj-icon-folder"),uy=Y("VtjIconUpload","vtj-icon-upload"),cy=Y("VtjIconDownload","vtj-icon-download"),dy=Y("VtjIconUser","vtj-icon-user"),zo=Y("VtjIconSetting","vtj-icon-setting"),py=Y("VtjIconArrowRight","vtj-icon-arrow-right"),hy=Y("VtjIconArrowLeft","vtj-icon-arrow-left"),Fu=Y("VtjIconArrowDown","vtj-icon-arrow-down"),Hu=Y("VtjIconArrowUp","vtj-icon-arrow-up"),my=Y("VtjIconShare","vtj-icon-share"),fy=Y("VtjIconData","vtj-icon-data"),vy=Y("VtjIconTemplate","vtj-icon-template"),gy=Y("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),yy=Y("VtjIconFullscreen","vtj-icon-fullscreen"),Do=Y("VtjIconEdit","vtj-icon-edit"),Gn=Y("VtjIconRemove","vtj-icon-remove"),by=Y("VtjIconJs","vtj-icon-js"),wy=Y("VtjIconDatabase","vtj-icon-database"),Lu=Y("VtjIconInfo","vtj-icon-info"),Io=Y("VtjIconPlus","vtj-icon-plus"),xy=Y("VtjIconMinus","vtj-icon-minus"),Ro=Y("VtjIconHelp","vtj-icon-help"),Uu=Y("VtjIconVars","vtj-icon-vars"),Wu=Y("VtjIconOutline","vtj-icon-outline"),Ju=Y("VtjIconVisible","vtj-icon-visible"),Mo=Y("VtjIconInvisible","vtj-icon-invisible"),qu=Y("VtjIconDocument","vtj-icon-document"),Ku=Y("VtjIconHistory","vtj-icon-history"),_y=Y("VtjIconFixed","vtj-icon-fixed"),Sy=Y("VtjIconUnfixed","vtj-icon-unfixed"),Gu=Y("VtjIconSearch","vtj-icon-search"),ky=Y("VtjIconMore","vtj-icon-more"),jy=Y("VtjIconClose","vtj-icon-close"),Yu=Y("VtjIconComponents","vtj-icon-components"),Xu=Y("VtjIconBlock","vtj-icon-block"),Vy=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:Eu,VtjIconArrowDown:Fu,VtjIconArrowLeft:hy,VtjIconArrowRight:py,VtjIconArrowUp:Hu,VtjIconBack:Cu,VtjIconBlock:Xu,VtjIconBug:ay,VtjIconCategory:Nu,VtjIconCheck:Ao,VtjIconClose:jy,VtjIconComponents:Yu,VtjIconConsole:ey,VtjIconCopy:To,VtjIconData:fy,VtjIconDatabase:wy,VtjIconDeps:Gg,VtjIconDocument:qu,VtjIconDownload:cy,VtjIconEdit:Do,VtjIconExitFullscreen:gy,VtjIconExport:Yg,VtjIconFav:oy,VtjIconFile:sy,VtjIconFixed:_y,VtjIconFolder:ly,VtjIconFullscreen:yy,VtjIconGreater:Qg,VtjIconHelp:Ro,VtjIconHistory:Ku,VtjIconHome:$u,VtjIconImport:Xg,VtjIconInfo:Lu,VtjIconInvisible:Mo,VtjIconJs:by,VtjIconLayers:Bo,VtjIconLock:Oo,VtjIconMinus:xy,VtjIconMore:ky,VtjIconNotice:iy,VtjIconNpAdd:Lg,VtjIconNpAddRow:Wg,VtjIconNpCancel:Bg,VtjIconNpClose:qg,VtjIconNpConfirm:zg,VtjIconNpDelete:Ng,VtjIconNpEdit:Vg,VtjIconNpExit:Fg,VtjIconNpExport:Eg,VtjIconNpExtend:Jg,VtjIconNpFile:jg,VtjIconNpImport:Ag,VtjIconNpList:Tg,VtjIconNpPrint:Og,VtjIconNpRefresh:Hg,VtjIconNpRemove:Mg,VtjIconNpRemoveRow:Pg,VtjIconNpReset:Dg,VtjIconNpReturn:Rg,VtjIconNpReturnAll:Ig,VtjIconNpSave:kg,VtjIconNpSearch:$g,VtjIconNpSelect:Ug,VtjIconNpShare:Cg,VtjIconNpSubmit:Kg,VtjIconOutline:Wu,VtjIconPad:Iu,VtjIconPc:zu,VtjIconPhone:Du,VtjIconPlus:Io,VtjIconPreview:Ou,VtjIconProject:ry,VtjIconPublish:ny,VtjIconRedo:Ru,VtjIconRefresh:Mu,VtjIconRemove:Gn,VtjIconSave:Bu,VtjIconSearch:Gu,VtjIconSetting:zo,VtjIconShare:my,VtjIconSmaller:Zg,VtjIconSwitch:Au,VtjIconTeam:ty,VtjIconTemplate:vy,VtjIconUndo:Pu,VtjIconUnfixed:Sy,VtjIconUnlock:Tu,VtjIconUpload:uy,VtjIconUser:dy,VtjIconVars:Uu,VtjIconVisible:Ju,VtjIconWindowClose:wg,VtjIconWindowDown:_g,VtjIconWindowMax:yg,VtjIconWindowMin:bg,VtjIconWindowNormal:xg,VtjIconWindowUp:Sg},Symbol.toStringTag,{value:"Module"})),Cy="data:image/svg+xml,%3csvg%20data-icon='BorderAll'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v12h12V2zm-2%202H4v8h8V4z'%3e%3c/path%3e%3c/svg%3e",$y="data:image/svg+xml,%3csvg%20data-icon='BorderBottom'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2011V4h8v7h2V2H2v9h2z'%3e%3c/path%3e%3cpath%20d='M2%2014v-2h12v2z'%3e%3c/path%3e%3c/svg%3e",Ey="data:image/svg+xml,%3csvg%20data-icon='BorderLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%204h7v8H5v2h9V2H5v2z'%3e%3c/path%3e%3cpath%20d='M2%202h2v12H2z'%3e%3c/path%3e%3c/svg%3e",Ay="data:image/svg+xml,%3csvg%20data-icon='BorderRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%204H4v8h7v2H2V2h9v2z'%3e%3c/path%3e%3cpath%20d='M14%202h-2v12h2z'%3e%3c/path%3e%3c/svg%3e",Ty="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDashed'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M0%207h4v2H0zm6%200h4v2H6zm6%200h4v2h-4z'%3e%3c/path%3e%3c/svg%3e",Oy="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDotted'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h2v2H1zm4%200h2v2H5zm4%200h2v2H9zm4%200h2v2h-2z'%3e%3c/path%3e%3c/svg%3e",By="data:image/svg+xml,%3csvg%20data-icon='BorderStyleSolid'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h14v2H1z'%3e%3c/path%3e%3c/svg%3e",zy="data:image/svg+xml,%3csvg%20data-icon='BorderTop'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%205v7H4V5H2v9h12V5h-2z'%3e%3c/path%3e%3cpath%20d='M14%202v2H2V2z'%3e%3c/path%3e%3c/svg%3e",Dy="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20width='16'%20height='16'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4%2012l6.3-6.3c.4-.4.4-1%200-1.4-.4-.4-1-.4-1.4%200L12%2010.6%205.7%204.3c-.4-.4-1-.4-1.4%200-.4.4-.4%201%200%201.4l6.3%206.3-6.3%206.3c-.4.4-.4%201%200%201.4.2.2.4.3.7.3.3%200%20.5-.1.7-.3l6.3-6.3%206.3%206.3c.2.2.4.3.7.3s.5-.1.7-.3c.4-.4.4-1%200-1.4L13.4%2012z'%20%3e%3c/path%3e%3c/svg%3e",Qu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e全局/关闭%3c/title%3e%3cg%20id='全局/关闭'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%3e%3cg%20id='编组-56备份-2'%20transform='translate(2.000000,%202.000000)'%20stroke='currentColor'%20stroke-width='1.2'%3e%3cline%20x1='6'%20y1='1.65412684e-11'%20x2='6'%20y2='12'%20id='路径-4'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3cline%20x1='-4.71192529e-12'%20y1='6'%20x2='12'%20y2='6'%20id='路径-3'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Iy="data:image/svg+xml,%3csvg%20data-icon='CursorAuto'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2011%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M9.716%208.113L1%201v11.533l2.71-2.69%202.364%204.732%202.023-1.048L5.79%208.912z'%3e%3c/path%3e%3c/svg%3e",Ry="data:image/svg+xml,%3csvg%20data-icon='CursorNone'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M13.716%208.113L10.734%205.68%205%2011.414v1.12l2.71-2.69%202.363%204.732%202.023-1.05L9.79%208.913l3.926-.8zm-2.14-6.537L8.938%204.214%205%201v7.15l-3.424%203.425.85.85%2010-10-.85-.85z'%3e%3c/path%3e%3c/svg%3e",My="data:image/svg+xml,%3csvg%20data-icon='CursorNoDrop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%201C4.134%201%201%204.133%201%208s3.134%207%207%207%207-3.133%207-7-3.134-7-7-7zm5%207a4.97%204.97%200%2001-.832%202.75l-6.92-6.918A4.97%204.97%200%20018%203c2.757%200%205%202.243%205%205zM3%208c0-1.018.31-1.963.833-2.753l6.92%206.92A4.97%204.97%200%20018%2013c-2.757%200-5-2.243-5-5z'%3e%3c/path%3e%3c/svg%3e",Py="data:image/svg+xml,%3csvg%20data-icon='CursorPointer'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2014%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M11.45%205.864h-.35v2.08h-.704V5.16a.703.703%200%2000-.703-.702H8.99V7.24h-.7V4.46a.703.703%200%2000-.703-.704h-.703V7.27H6.18V2a1.054%201.054%200%2000-2.108%200v7.378l-1.867-1.6A.843.843%200%2000.967%208.904S3.72%2013.594%204.775%2015H11.1l1.135-3.973c.18-.628.27-1.278.27-1.93v-2.18c0-.58-.473-1.053-1.055-1.053zM6%2012.5a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2z'%3e%3c/path%3e%3c/svg%3e",Ny="data:image/svg+xml,%3csvg%20data-icon='DisplayBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%204h12v8H2V4zm10%202H4v4h8V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%201h12v1H2V1zm0%2013h12v1H2v-1z'%3e%3c/path%3e%3c/svg%3e",Fy="data:image/svg+xml,%3csvg%20data-icon='DisplayFlex'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%202h12v12H2V2zM1%201h14v14H1V1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%204H4v8h3V4zm2%200h3v8H9V4z'%3e%3c/path%3e%3c/svg%3e",Hy="data:image/svg+xml,%3csvg%20data-icon='DisplayInlineBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%204h8v8H4V4zm6%202H6v4h4V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3c/svg%3e",Ly="data:image/svg+xml,%3csvg%20data-icon='DisplayInline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.25%203L3.5%2013h2l1-3h3l1%203h2L8.75%203h-1.5zm1.917%206L8%205.5%206.833%209h2.334z'%20%3e%3c/path%3e%3c/svg%3e",Uy="data:image/svg+xml,%3csvg%20data-icon='EyeInvisible'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.842%203.33A5.537%205.537%200%20008%203C4.134%203%201%207.5%201%208c0%20.23.666%201.311%201.763%202.409l2.242-2.242a3%203%200%20013.162-3.162l1.675-1.676zm-2.009%207.665a3%203%200%20003.162-3.162l2.242-2.242C14.334%206.69%2015%207.77%2015%208c0%20.5-3.134%205-7%205a5.538%205.538%200%2001-1.842-.33l1.675-1.675z'%20%3e%3c/path%3e%3cpath%20d='M2%2014L14%202'%20stroke='currentColor'%20stroke-width='1.5'%3e%3c/path%3e%3c/svg%3e",Wy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignbaselinerow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M864%200v480h160v64h-160v224H544v-224h-64v480H160V544H0v-64h160V256h320v224h64V0h320zM416%20320H224v160h192v-160z%20m384-256h-192v416h192V64z'%3e%3c/path%3e%3c/svg%3e",Jy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Aligncenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%2064v416h64V64h320v416h160v64h-160v416H544V544h-64v416H160V544H0v-64h160V64h320z'%3e%3c/path%3e%3c/svg%3e",qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20800V96H160v704h320z%20m384%200V96H544v704h320z%20m160%20128v-64H0v64h1024z'%3e%3c/path%3e%3c/svg%3e",Ky="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20224v704H160V224h320z%20m384%200v704H544V224h320z%20m160-128v64H0V96h1024z'%3e%3c/path%3e%3c/svg%3e",Gy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignstretchrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M1024%20960v64H0v-64h1024zM480%20128v768H160V128h320z%20m384%200v768H544V128h320z%20m160-128v64H0V0h1024z'%3e%3c/path%3e%3c/svg%3e",Yy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20704H128v320h768V704z%20m0-320H128v256h768v-256z%20m-128-192l-256-192-256%20192%20192%200.032V320h128V192h192z'%3e%3c/path%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20320H128V0h768v320z%20m0%20320H128v-256h768v256z%20m-128%20192l-256%20192-256-192%20192-0.032V704h128v128h192z'%3e%3c/path%3e%3c/svg%3e",Qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M704%20128v768h320V128H704zM384%20128v768h256V128h-256zM192%20256l-192%20256%20192%20256%200.032-192H320v-128H192V256z'%3e%3c/path%3e%3c/svg%3e",Zy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20128v768H0V128h320z%20m320%200v768h-256V128h256z%20m192%20128l192%20256-192%20256-0.032-192H704v-128h128V256z'%3e%3c/path%3e%3c/svg%3e",e3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifycenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%201024V0h64v1024h-64z%20m128-64V64h320v896H608zM96%20960V64h320v896H96z'%3e%3c/path%3e%3c/svg%3e",t3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M416%20160H96v704h320V160z%20m384%200H480v704h320V160z%20m128-160h-64v1024h64V0z'%3e%3c/path%3e%3c/svg%3e",n3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M608%20160h320v704H608V160zM224%20160h320v704H224V160zM96%200h64v1024H96V0z'%3e%3c/path%3e%3c/svg%3e",r3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-aroundrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20864H192v160H128v-160H0V160h128V0h64v160h128v704z%20m704%200h-128v160h-64v-160h-128V160h128V0h64v160h128v704z'%3e%3c/path%3e%3c/svg%3e",i3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-betweenrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M64%201024H0V0h64v1024z%20m384-160H128V160h320v704z%20m448%200H576V160h320v704z%20m128%20160h-64V0h64v1024z'%3e%3c/path%3e%3c/svg%3e",o3="data:image/svg+xml,%3csvg%20data-icon='FontStyleItalic'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20stroke='currentColor'%20d='M7.5%203.5h5v1h-5zm-4%208h5v1h-5z'%3e%3c/path%3e%3cpath%20d='M5.5%2012l5-8'%20stroke='currentColor'%20stroke-width='2'%3e%3c/path%3e%3c/svg%3e",a3="data:image/svg+xml,%3csvg%20data-icon='FontStyleNone'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%203h2v2H9v6h2v2H5v-2h2V5H5V3h4z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",s3="data:image/svg+xml,%3csvg%20data-icon='PositionAll'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M3%203h9v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",l3="data:image/svg+xml,%3csvg%20data-icon='PositionBottomLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",u3="data:image/svg+xml,%3csvg%20data-icon='PositionBottomRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%208h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",c3="data:image/svg+xml,%3csvg%20data-icon='PositionBottom'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",d3="data:image/svg+xml,%3csvg%20data-icon='PositionLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",p3="data:image/svg+xml,%3csvg%20data-icon='PositionRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v9H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",h3="data:image/svg+xml,%3csvg%20data-icon='PositionTopleft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",m3="data:image/svg+xml,%3csvg%20data-icon='PositionTopright'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",f3="data:image/svg+xml,%3csvg%20data-icon='PositionTop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",v3="data:image/svg+xml,%3csvg%20data-icon='TextAlignCenter'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-2%203H4v2h8V5zm-8%206h8v2H4v-2zm10-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",g3="data:image/svg+xml,%3csvg%20data-icon='TextAlignJustify'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H2v2h12V5zM2%2011h12v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",y3="data:image/svg+xml,%3csvg%20data-icon='TextAlignLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-4%203H2v2h8V5zm-8%206h8v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",b3="data:image/svg+xml,%3csvg%20data-icon='TextAlignRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H6v2h8V5zm-8%206h8v2H6v-2zm8-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",w3="data:image/svg+xml,%3csvg%20data-icon='TextDecorationOverline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%201h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",x3="data:image/svg+xml,%3csvg%20data-icon='TextDecorationStrike'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%203h8v2H9v2H7V5H4V3zm3%206v4h2V9H7z'%20fill='currentColor'%20%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M1%208h14v1H1z'%3e%3c/path%3e%3c/svg%3e",_3="data:image/svg+xml,%3csvg%20data-icon='TextDecorationUnderline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%2014h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",S3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileX'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",k3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileXY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%201h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%2011h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",j3="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M6%201h4v4H6zm0%205h4v4H6zm0%205h4v4H6z'%3e%3c/path%3e%3c/svg%3e",Pi={...Od,...gg,...Vy};(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const n=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),n.call(this,e,t,r)}})();const V3=n=>typeof n=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(V3));function Zu(n,e){return function(){return n.apply(e,arguments)}}const{toString:C3}=Object.prototype,{getPrototypeOf:Po}=Object,Lr=(n=>e=>{const t=C3.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),vt=n=>(n=n.toLowerCase(),e=>Lr(e)===n),Ur=n=>e=>typeof e===n,{isArray:Sn}=Array,Wn=Ur("undefined");function $3(n){return n!==null&&!Wn(n)&&n.constructor!==null&&!Wn(n.constructor)&&et(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ec=vt("ArrayBuffer");function E3(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ec(n.buffer),e}const A3=Ur("string"),et=Ur("function"),tc=Ur("number"),Wr=n=>n!==null&&typeof n=="object",T3=n=>n===!0||n===!1,xr=n=>{if(Lr(n)!=="object")return!1;const e=Po(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},O3=vt("Date"),B3=vt("File"),z3=vt("Blob"),D3=vt("FileList"),I3=n=>Wr(n)&&et(n.pipe),R3=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||et(n.append)&&((e=Lr(n))==="formdata"||e==="object"&&et(n.toString)&&n.toString()==="[object FormData]"))},M3=vt("URLSearchParams"),P3=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yn(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),Sn(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const o=t?Object.getOwnPropertyNames(n):Object.keys(n),a=o.length;let s;for(r=0;r<a;r++)s=o[r],e.call(null,n[s],s,n)}}function nc(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,i;for(;r-- >0;)if(i=t[r],e===i.toLowerCase())return i;return null}const rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ic=n=>!Wn(n)&&n!==rc;function Ni(){const{caseless:n}=ic(this)&&this||{},e={},t=(r,i)=>{const o=n&&nc(e,i)||i;xr(e[o])&&xr(r)?e[o]=Ni(e[o],r):xr(r)?e[o]=Ni({},r):Sn(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Yn(arguments[r],t);return e}const N3=(n,e,t,{allOwnKeys:r}={})=>(Yn(e,(i,o)=>{t&&et(i)?n[o]=Zu(i,t):n[o]=i},{allOwnKeys:r}),n),F3=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),H3=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},L3=(n,e,t,r)=>{let i,o,a;const s={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),o=i.length;o-- >0;)a=i[o],(!r||r(a,n,e))&&!s[a]&&(e[a]=n[a],s[a]=!0);n=t!==!1&&Po(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},U3=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},W3=n=>{if(!n)return null;if(Sn(n))return n;let e=n.length;if(!tc(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},J3=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Po(Uint8Array)),q3=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},K3=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},G3=vt("HTMLFormElement"),Y3=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),as=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),X3=vt("RegExp"),oc=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Yn(t,(i,o)=>{let a;(a=e(i,o,n))!==!1&&(r[o]=a||i)}),Object.defineProperties(n,r)},Q3=n=>{oc(n,(e,t)=>{if(et(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(et(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Z3=(n,e)=>{const t={},r=i=>{i.forEach(o=>{t[o]=!0})};return Sn(n)?r(n):r(String(n).split(e)),t},eb=()=>{},tb=(n,e)=>(n=+n,Number.isFinite(n)?n:e),ui="abcdefghijklmnopqrstuvwxyz",ss="0123456789",ac={DIGIT:ss,ALPHA:ui,ALPHA_DIGIT:ui+ui.toUpperCase()+ss},nb=(n=16,e=ac.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function rb(n){return!!(n&&et(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const ib=n=>{const e=new Array(10),t=(r,i)=>{if(Wr(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Sn(r)?[]:{};return Yn(r,(a,s)=>{const l=t(a,i+1);!Wn(l)&&(o[s]=l)}),e[i]=void 0,o}}return r};return t(n,0)},ob=vt("AsyncFunction"),ab=n=>n&&(Wr(n)||et(n))&&et(n.then)&&et(n.catch),N={isArray:Sn,isArrayBuffer:ec,isBuffer:$3,isFormData:R3,isArrayBufferView:E3,isString:A3,isNumber:tc,isBoolean:T3,isObject:Wr,isPlainObject:xr,isUndefined:Wn,isDate:O3,isFile:B3,isBlob:z3,isRegExp:X3,isFunction:et,isStream:I3,isURLSearchParams:M3,isTypedArray:J3,isFileList:D3,forEach:Yn,merge:Ni,extend:N3,trim:P3,stripBOM:F3,inherits:H3,toFlatObject:L3,kindOf:Lr,kindOfTest:vt,endsWith:U3,toArray:W3,forEachEntry:q3,matchAll:K3,isHTMLForm:G3,hasOwnProperty:as,hasOwnProp:as,reduceDescriptors:oc,freezeMethods:Q3,toObjectSet:Z3,toCamelCase:Y3,noop:eb,toFiniteNumber:tb,findKey:nc,global:rc,isContextDefined:ic,ALPHABET:ac,generateString:nb,isSpecCompliantForm:rb,toJSONObject:ib,isAsyncFn:ob,isThenable:ab};function fe(n,e,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}N.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sc=fe.prototype,lc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{lc[n]={value:n}});Object.defineProperties(fe,lc);Object.defineProperty(sc,"isAxiosError",{value:!0});fe.from=(n,e,t,r,i,o)=>{const a=Object.create(sc);return N.toFlatObject(n,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),fe.call(a,n.message,e,t,r,i),a.cause=n,a.name=n.name,o&&Object.assign(a,o),a};const sb=null;function Fi(n){return N.isPlainObject(n)||N.isArray(n)}function uc(n){return N.endsWith(n,"[]")?n.slice(0,-2):n}function ls(n,e,t){return n?n.concat(e).map(function(r,i){return r=uc(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function lb(n){return N.isArray(n)&&!n.some(Fi)}const ub=N.toFlatObject(N,{},null,function(n){return/^is[A-Z]/.test(n)});function Jr(n,e,t){if(!N.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=N.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,f){return!N.isUndefined(f[h])});const r=t.metaTokens,i=t.visitor||u,o=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(e);if(!N.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(N.isDate(h))return h.toISOString();if(!s&&N.isBlob(h))throw new fe("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(h)||N.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,f,v){let g=h;if(h&&!v&&typeof h=="object"){if(N.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(N.isArray(h)&&lb(h)||(N.isFileList(h)||N.endsWith(f,"[]"))&&(g=N.toArray(h)))return f=uc(f),g.forEach(function(j,b){!(N.isUndefined(j)||j===null)&&e.append(a===!0?ls([f],b,o):a===null?f:f+"[]",l(j))}),!1}return Fi(h)?!0:(e.append(ls(v,f,o),l(h)),!1)}const c=[],p=Object.assign(ub,{defaultVisitor:u,convertValue:l,isVisitable:Fi});function m(h,f){if(!N.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));c.push(h),N.forEach(h,function(v,g){(!(N.isUndefined(v)||v===null)&&i.call(e,v,N.isString(g)?g.trim():g,f,p))===!0&&m(v,f?f.concat(g):[g])}),c.pop()}}if(!N.isObject(n))throw new TypeError("data must be an object");return m(n),e}function us(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function No(n,e){this._pairs=[],n&&Jr(n,this,e)}const cc=No.prototype;cc.append=function(n,e){this._pairs.push([n,e])};cc.toString=function(n){const e=n?function(t){return n.call(this,t,us)}:us;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function cb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dc(n,e,t){if(!e)return n;const r=t&&t.encode||cb,i=t&&t.serialize;let o;if(i?o=i(e,t):o=N.isURLSearchParams(e)?e.toString():new No(e,t).toString(r),o){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}let cs=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(t){t!==null&&e(t)})}};const pc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},db=typeof URLSearchParams<"u"?URLSearchParams:No,pb=typeof FormData<"u"?FormData:null,hb=typeof Blob<"u"?Blob:null,mb={isBrowser:!0,classes:{URLSearchParams:db,FormData:pb,Blob:hb},protocols:["http","https","file","blob","url","data"]},hc=typeof window<"u"&&typeof document<"u",fb=(n=>hc&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),vb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hc,hasStandardBrowserEnv:fb,hasStandardBrowserWebWorkerEnv:vb},Symbol.toStringTag,{value:"Module"})),pt={...gb,...mb};function yb(n,e){return Jr(n,new pt.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,o){return pt.isNode&&N.isBuffer(t)?(this.append(r,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function bb(n){return N.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wb(n){const e={},t=Object.keys(n);let r;const i=t.length;let o;for(r=0;r<i;r++)o=t[r],e[o]=n[o];return e}function mc(n){function e(t,r,i,o){let a=t[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=t.length;return a=!a&&N.isArray(i)?i.length:a,l?(N.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!N.isObject(i[a]))&&(i[a]=[]),e(t,r,i[a],o)&&N.isArray(i[a])&&(i[a]=wb(i[a])),!s)}if(N.isFormData(n)&&N.isFunction(n.entries)){const t={};return N.forEachEntry(n,(r,i)=>{e(bb(r),i,t,0)}),t}return null}function xb(n,e,t){if(N.isString(n))try{return(e||JSON.parse)(n),N.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Fo={transitional:pc,adapter:["xhr","http"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,i=N.isObject(n);if(i&&N.isHTMLForm(n)&&(n=new FormData(n)),N.isFormData(n))return r?JSON.stringify(mc(n)):n;if(N.isArrayBuffer(n)||N.isBuffer(n)||N.isStream(n)||N.isFile(n)||N.isBlob(n))return n;if(N.isArrayBufferView(n))return n.buffer;if(N.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return yb(n,this.formSerializer).toString();if((o=N.isFileList(n))||t.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Jr(o?{"files[]":n}:n,a&&new a,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),xb(n)):n}],transformResponse:[function(n){const e=this.transitional||Fo.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(n&&N.isString(n)&&(t&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(o){if(i)throw o.name==="SyntaxError"?fe.from(o,fe.ERR_BAD_RESPONSE,this,null,this.response):o}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],n=>{Fo.headers[n]={}});const Ho=Fo,_b=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sb=n=>{const e={};let t,r,i;return n&&n.split(`
68
- `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||e[t]&&_b[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},ds=Symbol("internals");function An(n){return n&&String(n).trim().toLowerCase()}function _r(n){return n===!1||n==null?n:N.isArray(n)?n.map(_r):String(n)}function kb(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const jb=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function ci(n,e,t,r,i){if(N.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!N.isString(e)){if(N.isString(r))return e.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(e)}}function Vb(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function Cb(n,e){const t=N.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}class qr{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function o(s,l,u){const c=An(l);if(!c)throw new Error("header name must be a non-empty string");const p=N.findKey(i,c);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||l]=_r(s))}const a=(s,l)=>N.forEach(s,(u,c)=>o(u,c,l));return N.isPlainObject(e)||e instanceof this.constructor?a(e,t):N.isString(e)&&(e=e.trim())&&!jb(e)?a(Sb(e),t):e!=null&&o(t,e,r),this}get(e,t){if(e=An(e),e){const r=N.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return kb(i);if(N.isFunction(t))return t.call(this,i,r);if(N.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=An(e),e){const r=N.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||ci(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function o(a){if(a=An(a),a){const s=N.findKey(r,a);s&&(!t||ci(r,r[s],s,t))&&(delete r[s],i=!0)}}return N.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const o=t[r];(!e||ci(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const t=this,r={};return N.forEach(this,(i,o)=>{const a=N.findKey(r,o);if(a){t[a]=_r(i),delete t[o];return}const s=e?Vb(o):String(o).trim();s!==o&&delete t[o],t[s]=_r(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return N.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&N.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
69
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(i=>r.set(i)),r}static accessor(e){const t=(this[ds]=this[ds]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=An(o);t[a]||(Cb(r,o),t[a]=!0)}return N.isArray(e)?e.forEach(i):i(e),this}}qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(qr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});N.freezeMethods(qr);const _t=qr;function di(n,e){const t=this||Ho,r=e||t,i=_t.from(r.headers);let o=r.data;return N.forEach(n,function(a){o=a.call(t,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function fc(n){return!!(n&&n.__CANCEL__)}function Xn(n,e,t){fe.call(this,n??"canceled",fe.ERR_CANCELED,e,t),this.name="CanceledError"}N.inherits(Xn,fe,{__CANCEL__:!0});function $b(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new fe("Request failed with status code "+t.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Eb=pt.hasStandardBrowserEnv?{write(n,e,t,r,i,o){const a=[n+"="+encodeURIComponent(e)];N.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),N.isString(r)&&a.push("path="+r),N.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ab(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Tb(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function vc(n,e){return n&&!Ab(e)?Tb(n,e):e}const Ob=pt.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let t;function r(i){let o=i;return n&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return t=r(window.location.href),function(i){const o=N.isString(i)?r(i):i;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}();function Bb(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function zb(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),u=r[o];a||(a=l),t[i]=s,r[i]=l;let c=o,p=0;for(;c!==i;)p+=t[c++],c=c%n;if(i=(i+1)%n,i===o&&(o=(o+1)%n),l-a<e)return;const m=u&&l-u;return m?Math.round(p*1e3/m):void 0}}function ps(n,e){let t=0;const r=zb(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-t,l=r(s),u=o<=a;t=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[e?"download":"upload"]=!0,n(c)}}const Db=typeof XMLHttpRequest<"u",Ib=Db&&function(n){return new Promise(function(e,t){let r=n.data;const i=_t.from(n.headers).normalize();let{responseType:o,withXSRFToken:a}=n,s;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let u;if(N.isFormData(r)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[f,...v]=u?u.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...v].join("; "))}}let c=new XMLHttpRequest;if(n.auth){const f=n.auth.username||"",v=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+v))}const p=vc(n.baseURL,n.url);c.open(n.method.toUpperCase(),dc(p,n.params,n.paramsSerializer),!0),c.timeout=n.timeout;function m(){if(!c)return;const f=_t.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:f,config:n,request:c};$b(function(g){e(g),l()},function(g){t(g),l()},v),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(t(new fe("Request aborted",fe.ECONNABORTED,n,c)),c=null)},c.onerror=function(){t(new fe("Network Error",fe.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let f=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||pc;n.timeoutErrorMessage&&(f=n.timeoutErrorMessage),t(new fe(f,v.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,n,c)),c=null},pt.hasStandardBrowserEnv&&(a&&N.isFunction(a)&&(a=a(n)),a||a!==!1&&Ob(p))){const f=n.xsrfHeaderName&&n.xsrfCookieName&&Eb.read(n.xsrfCookieName);f&&i.set(n.xsrfHeaderName,f)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&N.forEach(i.toJSON(),function(f,v){c.setRequestHeader(v,f)}),N.isUndefined(n.withCredentials)||(c.withCredentials=!!n.withCredentials),o&&o!=="json"&&(c.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&c.addEventListener("progress",ps(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ps(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=f=>{c&&(t(!f||f.type?new Xn(null,n,c):f),c.abort(),c=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const h=Bb(p);if(h&&pt.protocols.indexOf(h)===-1){t(new fe("Unsupported protocol "+h+":",fe.ERR_BAD_REQUEST,n));return}c.send(r||null)})},Hi={http:sb,xhr:Ib};N.forEach(Hi,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const hs=n=>`- ${n}`,Rb=n=>N.isFunction(n)||n===null||n===!1,gc={getAdapter:n=>{n=N.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let o=0;o<e;o++){t=n[o];let a;if(r=t,!Rb(t)&&(r=Hi[(a=String(t)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
67
+ */const ig=D({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M298.666667 298.666667V85.333333h85.333333v298.666667H85.333333V298.666667h213.333334z m426.666666-213.333334v213.333334h213.333334v85.333333h-298.666667V85.333333h85.333333zM298.666667 938.666667v-213.333334H85.333333v-85.333333h298.666667v298.666667H298.666667z m426.666666 0h-85.333333v-298.666667h298.666667v85.333333h-213.333334v213.333334z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),og=D({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M374.442667 486.229333l-81.237334 101.034667c-2.218667 4.352-2.218667 6.570667 0 8.789333 0 2.218667 2.218667 4.352 6.570667 4.352H719.36c4.352 0 6.570667-2.133333 6.570667-4.352 0-2.218667 2.218667-4.437333 0-8.789333l-81.237334-101.034667H374.442667z m362.922666 179.2H281.770667a66.56 66.56 0 0 1-57.173334-35.754666 67.242667 67.242667 0 0 1 7.082667-66.730667l104.96-128.853333h345.856l104.96 128.853333c14.250667 19.029333 19.029333 45.226667 7.168 66.730667a66.56 66.56 0 0 1-57.258667 35.84zM380.16 178.773333H639.146667L680.362667 76.544c2.218667-4.266667 0-6.485333 0-6.485333 0-2.218667-2.133333-4.352-6.485334-4.352H347.562667c-4.352 0-6.570667 2.133333-6.570667 4.266666 0 2.218667-2.133333 4.437333 0 6.570667l39.253333 102.229333z m307.114667 62.122667H331.861333l-57.173333-145.493333a61.269333 61.269333 0 0 1 7.082667-57.173334 63.317333 63.317333 0 0 1 52.48-26.282666h355.413333c21.418667 0 40.533333 9.557333 52.48 26.197333 11.946667 16.725333 14.250667 38.229333 7.082667 57.258667l-61.952 145.493333z",color:"#FFFFFF"},{path:"M386.901333 426.922667h245.248V245.76H386.901333v181.162667z m309.930667 59.733333H322.304V186.026667h372.053333v300.544h2.474667zM510.72 992.256c-19.029333-16.725333-28.586667-40.618667-30.976-66.816L458.24 636.842667h107.349333l-21.418666 288.597333a127.146667 127.146667 0 0 1-33.450667 66.816",color:"#FFFFFF"},{path:"M19.2 905.557333m52.48 0l878.08 0q52.48 0 52.48 52.48l0 0.085334q0 52.48-52.48 52.48l-878.08 0q-52.48 0-52.48-52.48l0-0.085334q0-52.48 52.48-52.48Z",color:"#FFFFFF"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ag=D({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M170.666667 170.666667v213.333333H85.333333V85.333333h298.666667v85.333334H170.666667z m682.666666 213.333333V170.666667h-213.333333V85.333333h298.666667v298.666667h-85.333334zM170.666667 640v213.333333h213.333333v85.333334H85.333333v-298.666667h85.333334z m682.666666 0h85.333334v298.666667h-298.666667v-85.333334h213.333333v-213.333333z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),sg=D({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M891.0336 113.7664a32 32 0 0 1 0 45.2352l-104.6016 104.6016a380.1088 380.1088 0 0 1 81.408 65.024l4.5312 4.7104c2.6112 2.6368 5.4272 5.3504 8.704 8.3968l11.6224 10.4192 30.6176 26.624 12.9792 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 47.488-26.7776 79.744-100.3776 142.848l-17.8432 15.4368a471.04 471.04 0 0 0-15.5392 14.1312l-4.7104 4.6592-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-86.784 0-169.5744-18.9696-239.1808-53.3504l-135.5264 135.5008a32 32 0 1 1-45.2352-45.2352l123.8784-123.904a364.9536 364.9536 0 0 1-63.4368-56.192l-1.8176-2.048a249.0112 249.0112 0 0 0-21.4016-20.1728l-12.6976-10.7776-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-38.7072 19.3792-66.5088 70.8096-111.7952l12.4416-10.7776 27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936c-6.656 7.4752-13.2352 14.0032-22.9888 22.6816l-9.216 8.0384-42.8544 36.1728c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 17.4336 14.5152c17.8176 14.8224 28.416 24.0128 36.9664 32.5376l4.9664 5.0944 11.3408 12.3648a315.8272 315.8272 0 0 0 55.168 45.568l89.7536-89.8304a30.0544 30.0544 0 0 1 10.1632-10.1632l217.4976-217.472a146.4064 146.4064 0 0 0-200.1152 70.7328 146.4832 146.4832 0 0 0-12.288 69.632 30.0544 30.0544 0 0 1-60.0064 4.224 206.7712 206.7712 0 0 1 17.408-98.304c46.2592-103.936 168.448-150.8608 272.4096-104.576 9.3696 4.1728 18.2528 8.96 26.6496 14.2592l56.5248-56.5504c-50.5088-17.7408-106.88-27.3664-165.2736-27.3664-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664 75.3152 0 148.0704 14.4896 211.712 41.0368l119.552-119.5008a32 32 0 0 1 45.2352 0z m-148.5568 193.792l-71.0656 71.0912a206.592 206.592 0 0 1 29.824 215.808c-46.2848 103.9616-168.4992 150.8608-272.4608 104.576a205.7216 205.7216 0 0 1-48-29.7472l-60.1088 60.0832 10.112 4.2496c51.968 20.9664 110.7968 32.7168 170.88 34.2016l12.8768 0.1536c124.928 0 240.7168-44.1088 309.504-117.4272l6.656-6.8864c3.1744-3.1744 6.5536-6.4 10.4704-9.984l8.6528-7.7824 44.6976-38.8352c17.5872-15.6928 29.568-27.776 38.8864-39.68 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936c-11.1104-9.728-18.4832-16.4608-25.0112-22.9376l-13.312-13.7472a332.9792 332.9792 0 0 0-75.3408-55.808z m-113.8432 113.8688l-205.056 205.0816a146.4064 146.4064 0 0 0 222.72-56.5248 146.3552 146.3552 0 0 0-17.664-148.5568z",color:"#CCCCCC"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),lg=D({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8z m272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7c-2.9-3.7-8.5-3.7-11.3 0L713.6 306.3c-3.7 4.7-0.4 11.7 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.8-4.7 0.4-11.7-5.6-11.7z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Su=D({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M926.45937303 97.54062697v828.2973677H97.54062697V97.54062697h828.91874606m4.97102697-77.6722963h-838.8608c-39.7682157 0-72.07989097 32.31167525-72.07989097 72.07989096v839.48217837c0 39.7682157 32.31167525 72.07989097 72.07989097 72.07989097h839.48217837c39.7682157 0 72.07989097-32.31167525 72.07989096-72.07989097v-838.8608c0-40.38959408-32.31167525-72.70126933-72.70126933-72.70126933 0.62137837 0 0 0 0 0z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ku=D({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M65.23884 456.152041 958.760137 456.152041l0 111.695918L65.23884 567.847959 65.23884 456.152041z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ju=D({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M959.72 0H294.216a63.96 63.96 0 0 0-63.96 63.96v127.92H64.28A63.96 63.96 0 0 0 0.32 255.84V959.4a63.96 63.96 0 0 0 63.96 63.96h703.56a63.96 63.96 0 0 0 63.96-63.96V792.465h127.92a63.96 63.96 0 0 0 63.96-63.96V63.96A63.96 63.96 0 0 0 959.72 0zM767.84 728.505V959.4H64.28V255.84h703.56z m189.322 0H831.8V255.84a63.96 63.96 0 0 0-63.96-63.96H294.216V63.96H959.72z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ug=D({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M1024 866.459826V1024h-78.781217v-157.540174H1024z m-157.540174 0V1024H801.391304l-13.712695-13.712696v-143.827478h78.781217z m-78.758956-315.080348v157.540174h157.517913V551.401739H1024v236.321391H708.919652v-78.781217h-78.758956l-0.022261 143.805217-78.758957-78.758956v-222.586435h236.321392z m-315.080348 0l-0.022261 143.805218-143.782957-143.805218h143.805218zM1024 0v472.598261H551.379478V0H1024zM472.598261 0v472.598261h-222.564174l-78.758957-78.758957h222.564174V78.758957H78.758957v222.541913L0 222.564174V0h472.598261z m472.620522 78.758957H630.160696v315.080347H945.196522V78.758957zM315.080348 157.540174v157.540174H157.540174V157.540174h157.540174z m551.379478 0v157.540174h-157.540174V157.540174h157.540174z",color:"#26B8CF"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Vu=D({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M512 432.46249999L865.92499999 78.49999973a56.13749998 56.13749998 0 0 1 79.53750003-5e-8 56.17500029 56.17500029 0 0 1 0 79.53750002L591.49999971 512l353.925 353.92499999c21.97500029 21.97500029 22.12499972 57.4125003 0 79.53750003a56.17500029 56.17500029 0 0 1-79.53750004 0L512 591.49999971 158.07500001 945.50000027a56.13749998 56.13749998 0 0 1-79.53750003 5e-8 56.17500029 56.17500029 0 0 1 0-79.53750002L432.50000029 512 78.49999973 158.07500001a56.13749998 56.13749998 0 0 1-5e-8-79.53750003 56.17500029 56.17500029 0 0 1 79.53750002 0L512 432.50000029z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),cg=D({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M800.421 436.525h-63.661v-148.673c0-124.507-100.762-225.757-224.732-225.757-123.98 0-224.857 101.25-224.857 225.766v148.662h-63.593c-30.667 0-55.532 24.952-55.532 55.752v407.048c0 30.848 24.865 55.82 55.532 55.82h576.9c30.667 0 55.465-24.97 55.465-55.82v-407.048c0-30.802-24.855-55.752-55.532-55.752zM543.203 706.409v88.88c-0.016 4.026-3.264 7.287-7.282 7.325h-47.733c-4.039-0.022-7.307-3.287-7.334-7.322v-88.882c-22.423-11.518-37.953-34.602-37.953-61.659 0-38.288 30.945-69.425 69.070-69.425 38.183 0 69.138 31.136 69.138 69.415 0.057 27.067-15.473 50.152-37.905 61.659zM650.514 436.525h-276.989v-144.986c0-76.691 62.196-139.146 138.552-139.146 76.366 0 138.447 62.454 138.447 139.146v144.986z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),dg=D({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M796.444 446.009H343.61V320.853c0-86.47 70.542-157.013 157.013-157.013s157.014 70.542 157.014 157.013c0 25.031 20.48 45.511 45.51 45.511s45.512-20.48 45.512-45.51c0-136.534-111.502-248.036-248.036-248.036S252.587 184.32 252.587 320.853V446.01H204.8c-25.031 0-45.511 20.48-45.511 45.511v420.978c0 25.03 20.48 45.51 45.511 45.51h591.644c25.032 0 45.512-20.48 45.512-45.51V491.52c0-25.031-20.48-45.511-45.512-45.511zM537.031 737.28c-2.275 0-4.551 2.276-4.551 4.551v43.236c0 43.235-13.653 50.062-31.858 50.062s-31.858-4.551-31.858-50.062V739.556c0-2.276-2.275-4.552-4.55-4.552-13.654-9.102-22.756-25.03-22.756-45.51 0-31.858 27.306-59.165 59.164-59.165s59.165 25.031 59.165 59.164c2.275 20.48-9.103 36.41-22.756 47.787z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),pg=D({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M915.692308 275.692308h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538462v-59.076923C78.769231 171.323077 92.553846 157.538462 108.307692 157.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538462z m0 293.415384h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-13.784615 13.784615-27.569231 29.538461-27.569231h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076924c0 13.784615-13.784615 27.569231-29.538461 27.56923z m0 297.353846h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-15.753846 13.784615-29.538462 29.538461-29.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538462v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538461z"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),hg=D({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M910.74 338.74L756.8 195.33c-11.5-10.71-27.32-16.15-43.59-14.99-1.53-0.12-3.03-0.18-4.48-0.18h-82.01l-5.75 2.98c-30.39 15.75-69.15 24.42-109.16 24.42s-78.78-8.67-109.16-24.42l-5.75-2.98h-82.02c-20.91 0-39.71 10.63-49.43 27.51L113.29 349.43C102.78 359.21 97 372.22 97 386.06c0 13.84 5.78 26.84 16.29 36.63l111.17 103.58c9.31 8.66 21.33 13.87 34.27 14.95v250.3c0 28.84 25.19 52.31 56.14 52.31h393.85c30.96 0 56.14-23.47 56.14-52.31V530.57c13.1-1 25.28-6.23 34.68-14.98l111.18-103.58c21.7-20.19 21.7-53.07 0.02-73.27z m0 0"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),mg=D({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M301.824 455.509333l-168.021333 18.261334c-5.973333 2.048-8.021333 4.010667-8.021334 8.106666-2.048 1.962667-2.048 5.973333 1.962667 10.069334l386.730667 386.730666c4.010667 4.010667 8.021333 4.010667 10.069333 1.962667 2.048-1.962667 6.058667-1.962667 8.106667-8.021333l18.261333-168.106667-249.088-249.002667z m168.106667 467.626667L83.2 536.661333C62.976 516.266667 56.917333 485.802667 65.024 457.472a80.725333 80.725333 0 0 1 62.72-50.602667l198.4-20.224 293.546667 293.546667-20.224 198.4c-4.010667 28.330667-22.272 54.613333-50.602667 62.72-28.330667 8.106667-58.709333 2.048-78.933333-18.176z m93.098666-720.64l240.896 240.896 133.632-56.661333c6.058667-2.048 6.058667-6.058667 6.058667-6.058667 2.048-2.048 2.048-6.144-2.048-10.24L637.952 66.901333C633.856 62.805333 629.76 62.805333 627.797333 64.853333c-2.048 2.048-6.058667 2.048-6.058666 6.144l-58.709334 131.584z m224.682667 317.866667L486.058667 218.709333 560.981333 46.592a73.557333 73.557333 0 0 1 54.613334-42.496 76.032 76.032 0 0 1 66.901333 22.186667l301.653333 301.738666a75.946667 75.946667 0 0 1 22.186667 66.816 73.557333 73.557333 0 0 1-42.496 54.613334l-176.128 70.826666z",color:"#FFFFFF"},{path:"M360.618667 421.12l224.682666 224.682667 165.973334-165.973334L526.592 255.146667 360.618667 421.12z m226.730666 315.818667L269.482667 419.072l255.146666-255.061333 315.733334 315.818666-255.146667 255.146667 2.133333 1.962667z",color:"#FFFFFF"},{path:"M0.256 1008.213333c-2.048-30.378667 10.069333-58.709333 30.293333-83.029333L257.365333 662.016l91.050667 91.136L85.333333 979.882667a152.576 152.576 0 0 1-84.992 28.330666",color:"#FFFFFF"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),fg=D({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M943.081739 44.877913a79.09287 79.09287 0 0 1 79.805218 75.620174l0.111304 4.296348v511.510261a79.09287 79.09287 0 0 1-75.620174 79.805217l-4.296348 0.111304H685.612522v100.930783h178.799304v145.229913l-124.660869-0.022261-54.227479-54.227478h124.66087v-36.730435l-161.413565-0.022261-54.227479-54.227478h36.841739v-100.930783h-137.772521l-54.249739-54.249739h481.458087c26.000696 0 46.124522-18.988522 47.838608-44.432695l0.111305-3.494957V147.055304c0-27.158261-20.769391-47.949913-47.949913-47.949913H102.177391c-25.978435 0-46.124522 19.010783-47.838608 44.432696l-0.111305 3.517217v129.78087L0 222.608696V124.416l0.111304-3.917913A79.026087 79.026087 0 0 1 75.620174 44.966957l4.296348-0.111305h863.165217z m-38.244174 118.160696v435.021913l-529.408-0.022261L118.160696 340.769391V163.038609h786.676869z",color:"#26B8CF"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),vg=D({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>b("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M514.5344 192.2304c137.216 0 265.856 48.0768 346.7008 129.536l8.576 8.9344c5.888 6.144 12.288 12.16 22.8864 21.4528l30.592 26.624 13.0048 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 45.952-25.088 77.6448-93.4144 136.832l-24.832 21.4528c-9.0112 7.936-14.976 13.4656-20.224 18.7904l-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-141.7216 0-272.896-50.6112-353.2544-136.3456l-8.064-8.8576-4.2496-4.4544c-6.7072-6.784-15.3088-14.336-29.8496-26.5216l-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-41.6768 22.4768-70.7328 83.2512-122.5728l27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936l-5.76 6.2464c-6.8608 7.168-14.592 14.336-26.4448 24.4736L124.928 442.24c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 27.2896 22.784c15.1296 12.7488 24.064 20.8896 32.0768 29.3632l11.3408 12.3648c31.7696 33.28 74.496 61.3888 124.16 81.408 55.6544 22.4512 119.2192 34.3552 183.7312 34.3552 121.2672 0 233.9072-41.5488 303.3088-111.0272l12.8512-13.2864 6.7328-6.5024c3.584-3.4048 7.6032-7.04 12.3904-11.264l44.6976-38.8352 10.9312-9.984c11.8528-11.0848 20.7104-20.4288 27.9552-29.696 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936-12.4416-11.0592c-4.8384-4.3776-8.832-8.192-12.544-11.8784l-13.312-13.7472c-69.4272-69.4784-182.016-111.0272-303.3088-111.0272-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664z m-1.8176 111.9488c31.8976 0 62.5664 7.1168 91.008 21.12a30.08 30.08 0 0 1-26.5472 53.9392 146.4064 146.4064 0 0 0-210.688 131.3024 146.4064 146.4064 0 0 0 146.2272 146.2016 146.4064 146.4064 0 0 0 146.2272-146.2016c0-23.936-5.888-47.6672-17.0496-68.608a30.0544 30.0544 0 0 1 53.0688-28.2624 206.7712 206.7712 0 0 1 24.0896 96.8704c0 113.792-92.544 206.336-206.336 206.336s-206.336-92.544-206.336-206.336c0-113.8176 92.544-206.3616 206.336-206.3616z m97.2544 152.0128l3.2256 0.4864c16.2304 3.4048 26.6496 19.2512 23.296 35.4304-3.5072 17.4592-12.7488 42.9312-29.3888 67.4816-28.5184 42.0352-69.248 64.4352-117.504 64.4352-3.9936 0-7.9616-0.1536-12.0064-0.4608a30.0544 30.0544 0 1 1 4.4544-59.9552c29.5424 2.176 53.1456-8.448 71.424-32.384l3.3792-4.6336 2.6624-4.0704c5.888-9.3184 10.5984-19.3792 14.1568-29.4656l2.1504-6.4512a115.712 115.712 0 0 0 0.768-2.6368l1.8944-7.2192c4.352-13.3632 17.4848-21.9392 31.488-20.5568z",color:"#CCCCCC"}].map((e,t)=>b("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),gg=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:ig,Fixed:og,Fullscreen:ag,Invisible:sg,LineHeight:lg,Maximize:Su,Minimize:ku,Popup:ju,QrCodeLogin:ug,RawClose:Vu,RawLock:cg,RawUnLock:dg,Rows:pg,Skin:hg,UnFixed:mg,UserLogin:fg,Visible:vg},Symbol.toStringTag,{value:"Module"}));function Y(n,e){return zt(D({name:n,render(){return b("i",{class:e})}}))}const yg=Y("VtjIconWindowMax","vtj-icon-window-max"),bg=Y("VtjIconWindowMin","vtj-icon-window-min"),wg=Y("VtjIconWindowClose","vtj-icon-window-close"),xg=Y("VtjIconWindowNormal","vtj-icon-window-normal"),_g=Y("VtjIconWindowDown","vtj-icon-window-down"),Sg=Y("VtjIconWindowUp","vtj-icon-window-up"),kg=Y("VtjIconNpSave","vtj-icon-np-save"),jg=Y("VtjIconNpFile","vtj-icon-np-file"),Vg=Y("VtjIconNpEdit","vtj-icon-np-edit"),Cg=Y("VtjIconNpShare","vtj-icon-np-share"),$g=Y("VtjIconNpSearch","vtj-icon-np-search"),Eg=Y("VtjIconNpExport","vtj-icon-np-export"),Ag=Y("VtjIconNpImport","vtj-icon-np-import"),Tg=Y("VtjIconNpList","vtj-icon-np-list"),Og=Y("VtjIconNpPrint","vtj-icon-np-print"),Bg=Y("VtjIconNpCancel","vtj-icon-np-cancel"),zg=Y("VtjIconNpConfirm","vtj-icon-np-confirm"),Dg=Y("VtjIconNpReset","vtj-icon-np-reset"),Ig=Y("VtjIconNpReturnAll","vtj-icon-np-return-all"),Rg=Y("VtjIconNpReturn","vtj-icon-np-return"),Mg=Y("VtjIconNpRemove","vtj-icon-np-remove"),Pg=Y("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),Ng=Y("VtjIconNpDelete","vtj-icon-np-delete"),Fg=Y("VtjIconNpExit","vtj-icon-np-exit"),Hg=Y("VtjIconNpRefresh","vtj-icon-np-refresh"),Lg=Y("VtjIconNpAdd","vtj-icon-np-add"),Ug=Y("VtjIconNpSelect","vtj-icon-np-select"),Wg=Y("VtjIconNpAddRow","vtj-icon-np-add-row"),Jg=Y("VtjIconNpExtend","vtj-icon-np-extend"),qg=Y("VtjIconNpClose","vtj-icon-np-close"),Kg=Y("VtjIconNpSubmit","vtj-icon-np-submit"),Gg=Y("VtjIconDeps","vtj-icon-deps"),Cu=Y("VtjIconBack","vtj-icon-back"),$u=Y("VtjIconHome","vtj-icon-home"),Eu=Y("VtjIconApi","vtj-icon-api"),Yg=Y("VtjIconExport","vtj-icon-export"),Xg=Y("VtjIconImport","vtj-icon-import"),Qg=Y("VtjIconGreater","vtj-icon-greater"),Zg=Y("VtjIconSmaller","vtj-icon-smaller"),Ao=Y("VtjIconCheck","vtj-icon-check"),Au=Y("VtjIconSwitch","vtj-icon-switch"),To=Y("VtjIconCopy","vtj-icon-copy"),Oo=Y("VtjIconLock","vtj-icon-lock"),Tu=Y("VtjIconUnlock","vtj-icon-unlock"),Bo=Y("VtjIconLayers","vtj-icon-layers"),ey=Y("VtjIconConsole","vtj-icon-console"),ty=Y("VtjIconTeam","vtj-icon-team"),ny=Y("VtjIconPublish","vtj-icon-publish"),Ou=Y("VtjIconPreview","vtj-icon-preview"),Bu=Y("VtjIconSave","vtj-icon-save"),zu=Y("VtjIconPc","vtj-icon-pc"),Du=Y("VtjIconPhone","vtj-icon-phone"),Iu=Y("VtjIconPad","vtj-icon-pad"),Ru=Y("VtjIconRedo","vtj-icon-redo"),Mu=Y("VtjIconRefresh","vtj-icon-refresh"),Pu=Y("VtjIconUndo","vtj-icon-undo"),Nu=Y("VtjIconCategory","vtj-icon-category"),ry=Y("VtjIconProject","vtj-icon-project"),iy=Y("VtjIconNotice","vtj-icon-notice"),oy=Y("VtjIconFav","vtj-icon-fav"),ay=Y("VtjIconBug","vtj-icon-bug"),sy=Y("VtjIconFile","vtj-icon-file"),ly=Y("VtjIconFolder","vtj-icon-folder"),uy=Y("VtjIconUpload","vtj-icon-upload"),cy=Y("VtjIconDownload","vtj-icon-download"),dy=Y("VtjIconUser","vtj-icon-user"),zo=Y("VtjIconSetting","vtj-icon-setting"),py=Y("VtjIconArrowRight","vtj-icon-arrow-right"),hy=Y("VtjIconArrowLeft","vtj-icon-arrow-left"),Fu=Y("VtjIconArrowDown","vtj-icon-arrow-down"),Hu=Y("VtjIconArrowUp","vtj-icon-arrow-up"),my=Y("VtjIconShare","vtj-icon-share"),fy=Y("VtjIconData","vtj-icon-data"),vy=Y("VtjIconTemplate","vtj-icon-template"),gy=Y("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),yy=Y("VtjIconFullscreen","vtj-icon-fullscreen"),Do=Y("VtjIconEdit","vtj-icon-edit"),Gn=Y("VtjIconRemove","vtj-icon-remove"),by=Y("VtjIconJs","vtj-icon-js"),wy=Y("VtjIconDatabase","vtj-icon-database"),Lu=Y("VtjIconInfo","vtj-icon-info"),Io=Y("VtjIconPlus","vtj-icon-plus"),xy=Y("VtjIconMinus","vtj-icon-minus"),Ro=Y("VtjIconHelp","vtj-icon-help"),Uu=Y("VtjIconVars","vtj-icon-vars"),Wu=Y("VtjIconOutline","vtj-icon-outline"),Ju=Y("VtjIconVisible","vtj-icon-visible"),Mo=Y("VtjIconInvisible","vtj-icon-invisible"),qu=Y("VtjIconDocument","vtj-icon-document"),Ku=Y("VtjIconHistory","vtj-icon-history"),_y=Y("VtjIconFixed","vtj-icon-fixed"),Sy=Y("VtjIconUnfixed","vtj-icon-unfixed"),Gu=Y("VtjIconSearch","vtj-icon-search"),ky=Y("VtjIconMore","vtj-icon-more"),jy=Y("VtjIconClose","vtj-icon-close"),Yu=Y("VtjIconComponents","vtj-icon-components"),Xu=Y("VtjIconBlock","vtj-icon-block"),Vy=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:Eu,VtjIconArrowDown:Fu,VtjIconArrowLeft:hy,VtjIconArrowRight:py,VtjIconArrowUp:Hu,VtjIconBack:Cu,VtjIconBlock:Xu,VtjIconBug:ay,VtjIconCategory:Nu,VtjIconCheck:Ao,VtjIconClose:jy,VtjIconComponents:Yu,VtjIconConsole:ey,VtjIconCopy:To,VtjIconData:fy,VtjIconDatabase:wy,VtjIconDeps:Gg,VtjIconDocument:qu,VtjIconDownload:cy,VtjIconEdit:Do,VtjIconExitFullscreen:gy,VtjIconExport:Yg,VtjIconFav:oy,VtjIconFile:sy,VtjIconFixed:_y,VtjIconFolder:ly,VtjIconFullscreen:yy,VtjIconGreater:Qg,VtjIconHelp:Ro,VtjIconHistory:Ku,VtjIconHome:$u,VtjIconImport:Xg,VtjIconInfo:Lu,VtjIconInvisible:Mo,VtjIconJs:by,VtjIconLayers:Bo,VtjIconLock:Oo,VtjIconMinus:xy,VtjIconMore:ky,VtjIconNotice:iy,VtjIconNpAdd:Lg,VtjIconNpAddRow:Wg,VtjIconNpCancel:Bg,VtjIconNpClose:qg,VtjIconNpConfirm:zg,VtjIconNpDelete:Ng,VtjIconNpEdit:Vg,VtjIconNpExit:Fg,VtjIconNpExport:Eg,VtjIconNpExtend:Jg,VtjIconNpFile:jg,VtjIconNpImport:Ag,VtjIconNpList:Tg,VtjIconNpPrint:Og,VtjIconNpRefresh:Hg,VtjIconNpRemove:Mg,VtjIconNpRemoveRow:Pg,VtjIconNpReset:Dg,VtjIconNpReturn:Rg,VtjIconNpReturnAll:Ig,VtjIconNpSave:kg,VtjIconNpSearch:$g,VtjIconNpSelect:Ug,VtjIconNpShare:Cg,VtjIconNpSubmit:Kg,VtjIconOutline:Wu,VtjIconPad:Iu,VtjIconPc:zu,VtjIconPhone:Du,VtjIconPlus:Io,VtjIconPreview:Ou,VtjIconProject:ry,VtjIconPublish:ny,VtjIconRedo:Ru,VtjIconRefresh:Mu,VtjIconRemove:Gn,VtjIconSave:Bu,VtjIconSearch:Gu,VtjIconSetting:zo,VtjIconShare:my,VtjIconSmaller:Zg,VtjIconSwitch:Au,VtjIconTeam:ty,VtjIconTemplate:vy,VtjIconUndo:Pu,VtjIconUnfixed:Sy,VtjIconUnlock:Tu,VtjIconUpload:uy,VtjIconUser:dy,VtjIconVars:Uu,VtjIconVisible:Ju,VtjIconWindowClose:wg,VtjIconWindowDown:_g,VtjIconWindowMax:yg,VtjIconWindowMin:bg,VtjIconWindowNormal:xg,VtjIconWindowUp:Sg},Symbol.toStringTag,{value:"Module"})),Cy="data:image/svg+xml,%3csvg%20data-icon='BorderAll'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v12h12V2zm-2%202H4v8h8V4z'%3e%3c/path%3e%3c/svg%3e",$y="data:image/svg+xml,%3csvg%20data-icon='BorderBottom'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2011V4h8v7h2V2H2v9h2z'%3e%3c/path%3e%3cpath%20d='M2%2014v-2h12v2z'%3e%3c/path%3e%3c/svg%3e",Ey="data:image/svg+xml,%3csvg%20data-icon='BorderLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%204h7v8H5v2h9V2H5v2z'%3e%3c/path%3e%3cpath%20d='M2%202h2v12H2z'%3e%3c/path%3e%3c/svg%3e",Ay="data:image/svg+xml,%3csvg%20data-icon='BorderRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%204H4v8h7v2H2V2h9v2z'%3e%3c/path%3e%3cpath%20d='M14%202h-2v12h2z'%3e%3c/path%3e%3c/svg%3e",Ty="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDashed'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M0%207h4v2H0zm6%200h4v2H6zm6%200h4v2h-4z'%3e%3c/path%3e%3c/svg%3e",Oy="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDotted'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h2v2H1zm4%200h2v2H5zm4%200h2v2H9zm4%200h2v2h-2z'%3e%3c/path%3e%3c/svg%3e",By="data:image/svg+xml,%3csvg%20data-icon='BorderStyleSolid'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h14v2H1z'%3e%3c/path%3e%3c/svg%3e",zy="data:image/svg+xml,%3csvg%20data-icon='BorderTop'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%205v7H4V5H2v9h12V5h-2z'%3e%3c/path%3e%3cpath%20d='M14%202v2H2V2z'%3e%3c/path%3e%3c/svg%3e",Dy="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20width='16'%20height='16'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4%2012l6.3-6.3c.4-.4.4-1%200-1.4-.4-.4-1-.4-1.4%200L12%2010.6%205.7%204.3c-.4-.4-1-.4-1.4%200-.4.4-.4%201%200%201.4l6.3%206.3-6.3%206.3c-.4.4-.4%201%200%201.4.2.2.4.3.7.3.3%200%20.5-.1.7-.3l6.3-6.3%206.3%206.3c.2.2.4.3.7.3s.5-.1.7-.3c.4-.4.4-1%200-1.4L13.4%2012z'%20%3e%3c/path%3e%3c/svg%3e",Qu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e全局/关闭%3c/title%3e%3cg%20id='全局/关闭'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%3e%3cg%20id='编组-56备份-2'%20transform='translate(2.000000,%202.000000)'%20stroke='currentColor'%20stroke-width='1.2'%3e%3cline%20x1='6'%20y1='1.65412684e-11'%20x2='6'%20y2='12'%20id='路径-4'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3cline%20x1='-4.71192529e-12'%20y1='6'%20x2='12'%20y2='6'%20id='路径-3'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Iy="data:image/svg+xml,%3csvg%20data-icon='CursorAuto'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2011%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M9.716%208.113L1%201v11.533l2.71-2.69%202.364%204.732%202.023-1.048L5.79%208.912z'%3e%3c/path%3e%3c/svg%3e",Ry="data:image/svg+xml,%3csvg%20data-icon='CursorNone'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M13.716%208.113L10.734%205.68%205%2011.414v1.12l2.71-2.69%202.363%204.732%202.023-1.05L9.79%208.913l3.926-.8zm-2.14-6.537L8.938%204.214%205%201v7.15l-3.424%203.425.85.85%2010-10-.85-.85z'%3e%3c/path%3e%3c/svg%3e",My="data:image/svg+xml,%3csvg%20data-icon='CursorNoDrop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%201C4.134%201%201%204.133%201%208s3.134%207%207%207%207-3.133%207-7-3.134-7-7-7zm5%207a4.97%204.97%200%2001-.832%202.75l-6.92-6.918A4.97%204.97%200%20018%203c2.757%200%205%202.243%205%205zM3%208c0-1.018.31-1.963.833-2.753l6.92%206.92A4.97%204.97%200%20018%2013c-2.757%200-5-2.243-5-5z'%3e%3c/path%3e%3c/svg%3e",Py="data:image/svg+xml,%3csvg%20data-icon='CursorPointer'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2014%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M11.45%205.864h-.35v2.08h-.704V5.16a.703.703%200%2000-.703-.702H8.99V7.24h-.7V4.46a.703.703%200%2000-.703-.704h-.703V7.27H6.18V2a1.054%201.054%200%2000-2.108%200v7.378l-1.867-1.6A.843.843%200%2000.967%208.904S3.72%2013.594%204.775%2015H11.1l1.135-3.973c.18-.628.27-1.278.27-1.93v-2.18c0-.58-.473-1.053-1.055-1.053zM6%2012.5a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2z'%3e%3c/path%3e%3c/svg%3e",Ny="data:image/svg+xml,%3csvg%20data-icon='DisplayBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%204h12v8H2V4zm10%202H4v4h8V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%201h12v1H2V1zm0%2013h12v1H2v-1z'%3e%3c/path%3e%3c/svg%3e",Fy="data:image/svg+xml,%3csvg%20data-icon='DisplayFlex'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%202h12v12H2V2zM1%201h14v14H1V1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%204H4v8h3V4zm2%200h3v8H9V4z'%3e%3c/path%3e%3c/svg%3e",Hy="data:image/svg+xml,%3csvg%20data-icon='DisplayInlineBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%204h8v8H4V4zm6%202H6v4h4V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3c/svg%3e",Ly="data:image/svg+xml,%3csvg%20data-icon='DisplayInline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.25%203L3.5%2013h2l1-3h3l1%203h2L8.75%203h-1.5zm1.917%206L8%205.5%206.833%209h2.334z'%20%3e%3c/path%3e%3c/svg%3e",Uy="data:image/svg+xml,%3csvg%20data-icon='EyeInvisible'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.842%203.33A5.537%205.537%200%20008%203C4.134%203%201%207.5%201%208c0%20.23.666%201.311%201.763%202.409l2.242-2.242a3%203%200%20013.162-3.162l1.675-1.676zm-2.009%207.665a3%203%200%20003.162-3.162l2.242-2.242C14.334%206.69%2015%207.77%2015%208c0%20.5-3.134%205-7%205a5.538%205.538%200%2001-1.842-.33l1.675-1.675z'%20%3e%3c/path%3e%3cpath%20d='M2%2014L14%202'%20stroke='currentColor'%20stroke-width='1.5'%3e%3c/path%3e%3c/svg%3e",Wy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignbaselinerow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M864%200v480h160v64h-160v224H544v-224h-64v480H160V544H0v-64h160V256h320v224h64V0h320zM416%20320H224v160h192v-160z%20m384-256h-192v416h192V64z'%3e%3c/path%3e%3c/svg%3e",Jy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Aligncenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%2064v416h64V64h320v416h160v64h-160v416H544V544h-64v416H160V544H0v-64h160V64h320z'%3e%3c/path%3e%3c/svg%3e",qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20800V96H160v704h320z%20m384%200V96H544v704h320z%20m160%20128v-64H0v64h1024z'%3e%3c/path%3e%3c/svg%3e",Ky="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20224v704H160V224h320z%20m384%200v704H544V224h320z%20m160-128v64H0V96h1024z'%3e%3c/path%3e%3c/svg%3e",Gy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignstretchrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M1024%20960v64H0v-64h1024zM480%20128v768H160V128h320z%20m384%200v768H544V128h320z%20m160-128v64H0V0h1024z'%3e%3c/path%3e%3c/svg%3e",Yy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20704H128v320h768V704z%20m0-320H128v256h768v-256z%20m-128-192l-256-192-256%20192%20192%200.032V320h128V192h192z'%3e%3c/path%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20320H128V0h768v320z%20m0%20320H128v-256h768v256z%20m-128%20192l-256%20192-256-192%20192-0.032V704h128v128h192z'%3e%3c/path%3e%3c/svg%3e",Qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M704%20128v768h320V128H704zM384%20128v768h256V128h-256zM192%20256l-192%20256%20192%20256%200.032-192H320v-128H192V256z'%3e%3c/path%3e%3c/svg%3e",Zy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20128v768H0V128h320z%20m320%200v768h-256V128h256z%20m192%20128l192%20256-192%20256-0.032-192H704v-128h128V256z'%3e%3c/path%3e%3c/svg%3e",eb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifycenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%201024V0h64v1024h-64z%20m128-64V64h320v896H608zM96%20960V64h320v896H96z'%3e%3c/path%3e%3c/svg%3e",tb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M416%20160H96v704h320V160z%20m384%200H480v704h320V160z%20m128-160h-64v1024h64V0z'%3e%3c/path%3e%3c/svg%3e",nb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M608%20160h320v704H608V160zM224%20160h320v704H224V160zM96%200h64v1024H96V0z'%3e%3c/path%3e%3c/svg%3e",rb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-aroundrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20864H192v160H128v-160H0V160h128V0h64v160h128v704z%20m704%200h-128v160h-64v-160h-128V160h128V0h64v160h128v704z'%3e%3c/path%3e%3c/svg%3e",ib="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-betweenrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M64%201024H0V0h64v1024z%20m384-160H128V160h320v704z%20m448%200H576V160h320v704z%20m128%20160h-64V0h64v1024z'%3e%3c/path%3e%3c/svg%3e",ob="data:image/svg+xml,%3csvg%20data-icon='FontStyleItalic'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20stroke='currentColor'%20d='M7.5%203.5h5v1h-5zm-4%208h5v1h-5z'%3e%3c/path%3e%3cpath%20d='M5.5%2012l5-8'%20stroke='currentColor'%20stroke-width='2'%3e%3c/path%3e%3c/svg%3e",ab="data:image/svg+xml,%3csvg%20data-icon='FontStyleNone'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%203h2v2H9v6h2v2H5v-2h2V5H5V3h4z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",sb="data:image/svg+xml,%3csvg%20data-icon='PositionAll'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M3%203h9v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",lb="data:image/svg+xml,%3csvg%20data-icon='PositionBottomLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",ub="data:image/svg+xml,%3csvg%20data-icon='PositionBottomRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%208h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",cb="data:image/svg+xml,%3csvg%20data-icon='PositionBottom'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",db="data:image/svg+xml,%3csvg%20data-icon='PositionLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",pb="data:image/svg+xml,%3csvg%20data-icon='PositionRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v9H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",hb="data:image/svg+xml,%3csvg%20data-icon='PositionTopleft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",mb="data:image/svg+xml,%3csvg%20data-icon='PositionTopright'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",fb="data:image/svg+xml,%3csvg%20data-icon='PositionTop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",vb="data:image/svg+xml,%3csvg%20data-icon='TextAlignCenter'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-2%203H4v2h8V5zm-8%206h8v2H4v-2zm10-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",gb="data:image/svg+xml,%3csvg%20data-icon='TextAlignJustify'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H2v2h12V5zM2%2011h12v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",yb="data:image/svg+xml,%3csvg%20data-icon='TextAlignLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-4%203H2v2h8V5zm-8%206h8v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",bb="data:image/svg+xml,%3csvg%20data-icon='TextAlignRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H6v2h8V5zm-8%206h8v2H6v-2zm8-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",wb="data:image/svg+xml,%3csvg%20data-icon='TextDecorationOverline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%201h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",xb="data:image/svg+xml,%3csvg%20data-icon='TextDecorationStrike'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%203h8v2H9v2H7V5H4V3zm3%206v4h2V9H7z'%20fill='currentColor'%20%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M1%208h14v1H1z'%3e%3c/path%3e%3c/svg%3e",_b="data:image/svg+xml,%3csvg%20data-icon='TextDecorationUnderline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%2014h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",Sb="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileX'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",kb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileXY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%201h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%2011h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",jb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M6%201h4v4H6zm0%205h4v4H6zm0%205h4v4H6z'%3e%3c/path%3e%3c/svg%3e",Pi={...Od,...gg,...Vy};(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const n=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),n.call(this,e,t,r)}})();const Vb=n=>typeof n=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Vb));function Zu(n,e){return function(){return n.apply(e,arguments)}}const{toString:Cb}=Object.prototype,{getPrototypeOf:Po}=Object,Lr=(n=>e=>{const t=Cb.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),vt=n=>(n=n.toLowerCase(),e=>Lr(e)===n),Ur=n=>e=>typeof e===n,{isArray:Sn}=Array,Wn=Ur("undefined");function $b(n){return n!==null&&!Wn(n)&&n.constructor!==null&&!Wn(n.constructor)&&et(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const ec=vt("ArrayBuffer");function Eb(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&ec(n.buffer),e}const Ab=Ur("string"),et=Ur("function"),tc=Ur("number"),Wr=n=>n!==null&&typeof n=="object",Tb=n=>n===!0||n===!1,xr=n=>{if(Lr(n)!=="object")return!1;const e=Po(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Ob=vt("Date"),Bb=vt("File"),zb=vt("Blob"),Db=vt("FileList"),Ib=n=>Wr(n)&&et(n.pipe),Rb=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||et(n.append)&&((e=Lr(n))==="formdata"||e==="object"&&et(n.toString)&&n.toString()==="[object FormData]"))},Mb=vt("URLSearchParams"),Pb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yn(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),Sn(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const o=t?Object.getOwnPropertyNames(n):Object.keys(n),a=o.length;let s;for(r=0;r<a;r++)s=o[r],e.call(null,n[s],s,n)}}function nc(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,i;for(;r-- >0;)if(i=t[r],e===i.toLowerCase())return i;return null}const rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ic=n=>!Wn(n)&&n!==rc;function Ni(){const{caseless:n}=ic(this)&&this||{},e={},t=(r,i)=>{const o=n&&nc(e,i)||i;xr(e[o])&&xr(r)?e[o]=Ni(e[o],r):xr(r)?e[o]=Ni({},r):Sn(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Yn(arguments[r],t);return e}const Nb=(n,e,t,{allOwnKeys:r}={})=>(Yn(e,(i,o)=>{t&&et(i)?n[o]=Zu(i,t):n[o]=i},{allOwnKeys:r}),n),Fb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Hb=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},Lb=(n,e,t,r)=>{let i,o,a;const s={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),o=i.length;o-- >0;)a=i[o],(!r||r(a,n,e))&&!s[a]&&(e[a]=n[a],s[a]=!0);n=t!==!1&&Po(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},Ub=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},Wb=n=>{if(!n)return null;if(Sn(n))return n;let e=n.length;if(!tc(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},Jb=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Po(Uint8Array)),qb=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},Kb=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},Gb=vt("HTMLFormElement"),Yb=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),as=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),Xb=vt("RegExp"),oc=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Yn(t,(i,o)=>{let a;(a=e(i,o,n))!==!1&&(r[o]=a||i)}),Object.defineProperties(n,r)},Qb=n=>{oc(n,(e,t)=>{if(et(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(et(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Zb=(n,e)=>{const t={},r=i=>{i.forEach(o=>{t[o]=!0})};return Sn(n)?r(n):r(String(n).split(e)),t},e3=()=>{},t3=(n,e)=>(n=+n,Number.isFinite(n)?n:e),ui="abcdefghijklmnopqrstuvwxyz",ss="0123456789",ac={DIGIT:ss,ALPHA:ui,ALPHA_DIGIT:ui+ui.toUpperCase()+ss},n3=(n=16,e=ac.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function r3(n){return!!(n&&et(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const i3=n=>{const e=new Array(10),t=(r,i)=>{if(Wr(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Sn(r)?[]:{};return Yn(r,(a,s)=>{const l=t(a,i+1);!Wn(l)&&(o[s]=l)}),e[i]=void 0,o}}return r};return t(n,0)},o3=vt("AsyncFunction"),a3=n=>n&&(Wr(n)||et(n))&&et(n.then)&&et(n.catch),N={isArray:Sn,isArrayBuffer:ec,isBuffer:$b,isFormData:Rb,isArrayBufferView:Eb,isString:Ab,isNumber:tc,isBoolean:Tb,isObject:Wr,isPlainObject:xr,isUndefined:Wn,isDate:Ob,isFile:Bb,isBlob:zb,isRegExp:Xb,isFunction:et,isStream:Ib,isURLSearchParams:Mb,isTypedArray:Jb,isFileList:Db,forEach:Yn,merge:Ni,extend:Nb,trim:Pb,stripBOM:Fb,inherits:Hb,toFlatObject:Lb,kindOf:Lr,kindOfTest:vt,endsWith:Ub,toArray:Wb,forEachEntry:qb,matchAll:Kb,isHTMLForm:Gb,hasOwnProperty:as,hasOwnProp:as,reduceDescriptors:oc,freezeMethods:Qb,toObjectSet:Zb,toCamelCase:Yb,noop:e3,toFiniteNumber:t3,findKey:nc,global:rc,isContextDefined:ic,ALPHABET:ac,generateString:n3,isSpecCompliantForm:r3,toJSONObject:i3,isAsyncFn:o3,isThenable:a3};function fe(n,e,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}N.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sc=fe.prototype,lc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{lc[n]={value:n}});Object.defineProperties(fe,lc);Object.defineProperty(sc,"isAxiosError",{value:!0});fe.from=(n,e,t,r,i,o)=>{const a=Object.create(sc);return N.toFlatObject(n,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),fe.call(a,n.message,e,t,r,i),a.cause=n,a.name=n.name,o&&Object.assign(a,o),a};const s3=null;function Fi(n){return N.isPlainObject(n)||N.isArray(n)}function uc(n){return N.endsWith(n,"[]")?n.slice(0,-2):n}function ls(n,e,t){return n?n.concat(e).map(function(r,i){return r=uc(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function l3(n){return N.isArray(n)&&!n.some(Fi)}const u3=N.toFlatObject(N,{},null,function(n){return/^is[A-Z]/.test(n)});function Jr(n,e,t){if(!N.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=N.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,f){return!N.isUndefined(f[h])});const r=t.metaTokens,i=t.visitor||u,o=t.dots,a=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(e);if(!N.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(N.isDate(h))return h.toISOString();if(!s&&N.isBlob(h))throw new fe("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(h)||N.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,f,v){let g=h;if(h&&!v&&typeof h=="object"){if(N.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(N.isArray(h)&&l3(h)||(N.isFileList(h)||N.endsWith(f,"[]"))&&(g=N.toArray(h)))return f=uc(f),g.forEach(function(j,w){!(N.isUndefined(j)||j===null)&&e.append(a===!0?ls([f],w,o):a===null?f:f+"[]",l(j))}),!1}return Fi(h)?!0:(e.append(ls(v,f,o),l(h)),!1)}const c=[],p=Object.assign(u3,{defaultVisitor:u,convertValue:l,isVisitable:Fi});function m(h,f){if(!N.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));c.push(h),N.forEach(h,function(v,g){(!(N.isUndefined(v)||v===null)&&i.call(e,v,N.isString(g)?g.trim():g,f,p))===!0&&m(v,f?f.concat(g):[g])}),c.pop()}}if(!N.isObject(n))throw new TypeError("data must be an object");return m(n),e}function us(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function No(n,e){this._pairs=[],n&&Jr(n,this,e)}const cc=No.prototype;cc.append=function(n,e){this._pairs.push([n,e])};cc.toString=function(n){const e=n?function(t){return n.call(this,t,us)}:us;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function c3(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dc(n,e,t){if(!e)return n;const r=t&&t.encode||c3,i=t&&t.serialize;let o;if(i?o=i(e,t):o=N.isURLSearchParams(e)?e.toString():new No(e,t).toString(r),o){const a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}let cs=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(t){t!==null&&e(t)})}};const pc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d3=typeof URLSearchParams<"u"?URLSearchParams:No,p3=typeof FormData<"u"?FormData:null,h3=typeof Blob<"u"?Blob:null,m3={isBrowser:!0,classes:{URLSearchParams:d3,FormData:p3,Blob:h3},protocols:["http","https","file","blob","url","data"]},hc=typeof window<"u"&&typeof document<"u",f3=(n=>hc&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),v3=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hc,hasStandardBrowserEnv:f3,hasStandardBrowserWebWorkerEnv:v3},Symbol.toStringTag,{value:"Module"})),pt={...g3,...m3};function y3(n,e){return Jr(n,new pt.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,o){return pt.isNode&&N.isBuffer(t)?(this.append(r,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function b3(n){return N.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function w3(n){const e={},t=Object.keys(n);let r;const i=t.length;let o;for(r=0;r<i;r++)o=t[r],e[o]=n[o];return e}function mc(n){function e(t,r,i,o){let a=t[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=t.length;return a=!a&&N.isArray(i)?i.length:a,l?(N.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!N.isObject(i[a]))&&(i[a]=[]),e(t,r,i[a],o)&&N.isArray(i[a])&&(i[a]=w3(i[a])),!s)}if(N.isFormData(n)&&N.isFunction(n.entries)){const t={};return N.forEachEntry(n,(r,i)=>{e(b3(r),i,t,0)}),t}return null}function x3(n,e,t){if(N.isString(n))try{return(e||JSON.parse)(n),N.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Fo={transitional:pc,adapter:["xhr","http"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,i=N.isObject(n);if(i&&N.isHTMLForm(n)&&(n=new FormData(n)),N.isFormData(n))return r?JSON.stringify(mc(n)):n;if(N.isArrayBuffer(n)||N.isBuffer(n)||N.isStream(n)||N.isFile(n)||N.isBlob(n))return n;if(N.isArrayBufferView(n))return n.buffer;if(N.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let o;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return y3(n,this.formSerializer).toString();if((o=N.isFileList(n))||t.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Jr(o?{"files[]":n}:n,a&&new a,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),x3(n)):n}],transformResponse:[function(n){const e=this.transitional||Fo.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(n&&N.isString(n)&&(t&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(o){if(i)throw o.name==="SyntaxError"?fe.from(o,fe.ERR_BAD_RESPONSE,this,null,this.response):o}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],n=>{Fo.headers[n]={}});const Ho=Fo,_3=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),S3=n=>{const e={};let t,r,i;return n&&n.split(`
68
+ `).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!t||e[t]&&_3[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},ds=Symbol("internals");function An(n){return n&&String(n).trim().toLowerCase()}function _r(n){return n===!1||n==null?n:N.isArray(n)?n.map(_r):String(n)}function k3(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const j3=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function ci(n,e,t,r,i){if(N.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!N.isString(e)){if(N.isString(r))return e.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(e)}}function V3(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function C3(n,e){const t=N.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}let qr=class{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function o(s,l,u){const c=An(l);if(!c)throw new Error("header name must be a non-empty string");const p=N.findKey(i,c);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||l]=_r(s))}const a=(s,l)=>N.forEach(s,(u,c)=>o(u,c,l));return N.isPlainObject(e)||e instanceof this.constructor?a(e,t):N.isString(e)&&(e=e.trim())&&!j3(e)?a(S3(e),t):e!=null&&o(t,e,r),this}get(e,t){if(e=An(e),e){const r=N.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return k3(i);if(N.isFunction(t))return t.call(this,i,r);if(N.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=An(e),e){const r=N.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||ci(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function o(a){if(a=An(a),a){const s=N.findKey(r,a);s&&(!t||ci(r,r[s],s,t))&&(delete r[s],i=!0)}}return N.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const o=t[r];(!e||ci(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const t=this,r={};return N.forEach(this,(i,o)=>{const a=N.findKey(r,o);if(a){t[a]=_r(i),delete t[o];return}const s=e?V3(o):String(o).trim();s!==o&&delete t[o],t[s]=_r(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return N.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&N.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
69
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(i=>r.set(i)),r}static accessor(e){const t=(this[ds]=this[ds]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=An(o);t[a]||(C3(r,o),t[a]=!0)}return N.isArray(e)?e.forEach(i):i(e),this}};qr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(qr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});N.freezeMethods(qr);const _t=qr;function di(n,e){const t=this||Ho,r=e||t,i=_t.from(r.headers);let o=r.data;return N.forEach(n,function(a){o=a.call(t,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function fc(n){return!!(n&&n.__CANCEL__)}function Xn(n,e,t){fe.call(this,n??"canceled",fe.ERR_CANCELED,e,t),this.name="CanceledError"}N.inherits(Xn,fe,{__CANCEL__:!0});function $3(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new fe("Request failed with status code "+t.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const E3=pt.hasStandardBrowserEnv?{write(n,e,t,r,i,o){const a=[n+"="+encodeURIComponent(e)];N.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),N.isString(r)&&a.push("path="+r),N.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function A3(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function T3(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function vc(n,e){return n&&!A3(e)?T3(n,e):e}const O3=pt.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let t;function r(i){let o=i;return n&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return t=r(window.location.href),function(i){const o=N.isString(i)?r(i):i;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}();function B3(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function z3(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),u=r[o];a||(a=l),t[i]=s,r[i]=l;let c=o,p=0;for(;c!==i;)p+=t[c++],c=c%n;if(i=(i+1)%n,i===o&&(o=(o+1)%n),l-a<e)return;const m=u&&l-u;return m?Math.round(p*1e3/m):void 0}}function ps(n,e){let t=0;const r=z3(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-t,l=r(s),u=o<=a;t=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[e?"download":"upload"]=!0,n(c)}}const D3=typeof XMLHttpRequest<"u",I3=D3&&function(n){return new Promise(function(e,t){let r=n.data;const i=_t.from(n.headers).normalize();let{responseType:o,withXSRFToken:a}=n,s;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let u;if(N.isFormData(r)){if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[f,...v]=u?u.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...v].join("; "))}}let c=new XMLHttpRequest;if(n.auth){const f=n.auth.username||"",v=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+v))}const p=vc(n.baseURL,n.url);c.open(n.method.toUpperCase(),dc(p,n.params,n.paramsSerializer),!0),c.timeout=n.timeout;function m(){if(!c)return;const f=_t.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:f,config:n,request:c};$3(function(g){e(g),l()},function(g){t(g),l()},v),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(t(new fe("Request aborted",fe.ECONNABORTED,n,c)),c=null)},c.onerror=function(){t(new fe("Network Error",fe.ERR_NETWORK,n,c)),c=null},c.ontimeout=function(){let f=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||pc;n.timeoutErrorMessage&&(f=n.timeoutErrorMessage),t(new fe(f,v.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,n,c)),c=null},pt.hasStandardBrowserEnv&&(a&&N.isFunction(a)&&(a=a(n)),a||a!==!1&&O3(p))){const f=n.xsrfHeaderName&&n.xsrfCookieName&&E3.read(n.xsrfCookieName);f&&i.set(n.xsrfHeaderName,f)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&N.forEach(i.toJSON(),function(f,v){c.setRequestHeader(v,f)}),N.isUndefined(n.withCredentials)||(c.withCredentials=!!n.withCredentials),o&&o!=="json"&&(c.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&c.addEventListener("progress",ps(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ps(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=f=>{c&&(t(!f||f.type?new Xn(null,n,c):f),c.abort(),c=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const h=B3(p);if(h&&pt.protocols.indexOf(h)===-1){t(new fe("Unsupported protocol "+h+":",fe.ERR_BAD_REQUEST,n));return}c.send(r||null)})},Hi={http:s3,xhr:I3};N.forEach(Hi,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const hs=n=>`- ${n}`,R3=n=>N.isFunction(n)||n===null||n===!1,gc={getAdapter:n=>{n=N.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let o=0;o<e;o++){t=n[o];let a;if(r=t,!R3(t)&&(r=Hi[(a=String(t)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
70
70
  `+o.map(hs).join(`
71
- `):" "+hs(o[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Hi};function pi(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xn(null,n)}function ms(n){return pi(n),n.headers=_t.from(n.headers),n.data=di.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),gc.getAdapter(n.adapter||Ho.adapter)(n).then(function(e){return pi(n),e.data=di.call(n,n.transformResponse,e),e.headers=_t.from(e.headers),e},function(e){return fc(e)||(pi(n),e&&e.response&&(e.response.data=di.call(n,n.transformResponse,e.response),e.response.headers=_t.from(e.response.headers))),Promise.reject(e)})}const fs=n=>n instanceof _t?{...n}:n;function vn(n,e){e=e||{};const t={};function r(u,c,p){return N.isPlainObject(u)&&N.isPlainObject(c)?N.merge.call({caseless:p},u,c):N.isPlainObject(c)?N.merge({},c):N.isArray(c)?c.slice():c}function i(u,c,p){if(N.isUndefined(c)){if(!N.isUndefined(u))return r(void 0,u,p)}else return r(u,c,p)}function o(u,c){if(!N.isUndefined(c))return r(void 0,c)}function a(u,c){if(N.isUndefined(c)){if(!N.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,p){if(p in e)return r(u,c);if(p in n)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(fs(u),fs(c),!0)};return N.forEach(Object.keys(Object.assign({},n,e)),function(u){const c=l[u]||i,p=c(n[u],e[u],u);N.isUndefined(p)&&c!==s||(t[u]=p)}),t}const yc="1.6.8",Lo={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Lo[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const vs={};Lo.transitional=function(n,e,t){function r(i,o){return"[Axios v"+yc+"] Transitional option '"+i+"'"+o+(t?". "+t:"")}return(i,o,a)=>{if(n===!1)throw new fe(r(o," has been removed"+(e?" in "+e:"")),fe.ERR_DEPRECATED);return e&&!vs[o]&&(vs[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(i,o,a):!0}};function Mb(n,e,t){if(typeof n!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=n[o],l=s===void 0||a(s,o,n);if(l!==!0)throw new fe("option "+o+" must be "+l,fe.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}const Li={assertOptions:Mb,validators:Lo},$t=Li.validators;let Tr=class{constructor(e){this.defaults=e,this.interceptors={request:new cs,response:new cs}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
72
- `+o):r.stack=o}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=vn(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:o}=t;r!==void 0&&Li.assertOptions(r,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean)},!1),i!=null&&(N.isFunction(i)?t.paramsSerializer={serialize:i}:Li.assertOptions(i,{encode:$t.function,serialize:$t.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&N.merge(o.common,o[t.method]);o&&N.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),t.headers=_t.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let c,p=0,m;if(!l){const f=[ms.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),m=f.length,c=Promise.resolve(t);p<m;)c=c.then(f[p++],f[p++]);return c}m=s.length;let h=t;for(p=0;p<m;){const f=s[p++],v=s[p++];try{h=f(h)}catch(g){v.call(this,g);break}}try{c=ms.call(this,h)}catch(f){return Promise.reject(f)}for(p=0,m=u.length;p<m;)c=c.then(u[p++],u[p++]);return c}getUri(e){e=vn(this.defaults,e);const t=vc(e.baseURL,e.url);return dc(t,e.params,e.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(n){Tr.prototype[n]=function(e,t){return this.request(vn(t||{},{method:n,url:e,data:(t||{}).data}))}});N.forEach(["post","put","patch"],function(n){function e(t){return function(r,i,o){return this.request(vn(o||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Tr.prototype[n]=e(),Tr.prototype[n+"Form"]=e(!0)});const Sr=Tr;let Pb=class bc{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},e(function(i,o,a){r.reason||(r.reason=new Xn(i,o,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new bc(function(t){e=t}),cancel:e}}};const Nb=Pb;function Fb(n){return function(e){return n.apply(null,e)}}function Hb(n){return N.isObject(n)&&n.isAxiosError===!0}const Ui={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ui).forEach(([n,e])=>{Ui[e]=n});const Lb=Ui;function wc(n){const e=new Sr(n),t=Zu(Sr.prototype.request,e);return N.extend(t,Sr.prototype,e,{allOwnKeys:!0}),N.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return wc(vn(n,r))},t}const Ee=wc(Ho);Ee.Axios=Sr;Ee.CanceledError=Xn;Ee.CancelToken=Nb;Ee.isCancel=fc;Ee.VERSION=yc;Ee.toFormData=Jr;Ee.AxiosError=fe;Ee.Cancel=Ee.CanceledError;Ee.all=function(n){return Promise.all(n)};Ee.spread=Fb;Ee.isAxiosError=Hb;Ee.mergeConfig=vn;Ee.AxiosHeaders=_t;Ee.formToJSON=n=>mc(N.isHTMLForm(n)?new FormData(n):n);Ee.getAdapter=gc.getAdapter;Ee.HttpStatusCode=Lb;Ee.default=Ee;const Ub={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Wb=["put","post","patch"],gs="Local-Request-Id",Jb=200,qb=500;class xc{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(e={}){this.settings=e.settings||{};const t=ai(e,["settings"]);this.axios=Ee.create(dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Ul(this.openLoading.bind(this),Jb),this.showError=i2(this._showError.bind(this),qb,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=dt(this.settings,e.settings||{});const t=ai(e,["settings"]);this.axios.defaults=dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const i=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},o={"Content-Type":Ub[t.type||"form"],...r.headers,...i};return t.skipWarn&&(o[gs]=e),o}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,o])=>{r.append(i,o)}),r}createSendData(e,t,r,i){const{type:o,skipWarn:a}=e,{name:s="skipWarn"}=a||{};let{data:l,params:u,method:c="get"}=t;const p=i?{[s]:!0}:{};return Wb.includes(c.toLowerCase())?(l=Object.assign(l||{},p),l=o!=="json"||!this.isJsonType(r)?this.toFormData(l,o):l):u={...l,...u,...p},{data:l,params:u}}createUrl(e){let{url:t,query:r}=e;if(t){r&&(t=Gl(t)(r));try{return J2(t,{encode:encodeURIComponent})(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const i=Object.keys(this.records);r&&i.length===0&&(this.isLoading=!1,r())}_showError(e,t){const{failMessage:r,showError:i}=e;if(r&&i){const o=t?.message||t?.msg||"未知错误";i(o,t)}}validResponse(e,t){const{validSuccess:r,validate:i}=e;return r&&i?!!i(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=dt({},this.settings,e.settings||{}),i=ai(e,["settings"]),o=F2(!1),a=Ee.CancelToken.source();this.records[o]={settings:r,config:i,source:a};const s=this.createUrl(i),l=this.createHeaders(o,r,i),{data:u,params:c}=this.createSendData(r,i,l,t);return this.showLoading(r),new Promise((p,m)=>{this.axios({cancelToken:a.token,...i,url:s,headers:l,data:u,params:c}).then(h=>this.isSkipWarnResponse(h)?p(h.promise):this.validResponse(r,h)?p(r.originResponse?h:h.data?.data):(this.showError(r,h.data),m(h.data))).catch(h=>(this.showError(r,h),m(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}useRequest(e,t){const{request:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:i,complete:o}=e.skipWarn;this.stopSkipWarn=this.useResponse(a=>{const s=(a.config.headers||{})[gs],l=this.records[s];if(!l)return a;const{data:u}=a;if(!u||typeof u!="object")return a;if(u?.code===t){i&&i(a);const c=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));c.catch(p=>p).finally(()=>{o&&o()}),a.promise=c}return a})}}function _c(n={}){const e=new xc(n),t=e.send.bind(e),r=e.cancel.bind(e),i=e.setConfig.bind(e),o=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(t,{...e,instance:e,send:t,cancel:r,setConfig:i,useRequest:o,useResponse:a})}_c({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});const Wi=typeof window<"u",Kb=n=>new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=i=>{t(i)}});function Gb(n){const e={};return n?(n.forEach((t,r)=>{e[r]=typeof t=="string"?decodeURIComponent(t):t}),e):{}}class Sc{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(e={}){this.types={local:Wi?window.localStorage:this.caches,session:Wi?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,t,r={}){const{type:i,expired:o,prefix:a}={...this.options,...r},s=Date.now(),l=a+e,u=this.types[i]||this.caches,c={value:t,timestamp:s,expired:o};u===this.caches?u[l]=c:u.setItem(l,JSON.stringify(c))}get(e,t={}){const{type:r,prefix:i}={...this.options,...t},o=i+e,a=this.types[r]||this.caches;let s;if(a===this.caches)s=a[o];else{const p=a.getItem(o);p&&(s=JSON.parse(p))}if(!s)return null;const{value:l,timestamp:u,expired:c}=s;return c>0&&u+c<Date.now()?(this.remove(e,t),null):l}remove(e,t={}){const{type:r,prefix:i}={...this.options,...t},o=this.types[r]||this.caches,a=i+e;o===this.caches?delete o[a]:o.removeItem(a)}clear(e={}){const{type:t}={...this.options,...e},r=this.types[t]||this.caches;r===this.caches?this.caches={}:r.clear()}}new Sc;var Yb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ji={exports:{}};(function(n,e){(function(t,r){r(e,n)})(Yb,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(u){try{delete window[u]}catch{window[u]=void 0}}function s(u){var c=document.getElementById(u);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=u,m=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,f=void 0;return new Promise(function(v,g){var j=c.jsonpCallbackFunction||o(),b=h+"_"+j;window[j]=function(k){v({ok:!0,json:function(){return Promise.resolve(k)}}),f&&clearTimeout(f),s(b),a(j)},p+=p.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+p+h+"="+j),c.charset&&_.setAttribute("charset",c.charset),c.nonce&&_.setAttribute("nonce",c.nonce),c.referrerPolicy&&_.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&_.setAttribute("crossorigin","true"),_.id=b,document.getElementsByTagName("head")[0].appendChild(_),f=setTimeout(function(){g(new Error("JSONP request to "+u+" timed out")),a(j),s(b),window[j]=function(){a(j)}},m),_.onerror=function(){g(new Error("JSONP request to "+u+" failed")),a(j),s(b),f&&clearTimeout(f)}})}r.exports=l})})(Ji,Ji.exports);var Xb=Ji.exports;const Qb=kc(Xb);function Zb(n){if(Wi){const{protocol:e,host:t,pathname:r}=location;return`${e}//${t}${n?r:""}`}else return null}function e6(n=""){const e=n.match(ou);return e?e[0]:""}function jc(n){const e=[];for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.push([t,encodeURIComponent(n[t])].join("="));return e.join("&")}function qi(n,e,t){const r={};n=(n||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const o=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=o.exec(n))!==null;)i[1]!==n&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function Vc(n,e){e=typeof e=="string"?qi(e):e;const t=n.split("?")[0],r=qi(n),i=Object.assign({},r,e),o=jc(i);return o?[t,o].join("?"):n}const pn=Object.freeze(Object.defineProperty({__proto__:null,append:Vc,getCurrentHost:Zb,getHost:e6,parse:qi,stringify:jc},Symbol.toStringTag,{value:"Module"}));async function t6(n,e={}){const{query:t={}}=e;n.includes("${")&&(n=Gl(n)(t||{}));const r=Vc(n,t);return await(await Qb(r,e)).json()}var n6=function(n,e,t){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof e=="function"&&(t=e,e={}),e=e||{},t=t||function(){},i.type=e.type||"text/javascript",i.charset=e.charset||"utf8",i.async="async"in e?!!e.async:!0,i.src=n,e.attrs&&r6(i,e.attrs),e.text&&(i.text=""+e.text);var o="onload"in i?ys:i6;o(i,t),i.onload||ys(i,t),r.appendChild(i)};function r6(n,e){for(var t in e)n.setAttribute(t,e[t])}function ys(n,e){n.onload=function(){this.onerror=this.onload=null,e(null,n)},n.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),n)}}function i6(n,e){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,n))}}const o6=kc(n6);function bs(n,e={}){return new Promise((t,r)=>{const{library:i}=e;o6(n,e,(o,a)=>{o?r(o):t(i?window[i]:void 0)})})}const ws={debug:-1,log:0,info:0,warn:1,error:2},a6=function(n,e,t,r){return function(...i){if(e&&ws[e]<=ws[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,s6(i,t))}};function s6(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]=`[${e}] ${n[0]}`:n=["["+e+"]"].concat(n)),n}function l6(n,e){if(!n)return{targetLevel:e.level,targetBizName:e.bizName};if(~n.indexOf(":")){const t=n.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:n,targetBizName:"*"}}const u6={level:"warn",bizName:"*"};class c6{config;options;constructor(e){this.options={...u6,...e};const t=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=l6(r,e)}_log(e){const{targetLevel:t,targetBizName:r}=this.config,{bizName:i}=this.options;return a6(e,t,i,r)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function d6(n){return new c6(n)}const Ge=d6({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function cr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)n[r]=t[r]}return n}var p6={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ki(n,e){function t(i,o,a){if(!(typeof document>"u")){a=cr({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+n.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=n.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:t,get:r,remove:function(i,o){t(i,"",cr({},o,{expires:-1}))},withAttributes:function(i){return Ki(this.converter,cr({},this.attributes,i))},withConverter:function(i){return Ki(cr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}Ki(p6,{path:"/"});/**!
71
+ `):" "+hs(o[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Hi};function pi(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xn(null,n)}function ms(n){return pi(n),n.headers=_t.from(n.headers),n.data=di.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),gc.getAdapter(n.adapter||Ho.adapter)(n).then(function(e){return pi(n),e.data=di.call(n,n.transformResponse,e),e.headers=_t.from(e.headers),e},function(e){return fc(e)||(pi(n),e&&e.response&&(e.response.data=di.call(n,n.transformResponse,e.response),e.response.headers=_t.from(e.response.headers))),Promise.reject(e)})}const fs=n=>n instanceof _t?{...n}:n;function vn(n,e){e=e||{};const t={};function r(u,c,p){return N.isPlainObject(u)&&N.isPlainObject(c)?N.merge.call({caseless:p},u,c):N.isPlainObject(c)?N.merge({},c):N.isArray(c)?c.slice():c}function i(u,c,p){if(N.isUndefined(c)){if(!N.isUndefined(u))return r(void 0,u,p)}else return r(u,c,p)}function o(u,c){if(!N.isUndefined(c))return r(void 0,c)}function a(u,c){if(N.isUndefined(c)){if(!N.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,p){if(p in e)return r(u,c);if(p in n)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(fs(u),fs(c),!0)};return N.forEach(Object.keys(Object.assign({},n,e)),function(u){const c=l[u]||i,p=c(n[u],e[u],u);N.isUndefined(p)&&c!==s||(t[u]=p)}),t}const yc="1.6.8",Lo={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Lo[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const vs={};Lo.transitional=function(n,e,t){function r(i,o){return"[Axios v"+yc+"] Transitional option '"+i+"'"+o+(t?". "+t:"")}return(i,o,a)=>{if(n===!1)throw new fe(r(o," has been removed"+(e?" in "+e:"")),fe.ERR_DEPRECATED);return e&&!vs[o]&&(vs[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(i,o,a):!0}};function M3(n,e,t){if(typeof n!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=n[o],l=s===void 0||a(s,o,n);if(l!==!0)throw new fe("option "+o+" must be "+l,fe.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}}const Li={assertOptions:M3,validators:Lo},$t=Li.validators;class Tr{constructor(e){this.defaults=e,this.interceptors={request:new cs,response:new cs}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
72
+ `+o):r.stack=o}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=vn(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:o}=t;r!==void 0&&Li.assertOptions(r,{silentJSONParsing:$t.transitional($t.boolean),forcedJSONParsing:$t.transitional($t.boolean),clarifyTimeoutError:$t.transitional($t.boolean)},!1),i!=null&&(N.isFunction(i)?t.paramsSerializer={serialize:i}:Li.assertOptions(i,{encode:$t.function,serialize:$t.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&N.merge(o.common,o[t.method]);o&&N.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),t.headers=_t.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let c,p=0,m;if(!l){const f=[ms.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),m=f.length,c=Promise.resolve(t);p<m;)c=c.then(f[p++],f[p++]);return c}m=s.length;let h=t;for(p=0;p<m;){const f=s[p++],v=s[p++];try{h=f(h)}catch(g){v.call(this,g);break}}try{c=ms.call(this,h)}catch(f){return Promise.reject(f)}for(p=0,m=u.length;p<m;)c=c.then(u[p++],u[p++]);return c}getUri(e){e=vn(this.defaults,e);const t=vc(e.baseURL,e.url);return dc(t,e.params,e.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(n){Tr.prototype[n]=function(e,t){return this.request(vn(t||{},{method:n,url:e,data:(t||{}).data}))}});N.forEach(["post","put","patch"],function(n){function e(t){return function(r,i,o){return this.request(vn(o||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Tr.prototype[n]=e(),Tr.prototype[n+"Form"]=e(!0)});const Sr=Tr;let P3=class bc{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},e(function(i,o,a){r.reason||(r.reason=new Xn(i,o,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new bc(function(t){e=t}),cancel:e}}};const N3=P3;function F3(n){return function(e){return n.apply(null,e)}}function H3(n){return N.isObject(n)&&n.isAxiosError===!0}const Ui={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ui).forEach(([n,e])=>{Ui[e]=n});const L3=Ui;function wc(n){const e=new Sr(n),t=Zu(Sr.prototype.request,e);return N.extend(t,Sr.prototype,e,{allOwnKeys:!0}),N.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return wc(vn(n,r))},t}const Ee=wc(Ho);Ee.Axios=Sr;Ee.CanceledError=Xn;Ee.CancelToken=N3;Ee.isCancel=fc;Ee.VERSION=yc;Ee.toFormData=Jr;Ee.AxiosError=fe;Ee.Cancel=Ee.CanceledError;Ee.all=function(n){return Promise.all(n)};Ee.spread=F3;Ee.isAxiosError=H3;Ee.mergeConfig=vn;Ee.AxiosHeaders=_t;Ee.formToJSON=n=>mc(N.isHTMLForm(n)?new FormData(n):n);Ee.getAdapter=gc.getAdapter;Ee.HttpStatusCode=L3;Ee.default=Ee;const U3={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},W3=["put","post","patch"],gs="Local-Request-Id",J3=200,q3=500;let xc=class{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(e={}){this.settings=e.settings||{};const t=ai(e,["settings"]);this.axios=Ee.create(dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Ul(this.openLoading.bind(this),J3),this.showError=i2(this._showError.bind(this),q3,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=dt(this.settings,e.settings||{});const t=ai(e,["settings"]);this.axios.defaults=dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const i=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},o={"Content-Type":U3[t.type||"form"],...r.headers,...i};return t.skipWarn&&(o[gs]=e),o}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,o])=>{r.append(i,o)}),r}createSendData(e,t,r,i){const{type:o,skipWarn:a}=e,{name:s="skipWarn"}=a||{};let{data:l,params:u,method:c="get"}=t;const p=i?{[s]:!0}:{};return W3.includes(c.toLowerCase())?(l=Object.assign(l||{},p),l=o!=="json"||!this.isJsonType(r)?this.toFormData(l,o):l):u={...l,...u,...p},{data:l,params:u}}createUrl(e){let{url:t,query:r}=e;if(t){r&&(t=Gl(t)(r));try{return J2(t,{encode:encodeURIComponent})(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const i=Object.keys(this.records);r&&i.length===0&&(this.isLoading=!1,r())}_showError(e,t){const{failMessage:r,showError:i}=e;if(r&&i){const o=t?.message||t?.msg||"未知错误";i(o,t)}}validResponse(e,t){const{validSuccess:r,validate:i}=e;return r&&i?!!i(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=dt({},this.settings,e.settings||{}),i=ai(e,["settings"]),o=F2(!1),a=Ee.CancelToken.source();this.records[o]={settings:r,config:i,source:a};const s=this.createUrl(i),l=this.createHeaders(o,r,i),{data:u,params:c}=this.createSendData(r,i,l,t);return this.showLoading(r),new Promise((p,m)=>{this.axios({cancelToken:a.token,...i,url:s,headers:l,data:u,params:c}).then(h=>this.isSkipWarnResponse(h)?p(h.promise):this.validResponse(r,h)?p(r.originResponse?h:h.data?.data):(this.showError(r,h.data),m(h.data))).catch(h=>(this.showError(r,h),m(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}useRequest(e,t){const{request:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:i,complete:o}=e.skipWarn;this.stopSkipWarn=this.useResponse(a=>{const s=(a.config.headers||{})[gs],l=this.records[s];if(!l)return a;const{data:u}=a;if(!u||typeof u!="object")return a;if(u?.code===t){i&&i(a);const c=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));c.catch(p=>p).finally(()=>{o&&o()}),a.promise=c}return a})}};function _c(n={}){const e=new xc(n),t=e.send.bind(e),r=e.cancel.bind(e),i=e.setConfig.bind(e),o=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(t,{...e,instance:e,send:t,cancel:r,setConfig:i,useRequest:o,useResponse:a})}_c({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});const Wi=typeof window<"u",K3=n=>new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=i=>{t(i)}});function G3(n){const e={};return n?(n.forEach((t,r)=>{e[r]=typeof t=="string"?decodeURIComponent(t):t}),e):{}}class Sc{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(e={}){this.types={local:Wi?window.localStorage:this.caches,session:Wi?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,t,r={}){const{type:i,expired:o,prefix:a}={...this.options,...r},s=Date.now(),l=a+e,u=this.types[i]||this.caches,c={value:t,timestamp:s,expired:o};u===this.caches?u[l]=c:u.setItem(l,JSON.stringify(c))}get(e,t={}){const{type:r,prefix:i}={...this.options,...t},o=i+e,a=this.types[r]||this.caches;let s;if(a===this.caches)s=a[o];else{const p=a.getItem(o);p&&(s=JSON.parse(p))}if(!s)return null;const{value:l,timestamp:u,expired:c}=s;return c>0&&u+c<Date.now()?(this.remove(e,t),null):l}remove(e,t={}){const{type:r,prefix:i}={...this.options,...t},o=this.types[r]||this.caches,a=i+e;o===this.caches?delete o[a]:o.removeItem(a)}clear(e={}){const{type:t}={...this.options,...e},r=this.types[t]||this.caches;r===this.caches?this.caches={}:r.clear()}}new Sc;var Y3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ji={exports:{}};(function(n,e){(function(t,r){r(e,n)})(Y3,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(u){try{delete window[u]}catch{window[u]=void 0}}function s(u){var c=document.getElementById(u);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=u,m=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,f=void 0;return new Promise(function(v,g){var j=c.jsonpCallbackFunction||o(),w=h+"_"+j;window[j]=function(S){v({ok:!0,json:function(){return Promise.resolve(S)}}),f&&clearTimeout(f),s(w),a(j)},p+=p.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+p+h+"="+j),c.charset&&_.setAttribute("charset",c.charset),c.nonce&&_.setAttribute("nonce",c.nonce),c.referrerPolicy&&_.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&_.setAttribute("crossorigin","true"),_.id=w,document.getElementsByTagName("head")[0].appendChild(_),f=setTimeout(function(){g(new Error("JSONP request to "+u+" timed out")),a(j),s(w),window[j]=function(){a(j)}},m),_.onerror=function(){g(new Error("JSONP request to "+u+" failed")),a(j),s(w),f&&clearTimeout(f)}})}r.exports=l})})(Ji,Ji.exports);var X3=Ji.exports;const Q3=kc(X3);function Z3(n){if(Wi){const{protocol:e,host:t,pathname:r}=location;return`${e}//${t}${n?r:""}`}else return null}function e6(n=""){const e=n.match(ou);return e?e[0]:""}function jc(n){const e=[];for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.push([t,encodeURIComponent(n[t])].join("="));return e.join("&")}function qi(n,e,t){const r={};n=(n||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const o=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=o.exec(n))!==null;)i[1]!==n&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function Vc(n,e){e=typeof e=="string"?qi(e):e;const t=n.split("?")[0],r=qi(n),i=Object.assign({},r,e),o=jc(i);return o?[t,o].join("?"):n}const pn=Object.freeze(Object.defineProperty({__proto__:null,append:Vc,getCurrentHost:Z3,getHost:e6,parse:qi,stringify:jc},Symbol.toStringTag,{value:"Module"}));async function t6(n,e={}){const{query:t={}}=e;n.includes("${")&&(n=Gl(n)(t||{}));const r=Vc(n,t);return await(await Q3(r,e)).json()}var n6=function(n,e,t){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof e=="function"&&(t=e,e={}),e=e||{},t=t||function(){},i.type=e.type||"text/javascript",i.charset=e.charset||"utf8",i.async="async"in e?!!e.async:!0,i.src=n,e.attrs&&r6(i,e.attrs),e.text&&(i.text=""+e.text);var o="onload"in i?ys:i6;o(i,t),i.onload||ys(i,t),r.appendChild(i)};function r6(n,e){for(var t in e)n.setAttribute(t,e[t])}function ys(n,e){n.onload=function(){this.onerror=this.onload=null,e(null,n)},n.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),n)}}function i6(n,e){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,n))}}const o6=kc(n6);function bs(n,e={}){return new Promise((t,r)=>{const{library:i}=e;o6(n,e,(o,a)=>{o?r(o):t(i?window[i]:void 0)})})}const ws={debug:-1,log:0,info:0,warn:1,error:2},a6=function(n,e,t,r){return function(...i){if(e&&ws[e]<=ws[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,s6(i,t))}};function s6(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]=`[${e}] ${n[0]}`:n=["["+e+"]"].concat(n)),n}function l6(n,e){if(!n)return{targetLevel:e.level,targetBizName:e.bizName};if(~n.indexOf(":")){const t=n.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:n,targetBizName:"*"}}const u6={level:"warn",bizName:"*"};class c6{config;options;constructor(e){this.options={...u6,...e};const t=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=l6(r,e)}_log(e){const{targetLevel:t,targetBizName:r}=this.config,{bizName:i}=this.options;return a6(e,t,i,r)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}}function d6(n){return new c6(n)}const Ge=d6({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function cr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)n[r]=t[r]}return n}var p6={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ki(n,e){function t(i,o,a){if(!(typeof document>"u")){a=cr({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+n.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=n.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:t,get:r,remove:function(i,o){t(i,"",cr({},o,{expires:-1}))},withAttributes:function(i){return Ki(this.converter,cr({},this.attributes,i))},withConverter:function(i){return Ki(cr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}Ki(p6,{path:"/"});/**!
73
73
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
74
74
  * @name @vtj/ui
75
75
  * @author CHC chenhuachun1549@dingtalk.com
76
- * @version 0.7.32
76
+ * @version 0.7.34
77
77
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
78
- */const h6={default:14,small:12,large:18},m6={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String},background:{type:String},padding:{type:Number},radius:{type:Number}};function Jn(n){return typeof n=="string"?n:`${n}px`}function dr(n=0,e){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const t=Number.parseInt(n);return Math.floor(e*t/100)}return Number.parseInt(n)}const f6=["src"],rt=D({name:"XIcon",__name:"Icon",props:m6,setup(n){const e=n,t=Zi(),r=qn(),i=O(()=>{if(!e.icon)return null;const l=r?.appContext.app;return typeof e.icon=="object"?zt(e.icon):l?.component(e.icon)||e.icon}),o=O(()=>{const l={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(l[e.icon]=!0),l}),a=O(()=>({"background-color":e.background,"border-radius":e.radius?Jn(e.radius):void 0,padding:e.padding?Jn(e.padding):void 0})),s=O(()=>typeof e.size=="number"?e.size:h6[e.size]??void 0);return(l,u)=>(y(),V(d(cd),{class:de(["x-icon",o.value]),color:e.color,size:s.value,style:Bt(a.value)},{default:S(()=>[ce(l.$slots,"default",{},()=>[i.value?(y(),V(Ke(i.value),{key:0})):I("",!0),e.src?(y(),M("img",{key:1,src:e.src},null,8,f6)):I("",!0)])]),_:3},8,["class","color","size","style"]))}}),Cc={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function v6(n){return O(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function g6(n){return O(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function y6(n){return O(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function b6(n){const e=qn();return O(()=>{const t=d(n);if(t)if(typeof t=="string"||t.setup||t.render||id(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function Uo(n){const e=b6(n);return e.value?zt(D({render:()=>Re(rt,e.value)})):void 0}function Wo(n,e){return O(()=>{const t=d(n);return typeof t=="function"?t(e):!!t})}const w6={key:0},x6=D({__name:"Trigger",props:Cc,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=Uo(jr(t,"icon")),o=Wo(jr(t,"disabled")),a=O(()=>({[`is-${t.mode}`]:!!t.mode,[`is-${t.type}`]:!!t.type,[`is-${t.size}`]:!!t.size&&t.size!=="default",[`is-background-${t.background}`]:t.mode==="icon"&&!!t.background,"is-disabled":!!t.disabled,"is-circle":!!t.circle})),s=l=>{if(l.preventDefault(),!o.value)return r("click"),!1};return(l,u)=>t.mode==="button"?(y(),V(d(Ve),ve({key:0,icon:d(i),type:t.type,size:t.size,disabled:d(o)},t.button,{onClick:s}),{default:S(()=>[ue(te(l.label),1)]),_:1},16,["icon","type","size","disabled"])):(y(),M("div",{key:1,class:de(["x-action__inner",a.value]),onClick:s},[(y(),V(Ke(d(i)))),l.label?(y(),M("span",w6,te(l.label),1)):I("",!0)],2))}}),Oe=D({name:"XAction",__name:"Action",props:Cc,emits:["click","command"],setup(n,{emit:e}){const t=n,r=nd(),i=e,o=v6(t),a=g6(t),s=y6(t),l=Wo(jr(t,"disabled")),u=O(()=>({[`x-action--${t.mode}`]:!!t.mode})),c=()=>{l.value||i("click",ln(t))},p=g=>{if(l.value)return;const j=t.menus?.find(b=>b.command===g);j&&i("command",ln(j))},m=g=>Re(dd,a.value,()=>[].concat(g)),h=g=>Re(io,{...s.value,disabled:l.value,onCommand:p},{default:()=>[g],dropdown:()=>[Re(ro,()=>(t.menus||[]).map((j,b)=>Re(Vr,j,()=>r.item?r.item({item:j,index:b}):j.label)))]}),f=g=>Re(Br,{...o.value,disabled:l.value},()=>[g]),v=O(()=>{let g=Re(zt(x6),{...t,onClick:c});const j=r.default?.();return j&&j.length&&(g=j[0]),a.value&&(g=m(g)),s.value&&(g=h(g)),o.value&&(g=f(g)),g});return(g,j)=>(y(),M("div",{class:de(["x-action",u.value])},[(y(),V(Ke(v.value)))],2))}}),_6={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},S6=D({name:"XActionBar",__name:"ActionBar",props:_6,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>(t.items||[]).map(s=>s==="|"?s:{...s,badge:s.badge?{...t.badge,...typeof s.badge=="object"?s.badge||{}:{value:s.badge}}:void 0,tooltip:s.tooltip?{...t.tooltip,...typeof s.tooltip=="object"?s.tooltip||{}:{content:s.tooltip}}:void 0})),o=s=>{r("click",s)},a=(s,l)=>{r("command",s,l)};return(s,l)=>(y(),V(d(ae),{class:"x-action-bar",align:"center"},{default:S(()=>[(y(!0),M(ne,null,oe(i.value,u=>(y(),M(ne,null,[u==="|"?(y(),V(d(zr),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(y(),V(d(Oe),ve({key:1,mode:t.mode,size:t.size,type:t.type,circle:t.circle,background:t.background,button:t.button,dropdown:t.dropdown,disabled:d(Wo)(t.disabled,u).value},u,{onClick:o,onCommand:c=>a(u,c)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),k6={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1},gap:{type:Boolean},autoPointer:{type:Boolean}},ae=D({name:"XContainer",__name:"Container",props:k6,setup(n){const e=n,t=Zi(),r=qn(),i=O(()=>{const s=r?.parent;if(!s)return!1;const l=s.proxy;return l.$options.name==="XContainer"||!!l.flex}),o=O(()=>({"is-fit":e.fit,"is-flex":e.flex&&!e.inline,"is-inline-flex":e.flex&&e.inline,[`is-direction-${e.direction}`]:e.flex&&e.direction!=="row",[`is-wrap-${e.wrap}`]:e.flex&&e.wrap!=="nowrap",[`is-justify-${e.justify}`]:e.flex&&e.justify!=="flex-start",[`is-align-${e.align}`]:e.flex&&e.align!=="flex-start",[`is-align-content-${e.alignContent}`]:e.flex&&e.alignContent!=="stretch","is-grow":e.grow??i.value,"is-shrink":e.shrink,[`is-align-self-${e.alignSelf}`]:i.value&&e.alignSelf!=="auto",[`is-overflow-${e.overflow}`]:!!e.overflow,"is-padding":!!e.padding,"is-pointer":e.autoPointer&&!!t.onClick,"is-gap":!!e.gap})),a=O(()=>{const{width:s,height:l,fit:u}=e;return u?null:{width:s?Jn(s):void 0,height:l?Jn(l):void 0}});return(s,l)=>(y(),V(Ke(e.tag),{class:de(["x-container",o.value]),style:Bt(a.value)},{default:S(()=>[ce(s.$slots,"default")]),_:3},8,["class","style"]))}}),j6={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},V6={class:"x-header__content"},C6={key:0,class:"x-header__actions"},$6=D({name:"XHeader",inheritAttrs:!1,__name:"Header",props:j6,setup(n){const e=n,t=Uo(jr(e,"icon")),r=Zi(),i=O(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(o,a)=>(y(),V(d(ae),{class:de(["x-header",i.value]),justify:"space-between",align:"center"},{default:S(()=>[w(d(ae),{align:"center",class:de(["x-header__wrapper",i.value]),grow:"",onClick:d(r).onClick},{default:S(()=>[d(t)?(y(),V(Ke(d(t)),{key:0,class:"x-header__icon",onClick:d(r).onClickIcon||d(r).onClick},null,8,["onClick"])):I("",!0),R("span",V6,[ce(o.$slots,"default",{},()=>[ue(te(e.content),1)])]),e.more?(y(),V(d(rt),{key:1,class:"x-header__more",icon:d(Ns)},null,8,["icon"])):I("",!0),e.subtitle||o.$slots.subtitle?(y(),M("span",{key:2,class:"x-header__subtitle",onClick:a[0]||(a[0]=(...s)=>d(r).onClick&&d(r).onClick(...s))},[ce(o.$slots,"subtitle",{},()=>[ue(te(e.subtitle),1)])])):I("",!0)]),_:3},8,["class","onClick"]),o.$slots.actions?(y(),M("div",C6,[ce(o.$slots,"actions")])):I("",!0)]),_:3},8,["class"]))}}),E6={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},body:{type:Object},footer:{type:Object}},Qn=D({name:"XPanel",__name:"Panel",props:E6,setup(n,{expose:e}){const t=n,r=B(),i=O(()=>({"x-panel--card":!!t.card,"x-panel--default":!t.card,[`is-${t.size}`]:!!t.size&&t.size!=="default","is-border":!!t.border,"is-radius":!!t.radius,[`is-shadow-${t.shadow}`]:!!t.shadow&&t.shadow!=="none"})),o=O(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),a=O(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(s,l)=>(y(),V(d(ae),{class:de(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:S(()=>[o.value?(y(),V(d(ae),{key:0,flex:!1,class:"x-panel__header"},{default:S(()=>[ce(s.$slots,"header",{},()=>[w(d($6),wt(Dt(o.value)),{default:S(()=>[ce(s.$slots,"title")]),actions:S(()=>[ce(s.$slots,"actions")]),_:3},16)])]),_:3})):I("",!0),w(d(ae),ve({ref_key:"bodyRef",ref:r,flex:!1,overflow:a.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:S(()=>[ce(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(y(),V(d(ae),ve({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:S(()=>[ce(s.$slots,"footer")]),_:3},16)):I("",!0)]),_:3},8,["class","fit","width","height"]))}}),xs="user-select-none";let _s=class{constructor(e,t={}){this.el=e,this.options=t,this.scope=Ts(),this.scope.run(()=>{this.init()})}scope;dragging=!1;getHandle(){const{selector:e,handle:t}=this.options;return e?this.el.querySelector(e):t}getTarget(){const{target:e="body"}=this.options;return typeof e=="string"?document.querySelector(e):d(e)||document.body}init(){const{el:e,options:t}=this,{disabled:r,delay:i=150,onStart:o,onEnd:a}=t;if(r)return;let s=null;const l=this.getHandle(),u=this.getTarget();let c=e.getBoundingClientRect(),p=null;const{x:m,y:h}=Fd(e,{initialValue:{x:c.x,y:c.y},...t,handle:l,onStart:(f,v)=>{document.body.classList.add(xs),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,c=e.getBoundingClientRect(),p=u?.getBoundingClientRect(),o&&o(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(s),document.body.classList.remove(xs),this.dragging&&p){this.dragging=!1;const{x:g,y:j}=f,b=this.getPosition(p,c,g,j);a&&a(b,v),p=null}}});se([m,h],()=>{if(this.dragging&&p){const f=this.getPosition(p,c,m.value,h.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:o=50}=this.options,a=-t.width+o,s=e.width-o,l=0,u=e.height-o,c=Math.min(s,Math.max(r,a)),p=Math.min(u,Math.max(i,l));return{x:c,y:p}}destory(){this.scope.stop()}};const A6={mounted(n,e){const t=e.value||{},r=new _s(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!jo(r.options,t)&&(r.destory(),n.__draggable__=new _s(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},hi="user-select-none";let Ss=class{constructor(e,t={}){this.el=e,this.options=t,this.scope=Ts(),this.scope.run(()=>{this.init()})}scope;resizing=B(!1);direction=B("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:o}=t;if(r)return;this.MIE=Nd(e),this.cleanMousedown=ta(document,"mousedown",()=>{this.direction?.value&&this.MIE&&(this.resizing.value=!0,e.classList.add("is-resizing",`is-${this.direction.value}-resizing`),i&&i(this.direction.value,this.MIE))}),this.cleanMouseup=ta(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),o&&o(this.direction.value,this.MIE)),this.resizing.value=!1}),se(this.direction,l=>{const u=document.body;u.style.cursor=l?`${l}-resize`:"",l?u.classList.add(hi):u.classList.remove(hi)});const{x:a,y:s}=this.MIE;se([a,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:o}=this,a=t?.value||"";if(!e||!r.value||!a)return;const{x:s,y:l,elementX:u,elementY:c,elementHeight:p,elementWidth:m}=e,{onResizing:h}=i,{minWidth:f=0,minHeight:v=0,maxWidth:g=99999,maxHeight:j=99999}=i;if(a.includes("e")){const b=Math.min(Math.max(u.value,f),g);o.style.width=`${b}px`}if(a.includes("s")){const b=Math.min(Math.max(c.value,v),j);o.style.height=`${b}px`}if(a.includes("w")){const b=Math.min(Math.max(m.value-u.value,f),g);o.style.width=`${b}px`,o.style.left=`${s.value}px`}if(a.includes("n")){const b=Math.min(Math.max(p.value-c.value,v),j);this.el.style.height=`${b}px`,this.el.style.top=`${l.value}px`}h&&h(a,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:o}=this.MIE;if(o.value)return"";const{dirs:a=["n","s","w","e"],edge:s=5}=this.options;let l="";return a.includes("n")&&t.value<=s?l+="n":a.includes("s")&&t.value>r.value-s&&(l+="s"),a.includes("w")&&e.value<=s?l+="w":a.includes("e")&&e.value>i.value-s&&(l+="e"),l}destory(){const e=document.body;e.style.cursor="",e.classList.remove(hi),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}};const Gi={mounted(n,e){const t=e.value||{},r=new Ss(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!jo(r.options,t)&&(r.destory(),n.__resizable__=new Ss(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},T6={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!1},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let hn=1e3;function O6(n,e){const{width:t,height:r}=mn(e),i=Gt({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++hn,dragging:!1,resizing:!1});return se([t,r],([o,a])=>{i.wrapperWidth=o,i.wrapperHeight=a,i.width=dr(n.width,o),i.height=dr(n.height,a),i.left=n.left?dr(n.left,o)-i.width/2:Math.max(Math.floor((o-i.width)/2),0),i.top=n.top?dr(n.top,a):Math.max(Math.floor((a-i.height)/2),0)}),se(i,o=>{hn=Math.max(o.zIndex,hn)}),{state:i,normal:O(()=>i.mode==="normal"),maximized:O(()=>i.mode==="maximized"),minimized:O(()=>i.mode==="minimized")}}function B6(n,e){const t=O(()=>{const{width:a,height:s,top:l,left:u,zIndex:c}=e;return{width:`${a}px`,height:`${s}px`,top:`${l}px`,left:`${u}px`,zIndex:c}}),r=O(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=O(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),o=O(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:o}}function z6(n,e,t){const r=o=>{e.mode=o,["maximized","minimized","normal"].includes(o)&&t(o),t("modeChange",o)},i=async()=>{(!n.beforeClose||await n.beforeClose())&&(t("update:modelValue",!1),t("close"),t("destroy"))};return{close:i,changeMode:r,show:()=>r("normal"),hide:()=>r("minimized"),active:o=>{const a=o.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(a.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++hn))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function D6(n,e,t,r){return O(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...De(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(o){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++hn),t("dragStart",o)},onMove(o){t("dragging",o)},onEnd(o){if(e.mode==="maximized")return;const{x:a,y:s}=o;e.left=a,e.top=s,e.dragging=!1,t("dragEnd",o)}}})}function I6(n,e,t){return O(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...De(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,o){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++hn),t("resizeStart",i,o)},onResizing(i,o){t("resizing",i,o)},onEnd(i,o){e.left=o.elementPositionX.value,e.top=o.elementPositionY.value,e.width=o.elementWidth.value,e.height=o.elementHeight.value,e.resizing=!1,t("resizeEnd",i,o)}}})}function R6(n,e){const t=n.componentInstance;if(!t)return;let r=null;return eo(()=>{const i=d(e),o=d(i?.bodyRef);r=t.$el,o&&o.$el&&o.$el.appendChild(r)}),to(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const M6=["src"],Rt=D({name:"XDialog",__name:"Dialog",props:T6,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=qn(),a=B(),s=B(),{state:l,maximized:u,minimized:c,normal:p}=O6(r,a),{styles:m,classes:h,wrapperClass:f,modalStyle:v}=B6(r,l),{changeMode:g,active:j,close:b,show:_,hide:k,submit:C,cancel:x}=z6(r,l,i),A=D6(r,l,i,a),T=I6(r,l,i),X=R6(r,s);Os(async()=>{r.modelValue&&(await ct(),o&&i("open",o))});const $=O(()=>s.value?.$el);return e({$vtjEl:$,panelRef:s,state:l,maximized:u,minimized:c,changeMode:g,show:_,hide:k,submit:C,cancel:x,close:b,componentInstance:X}),(E,P)=>r.modelValue?(y(),V(rd,{key:0,to:"body"},[R("div",{ref_key:"wrapper",ref:a,class:de(["x-dialog__wrapper",d(f)])},[r.modal?(y(),M("div",{key:0,class:"x-dialog__modal",style:Bt(d(v))},null,4)):I("",!0),xt((y(),V(d(Qn),ve({ref_key:"panelRef",ref:s,class:["x-dialog",d(h)],card:"",shadow:"always",header:{icon:r.icon,subtitle:r.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:d(m),size:r.size,body:{padding:r.bodyPadding},onClick:d(j)},E.$attrs),qt({title:S(()=>[ue(te(r.title),1)]),actions:S(()=>[ce(E.$slots,"actions"),r.minimizable?(y(),V(d(Oe),{key:0,icon:d(ku),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:P[0]||(P[0]=z=>d(g)("minimized"))},null,8,["icon","size"])):I("",!0),r.maximizable?(y(),M(ne,{key:1},[d(p)?(y(),V(d(Oe),{key:1,icon:d(Su),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:P[2]||(P[2]=z=>d(g)("maximized"))},null,8,["icon","size"])):(y(),V(d(Oe),{key:0,icon:d(ju),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:P[1]||(P[1]=z=>d(g)("normal"))},null,8,["icon","size"]))],64)):I("",!0),r.closable?(y(),V(d(Oe),{key:2,icon:d(Vu),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:d(b)},null,8,["icon","size","onClick"])):I("",!0)]),default:S(()=>[ce(E.$slots,"default",{},()=>[r.content?(y(),V(Ke(r.content),{key:0})):I("",!0),r.src?(y(),M("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,M6)):I("",!0)])]),_:2},[r.cancel||r.submit||E.$slots.footer||E.$slots.extra||E.$slots.handle?{name:"footer",fn:S(()=>[ce(E.$slots,"footer",{},()=>[w(d(ae),{align:"center"},{default:S(()=>[ce(E.$slots,"extra")]),_:3}),w(d(ae),{align:"center"},{default:S(()=>[ce(E.$slots,"handle"),r.cancel?(y(),V(d(Ve),{key:0,type:"default",size:r.size,onClick:d(x)},{default:S(()=>[ue(te(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):I("",!0),r.submit?(y(),V(d(Ve),{key:1,type:"primary",size:r.size,onClick:d(C)},{default:S(()=>[ue(te(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):I("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[d(A6),d(A)],[d(Gi),d(T)]])],2)])):I("",!0)}});function $c(n,e){const t=document.createElement("div"),r=w(Rt,n);r.appContext=e??$c._context,Xo(r,t);const i=()=>{Xo(null,t),t.parentNode?.removeChild(t)};return r.props.onDestroy=()=>{i()},document.body.appendChild(t),{vnode:r,destroy:i}}const P6=D({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(ao),wt(Dt(t.$attrs)),{default:S(()=>[(y(!0),M(ne,null,oe(e.options,(i,o)=>(y(),V(d(so),ve({key:`item_${o}_${i.value}`},i),qt({_:2},[t.$slots.option?{name:"default",fn:S(()=>[ce(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),N6=D({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=O(()=>zt(e.button?fd:vd));return(r,i)=>(y(),V(d(gd),wt(Dt(r.$attrs)),{default:S(()=>[(y(!0),M(ne,null,oe(e.options,(o,a)=>(y(),V(Ke(t.value),{key:`item_${a}_${o.value}`,label:o.label,value:o.value},{default:S(()=>[ue(te(o.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},16))}}),F6=D({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=O(()=>zt(e.button?Dn:yd));return(r,i)=>(y(),V(d(lo),wt(Dt(r.$attrs)),{default:S(()=>[(y(!0),M(ne,null,oe(e.options,(o,a)=>(y(),V(Ke(t.value),{key:`item_${a}_${o.value}`,label:o.label,value:o.value},{default:S(()=>[ue(te(o.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},16))}}),Ec={none:{component:"div",props:{class:"x-field-none"}},text:{component:tt,props:{clearable:!0},defaultValue:""},textarea:{component:tt,props:{type:"textarea",rows:2},defaultValue:""},select:{component:P6,props:{clearable:!0}},checkbox:{component:N6,props:{},defaultValue:[]},radio:{component:F6,props:{}},number:{component:Ds,props:{}},date:{component:Qo,props:{}},time:{component:pd,props:{}},datetime:{component:Qo,props:{type:"datetime"}},switch:{component:oo,props:{}},rate:{component:hd,props:{}},slider:{component:Is,props:{}},cascader:{component:md,props:{}}},H6={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){return Ec[n.editor]?.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]},error:{type:String},tip:{type:String},inline:{type:Boolean}};async function L6(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function U6(n,e,t,r,i){const o=B([]),a=O(()=>!r||!i?{}:Vo(n.cascader).reduce((s,l)=>(s[l]=mr(i,l),s),{}));return se(a,async s=>{if(t.value){o.value=await L6(n,s);const l=r?.exposed?.reset;l&&n.name&&l(n.name)}},{immediate:!0}),{editor:O(()=>{const{editor:s="text",placeholder:l,label:u="...",disabled:c,readonly:p}=n,m={...n.props,placeholder:l||(l===null?void 0:`请输入${u}`),disabled:c,readonly:p,options:o.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},h=typeof s=="string"?Ec[s]:{component:s,props:{}};return dt({},h,{props:m})})}}const W6={key:1,class:"el-form-item__error"},J6={key:0,class:"x-field__tip"},ee=D({name:"XField",__name:"Field",props:H6,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=Jt(Ac,null),a=Jt(sd,null),s=Jt(Tc,null),l=O(()=>!o?.proxy||!s?r.visible:typeof r.visible=="function"?r.visible(s):De(r.visible)?Object.entries(r.visible).every(([C,x])=>mr(s,C)===x):r.visible),u=()=>o?.proxy&&s&&r.name?mr(s,r.name)??r.modelValue:r.modelValue,c=B(u()),{editor:p}=U6(r,i,l,o,s),m=B(),h=B(),f=O(()=>r.size||a?.size||"default"),v=O(()=>Object.assign({},o?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),g=(C="")=>r.error?r.error:C.includes("is required")?`${r.label||r.name}是必填项!`:C,j=O(()=>{const C=o?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!C&&!!r.tooltipPosition}}),b=O(()=>{const C=o?.proxy;return{width:r.width?Jn(r.width):C&&C.inline&&C.inlineColumns?`${100/C.inlineColumns}%`:null}}),_=O(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),k=O(()=>({...p.value.props,modelValue:c.value,"onUpdate:modelValue":C=>{c.value=C}}));return se(c,(C,x)=>{l.value&&!jo(C,x)&&(i("update:modelValue",C),o?.proxy&&s&&r.name&&ei(s,r.name,C))}),se(()=>!o?.proxy||!r.name||!s?r.modelValue:mr(s,r.name)??r.modelValue,C=>{l.value&&(c.value=C)},{immediate:!0}),se(l,C=>{o?.proxy&&s&&r.name&&(C?(c.value=u(),ei(s,r.name,c.value)):(c.value=void 0,ei(s,r.name,void 0)))},{immediate:!0}),e({fieldValue:c,itemRef:m,editorRef:h,focus:()=>{h.value?.focus&&h.value.focus()},blur:()=>{h.value?.foucs&&h.value.blur()}}),(C,x)=>l.value?(y(),V(d(no),ve({key:0,class:["x-field",j.value],ref_key:"itemRef",ref:m,prop:r.name,label:C.label,size:f.value,style:b.value},C.$attrs),qt({error:S(({error:A})=>[ce(C.$slots,"error",{error:A},()=>[d(o)?.props.tooltipMessage??r.tooltipMessage?(y(),M("div",{key:0,class:"x-field__info",style:Bt(_.value)},[w(d(Br),ve({content:g(A)},v.value),{default:S(()=>[w(d(rt),{class:"x-field__trigger",icon:d(Bd),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(y(),M("div",W6,te(g(A)),1))])]),default:S(()=>[R("div",{class:de(["x-field__editor_wrap",{"is-inline":r.inline}])},[ce(C.$slots,"editor",{editor:k.value},()=>[d(p).component?(y(),V(Ke(d(p).component),ve({key:0,class:"x-field__editor",ref_key:"editorRef",ref:h,modelValue:c.value,"onUpdate:modelValue":x[0]||(x[0]=A=>c.value=A)},d(p).props),qt({_:2},[C.$slots.option?{name:"option",fn:S(({option:A})=>[ce(C.$slots,"option",{option:A})]),key:"0"}:void 0]),1040,["modelValue"])):I("",!0)]),r.tip||C.$slots.tip?(y(),M("div",J6,[ce(C.$slots,"tip",{},()=>[ue(te(r.tip),1)])])):I("",!0)],2),ce(C.$slots,"default")]),_:2},[C.$slots.label?{name:"label",fn:S(()=>[ce(C.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):I("",!0)}}),q6={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function},tooltipMessage:{type:[Object,Boolean],default:void 0}},Ac=Symbol("formInstanceKey"),Tc=Symbol("formModelKey"),Kr=D({name:"XForm",__name:"Form",props:q6,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=qn(),a=B(),s=Gt(r.model||{}),l=B(!1);vi(Ac,o),vi(Tc,s),se(()=>r.model,p=>{Object.assign(s,p)},{deep:!0}),se(s,()=>{i("change",ln(s))});const u=async()=>{await a.value.validate().catch(()=>!1)&&(i("submit",ln(s)),r.submitMethod&&(l.value=!0,await r.submitMethod(ln(s)),l.value=!1))},c=p=>{a.value.resetFields(p),i("reset")};return e({formRef:a,model:s,submit:u,reset:c}),(p,m)=>(y(),V(d(qe),ve({ref_key:"formRef",ref:a,class:"x-form",inline:r.inline,model:s,onKeyup:zn(u,["enter"]),onSubmit:m[1]||(m[1]=un(()=>{},["stop","prevent"]))},p.$attrs),{default:S(()=>[ce(p.$slots,"default"),r.footer?(y(),V(d(ee),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:S(()=>[ce(p.$slots,"footer",{},()=>[r.submitText?(y(),V(d(Ve),{key:0,loading:l.value,type:"primary",onClick:u},{default:S(()=>[ue(te(r.submitText),1)]),_:1},8,["loading"])):I("",!0),r.resetText?(y(),V(d(Ve),{key:1,type:"default",onClick:m[0]||(m[0]=()=>c())},{default:S(()=>[ue(te(r.resetText),1)]),_:1})):I("",!0),ce(p.$slots,"action")])]),_:3})):I("",!0)]),_:3},16,["inline","model"]))}}),K6={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},kt=D({name:"XDialogForm",__name:"DialogForm",props:K6,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=B(),a=B(),s=O(()=>a.value?.$vtjEl),l=()=>{o.value?.submit()},u=()=>{i("update:modelValue",!1),i("close")},c=async h=>{i("submit",h),r.submitMethod?await r.submitMethod(h)&&u():u()},p=O(()=>r.formProps?.disabled?!1:r.submit),m=O(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:s,formRef:o,dialogRef:a}),(h,f)=>(y(),V(d(Rt),ve({ref_key:"dialogRef",ref:a,class:"x-dialog-form","model-value":r.modelValue,submit:p.value,cancel:m.value,size:r.size,onSubmit:l,onClose:u,minimizable:!1,maximizable:!1},h.$attrs),qt({default:S(()=>[w(d(Kr),ve({ref_key:"formRef",ref:o,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":c},r.formProps),{default:S(()=>[ce(h.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[h.$slots.extra?{name:"extra",fn:S(()=>[ce(h.$slots,"extra")]),key:"0"}:void 0,h.$slots.handle?{name:"handle",fn:S(()=>[ce(h.$slots,"handle")]),key:"1"}:void 0,h.$slots.footer?{name:"footer",fn:S(()=>[ce(h.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),G6={items:{type:Array,default(){return[]}},border:{type:Boolean},fit:{type:Boolean},align:{type:String}},Y6={class:"x-tabs__label-inner"},X6={key:0,class:"x-tabs__actions"},Jo=D({name:"XTabs",__name:"Tabs",props:G6,emits:["actionClick","actionCommand"],setup(n,{emit:e}){const t=n,r=e,i=l=>{const{label:u,name:c,value:p,disabled:m,closable:h,lazy:f}=l;return{label:u,name:p??c,disabled:m,closable:h,lazy:f}},o=O(()=>({"is-no-border":!t.border,"is-fit":!!t.fit,[`is-align-${t.align}`]:!!t.align})),a=l=>{r("actionClick",l)},s=l=>{r("actionCommand",l)};return(l,u)=>(y(),V(d(ud),ve({class:["x-tabs",o.value]},l.$attrs),{default:S(()=>[(y(!0),M(ne,null,oe(t.items,c=>(y(),V(d(ld),ve({key:c.value??c.name},i(c)),{label:S(()=>[ce(l.$slots,"label",wt(Dt(c)),()=>[c.icon?(y(),V(Ke(d(Uo)(c.icon)),{key:0,class:"x-tabs__icon"})):I("",!0),R("div",Y6,[ue(te(c.label)+" ",1),c.actions&&[c.name,c.value].includes(l.$attrs.modelValue)?(y(),M("div",X6,[(y(!0),M(ne,null,oe(c.actions,p=>(y(),V(d(Oe),ve({mode:"icon",type:"primary",size:"small",circle:""},p,{onClick:a,onCommand:s}),null,16))),256))])):I("",!0)])])]),default:S(()=>[ce(l.$slots,"default",wt(Dt(c)),()=>[c.component?(y(),V(Ke(c.component),wt(ve({key:0},c.props)),null,16)):I("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}}),Q6={units:{type:[String,Object,Array]},unit:{type:String},appendWidth:{type:Number,default:100},withUnit:{type:Boolean,default:!0},format:{type:String},modelValue:{type:[String,Number]},selectProps:{type:Object}},Oc=D({name:"XInputUnit",__name:"InputUnit",props:Q6,emits:["update:modelValue","update:unit","change","unit-change"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=O(()=>Vo(r.units).map(f=>typeof f=="string"?{label:f,value:f}:f)),a=O(()=>{const f=o.value.map(v=>v.value);return r.unit&&f.push(r.unit),pu(f)}),s=B(),l=B(),u=f=>r.format&&f?R2(Number(f)||0,r.format):f,c=f=>{if(!r.withUnit||typeof f!="string")return{value:u(f),unit:r.unit};for(const v of a.value){const g=new RegExp(`${v}$`);if(g.test(f))return{value:u(f.toString().replace(g,"")),unit:v}}return{value:u(f),unit:r.unit}},p=()=>{const f=u(l.value),v=s.value;return r.withUnit&&f&&v?`${f}${v}`:f};se(()=>r.modelValue,f=>{const{value:v,unit:g}=c(f);s.value=g,l.value=v},{immediate:!0}),se(l,f=>{i("change",f)});const m=async()=>{const{value:f,unit:v}=c(p());l.value=f,s.value=v,i("update:modelValue",p())},h=()=>{i("unit-change",s.value),m()};return e({parser:c,formatValue:u}),(f,v)=>(y(),V(d(tt),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=g=>l.value=g),modelModifiers:{trim:!0},class:"x-input-unit",onChange:m},qt({_:2},[o.value.length?{name:"append",fn:S(()=>[w(d(ao),ve({class:"x-input-unit__unit",modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=g=>s.value=g),size:f.$attrs.size,style:{width:`${r.appendWidth}px`}},f.$props.selectProps,{onChange:h}),{default:S(()=>[(y(!0),M(ne,null,oe(o.value,g=>(y(),V(d(so),{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","size","style"])]),key:"0"}:{name:"suffix",fn:S(()=>[s.value?(y(),M("div",{key:0,class:"x-input-unit__unit"},[R("span",null,te(s.value),1)])):I("",!0)]),key:"1"}]),1032,["modelValue"]))}});/**!
78
+ */const h6={default:14,small:12,large:18},m6={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String},background:{type:String},padding:{type:Number},radius:{type:Number}};function Jn(n){return typeof n=="string"?n:`${n}px`}function dr(n=0,e){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const t=Number.parseInt(n);return Math.floor(e*t/100)}return Number.parseInt(n)}const f6=["src"],rt=D({name:"XIcon",__name:"Icon",props:m6,setup(n){const e=n,t=Zi(),r=qn(),i=O(()=>{if(!e.icon)return null;const l=r?.appContext.app;return typeof e.icon=="object"?zt(e.icon):l?.component(e.icon)||e.icon}),o=O(()=>{const l={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(l[e.icon]=!0),l}),a=O(()=>({"background-color":e.background,"border-radius":e.radius?Jn(e.radius):void 0,padding:e.padding?Jn(e.padding):void 0})),s=O(()=>typeof e.size=="number"?e.size:h6[e.size]??void 0);return(l,u)=>(y(),V(d(cd),{class:de(["x-icon",o.value]),color:e.color,size:s.value,style:Bt(a.value)},{default:k(()=>[ce(l.$slots,"default",{},()=>[i.value?(y(),V(Ke(i.value),{key:0})):I("",!0),e.src?(y(),M("img",{key:1,src:e.src},null,8,f6)):I("",!0)])]),_:3},8,["class","color","size","style"]))}}),Cc={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function v6(n){return O(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function g6(n){return O(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function y6(n){return O(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function b6(n){const e=qn();return O(()=>{const t=d(n);if(t)if(typeof t=="string"||t.setup||t.render||id(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function Uo(n){const e=b6(n);return e.value?zt(D({render:()=>Re(rt,e.value)})):void 0}function Wo(n,e){return O(()=>{const t=d(n);return typeof t=="function"?t(e):!!t})}const w6={key:0},x6=D({__name:"Trigger",props:Cc,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=Uo(jr(t,"icon")),o=Wo(jr(t,"disabled")),a=O(()=>({[`is-${t.mode}`]:!!t.mode,[`is-${t.type}`]:!!t.type,[`is-${t.size}`]:!!t.size&&t.size!=="default",[`is-background-${t.background}`]:t.mode==="icon"&&!!t.background,"is-disabled":!!t.disabled,"is-circle":!!t.circle})),s=l=>{if(l.preventDefault(),!o.value)return r("click"),!1};return(l,u)=>t.mode==="button"?(y(),V(d(Ve),ve({key:0,icon:d(i),type:t.type,size:t.size,disabled:d(o)},t.button,{onClick:s}),{default:k(()=>[ue(te(l.label),1)]),_:1},16,["icon","type","size","disabled"])):(y(),M("div",{key:1,class:de(["x-action__inner",a.value]),onClick:s},[(y(),V(Ke(d(i)))),l.label?(y(),M("span",w6,te(l.label),1)):I("",!0)],2))}}),Oe=D({name:"XAction",__name:"Action",props:Cc,emits:["click","command"],setup(n,{emit:e}){const t=n,r=nd(),i=e,o=v6(t),a=g6(t),s=y6(t),l=Wo(jr(t,"disabled")),u=O(()=>({[`x-action--${t.mode}`]:!!t.mode})),c=()=>{l.value||i("click",ln(t))},p=g=>{if(l.value)return;const j=t.menus?.find(w=>w.command===g);j&&i("command",ln(j))},m=g=>Re(dd,a.value,()=>[].concat(g)),h=g=>Re(io,{...s.value,disabled:l.value,onCommand:p},{default:()=>[g],dropdown:()=>[Re(ro,()=>(t.menus||[]).map((j,w)=>Re(Vr,j,()=>r.item?r.item({item:j,index:w}):j.label)))]}),f=g=>Re(Br,{...o.value,disabled:l.value},()=>[g]),v=O(()=>{let g=Re(zt(x6),{...t,onClick:c});const j=r.default?.();return j&&j.length&&(g=j[0]),a.value&&(g=m(g)),s.value&&(g=h(g)),o.value&&(g=f(g)),g});return(g,j)=>(y(),M("div",{class:de(["x-action",u.value])},[(y(),V(Ke(v.value)))],2))}}),_6={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},S6=D({name:"XActionBar",__name:"ActionBar",props:_6,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>(t.items||[]).map(s=>s==="|"?s:{...s,badge:s.badge?{...t.badge,...typeof s.badge=="object"?s.badge||{}:{value:s.badge}}:void 0,tooltip:s.tooltip?{...t.tooltip,...typeof s.tooltip=="object"?s.tooltip||{}:{content:s.tooltip}}:void 0})),o=s=>{r("click",s)},a=(s,l)=>{r("command",s,l)};return(s,l)=>(y(),V(d(ae),{class:"x-action-bar",align:"center"},{default:k(()=>[(y(!0),M(ne,null,oe(i.value,u=>(y(),M(ne,null,[u==="|"?(y(),V(d(zr),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(y(),V(d(Oe),ve({key:1,mode:t.mode,size:t.size,type:t.type,circle:t.circle,background:t.background,button:t.button,dropdown:t.dropdown,disabled:d(Wo)(t.disabled,u).value},u,{onClick:o,onCommand:c=>a(u,c)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),k6={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1},gap:{type:Boolean},autoPointer:{type:Boolean}},ae=D({name:"XContainer",__name:"Container",props:k6,setup(n){const e=n,t=Zi(),r=qn(),i=O(()=>{const s=r?.parent;if(!s)return!1;const l=s.proxy;return l.$options.name==="XContainer"||!!l.flex}),o=O(()=>({"is-fit":e.fit,"is-flex":e.flex&&!e.inline,"is-inline-flex":e.flex&&e.inline,[`is-direction-${e.direction}`]:e.flex&&e.direction!=="row",[`is-wrap-${e.wrap}`]:e.flex&&e.wrap!=="nowrap",[`is-justify-${e.justify}`]:e.flex&&e.justify!=="flex-start",[`is-align-${e.align}`]:e.flex&&e.align!=="flex-start",[`is-align-content-${e.alignContent}`]:e.flex&&e.alignContent!=="stretch","is-grow":e.grow??i.value,"is-shrink":e.shrink,[`is-align-self-${e.alignSelf}`]:i.value&&e.alignSelf!=="auto",[`is-overflow-${e.overflow}`]:!!e.overflow,"is-padding":!!e.padding,"is-pointer":e.autoPointer&&!!t.onClick,"is-gap":!!e.gap})),a=O(()=>{const{width:s,height:l,fit:u}=e;return u?null:{width:s?Jn(s):void 0,height:l?Jn(l):void 0}});return(s,l)=>(y(),V(Ke(e.tag),{class:de(["x-container",o.value]),style:Bt(a.value)},{default:k(()=>[ce(s.$slots,"default")]),_:3},8,["class","style"]))}}),j6={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},V6={class:"x-header__content"},C6={key:0,class:"x-header__actions"},$6=D({name:"XHeader",inheritAttrs:!1,__name:"Header",props:j6,setup(n){const e=n,t=Uo(jr(e,"icon")),r=Zi(),i=O(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(o,a)=>(y(),V(d(ae),{class:de(["x-header",i.value]),justify:"space-between",align:"center"},{default:k(()=>[b(d(ae),{align:"center",class:de(["x-header__wrapper",i.value]),grow:"",onClick:d(r).onClick},{default:k(()=>[d(t)?(y(),V(Ke(d(t)),{key:0,class:"x-header__icon",onClick:d(r).onClickIcon||d(r).onClick},null,8,["onClick"])):I("",!0),R("span",V6,[ce(o.$slots,"default",{},()=>[ue(te(e.content),1)])]),e.more?(y(),V(d(rt),{key:1,class:"x-header__more",icon:d(Ns)},null,8,["icon"])):I("",!0),e.subtitle||o.$slots.subtitle?(y(),M("span",{key:2,class:"x-header__subtitle",onClick:a[0]||(a[0]=(...s)=>d(r).onClick&&d(r).onClick(...s))},[ce(o.$slots,"subtitle",{},()=>[ue(te(e.subtitle),1)])])):I("",!0)]),_:3},8,["class","onClick"]),o.$slots.actions?(y(),M("div",C6,[ce(o.$slots,"actions")])):I("",!0)]),_:3},8,["class"]))}}),E6={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},body:{type:Object},footer:{type:Object}},Qn=D({name:"XPanel",__name:"Panel",props:E6,setup(n,{expose:e}){const t=n,r=B(),i=O(()=>({"x-panel--card":!!t.card,"x-panel--default":!t.card,[`is-${t.size}`]:!!t.size&&t.size!=="default","is-border":!!t.border,"is-radius":!!t.radius,[`is-shadow-${t.shadow}`]:!!t.shadow&&t.shadow!=="none"})),o=O(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),a=O(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(s,l)=>(y(),V(d(ae),{class:de(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:k(()=>[o.value?(y(),V(d(ae),{key:0,flex:!1,class:"x-panel__header"},{default:k(()=>[ce(s.$slots,"header",{},()=>[b(d($6),wt(Dt(o.value)),{default:k(()=>[ce(s.$slots,"title")]),actions:k(()=>[ce(s.$slots,"actions")]),_:3},16)])]),_:3})):I("",!0),b(d(ae),ve({ref_key:"bodyRef",ref:r,flex:!1,overflow:a.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:k(()=>[ce(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(y(),V(d(ae),ve({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:k(()=>[ce(s.$slots,"footer")]),_:3},16)):I("",!0)]),_:3},8,["class","fit","width","height"]))}}),xs="user-select-none";class _s{constructor(e,t={}){this.el=e,this.options=t,this.scope=Ts(),this.scope.run(()=>{this.init()})}scope;dragging=!1;getHandle(){const{selector:e,handle:t}=this.options;return e?this.el.querySelector(e):t}getTarget(){const{target:e="body"}=this.options;return typeof e=="string"?document.querySelector(e):d(e)||document.body}init(){const{el:e,options:t}=this,{disabled:r,delay:i=150,onStart:o,onEnd:a}=t;if(r)return;let s=null;const l=this.getHandle(),u=this.getTarget();let c=e.getBoundingClientRect(),p=null;const{x:m,y:h}=Fd(e,{initialValue:{x:c.x,y:c.y},...t,handle:l,onStart:(f,v)=>{document.body.classList.add(xs),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,c=e.getBoundingClientRect(),p=u?.getBoundingClientRect(),o&&o(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(s),document.body.classList.remove(xs),this.dragging&&p){this.dragging=!1;const{x:g,y:j}=f,w=this.getPosition(p,c,g,j);a&&a(w,v),p=null}}});se([m,h],()=>{if(this.dragging&&p){const f=this.getPosition(p,c,m.value,h.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:o=50}=this.options,a=-t.width+o,s=e.width-o,l=0,u=e.height-o,c=Math.min(s,Math.max(r,a)),p=Math.min(u,Math.max(i,l));return{x:c,y:p}}destory(){this.scope.stop()}}const A6={mounted(n,e){const t=e.value||{},r=new _s(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!jo(r.options,t)&&(r.destory(),n.__draggable__=new _s(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},hi="user-select-none";let Ss=class{constructor(e,t={}){this.el=e,this.options=t,this.scope=Ts(),this.scope.run(()=>{this.init()})}scope;resizing=B(!1);direction=B("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:o}=t;if(r)return;this.MIE=Nd(e),this.cleanMousedown=ta(document,"mousedown",()=>{this.direction?.value&&this.MIE&&(this.resizing.value=!0,e.classList.add("is-resizing",`is-${this.direction.value}-resizing`),i&&i(this.direction.value,this.MIE))}),this.cleanMouseup=ta(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),o&&o(this.direction.value,this.MIE)),this.resizing.value=!1}),se(this.direction,l=>{const u=document.body;u.style.cursor=l?`${l}-resize`:"",l?u.classList.add(hi):u.classList.remove(hi)});const{x:a,y:s}=this.MIE;se([a,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:o}=this,a=t?.value||"";if(!e||!r.value||!a)return;const{x:s,y:l,elementX:u,elementY:c,elementHeight:p,elementWidth:m}=e,{onResizing:h}=i,{minWidth:f=0,minHeight:v=0,maxWidth:g=99999,maxHeight:j=99999}=i;if(a.includes("e")){const w=Math.min(Math.max(u.value,f),g);o.style.width=`${w}px`}if(a.includes("s")){const w=Math.min(Math.max(c.value,v),j);o.style.height=`${w}px`}if(a.includes("w")){const w=Math.min(Math.max(m.value-u.value,f),g);o.style.width=`${w}px`,o.style.left=`${s.value}px`}if(a.includes("n")){const w=Math.min(Math.max(p.value-c.value,v),j);this.el.style.height=`${w}px`,this.el.style.top=`${l.value}px`}h&&h(a,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:o}=this.MIE;if(o.value)return"";const{dirs:a=["n","s","w","e"],edge:s=5}=this.options;let l="";return a.includes("n")&&t.value<=s?l+="n":a.includes("s")&&t.value>r.value-s&&(l+="s"),a.includes("w")&&e.value<=s?l+="w":a.includes("e")&&e.value>i.value-s&&(l+="e"),l}destory(){const e=document.body;e.style.cursor="",e.classList.remove(hi),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}};const Gi={mounted(n,e){const t=e.value||{},r=new Ss(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!jo(r.options,t)&&(r.destory(),n.__resizable__=new Ss(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},T6={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!1},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let hn=1e3;function O6(n,e){const{width:t,height:r}=mn(e),i=Gt({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++hn,dragging:!1,resizing:!1});return se([t,r],([o,a])=>{i.wrapperWidth=o,i.wrapperHeight=a,i.width=dr(n.width,o),i.height=dr(n.height,a),i.left=n.left?dr(n.left,o)-i.width/2:Math.max(Math.floor((o-i.width)/2),0),i.top=n.top?dr(n.top,a):Math.max(Math.floor((a-i.height)/2),0)}),se(i,o=>{hn=Math.max(o.zIndex,hn)}),{state:i,normal:O(()=>i.mode==="normal"),maximized:O(()=>i.mode==="maximized"),minimized:O(()=>i.mode==="minimized")}}function B6(n,e){const t=O(()=>{const{width:a,height:s,top:l,left:u,zIndex:c}=e;return{width:`${a}px`,height:`${s}px`,top:`${l}px`,left:`${u}px`,zIndex:c}}),r=O(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=O(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),o=O(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:o}}function z6(n,e,t){const r=o=>{e.mode=o,["maximized","minimized","normal"].includes(o)&&t(o),t("modeChange",o)},i=async()=>{(!n.beforeClose||await n.beforeClose())&&(t("update:modelValue",!1),t("close"),t("destroy"))};return{close:i,changeMode:r,show:()=>r("normal"),hide:()=>r("minimized"),active:o=>{const a=o.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(a.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++hn))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function D6(n,e,t,r){return O(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...De(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(o){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++hn),t("dragStart",o)},onMove(o){t("dragging",o)},onEnd(o){if(e.mode==="maximized")return;const{x:a,y:s}=o;e.left=a,e.top=s,e.dragging=!1,t("dragEnd",o)}}})}function I6(n,e,t){return O(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...De(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,o){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++hn),t("resizeStart",i,o)},onResizing(i,o){t("resizing",i,o)},onEnd(i,o){e.left=o.elementPositionX.value,e.top=o.elementPositionY.value,e.width=o.elementWidth.value,e.height=o.elementHeight.value,e.resizing=!1,t("resizeEnd",i,o)}}})}function R6(n,e){const t=n.componentInstance;if(!t)return;let r=null;return eo(()=>{const i=d(e),o=d(i?.bodyRef);r=t.$el,o&&o.$el&&o.$el.appendChild(r)}),to(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const M6=["src"],Rt=D({name:"XDialog",__name:"Dialog",props:T6,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=qn(),a=B(),s=B(),{state:l,maximized:u,minimized:c,normal:p}=O6(r,a),{styles:m,classes:h,wrapperClass:f,modalStyle:v}=B6(r,l),{changeMode:g,active:j,close:w,show:_,hide:S,submit:C,cancel:x}=z6(r,l,i),A=D6(r,l,i,a),T=I6(r,l,i),X=R6(r,s);Os(async()=>{r.modelValue&&(await ct(),o&&i("open",o))});const $=O(()=>s.value?.$el);return e({$vtjEl:$,panelRef:s,state:l,maximized:u,minimized:c,changeMode:g,show:_,hide:S,submit:C,cancel:x,close:w,componentInstance:X}),(E,P)=>r.modelValue?(y(),V(rd,{key:0,to:"body"},[R("div",{ref_key:"wrapper",ref:a,class:de(["x-dialog__wrapper",d(f)])},[r.modal?(y(),M("div",{key:0,class:"x-dialog__modal",style:Bt(d(v))},null,4)):I("",!0),xt((y(),V(d(Qn),ve({ref_key:"panelRef",ref:s,class:["x-dialog",d(h)],card:"",shadow:"always",header:{icon:r.icon,subtitle:r.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:d(m),size:r.size,body:{padding:r.bodyPadding},onClick:d(j)},E.$attrs),qt({title:k(()=>[ue(te(r.title),1)]),actions:k(()=>[ce(E.$slots,"actions"),r.minimizable?(y(),V(d(Oe),{key:0,icon:d(ku),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:P[0]||(P[0]=z=>d(g)("minimized"))},null,8,["icon","size"])):I("",!0),r.maximizable?(y(),M(ne,{key:1},[d(p)?(y(),V(d(Oe),{key:1,icon:d(Su),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:P[2]||(P[2]=z=>d(g)("maximized"))},null,8,["icon","size"])):(y(),V(d(Oe),{key:0,icon:d(ju),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:P[1]||(P[1]=z=>d(g)("normal"))},null,8,["icon","size"]))],64)):I("",!0),r.closable?(y(),V(d(Oe),{key:2,icon:d(Vu),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:d(w)},null,8,["icon","size","onClick"])):I("",!0)]),default:k(()=>[ce(E.$slots,"default",{},()=>[r.content?(y(),V(Ke(r.content),{key:0})):I("",!0),r.src?(y(),M("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,M6)):I("",!0)])]),_:2},[r.cancel||r.submit||E.$slots.footer||E.$slots.extra||E.$slots.handle?{name:"footer",fn:k(()=>[ce(E.$slots,"footer",{},()=>[b(d(ae),{align:"center"},{default:k(()=>[ce(E.$slots,"extra")]),_:3}),b(d(ae),{align:"center"},{default:k(()=>[ce(E.$slots,"handle"),r.cancel?(y(),V(d(Ve),{key:0,type:"default",size:r.size,onClick:d(x)},{default:k(()=>[ue(te(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):I("",!0),r.submit?(y(),V(d(Ve),{key:1,type:"primary",size:r.size,onClick:d(C)},{default:k(()=>[ue(te(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):I("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[d(A6),d(A)],[d(Gi),d(T)]])],2)])):I("",!0)}});function $c(n,e){const t=document.createElement("div"),r=b(Rt,n);r.appContext=e??$c._context,Xo(r,t);const i=()=>{Xo(null,t),t.parentNode?.removeChild(t)};return r.props.onDestroy=()=>{i()},document.body.appendChild(t),{vnode:r,destroy:i}}const P6=D({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(ao),wt(Dt(t.$attrs)),{default:k(()=>[(y(!0),M(ne,null,oe(e.options,(i,o)=>(y(),V(d(so),ve({key:`item_${o}_${i.value}`},i),qt({_:2},[t.$slots.option?{name:"default",fn:k(()=>[ce(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),N6=D({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=O(()=>zt(e.button?fd:vd));return(r,i)=>(y(),V(d(gd),wt(Dt(r.$attrs)),{default:k(()=>[(y(!0),M(ne,null,oe(e.options,(o,a)=>(y(),V(Ke(t.value),{key:`item_${a}_${o.value}`,label:o.label,value:o.value},{default:k(()=>[ue(te(o.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},16))}}),F6=D({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=O(()=>zt(e.button?Dn:yd));return(r,i)=>(y(),V(d(lo),wt(Dt(r.$attrs)),{default:k(()=>[(y(!0),M(ne,null,oe(e.options,(o,a)=>(y(),V(Ke(t.value),{key:`item_${a}_${o.value}`,label:o.label,value:o.value},{default:k(()=>[ue(te(o.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},16))}}),Ec={none:{component:"div",props:{class:"x-field-none"}},text:{component:tt,props:{clearable:!0},defaultValue:""},textarea:{component:tt,props:{type:"textarea",rows:2},defaultValue:""},select:{component:P6,props:{clearable:!0}},checkbox:{component:N6,props:{},defaultValue:[]},radio:{component:F6,props:{}},number:{component:Ds,props:{}},date:{component:Qo,props:{}},time:{component:pd,props:{}},datetime:{component:Qo,props:{type:"datetime"}},switch:{component:oo,props:{}},rate:{component:hd,props:{}},slider:{component:Is,props:{}},cascader:{component:md,props:{}}},H6={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){return Ec[n.editor]?.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]},error:{type:String},tip:{type:String},inline:{type:Boolean}};async function L6(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function U6(n,e,t,r,i){const o=B([]),a=O(()=>!r||!i?{}:Vo(n.cascader).reduce((s,l)=>(s[l]=mr(i,l),s),{}));return se(a,async s=>{if(t.value){o.value=await L6(n,s);const l=r?.exposed?.reset;l&&n.name&&l(n.name)}},{immediate:!0}),{editor:O(()=>{const{editor:s="text",placeholder:l,label:u="...",disabled:c,readonly:p}=n,m={...n.props,placeholder:l||(l===null?void 0:`请输入${u}`),disabled:c,readonly:p,options:o.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},h=typeof s=="string"?Ec[s]:{component:s,props:{}};return dt({},h,{props:m})})}}const W6={key:1,class:"el-form-item__error"},J6={key:0,class:"x-field__tip"},ee=D({name:"XField",__name:"Field",props:H6,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=Jt(Ac,null),a=Jt(sd,null),s=Jt(Tc,null),l=O(()=>!o?.proxy||!s?r.visible:typeof r.visible=="function"?r.visible(s):De(r.visible)?Object.entries(r.visible).every(([C,x])=>mr(s,C)===x):r.visible),u=()=>o?.proxy&&s&&r.name?mr(s,r.name)??r.modelValue:r.modelValue,c=B(u()),{editor:p}=U6(r,i,l,o,s),m=B(),h=B(),f=O(()=>r.size||a?.size||"default"),v=O(()=>Object.assign({},o?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),g=(C="")=>r.error?r.error:C.includes("is required")?`${r.label||r.name}是必填项!`:C,j=O(()=>{const C=o?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!C&&!!r.tooltipPosition}}),w=O(()=>{const C=o?.proxy;return{width:r.width?Jn(r.width):C&&C.inline&&C.inlineColumns?`${100/C.inlineColumns}%`:null}}),_=O(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),S=O(()=>({...p.value.props,modelValue:c.value,"onUpdate:modelValue":C=>{c.value=C}}));return se(c,(C,x)=>{l.value&&!jo(C,x)&&(i("update:modelValue",C),o?.proxy&&s&&r.name&&ei(s,r.name,C))}),se(()=>!o?.proxy||!r.name||!s?r.modelValue:mr(s,r.name)??r.modelValue,C=>{l.value&&(c.value=C)},{immediate:!0}),se(l,C=>{o?.proxy&&s&&r.name&&(C?(c.value=u(),ei(s,r.name,c.value)):(c.value=void 0,ei(s,r.name,void 0)))},{immediate:!0}),e({fieldValue:c,itemRef:m,editorRef:h,focus:()=>{h.value?.focus&&h.value.focus()},blur:()=>{h.value?.foucs&&h.value.blur()}}),(C,x)=>l.value?(y(),V(d(no),ve({key:0,class:["x-field",j.value],ref_key:"itemRef",ref:m,prop:r.name,label:C.label,size:f.value,style:w.value},C.$attrs),qt({error:k(({error:A})=>[ce(C.$slots,"error",{error:A},()=>[d(o)?.props.tooltipMessage??r.tooltipMessage?(y(),M("div",{key:0,class:"x-field__info",style:Bt(_.value)},[b(d(Br),ve({content:g(A)},v.value),{default:k(()=>[b(d(rt),{class:"x-field__trigger",icon:d(Bd),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(y(),M("div",W6,te(g(A)),1))])]),default:k(()=>[R("div",{class:de(["x-field__editor_wrap",{"is-inline":r.inline}])},[ce(C.$slots,"editor",{editor:S.value},()=>[d(p).component?(y(),V(Ke(d(p).component),ve({key:0,class:"x-field__editor",ref_key:"editorRef",ref:h,modelValue:c.value,"onUpdate:modelValue":x[0]||(x[0]=A=>c.value=A)},d(p).props),qt({_:2},[C.$slots.option?{name:"option",fn:k(({option:A})=>[ce(C.$slots,"option",{option:A})]),key:"0"}:void 0]),1040,["modelValue"])):I("",!0)]),r.tip||C.$slots.tip?(y(),M("div",J6,[ce(C.$slots,"tip",{},()=>[ue(te(r.tip),1)])])):I("",!0)],2),ce(C.$slots,"default")]),_:2},[C.$slots.label?{name:"label",fn:k(()=>[ce(C.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):I("",!0)}}),q6={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function},tooltipMessage:{type:[Object,Boolean],default:void 0}},Ac=Symbol("formInstanceKey"),Tc=Symbol("formModelKey"),Kr=D({name:"XForm",__name:"Form",props:q6,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=qn(),a=B(),s=Gt(r.model||{}),l=B(!1);vi(Ac,o),vi(Tc,s),se(()=>r.model,p=>{Object.assign(s,p)},{deep:!0}),se(s,()=>{i("change",ln(s))});const u=async()=>{await a.value.validate().catch(()=>!1)&&(i("submit",ln(s)),r.submitMethod&&(l.value=!0,await r.submitMethod(ln(s)),l.value=!1))},c=p=>{a.value.resetFields(p),i("reset")};return e({formRef:a,model:s,submit:u,reset:c}),(p,m)=>(y(),V(d(qe),ve({ref_key:"formRef",ref:a,class:"x-form",inline:r.inline,model:s,onKeyup:zn(u,["enter"]),onSubmit:m[1]||(m[1]=un(()=>{},["stop","prevent"]))},p.$attrs),{default:k(()=>[ce(p.$slots,"default"),r.footer?(y(),V(d(ee),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:k(()=>[ce(p.$slots,"footer",{},()=>[r.submitText?(y(),V(d(Ve),{key:0,loading:l.value,type:"primary",onClick:u},{default:k(()=>[ue(te(r.submitText),1)]),_:1},8,["loading"])):I("",!0),r.resetText?(y(),V(d(Ve),{key:1,type:"default",onClick:m[0]||(m[0]=()=>c())},{default:k(()=>[ue(te(r.resetText),1)]),_:1})):I("",!0),ce(p.$slots,"action")])]),_:3})):I("",!0)]),_:3},16,["inline","model"]))}}),K6={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},kt=D({name:"XDialogForm",__name:"DialogForm",props:K6,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=B(),a=B(),s=O(()=>a.value?.$vtjEl),l=()=>{o.value?.submit()},u=()=>{i("update:modelValue",!1),i("close")},c=async h=>{i("submit",h),r.submitMethod?await r.submitMethod(h)&&u():u()},p=O(()=>r.formProps?.disabled?!1:r.submit),m=O(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:s,formRef:o,dialogRef:a}),(h,f)=>(y(),V(d(Rt),ve({ref_key:"dialogRef",ref:a,class:"x-dialog-form","model-value":r.modelValue,submit:p.value,cancel:m.value,size:r.size,onSubmit:l,onClose:u,minimizable:!1,maximizable:!1},h.$attrs),qt({default:k(()=>[b(d(Kr),ve({ref_key:"formRef",ref:o,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":c},r.formProps),{default:k(()=>[ce(h.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[h.$slots.extra?{name:"extra",fn:k(()=>[ce(h.$slots,"extra")]),key:"0"}:void 0,h.$slots.handle?{name:"handle",fn:k(()=>[ce(h.$slots,"handle")]),key:"1"}:void 0,h.$slots.footer?{name:"footer",fn:k(()=>[ce(h.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),G6={items:{type:Array,default(){return[]}},border:{type:Boolean},fit:{type:Boolean},align:{type:String}},Y6={class:"x-tabs__label-inner"},X6={key:0,class:"x-tabs__actions"},Jo=D({name:"XTabs",__name:"Tabs",props:G6,emits:["actionClick","actionCommand"],setup(n,{emit:e}){const t=n,r=e,i=l=>{const{label:u,name:c,value:p,disabled:m,closable:h,lazy:f}=l;return{label:u,name:p??c,disabled:m,closable:h,lazy:f}},o=O(()=>({"is-no-border":!t.border,"is-fit":!!t.fit,[`is-align-${t.align}`]:!!t.align})),a=l=>{r("actionClick",l)},s=l=>{r("actionCommand",l)};return(l,u)=>(y(),V(d(ud),ve({class:["x-tabs",o.value]},l.$attrs),{default:k(()=>[(y(!0),M(ne,null,oe(t.items,c=>(y(),V(d(ld),ve({key:c.value??c.name},i(c)),{label:k(()=>[ce(l.$slots,"label",wt(Dt(c)),()=>[c.icon?(y(),V(Ke(d(Uo)(c.icon)),{key:0,class:"x-tabs__icon"})):I("",!0),R("div",Y6,[ue(te(c.label)+" ",1),c.actions&&[c.name,c.value].includes(l.$attrs.modelValue)?(y(),M("div",X6,[(y(!0),M(ne,null,oe(c.actions,p=>(y(),V(d(Oe),ve({mode:"icon",type:"primary",size:"small",circle:""},p,{onClick:a,onCommand:s}),null,16))),256))])):I("",!0)])])]),default:k(()=>[ce(l.$slots,"default",wt(Dt(c)),()=>[c.component?(y(),V(Ke(c.component),wt(ve({key:0},c.props)),null,16)):I("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}}),Q6={name:{type:String,default:"VTJ.PRO"},tagline:{type:String,default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{type:String,default:"开始设计"},actionLink:{type:String,default:"/@vtj/pro/"}},Z6={class:"x-startup"},ew={class:"x-startup__wrapper"},tw={class:"x-startup__name"},nw={class:"clip"},rw={class:"x-startup__tagline"},iw={class:"x-startup__actions"},ow=D({__name:"Startup",props:Q6,setup(n){const e=n,t=()=>{if(typeof window<"u"){let r=(window.__VTJ_LINK__||{}).href||window.location.pathname+"@vtj/pro/#/";window.location.href=r}};return(r,i)=>(y(),M("div",Z6,[R("div",ew,[R("div",tw,[R("span",nw,te(e.name),1)]),R("div",rw,te(e.tagline),1),R("div",iw,[b(d(Ve),{type:"primary",size:"large",round:"",icon:d(Fs),onClick:t},{default:k(()=>[ue(te(e.actionText),1)]),_:1},8,["icon"])])])]))}}),aw={units:{type:[String,Object,Array]},unit:{type:String},appendWidth:{type:Number,default:100},withUnit:{type:Boolean,default:!0},format:{type:String},modelValue:{type:[String,Number]},selectProps:{type:Object}},Oc=D({name:"XInputUnit",__name:"InputUnit",props:aw,emits:["update:modelValue","update:unit","change","unit-change"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=O(()=>Vo(r.units).map(f=>typeof f=="string"?{label:f,value:f}:f)),a=O(()=>{const f=o.value.map(v=>v.value);return r.unit&&f.push(r.unit),pu(f)}),s=B(),l=B(),u=f=>r.format&&f?R2(Number(f)||0,r.format):f,c=f=>{if(!r.withUnit||typeof f!="string")return{value:u(f),unit:r.unit};for(const v of a.value){const g=new RegExp(`${v}$`);if(g.test(f))return{value:u(f.toString().replace(g,"")),unit:v}}return{value:u(f),unit:r.unit}},p=()=>{const f=u(l.value),v=s.value;return r.withUnit&&f&&v?`${f}${v}`:f};se(()=>r.modelValue,f=>{const{value:v,unit:g}=c(f);s.value=g,l.value=v},{immediate:!0}),se(l,f=>{i("change",f)});const m=async()=>{const{value:f,unit:v}=c(p());l.value=f,s.value=v,i("update:modelValue",p())},h=()=>{i("unit-change",s.value),m()};return e({parser:c,formatValue:u}),(f,v)=>(y(),V(d(tt),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=g=>l.value=g),modelModifiers:{trim:!0},class:"x-input-unit",onChange:m},qt({_:2},[o.value.length?{name:"append",fn:k(()=>[b(d(ao),ve({class:"x-input-unit__unit",modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=g=>s.value=g),size:f.$attrs.size,style:{width:`${r.appendWidth}px`}},f.$props.selectProps,{onChange:h}),{default:k(()=>[(y(!0),M(ne,null,oe(o.value,g=>(y(),V(d(so),{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","size","style"])]),key:"0"}:{name:"suffix",fn:k(()=>[s.value?(y(),M("div",{key:0,class:"x-input-unit__unit"},[R("span",null,te(s.value),1)])):I("",!0)]),key:"1"}]),1032,["modelValue"]))}});/**!
79
79
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
80
80
  * @name @vtj/renderer
81
81
  * @author CHC chenhuachun1549@dingtalk.com
82
- * @version 0.7.32
82
+ * @version 0.7.34
83
83
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
84
- */const Rn="0.7.32";var Je=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(Je||{});const ks=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Z6=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],ew=["vIf","vShow","vModel","vFor","vBind"],Bc={String,Number,Boolean,Array,Object,Function,Date};function pr(n,e){return n.map(t=>z2(t)?t:`${e}${t}`)}function zc(n){return/\.css$/.test(n)}function Dc(n){return/\.js$/.test(n)}function js(n){return n.map(e=>`<script src="${pn.append(e,{v:Rn})}"><\/script>`).join("")}function tw(n=[]){return n.map(e=>`<link rel="stylesheet" href="${pn.append(e,{v:Rn})}" />`).join("")}function Ic(n,e){const t=n.filter(c=>!!c.enabled),r=[],i=[],o=[],a=[],s={},l=[],u={};return t.forEach(({urls:c,assetsUrl:p,library:m,assetsLibrary:h})=>{c?.forEach(f=>{Dc(f)&&r.push(f),zc(f)&&i.push(f)}),m&&(a.push(m),s[m]=pr(c||[],e)),p&&o.push(p),h&&l.push(h),m&&h&&(u[h]=m)}),{scripts:pr(r,e),css:pr(i,e),materials:pr(o,e),libraryExports:a,materialExports:pu(l),materialMapLibrary:u,libraryMap:s}}function Yi(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function Rc(n){return xn(n)?n:JSON.stringify(n)}function Mc(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const o=n.document,a=o.adoptedStyleSheets,s=Array.from(a).filter(l=>l.id!==e);o.adoptedStyleSheets=[...s,i]}else{const i=n.document;let o=i.getElementById(e);o?o.innerHTML=t:(o=i.createElement("style"),o.id=e,o.innerHTML=t,i.head.appendChild(o))}}async function nw(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&Mc(window,n,t)}function rw(n){return Pn(n)||Pn(n?.install)}function ft(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let o=(n.value||"").trim();o=o.replace(/this(\W|$)/g,(s,l)=>`__self${l}`),o=i.join(`
85
- `)+o;const a=`with(${t?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(e)}catch(i){if(Ge.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function Xi(n,e,t=!1,r=!1){const i=ft(n,e,t,r);if(typeof i!="function"&&(Ge.error("parseFunction.error","not a function",n,e?.__self??e),r))throw new Error(`"${n.value}" not a function`);return i}function Pe(n){return n&&n.type==="JSExpression"}function Zn(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function iw(n){return Pe(n)||Zn(n)}function gn(n){return iw(n)?n.value:JSON.stringify(n)}let rn=null;const ow=_c({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{Yt.error({message:n||"未知错误"})},showLoading:()=>{rn&&rn.close(),rn=Rs.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{rn&&(rn.close(),rn=null)}}});function aw(n,e){const{jsonp:t,request:r}=e;if(n.method==="jsonp")return(i={})=>t(n.url,{...n.jsonpOptions,query:i});{const i=n.headers?ft(n.headers,{},!0):void 0,o={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(a,s)=>r.send(dt(o,s||{},{data:a}))}}function Pc(n=[],e){return n.reduce((t,r)=>(t[r.id]=aw(r,e),t),{})}function Nc(n=[]){Mn.setup({timeout:"50-500"}),qo(),n.forEach(e=>sw(e))}function sw(n){if(!n.mock)return;const{url:e,mockTemplate:t}=n;if(e&&t){const r=$o(`${e}(.*)`),i=K2(e,{decode:decodeURIComponent}),o=ft(t,{},!0);Mn.mock(r,a=>{const s=pn.parse(a.url)||{},l=a.body instanceof FormData?Gb(a.body):a.body,u=i(a.url)?.params;return Object.assign(a,{data:l,params:s,query:u}),Mn.mock(o(a))})}}function qo(){Mn._mocked={}}class lw{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};$props={};$refs={};$el=null;$emit=null;$nextTick=null;$parent=null;$root=null;$attrs=null;$slots=null;$watch=null;$options=null;$forceUpdate=null;$components={};$libs={};$apis={};__transform={};constructor(e){const{mode:t,dsl:r,attrs:i}=e;this.__mode=t,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(e,t=Ir){const r=t.getCurrentInstance();if(!r)return;this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()})}__proxy(){this.__instance&&ks.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){ks.forEach(e=>{this[e]=null})}__parseFunction(e){if(e)if(this.__mode===Je.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return Xi({type:r,value:i},this)}else return Xi(e,this)}__parseExpression(e){if(e)if(this.__mode===Je.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return ft({type:r,value:i},this)}else return ft(e,this)}__ref(e=null,t){if(this.__mode!==Je.VNode)return e&&e!==this.__id&&(this.__contextRefs[e]=this),r=>{let i=r?.$vtjEl||r?.$el||r;if(!i){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}if(i.__vtj__=e,i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),Je.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const o=this.$refs[t];if(o){const a=new Set([].concat(o,r));this.$refs[t]=Array.from(a)}else this.$refs[t]=r}return r}}__clone(e={}){const t={...this.context,...e},r={...t,context:t};return r.context.__proto__=this.context,r.__proto__=this,r}}function Ko(n){const{Vue:e=Ir,mode:t=Je.Runtime,components:r={},libs:i={},apis:o={},loader:a}=n,s=e.computed(()=>n.dsl),l={$components:r,$libs:i,$apis:o},u=new lw({mode:t,dsl:s.value,attrs:l}),c=e.defineComponent({name:s.value.name,props:{...uw(s.value.props??[],u)},setup(p){u.$props=p,s.value.id&&Mc(n.window||window,s.value.id,s.value.css||""),u.state=cw(e,s.value.state??{},u);const m=dw(e,s.value.computed??{},u),h=pw(s.value.methods??{},u),f=hw(e,s.value.inject,u),v=mw(s.value.dataSources||{},u),g={...f,...m,...h,...v};return u.setup(g,e),fw(e,s.value.watch??[],u),{vtj:u}},emits:[...s.value.emits??[]],expose:["vtj"],render(){if(!s.value.nodes)return null;const p=s.value.nodes||[];return p.length===1?Or(p[0],u,e,a):p.map(m=>Or(m,u,e,a))},...vw(s.value.lifeCycles??{},u)});return{renderer:e.markRaw(c),context:u}}function uw(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>Bc[i]):void 0;return n.map(r=>xn(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:Pe(r.default)?e.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:t(i.type),required:i.required,default:i.default},r),{})}function cw(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let o=e[i];return Pe(o)?o=t.__parseExpression(o):Zn(o)&&(o=t.__parseFunction(o)),r[i]=o,r},{}))}function dw(n,e,t){return Object.entries(e??{}).reduce((r,[i,o])=>(r[i]=n.computed(t.__parseFunction(o)),r),{})}function pw(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function hw(n,e=[],t){return e.reduce((r,i)=>{const{name:o,from:a}=i||{};i.default;const s=Pe(a)?t.__parseExpression(a)||o:a??o,l=Pe(i.default)?t.__parseExpression(i.default):i.default??null;return r[o]=n.inject(s,l),r},{})}function mw(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],o=e.$apis[i.ref],a=Zn(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...s)=>{const l=await o.apply(e,s);return a?a(l):l},t},{})}function fw(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function vw(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}const gw=n=>n;function Go(n){const{getDsl:e,options:t}=n;return(r,i,o=Ir)=>!i||typeof i=="string"?r:i.type==="Schema"?o.defineAsyncComponent(async()=>{const a=await e(i.id);return a?Ko({...t,Vue:o,dsl:a,mode:Je.Runtime,loader:Go(n)}).renderer:null}):r}function Or(n,e,t=Ir,r=gw){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:o=[]}=n,{vIf:a,vFor:s,vShow:l,vModels:u,vBind:c}=yw(o);if(a&&!bw(a,e))return null;const p=m=>{const h=m.$components,f=(()=>{if(n.name==="component")return ww(m,n.props?.is);if(n.name==="slot")return n.name;const b=r(n.name,n.from,t);return xn(b)?h[b]??b:b})(),v=xw(i,n.props??{},m),g=_w(t,n.events??{},m);if(n.name==="slot")return Sw(t,n,v,m);c&&Object.assign(v,m.__parseExpression(c.value)),l&&(v.style=Object.assign(v.style??{},jw(l,m))),u.forEach(b=>{Object.assign(v,Vw(t,b,m))});const j=Cw(t,n.children??[],m,n);return t.createVNode(f,{...v,...g},j)};return s?Aw(s,p,e):p(e)}function yw(n=[]){const e=n.find(s=>Lt(s.name)==="vIf"),t=n.find(s=>Lt(s.name)==="vFor"),r=n.find(s=>Lt(s.name)==="vShow"),i=n.find(s=>Lt(s.name)==="vBind"),o=n.filter(s=>Lt(s.name)==="vModel"),a=n.filter(s=>!ew.includes(Lt(s.name)));return{vIf:e,vFor:t,vShow:r,vModels:o,vBind:i,others:a}}function bw(n,e){return!!e.__parseExpression(n.value)}function ww(n,e){return e?Pe(e)?n.__parseExpression(e):e:"div"}function xw(n,e,t){const r=Object.keys(e||{}).reduce((i,o)=>{let a=e[o];return Pe(a)?a=t.__parseExpression(a):Zn(a)&&(a=t.__parseFunction(a)),i[o]=a,i},{});return r.ref=t.__ref(n,r.ref),r}function _w(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((o,a)=>{const s=e[a],l=Fc(s.modifiers),u=l.find(m=>r.includes(m)),c="on"+_o(a)+(u&&i[u]||""),p=t.__parseFunction(s.handler);return p&&(o[c]=n.withModifiers(p,l)),o},{})}function Fc(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function Sw(n,e,t,r){const{children:i}=e,o=kw(e,r),a=r.$slots?.[o.name];return a?a(t):i?xn(i)?n.createTextVNode(i):Pe(i)?n.createTextVNode(Rc(r.__parseExpression(i))):Array.isArray(i)?i.map(s=>Or(s,r,n)):null:null}function kw(n,e){const{props:t}=n,r=t?.name||"default";return{name:Pe(r)?e.__parseExpression(r):r,params:[]}}function jw(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function Vw(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
84
+ */const Rn="0.7.34";var Je=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(Je||{});const ks=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],sw=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],lw=["vIf","vShow","vModel","vFor","vBind"],Bc={String,Number,Boolean,Array,Object,Function,Date};function pr(n,e){return n.map(t=>z2(t)?t:`${e}${t}`)}function zc(n){return/\.css$/.test(n)}function Dc(n){return/\.js$/.test(n)}function js(n){return n.map(e=>`<script src="${pn.append(e,{v:Rn})}"><\/script>`).join("")}function uw(n=[]){return n.map(e=>`<link rel="stylesheet" href="${pn.append(e,{v:Rn})}" />`).join("")}function Ic(n,e){const t=n.filter(c=>!!c.enabled),r=[],i=[],o=[],a=[],s={},l=[],u={};return t.forEach(({urls:c,assetsUrl:p,library:m,assetsLibrary:h})=>{c?.forEach(f=>{Dc(f)&&r.push(f),zc(f)&&i.push(f)}),m&&(a.push(m),s[m]=pr(c||[],e)),p&&o.push(p),h&&l.push(h),m&&h&&(u[h]=m)}),{scripts:pr(r,e),css:pr(i,e),materials:pr(o,e),libraryExports:a,materialExports:pu(l),materialMapLibrary:u,libraryMap:s}}function Yi(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function Rc(n){return xn(n)?n:JSON.stringify(n)}function Mc(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const o=n.document,a=o.adoptedStyleSheets,s=Array.from(a).filter(l=>l.id!==e);o.adoptedStyleSheets=[...s,i]}else{const i=n.document;let o=i.getElementById(e);o?o.innerHTML=t:(o=i.createElement("style"),o.id=e,o.innerHTML=t,i.head.appendChild(o))}}async function cw(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&Mc(window,n,t)}function dw(n){return Pn(n)||Pn(n?.install)}function ft(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let o=(n.value||"").trim();o=o.replace(/this(\W|$)/g,(s,l)=>`__self${l}`),o=i.join(`
85
+ `)+o;const a=`with(${t?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(e)}catch(i){if(Ge.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function Xi(n,e,t=!1,r=!1){const i=ft(n,e,t,r);if(typeof i!="function"&&(Ge.error("parseFunction.error","not a function",n,e?.__self??e),r))throw new Error(`"${n.value}" not a function`);return i}function Pe(n){return n&&n.type==="JSExpression"}function Zn(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function pw(n){return Pe(n)||Zn(n)}function gn(n){return pw(n)?n.value:JSON.stringify(n)}let rn=null;const hw=_c({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{Yt.error({message:n||"未知错误"})},showLoading:()=>{rn&&rn.close(),rn=Rs.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{rn&&(rn.close(),rn=null)}}});function mw(n,e){const{jsonp:t,request:r}=e;if(n.method==="jsonp")return(i={})=>t(n.url,{...n.jsonpOptions,query:i});{const i=n.headers?ft(n.headers,{},!0):void 0,o={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(a,s)=>r.send(dt(o,s||{},{data:a}))}}function Pc(n=[],e){return n.reduce((t,r)=>(t[r.id]=mw(r,e),t),{})}function Nc(n=[]){Mn.setup({timeout:"50-500"}),qo(),n.forEach(e=>fw(e))}function fw(n){if(!n.mock)return;const{url:e,mockTemplate:t}=n;if(e&&t){const r=$o(`${e}(.*)`),i=K2(e,{decode:decodeURIComponent}),o=ft(t,{},!0);Mn.mock(r,a=>{const s=pn.parse(a.url)||{},l=a.body instanceof FormData?G3(a.body):a.body,u=i(a.url)?.params;return Object.assign(a,{data:l,params:s,query:u}),Mn.mock(o(a))})}}function qo(){Mn._mocked={}}class vw{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};$props={};$refs={};$el=null;$emit=null;$nextTick=null;$parent=null;$root=null;$attrs=null;$slots=null;$watch=null;$options=null;$forceUpdate=null;$components={};$libs={};$apis={};__transform={};constructor(e){const{mode:t,dsl:r,attrs:i}=e;this.__mode=t,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(e,t=Ir){const r=t.getCurrentInstance();if(!r)return;this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()})}__proxy(){this.__instance&&ks.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){ks.forEach(e=>{this[e]=null})}__parseFunction(e){if(e)if(this.__mode===Je.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return Xi({type:r,value:i},this)}else return Xi(e,this)}__parseExpression(e){if(e)if(this.__mode===Je.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return ft({type:r,value:i},this)}else return ft(e,this)}__ref(e=null,t){if(this.__mode!==Je.VNode)return e&&e!==this.__id&&(this.__contextRefs[e]=this),r=>{let i=r?.$vtjEl||r?.$el||r;if(!i){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}if(i.__vtj__=e,i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),Je.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const o=this.$refs[t];if(o){const a=new Set([].concat(o,r));this.$refs[t]=Array.from(a)}else this.$refs[t]=r}return r}}__clone(e={}){const t={...this.context,...e},r={...t,context:t};return r.context.__proto__=this.context,r.__proto__=this,r}}function Ko(n){const{Vue:e=Ir,mode:t=Je.Runtime,components:r={},libs:i={},apis:o={},loader:a}=n,s=e.computed(()=>n.dsl),l={$components:r,$libs:i,$apis:o},u=new vw({mode:t,dsl:s.value,attrs:l}),c=e.defineComponent({name:s.value.name,props:{...gw(s.value.props??[],u)},setup(p){u.$props=p,s.value.id&&Mc(n.window||window,s.value.id,s.value.css||""),u.state=yw(e,s.value.state??{},u);const m=bw(e,s.value.computed??{},u),h=ww(s.value.methods??{},u),f=xw(e,s.value.inject,u),v=_w(s.value.dataSources||{},u),g={...f,...m,...h,...v};return u.setup(g,e),Sw(e,s.value.watch??[],u),{vtj:u}},emits:[...s.value.emits??[]],expose:["vtj"],render(){if(!s.value.nodes)return null;const p=s.value.nodes||[];return p.length===1?Or(p[0],u,e,a):p.map(m=>Or(m,u,e,a))},...kw(s.value.lifeCycles??{},u)});return{renderer:e.markRaw(c),context:u}}function gw(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>Bc[i]):void 0;return n.map(r=>xn(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:Pe(r.default)?e.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:t(i.type),required:i.required,default:i.default},r),{})}function yw(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let o=e[i];return Pe(o)?o=t.__parseExpression(o):Zn(o)&&(o=t.__parseFunction(o)),r[i]=o,r},{}))}function bw(n,e,t){return Object.entries(e??{}).reduce((r,[i,o])=>(r[i]=n.computed(t.__parseFunction(o)),r),{})}function ww(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function xw(n,e=[],t){return e.reduce((r,i)=>{const{name:o,from:a}=i||{};i.default;const s=Pe(a)?t.__parseExpression(a)||o:a??o,l=Pe(i.default)?t.__parseExpression(i.default):i.default??null;return r[o]=n.inject(s,l),r},{})}function _w(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],o=e.$apis[i.ref],a=Zn(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...s)=>{const l=await o.apply(e,s);return a?a(l):l},t},{})}function Sw(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function kw(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}const jw=n=>n;function Go(n){const{getDsl:e,options:t}=n;return(r,i,o=Ir)=>!i||typeof i=="string"?r:i.type==="Schema"?o.defineAsyncComponent(async()=>{const a=await e(i.id);return a?Ko({...t,Vue:o,dsl:a,mode:Je.Runtime,loader:Go(n)}).renderer:null}):r}function Or(n,e,t=Ir,r=jw){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:o=[]}=n,{vIf:a,vFor:s,vShow:l,vModels:u,vBind:c}=Vw(o);if(a&&!Cw(a,e))return null;const p=m=>{const h=m.$components,f=(()=>{if(n.name==="component")return $w(m,n.props?.is);if(n.name==="slot")return n.name;const w=r(n.name,n.from,t);return xn(w)?h[w]??w:w})(),v=Ew(i,n.props??{},m),g=Aw(t,n.events??{},m);if(n.name==="slot")return Tw(t,n,v,m);c&&Object.assign(v,m.__parseExpression(c.value)),l&&(v.style=Object.assign(v.style??{},Bw(l,m))),u.forEach(w=>{Object.assign(v,zw(t,w,m))});const j=Dw(t,n.children??[],m,n);return t.createVNode(f,{...v,...g},j)};return s?Mw(s,p,e):p(e)}function Vw(n=[]){const e=n.find(s=>Lt(s.name)==="vIf"),t=n.find(s=>Lt(s.name)==="vFor"),r=n.find(s=>Lt(s.name)==="vShow"),i=n.find(s=>Lt(s.name)==="vBind"),o=n.filter(s=>Lt(s.name)==="vModel"),a=n.filter(s=>!lw.includes(Lt(s.name)));return{vIf:e,vFor:t,vShow:r,vModels:o,vBind:i,others:a}}function Cw(n,e){return!!e.__parseExpression(n.value)}function $w(n,e){return e?Pe(e)?n.__parseExpression(e):e:"div"}function Ew(n,e,t){const r=Object.keys(e||{}).reduce((i,o)=>{let a=e[o];return Pe(a)?a=t.__parseExpression(a):Zn(a)&&(a=t.__parseFunction(a)),i[o]=a,i},{});return r.ref=t.__ref(n,r.ref),r}function Aw(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((o,a)=>{const s=e[a],l=Fc(s.modifiers),u=l.find(m=>r.includes(m)),c="on"+_o(a)+(u&&i[u]||""),p=t.__parseFunction(s.handler);return p&&(o[c]=n.withModifiers(p,l)),o},{})}function Fc(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function Tw(n,e,t,r){const{children:i}=e,o=Ow(e,r),a=r.$slots?.[o.name];return a?a(t):i?xn(i)?n.createTextVNode(i):Pe(i)?n.createTextVNode(Rc(r.__parseExpression(i))):Array.isArray(i)?i.map(s=>Or(s,r,n)):null:null}function Ow(n,e){const{props:t}=n,r=t?.name||"default";return{name:Pe(r)?e.__parseExpression(r):r,params:[]}}function Bw(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function zw(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
86
86
  ${e.value.value} = v;
87
- }`:"(v) => {}"},i=t.__parseFunction(r),o=Fc(e.modifiers),a=Pe(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[a]:t.__parseExpression(e.value),[`onUpdate:${a}`]:o.length&&i?n.withModifiers(i,o):i}}function Cw(n,e,t,r){if(!e)return null;if(xn(e))return{default:()=>e};if(Pe(e))return{default:()=>Rc(t.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const i=$w(e),o=a=>!a||!r?{}:r?.id&&Object.keys(a).length?{[`scope_${r.id}`]:a}:{};return Object.entries(i).reduce((a,[s,{nodes:l,params:u}])=>(a[s]=c=>{const p=u.length?L2(c??{},u):o(c);return l.map(m=>Or(m,t.__clone(p),n))},a),{})}return null}function $w(n){const e={default:{params:[],nodes:[]}};for(const t of n){const r=Ew(t.slot),i=r.name;e[i]?(e[i].nodes.push(t),e[i].params=e[i].params.concat(r.params)):e[i]={nodes:[t],params:r.params}}return e}function Ew(n="default"){return xn(n)?{name:n,params:[]}:{params:[],...n}}function Aw(n,e,t){const{value:r,iterator:i}=n,{item:o="item",index:a="index"}=i||{};let s=t.__parseExpression(r)||[];return Number.isInteger(s)&&(s=new Array(s).fill(!0).map((l,u)=>u+1)),Array.isArray(s)?s.map((l,u)=>e(t.__clone({[o]:l,[a]:u}))):(console.warn("[vForRender]:",`${r?.value} is not a Arrary`),[])}const Vs=D({name:"VtjPageContainer",async setup(){const n=Nw(),e=Wd(),t=e.params.id,r=t?n.getPage(t):n.getHomepage(),i=r?await n.getRenderComponent(r.id):null;return r&&Hd(r.title||"VTJ"),{provider:n,component:i,file:r,query:e.query}},render(){return this.component?Re(this.component,this.query):Re("div","页面不存在")}}),Tw={name:{type:String,default:"VTJ.PRO"},tagline:{type:String,default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{type:String,default:"开始设计"},actionLink:{type:String,default:"/@vtj/pro/"}},Ow={class:"x-startup"},Bw={class:"x-startup__wrapper"},zw={class:"x-startup__name"},Dw={class:"clip"},Iw={class:"x-startup__tagline"},Rw={class:"x-startup__actions"},Mw=D({__name:"Startup",props:Tw,setup(n){const e=n,t=()=>{if(typeof window<"u"){let r=(window.__VTJ_LINK__||{}).href||window.location.pathname+"@vtj/pro/#/";window.location.href=r}};return(r,i)=>(y(),M("div",Ow,[R("div",Bw,[R("div",zw,[R("span",Dw,te(e.name),1)]),R("div",Iw,te(e.tagline),1),R("div",Rw,[w(d(Ve),{type:"primary",size:"large",round:"",icon:d(Fs),onClick:t},{default:S(()=>[ue(te(e.actionText),1)]),_:1},8,["icon"])])])]))}}),Pw=D({name:"VtjStartupContainer",render(){return Re(Mw)}}),Hc=Symbol("Provider");class Lc extends Eo{mode;globals={};modules={};adapter={request:ow,jsonp:t6};apis={};dependencies={};materials={};library={};service;project=null;components={};nodeEnv="development";router=null;materialPath="./";constructor(e){super();const{service:t,mode:r=Je.Raw,dependencies:i,materials:o,project:a={},adapter:s={},globals:l={},modules:u={},router:c=null,materialPath:p="./",nodeEnv:m="development"}=e;this.mode=r,this.modules=u,this.service=t,this.router=c,this.materialPath=p,this.nodeEnv=m,i&&(this.dependencies=i),o&&(this.materials=o),Object.assign(this.globals,l),Object.assign(this.adapter,s),r!==Je.Design&&this.load(a)}async load(e){const t=this.modules[`.vtj/projects/${e.id}.json`];if(this.project=t?await t():await this.service.init(e),!this.project)throw new Error("project is null");const{dependencies:r=[],apis:i}=this.project,{dependencies:o,library:a,components:s,materialPath:l}=this,{libraryExports:u,libraryMap:c,materials:p,materialExports:m,materialMapLibrary:h}=Ic(r,l);for(const v of u){const g=o[v],j=window[v];if(j)a[v]=j;else if(g)window[v]=a[v]=await g();else{const b=c[v]||[];for(const _ of b)zc(_)&&await nw(v,pn.append(_,{v:Rn})),Dc(_)&&await bs(pn.append(_,{v:Rn})),a[v]=window[v]}}for(const v of p)await bs(pn.append(v,{v:Rn}));const f=this.materials||{};for(const v of m){const g=window[h[v]],j=tg[v];if(j)g&&j.forEach(b=>{s[b]=g[b]});else{const b=f[v]?(await f[v]()).default:window[v];b&&g&&(b.components||[]).forEach(_=>{s[_.name]=Yi(_,g)})}}i&&(this.apis=Pc(i,this.adapter),qo(),this.project.config?.mock&&Nc(i)),this.initRouter(),this.triggerReady()}initRouter(){const{router:e,project:t}=this;e&&(e.addRoute({path:"/page/:id",name:"VtjPage",component:Vs}),e.addRoute({path:"/",name:"VtjHomepage",component:t?.homepage?Vs:Pw}))}install(e){const t=e.config.globalProperties.installed||{};for(const[r,i]of Object.entries(this.library))!t[r]&&rw(i)&&(e.use(i),t[r]=!0);e.provide(Hc,this),e.config.globalProperties.installed=t}getFile(e){const{blocks:t=[]}=this.project||{};return this.getPage(e)||t.find(r=>r.id===e)||null}getPage(e){const{pages:t=[]}=this.project||{},r=(i,o=[])=>{for(const a of o){if(a.id===i)return a;if(a.children&&a.children.length){const s=r(i,a.children);if(s)return s}}};return r(e,t)||null}getHomepage(){const{homepage:e}=this.project||{};return e?this.getPage(e):null}async getDsl(e){const t=this.modules[`.vtj/files/${e}.json`];return t?await t():this.service.getFile(e).catch(()=>null)}async getRenderComponent(e){const t=this.getFile(e);if(!t)return Ge.warn(`Can not find file: ${e}`),null;const r=`.vtj/vue/${e}.vue`,i=this.modules[r];if(i)return(await i())?.default;const o=await this.getDsl(t.id);if(!o)return Ge.warn(`Can not find dsl: ${e}`),null;const{library:a,components:s,mode:l,apis:u}=this,c={mode:l,Vue:a.Vue,components:s,libs:a,apis:u,window},p=Go({getDsl:async h=>await this.getDsl(h)||null,options:c}),{renderer:m}=Ko({...c,dsl:o,loader:p});return m}}function c_(n){const e=new Lc(n);return{provider:e,onReady:t=>e.ready(t)}}function Nw(n={}){const e=Jt(Hc);if(!e)throw new Error("Can not find provider");if(e.mode===Je.Raw&&e.nodeEnv==="development"){const{id:t,version:r}=n;t&&r&&(async()=>{const i=await e.getDsl(t);i?.__VERSION__!==r&&Yt.warning({title:i?.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})()}return e}const Fw=new xc({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:n=>n.data?.code===0,showError:n=>{Yt.error({message:n||"未知错误"})}}}),Hw=(n="/vtj/local/repository/${type}.json")=>(e,t)=>Fw.send({url:n,method:"post",query:{type:e},data:{type:e,data:t}});class Lw{api;constructor(){this.api=Hw()}async init(e){return console.log("BaseService.init",e),{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return console.log("BaseService.saveMaterials",e,t),!1}async saveFile(e){return console.log("BaseService.saveFile",e),!1}async getFile(e){return console.log("BaseService.getFile",e),{}}async removeFile(e){return console.log("BaseService.removeFile",e),!1}async saveHistory(e){return console.log("BaseService.saveHistory",e),!1}async removeHistory(e){return console.log("BaseService.removeHistory",e),!1}async getHistory(e){return console.log("BaseService.getHistory",e),{}}async getHistoryItem(e,t){return console.log("BaseService.getHistoryItem",e,t),{}}async saveHistoryItem(e,t){return console.log("BaseService.saveHistoryItem",e,t),!1}async removeHistoryItem(e,t){return console.log("BaseService.removeHistoryItem",e,t),!1}async publish(e){return!!await this.api("publish",e).catch(()=>!1)}async publishFile(e,t){return!!await this.api("publishFile",{project:e,file:t}).catch(()=>!1)}async genVueContent(e,t){return await this.api("genVueContent",{project:e,dsl:t}).catch(()=>"")}async createRawPage(e){return await this.api("createRawPage",e).catch(()=>"")}async removeRawPage(e){return await this.api("removeRawPage",e).catch(()=>"")}}new Sc({type:"local",expired:0,prefix:"__VTJ_"});class d_ extends Lw{async init(e){return await this.api("init",e).catch(()=>null)||{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return!!await this.api("saveMaterials",{project:e,materials:H2(t)}).catch(()=>!1)}async saveFile(e){return!!await this.api("saveFile",e).catch(()=>!1)}async getFile(e){return await this.api("getFile",e).catch(()=>null)||{}}async removeFile(e){return!!await this.api("removeFile",e).catch(()=>!1)}async saveHistory(e){return!!await this.api("saveHistory",e).catch(()=>!1)}async removeHistory(e){return!!await this.api("removeHistory",e).catch(()=>!1)}async getHistory(e){return await this.api("getHistory",e).catch(()=>null)||{}}async getHistoryItem(e,t){return await this.api("getHistoryItem",{fId:e,id:t}).catch(()=>null)||{}}async saveHistoryItem(e,t){return!!await this.api("saveHistoryItem",{fId:e,item:t}).catch(()=>!1)}async removeHistoryItem(e,t){return!!await this.api("removeHistoryItem",{fId:e,ids:t}).catch(()=>!1)}}/**!
87
+ }`:"(v) => {}"},i=t.__parseFunction(r),o=Fc(e.modifiers),a=Pe(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[a]:t.__parseExpression(e.value),[`onUpdate:${a}`]:o.length&&i?n.withModifiers(i,o):i}}function Dw(n,e,t,r){if(!e)return null;if(xn(e))return{default:()=>e};if(Pe(e))return{default:()=>Rc(t.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const i=Iw(e),o=a=>!a||!r?{}:r?.id&&Object.keys(a).length?{[`scope_${r.id}`]:a}:{};return Object.entries(i).reduce((a,[s,{nodes:l,params:u}])=>(a[s]=c=>{const p=u.length?L2(c??{},u):o(c);return l.map(m=>Or(m,t.__clone(p),n))},a),{})}return null}function Iw(n){const e={default:{params:[],nodes:[]}};for(const t of n){const r=Rw(t.slot),i=r.name;e[i]?(e[i].nodes.push(t),e[i].params=e[i].params.concat(r.params)):e[i]={nodes:[t],params:r.params}}return e}function Rw(n="default"){return xn(n)?{name:n,params:[]}:{params:[],...n}}function Mw(n,e,t){const{value:r,iterator:i}=n,{item:o="item",index:a="index"}=i||{};let s=t.__parseExpression(r)||[];return Number.isInteger(s)&&(s=new Array(s).fill(!0).map((l,u)=>u+1)),Array.isArray(s)?s.map((l,u)=>e(t.__clone({[o]:l,[a]:u}))):(console.warn("[vForRender]:",`${r?.value} is not a Arrary`),[])}const Vs=D({name:"VtjPageContainer",async setup(){const n=Nw(),e=Wd(),t=e.params.id,r=t?n.getPage(t):n.getHomepage(),i=r?await n.getRenderComponent(r.id):null;return r&&Hd(r.title||"VTJ"),{provider:n,component:i,file:r,query:e.query}},render(){return this.component?Re(this.component,this.query):Re("div","页面不存在")}}),Pw=D({name:"VtjStartupContainer",render(){return Re(ow)}}),Hc=Symbol("Provider");class Lc extends Eo{mode;globals={};modules={};adapter={request:hw,jsonp:t6};apis={};dependencies={};materials={};library={};service;project=null;components={};nodeEnv="development";router=null;materialPath="./";constructor(e){super();const{service:t,mode:r=Je.Raw,dependencies:i,materials:o,project:a={},adapter:s={},globals:l={},modules:u={},router:c=null,materialPath:p="./",nodeEnv:m="development"}=e;this.mode=r,this.modules=u,this.service=t,this.router=c,this.materialPath=p,this.nodeEnv=m,i&&(this.dependencies=i),o&&(this.materials=o),Object.assign(this.globals,l),Object.assign(this.adapter,s),r!==Je.Design&&this.load(a)}async load(e){const t=this.modules[`.vtj/projects/${e.id}.json`];if(this.project=t?await t():await this.service.init(e),!this.project)throw new Error("project is null");const{dependencies:r=[],apis:i}=this.project,{dependencies:o,library:a,components:s,materialPath:l}=this,{libraryExports:u,libraryMap:c,materials:p,materialExports:m,materialMapLibrary:h}=Ic(r,l),f=window;f.CKEDITOR_VERSION=void 0;for(const g of u){const j=o[g],w=f[g];if(w)a[g]=w;else if(j)f[g]=a[g]=await j();else{const _=c[g]||[];for(const S of _)zc(S)&&await cw(g,pn.append(S,{v:Rn})),Dc(S)&&await bs(pn.append(S,{v:Rn})),a[g]=f[g]}}for(const g of p)await bs(pn.append(g,{v:Rn}));const v=this.materials||{};for(const g of m){const j=f[h[g]],w=tg[g];if(w)j&&w.forEach(_=>{s[_]=j[_]});else{const _=v[g]?(await v[g]()).default:f[g];_&&j&&(_.components||[]).forEach(S=>{s[S.name]=Yi(S,j)})}}i&&(this.apis=Pc(i,this.adapter),qo(),this.project.config?.mock&&Nc(i)),this.initRouter(),this.triggerReady()}initRouter(){const{router:e,project:t}=this;e&&(e.addRoute({path:"/page/:id",name:"VtjPage",component:Vs}),e.addRoute({path:"/",name:"VtjHomepage",component:t?.homepage?Vs:Pw}))}install(e){const t=e.config.globalProperties.installed||{};for(const[r,i]of Object.entries(this.library))!t[r]&&dw(i)&&(e.use(i),t[r]=!0);e.provide(Hc,this),e.config.globalProperties.installed=t}getFile(e){const{blocks:t=[]}=this.project||{};return this.getPage(e)||t.find(r=>r.id===e)||null}getPage(e){const{pages:t=[]}=this.project||{},r=(i,o=[])=>{for(const a of o){if(a.id===i)return a;if(a.children&&a.children.length){const s=r(i,a.children);if(s)return s}}};return r(e,t)||null}getHomepage(){const{homepage:e}=this.project||{};return e?this.getPage(e):null}async getDsl(e){const t=this.modules[`.vtj/files/${e}.json`];return t?await t():this.service.getFile(e).catch(()=>null)}async getRenderComponent(e){const t=this.getFile(e);if(!t)return Ge.warn(`Can not find file: ${e}`),null;const r=`.vtj/vue/${e}.vue`,i=this.modules[r];if(i)return(await i())?.default;const o=await this.getDsl(t.id);if(!o)return Ge.warn(`Can not find dsl: ${e}`),null;const{library:a,components:s,mode:l,apis:u}=this,c={mode:l,Vue:a.Vue,components:s,libs:a,apis:u,window},p=Go({getDsl:async h=>await this.getDsl(h)||null,options:c}),{renderer:m}=Ko({...c,dsl:o,loader:p});return m}}function c_(n){const e=new Lc(n);return{provider:e,onReady:t=>e.ready(t)}}function Nw(n={}){const e=Jt(Hc);if(!e)throw new Error("Can not find provider");if(e.mode===Je.Raw&&e.nodeEnv==="development"){const{id:t,version:r}=n;t&&r&&(async()=>{const i=await e.getDsl(t);i?.__VERSION__!==r&&Yt.warning({title:i?.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})()}return e}const Fw=new xc({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:n=>n.data?.code===0,showError:n=>{Yt.error({message:n||"未知错误"})}}}),Hw=(n="/vtj/local/repository/${type}.json")=>(e,t)=>Fw.send({url:n,method:"post",query:{type:e},data:{type:e,data:t}});class Lw{api;constructor(){this.api=Hw()}async init(e){return console.log("BaseService.init",e),{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return console.log("BaseService.saveMaterials",e,t),!1}async saveFile(e){return console.log("BaseService.saveFile",e),!1}async getFile(e){return console.log("BaseService.getFile",e),{}}async removeFile(e){return console.log("BaseService.removeFile",e),!1}async saveHistory(e){return console.log("BaseService.saveHistory",e),!1}async removeHistory(e){return console.log("BaseService.removeHistory",e),!1}async getHistory(e){return console.log("BaseService.getHistory",e),{}}async getHistoryItem(e,t){return console.log("BaseService.getHistoryItem",e,t),{}}async saveHistoryItem(e,t){return console.log("BaseService.saveHistoryItem",e,t),!1}async removeHistoryItem(e,t){return console.log("BaseService.removeHistoryItem",e,t),!1}async publish(e){return!!await this.api("publish",e).catch(()=>!1)}async publishFile(e,t){return!!await this.api("publishFile",{project:e,file:t}).catch(()=>!1)}async genVueContent(e,t){return await this.api("genVueContent",{project:e,dsl:t}).catch(()=>"")}async createRawPage(e){return await this.api("createRawPage",e).catch(()=>"")}async removeRawPage(e){return await this.api("removeRawPage",e).catch(()=>"")}}new Sc({type:"local",expired:0,prefix:"__VTJ_"});class d_ extends Lw{async init(e){return await this.api("init",e).catch(()=>null)||{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return!!await this.api("saveMaterials",{project:e,materials:H2(t)}).catch(()=>!1)}async saveFile(e){return!!await this.api("saveFile",e).catch(()=>!1)}async getFile(e){return await this.api("getFile",e).catch(()=>null)||{}}async removeFile(e){return!!await this.api("removeFile",e).catch(()=>!1)}async saveHistory(e){return!!await this.api("saveHistory",e).catch(()=>!1)}async removeHistory(e){return!!await this.api("removeHistory",e).catch(()=>!1)}async getHistory(e){return await this.api("getHistory",e).catch(()=>null)||{}}async getHistoryItem(e,t){return await this.api("getHistoryItem",{fId:e,id:t}).catch(()=>null)||{}}async saveHistoryItem(e,t){return!!await this.api("saveHistoryItem",{fId:e,item:t}).catch(()=>!1)}async removeHistoryItem(e,t){return!!await this.api("removeHistoryItem",{fId:e,ids:t}).catch(()=>!1)}}/**!
88
88
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
89
89
  * @name @vtj/designer
90
90
  * @author CHC chenhuachun1549@dingtalk.com
91
- * @version 0.7.32
91
+ * @version 0.7.34
92
92
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
93
- */const Uw="0.7.32",Cs={width:390,height:844},$s={width:1180,height:820},jt=/^[A-Za-z_$][\w_-]*$/,Ww=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],Jw=["keydown","keyup","keypress"],qw=["GET","POST","PUT","PATCH","DELETE","JSONP"],Kw=["stop","prevent","capture","self","once","passive"];var it=(n=>(n.Block="block",n.Node="node",n))(it||{});function Uc(){const n=Le(),e=O(()=>n.project.value?.dependencies??[]),t=O(()=>n.project.value?.apis??[]);return{engine:n,dependencies:e,apis:t}}function Mt(n,e){const t=O(()=>Zc.getWidgets(d(n),d(e)).filter(i=>!i.invisible)),r=B();return{widgets:t,widgetsRef:r}}function Wc(){const n=Le();return{span:O(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function Gw(){const n=Le(),e=O(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const Yw=(n=[])=>n.map(e=>e.name);function Xw(){const n=Le(),{components:e,groups:t,componentMap:r}=n.assets,i=Gt({}),o=O(()=>{const p={};return t.value&&t.value.forEach(m=>{p[m.name]=m}),p}),a=O(()=>t.value?t.value.map(p=>({label:`${p.label} (${p.count})`,name:p.name,disabled:!p.children?.length})):[]),s=B(a.value[0]?.name),l=B(""),u=O(()=>o.value[s.value]);Os(()=>{const p=a.value.reduce((m,h)=>(m[h.name]=Yw(o.value[h.name].children),m),{});Object.assign(i,p)}),se(a,p=>{p.length&&!s.value&&(s.value=p[0].name)},{immediate:!0});const c=O(()=>{const p=l.value.toLowerCase();return!p||!e?[]:e.filter(m=>m.name.toLowerCase().includes(p)||m.label?.toLowerCase().includes(p))});return{components:e,groups:t,componentMap:r,groupMap:o,tabs:a,model:i,currentTab:s,currentGroup:u,searchKey:l,searchResult:c}}function Ie(){const n=Le(),e=O(()=>n.current.value),t=O(()=>n.simulator.renderer?.context??null),r=O(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function Qw(n,e,t,r){const i=Le();i.simulator.init(n,e,t,r);const o=O(()=>i.simulator.designer.value),a=O(()=>mi("hover",o.value?.hover.value)),s=O(()=>mi("dropping",o.value?.dropping.value)),l=O(()=>mi("selected",o.value?.selected.value));return se(i.changed,()=>{o.value?.updateRect()}),{designer:o,dropping:s,hover:a,selected:l}}function Zw(n,e=!0){const{top:t,height:r,width:i,left:o}=n||{};if(r>100&&i>200)return"inner";let a,s;return s=t>30?"top":"bottom",a=e||o<300&&i<300?"left":"right",[a,s].join("-")}function e4(n){const{rect:e,type:t}=n,{left:r,width:i,top:o,height:a}=e,s={left:r,width:i,top:o,height:a};switch(t){case"left":s.left=0,s.width=0;break;case"right":s.left=s.left+s.width-4,s.width=0;break;case"bottom":s.top=s.top+s.height-4,s.height=0;break;case"top":s.height=0;break}return s}function mi(n,e){if(!e)return null;const{left:t,top:r,width:i,height:o}=n==="dropping"?e4(e):e.rect,a={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${o}px`,visibility:i||o?"visible":"hidden"};return{...e,style:a,position:Zw(e.rect,n!=="selected")}}function gt(){const n=Le(),e=O(()=>n.simulator.designer.value),t=O(()=>e.value?.selected.value),r=O(()=>je(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function t4(n,e){const t=B(""),{selected:r,isSelectBlock:i}=gt(),o=O(()=>r.value?.model.id),a=O(()=>{const l=yi(n),u=yi(e),c=[];if(!l)return c;const p=u?.__contextRefs[o.value||""],m=u===p||i.value?[]:Object.keys(p?.context||{}).filter(k=>!["context","ref"].includes(k)).map(k=>`this.context.${k}`);m.length&&c.push({title:"上下文",items:m});const h=l.inject.map(k=>`this.${k.name}`);h.length&&c.push({title:"注入",items:h});const f=l.props.map(k=>typeof k=="string"?`this.$props.${k}`:`this.$props.${k.name}`);f.length&&c.push({title:"属性",items:f});const v=Object.keys(l.state).map(k=>`this.state.${k}`);v.length&&c.push({title:"状态",items:v});const g=Object.keys(l.computed).map(k=>`this.${k}.value`);g.length&&c.push({title:"计算属性",items:g});const j=Object.keys(l.methods).map(k=>`this.${k}`);j.length&&c.push({title:"方法",items:j});const b=Object.keys(l.dataSources).map(k=>`this.${k}`);b.length&&c.push({title:"数据源",items:b});const _=Object.keys(u?.$refs||{}).map(k=>`this.$refs.${k}`);return _.length&&c.push({title:"refs",items:_}),c}),s=O(()=>{if(!t.value)return a.value;const l=t.value.toLowerCase(),u=[];return a.value.forEach(c=>{const p=c.items.filter(m=>m.toLowerCase().includes(l));p.length&&u.push({title:c.title,items:p})}),u});return{keyword:t,options:a,searchResult:s}}const hr=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function n4(n){const e=Le(),t=O(()=>{const l=n.value?.model||null;return je(l)?null:l}),r=B();se(t,async l=>{l?.from?r.value=await e.assets.getBlockMaterial(l.from)||void 0:r.value=void 0},{immediate:!0});const i=O(()=>t.value?[{name:"key",setters:hr,value:t.value.getPropValue("key")},{name:"ref",setters:hr,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:hr,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:hr,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),o=O(()=>{if(!t.value)return[];const l=r.value||e.assets.componentMap.get(t.value.name);return l?(l.props||[]).map(u=>({...u,value:t.value?.getPropValue(u.name)??u.defaultValue})):[]}),a=l=>i.value.some(u=>u.name===l)||o.value.some(u=>u.name===l)||l==="style",s=O(()=>t.value?Object.keys(t.value.props).filter(l=>!a(l)).map(l=>({name:l,setters:"InputSetter",value:t.value?.getPropValue(l)})):[]);return{commonProps:i,componentProps:o,customProps:s,node:t,change:(l,u)=>{t.value&&(l==="children"?t.value.setChildren(u):t.value.setProp(l,u))},addCustom:l=>{l&&t.value?.setProp(l,"")},removeCustom:l=>{t.value?.removeProp(l)},isExist:a}}function Te(n,e="提示"){return Yt.warning({title:e,message:n})}async function kn(n){return await co.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function We(n,e="success"){return Dr({message:n,type:e})}function ze(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?ft(n,e,t,!0):Xi(n,e,t,!0)}catch(i){r=!1,Yt.error({title:"代码错误",message:i.message})}return r}function Jc(){const n=Le(),e=O(()=>n.simulator.designer.value),t=O(()=>n.current.value?n.history.value:null),r=O(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},o=()=>{t.value?.backward(),e.value?.cleanHelper()},a=u=>{e.value?.cleanHelper(),t.value?.load(u),We("已载入历史记录","success")},s=O(()=>r.value<=1?!0:(t.value?.index||-1)<=0),l=O(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:o,load:a,forwardDisabled:s,backwardDisabled:l}}function jn(){const n=Le(),e=O(()=>n.project.value);return{engine:n,project:e}}function r4(n){const e=Le(),t=O(()=>{const s=n.value?.model||null;return!s||je(s)?null:s}),r=B();se(t,async s=>{s?.from?r.value=await e.assets.getBlockMaterial(s.from)||void 0:r.value=void 0},{immediate:!0});const i=O(()=>{if(je(t.value))return[];const s=t.value?.events||{};return Ww.map(l=>({name:l,event:s[l]}))}),o=O(()=>{if(je(t.value))return[];const s=t.value?.events||{};return Jw.map(l=>({name:l,event:s[l]}))}),a=O(()=>{if(!t.value||je(t.value))return[];const s=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(l=>{const u=typeof l=="string"?l:l.name;return{name:u,event:s[u]}})});return{mouseEventList:i,keyboardEventList:o,componentEventList:a}}const i4=(n,e)=>new sn({name:n,value:void 0,iterator:e}),o4=(n="modelValue")=>new sn({name:"vModel",value:void 0,arg:n});function a4(n){if(!n)return[];const{props:e=[],events:t=[]}=n;if(e.length&&t.length){const r=t.filter(i=>(typeof i=="string"?i:i.name).startsWith("update:")).map(i=>i=typeof i=="string"?i:i.name);return r.length?e.filter(i=>r.some(o=>o.includes(i.name))):[]}return[]}function s4(n){const e=Le(),t=O(()=>{const p=n.value?.model||null;return je(p)?null:p}),r=p=>O(()=>t.value&&(t.value.directives||[]).find(m=>m.name===p)||i4(p)),i=()=>O(()=>{if(!t.value)return[];const p=e.assets.componentMap.get(t.value.name||"");return(p?a4(p):[]).map(m=>(t.value?.directives||[]).find(h=>h.name==="vModel"&&h.arg==m.name)||o4(m.name))}),o=r("vIf"),a=r("vShow"),s=r("vBind"),l=r("vFor"),u=i(),c={vIf:o,vShow:a,vBind:s,vFor:l};return{engine:e,node:t,vIf:o,vShow:a,vBind:s,vFor:l,vModels:u,onValueChange:(p,m)=>{const h=c[p];t.value&&(m?(h.value.value=m,t.value.setDirective(h.value)):(h.value.value=void 0,t.value.removeDirective(h.value)))},onForChange:(p,m)=>{if(t.value){if(p==="value"){m?(l.value.value=m,t.value.setDirective(l.value)):t.value.removeDirective(l.value);return}(p==="item"||p==="index")&&(l.value.iterator={...l.value.iterator,[p]:m||void 0},t.value.setDirective(l.value))}},onModelChange:(p,m)=>{if(!t.value)return;const h=parseInt(p),f=u.value[h];f&&(m?(f.value=m,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function l4(){const{engine:n,project:e}=jn(),t=O(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const u4="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e",c4=["title","src"],d4={key:1},p4=D({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{},text:{default:"VTJ"},link:{}},setup(n){const{engine:e}=Ie(),t=n,r=O(()=>t.icon||e.project.value?.config?.logo||u4),i=()=>{t.link&&(location.href=t.link)};return(o,a)=>(y(),M("div",{class:"v-logo-widget",onClick:i},[r.value?(y(),M("img",{key:0,title:t.text,class:"v-logo-widget__icon",src:r.value},null,8,c4)):(y(),M("span",d4,te(t.text),1))]))}}),h4={class:"v-empty-widget"},m4=D({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",h4,"EmptyWidget"))}}),f4={class:"v-switcher-widget"},v4={key:1},g4=D({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=Ie(),i=O(()=>r.project.value?.config?.title||r.project.value?.name),o=O(()=>r.project.value?.currentFile?.title),a=()=>{t("click",r.project.value)};return(s,l)=>(y(),M("div",f4,[w(d(Ve),{size:"small",round:"",onClick:a},{default:S(()=>[w(d(Cu),{class:"v-switcher-widget__back"}),R("span",null,te(i.value),1),o.value?(y(),V(d(zr),{key:0,direction:"vertical"})):I("",!0),o.value?(y(),M("span",v4,te(o.value),1)):I("",!0)]),_:1})]))}}),y4={class:"v-toolbar-widget"},b4=D({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:o,backwardDisabled:a}=Jc(),s=B("pc");return e({mode:s}),(l,u)=>(y(),M("div",y4,[w(d(lo),{size:"small",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:S(()=>[w(d(Dn),{label:"pc",value:"pc"},{default:S(()=>[w(d(zu))]),_:1}),w(d(Dn),{label:"mobile",value:"mobile"},{default:S(()=>[w(d(Du))]),_:1}),w(d(Dn),{label:"pad",value:"pad"},{default:S(()=>[w(d(Iu))]),_:1})]),_:1},8,["modelValue"]),I("",!0),w(d(bd),null,{default:S(()=>[w(d(Ve),{type:"default",size:"small",onClick:d(i),disabled:d(a)||!!t.preview},{default:S(()=>[w(d(Pu))]),_:1},8,["onClick","disabled"]),w(d(Ve),{type:"default",size:"small",onClick:d(r),disabled:d(o)||!!t.preview},{default:S(()=>[w(d(Ru))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),w4={class:"v-actions-widget"},x4=R("span",null,"发布",-1),_4=D({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=gt(),r=B(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),We("刷新完成","success")):We("请先打开文件","warning")},o=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await cu(1e3)),t.value?.setSelected(e.current.value)):We("请先打开文件","warning")},a=()=>{if(e.project.value)if(e.current.value){if(r.value){e.skeleton?.closePreview(),r.value=!1;return}e.skeleton?.openPreview(""),r.value=!0}else We("请先打开文件","warning")},s=()=>{const u=e.project.value;u&&(u.currentFile?u.publish(u.currentFile):We("请先打开文件","warning"))},l=u=>{const c=e.project.value;c&&(u==="current"?s():c.publish())};return(u,c)=>(y(),M("div",w4,[I("",!0),I("",!0),w(d(Ve),{onClick:a,type:r.value?"warning":"default",size:"small",title:"预览"},{default:S(()=>[w(d(Ou))]),_:1},8,["type"]),w(d(Ve),{onClick:i,type:"default",size:"small",title:"刷新"},{default:S(()=>[w(d(Mu))]),_:1}),w(d(Ve),{type:"default",size:"small",title:"页面设置",onClick:o},{default:S(()=>[w(d(zo))]),_:1}),w(d(zr),{direction:"vertical"}),w(d(io),{"split-button":"",type:"primary",size:"small",onClick:s,onCommand:l},{dropdown:S(()=>[w(d(ro),null,{default:S(()=>[w(d(Vr),{command:"current"},{default:S(()=>[ue("发布页面")]),_:1}),w(d(Vr),{command:"project"},{default:S(()=>[ue("整站发布")]),_:1})]),_:1})]),default:S(()=>[x4]),_:1})]))}}),S4={class:"v-icon-setter"},k4={class:"v-icon-setter__content"},j4={class:"v-icon-setter__list"},qc=D({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=B(t.modelValue),a=B(""),s=O(()=>Pi[t.modelValue]||t.modelValue),l=O(()=>{const h=Object.entries(Pi);return a.value?h.filter(f=>f[0].toLowerCase().includes(a.value)):h}),u=h=>{o.value=h},c=()=>{r("change",o.value),r("update:modelValue",o.value),i.value=!1},p=()=>{o.value="",r("change",""),r("update:modelValue",""),i.value=!1},m=()=>{i.value=!0};return(h,f)=>(y(),M("div",S4,[w(d(tt),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":d(Hs),onFocus:m},{prepend:S(()=>[w(d(rt),{icon:s.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(y(),V(d(Rt),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:c},{extra:S(()=>[w(d(Ve),{size:"default",type:"warning",onClick:p},{default:S(()=>[ue(" 清除绑定 ")]),_:1})]),default:S(()=>[R("div",k4,[w(d(tt),{size:t.size,"prefix-icon":d(Ls),clearable:"",modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),R("div",j4,[(y(!0),M(ne,null,oe(l.value,v=>(y(),V(d(rt),{icon:v[1],onClick:g=>u(v[0]),class:de({"is-active":o.value===v[0]})},null,8,["icon","onClick","class"]))),256)),l.value.length===0?(y(),V(d(Be),{key:0})):I("",!0)])])]),_:1},8,["modelValue"])):I("",!0)]))}}),V4=D({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=jn(),r=O(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!0,hidden:!1,raw:!1}),o=B(e.item||i()),a=[{label:"页面",value:!1},{label:"目录",value:!0}],s=u=>{o.value&&(o.value.name=Er(u))},l=async u=>t.value?.existPageName(u.name,[u.id])?(Te("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(u):t.value?.createPage(u,e.parentId),!0);return(u,c)=>(y(),V(d(kt),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:o.value,"submit-method":l},{default:S(()=>[w(d(ee),{name:"dir",label:"类型",editor:"radio",options:a,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),w(d(ee),{name:"name",label:"名称",required:"",onChange:s,rules:{pattern:d(jt),message:"名称格式不正确"}},null,8,["rules"]),w(d(ee),{name:"title",label:"标题",required:""}),w(d(ee),{name:"icon",label:"菜单图标",editor:"none"},{editor:S(()=>[w(qc,{modelValue:o.value.icon,"onUpdate:modelValue":c[0]||(c[0]=p=>o.value.icon=p),size:"default"},null,8,["modelValue"])]),_:1}),w(d(ee),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),w(d(ee),{name:"hidden",label:"隐藏菜单",editor:"switch"}),w(d(ee),{visible:{dir:!1},disabled:!!e.item,inline:"",name:"raw",label:"源码模式",editor:"switch",tip:"页面是非低代码开发,不能在线编辑"},null,8,["disabled"])]),_:1},8,["title","model"]))}}),Es=D({name:"VIcon",__name:"Icon",props:{icon:{},label:{},active:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>({"is-active":t.active,"is-open":t.open})),o=()=>{r("click")};return(a,s)=>(y(),V(d(Br),{effect:"dark",placement:"right",content:a.label,"show-after":600},{default:S(()=>[R("div",{class:de(["v-apps-region__icon",i.value]),onClick:o},[(y(),V(Ke(a.icon)))],2)]),_:1},8,["content"]))}}),me=D({name:"VPanel",__name:"panel",props:{title:{},subtitle:{},plus:{type:Boolean},back:{type:Boolean},edit:{type:Boolean},remove:{type:Boolean},save:{type:Boolean},header:{type:Boolean,default:!0},collapsable:{type:Boolean}},emits:["plus","back","remove","save","edit"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=O(()=>({"is-collapsed":!!i.value})),a=()=>{r("plus")},s=()=>{r("edit")},l=()=>{r("back")},u=()=>{r("remove")},c=()=>{r("save")},p=O(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?zd:void 0,onClickBack:t.back?l:void 0,onClick:t.collapsable?()=>{i.value=!i.value}:void 0}:null),m=h=>{i.value=h};return(h,f)=>(y(),V(d(Qn),{class:de(["v-panel",o.value]),border:!1,header:p.value,fit:""},qt({actions:S(()=>[t.plus?(y(),V(d(Oe),{key:0,size:h.$attrs.size,mode:"icon",icon:d(Io),background:"hover",title:"新增",onClick:a},null,8,["size","icon"])):I("",!0),t.edit?(y(),V(d(Oe),{key:1,size:h.$attrs.size,mode:"icon",icon:d(Fs),background:"hover",title:"编辑",onClick:s},null,8,["size","icon"])):I("",!0),t.remove?(y(),V(d(Oe),{key:2,size:h.$attrs.size,mode:"icon",icon:d(Dd),background:"hover",title:"清除",onClick:u},null,8,["size","icon"])):I("",!0),t.save?(y(),V(d(Oe),{key:3,size:h.$attrs.size,mode:"icon",icon:d(Bu),background:"hover",title:"保存",onClick:c},null,8,["size","icon"])):I("",!0),t.collapsable?xt((y(),V(d(Oe),{key:4,size:h.$attrs.size,mode:"icon",icon:d(Hs),background:"hover",title:"展开",onClick:f[0]||(f[0]=v=>m(!1))},null,8,["size","icon"])),[[Kt,i.value]]):I("",!0),t.collapsable?xt((y(),V(d(Oe),{key:5,size:h.$attrs.size,mode:"icon",icon:d(Id),background:"hover",title:"收起",onClick:f[1]||(f[1]=v=>m(!0))},null,8,["size","icon"])),[[Kt,!i.value]]):I("",!0),ce(h.$slots,"actions")]),default:S(()=>[ce(h.$slots,"default")]),_:2},[h.$slots.footer?{name:"footer",fn:S(()=>[ce(h.$slots,"footer")]),key:"0"}:void 0]),1032,["class","header"]))}}),C4={class:"v-tabs__header"},$4={key:0,class:"v-tabs__actions"},Gr=D({__name:"tabs",props:{items:{default:()=>[]},menus:{},modelValue:{},stretch:{type:Boolean},checkable:{type:Boolean}},emits:["update:modelValue","command","remove","action-click"],setup(n,{emit:e}){const t=n,r=e,i=B((t.modelValue||t.items[0]?.name)??"");se(i,()=>{r("update:modelValue",i.value)}),se(()=>t.modelValue,l=>{i.value=l});const o=l=>{r("command",l)},a=l=>{r("remove",l)},s=l=>{r("action-click",l)};return(l,u)=>(y(),V(d(Qn),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:S(()=>[R("div",C4,[w(d(Jo),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),onTabRemove:a,onActionClick:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(y(),M("div",$4,[t.menus&&t.menus.length?(y(),V(d(Oe),{key:0,mode:"icon",size:"small",icon:d(po),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:o},{item:S(({item:c})=>[R("span",null,[t.checkable?(y(),V(d(Ao),{key:0,class:de({"v-tabs__checked":!0,"is-checked":c.checked})},null,8,["class"])):I("",!0),ue(" "+te(c.label),1)])]),_:1},8,["icon","menus"])):I("",!0)])):I("",!0)])]),default:S(()=>[ce(l.$slots,"default")]),_:3}))}}),E4={key:2,class:"v-item__index"},A4={class:"v-item__content"},T4={key:3,class:"v-item__subtitle"},Me=D({name:"VItem",__name:"item",props:{icon:{},index:{},tag:{},tagType:{},title:{},subtitle:{},actions:{default:()=>[]},background:{type:Boolean},border:{type:Boolean},switch:{type:Boolean},modelValue:{},active:{type:Boolean},hover:{type:Boolean},small:{type:Boolean}},emits:["click","action","update:modelValue","switch"],setup(n,{emit:e}){const t={add:{label:"创建",icon:Io},copy:{label:"复制",icon:To},edit:{label:"编辑",icon:Do},remove:{label:"删除",icon:Gn},lock:{label:"锁定",icon:Oo},unlock:{label:"解锁",icon:Tu},invisible:{label:"隐藏",icon:Mo},visible:{label:"显示",icon:Ju},home:{label:"主页",icon:$u}},r=n,i=e,o=B(!!r.modelValue),a=O(()=>r.actions.map(c=>{const p=t[c];return{name:c,...p}})),s=O(()=>({"is-background":r.background,"is-border":r.border,"is-active":r.active,"is-hover":r.hover,"is-small":r.small})),l=()=>{i("click",r.modelValue)},u=async c=>{c==="remove"?await co.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:c,modelValue:r.modelValue}):i("action",{name:c,modelValue:r.modelValue})};return se(o,c=>{i("update:modelValue",c),i("switch",c)}),se(()=>r.modelValue,c=>{o.value=!!c}),(c,p)=>(y(),V(d(ae),{class:de(["v-item",s.value]),justify:"space-between",align:"center",onClick:l},{default:S(()=>[w(d(ae),{class:"v-item__title",align:"center"},{default:S(()=>[ce(c.$slots,"default",{},()=>[c.icon?(y(),V(d(rt),{key:0,icon:c.icon},null,8,["icon"])):I("",!0),r.tag?(y(),V(d(Ed),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:S(()=>[ue(te(r.tag),1)]),_:1},8,["type"])):I("",!0),c.index!==void 0?(y(),M("span",E4," # "+te(c.index),1)):I("",!0),R("span",A4,te(c.title),1),c.subtitle?(y(),M("span",T4,te(c.subtitle),1)):I("",!0)])]),_:3}),w(d(ae),{class:"v-item__actions",onClick:p[1]||(p[1]=un(()=>{},["stop"]))},{default:S(()=>[(y(!0),M(ne,null,oe(a.value,m=>(y(),V(d(Oe),{name:m.name,title:m.label,mode:"icon",size:"small",background:"none",type:"info",icon:m.icon,onClick:h=>u(m.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(y(),V(d(oo),{key:0,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),class:"v-item__switch",size:"small"},null,8,["modelValue"])):I("",!0),ce(c.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),O4=["draggable"],B4={class:"v-box__name"},z4={class:"v-box__label"},Qi=D({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},o=async()=>{await co.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},a=O(()=>({"is-active":t.active,"is-draggable":t.draggable})),s=()=>{r("dragstart",t)},l=()=>{r("dragend",t)};return(u,c)=>(y(),M("div",{class:de(["v-box",a.value]),draggable:u.draggable,onDragstart:s,onDragend:l},[w(d(ae),{direction:"column",justify:"center",align:"center"},{default:S(()=>[R("span",B4,te(t.name),1),R("span",z4,te(t.title),1)]),_:1}),t.editable?(y(),V(d(ae),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:S(()=>[w(d(rt),{icon:d(Do),onClick:i},null,8,["icon"]),w(d(rt),{icon:d(Gn),onClick:o},null,8,["icon"])]),_:1})):I("",!0)],42,O4))}}),D4={class:"v-context-viewer"},I4=D({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],o=c=>{const p=c.value,m=oi(p);return m==="Object"||m==="Module"?Object.keys(p||{}).length===0:m==="Array"?p.length===0:!0},a=(c,p="this")=>typeof c=="object"?Array.isArray(c)?c.map((m,h)=>{const f=`[${h}]`;return{label:f,value:m,type:oi(m),path:`${p}${f}`}}):Object.entries(c).map(([m,h])=>({label:m,value:h,type:oi(h),path:`${p}.${m}`})).filter(m=>!m.label.startsWith("__")&&!i.includes(m.label)):[],s=(c,p)=>{if(c.level===0)p(a(t.context));else{const m=ln(c.data.value);p(a(m,c.data.path))}},l=c=>{r("copy",c.path)},u=c=>{r("pick",c.path)};return(c,p)=>(y(),M("div",D4,[c.context?(y(),V(d(uo),{key:0,lazy:"",load:s,"expand-on-click-node":!1,props:{isLeaf:o}},{default:S(({data:m})=>[w(Me,{title:m.label,clickable:"",onClick:h=>u(m),background:"",actions:["copy"],onAction:h=>l(m),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):I("",!0)]))}}),Yo=D({__name:"binder",props:{title:{},context:{},block:{},model:{},rules:{},modelValue:{type:Boolean},submitMethod:{type:Function},unbindEnabled:{type:Boolean}},emits:["unbind","submit","cancel","pick","update:modelValue","close"],setup(n,{emit:e}){const t=n,r=e,{searchResult:i,keyword:o}=t4(t.block,t.context),{copy:a}=Ld({}),s=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],l=B("normal"),u=B(),c=async j=>{r("submit",j),t.submitMethod?await t.submitMethod(j)&&p():p()},p=()=>{r("update:modelValue",!1),r("close")},m=()=>{r("unbind")},h=()=>{p()},f=async()=>{u.value?.submit()},v=j=>{r("pick",j)},g=j=>{a(j),Dr.success({message:"已经复制到粘贴板"})};return(j,b)=>(y(),V(d(Rt),{"model-value":t.modelValue,class:"v-binder",title:j.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:p},{default:S(()=>[w(d(ae),{fit:"",direction:"row",overflow:"hidden"},{default:S(()=>[w(d(ae),{width:"30%",height:"100%"},{default:S(()=>[w(Gr,{class:"v-binder__tabs",items:s,modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=_=>l.value=_)},{default:S(()=>[w(d(ae),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:S(()=>[xt(R("div",null,[w(d(tt),{modelValue:d(o),"onUpdate:modelValue":b[0]||(b[0]=_=>gi(o)?o.value=_:null),size:"small",clearable:"","prefix-icon":d(Ls),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(y(!0),M(ne,null,oe(d(i),_=>(y(),M("div",null,[w(d(zr),{"border-style":"dotted"},{default:S(()=>[ue(te(_.title),1)]),_:2},1024),(y(!0),M(ne,null,oe(_.items,k=>(y(),V(Me,{title:k,background:"",actions:["copy"],small:"",onClick:C=>v(k),onAction:C=>g(k)},null,8,["title","onClick","onAction"]))),256))]))),256)),d(i).length?I("",!0):(y(),V(d(Be),{key:0}))],512),[[Kt,l.value==="normal"]]),xt(w(I4,{context:t.context,onCopy:g,onPick:v},null,8,["context"]),[[Kt,l.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),w(d(Qn),{grow:"",header:null,border:!1},{footer:S(()=>[w(d(ae),{justify:"space-between"},{default:S(()=>[w(d(ae),null,{default:S(()=>[j.unbindEnabled?(y(),V(d(Ve),{key:0,type:"warning",size:"default",onClick:m},{default:S(()=>[ue(" 移除绑定 ")]),_:1})):I("",!0)]),_:1}),w(d(ae),null,{default:S(()=>[w(d(Ve),{type:"default",size:"default",onClick:h},{default:S(()=>[ue(" 取消 ")]),_:1}),w(d(Ve),{type:"primary",size:"default",onClick:f},{default:S(()=>[ue(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:S(()=>[w(d(Kr),{ref_key:"formRef",ref:u,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":c},{default:S(()=>[ce(j.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),R4={class:"v-slots-picker__sn"},M4=D({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B(),o=O(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),a=l=>{i.value=l},s=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Te("请选择插槽")};return(l,u)=>(y(),V(d(Rt),ve({class:"v-slots-picker",title:"选择插槽",width:"600px",height:o.value,submit:"",cancel:"",onSubmit:s},l.$attrs),{default:S(()=>[w(d(Ps),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),w(d(ae),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:S(()=>[(y(!0),M(ne,null,oe(t.slots,(c,p)=>(y(),V(d(ae),{class:de(["v-slots-picker__item",{"is-active":c.name===i.value?.name}]),grow:"",flex:!1,onClick:m=>a(c)},{default:S(()=>[R("span",R4,"#"+te(p+1),1),ue(" "+te(c.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),Kc=D({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=O(()=>[`is-${e.mode}`]),r=O(()=>{if(e.mode==="pc")return 1;const o=e.mode==="mobile"?Cs:$s,{width:a,height:s}=o,l=a>0?(e.width||0)/a:1,u=s>0?(e.height||0)/s:1;return Math.min(l,u)}),i=O(()=>{if(e.mode==="pc")return{};const o=e.mode==="mobile"?Cs:$s,{width:a,height:s}=o;return{width:`${a}px`,height:`${s}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(o,a)=>(y(),M("div",{class:de(["v-viewport",t.value]),style:Bt(i.value)},[ce(o.$slots,"default")],6))}}),P4=D({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=jn(),r=O(()=>e.value?.pages||[]),{current:i}=Ie(),o=B(!1),a=B(),s=B(),l=()=>{s.value=void 0,a.value=void 0,o.value=!0},u=async h=>{const{name:f,modelValue:v}=h,{data:g,node:j}=v;if(f==="add"&&(a.value=void 0,s.value=g.id,o.value=!0),f==="edit"&&(a.value=Kn(g),s.value=void 0,o.value=!0),f==="remove"){if(g.dir){const b=e.value?.getPage(g.id);if(b&&b.children?.length){Te("请先删除子页面");return}}e.value?.removePage(g.id)}if(f==="copy"){const b=j.parent?.data.id;e.value?.clonePage(g,b)}f==="home"&&(e.value?.setHomepage(g.id),We("设置主页成功","success"))},c=async h=>{h.raw&&We("这是源码模式页面,不能低代码设计","warning"),h.dir||h.raw?t.project.value?.deactivate():t.project.value?.active(h)},p=(h,f,v)=>v==="inner"?!!f.data.dir:!0,m=()=>{e.value?.update({pages:yi(r)})};return(h,f)=>(y(),V(d(me),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:l},{default:S(()=>[w(d(uo),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":p,onNodeDrop:m},{default:S(({data:v,node:g})=>[w(d(Me),{class:"v-pages-widget__item",icon:d(Pi)[v.icon],title:v.title,subtitle:v.name,"model-value":{data:v,node:g},actions:v.dir?["add","edit","remove"]:v.raw?["home","edit","remove"]:["home","copy","edit","remove"],onAction:u,onClick:j=>c(v),active:d(i)?.id===v.id,tag:d(e)?.homepage===v.id?"主页":void 0,"tag-type":"success",grow:"",small:"",background:"",hover:""},null,8,["icon","title","subtitle","model-value","actions","onClick","active","tag"])]),_:1},8,["data"]),o.value?(y(),V(V4,{key:0,modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),item:a.value,"parent-id":s.value},null,8,["modelValue","item","parent-id"])):I("",!0)]),_:1}))}}),N4=D({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=Wc(),{blocks:t,engine:r}=Gw(),i=B(void 0),{current:o}=Ie(),a=B(!1),s=O(()=>i.value?.id?"编辑":"新增"),l=O(()=>`(共 ${t.value.length} 个)`),u=()=>({name:"",title:"",type:"block"}),c=async b=>{const _=b,k=r.project.value;if(!k)return!1;if(b.id)if(!k.existBlockName(_.name,[_.id]))k.updateBlock(_);else return Te(`名称【${_.name}】已经存在,请更换名称`),!1;else if(!k.existBlockName(_.name))k.createBlock(_);else return Te(`名称【${_.name}】已经存在,请更换名称`),!1;return!0},p=()=>{i.value=u(),a.value=!0},m=b=>{i.value=Kn(b),a.value=!0},h=b=>{r.project.value?.removeBlock(b.id)},f=b=>{i.value&&(i.value.name=Er(b))},v=async b=>{r.project.value?.active(b)},g=async b=>{const _={type:"Schema",id:b.id},k=await r.assets.getBlockMaterial(_),C=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;C&&k&&C.setDragging(k)},j=()=>{const b=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;b&&b.setDragging(null)};return(b,_)=>(y(),V(d(me),{class:"v-blocks-widget",title:"区块管理",subtitle:l.value,plus:"",onPlus:p},{default:S(()=>[w(d(xi),{wrap:"wrap",gutter:5},{default:S(()=>[(y(!0),M(ne,null,oe(d(t),k=>(y(),V(d(wi),{key:k.id,span:d(e)},{default:S(()=>[w(d(Qi),{name:k.name,title:k.title,active:d(o)?.id===k.id,editable:"",onEdit:C=>m(k),onRemove:C=>h(k),onClick:C=>v(k),draggable:d(o)?.id!==k.id,onDragstart:C=>g(k),onDragend:j},null,8,["name","title","active","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(t).length?I("",!0):(y(),V(d(Be),{key:0})),w(d(kt),{modelValue:a.value,"onUpdate:modelValue":_[0]||(_[0]=k=>a.value=k),title:s.value,model:i.value,width:"600px",height:"250px","form-props":{tooltipMessage:!1},"submit-method":c},{default:S(()=>[w(d(ee),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:d(jt)},onChange:f},null,8,["rules"]),w(d(ee),{name:"title",label:"标题",required:""})]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),F4={class:"v-components-widget__search"},H4={key:0,class:"v-components-widget__result"},L4={class:"v-components-widget__list"},U4=D({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=Wc(),{tabs:r,currentTab:i,currentGroup:o,model:a,searchKey:s,searchResult:l}=Xw(),u=p=>{const m=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;m&&m.setDragging(p)},c=()=>{const p=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;p&&p.setDragging(null)};return(p,m)=>(y(),V(d(me),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:S(()=>[R("div",F4,[w(d(tt),{modelValue:d(s),"onUpdate:modelValue":m[0]||(m[0]=h=>gi(s)?s.value=h:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:S(()=>[w(d(Gu))]),_:1},8,["modelValue"])]),d(s)?(y(),M("div",H4,[w(d(xi),{wrap:"wrap",gutter:5},{default:S(()=>[(y(!0),M(ne,null,oe(d(l),h=>(y(),V(d(wi),{span:d(e),key:h.name},{default:S(()=>[w(d(Qi),{name:h.name,title:h.label||h.name,draggable:"",onDragstart:f=>u(h),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(l).length?I("",!0):(y(),V(d(Be),{key:0}))])):(y(),V(d(Jo),{key:1,items:d(r),modelValue:d(i),"onUpdate:modelValue":m[2]||(m[2]=h=>gi(i)?i.value=h:null)},{default:S(()=>[R("div",L4,[d(o)?(y(),V(d(wd),{key:0,modelValue:d(a)[d(i)],"onUpdate:modelValue":m[1]||(m[1]=h=>d(a)[d(i)]=h)},{default:S(()=>[(y(!0),M(ne,null,oe(d(o).children,h=>(y(),V(d(xd),{key:h.name,name:h.name,title:`${h.label} (${h.count})`},{default:S(()=>[h.components?(y(),V(d(xi),{key:0,wrap:"wrap",gutter:5},{default:S(()=>[(y(!0),M(ne,null,oe(h.components,f=>(y(),V(d(wi),{span:d(e),key:f.name},{default:S(()=>[w(d(Qi),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>u(f),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):I("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):I("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),W4=D({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=gt(),{current:i}=Ie(),o=B([]),a=(x,A)=>{if(A==="slot")return[];if(je(x))return x.locked?["unlock"]:["lock"];const T=x.parent;return T&&(T.locked||T.invisible)?[]:i.value?.locked?[]:x.locked?["unlock"]:x.invisible?["visible"]:["lock","invisible","copy","remove"]},s=(x,A)=>{const T={};if(!x.some($=>$.slot))return l(x);for(const $ of x){const E=$.slot?.name||"default";T[E]||(T[E]=[]),T[E].push($)}const X=[];for(const[$,E]of Object.entries(T))X.push({id:`${A.id}-${$}`,label:`#${$}`,type:"slot",model:A,disabled:!0,children:l(E)});return X},l=x=>{const A=[];return x.forEach(T=>{const X={id:T.id,label:T.name,type:T.id,model:T};Array.isArray(T.children)&&(X.children=s(T.children,T)),A.push(X)}),A},u=()=>{if(!i.value)return[];const{id:x,name:A,nodes:T}=i.value;return[{id:x,label:A,type:x,model:i.value,children:l(T)}]},c=async()=>{o.value=u(),r.value?.model&&(await ct(),t.value?.setSelected(r.value.model))},p=O(()=>r.value?.model.id),m=x=>{const A=x.data;if(A.type==="slot"||je(A.model)||A.model.locked||A.model.name==="template")return!1;const T=e.assets.componentMap.get(A.model.name);return T?(t.value?.setDragging(T),!0):!1},h=async(x,A,T)=>{const X=A.data,$={prev:"top",next:"bottom",inner:"inner"}[T];let E=!1;if(je(X.model))E=T==="inner",t.value?.setDropping(E?X.model:null,"inner");else{const P=X.model;E=!!await t.value?.allowDrop(P,$),t.value?.setDropping(E?P:null,"inner")}return E},f=x=>{const A=x?.model;if(!A||A.invisible||x.type==="slot"){t.value?.setSelected(null),t.value?.setHover(null);return}t.value?.setSelected(A),t.value?.setHover(null)},v=async(x,A,T)=>{const X=x.data,$=A.data;if(je($.model)){t.value?.setDropping(null),t.value?.setDragging(null);return}const E=$.model,P={before:"left",after:"right"}[T]||"inner";if(!await t.value?.allowDrop(E,P)){t.value?.setDropping(null),c(),Dr.warning({message:`${X.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const z=await t.value?.getDropSlot(T==="inner"?E:E.parent);if(z!==null){const K=X.model;K.slot=z,i.value?.move(K,E,P)}else c();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},g=x=>{if(x.type==="slot"){t.value?.setHover(null);return}je(x.model)?t.value?.setHover(x.model):(t.value?.setHover(x.model),x.model.invisible&&t.value?.setHover(null),x.model.name==="slot"&&t.value?.setHover(null))},j=()=>{t.value?.setHover(null)},b=x=>{const A=x.data;A.dragging=!0;const T=e.assets.componentMap.get(A.model.name);T&&t.value?.setDragging(T)},_=async x=>{const A=x.data;A.dragging=!1},k=(x,A)=>{x&&((x.id===A.id||!je(x)&&A.isChild(x))&&t.value?.setSelected(null),t.value?.setHover(null))},C=x=>{const{name:A,modelValue:T}=x,X=r.value?.model;switch(A){case"lock":k(X,T),T.lock();break;case"unlock":k(X,T),T.unlock();break;case"invisible":k(X,T),T.setVisible(!1);break;case"visible":T.setVisible(!0);break;case"copy":const $=i.value?.cloneNode(T);$&&t.value?.setSelected($);break;case"remove":k(X,T),i.value?.removeNode(T);break}};return se(e.changed,c,{immediate:!0}),(x,A)=>(y(),V(d(me),{class:"v-outline-widget",title:"大纲树"},{default:S(()=>[(y(),V(d(uo),{key:d(e).changed.value,data:o.value,"node-key":"id","default-expand-all":"",draggable:"","empty-text":"请新建或打开文件","current-node-key":p.value,"highlight-current":!0,"expand-on-click-node":!1,"allow-drop":h,"allow-drag":m,onCurrentChange:f,onNodeDrop:v,onNodeDragStart:b,onNodeDragEnd:_},{default:S(({data:T,node:X})=>[w(d(Me),{class:de(["v-outline-widget__item",{"is-locked":T.model.locked,"is-invisible":T.model.invisible,"is-dragging":T.dragging,"is-slot":T.type==="slot"}]),active:!T.model.invisible&&X.isCurrent&&T.type!=="slot",grow:"",small:"",background:"",hover:"","model-value":T.model,icon:T.model.locked?d(Oo):T.model.invisible?d(Mo):void 0,title:T.label,subtitle:T.type,actions:a(T.model,T.type),onAction:C,onMouseenter:$=>g(T),onMouseleave:j},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"]))]),_:1}))}}),J4=D({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=Jc(),i=O(()=>`(共 ${r.value} 条)`),o=s=>{s.name==="remove"&&e.value?.remove(s.modelValue.id)},a=async()=>{await kn("确定要清空历史记录吗?")&&e.value?.clear()};return(s,l)=>(y(),V(d(me),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!d(r),onRemove:a},{default:S(()=>[d(r)===0?(y(),V(d(Be),{key:0,"image-size":50})):I("",!0),d(e)?(y(!0),M(ne,{key:1},oe(d(e).items,(u,c)=>(y(),V(d(Me),{index:c+1,title:u.label,"model-value":u,active:c==d(e).index,small:"",background:"",actions:["remove"],onAction:o,onClick:p=>d(t)(u.id)},null,8,["index","title","model-value","active","onClick"]))),256)):I("",!0)]),_:1},8,["subtitle","remove"]))}}),q4=D({__name:"base-info",setup(n){const e=qw.map(t=>({label:t,value:t.toLowerCase()}));return(t,r)=>(y(),M("div",null,[w(d(ee),{name:"method",label:"请求类型",required:"",editor:"radio",options:d(e)},null,8,["options"]),w(d(ee),{name:"name",label:"接口名称",required:"",rules:{pattern:d(jt),message:"名称格式不正确"}},null,8,["rules"]),w(d(ee),{name:"label",label:"备注说明",required:""}),w(d(ee),{name:"url",label:"接口URL",required:""})]))}}),Ae=ad({loader:()=>td(()=>import("./Editor-BKlikwSl-CQeex9PC.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:D({render(){return Re("div","正在拼命加载...")}}),errorComponent:D({render(){return Re("div","组件加载失败!")}})}),K4=D({__name:"request-settings",setup(n){const e=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],t=Jt("currentModel",null);return(r,i)=>(y(),M("div",null,[w(d(ae),{justify:"space-between"},{default:S(()=>[w(d(ee),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),w(d(ee),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),w(d(ee),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),w(d(ee),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),w(d(ee),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),w(d(ee),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:e,props:{button:!0}}),w(d(ee),{size:"small",name:"headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction"},{editor:S(()=>[w(d(Ae),{dark:"",height:"260px",modelValue:d(t).headers.value,"onUpdate:modelValue":i[0]||(i[0]=o=>d(t).headers.value=o)},null,8,["modelValue"])]),_:1})]))}}),G4=D({__name:"jsonp-options",setup(n){return(e,t)=>(y(),M("div",null,[w(d(ee),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),w(d(ee),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),w(d(ee),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),w(d(ee),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]))}}),Y4=R("span",null,"模拟数据模板",-1),X4=D({__name:"mock-template",setup(n){const e=Jt("currentModel",null),{project:t}=jn(),r=O(()=>t.value?.config||{}),i=()=>{window.open("https://vtj.pro/help/mock.html")};return(o,a)=>(y(),M("div",null,[r.value.mock?I("",!0):(y(),V(d(Ps),{key:0,type:"warning",title:"需要在项目配置中开启模拟数据",closable:!1,style:{"margin-bottom":"20px"}})),w(d(ee),{size:"small",name:"mock",label:"开启模拟数据",disabled:!r.value.mock,editor:"switch"},null,8,["disabled"]),w(d(ae),{justify:"space-between"},{default:S(()=>[Y4,w(d(Oe),{icon:d(Ro),mode:"text",label:"帮助",onClick:i},null,8,["icon"])]),_:1}),w(d(ee),{size:"small",name:"mockTemplate.value",label:" "},{editor:S(()=>[w(d(Ae),{dark:"",height:r.value.mock?"330px":"280px",lang:"typescript",disabled:!r.value.mock,readonly:!r.value.mock,modelValue:d(e).mockTemplate.value,"onUpdate:modelValue":a[0]||(a[0]=s=>d(e).mockTemplate.value=s)},null,8,["height","disabled","readonly","modelValue"])]),_:1})]))}}),Q4={key:0},Z4=D({__name:"form",props:{model:{},project:{}},setup(n){const e=n,t=O(()=>e.model?"编辑API":"新增API"),r=B("base"),i=B(),o=B(),a=B(e.model||{}),s=B(!1),l=B(""),u=[{label:"基础信息",value:"base"},{label:"请求配置",value:"settings"},{label:"模拟数据",value:"mock"}];vi("currentModel",a);const c=O(()=>a.value?.method==="jsonp");se(()=>e.model,v=>{a.value=Object.assign({},v||{}),r.value="base"},{immediate:!0}),se(r,async()=>{o.value?.formRef.validate(async v=>{v||(await ct(),r.value="base")})});const p=()=>{i.value?.cancel()},m=()=>{o.value?.submit()},h=async v=>e.project?.existApiName(a.value.name,e.model?[a.value.id]:[])?(Te(`API名称 [ ${a.value.name} ] 已存在`),!1):a.value.headers&&!ze(a.value.headers,window)||a.value.mockTemplate&&!ze(a.value.mockTemplate,window)?!1:(e.project?.setApi(a.value),i.value?.close(),!0),f=()=>{if(a.value.mockTemplate){const v=ft(a.value.mockTemplate,{},!0),{url:g,method:j}=a.value,b=Mn.mock(v({url:g,type:j}));l.value=JSON.stringify(b,null,2),s.value=!0}};return(v,g)=>(y(),V(d(Rt),{ref_key:"dialogRef",ref:i,title:t.value,width:"1000px",height:"600px"},{default:S(()=>[w(d(ae),{fit:""},{default:S(()=>[w(d(ae),{width:"100px",shrink:!1},{default:S(()=>[w(d(Jo),{modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=j=>r.value=j),items:u,"tab-position":"left",border:"",fit:""},null,8,["modelValue"])]),_:1}),w(d(Qn),{header:null,border:!1,overflow:"auto",grow:"",shrink:!0,fit:""},{footer:S(()=>[w(d(ae),{justify:"space-between"},{default:S(()=>[R("div",null,[r.value==="mock"?(y(),V(d(Ve),{key:0,disabled:!e.project?.config?.mock,type:"warning",onClick:f},{default:S(()=>[ue(" 预览 ")]),_:1},8,["disabled"])):I("",!0)]),R("div",null,[w(d(Ve),{onClick:p},{default:S(()=>[ue("取消")]),_:1}),w(d(Ve),{type:"primary",onClick:m},{default:S(()=>[ue("保存")]),_:1})])]),_:1})]),default:S(()=>[w(d(Kr),{ref_key:"formRef",ref:o,footer:!1,labelPosition:"top",tooltipMessage:!1,model:a.value,submitMethod:h},{default:S(()=>[xt(w(q4,null,null,512),[[Kt,r.value==="base"]]),r.value==="settings"?(y(),M("div",Q4,[c.value?(y(),V(G4,{key:0})):(y(),V(K4,{key:1}))])):I("",!0),r.value==="mock"?(y(),V(X4,{key:1})):I("",!0)]),_:1},8,["model"])]),_:1})]),_:1}),s.value?(y(),V(d(Ms),{key:0,class:"v-drawer",modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=j=>s.value=j),title:"模拟数据结果",direction:"btt","append-to-body":"",size:"80%"},{default:S(()=>[w(d(Ae),{"model-value":l.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):I("",!0)]),_:1},8,["title"]))}}),e8=D({name:"ApisWidget",__name:"index",setup(n){const e=B(!1),t=B(null),r=B(!1),i=O(()=>o.value?.apis||[]),{project:o}=jn(),a=()=>({id:"",method:"get",name:"",label:"",url:"",settings:{loading:!0,failMessage:!0,validSuccess:!0,originResponse:!1,injectHeaders:!1,type:"form"},headers:{type:"JSExpression",value:"({})"},jsonpOptions:{},mock:!1,mockTemplate:{type:"JSFunction",value:`(req) => {
93
+ */const Uw="0.7.34",Cs={width:390,height:844},$s={width:1180,height:820},jt=/^[A-Za-z_$][\w_-]*$/,Ww=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],Jw=["keydown","keyup","keypress"],qw=["GET","POST","PUT","PATCH","DELETE","JSONP"],Kw=["stop","prevent","capture","self","once","passive"];var it=(n=>(n.Block="block",n.Node="node",n))(it||{});function Uc(){const n=Le(),e=O(()=>n.project.value?.dependencies??[]),t=O(()=>n.project.value?.apis??[]);return{engine:n,dependencies:e,apis:t}}function Mt(n,e){const t=O(()=>Zc.getWidgets(d(n),d(e)).filter(i=>!i.invisible)),r=B();return{widgets:t,widgetsRef:r}}function Wc(){const n=Le();return{span:O(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function Gw(){const n=Le(),e=O(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const Yw=(n=[])=>n.map(e=>e.name);function Xw(){const n=Le(),{components:e,groups:t,componentMap:r}=n.assets,i=Gt({}),o=O(()=>{const p={};return t.value&&t.value.forEach(m=>{p[m.name]=m}),p}),a=O(()=>t.value?t.value.map(p=>({label:`${p.label} (${p.count})`,name:p.name,disabled:!p.children?.length})):[]),s=B(a.value[0]?.name),l=B(""),u=O(()=>o.value[s.value]);Os(()=>{const p=a.value.reduce((m,h)=>(m[h.name]=Yw(o.value[h.name].children),m),{});Object.assign(i,p)}),se(a,p=>{p.length&&!s.value&&(s.value=p[0].name)},{immediate:!0});const c=O(()=>{const p=l.value.toLowerCase();return!p||!e?[]:e.filter(m=>m.name.toLowerCase().includes(p)||m.label?.toLowerCase().includes(p))});return{components:e,groups:t,componentMap:r,groupMap:o,tabs:a,model:i,currentTab:s,currentGroup:u,searchKey:l,searchResult:c}}function Ie(){const n=Le(),e=O(()=>n.current.value),t=O(()=>n.simulator.renderer?.context??null),r=O(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function Qw(n,e,t,r){const i=Le();i.simulator.init(n,e,t,r);const o=O(()=>i.simulator.designer.value),a=O(()=>mi("hover",o.value?.hover.value)),s=O(()=>mi("dropping",o.value?.dropping.value)),l=O(()=>mi("selected",o.value?.selected.value));return se(i.changed,()=>{o.value?.updateRect()}),{designer:o,dropping:s,hover:a,selected:l}}function Zw(n,e=!0){const{top:t,height:r,width:i,left:o}=n||{};if(r>100&&i>200)return"inner";let a,s;return s=t>30?"top":"bottom",a=e||o<300&&i<300?"left":"right",[a,s].join("-")}function e4(n){const{rect:e,type:t}=n,{left:r,width:i,top:o,height:a}=e,s={left:r,width:i,top:o,height:a};switch(t){case"left":s.left=0,s.width=0;break;case"right":s.left=s.left+s.width-4,s.width=0;break;case"bottom":s.top=s.top+s.height-4,s.height=0;break;case"top":s.height=0;break}return s}function mi(n,e){if(!e)return null;const{left:t,top:r,width:i,height:o}=n==="dropping"?e4(e):e.rect,a={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${o}px`,visibility:i||o?"visible":"hidden"};return{...e,style:a,position:Zw(e.rect,n!=="selected")}}function gt(){const n=Le(),e=O(()=>n.simulator.designer.value),t=O(()=>e.value?.selected.value),r=O(()=>je(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function t4(n,e){const t=B(""),{selected:r,isSelectBlock:i}=gt(),o=O(()=>r.value?.model.id),a=O(()=>{const l=yi(n),u=yi(e),c=[];if(!l)return c;const p=u?.__contextRefs[o.value||""],m=u===p||i.value?[]:Object.keys(p?.context||{}).filter(S=>!["context","ref"].includes(S)).map(S=>`this.context.${S}`);m.length&&c.push({title:"上下文",items:m});const h=l.inject.map(S=>`this.${S.name}`);h.length&&c.push({title:"注入",items:h});const f=l.props.map(S=>typeof S=="string"?`this.$props.${S}`:`this.$props.${S.name}`);f.length&&c.push({title:"属性",items:f});const v=Object.keys(l.state).map(S=>`this.state.${S}`);v.length&&c.push({title:"状态",items:v});const g=Object.keys(l.computed).map(S=>`this.${S}.value`);g.length&&c.push({title:"计算属性",items:g});const j=Object.keys(l.methods).map(S=>`this.${S}`);j.length&&c.push({title:"方法",items:j});const w=Object.keys(l.dataSources).map(S=>`this.${S}`);w.length&&c.push({title:"数据源",items:w});const _=Object.keys(u?.$refs||{}).map(S=>`this.$refs.${S}`);return _.length&&c.push({title:"refs",items:_}),c}),s=O(()=>{if(!t.value)return a.value;const l=t.value.toLowerCase(),u=[];return a.value.forEach(c=>{const p=c.items.filter(m=>m.toLowerCase().includes(l));p.length&&u.push({title:c.title,items:p})}),u});return{keyword:t,options:a,searchResult:s}}const hr=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function n4(n){const e=Le(),t=O(()=>{const l=n.value?.model||null;return je(l)?null:l}),r=B();se(t,async l=>{l?.from?r.value=await e.assets.getBlockMaterial(l.from)||void 0:r.value=void 0},{immediate:!0});const i=O(()=>t.value?[{name:"key",setters:hr,value:t.value.getPropValue("key")},{name:"ref",setters:hr,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:hr,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:hr,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),o=O(()=>{if(!t.value)return[];const l=r.value||e.assets.componentMap.get(t.value.name);return l?(l.props||[]).map(u=>({...u,value:t.value?.getPropValue(u.name)??u.defaultValue})):[]}),a=l=>i.value.some(u=>u.name===l)||o.value.some(u=>u.name===l)||l==="style",s=O(()=>t.value?Object.keys(t.value.props).filter(l=>!a(l)).map(l=>({name:l,setters:"InputSetter",value:t.value?.getPropValue(l)})):[]);return{commonProps:i,componentProps:o,customProps:s,node:t,change:(l,u)=>{t.value&&(l==="children"?t.value.setChildren(u):t.value.setProp(l,u))},addCustom:l=>{l&&t.value?.setProp(l,"")},removeCustom:l=>{t.value?.removeProp(l)},isExist:a}}function Te(n,e="提示"){return Yt.warning({title:e,message:n})}async function kn(n){return await co.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function We(n,e="success"){return Dr({message:n,type:e})}function ze(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?ft(n,e,t,!0):Xi(n,e,t,!0)}catch(i){r=!1,Yt.error({title:"代码错误",message:i.message})}return r}function Jc(){const n=Le(),e=O(()=>n.simulator.designer.value),t=O(()=>n.current.value?n.history.value:null),r=O(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},o=()=>{t.value?.backward(),e.value?.cleanHelper()},a=u=>{e.value?.cleanHelper(),t.value?.load(u),We("已载入历史记录","success")},s=O(()=>r.value<=1?!0:(t.value?.index||-1)<=0),l=O(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:o,load:a,forwardDisabled:s,backwardDisabled:l}}function jn(){const n=Le(),e=O(()=>n.project.value);return{engine:n,project:e}}function r4(n){const e=Le(),t=O(()=>{const s=n.value?.model||null;return!s||je(s)?null:s}),r=B();se(t,async s=>{s?.from?r.value=await e.assets.getBlockMaterial(s.from)||void 0:r.value=void 0},{immediate:!0});const i=O(()=>{if(je(t.value))return[];const s=t.value?.events||{};return Ww.map(l=>({name:l,event:s[l]}))}),o=O(()=>{if(je(t.value))return[];const s=t.value?.events||{};return Jw.map(l=>({name:l,event:s[l]}))}),a=O(()=>{if(!t.value||je(t.value))return[];const s=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(l=>{const u=typeof l=="string"?l:l.name;return{name:u,event:s[u]}})});return{mouseEventList:i,keyboardEventList:o,componentEventList:a}}const i4=(n,e)=>new sn({name:n,value:void 0,iterator:e}),o4=(n="modelValue")=>new sn({name:"vModel",value:void 0,arg:n});function a4(n){if(!n)return[];const{props:e=[],events:t=[]}=n;if(e.length&&t.length){const r=t.filter(i=>(typeof i=="string"?i:i.name).startsWith("update:")).map(i=>i=typeof i=="string"?i:i.name);return r.length?e.filter(i=>r.some(o=>o.includes(i.name))):[]}return[]}function s4(n){const e=Le(),t=O(()=>{const p=n.value?.model||null;return je(p)?null:p}),r=p=>O(()=>t.value&&(t.value.directives||[]).find(m=>m.name===p)||i4(p)),i=()=>O(()=>{if(!t.value)return[];const p=e.assets.componentMap.get(t.value.name||"");return(p?a4(p):[]).map(m=>(t.value?.directives||[]).find(h=>h.name==="vModel"&&h.arg==m.name)||o4(m.name))}),o=r("vIf"),a=r("vShow"),s=r("vBind"),l=r("vFor"),u=i(),c={vIf:o,vShow:a,vBind:s,vFor:l};return{engine:e,node:t,vIf:o,vShow:a,vBind:s,vFor:l,vModels:u,onValueChange:(p,m)=>{const h=c[p];t.value&&(m?(h.value.value=m,t.value.setDirective(h.value)):(h.value.value=void 0,t.value.removeDirective(h.value)))},onForChange:(p,m)=>{if(t.value){if(p==="value"){m?(l.value.value=m,t.value.setDirective(l.value)):t.value.removeDirective(l.value);return}(p==="item"||p==="index")&&(l.value.iterator={...l.value.iterator,[p]:m||void 0},t.value.setDirective(l.value))}},onModelChange:(p,m)=>{if(!t.value)return;const h=parseInt(p),f=u.value[h];f&&(m?(f.value=m,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function l4(){const{engine:n,project:e}=jn(),t=O(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const u4="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e",c4=["title","src"],d4={key:1},p4=D({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{},text:{default:"VTJ"},link:{}},setup(n){const{engine:e}=Ie(),t=n,r=O(()=>t.icon||e.project.value?.config?.logo||u4),i=()=>{t.link&&(location.href=t.link)};return(o,a)=>(y(),M("div",{class:"v-logo-widget",onClick:i},[r.value?(y(),M("img",{key:0,title:t.text,class:"v-logo-widget__icon",src:r.value},null,8,c4)):(y(),M("span",d4,te(t.text),1))]))}}),h4={class:"v-empty-widget"},m4=D({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",h4,"EmptyWidget"))}}),f4={class:"v-switcher-widget"},v4={key:1},g4=D({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=Ie(),i=O(()=>r.project.value?.config?.title||r.project.value?.name),o=O(()=>r.project.value?.currentFile?.title),a=()=>{t("click",r.project.value)};return(s,l)=>(y(),M("div",f4,[b(d(Ve),{size:"small",round:"",onClick:a},{default:k(()=>[b(d(Cu),{class:"v-switcher-widget__back"}),R("span",null,te(i.value),1),o.value?(y(),V(d(zr),{key:0,direction:"vertical"})):I("",!0),o.value?(y(),M("span",v4,te(o.value),1)):I("",!0)]),_:1})]))}}),y4={class:"v-toolbar-widget"},b4=D({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:o,backwardDisabled:a}=Jc(),s=B("pc");return e({mode:s}),(l,u)=>(y(),M("div",y4,[b(d(lo),{size:"small",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:k(()=>[b(d(Dn),{label:"pc",value:"pc"},{default:k(()=>[b(d(zu))]),_:1}),b(d(Dn),{label:"mobile",value:"mobile"},{default:k(()=>[b(d(Du))]),_:1}),b(d(Dn),{label:"pad",value:"pad"},{default:k(()=>[b(d(Iu))]),_:1})]),_:1},8,["modelValue"]),I("",!0),b(d(bd),null,{default:k(()=>[b(d(Ve),{type:"default",size:"small",onClick:d(i),disabled:d(a)||!!t.preview},{default:k(()=>[b(d(Pu))]),_:1},8,["onClick","disabled"]),b(d(Ve),{type:"default",size:"small",onClick:d(r),disabled:d(o)||!!t.preview},{default:k(()=>[b(d(Ru))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),w4={class:"v-actions-widget"},x4=R("span",null,"发布",-1),_4=D({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=gt(),r=B(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),We("刷新完成","success")):We("请先打开文件","warning")},o=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await cu(1e3)),t.value?.setSelected(e.current.value)):We("请先打开文件","warning")},a=()=>{if(e.project.value)if(e.current.value){if(r.value){e.skeleton?.closePreview(),r.value=!1;return}e.skeleton?.openPreview(""),r.value=!0}else We("请先打开文件","warning")},s=()=>{const u=e.project.value;u&&(u.currentFile?u.publish(u.currentFile):We("请先打开文件","warning"))},l=u=>{const c=e.project.value;c&&(u==="current"?s():c.publish())};return(u,c)=>(y(),M("div",w4,[I("",!0),I("",!0),b(d(Ve),{onClick:a,type:r.value?"warning":"default",size:"small",title:"预览"},{default:k(()=>[b(d(Ou))]),_:1},8,["type"]),b(d(Ve),{onClick:i,type:"default",size:"small",title:"刷新"},{default:k(()=>[b(d(Mu))]),_:1}),b(d(Ve),{type:"default",size:"small",title:"页面设置",onClick:o},{default:k(()=>[b(d(zo))]),_:1}),b(d(zr),{direction:"vertical"}),b(d(io),{"split-button":"",type:"primary",size:"small",onClick:s,onCommand:l},{dropdown:k(()=>[b(d(ro),null,{default:k(()=>[b(d(Vr),{command:"current"},{default:k(()=>[ue("发布页面")]),_:1}),b(d(Vr),{command:"project"},{default:k(()=>[ue("整站发布")]),_:1})]),_:1})]),default:k(()=>[x4]),_:1})]))}}),S4={class:"v-icon-setter"},k4={class:"v-icon-setter__content"},j4={class:"v-icon-setter__list"},qc=D({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=B(t.modelValue),a=B(""),s=O(()=>Pi[t.modelValue]||t.modelValue),l=O(()=>{const h=Object.entries(Pi);return a.value?h.filter(f=>f[0].toLowerCase().includes(a.value)):h}),u=h=>{o.value=h},c=()=>{r("change",o.value),r("update:modelValue",o.value),i.value=!1},p=()=>{o.value="",r("change",""),r("update:modelValue",""),i.value=!1},m=()=>{i.value=!0};return(h,f)=>(y(),M("div",S4,[b(d(tt),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":d(Hs),onFocus:m},{prepend:k(()=>[b(d(rt),{icon:s.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(y(),V(d(Rt),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:c},{extra:k(()=>[b(d(Ve),{size:"default",type:"warning",onClick:p},{default:k(()=>[ue(" 清除绑定 ")]),_:1})]),default:k(()=>[R("div",k4,[b(d(tt),{size:t.size,"prefix-icon":d(Ls),clearable:"",modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),R("div",j4,[(y(!0),M(ne,null,oe(l.value,v=>(y(),V(d(rt),{icon:v[1],onClick:g=>u(v[0]),class:de({"is-active":o.value===v[0]})},null,8,["icon","onClick","class"]))),256)),l.value.length===0?(y(),V(d(Be),{key:0})):I("",!0)])])]),_:1},8,["modelValue"])):I("",!0)]))}}),V4=D({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=jn(),r=O(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!0,hidden:!1,raw:!1}),o=B(e.item||i()),a=[{label:"页面",value:!1},{label:"目录",value:!0}],s=u=>{o.value&&(o.value.name=Er(u))},l=async u=>t.value?.existPageName(u.name,[u.id])?(Te("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(u):t.value?.createPage(u,e.parentId),!0);return(u,c)=>(y(),V(d(kt),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:o.value,"submit-method":l},{default:k(()=>[b(d(ee),{name:"dir",label:"类型",editor:"radio",options:a,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),b(d(ee),{name:"name",label:"名称",required:"",onChange:s,rules:{pattern:d(jt),message:"名称格式不正确"}},null,8,["rules"]),b(d(ee),{name:"title",label:"标题",required:""}),b(d(ee),{name:"icon",label:"菜单图标",editor:"none"},{editor:k(()=>[b(qc,{modelValue:o.value.icon,"onUpdate:modelValue":c[0]||(c[0]=p=>o.value.icon=p),size:"default"},null,8,["modelValue"])]),_:1}),b(d(ee),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),b(d(ee),{name:"hidden",label:"隐藏菜单",editor:"switch"}),b(d(ee),{visible:{dir:!1},disabled:!!e.item,inline:"",name:"raw",label:"源码模式",editor:"switch",tip:"页面是非低代码开发,不能在线编辑"},null,8,["disabled"])]),_:1},8,["title","model"]))}}),Es=D({name:"VIcon",__name:"Icon",props:{icon:{},label:{},active:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>({"is-active":t.active,"is-open":t.open})),o=()=>{r("click")};return(a,s)=>(y(),V(d(Br),{effect:"dark",placement:"right",content:a.label,"show-after":600},{default:k(()=>[R("div",{class:de(["v-apps-region__icon",i.value]),onClick:o},[(y(),V(Ke(a.icon)))],2)]),_:1},8,["content"]))}}),me=D({name:"VPanel",__name:"panel",props:{title:{},subtitle:{},plus:{type:Boolean},back:{type:Boolean},edit:{type:Boolean},remove:{type:Boolean},save:{type:Boolean},header:{type:Boolean,default:!0},collapsable:{type:Boolean}},emits:["plus","back","remove","save","edit"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=O(()=>({"is-collapsed":!!i.value})),a=()=>{r("plus")},s=()=>{r("edit")},l=()=>{r("back")},u=()=>{r("remove")},c=()=>{r("save")},p=O(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?zd:void 0,onClickBack:t.back?l:void 0,onClick:t.collapsable?()=>{i.value=!i.value}:void 0}:null),m=h=>{i.value=h};return(h,f)=>(y(),V(d(Qn),{class:de(["v-panel",o.value]),border:!1,header:p.value,fit:""},qt({actions:k(()=>[t.plus?(y(),V(d(Oe),{key:0,size:h.$attrs.size,mode:"icon",icon:d(Io),background:"hover",title:"新增",onClick:a},null,8,["size","icon"])):I("",!0),t.edit?(y(),V(d(Oe),{key:1,size:h.$attrs.size,mode:"icon",icon:d(Fs),background:"hover",title:"编辑",onClick:s},null,8,["size","icon"])):I("",!0),t.remove?(y(),V(d(Oe),{key:2,size:h.$attrs.size,mode:"icon",icon:d(Dd),background:"hover",title:"清除",onClick:u},null,8,["size","icon"])):I("",!0),t.save?(y(),V(d(Oe),{key:3,size:h.$attrs.size,mode:"icon",icon:d(Bu),background:"hover",title:"保存",onClick:c},null,8,["size","icon"])):I("",!0),t.collapsable?xt((y(),V(d(Oe),{key:4,size:h.$attrs.size,mode:"icon",icon:d(Hs),background:"hover",title:"展开",onClick:f[0]||(f[0]=v=>m(!1))},null,8,["size","icon"])),[[Kt,i.value]]):I("",!0),t.collapsable?xt((y(),V(d(Oe),{key:5,size:h.$attrs.size,mode:"icon",icon:d(Id),background:"hover",title:"收起",onClick:f[1]||(f[1]=v=>m(!0))},null,8,["size","icon"])),[[Kt,!i.value]]):I("",!0),ce(h.$slots,"actions")]),default:k(()=>[ce(h.$slots,"default")]),_:2},[h.$slots.footer?{name:"footer",fn:k(()=>[ce(h.$slots,"footer")]),key:"0"}:void 0]),1032,["class","header"]))}}),C4={class:"v-tabs__header"},$4={key:0,class:"v-tabs__actions"},Gr=D({__name:"tabs",props:{items:{default:()=>[]},menus:{},modelValue:{},stretch:{type:Boolean},checkable:{type:Boolean}},emits:["update:modelValue","command","remove","action-click"],setup(n,{emit:e}){const t=n,r=e,i=B((t.modelValue||t.items[0]?.name)??"");se(i,()=>{r("update:modelValue",i.value)}),se(()=>t.modelValue,l=>{i.value=l});const o=l=>{r("command",l)},a=l=>{r("remove",l)},s=l=>{r("action-click",l)};return(l,u)=>(y(),V(d(Qn),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:k(()=>[R("div",C4,[b(d(Jo),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c),onTabRemove:a,onActionClick:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(y(),M("div",$4,[t.menus&&t.menus.length?(y(),V(d(Oe),{key:0,mode:"icon",size:"small",icon:d(po),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:o},{item:k(({item:c})=>[R("span",null,[t.checkable?(y(),V(d(Ao),{key:0,class:de({"v-tabs__checked":!0,"is-checked":c.checked})},null,8,["class"])):I("",!0),ue(" "+te(c.label),1)])]),_:1},8,["icon","menus"])):I("",!0)])):I("",!0)])]),default:k(()=>[ce(l.$slots,"default")]),_:3}))}}),E4={key:2,class:"v-item__index"},A4={class:"v-item__content"},T4={key:3,class:"v-item__subtitle"},Me=D({name:"VItem",__name:"item",props:{icon:{},index:{},tag:{},tagType:{},title:{},subtitle:{},actions:{default:()=>[]},background:{type:Boolean},border:{type:Boolean},switch:{type:Boolean},modelValue:{},active:{type:Boolean},hover:{type:Boolean},small:{type:Boolean}},emits:["click","action","update:modelValue","switch"],setup(n,{emit:e}){const t={add:{label:"创建",icon:Io},copy:{label:"复制",icon:To},edit:{label:"编辑",icon:Do},remove:{label:"删除",icon:Gn},lock:{label:"锁定",icon:Oo},unlock:{label:"解锁",icon:Tu},invisible:{label:"隐藏",icon:Mo},visible:{label:"显示",icon:Ju},home:{label:"主页",icon:$u}},r=n,i=e,o=B(!!r.modelValue),a=O(()=>r.actions.map(c=>{const p=t[c];return{name:c,...p}})),s=O(()=>({"is-background":r.background,"is-border":r.border,"is-active":r.active,"is-hover":r.hover,"is-small":r.small})),l=()=>{i("click",r.modelValue)},u=async c=>{c==="remove"?await co.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:c,modelValue:r.modelValue}):i("action",{name:c,modelValue:r.modelValue})};return se(o,c=>{i("update:modelValue",c),i("switch",c)}),se(()=>r.modelValue,c=>{o.value=!!c}),(c,p)=>(y(),V(d(ae),{class:de(["v-item",s.value]),justify:"space-between",align:"center",onClick:l},{default:k(()=>[b(d(ae),{class:"v-item__title",align:"center"},{default:k(()=>[ce(c.$slots,"default",{},()=>[c.icon?(y(),V(d(rt),{key:0,icon:c.icon},null,8,["icon"])):I("",!0),r.tag?(y(),V(d(Ed),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:k(()=>[ue(te(r.tag),1)]),_:1},8,["type"])):I("",!0),c.index!==void 0?(y(),M("span",E4," # "+te(c.index),1)):I("",!0),R("span",A4,te(c.title),1),c.subtitle?(y(),M("span",T4,te(c.subtitle),1)):I("",!0)])]),_:3}),b(d(ae),{class:"v-item__actions",onClick:p[1]||(p[1]=un(()=>{},["stop"]))},{default:k(()=>[(y(!0),M(ne,null,oe(a.value,m=>(y(),V(d(Oe),{name:m.name,title:m.label,mode:"icon",size:"small",background:"none",type:"info",icon:m.icon,onClick:h=>u(m.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(y(),V(d(oo),{key:0,modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),class:"v-item__switch",size:"small"},null,8,["modelValue"])):I("",!0),ce(c.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),O4=["draggable"],B4={class:"v-box__name"},z4={class:"v-box__label"},Qi=D({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},o=async()=>{await co.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},a=O(()=>({"is-active":t.active,"is-draggable":t.draggable})),s=()=>{r("dragstart",t)},l=()=>{r("dragend",t)};return(u,c)=>(y(),M("div",{class:de(["v-box",a.value]),draggable:u.draggable,onDragstart:s,onDragend:l},[b(d(ae),{direction:"column",justify:"center",align:"center"},{default:k(()=>[R("span",B4,te(t.name),1),R("span",z4,te(t.title),1)]),_:1}),t.editable?(y(),V(d(ae),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:k(()=>[b(d(rt),{icon:d(Do),onClick:i},null,8,["icon"]),b(d(rt),{icon:d(Gn),onClick:o},null,8,["icon"])]),_:1})):I("",!0)],42,O4))}}),D4={class:"v-context-viewer"},I4=D({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],o=c=>{const p=c.value,m=oi(p);return m==="Object"||m==="Module"?Object.keys(p||{}).length===0:m==="Array"?p.length===0:!0},a=(c,p="this")=>typeof c=="object"?Array.isArray(c)?c.map((m,h)=>{const f=`[${h}]`;return{label:f,value:m,type:oi(m),path:`${p}${f}`}}):Object.entries(c).map(([m,h])=>({label:m,value:h,type:oi(h),path:`${p}.${m}`})).filter(m=>!m.label.startsWith("__")&&!i.includes(m.label)):[],s=(c,p)=>{if(c.level===0)p(a(t.context));else{const m=ln(c.data.value);p(a(m,c.data.path))}},l=c=>{r("copy",c.path)},u=c=>{r("pick",c.path)};return(c,p)=>(y(),M("div",D4,[c.context?(y(),V(d(uo),{key:0,lazy:"",load:s,"expand-on-click-node":!1,props:{isLeaf:o}},{default:k(({data:m})=>[b(Me,{title:m.label,clickable:"",onClick:h=>u(m),background:"",actions:["copy"],onAction:h=>l(m),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):I("",!0)]))}}),Yo=D({__name:"binder",props:{title:{},context:{},block:{},model:{},rules:{},modelValue:{type:Boolean},submitMethod:{type:Function},unbindEnabled:{type:Boolean}},emits:["unbind","submit","cancel","pick","update:modelValue","close"],setup(n,{emit:e}){const t=n,r=e,{searchResult:i,keyword:o}=t4(t.block,t.context),{copy:a}=Ld({}),s=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],l=B("normal"),u=B(),c=async j=>{r("submit",j),t.submitMethod?await t.submitMethod(j)&&p():p()},p=()=>{r("update:modelValue",!1),r("close")},m=()=>{r("unbind")},h=()=>{p()},f=async()=>{u.value?.submit()},v=j=>{r("pick",j)},g=j=>{a(j),Dr.success({message:"已经复制到粘贴板"})};return(j,w)=>(y(),V(d(Rt),{"model-value":t.modelValue,class:"v-binder",title:j.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:p},{default:k(()=>[b(d(ae),{fit:"",direction:"row",overflow:"hidden"},{default:k(()=>[b(d(ae),{width:"30%",height:"100%"},{default:k(()=>[b(Gr,{class:"v-binder__tabs",items:s,modelValue:l.value,"onUpdate:modelValue":w[1]||(w[1]=_=>l.value=_)},{default:k(()=>[b(d(ae),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:k(()=>[xt(R("div",null,[b(d(tt),{modelValue:d(o),"onUpdate:modelValue":w[0]||(w[0]=_=>gi(o)?o.value=_:null),size:"small",clearable:"","prefix-icon":d(Ls),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(y(!0),M(ne,null,oe(d(i),_=>(y(),M("div",null,[b(d(zr),{"border-style":"dotted"},{default:k(()=>[ue(te(_.title),1)]),_:2},1024),(y(!0),M(ne,null,oe(_.items,S=>(y(),V(Me,{title:S,background:"",actions:["copy"],small:"",onClick:C=>v(S),onAction:C=>g(S)},null,8,["title","onClick","onAction"]))),256))]))),256)),d(i).length?I("",!0):(y(),V(d(Be),{key:0}))],512),[[Kt,l.value==="normal"]]),xt(b(I4,{context:t.context,onCopy:g,onPick:v},null,8,["context"]),[[Kt,l.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),b(d(Qn),{grow:"",header:null,border:!1},{footer:k(()=>[b(d(ae),{justify:"space-between"},{default:k(()=>[b(d(ae),null,{default:k(()=>[j.unbindEnabled?(y(),V(d(Ve),{key:0,type:"warning",size:"default",onClick:m},{default:k(()=>[ue(" 移除绑定 ")]),_:1})):I("",!0)]),_:1}),b(d(ae),null,{default:k(()=>[b(d(Ve),{type:"default",size:"default",onClick:h},{default:k(()=>[ue(" 取消 ")]),_:1}),b(d(Ve),{type:"primary",size:"default",onClick:f},{default:k(()=>[ue(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:k(()=>[b(d(Kr),{ref_key:"formRef",ref:u,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":c},{default:k(()=>[ce(j.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),R4={class:"v-slots-picker__sn"},M4=D({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B(),o=O(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),a=l=>{i.value=l},s=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Te("请选择插槽")};return(l,u)=>(y(),V(d(Rt),ve({class:"v-slots-picker",title:"选择插槽",width:"600px",height:o.value,submit:"",cancel:"",onSubmit:s},l.$attrs),{default:k(()=>[b(d(Ps),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),b(d(ae),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:k(()=>[(y(!0),M(ne,null,oe(t.slots,(c,p)=>(y(),V(d(ae),{class:de(["v-slots-picker__item",{"is-active":c.name===i.value?.name}]),grow:"",flex:!1,onClick:m=>a(c)},{default:k(()=>[R("span",R4,"#"+te(p+1),1),ue(" "+te(c.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),Kc=D({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=O(()=>[`is-${e.mode}`]),r=O(()=>{if(e.mode==="pc")return 1;const o=e.mode==="mobile"?Cs:$s,{width:a,height:s}=o,l=a>0?(e.width||0)/a:1,u=s>0?(e.height||0)/s:1;return Math.min(l,u)}),i=O(()=>{if(e.mode==="pc")return{};const o=e.mode==="mobile"?Cs:$s,{width:a,height:s}=o;return{width:`${a}px`,height:`${s}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(o,a)=>(y(),M("div",{class:de(["v-viewport",t.value]),style:Bt(i.value)},[ce(o.$slots,"default")],6))}}),P4=D({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=jn(),r=O(()=>e.value?.pages||[]),{current:i}=Ie(),o=B(!1),a=B(),s=B(),l=()=>{s.value=void 0,a.value=void 0,o.value=!0},u=async h=>{const{name:f,modelValue:v}=h,{data:g,node:j}=v;if(f==="add"&&(a.value=void 0,s.value=g.id,o.value=!0),f==="edit"&&(a.value=Kn(g),s.value=void 0,o.value=!0),f==="remove"){if(g.dir){const w=e.value?.getPage(g.id);if(w&&w.children?.length){Te("请先删除子页面");return}}e.value?.removePage(g.id)}if(f==="copy"){const w=j.parent?.data.id;e.value?.clonePage(g,w)}f==="home"&&(e.value?.setHomepage(g.id),We("设置主页成功","success"))},c=async h=>{h.raw&&We("这是源码模式页面,不能低代码设计","warning"),h.dir||h.raw?t.project.value?.deactivate():t.project.value?.active(h)},p=(h,f,v)=>v==="inner"?!!f.data.dir:!0,m=()=>{e.value?.update({pages:yi(r)})};return(h,f)=>(y(),V(d(me),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:l},{default:k(()=>[b(d(uo),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":p,onNodeDrop:m},{default:k(({data:v,node:g})=>[b(d(Me),{class:"v-pages-widget__item",icon:d(Pi)[v.icon],title:v.title,subtitle:v.name,"model-value":{data:v,node:g},actions:v.dir?["add","edit","remove"]:v.raw?["home","edit","remove"]:["home","copy","edit","remove"],onAction:u,onClick:j=>c(v),active:d(i)?.id===v.id,tag:d(e)?.homepage===v.id?"主页":void 0,"tag-type":"success",grow:"",small:"",background:"",hover:""},null,8,["icon","title","subtitle","model-value","actions","onClick","active","tag"])]),_:1},8,["data"]),o.value?(y(),V(V4,{key:0,modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),item:a.value,"parent-id":s.value},null,8,["modelValue","item","parent-id"])):I("",!0)]),_:1}))}}),N4=D({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=Wc(),{blocks:t,engine:r}=Gw(),i=B(void 0),{current:o}=Ie(),a=B(!1),s=O(()=>i.value?.id?"编辑":"新增"),l=O(()=>`(共 ${t.value.length} 个)`),u=()=>({name:"",title:"",type:"block"}),c=async w=>{const _=w,S=r.project.value;if(!S)return!1;if(w.id)if(!S.existBlockName(_.name,[_.id]))S.updateBlock(_);else return Te(`名称【${_.name}】已经存在,请更换名称`),!1;else if(!S.existBlockName(_.name))S.createBlock(_);else return Te(`名称【${_.name}】已经存在,请更换名称`),!1;return!0},p=()=>{i.value=u(),a.value=!0},m=w=>{i.value=Kn(w),a.value=!0},h=w=>{r.project.value?.removeBlock(w.id)},f=w=>{i.value&&(i.value.name=Er(w))},v=async w=>{r.project.value?.active(w)},g=async w=>{const _={type:"Schema",id:w.id},S=await r.assets.getBlockMaterial(_),C=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;C&&S&&C.setDragging(S)},j=()=>{const w=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;w&&w.setDragging(null)};return(w,_)=>(y(),V(d(me),{class:"v-blocks-widget",title:"区块管理",subtitle:l.value,plus:"",onPlus:p},{default:k(()=>[b(d(xi),{wrap:"wrap",gutter:5},{default:k(()=>[(y(!0),M(ne,null,oe(d(t),S=>(y(),V(d(wi),{key:S.id,span:d(e)},{default:k(()=>[b(d(Qi),{name:S.name,title:S.title,active:d(o)?.id===S.id,editable:"",onEdit:C=>m(S),onRemove:C=>h(S),onClick:C=>v(S),draggable:d(o)?.id!==S.id,onDragstart:C=>g(S),onDragend:j},null,8,["name","title","active","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(t).length?I("",!0):(y(),V(d(Be),{key:0})),b(d(kt),{modelValue:a.value,"onUpdate:modelValue":_[0]||(_[0]=S=>a.value=S),title:s.value,model:i.value,width:"600px",height:"250px","form-props":{tooltipMessage:!1},"submit-method":c},{default:k(()=>[b(d(ee),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:d(jt)},onChange:f},null,8,["rules"]),b(d(ee),{name:"title",label:"标题",required:""})]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),F4={class:"v-components-widget__search"},H4={key:0,class:"v-components-widget__result"},L4={class:"v-components-widget__list"},U4=D({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=Wc(),{tabs:r,currentTab:i,currentGroup:o,model:a,searchKey:s,searchResult:l}=Xw(),u=p=>{const m=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;m&&m.setDragging(p)},c=()=>{const p=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;p&&p.setDragging(null)};return(p,m)=>(y(),V(d(me),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:k(()=>[R("div",F4,[b(d(tt),{modelValue:d(s),"onUpdate:modelValue":m[0]||(m[0]=h=>gi(s)?s.value=h:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:k(()=>[b(d(Gu))]),_:1},8,["modelValue"])]),d(s)?(y(),M("div",H4,[b(d(xi),{wrap:"wrap",gutter:5},{default:k(()=>[(y(!0),M(ne,null,oe(d(l),h=>(y(),V(d(wi),{span:d(e),key:h.name},{default:k(()=>[b(d(Qi),{name:h.name,title:h.label||h.name,draggable:"",onDragstart:f=>u(h),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(l).length?I("",!0):(y(),V(d(Be),{key:0}))])):(y(),V(d(Jo),{key:1,items:d(r),modelValue:d(i),"onUpdate:modelValue":m[2]||(m[2]=h=>gi(i)?i.value=h:null)},{default:k(()=>[R("div",L4,[d(o)?(y(),V(d(wd),{key:0,modelValue:d(a)[d(i)],"onUpdate:modelValue":m[1]||(m[1]=h=>d(a)[d(i)]=h)},{default:k(()=>[(y(!0),M(ne,null,oe(d(o).children,h=>(y(),V(d(xd),{key:h.name,name:h.name,title:`${h.label} (${h.count})`},{default:k(()=>[h.components?(y(),V(d(xi),{key:0,wrap:"wrap",gutter:5},{default:k(()=>[(y(!0),M(ne,null,oe(h.components,f=>(y(),V(d(wi),{span:d(e),key:f.name},{default:k(()=>[b(d(Qi),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>u(f),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):I("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):I("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),W4=D({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=gt(),{current:i}=Ie(),o=B([]),a=(x,A)=>{if(A==="slot")return[];if(je(x))return x.locked?["unlock"]:["lock"];const T=x.parent;return T&&(T.locked||T.invisible)?[]:i.value?.locked?[]:x.locked?["unlock"]:x.invisible?["visible"]:["lock","invisible","copy","remove"]},s=(x,A)=>{const T={};if(!x.some($=>$.slot))return l(x);for(const $ of x){const E=$.slot?.name||"default";T[E]||(T[E]=[]),T[E].push($)}const X=[];for(const[$,E]of Object.entries(T))X.push({id:`${A.id}-${$}`,label:`#${$}`,type:"slot",model:A,disabled:!0,children:l(E)});return X},l=x=>{const A=[];return x.forEach(T=>{const X={id:T.id,label:T.name,type:T.id,model:T};Array.isArray(T.children)&&(X.children=s(T.children,T)),A.push(X)}),A},u=()=>{if(!i.value)return[];const{id:x,name:A,nodes:T}=i.value;return[{id:x,label:A,type:x,model:i.value,children:l(T)}]},c=async()=>{o.value=u(),r.value?.model&&(await ct(),t.value?.setSelected(r.value.model))},p=O(()=>r.value?.model.id),m=x=>{const A=x.data;if(A.type==="slot"||je(A.model)||A.model.locked||A.model.name==="template")return!1;const T=e.assets.componentMap.get(A.model.name);return T?(t.value?.setDragging(T),!0):!1},h=async(x,A,T)=>{const X=A.data,$={prev:"top",next:"bottom",inner:"inner"}[T];let E=!1;if(je(X.model))E=T==="inner",t.value?.setDropping(E?X.model:null,"inner");else{const P=X.model;E=!!await t.value?.allowDrop(P,$),t.value?.setDropping(E?P:null,"inner")}return E},f=x=>{const A=x?.model;if(!A||A.invisible||x.type==="slot"){t.value?.setSelected(null),t.value?.setHover(null);return}t.value?.setSelected(A),t.value?.setHover(null)},v=async(x,A,T)=>{const X=x.data,$=A.data;if(je($.model)){t.value?.setDropping(null),t.value?.setDragging(null);return}const E=$.model,P={before:"left",after:"right"}[T]||"inner";if(!await t.value?.allowDrop(E,P)){t.value?.setDropping(null),c(),Dr.warning({message:`${X.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const z=await t.value?.getDropSlot(T==="inner"?E:E.parent);if(z!==null){const K=X.model;K.slot=z,i.value?.move(K,E,P)}else c();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},g=x=>{if(x.type==="slot"){t.value?.setHover(null);return}je(x.model)?t.value?.setHover(x.model):(t.value?.setHover(x.model),x.model.invisible&&t.value?.setHover(null),x.model.name==="slot"&&t.value?.setHover(null))},j=()=>{t.value?.setHover(null)},w=x=>{const A=x.data;A.dragging=!0;const T=e.assets.componentMap.get(A.model.name);T&&t.value?.setDragging(T)},_=async x=>{const A=x.data;A.dragging=!1},S=(x,A)=>{x&&((x.id===A.id||!je(x)&&A.isChild(x))&&t.value?.setSelected(null),t.value?.setHover(null))},C=x=>{const{name:A,modelValue:T}=x,X=r.value?.model;switch(A){case"lock":S(X,T),T.lock();break;case"unlock":S(X,T),T.unlock();break;case"invisible":S(X,T),T.setVisible(!1);break;case"visible":T.setVisible(!0);break;case"copy":const $=i.value?.cloneNode(T);$&&t.value?.setSelected($);break;case"remove":S(X,T),i.value?.removeNode(T);break}};return se(e.changed,c,{immediate:!0}),(x,A)=>(y(),V(d(me),{class:"v-outline-widget",title:"大纲树"},{default:k(()=>[(y(),V(d(uo),{key:d(e).changed.value,data:o.value,"node-key":"id","default-expand-all":"",draggable:"","empty-text":"请新建或打开文件","current-node-key":p.value,"highlight-current":!0,"expand-on-click-node":!1,"allow-drop":h,"allow-drag":m,onCurrentChange:f,onNodeDrop:v,onNodeDragStart:w,onNodeDragEnd:_},{default:k(({data:T,node:X})=>[b(d(Me),{class:de(["v-outline-widget__item",{"is-locked":T.model.locked,"is-invisible":T.model.invisible,"is-dragging":T.dragging,"is-slot":T.type==="slot"}]),active:!T.model.invisible&&X.isCurrent&&T.type!=="slot",grow:"",small:"",background:"",hover:"","model-value":T.model,icon:T.model.locked?d(Oo):T.model.invisible?d(Mo):void 0,title:T.label,subtitle:T.type,actions:a(T.model,T.type),onAction:C,onMouseenter:$=>g(T),onMouseleave:j},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"]))]),_:1}))}}),J4=D({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=Jc(),i=O(()=>`(共 ${r.value} 条)`),o=s=>{s.name==="remove"&&e.value?.remove(s.modelValue.id)},a=async()=>{await kn("确定要清空历史记录吗?")&&e.value?.clear()};return(s,l)=>(y(),V(d(me),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!d(r),onRemove:a},{default:k(()=>[d(r)===0?(y(),V(d(Be),{key:0,"image-size":50})):I("",!0),d(e)?(y(!0),M(ne,{key:1},oe(d(e).items,(u,c)=>(y(),V(d(Me),{index:c+1,title:u.label,"model-value":u,active:c==d(e).index,small:"",background:"",actions:["remove"],onAction:o,onClick:p=>d(t)(u.id)},null,8,["index","title","model-value","active","onClick"]))),256)):I("",!0)]),_:1},8,["subtitle","remove"]))}}),q4=D({__name:"base-info",setup(n){const e=qw.map(t=>({label:t,value:t.toLowerCase()}));return(t,r)=>(y(),M("div",null,[b(d(ee),{name:"method",label:"请求类型",required:"",editor:"radio",options:d(e)},null,8,["options"]),b(d(ee),{name:"name",label:"接口名称",required:"",rules:{pattern:d(jt),message:"名称格式不正确"}},null,8,["rules"]),b(d(ee),{name:"label",label:"备注说明",required:""}),b(d(ee),{name:"url",label:"接口URL",required:""})]))}}),Ae=ad({loader:()=>td(()=>import("./Editor-BKlikwSl-CQeex9PC.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:D({render(){return Re("div","正在拼命加载...")}}),errorComponent:D({render(){return Re("div","组件加载失败!")}})}),K4=D({__name:"request-settings",setup(n){const e=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],t=Jt("currentModel",null);return(r,i)=>(y(),M("div",null,[b(d(ae),{justify:"space-between"},{default:k(()=>[b(d(ee),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),b(d(ee),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),b(d(ee),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),b(d(ee),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),b(d(ee),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),b(d(ee),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:e,props:{button:!0}}),b(d(ee),{size:"small",name:"headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction"},{editor:k(()=>[b(d(Ae),{dark:"",height:"260px",modelValue:d(t).headers.value,"onUpdate:modelValue":i[0]||(i[0]=o=>d(t).headers.value=o)},null,8,["modelValue"])]),_:1})]))}}),G4=D({__name:"jsonp-options",setup(n){return(e,t)=>(y(),M("div",null,[b(d(ee),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),b(d(ee),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),b(d(ee),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),b(d(ee),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]))}}),Y4=R("span",null,"模拟数据模板",-1),X4=D({__name:"mock-template",setup(n){const e=Jt("currentModel",null),{project:t}=jn(),r=O(()=>t.value?.config||{}),i=()=>{window.open("https://vtj.pro/help/mock.html")};return(o,a)=>(y(),M("div",null,[r.value.mock?I("",!0):(y(),V(d(Ps),{key:0,type:"warning",title:"需要在项目配置中开启模拟数据",closable:!1,style:{"margin-bottom":"20px"}})),b(d(ee),{size:"small",name:"mock",label:"开启模拟数据",disabled:!r.value.mock,editor:"switch"},null,8,["disabled"]),b(d(ae),{justify:"space-between"},{default:k(()=>[Y4,b(d(Oe),{icon:d(Ro),mode:"text",label:"帮助",onClick:i},null,8,["icon"])]),_:1}),b(d(ee),{size:"small",name:"mockTemplate.value",label:" "},{editor:k(()=>[b(d(Ae),{dark:"",height:r.value.mock?"330px":"280px",lang:"typescript",disabled:!r.value.mock,readonly:!r.value.mock,modelValue:d(e).mockTemplate.value,"onUpdate:modelValue":a[0]||(a[0]=s=>d(e).mockTemplate.value=s)},null,8,["height","disabled","readonly","modelValue"])]),_:1})]))}}),Q4={key:0},Z4=D({__name:"form",props:{model:{},project:{}},setup(n){const e=n,t=O(()=>e.model?"编辑API":"新增API"),r=B("base"),i=B(),o=B(),a=B(e.model||{}),s=B(!1),l=B(""),u=[{label:"基础信息",value:"base"},{label:"请求配置",value:"settings"},{label:"模拟数据",value:"mock"}];vi("currentModel",a);const c=O(()=>a.value?.method==="jsonp");se(()=>e.model,v=>{a.value=Object.assign({},v||{}),r.value="base"},{immediate:!0}),se(r,async()=>{o.value?.formRef.validate(async v=>{v||(await ct(),r.value="base")})});const p=()=>{i.value?.cancel()},m=()=>{o.value?.submit()},h=async v=>e.project?.existApiName(a.value.name,e.model?[a.value.id]:[])?(Te(`API名称 [ ${a.value.name} ] 已存在`),!1):a.value.headers&&!ze(a.value.headers,window)||a.value.mockTemplate&&!ze(a.value.mockTemplate,window)?!1:(e.project?.setApi(a.value),i.value?.close(),!0),f=()=>{if(a.value.mockTemplate){const v=ft(a.value.mockTemplate,{},!0),{url:g,method:j}=a.value,w=Mn.mock(v({url:g,type:j}));l.value=JSON.stringify(w,null,2),s.value=!0}};return(v,g)=>(y(),V(d(Rt),{ref_key:"dialogRef",ref:i,title:t.value,width:"1000px",height:"600px"},{default:k(()=>[b(d(ae),{fit:""},{default:k(()=>[b(d(ae),{width:"100px",shrink:!1},{default:k(()=>[b(d(Jo),{modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=j=>r.value=j),items:u,"tab-position":"left",border:"",fit:""},null,8,["modelValue"])]),_:1}),b(d(Qn),{header:null,border:!1,overflow:"auto",grow:"",shrink:!0,fit:""},{footer:k(()=>[b(d(ae),{justify:"space-between"},{default:k(()=>[R("div",null,[r.value==="mock"?(y(),V(d(Ve),{key:0,disabled:!e.project?.config?.mock,type:"warning",onClick:f},{default:k(()=>[ue(" 预览 ")]),_:1},8,["disabled"])):I("",!0)]),R("div",null,[b(d(Ve),{onClick:p},{default:k(()=>[ue("取消")]),_:1}),b(d(Ve),{type:"primary",onClick:m},{default:k(()=>[ue("保存")]),_:1})])]),_:1})]),default:k(()=>[b(d(Kr),{ref_key:"formRef",ref:o,footer:!1,labelPosition:"top",tooltipMessage:!1,model:a.value,submitMethod:h},{default:k(()=>[xt(b(q4,null,null,512),[[Kt,r.value==="base"]]),r.value==="settings"?(y(),M("div",Q4,[c.value?(y(),V(G4,{key:0})):(y(),V(K4,{key:1}))])):I("",!0),r.value==="mock"?(y(),V(X4,{key:1})):I("",!0)]),_:1},8,["model"])]),_:1})]),_:1}),s.value?(y(),V(d(Ms),{key:0,class:"v-drawer",modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=j=>s.value=j),title:"模拟数据结果",direction:"btt","append-to-body":"",size:"80%"},{default:k(()=>[b(d(Ae),{"model-value":l.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):I("",!0)]),_:1},8,["title"]))}}),e8=D({name:"ApisWidget",__name:"index",setup(n){const e=B(!1),t=B(null),r=B(!1),i=O(()=>o.value?.apis||[]),{project:o}=jn(),a=()=>({id:"",method:"get",name:"",label:"",url:"",settings:{loading:!0,failMessage:!0,validSuccess:!0,originResponse:!1,injectHeaders:!1,type:"form"},headers:{type:"JSExpression",value:"({})"},jsonpOptions:{},mock:!1,mockTemplate:{type:"JSFunction",value:`(req) => {
94
94
  return {
95
95
  code: 0,
96
96
  data: null
97
97
  }
98
- }`}}),s=()=>{e.value=!0,r.value=!1,t.value=a()},l={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},u=p=>{p.name==="edit"&&c(p.modelValue),p.name==="remove"&&o.value?.removeApi(p.modelValue.name)},c=p=>{r.value=!0,t.value=Kn(p),e.value=!0};return(p,m)=>(y(),V(d(me),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:s},{default:S(()=>[(y(!0),M(ne,null,oe(i.value,h=>(y(),V(d(Me),{key:h.id,small:"",title:h.name,subtitle:h.label,"model-value":h,tag:h.method?.toUpperCase(),"tag-type":l[h.method||"get"],background:"",actions:["edit","remove"],onClick:f=>c(h),onAction:u},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),i.value.length===0?(y(),V(d(Be),{key:0,"image-size":50})):I("",!0),w(Z4,{modelValue:e.value,"onUpdate:modelValue":m[0]||(m[0]=h=>e.value=h),model:t.value,project:d(o)},null,8,["modelValue","model","project"])]),_:1}))}}),t8=D({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=Uc(),r=B(!1),i=B(!1),o=B({}),a=O(()=>i.value?"查看依赖":o.value?"编辑依赖":"新增依赖"),s=f=>f.required||f.official?[]:["edit","remove"],l=f=>f.official&&!f.required,u=async f=>(f.urls=f.urls.split(`
98
+ }`}}),s=()=>{e.value=!0,r.value=!1,t.value=a()},l={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},u=p=>{p.name==="edit"&&c(p.modelValue),p.name==="remove"&&o.value?.removeApi(p.modelValue.name)},c=p=>{r.value=!0,t.value=Kn(p),e.value=!0};return(p,m)=>(y(),V(d(me),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:s},{default:k(()=>[(y(!0),M(ne,null,oe(i.value,h=>(y(),V(d(Me),{key:h.id,small:"",title:h.name,subtitle:h.label,"model-value":h,tag:h.method?.toUpperCase(),"tag-type":l[h.method||"get"],background:"",actions:["edit","remove"],onClick:f=>c(h),onAction:u},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),i.value.length===0?(y(),V(d(Be),{key:0,"image-size":50})):I("",!0),b(Z4,{modelValue:e.value,"onUpdate:modelValue":m[0]||(m[0]=h=>e.value=h),model:t.value,project:d(o)},null,8,["modelValue","model","project"])]),_:1}))}}),t8=D({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=Uc(),r=B(!1),i=B(!1),o=B({}),a=O(()=>i.value?"查看依赖":o.value?"编辑依赖":"新增依赖"),s=f=>f.required||f.official?[]:["edit","remove"],l=f=>f.official&&!f.required,u=async f=>(f.urls=f.urls.split(`
99
99
  `),t.project.value?.setDeps(f),!0),c=f=>{t.project.value?.setDeps(f)},p=()=>{i.value=!1,r.value=!0,o.value=null},m=f=>{i.value=!0,o.value={...f,urls:f.urls.join(`
100
100
  `)},r.value=!0},h=(f,v)=>{v.name==="edit"&&(o.value={...f,urls:f.urls.join(`
101
- `)},i.value=!1,r.value=!0),v.name==="remove"&&t.project.value?.removeDeps(f)};return(f,v)=>(y(),V(d(me),{class:"v-deps-widget",title:"依赖管理",plus:"",onPlus:p},{default:S(()=>[(y(!0),M(ne,null,oe(d(e),g=>(y(),V(d(Me),{key:g.package,title:g.package,subtitle:g.version,actions:s(g),background:"",switch:l(g),modelValue:g.enabled,"onUpdate:modelValue":j=>g.enabled=j,onSwitch:j=>c(g),onClick:j=>m(g),onAction:j=>h(g,j)},null,8,["title","subtitle","actions","switch","modelValue","onUpdate:modelValue","onSwitch","onClick","onAction"]))),128)),w(d(kt),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=g=>r.value=g),width:"600px",height:"500px",title:a.value,model:o.value,submitMethod:u,formProps:{disabled:i.value,tooltipMessage:!1}},{default:S(()=>[w(d(ee),{name:"package",label:"包名",required:"",disabled:!!o.value},null,8,["disabled"]),w(d(ee),{name:"version",label:"版本",required:""}),w(d(ee),{name:"library",label:"导出名称",required:""}),w(d(ee),{name:"urls",label:"资源文件",editor:"textarea",props:{rows:3},tip:"多个资源可以换行输入",required:""}),w(d(ee),{name:"assetsUrl",label:"物料URL"}),w(d(ee),{name:"assetsLibrary",label:"物料名称"})]),_:1},8,["modelValue","title","model","formProps"])]),_:1}))}}),n8=D({__name:"actions",props:{position:{},model:{},path:{default:()=>[]}},emits:["action"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>t.model.name),o=O(()=>!je(t.model)&&!t.model.locked),a=O(()=>t.path.map(c=>({command:c,label:c.name,onMouseenter:()=>{r("action",{type:"hover",model:c})}}))),s=[{name:"prev",icon:Hu,title:"向前移动"},{name:"next",icon:Fu,title:"向后移动"},{name:"copy",icon:To,title:"复制"},{name:"remove",icon:Gn,title:"删除"}],l=c=>{r("action",{type:"selected",model:c.command})},u=async c=>{c.name==="remove"?await kn("确定删除?")&&r("action",{type:c.name,model:t.model}):r("action",{type:c.name,model:t.model})};return(c,p)=>(y(),M("div",{class:de(["v-actions",[`is-${t.position}`]])},[w(d(Oe),{mode:"icon",size:"small",icon:d(Bo),label:i.value,menus:a.value,background:"none",onCommand:l},null,8,["icon","label","menus"]),w(d(S6),{disabled:!o.value,mode:"icon",size:"small",items:s,background:"none",onClick:u},null,8,["disabled"])],2))}}),r8={key:1,class:"v-designer__placeholder"},i8=D({name:"VDesigner",inheritAttrs:!1,__name:"index",setup(n,{expose:e}){const t=B(),r=B(),{width:i,height:o}=mn(t),{dependencies:a,engine:s,apis:l}=Uc(),{current:u,isEmpty:c}=Ie(),p=O(()=>s.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc"),m=O(()=>s.project.value?.config||{}),{designer:h,hover:f,dropping:v,selected:g}=Qw(r,a,l,m),j=b=>{const _=b.type,k=b.model;if(u.value)switch(_){case"remove":u.value.removeNode(k),h.value?.setSelected(null);break;case"copy":const C=u.value.cloneNode(k);h.value?.setSelected(C);break;case"prev":u.value.movePrev(k),h.value?.setSelected(k);break;case"next":u.value.moveNext(k),h.value?.setSelected(k);break;case"hover":h.value?.setHover(k);break;case"selected":h.value?.setSelected(k);break}};return e({designer:h,mode:p}),(b,_)=>(y(),M("div",{ref_key:"container",ref:t,class:"v-designer"},[w(d(Kc),{mode:p.value,width:d(i),height:d(o)},{default:S(()=>[R("iframe",{ref_key:"iframe",ref:r,frameborder:"0"},null,512),d(v)?(y(),M("div",{key:0,class:de(["v-designer__dropping","is-inner"]),style:Bt(d(v).style)},null,4)):I("",!0),d(f)?(y(),M("div",{key:1,class:"v-designer__hover",style:Bt(d(f).style)},[R("span",{class:de(`is-${d(f).position}`)},[ue(te(d(f).model.name)+": ",1),R("i",null,te(d(f).model.id),1)],2)],4)):I("",!0),d(g)?(y(),M("div",{key:2,class:"v-designer__selected",style:Bt(d(g).style)},[w(n8,{position:d(g).position,model:d(g).model,path:d(g).path,onAction:j},null,8,["position","model","path"])],4)):I("",!0)]),_:1},8,["mode","width","height"]),d(u)?I("",!0):(y(),V(d(Be),{key:0,description:"请新建或打开文件"})),d(u)&&d(c)?(y(),M("div",r8," 您可以拖拽组件放置到这里 ")):I("",!0)],512))}}),er=D({__name:"group",props:{context:{},current:{},title:{},nameLabel:{},valueLabel:{},createEmpty:{},list:{},remove:{},submit:{},itemTitle:{type:Function,default:n=>n.name}},setup(n){const e=n,t=B(),r=B(),i=B(!1),o=B(e.createEmpty()),a=B(!1),s=O(()=>a.value?`编辑${e.title}`:`新增${e.title}`),l=()=>{a.value=!1,o.value=e.createEmpty(),i.value=!0},u=(f,v)=>{switch(v.name){case"edit":p(f);break;case"remove":e.remove(f);break}},c=f=>{o.value.value=f},p=f=>{a.value=!0,o.value={...f},i.value=!0},m=async f=>e.submit(f,a.value),h=()=>{r.value?.itemRef.validate()};return(f,v)=>(y(),V(d(me),{title:e.title,class:"v-sub-panel",size:"small",fit:!1,plus:"",onPlus:l},{default:S(()=>[(y(!0),M(ne,null,oe(f.list,g=>(y(),V(d(Me),{title:e.itemTitle(g),border:"",actions:["edit","remove"],onAction:j=>u(g,j),onClick:j=>p(g)},null,8,["title","onAction","onClick"]))),256)),f.list.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":40})),w(d(Yo),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),title:s.value,"submit-method":m,model:o.value,block:f.current,context:f.context,onPick:c},{default:S(()=>[ce(f.$slots,"fields",wt(Dt({model:o.value,isEdit:a.value,nameLabel:f.nameLabel,valueLabel:f.valueLabel})),()=>[w(d(ee),{name:"name",label:f.nameLabel,required:"",disabled:a.value},null,8,["label","disabled"]),w(d(ee),{ref_key:"codeFieldRef",ref:r,name:"value",label:f.valueLabel,required:""},{editor:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:t,dark:"",height:"350px",modelValue:o.value.value,"onUpdate:modelValue":v[0]||(v[0]=g=>o.value.value=g),onBlur:h},null,8,["modelValue"])]),_:1},8,["label"])])]),_:3},8,["modelValue","title","model","block","context"])]),_:3},8,["title"]))}}),o8=D({__name:"state",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Object.entries(e.current?.state||{}).map(([a,s])=>({name:a,value:gn(s)}))),r=()=>({name:"",value:""}),i=a=>e.current?.removeState(a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.state[l])return Te(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSExpression",value:u};return ze(c,e.context,!0)?(e.current?.setState(l,c),!0):!1};return(a,s)=>(y(),V(er,{title:"状态数据",current:e.current,context:e.context,list:t.value,nameLabel:"状态数据名称",valueLabel:"状态初始值 [ JSExpression ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),a8=D({__name:"computed",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Object.entries(e.current?.computed||{}).map(([a,s])=>({name:a,value:gn(s)}))),r=()=>({name:"",value:"() => { }"}),i=a=>e.current?.removeFunction("computed",a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.computed[l])return Te(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSFunction",value:u};return ze(c,e.context,!0)?(e.current?.setFunction("computed",l,c),!0):!1};return(a,s)=>(y(),V(er,{title:"计算属性",current:e.current,context:e.context,list:t.value,nameLabel:"计算属性名称",valueLabel:"计算函数 [ JSFunction ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),s8=D({__name:"methods",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Object.entries(e.current?.methods||{}).map(([a,s])=>({name:a,value:gn(s)}))),r=()=>({name:"",value:"() => { }"}),i=a=>e.current?.removeFunction("methods",a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.methods[l])return Te(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSFunction",value:u};return ze(c,e.context,!0)?(e.current?.setFunction("methods",l,c),!0):!1};return(a,s)=>(y(),V(er,{title:"组件方法",current:e.current,context:e.context,list:t.value,nameLabel:"方法名称",valueLabel:"方法函数 [ JSFunction ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),l8=D({__name:"lifeCycles",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Z6.map(s=>({label:s,value:s}))),r=O(()=>Object.entries(e.current?.lifeCycles||{}).map(([s,l])=>({name:s,value:gn(l)}))),i=()=>({name:"",value:"() => { }"}),o=s=>e.current?.removeFunction("lifeCycles",s.name),a=async(s,l)=>{const{name:u,value:c}=s;if(!l&&e.current?.lifeCycles[u])return Te(`名称 ${u} 已存在,请更换!`),!1;const p={type:"JSFunction",value:c};return ze(p,e.context,!0)?(e.current?.setFunction("lifeCycles",u,p),!0):!1};return(s,l)=>(y(),V(er,{title:"生命周期",current:e.current,context:e.context,list:r.value,nameLabel:"名称",valueLabel:"函数 [ JSFunction ]",createEmpty:i,remove:o,submit:a},{fields:S(({model:u,nameLabel:c,isEdit:p,valueLabel:m})=>[w(d(ee),{name:"name",label:c,editor:"select",options:t.value,required:"",disabled:p},null,8,["label","options","disabled"]),w(d(ee),{name:"value",label:m,required:""},{editor:S(()=>[w(d(Ae),{ref:"editorRef",dark:"",height:"350px",modelValue:u.value,"onUpdate:modelValue":h=>u.value=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),u8=D({__name:"watch",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>(e.current?.watch||[]).map(s=>({...s,source:gn(s.source),handler:gn(s.handler)}))),r=()=>({source:"() => { }",deep:!1,immediate:!1,handler:"() => { }"}),i=s=>s.source,o=s=>e.current?.removeWatch(s),a=async(s,l)=>{const u={type:"JSFunction",value:s.source},c={type:"JSFunction",value:s.handler};if(!ze(u,e.context,!0)||!ze(c,e.context,!0))return!1;const p={...s,source:u,handler:c};return e.current?.setWatch(p),!0};return(s,l)=>(y(),V(er,{title:"侦听器",current:e.current,context:e.context,list:t.value,nameLabel:"侦听源 [ JSFunction ]",valueLabel:"处理函数 [ JSFunction ]",createEmpty:r,remove:o,submit:a,itemTitle:i,grow:""},{fields:S(({model:u,nameLabel:c,valueLabel:p})=>[w(d(ee),{name:"source",label:c,required:""},{editor:S(()=>[w(d(Ae),{dark:"",height:"100px",modelValue:u.source,"onUpdate:modelValue":m=>u.source=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),w(d(ee),{name:"deep",modelValue:u.deep,"onUpdate:modelValue":m=>u.deep=m,label:"深度监听",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),w(d(ee),{name:"immediate",modelValue:u.immediate,"onUpdate:modelValue":m=>u.immediate=m,label:"立即执行",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),w(d(ee),{name:"handler",label:p,required:""},{editor:S(()=>[w(d(Ae),{dark:"",height:"130px",modelValue:u.handler,"onUpdate:modelValue":m=>u.handler=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),c8=D({__name:"index",setup(n){const{current:e,context:t}=Ie();return(r,i)=>(y(),V(d(ae),{class:"v-scripts-widget",direction:"column",fit:""},{default:S(()=>[w(o8,{current:d(e),context:d(t)},null,8,["current","context"]),w(a8,{current:d(e),context:d(t)},null,8,["current","context"]),w(s8,{current:d(e),context:d(t)},null,8,["current","context"]),w(l8,{current:d(e),context:d(t)},null,8,["current","context"]),w(u8,{current:d(e),context:d(t)},null,8,["current","context"])]),_:1}))}}),fi=D({__name:"setters",props:{context:{},current:{},title:{},items:{},node:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=(a,s)=>{r("change",a,s)},o=a=>{r("remove",a)};return(a,s)=>(y(),V(d(me),{title:t.title,class:"v-sub-panel",size:"small",fit:!1},{default:S(()=>[w(d(qe),{class:"v-properties-widget__form",size:"small","label-width":"90px",onKeydown:s[0]||(s[0]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[(y(!0),M(ne,null,oe(t.items,l=>(y(),V(d(he),ve(l,{key:`${l.name}_${t.node.id}`,current:t.current,context:t.context,removable:t.removable,onChange:i,onRemove:o}),null,16,["current","context","removable"]))),128))]),_:1})]),_:1},8,["title"]))}}),d8=D({name:"PropertiesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=gt(),{node:i,commonProps:o,change:a,componentProps:s,customProps:l,addCustom:u,removeCustom:c,isExist:p}=n4(r),m=B(!1),h=B(),f=()=>{m.value=!0,h.value={name:""}},v=async j=>{const b=Object.keys(i.value?.props||{});return!p(j.name)&&!b.includes(j.name)?(u(j.name),!0):(Te("已存在该属性名称"),!1)},g=async j=>{await kn("确定删除?")&&c(j)};return(j,b)=>d(e)?(y(),V(d(ae),{key:0,class:"v-properties-widget",direction:"column",fit:""},{default:S(()=>[d(i)?(y(),V(fi,{key:0,title:"通用属性",current:d(e),context:d(t),node:d(i),items:d(o),onChange:d(a)},null,8,["current","context","node","items","onChange"])):I("",!0),d(i)&&d(s).length?(y(),V(fi,{key:1,title:"组件属性",current:d(e),context:d(t),node:d(i),items:d(s),onChange:d(a)},null,8,["current","context","node","items","onChange"])):I("",!0),d(i)?(y(),V(fi,{key:2,title:"自定义属性",current:d(e),context:d(t),node:d(i),items:d(l),onChange:d(a),removable:"",plus:"",grow:"",onPlus:f,onRemove:g},null,8,["current","context","node","items","onChange"])):I("",!0),w(d(kt),{modelValue:m.value,"onUpdate:modelValue":b[0]||(b[0]=_=>m.value=_),title:"新增自定义属性",width:"400px",height:"150px","submit-method":v,formProps:{tooltipMessage:!1},model:h.value},{default:S(()=>[w(d(ee),{name:"name",label:"属性名称",required:"",rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["rules"])]),_:1},8,["modelValue","model"])]),_:1})):I("",!0)}}),p8=D({name:"VariableBinder",__name:"variable",props:{context:{},current:{},value:{}},setup(n){const e=n,t=B(),r=Gt({type:"JSExpression",value:e.value}),i=o=>{t.value.getEditor().setValue(o),r.value=o};return(o,a)=>(y(),V(d(Yo),{title:"绑定变量","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:i},{default:S(()=>[w(d(ee),{name:"value",label:"绑定内容 [ JSExpression ]",required:""},{editor:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:t,modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),dark:"",height:"450px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),h8=D({name:"EventBinder",__name:"event",props:{context:{},current:{},name:{},event:{}},setup(n){const e=n,t=B(),r=Gt({name:e.name,...e.event,modifiers:Object.keys(e.event?.modifiers||{}),handler:{type:"JSFunction",value:e.event?.handler?.value||"() => {}"}}),i=Kw.map(a=>({label:a,value:a})),o=a=>{t.value.getEditor().setValue(a),r.handler.value=a};return(a,s)=>(y(),V(d(Yo),{title:"绑定事件","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:o},{default:S(()=>[w(d(ee),{name:"modifiers",label:"事件修饰符",editor:"checkbox",options:d(i)},null,8,["options"]),w(d(ee),{name:"handler.value",label:"事件处理函数 [ JSFunction ]",required:""},{editor:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:t,modelValue:r.handler.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.handler.value=l),dark:"",height:"350px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),m8=D({name:"EventsWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=gt(),{mouseEventList:i,keyboardEventList:o,componentEventList:a}=r4(r),s=B({name:"",event:void 0}),l=B(!1),u=f=>{s.value=Kn(f),l.value=!0},c=async f=>{const v={...f,modifiers:f.modifiers.reduce((g,j)=>(g[j]=!0,g),{})};return ze(v.handler,t.value,!0)?((r.value?.model).setEvent(v),!0):!1},p=async f=>{const v=r.value?.model;f.name&&(v.removeEvent(f.name),l.value=!1)},m=async()=>{s.value.name&&await kn("确定要删除该事件吗?")&&p(s.value)},h=f=>{const{name:v,modelValue:g}=f;v==="edit"&&u(g),v==="remove"&&p(g)};return(f,v)=>(y(),V(d(ae),{class:"v-events-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{title:"组件事件",class:"v-sub-panel",size:"small",fit:!1},{default:S(()=>[d(a).length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50,description:"该组件无自带事件"})),(y(!0),M(ne,null,oe(d(a),g=>(y(),V(d(Me),{key:`component_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:j=>u(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),w(d(me),{title:"鼠标事件",class:"v-sub-panel",size:"small",fit:!1},{default:S(()=>[(y(!0),M(ne,null,oe(d(i),g=>(y(),V(d(Me),{key:`mouse_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:j=>u(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),w(d(me),{title:"键盘事件",class:"v-sub-panel",size:"small",grow:"",fit:!1},{default:S(()=>[(y(!0),M(ne,null,oe(d(o),g=>(y(),V(d(Me),{key:`keyboard_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:j=>u(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),l.value?(y(),V(d(h8),{key:0,modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=g=>l.value=g),context:d(t),current:d(e),name:s.value.name,event:s.value.event,submitMethod:c,onUnbind:m},null,8,["modelValue","context","current","name","event"])):I("",!0)]),_:1}))}}),f8=D({name:"CssWidget",__name:"index",setup(n){const{current:e}=Ie(),t=B(),r=O(()=>e.value?.css||""),i=a=>{e.value?.setCss(a)},o=()=>{const a=(t.value?.getEditor()).getValue();i(a),We("保存成功")};return(a,s)=>(y(),V(d(me),{class:"v-css-widget v-sub-panel",title:"lang:css scoped",size:"small",fit:"",save:"",onSave:o},{default:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"css",dark:"",onBlur:i},null,8,["model-value"])]),_:1}))}}),v8=D({name:"DirectivesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=gt(),{vIf:i,vShow:o,vBind:a,vFor:s,vModels:l,onValueChange:u,onForChange:c,onModelChange:p}=s4(r),m=h=>h.arg?typeof h.arg=="string"?h.arg:ft(h.arg,{}):"modelValue";return(h,f)=>(y(),V(d(ae),{class:"v-directives-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{class:"v-sub-panel",title:"内置指令",size:"small",fit:!1},{default:S(()=>[w(d(qe),{size:"small","label-width":"80px",onKeydown:f[0]||(f[0]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[w(d(he),{name:"vIf",label:"v-if",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(i).value,onChange:d(u)},null,8,["current","context","value","onChange"]),w(d(he),{name:"vShow",label:"v-show",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(o).value,onChange:d(u)},null,8,["current","context","value","onChange"]),w(d(he),{name:"vBind",label:"v-bind",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(a).value,onChange:d(u)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),w(d(me),{class:"v-sub-panel",title:"循环",size:"small",fit:!1},{default:S(()=>[w(d(qe),{size:"small","label-width":"80px",onKeydown:f[1]||(f[1]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[w(d(he),{name:"value",label:"循环数据",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(s).value,onChange:d(c)},null,8,["current","context","value","onChange"]),w(d(he),{name:"item",label:"迭代变量名",setters:{name:"StringSetter",props:{placeholder:"item"}},current:d(e),context:d(t),value:d(s).iterator?.item,onChange:d(c)},null,8,["current","context","value","onChange"]),w(d(he),{name:"index",label:"索引变量名",setters:{name:"StringSetter",props:{placeholder:"index"}},current:d(e),context:d(t),value:d(s).iterator?.index,onChange:d(c)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),w(d(me),{class:"v-sub-panel",title:"双向绑定",size:"small",fit:!1,grow:""},{default:S(()=>[(y(!0),M(ne,null,oe(d(l),(v,g)=>(y(),V(d(me),{card:"",border:"",class:"v-sub-panel",size:"small",title:`v-model: ${m(v)}`,body:{grow:!1},fit:!1},{default:S(()=>[w(d(qe),{size:"small","label-width":"60px",onKeydown:f[2]||(f[2]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:S(()=>[w(d(he),{name:g.toString(),label:"绑定变量",setters:"ExpressionSetter",current:d(e),context:d(t),value:v.value,onChange:d(p)},null,8,["name","current","context","value","onChange"])]),_:2},1024)]),_:2},1032,["title"]))),256)),d(l).length?I("",!0):(y(),V(d(Be),{key:0,description:"当前组件没有双向绑定属性","image-size":50}))]),_:1})]),_:1}))}}),g8=D({name:"DefinedPropsDialog",__name:"props",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑定义属性":"新增定义属性"),r=B(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=Object.keys(Bc).map(a=>({label:a,value:a})),o=async a=>{const s=a.default;return s&&!ze(s,e.context,!0)?!1:(e.current.setProp(a),!0)};return(a,s)=>(y(),V(d(kt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":o},{default:S(()=>[w(d(ee),{name:"name",label:"属性名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"]),w(d(ee),{name:"type",label:"数据类型",editor:"checkbox",props:{button:!0,size:"small"},options:d(i),required:""},null,8,["options"]),w(d(ee),{name:"required",label:"必须",editor:"switch"}),w(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:S(()=>[w(d(Ae),{modelValue:r.value.default.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.default.value=l),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),y8=D({name:"DefinedEventsDialog",__name:"events",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑定义事件":"新增定义事件"),r=B({name:e.item}),i=async o=>(e.item&&e.current.removeEmit(e.item,!0),e.current.setEmit(o.name),!0);return(o,a)=>(y(),V(d(kt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:S(()=>[w(d(ee),{name:"name",label:"事件名称",required:"",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),b8=D({name:"DefinedSlotsDialog",__name:"slots",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑定义插槽":"新增定义插槽"),r=B({name:e.item}),i=async o=>(e.item&&e.current.removeSlot(e.item,!0),e.current.setSlot(o.name),!0);return(o,a)=>(y(),V(d(kt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:S(()=>[w(d(ee),{name:"name",label:"插槽名称",disabled:!!e.item,required:"",rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),w8=D({name:"DefinedInjectsDialog",__name:"injects",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑注入":"新增注入"),r=B(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=async o=>{const a=o.default;return a&&!ze(a,e.context,!0)?!1:(e.current.setInject(o),!0)};return(o,a)=>(y(),V(d(kt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:S(()=>[w(d(ee),{name:"name",label:"注入名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"]),w(d(ee),{name:"from",label:"来源名称",tip:"默认和注入名称一致"}),w(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:S(()=>[w(d(Ae),{modelValue:r.value.default.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.default.value=s),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),x8=D({name:"DefinedWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=O(()=>(e.value?.props||[]).map(E=>typeof E=="string"?{name:E}:E)),i=O(()=>e.value?.emits||[]),o=O(()=>e.value?.slots||[]),a=O(()=>e.value?.inject||[]),s=B(!1),l=B(),u=B(!1),c=B(),p=B(!1),m=B(),h=B(!1),f=B(),v=()=>{l.value=void 0,s.value=!0},g=E=>{const{name:P,modelValue:z}=E;P==="edit"&&j(z),P==="remove"&&e.value?.removeProp(z)},j=E=>{l.value=E,s.value=!0},b=()=>{c.value=void 0,u.value=!0},_=E=>{c.value=E,u.value=!0},k=E=>{const{name:P,modelValue:z}=E;P==="edit"&&_(z),P==="remove"&&e.value?.removeEmit(z)},C=()=>{m.value=void 0,p.value=!0},x=E=>{m.value=E,p.value=!0},A=E=>{const{name:P,modelValue:z}=E;P==="edit"&&x(z),P==="remove"&&e.value?.removeSlot(z)},T=()=>{f.value=void 0,h.value=!0},X=E=>{f.value=E,h.value=!0},$=E=>{const{name:P,modelValue:z}=E;P==="edit"&&X(z),P==="remove"&&e.value?.removeInject(z)};return(E,P)=>d(e)&&d(t)?(y(),V(d(ae),{key:0,class:"v-defined-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{class:"v-sub-panel",title:"定义属性",size:"small",plus:"",fit:!1,onPlus:v},{default:S(()=>[(y(!0),M(ne,null,oe(r.value,z=>(y(),V(d(Me),{"model-value":z,title:z.name,border:"",actions:["edit","remove"],onClick:K=>j(z),onAction:g},null,8,["model-value","title","onClick"]))),256)),r.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),s.value?(y(),V(g8,{key:1,current:d(e),context:d(t),modelValue:s.value,"onUpdate:modelValue":P[0]||(P[0]=z=>s.value=z),item:l.value},null,8,["current","context","modelValue","item"])):I("",!0)]),_:1}),w(d(me),{class:"v-sub-panel",title:"定义事件",size:"small",plus:"",fit:!1,onPlus:b},{default:S(()=>[(y(!0),M(ne,null,oe(i.value,z=>(y(),V(d(Me),{"model-value":z,title:z,border:"",actions:["remove"],onClick:K=>_(z),onAction:k},null,8,["model-value","title","onClick"]))),256)),i.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),u.value?(y(),V(y8,{key:1,modelValue:u.value,"onUpdate:modelValue":P[1]||(P[1]=z=>u.value=z),current:d(e),context:d(t),item:c.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1}),w(d(me),{class:"v-sub-panel",title:"定义插槽",size:"small",plus:"",fit:!1,onPlus:C},{default:S(()=>[(y(!0),M(ne,null,oe(o.value,z=>(y(),V(d(Me),{"model-value":z,title:z,border:"",actions:["remove"],onClick:K=>x(z),onAction:A},null,8,["model-value","title","onClick"]))),256)),o.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),p.value?(y(),V(b8,{key:1,modelValue:p.value,"onUpdate:modelValue":P[2]||(P[2]=z=>p.value=z),current:d(e),context:d(t),item:m.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1}),w(d(me),{class:"v-sub-panel",title:"注入",size:"small",plus:"",fit:!1,grow:"",onPlus:T},{default:S(()=>[(y(!0),M(ne,null,oe(a.value,z=>(y(),V(d(Me),{"model-value":z,title:z.name,border:"",actions:["remove"],onClick:K=>X(z),onAction:$},null,8,["model-value","title","onClick"]))),256)),a.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),h.value?(y(),V(w8,{key:1,modelValue:h.value,"onUpdate:modelValue":P[3]||(P[3]=z=>h.value=z),current:d(e),context:d(t),item:f.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1})]),_:1})):I("",!0)}}),_8=D({name:"DataSourceDialogForm",__name:"form",props:{context:{},current:{},item:{}},setup(n){const e=n,{apis:t}=l4(),r=B(Object.assign({type:"api",ref:"",name:"",label:"",transform:{type:"JSFunction",value:`(res) => {
101
+ `)},i.value=!1,r.value=!0),v.name==="remove"&&t.project.value?.removeDeps(f)};return(f,v)=>(y(),V(d(me),{class:"v-deps-widget",title:"依赖管理",plus:"",onPlus:p},{default:k(()=>[(y(!0),M(ne,null,oe(d(e),g=>(y(),V(d(Me),{key:g.package,title:g.package,subtitle:g.version,actions:s(g),background:"",switch:l(g),modelValue:g.enabled,"onUpdate:modelValue":j=>g.enabled=j,onSwitch:j=>c(g),onClick:j=>m(g),onAction:j=>h(g,j)},null,8,["title","subtitle","actions","switch","modelValue","onUpdate:modelValue","onSwitch","onClick","onAction"]))),128)),b(d(kt),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=g=>r.value=g),width:"600px",height:"500px",title:a.value,model:o.value,submitMethod:u,formProps:{disabled:i.value,tooltipMessage:!1}},{default:k(()=>[b(d(ee),{name:"package",label:"包名",required:"",disabled:!!o.value},null,8,["disabled"]),b(d(ee),{name:"version",label:"版本",required:""}),b(d(ee),{name:"library",label:"导出名称",required:""}),b(d(ee),{name:"urls",label:"资源文件",editor:"textarea",props:{rows:3},tip:"多个资源可以换行输入",required:""}),b(d(ee),{name:"assetsUrl",label:"物料URL"}),b(d(ee),{name:"assetsLibrary",label:"物料名称"})]),_:1},8,["modelValue","title","model","formProps"])]),_:1}))}}),n8=D({__name:"actions",props:{position:{},model:{},path:{default:()=>[]}},emits:["action"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>t.model.name),o=O(()=>!je(t.model)&&!t.model.locked),a=O(()=>t.path.map(c=>({command:c,label:c.name,onMouseenter:()=>{r("action",{type:"hover",model:c})}}))),s=[{name:"prev",icon:Hu,title:"向前移动"},{name:"next",icon:Fu,title:"向后移动"},{name:"copy",icon:To,title:"复制"},{name:"remove",icon:Gn,title:"删除"}],l=c=>{r("action",{type:"selected",model:c.command})},u=async c=>{c.name==="remove"?await kn("确定删除?")&&r("action",{type:c.name,model:t.model}):r("action",{type:c.name,model:t.model})};return(c,p)=>(y(),M("div",{class:de(["v-actions",[`is-${t.position}`]])},[b(d(Oe),{mode:"icon",size:"small",icon:d(Bo),label:i.value,menus:a.value,background:"none",onCommand:l},null,8,["icon","label","menus"]),b(d(S6),{disabled:!o.value,mode:"icon",size:"small",items:s,background:"none",onClick:u},null,8,["disabled"])],2))}}),r8={key:1,class:"v-designer__placeholder"},i8=D({name:"VDesigner",inheritAttrs:!1,__name:"index",setup(n,{expose:e}){const t=B(),r=B(),{width:i,height:o}=mn(t),{dependencies:a,engine:s,apis:l}=Uc(),{current:u,isEmpty:c}=Ie(),p=O(()=>s.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc"),m=O(()=>s.project.value?.config||{}),{designer:h,hover:f,dropping:v,selected:g}=Qw(r,a,l,m),j=w=>{const _=w.type,S=w.model;if(u.value)switch(_){case"remove":u.value.removeNode(S),h.value?.setSelected(null);break;case"copy":const C=u.value.cloneNode(S);h.value?.setSelected(C);break;case"prev":u.value.movePrev(S),h.value?.setSelected(S);break;case"next":u.value.moveNext(S),h.value?.setSelected(S);break;case"hover":h.value?.setHover(S);break;case"selected":h.value?.setSelected(S);break}};return e({designer:h,mode:p}),(w,_)=>(y(),M("div",{ref_key:"container",ref:t,class:"v-designer"},[b(d(Kc),{mode:p.value,width:d(i),height:d(o)},{default:k(()=>[R("iframe",{ref_key:"iframe",ref:r,frameborder:"0"},null,512),d(v)?(y(),M("div",{key:0,class:de(["v-designer__dropping","is-inner"]),style:Bt(d(v).style)},null,4)):I("",!0),d(f)?(y(),M("div",{key:1,class:"v-designer__hover",style:Bt(d(f).style)},[R("span",{class:de(`is-${d(f).position}`)},[ue(te(d(f).model.name)+": ",1),R("i",null,te(d(f).model.id),1)],2)],4)):I("",!0),d(g)?(y(),M("div",{key:2,class:"v-designer__selected",style:Bt(d(g).style)},[b(n8,{position:d(g).position,model:d(g).model,path:d(g).path,onAction:j},null,8,["position","model","path"])],4)):I("",!0)]),_:1},8,["mode","width","height"]),d(u)?I("",!0):(y(),V(d(Be),{key:0,description:"请新建或打开文件"})),d(u)&&d(c)?(y(),M("div",r8," 您可以拖拽组件放置到这里 ")):I("",!0)],512))}}),er=D({__name:"group",props:{context:{},current:{},title:{},nameLabel:{},valueLabel:{},createEmpty:{},list:{},remove:{},submit:{},itemTitle:{type:Function,default:n=>n.name}},setup(n){const e=n,t=B(),r=B(),i=B(!1),o=B(e.createEmpty()),a=B(!1),s=O(()=>a.value?`编辑${e.title}`:`新增${e.title}`),l=()=>{a.value=!1,o.value=e.createEmpty(),i.value=!0},u=(f,v)=>{switch(v.name){case"edit":p(f);break;case"remove":e.remove(f);break}},c=f=>{o.value.value=f},p=f=>{a.value=!0,o.value={...f},i.value=!0},m=async f=>e.submit(f,a.value),h=()=>{r.value?.itemRef.validate()};return(f,v)=>(y(),V(d(me),{title:e.title,class:"v-sub-panel",size:"small",fit:!1,plus:"",onPlus:l},{default:k(()=>[(y(!0),M(ne,null,oe(f.list,g=>(y(),V(d(Me),{title:e.itemTitle(g),border:"",actions:["edit","remove"],onAction:j=>u(g,j),onClick:j=>p(g)},null,8,["title","onAction","onClick"]))),256)),f.list.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":40})),b(d(Yo),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),title:s.value,"submit-method":m,model:o.value,block:f.current,context:f.context,onPick:c},{default:k(()=>[ce(f.$slots,"fields",wt(Dt({model:o.value,isEdit:a.value,nameLabel:f.nameLabel,valueLabel:f.valueLabel})),()=>[b(d(ee),{name:"name",label:f.nameLabel,required:"",disabled:a.value},null,8,["label","disabled"]),b(d(ee),{ref_key:"codeFieldRef",ref:r,name:"value",label:f.valueLabel,required:""},{editor:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:t,dark:"",height:"350px",modelValue:o.value.value,"onUpdate:modelValue":v[0]||(v[0]=g=>o.value.value=g),onBlur:h},null,8,["modelValue"])]),_:1},8,["label"])])]),_:3},8,["modelValue","title","model","block","context"])]),_:3},8,["title"]))}}),o8=D({__name:"state",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Object.entries(e.current?.state||{}).map(([a,s])=>({name:a,value:gn(s)}))),r=()=>({name:"",value:""}),i=a=>e.current?.removeState(a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.state[l])return Te(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSExpression",value:u};return ze(c,e.context,!0)?(e.current?.setState(l,c),!0):!1};return(a,s)=>(y(),V(er,{title:"状态数据",current:e.current,context:e.context,list:t.value,nameLabel:"状态数据名称",valueLabel:"状态初始值 [ JSExpression ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),a8=D({__name:"computed",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Object.entries(e.current?.computed||{}).map(([a,s])=>({name:a,value:gn(s)}))),r=()=>({name:"",value:"() => { }"}),i=a=>e.current?.removeFunction("computed",a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.computed[l])return Te(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSFunction",value:u};return ze(c,e.context,!0)?(e.current?.setFunction("computed",l,c),!0):!1};return(a,s)=>(y(),V(er,{title:"计算属性",current:e.current,context:e.context,list:t.value,nameLabel:"计算属性名称",valueLabel:"计算函数 [ JSFunction ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),s8=D({__name:"methods",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>Object.entries(e.current?.methods||{}).map(([a,s])=>({name:a,value:gn(s)}))),r=()=>({name:"",value:"() => { }"}),i=a=>e.current?.removeFunction("methods",a.name),o=async(a,s)=>{const{name:l,value:u}=a;if(!s&&e.current?.methods[l])return Te(`名称 ${l} 已存在,请更换!`),!1;const c={type:"JSFunction",value:u};return ze(c,e.context,!0)?(e.current?.setFunction("methods",l,c),!0):!1};return(a,s)=>(y(),V(er,{title:"组件方法",current:e.current,context:e.context,list:t.value,nameLabel:"方法名称",valueLabel:"方法函数 [ JSFunction ]",createEmpty:r,remove:i,submit:o},null,8,["current","context","list"]))}}),l8=D({__name:"lifeCycles",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>sw.map(s=>({label:s,value:s}))),r=O(()=>Object.entries(e.current?.lifeCycles||{}).map(([s,l])=>({name:s,value:gn(l)}))),i=()=>({name:"",value:"() => { }"}),o=s=>e.current?.removeFunction("lifeCycles",s.name),a=async(s,l)=>{const{name:u,value:c}=s;if(!l&&e.current?.lifeCycles[u])return Te(`名称 ${u} 已存在,请更换!`),!1;const p={type:"JSFunction",value:c};return ze(p,e.context,!0)?(e.current?.setFunction("lifeCycles",u,p),!0):!1};return(s,l)=>(y(),V(er,{title:"生命周期",current:e.current,context:e.context,list:r.value,nameLabel:"名称",valueLabel:"函数 [ JSFunction ]",createEmpty:i,remove:o,submit:a},{fields:k(({model:u,nameLabel:c,isEdit:p,valueLabel:m})=>[b(d(ee),{name:"name",label:c,editor:"select",options:t.value,required:"",disabled:p},null,8,["label","options","disabled"]),b(d(ee),{name:"value",label:m,required:""},{editor:k(()=>[b(d(Ae),{ref:"editorRef",dark:"",height:"350px",modelValue:u.value,"onUpdate:modelValue":h=>u.value=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),u8=D({__name:"watch",props:{context:{},current:{}},setup(n){const e=n,t=O(()=>(e.current?.watch||[]).map(s=>({...s,source:gn(s.source),handler:gn(s.handler)}))),r=()=>({source:"() => { }",deep:!1,immediate:!1,handler:"() => { }"}),i=s=>s.source,o=s=>e.current?.removeWatch(s),a=async(s,l)=>{const u={type:"JSFunction",value:s.source},c={type:"JSFunction",value:s.handler};if(!ze(u,e.context,!0)||!ze(c,e.context,!0))return!1;const p={...s,source:u,handler:c};return e.current?.setWatch(p),!0};return(s,l)=>(y(),V(er,{title:"侦听器",current:e.current,context:e.context,list:t.value,nameLabel:"侦听源 [ JSFunction ]",valueLabel:"处理函数 [ JSFunction ]",createEmpty:r,remove:o,submit:a,itemTitle:i,grow:""},{fields:k(({model:u,nameLabel:c,valueLabel:p})=>[b(d(ee),{name:"source",label:c,required:""},{editor:k(()=>[b(d(Ae),{dark:"",height:"100px",modelValue:u.source,"onUpdate:modelValue":m=>u.source=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),b(d(ee),{name:"deep",modelValue:u.deep,"onUpdate:modelValue":m=>u.deep=m,label:"深度监听",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),b(d(ee),{name:"immediate",modelValue:u.immediate,"onUpdate:modelValue":m=>u.immediate=m,label:"立即执行",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),b(d(ee),{name:"handler",label:p,required:""},{editor:k(()=>[b(d(Ae),{dark:"",height:"130px",modelValue:u.handler,"onUpdate:modelValue":m=>u.handler=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),c8=D({__name:"index",setup(n){const{current:e,context:t}=Ie();return(r,i)=>(y(),V(d(ae),{class:"v-scripts-widget",direction:"column",fit:""},{default:k(()=>[b(o8,{current:d(e),context:d(t)},null,8,["current","context"]),b(a8,{current:d(e),context:d(t)},null,8,["current","context"]),b(s8,{current:d(e),context:d(t)},null,8,["current","context"]),b(l8,{current:d(e),context:d(t)},null,8,["current","context"]),b(u8,{current:d(e),context:d(t)},null,8,["current","context"])]),_:1}))}}),fi=D({__name:"setters",props:{context:{},current:{},title:{},items:{},node:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=(a,s)=>{r("change",a,s)},o=a=>{r("remove",a)};return(a,s)=>(y(),V(d(me),{title:t.title,class:"v-sub-panel",size:"small",fit:!1},{default:k(()=>[b(d(qe),{class:"v-properties-widget__form",size:"small","label-width":"90px",onKeydown:s[0]||(s[0]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:k(()=>[(y(!0),M(ne,null,oe(t.items,l=>(y(),V(d(he),ve(l,{key:`${l.name}_${t.node.id}`,current:t.current,context:t.context,removable:t.removable,onChange:i,onRemove:o}),null,16,["current","context","removable"]))),128))]),_:1})]),_:1},8,["title"]))}}),d8=D({name:"PropertiesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=gt(),{node:i,commonProps:o,change:a,componentProps:s,customProps:l,addCustom:u,removeCustom:c,isExist:p}=n4(r),m=B(!1),h=B(),f=()=>{m.value=!0,h.value={name:""}},v=async j=>{const w=Object.keys(i.value?.props||{});return!p(j.name)&&!w.includes(j.name)?(u(j.name),!0):(Te("已存在该属性名称"),!1)},g=async j=>{await kn("确定删除?")&&c(j)};return(j,w)=>d(e)?(y(),V(d(ae),{key:0,class:"v-properties-widget",direction:"column",fit:""},{default:k(()=>[d(i)?(y(),V(fi,{key:0,title:"通用属性",current:d(e),context:d(t),node:d(i),items:d(o),onChange:d(a)},null,8,["current","context","node","items","onChange"])):I("",!0),d(i)&&d(s).length?(y(),V(fi,{key:1,title:"组件属性",current:d(e),context:d(t),node:d(i),items:d(s),onChange:d(a)},null,8,["current","context","node","items","onChange"])):I("",!0),d(i)?(y(),V(fi,{key:2,title:"自定义属性",current:d(e),context:d(t),node:d(i),items:d(l),onChange:d(a),removable:"",plus:"",grow:"",onPlus:f,onRemove:g},null,8,["current","context","node","items","onChange"])):I("",!0),b(d(kt),{modelValue:m.value,"onUpdate:modelValue":w[0]||(w[0]=_=>m.value=_),title:"新增自定义属性",width:"400px",height:"150px","submit-method":v,formProps:{tooltipMessage:!1},model:h.value},{default:k(()=>[b(d(ee),{name:"name",label:"属性名称",required:"",rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["rules"])]),_:1},8,["modelValue","model"])]),_:1})):I("",!0)}}),p8=D({name:"VariableBinder",__name:"variable",props:{context:{},current:{},value:{}},setup(n){const e=n,t=B(),r=Gt({type:"JSExpression",value:e.value}),i=o=>{t.value.getEditor().setValue(o),r.value=o};return(o,a)=>(y(),V(d(Yo),{title:"绑定变量","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:i},{default:k(()=>[b(d(ee),{name:"value",label:"绑定内容 [ JSExpression ]",required:""},{editor:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:t,modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),dark:"",height:"450px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),h8=D({name:"EventBinder",__name:"event",props:{context:{},current:{},name:{},event:{}},setup(n){const e=n,t=B(),r=Gt({name:e.name,...e.event,modifiers:Object.keys(e.event?.modifiers||{}),handler:{type:"JSFunction",value:e.event?.handler?.value||"() => {}"}}),i=Kw.map(a=>({label:a,value:a})),o=a=>{t.value.getEditor().setValue(a),r.handler.value=a};return(a,s)=>(y(),V(d(Yo),{title:"绑定事件","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:o},{default:k(()=>[b(d(ee),{name:"modifiers",label:"事件修饰符",editor:"checkbox",options:d(i)},null,8,["options"]),b(d(ee),{name:"handler.value",label:"事件处理函数 [ JSFunction ]",required:""},{editor:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:t,modelValue:r.handler.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.handler.value=l),dark:"",height:"350px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),m8=D({name:"EventsWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=gt(),{mouseEventList:i,keyboardEventList:o,componentEventList:a}=r4(r),s=B({name:"",event:void 0}),l=B(!1),u=f=>{s.value=Kn(f),l.value=!0},c=async f=>{const v={...f,modifiers:f.modifiers.reduce((g,j)=>(g[j]=!0,g),{})};return ze(v.handler,t.value,!0)?((r.value?.model).setEvent(v),!0):!1},p=async f=>{const v=r.value?.model;f.name&&(v.removeEvent(f.name),l.value=!1)},m=async()=>{s.value.name&&await kn("确定要删除该事件吗?")&&p(s.value)},h=f=>{const{name:v,modelValue:g}=f;v==="edit"&&u(g),v==="remove"&&p(g)};return(f,v)=>(y(),V(d(ae),{class:"v-events-widget",direction:"column",fit:""},{default:k(()=>[b(d(me),{title:"组件事件",class:"v-sub-panel",size:"small",fit:!1},{default:k(()=>[d(a).length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50,description:"该组件无自带事件"})),(y(!0),M(ne,null,oe(d(a),g=>(y(),V(d(Me),{key:`component_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:j=>u(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),b(d(me),{title:"鼠标事件",class:"v-sub-panel",size:"small",fit:!1},{default:k(()=>[(y(!0),M(ne,null,oe(d(i),g=>(y(),V(d(Me),{key:`mouse_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:j=>u(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),b(d(me),{title:"键盘事件",class:"v-sub-panel",size:"small",grow:"",fit:!1},{default:k(()=>[(y(!0),M(ne,null,oe(d(o),g=>(y(),V(d(Me),{key:`keyboard_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:j=>u(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),l.value?(y(),V(d(h8),{key:0,modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=g=>l.value=g),context:d(t),current:d(e),name:s.value.name,event:s.value.event,submitMethod:c,onUnbind:m},null,8,["modelValue","context","current","name","event"])):I("",!0)]),_:1}))}}),f8=D({name:"CssWidget",__name:"index",setup(n){const{current:e}=Ie(),t=B(),r=O(()=>e.value?.css||""),i=a=>{e.value?.setCss(a)},o=()=>{const a=(t.value?.getEditor()).getValue();i(a),We("保存成功")};return(a,s)=>(y(),V(d(me),{class:"v-css-widget v-sub-panel",title:"lang:css scoped",size:"small",fit:"",save:"",onSave:o},{default:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"css",dark:"",onBlur:i},null,8,["model-value"])]),_:1}))}}),v8=D({name:"DirectivesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=gt(),{vIf:i,vShow:o,vBind:a,vFor:s,vModels:l,onValueChange:u,onForChange:c,onModelChange:p}=s4(r),m=h=>h.arg?typeof h.arg=="string"?h.arg:ft(h.arg,{}):"modelValue";return(h,f)=>(y(),V(d(ae),{class:"v-directives-widget",direction:"column",fit:""},{default:k(()=>[b(d(me),{class:"v-sub-panel",title:"内置指令",size:"small",fit:!1},{default:k(()=>[b(d(qe),{size:"small","label-width":"80px",onKeydown:f[0]||(f[0]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:k(()=>[b(d(he),{name:"vIf",label:"v-if",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(i).value,onChange:d(u)},null,8,["current","context","value","onChange"]),b(d(he),{name:"vShow",label:"v-show",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(o).value,onChange:d(u)},null,8,["current","context","value","onChange"]),b(d(he),{name:"vBind",label:"v-bind",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(a).value,onChange:d(u)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),b(d(me),{class:"v-sub-panel",title:"循环",size:"small",fit:!1},{default:k(()=>[b(d(qe),{size:"small","label-width":"80px",onKeydown:f[1]||(f[1]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:k(()=>[b(d(he),{name:"value",label:"循环数据",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(s).value,onChange:d(c)},null,8,["current","context","value","onChange"]),b(d(he),{name:"item",label:"迭代变量名",setters:{name:"StringSetter",props:{placeholder:"item"}},current:d(e),context:d(t),value:d(s).iterator?.item,onChange:d(c)},null,8,["current","context","value","onChange"]),b(d(he),{name:"index",label:"索引变量名",setters:{name:"StringSetter",props:{placeholder:"index"}},current:d(e),context:d(t),value:d(s).iterator?.index,onChange:d(c)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),b(d(me),{class:"v-sub-panel",title:"双向绑定",size:"small",fit:!1,grow:""},{default:k(()=>[(y(!0),M(ne,null,oe(d(l),(v,g)=>(y(),V(d(me),{card:"",border:"",class:"v-sub-panel",size:"small",title:`v-model: ${m(v)}`,body:{grow:!1},fit:!1},{default:k(()=>[b(d(qe),{size:"small","label-width":"60px",onKeydown:f[2]||(f[2]=zn(un(()=>{},["prevent","stop"]),["enter"]))},{default:k(()=>[b(d(he),{name:g.toString(),label:"绑定变量",setters:"ExpressionSetter",current:d(e),context:d(t),value:v.value,onChange:d(p)},null,8,["name","current","context","value","onChange"])]),_:2},1024)]),_:2},1032,["title"]))),256)),d(l).length?I("",!0):(y(),V(d(Be),{key:0,description:"当前组件没有双向绑定属性","image-size":50}))]),_:1})]),_:1}))}}),g8=D({name:"DefinedPropsDialog",__name:"props",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑定义属性":"新增定义属性"),r=B(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=Object.keys(Bc).map(a=>({label:a,value:a})),o=async a=>{const s=a.default;return s&&!ze(s,e.context,!0)?!1:(e.current.setProp(a),!0)};return(a,s)=>(y(),V(d(kt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":o},{default:k(()=>[b(d(ee),{name:"name",label:"属性名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"]),b(d(ee),{name:"type",label:"数据类型",editor:"checkbox",props:{button:!0,size:"small"},options:d(i),required:""},null,8,["options"]),b(d(ee),{name:"required",label:"必须",editor:"switch"}),b(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:k(()=>[b(d(Ae),{modelValue:r.value.default.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.default.value=l),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),y8=D({name:"DefinedEventsDialog",__name:"events",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑定义事件":"新增定义事件"),r=B({name:e.item}),i=async o=>(e.item&&e.current.removeEmit(e.item,!0),e.current.setEmit(o.name),!0);return(o,a)=>(y(),V(d(kt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:k(()=>[b(d(ee),{name:"name",label:"事件名称",required:"",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),b8=D({name:"DefinedSlotsDialog",__name:"slots",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑定义插槽":"新增定义插槽"),r=B({name:e.item}),i=async o=>(e.item&&e.current.removeSlot(e.item,!0),e.current.setSlot(o.name),!0);return(o,a)=>(y(),V(d(kt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:k(()=>[b(d(ee),{name:"name",label:"插槽名称",disabled:!!e.item,required:"",rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),w8=D({name:"DefinedInjectsDialog",__name:"injects",props:{item:{},current:{},context:{}},setup(n){const e=n,t=O(()=>e.item?"编辑注入":"新增注入"),r=B(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=async o=>{const a=o.default;return a&&!ze(a,e.context,!0)?!1:(e.current.setInject(o),!0)};return(o,a)=>(y(),V(d(kt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:k(()=>[b(d(ee),{name:"name",label:"注入名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"]),b(d(ee),{name:"from",label:"来源名称",tip:"默认和注入名称一致"}),b(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:k(()=>[b(d(Ae),{modelValue:r.value.default.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value.default.value=s),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),x8=D({name:"DefinedWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=O(()=>(e.value?.props||[]).map(E=>typeof E=="string"?{name:E}:E)),i=O(()=>e.value?.emits||[]),o=O(()=>e.value?.slots||[]),a=O(()=>e.value?.inject||[]),s=B(!1),l=B(),u=B(!1),c=B(),p=B(!1),m=B(),h=B(!1),f=B(),v=()=>{l.value=void 0,s.value=!0},g=E=>{const{name:P,modelValue:z}=E;P==="edit"&&j(z),P==="remove"&&e.value?.removeProp(z)},j=E=>{l.value=E,s.value=!0},w=()=>{c.value=void 0,u.value=!0},_=E=>{c.value=E,u.value=!0},S=E=>{const{name:P,modelValue:z}=E;P==="edit"&&_(z),P==="remove"&&e.value?.removeEmit(z)},C=()=>{m.value=void 0,p.value=!0},x=E=>{m.value=E,p.value=!0},A=E=>{const{name:P,modelValue:z}=E;P==="edit"&&x(z),P==="remove"&&e.value?.removeSlot(z)},T=()=>{f.value=void 0,h.value=!0},X=E=>{f.value=E,h.value=!0},$=E=>{const{name:P,modelValue:z}=E;P==="edit"&&X(z),P==="remove"&&e.value?.removeInject(z)};return(E,P)=>d(e)&&d(t)?(y(),V(d(ae),{key:0,class:"v-defined-widget",direction:"column",fit:""},{default:k(()=>[b(d(me),{class:"v-sub-panel",title:"定义属性",size:"small",plus:"",fit:!1,onPlus:v},{default:k(()=>[(y(!0),M(ne,null,oe(r.value,z=>(y(),V(d(Me),{"model-value":z,title:z.name,border:"",actions:["edit","remove"],onClick:K=>j(z),onAction:g},null,8,["model-value","title","onClick"]))),256)),r.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),s.value?(y(),V(g8,{key:1,current:d(e),context:d(t),modelValue:s.value,"onUpdate:modelValue":P[0]||(P[0]=z=>s.value=z),item:l.value},null,8,["current","context","modelValue","item"])):I("",!0)]),_:1}),b(d(me),{class:"v-sub-panel",title:"定义事件",size:"small",plus:"",fit:!1,onPlus:w},{default:k(()=>[(y(!0),M(ne,null,oe(i.value,z=>(y(),V(d(Me),{"model-value":z,title:z,border:"",actions:["remove"],onClick:K=>_(z),onAction:S},null,8,["model-value","title","onClick"]))),256)),i.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),u.value?(y(),V(y8,{key:1,modelValue:u.value,"onUpdate:modelValue":P[1]||(P[1]=z=>u.value=z),current:d(e),context:d(t),item:c.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1}),b(d(me),{class:"v-sub-panel",title:"定义插槽",size:"small",plus:"",fit:!1,onPlus:C},{default:k(()=>[(y(!0),M(ne,null,oe(o.value,z=>(y(),V(d(Me),{"model-value":z,title:z,border:"",actions:["remove"],onClick:K=>x(z),onAction:A},null,8,["model-value","title","onClick"]))),256)),o.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),p.value?(y(),V(b8,{key:1,modelValue:p.value,"onUpdate:modelValue":P[2]||(P[2]=z=>p.value=z),current:d(e),context:d(t),item:m.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1}),b(d(me),{class:"v-sub-panel",title:"注入",size:"small",plus:"",fit:!1,grow:"",onPlus:T},{default:k(()=>[(y(!0),M(ne,null,oe(a.value,z=>(y(),V(d(Me),{"model-value":z,title:z.name,border:"",actions:["remove"],onClick:K=>X(z),onAction:$},null,8,["model-value","title","onClick"]))),256)),a.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50})),h.value?(y(),V(w8,{key:1,modelValue:h.value,"onUpdate:modelValue":P[3]||(P[3]=z=>h.value=z),current:d(e),context:d(t),item:f.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1})]),_:1})):I("",!0)}}),_8=D({name:"DataSourceDialogForm",__name:"form",props:{context:{},current:{},item:{}},setup(n){const e=n,{apis:t}=l4(),r=B(Object.assign({type:"api",ref:"",name:"",label:"",transform:{type:"JSFunction",value:`(res) => {
102
102
  /* 在这里可对接口返回数据进行转换 */
103
103
  return res;
104
104
  }`},test:{type:"JSFunction",value:`() => this.runApi({
105
105
  /* 在这里可输入接口参数 */
106
- })`}},e.item)),i=B(!1),o=B(""),a=B(!1),s=O(()=>t.value.map(m=>({label:m.label||"",value:m.id,data:m}))),l=O(()=>e.item?"编辑数据源":"新增数据源"),u=m=>{const h=t.value.find(f=>f.id===m);h&&(r.value.name=h.name,r.value.label=h.label||"")},c=async m=>{const{transform:h,test:f,name:v}=m;if(!e.current)return!1;if(!e.item&&e.current.dataSources[v])return Te(`名称【${v}】已经存在,请更换名称`),!1;if(h?.value){if(!ze(h,e.context,!0))return!1}else m.transform=void 0;if(f?.value){if(!ze(f,e.context,!0))return!1}else m.test=void 0;return e.current?.setDataSource(m),!0},p=async()=>{if(!e.context)return;if(!r.value.ref){Te("请先选择API");return}if(!r.value.test?.value){Te("请先填写测试用例");return}if(!ze(r.value.test,e.context,!0))return;const m=async(...v)=>{const g=e.context?.$apis[r.value.ref];if(g)return await g.apply(g,v);Ge.warn(`API【${r.value.ref}】不存在`)},h=ft(r.value.test,{runApi:m}),f=r.value.transform?.value?ft(r.value.transform,{},!0):v=>v;i.value=!0;try{const v=await h();o.value=JSON.stringify(await f(v),null,2)}catch(v){Ge.error(v)}i.value=!1,a.value=!0};return(m,h)=>(y(),V(d(kt),{width:"1000px",height:"600px",title:l.value,model:r.value,"form-props":{tooltipMessage:!1},"submit-method":c},{extra:S(()=>[w(d(Ve),{loading:i.value,type:"warning",onClick:p},{default:S(()=>[ue(" 运行测试用例 ")]),_:1},8,["loading"])]),default:S(()=>[w(d(ee),{name:"ref",label:"引用API",editor:"select",required:"",disabled:!!e.item,options:s.value,props:{filterable:!0},onChange:u},{option:S(({option:f})=>[ue(te(f.data.label)+" ",1),R("i",null,"[ "+te(f.data.name)+" ]",1)]),_:1},8,["disabled","options"]),w(d(ee),{name:"name",label:"调用名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"]),w(d(ee),{name:"label",label:"备注说明",required:""}),w(d(ee),{name:"transform.value",label:"转换函数",editor:"none"},{default:S(()=>[w(d(Ae),{modelValue:r.value.transform.value,"onUpdate:modelValue":h[0]||(h[0]=f=>r.value.transform.value=f),height:"200px",dark:""},null,8,["modelValue"])]),_:1}),w(d(ee),{name:"test.value",label:"测试用例",editor:"none"},{default:S(()=>[w(d(Ae),{modelValue:r.value.test.value,"onUpdate:modelValue":h[1]||(h[1]=f=>r.value.test.value=f),height:"100px",dark:""},null,8,["modelValue"])]),_:1}),a.value?(y(),V(d(Ms),{key:0,class:"v-drawer",modelValue:a.value,"onUpdate:modelValue":h[2]||(h[2]=f=>a.value=f),title:"测试用例运行结果",direction:"btt","append-to-body":"",size:"80%"},{default:S(()=>[w(d(Ae),{"model-value":o.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):I("",!0)]),_:1},8,["title","model"]))}}),S8=D({name:"DataSourcesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=B(!1),i=B(),o=O(()=>Object.values(e.value?.dataSources||{}).filter(u=>u.type==="api")),a=()=>{i.value=void 0,r.value=!0},s=u=>{i.value=u,r.value=!0},l=u=>{const{name:c,modelValue:p}=u;c==="edit"&&s(p),c==="remove"&&e.value?.removeDataSource(p.name)};return(u,c)=>(y(),V(d(ae),{class:"v-data-sources-widget",direction:"column",fit:""},{default:S(()=>[w(d(me),{title:"API",class:"v-sub-panel",size:"small",plus:"",onPlus:a},{default:S(()=>[(y(!0),M(ne,null,oe(o.value,p=>(y(),V(d(Me),{border:"",title:p.name,subtitle:p.label,"model-value":p,actions:["edit","remove"],onAction:l,onClick:m=>s(p)},null,8,["title","subtitle","model-value","onClick"]))),256)),o.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50}))]),_:1}),r.value?(y(),V(_8,{key:0,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=p=>r.value=p),current:d(e),context:d(t),item:i.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1}))}}),k8=D({__name:"layout",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B();se(()=>e.styleJson.display,u=>{t.value=u==="flex"},{immediate:!0});const r=[{label:"block-块级布局",value:"block",svg:Ny},{label:"flex-弹性布局",value:"flex",svg:Fy},{label:"inline-block-行内块级布局",value:"inline-block",svg:Hy},{label:"inline-行内布局",value:"inline",svg:Ly},{label:"invisible-不可见",value:"none",svg:Uy}],i=[{label:"row-水平",value:"row",svg:Zy},{label:"row-reverse-水平",value:"row-reverse",svg:Qy},{label:"column-垂直",value:"column",svg:Xy},{label:"column-reverse-垂直",value:"column-reverse",svg:Yy}],o=[{label:"flex-start",value:"flex-start",svg:n3},{label:"flex-end",value:"flex-end",svg:t3},{label:"center",value:"center",svg:e3},{label:"space-between",value:"space-between",svg:i3},{label:"space-around",value:"space-around",svg:r3}],a=[{label:"不换行",value:"nowrap"},{label:"正换行",value:"wrap"},{label:"逆换行",value:"wrap-reverse"}],s=[{label:"flex-start",value:"flex-start",svg:Ky},{label:"flex-end",value:"flex-end",svg:qy},{label:"center",value:"center",svg:Jy},{label:"baseline",value:"baseline",svg:Wy},{label:"stretch",value:"stretch",svg:Gy}],l=(u,c)=>{t.value=c==="flex",e.setStyle("display",c),t.value||(e.setStyle("flex-direction",void 0),e.setStyle("justify-content",void 0),e.setStyle("align-items",void 0),e.setStyle("flex-wrap",void 0))};return(u,c)=>(y(),V(d(me),{title:"布局",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(qe),{size:"small","label-width":"80px"},{default:S(()=>[w(d(he),{name:"display",label:"排布",setters:{name:"TagSetter"},options:r,variable:!1,value:e.styleJson.display,onChange:l},null,8,["value"]),t.value?(y(),M(ne,{key:0},[w(d(he),{name:"flex-direction",label:"主轴方向",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson["flex-direction"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"justify-content",label:"主轴对齐",setters:{name:"TagSetter"},options:o,variable:!1,value:e.styleJson["justify-content"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"align-items",label:"辅轴对齐",setters:{name:"TagSetter"},options:s,variable:!1,value:e.styleJson["align-items"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"flex-wrap",label:"换行模式",setters:{name:"TagSetter"},options:a,variable:!1,value:e.styleJson["flex-wrap"],onChange:e.setStyle},null,8,["value","onChange"])],64)):I("",!0)]),_:1})]),_:1}))}}),j8=D({name:"StyleWidget",__name:"JsonMode",setup(n){const{selected:e}=gt(),t=B(),r=O(()=>{const s=e.value?.model||null;return je(s)?null:s}),i=O(()=>JSON.stringify(r.value?.getPropValue("style")||{},null,2)),o=s=>{try{const l=JSON.parse(s);r.value?.setProp("style",l)}catch{Te("JSON格式错误")}},a=()=>{const s=(t.value?.getEditor()).getValue();o(s),We("保存成功")};return(s,l)=>(y(),V(d(me),{class:"v-css-widget v-sub-panel",title:"JSON",size:"small",fit:"",save:"",onSave:a},{default:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:t,"model-value":i.value,height:"100%",lang:"json",dark:"",onBlur:o},null,8,["model-value"])]),_:1}))}}),V8={class:"v-spacing-input"},C8=R("div",{class:"v-spacing-input__modal"},null,-1),$8={class:"v-spacing-input__content"},E8=["onClick"],Gc=D({__name:"spacing-input",props:{name:{},modelValue:{},auto:{type:Boolean}},emits:["close","update:modelValue","submit"],setup(n,{emit:e}){const t=[0,10,20,40,60,100,140,220],r=n,i=e,o=O(()=>r.auto||r.name.includes("margin")),a=B(),s=B(r.modelValue),l=B("px");Ud(a,()=>{i("close")});const u=h=>{s.value=typeof h=="number"?`${h}px`:"auto",c(s.value)},c=h=>{l.value=h==="auto"?void 0:"px"},p=()=>{s.value?(i("update:modelValue",s.value),i("submit",r.name,s.value),i("close")):Te("请输入有效值","提示")},m=()=>{s.value=void 0,i("update:modelValue",s.value),i("submit",r.name,void 0),i("close")};return(h,f)=>(y(),M("div",V8,[C8,R("div",$8,[w(d(ae),{class:"v-spacing-input__body",ref_key:"bodyRef",ref:a,direction:"column"},{default:S(()=>[w(d(ae),null,{default:S(()=>[w(d(Oc),{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=v=>s.value=v),size:"small","with-unit":!!l.value,unit:l.value,format:l.value?"0":void 0,onChange:c},null,8,["modelValue","with-unit","unit","format"])]),_:1}),w(d(ae),null,{default:S(()=>[o.value?(y(),V(d(ae),{key:0,class:"v-spacing-input__auto",width:"20%"},{default:S(()=>[R("span",{onClick:f[1]||(f[1]=v=>u("auto"))},"auto")]),_:1})):I("",!0),w(d(ae),{grow:"",class:"v-spacing-input__values",align:"center",wrap:"wrap"},{default:S(()=>[(y(),M(ne,null,oe(t,v=>R("span",{onClick:g=>u(v)},te(v),9,E8)),64))]),_:1})]),_:1}),w(d(ae),null,{default:S(()=>[w(d(Ve),{size:"small",type:"primary",round:"",style:{width:"100%"},onClick:p},{default:S(()=>[ue(" 确定 ")]),_:1}),w(d(Ve),{size:"small",round:"",style:{width:"100%"},onClick:m},{default:S(()=>[ue(" 重置 ")]),_:1})]),_:1})]),_:1},512)])]))}}),A8={class:"spacing-wrap"},T8={class:"spacing-max-icon"},O8=["width","height"],B8=["d"],z8=["d"],D8=["d"],I8=["d"],R8={id:"margin-outer"},M8=["width","height"],P8=["width","height"],N8={id:"margin-inner"},F8=["width","height"],H8=["width","height"],L8=["width","height"],U8=["d"],W8=["d"],J8=["d"],q8=["d"],K8={id:"padding-outer"},G8=["width","height"],Y8=["width","height"],X8={id:"padding-inner"},Q8=["width","height"],Z8=["width","height"],e5={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"3 / 3 / span 3 / span 3","pointer-events":"none"}},t5=R("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," padding ",-1),n5=[t5],r5={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"1 / 1 / -1 / -1","pointer-events":"none"}},i5=R("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," margin ",-1),o5=[i5],xe=36,_e=24,a5=D({__name:"spacing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B(),r=B(),{width:i,height:o}=mn(t),{width:a,height:s}=mn(r),l=B(!1),u=B(),c=B(),p=()=>{l.value=!1,u.value=void 0,c.value=void 0},m=h=>{u.value=h,c.value=e.styleJson[h],l.value=!0};return(h,f)=>(y(),V(d(me),{title:"间距",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[R("div",{class:"v-style-widget__spacing",ref_key:"container",ref:t},[R("div",A8,[R("div",T8,[d(i)&&d(o)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(i),height:d(o),style:{"grid-area":"1 / 1 / -1 / -1"}},[R("g",null,[R("g",null,[R("path",{mode:"delta",fill:"currentColor",d:`
106
+ })`}},e.item)),i=B(!1),o=B(""),a=B(!1),s=O(()=>t.value.map(m=>({label:m.label||"",value:m.id,data:m}))),l=O(()=>e.item?"编辑数据源":"新增数据源"),u=m=>{const h=t.value.find(f=>f.id===m);h&&(r.value.name=h.name,r.value.label=h.label||"")},c=async m=>{const{transform:h,test:f,name:v}=m;if(!e.current)return!1;if(!e.item&&e.current.dataSources[v])return Te(`名称【${v}】已经存在,请更换名称`),!1;if(h?.value){if(!ze(h,e.context,!0))return!1}else m.transform=void 0;if(f?.value){if(!ze(f,e.context,!0))return!1}else m.test=void 0;return e.current?.setDataSource(m),!0},p=async()=>{if(!e.context)return;if(!r.value.ref){Te("请先选择API");return}if(!r.value.test?.value){Te("请先填写测试用例");return}if(!ze(r.value.test,e.context,!0))return;const m=async(...v)=>{const g=e.context?.$apis[r.value.ref];if(g)return await g.apply(g,v);Ge.warn(`API【${r.value.ref}】不存在`)},h=ft(r.value.test,{runApi:m}),f=r.value.transform?.value?ft(r.value.transform,{},!0):v=>v;i.value=!0;try{const v=await h();o.value=JSON.stringify(await f(v),null,2)}catch(v){Ge.error(v)}i.value=!1,a.value=!0};return(m,h)=>(y(),V(d(kt),{width:"1000px",height:"600px",title:l.value,model:r.value,"form-props":{tooltipMessage:!1},"submit-method":c},{extra:k(()=>[b(d(Ve),{loading:i.value,type:"warning",onClick:p},{default:k(()=>[ue(" 运行测试用例 ")]),_:1},8,["loading"])]),default:k(()=>[b(d(ee),{name:"ref",label:"引用API",editor:"select",required:"",disabled:!!e.item,options:s.value,props:{filterable:!0},onChange:u},{option:k(({option:f})=>[ue(te(f.data.label)+" ",1),R("i",null,"[ "+te(f.data.name)+" ]",1)]),_:1},8,["disabled","options"]),b(d(ee),{name:"name",label:"调用名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(jt)}},null,8,["disabled","rules"]),b(d(ee),{name:"label",label:"备注说明",required:""}),b(d(ee),{name:"transform.value",label:"转换函数",editor:"none"},{default:k(()=>[b(d(Ae),{modelValue:r.value.transform.value,"onUpdate:modelValue":h[0]||(h[0]=f=>r.value.transform.value=f),height:"200px",dark:""},null,8,["modelValue"])]),_:1}),b(d(ee),{name:"test.value",label:"测试用例",editor:"none"},{default:k(()=>[b(d(Ae),{modelValue:r.value.test.value,"onUpdate:modelValue":h[1]||(h[1]=f=>r.value.test.value=f),height:"100px",dark:""},null,8,["modelValue"])]),_:1}),a.value?(y(),V(d(Ms),{key:0,class:"v-drawer",modelValue:a.value,"onUpdate:modelValue":h[2]||(h[2]=f=>a.value=f),title:"测试用例运行结果",direction:"btt","append-to-body":"",size:"80%"},{default:k(()=>[b(d(Ae),{"model-value":o.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):I("",!0)]),_:1},8,["title","model"]))}}),S8=D({name:"DataSourcesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=B(!1),i=B(),o=O(()=>Object.values(e.value?.dataSources||{}).filter(u=>u.type==="api")),a=()=>{i.value=void 0,r.value=!0},s=u=>{i.value=u,r.value=!0},l=u=>{const{name:c,modelValue:p}=u;c==="edit"&&s(p),c==="remove"&&e.value?.removeDataSource(p.name)};return(u,c)=>(y(),V(d(ae),{class:"v-data-sources-widget",direction:"column",fit:""},{default:k(()=>[b(d(me),{title:"API",class:"v-sub-panel",size:"small",plus:"",onPlus:a},{default:k(()=>[(y(!0),M(ne,null,oe(o.value,p=>(y(),V(d(Me),{border:"",title:p.name,subtitle:p.label,"model-value":p,actions:["edit","remove"],onAction:l,onClick:m=>s(p)},null,8,["title","subtitle","model-value","onClick"]))),256)),o.value.length?I("",!0):(y(),V(d(Be),{key:0,"image-size":50}))]),_:1}),r.value?(y(),V(_8,{key:0,modelValue:r.value,"onUpdate:modelValue":c[0]||(c[0]=p=>r.value=p),current:d(e),context:d(t),item:i.value},null,8,["modelValue","current","context","item"])):I("",!0)]),_:1}))}}),k8=D({__name:"layout",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B();se(()=>e.styleJson.display,u=>{t.value=u==="flex"},{immediate:!0});const r=[{label:"block-块级布局",value:"block",svg:Ny},{label:"flex-弹性布局",value:"flex",svg:Fy},{label:"inline-block-行内块级布局",value:"inline-block",svg:Hy},{label:"inline-行内布局",value:"inline",svg:Ly},{label:"invisible-不可见",value:"none",svg:Uy}],i=[{label:"row-水平",value:"row",svg:Zy},{label:"row-reverse-水平",value:"row-reverse",svg:Qy},{label:"column-垂直",value:"column",svg:Xy},{label:"column-reverse-垂直",value:"column-reverse",svg:Yy}],o=[{label:"flex-start",value:"flex-start",svg:nb},{label:"flex-end",value:"flex-end",svg:tb},{label:"center",value:"center",svg:eb},{label:"space-between",value:"space-between",svg:ib},{label:"space-around",value:"space-around",svg:rb}],a=[{label:"不换行",value:"nowrap"},{label:"正换行",value:"wrap"},{label:"逆换行",value:"wrap-reverse"}],s=[{label:"flex-start",value:"flex-start",svg:Ky},{label:"flex-end",value:"flex-end",svg:qy},{label:"center",value:"center",svg:Jy},{label:"baseline",value:"baseline",svg:Wy},{label:"stretch",value:"stretch",svg:Gy}],l=(u,c)=>{t.value=c==="flex",e.setStyle("display",c),t.value||(e.setStyle("flex-direction",void 0),e.setStyle("justify-content",void 0),e.setStyle("align-items",void 0),e.setStyle("flex-wrap",void 0))};return(u,c)=>(y(),V(d(me),{title:"布局",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[b(d(qe),{size:"small","label-width":"80px"},{default:k(()=>[b(d(he),{name:"display",label:"排布",setters:{name:"TagSetter"},options:r,variable:!1,value:e.styleJson.display,onChange:l},null,8,["value"]),t.value?(y(),M(ne,{key:0},[b(d(he),{name:"flex-direction",label:"主轴方向",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson["flex-direction"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"justify-content",label:"主轴对齐",setters:{name:"TagSetter"},options:o,variable:!1,value:e.styleJson["justify-content"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"align-items",label:"辅轴对齐",setters:{name:"TagSetter"},options:s,variable:!1,value:e.styleJson["align-items"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"flex-wrap",label:"换行模式",setters:{name:"TagSetter"},options:a,variable:!1,value:e.styleJson["flex-wrap"],onChange:e.setStyle},null,8,["value","onChange"])],64)):I("",!0)]),_:1})]),_:1}))}}),j8=D({name:"StyleWidget",__name:"JsonMode",setup(n){const{selected:e}=gt(),t=B(),r=O(()=>{const s=e.value?.model||null;return je(s)?null:s}),i=O(()=>JSON.stringify(r.value?.getPropValue("style")||{},null,2)),o=s=>{try{const l=JSON.parse(s);r.value?.setProp("style",l)}catch{Te("JSON格式错误")}},a=()=>{const s=(t.value?.getEditor()).getValue();o(s),We("保存成功")};return(s,l)=>(y(),V(d(me),{class:"v-css-widget v-sub-panel",title:"JSON",size:"small",fit:"",save:"",onSave:a},{default:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:t,"model-value":i.value,height:"100%",lang:"json",dark:"",onBlur:o},null,8,["model-value"])]),_:1}))}}),V8={class:"v-spacing-input"},C8=R("div",{class:"v-spacing-input__modal"},null,-1),$8={class:"v-spacing-input__content"},E8=["onClick"],Gc=D({__name:"spacing-input",props:{name:{},modelValue:{},auto:{type:Boolean}},emits:["close","update:modelValue","submit"],setup(n,{emit:e}){const t=[0,10,20,40,60,100,140,220],r=n,i=e,o=O(()=>r.auto||r.name.includes("margin")),a=B(),s=B(r.modelValue),l=B("px");Ud(a,()=>{i("close")});const u=h=>{s.value=typeof h=="number"?`${h}px`:"auto",c(s.value)},c=h=>{l.value=h==="auto"?void 0:"px"},p=()=>{s.value?(i("update:modelValue",s.value),i("submit",r.name,s.value),i("close")):Te("请输入有效值","提示")},m=()=>{s.value=void 0,i("update:modelValue",s.value),i("submit",r.name,void 0),i("close")};return(h,f)=>(y(),M("div",V8,[C8,R("div",$8,[b(d(ae),{class:"v-spacing-input__body",ref_key:"bodyRef",ref:a,direction:"column"},{default:k(()=>[b(d(ae),null,{default:k(()=>[b(d(Oc),{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=v=>s.value=v),size:"small","with-unit":!!l.value,unit:l.value,format:l.value?"0":void 0,onChange:c},null,8,["modelValue","with-unit","unit","format"])]),_:1}),b(d(ae),null,{default:k(()=>[o.value?(y(),V(d(ae),{key:0,class:"v-spacing-input__auto",width:"20%"},{default:k(()=>[R("span",{onClick:f[1]||(f[1]=v=>u("auto"))},"auto")]),_:1})):I("",!0),b(d(ae),{grow:"",class:"v-spacing-input__values",align:"center",wrap:"wrap"},{default:k(()=>[(y(),M(ne,null,oe(t,v=>R("span",{onClick:g=>u(v)},te(v),9,E8)),64))]),_:1})]),_:1}),b(d(ae),null,{default:k(()=>[b(d(Ve),{size:"small",type:"primary",round:"",style:{width:"100%"},onClick:p},{default:k(()=>[ue(" 确定 ")]),_:1}),b(d(Ve),{size:"small",round:"",style:{width:"100%"},onClick:m},{default:k(()=>[ue(" 重置 ")]),_:1})]),_:1})]),_:1},512)])]))}}),A8={class:"spacing-wrap"},T8={class:"spacing-max-icon"},O8=["width","height"],B8=["d"],z8=["d"],D8=["d"],I8=["d"],R8={id:"margin-outer"},M8=["width","height"],P8=["width","height"],N8={id:"margin-inner"},F8=["width","height"],H8=["width","height"],L8=["width","height"],U8=["d"],W8=["d"],J8=["d"],q8=["d"],K8={id:"padding-outer"},G8=["width","height"],Y8=["width","height"],X8={id:"padding-inner"},Q8=["width","height"],Z8=["width","height"],e5={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"3 / 3 / span 3 / span 3","pointer-events":"none"}},t5=R("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," padding ",-1),n5=[t5],r5={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"1 / 1 / -1 / -1","pointer-events":"none"}},i5=R("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," margin ",-1),o5=[i5],xe=36,_e=24,a5=D({__name:"spacing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B(),r=B(),{width:i,height:o}=mn(t),{width:a,height:s}=mn(r),l=B(!1),u=B(),c=B(),p=()=>{l.value=!1,u.value=void 0,c.value=void 0},m=h=>{u.value=h,c.value=e.styleJson[h],l.value=!0};return(h,f)=>(y(),V(d(me),{title:"间距",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[R("div",{class:"v-style-widget__spacing",ref_key:"container",ref:t},[R("div",A8,[R("div",T8,[d(i)&&d(o)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(i),height:d(o),style:{"grid-area":"1 / 1 / -1 / -1"}},[R("g",null,[R("g",null,[R("path",{mode:"delta",fill:"currentColor",d:`
107
107
  m1,1
108
108
  h${d(i)-1}
109
109
  l-${xe},${_e}
@@ -143,7 +143,7 @@ version: 2.9.0
143
143
  v${d(s)-1}
144
144
  l${xe},-${_e}
145
145
  v-${d(s)-2*_e}
146
- l-${xe},-${_e}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[11]||(f[11]=v=>m("padding-left"))},null,8,q8)])]),R("clipPath",K8,[R("rect",{x:"0",y:"0",width:d(a),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,G8)]),R("rect",{class:"stroke","clip-path":"url(#padding-outer)",x:"0",y:"0",width:d(a),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Y8),R("clipPath",X8,[R("rect",{x:"36",y:"24",width:d(a)-2*xe+1,height:d(s)-2*_e+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Q8)]),R("rect",{class:"stroke","clip-path":"url(#padding-inner)",x:"36",y:"24",width:d(a)-2*xe+1,height:d(s)-2*_e+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Z8)],8,L8)):I("",!0),R("div",{class:de(["spacing-edit padding-top",{"is-setting":e.styleJson["padding-top"]}]),onClick:f[12]||(f[12]=v=>m("padding-top"))},te(e.styleJson["padding-top"]||"-"),3),R("div",{class:de(["spacing-edit padding-right",{"is-setting":e.styleJson["padding-right"]}]),onClick:f[13]||(f[13]=v=>m("padding-right"))},te(e.styleJson["padding-right"]||"-"),3),R("div",{class:de(["spacing-edit padding-bottom",{"is-setting":e.styleJson["padding-bottom"]}]),onClick:f[14]||(f[14]=v=>m("padding-bottom"))},te(e.styleJson["padding-bottom"]||"-"),3),R("div",{class:de(["spacing-edit padding-left",{"is-setting":e.styleJson["padding-left"]}]),onClick:f[15]||(f[15]=v=>m("padding-left"))},te(e.styleJson["padding-left"]||"-"),3)],512),(y(),M("svg",e5,n5)),(y(),M("svg",r5,o5))]),l.value?(y(),V(Gc,{key:0,name:u.value,modelValue:c.value,"onUpdate:modelValue":f[16]||(f[16]=v=>c.value=v),onClose:p,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):I("",!0)],512)]),_:1}))}}),s5=D({__name:"sizing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"width",label:"宽(W)",setter:"SizeSetter"},{name:"height",label:"高(H)",setter:"SizeSetter"},{name:"min-width",label:"最小宽",setter:"SizeSetter"},{name:"min-height",label:"最小高",setter:"SizeSetter"},{name:"max-width",label:"最大宽",setter:"SizeSetter"},{name:"max-height",label:"最大高",setter:"SizeSetter"},{name:"overflow",label:"溢出",setter:"SelectSetter",options:[{label:"自动",value:"auto"},{label:"隐藏",value:"hidden"},{label:"滚动",value:"scroll"},{label:"显示",value:"visible"}]},{name:"object-fit",label:"适应",setter:"SelectSetter",options:[{label:"填充",value:"fill"},{label:"适应",value:"contain"},{label:"覆盖",value:"cover"},{label:"拉伸",value:"scale-down"},{label:"原始",value:"none"}]}];return(r,i)=>(y(),V(d(me),{title:"尺寸",class:"v-sub-panel v-",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(qe),{class:"v-style-widget__sizing",size:"small","label-width":"60px",inline:""},{default:S(()=>[(y(),M(ne,null,oe(t,o=>w(d(he),{name:o.name,label:o.label,setters:{name:o.setter},options:o.options,variable:!1,value:e.styleJson[o.name],onChange:r.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1})]),_:1}))}}),l5={class:"v-style-widget__positioning"},u5={class:"spacing-wrap"},c5=["width","height"],d5=["d"],p5=["d"],h5=["d"],m5=["d"],f5={id:"margin-outer"},v5=["width","height"],g5=["width","height"],y5={id:"margin-inner"},b5=["width","height"],w5=["width","height"],Xe=36,Qe=24,x5=D({__name:"positioning",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B(),{width:r,height:i}=mn(t),o=B(!1),a=B(),s=B(),l=[{label:"静态",value:"static"},{label:"相对",value:"relative"},{label:"绝对",value:"absolute"},{label:"固定",value:"fixed"},{label:"粘性",value:"sticky"}],u=[{label:"左上",svg:h3,value:"0% auto auto 0%"},{label:"右上",svg:m3,value:"0% 0% auto auto"},{label:"左下",svg:l3,value:"auto auto 0% 0%"},{label:"右下",svg:u3,value:"auto 0% 0% auto"},{label:"左",svg:d3,value:"0% auto 0% 0%"},{label:"右",svg:p3,value:"0% 0% 0% auto"},{label:"上",svg:f3,value:"auto 0% 0% 0%"},{label:"下",svg:c3,value:"0% 0% auto 0%"},{label:"填充",svg:s3,value:"0% 0% 0% 0%"}],c=O(()=>(e.styleJson.inset||"").split(" ")),p=h=>{a.value=h,s.value=e.styleJson[h],o.value=!0},m=()=>{o.value=!1,a.value=void 0,s.value=void 0};return(h,f)=>(y(),V(d(me),{title:"定位",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[R("div",l5,[w(d(qe),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"position",label:"定位",setters:{name:"SelectSetter"},options:l,variable:!1,value:e.styleJson.position,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"inset",label:" ",setters:{name:"TagSetter"},options:u,variable:!1,value:e.styleJson.inset,onChange:e.setStyle},null,8,["value","onChange"]),w(d(no),{label:" "},{default:S(()=>[R("div",u5,[R("div",{ref_key:"inner",ref:t,class:"spacing-min-icon"},[d(r)&&d(r)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(r),height:d(i),style:{"grid-area":"1 / 1 / -1 / -1"}},[R("g",null,[R("g",null,[R("path",{mode:"delta",fill:"currentColor",d:`
146
+ l-${xe},-${_e}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[11]||(f[11]=v=>m("padding-left"))},null,8,q8)])]),R("clipPath",K8,[R("rect",{x:"0",y:"0",width:d(a),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,G8)]),R("rect",{class:"stroke","clip-path":"url(#padding-outer)",x:"0",y:"0",width:d(a),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Y8),R("clipPath",X8,[R("rect",{x:"36",y:"24",width:d(a)-2*xe+1,height:d(s)-2*_e+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Q8)]),R("rect",{class:"stroke","clip-path":"url(#padding-inner)",x:"36",y:"24",width:d(a)-2*xe+1,height:d(s)-2*_e+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Z8)],8,L8)):I("",!0),R("div",{class:de(["spacing-edit padding-top",{"is-setting":e.styleJson["padding-top"]}]),onClick:f[12]||(f[12]=v=>m("padding-top"))},te(e.styleJson["padding-top"]||"-"),3),R("div",{class:de(["spacing-edit padding-right",{"is-setting":e.styleJson["padding-right"]}]),onClick:f[13]||(f[13]=v=>m("padding-right"))},te(e.styleJson["padding-right"]||"-"),3),R("div",{class:de(["spacing-edit padding-bottom",{"is-setting":e.styleJson["padding-bottom"]}]),onClick:f[14]||(f[14]=v=>m("padding-bottom"))},te(e.styleJson["padding-bottom"]||"-"),3),R("div",{class:de(["spacing-edit padding-left",{"is-setting":e.styleJson["padding-left"]}]),onClick:f[15]||(f[15]=v=>m("padding-left"))},te(e.styleJson["padding-left"]||"-"),3)],512),(y(),M("svg",e5,n5)),(y(),M("svg",r5,o5))]),l.value?(y(),V(Gc,{key:0,name:u.value,modelValue:c.value,"onUpdate:modelValue":f[16]||(f[16]=v=>c.value=v),onClose:p,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):I("",!0)],512)]),_:1}))}}),s5=D({__name:"sizing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"width",label:"宽(W)",setter:"SizeSetter"},{name:"height",label:"高(H)",setter:"SizeSetter"},{name:"min-width",label:"最小宽",setter:"SizeSetter"},{name:"min-height",label:"最小高",setter:"SizeSetter"},{name:"max-width",label:"最大宽",setter:"SizeSetter"},{name:"max-height",label:"最大高",setter:"SizeSetter"},{name:"overflow",label:"溢出",setter:"SelectSetter",options:[{label:"自动",value:"auto"},{label:"隐藏",value:"hidden"},{label:"滚动",value:"scroll"},{label:"显示",value:"visible"}]},{name:"object-fit",label:"适应",setter:"SelectSetter",options:[{label:"填充",value:"fill"},{label:"适应",value:"contain"},{label:"覆盖",value:"cover"},{label:"拉伸",value:"scale-down"},{label:"原始",value:"none"}]}];return(r,i)=>(y(),V(d(me),{title:"尺寸",class:"v-sub-panel v-",size:"small",fit:!1,collapsable:""},{default:k(()=>[b(d(qe),{class:"v-style-widget__sizing",size:"small","label-width":"60px",inline:""},{default:k(()=>[(y(),M(ne,null,oe(t,o=>b(d(he),{name:o.name,label:o.label,setters:{name:o.setter},options:o.options,variable:!1,value:e.styleJson[o.name],onChange:r.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1})]),_:1}))}}),l5={class:"v-style-widget__positioning"},u5={class:"spacing-wrap"},c5=["width","height"],d5=["d"],p5=["d"],h5=["d"],m5=["d"],f5={id:"margin-outer"},v5=["width","height"],g5=["width","height"],y5={id:"margin-inner"},b5=["width","height"],w5=["width","height"],Xe=36,Qe=24,x5=D({__name:"positioning",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B(),{width:r,height:i}=mn(t),o=B(!1),a=B(),s=B(),l=[{label:"静态",value:"static"},{label:"相对",value:"relative"},{label:"绝对",value:"absolute"},{label:"固定",value:"fixed"},{label:"粘性",value:"sticky"}],u=[{label:"左上",svg:hb,value:"0% auto auto 0%"},{label:"右上",svg:mb,value:"0% 0% auto auto"},{label:"左下",svg:lb,value:"auto auto 0% 0%"},{label:"右下",svg:ub,value:"auto 0% 0% auto"},{label:"左",svg:db,value:"0% auto 0% 0%"},{label:"右",svg:pb,value:"0% 0% 0% auto"},{label:"上",svg:fb,value:"auto 0% 0% 0%"},{label:"下",svg:cb,value:"0% 0% auto 0%"},{label:"填充",svg:sb,value:"0% 0% 0% 0%"}],c=O(()=>(e.styleJson.inset||"").split(" ")),p=h=>{a.value=h,s.value=e.styleJson[h],o.value=!0},m=()=>{o.value=!1,a.value=void 0,s.value=void 0};return(h,f)=>(y(),V(d(me),{title:"定位",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[R("div",l5,[b(d(qe),{"label-width":"60px",size:"small"},{default:k(()=>[b(d(he),{name:"position",label:"定位",setters:{name:"SelectSetter"},options:l,variable:!1,value:e.styleJson.position,onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"inset",label:" ",setters:{name:"TagSetter"},options:u,variable:!1,value:e.styleJson.inset,onChange:e.setStyle},null,8,["value","onChange"]),b(d(no),{label:" "},{default:k(()=>[R("div",u5,[R("div",{ref_key:"inner",ref:t,class:"spacing-min-icon"},[d(r)&&d(r)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(r),height:d(i),style:{"grid-area":"1 / 1 / -1 / -1"}},[R("g",null,[R("g",null,[R("path",{mode:"delta",fill:"currentColor",d:`
147
147
  m1,1
148
148
  h${d(r)-1}
149
149
  l-${Xe},${Qe}
@@ -163,7 +163,7 @@ version: 2.9.0
163
163
  v${d(i)-1}
164
164
  l${Xe},-${Qe}
165
165
  v-${d(i)-2*Qe}
166
- l-${Xe},-${Qe}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>p("left"))},null,8,m5)])]),R("clipPath",f5,[R("rect",{x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,v5)]),R("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,g5),R("clipPath",y5,[R("rect",{x:"36",y:"24",width:d(r)-2*Xe+1,height:d(i)-2*Qe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,b5)]),R("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(r)-2*Xe+1,height:d(i)-2*Qe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,w5)],8,c5)):I("",!0),R("div",{class:de(["spacing-edit padding-top",{"is-setting":e.styleJson.top}]),onClick:f[4]||(f[4]=v=>p("top"))},te(e.styleJson.top||c.value[0]||"-"),3),R("div",{class:de(["spacing-edit padding-right",{"is-setting":e.styleJson.right}]),onClick:f[5]||(f[5]=v=>p("right"))},te(e.styleJson.right||c.value[1]||"-"),3),R("div",{class:de(["spacing-edit padding-bottom",{"is-setting":e.styleJson.bottom}]),onClick:f[6]||(f[6]=v=>p("bottom"))},te(e.styleJson.bottom||c.value[2]||"-"),3),R("div",{class:de(["spacing-edit padding-left",{"is-setting":e.styleJson.left}]),onClick:f[7]||(f[7]=v=>p("left"))},te(e.styleJson.left||c.value[3]||"-"),3)],512),o.value?(y(),V(Gc,{key:0,auto:"",name:a.value,modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=v=>s.value=v),onClose:m,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):I("",!0)])]),_:1}),w(d(he),{name:"z-index",label:"层级",setters:{name:"NumberSetter"},variable:!1,value:e.styleJson["z-index"],onChange:e.setStyle},null,8,["value","onChange"])]),_:1})])]),_:1}))}}),_5=D({__name:"texting",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"font-size",label:"字号",setter:"SizeSetter"},{name:"font-family",label:"字体",setter:"SelectSetter",options:["Arial","Verdana","Georgia",'"Times New Roman"','"Microsoft YaHei"',"SimSun","SimHei","KaiTi","FangSong","STSong","STKaiti","STFangsong","STCaiyun","STHupo","STLiti","STXingkai","STXinwei","STXinwei","STZhongsong"]},{name:"line-height",label:"行高",setter:"SizeSetter"},{name:"font-weight",label:"字重",setter:"SelectSetter",options:[{label:"正常",value:"normal"},{label:"粗体",value:"bold"},{label:"更粗",value:"bolder"},{label:"更细",value:"lighter"}]}],r=[{label:"左",value:"left",svg:y3},{label:"中",value:"center",svg:v3},{label:"右",value:"right",svg:b3},{label:"两端",value:"justify",svg:g3}],i=[{label:"正常",value:"normal",svg:a3},{label:"斜体",value:"italic",svg:o3}],o=[{label:"无",value:"none",svg:Qu},{label:"下划线",value:"underline",svg:_3},{label:"删除线",value:"line-through",svg:x3},{label:"上划线",value:"overline",svg:w3}];return(a,s)=>(y(),V(d(me),{title:"文本",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(qe),{class:"v-style-widget__texting",size:"small","label-width":"60px",inline:""},{default:S(()=>[(y(),M(ne,null,oe(t,l=>w(d(he),{name:l.name,label:l.label,setters:{name:l.setter},options:l.options,variable:!1,value:e.styleJson[l.name],onChange:a.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1}),w(d(qe),{size:"small","label-width":"60px"},{default:S(()=>[w(d(he),{name:"color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson.color,onChange:a.setStyle},null,8,["value","onChange"]),w(d(he),{name:"text-align",label:"对齐",setters:{name:"TagSetter"},variable:!1,options:r,value:e.styleJson["text-align"],onChange:a.setStyle},null,8,["value","onChange"]),w(d(he),{name:"font-style",label:"风格",setters:{name:"TagSetter"},variable:!1,options:i,value:e.styleJson["font-style"],onChange:a.setStyle},null,8,["value","onChange"]),w(d(he),{name:"text-decoration",label:"修饰",setters:{name:"TagSetter"},variable:!1,options:o,value:e.styleJson["text-decoration"],onChange:a.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),S5=D({__name:"backgound",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=(l,u)=>{u?e.setStyle("background-image",`url(${u})`):e.setStyle("background-image",void 0)},r=l=>{const u=/^url\(([\w\W]+)\)$/;return l?.match(u)?.[1]},i=[{label:"重复",value:"repeat",svg:k3},{label:"水平重复",value:"repeat-x",svg:S3},{label:"垂直重复",value:"repeat-y",svg:j3},{label:"不重复",value:"no-repeat",svg:Dy}],o=[{label:"固定",value:"fixed"},{label:"滚动",value:"scroll"}],a=[{label:"裁剪到填充",value:"padding-box"},{label:"裁剪到内容",value:"content-box"},{label:"裁剪到文字",value:"text"}],s=[{label:"自动",value:"auto"},{label:"长度",value:"length"},{label:"百分比",value:"percentage"},{label:"覆盖",value:"cover"},{label:"填充",value:"contain"}];return(l,u)=>(y(),V(d(me),{title:"背景",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(qe),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"background-image",label:"图片",setters:{name:"ImageSetter"},variable:!1,value:r(e.styleJson["background-image"]),onChange:t},null,8,["value"]),w(d(he),{name:"background-color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson["background-color"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-repeat",label:"重复",setters:{name:"TagSetter"},variable:!1,value:e.styleJson["background-repeat"],options:i,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-attachment",label:"固定",setters:{name:"RadioSetter"},variable:!1,value:e.styleJson["background-attachment"],options:o,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-position",label:"位置",setters:{name:"SectionSetter",props:{sections:2}},variable:!1,value:e.styleJson["background-position"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-size",label:"大小",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-size"],options:s,onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"background-clip",label:"裁剪",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-clip"],options:a,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),k5=D({__name:"border",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B("border"),r=[{label:"全边框",svg:Cy,value:"border"},{label:"左边框",svg:Ey,value:"border-left"},{label:"上边框",svg:zy,value:"border-top"},{label:"下边框",svg:$y,value:"border-bottom"},{label:"右边框",svg:Ay,value:"border-right"}],i=[{label:"无",value:"none",svg:Qu},{label:"实线",value:"solid",svg:By},{label:"虚线",value:"dashed",svg:Ty},{label:"点线",value:"dotted",svg:Oy}],o=(a,s)=>{t.value=s};return(a,s)=>(y(),V(d(me),{title:"边框",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(qe),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"border-radius",label:"圆角",setters:{name:"SectionSetter",props:{sections:4}},variable:!1,value:e.styleJson["border-radius"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"borders",label:"边框",setters:{name:"TagSetter"},variable:!1,options:r,value:t.value,onChange:o},null,8,["value"]),t.value?(y(),M(ne,{key:0},[(y(),V(d(he),{name:`${t.value}-width`,key:`${t.value}-width`,label:"宽度",setters:{name:"SizeSetter"},variable:!1,value:e.styleJson[`${t.value}-width`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),V(d(he),{name:`${t.value}-style`,key:`${t.value}-style`,label:"样式",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson[`${t.value}-style`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),V(d(he),{name:`${t.value}-color`,key:`${t.value}-color`,label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson[`${t.value}-color`],onChange:e.setStyle},null,8,["name","value","onChange"]))],64)):I("",!0)]),_:1})]),_:1}))}}),j5=D({__name:"effect",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{label:"自动",value:"auto",svg:Iy},{label:"Pointer",value:"pointer",svg:Py},{label:"NotAllowed",value:"not-allowed",svg:My},{label:"无",value:"none",svg:Ry}],r=[{label:"Basic",value:"var(--el-box-shadow)"},{label:"Light",value:"var(--el-box-shadow-light)"},{label:"Lighter",value:"var(--el-box-shadow-lighter)"},{label:"Dark",value:"var(--el-box-shadow-dark)"}],i=(a,s)=>{e.setStyle("opacity",s!==void 0?(Number(s)||0)/100:void 0)},o=()=>Number(e.styleJson.opactiy||0)*100;return(a,s)=>(y(),V(d(me),{title:"效果",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:S(()=>[w(d(qe),{"label-width":"60px",size:"small"},{default:S(()=>[w(d(he),{name:"opacity",label:"透明度",setters:{name:"SliderSetter"},variable:!1,value:o(),onChange:i},null,8,["value"]),w(d(he),{name:"box-shadow",label:"阴影",setters:{name:"SelectSetter"},variable:!1,options:r,value:e.styleJson["box-shadow"],onChange:e.setStyle},null,8,["value","onChange"]),w(d(he),{name:"cursor",label:"光标",setters:{name:"TagSetter"},variable:!1,options:t,value:e.styleJson.cursor,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),V5=D({name:"StyleWidget",__name:"index",props:{isStyleCodeMode:{type:Boolean}},setup(n){const e=n,{selected:t}=gt(),r=O(()=>{const a=t.value?.model||null;return je(a)?null:a}),i=O(()=>r.value?.getPropValue("style")||{}),o=(a,s)=>{const l=r.value?.getPropValue("style")||{};s!==void 0?l[a]=s:delete l[a],r.value?.setProp("style",l)};return(a,s)=>e.isStyleCodeMode?(y(),V(j8,{key:0})):(y(),V(d(ae),{key:`widget-style-${r.value?.id}`,class:"v-style-widget",direction:"column",fit:""},{default:S(()=>[(y(),V(k8,{key:`Layout${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(a5,{key:`Spacing${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(s5,{key:`Sizing${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(x5,{key:`Positioning${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(_5,{key:`Texting${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(S5,{key:`Backgound${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(k5,{key:`Border${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(j5,{key:`Effect${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"]))]),_:1}))}}),C5=["src"],$5=D({name:"PreviewerWidget",__name:"index",props:{path:{type:Function}},setup(n,{expose:e}){const t=n,r=B(),i=B(Symbol()),{current:o,engine:a}=Ie(),{width:s,height:l}=mn(r),u=O(()=>o.value&&t.path?t.path(o.value):null),c=O(()=>a.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc");return e({refresh:()=>{i.value=Symbol()}}),(p,m)=>(y(),M("div",{ref_key:"container",ref:r,class:"v-previewer",key:i.value},[w(d(Kc),{mode:c.value,width:d(s),height:d(l)},{default:S(()=>[u.value?(y(),M("iframe",{key:0,ref:"iframe",frameborder:"0",src:u.value},null,8,C5)):I("",!0)]),_:1},8,["mode","width","height"])]))}}),E5=D({name:"NodePathWidget",inheritAttrs:!1,__name:"index",setup(n){const{selected:e,designer:t}=gt(),r=O(()=>(e.value?.path||[]).slice(0).reverse()),i=a=>{t.value?.setSelected(a)},o=a=>{t.value?.setHover(a)};return(a,s)=>d(e)?(y(),V(d(Sd),{key:0,class:"v-nodepath-widget","separator-icon":d(Ns)},{default:S(()=>[(y(!0),M(ne,null,oe(r.value,l=>(y(),V(d(_d),{onClick:u=>i(l),onMouseover:u=>o(l)},{default:S(()=>[ue(te(l.name),1)]),_:2},1032,["onClick","onMouseover"]))),256))]),_:1},8,["separator-icon"])):I("",!0)}}),A5=D({name:"SchemaWidget",__name:"index",setup(n){const{current:e}=Ie(),t=B(),r=O(()=>JSON.stringify(e.value?.toDsl()||{},null,2)),i=O(()=>e.value?e.value.name:""),o=async()=>{const a=(t.value?.getEditor()).getValue();if(a&&await kn("手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"))try{const s=JSON.parse(a);e.value?.update(s),We("保存成功")}catch(s){Te(s?.message)}};return(a,s)=>(y(),V(d(me),{class:"v-schema-widget",title:i.value,subtitle:"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",size:"small",fit:"",save:"",onSave:o},{default:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"json",dark:""},null,8,["model-value"])]),_:1},8,["title"]))}}),T5=D({name:"SchemaWidget",__name:"index",setup(n){const{current:e,engine:t}=Ie(),r=B(),i=B(""),o=O(()=>e.value?`$vtj/vue/${e.value.id}.vue`:""),a=O(()=>e.value?e.value.name:"");return se(e,async s=>{const l=t.project.value;l&&s?i.value=await t.service.genVueContent(l.toDsl(),s.toDsl()):i.value=""},{immediate:!0,deep:!0}),(s,l)=>(y(),V(d(me),{class:"v-raw-widget",title:a.value,subtitle:o.value,size:"small",fit:""},{default:S(()=>[w(d(Ae),{ref_key:"editorRef",ref:r,"model-value":i.value,height:"100%",lang:"html",dark:"",readonly:""},null,8,["model-value"])]),_:1},8,["title","subtitle"]))}}),O5=["src"],B5=D({name:"DocsWidget",__name:"index",props:{url:{default:"https://newgateway.gitee.io/vtj/help/index.html"}},setup(n){const e=n,t=B();let r=null;eo(()=>{r||(r=Rs.service({target:t.value?.$el}))}),to(()=>{i(),r=null});const i=()=>{r?.close()};return(o,a)=>(y(),V(d(me),{class:"v-docs-widget",size:"small",fit:"",body:{padding:!1},header:!1,ref_key:"panel",ref:t},{default:S(()=>[R("iframe",{ref:"frame",src:e.url,onLoad:i},null,40,O5)]),_:1},512))}}),Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAEACAYAAADCyK/GAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfWmgXFWZ7Vq7bgKCYCvdiGmgAbEVxREEobsDoZFBBYJQdSohARQIIi0CIhigNWmRgKiAAyBDEAO5deo6MDWgoAR4NpOtgiL6WhRlVhsHJknu2eu9UzdIxnur6oy7zj5/s/f61re+fVfqDPvbhL+8Aq4qUNdkGPwbpf1BvB3AwwAeEngdgOsR8ieupuZ556MA8wnjo3gFUlbgvdqUk3ERpL3GQf4NyeusxXV47rHv4Jopz6bMwsM5roA3QMcLWEn6db2UBrcCemuP+X+78+vQ4kaM8Kc9zvXDB1ABb4ADWNRBT8k0o9Mlzk2Y5y8oXWeN+TYmYQkW8ZmEeH66gwp4A3SwaJWm3NQWlH6VsgZR/MxQ0LcAs8Q/O0xZ3RLDeQMscXE8tTUoEIy+jzALM9bmPoI3WEW34C+1JbiaT2Ucz8MXpIA3wIKE92H7U8AEukzQwf3N7mvWc2O/DrkEBrdgmPf2heInlVIBb4ClLIsntUYF6qrRdG5/NytQoR9SWmKNWYIIt2CEfyqQiw+dUAFvgAkF9NNzVKCxbHeydmOOEScKFZvfzZ1fh3bZLRiZ/KOJJvh/L5cC3gDLVQ/PZhwFTKDTBJ1SYpG+LvJctHhbiTl6aiso4A3QLwdnFGBgvwdg57ITFjQXYe2MsvP0/ABvgH4VuKFAXa+l0c/cIAsIPAQhv+oK36ry9AZY1cq7lnegIwld4A5t3qeQ27rDt5pMvQFWs+7OZW2CqCUwcIm4JnEKLudjLnGuGldvgFWruIv57qP1uJ5+CeCVLtEXo2loTVriEueqcfUGWLWKu5hvQ+8i9Z+uUfcGWP6KeQMsf40qz9A0orNEnuCaEN4Ay18xb4Dlr1HlGTKwdwPY3jEhnlVo1neMc+XoegOsXMkdS7iuN9LIvf23wtfUNnXH1K4cXW+AlSu5Ywk3omMY765w7BL4foS81DHalaPrDbByJXcrYTbsN0Ds7xZrQIabYJhPuMa7any9AVat4i7lO11/w3U63V/+xiXaIP5bLePaM0unJE6LrDfAtJT0OOkrUB/dn8Z8I33gbBEpftK2+fFso3j0NBTwBpiGih4jEwVMIzpX5DGZgGcIKnAnhLwjwxAeOiUFvAGmJKSHSV8BBjZ++/vG9JEzRfyDQvOKTCN48NQU8AaYmpQeKFUFZmo7Rvp+qpg5gBG6woa1WTmE8iFSUMAbYAoieogMFGjqBEpnZYCcKaRoD0JraHGmQTx4agp4A0xNSg+UpgIMbLz3911pYuaBpef5clzJP+YRy8dIroA3wOQaeoS0FZitjblUvwawbtrQGeP9l0LzTxnH8PApKuANMEUxPVRKCjQVUGqlhJYbjMBTEfJTuQX0gRIr4A0wsYQeIG0FTFPnS/pA2rhZ44l8G1r8YdZxPH56CngDTE9Lj5SSAgxsfPbHa1OCyweGeEwtMyWfYD5KWgp4A0xLSY+TjgJN7UwpPv3NqYvgJTbk4U6R9mT9qXB+DZRMgaZOpuTcczSBByCkc9v2Slb93On4X4C5S+4DjqcAA3sjgN1dU0n2kfUwstlzrvGuOl9vgFVfAWXKv6nNKP2mTJS65HKzQrNbl2P9sBIp4A2wRMWoPJWmZlNy7jBxSR9Fu/aZytfPQQG8ATpYtEGlbIJoocD3uZafLN+AEf7UNd6eL/xLEL8IyqMAAxs3P92iPIy6YvKgQrNlVyP9oNIp4H8Blq4kFSXU1K6UbnYte0Ln2bB2tGu8Pd8xBbwB+pVQCgVMEM0X3OuiLPI9aNG5Q9tLUfQSkPAGWIIieAoAA90CaKpjWliFHAIox3h7ussV8Abol0LxCgR6NaFfFE+kVwa8XiGda9nVa5aDPN4b4CBX15XcgtHDCXORK3Rf4CnwQwj5Rdd4e74vKuAN0K+GwhUwgS4XdFDhRHokICzdGuG6D/Q4zQ8vkQLeAEtUjEpSqWsyTaf56SaO5f9zheZ1jnH2dFdRwBugXxLFKtBYtidZu6FYEr1Hp3S2bdeO732mn1EmBbwBlqkaFeRiAi0Q9DHXUpf4TrR5k2u8Pd+VFfAG6FdEoQowsPEB4jsWSqL34M8qNOv3Ps3PKJsC3gDLVpEq8Qm0DSEX99BeqdDsX6VSDWqu3gAHtbIu5BXog4S+5ALVFTlKnIM2nftsxzWd8+DrDTAPlX2MNSrAhh0BcaBr8shyU4zwEdd4e76rK+AN0K+KYhSo66U0ehjAy4oh0HfUexSat/Q9208slQLeAEtVjgqRaWgfUle7ljHJBbbFk13j7fmuWQFvgL2sjLpeAYNdAUwB7BBo7kKEezHCp3uB8WMB04g+J/I417QQo6loTbqtFLz31QZYb3Q7WLMdgGdA8xgsbsMInywFPwdIeAPstkiBDiIwF9AbVpnyG4GnI+SXu4Xy4+LuLzY+QNy1W8k/KDSvKEX9Ah1JKP4luvnKfHifgAUIeUUpeJachDfALgpkGtGnxPFve0i1basWdAHnh9T1FhrFBujURSi0Ya1ZNGnTjEKJjfF4UDrdtmunFM217PG9AU5QIRNE5wj8cDeFJLnQtnhYN2MrPSbQsYTOdk0DwR6CcKjQQ5t6OTeF0Lk2rB3rms558vUGOI7aJoguEnh4LwUh9AUb1o7pZU7VxrJhrwKxr2t5y/DvMMzfF8XbBPq8oA/1Ep/QxTasHdHLnCqN9Qa4pmrXVTMGXxU0s5/F4N8UjqPa/tqIkxV/Q7dOP9oWNoe4Sy1T2Ja9JHumCS62IZ1rN5ZHrb0Brqry+7UBn9EiAPslKYCgUxHWPpUEYyDnNnQAqa+5lpvEeWhzfiG8G9GpJD+ZLDav0mQchEV8JhnOYM32BrhiPevahKZjfrunUWaBxyLkuWlgDQqGaURfFOncKWoCd0DIu3OvQ7rPS2+S5WyM8PHc8yhpQG+ALxQmPpdCWgRipzRrJfJwtHhJmpguYzHQ/YBcayT6uELzqtx1b+gIUhemGpe4XeJshPSdrP2xmMuX1gy9ibbzy+9NqS625WACZyBkKwtspzBnagdGutMpzvEfCXmZbfHQXHk3R2dSJqtv+e6V4WwM895ccyphMP8LsL5sJ5r40wZtnWF9JNn90B66JsMY5YduRidRPKP8RFdmKMMAw2znxrupfSldmfEPlAeW3w7fnlteJQxUbQNs6l8JLIKUx+3NU7LRdIxM+m4J10EulNjU9ZD2yiVYikH0HDfE1XwqRci1Q8Vrcsz8XppDvMc7t8MV7mxdXQOM/5e1uhzEBjkstBdCPC6OTkdrsnO3gYk1mqVXcZkeTYyTP8BtCk0+B7YHegehb+Z8QNSfBXswwqGr8pe2+IjVNMCGZpC6HIApoAS/kOF0DPO+AmIXFzLbZ1qZ5SVoLsJa9rftgbYlOr/8Xp1ZMmsHjkR7MFpDiwuIXWjI6hlgOQ7hvkfkdLT4YKHVzzG4aepCSc7tSJDhmzN/WVDXljQd88vkJVy3ZRZ4BEJe3O34QRhXLQMMog8TPKckhfueLPfHCH9XEj6Z0mBgY7P/h0yDpA/+oEKzZfqwKyDur405Gd8EtHOmcboEr9q3q9UxwIbmkjq9y3WQ0zB+S8/ivbiGz+YUsJgwzWX/QtVuLSZ4/1EJXWjD2pH9I0wwc47W4x91JYh3ZhajD2CRp6DFkv2t9JFIF1MqYYAm0GmCytoa6BsKzQFd1MrdIU39O6X/cC0BgdMRMrOXAwxs/MJjehl1qUo7rYE3QBPobEGlbglEaJENaweX8Q8hDU4M7M1Ap5O2S1ekl/EluJDLsiBtmlokaVYW2GlhVqGd1kAboGlGF0p04sE7pQtsu3ZUWou3NDjN57ag1vlVafh0S4S8US3u0e3wXsaZILpAYHa31r2QmWDsoLfTGkwDnCdj7reLBPbVzirF9dMTFKHP2rB2Qk+Tyj64qUMpXVp2mqvyE3gcwvRfmJkg+qzA413SY5DbaQ2eAe6rDfiS5O2silqgJOfbFucVFT/tuCaILhPo3O297NLXYWTdn6ephwk0X9DH08TMD4tXKWQpn1cm0WCwDLD+9CY066XWziqJsEnmCjwRIc9KglGKufP+/y7a+zu7P15ZCj7dk/i5QpNux5qGTiR1ZvcUSjnyJoWmVG+sk6o0OAY4U1txtLO1LdV2VkkF7ne+wKMR8rx+55di3ti+1ptKwaUHEqkfa9CIjib5xR4olHdo3E5rEt85KI1VB8MA63ojTWdrW6Ff0qe9aiUeijYvSxs3LzwTRKcJLOvnR2uVQYZ7Y5g3pKLTDB1Cq6+kglUekHs1iXvhcj5WHkr9MXHfAMc2kMfmV8Qeyv5U72FW1t+i9UCl56EMdDugd/Q8scgJwrNqm/VToRBov+X7e1OBKxnIAzJ8D4b5s5Lx6omO2wY4dosVm98mPWXt1GDeKYupGOFSp2gH+kdCqb5EyCn/axWafRLHqmsyDW4FVNhBSolzmBjA+e5G7hpgfXRfGhObX57trCZeEhmMkDQf7Zpbb4abmkPpyxnIkSmkwA8i5PmJgzSieSQ/kRin/AB/luGBGOaN5ae6OkM3DTBQk1DcLryIdla515nkRbbFObkHThDQBNGwwGYCiEKmqsYtsJi/ThrcBNF5Agfvw/Y1CxO302qiNeTcaX/uGWBTh1GqVMseCP+ptnlP0j/K3ObX9RIaxSePbZhbzHQC3avQvDkNKFcPf0+Su8jD0OLCJBh5z3XLAJs6hlLljpkkNWxbNXd2tQTam9B1eS/mpPEInmVDnpgUJ55vAl0qKN+DlNIgnhDDtXZa7hhgI5pLVqNFz6prUOTxaPHshGszt+kmiD4t8KO5BUwpkBTthvakuHFD8qupD1BK/iwxOZPcEVxqp+WEAbr6PVlKK+/3Aqch5E9SwsschoH9EYBUbiUzJ/tigCcVmo1SixfozUTnI/C/TQ3TISBX2mmV3gBNEJ3d+Vld0UuMdkdr0necSX/sbIsfO8P3RaJfV2gOTJV3c9muVC2dX5SpEssHzIV2WqU2QNOILhTdaGeVxZLK7UCeNMkH0YcIfj5NyDywJHsY2kPpP8BvLt2eGro7jxzKGKPs7bRKaoCiCezlrrWzSnMBCnYGwqFWmph5YJW5y/F4+cvyVRhh/OY6/Wt/bcTJ+n36wG4glrmdVvkMsK6XLt/Xu58b5U2fpcCdEPKO9JEzRqzrZTT6LYDJGUdKF564Sy2T+Y4NBjb+vnDzdMm7glbOdlrlMsAZemXnsHJgd1fKmjJPyXJKZr9EUia7GlxjdDpp4nMunLpInmZb/Pc8SLOpJZB2ySNWCWOUrp1WeQwwbmcVm58Go51Vz4tPeExtM6XneSWaYAKdI+jDJaLUFRUZ7oxh3t7V4BQGmWb0FYmHpADlHkTcTqtlSnEEaCxeOQyw/vwbaSZfDmig2ln1sDrvVGjc6pqyhuQY2LgzyGt7yLv4oUX9x9PQJ0i5tb87vWqltuMmKaXiDbCpHSktBrBV0mRcnE8otGHNuT2zq2ld13Y0+r5rNSB4hQ1ZzOlsjdFDSDNovQK7XQIPaDLfXHRj1WINcIZ2o+2Yn2st07st8rjjKJ5p2/xYKmBFgzT0EVKfKZpGr/EFOwvhUNxYo5iroamkbikmeOFRH9ckvq3IxqrFGWBD+5Ad83tp4WUogIDIo9DiBQWEziQkm7oe0l6ZgGcIqhpfgcX8Q4YhJoaua2sa/c/EAwdyRNxOa8eiGqsWY4Bj7axi8ysmfsHrSLDvQjh0fcE00gu/vzbmZD2RHmBuSLcpNFNzizZeoLFPiH5R0a1zkTj6T2hNvjPvWuRvQM3RwyhTrXZWL1bVCtwWIe/Pu9CZxmuoQSrMNEYG4JL+He3aaRlA9w3JwMa7RrbvG8DhiTLcI+/GqvkaYCM6hmTl2lktX5OPynJrjPA5h9foGqmbRnS+yA+4lpfA7RDyB2XjbQLbFlAvG688+Ii2nmdj1fwMsKG5pE7PQ8QSxviBQrNdCXmlQsnRHQ4PKjRbpiJABiAm0JmCUulNmAG9TCHzbKyaiwGaQKcJcu54xFSq7Fo3516TrmsnGv1Xr9OKHk9yoW3xsKJ5jBs/iI4iHD8buk+BRR2PVi3zHpiZG6AJdLagSrazInShDWtH9rkG3JjWjE6m+Ck3yL7IUuKBaPPrpefdHN2XMleVnmcGBCXOQ5vzM4D+K2SmBmiaulDSEVkmUFZsiSejzQVl5ZcWLzbsEhCu7W0dleWGzjyPHTv7OretemmtjTRwKJ5t2zw+Daw1YWRkgKJp2CtEzsiKeJlxJc5Em8Nl5pgKt4O0KUf1UCpY+YKUblP+hOkHevXyRrMvmXDsgA2gtNC2a5k8rkjfAON2VtQVIPYdsDp0k04kRlPRmuTcM7FuklttTHN0NmW+2tfcAid1Xi6EtbMKpNBf6IO0IUc7vwRf3x+Aw7PEr6nN1N+Mp2uAs7Uxl3Y+cP5Xh6Xul/ojIndAi4/2C+DaPBNElwp07uQzmWXbYnid+1zT+wW+bOpaSO92lX/fvIUb1TZ79D1/DRPTM8C6tqTpmJ/zXU16F5jfV8i39z7P7Rls2icgbOxYFj9TaLZxjPNqdE0j+qLIo13Po2f+KbfTSscAxw7Cic3vjT0n5P6EaxWafdxPo8cMZmgXWi3pcVbhwwmdb8PaBwsnkgaBpk6idEYaUI5hpNZOK7kBVridVdkPfMlyUZum5kn6RJYxssAWuA9CXpsFdiGYDb2f1CWFxC426AMKzdZJKSQzwAq3s6L4Sdvmx5MWwNX5DGx8Zknm52ikrM8z2oYbYh5tyrjFwjVG9yHN1cWSKCT64wrNq5JE7t8AK9zOStDRCGvnJRHe6bnx8QWRHnAwh8F9XDF2J+beQVrJF9GfNZlT+m2s2p8BjrWzGvzv3FYvzqjE/dDmdcnr5jBCU4dRcq6jj8BjEPILDis/PvXOf0z4DqAtBjbHNScWaRI366exau8G6OjiT7wghIcl7okR/jQxluMAJtCwIOfa+AvcGiFd/OXa/YrZVxvwJYpvh3ftftJgjJThNr02Vu3NAIPowwTPGQy5esmCd2sypvX7M7uXSKUfO0eT+KfOId8blp7rygTvUWje4hjnvumaQJcJOrhvAEcniqPv6KWxavcG2IhOJt3b9J5CHa9RaKq4q2XN0gXag9C3UtA1VwhC59iwdlyuQQsOZoLoMwI/UjCN3MP30li1KwM0jehTIk/OPZOCA1K6yLZrcwqmUarwJogWCO4d5CQb7YGRSTeWSsw8yDR0Iqkz8whVphjdNlad0ABNEJ0j0LnDrpMWg+B/2JDOfeeWNO+J5jOw9wBw7fzmJxWajSbKbWD/PdD7CC0c2PzWklg3jVXHNUATRBcJPLxywkEfRFg7v2p5T5hvoG0IufgS6OsKzYET5jfIA4LR9xDmmkFOcU25TdRYda0GaJrRYqly7ayWSWygzSurtlC6yjfQUYSc+/5R5JFo8cKuchzkQTO1AyPFu2D+bpDTXDW38Rqrrm6As7U+n8diUFV78P+QwAZCVvFj0q7+HhjY+D+G/boaXKJBGuJmuIIPl4hScVTGmpa0q3by3Noaq65sgJ12VlgMqFrtrMi7FOG9GOEjxa3MkkeO+zwaPQlgUsmZrkxPuEtt49qWvWwljn/kLEUb0LuyDVQu9DU1Vn3RAMf+Z4h3d1RrsQhXq22c+1WT+9IK9B5Czj1DIniGDTk3d70cCGia0VckHuIA1fQortJYdcwAm9qC6izubdOLVH4kgl+2oXvn2RahrAmiswU6d7iVyKlo8bYiNHMhpmlEZ4k8wQWuqXFcobFqxwBNoEsFOdfZN4kgJOfbFuclwajSXAb25wD+0bGcH1Vo/t4xzvnTDfRRQp/OP3BxESWdhHbt00Rz9FDKXFoclfwjSzoK7doF+Ud2NGKgNxP6kWvs4ya9Nqwd5BrvQvg2dSilivmAnUkT6KuCZhciev5Bly5/01vJc1b7ljuIjiWY+SHVffNby0TJHor20GVp4w4sXn303aRpg1hvYHNcITECI2RgfwWgCu1zfiOygRbvrEJx08yRgb0BwJ5pYuaBJcuNMcLf5RFrYGIEejvR+Uxm8D1BeNgb4MCs3IwSqesVNPrfjNCzhL1VoXHtwPYs9egOu64dln8n+A/dTXB4VGyA/hbY4QLmQb0xegBpvpZHqDRjkJpvWzX/kqsXUcc+dRoBsG4v01wd27kFRgU3SvuXIN0vWdPU+ZI+0P2McoyU5Y4Y4V3lYOMAiwo2Ohbt+5Z/BmPbAlI/db3MZfefwXRXHQb6NaDNuxtdmlG/Umi2Kg2bshOpYK9Pgl+xIccMML4Y2LjJZaqnrpe97v5D6AkqVF+6A82Qcy+NSC60LR5W9vVXBn4m0DmCqtbu7ici90GLD660F9g0o7DTDaVKl98Kt/ZqN6KTSDp38LbIJloMq7SM+8nVBNGwQOfOdukn1xXm3CnLGRhh/PULVusGYwJdIOjIhEHcmu6bIayxXgzsLQCmOlbMZVofG2Ehn3KLd45sD9ZGnWYI0m45Ri0+lPBdrcMZWMTf/vXOd02sTCM6Q+RJxTPOlYFvh7Wi3HVtQqPHcq1AGsFW2OeZBtzAYdT1ehrFb/W3Gbjcxk/oGk3umN8zKw5be0fopk6i5NztT8Ki+oaoLwjY0AxSixPqmft0SSejXVuQe2AXAjaWTSNr1wNYxwW6aXEkOWxbnLkmvPHPBAmiIwlWbs+sfEt8uNoqSeBbEDI+t8RfKyrQVECpVTVRCF5sQx6xtrwnPBQJDTVIVe6BctUPRWJg4+ckjrVO5/0K+fqq/ZFPmG8jOobkuROOG7ABBM+14fgt3CY2wFgUR8+CTVrPyh6LWdc/08i5HnqEzrdh7YNJ6z5I802g0wSdMkg5dZMLxdNtmxPm3Z0BjplgvEm6il/WV+9g9Eb0CdK9XokS9/cHWr1oD5U91ZE8BS2e3pVRdjPor2Nm6jWM9H97mjMQg3m3JmPaqm+QBiK1NSTBpr0Twg6O5fe0LDfCCJc6xjt9uodqXT6Hr1ftzI9YyE7X8rD72/3ufwG+UKamplCq3uFBwsMS98QIXTwXt/s/spn6B0Z6sPsJZRnJaxSyaicZri5+XZvT6NsAXluWyuTFQ+ARCHlxL/F6N8AYfaZezkjxQ/KhXoINwNhRifuhzesGIJc1pzBDh9DqK67lJ/J4tNxr2pqqzmOPqb7n3Ml9KYggcSbajA916+nqzwDjEHtrHW6IhwA59qawJ33WOFjQ0Qhrzh0Q3k3mJlBLUNDN2DKNkeXrMML43JJqXk29m+ocel616xmRM9Hi1f0k3r8BLo/GwMbPBF/TT3CX51D8pG3z4y7nsBr3eTK8X38EsIFjef1IoXmrY5zTo9vQ+0ldkh6gI0jCb2U65vedfhknNsA4MAMbvx1+e78kXJ1H6GIb1tb6kaVzec3QbrTqezEVlS/Js22LxxcVv9C4jWgu2d0bz0J5ph/8VwJnIuQdSaBTMcDlJli5dlrLhb9WodknSRHKMtcEWiDoY2Xh0y0Pwb4L4VC8xatSlwmiLwms4nePP5HlTIzwx0kLnpoBxkQq2U6rUwF+XyGd/wXMQPcAelPSRZXrfOF/1TZ/m2vMEgRjw14PYq8SUMmbwp2qcSYW85dpBE7VADsmWMV2WmOVeETkDmjx0TQKkzuGq994Cl9T21Snm/nYIVW3O3hIffIlTXy388JjmE8kBxtDSN0AOyZYzXZaceqRGE1Fa9J/pVWg3HAcbXwh8GiEHMg38qvVPtA2hO6t4OdnsRTXLL/tfTrNv4lMDLBDsJrttDqp9/tNUpqF7RWLDXsVCOc+JBa5ZdzavNd8nRs/Q7vQaolzvFMgTKhlQzMToFKAWwkiOwOMwzj6qyINkSWejDbd6EvX2TqluIOyax+236nQvCONepUao6IdmcZuUXWJDWuHZ1WfbA0wZl3t4l1ow1r5jxcIRvcmjHO7WwieYUPOzeqPoxS4TZ1A6axScMmZBKXP23Yt0wObsjfAWLT66LtpTBW/Uo93Z/+n2uY9Oa+dnsKZIDpHYKYLrSdCXQ6WuBvavLnL4c4NM4HOE3SUc8RTIExqgW3VTk4BalyIfAxw7JfgNFLfzTqhkuL/QKHZrqTc4g/ZHdzNw0cUctOyapqUFwPdAGjPpDguzhd0KsLap/Lgnp8Bxtk0tSOlRF9u5yFKRjEeleXWGOFzGeH3Bxs8vy0xKfEHpf0F738WoStsWJvVP0JJZ9Y1mUb3Adi6pAwzpSXoOIS1czINsgJ4vgYYB56hN9HGH9xW8rICt0XI+0uTfaAPE8ptwaWVt2gPR2tosPa/NrUZ1WlFZtLSySUcyc5Be+iiPDnnb4BxdnVtTaPYBFx765hKbcq0dYuBdXILo5ZxCr5B947tXNsKai7dnhq6O5UF5h6IRDsLraHcTyEsxgDHboenUPhRFdtpxemLPAqtgk/cqz/5Mpq/ibu/uHWRt6jFXd0iPQ7bhg4gO2f1VvF6WrCzEA5dVUTyxRlgnO1YY9U7q9hOK06f4pm2zeKaDwTaj9CVRSy8JDFJzbet2rwkGKWZG+ijhD5dGj75EnlCimahPemmfMO+GK1YA4x5dBqrdk4gc76ZQD9FJBTasNbsZ27SOa7u2xb5T2jRve2GqxTMBNEFAsv/nWjShbbm+b+UjWZhZFK8r7mwq3gDXJ66q8+iUqpcITsaGNjfANgspRzygvmlQvPqvIJlFYcN+20Q78wKv9y4/LHM0lkYXife11zoVRoDjFWobjutznFWj6ltpuS2GgK9jdB/5xYvpUAEL7EhM9salRLNcWEY2F8AcN7E+9OKdwjPz0K47gP9zU93VqkMsGOC1W2nFacvWU7BCB9Pt8xrQHO0WYXAWQh5Reb6ZBFg7Jn3/2bVhSkLyqliCt/t9PJLsZ1VUn6lM8COCVa3nVanngJ3Strqe6KFwUC3AJo60biS/fsy1fhKLOYfSsZrYjr1pdvRDH00GtgFAAAOa0lEQVR/4oEDOyKTdlZJ1SqlAXaSCqJTCJ6WNEFX5wt2BsKhVib86/o7ms6xpq5d31Zo3NseFozWCdN2Tey0+GbZziopx/IaYJxZU8dR+lzSJF2dL2guwtoZqfNvjgaUycZcUyf7IqDAuQiZvh4ZckYzOolyjHOKemTdziop1XIbYOeXoI4kdEHSRF2dL0a7ozUp1ZPaTBBdJvBg1zSR5fYYoTsvbpqaQ+nLrumcFt882lkl5Vp+A+yY4OjBhLksabKOzv+9wGkI+ZO0+DOwvwPg2kFC9ys0r09Lg8xxmkvfSg3dCuClmccqYQCSC2yLmbezSpq6GwY4djt8IKWRpAm7OF/k8Wjx7FS4B3oH0TlUx6mL4Hk25NHOkG7qA5TOd4ZvikQFnoqQubSzSkrbHQOMM61oY1VSw7ZVm5m02PF804zmSfxEGlh5Yoiso0Vn9suaQJcKOjRPjcoQS+BxCOlMdyG3DDCucBUbq6bYVZqBvcvBbYdP6Vlugmv4bBn+yLvh4OohU93ktrYxIuegxVzbWSXhG891zwDHbofjxqr/pyrttEheZFuck7TYqOvvafRwYpz8Aa5RaJw6sc4E0XkCq9LO3oqcjRZzb2eVdCm6aYBx1p3GqripCu20JM1HO4XuJw0dQuorSRdN3vNTfQaaF/lGNI9071FDH/I8JXA2QhbSzqoPvitNcdcAO88EO41V49PMXpNUiPLO552ymIoRLk3K0dW91jLcFsOM28S7c3Va2+NWQDu6Q7pnpk9InIU2C2tn1TPjVSa4bYBjt8NTqE5Pu4FspyVwelr/uzKw8dm/jn2WwR8q5NuSLvRC5jvab7FLrX4pw1kYpnNfFKyYn/sGGGcztsk83tmwR5fFc2KYxEPRZjrfP9a1C42WOJH4CiQpnW3bteNd4/1XvjN0CK17jx0m0PvHy82v8HZWSdfFYBhgrELcWHUDXQ7iwKSilGG+wKMR8ry0uJiGzhB1Ulp4eeFIdl+0h67JK14mcRrR0SS/mAl2/qB3LO/IU4p2VknTHxwDXK6ECXSZIOe2ea1YSIEnIuRZSYu70k/9wMb/W78xTcwcsH4vy00wwiiHWNmGaOhEUmdmGyRz9O/IclYu7doyT2UswMAZYJyUy63GSc63LaZ73sUB2opDcu5/bIIjNmQjp7+FzMOYQPMFfTzzQFkEEK7WXzgLVzN+jjww10AaYMcEG9HnRB7nUqUIfdaGtRNS5+xoQwlBRyOspfYYIHVd+wA0QfRZgU490yQ5bF+HWZhH20fKpZ4ysAY49ktQpwk6pdQVWE6O0gW2Xcvkw1k2dRUkpz4kjmWR5Wswwrh9/EBdLt2hELzYhjxioAqwQjIDbYCdPB1orEpokQ1r2Ty3nKNJ/JPiLWSuHUJ/h0Kz06D+4ZmmFkmaVeb8CJ5rQx5bZo5JuQ2+AcYKlbux6jcUmgOSFnKt8xvL9iRrN2SGnxGwK+2UkqTPwH4TwPQkGFnNJbXAtmqlb2eVNP9qGGDnl2AZG6vyW3oW781yk79pROeKPCbpQsl7vgz3wDBvzDturvHmaD3+UVeW7XhMQacirDnRzippvapjgB0TLFVj1e/Jcn+MMG5OmtnFwP4PgK0zC5AN8CMKzabZQJcMdX9tzMn4JqCdy8BM0HEIa860s0qqWbUMcOx2uAyNVe8ROR0tPpi0gOPOn6HX0er+TGNkAE7qctuqzc4AupyQdW1J09nO+aYiCUp2DtpDTrWzSqpX9QwwVmyssWq84Ip4MfALGU7PZXN/EB1LpNRJOulK62G+yMPQ4sIeprg/NNC2RMcEizgw3dl2VkkLX00DjFXrNFZFmHM7rcfF0eloTb4zaeG6mc+G/XbZni91w1vk5mjxoW7GDtSYseMK4hcjm+SYl9PtrJLqVF0DHLsdjhurXp7TM7KnZKPpGJn03aRF62r+bK3PpXq6q7FlGiTcorbZtUyUcuXS1L8u726UR9eexyXOdrmdVdLaVNsAY/U6jVW1KOPnL5Lsfrlu6ne0FZPEeWhzftKF7fT8pvZdboJZ/n0+IMPZrrezSlrnLAVOyi2/+WONVeNfgpk0rxQ4AyFzPYjcBNGXhRTa6OdXhU4kibugzfg4yWpfzdGZlLkiIxHuXW5+zrezSqqPN8AXFBxrrBqb4LSkoq44X+ThaPGSNDG7wWLDPgTCsU9J+IBCuvbJTjfl6G9MQ0eQurC/yWuZRdyuaOnBGFl34LYY9qOTN8AVVYsbq1osgvTufsRcdY7AYxHy3DSwesIYu62/p6c5JRhM6BIb1g4vAZXyUAh0LKF0zoQGb9IyHIxv8LHyJFgsE2+Aq+qfUmPVQr+mD/QxQguKXVq9R1/eaDOr277eCZVlRiM6leQnE9GJ21lN4mxcwT8nwhmwyd4A11LQJI1Vi97HysDGz9D+xbG1ulRLn9kM39zgt47xzoWuCbRA0Mf6CUZq2EZm9kA0lu1HgHHmeAMcR5x+2hYR+oINa8XtvR07H+XJlNdJDnD8lkLulUMgZ0OYQJ8X9KFeEiB0sQ1rA9vOqhct1jTWG+AECvbSWJXkQtviYUmLkmh+UwHVOSDKqUvQXIS1M5wiXQBZE0QLBb6vm9CEzrVhbaDbWXWjw3hjvAF2oWA3jVVJtW2rFnQBl+mQJLfumRKbAFzkO9BiLjtkiswzjdjdnO9M6XTbrjnRDDgNTfrF8AbYrXKBDiIwF9AbVpnyG4GnI+SXu4XKchwD/Q7Q32YZIwPsnyo0q+qaQZgBghxr7xb369t85ax4n4AFCOlfJnVRbm+AXYj01yF1vQIG8TatKYAdAs1diHAvRliOLWfNpTtSQ3f0klIZxpL8km3x38rAxSkO+2oDrDe6HazZDsAzoHkMFrdhhA4+Ay5GeW+AxeieSVQTRPMFOnfqmGjraA19LRNRPKhXYBwFvAEO0PJgYO8GsL1TKQlPaRI39d+nOVW1gSHrDXBQSlnXJjRy7wv/+APdttlvUMrg83BLAW+AbtVr7Wybo4dS5lLX0hF4HEJWpgW7a/UZdL7eAAekwiawbQF119KRHX0rRib/yDXenu9gKOANcDDqCAY2fhO9vmPp/FCheZtjnD3dAVLAG+AgFLOuXWi0xLVUCH7OhvyIa7w938FRwBvgANTSBNGZAk90LRWB+yDkta7x9nwHRwFvgANQSwb2xwC2dSyV3+nP3AzX83nHeHu6A6SAN0DXi1nX5jT6tWtpEBixoWm4xtvzHSwFvAG6Xs+mPkDpfNfSEPhBhHSOt2s6e77jK+AN0PEVwkBXA9rHtTRkuA2G+TPXeHu+g6WAN0Cn6yky0DIANafSIG9Xizs7xdmTHUgFvAG6XNaG9iR1g2spkFpgW7W4lZO/vAKFKuANsFD5kwU3TZ0rqbj2+33Sl+EeGOaNfU7307wCqSngDTA1KfMHYqD/AeTWObrCw2qbzfJXy0f0CqyugDdAV1dF/S+vpZns3EsEgotsyINdld3zHiwFvAG6Ws9GdBzJz7lGX7KHoT200DXenu9gKuAN0NG6MrDxM7TdXaMvy60wwl+5xtvzHUwFvAG6WNcPaR3+Vn9xkPoShWaag7w95QFVwBugi4VtjE4nzTddoy7wEwj5H67x9nwHVwFvgA7W1jSiC0Ue4Rp1KdoF7Um3usbb8x1cBbwBOlhbBvZhAH/vGPUHFBq3PtlxTGBPt3cFvAH2rlmxMwK9mZBzLeQJXWzDmnO/Wostto+etQLeALNWOG38huaSOj1t2KzxRB6EFhdnHcfjewV6UcAbYC9qlWAsm/Y2CP9cAiq9UHhefG4rtNZ/tJdJfqxXIGsFvAFmrXCa+AdpQ47qT2lC5oT1LYVmr5xi+TBega4V8AbYtVQlGBioSWi4BEx6oiDyY2jxzJ4m+cFegRwU8AaYg8hphTCBvipodlp4eeGoxh2xmHflFc/H8Qp0q4A3wG6VKsE4Nu3vIWxUAio9UOB9CunagU095OeHuqyAN0BXqtfUjpTucIXuCzwpfcm2a//mGm/PtxoKeAN0pM4m0HxBH3eE7l9pSjwQbX7dNd6ebzUU8AboSJ0Z6G5A2ztC9wWaf5bllhjhk47x9nQrooA3QBcKPePpV9Ku97gLVFfmyKsUcrp7vD3jqijgDdCFSgej7yOMc01EBR2HsHaOCxJ7jtVUwBugA3Vnw46AONABqitRFPgWhLzHNd6eb3UU8AboQK3ZsM+AWM8BqitS/IFCs51jnD3diingDbDsBW8u25Wq3Vx2mqvyI/hZG/IE13h7vtVSwBtg2evtqAEKdh+EQ9eWXV7Pr9oKeAMse/3dNMDfaTK3xCI+U3Z5Pb9qK+ANsOz1r2syTacDzLplp/oCP1Jt26oFrvD1PKurgDdAB2pvgugywZ3DxEUehRYvcEBaT7HiCngDdGEBOHYbLMNtMMyfuSCt51htBbwBulL/RvQRkp8pPV3hdrXNzqXn6Ql6BQB4A3RpGTT1L5Q+DOCAstKmdLpt104pKz/PyyuwogLeAF1cD3W9BbTTCLMroGkgNihLGhLfiTZvKgsfz8MrMJ4C3gBdXx8z9XKMYjcDO03krgDeUGBKD+kJboUlHC2Qgw/tFehaAW+AXUvlyMCmtofFbhz7ZRgbYm6fzxBaZMPawY4o5Wl6BfwzwIFeA3W9DCba26A2TbEhAq/JMl+B70fIS7OM4bG9Amkq4H8Bpqlm2bECvQ2wexNmWufZIWDSpCxyS7T4YJqYHssrkKUC3gCzVLfM2PtqA6wb7W3IvQTGZrhFErqkFthW7eQkGH6uVyBvBbwB5q14WeONvVnem4wPMNfU3mjyh7KYihE+3ds8P9orUKwC3gCL1b+c0WdrfTyPvQzt3gL3BjBl7UR5k4j3o8WHypmMZ+UVGGf1enG8AhMqMENvQhT/OuReADYDsCnImyVcDYtLMMKlE2L4AV6BEirw/wBT9ySzG22TjAAAAABJRU5ErkJggg==",z5={class:"v-about-widget"},D5={class:"v-about-widget__logo"},I5=["src"],R5=R("div",{class:"v-about-widget__name"},"VTJ.PRO",-1),M5={class:"v-about-widget__version"},P5=D({name:"AboutWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",z5,[R("div",D5,[R("img",{src:d(Yc)},null,8,I5)]),R5,R("div",M5,"版本:"+te(d(Uw)),1)]))}}),N5={class:"v-image-setter__plus"},Xc=D({name:"ImageSetter",__name:"image",props:{modelValue:{},limit:{default:1}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B([]),o=O(()=>i.value.length<t.limit),a=l=>l.type.includes("image")?(Kb(l).then(u=>{i.value=[{name:l.name,url:u}]}),!1):(Dr.error("只能上传图片"),!1),s=()=>{i.value=[]};return se(()=>t.modelValue,l=>{i.value=l?[{name:"",url:l}]:[]},{immediate:!0}),se(i,()=>{const l=i.value[0]?.url;r("change",l),r("update:modelValue",l)}),(l,u)=>(y(),V(d(Ad),ve({class:["v-image-setter",{"v-image-setter--addable":o.value}],"list-type":"picture-card",limit:1,action:"#","file-list":i.value,"onUpdate:fileList":u[0]||(u[0]=c=>i.value=c),"before-upload":a,"auto-upload":!0,"on-remove":s},l.$attrs),{default:S(()=>[R("span",N5,[w(d(rt),{icon:d(Rd)},null,8,["icon"])])]),_:1},16,["class","file-list"]))}}),F5=D({name:"ProjectConfigWidget",__name:"index",setup(n){const{project:e}=jn(),t=r=>{e.value?.setConfig(r)};return(r,i)=>(y(),V(d(me),{class:"v-project-config-widget",title:"项目配置"},{default:S(()=>[d(e)?(y(),V(d(Kr),{key:0,footer:!1,size:"small","label-position":"top",model:d(e).config,onChange:t},{default:S(()=>[w(d(ee),{label:"站点名称",name:"title"}),w(d(ee),{label:"Logo",name:"logo",editor:Xc}),w(d(ee),{label:"主题切换",name:"themeSwitchable",editor:"switch"}),w(d(ee),{label:"模拟数据",name:"mock",editor:"switch"})]),_:1},8,["model"])):I("",!0)]),_:1}))}}),ye={Logo:p4,EmptyWidget:m4,Switcher:g4,Toolbar:b4,Actions:_4,Pages:P4,Blocks:N4,Components:U4,Outline:W4,History:J4,Apis:e8,Deps:t8,Designer:i8,Scripts:c8,Properties:d8,Events:m8,Css:f8,Directives:v8,Defined:x8,DataSources:S8,Style:V5,Previewer:$5,NodePath:E5,Schema:A5,Raw:T5,Docs:B5,About:P5,ProjectConfig:F5},H5=[{name:"Logo",region:"Brand",component:ye.Logo},{name:"Switcher",region:"Brand",component:ye.Switcher},{name:"Toolbar",region:"Toolbar",component:ye.Toolbar},{name:"Actions",region:"Actions",component:ye.Actions},{name:"Pages",region:"Apps",component:ye.Pages,type:"app",openType:"panel",icon:qu,label:"页面管理"},{name:"Blocks",region:"Apps",component:ye.Blocks,type:"app",openType:"panel",icon:Yu,label:"区块管理"},{name:"Components",region:"Apps",component:ye.Components,type:"app",openType:"panel",icon:Xu,label:"组件库"},{name:"Outline",region:"Apps",component:ye.Outline,type:"app",openType:"panel",icon:Wu,label:"大纲树"},{name:"History",region:"Apps",component:ye.History,type:"app",openType:"panel",icon:Ku,label:"历史记录"},{name:"Apis",region:"Apps",component:ye.Apis,type:"app",openType:"panel",icon:Eu,label:"API管理"},{name:"Deps",region:"Apps",component:ye.Deps,type:"app",openType:"panel",icon:Nu,label:"依赖管理"},{name:"ProjectConfig",region:"Apps",component:ye.ProjectConfig,type:"app",openType:"panel",icon:zo,label:"项目配置"},{name:"About",region:"Apps",component:ye.About,type:"app",openType:"dialog",icon:Lu,label:"关于",props:{width:500,height:300}},{name:"Designer",region:"Workspace",component:ye.Designer,type:"tab",closable:!1,label:"设计视图"},{name:"Previewer",region:"Preview",component:ye.Previewer,type:"tab",closable:!1,label:"预览视图"},{name:"Schema",region:"Workspace",component:ye.Schema,type:"tab",closable:!0,label:"DSL视图"},{name:"Raw",region:"Workspace",component:ye.Raw,type:"tab",closable:!0,label:"源码视图"},{name:"Docs",region:"Workspace",component:ye.Docs,type:"tab",closable:!0,label:"帮助中心"},{name:"Scripts",region:"Settings",component:ye.Scripts,type:"tab",group:it.Block,label:"设置"},{name:"Css",region:"Settings",component:ye.Css,type:"tab",group:it.Block,label:"CSS"},{name:"DataSources",region:"Settings",component:ye.DataSources,type:"tab",group:it.Block,label:"数据源"},{name:"Defined",region:"Settings",component:ye.Defined,type:"tab",group:it.Block,label:"定义"},{name:"Properties",region:"Settings",component:ye.Properties,type:"tab",group:it.Node,label:"属性"},{name:"Style",region:"Settings",component:ye.Style,type:"tab",group:it.Node,label:"样式"},{name:"Events",region:"Settings",component:ye.Events,type:"tab",group:it.Node,label:"事件"},{name:"Directives",region:"Settings",component:ye.Directives,type:"tab",group:it.Node,label:"指令"},{name:"NodePath",region:"Status",component:ye.NodePath}],L5=[{package:"vue",version:"latest",library:"Vue",urls:["@vtj/materials/deps/vue/vue.global.prod.js"],assetsLibrary:fu,required:!0,official:!0,enabled:!0},{package:"vue-router",version:"latest",library:"VueRouter",urls:["@vtj/materials/deps/vue-router/vue-router.global.prod.js"],assetsLibrary:vu,required:!0,official:!0,enabled:!0},{package:"@vtj/utils",version:"latest",library:"VtjUtils",urls:["@vtj/materials/deps/@vtj/utils/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"@vtj/icons",version:"latest",library:"VtjIcons",urls:["@vtj/materials/deps/@vtj/icons/style.css","@vtj/materials/deps/@vtj/icons/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"element-plus",version:"latest",library:"ElementPlus",urls:["@vtj/materials/deps/element-plus/dark/css-vars.css","@vtj/materials/deps/element-plus/index.css","@vtj/materials/deps/element-plus/index.full.min.js"],assetsUrl:"@vtj/materials/assets/element/index.umd.js",assetsLibrary:"ElementPlusMaterial",required:!1,official:!0,enabled:!0},{package:"echarts",version:"latest",library:"echarts",urls:["@vtj/materials/deps/echarts/echarts.min.js"],required:!1,official:!0,enabled:!0},{package:"@vtj/ui",version:"latest",library:"VtjUI",urls:["@vtj/materials/deps/@vtj/ui/style.css","@vtj/materials/deps/@vtj/ui/index.umd.js"],assetsUrl:"@vtj/materials/assets/ui/index.umd.js",assetsLibrary:"VtjUIMaterial",required:!1,official:!0,enabled:!0},{package:"ant-design-vue",version:"latest",library:"antd",urls:["@vtj/materials/deps/ant-design-vue/rest.css","@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/localeData.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekOfYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/advancedFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/quarterOfYear.js","@vtj/materials/deps/ant-design-vue/antd.min.js"],assetsUrl:"@vtj/materials/assets/antdv/index.umd.js",assetsLibrary:"AntdvMaterial",required:!1,official:!0,enabled:!1}],U5=[{id:"html",category:"HTML"},{id:"elements",category:"特殊元素"},{id:"components",category:"内置组件"}],W5=[{name:"div",label:"容器",categoryId:"html",snippet:{children:"容器文本内容示例"}},{name:"span",label:"内联",categoryId:"html",snippet:{children:"内联容器文本内容示例"}},{name:"a",label:"链接",categoryId:"html",props:[{name:"href",label:"href",setters:"InputSetter"}],snippet:{children:"链接文本内容示例",props:{href:"#"}}},{name:"img",label:"图片",categoryId:"html",childIncludes:!1,props:[{name:"src",label:"src",setters:"InputSetter"},{name:"width",label:"width",setters:"InputSetter"},{name:"height",label:"height",setters:"InputSetter"}],snippet:{props:{src:Yc,width:"200",height:"200"}}},{name:"h1",label:"大标题",categoryId:"html",snippet:{children:"标题"}},{name:"h2",label:"中标题",categoryId:"html",snippet:{children:"标题"}},{name:"h3",label:"小标题",categoryId:"html",snippet:{children:"标题"}},{name:"p",label:"段落",categoryId:"html",snippet:{children:"段落文本"}},{name:"component",label:"动态组件",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#component",props:[{name:"is",label:"组件名",setters:"InputSetter"}],snippet:{children:"组件文本内容示例",props:{is:"div"}}},{name:"slot",label:"插槽",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#slot",props:[{name:"name",label:"名称",defaultValue:"default",setters:"InputSetter"}],snippet:{children:"默认插槽内容"}}],J5=[...W5,{name:"Transition",label:"过渡效果",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transition",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"mode",label:"时序",defaultValue:"default",title:"控制离开/进入过渡的时序。",setters:"SelectSetter",options:["in-out","out-in","default"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"Transition"}},{name:"TransitionGroup",label:"过渡效果组",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transitiongroup",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"tag",label:"标签名",defaultValue:void 0,title:"如果未定义,则渲染为片段 (fragment)",setters:"InputSetter"},{name:"moveClass",label:"moveClass",defaultValue:void 0,title:"用于自定义过渡期间被应用的 CSS class。",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"TransitionGroup"}},{name:"KeepAlive",label:"缓存切换组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#keepalive",package:"vue",props:[{name:"include",label:"匹配包含",title:"如果指定,则只有与 `include` 名称, 匹配的组件才会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"exclude",label:"匹配排除",title:"任何名称与 `exclude` 匹配的组件都不会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"max",label:"最大缓存数",title:"最多可以缓存多少组件实例。",setters:["InputSetter"]}]},{name:"Teleport",label:"传送组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#teleport",package:"vue",props:[{name:"to",label:"目标容器",title:"指定目标容器,可以是选择器或实际元素",setters:["InputSetter"]},{name:"disabled",label:"禁用",title:"当值为 `true` 时,内容将保留在其原始位置, 而不是移动到目标容器中, 可以动态更改",setters:["BooleanSetter"]}]},{name:"Suspense",label:"异步依赖",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#suspense",package:"vue",props:[{name:"timeout",label:"timeout",setters:["InputSetter"]}]},{name:"RouterLink",label:"路由链接",categoryId:"components",doc:"https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html",package:"vue-router",props:[{name:"to",label:"to",setters:["InputSetter"]},{name:"replace",label:"replace",setters:["BooleanSetter"]}],snippet:{children:"RouterLink",props:{to:"/"}}}],q5=[{name:Di,version:"latest",label:"内置",library:Di,order:0,categories:U5,components:J5}],K5=D({name:"StringSetter",__name:"string",setup(n){return(e,t)=>(y(),V(d(tt),ve({clearable:""},e.$attrs),null,16))}}),G5=D({name:"BooleanSetter",__name:"boolean",setup(n){return(e,t)=>(y(),V(d(oo),ve(e.$attrs,{"model-value":!!e.$attrs.modelValue}),null,16,["model-value"]))}}),Y5="{{",X5="}}",Q5=D({name:"ExpressionSetter",__name:"expression",props:{modelValue:{},context:{}},emits:["change"],setup(n,{emit:e}){const t=(l="")=>({type:"JSExpression",value:Pe(l)?l.value:l}),r=n,i=e,o=l=>ze(l,r.context,!0),a=B(t(r.modelValue).value);se(()=>r.modelValue,l=>{a.value=t(l).value},{immediate:!0});const s=l=>{const u={type:"JSExpression",value:l};o(u)&&i("change",u)};return(l,u)=>(y(),V(d(tt),{class:"v-expression-setter",modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=c=>a.value=c),onChange:s},{prefix:S(()=>[ue(te(Y5))]),suffix:S(()=>[ue(te(X5))]),_:1},8,["modelValue"]))}}),Z5=D({name:"SelectSetter",__name:"select",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(ao),ve({clearable:""},t.$attrs),{default:S(()=>[(y(!0),M(ne,null,oe(e.options,i=>(y(),V(d(so),ve({key:i.label},i),null,16))),128))]),_:1},16))}}),ex=D({name:"NumberSetter",__name:"number",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>Pe(t.modelValue)?void 0:Number(t.modelValue||0)),o=a=>{r("change",a)};return(a,s)=>(y(),V(d(Ds),ve({class:"v-number-setter","controls-position":"right","model-value":i.value},a.$attrs,{onChange:o}),null,16,["model-value"]))}}),tx=D({name:"ColorSetter",__name:"color",setup(n){return(e,t)=>(y(),V(d(Td),wt(Dt(e.$attrs)),null,16))}}),nx=D({name:"JsonSetter",__name:"json",props:{modelValue:{default:void 0},type:{default:"JSON"}},emits:["change"],setup(n,{emit:e}){const t=n,r=B(),i=B(typeof t.modelValue=="object"?JSON.stringify(t.modelValue,null,2):void 0),o=O(()=>!!i.value),a=B(!1),s=e,l=m=>{let h=!0;try{const f=JSON.parse(m);if(t.type==="Array"&&!Array.isArray(f))throw new Error(`"${m}" is not a Array`);if(t.type==="Object"&&!xo(f))throw new Error(`"${m}" is not a PlainObject`);if(typeof f!="object")throw new Error(`"${m}" is not a ${t.type}`)}catch(f){h=!1,Yt.error({title:"代码错误",message:f?.message||f})}return h},u=()=>{const m=r.value?.getEditor();if(m){const h=m.getValue();l(h)&&(i.value=h,s("change",JSON.parse(h)),a.value=!1)}},c=()=>{i.value="",s("change",void 0),a.value=!1},p=()=>{a.value=!0};return(m,h)=>(y(),M("div",{class:de(["v-json-setter",{"is-active":o.value}])},[w(d(tt),ve({readonly:"",onFocus:p,"model-value":t.type,"suffix-icon":d(po)},m.$attrs),null,16,["model-value","suffix-icon"]),a.value?(y(),V(d(Rt),{key:0,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=f=>a.value=f),title:t.type,width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:u,onClear:c},{default:S(()=>[w(d(Ae),{ref_key:"codeEditor",ref:r,height:"100%",lang:"json",dark:"","model-value":i.value},null,8,["model-value"])]),_:1},8,["modelValue","title"])):I("",!0)],2))}}),rx=D({name:"FunctionSetter",__name:"function",props:{modelValue:{default:()=>({type:"JSFunction",value:""})}},emits:["change"],setup(n,{emit:e}){const t=n,r=B(),i=B(t.modelValue.value),o=B(!1),a=O(()=>!!i.value),s=e,l=()=>{const p=r.value?.getEditor();if(p){const m=p.getValue(),h={type:"JSFunction",value:m};ze(h,{})&&(i.value=m,s("change",h),o.value=!1)}},u=()=>{i.value="",s("change",void 0),o.value=!1},c=()=>{o.value=!0};return(p,m)=>(y(),M("div",{class:de(["v-function-setter",{"is-active":a.value}])},[w(d(tt),ve({readonly:"",onFocus:c,"model-value":"JSFunction","suffix-icon":d(po)},p.$attrs),null,16,["suffix-icon"]),o.value?(y(),V(d(Rt),{key:0,modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=h=>o.value=h),title:"JSFunction",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:l,onClear:u},{default:S(()=>[w(d(Ae),{ref_key:"codeEditor",ref:r,height:"100%","model-value":i.value,dark:""},null,8,["model-value"])]),_:1},8,["modelValue"])):I("",!0)],2))}}),ix=D({name:"RadioSetter",__name:"radio",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(lo),ve({class:"v-radio-setter",size:"small"},t.$attrs),{default:S(()=>[(y(!0),M(ne,null,oe(e.options,i=>(y(),V(d(Dn),{label:i.label,value:i.value,title:i.label},{default:S(()=>[i.svg?(y(),V(d(rt),{key:0,src:i.svg},null,8,["src"])):(y(),M(ne,{key:1},[ue(te(i.label),1)],64))]),_:2},1032,["label","value","title"]))),256))]),_:1},16))}}),ox=["label","title","onClick"],ax=D({name:"TagSetter",__name:"tag",props:{options:{default:()=>[]},modelValue:{}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,i=o=>{o.value===t.modelValue?(r("update:modelValue",void 0),r("change",void 0)):(r("update:modelValue",o.value),r("change",o.value))};return(o,a)=>(y(),M("div",ve({class:"v-tag-setter",size:"small"},o.$attrs),[(y(!0),M(ne,null,oe(t.options,s=>(y(),M("span",{label:s.value,title:s.label,class:de({"is-active":t.modelValue===s.value}),onClick:l=>i(s)},[s.svg?(y(),V(d(rt),{key:0,src:s.svg,size:16},null,8,["src"])):(y(),M(ne,{key:1},[ue(te(s.label),1)],64))],10,ox))),256))],16))}}),Qc=D({name:"SizeSetter",__name:"size",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B(!0),o=O(()=>i.value?"px":void 0),a=B(t.modelValue),s=l=>{i.value=!!Number(l)};return se(a,l=>{r("change",l)}),se(()=>t.modelValue,l=>{l&&(i.value=l.endsWith("px"),a.value=l)},{immediate:!0}),(l,u)=>(y(),V(d(Oc),ve({clearable:"",unit:o.value,"with-unit":!!o.value,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=c=>a.value=c),onChange:s},l.$attrs),null,16,["unit","with-unit","modelValue"]))}}),sx={class:"v-section-setter"},lx=D({name:"SectionSetter",__name:"section",props:{modelValue:{},sections:{default:4}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B(new Array(t.sections).fill(""));se(()=>t.modelValue,a=>{i.value=a?a.split(" "):new Array(t.sections).fill("")},{immediate:!0});const o=()=>{r("change",i.value.join(" ").trim())};return(a,s)=>(y(),M("div",sx,[(y(!0),M(ne,null,oe(t.sections,l=>(y(),V(Qc,{name:l-1,modelValue:i.value[l-1],"onUpdate:modelValue":u=>i.value[l-1]=u,onChange:o,class:"v-section-setter__item"},null,8,["name","modelValue","onUpdate:modelValue"]))),256))]))}}),ux={class:"v-slider-setter"},cx=D({name:"SliderSetter",__name:"slider",props:{modelValue:{default:void 0}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B();se(()=>t.modelValue,a=>{i.value=a},{immediate:!0}),se(i,a=>{r("change",a),r("update:modelValue",a)});const o=()=>{i.value=void 0,r("change",void 0),r("update:modelValue",void 0)};return(a,s)=>(y(),M("div",ux,[w(d(Is),ve({size:"small"},a.$attrs,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l)}),null,16,["modelValue"]),w(d(rt),{onClick:o,class:"v-slider-setter__close",size:16,icon:d(Md)},null,8,["icon"])]))}}),$e={StringSetter:K5,BooleanSetter:G5,ExpressionSetter:Q5,SelectSetter:Z5,NumberSetter:ex,ColorSetter:tx,IconSetter:qc,JsonSetter:nx,FunctionSetter:rx,RadioSetter:ix,TagSetter:ax,SizeSetter:Qc,ImageSetter:Xc,SectionSetter:lx,SliderSetter:cx},dx={name:"StringSetter",component:$e.StringSetter,type:"String"},px=[{name:"InputSetter",component:$e.StringSetter,type:"String"},{name:"StringSetter",component:$e.StringSetter,type:"String"},{name:"BooleanSetter",component:$e.BooleanSetter,type:"Boolean"},{name:"ExpressionSetter",component:$e.ExpressionSetter,type:"Object"},{name:"SelectSetter",component:$e.SelectSetter,type:"String"},{name:"NumberSetter",component:$e.NumberSetter,type:"Number"},{name:"ColorSetter",component:$e.ColorSetter,type:"String"},{name:"IconSetter",component:$e.IconSetter,type:"String"},{name:"ObjectSetter",component:$e.JsonSetter,type:"Object",props:{type:"Object"}},{name:"ArraySetter",component:$e.JsonSetter,type:"Array",props:{type:"Array"}},{name:"JsonSetter",component:$e.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"JSONSetter",component:$e.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"FunctionSetter",component:$e.FunctionSetter,type:"Function"},{name:"RadioSetter",component:$e.RadioSetter,type:"String"},{name:"TagSetter",component:$e.TagSetter,type:"String"},{name:"SizeSetter",component:$e.SizeSetter,type:"String"},{name:"ImageSetter",component:$e.ImageSetter,type:"String"},{name:"SectionSetter",component:$e.SectionSetter,type:"String"},{name:"SliderSetter",component:$e.SliderSetter,type:"Number"},{name:"RangeSetter",component:$e.SliderSetter,type:"Array",props:{range:!0}}];class hx{widgets={};constructor(){this.widgets=this.createWidgets()}createWidgets(){const e={};for(const t of H5)e[t.name]=t;return e}register(e){this.widgets[e.name]=e}get(e){return this.widgets[e]}set(e,t){const r=this.widgets[e];if(!r){Ge.warn(`widget '${e}' is not found`);return}dt(r,t),t.component&&(r.component=t.component)}getWidgets(e,t){const r=Object.values(this.widgets);return e?r.filter(i=>i.region===e&&(!t||t&&t===i.group)):r}}const Zc=new hx;class mx{constructor(e=L5){this.deps=e}get(){return this.deps}set(e){this.deps=e}add(e){const t=this.deps.find(r=>r.package===e.package);t?Object.assign(t,e):this.deps.push(e)}merge(e){const t=[];for(const r of this.deps){const i=e.find(o=>o.package===r.package);t.push({...r,...i})}for(const r of e)this.deps.find(i=>i.package===r.package)||t.push(r);return t}remove(e){const t=this.deps.findIndex(r=>r.package===e);t>-1&&this.deps.splice(t,1)}}const fx=new mx;class vx{setters={};defaultSetter=dx;constructor(){this.setters=this.createSetters()}createSetters(){const e={};for(const t of px)e[t.name]=t;return e}register(e){this.setters[e.name]=e}get(e){return this.setters[e]}set(e,t){const r=this.setters[e];if(!r){Ge.warn(`setter '${e}' is not found`);return}dt(r,t),t.component&&(r.component=t.component)}getByType(e){return Object.values(this.setters).filter(t=>t.type===e).map(t=>t.name)}}const kr=new vx;function gx(n){return new Promise((e,t)=>{const r=Bs(M4,{slots:n,onClose:()=>{r.unmount(),t(null)},onSubmit:i=>{r.unmount(),e(i)}});r.mount(document.createElement("div"))})}class yx{constructor(e,t,r){this.engine=e,this.contentWindow=t,this.dependencies=r,this.document=this.contentWindow.document,this.bindEvents(t,this.document)}proxied={};document=null;hover=bi(null);dropping=bi(null);selected=B(null);dragging=null;bind(e,t){let r=this.proxied[t];return r||(r=e.bind(this),this.proxied[t]=r),r}bindEvents(e,t){t.addEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.addEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.addEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.addEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.addEventListener("drop",this.bind(this.onDrop,"onDrop")),t.addEventListener("click",this.bind(this.onSelected,"onSelected")),W.on(Un,this.bind(this.onActiveChange,"onActiveChange")),W.on(Se,this.bind(this.onViewChange,"onViewChange"))}unbindEvents(e,t){t.removeEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.removeEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.removeEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.removeEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.removeEventListener("drop",this.bind(this.onDrop,"onDrop")),t.removeEventListener("click",this.bind(this.onSelected,"onSelected")),W.off(Un,this.bind(this.onActiveChange,"onActiveChange")),W.off(Se,this.bind(this.onViewChange,"onViewChange"))}onMouseOver(e){const t=this.getHelper(e);t?.model.id!==this.selected.value?.model.id&&(this.hover.value=t)}onViewChange(){this.updateRect()}onLeave(e){this.hover.value=null,this.dropping.value=null}onActiveChange(){this.hover.value=null,this.dropping.value=null,this.selected.value=null}async getDropSlot(e){if(!e)return;const{engine:t}=this,r=t.assets,i=r.componentMap,o=await r.getBlockMaterial(e.from)||i.get(e.name);if(!o?.slots)return;const a=(o?.slots||["default"]).map(l=>typeof l=="string"?{name:l,params:[]}:{name:l.name,params:l.params||[]});if(a.length===0)return;if(a.length===1)return a[0];const s=await gx(a).catch(()=>null);if(!(s&&s.name==="default"&&(!s.params||s.params?.length===0)))return s}async onDrop(e){e.preventDefault();const{engine:t,dragging:r,dropping:i}=this,o=t.current.value,a=this.getHelper(e);if(!o||!r||!i.value||!a)return;const s=a.model,l=i.value.type;if(!await this.allowDrop(s,l))return;const u=this.createNodeDsl(r),c=new Ar(u);if(je(s))o.addNode(c,void 0,l);else{const p=await this.getDropSlot(l==="inner"?s:s.parent);if(p===null){this.dropping.value=null;return}c.slot=p,o.addNode(c,s,l)}this.dropping.value=null,t.assets.clearCaches()}onSelected(e){this.setHover(null),this.selected.value=this.getHelper(e)}async onDragOver(e){const t=this.getHelper(e);if(!t)return;const{model:r,type:i}=t;r&&await this.allowDrop(r,i)?(e.preventDefault(),this.dropping.value=t):this.dropping.value=null}isVtjElement(e){return!!e.__vtj__&&!!e.__context__}findVtjElement(e){return e.find(t=>this.isVtjElement(t))}getNodeByElement(e){const t=e.__vtj__??"";return Ar.nodes[t]||null}getDropType(e,t,r){const{left:i,top:o,width:a,height:s}=e;return t>=i&&t<=i+a*.2?"left":t>=i+a*.8&&t<=i+a?"right":r>=o&&r<=o+s*.2?"top":r>=o+s*.8&&r<=o+s?"bottom":"inner"}getNodePath(e=[]){const t=e.filter(i=>this.isVtjElement(i)),r=this.engine.current.value;return[...t.map(i=>this.getNodeByElement(i)).filter(i=>!!i),r]}setDslFrom(e){const t=this.engine.assets.componentMap.get(e.name);if(e.from=e.from||t?.package,Array.isArray(e.children))for(const r of e.children)this.setDslFrom(r)}createNodeDsl(e){const{name:t,snippet:r={},from:i}=e,o={...r,name:t,from:i||e.package};return this.setDslFrom(o),o}getElmenetByModel(e){return!this.document||!e?null:je(e)?this.document.body:Array.from(this.document.querySelectorAll("*")).find(t=>t.__vtj__===e.id)}findPathByNode(e){const t=[e];let r=e;for(;r.parent&&r.parent!==r;)r=r.parent,r!==e&&t.unshift(r);const i=this.engine.current.value;return t.unshift(i),t.reverse()}getHelper(e){const t=e.composedPath()||[],r=this.findVtjElement(t)||this.document?.body;if(!r)return null;const i=this.getNodeByElement(r)||this.engine.current.value;if(!i)return null;const o=r.getBoundingClientRect(),a=this.getDropType(o,e.clientX,e.clientY),s=this.getNodePath(t);return{el:r,model:i,rect:o,type:a,path:s}}cleanHelper(){this.setSelected(null),this.setHover(null),this.setDragging(null),this.setDropping(null)}async updateRect(){await cu(100);const e=d(this.selected),t=d(this.hover);if(e){const r=e.el.getBoundingClientRect();this.selected.value={...e,rect:r}}if(t){const r=t.el.getBoundingClientRect();this.hover.value={...t,rect:r}}}setDragging(e){this.dragging=e}async setHover(e){if(await ct(),e){const t=this.getElmenetByModel(e);if(!t)return;const r=t.getBoundingClientRect(),i=je(e)?[]:this.findPathByNode(e);this.hover.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.hover.value=null}async setSelected(e){if(await ct(),e){const t=this.getElmenetByModel(e)||this.document?.createElement("span");if(!t)return;const r=t.getBoundingClientRect(),i=je(e)?[]:this.findPathByNode(e);this.selected.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.selected.value=null}async setDropping(e,t="inner"){if(await ct(),e){const r=this.getElmenetByModel(e);if(!r)return;const i=r.getBoundingClientRect(),o=je(e)?[]:this.findPathByNode(e);this.dropping.value={el:r,model:e,rect:i,type:t,path:o}}else this.dropping.value=null}async allowDrop(e,t="inner"){const{dragging:r,engine:i}=this,o=i.current.value;if(!r||!o)return!1;if(je(e))return!0;const a=i.assets.componentMap,s=t!=="inner"&&e.parent||e,l=await i.assets.getBlockMaterial(s.from)||a.get(s.name);if(!l)return!1;const{parentIncludes:u=!0,name:c}=r,{childIncludes:p=!0}=l,m=u===!0||Array.isArray(u)&&u.includes(s.name),h=p===!0||Array.isArray(p)&&p.includes(c);return m&&h}dispose(){const{contentWindow:e,document:t}=this;this.setSelected(null),this.setHover(null),this.setDragging(null),e&&t&&this.unbindEvents(e,t),this.document=null}}class bx{constructor(e,t,r=null){this.env=e,this.service=t,this.designer=r,this.nodeChange=this.__onNodeChange.bind(this),this.blockChange=this.__onBlockChange.bind(this)}app=null;dsl=null;nodeChange;blockChange;context=null;install(e){const{library:t,globals:r,VueRouter:i}=this.env;if(i){const a=i.createRouter({history:i.createWebHashHistory(),routes:[]});e.use(a)}const o=Object.values(t);Object.assign(e.config.globalProperties,r),e.config.errorHandler=(a,s,l)=>{const u=s?.$options.name,c=a?.message||a?.msg||"未知错误",p=`[ ${u} ] ${c}`;console.error({err:a,instance:s,info:l}),Yt.error({title:"运行错误",message:p})},o.forEach(a=>{(typeof a=="function"||typeof a.install=="function")&&e?.use(a)})}render(e){const{window:t,container:r,Vue:i,components:o,library:a,apis:s}=this.env,l=t.document.createElement("div");l.id="app",r.appendChild(l),this.dsl=i.reactive(e.toDsl());const u=Go({getDsl:async m=>await this.service.getFile(m)||null,options:{mode:Je.Design,Vue:i,components:o,libs:a,apis:s,window:t}}),{renderer:c,context:p}=Ko({Vue:i,mode:Je.Design,dsl:this.dsl,components:o,libs:a,apis:s,loader:u,window:t});this.app=i.createApp(c),this.install(this.app);try{this.app.mount(l)}catch(m){Te(m.message||"未知错误","运行时错误"),console.error(m)}this.context=p,W.on(Se,this.nodeChange),W.on(ge,this.blockChange)}dispose(){if(this.app){this.app.unmount();const e=this.app._container;e&&e.parentNode&&(e.parentNode.removeChild(e),this.app._container=null),this.app=null}this.dsl=null,this.context=null,W.off(Se,this.nodeChange),W.off(ge,this.blockChange)}updateChild(e,t){const r=t.children||t.nodes||[];if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];if(o.id===e.id){r.splice(i,1,e);return}else this.updateChild(e,o)}}__onNodeChange(e){this.dsl&&this.updateChild(e.toDsl(),this.dsl)}__onBlockChange(e){this.dispose(),this.render(e),this.designer?.selected.value&&this.designer.setSelected(e)}}class wx extends Eo{contentWindow=null;renderer=null;designer=bi(null);engine;materialPath;constructor(e){super();const{engine:t,materialPath:r}=e;this.engine=t,this.materialPath=r,se(this.engine.current,()=>{this.refresh()})}init(e,t,r,i){se([e,t,r,i],()=>{e.value&&t.value.length&&(this.resetReady(),this.setup(e.value,t.value),this.contentWindow&&(this.designer.value?.dispose(),this.designer.value=new yx(this.engine,this.contentWindow,t)))},{immediate:!0,deep:!0})}setup(e,t){const r=e.contentWindow;if(!r){Ge.warn("Simulator contentWindow is null");return}r.__simulator__=this;const i=r.document;this.contentWindow=r;const{scripts:o,css:a,materials:s,libraryExports:l,materialExports:u,materialMapLibrary:c}=Ic(t,this.materialPath);i.open(),i.write(`
166
+ l-${Xe},-${Qe}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>p("left"))},null,8,m5)])]),R("clipPath",f5,[R("rect",{x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,v5)]),R("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,g5),R("clipPath",y5,[R("rect",{x:"36",y:"24",width:d(r)-2*Xe+1,height:d(i)-2*Qe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,b5)]),R("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(r)-2*Xe+1,height:d(i)-2*Qe+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,w5)],8,c5)):I("",!0),R("div",{class:de(["spacing-edit padding-top",{"is-setting":e.styleJson.top}]),onClick:f[4]||(f[4]=v=>p("top"))},te(e.styleJson.top||c.value[0]||"-"),3),R("div",{class:de(["spacing-edit padding-right",{"is-setting":e.styleJson.right}]),onClick:f[5]||(f[5]=v=>p("right"))},te(e.styleJson.right||c.value[1]||"-"),3),R("div",{class:de(["spacing-edit padding-bottom",{"is-setting":e.styleJson.bottom}]),onClick:f[6]||(f[6]=v=>p("bottom"))},te(e.styleJson.bottom||c.value[2]||"-"),3),R("div",{class:de(["spacing-edit padding-left",{"is-setting":e.styleJson.left}]),onClick:f[7]||(f[7]=v=>p("left"))},te(e.styleJson.left||c.value[3]||"-"),3)],512),o.value?(y(),V(Gc,{key:0,auto:"",name:a.value,modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=v=>s.value=v),onClose:m,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):I("",!0)])]),_:1}),b(d(he),{name:"z-index",label:"层级",setters:{name:"NumberSetter"},variable:!1,value:e.styleJson["z-index"],onChange:e.setStyle},null,8,["value","onChange"])]),_:1})])]),_:1}))}}),_5=D({__name:"texting",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"font-size",label:"字号",setter:"SizeSetter"},{name:"font-family",label:"字体",setter:"SelectSetter",options:["Arial","Verdana","Georgia",'"Times New Roman"','"Microsoft YaHei"',"SimSun","SimHei","KaiTi","FangSong","STSong","STKaiti","STFangsong","STCaiyun","STHupo","STLiti","STXingkai","STXinwei","STXinwei","STZhongsong"]},{name:"line-height",label:"行高",setter:"SizeSetter"},{name:"font-weight",label:"字重",setter:"SelectSetter",options:[{label:"正常",value:"normal"},{label:"粗体",value:"bold"},{label:"更粗",value:"bolder"},{label:"更细",value:"lighter"}]}],r=[{label:"左",value:"left",svg:yb},{label:"中",value:"center",svg:vb},{label:"右",value:"right",svg:bb},{label:"两端",value:"justify",svg:gb}],i=[{label:"正常",value:"normal",svg:ab},{label:"斜体",value:"italic",svg:ob}],o=[{label:"无",value:"none",svg:Qu},{label:"下划线",value:"underline",svg:_b},{label:"删除线",value:"line-through",svg:xb},{label:"上划线",value:"overline",svg:wb}];return(a,s)=>(y(),V(d(me),{title:"文本",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[b(d(qe),{class:"v-style-widget__texting",size:"small","label-width":"60px",inline:""},{default:k(()=>[(y(),M(ne,null,oe(t,l=>b(d(he),{name:l.name,label:l.label,setters:{name:l.setter},options:l.options,variable:!1,value:e.styleJson[l.name],onChange:a.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1}),b(d(qe),{size:"small","label-width":"60px"},{default:k(()=>[b(d(he),{name:"color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson.color,onChange:a.setStyle},null,8,["value","onChange"]),b(d(he),{name:"text-align",label:"对齐",setters:{name:"TagSetter"},variable:!1,options:r,value:e.styleJson["text-align"],onChange:a.setStyle},null,8,["value","onChange"]),b(d(he),{name:"font-style",label:"风格",setters:{name:"TagSetter"},variable:!1,options:i,value:e.styleJson["font-style"],onChange:a.setStyle},null,8,["value","onChange"]),b(d(he),{name:"text-decoration",label:"修饰",setters:{name:"TagSetter"},variable:!1,options:o,value:e.styleJson["text-decoration"],onChange:a.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),S5=D({__name:"backgound",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=(l,u)=>{u?e.setStyle("background-image",`url(${u})`):e.setStyle("background-image",void 0)},r=l=>{const u=/^url\(([\w\W]+)\)$/;return l?.match(u)?.[1]},i=[{label:"重复",value:"repeat",svg:kb},{label:"水平重复",value:"repeat-x",svg:Sb},{label:"垂直重复",value:"repeat-y",svg:jb},{label:"不重复",value:"no-repeat",svg:Dy}],o=[{label:"固定",value:"fixed"},{label:"滚动",value:"scroll"}],a=[{label:"裁剪到填充",value:"padding-box"},{label:"裁剪到内容",value:"content-box"},{label:"裁剪到文字",value:"text"}],s=[{label:"自动",value:"auto"},{label:"长度",value:"length"},{label:"百分比",value:"percentage"},{label:"覆盖",value:"cover"},{label:"填充",value:"contain"}];return(l,u)=>(y(),V(d(me),{title:"背景",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[b(d(qe),{"label-width":"60px",size:"small"},{default:k(()=>[b(d(he),{name:"background-image",label:"图片",setters:{name:"ImageSetter"},variable:!1,value:r(e.styleJson["background-image"]),onChange:t},null,8,["value"]),b(d(he),{name:"background-color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson["background-color"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"background-repeat",label:"重复",setters:{name:"TagSetter"},variable:!1,value:e.styleJson["background-repeat"],options:i,onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"background-attachment",label:"固定",setters:{name:"RadioSetter"},variable:!1,value:e.styleJson["background-attachment"],options:o,onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"background-position",label:"位置",setters:{name:"SectionSetter",props:{sections:2}},variable:!1,value:e.styleJson["background-position"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"background-size",label:"大小",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-size"],options:s,onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"background-clip",label:"裁剪",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-clip"],options:a,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),k5=D({__name:"border",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=B("border"),r=[{label:"全边框",svg:Cy,value:"border"},{label:"左边框",svg:Ey,value:"border-left"},{label:"上边框",svg:zy,value:"border-top"},{label:"下边框",svg:$y,value:"border-bottom"},{label:"右边框",svg:Ay,value:"border-right"}],i=[{label:"无",value:"none",svg:Qu},{label:"实线",value:"solid",svg:By},{label:"虚线",value:"dashed",svg:Ty},{label:"点线",value:"dotted",svg:Oy}],o=(a,s)=>{t.value=s};return(a,s)=>(y(),V(d(me),{title:"边框",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[b(d(qe),{"label-width":"60px",size:"small"},{default:k(()=>[b(d(he),{name:"border-radius",label:"圆角",setters:{name:"SectionSetter",props:{sections:4}},variable:!1,value:e.styleJson["border-radius"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"borders",label:"边框",setters:{name:"TagSetter"},variable:!1,options:r,value:t.value,onChange:o},null,8,["value"]),t.value?(y(),M(ne,{key:0},[(y(),V(d(he),{name:`${t.value}-width`,key:`${t.value}-width`,label:"宽度",setters:{name:"SizeSetter"},variable:!1,value:e.styleJson[`${t.value}-width`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),V(d(he),{name:`${t.value}-style`,key:`${t.value}-style`,label:"样式",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson[`${t.value}-style`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),V(d(he),{name:`${t.value}-color`,key:`${t.value}-color`,label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson[`${t.value}-color`],onChange:e.setStyle},null,8,["name","value","onChange"]))],64)):I("",!0)]),_:1})]),_:1}))}}),j5=D({__name:"effect",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{label:"自动",value:"auto",svg:Iy},{label:"Pointer",value:"pointer",svg:Py},{label:"NotAllowed",value:"not-allowed",svg:My},{label:"无",value:"none",svg:Ry}],r=[{label:"Basic",value:"var(--el-box-shadow)"},{label:"Light",value:"var(--el-box-shadow-light)"},{label:"Lighter",value:"var(--el-box-shadow-lighter)"},{label:"Dark",value:"var(--el-box-shadow-dark)"}],i=(a,s)=>{e.setStyle("opacity",s!==void 0?(Number(s)||0)/100:void 0)},o=()=>Number(e.styleJson.opactiy||0)*100;return(a,s)=>(y(),V(d(me),{title:"效果",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:k(()=>[b(d(qe),{"label-width":"60px",size:"small"},{default:k(()=>[b(d(he),{name:"opacity",label:"透明度",setters:{name:"SliderSetter"},variable:!1,value:o(),onChange:i},null,8,["value"]),b(d(he),{name:"box-shadow",label:"阴影",setters:{name:"SelectSetter"},variable:!1,options:r,value:e.styleJson["box-shadow"],onChange:e.setStyle},null,8,["value","onChange"]),b(d(he),{name:"cursor",label:"光标",setters:{name:"TagSetter"},variable:!1,options:t,value:e.styleJson.cursor,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),V5=D({name:"StyleWidget",__name:"index",props:{isStyleCodeMode:{type:Boolean}},setup(n){const e=n,{selected:t}=gt(),r=O(()=>{const a=t.value?.model||null;return je(a)?null:a}),i=O(()=>r.value?.getPropValue("style")||{}),o=(a,s)=>{const l=r.value?.getPropValue("style")||{};s!==void 0?l[a]=s:delete l[a],r.value?.setProp("style",l)};return(a,s)=>e.isStyleCodeMode?(y(),V(j8,{key:0})):(y(),V(d(ae),{key:`widget-style-${r.value?.id}`,class:"v-style-widget",direction:"column",fit:""},{default:k(()=>[(y(),V(k8,{key:`Layout${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(a5,{key:`Spacing${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(s5,{key:`Sizing${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(x5,{key:`Positioning${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(_5,{key:`Texting${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(S5,{key:`Backgound${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(k5,{key:`Border${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"])),(y(),V(j5,{key:`Effect${r.value?.id}`,"style-json":i.value,setStyle:o},null,8,["style-json"]))]),_:1}))}}),C5=["src"],$5=D({name:"PreviewerWidget",__name:"index",props:{path:{type:Function}},setup(n,{expose:e}){const t=n,r=B(),i=B(Symbol()),{current:o,engine:a}=Ie(),{width:s,height:l}=mn(r),u=O(()=>o.value&&t.path?t.path(o.value):null),c=O(()=>a.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc");return e({refresh:()=>{i.value=Symbol()}}),(p,m)=>(y(),M("div",{ref_key:"container",ref:r,class:"v-previewer",key:i.value},[b(d(Kc),{mode:c.value,width:d(s),height:d(l)},{default:k(()=>[u.value?(y(),M("iframe",{key:0,ref:"iframe",frameborder:"0",src:u.value},null,8,C5)):I("",!0)]),_:1},8,["mode","width","height"])]))}}),E5=D({name:"NodePathWidget",inheritAttrs:!1,__name:"index",setup(n){const{selected:e,designer:t}=gt(),r=O(()=>(e.value?.path||[]).slice(0).reverse()),i=a=>{t.value?.setSelected(a)},o=a=>{t.value?.setHover(a)};return(a,s)=>d(e)?(y(),V(d(Sd),{key:0,class:"v-nodepath-widget","separator-icon":d(Ns)},{default:k(()=>[(y(!0),M(ne,null,oe(r.value,l=>(y(),V(d(_d),{onClick:u=>i(l),onMouseover:u=>o(l)},{default:k(()=>[ue(te(l.name),1)]),_:2},1032,["onClick","onMouseover"]))),256))]),_:1},8,["separator-icon"])):I("",!0)}}),A5=D({name:"SchemaWidget",__name:"index",setup(n){const{current:e}=Ie(),t=B(),r=O(()=>JSON.stringify(e.value?.toDsl()||{},null,2)),i=O(()=>e.value?e.value.name:""),o=async()=>{const a=(t.value?.getEditor()).getValue();if(a&&await kn("手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"))try{const s=JSON.parse(a);e.value?.update(s),We("保存成功")}catch(s){Te(s?.message)}};return(a,s)=>(y(),V(d(me),{class:"v-schema-widget",title:i.value,subtitle:"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",size:"small",fit:"",save:"",onSave:o},{default:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"json",dark:""},null,8,["model-value"])]),_:1},8,["title"]))}}),T5=D({name:"SchemaWidget",__name:"index",setup(n){const{current:e,engine:t}=Ie(),r=B(),i=B(""),o=O(()=>e.value?`$vtj/vue/${e.value.id}.vue`:""),a=O(()=>e.value?e.value.name:"");return se(e,async s=>{const l=t.project.value;l&&s?i.value=await t.service.genVueContent(l.toDsl(),s.toDsl()):i.value=""},{immediate:!0,deep:!0}),(s,l)=>(y(),V(d(me),{class:"v-raw-widget",title:a.value,subtitle:o.value,size:"small",fit:""},{default:k(()=>[b(d(Ae),{ref_key:"editorRef",ref:r,"model-value":i.value,height:"100%",lang:"html",dark:"",readonly:""},null,8,["model-value"])]),_:1},8,["title","subtitle"]))}}),O5=["src"],B5=D({name:"DocsWidget",__name:"index",props:{url:{default:"https://newgateway.gitee.io/vtj/help/index.html"}},setup(n){const e=n,t=B();let r=null;eo(()=>{r||(r=Rs.service({target:t.value?.$el}))}),to(()=>{i(),r=null});const i=()=>{r?.close()};return(o,a)=>(y(),V(d(me),{class:"v-docs-widget",size:"small",fit:"",body:{padding:!1},header:!1,ref_key:"panel",ref:t},{default:k(()=>[R("iframe",{ref:"frame",src:e.url,onLoad:i},null,40,O5)]),_:1},512))}}),Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAEACAYAAADCyK/GAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfWmgXFWZ7Vq7bgKCYCvdiGmgAbEVxREEobsDoZFBBYJQdSohARQIIi0CIhigNWmRgKiAAyBDEAO5deo6MDWgoAR4NpOtgiL6WhRlVhsHJknu2eu9UzdIxnur6oy7zj5/s/f61re+fVfqDPvbhL+8Aq4qUNdkGPwbpf1BvB3AwwAeEngdgOsR8ieupuZ556MA8wnjo3gFUlbgvdqUk3ERpL3GQf4NyeusxXV47rHv4Jopz6bMwsM5roA3QMcLWEn6db2UBrcCemuP+X+78+vQ4kaM8Kc9zvXDB1ABb4ADWNRBT8k0o9Mlzk2Y5y8oXWeN+TYmYQkW8ZmEeH66gwp4A3SwaJWm3NQWlH6VsgZR/MxQ0LcAs8Q/O0xZ3RLDeQMscXE8tTUoEIy+jzALM9bmPoI3WEW34C+1JbiaT2Ucz8MXpIA3wIKE92H7U8AEukzQwf3N7mvWc2O/DrkEBrdgmPf2heInlVIBb4ClLIsntUYF6qrRdG5/NytQoR9SWmKNWYIIt2CEfyqQiw+dUAFvgAkF9NNzVKCxbHeydmOOEScKFZvfzZ1fh3bZLRiZ/KOJJvh/L5cC3gDLVQ/PZhwFTKDTBJ1SYpG+LvJctHhbiTl6aiso4A3QLwdnFGBgvwdg57ITFjQXYe2MsvP0/ABvgH4VuKFAXa+l0c/cIAsIPAQhv+oK36ry9AZY1cq7lnegIwld4A5t3qeQ27rDt5pMvQFWs+7OZW2CqCUwcIm4JnEKLudjLnGuGldvgFWruIv57qP1uJ5+CeCVLtEXo2loTVriEueqcfUGWLWKu5hvQ+8i9Z+uUfcGWP6KeQMsf40qz9A0orNEnuCaEN4Ay18xb4Dlr1HlGTKwdwPY3jEhnlVo1neMc+XoegOsXMkdS7iuN9LIvf23wtfUNnXH1K4cXW+AlSu5Ywk3omMY765w7BL4foS81DHalaPrDbByJXcrYTbsN0Ds7xZrQIabYJhPuMa7any9AVat4i7lO11/w3U63V/+xiXaIP5bLePaM0unJE6LrDfAtJT0OOkrUB/dn8Z8I33gbBEpftK2+fFso3j0NBTwBpiGih4jEwVMIzpX5DGZgGcIKnAnhLwjwxAeOiUFvAGmJKSHSV8BBjZ++/vG9JEzRfyDQvOKTCN48NQU8AaYmpQeKFUFZmo7Rvp+qpg5gBG6woa1WTmE8iFSUMAbYAoieogMFGjqBEpnZYCcKaRoD0JraHGmQTx4agp4A0xNSg+UpgIMbLz3911pYuaBpef5clzJP+YRy8dIroA3wOQaeoS0FZitjblUvwawbtrQGeP9l0LzTxnH8PApKuANMEUxPVRKCjQVUGqlhJYbjMBTEfJTuQX0gRIr4A0wsYQeIG0FTFPnS/pA2rhZ44l8G1r8YdZxPH56CngDTE9Lj5SSAgxsfPbHa1OCyweGeEwtMyWfYD5KWgp4A0xLSY+TjgJN7UwpPv3NqYvgJTbk4U6R9mT9qXB+DZRMgaZOpuTcczSBByCkc9v2Slb93On4X4C5S+4DjqcAA3sjgN1dU0n2kfUwstlzrvGuOl9vgFVfAWXKv6nNKP2mTJS65HKzQrNbl2P9sBIp4A2wRMWoPJWmZlNy7jBxSR9Fu/aZytfPQQG8ATpYtEGlbIJoocD3uZafLN+AEf7UNd6eL/xLEL8IyqMAAxs3P92iPIy6YvKgQrNlVyP9oNIp4H8Blq4kFSXU1K6UbnYte0Ln2bB2tGu8Pd8xBbwB+pVQCgVMEM0X3OuiLPI9aNG5Q9tLUfQSkPAGWIIieAoAA90CaKpjWliFHAIox3h7ussV8Abol0LxCgR6NaFfFE+kVwa8XiGda9nVa5aDPN4b4CBX15XcgtHDCXORK3Rf4CnwQwj5Rdd4e74vKuAN0K+GwhUwgS4XdFDhRHokICzdGuG6D/Q4zQ8vkQLeAEtUjEpSqWsyTaf56SaO5f9zheZ1jnH2dFdRwBugXxLFKtBYtidZu6FYEr1Hp3S2bdeO732mn1EmBbwBlqkaFeRiAi0Q9DHXUpf4TrR5k2u8Pd+VFfAG6FdEoQowsPEB4jsWSqL34M8qNOv3Ps3PKJsC3gDLVpEq8Qm0DSEX99BeqdDsX6VSDWqu3gAHtbIu5BXog4S+5ALVFTlKnIM2nftsxzWd8+DrDTAPlX2MNSrAhh0BcaBr8shyU4zwEdd4e76rK+AN0K+KYhSo66U0ehjAy4oh0HfUexSat/Q9208slQLeAEtVjgqRaWgfUle7ljHJBbbFk13j7fmuWQFvgL2sjLpeAYNdAUwB7BBo7kKEezHCp3uB8WMB04g+J/I417QQo6loTbqtFLz31QZYb3Q7WLMdgGdA8xgsbsMInywFPwdIeAPstkiBDiIwF9AbVpnyG4GnI+SXu4Xy4+LuLzY+QNy1W8k/KDSvKEX9Ah1JKP4luvnKfHifgAUIeUUpeJachDfALgpkGtGnxPFve0i1basWdAHnh9T1FhrFBujURSi0Ya1ZNGnTjEKJjfF4UDrdtmunFM217PG9AU5QIRNE5wj8cDeFJLnQtnhYN2MrPSbQsYTOdk0DwR6CcKjQQ5t6OTeF0Lk2rB3rms558vUGOI7aJoguEnh4LwUh9AUb1o7pZU7VxrJhrwKxr2t5y/DvMMzfF8XbBPq8oA/1Ep/QxTasHdHLnCqN9Qa4pmrXVTMGXxU0s5/F4N8UjqPa/tqIkxV/Q7dOP9oWNoe4Sy1T2Ja9JHumCS62IZ1rN5ZHrb0Brqry+7UBn9EiAPslKYCgUxHWPpUEYyDnNnQAqa+5lpvEeWhzfiG8G9GpJD+ZLDav0mQchEV8JhnOYM32BrhiPevahKZjfrunUWaBxyLkuWlgDQqGaURfFOncKWoCd0DIu3OvQ7rPS2+S5WyM8PHc8yhpQG+ALxQmPpdCWgRipzRrJfJwtHhJmpguYzHQ/YBcayT6uELzqtx1b+gIUhemGpe4XeJshPSdrP2xmMuX1gy9ibbzy+9NqS625WACZyBkKwtspzBnagdGutMpzvEfCXmZbfHQXHk3R2dSJqtv+e6V4WwM895ccyphMP8LsL5sJ5r40wZtnWF9JNn90B66JsMY5YduRidRPKP8RFdmKMMAw2znxrupfSldmfEPlAeW3w7fnlteJQxUbQNs6l8JLIKUx+3NU7LRdIxM+m4J10EulNjU9ZD2yiVYikH0HDfE1XwqRci1Q8Vrcsz8XppDvMc7t8MV7mxdXQOM/5e1uhzEBjkstBdCPC6OTkdrsnO3gYk1mqVXcZkeTYyTP8BtCk0+B7YHegehb+Z8QNSfBXswwqGr8pe2+IjVNMCGZpC6HIApoAS/kOF0DPO+AmIXFzLbZ1qZ5SVoLsJa9rftgbYlOr/8Xp1ZMmsHjkR7MFpDiwuIXWjI6hlgOQ7hvkfkdLT4YKHVzzG4aepCSc7tSJDhmzN/WVDXljQd88vkJVy3ZRZ4BEJe3O34QRhXLQMMog8TPKckhfueLPfHCH9XEj6Z0mBgY7P/h0yDpA/+oEKzZfqwKyDur405Gd8EtHOmcboEr9q3q9UxwIbmkjq9y3WQ0zB+S8/ivbiGz+YUsJgwzWX/QtVuLSZ4/1EJXWjD2pH9I0wwc47W4x91JYh3ZhajD2CRp6DFkv2t9JFIF1MqYYAm0GmCytoa6BsKzQFd1MrdIU39O6X/cC0BgdMRMrOXAwxs/MJjehl1qUo7rYE3QBPobEGlbglEaJENaweX8Q8hDU4M7M1Ap5O2S1ekl/EluJDLsiBtmlokaVYW2GlhVqGd1kAboGlGF0p04sE7pQtsu3ZUWou3NDjN57ag1vlVafh0S4S8US3u0e3wXsaZILpAYHa31r2QmWDsoLfTGkwDnCdj7reLBPbVzirF9dMTFKHP2rB2Qk+Tyj64qUMpXVp2mqvyE3gcwvRfmJkg+qzA413SY5DbaQ2eAe6rDfiS5O2silqgJOfbFucVFT/tuCaILhPo3O297NLXYWTdn6ephwk0X9DH08TMD4tXKWQpn1cm0WCwDLD+9CY066XWziqJsEnmCjwRIc9KglGKufP+/y7a+zu7P15ZCj7dk/i5QpNux5qGTiR1ZvcUSjnyJoWmVG+sk6o0OAY4U1txtLO1LdV2VkkF7ne+wKMR8rx+55di3ti+1ptKwaUHEqkfa9CIjib5xR4olHdo3E5rEt85KI1VB8MA63ojTWdrW6Ff0qe9aiUeijYvSxs3LzwTRKcJLOvnR2uVQYZ7Y5g3pKLTDB1Cq6+kglUekHs1iXvhcj5WHkr9MXHfAMc2kMfmV8Qeyv5U72FW1t+i9UCl56EMdDugd/Q8scgJwrNqm/VToRBov+X7e1OBKxnIAzJ8D4b5s5Lx6omO2wY4dosVm98mPWXt1GDeKYupGOFSp2gH+kdCqb5EyCn/axWafRLHqmsyDW4FVNhBSolzmBjA+e5G7hpgfXRfGhObX57trCZeEhmMkDQf7Zpbb4abmkPpyxnIkSmkwA8i5PmJgzSieSQ/kRin/AB/luGBGOaN5ae6OkM3DTBQk1DcLryIdla515nkRbbFObkHThDQBNGwwGYCiEKmqsYtsJi/ThrcBNF5Agfvw/Y1CxO302qiNeTcaX/uGWBTh1GqVMseCP+ptnlP0j/K3ObX9RIaxSePbZhbzHQC3avQvDkNKFcPf0+Su8jD0OLCJBh5z3XLAJs6hlLljpkkNWxbNXd2tQTam9B1eS/mpPEInmVDnpgUJ55vAl0qKN+DlNIgnhDDtXZa7hhgI5pLVqNFz6prUOTxaPHshGszt+kmiD4t8KO5BUwpkBTthvakuHFD8qupD1BK/iwxOZPcEVxqp+WEAbr6PVlKK+/3Aqch5E9SwsschoH9EYBUbiUzJ/tigCcVmo1SixfozUTnI/C/TQ3TISBX2mmV3gBNEJ3d+Vld0UuMdkdr0necSX/sbIsfO8P3RaJfV2gOTJV3c9muVC2dX5SpEssHzIV2WqU2QNOILhTdaGeVxZLK7UCeNMkH0YcIfj5NyDywJHsY2kPpP8BvLt2eGro7jxzKGKPs7bRKaoCiCezlrrWzSnMBCnYGwqFWmph5YJW5y/F4+cvyVRhh/OY6/Wt/bcTJ+n36wG4glrmdVvkMsK6XLt/Xu58b5U2fpcCdEPKO9JEzRqzrZTT6LYDJGUdKF564Sy2T+Y4NBjb+vnDzdMm7glbOdlrlMsAZemXnsHJgd1fKmjJPyXJKZr9EUia7GlxjdDpp4nMunLpInmZb/Pc8SLOpJZB2ySNWCWOUrp1WeQwwbmcVm58Go51Vz4tPeExtM6XneSWaYAKdI+jDJaLUFRUZ7oxh3t7V4BQGmWb0FYmHpADlHkTcTqtlSnEEaCxeOQyw/vwbaSZfDmig2ln1sDrvVGjc6pqyhuQY2LgzyGt7yLv4oUX9x9PQJ0i5tb87vWqltuMmKaXiDbCpHSktBrBV0mRcnE8otGHNuT2zq2ld13Y0+r5rNSB4hQ1ZzOlsjdFDSDNovQK7XQIPaDLfXHRj1WINcIZ2o+2Yn2st07st8rjjKJ5p2/xYKmBFgzT0EVKfKZpGr/EFOwvhUNxYo5iroamkbikmeOFRH9ckvq3IxqrFGWBD+5Ad83tp4WUogIDIo9DiBQWEziQkm7oe0l6ZgGcIqhpfgcX8Q4YhJoaua2sa/c/EAwdyRNxOa8eiGqsWY4Bj7axi8ysmfsHrSLDvQjh0fcE00gu/vzbmZD2RHmBuSLcpNFNzizZeoLFPiH5R0a1zkTj6T2hNvjPvWuRvQM3RwyhTrXZWL1bVCtwWIe/Pu9CZxmuoQSrMNEYG4JL+He3aaRlA9w3JwMa7RrbvG8DhiTLcI+/GqvkaYCM6hmTl2lktX5OPynJrjPA5h9foGqmbRnS+yA+4lpfA7RDyB2XjbQLbFlAvG688+Ii2nmdj1fwMsKG5pE7PQ8QSxviBQrNdCXmlQsnRHQ4PKjRbpiJABiAm0JmCUulNmAG9TCHzbKyaiwGaQKcJcu54xFSq7Fo3516TrmsnGv1Xr9OKHk9yoW3xsKJ5jBs/iI4iHD8buk+BRR2PVi3zHpiZG6AJdLagSrazInShDWtH9rkG3JjWjE6m+Ck3yL7IUuKBaPPrpefdHN2XMleVnmcGBCXOQ5vzM4D+K2SmBmiaulDSEVkmUFZsiSejzQVl5ZcWLzbsEhCu7W0dleWGzjyPHTv7OretemmtjTRwKJ5t2zw+Daw1YWRkgKJp2CtEzsiKeJlxJc5Em8Nl5pgKt4O0KUf1UCpY+YKUblP+hOkHevXyRrMvmXDsgA2gtNC2a5k8rkjfAON2VtQVIPYdsDp0k04kRlPRmuTcM7FuklttTHN0NmW+2tfcAid1Xi6EtbMKpNBf6IO0IUc7vwRf3x+Aw7PEr6nN1N+Mp2uAs7Uxl3Y+cP5Xh6Xul/ojIndAi4/2C+DaPBNElwp07uQzmWXbYnid+1zT+wW+bOpaSO92lX/fvIUb1TZ79D1/DRPTM8C6tqTpmJ/zXU16F5jfV8i39z7P7Rls2icgbOxYFj9TaLZxjPNqdE0j+qLIo13Po2f+KbfTSscAxw7Cic3vjT0n5P6EaxWafdxPo8cMZmgXWi3pcVbhwwmdb8PaBwsnkgaBpk6idEYaUI5hpNZOK7kBVridVdkPfMlyUZum5kn6RJYxssAWuA9CXpsFdiGYDb2f1CWFxC426AMKzdZJKSQzwAq3s6L4Sdvmx5MWwNX5DGx8Zknm52ikrM8z2oYbYh5tyrjFwjVG9yHN1cWSKCT64wrNq5JE7t8AK9zOStDRCGvnJRHe6bnx8QWRHnAwh8F9XDF2J+beQVrJF9GfNZlT+m2s2p8BjrWzGvzv3FYvzqjE/dDmdcnr5jBCU4dRcq6jj8BjEPILDis/PvXOf0z4DqAtBjbHNScWaRI366exau8G6OjiT7wghIcl7okR/jQxluMAJtCwIOfa+AvcGiFd/OXa/YrZVxvwJYpvh3ftftJgjJThNr02Vu3NAIPowwTPGQy5esmCd2sypvX7M7uXSKUfO0eT+KfOId8blp7rygTvUWje4hjnvumaQJcJOrhvAEcniqPv6KWxavcG2IhOJt3b9J5CHa9RaKq4q2XN0gXag9C3UtA1VwhC59iwdlyuQQsOZoLoMwI/UjCN3MP30li1KwM0jehTIk/OPZOCA1K6yLZrcwqmUarwJogWCO4d5CQb7YGRSTeWSsw8yDR0Iqkz8whVphjdNlad0ABNEJ0j0LnDrpMWg+B/2JDOfeeWNO+J5jOw9wBw7fzmJxWajSbKbWD/PdD7CC0c2PzWklg3jVXHNUATRBcJPLxywkEfRFg7v2p5T5hvoG0IufgS6OsKzYET5jfIA4LR9xDmmkFOcU25TdRYda0GaJrRYqly7ayWSWygzSurtlC6yjfQUYSc+/5R5JFo8cKuchzkQTO1AyPFu2D+bpDTXDW38Rqrrm6As7U+n8diUFV78P+QwAZCVvFj0q7+HhjY+D+G/boaXKJBGuJmuIIPl4hScVTGmpa0q3by3Noaq65sgJ12VlgMqFrtrMi7FOG9GOEjxa3MkkeO+zwaPQlgUsmZrkxPuEtt49qWvWwljn/kLEUb0LuyDVQu9DU1Vn3RAMf+Z4h3d1RrsQhXq22c+1WT+9IK9B5Czj1DIniGDTk3d70cCGia0VckHuIA1fQortJYdcwAm9qC6izubdOLVH4kgl+2oXvn2RahrAmiswU6d7iVyKlo8bYiNHMhpmlEZ4k8wQWuqXFcobFqxwBNoEsFOdfZN4kgJOfbFuclwajSXAb25wD+0bGcH1Vo/t4xzvnTDfRRQp/OP3BxESWdhHbt00Rz9FDKXFoclfwjSzoK7doF+Ud2NGKgNxP6kWvs4ya9Nqwd5BrvQvg2dSilivmAnUkT6KuCZhciev5Bly5/01vJc1b7ljuIjiWY+SHVffNby0TJHor20GVp4w4sXn303aRpg1hvYHNcITECI2RgfwWgCu1zfiOygRbvrEJx08yRgb0BwJ5pYuaBJcuNMcLf5RFrYGIEejvR+Uxm8D1BeNgb4MCs3IwSqesVNPrfjNCzhL1VoXHtwPYs9egOu64dln8n+A/dTXB4VGyA/hbY4QLmQb0xegBpvpZHqDRjkJpvWzX/kqsXUcc+dRoBsG4v01wd27kFRgU3SvuXIN0vWdPU+ZI+0P2McoyU5Y4Y4V3lYOMAiwo2Ohbt+5Z/BmPbAlI/db3MZfefwXRXHQb6NaDNuxtdmlG/Umi2Kg2bshOpYK9Pgl+xIccMML4Y2LjJZaqnrpe97v5D6AkqVF+6A82Qcy+NSC60LR5W9vVXBn4m0DmCqtbu7ici90GLD660F9g0o7DTDaVKl98Kt/ZqN6KTSDp38LbIJloMq7SM+8nVBNGwQOfOdukn1xXm3CnLGRhh/PULVusGYwJdIOjIhEHcmu6bIayxXgzsLQCmOlbMZVofG2Ehn3KLd45sD9ZGnWYI0m45Ri0+lPBdrcMZWMTf/vXOd02sTCM6Q+RJxTPOlYFvh7Wi3HVtQqPHcq1AGsFW2OeZBtzAYdT1ehrFb/W3Gbjcxk/oGk3umN8zKw5be0fopk6i5NztT8Ki+oaoLwjY0AxSixPqmft0SSejXVuQe2AXAjaWTSNr1wNYxwW6aXEkOWxbnLkmvPHPBAmiIwlWbs+sfEt8uNoqSeBbEDI+t8RfKyrQVECpVTVRCF5sQx6xtrwnPBQJDTVIVe6BctUPRWJg4+ckjrVO5/0K+fqq/ZFPmG8jOobkuROOG7ABBM+14fgt3CY2wFgUR8+CTVrPyh6LWdc/08i5HnqEzrdh7YNJ6z5I802g0wSdMkg5dZMLxdNtmxPm3Z0BjplgvEm6il/WV+9g9Eb0CdK9XokS9/cHWr1oD5U91ZE8BS2e3pVRdjPor2Nm6jWM9H97mjMQg3m3JmPaqm+QBiK1NSTBpr0Twg6O5fe0LDfCCJc6xjt9uodqXT6Hr1ftzI9YyE7X8rD72/3ufwG+UKamplCq3uFBwsMS98QIXTwXt/s/spn6B0Z6sPsJZRnJaxSyaicZri5+XZvT6NsAXluWyuTFQ+ARCHlxL/F6N8AYfaZezkjxQ/KhXoINwNhRifuhzesGIJc1pzBDh9DqK67lJ/J4tNxr2pqqzmOPqb7n3Ml9KYggcSbajA916+nqzwDjEHtrHW6IhwA59qawJ33WOFjQ0Qhrzh0Q3k3mJlBLUNDN2DKNkeXrMML43JJqXk29m+ocel616xmRM9Hi1f0k3r8BLo/GwMbPBF/TT3CX51D8pG3z4y7nsBr3eTK8X38EsIFjef1IoXmrY5zTo9vQ+0ldkh6gI0jCb2U65vedfhknNsA4MAMbvx1+e78kXJ1H6GIb1tb6kaVzec3QbrTqezEVlS/Js22LxxcVv9C4jWgu2d0bz0J5ph/8VwJnIuQdSaBTMcDlJli5dlrLhb9WodknSRHKMtcEWiDoY2Xh0y0Pwb4L4VC8xatSlwmiLwms4nePP5HlTIzwx0kLnpoBxkQq2U6rUwF+XyGd/wXMQPcAelPSRZXrfOF/1TZ/m2vMEgRjw14PYq8SUMmbwp2qcSYW85dpBE7VADsmWMV2WmOVeETkDmjx0TQKkzuGq994Cl9T21Snm/nYIVW3O3hIffIlTXy388JjmE8kBxtDSN0AOyZYzXZaceqRGE1Fa9J/pVWg3HAcbXwh8GiEHMg38qvVPtA2hO6t4OdnsRTXLL/tfTrNv4lMDLBDsJrttDqp9/tNUpqF7RWLDXsVCOc+JBa5ZdzavNd8nRs/Q7vQaolzvFMgTKhlQzMToFKAWwkiOwOMwzj6qyINkSWejDbd6EvX2TqluIOyax+236nQvCONepUao6IdmcZuUXWJDWuHZ1WfbA0wZl3t4l1ow1r5jxcIRvcmjHO7WwieYUPOzeqPoxS4TZ1A6axScMmZBKXP23Yt0wObsjfAWLT66LtpTBW/Uo93Z/+n2uY9Oa+dnsKZIDpHYKYLrSdCXQ6WuBvavLnL4c4NM4HOE3SUc8RTIExqgW3VTk4BalyIfAxw7JfgNFLfzTqhkuL/QKHZrqTc4g/ZHdzNw0cUctOyapqUFwPdAGjPpDguzhd0KsLap/Lgnp8Bxtk0tSOlRF9u5yFKRjEeleXWGOFzGeH3Bxs8vy0xKfEHpf0F738WoStsWJvVP0JJZ9Y1mUb3Adi6pAwzpSXoOIS1czINsgJ4vgYYB56hN9HGH9xW8rICt0XI+0uTfaAPE8ptwaWVt2gPR2tosPa/NrUZ1WlFZtLSySUcyc5Be+iiPDnnb4BxdnVtTaPYBFx765hKbcq0dYuBdXILo5ZxCr5B947tXNsKai7dnhq6O5UF5h6IRDsLraHcTyEsxgDHboenUPhRFdtpxemLPAqtgk/cqz/5Mpq/ibu/uHWRt6jFXd0iPQ7bhg4gO2f1VvF6WrCzEA5dVUTyxRlgnO1YY9U7q9hOK06f4pm2zeKaDwTaj9CVRSy8JDFJzbet2rwkGKWZG+ijhD5dGj75EnlCimahPemmfMO+GK1YA4x5dBqrdk4gc76ZQD9FJBTasNbsZ27SOa7u2xb5T2jRve2GqxTMBNEFAsv/nWjShbbm+b+UjWZhZFK8r7mwq3gDXJ66q8+iUqpcITsaGNjfANgspRzygvmlQvPqvIJlFYcN+20Q78wKv9y4/LHM0lkYXife11zoVRoDjFWobjutznFWj6ltpuS2GgK9jdB/5xYvpUAEL7EhM9salRLNcWEY2F8AcN7E+9OKdwjPz0K47gP9zU93VqkMsGOC1W2nFacvWU7BCB9Pt8xrQHO0WYXAWQh5Reb6ZBFg7Jn3/2bVhSkLyqliCt/t9PJLsZ1VUn6lM8COCVa3nVanngJ3Strqe6KFwUC3AJo60biS/fsy1fhKLOYfSsZrYjr1pdvRDH00GtgFAAAOa0lEQVR/4oEDOyKTdlZJ1SqlAXaSCqJTCJ6WNEFX5wt2BsKhVib86/o7ms6xpq5d31Zo3NseFozWCdN2Tey0+GbZziopx/IaYJxZU8dR+lzSJF2dL2guwtoZqfNvjgaUycZcUyf7IqDAuQiZvh4ZckYzOolyjHOKemTdziop1XIbYOeXoI4kdEHSRF2dL0a7ozUp1ZPaTBBdJvBg1zSR5fYYoTsvbpqaQ+nLrumcFt882lkl5Vp+A+yY4OjBhLksabKOzv+9wGkI+ZO0+DOwvwPg2kFC9ys0r09Lg8xxmkvfSg3dCuClmccqYQCSC2yLmbezSpq6GwY4djt8IKWRpAm7OF/k8Wjx7FS4B3oH0TlUx6mL4Hk25NHOkG7qA5TOd4ZvikQFnoqQubSzSkrbHQOMM61oY1VSw7ZVm5m02PF804zmSfxEGlh5Yoiso0Vn9suaQJcKOjRPjcoQS+BxCOlMdyG3DDCucBUbq6bYVZqBvcvBbYdP6Vlugmv4bBn+yLvh4OohU93ktrYxIuegxVzbWSXhG891zwDHbofjxqr/pyrttEheZFuck7TYqOvvafRwYpz8Aa5RaJw6sc4E0XkCq9LO3oqcjRZzb2eVdCm6aYBx1p3GqripCu20JM1HO4XuJw0dQuorSRdN3vNTfQaaF/lGNI9071FDH/I8JXA2QhbSzqoPvitNcdcAO88EO41V49PMXpNUiPLO552ymIoRLk3K0dW91jLcFsOM28S7c3Va2+NWQDu6Q7pnpk9InIU2C2tn1TPjVSa4bYBjt8NTqE5Pu4FspyVwelr/uzKw8dm/jn2WwR8q5NuSLvRC5jvab7FLrX4pw1kYpnNfFKyYn/sGGGcztsk83tmwR5fFc2KYxEPRZjrfP9a1C42WOJH4CiQpnW3bteNd4/1XvjN0CK17jx0m0PvHy82v8HZWSdfFYBhgrELcWHUDXQ7iwKSilGG+wKMR8ry0uJiGzhB1Ulp4eeFIdl+0h67JK14mcRrR0SS/mAl2/qB3LO/IU4p2VknTHxwDXK6ECXSZIOe2ea1YSIEnIuRZSYu70k/9wMb/W78xTcwcsH4vy00wwiiHWNmGaOhEUmdmGyRz9O/IclYu7doyT2UswMAZYJyUy63GSc63LaZ73sUB2opDcu5/bIIjNmQjp7+FzMOYQPMFfTzzQFkEEK7WXzgLVzN+jjww10AaYMcEG9HnRB7nUqUIfdaGtRNS5+xoQwlBRyOspfYYIHVd+wA0QfRZgU490yQ5bF+HWZhH20fKpZ4ysAY49ktQpwk6pdQVWE6O0gW2Xcvkw1k2dRUkpz4kjmWR5Wswwrh9/EBdLt2hELzYhjxioAqwQjIDbYCdPB1orEpokQ1r2Ty3nKNJ/JPiLWSuHUJ/h0Kz06D+4ZmmFkmaVeb8CJ5rQx5bZo5JuQ2+AcYKlbux6jcUmgOSFnKt8xvL9iRrN2SGnxGwK+2UkqTPwH4TwPQkGFnNJbXAtmqlb2eVNP9qGGDnl2AZG6vyW3oW781yk79pROeKPCbpQsl7vgz3wDBvzDturvHmaD3+UVeW7XhMQacirDnRzippvapjgB0TLFVj1e/Jcn+MMG5OmtnFwP4PgK0zC5AN8CMKzabZQJcMdX9tzMn4JqCdy8BM0HEIa860s0qqWbUMcOx2uAyNVe8ROR0tPpi0gOPOn6HX0er+TGNkAE7qctuqzc4AupyQdW1J09nO+aYiCUp2DtpDTrWzSqpX9QwwVmyssWq84Ip4MfALGU7PZXN/EB1LpNRJOulK62G+yMPQ4sIeprg/NNC2RMcEizgw3dl2VkkLX00DjFXrNFZFmHM7rcfF0eloTb4zaeG6mc+G/XbZni91w1vk5mjxoW7GDtSYseMK4hcjm+SYl9PtrJLqVF0DHLsdjhurXp7TM7KnZKPpGJn03aRF62r+bK3PpXq6q7FlGiTcorbZtUyUcuXS1L8u726UR9eexyXOdrmdVdLaVNsAY/U6jVW1KOPnL5Lsfrlu6ne0FZPEeWhzftKF7fT8pvZdboJZ/n0+IMPZrrezSlrnLAVOyi2/+WONVeNfgpk0rxQ4AyFzPYjcBNGXhRTa6OdXhU4kibugzfg4yWpfzdGZlLkiIxHuXW5+zrezSqqPN8AXFBxrrBqb4LSkoq44X+ThaPGSNDG7wWLDPgTCsU9J+IBCuvbJTjfl6G9MQ0eQurC/yWuZRdyuaOnBGFl34LYY9qOTN8AVVYsbq1osgvTufsRcdY7AYxHy3DSwesIYu62/p6c5JRhM6BIb1g4vAZXyUAh0LKF0zoQGb9IyHIxv8LHyJFgsE2+Aq+qfUmPVQr+mD/QxQguKXVq9R1/eaDOr277eCZVlRiM6leQnE9GJ21lN4mxcwT8nwhmwyd4A11LQJI1Vi97HysDGz9D+xbG1ulRLn9kM39zgt47xzoWuCbRA0Mf6CUZq2EZm9kA0lu1HgHHmeAMcR5x+2hYR+oINa8XtvR07H+XJlNdJDnD8lkLulUMgZ0OYQJ8X9KFeEiB0sQ1rA9vOqhct1jTWG+AECvbSWJXkQtviYUmLkmh+UwHVOSDKqUvQXIS1M5wiXQBZE0QLBb6vm9CEzrVhbaDbWXWjw3hjvAF2oWA3jVVJtW2rFnQBl+mQJLfumRKbAFzkO9BiLjtkiswzjdjdnO9M6XTbrjnRDDgNTfrF8AbYrXKBDiIwF9AbVpnyG4GnI+SXu4XKchwD/Q7Q32YZIwPsnyo0q+qaQZgBghxr7xb369t85ax4n4AFCOlfJnVRbm+AXYj01yF1vQIG8TatKYAdAs1diHAvRliOLWfNpTtSQ3f0klIZxpL8km3x38rAxSkO+2oDrDe6HazZDsAzoHkMFrdhhA4+Ay5GeW+AxeieSVQTRPMFOnfqmGjraA19LRNRPKhXYBwFvAEO0PJgYO8GsL1TKQlPaRI39d+nOVW1gSHrDXBQSlnXJjRy7wv/+APdttlvUMrg83BLAW+AbtVr7Wybo4dS5lLX0hF4HEJWpgW7a/UZdL7eAAekwiawbQF119KRHX0rRib/yDXenu9gKOANcDDqCAY2fhO9vmPp/FCheZtjnD3dAVLAG+AgFLOuXWi0xLVUCH7OhvyIa7w938FRwBvgANTSBNGZAk90LRWB+yDkta7x9nwHRwFvgANQSwb2xwC2dSyV3+nP3AzX83nHeHu6A6SAN0DXi1nX5jT6tWtpEBixoWm4xtvzHSwFvAG6Xs+mPkDpfNfSEPhBhHSOt2s6e77jK+AN0PEVwkBXA9rHtTRkuA2G+TPXeHu+g6WAN0Cn6yky0DIANafSIG9Xizs7xdmTHUgFvAG6XNaG9iR1g2spkFpgW7W4lZO/vAKFKuANsFD5kwU3TZ0rqbj2+33Sl+EeGOaNfU7307wCqSngDTA1KfMHYqD/AeTWObrCw2qbzfJXy0f0CqyugDdAV1dF/S+vpZns3EsEgotsyINdld3zHiwFvAG6Ws9GdBzJz7lGX7KHoT200DXenu9gKuAN0NG6MrDxM7TdXaMvy60wwl+5xtvzHUwFvAG6WNcPaR3+Vn9xkPoShWaag7w95QFVwBugi4VtjE4nzTddoy7wEwj5H67x9nwHVwFvgA7W1jSiC0Ue4Rp1KdoF7Um3usbb8x1cBbwBOlhbBvZhAH/vGPUHFBq3PtlxTGBPt3cFvAH2rlmxMwK9mZBzLeQJXWzDmnO/Wostto+etQLeALNWOG38huaSOj1t2KzxRB6EFhdnHcfjewV6UcAbYC9qlWAsm/Y2CP9cAiq9UHhefG4rtNZ/tJdJfqxXIGsFvAFmrXCa+AdpQ47qT2lC5oT1LYVmr5xi+TBega4V8AbYtVQlGBioSWi4BEx6oiDyY2jxzJ4m+cFegRwU8AaYg8hphTCBvipodlp4eeGoxh2xmHflFc/H8Qp0q4A3wG6VKsE4Nu3vIWxUAio9UOB9CunagU095OeHuqyAN0BXqtfUjpTucIXuCzwpfcm2a//mGm/PtxoKeAN0pM4m0HxBH3eE7l9pSjwQbX7dNd6ebzUU8AboSJ0Z6G5A2ztC9wWaf5bllhjhk47x9nQrooA3QBcKPePpV9Ku97gLVFfmyKsUcrp7vD3jqijgDdCFSgej7yOMc01EBR2HsHaOCxJ7jtVUwBugA3Vnw46AONABqitRFPgWhLzHNd6eb3UU8AboQK3ZsM+AWM8BqitS/IFCs51jnD3diingDbDsBW8u25Wq3Vx2mqvyI/hZG/IE13h7vtVSwBtg2evtqAEKdh+EQ9eWXV7Pr9oKeAMse/3dNMDfaTK3xCI+U3Z5Pb9qK+ANsOz1r2syTacDzLplp/oCP1Jt26oFrvD1PKurgDdAB2pvgugywZ3DxEUehRYvcEBaT7HiCngDdGEBOHYbLMNtMMyfuSCt51htBbwBulL/RvQRkp8pPV3hdrXNzqXn6Ql6BQB4A3RpGTT1L5Q+DOCAstKmdLpt104pKz/PyyuwogLeAF1cD3W9BbTTCLMroGkgNihLGhLfiTZvKgsfz8MrMJ4C3gBdXx8z9XKMYjcDO03krgDeUGBKD+kJboUlHC2Qgw/tFehaAW+AXUvlyMCmtofFbhz7ZRgbYm6fzxBaZMPawY4o5Wl6BfwzwIFeA3W9DCba26A2TbEhAq/JMl+B70fIS7OM4bG9Amkq4H8Bpqlm2bECvQ2wexNmWufZIWDSpCxyS7T4YJqYHssrkKUC3gCzVLfM2PtqA6wb7W3IvQTGZrhFErqkFthW7eQkGH6uVyBvBbwB5q14WeONvVnem4wPMNfU3mjyh7KYihE+3ds8P9orUKwC3gCL1b+c0WdrfTyPvQzt3gL3BjBl7UR5k4j3o8WHypmMZ+UVGGf1enG8AhMqMENvQhT/OuReADYDsCnImyVcDYtLMMKlE2L4AV6BEirw/wBT9ySzG22TjAAAAABJRU5ErkJggg==",z5={class:"v-about-widget"},D5={class:"v-about-widget__logo"},I5=["src"],R5=R("div",{class:"v-about-widget__name"},"VTJ.PRO",-1),M5={class:"v-about-widget__version"},P5=D({name:"AboutWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",z5,[R("div",D5,[R("img",{src:d(Yc)},null,8,I5)]),R5,R("div",M5,"版本:"+te(d(Uw)),1)]))}}),N5={class:"v-image-setter__plus"},Xc=D({name:"ImageSetter",__name:"image",props:{modelValue:{},limit:{default:1}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B([]),o=O(()=>i.value.length<t.limit),a=l=>l.type.includes("image")?(K3(l).then(u=>{i.value=[{name:l.name,url:u}]}),!1):(Dr.error("只能上传图片"),!1),s=()=>{i.value=[]};return se(()=>t.modelValue,l=>{i.value=l?[{name:"",url:l}]:[]},{immediate:!0}),se(i,()=>{const l=i.value[0]?.url;r("change",l),r("update:modelValue",l)}),(l,u)=>(y(),V(d(Ad),ve({class:["v-image-setter",{"v-image-setter--addable":o.value}],"list-type":"picture-card",limit:1,action:"#","file-list":i.value,"onUpdate:fileList":u[0]||(u[0]=c=>i.value=c),"before-upload":a,"auto-upload":!0,"on-remove":s},l.$attrs),{default:k(()=>[R("span",N5,[b(d(rt),{icon:d(Rd)},null,8,["icon"])])]),_:1},16,["class","file-list"]))}}),F5=D({name:"ProjectConfigWidget",__name:"index",setup(n){const{project:e}=jn(),t=r=>{e.value?.setConfig(r)};return(r,i)=>(y(),V(d(me),{class:"v-project-config-widget",title:"项目配置"},{default:k(()=>[d(e)?(y(),V(d(Kr),{key:0,footer:!1,size:"small","label-position":"top",model:d(e).config,onChange:t},{default:k(()=>[b(d(ee),{label:"站点名称",name:"title"}),b(d(ee),{label:"Logo",name:"logo",editor:Xc}),b(d(ee),{label:"主题切换",name:"themeSwitchable",editor:"switch"}),b(d(ee),{label:"模拟数据",name:"mock",editor:"switch"})]),_:1},8,["model"])):I("",!0)]),_:1}))}}),ye={Logo:p4,EmptyWidget:m4,Switcher:g4,Toolbar:b4,Actions:_4,Pages:P4,Blocks:N4,Components:U4,Outline:W4,History:J4,Apis:e8,Deps:t8,Designer:i8,Scripts:c8,Properties:d8,Events:m8,Css:f8,Directives:v8,Defined:x8,DataSources:S8,Style:V5,Previewer:$5,NodePath:E5,Schema:A5,Raw:T5,Docs:B5,About:P5,ProjectConfig:F5},H5=[{name:"Logo",region:"Brand",component:ye.Logo},{name:"Switcher",region:"Brand",component:ye.Switcher},{name:"Toolbar",region:"Toolbar",component:ye.Toolbar},{name:"Actions",region:"Actions",component:ye.Actions},{name:"Pages",region:"Apps",component:ye.Pages,type:"app",openType:"panel",icon:qu,label:"页面管理"},{name:"Blocks",region:"Apps",component:ye.Blocks,type:"app",openType:"panel",icon:Yu,label:"区块管理"},{name:"Components",region:"Apps",component:ye.Components,type:"app",openType:"panel",icon:Xu,label:"组件库"},{name:"Outline",region:"Apps",component:ye.Outline,type:"app",openType:"panel",icon:Wu,label:"大纲树"},{name:"History",region:"Apps",component:ye.History,type:"app",openType:"panel",icon:Ku,label:"历史记录"},{name:"Apis",region:"Apps",component:ye.Apis,type:"app",openType:"panel",icon:Eu,label:"API管理"},{name:"Deps",region:"Apps",component:ye.Deps,type:"app",openType:"panel",icon:Nu,label:"依赖管理"},{name:"ProjectConfig",region:"Apps",component:ye.ProjectConfig,type:"app",openType:"panel",icon:zo,label:"项目配置"},{name:"About",region:"Apps",component:ye.About,type:"app",openType:"dialog",icon:Lu,label:"关于",props:{width:500,height:300}},{name:"Designer",region:"Workspace",component:ye.Designer,type:"tab",closable:!1,label:"设计视图"},{name:"Previewer",region:"Preview",component:ye.Previewer,type:"tab",closable:!1,label:"预览视图"},{name:"Schema",region:"Workspace",component:ye.Schema,type:"tab",closable:!0,label:"DSL视图"},{name:"Raw",region:"Workspace",component:ye.Raw,type:"tab",closable:!0,label:"源码视图"},{name:"Docs",region:"Workspace",component:ye.Docs,type:"tab",closable:!0,label:"帮助中心"},{name:"Scripts",region:"Settings",component:ye.Scripts,type:"tab",group:it.Block,label:"设置"},{name:"Css",region:"Settings",component:ye.Css,type:"tab",group:it.Block,label:"CSS"},{name:"DataSources",region:"Settings",component:ye.DataSources,type:"tab",group:it.Block,label:"数据源"},{name:"Defined",region:"Settings",component:ye.Defined,type:"tab",group:it.Block,label:"定义"},{name:"Properties",region:"Settings",component:ye.Properties,type:"tab",group:it.Node,label:"属性"},{name:"Style",region:"Settings",component:ye.Style,type:"tab",group:it.Node,label:"样式"},{name:"Events",region:"Settings",component:ye.Events,type:"tab",group:it.Node,label:"事件"},{name:"Directives",region:"Settings",component:ye.Directives,type:"tab",group:it.Node,label:"指令"},{name:"NodePath",region:"Status",component:ye.NodePath}],L5=[{package:"vue",version:"latest",library:"Vue",urls:["@vtj/materials/deps/vue/vue.global.prod.js"],assetsLibrary:fu,required:!0,official:!0,enabled:!0},{package:"vue-router",version:"latest",library:"VueRouter",urls:["@vtj/materials/deps/vue-router/vue-router.global.prod.js"],assetsLibrary:vu,required:!0,official:!0,enabled:!0},{package:"@vtj/utils",version:"latest",library:"VtjUtils",urls:["@vtj/materials/deps/@vtj/utils/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"@vtj/icons",version:"latest",library:"VtjIcons",urls:["@vtj/materials/deps/@vtj/icons/style.css","@vtj/materials/deps/@vtj/icons/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"element-plus",version:"latest",library:"ElementPlus",urls:["@vtj/materials/deps/element-plus/dark/css-vars.css","@vtj/materials/deps/element-plus/index.css","@vtj/materials/deps/element-plus/index.full.min.js"],assetsUrl:"@vtj/materials/assets/element/index.umd.js",assetsLibrary:"ElementPlusMaterial",required:!1,official:!0,enabled:!0},{package:"@vtj/ui",version:"latest",library:"VtjUI",urls:["@vtj/materials/deps/echarts/echarts.min.js","@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/ckeditor.js","@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/zh-cn.js","@vtj/materials/deps/@ckeditor/ckeditor5-vue/ckeditor.js","@vtj/materials/deps/@vtj/ui/style.css","@vtj/materials/deps/@vtj/ui/index.umd.js"],assetsUrl:"@vtj/materials/assets/ui/index.umd.js",assetsLibrary:"VtjUIMaterial",required:!1,official:!0,enabled:!0},{package:"ant-design-vue",version:"latest",library:"antd",urls:["@vtj/materials/deps/ant-design-vue/reset.css","@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/localeData.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekOfYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/advancedFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/quarterOfYear.js","@vtj/materials/deps/ant-design-vue/antd.min.js"],assetsUrl:"@vtj/materials/assets/antdv/index.umd.js",assetsLibrary:"AntdvMaterial",required:!1,official:!0,enabled:!1}],U5=[{id:"html",category:"HTML"},{id:"elements",category:"特殊元素"},{id:"components",category:"内置组件"}],W5=[{name:"div",label:"容器",categoryId:"html",snippet:{children:"容器文本内容示例"}},{name:"span",label:"内联",categoryId:"html",snippet:{children:"内联容器文本内容示例"}},{name:"a",label:"链接",categoryId:"html",props:[{name:"href",label:"href",setters:"InputSetter"}],snippet:{children:"链接文本内容示例",props:{href:"#"}}},{name:"img",label:"图片",categoryId:"html",childIncludes:!1,props:[{name:"src",label:"src",setters:"InputSetter"},{name:"width",label:"width",setters:"InputSetter"},{name:"height",label:"height",setters:"InputSetter"}],snippet:{props:{src:Yc,width:"200",height:"200"}}},{name:"h1",label:"大标题",categoryId:"html",snippet:{children:"标题"}},{name:"h2",label:"中标题",categoryId:"html",snippet:{children:"标题"}},{name:"h3",label:"小标题",categoryId:"html",snippet:{children:"标题"}},{name:"p",label:"段落",categoryId:"html",snippet:{children:"段落文本"}},{name:"component",label:"动态组件",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#component",props:[{name:"is",label:"组件名",setters:"InputSetter"}],snippet:{children:"组件文本内容示例",props:{is:"div"}}},{name:"slot",label:"插槽",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#slot",props:[{name:"name",label:"名称",defaultValue:"default",setters:"InputSetter"}],snippet:{children:"默认插槽内容"}}],J5=[...W5,{name:"Transition",label:"过渡效果",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transition",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"mode",label:"时序",defaultValue:"default",title:"控制离开/进入过渡的时序。",setters:"SelectSetter",options:["in-out","out-in","default"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"Transition"}},{name:"TransitionGroup",label:"过渡效果组",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transitiongroup",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"tag",label:"标签名",defaultValue:void 0,title:"如果未定义,则渲染为片段 (fragment)",setters:"InputSetter"},{name:"moveClass",label:"moveClass",defaultValue:void 0,title:"用于自定义过渡期间被应用的 CSS class。",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"TransitionGroup"}},{name:"KeepAlive",label:"缓存切换组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#keepalive",package:"vue",props:[{name:"include",label:"匹配包含",title:"如果指定,则只有与 `include` 名称, 匹配的组件才会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"exclude",label:"匹配排除",title:"任何名称与 `exclude` 匹配的组件都不会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"max",label:"最大缓存数",title:"最多可以缓存多少组件实例。",setters:["InputSetter"]}]},{name:"Teleport",label:"传送组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#teleport",package:"vue",props:[{name:"to",label:"目标容器",title:"指定目标容器,可以是选择器或实际元素",setters:["InputSetter"]},{name:"disabled",label:"禁用",title:"当值为 `true` 时,内容将保留在其原始位置, 而不是移动到目标容器中, 可以动态更改",setters:["BooleanSetter"]}]},{name:"Suspense",label:"异步依赖",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#suspense",package:"vue",props:[{name:"timeout",label:"timeout",setters:["InputSetter"]}]},{name:"RouterLink",label:"路由链接",categoryId:"components",doc:"https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html",package:"vue-router",props:[{name:"to",label:"to",setters:["InputSetter"]},{name:"replace",label:"replace",setters:["BooleanSetter"]}],snippet:{children:"RouterLink",props:{to:"/"}}}],q5=[{name:Di,version:"latest",label:"内置",library:Di,order:0,categories:U5,components:J5}],K5=D({name:"StringSetter",__name:"string",setup(n){return(e,t)=>(y(),V(d(tt),ve({clearable:""},e.$attrs),null,16))}}),G5=D({name:"BooleanSetter",__name:"boolean",setup(n){return(e,t)=>(y(),V(d(oo),ve(e.$attrs,{"model-value":!!e.$attrs.modelValue}),null,16,["model-value"]))}}),Y5="{{",X5="}}",Q5=D({name:"ExpressionSetter",__name:"expression",props:{modelValue:{},context:{}},emits:["change"],setup(n,{emit:e}){const t=(l="")=>({type:"JSExpression",value:Pe(l)?l.value:l}),r=n,i=e,o=l=>ze(l,r.context,!0),a=B(t(r.modelValue).value);se(()=>r.modelValue,l=>{a.value=t(l).value},{immediate:!0});const s=l=>{const u={type:"JSExpression",value:l};o(u)&&i("change",u)};return(l,u)=>(y(),V(d(tt),{class:"v-expression-setter",modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=c=>a.value=c),onChange:s},{prefix:k(()=>[ue(te(Y5))]),suffix:k(()=>[ue(te(X5))]),_:1},8,["modelValue"]))}}),Z5=D({name:"SelectSetter",__name:"select",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(ao),ve({clearable:""},t.$attrs),{default:k(()=>[(y(!0),M(ne,null,oe(e.options,i=>(y(),V(d(so),ve({key:i.label},i),null,16))),128))]),_:1},16))}}),ex=D({name:"NumberSetter",__name:"number",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=O(()=>Pe(t.modelValue)?void 0:Number(t.modelValue||0)),o=a=>{r("change",a)};return(a,s)=>(y(),V(d(Ds),ve({class:"v-number-setter","controls-position":"right","model-value":i.value},a.$attrs,{onChange:o}),null,16,["model-value"]))}}),tx=D({name:"ColorSetter",__name:"color",setup(n){return(e,t)=>(y(),V(d(Td),wt(Dt(e.$attrs)),null,16))}}),nx=D({name:"JsonSetter",__name:"json",props:{modelValue:{default:void 0},type:{default:"JSON"}},emits:["change"],setup(n,{emit:e}){const t=n,r=B(),i=B(typeof t.modelValue=="object"?JSON.stringify(t.modelValue,null,2):void 0),o=O(()=>!!i.value),a=B(!1),s=e,l=m=>{let h=!0;try{const f=JSON.parse(m);if(t.type==="Array"&&!Array.isArray(f))throw new Error(`"${m}" is not a Array`);if(t.type==="Object"&&!xo(f))throw new Error(`"${m}" is not a PlainObject`);if(typeof f!="object")throw new Error(`"${m}" is not a ${t.type}`)}catch(f){h=!1,Yt.error({title:"代码错误",message:f?.message||f})}return h},u=()=>{const m=r.value?.getEditor();if(m){const h=m.getValue();l(h)&&(i.value=h,s("change",JSON.parse(h)),a.value=!1)}},c=()=>{i.value="",s("change",void 0),a.value=!1},p=()=>{a.value=!0};return(m,h)=>(y(),M("div",{class:de(["v-json-setter",{"is-active":o.value}])},[b(d(tt),ve({readonly:"",onFocus:p,"model-value":t.type,"suffix-icon":d(po)},m.$attrs),null,16,["model-value","suffix-icon"]),a.value?(y(),V(d(Rt),{key:0,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=f=>a.value=f),title:t.type,width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:u,onClear:c},{default:k(()=>[b(d(Ae),{ref_key:"codeEditor",ref:r,height:"100%",lang:"json",dark:"","model-value":i.value},null,8,["model-value"])]),_:1},8,["modelValue","title"])):I("",!0)],2))}}),rx=D({name:"FunctionSetter",__name:"function",props:{modelValue:{default:()=>({type:"JSFunction",value:""})}},emits:["change"],setup(n,{emit:e}){const t=n,r=B(),i=B(t.modelValue.value),o=B(!1),a=O(()=>!!i.value),s=e,l=()=>{const p=r.value?.getEditor();if(p){const m=p.getValue(),h={type:"JSFunction",value:m};ze(h,{})&&(i.value=m,s("change",h),o.value=!1)}},u=()=>{i.value="",s("change",void 0),o.value=!1},c=()=>{o.value=!0};return(p,m)=>(y(),M("div",{class:de(["v-function-setter",{"is-active":a.value}])},[b(d(tt),ve({readonly:"",onFocus:c,"model-value":"JSFunction","suffix-icon":d(po)},p.$attrs),null,16,["suffix-icon"]),o.value?(y(),V(d(Rt),{key:0,modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=h=>o.value=h),title:"JSFunction",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:l,onClear:u},{default:k(()=>[b(d(Ae),{ref_key:"codeEditor",ref:r,height:"100%","model-value":i.value,dark:""},null,8,["model-value"])]),_:1},8,["modelValue"])):I("",!0)],2))}}),ix=D({name:"RadioSetter",__name:"radio",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(lo),ve({class:"v-radio-setter",size:"small"},t.$attrs),{default:k(()=>[(y(!0),M(ne,null,oe(e.options,i=>(y(),V(d(Dn),{label:i.label,value:i.value,title:i.label},{default:k(()=>[i.svg?(y(),V(d(rt),{key:0,src:i.svg},null,8,["src"])):(y(),M(ne,{key:1},[ue(te(i.label),1)],64))]),_:2},1032,["label","value","title"]))),256))]),_:1},16))}}),ox=["label","title","onClick"],ax=D({name:"TagSetter",__name:"tag",props:{options:{default:()=>[]},modelValue:{}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,i=o=>{o.value===t.modelValue?(r("update:modelValue",void 0),r("change",void 0)):(r("update:modelValue",o.value),r("change",o.value))};return(o,a)=>(y(),M("div",ve({class:"v-tag-setter",size:"small"},o.$attrs),[(y(!0),M(ne,null,oe(t.options,s=>(y(),M("span",{label:s.value,title:s.label,class:de({"is-active":t.modelValue===s.value}),onClick:l=>i(s)},[s.svg?(y(),V(d(rt),{key:0,src:s.svg,size:16},null,8,["src"])):(y(),M(ne,{key:1},[ue(te(s.label),1)],64))],10,ox))),256))],16))}}),Qc=D({name:"SizeSetter",__name:"size",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B(!0),o=O(()=>i.value?"px":void 0),a=B(t.modelValue),s=l=>{i.value=!!Number(l)};return se(a,l=>{r("change",l)}),se(()=>t.modelValue,l=>{l&&(i.value=l.endsWith("px"),a.value=l)},{immediate:!0}),(l,u)=>(y(),V(d(Oc),ve({clearable:"",unit:o.value,"with-unit":!!o.value,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=c=>a.value=c),onChange:s},l.$attrs),null,16,["unit","with-unit","modelValue"]))}}),sx={class:"v-section-setter"},lx=D({name:"SectionSetter",__name:"section",props:{modelValue:{},sections:{default:4}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=B(new Array(t.sections).fill(""));se(()=>t.modelValue,a=>{i.value=a?a.split(" "):new Array(t.sections).fill("")},{immediate:!0});const o=()=>{r("change",i.value.join(" ").trim())};return(a,s)=>(y(),M("div",sx,[(y(!0),M(ne,null,oe(t.sections,l=>(y(),V(Qc,{name:l-1,modelValue:i.value[l-1],"onUpdate:modelValue":u=>i.value[l-1]=u,onChange:o,class:"v-section-setter__item"},null,8,["name","modelValue","onUpdate:modelValue"]))),256))]))}}),ux={class:"v-slider-setter"},cx=D({name:"SliderSetter",__name:"slider",props:{modelValue:{default:void 0}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=B();se(()=>t.modelValue,a=>{i.value=a},{immediate:!0}),se(i,a=>{r("change",a),r("update:modelValue",a)});const o=()=>{i.value=void 0,r("change",void 0),r("update:modelValue",void 0)};return(a,s)=>(y(),M("div",ux,[b(d(Is),ve({size:"small"},a.$attrs,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l)}),null,16,["modelValue"]),b(d(rt),{onClick:o,class:"v-slider-setter__close",size:16,icon:d(Md)},null,8,["icon"])]))}}),$e={StringSetter:K5,BooleanSetter:G5,ExpressionSetter:Q5,SelectSetter:Z5,NumberSetter:ex,ColorSetter:tx,IconSetter:qc,JsonSetter:nx,FunctionSetter:rx,RadioSetter:ix,TagSetter:ax,SizeSetter:Qc,ImageSetter:Xc,SectionSetter:lx,SliderSetter:cx},dx={name:"StringSetter",component:$e.StringSetter,type:"String"},px=[{name:"InputSetter",component:$e.StringSetter,type:"String"},{name:"StringSetter",component:$e.StringSetter,type:"String"},{name:"BooleanSetter",component:$e.BooleanSetter,type:"Boolean"},{name:"ExpressionSetter",component:$e.ExpressionSetter,type:"Object"},{name:"SelectSetter",component:$e.SelectSetter,type:"String"},{name:"NumberSetter",component:$e.NumberSetter,type:"Number"},{name:"ColorSetter",component:$e.ColorSetter,type:"String"},{name:"IconSetter",component:$e.IconSetter,type:"String"},{name:"ObjectSetter",component:$e.JsonSetter,type:"Object",props:{type:"Object"}},{name:"ArraySetter",component:$e.JsonSetter,type:"Array",props:{type:"Array"}},{name:"JsonSetter",component:$e.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"JSONSetter",component:$e.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"FunctionSetter",component:$e.FunctionSetter,type:"Function"},{name:"RadioSetter",component:$e.RadioSetter,type:"String"},{name:"TagSetter",component:$e.TagSetter,type:"String"},{name:"SizeSetter",component:$e.SizeSetter,type:"String"},{name:"ImageSetter",component:$e.ImageSetter,type:"String"},{name:"SectionSetter",component:$e.SectionSetter,type:"String"},{name:"SliderSetter",component:$e.SliderSetter,type:"Number"},{name:"RangeSetter",component:$e.SliderSetter,type:"Array",props:{range:!0}}];class hx{widgets={};constructor(){this.widgets=this.createWidgets()}createWidgets(){const e={};for(const t of H5)e[t.name]=t;return e}register(e){this.widgets[e.name]=e}get(e){return this.widgets[e]}set(e,t){const r=this.widgets[e];if(!r){Ge.warn(`widget '${e}' is not found`);return}dt(r,t),t.component&&(r.component=t.component)}getWidgets(e,t){const r=Object.values(this.widgets);return e?r.filter(i=>i.region===e&&(!t||t&&t===i.group)):r}}const Zc=new hx;class mx{constructor(e=L5){this.deps=e}get(){return this.deps}set(e){this.deps=e}add(e){const t=this.deps.find(r=>r.package===e.package);t?Object.assign(t,e):this.deps.push(e)}merge(e){const t=[];for(const r of this.deps){const i=e.find(o=>o.package===r.package);t.push(i?{...i,...r,enabled:i.enabled}:r)}for(const r of e)this.deps.find(i=>i.package===r.package)||t.push(r);return t}remove(e){const t=this.deps.findIndex(r=>r.package===e);t>-1&&this.deps.splice(t,1)}}const fx=new mx;class vx{setters={};defaultSetter=dx;constructor(){this.setters=this.createSetters()}createSetters(){const e={};for(const t of px)e[t.name]=t;return e}register(e){this.setters[e.name]=e}get(e){return this.setters[e]}set(e,t){const r=this.setters[e];if(!r){Ge.warn(`setter '${e}' is not found`);return}dt(r,t),t.component&&(r.component=t.component)}getByType(e){return Object.values(this.setters).filter(t=>t.type===e).map(t=>t.name)}}const kr=new vx;function gx(n){return new Promise((e,t)=>{const r=Bs(M4,{slots:n,onClose:()=>{r.unmount(),t(null)},onSubmit:i=>{r.unmount(),e(i)}});r.mount(document.createElement("div"))})}class yx{constructor(e,t,r){this.engine=e,this.contentWindow=t,this.dependencies=r,this.document=this.contentWindow.document,this.bindEvents(t,this.document)}proxied={};document=null;hover=bi(null);dropping=bi(null);selected=B(null);dragging=null;bind(e,t){let r=this.proxied[t];return r||(r=e.bind(this),this.proxied[t]=r),r}bindEvents(e,t){t.addEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.addEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.addEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.addEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.addEventListener("drop",this.bind(this.onDrop,"onDrop")),t.addEventListener("click",this.bind(this.onSelected,"onSelected")),W.on(Un,this.bind(this.onActiveChange,"onActiveChange")),W.on(Se,this.bind(this.onViewChange,"onViewChange"))}unbindEvents(e,t){t.removeEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.removeEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.removeEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.removeEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.removeEventListener("drop",this.bind(this.onDrop,"onDrop")),t.removeEventListener("click",this.bind(this.onSelected,"onSelected")),W.off(Un,this.bind(this.onActiveChange,"onActiveChange")),W.off(Se,this.bind(this.onViewChange,"onViewChange"))}onMouseOver(e){const t=this.getHelper(e);t?.model.id!==this.selected.value?.model.id&&(this.hover.value=t)}onViewChange(){this.updateRect()}onLeave(e){this.hover.value=null,this.dropping.value=null}onActiveChange(){this.hover.value=null,this.dropping.value=null,this.selected.value=null}async getDropSlot(e){if(!e)return;const{engine:t}=this,r=t.assets,i=r.componentMap,o=await r.getBlockMaterial(e.from)||i.get(e.name);if(!o?.slots)return;const a=(o?.slots||["default"]).map(l=>typeof l=="string"?{name:l,params:[]}:{name:l.name,params:l.params||[]});if(a.length===0)return;if(a.length===1)return a[0];const s=await gx(a).catch(()=>null);if(!(s&&s.name==="default"&&(!s.params||s.params?.length===0)))return s}async onDrop(e){e.preventDefault();const{engine:t,dragging:r,dropping:i}=this,o=t.current.value,a=this.getHelper(e);if(!o||!r||!i.value||!a)return;const s=a.model,l=i.value.type;if(!await this.allowDrop(s,l))return;const u=this.createNodeDsl(r),c=new Ar(u);if(je(s))o.addNode(c,void 0,l);else{const p=await this.getDropSlot(l==="inner"?s:s.parent);if(p===null){this.dropping.value=null;return}c.slot=p,o.addNode(c,s,l)}this.dropping.value=null,t.assets.clearCaches()}onSelected(e){this.setHover(null),this.selected.value=this.getHelper(e)}async onDragOver(e){const t=this.getHelper(e);if(!t)return;const{model:r,type:i}=t;r&&await this.allowDrop(r,i)?(e.preventDefault(),this.dropping.value=t):this.dropping.value=null}isVtjElement(e){return!!e.__vtj__&&!!e.__context__}findVtjElement(e){return e.find(t=>this.isVtjElement(t))}getNodeByElement(e){const t=e.__vtj__??"";return Ar.nodes[t]||null}getDropType(e,t,r){const{left:i,top:o,width:a,height:s}=e;return t>=i&&t<=i+a*.2?"left":t>=i+a*.8&&t<=i+a?"right":r>=o&&r<=o+s*.2?"top":r>=o+s*.8&&r<=o+s?"bottom":"inner"}getNodePath(e=[]){const t=e.filter(i=>this.isVtjElement(i)),r=this.engine.current.value;return[...t.map(i=>this.getNodeByElement(i)).filter(i=>!!i),r]}setDslFrom(e){const t=this.engine.assets.componentMap.get(e.name);if(e.from=e.from||t?.package,Array.isArray(e.children))for(const r of e.children)this.setDslFrom(r)}createNodeDsl(e){const{name:t,snippet:r={},from:i}=e,o={...r,name:t,from:i||e.package};return this.setDslFrom(o),o}getElmenetByModel(e){return!this.document||!e?null:je(e)?this.document.body:Array.from(this.document.querySelectorAll("*")).find(t=>t.__vtj__===e.id)}findPathByNode(e){const t=[e];let r=e;for(;r.parent&&r.parent!==r;)r=r.parent,r!==e&&t.unshift(r);const i=this.engine.current.value;return t.unshift(i),t.reverse()}getHelper(e){const t=e.composedPath()||[],r=this.findVtjElement(t)||this.document?.body;if(!r)return null;const i=this.getNodeByElement(r)||this.engine.current.value;if(!i)return null;const o=r.getBoundingClientRect(),a=this.getDropType(o,e.clientX,e.clientY),s=this.getNodePath(t);return{el:r,model:i,rect:o,type:a,path:s}}cleanHelper(){this.setSelected(null),this.setHover(null),this.setDragging(null),this.setDropping(null)}async updateRect(){await cu(100);const e=d(this.selected),t=d(this.hover);if(e){const r=e.el.getBoundingClientRect();this.selected.value={...e,rect:r}}if(t){const r=t.el.getBoundingClientRect();this.hover.value={...t,rect:r}}}setDragging(e){this.dragging=e}async setHover(e){if(await ct(),e){const t=this.getElmenetByModel(e);if(!t)return;const r=t.getBoundingClientRect(),i=je(e)?[]:this.findPathByNode(e);this.hover.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.hover.value=null}async setSelected(e){if(await ct(),e){const t=this.getElmenetByModel(e)||this.document?.createElement("span");if(!t)return;const r=t.getBoundingClientRect(),i=je(e)?[]:this.findPathByNode(e);this.selected.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.selected.value=null}async setDropping(e,t="inner"){if(await ct(),e){const r=this.getElmenetByModel(e);if(!r)return;const i=r.getBoundingClientRect(),o=je(e)?[]:this.findPathByNode(e);this.dropping.value={el:r,model:e,rect:i,type:t,path:o}}else this.dropping.value=null}async allowDrop(e,t="inner"){const{dragging:r,engine:i}=this,o=i.current.value;if(!r||!o)return!1;if(je(e))return!0;const a=i.assets.componentMap,s=t!=="inner"&&e.parent||e,l=await i.assets.getBlockMaterial(s.from)||a.get(s.name);if(!l)return!1;const{parentIncludes:u=!0,name:c}=r,{childIncludes:p=!0}=l,m=u===!0||Array.isArray(u)&&u.includes(s.name),h=p===!0||Array.isArray(p)&&p.includes(c);return m&&h}dispose(){const{contentWindow:e,document:t}=this;this.setSelected(null),this.setHover(null),this.setDragging(null),e&&t&&this.unbindEvents(e,t),this.document=null}}class bx{constructor(e,t,r=null){this.env=e,this.service=t,this.designer=r,this.nodeChange=this.__onNodeChange.bind(this),this.blockChange=this.__onBlockChange.bind(this)}app=null;dsl=null;nodeChange;blockChange;context=null;install(e){const{library:t,globals:r,VueRouter:i}=this.env;if(i){const a=i.createRouter({history:i.createWebHashHistory(),routes:[]});e.use(a)}const o=Object.values(t);Object.assign(e.config.globalProperties,r),e.config.errorHandler=(a,s,l)=>{const u=s?.$options.name,c=a?.message||a?.msg||"未知错误",p=`[ ${u} ] ${c}`;console.error({err:a,instance:s,info:l}),Yt.error({title:"运行错误",message:p})},o.forEach(a=>{(typeof a=="function"||typeof a.install=="function")&&e?.use(a)})}render(e){const{window:t,container:r,Vue:i,components:o,library:a,apis:s}=this.env,l=t.document.createElement("div");l.id="app",r.appendChild(l),this.dsl=i.reactive(e.toDsl());const u=Go({getDsl:async m=>await this.service.getFile(m)||null,options:{mode:Je.Design,Vue:i,components:o,libs:a,apis:s,window:t}}),{renderer:c,context:p}=Ko({Vue:i,mode:Je.Design,dsl:this.dsl,components:o,libs:a,apis:s,loader:u,window:t});this.app=i.createApp(c),this.install(this.app);try{this.app.mount(l)}catch(m){Te(m.message||"未知错误","运行时错误"),console.error(m)}this.context=p,W.on(Se,this.nodeChange),W.on(ge,this.blockChange)}dispose(){if(this.app){this.app.unmount();const e=this.app._container;e&&e.parentNode&&(e.parentNode.removeChild(e),this.app._container=null),this.app=null}this.dsl=null,this.context=null,W.off(Se,this.nodeChange),W.off(ge,this.blockChange)}updateChild(e,t){const r=t.children||t.nodes||[];if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];if(o.id===e.id){r.splice(i,1,e);return}else this.updateChild(e,o)}}__onNodeChange(e){this.dsl&&this.updateChild(e.toDsl(),this.dsl)}__onBlockChange(e){this.dispose(),this.render(e),this.designer?.selected.value&&this.designer.setSelected(e)}}class wx extends Eo{contentWindow=null;renderer=null;designer=bi(null);engine;materialPath;constructor(e){super();const{engine:t,materialPath:r}=e;this.engine=t,this.materialPath=r,se(this.engine.current,()=>{this.refresh()})}init(e,t,r,i){se([e,t,r,i],()=>{e.value&&t.value.length&&(this.resetReady(),this.renderer?.dispose(),this.renderer=null,this.setup(e.value,t.value),this.contentWindow&&(this.designer.value?.dispose(),this.designer.value=new yx(this.engine,this.contentWindow,t)))},{immediate:!0,deep:!0})}setup(e,t){const r=e.contentWindow;if(!r){Ge.warn("Simulator contentWindow is null");return}r.__simulator__=this;const i=r.document;r.CKEDITOR_VERSION=void 0,this.contentWindow=r;const{scripts:o,css:a,materials:s,libraryExports:l,materialExports:u,materialMapLibrary:c}=Ic(t,this.materialPath);i.open(),i.write(`
167
167
  <!DOCTYPE html>
168
168
  <html lang="zh-CN">
169
169
  <head>
@@ -180,7 +180,7 @@ version: 2.9.0
180
180
  background: #fff;
181
181
  }
182
182
  </style>
183
- ${tw(a)}
183
+ ${uw(a)}
184
184
  ${js(o)}
185
185
  ${js(s)}
186
186
  </head>
@@ -192,4 +192,4 @@ version: 2.9.0
192
192
  ${JSON.stringify(c)});
193
193
  <\/script>
194
194
  </html>
195
- `),i.close()}async emitReady(e=[],t=[],r={}){this.renderer?.dispose(),this.renderer=null;const i=this.contentWindow,{assets:o,service:a,current:s,provider:l}=this.engine,u=l.materials||{},c=[];for(const m of t){const h=u[m]?(await u[m]()).default:i[m];c.push(h)}o.load(c);const p=this.createEnv(e,r,c);this.renderer=new bx(p,a,this.designer.value),s.value&&this.renderer.render(s.value),this.triggerReady()}createEnv(e=[],t={},r=[]){const i=this.contentWindow,{engine:o}=this,{project:a,assets:s,provider:l}=o,u=e.reduce((g,j)=>(g[j]=i[j],g),{}),c={},{groups:p,componentMap:m}=s;for(const g of p.value){const j=g.names||[];if(g.name===Di)j.forEach(b=>{const _=m.get(b),k=_?.package||"",C=eg[k],x=u[C];x&&_&&(c[b]=Yi(_,x))});else{const b=u[t[g.library||""]];b&&j.forEach(_=>{const k=m.get(_);k?c[_]=Yi(k,b):c[_]=b[_]})}}const{adapter:h,globals:f}=l,v=Pc(a.value?.apis,h);return qo(),a.value?.config?.mock&&Nc(a.value?.apis),{window:i,Vue:i.Vue,VueRouter:i.VueRouter,library:u,materials:r,components:c,container:i.document.body,apis:v,globals:f}}refresh(){this.renderer?.dispose();const e=this.engine.current.value;e&&this.renderer?.render(e)}dispose(){this.renderer?.dispose(),this.designer.value?.dispose(),this.contentWindow=null,this.renderer=null,this.designer.value=null,this.resetReady()}}class xx{constructor(e){this.service=e}components=[];componentMap=new Map;groups=B([]);caches={};getCateoryComponents(e,t){const r=t.filter(i=>i.categoryId===e.id&&i.hidden!==!0);return{name:e.id,label:e.category,count:r.length,components:r}}parseGroups(e){const t=[];for(let r of e){const{categories:i,components:o,label:a,name:s,library:l}=r;if(!i||!o)continue;const u=o.filter(h=>!!h.package).map(h=>h.name),c=i.map(h=>this.getCateoryComponents(h,o)),p=c.reduce((h,f)=>f.count+h,0),m={name:r.name,label:a||s,count:p,names:u,library:l,children:c};t.push(m)}return t}load(e){const t=[...q5,...e].filter(r=>!!r);t.sort((r,i)=>r.order-i.order);for(let r of t)r.components&&(this.components=this.components.concat(r.components));this.groups.value=this.parseGroups(t),this.componentMap=du(this.components,"name")}async getBlockMaterial(e){if(!e||typeof e=="string")return null;const t=e.type==="Schema"?e.id:null;if(!t)return null;const r=this.caches[t]||await this.service.getFile(t);if(!r)return null;this.caches[t]=r;const{id:i,name:o,slots:a,props:s,emits:l}=r,u=c=>{const p=Array.isArray(c)?c:[c];let m=[];for(const h of p)m=m.concat(kr.getByType(h));return m};return{id:i,name:o,childIncludes:a?.length?void 0:!1,props:(s||[]).map(c=>typeof c=="string"?{name:c}:{name:c.name,type:c.type,setters:u(c.type)}),events:l,slots:a,from:e}}clearCaches(){this.caches={}}}const ed=Symbol("VtjEngine");class p_ extends Eo{app;skeleton;container;service;assets;simulator;emitter=W;project=B(null);current=B(null);context=B(null);isEmptyCurrent=B(!1);history=B(null);provider;changed=B(Symbol());constructor(e){super();const{container:t,service:r,project:i={},globals:o={},dependencies:a,materials:s,materialPath:l="./"}=e;this.container=t,this.service=r,this.provider=new Lc({mode:Je.Design,globals:o,project:i,service:r,dependencies:a,materials:s,materialPath:l}),this.assets=new xx(this.service),this.simulator=new wx({engine:this,materialPath:l}),this.bindEvents(),this.init(i),eo(this.render.bind(this)),to(this.dispose.bind(this))}async init(e){const t=await this.service.init(e).catch(r=>(Ge.warn("VTJEngine service init fail.",r),null));t&&(t.dependencies=fx.merge(t.dependencies||[]),this.project.value=new ng(t),this.saveMaterials(),this.triggerReady())}render(){const e=d(this.container);if(e){const t=Bs(_x);t.provide(ed,od(this)),t.mount(e),this.app=t}else Ge.warn("VTJEngine constructor param [ container ] is undefined")}bindEvents(){W.on(Ne,e=>this.saveProject(e)),W.on(br,e=>this.saveBlockFile(e)),W.on(On,e=>this.saveBlockFile(e)),W.on(Ri,()=>this.saveMaterials()),W.on(Un,e=>this.activeFile(e)),W.on(wu,()=>this.publish()),W.on(xu,()=>this.publishCurrent()),W.on(ge,e=>this.changeFile(e)),W.on(Se,()=>this.changeCurrentFile()),W.on(Bn,e=>this.saveHistory(e)),W.on(wr,e=>this.loadHistory(e))}async activeFile(e){await ct();const t=e.model,r=e.model.currentFile;if(r){if(t.isPageFile(r)&&r.raw)return;const i=await this.service.getFile(r.id);i&&(r.dsl=i)}if(r?.dsl){const i=new dn(r.dsl);this.updateCurrent(i),this.initHistory(i)}else this.updateCurrent(null);Ct(this.project)}async changeFile(e){await ct();const t=e.toDsl();this.service.saveFile(t),this.updateCurrent(e),this.history.value?.add(t),Ct(this.history)}changeCurrentFile(){this.saveCurrentFile(),this.current.value&&(this.history.value?.add(this.current.value.toDsl()),Ct(this.history))}async updateCurrent(e,t=!0){this.current.value=e,await ct(),this.context.value=this.simulator.renderer?.context||null,this.isEmptyCurrent.value=this.current.value?.nodes.length===0,this.changed.value=Symbol(),t&&Ct(this.context)}async saveProject(e){const t=e.model.toDsl();await this.service.saveProject(t),Ct(this.project)}async saveBlockFile(e){const t=e.type,r=e.model;if(t==="create"){const i=e.data;r.isPageFile(i)&&i.raw?(await this.service.createRawPage(i),We(`源码文件已经生成:/.vtj/vue/${i.id}.vue`,"success")):i.dsl&&await this.service.saveFile(i.dsl)}if(t==="update"){const i=e.data;if(r.isPageFile(i)&&(i.dir||i.raw))return;const o=await this.service.getFile(i.id);o&&(o.name=i.name,await this.service.saveFile(o))}if(t==="delete"){const i=e.data;i&&r.isPageFile(i)&&i.raw?await this.service.removeRawPage(i.id):i.dir||(await this.service.removeFile(i.id),await this.service.removeHistory(i.id))}if(t==="clone"){const{page:i,newPage:o}=e.data,a=await this.service.getFile(i.id);a&&(a.id=o.id,a.name=o.name,await this.service.saveFile(a))}Ct(this.project)}async saveMaterials(){await ct(),this.simulator.ready(()=>{const e=this.project.value;if(e){const t=this.assets.componentMap;this.service.saveMaterials(e.toDsl(),t)}})}saveCurrentFile(){const e=this.current.value;e&&(this.updateCurrent(e),this.service.saveFile(e.toDsl()))}async initHistory(e){if(e){const t=await this.service.getHistory(e.id).catch(()=>null);this.history.value=new rg(Object.assign(t||{},{id:e.id}))}else this.history.value=null}async saveHistory(e){const t=e.type,r=e.model;t==="create"&&await this.service.saveHistoryItem(r.id,e.data),t==="delete"&&await this.service.removeHistoryItem(r.id,e.data),t==="clear"&&await this.service.removeHistoryItem(r.id,e.data);const i=r.toDsl();await this.service.saveHistory(i),Ct(this.history)}async loadHistory(e){const t=e.model,r=e.data,i=await this.service.getHistoryItem(t.id,r.id);if(i&&i.dsl){const o=new dn(i.dsl);await this.updateCurrent(o),Ct(this.history)}}async publish(){const e=this.project.value;if(e){const t={...e.toDsl(),pages:e.getPages()};await this.service.publish(t)&&We("整站发布成功","success")}}async publishCurrent(){const e=this.project.value,t=e?.currentFile;if(e&&t){const r={...e.toDsl(),pages:e.getPages()};await this.service.publishFile(r,t)&&We("发布成功","success")}}dispose(){this.emitter.all.clear(),this.simulator.dispose(),this.app&&(this.app.unmount(),this.container=void 0)}async openFile(e){const t=this.project.value,r=this.skeleton?.getRegion("Apps"),i=e||t?.homepage;if(!t||!r||!i)return;const o=t.getPage(i);o&&!o.raw&&(r.regionRef?.setActive("Pages"),this.simulator.ready(()=>{t.active(o)}));const a=t.getBlock(i);a&&(r.regionRef?.setActive("Blocks"),this.simulator?.ready(()=>{t.active(a)}))}}function Le(){const n=Jt(ed,null);return n||Ge.error("VTJEngine is not exist"),n}const Et=D({name:"RegionWrapper",props:{region:{type:String,required:!0}},setup(){return{regionRef:B()}},render(){const n=As[this.region]||As.EmptyRegion;return Re(n,{...this.$props,...this.$attrs,ref:"regionRef"})}}),Pt=D({name:"WidgetWrapper",props:{region:{type:String,required:!0},widget:{type:Object,required:!0}},setup(){return{widgetRef:B()}},render(){return Re(this.widget.component,{...this.widget.props,...this.$props,...this.$attrs,ref:"widgetRef"})}}),_x=D({name:"SkeletonWrapper",setup(){const n=B(),e=Le(),t=B({});return{skeletonRef:n,engine:e,widgets:t}},mounted(){this.engine.skeleton=this},render(){return Re(Sx,{...this.$props,...this.$attrs,ref:"skeletonRef"})},methods:{getRegion(n){return this.skeletonRef[n.toLowerCase()]},toggleCollapse(n){if(this.skeletonRef){const e=this.skeletonRef.collapsed;this.skeletonRef.collapsed=n??!e}},settable(n){this.skeletonRef&&(this.skeletonRef.settable=n)},getWidgets(n){const e=this.getRegion(n);return e?Vo(e.regionRef?.widgetsRef||[]):[]},getWidget(n){const e=Zc.get(n);if(!e){Ge.warn(`widget [ ${n} ] is not exsit`);return}return this.getWidgets(e.region).find(t=>t.widget.name===n)},openPreview(n){this.skeletonRef&&(this.skeletonRef.isPreview=!0)},closePreview(){this.skeletonRef&&(this.skeletonRef.isPreview=!1)}}}),he=D({name:"SetterWrapper",props:{context:{type:Object,default:null},current:{type:Object,default:null},name:String,label:String,title:String,value:{type:[String,Object,Array,Number,Boolean],default:void 0},setters:{type:[String,Object,Array],required:!0,default(){return[]}},options:{type:Array,default(){return[]}},variable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1}},computed:{computedSetters(){return(Array.isArray(this.setters)?this.setters:[this.setters]).map(n=>{let e;if(typeof n=="string")return e=this.getSetter(n),{component:zt(e.component),name:e.name,label:n,props:e.props||{}};{const t=n;return e=this.getSetter(t.name),{component:zt(t.component||e.component),name:t.name,label:t.label||t.name,props:Object.assign(e.props||{},t.props)}}})},computedOptions(){return(this.options||[]).map(n=>typeof n=="string"?{label:n,value:n}:n)},defaultSetter(){const{value:n,computedSetters:e}=this;let t=typeof n;t==="Object"&&(Array.isArray(n)?t="Array":Pe(n)?t="Object":Zn(n)&&(t="Function"));const r=kr.getByType(t)||[];return r.length?(e.find(i=>r.includes(i.name))||e[0])?.name:e[0]?.name}},render(){const{context:n,current:e,name:t,label:r,title:i,value:o,computedSetters:a,computedOptions:s,variable:l,changeValue:u,defaultSetter:c,removable:p,onRemove:m}=this;return Re(Ax,{context:n,current:e,name:t,label:r,title:i,setters:a,defaultSetter:c,variable:l,value:o,removable:p,options:s,onChange:u,onRemove:m})},emits:["change","remove"],methods:{getSetter(n){return typeof n=="string"?kr.get(n)||kr.defaultSetter:n},changeValue(n){this.$emit("change",this.name,n)},onRemove(n){this.$emit("remove",n)}}}),Sx=D({name:"Skeletion",__name:"skeleton",props:{headerHeight:{default:"36px"},leftWidth:{default:"400px"},rightWidth:{default:"350px"},footerHeight:{default:"20px"}},setup(n,{expose:e}){const t=n,r=B(!1),i=B(parseInt(t.leftWidth)),o=B(parseInt(t.rightWidth)),a={dirs:["e"],maxWidth:600,minWidth:49,onResizing(b,_){i.value=_.elementWidth.value},onEnd(b,_){i.value=_.elementWidth.value}},s={dirs:["w"],maxWidth:600,minWidth:2,onResizing(b,_){o.value=_.elementWidth.value},onEnd(b,_){o.value=_.elementWidth.value}},l=B(),u=B(),c=B(),p=B(),m=B(),h=B(),f=B(),v=B(),g=B(!1),j=B(!1);return e({brand:l,toolbar:u,actions:c,apps:p,workspace:m,settings:h,status:f,collapsed:g,settable:j,leftWidth:i,rightWidth:o,preview:v,isPreview:r}),(b,_)=>(y(),V(d($d),{locale:d(Cd)},{default:S(()=>[w(d(Zo),{class:"v-skeleton"},{default:S(()=>[w(d(kd),{class:"v-skeleton__header",height:b.headerHeight},{default:S(()=>[w(d(Et),{ref_key:"brand",ref:l,region:"Brand"},null,512),w(d(Et),{ref_key:"toolbar",ref:u,region:"Toolbar",preview:r.value},null,8,["preview"]),w(d(Et),{ref_key:"actions",ref:c,region:"Actions"},null,512)]),_:1},8,["height"]),w(d(Zo),{class:"v-skeleton__wrapper"},{default:S(()=>[r.value?I("",!0):xt((y(),V(d(ea),{key:0,width:t.leftWidth,class:de(["v-skeleton__left",{"is-collapsed":g.value}])},{default:S(()=>[w(d(Et),{ref_key:"apps",ref:p,region:"Apps"},null,512)]),_:1},8,["width","class"])),[[d(Gi),a]]),w(d(jd),{class:"v-skeleton__main"},{default:S(()=>[r.value?(y(),V(d(Et),{key:0,ref_key:"preview",ref:v,region:"Preview",preview:r.value},null,8,["preview"])):I("",!0),xt(w(d(Et),{ref_key:"workspace",ref:m,region:"Workspace"},null,512),[[Kt,!r.value]])]),_:1}),r.value?I("",!0):xt((y(),V(d(ea),{key:1,width:t.rightWidth,class:"v-skeleton__right"},{default:S(()=>[w(d(Et),{ref_key:"settings",ref:h,region:"Settings"},null,512)]),_:1},8,["width"])),[[Kt,j.value],[d(Gi),s]])]),_:1}),r.value?I("",!0):(y(),V(d(Vd),{key:0,class:"v-skeleton__footer",height:b.footerHeight},{default:S(()=>[w(d(Et),{ref_key:"status",ref:f,region:"Status"},null,512)]),_:1},8,["height"]))]),_:1})]),_:1},8,["locale"]))}}),kx={key:1},jx={class:"v-setter__content"},Vx={key:0,class:"v-setter__input"},Cx={class:"v-setter__action"},$x="{{",Ex="}}",Ax=D({__name:"setter",props:{context:{},current:{},name:{},label:{default:""},title:{},setters:{},variable:{type:Boolean,default:!0},value:{},options:{default:()=>[]},defaultSetter:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=B(""),a=B(t.setters.find(j=>j.name===t.defaultSetter)||t.setters[0]),s=B(t.value),l=O(()=>!!Pe(s.value)),u={[a.value.name]:s.value},c=j=>{u[a.value.name]=s.value,a.value=j,s.value=u[j.name]??void 0,p(s.value)};se(()=>t.value,()=>{s.value=t.value}),se(()=>t.defaultSetter,()=>{a.value=t.setters.find(j=>j.name===t.defaultSetter)||t.setters[0]});const p=j=>{r("change",j)},m=()=>{r("remove",t.name)},h=()=>{i.value=!0,o.value=Pe(s.value)?s.value.value:""},f=()=>{i.value=!1,o.value=""},v=async j=>ze(j,t.context,!0)?(u[a.value.name]=s.value,s.value=j,r("change",j),!0):!1,g=async()=>{await kn("确定要解除绑定吗?")&&(f(),s.value=void 0,r("change",""))};return(j,b)=>(y(),V(d(no),{class:"v-setter",size:"small","label-positon":"left"},{label:S(()=>[t.title?(y(),V(d(Br),{key:0,placement:"top-start",content:t.title},{default:S(()=>[ue(te(t.label||t.name),1)]),_:1},8,["content"])):(y(),M("span",kx,te(t.label||t.name),1))]),default:S(()=>[R("div",jx,[a.value?(y(),M("div",Vx,[l.value?I("",!0):(y(),V(Ke(a.value.component),ve({key:0,current:t.current,context:t.context},a.value.props,{options:t.options,modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=_=>s.value=_),onChange:p,disabled:l.value}),null,16,["current","context","options","modelValue","disabled"])),l.value?(y(),V(d(tt),{key:1,class:"v-expression-setter",disabled:"","model-value":"JSExpression"},{prefix:S(()=>[ue(te($x))]),suffix:S(()=>[ue(te(Ex))]),_:1})):I("",!0)])):I("",!0),R("div",Cx,[t.variable?(y(),V(d(Uu),{key:0,onClick:h,class:de(["v-icon-vars",{"is-active":l.value}]),title:"绑定变量"},null,8,["class"])):I("",!0),t.setters.length>1?(y(),V(d(io),{key:1,disabled:l.value,size:"small","popper-class":"v-setter-switch",onCommand:c},{dropdown:S(()=>[w(d(ro),null,{default:S(()=>[(y(!0),M(ne,null,oe(t.setters,_=>(y(),V(d(Vr),{command:_,key:_.name},{default:S(()=>[w(d(Ao),{class:de({"is-placeholder":_.name!==a.value.name})},null,8,["class"]),ue(" "+te(_.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:S(()=>[w(d(Au),{title:"切换设置器"})]),_:1},8,["disabled"])):I("",!0),t.removable?(y(),V(d(Gn),{key:2,onClick:m,title:"删除"})):I("",!0)])]),i.value?(y(),V(d(p8),{key:0,current:t.current,context:t.context,value:o.value,modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=_=>i.value=_),submitMethod:v,onUnbind:g},null,8,["current","context","value","modelValue"])):I("",!0)]),_:1}))}}),Tx={class:"v-empty-region"},Ox=D({name:"EmptyRegion",__name:"empty",props:{region:{}},setup(n){return(e,t)=>(y(),M("div",Tx,"找不到符合【"+te(e.region)+"】名称的区域组件",1))}}),Bx={class:"v-brand-region"},zx=D({name:"BrandRegion",inheritAttrs:!1,__name:"brand",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",Bx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),Dx={class:"v-toolbar-region"},Ix=D({name:"ToolbarRegion",__name:"toolbar",props:{region:{},preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",Dx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s,preview:o.preview},null,8,["region","widget","preview"]))),256))]))}}),Rx={class:"v-actions-region"},Mx=D({name:"ActionsRegion",inheritAttrs:!1,__name:"actions",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",Rx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),Px={class:"v-apps-region"},Nx={class:"v-apps-region__header"},Fx={class:"v-apps-region__top"},Hx={class:"v-apps-region__bottom"},Lx={class:"v-apps-region__panels"},Ux=D({name:"AppsRegion",inheritAttrs:!1,__name:"apps",props:{region:{},index:{default:0}},setup(n,{expose:e}){const t=n,r=Le(),{widgets:i,widgetsRef:o}=Mt(t.region),a=O(()=>i.value.filter(h=>h.openType==="panel")),s=O(()=>i.value.filter(h=>h.openType!=="panel")),l=a.value[t.index],u=B(l),c=B(l),p=h=>{u.value=h,c.value=c.value?.name===h.name?null:h},m=h=>{h.openType==="link"&&h.url&&window.open(h.url),h.openType==="dialog"&&$c({title:h.label,icon:h.icon,...h.props,content:h.component})};return se(c,h=>{r.skeleton?.toggleCollapse(!h)}),e({widgets:i,widgetsRef:o,setActive:h=>{const f=a.value.find(v=>v.name===h);u.value=f,c.value=f}}),(h,f)=>(y(),M("div",Px,[R("div",Nx,[R("div",Fx,[(y(!0),M(ne,null,oe(a.value,v=>(y(),V(d(Es),{key:`icon-${v.name}`,icon:v.icon,label:v.label,active:u.value?.name===v.name,open:c.value?.name===v.name,onClick:g=>p(v)},null,8,["icon","label","active","open","onClick"]))),128))]),R("div",Hx,[(y(!0),M(ne,null,oe(s.value,v=>(y(),V(d(Es),{key:`icon-${v.name}`,icon:v.icon,label:v.label,onClick:g=>m(v)},null,8,["icon","label","onClick"]))),128))])]),R("div",Lx,[(y(!0),M(ne,null,oe(a.value,v=>(y(),V(zs,{key:v.name},[u.value?.name===v.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:o,region:h.region,widget:v},null,8,["region","widget"])):I("",!0)],1024))),128))])]))}}),Wx=D({name:"WorkspaceRegion",__name:"workspace",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region),o=Gt(r.value.map(m=>({name:m.name,command:m.name,label:m.label,closable:!!m.closable,props:m.props||{},checked:!m.closable}))),a=O(()=>o.filter(m=>!m.closable||m.checked)),s=O(()=>o.map(m=>({...m,disabled:!m.closable}))),l=B(a.value[0]?.name),u=O(()=>o.find(m=>m.name===l.value)?.props||{}),c=m=>{const h=o.find(f=>f.name===m);h&&(h.checked=!1),l.value===m&&(l.value=a.value[0]?.name)},p=m=>{const h=o.find(f=>f.name===m.name);h&&h.closable&&(h.checked=!h.checked,h.checked&&(l.value=h.name),!h.checked&&l.value===h.name&&(l.value=a.value[0]?.name))};return e({currentTab:l,widgets:r,widgetsRef:i,openTab:(m,h={})=>{const f=o.find(v=>v.name===m);f&&(f.props=Object.assign({},f.props,h),f.checked=!0,l.value=f.name)}}),(m,h)=>(y(),V(d(Gr),{class:"v-workspace-region",items:a.value,menus:s.value,modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=f=>l.value=f),checkable:"",onRemove:c,onCommand:p},{default:S(()=>[(y(!0),M(ne,null,oe(d(r),f=>(y(),M(ne,{key:f.name},[l.value===f.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:m.region,widget:{...f,props:u.value}},null,8,["region","widget"])):I("",!0)],64))),128))]),_:1},8,["items","menus","modelValue"]))}}),Jx=D({name:"SettingsRegion",__name:"settings",props:{region:{}},setup(n,{expose:e}){const t=n,r=Le(),{current:i}=Ie(),{selected:o,isSelectBlock:a}=gt(),s=O(()=>a.value?it.Block:it.Node),{widgets:l,widgetsRef:u}=Mt(t.region,s),c=B(),p=B(!1),m=O(()=>l.value.map(g=>({name:g.name,label:g.label,actions:g.name==="Style"?[{name:"switch",icon:Pd,background:"hover"}]:void 0}))),h=O(()=>{const g=o.value?.model;return g?r.assets.componentMap.get(g.name)?.doc:null});se(i,g=>{r.skeleton?.settable(!!g)}),se(s,()=>{c.value=m.value[0]?.name},{immediate:!0}),se(c,()=>{p.value=!1});const f=()=>{if(h.value){const g=r.skeleton?.getRegion("Workspace");g&&g.regionRef.openTab("Docs",{url:h.value})}},v=g=>{g.name==="switch"&&(p.value=!p.value)};return e({widgets:l,widgetsRef:u}),(g,j)=>d(i)?(y(),V(d(ae),{key:0,class:"v-settings-region",fit:"",direction:"column"},{default:S(()=>[d(o)?(y(),V(d(ae),{key:0,flex:"",justify:"space-between",align:"center",class:"v-settings-region__header"},{default:S(()=>[w(d(ae),{class:"v-settings-region__title"},{default:S(()=>[w(d(Bo)),R("span",null,[ue(te(d(o)?.model.name)+": ",1),R("i",null,te(d(o)?.model.id),1)])]),_:1}),h.value?(y(),V(d(ae),{key:0},{default:S(()=>[w(d(Oe),{onClick:f,icon:d(Ro),mode:"text",label:"帮助"},null,8,["icon"])]),_:1})):I("",!0)]),_:1})):I("",!0),d(o)&&!d(o).model.locked?(y(),V(d(ae),{key:1,grow:"",padding:!1},{default:S(()=>[w(d(Gr),{items:m.value,modelValue:c.value,"onUpdate:modelValue":j[0]||(j[0]=b=>c.value=b),stretch:"",body:{padding:!1},onActionClick:v},{default:S(()=>[(y(!0),M(ne,null,oe(d(l),b=>(y(),M(ne,{key:b.name},[c.value===b.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:u,region:g.region,widget:d(dt)({props:{isStyleCodeMode:p.value}},b)},null,8,["region","widget"])):I("",!0)],64))),128))]),_:1},8,["items","modelValue"])]),_:1})):I("",!0),d(o)?I("",!0):(y(),V(d(Be),{key:2,description:"请在左侧画布选中节点"})),d(o)&&d(o).model.locked?(y(),V(d(Be),{key:3,"image-size":1,description:"节点已被锁定, 禁止编辑"})):I("",!0)]),_:1})):I("",!0)}}),qx={class:"v-status-region"},Kx=D({name:"StatusRegion",inheritAttrs:!1,__name:"status",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",qx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),Gx=D({name:"PreviewRegion",__name:"preview",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region),o=Gt(r.value.map(l=>({name:l.name,command:l.name,label:l.label,closable:!!l.closable,checked:!1}))),a=O(()=>o.filter(l=>!l.closable||l.checked)),s=B(a.value[0]?.name);return e({currentTab:s,widgets:r,widgetsRef:i}),(l,u)=>(y(),V(d(Gr),{class:"v-workspace-region",items:a.value,modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:S(()=>[(y(!0),M(ne,null,oe(d(r),c=>(y(),V(zs,{key:c.name},[s.value===c.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:l.region,widget:c},null,8,["region","widget"])):I("",!0)],1024))),128))]),_:1},8,["items","modelValue"]))}}),As={EmptyRegion:Ox,Brand:zx,Toolbar:Ix,Actions:Mx,Apps:Ux,Workspace:Wx,Settings:Jx,Status:Kx,Preview:Gx};export{p_ as E,c_ as V,Zc as j,d_ as q,Je as w};
195
+ `),i.close()}async emitReady(e=[],t=[],r={}){this.renderer?.dispose(),this.renderer=null;const i=this.contentWindow,{assets:o,service:a,current:s,provider:l}=this.engine,u=l.materials||{},c=[];for(const m of t){const h=u[m]?(await u[m]()).default:i[m];c.push(h)}o.load(c);const p=this.createEnv(e,r,c);this.renderer=new bx(p,a,this.designer.value),s.value&&this.renderer.render(s.value),this.triggerReady()}createEnv(e=[],t={},r=[]){const i=this.contentWindow,{engine:o}=this,{project:a,assets:s,provider:l}=o,u=e.reduce((g,j)=>(g[j]=i[j],g),{}),c={},{groups:p,componentMap:m}=s;for(const g of p.value){const j=g.names||[];if(g.name===Di)j.forEach(w=>{const _=m.get(w),S=_?.package||"",C=eg[S],x=u[C];x&&_&&(c[w]=Yi(_,x))});else{const w=u[t[g.library||""]];w&&j.forEach(_=>{const S=m.get(_);S?c[_]=Yi(S,w):c[_]=w[_]})}}const{adapter:h,globals:f}=l,v=Pc(a.value?.apis,h);return qo(),a.value?.config?.mock&&Nc(a.value?.apis),{window:i,Vue:i.Vue,VueRouter:i.VueRouter,library:u,materials:r,components:c,container:i.document.body,apis:v,globals:f}}refresh(){this.renderer?.dispose();const e=this.engine.current.value;e&&this.renderer?.render(e)}dispose(){this.renderer?.dispose(),this.designer.value?.dispose(),this.contentWindow=null,this.renderer=null,this.designer.value=null,this.resetReady()}}class xx{constructor(e){this.service=e}components=[];componentMap=new Map;groups=B([]);caches={};getCateoryComponents(e,t){const r=t.filter(i=>i.categoryId===e.id&&i.hidden!==!0);return{name:e.id,label:e.category,count:r.length,components:r}}parseGroups(e){const t=[];for(let r of e){const{categories:i,components:o,label:a,name:s,library:l}=r;if(!i||!o)continue;const u=o.filter(h=>!!h.package).map(h=>h.name),c=i.map(h=>this.getCateoryComponents(h,o)),p=c.reduce((h,f)=>f.count+h,0),m={name:r.name,label:a||s,count:p,names:u,library:l,children:c};t.push(m)}return t}load(e){const t=[...q5,...e].filter(r=>!!r);t.sort((r,i)=>r.order-i.order);for(let r of t)r.components&&(this.components=this.components.concat(r.components));this.groups.value=this.parseGroups(t),this.componentMap=du(this.components,"name")}async getBlockMaterial(e){if(!e||typeof e=="string")return null;const t=e.type==="Schema"?e.id:null;if(!t)return null;const r=this.caches[t]||await this.service.getFile(t);if(!r)return null;this.caches[t]=r;const{id:i,name:o,slots:a,props:s,emits:l}=r,u=c=>{const p=Array.isArray(c)?c:[c];let m=[];for(const h of p)m=m.concat(kr.getByType(h));return m};return{id:i,name:o,childIncludes:a?.length?void 0:!1,props:(s||[]).map(c=>typeof c=="string"?{name:c}:{name:c.name,type:c.type,setters:u(c.type)}),events:l,slots:a,from:e}}clearCaches(){this.caches={}}}const ed=Symbol("VtjEngine");class p_ extends Eo{app;skeleton;container;service;assets;simulator;emitter=W;project=B(null);current=B(null);context=B(null);isEmptyCurrent=B(!1);history=B(null);provider;changed=B(Symbol());constructor(e){super();const{container:t,service:r,project:i={},globals:o={},dependencies:a,materials:s,materialPath:l="./"}=e;this.container=t,this.service=r,this.provider=new Lc({mode:Je.Design,globals:o,project:i,service:r,dependencies:a,materials:s,materialPath:l}),this.assets=new xx(this.service),this.simulator=new wx({engine:this,materialPath:l}),this.bindEvents(),this.init(i),eo(this.render.bind(this)),to(this.dispose.bind(this))}async init(e){const t=await this.service.init(e).catch(r=>(Ge.warn("VTJEngine service init fail.",r),null));t&&(t.dependencies=fx.merge(t.dependencies||[]),this.project.value=new ng(t),this.saveMaterials(),this.triggerReady())}render(){const e=d(this.container);if(e){const t=Bs(_x);t.provide(ed,od(this)),t.mount(e),this.app=t}else Ge.warn("VTJEngine constructor param [ container ] is undefined")}bindEvents(){W.on(Ne,e=>this.saveProject(e)),W.on(br,e=>this.saveBlockFile(e)),W.on(On,e=>this.saveBlockFile(e)),W.on(Ri,()=>this.saveMaterials()),W.on(Un,e=>this.activeFile(e)),W.on(wu,()=>this.publish()),W.on(xu,()=>this.publishCurrent()),W.on(ge,e=>this.changeFile(e)),W.on(Se,()=>this.changeCurrentFile()),W.on(Bn,e=>this.saveHistory(e)),W.on(wr,e=>this.loadHistory(e))}async activeFile(e){await ct();const t=e.model,r=e.model.currentFile;if(r){if(t.isPageFile(r)&&r.raw)return;const i=await this.service.getFile(r.id);i&&(r.dsl=i)}if(r?.dsl){const i=new dn(r.dsl);this.updateCurrent(i),this.initHistory(i)}else this.updateCurrent(null);Ct(this.project)}async changeFile(e){await ct();const t=e.toDsl();this.service.saveFile(t),this.updateCurrent(e),this.history.value?.add(t),Ct(this.history)}changeCurrentFile(){this.saveCurrentFile(),this.current.value&&(this.history.value?.add(this.current.value.toDsl()),Ct(this.history))}async updateCurrent(e,t=!0){this.current.value=e,await ct(),this.context.value=this.simulator.renderer?.context||null,this.isEmptyCurrent.value=this.current.value?.nodes.length===0,this.changed.value=Symbol(),t&&Ct(this.context)}async saveProject(e){const t=e.model.toDsl();await this.service.saveProject(t),Ct(this.project)}async saveBlockFile(e){const t=e.type,r=e.model;if(t==="create"){const i=e.data;r.isPageFile(i)&&i.raw?(await this.service.createRawPage(i),We(`源码文件已经生成:/.vtj/vue/${i.id}.vue`,"success")):i.dsl&&await this.service.saveFile(i.dsl)}if(t==="update"){const i=e.data;if(r.isPageFile(i)&&(i.dir||i.raw))return;const o=await this.service.getFile(i.id);o&&(o.name=i.name,await this.service.saveFile(o))}if(t==="delete"){const i=e.data;i&&r.isPageFile(i)&&i.raw?await this.service.removeRawPage(i.id):i.dir||(await this.service.removeFile(i.id),await this.service.removeHistory(i.id))}if(t==="clone"){const{page:i,newPage:o}=e.data,a=await this.service.getFile(i.id);a&&(a.id=o.id,a.name=o.name,await this.service.saveFile(a))}Ct(this.project)}async saveMaterials(){await ct(),this.simulator.ready(()=>{const e=this.project.value;if(e){const t=this.assets.componentMap;this.service.saveMaterials(e.toDsl(),t)}})}saveCurrentFile(){const e=this.current.value;e&&(this.updateCurrent(e),this.service.saveFile(e.toDsl()))}async initHistory(e){if(e){const t=await this.service.getHistory(e.id).catch(()=>null);this.history.value=new rg(Object.assign(t||{},{id:e.id}))}else this.history.value=null}async saveHistory(e){const t=e.type,r=e.model;t==="create"&&await this.service.saveHistoryItem(r.id,e.data),t==="delete"&&await this.service.removeHistoryItem(r.id,e.data),t==="clear"&&await this.service.removeHistoryItem(r.id,e.data);const i=r.toDsl();await this.service.saveHistory(i),Ct(this.history)}async loadHistory(e){const t=e.model,r=e.data,i=await this.service.getHistoryItem(t.id,r.id);if(i&&i.dsl){const o=new dn(i.dsl);await this.updateCurrent(o),Ct(this.history)}}async publish(){const e=this.project.value;if(e){const t={...e.toDsl(),pages:e.getPages()};await this.service.publish(t)&&We("整站发布成功","success")}}async publishCurrent(){const e=this.project.value,t=e?.currentFile;if(e&&t){const r={...e.toDsl(),pages:e.getPages()};await this.service.publishFile(r,t)&&We("发布成功","success")}}dispose(){this.emitter.all.clear(),this.simulator.dispose(),this.app&&(this.app.unmount(),this.container=void 0)}async openFile(e){const t=this.project.value,r=this.skeleton?.getRegion("Apps"),i=e||t?.homepage;if(!t||!r||!i)return;const o=t.getPage(i);o&&!o.raw&&(r.regionRef?.setActive("Pages"),this.simulator.ready(()=>{t.active(o)}));const a=t.getBlock(i);a&&(r.regionRef?.setActive("Blocks"),this.simulator?.ready(()=>{t.active(a)}))}}function Le(){const n=Jt(ed,null);return n||Ge.error("VTJEngine is not exist"),n}const Et=D({name:"RegionWrapper",props:{region:{type:String,required:!0}},setup(){return{regionRef:B()}},render(){const n=As[this.region]||As.EmptyRegion;return Re(n,{...this.$props,...this.$attrs,ref:"regionRef"})}}),Pt=D({name:"WidgetWrapper",props:{region:{type:String,required:!0},widget:{type:Object,required:!0}},setup(){return{widgetRef:B()}},render(){return Re(this.widget.component,{...this.widget.props,...this.$props,...this.$attrs,ref:"widgetRef"})}}),_x=D({name:"SkeletonWrapper",setup(){const n=B(),e=Le(),t=B({});return{skeletonRef:n,engine:e,widgets:t}},mounted(){this.engine.skeleton=this},render(){return Re(Sx,{...this.$props,...this.$attrs,ref:"skeletonRef"})},methods:{getRegion(n){return this.skeletonRef[n.toLowerCase()]},toggleCollapse(n){if(this.skeletonRef){const e=this.skeletonRef.collapsed;this.skeletonRef.collapsed=n??!e}},settable(n){this.skeletonRef&&(this.skeletonRef.settable=n)},getWidgets(n){const e=this.getRegion(n);return e?Vo(e.regionRef?.widgetsRef||[]):[]},getWidget(n){const e=Zc.get(n);if(!e){Ge.warn(`widget [ ${n} ] is not exsit`);return}return this.getWidgets(e.region).find(t=>t.widget.name===n)},openPreview(n){this.skeletonRef&&(this.skeletonRef.isPreview=!0)},closePreview(){this.skeletonRef&&(this.skeletonRef.isPreview=!1)}}}),he=D({name:"SetterWrapper",props:{context:{type:Object,default:null},current:{type:Object,default:null},name:String,label:String,title:String,value:{type:[String,Object,Array,Number,Boolean],default:void 0},setters:{type:[String,Object,Array],required:!0,default(){return[]}},options:{type:Array,default(){return[]}},variable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1}},computed:{computedSetters(){return(Array.isArray(this.setters)?this.setters:[this.setters]).map(n=>{let e;if(typeof n=="string")return e=this.getSetter(n),{component:zt(e.component),name:e.name,label:n,props:e.props||{}};{const t=n;return e=this.getSetter(t.name),{component:zt(t.component||e.component),name:t.name,label:t.label||t.name,props:Object.assign(e.props||{},t.props)}}})},computedOptions(){return(this.options||[]).map(n=>typeof n=="string"?{label:n,value:n}:n)},defaultSetter(){const{value:n,computedSetters:e}=this;let t=typeof n;t==="Object"&&(Array.isArray(n)?t="Array":Pe(n)?t="Object":Zn(n)&&(t="Function"));const r=kr.getByType(t)||[];return r.length?(e.find(i=>r.includes(i.name))||e[0])?.name:e[0]?.name}},render(){const{context:n,current:e,name:t,label:r,title:i,value:o,computedSetters:a,computedOptions:s,variable:l,changeValue:u,defaultSetter:c,removable:p,onRemove:m}=this;return Re(Ax,{context:n,current:e,name:t,label:r,title:i,setters:a,defaultSetter:c,variable:l,value:o,removable:p,options:s,onChange:u,onRemove:m})},emits:["change","remove"],methods:{getSetter(n){return typeof n=="string"?kr.get(n)||kr.defaultSetter:n},changeValue(n){this.$emit("change",this.name,n)},onRemove(n){this.$emit("remove",n)}}}),Sx=D({name:"Skeletion",__name:"skeleton",props:{headerHeight:{default:"36px"},leftWidth:{default:"400px"},rightWidth:{default:"350px"},footerHeight:{default:"20px"}},setup(n,{expose:e}){const t=n,r=B(!1),i=B(parseInt(t.leftWidth)),o=B(parseInt(t.rightWidth)),a={dirs:["e"],maxWidth:600,minWidth:49,onResizing(w,_){i.value=_.elementWidth.value},onEnd(w,_){i.value=_.elementWidth.value}},s={dirs:["w"],maxWidth:600,minWidth:2,onResizing(w,_){o.value=_.elementWidth.value},onEnd(w,_){o.value=_.elementWidth.value}},l=B(),u=B(),c=B(),p=B(),m=B(),h=B(),f=B(),v=B(),g=B(!1),j=B(!1);return e({brand:l,toolbar:u,actions:c,apps:p,workspace:m,settings:h,status:f,collapsed:g,settable:j,leftWidth:i,rightWidth:o,preview:v,isPreview:r}),(w,_)=>(y(),V(d($d),{locale:d(Cd)},{default:k(()=>[b(d(Zo),{class:"v-skeleton"},{default:k(()=>[b(d(kd),{class:"v-skeleton__header",height:w.headerHeight},{default:k(()=>[b(d(Et),{ref_key:"brand",ref:l,region:"Brand"},null,512),b(d(Et),{ref_key:"toolbar",ref:u,region:"Toolbar",preview:r.value},null,8,["preview"]),b(d(Et),{ref_key:"actions",ref:c,region:"Actions"},null,512)]),_:1},8,["height"]),b(d(Zo),{class:"v-skeleton__wrapper"},{default:k(()=>[r.value?I("",!0):xt((y(),V(d(ea),{key:0,width:t.leftWidth,class:de(["v-skeleton__left",{"is-collapsed":g.value}])},{default:k(()=>[b(d(Et),{ref_key:"apps",ref:p,region:"Apps"},null,512)]),_:1},8,["width","class"])),[[d(Gi),a]]),b(d(jd),{class:"v-skeleton__main"},{default:k(()=>[r.value?(y(),V(d(Et),{key:0,ref_key:"preview",ref:v,region:"Preview",preview:r.value},null,8,["preview"])):I("",!0),xt(b(d(Et),{ref_key:"workspace",ref:m,region:"Workspace"},null,512),[[Kt,!r.value]])]),_:1}),r.value?I("",!0):xt((y(),V(d(ea),{key:1,width:t.rightWidth,class:"v-skeleton__right"},{default:k(()=>[b(d(Et),{ref_key:"settings",ref:h,region:"Settings"},null,512)]),_:1},8,["width"])),[[Kt,j.value],[d(Gi),s]])]),_:1}),r.value?I("",!0):(y(),V(d(Vd),{key:0,class:"v-skeleton__footer",height:w.footerHeight},{default:k(()=>[b(d(Et),{ref_key:"status",ref:f,region:"Status"},null,512)]),_:1},8,["height"]))]),_:1})]),_:1},8,["locale"]))}}),kx={key:1},jx={class:"v-setter__content"},Vx={key:0,class:"v-setter__input"},Cx={class:"v-setter__action"},$x="{{",Ex="}}",Ax=D({__name:"setter",props:{context:{},current:{},name:{},label:{default:""},title:{},setters:{},variable:{type:Boolean,default:!0},value:{},options:{default:()=>[]},defaultSetter:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=B(!1),o=B(""),a=B(t.setters.find(j=>j.name===t.defaultSetter)||t.setters[0]),s=B(t.value),l=O(()=>!!Pe(s.value)),u={[a.value.name]:s.value},c=j=>{u[a.value.name]=s.value,a.value=j,s.value=u[j.name]??void 0,p(s.value)};se(()=>t.value,()=>{s.value=t.value}),se(()=>t.defaultSetter,()=>{a.value=t.setters.find(j=>j.name===t.defaultSetter)||t.setters[0]});const p=j=>{r("change",j)},m=()=>{r("remove",t.name)},h=()=>{i.value=!0,o.value=Pe(s.value)?s.value.value:""},f=()=>{i.value=!1,o.value=""},v=async j=>ze(j,t.context,!0)?(u[a.value.name]=s.value,s.value=j,r("change",j),!0):!1,g=async()=>{await kn("确定要解除绑定吗?")&&(f(),s.value=void 0,r("change",""))};return(j,w)=>(y(),V(d(no),{class:"v-setter",size:"small","label-positon":"left"},{label:k(()=>[t.title?(y(),V(d(Br),{key:0,placement:"top-start",content:t.title},{default:k(()=>[ue(te(t.label||t.name),1)]),_:1},8,["content"])):(y(),M("span",kx,te(t.label||t.name),1))]),default:k(()=>[R("div",jx,[a.value?(y(),M("div",Vx,[l.value?I("",!0):(y(),V(Ke(a.value.component),ve({key:0,current:t.current,context:t.context},a.value.props,{options:t.options,modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=_=>s.value=_),onChange:p,disabled:l.value}),null,16,["current","context","options","modelValue","disabled"])),l.value?(y(),V(d(tt),{key:1,class:"v-expression-setter",disabled:"","model-value":"JSExpression"},{prefix:k(()=>[ue(te($x))]),suffix:k(()=>[ue(te(Ex))]),_:1})):I("",!0)])):I("",!0),R("div",Cx,[t.variable?(y(),V(d(Uu),{key:0,onClick:h,class:de(["v-icon-vars",{"is-active":l.value}]),title:"绑定变量"},null,8,["class"])):I("",!0),t.setters.length>1?(y(),V(d(io),{key:1,disabled:l.value,size:"small","popper-class":"v-setter-switch",onCommand:c},{dropdown:k(()=>[b(d(ro),null,{default:k(()=>[(y(!0),M(ne,null,oe(t.setters,_=>(y(),V(d(Vr),{command:_,key:_.name},{default:k(()=>[b(d(Ao),{class:de({"is-placeholder":_.name!==a.value.name})},null,8,["class"]),ue(" "+te(_.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:k(()=>[b(d(Au),{title:"切换设置器"})]),_:1},8,["disabled"])):I("",!0),t.removable?(y(),V(d(Gn),{key:2,onClick:m,title:"删除"})):I("",!0)])]),i.value?(y(),V(d(p8),{key:0,current:t.current,context:t.context,value:o.value,modelValue:i.value,"onUpdate:modelValue":w[1]||(w[1]=_=>i.value=_),submitMethod:v,onUnbind:g},null,8,["current","context","value","modelValue"])):I("",!0)]),_:1}))}}),Tx={class:"v-empty-region"},Ox=D({name:"EmptyRegion",__name:"empty",props:{region:{}},setup(n){return(e,t)=>(y(),M("div",Tx,"找不到符合【"+te(e.region)+"】名称的区域组件",1))}}),Bx={class:"v-brand-region"},zx=D({name:"BrandRegion",inheritAttrs:!1,__name:"brand",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",Bx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),Dx={class:"v-toolbar-region"},Ix=D({name:"ToolbarRegion",__name:"toolbar",props:{region:{},preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",Dx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s,preview:o.preview},null,8,["region","widget","preview"]))),256))]))}}),Rx={class:"v-actions-region"},Mx=D({name:"ActionsRegion",inheritAttrs:!1,__name:"actions",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",Rx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),Px={class:"v-apps-region"},Nx={class:"v-apps-region__header"},Fx={class:"v-apps-region__top"},Hx={class:"v-apps-region__bottom"},Lx={class:"v-apps-region__panels"},Ux=D({name:"AppsRegion",inheritAttrs:!1,__name:"apps",props:{region:{},index:{default:0}},setup(n,{expose:e}){const t=n,r=Le(),{widgets:i,widgetsRef:o}=Mt(t.region),a=O(()=>i.value.filter(h=>h.openType==="panel")),s=O(()=>i.value.filter(h=>h.openType!=="panel")),l=a.value[t.index],u=B(l),c=B(l),p=h=>{u.value=h,c.value=c.value?.name===h.name?null:h},m=h=>{h.openType==="link"&&h.url&&window.open(h.url),h.openType==="dialog"&&$c({title:h.label,icon:h.icon,...h.props,content:h.component})};return se(c,h=>{r.skeleton?.toggleCollapse(!h)}),e({widgets:i,widgetsRef:o,setActive:h=>{const f=a.value.find(v=>v.name===h);u.value=f,c.value=f}}),(h,f)=>(y(),M("div",Px,[R("div",Nx,[R("div",Fx,[(y(!0),M(ne,null,oe(a.value,v=>(y(),V(d(Es),{key:`icon-${v.name}`,icon:v.icon,label:v.label,active:u.value?.name===v.name,open:c.value?.name===v.name,onClick:g=>p(v)},null,8,["icon","label","active","open","onClick"]))),128))]),R("div",Hx,[(y(!0),M(ne,null,oe(s.value,v=>(y(),V(d(Es),{key:`icon-${v.name}`,icon:v.icon,label:v.label,onClick:g=>m(v)},null,8,["icon","label","onClick"]))),128))])]),R("div",Lx,[(y(!0),M(ne,null,oe(a.value,v=>(y(),V(zs,{key:v.name},[u.value?.name===v.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:o,region:h.region,widget:v},null,8,["region","widget"])):I("",!0)],1024))),128))])]))}}),Wx=D({name:"WorkspaceRegion",__name:"workspace",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region),o=Gt(r.value.map(m=>({name:m.name,command:m.name,label:m.label,closable:!!m.closable,props:m.props||{},checked:!m.closable}))),a=O(()=>o.filter(m=>!m.closable||m.checked)),s=O(()=>o.map(m=>({...m,disabled:!m.closable}))),l=B(a.value[0]?.name),u=O(()=>o.find(m=>m.name===l.value)?.props||{}),c=m=>{const h=o.find(f=>f.name===m);h&&(h.checked=!1),l.value===m&&(l.value=a.value[0]?.name)},p=m=>{const h=o.find(f=>f.name===m.name);h&&h.closable&&(h.checked=!h.checked,h.checked&&(l.value=h.name),!h.checked&&l.value===h.name&&(l.value=a.value[0]?.name))};return e({currentTab:l,widgets:r,widgetsRef:i,openTab:(m,h={})=>{const f=o.find(v=>v.name===m);f&&(f.props=Object.assign({},f.props,h),f.checked=!0,l.value=f.name)}}),(m,h)=>(y(),V(d(Gr),{class:"v-workspace-region",items:a.value,menus:s.value,modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=f=>l.value=f),checkable:"",onRemove:c,onCommand:p},{default:k(()=>[(y(!0),M(ne,null,oe(d(r),f=>(y(),M(ne,{key:f.name},[l.value===f.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:m.region,widget:{...f,props:u.value}},null,8,["region","widget"])):I("",!0)],64))),128))]),_:1},8,["items","menus","modelValue"]))}}),Jx=D({name:"SettingsRegion",__name:"settings",props:{region:{}},setup(n,{expose:e}){const t=n,r=Le(),{current:i}=Ie(),{selected:o,isSelectBlock:a}=gt(),s=O(()=>a.value?it.Block:it.Node),{widgets:l,widgetsRef:u}=Mt(t.region,s),c=B(),p=B(!1),m=O(()=>l.value.map(g=>({name:g.name,label:g.label,actions:g.name==="Style"?[{name:"switch",icon:Pd,background:"hover"}]:void 0}))),h=O(()=>{const g=o.value?.model;return g?r.assets.componentMap.get(g.name)?.doc:null});se(i,g=>{r.skeleton?.settable(!!g)}),se(s,()=>{c.value=m.value[0]?.name},{immediate:!0}),se(c,()=>{p.value=!1});const f=()=>{if(h.value){const g=r.skeleton?.getRegion("Workspace");g&&g.regionRef.openTab("Docs",{url:h.value})}},v=g=>{g.name==="switch"&&(p.value=!p.value)};return e({widgets:l,widgetsRef:u}),(g,j)=>d(i)?(y(),V(d(ae),{key:0,class:"v-settings-region",fit:"",direction:"column"},{default:k(()=>[d(o)?(y(),V(d(ae),{key:0,flex:"",justify:"space-between",align:"center",class:"v-settings-region__header"},{default:k(()=>[b(d(ae),{class:"v-settings-region__title"},{default:k(()=>[b(d(Bo)),R("span",null,[ue(te(d(o)?.model.name)+": ",1),R("i",null,te(d(o)?.model.id),1)])]),_:1}),h.value?(y(),V(d(ae),{key:0},{default:k(()=>[b(d(Oe),{onClick:f,icon:d(Ro),mode:"text",label:"帮助"},null,8,["icon"])]),_:1})):I("",!0)]),_:1})):I("",!0),d(o)&&!d(o).model.locked?(y(),V(d(ae),{key:1,grow:"",padding:!1},{default:k(()=>[b(d(Gr),{items:m.value,modelValue:c.value,"onUpdate:modelValue":j[0]||(j[0]=w=>c.value=w),stretch:"",body:{padding:!1},onActionClick:v},{default:k(()=>[(y(!0),M(ne,null,oe(d(l),w=>(y(),M(ne,{key:w.name},[c.value===w.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:u,region:g.region,widget:d(dt)({props:{isStyleCodeMode:p.value}},w)},null,8,["region","widget"])):I("",!0)],64))),128))]),_:1},8,["items","modelValue"])]),_:1})):I("",!0),d(o)?I("",!0):(y(),V(d(Be),{key:2,description:"请在左侧画布选中节点"})),d(o)&&d(o).model.locked?(y(),V(d(Be),{key:3,"image-size":1,description:"节点已被锁定, 禁止编辑"})):I("",!0)]),_:1})):I("",!0)}}),qx={class:"v-status-region"},Kx=D({name:"StatusRegion",inheritAttrs:!1,__name:"status",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region);return e({widgets:r,widgetsRef:i}),(o,a)=>(y(),M("div",qx,[(y(!0),M(ne,null,oe(d(r),s=>(y(),V(d(Pt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:o.region,widget:s},null,8,["region","widget"]))),256))]))}}),Gx=D({name:"PreviewRegion",__name:"preview",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Mt(t.region),o=Gt(r.value.map(l=>({name:l.name,command:l.name,label:l.label,closable:!!l.closable,checked:!1}))),a=O(()=>o.filter(l=>!l.closable||l.checked)),s=B(a.value[0]?.name);return e({currentTab:s,widgets:r,widgetsRef:i}),(l,u)=>(y(),V(d(Gr),{class:"v-workspace-region",items:a.value,modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c)},{default:k(()=>[(y(!0),M(ne,null,oe(d(r),c=>(y(),V(zs,{key:c.name},[s.value===c.name?(y(),V(d(Pt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:l.region,widget:c},null,8,["region","widget"])):I("",!0)],1024))),128))]),_:1},8,["items","modelValue"]))}}),As={EmptyRegion:Ox,Brand:zx,Toolbar:Ix,Actions:Mx,Apps:Ux,Workspace:Wx,Settings:Jx,Status:Kx,Preview:Gx};export{p_ as E,d_ as I,c_ as b,Zc as j,Je as w};