@vtj/pro 0.8.2 → 0.8.3

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.
@@ -1,171 +1,171 @@
1
1
  const __vite__fileDeps=["./Editor-BKlikwSl-BkVOzfXj.js","./monaco-editor-Dg5hMj4r.js","./monaco-editor-BoaUnmrp.css","./@vue-BS4o5x1j.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{_ as e2}from"./monaco-editor-Dg5hMj4r.js";import{an as Pt,d as I,_,a4 as Aa,k as z,o as y,S as C,U as j,M as de,O as ce,P as Rt,W as Ke,G as Mt,r as D,f as oe,ab as Qt,u as d,c as M,Q as me,Z as te,a as P,X as R,Y as le,a1 as tn,L as Ni,af as fn,aa as Wn,a5 as vn,F as ne,a9 as ae,ad as kt,ae as Nt,J as Re,R as t2,t as Nr,i as or,ao as vl,w as gl,n as pt,V as ft,T as n2,D as r2,j as Ta,I as Ba,ar as Bo,aU as Fi,m as Hi,at as yl,av as i2,bD as At,$ as Zt,bB as Li,s as Ui,aC as bl}from"./@vue-BS4o5x1j.js";import{f as a2,a as Gr,b as za,c as xe,d as qe,e as o2,g as s2,h as Fn,i as Yr,v as l2,j as wl,k as c2,l as u2,m as Da,n as Fr,o as Oa,p as Ge,q as xl,r as zo,s as d2,t as Ia,u as p2,w as _l,x as h2,y as Ra,A as Ma,B as xn,C as Xr,D as m2,F as f2,G as v2,H as Jn,I as g2,J as Pa,K as nn,L as Sl,M as y2,N as Na,O as Wi,P as Ji,Q as ze,R as b2,S as w2,T as x2,U as _2,V as S2,W as Do,X as Oo,Y as k2,Z as j2,z as C2,E as V2,_ as $2,$ as kl,a0 as jl,a1 as E2}from"./element-plus-DnnaxJFP.js";import{Q as A2,w as T2,u as B2,R as z2,P as Cl,B as Vl,n as $l,S as El,D as D2,k as Al,j as O2,T as I2,M as Tl,E as Fa,d as R2,U as M2}from"./@element-plus-CekXU_7D.js";import{p as P2,q as Io,s as _n,v as N2,w as F2,x as H2,y as L2}from"./@vueuse-DwRHc_J7.js";import{v as Qr}from"./vue-BNsVu1qZ.js";import{useRoute as U2}from"./vue-router-CpoV07KG.js";import{p as Yn}from"./mockjs-CfUV2g9n.js";var W2={ENV_TYPE:"live",NODE_ENV:"production"},J2=typeof global=="object"&&global&&global.Object===Object&&global;const Bl=J2;var q2=typeof self=="object"&&self&&self.Object===Object&&self,K2=Bl||q2||Function("return this")();const ct=K2;var G2=ct.Symbol;const vt=G2;var zl=Object.prototype,Y2=zl.hasOwnProperty,X2=zl.toString,Rn=vt?vt.toStringTag:void 0;function Q2(n){var e=Y2.call(n,Rn),t=n[Rn];try{n[Rn]=void 0;var r=!0}catch{}var i=X2.call(n);return r&&(e?n[Rn]=t:delete n[Rn]),i}var Z2=Object.prototype,ed=Z2.toString;function td(n){return ed.call(n)}var nd="[object Null]",rd="[object Undefined]",Ro=vt?vt.toStringTag:void 0;function jt(n){return n==null?n===void 0?rd:nd:Ro&&Ro in Object(n)?Q2(n):td(n)}function it(n){return n!=null&&typeof n=="object"}var id="[object Symbol]";function Zr(n){return typeof n=="symbol"||it(n)&&jt(n)==id}function Dl(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 ad=Array.isArray;const lt=ad;var od=1/0,Mo=vt?vt.prototype:void 0,Po=Mo?Mo.toString:void 0;function Ol(n){if(typeof n=="string")return n;if(lt(n))return Dl(n,Ol)+"";if(Zr(n))return Po?Po.call(n):"";var e=n+"";return e=="0"&&1/n==-od?"-0":e}var sd=/\s/;function ld(n){for(var e=n.length;e--&&sd.test(n.charAt(e)););return e}var cd=/^\s+/;function ud(n){return n&&n.slice(0,ld(n)+1).replace(cd,"")}function Oe(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var No=NaN,dd=/^[-+]0x[0-9a-f]+$/i,pd=/^0b[01]+$/i,hd=/^0o[0-7]+$/i,md=parseInt;function Fo(n){if(typeof n=="number")return n;if(Zr(n))return No;if(Oe(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Oe(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ud(n);var t=pd.test(n);return t||hd.test(n)?md(n.slice(2),t?2:8):dd.test(n)?No:+n}function Il(n){return n}var fd="[object AsyncFunction]",vd="[object Function]",gd="[object GeneratorFunction]",yd="[object Proxy]";function Xn(n){if(!Oe(n))return!1;var e=jt(n);return e==vd||e==gd||e==fd||e==yd}var bd=ct["__core-js_shared__"];const mi=bd;var Ho=function(){var n=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function wd(n){return!!Ho&&Ho in n}var xd=Function.prototype,_d=xd.toString;function rn(n){if(n!=null){try{return _d.call(n)}catch{}try{return n+""}catch{}}return""}var Sd=/[\\^$.*+?()[\]{}|]/g,kd=/^\[object .+?Constructor\]$/,jd=Function.prototype,Cd=Object.prototype,Vd=jd.toString,$d=Cd.hasOwnProperty,Ed=RegExp("^"+Vd.call($d).replace(Sd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ad(n){if(!Oe(n)||wd(n))return!1;var e=Xn(n)?Ed:kd;return e.test(rn(n))}function Td(n,e){return n?.[e]}function an(n,e){var t=Td(n,e);return Ad(t)?t:void 0}var Bd=an(ct,"WeakMap");const qi=Bd;var Lo=Object.create,zd=function(){function n(){}return function(e){if(!Oe(e))return{};if(Lo)return Lo(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const Dd=zd;function Rl(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 Od(n,e){var t=-1,r=n.length;for(e=Array(r);++t<r;)e[t]=n[t];return e}var Id=800,Rd=16,Md=Date.now;function Pd(n){var e=0,t=0;return function(){var r=Md(),i=Rd-(r-t);if(t=r,i>0){if(++e>=Id)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Nd(n){return function(){return n}}var Fd=function(){try{var n=an(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Hr=Fd;var Hd=Hr?function(n,e){return Hr(n,"toString",{configurable:!0,enumerable:!1,value:Nd(e),writable:!0})}:Il;const Ld=Hd;var Ud=Pd(Ld);const Wd=Ud;function Jd(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var qd=9007199254740991,Kd=/^(?:0|[1-9]\d*)$/;function Ha(n,e){var t=typeof n;return e=e??qd,!!e&&(t=="number"||t!="symbol"&&Kd.test(n))&&n>-1&&n%1==0&&n<e}function La(n,e,t){e=="__proto__"&&Hr?Hr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function An(n,e){return n===e||n!==n&&e!==e}var Gd=Object.prototype,Yd=Gd.hasOwnProperty;function Ua(n,e,t){var r=n[e];(!(Yd.call(n,e)&&An(r,t))||t===void 0&&!(e in n))&&La(n,e,t)}function Ml(n,e,t,r){var i=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=r?r(t[s],n[s],s,t,n):void 0;l===void 0&&(l=n[s]),i?La(t,s,l):Ua(t,s,l)}return t}var Uo=Math.max;function Xd(n,e,t){return e=Uo(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,a=Uo(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=t(o),Rl(n,this,s)}}function Pl(n,e){return Wd(Xd(n,e,Il),n+"")}var Qd=9007199254740991;function Nl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Qd}function ei(n){return n!=null&&Nl(n.length)&&!Xn(n)}function Zd(n,e,t){if(!Oe(t))return!1;var r=typeof e;return(r=="number"?ei(t)&&Ha(e,t.length):r=="string"&&e in t)?An(t[e],n):!1}function Fl(n){return Pl(function(e,t){var r=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&Zd(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=t[r];s&&n(e,s,r,a)}return e})}var e1=Object.prototype;function Wa(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||e1;return n===t}function t1(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var n1="[object Arguments]";function Wo(n){return it(n)&&jt(n)==n1}var Hl=Object.prototype,r1=Hl.hasOwnProperty,i1=Hl.propertyIsEnumerable,a1=Wo(function(){return arguments}())?Wo:function(n){return it(n)&&r1.call(n,"callee")&&!i1.call(n,"callee")};const Ki=a1;function o1(){return!1}var Ll=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jo=Ll&&typeof module=="object"&&module&&!module.nodeType&&module,s1=Jo&&Jo.exports===Ll,qo=s1?ct.Buffer:void 0,l1=qo?qo.isBuffer:void 0,c1=l1||o1;const Qn=c1;var u1="[object Arguments]",d1="[object Array]",p1="[object Boolean]",h1="[object Date]",m1="[object Error]",f1="[object Function]",v1="[object Map]",g1="[object Number]",y1="[object Object]",b1="[object RegExp]",w1="[object Set]",x1="[object String]",_1="[object WeakMap]",S1="[object ArrayBuffer]",k1="[object DataView]",j1="[object Float32Array]",C1="[object Float64Array]",V1="[object Int8Array]",$1="[object Int16Array]",E1="[object Int32Array]",A1="[object Uint8Array]",T1="[object Uint8ClampedArray]",B1="[object Uint16Array]",z1="[object Uint32Array]",we={};we[j1]=we[C1]=we[V1]=we[$1]=we[E1]=we[A1]=we[T1]=we[B1]=we[z1]=!0,we[u1]=we[d1]=we[S1]=we[p1]=we[k1]=we[h1]=we[m1]=we[f1]=we[v1]=we[g1]=we[y1]=we[b1]=we[w1]=we[x1]=we[_1]=!1;function D1(n){return it(n)&&Nl(n.length)&&!!we[jt(n)]}function Ja(n){return function(e){return n(e)}}var Ul=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qn=Ul&&typeof module=="object"&&module&&!module.nodeType&&module,O1=qn&&qn.exports===Ul,fi=O1&&Bl.process,I1=function(){try{var n=qn&&qn.require&&qn.require("util").types;return n||fi&&fi.binding&&fi.binding("util")}catch{}}();const gt=I1;var Ko=gt&&gt.isTypedArray,R1=Ko?Ja(Ko):D1;const qa=R1;var M1=Object.prototype,P1=M1.hasOwnProperty;function Wl(n,e){var t=lt(n),r=!t&&Ki(n),i=!t&&!r&&Qn(n),a=!t&&!r&&!i&&qa(n),o=t||r||i||a,s=o?t1(n.length,String):[],l=s.length;for(var c in n)(e||P1.call(n,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ha(c,l)))&&s.push(c);return s}function Jl(n,e){return function(t){return n(e(t))}}var N1=Jl(Object.keys,Object);const F1=N1;var H1=Object.prototype,L1=H1.hasOwnProperty;function U1(n){if(!Wa(n))return F1(n);var e=[];for(var t in Object(n))L1.call(n,t)&&t!="constructor"&&e.push(t);return e}function ql(n){return ei(n)?Wl(n):U1(n)}function W1(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var J1=Object.prototype,q1=J1.hasOwnProperty;function K1(n){if(!Oe(n))return W1(n);var e=Wa(n),t=[];for(var r in n)r=="constructor"&&(e||!q1.call(n,r))||t.push(r);return t}function Ka(n){return ei(n)?Wl(n,!0):K1(n)}var G1=Fl(function(n,e,t,r){Ml(e,Ka(e),n,r)});const Go=G1;var Y1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X1=/^\w*$/;function Q1(n,e){if(lt(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Zr(n)?!0:X1.test(n)||!Y1.test(n)||e!=null&&n in Object(e)}var Z1=an(Object,"create");const Zn=Z1;function ep(){this.__data__=Zn?Zn(null):{},this.size=0}function tp(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var np="__lodash_hash_undefined__",rp=Object.prototype,ip=rp.hasOwnProperty;function ap(n){var e=this.__data__;if(Zn){var t=e[n];return t===np?void 0:t}return ip.call(e,n)?e[n]:void 0}var op=Object.prototype,sp=op.hasOwnProperty;function lp(n){var e=this.__data__;return Zn?e[n]!==void 0:sp.call(e,n)}var cp="__lodash_hash_undefined__";function up(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Zn&&e===void 0?cp: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=ep,Yt.prototype.delete=tp,Yt.prototype.get=ap,Yt.prototype.has=lp,Yt.prototype.set=up;function dp(){this.__data__=[],this.size=0}function ti(n,e){for(var t=n.length;t--;)if(An(n[t][0],e))return t;return-1}var pp=Array.prototype,hp=pp.splice;function mp(n){var e=this.__data__,t=ti(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():hp.call(e,t,1),--this.size,!0}function fp(n){var e=this.__data__,t=ti(e,n);return t<0?void 0:e[t][1]}function vp(n){return ti(this.__data__,n)>-1}function gp(n,e){var t=this.__data__,r=ti(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function _t(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])}}_t.prototype.clear=dp,_t.prototype.delete=mp,_t.prototype.get=fp,_t.prototype.has=vp,_t.prototype.set=gp;var yp=an(ct,"Map");const er=yp;function bp(){this.size=0,this.__data__={hash:new Yt,map:new(er||_t),string:new Yt}}function wp(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ni(n,e){var t=n.__data__;return wp(e)?t[typeof e=="string"?"string":"hash"]:t.map}function xp(n){var e=ni(this,n).delete(n);return this.size-=e?1:0,e}function _p(n){return ni(this,n).get(n)}function Sp(n){return ni(this,n).has(n)}function kp(n,e){var t=ni(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function St(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])}}St.prototype.clear=bp,St.prototype.delete=xp,St.prototype.get=_p,St.prototype.has=Sp,St.prototype.set=kp;var jp="Expected a function";function Ga(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(jp);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var o=n.apply(this,r);return t.cache=a.set(i,o)||a,o};return t.cache=new(Ga.Cache||St),t}Ga.Cache=St;var Cp=500;function Vp(n){var e=Ga(n,function(r){return t.size===Cp&&t.clear(),r}),t=e.cache;return e}var $p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ep=/\\(\\)?/g,Ap=Vp(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace($p,function(t,r,i,a){e.push(i?a.replace(Ep,"$1"):r||t)}),e});const Tp=Ap;function on(n){return n==null?"":Ol(n)}function Kl(n,e){return lt(n)?n:Q1(n,e)?[n]:Tp(on(n))}var Bp=1/0;function Gl(n){if(typeof n=="string"||Zr(n))return n;var e=n+"";return e=="0"&&1/n==-Bp?"-0":e}function zp(n,e){e=Kl(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Gl(e[t++])];return t&&t==r?n:void 0}function Ar(n,e,t){var r=n==null?void 0:zp(n,e);return r===void 0?t:r}function Dp(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var Op=Jl(Object.getPrototypeOf,Object);const Yl=Op;var Ip="[object Object]",Rp=Function.prototype,Mp=Object.prototype,Xl=Rp.toString,Pp=Mp.hasOwnProperty,Np=Xl.call(Object);function Ya(n){if(!it(n)||jt(n)!=Ip)return!1;var e=Yl(n);if(e===null)return!0;var t=Pp.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Xl.call(t)==Np}var Fp="[object DOMException]",Hp="[object Error]";function Ql(n){if(!it(n))return!1;var e=jt(n);return e==Hp||e==Fp||typeof n.message=="string"&&typeof n.name=="string"&&!Ya(n)}var Lp=Pl(function(n,e){try{return Rl(n,void 0,e)}catch(t){return Ql(t)?t:new Error(t)}});const Up=Lp;function Wp(n,e,t){var r=-1,i=n.length;t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=n[r+e];return a}function Jp(n,e,t){var r=n.length;return t=t===void 0?r:t,Wp(n,e,t)}var qp="\\ud800-\\udfff",Kp="\\u0300-\\u036f",Gp="\\ufe20-\\ufe2f",Yp="\\u20d0-\\u20ff",Xp=Kp+Gp+Yp,Qp="\\ufe0e\\ufe0f",Zp="\\u200d",eh=RegExp("["+Zp+qp+Xp+Qp+"]");function Zl(n){return eh.test(n)}function th(n){return n.split("")}var ec="\\ud800-\\udfff",nh="\\u0300-\\u036f",rh="\\ufe20-\\ufe2f",ih="\\u20d0-\\u20ff",ah=nh+rh+ih,oh="\\ufe0e\\ufe0f",sh="["+ec+"]",Gi="["+ah+"]",Yi="\\ud83c[\\udffb-\\udfff]",lh="(?:"+Gi+"|"+Yi+")",tc="[^"+ec+"]",nc="(?:\\ud83c[\\udde6-\\uddff]){2}",rc="[\\ud800-\\udbff][\\udc00-\\udfff]",ch="\\u200d",ic=lh+"?",ac="["+oh+"]?",uh="(?:"+ch+"(?:"+[tc,nc,rc].join("|")+")"+ac+ic+")*",dh=ac+ic+uh,ph="(?:"+[tc+Gi+"?",Gi,nc,rc,sh].join("|")+")",hh=RegExp(Yi+"(?="+Yi+")|"+ph+dh,"g");function mh(n){return n.match(hh)||[]}function fh(n){return Zl(n)?mh(n):th(n)}function vh(n){return function(e){e=on(e);var t=Zl(e)?fh(e):void 0,r=t?t[0]:e.charAt(0),i=t?Jp(t,1).join(""):e.slice(1);return r[n]()+i}}var gh=vh("toUpperCase");const Xa=gh;function yh(n){return Xa(on(n).toLowerCase())}function bh(n,e,t,r){var i=-1,a=n==null?0:n.length;for(r;++i<a;)t=e(t,n[i],i,n);return t}function oc(n){return function(e){return n?.[e]}}var wh={À:"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"},xh=oc(wh);const _h=xh;var Sh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kh="\\u0300-\\u036f",jh="\\ufe20-\\ufe2f",Ch="\\u20d0-\\u20ff",Vh=kh+jh+Ch,$h="["+Vh+"]",Eh=RegExp($h,"g");function Ah(n){return n=on(n),n&&n.replace(Sh,_h).replace(Eh,"")}var Th=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bh(n){return n.match(Th)||[]}var zh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Dh(n){return zh.test(n)}var sc="\\ud800-\\udfff",Oh="\\u0300-\\u036f",Ih="\\ufe20-\\ufe2f",Rh="\\u20d0-\\u20ff",Mh=Oh+Ih+Rh,lc="\\u2700-\\u27bf",cc="a-z\\xdf-\\xf6\\xf8-\\xff",Ph="\\xac\\xb1\\xd7\\xf7",Nh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fh="\\u2000-\\u206f",Hh=" \\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",uc="A-Z\\xc0-\\xd6\\xd8-\\xde",Lh="\\ufe0e\\ufe0f",dc=Ph+Nh+Fh+Hh,pc="['’]",Yo="["+dc+"]",Uh="["+Mh+"]",hc="\\d+",Wh="["+lc+"]",mc="["+cc+"]",fc="[^"+sc+dc+hc+lc+cc+uc+"]",Jh="\\ud83c[\\udffb-\\udfff]",qh="(?:"+Uh+"|"+Jh+")",Kh="[^"+sc+"]",vc="(?:\\ud83c[\\udde6-\\uddff]){2}",gc="[\\ud800-\\udbff][\\udc00-\\udfff]",pn="["+uc+"]",Gh="\\u200d",Xo="(?:"+mc+"|"+fc+")",Yh="(?:"+pn+"|"+fc+")",Qo="(?:"+pc+"(?:d|ll|m|re|s|t|ve))?",Zo="(?:"+pc+"(?:D|LL|M|RE|S|T|VE))?",yc=qh+"?",bc="["+Lh+"]?",Xh="(?:"+Gh+"(?:"+[Kh,vc,gc].join("|")+")"+bc+yc+")*",Qh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",em=bc+yc+Xh,tm="(?:"+[Wh,vc,gc].join("|")+")"+em,nm=RegExp([pn+"?"+mc+"+"+Qo+"(?="+[Yo,pn,"$"].join("|")+")",Yh+"+"+Zo+"(?="+[Yo,pn+Xo,"$"].join("|")+")",pn+"?"+Xo+"+"+Qo,pn+"+"+Zo,Zh,Qh,hc,tm].join("|"),"g");function rm(n){return n.match(nm)||[]}function im(n,e,t){return n=on(n),e=e,e===void 0?Dh(n)?rm(n):Bh(n):n.match(e)||[]}var am="['’]",om=RegExp(am,"g");function sm(n){return function(e){return bh(im(Ah(e).replace(om,"")),n,"")}}var lm=sm(function(n,e,t){return e=e.toLowerCase(),n+(t?yh(e):e)});const Kt=lm;function cm(){this.__data__=new _t,this.size=0}function um(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function dm(n){return this.__data__.get(n)}function pm(n){return this.__data__.has(n)}var hm=200;function mm(n,e){var t=this.__data__;if(t instanceof _t){var r=t.__data__;if(!er||r.length<hm-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new St(r)}return t.set(n,e),this.size=t.size,this}function ut(n){var e=this.__data__=new _t(n);this.size=e.size}ut.prototype.clear=cm,ut.prototype.delete=um,ut.prototype.get=dm,ut.prototype.has=pm,ut.prototype.set=mm;var wc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,es=wc&&typeof module=="object"&&module&&!module.nodeType&&module,fm=es&&es.exports===wc,ts=fm?ct.Buffer:void 0,ns=ts?ts.allocUnsafe:void 0;function xc(n,e){if(e)return n.slice();var t=n.length,r=ns?ns(t):new n.constructor(t);return n.copy(r),r}function vm(n,e){for(var t=-1,r=n==null?0:n.length,i=0,a=[];++t<r;){var o=n[t];e(o,t,n)&&(a[i++]=o)}return a}function gm(){return[]}var ym=Object.prototype,bm=ym.propertyIsEnumerable,rs=Object.getOwnPropertySymbols,wm=rs?function(n){return n==null?[]:(n=Object(n),vm(rs(n),function(e){return bm.call(n,e)}))}:gm;const xm=wm;function _m(n,e,t){var r=e(n);return lt(n)?r:Dp(r,t(n))}function Xi(n){return _m(n,ql,xm)}var Sm=an(ct,"DataView");const Qi=Sm;var km=an(ct,"Promise");const Zi=km;var jm=an(ct,"Set");const ea=jm;var is="[object Map]",Cm="[object Object]",as="[object Promise]",os="[object Set]",ss="[object WeakMap]",ls="[object DataView]",Vm=rn(Qi),$m=rn(er),Em=rn(Zi),Am=rn(ea),Tm=rn(qi),Gt=jt;(Qi&&Gt(new Qi(new ArrayBuffer(1)))!=ls||er&&Gt(new er)!=is||Zi&&Gt(Zi.resolve())!=as||ea&&Gt(new ea)!=os||qi&&Gt(new qi)!=ss)&&(Gt=function(n){var e=jt(n),t=e==Cm?n.constructor:void 0,r=t?rn(t):"";if(r)switch(r){case Vm:return ls;case $m:return is;case Em:return as;case Am:return os;case Tm:return ss}return e});const tr=Gt;var Bm=Object.prototype,zm=Bm.hasOwnProperty;function Dm(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&zm.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Om=ct.Uint8Array;const Lr=Om;function Qa(n){var e=new n.constructor(n.byteLength);return new Lr(e).set(new Lr(n)),e}function Im(n,e){var t=Qa(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var Rm=/\w*$/;function Mm(n){var e=new n.constructor(n.source,Rm.exec(n));return e.lastIndex=n.lastIndex,e}var cs=vt?vt.prototype:void 0,us=cs?cs.valueOf:void 0;function Pm(n){return us?Object(us.call(n)):{}}function _c(n,e){var t=e?Qa(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Nm="[object Boolean]",Fm="[object Date]",Hm="[object Map]",Lm="[object Number]",Um="[object RegExp]",Wm="[object Set]",Jm="[object String]",qm="[object Symbol]",Km="[object ArrayBuffer]",Gm="[object DataView]",Ym="[object Float32Array]",Xm="[object Float64Array]",Qm="[object Int8Array]",Zm="[object Int16Array]",ef="[object Int32Array]",tf="[object Uint8Array]",nf="[object Uint8ClampedArray]",rf="[object Uint16Array]",af="[object Uint32Array]";function of(n,e,t){var r=n.constructor;switch(e){case Km:return Qa(n);case Nm:case Fm:return new r(+n);case Gm:return Im(n);case Ym:case Xm:case Qm:case Zm:case ef:case tf:case nf:case rf:case af:return _c(n,t);case Hm:return new r;case Lm:case Jm:return new r(n);case Um:return Mm(n);case Wm:return new r;case qm:return Pm(n)}}function Sc(n){return typeof n.constructor=="function"&&!Wa(n)?Dd(Yl(n)):{}}var sf="[object Map]";function lf(n){return it(n)&&tr(n)==sf}var ds=gt&&gt.isMap,cf=ds?Ja(ds):lf;const uf=cf;var df="[object Set]";function pf(n){return it(n)&&tr(n)==df}var ps=gt&&gt.isSet,hf=ps?Ja(ps):pf;const mf=hf;var ff=1,kc="[object Arguments]",vf="[object Array]",gf="[object Boolean]",yf="[object Date]",bf="[object Error]",jc="[object Function]",wf="[object GeneratorFunction]",xf="[object Map]",_f="[object Number]",Cc="[object Object]",Sf="[object RegExp]",kf="[object Set]",jf="[object String]",Cf="[object Symbol]",Vf="[object WeakMap]",$f="[object ArrayBuffer]",Ef="[object DataView]",Af="[object Float32Array]",Tf="[object Float64Array]",Bf="[object Int8Array]",zf="[object Int16Array]",Df="[object Int32Array]",Of="[object Uint8Array]",If="[object Uint8ClampedArray]",Rf="[object Uint16Array]",Mf="[object Uint32Array]",be={};be[kc]=be[vf]=be[$f]=be[Ef]=be[gf]=be[yf]=be[Af]=be[Tf]=be[Bf]=be[zf]=be[Df]=be[xf]=be[_f]=be[Cc]=be[Sf]=be[kf]=be[jf]=be[Cf]=be[Of]=be[If]=be[Rf]=be[Mf]=!0,be[bf]=be[jc]=be[Vf]=!1;function Tr(n,e,t,r,i,a){var o,s=e&ff;if(o!==void 0)return o;if(!Oe(n))return n;var l=lt(n);if(l)o=Dm(n);else{var c=tr(n),u=c==jc||c==wf;if(Qn(n))return xc(n,s);if(c==Cc||c==kc||u&&!i)o=u?{}:Sc(n);else{if(!be[c])return i?n:{};o=of(n,c,s)}}a=new ut;var p=a.get(n);if(p)return p;a.set(n,o),mf(n)?n.forEach(function(f){o.add(Tr(f,e,t,f,n,a))}):uf(n)&&n.forEach(function(f,v){o.set(v,Tr(f,e,t,v,n,a))});var m=Xi,h=l?void 0:m(n);return Jd(h||n,function(f,v){h&&(v=f,f=n[v]),Ua(o,v,Tr(f,e,t,v,n,a))}),o}var Pf=1,Nf=4;function en(n){return Tr(n,Pf|Nf)}var Ff="__lodash_hash_undefined__";function Hf(n){return this.__data__.set(n,Ff),this}function Lf(n){return this.__data__.has(n)}function Br(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new St;++e<t;)this.add(n[e])}Br.prototype.add=Br.prototype.push=Hf,Br.prototype.has=Lf;function Uf(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 Wf(n,e){return n.has(e)}var Jf=1,qf=2;function Vc(n,e,t,r,i,a){var o=t&Jf,s=n.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(n),u=a.get(e);if(c&&u)return c==e&&u==n;var p=-1,m=!0,h=t&qf?new Br:void 0;for(a.set(n,e),a.set(e,n);++p<s;){var f=n[p],v=e[p];if(r)var g=o?r(v,f,p,e,n,a):r(f,v,p,n,e,a);if(g!==void 0){if(g)continue;m=!1;break}if(h){if(!Uf(e,function(k,b){if(!Wf(h,b)&&(f===k||i(f,k,t,r,a)))return h.push(b)})){m=!1;break}}else if(!(f===v||i(f,v,t,r,a))){m=!1;break}}return a.delete(n),a.delete(e),m}function Kf(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function Gf(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Yf=1,Xf=2,Qf="[object Boolean]",Zf="[object Date]",ev="[object Error]",tv="[object Map]",nv="[object Number]",rv="[object RegExp]",iv="[object Set]",av="[object String]",ov="[object Symbol]",sv="[object ArrayBuffer]",lv="[object DataView]",hs=vt?vt.prototype:void 0,vi=hs?hs.valueOf:void 0;function cv(n,e,t,r,i,a,o){switch(t){case lv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case sv:return!(n.byteLength!=e.byteLength||!a(new Lr(n),new Lr(e)));case Qf:case Zf:case nv:return An(+n,+e);case ev:return n.name==e.name&&n.message==e.message;case rv:case av:return n==e+"";case tv:var s=Kf;case iv:var l=r&Yf;if(s||(s=Gf),n.size!=e.size&&!l)return!1;var c=o.get(n);if(c)return c==e;r|=Xf,o.set(n,e);var u=Vc(s(n),s(e),r,i,a,o);return o.delete(n),u;case ov:if(vi)return vi.call(n)==vi.call(e)}return!1}var uv=1,dv=Object.prototype,pv=dv.hasOwnProperty;function hv(n,e,t,r,i,a){var o=t&uv,s=Xi(n),l=s.length,c=Xi(e),u=c.length;if(l!=u&&!o)return!1;for(var p=l;p--;){var m=s[p];if(!(o?m in e:pv.call(e,m)))return!1}var h=a.get(n),f=a.get(e);if(h&&f)return h==e&&f==n;var v=!0;a.set(n,e),a.set(e,n);for(var g=o;++p<l;){m=s[p];var k=n[m],b=e[m];if(r)var x=o?r(b,k,m,e,n,a):r(k,b,m,n,e,a);if(!(x===void 0?k===b||i(k,b,t,r,a):x)){v=!1;break}g||(g=m=="constructor")}if(v&&!g){var S=n.constructor,V=e.constructor;S!=V&&"constructor"in n&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof V=="function"&&V instanceof V)&&(v=!1)}return a.delete(n),a.delete(e),v}var mv=1,ms="[object Arguments]",fs="[object Array]",vr="[object Object]",fv=Object.prototype,vs=fv.hasOwnProperty;function vv(n,e,t,r,i,a){var o=lt(n),s=lt(e),l=o?fs:tr(n),c=s?fs:tr(e);l=l==ms?vr:l,c=c==ms?vr:c;var u=l==vr,p=c==vr,m=l==c;if(m&&Qn(n)){if(!Qn(e))return!1;o=!0,u=!1}if(m&&!u)return a||(a=new ut),o||qa(n)?Vc(n,e,t,r,i,a):cv(n,e,l,t,r,i,a);if(!(t&mv)){var h=u&&vs.call(n,"__wrapped__"),f=p&&vs.call(e,"__wrapped__");if(h||f){var v=h?n.value():n,g=f?e.value():e;return a||(a=new ut),i(v,g,t,r,a)}}return m?(a||(a=new ut),hv(n,e,t,r,i,a)):!1}function $c(n,e,t,r,i){return n===e?!0:n==null||e==null||!it(n)&&!it(e)?n!==n&&e!==e:vv(n,e,t,r,$c,i)}function gv(n){return function(e,t,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var yv=gv();const bv=yv;var wv=function(){return ct.Date.now()};const gi=wv;var xv="Expected a function",_v=Math.max,Sv=Math.min;function Ec(n,e,t){var r,i,a,o,s,l,c=0,u=!1,p=!1,m=!0;if(typeof n!="function")throw new TypeError(xv);e=Fo(e)||0,Oe(t)&&(u=!!t.leading,p="maxWait"in t,a=p?_v(Fo(t.maxWait)||0,e):a,m="trailing"in t?!!t.trailing:m);function h(w){var $=r,E=i;return r=i=void 0,c=w,o=n.apply(E,$),o}function f(w){return c=w,s=setTimeout(k,e),u?h(w):o}function v(w){var $=w-l,E=w-c,J=e-$;return p?Sv(J,a-E):J}function g(w){var $=w-l,E=w-c;return l===void 0||$>=e||$<0||p&&E>=a}function k(){var w=gi();if(g(w))return b(w);s=setTimeout(k,v(w))}function b(w){return s=void 0,m&&r?h(w):(r=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?o:b(gi())}function V(){var w=gi(),$=g(w);if(r=arguments,i=this,l=w,$){if(s===void 0)return f(l);if(p)return clearTimeout(s),s=setTimeout(k,e),h(l)}return s===void 0&&(s=setTimeout(k,e)),o}return V.cancel=x,V.flush=S,V}function ta(n,e,t){(t!==void 0&&!An(n[e],t)||t===void 0&&!(e in n))&&La(n,e,t)}function kv(n){return it(n)&&ei(n)}function na(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function jv(n){return Ml(n,Ka(n))}function Cv(n,e,t,r,i,a,o){var s=na(n,t),l=na(e,t),c=o.get(l);if(c){ta(n,t,c);return}var u=a?a(s,l,t+"",n,e,o):void 0,p=u===void 0;if(p){var m=lt(l),h=!m&&Qn(l),f=!m&&!h&&qa(l);u=l,m||h||f?lt(s)?u=s:kv(s)?u=Od(s):h?(p=!1,u=xc(l,!0)):f?(p=!1,u=_c(l,!0)):u=[]:Ya(l)||Ki(l)?(u=s,Ki(s)?u=jv(s):(!Oe(s)||Xn(s))&&(u=Sc(l))):p=!1}p&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),ta(n,t,u)}function Ac(n,e,t,r,i){n!==e&&bv(e,function(a,o){if(i||(i=new ut),Oe(a))Cv(n,e,o,t,Ac,r,i);else{var s=r?r(na(n,o),a,o+"",n,e,i):void 0;s===void 0&&(s=a),ta(n,o,s)}},Ka)}var Vv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$v=oc(Vv);const Ev=$v;var Tc=/[&<>"']/g,Av=RegExp(Tc.source);function Tv(n){return n=on(n),n&&Av.test(n)?n.replace(Tc,Ev):n}var Bv="[object String]";function Tn(n){return typeof n=="string"||!lt(n)&&it(n)&&jt(n)==Bv}function zv(n,e){return Dl(e,function(t){return n[t]})}gt&&gt.isArrayBuffer;gt&&gt.isDate;function Za(n,e){return $c(n,e)}var Dv=Fl(function(n,e,t){Ac(n,e,t)});const ht=Dv;function Ov(n,e,t,r){if(!Oe(n))return n;e=Kl(e,n);for(var i=-1,a=e.length,o=a-1,s=n;s!=null&&++i<a;){var l=Gl(e[i]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(i!=o){var u=s[l];c=void 0,c===void 0&&(c=Oe(u)?u:Ha(e[i+1])?[]:{})}Ua(s,l,c),s=s[l]}return n}function yi(n,e,t){return n==null?n:Ov(n,e,t)}var Bc=Object.prototype,Iv=Bc.hasOwnProperty;function gs(n,e,t,r){return n===void 0||An(n,Bc[t])&&!Iv.call(r,t)?e:n}var Rv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Mv(n){return"\\"+Rv[n]}var Pv=/<%=([\s\S]+?)%>/g;const zc=Pv;var Nv=/<%-([\s\S]+?)%>/g;const Fv=Nv;var Hv=/<%([\s\S]+?)%>/g;const Lv=Hv;var Uv={escape:Fv,evaluate:Lv,interpolate:zc,variable:"",imports:{_:{escape:Tv}}};const ys=Uv;var Wv="Invalid `variable` option passed into `_.template`",Jv=/\b__p \+= '';/g,qv=/\b(__p \+=) '' \+/g,Kv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gv=/[()=,{}\[\]\/\s]/,Yv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/($^)/,Xv=/['\n\r\u2028\u2029\\]/g,Qv=Object.prototype,bs=Qv.hasOwnProperty;function Dc(n,e,t){var r=ys.imports._.templateSettings||ys;n=on(n),e=Go({},e,r,gs);var i=Go({},e.imports,r.imports,gs),a=ql(i),o=zv(i,a),s,l,c=0,u=e.interpolate||gr,p="__p += '",m=RegExp((e.escape||gr).source+"|"+u.source+"|"+(u===zc?Yv:gr).source+"|"+(e.evaluate||gr).source+"|$","g"),h=bs.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";n.replace(m,function(g,k,b,x,S,V){return b||(b=x),p+=n.slice(c,V).replace(Xv,Mv),k&&(s=!0,p+=`' +
2
+ import{_ as e2}from"./monaco-editor-Dg5hMj4r.js";import{an as Nt,d as I,_,a4 as Aa,k as z,o as y,S as V,U as j,M as de,O as ce,P as Rt,W as Ke,G as Pt,r as D,f as oe,ab as Zt,u as d,c as R,Q as me,Z as te,a as P,X as M,Y as le,a1 as nn,L as Ni,af as Ot,aa as Wn,a5 as vn,F as ne,a9 as ae,ad as kt,ae as Ft,J as Me,R as t2,t as Nr,i as or,ao as vl,w as gl,n as pt,V as ft,T as n2,D as r2,j as Ta,I as Ba,ar as Bo,aU as Fi,m as Hi,at as yl,av as i2,bD as At,$ as en,bB as Li,s as Ui,aC as bl}from"./@vue-BS4o5x1j.js";import{f as a2,a as Gr,b as za,c as xe,d as qe,e as o2,g as s2,h as Fn,i as Yr,v as l2,j as wl,k as c2,l as u2,m as Da,n as Fr,o as Oa,p as Ge,q as xl,r as zo,s as d2,t as Ia,u as p2,w as _l,x as h2,y as Ma,A as Ra,B as xn,C as Xr,D as m2,F as f2,G as v2,H as Jn,I as g2,J as Pa,K as rn,L as Sl,M as y2,N as Na,O as Wi,P as Ji,Q as ze,R as b2,S as w2,T as x2,U as _2,V as S2,W as Do,X as Oo,Y as k2,Z as j2,z as V2,E as C2,_ as E2,$ as kl,a0 as jl,a1 as $2}from"./element-plus-DNWc1g74.js";import{Q as A2,w as T2,u as B2,R as z2,P as Vl,B as Cl,n as El,S as $l,D as D2,k as Al,j as O2,T as I2,M as Tl,U as M2,E as Fa,d as R2,V as P2}from"./@element-plus-EG0dF-dt.js";import{p as N2,q as Io,s as _n,v as F2,w as H2,x as L2,y as U2}from"./@vueuse-DwRHc_J7.js";import{v as Qr}from"./vue-BNsVu1qZ.js";import{useRoute as W2}from"./vue-router-CpoV07KG.js";import{m as Yn}from"./mockjs-BuqhTJ_Z.js";var J2={ENV_TYPE:"live",NODE_ENV:"production"},q2=typeof global=="object"&&global&&global.Object===Object&&global;const Bl=q2;var K2=typeof self=="object"&&self&&self.Object===Object&&self,G2=Bl||K2||Function("return this")();const ct=G2;var Y2=ct.Symbol;const vt=Y2;var zl=Object.prototype,X2=zl.hasOwnProperty,Q2=zl.toString,Mn=vt?vt.toStringTag:void 0;function Z2(n){var e=X2.call(n,Mn),t=n[Mn];try{n[Mn]=void 0;var r=!0}catch{}var i=Q2.call(n);return r&&(e?n[Mn]=t:delete n[Mn]),i}var ed=Object.prototype,td=ed.toString;function nd(n){return td.call(n)}var rd="[object Null]",id="[object Undefined]",Mo=vt?vt.toStringTag:void 0;function jt(n){return n==null?n===void 0?id:rd:Mo&&Mo in Object(n)?Z2(n):nd(n)}function it(n){return n!=null&&typeof n=="object"}var ad="[object Symbol]";function Zr(n){return typeof n=="symbol"||it(n)&&jt(n)==ad}function Dl(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 od=Array.isArray;const lt=od;var sd=1/0,Ro=vt?vt.prototype:void 0,Po=Ro?Ro.toString:void 0;function Ol(n){if(typeof n=="string")return n;if(lt(n))return Dl(n,Ol)+"";if(Zr(n))return Po?Po.call(n):"";var e=n+"";return e=="0"&&1/n==-sd?"-0":e}var ld=/\s/;function cd(n){for(var e=n.length;e--&&ld.test(n.charAt(e)););return e}var ud=/^\s+/;function dd(n){return n&&n.slice(0,cd(n)+1).replace(ud,"")}function Oe(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var No=NaN,pd=/^[-+]0x[0-9a-f]+$/i,hd=/^0b[01]+$/i,md=/^0o[0-7]+$/i,fd=parseInt;function Fo(n){if(typeof n=="number")return n;if(Zr(n))return No;if(Oe(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Oe(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=dd(n);var t=hd.test(n);return t||md.test(n)?fd(n.slice(2),t?2:8):pd.test(n)?No:+n}function Il(n){return n}var vd="[object AsyncFunction]",gd="[object Function]",yd="[object GeneratorFunction]",bd="[object Proxy]";function Xn(n){if(!Oe(n))return!1;var e=jt(n);return e==gd||e==yd||e==vd||e==bd}var wd=ct["__core-js_shared__"];const mi=wd;var Ho=function(){var n=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function xd(n){return!!Ho&&Ho in n}var _d=Function.prototype,Sd=_d.toString;function an(n){if(n!=null){try{return Sd.call(n)}catch{}try{return n+""}catch{}}return""}var kd=/[\\^$.*+?()[\]{}|]/g,jd=/^\[object .+?Constructor\]$/,Vd=Function.prototype,Cd=Object.prototype,Ed=Vd.toString,$d=Cd.hasOwnProperty,Ad=RegExp("^"+Ed.call($d).replace(kd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Td(n){if(!Oe(n)||xd(n))return!1;var e=Xn(n)?Ad:jd;return e.test(an(n))}function Bd(n,e){return n?.[e]}function on(n,e){var t=Bd(n,e);return Td(t)?t:void 0}var zd=on(ct,"WeakMap");const qi=zd;var Lo=Object.create,Dd=function(){function n(){}return function(e){if(!Oe(e))return{};if(Lo)return Lo(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const Od=Dd;function Ml(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 Id(n,e){var t=-1,r=n.length;for(e=Array(r);++t<r;)e[t]=n[t];return e}var Md=800,Rd=16,Pd=Date.now;function Nd(n){var e=0,t=0;return function(){var r=Pd(),i=Rd-(r-t);if(t=r,i>0){if(++e>=Md)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Fd(n){return function(){return n}}var Hd=function(){try{var n=on(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Hr=Hd;var Ld=Hr?function(n,e){return Hr(n,"toString",{configurable:!0,enumerable:!1,value:Fd(e),writable:!0})}:Il;const Ud=Ld;var Wd=Nd(Ud);const Jd=Wd;function qd(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Kd=9007199254740991,Gd=/^(?:0|[1-9]\d*)$/;function Ha(n,e){var t=typeof n;return e=e??Kd,!!e&&(t=="number"||t!="symbol"&&Gd.test(n))&&n>-1&&n%1==0&&n<e}function La(n,e,t){e=="__proto__"&&Hr?Hr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function An(n,e){return n===e||n!==n&&e!==e}var Yd=Object.prototype,Xd=Yd.hasOwnProperty;function Ua(n,e,t){var r=n[e];(!(Xd.call(n,e)&&An(r,t))||t===void 0&&!(e in n))&&La(n,e,t)}function Rl(n,e,t,r){var i=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=r?r(t[s],n[s],s,t,n):void 0;l===void 0&&(l=n[s]),i?La(t,s,l):Ua(t,s,l)}return t}var Uo=Math.max;function Qd(n,e,t){return e=Uo(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,a=Uo(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=t(o),Ml(n,this,s)}}function Pl(n,e){return Jd(Qd(n,e,Il),n+"")}var Zd=9007199254740991;function Nl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Zd}function ei(n){return n!=null&&Nl(n.length)&&!Xn(n)}function e1(n,e,t){if(!Oe(t))return!1;var r=typeof e;return(r=="number"?ei(t)&&Ha(e,t.length):r=="string"&&e in t)?An(t[e],n):!1}function Fl(n){return Pl(function(e,t){var r=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&e1(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=t[r];s&&n(e,s,r,a)}return e})}var t1=Object.prototype;function Wa(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||t1;return n===t}function n1(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var r1="[object Arguments]";function Wo(n){return it(n)&&jt(n)==r1}var Hl=Object.prototype,i1=Hl.hasOwnProperty,a1=Hl.propertyIsEnumerable,o1=Wo(function(){return arguments}())?Wo:function(n){return it(n)&&i1.call(n,"callee")&&!a1.call(n,"callee")};const Ki=o1;function s1(){return!1}var Ll=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jo=Ll&&typeof module=="object"&&module&&!module.nodeType&&module,l1=Jo&&Jo.exports===Ll,qo=l1?ct.Buffer:void 0,c1=qo?qo.isBuffer:void 0,u1=c1||s1;const Qn=u1;var d1="[object Arguments]",p1="[object Array]",h1="[object Boolean]",m1="[object Date]",f1="[object Error]",v1="[object Function]",g1="[object Map]",y1="[object Number]",b1="[object Object]",w1="[object RegExp]",x1="[object Set]",_1="[object String]",S1="[object WeakMap]",k1="[object ArrayBuffer]",j1="[object DataView]",V1="[object Float32Array]",C1="[object Float64Array]",E1="[object Int8Array]",$1="[object Int16Array]",A1="[object Int32Array]",T1="[object Uint8Array]",B1="[object Uint8ClampedArray]",z1="[object Uint16Array]",D1="[object Uint32Array]",we={};we[V1]=we[C1]=we[E1]=we[$1]=we[A1]=we[T1]=we[B1]=we[z1]=we[D1]=!0,we[d1]=we[p1]=we[k1]=we[h1]=we[j1]=we[m1]=we[f1]=we[v1]=we[g1]=we[y1]=we[b1]=we[w1]=we[x1]=we[_1]=we[S1]=!1;function O1(n){return it(n)&&Nl(n.length)&&!!we[jt(n)]}function Ja(n){return function(e){return n(e)}}var Ul=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qn=Ul&&typeof module=="object"&&module&&!module.nodeType&&module,I1=qn&&qn.exports===Ul,fi=I1&&Bl.process,M1=function(){try{var n=qn&&qn.require&&qn.require("util").types;return n||fi&&fi.binding&&fi.binding("util")}catch{}}();const gt=M1;var Ko=gt&&gt.isTypedArray,R1=Ko?Ja(Ko):O1;const qa=R1;var P1=Object.prototype,N1=P1.hasOwnProperty;function Wl(n,e){var t=lt(n),r=!t&&Ki(n),i=!t&&!r&&Qn(n),a=!t&&!r&&!i&&qa(n),o=t||r||i||a,s=o?n1(n.length,String):[],l=s.length;for(var c in n)(e||N1.call(n,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ha(c,l)))&&s.push(c);return s}function Jl(n,e){return function(t){return n(e(t))}}var F1=Jl(Object.keys,Object);const H1=F1;var L1=Object.prototype,U1=L1.hasOwnProperty;function W1(n){if(!Wa(n))return H1(n);var e=[];for(var t in Object(n))U1.call(n,t)&&t!="constructor"&&e.push(t);return e}function ql(n){return ei(n)?Wl(n):W1(n)}function J1(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var q1=Object.prototype,K1=q1.hasOwnProperty;function G1(n){if(!Oe(n))return J1(n);var e=Wa(n),t=[];for(var r in n)r=="constructor"&&(e||!K1.call(n,r))||t.push(r);return t}function Ka(n){return ei(n)?Wl(n,!0):G1(n)}var Y1=Fl(function(n,e,t,r){Rl(e,Ka(e),n,r)});const Go=Y1;var X1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q1=/^\w*$/;function Z1(n,e){if(lt(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Zr(n)?!0:Q1.test(n)||!X1.test(n)||e!=null&&n in Object(e)}var ep=on(Object,"create");const Zn=ep;function tp(){this.__data__=Zn?Zn(null):{},this.size=0}function np(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var rp="__lodash_hash_undefined__",ip=Object.prototype,ap=ip.hasOwnProperty;function op(n){var e=this.__data__;if(Zn){var t=e[n];return t===rp?void 0:t}return ap.call(e,n)?e[n]:void 0}var sp=Object.prototype,lp=sp.hasOwnProperty;function cp(n){var e=this.__data__;return Zn?e[n]!==void 0:lp.call(e,n)}var up="__lodash_hash_undefined__";function dp(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Zn&&e===void 0?up:e,this}function Xt(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])}}Xt.prototype.clear=tp,Xt.prototype.delete=np,Xt.prototype.get=op,Xt.prototype.has=cp,Xt.prototype.set=dp;function pp(){this.__data__=[],this.size=0}function ti(n,e){for(var t=n.length;t--;)if(An(n[t][0],e))return t;return-1}var hp=Array.prototype,mp=hp.splice;function fp(n){var e=this.__data__,t=ti(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():mp.call(e,t,1),--this.size,!0}function vp(n){var e=this.__data__,t=ti(e,n);return t<0?void 0:e[t][1]}function gp(n){return ti(this.__data__,n)>-1}function yp(n,e){var t=this.__data__,r=ti(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function _t(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])}}_t.prototype.clear=pp,_t.prototype.delete=fp,_t.prototype.get=vp,_t.prototype.has=gp,_t.prototype.set=yp;var bp=on(ct,"Map");const er=bp;function wp(){this.size=0,this.__data__={hash:new Xt,map:new(er||_t),string:new Xt}}function xp(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ni(n,e){var t=n.__data__;return xp(e)?t[typeof e=="string"?"string":"hash"]:t.map}function _p(n){var e=ni(this,n).delete(n);return this.size-=e?1:0,e}function Sp(n){return ni(this,n).get(n)}function kp(n){return ni(this,n).has(n)}function jp(n,e){var t=ni(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function St(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])}}St.prototype.clear=wp,St.prototype.delete=_p,St.prototype.get=Sp,St.prototype.has=kp,St.prototype.set=jp;var Vp="Expected a function";function Ga(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Vp);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var o=n.apply(this,r);return t.cache=a.set(i,o)||a,o};return t.cache=new(Ga.Cache||St),t}Ga.Cache=St;var Cp=500;function Ep(n){var e=Ga(n,function(r){return t.size===Cp&&t.clear(),r}),t=e.cache;return e}var $p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ap=/\\(\\)?/g,Tp=Ep(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace($p,function(t,r,i,a){e.push(i?a.replace(Ap,"$1"):r||t)}),e});const Bp=Tp;function sn(n){return n==null?"":Ol(n)}function Kl(n,e){return lt(n)?n:Z1(n,e)?[n]:Bp(sn(n))}var zp=1/0;function Gl(n){if(typeof n=="string"||Zr(n))return n;var e=n+"";return e=="0"&&1/n==-zp?"-0":e}function Dp(n,e){e=Kl(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[Gl(e[t++])];return t&&t==r?n:void 0}function Ar(n,e,t){var r=n==null?void 0:Dp(n,e);return r===void 0?t:r}function Op(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var Ip=Jl(Object.getPrototypeOf,Object);const Yl=Ip;var Mp="[object Object]",Rp=Function.prototype,Pp=Object.prototype,Xl=Rp.toString,Np=Pp.hasOwnProperty,Fp=Xl.call(Object);function Ya(n){if(!it(n)||jt(n)!=Mp)return!1;var e=Yl(n);if(e===null)return!0;var t=Np.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Xl.call(t)==Fp}var Hp="[object DOMException]",Lp="[object Error]";function Ql(n){if(!it(n))return!1;var e=jt(n);return e==Lp||e==Hp||typeof n.message=="string"&&typeof n.name=="string"&&!Ya(n)}var Up=Pl(function(n,e){try{return Ml(n,void 0,e)}catch(t){return Ql(t)?t:new Error(t)}});const Wp=Up;function Jp(n,e,t){var r=-1,i=n.length;t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=n[r+e];return a}function qp(n,e,t){var r=n.length;return t=t===void 0?r:t,Jp(n,e,t)}var Kp="\\ud800-\\udfff",Gp="\\u0300-\\u036f",Yp="\\ufe20-\\ufe2f",Xp="\\u20d0-\\u20ff",Qp=Gp+Yp+Xp,Zp="\\ufe0e\\ufe0f",eh="\\u200d",th=RegExp("["+eh+Kp+Qp+Zp+"]");function Zl(n){return th.test(n)}function nh(n){return n.split("")}var ec="\\ud800-\\udfff",rh="\\u0300-\\u036f",ih="\\ufe20-\\ufe2f",ah="\\u20d0-\\u20ff",oh=rh+ih+ah,sh="\\ufe0e\\ufe0f",lh="["+ec+"]",Gi="["+oh+"]",Yi="\\ud83c[\\udffb-\\udfff]",ch="(?:"+Gi+"|"+Yi+")",tc="[^"+ec+"]",nc="(?:\\ud83c[\\udde6-\\uddff]){2}",rc="[\\ud800-\\udbff][\\udc00-\\udfff]",uh="\\u200d",ic=ch+"?",ac="["+sh+"]?",dh="(?:"+uh+"(?:"+[tc,nc,rc].join("|")+")"+ac+ic+")*",ph=ac+ic+dh,hh="(?:"+[tc+Gi+"?",Gi,nc,rc,lh].join("|")+")",mh=RegExp(Yi+"(?="+Yi+")|"+hh+ph,"g");function fh(n){return n.match(mh)||[]}function vh(n){return Zl(n)?fh(n):nh(n)}function gh(n){return function(e){e=sn(e);var t=Zl(e)?vh(e):void 0,r=t?t[0]:e.charAt(0),i=t?qp(t,1).join(""):e.slice(1);return r[n]()+i}}var yh=gh("toUpperCase");const Xa=yh;function bh(n){return Xa(sn(n).toLowerCase())}function wh(n,e,t,r){var i=-1,a=n==null?0:n.length;for(r;++i<a;)t=e(t,n[i],i,n);return t}function oc(n){return function(e){return n?.[e]}}var xh={À:"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"},_h=oc(xh);const Sh=_h;var kh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jh="\\u0300-\\u036f",Vh="\\ufe20-\\ufe2f",Ch="\\u20d0-\\u20ff",Eh=jh+Vh+Ch,$h="["+Eh+"]",Ah=RegExp($h,"g");function Th(n){return n=sn(n),n&&n.replace(kh,Sh).replace(Ah,"")}var Bh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function zh(n){return n.match(Bh)||[]}var Dh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Oh(n){return Dh.test(n)}var sc="\\ud800-\\udfff",Ih="\\u0300-\\u036f",Mh="\\ufe20-\\ufe2f",Rh="\\u20d0-\\u20ff",Ph=Ih+Mh+Rh,lc="\\u2700-\\u27bf",cc="a-z\\xdf-\\xf6\\xf8-\\xff",Nh="\\xac\\xb1\\xd7\\xf7",Fh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hh="\\u2000-\\u206f",Lh=" \\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",uc="A-Z\\xc0-\\xd6\\xd8-\\xde",Uh="\\ufe0e\\ufe0f",dc=Nh+Fh+Hh+Lh,pc="['’]",Yo="["+dc+"]",Wh="["+Ph+"]",hc="\\d+",Jh="["+lc+"]",mc="["+cc+"]",fc="[^"+sc+dc+hc+lc+cc+uc+"]",qh="\\ud83c[\\udffb-\\udfff]",Kh="(?:"+Wh+"|"+qh+")",Gh="[^"+sc+"]",vc="(?:\\ud83c[\\udde6-\\uddff]){2}",gc="[\\ud800-\\udbff][\\udc00-\\udfff]",hn="["+uc+"]",Yh="\\u200d",Xo="(?:"+mc+"|"+fc+")",Xh="(?:"+hn+"|"+fc+")",Qo="(?:"+pc+"(?:d|ll|m|re|s|t|ve))?",Zo="(?:"+pc+"(?:D|LL|M|RE|S|T|VE))?",yc=Kh+"?",bc="["+Uh+"]?",Qh="(?:"+Yh+"(?:"+[Gh,vc,gc].join("|")+")"+bc+yc+")*",Zh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",em="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tm=bc+yc+Qh,nm="(?:"+[Jh,vc,gc].join("|")+")"+tm,rm=RegExp([hn+"?"+mc+"+"+Qo+"(?="+[Yo,hn,"$"].join("|")+")",Xh+"+"+Zo+"(?="+[Yo,hn+Xo,"$"].join("|")+")",hn+"?"+Xo+"+"+Qo,hn+"+"+Zo,em,Zh,hc,nm].join("|"),"g");function im(n){return n.match(rm)||[]}function am(n,e,t){return n=sn(n),e=e,e===void 0?Oh(n)?im(n):zh(n):n.match(e)||[]}var om="['’]",sm=RegExp(om,"g");function lm(n){return function(e){return wh(am(Th(e).replace(sm,"")),n,"")}}var cm=lm(function(n,e,t){return e=e.toLowerCase(),n+(t?bh(e):e)});const Gt=cm;function um(){this.__data__=new _t,this.size=0}function dm(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function pm(n){return this.__data__.get(n)}function hm(n){return this.__data__.has(n)}var mm=200;function fm(n,e){var t=this.__data__;if(t instanceof _t){var r=t.__data__;if(!er||r.length<mm-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new St(r)}return t.set(n,e),this.size=t.size,this}function ut(n){var e=this.__data__=new _t(n);this.size=e.size}ut.prototype.clear=um,ut.prototype.delete=dm,ut.prototype.get=pm,ut.prototype.has=hm,ut.prototype.set=fm;var wc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,es=wc&&typeof module=="object"&&module&&!module.nodeType&&module,vm=es&&es.exports===wc,ts=vm?ct.Buffer:void 0,ns=ts?ts.allocUnsafe:void 0;function xc(n,e){if(e)return n.slice();var t=n.length,r=ns?ns(t):new n.constructor(t);return n.copy(r),r}function gm(n,e){for(var t=-1,r=n==null?0:n.length,i=0,a=[];++t<r;){var o=n[t];e(o,t,n)&&(a[i++]=o)}return a}function ym(){return[]}var bm=Object.prototype,wm=bm.propertyIsEnumerable,rs=Object.getOwnPropertySymbols,xm=rs?function(n){return n==null?[]:(n=Object(n),gm(rs(n),function(e){return wm.call(n,e)}))}:ym;const _m=xm;function Sm(n,e,t){var r=e(n);return lt(n)?r:Op(r,t(n))}function Xi(n){return Sm(n,ql,_m)}var km=on(ct,"DataView");const Qi=km;var jm=on(ct,"Promise");const Zi=jm;var Vm=on(ct,"Set");const ea=Vm;var is="[object Map]",Cm="[object Object]",as="[object Promise]",os="[object Set]",ss="[object WeakMap]",ls="[object DataView]",Em=an(Qi),$m=an(er),Am=an(Zi),Tm=an(ea),Bm=an(qi),Yt=jt;(Qi&&Yt(new Qi(new ArrayBuffer(1)))!=ls||er&&Yt(new er)!=is||Zi&&Yt(Zi.resolve())!=as||ea&&Yt(new ea)!=os||qi&&Yt(new qi)!=ss)&&(Yt=function(n){var e=jt(n),t=e==Cm?n.constructor:void 0,r=t?an(t):"";if(r)switch(r){case Em:return ls;case $m:return is;case Am:return as;case Tm:return os;case Bm:return ss}return e});const tr=Yt;var zm=Object.prototype,Dm=zm.hasOwnProperty;function Om(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&Dm.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Im=ct.Uint8Array;const Lr=Im;function Qa(n){var e=new n.constructor(n.byteLength);return new Lr(e).set(new Lr(n)),e}function Mm(n,e){var t=Qa(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var Rm=/\w*$/;function Pm(n){var e=new n.constructor(n.source,Rm.exec(n));return e.lastIndex=n.lastIndex,e}var cs=vt?vt.prototype:void 0,us=cs?cs.valueOf:void 0;function Nm(n){return us?Object(us.call(n)):{}}function _c(n,e){var t=e?Qa(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Fm="[object Boolean]",Hm="[object Date]",Lm="[object Map]",Um="[object Number]",Wm="[object RegExp]",Jm="[object Set]",qm="[object String]",Km="[object Symbol]",Gm="[object ArrayBuffer]",Ym="[object DataView]",Xm="[object Float32Array]",Qm="[object Float64Array]",Zm="[object Int8Array]",ef="[object Int16Array]",tf="[object Int32Array]",nf="[object Uint8Array]",rf="[object Uint8ClampedArray]",af="[object Uint16Array]",of="[object Uint32Array]";function sf(n,e,t){var r=n.constructor;switch(e){case Gm:return Qa(n);case Fm:case Hm:return new r(+n);case Ym:return Mm(n);case Xm:case Qm:case Zm:case ef:case tf:case nf:case rf:case af:case of:return _c(n,t);case Lm:return new r;case Um:case qm:return new r(n);case Wm:return Pm(n);case Jm:return new r;case Km:return Nm(n)}}function Sc(n){return typeof n.constructor=="function"&&!Wa(n)?Od(Yl(n)):{}}var lf="[object Map]";function cf(n){return it(n)&&tr(n)==lf}var ds=gt&&gt.isMap,uf=ds?Ja(ds):cf;const df=uf;var pf="[object Set]";function hf(n){return it(n)&&tr(n)==pf}var ps=gt&&gt.isSet,mf=ps?Ja(ps):hf;const ff=mf;var vf=1,kc="[object Arguments]",gf="[object Array]",yf="[object Boolean]",bf="[object Date]",wf="[object Error]",jc="[object Function]",xf="[object GeneratorFunction]",_f="[object Map]",Sf="[object Number]",Vc="[object Object]",kf="[object RegExp]",jf="[object Set]",Vf="[object String]",Cf="[object Symbol]",Ef="[object WeakMap]",$f="[object ArrayBuffer]",Af="[object DataView]",Tf="[object Float32Array]",Bf="[object Float64Array]",zf="[object Int8Array]",Df="[object Int16Array]",Of="[object Int32Array]",If="[object Uint8Array]",Mf="[object Uint8ClampedArray]",Rf="[object Uint16Array]",Pf="[object Uint32Array]",be={};be[kc]=be[gf]=be[$f]=be[Af]=be[yf]=be[bf]=be[Tf]=be[Bf]=be[zf]=be[Df]=be[Of]=be[_f]=be[Sf]=be[Vc]=be[kf]=be[jf]=be[Vf]=be[Cf]=be[If]=be[Mf]=be[Rf]=be[Pf]=!0,be[wf]=be[jc]=be[Ef]=!1;function Tr(n,e,t,r,i,a){var o,s=e&vf;if(o!==void 0)return o;if(!Oe(n))return n;var l=lt(n);if(l)o=Om(n);else{var c=tr(n),u=c==jc||c==xf;if(Qn(n))return xc(n,s);if(c==Vc||c==kc||u&&!i)o=u?{}:Sc(n);else{if(!be[c])return i?n:{};o=sf(n,c,s)}}a=new ut;var p=a.get(n);if(p)return p;a.set(n,o),ff(n)?n.forEach(function(f){o.add(Tr(f,e,t,f,n,a))}):df(n)&&n.forEach(function(f,v){o.set(v,Tr(f,e,t,v,n,a))});var m=Xi,h=l?void 0:m(n);return qd(h||n,function(f,v){h&&(v=f,f=n[v]),Ua(o,v,Tr(f,e,t,v,n,a))}),o}var Nf=1,Ff=4;function tn(n){return Tr(n,Nf|Ff)}var Hf="__lodash_hash_undefined__";function Lf(n){return this.__data__.set(n,Hf),this}function Uf(n){return this.__data__.has(n)}function Br(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new St;++e<t;)this.add(n[e])}Br.prototype.add=Br.prototype.push=Lf,Br.prototype.has=Uf;function Wf(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 Jf(n,e){return n.has(e)}var qf=1,Kf=2;function Cc(n,e,t,r,i,a){var o=t&qf,s=n.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(n),u=a.get(e);if(c&&u)return c==e&&u==n;var p=-1,m=!0,h=t&Kf?new Br:void 0;for(a.set(n,e),a.set(e,n);++p<s;){var f=n[p],v=e[p];if(r)var g=o?r(v,f,p,e,n,a):r(f,v,p,n,e,a);if(g!==void 0){if(g)continue;m=!1;break}if(h){if(!Wf(e,function(k,b){if(!Jf(h,b)&&(f===k||i(f,k,t,r,a)))return h.push(b)})){m=!1;break}}else if(!(f===v||i(f,v,t,r,a))){m=!1;break}}return a.delete(n),a.delete(e),m}function Gf(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function Yf(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var Xf=1,Qf=2,Zf="[object Boolean]",ev="[object Date]",tv="[object Error]",nv="[object Map]",rv="[object Number]",iv="[object RegExp]",av="[object Set]",ov="[object String]",sv="[object Symbol]",lv="[object ArrayBuffer]",cv="[object DataView]",hs=vt?vt.prototype:void 0,vi=hs?hs.valueOf:void 0;function uv(n,e,t,r,i,a,o){switch(t){case cv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case lv:return!(n.byteLength!=e.byteLength||!a(new Lr(n),new Lr(e)));case Zf:case ev:case rv:return An(+n,+e);case tv:return n.name==e.name&&n.message==e.message;case iv:case ov:return n==e+"";case nv:var s=Gf;case av:var l=r&Xf;if(s||(s=Yf),n.size!=e.size&&!l)return!1;var c=o.get(n);if(c)return c==e;r|=Qf,o.set(n,e);var u=Cc(s(n),s(e),r,i,a,o);return o.delete(n),u;case sv:if(vi)return vi.call(n)==vi.call(e)}return!1}var dv=1,pv=Object.prototype,hv=pv.hasOwnProperty;function mv(n,e,t,r,i,a){var o=t&dv,s=Xi(n),l=s.length,c=Xi(e),u=c.length;if(l!=u&&!o)return!1;for(var p=l;p--;){var m=s[p];if(!(o?m in e:hv.call(e,m)))return!1}var h=a.get(n),f=a.get(e);if(h&&f)return h==e&&f==n;var v=!0;a.set(n,e),a.set(e,n);for(var g=o;++p<l;){m=s[p];var k=n[m],b=e[m];if(r)var w=o?r(b,k,m,e,n,a):r(k,b,m,n,e,a);if(!(w===void 0?k===b||i(k,b,t,r,a):w)){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 a.delete(n),a.delete(e),v}var fv=1,ms="[object Arguments]",fs="[object Array]",vr="[object Object]",vv=Object.prototype,vs=vv.hasOwnProperty;function gv(n,e,t,r,i,a){var o=lt(n),s=lt(e),l=o?fs:tr(n),c=s?fs:tr(e);l=l==ms?vr:l,c=c==ms?vr:c;var u=l==vr,p=c==vr,m=l==c;if(m&&Qn(n)){if(!Qn(e))return!1;o=!0,u=!1}if(m&&!u)return a||(a=new ut),o||qa(n)?Cc(n,e,t,r,i,a):uv(n,e,l,t,r,i,a);if(!(t&fv)){var h=u&&vs.call(n,"__wrapped__"),f=p&&vs.call(e,"__wrapped__");if(h||f){var v=h?n.value():n,g=f?e.value():e;return a||(a=new ut),i(v,g,t,r,a)}}return m?(a||(a=new ut),mv(n,e,t,r,i,a)):!1}function Ec(n,e,t,r,i){return n===e?!0:n==null||e==null||!it(n)&&!it(e)?n!==n&&e!==e:gv(n,e,t,r,Ec,i)}function yv(n){return function(e,t,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var l=o[++i];if(t(a[l],l,a)===!1)break}return e}}var bv=yv();const wv=bv;var xv=function(){return ct.Date.now()};const gi=xv;var _v="Expected a function",Sv=Math.max,kv=Math.min;function $c(n,e,t){var r,i,a,o,s,l,c=0,u=!1,p=!1,m=!0;if(typeof n!="function")throw new TypeError(_v);e=Fo(e)||0,Oe(t)&&(u=!!t.leading,p="maxWait"in t,a=p?Sv(Fo(t.maxWait)||0,e):a,m="trailing"in t?!!t.trailing:m);function h(x){var E=r,$=i;return r=i=void 0,c=x,o=n.apply($,E),o}function f(x){return c=x,s=setTimeout(k,e),u?h(x):o}function v(x){var E=x-l,$=x-c,U=e-E;return p?kv(U,a-$):U}function g(x){var E=x-l,$=x-c;return l===void 0||E>=e||E<0||p&&$>=a}function k(){var x=gi();if(g(x))return b(x);s=setTimeout(k,v(x))}function b(x){return s=void 0,m&&r?h(x):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?o:b(gi())}function C(){var x=gi(),E=g(x);if(r=arguments,i=this,l=x,E){if(s===void 0)return f(l);if(p)return clearTimeout(s),s=setTimeout(k,e),h(l)}return s===void 0&&(s=setTimeout(k,e)),o}return C.cancel=w,C.flush=S,C}function ta(n,e,t){(t!==void 0&&!An(n[e],t)||t===void 0&&!(e in n))&&La(n,e,t)}function jv(n){return it(n)&&ei(n)}function na(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Vv(n){return Rl(n,Ka(n))}function Cv(n,e,t,r,i,a,o){var s=na(n,t),l=na(e,t),c=o.get(l);if(c){ta(n,t,c);return}var u=a?a(s,l,t+"",n,e,o):void 0,p=u===void 0;if(p){var m=lt(l),h=!m&&Qn(l),f=!m&&!h&&qa(l);u=l,m||h||f?lt(s)?u=s:jv(s)?u=Id(s):h?(p=!1,u=xc(l,!0)):f?(p=!1,u=_c(l,!0)):u=[]:Ya(l)||Ki(l)?(u=s,Ki(s)?u=Vv(s):(!Oe(s)||Xn(s))&&(u=Sc(l))):p=!1}p&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),ta(n,t,u)}function Ac(n,e,t,r,i){n!==e&&wv(e,function(a,o){if(i||(i=new ut),Oe(a))Cv(n,e,o,t,Ac,r,i);else{var s=r?r(na(n,o),a,o+"",n,e,i):void 0;s===void 0&&(s=a),ta(n,o,s)}},Ka)}var Ev={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$v=oc(Ev);const Av=$v;var Tc=/[&<>"']/g,Tv=RegExp(Tc.source);function Bv(n){return n=sn(n),n&&Tv.test(n)?n.replace(Tc,Av):n}var zv="[object String]";function Tn(n){return typeof n=="string"||!lt(n)&&it(n)&&jt(n)==zv}function Dv(n,e){return Dl(e,function(t){return n[t]})}gt&&gt.isArrayBuffer;gt&&gt.isDate;function Za(n,e){return Ec(n,e)}var Ov=Fl(function(n,e,t){Ac(n,e,t)});const ht=Ov;function Iv(n,e,t,r){if(!Oe(n))return n;e=Kl(e,n);for(var i=-1,a=e.length,o=a-1,s=n;s!=null&&++i<a;){var l=Gl(e[i]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(i!=o){var u=s[l];c=void 0,c===void 0&&(c=Oe(u)?u:Ha(e[i+1])?[]:{})}Ua(s,l,c),s=s[l]}return n}function yi(n,e,t){return n==null?n:Iv(n,e,t)}var Bc=Object.prototype,Mv=Bc.hasOwnProperty;function gs(n,e,t,r){return n===void 0||An(n,Bc[t])&&!Mv.call(r,t)?e:n}var Rv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Pv(n){return"\\"+Rv[n]}var Nv=/<%=([\s\S]+?)%>/g;const zc=Nv;var Fv=/<%-([\s\S]+?)%>/g;const Hv=Fv;var Lv=/<%([\s\S]+?)%>/g;const Uv=Lv;var Wv={escape:Hv,evaluate:Uv,interpolate:zc,variable:"",imports:{_:{escape:Bv}}};const ys=Wv;var Jv="Invalid `variable` option passed into `_.template`",qv=/\b__p \+= '';/g,Kv=/\b(__p \+=) '' \+/g,Gv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yv=/[()=,{}\[\]\/\s]/,Xv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/($^)/,Qv=/['\n\r\u2028\u2029\\]/g,Zv=Object.prototype,bs=Zv.hasOwnProperty;function Dc(n,e,t){var r=ys.imports._.templateSettings||ys;n=sn(n),e=Go({},e,r,gs);var i=Go({},e.imports,r.imports,gs),a=ql(i),o=Dv(i,a),s,l,c=0,u=e.interpolate||gr,p="__p += '",m=RegExp((e.escape||gr).source+"|"+u.source+"|"+(u===zc?Xv:gr).source+"|"+(e.evaluate||gr).source+"|$","g"),h=bs.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";n.replace(m,function(g,k,b,w,S,C){return b||(b=w),p+=n.slice(c,C).replace(Qv,Pv),k&&(s=!0,p+=`' +
4
4
  __e(`+k+`) +
5
5
  '`),S&&(l=!0,p+=`';
6
6
  `+S+`;
7
7
  __p += '`),b&&(p+=`' +
8
8
  ((__t = (`+b+`)) == null ? '' : __t) +
9
- '`),c=V+g.length,g}),p+=`';
9
+ '`),c=C+g.length,g}),p+=`';
10
10
  `;var f=bs.call(e,"variable")&&e.variable;if(!f)p=`with (obj) {
11
11
  `+p+`
12
12
  }
13
- `;else if(Gv.test(f))throw new Error(Wv);p=(l?p.replace(Jv,""):p).replace(qv,"$1").replace(Kv,"$1;"),p="function("+(f||"obj")+`) {
13
+ `;else if(Yv.test(f))throw new Error(Jv);p=(l?p.replace(qv,""):p).replace(Kv,"$1").replace(Gv,"$1;"),p="function("+(f||"obj")+`) {
14
14
  `+(f?"":`obj || (obj = {});
15
15
  `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
16
16
  function print() { __p += __j.call(arguments, '') }
17
17
  `:`;
18
18
  `)+p+`return __p
19
- }`;var v=Up(function(){return Function(a,h+"return "+p).apply(void 0,o)});if(v.source=p,Ql(v))throw v;return v}var Zv="Expected a function";function e3(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(Zv);return Oe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),Ec(n,e,{leading:r,maxWait:e,trailing:i})}function Ur(n){return Xa(Kt(n))}var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oc={exports:{}};function t3(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 ws={exports:{}},xs;function Ft(){return xs||(xs=1,function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=t||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof He<"u"&&He.crypto&&(a=He.crypto),!a&&typeof t3=="function")try{a=require("crypto")}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.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(x){var S;return b.prototype=x,S=new b,b.prototype=null,S}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(b){var x=s(this);return b&&x.mixIn(b),(!x.hasOwnProperty("init")||this.init===x.init)&&(x.init=function(){x.$super.init.apply(this,arguments)}),x.init.prototype=x,x.$super=this,x},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var x in b)b.hasOwnProperty(x)&&(this[x]=b[x]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=u.extend({init:function(b,x){b=this.words=b||[],x!=i?this.sigBytes=x:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var x=this.words,S=b.words,V=this.sigBytes,w=b.sigBytes;if(this.clamp(),V%4)for(var $=0;$<w;$++){var E=S[$>>>2]>>>24-$%4*8&255;x[V+$>>>2]|=E<<24-(V+$)%4*8}else for(var J=0;J<w;J+=4)x[V+J>>>2]=S[J>>>2];return this.sigBytes+=w,this},clamp:function(){var b=this.words,x=this.sigBytes;b[x>>>2]&=4294967295<<32-x%4*8,b.length=r.ceil(x/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var x=[],S=0;S<b;S+=4)x.push(o());return new p.init(x,b)}}),m=l.enc={},h=m.Hex={stringify:function(b){for(var x=b.words,S=b.sigBytes,V=[],w=0;w<S;w++){var $=x[w>>>2]>>>24-w%4*8&255;V.push(($>>>4).toString(16)),V.push(($&15).toString(16))}return V.join("")},parse:function(b){for(var x=b.length,S=[],V=0;V<x;V+=2)S[V>>>3]|=parseInt(b.substr(V,2),16)<<24-V%8*4;return new p.init(S,x/2)}},f=m.Latin1={stringify:function(b){for(var x=b.words,S=b.sigBytes,V=[],w=0;w<S;w++){var $=x[w>>>2]>>>24-w%4*8&255;V.push(String.fromCharCode($))}return V.join("")},parse:function(b){for(var x=b.length,S=[],V=0;V<x;V++)S[V>>>2]|=(b.charCodeAt(V)&255)<<24-V%4*8;return new p.init(S,x)}},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=c.BufferedBlockAlgorithm=u.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 x,S=this._data,V=S.words,w=S.sigBytes,$=this.blockSize,E=$*4,J=w/E;b?J=r.ceil(J):J=r.max((J|0)-this._minBufferSize,0);var T=J*$,B=r.min(T*4,w);if(T){for(var F=0;F<T;F+=$)this._doProcessBlock(V,F);x=V.splice(0,T),S.sigBytes-=B}return new p.init(x,B)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=g.extend({cfg:u.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 x=this._doFinalize();return x},blockSize:16,_createHelper:function(b){return function(x,S){return new b.init(S).finalize(x)}},_createHmacHelper:function(b){return function(x,S){return new k.HMAC.init(b,S).finalize(x)}}});var k=l.algo={};return l}(Math);return t})}(ws)),ws.exports}(function(n,e){(function(t,r){n.exports=r(Ft())})(He,function(t){return function(r){var i=t,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[];(function(){for(var v=0;v<64;v++)c[v]=r.abs(r.sin(v+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var k=0;k<16;k++){var b=g+k,x=v[b];v[b]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var S=this._hash.words,V=v[g+0],w=v[g+1],$=v[g+2],E=v[g+3],J=v[g+4],T=v[g+5],B=v[g+6],F=v[g+7],A=v[g+8],N=v[g+9],O=v[g+10],U=v[g+11],Z=v[g+12],Q=v[g+13],re=v[g+14],ie=v[g+15],L=S[0],q=S[1],G=S[2],Y=S[3];L=p(L,q,G,Y,V,7,c[0]),Y=p(Y,L,q,G,w,12,c[1]),G=p(G,Y,L,q,$,17,c[2]),q=p(q,G,Y,L,E,22,c[3]),L=p(L,q,G,Y,J,7,c[4]),Y=p(Y,L,q,G,T,12,c[5]),G=p(G,Y,L,q,B,17,c[6]),q=p(q,G,Y,L,F,22,c[7]),L=p(L,q,G,Y,A,7,c[8]),Y=p(Y,L,q,G,N,12,c[9]),G=p(G,Y,L,q,O,17,c[10]),q=p(q,G,Y,L,U,22,c[11]),L=p(L,q,G,Y,Z,7,c[12]),Y=p(Y,L,q,G,Q,12,c[13]),G=p(G,Y,L,q,re,17,c[14]),q=p(q,G,Y,L,ie,22,c[15]),L=m(L,q,G,Y,w,5,c[16]),Y=m(Y,L,q,G,B,9,c[17]),G=m(G,Y,L,q,U,14,c[18]),q=m(q,G,Y,L,V,20,c[19]),L=m(L,q,G,Y,T,5,c[20]),Y=m(Y,L,q,G,O,9,c[21]),G=m(G,Y,L,q,ie,14,c[22]),q=m(q,G,Y,L,J,20,c[23]),L=m(L,q,G,Y,N,5,c[24]),Y=m(Y,L,q,G,re,9,c[25]),G=m(G,Y,L,q,E,14,c[26]),q=m(q,G,Y,L,A,20,c[27]),L=m(L,q,G,Y,Q,5,c[28]),Y=m(Y,L,q,G,$,9,c[29]),G=m(G,Y,L,q,F,14,c[30]),q=m(q,G,Y,L,Z,20,c[31]),L=h(L,q,G,Y,T,4,c[32]),Y=h(Y,L,q,G,A,11,c[33]),G=h(G,Y,L,q,U,16,c[34]),q=h(q,G,Y,L,re,23,c[35]),L=h(L,q,G,Y,w,4,c[36]),Y=h(Y,L,q,G,J,11,c[37]),G=h(G,Y,L,q,F,16,c[38]),q=h(q,G,Y,L,O,23,c[39]),L=h(L,q,G,Y,Q,4,c[40]),Y=h(Y,L,q,G,V,11,c[41]),G=h(G,Y,L,q,E,16,c[42]),q=h(q,G,Y,L,B,23,c[43]),L=h(L,q,G,Y,N,4,c[44]),Y=h(Y,L,q,G,Z,11,c[45]),G=h(G,Y,L,q,ie,16,c[46]),q=h(q,G,Y,L,$,23,c[47]),L=f(L,q,G,Y,V,6,c[48]),Y=f(Y,L,q,G,F,10,c[49]),G=f(G,Y,L,q,re,15,c[50]),q=f(q,G,Y,L,T,21,c[51]),L=f(L,q,G,Y,Z,6,c[52]),Y=f(Y,L,q,G,E,10,c[53]),G=f(G,Y,L,q,O,15,c[54]),q=f(q,G,Y,L,w,21,c[55]),L=f(L,q,G,Y,A,6,c[56]),Y=f(Y,L,q,G,ie,10,c[57]),G=f(G,Y,L,q,B,15,c[58]),q=f(q,G,Y,L,Q,21,c[59]),L=f(L,q,G,Y,J,6,c[60]),Y=f(Y,L,q,G,U,10,c[61]),G=f(G,Y,L,q,$,15,c[62]),q=f(q,G,Y,L,N,21,c[63]),S[0]=S[0]+L|0,S[1]=S[1]+q|0,S[2]=S[2]+G|0,S[3]=S[3]+Y|0},_doFinalize:function(){var v=this._data,g=v.words,k=this._nDataBytes*8,b=v.sigBytes*8;g[b>>>5]|=128<<24-b%32;var x=r.floor(k/4294967296),S=k;g[(b+64>>>9<<4)+15]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g[(b+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var V=this._hash,w=V.words,$=0;$<4;$++){var E=w[$];w[$]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return V},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,k,b,x,S,V){var w=v+(g&k|~g&b)+x+V;return(w<<S|w>>>32-S)+g}function m(v,g,k,b,x,S,V){var w=v+(g&b|k&~b)+x+V;return(w<<S|w>>>32-S)+g}function h(v,g,k,b,x,S,V){var w=v+(g^k^b)+x+V;return(w<<S|w>>>32-S)+g}function f(v,g,k,b,x,S,V){var w=v+(k^(g|~b))+x+V;return(w<<S|w>>>32-S)+g}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),t.MD5})})(Oc);var Ic=Oc.exports;Bn(Ic);var Rc={exports:{}};(function(n,e){(function(t,r){n.exports=r(Ft())})(He,function(t){return function(){var r=t,i=r.lib,a=i.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,p=this._map;l.clamp();for(var m=[],h=0;h<u;h+=3)for(var f=c[h>>>2]>>>24-h%4*8&255,v=c[h+1>>>2]>>>24-(h+1)%4*8&255,g=c[h+2>>>2]>>>24-(h+2)%4*8&255,k=f<<16|v<<8|g,b=0;b<4&&h+b*.75<u;b++)m.push(p.charAt(k>>>6*(3-b)&63));var x=p.charAt(64);if(x)for(;m.length%4;)m.push(x);return m.join("")},parse:function(l){var c=l.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m<u.length;m++)p[u.charCodeAt(m)]=m}var h=u.charAt(64);if(h){var f=l.indexOf(h);f!==-1&&(c=f)}return s(l,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var p=[],m=0,h=0;h<c;h++)if(h%4){var f=u[l.charCodeAt(h-1)]<<h%4*2,v=u[l.charCodeAt(h)]>>>6-h%4*2,g=f|v;p[m>>>2]|=g<<24-m%4*8,m++}return a.create(p,m)}}(),t.enc.Base64})})(Rc);var Mc=Rc.exports;Bn(Mc);var Pc={exports:{}};(function(n,e){(function(t,r){n.exports=r(Ft())})(He,function(t){return t.enc.Utf8})})(Pc);var n3=Pc.exports;Bn(n3);var Nc={exports:{}},_s={exports:{}},Ss={exports:{}},ks;function r3(){return ks||(ks=1,function(n,e){(function(t,r){n.exports=r(Ft())})(He,function(t){return function(){var r=t,i=r.lib,a=i.WordArray,o=i.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,p){for(var m=this._hash.words,h=m[0],f=m[1],v=m[2],g=m[3],k=m[4],b=0;b<80;b++){if(b<16)l[b]=u[p+b]|0;else{var x=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=x<<1|x>>>31}var S=(h<<5|h>>>27)+k+l[b];b<20?S+=(f&v|~f&g)+1518500249:b<40?S+=(f^v^g)+1859775393:b<60?S+=(f&v|f&g|v&g)-1894007588:S+=(f^v^g)-899497514,k=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]+k|0},_doFinalize:function(){var u=this._data,p=u.words,m=this._nDataBytes*8,h=u.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,u.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),t.SHA1})}(Ss)),Ss.exports}var js={exports:{}},Cs;function i3(){return Cs||(Cs=1,function(n,e){(function(t,r){n.exports=r(Ft())})(He,function(t){(function(){var r=t,i=r.lib,a=i.Base,o=r.enc,s=o.Utf8,l=r.algo;l.HMAC=a.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var p=c.blockSize,m=p*4;u.sigBytes>m&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),f=this._iKey=u.clone(),v=h.words,g=f.words,k=0;k<p;k++)v[k]^=1549556828,g[k]^=909522486;h.sigBytes=f.sigBytes=m,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,p=u.finalize(c);u.reset();var m=u.finalize(this._oKey.clone().concat(p));return m}})})()})}(js)),js.exports}var Vs;function Fc(){return Vs||(Vs=1,function(n,e){(function(t,r,i){n.exports=r(Ft(),r3(),i3())})(He,function(t){return function(){var r=t,i=r.lib,a=i.Base,o=i.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var m,h=this.cfg,f=h.hasher.create(),v=o.create(),g=v.words,k=h.keySize,b=h.iterations;g.length<k;){m&&f.update(m),m=f.update(u).finalize(p),f.reset();for(var x=1;x<b;x++)m=f.finalize(m),f.reset();v.concat(m)}return v.sigBytes=k*4,v}});r.EvpKDF=function(u,p,m){return c.create(m).compute(u,p)}}(),t.EvpKDF})}(_s)),_s.exports}var $s={exports:{}},Es;function a3(){return Es||(Es=1,function(n,e){(function(t,r,i){n.exports=r(Ft(),Fc())})(He,function(t){t.lib.Cipher||function(r){var i=t,a=i.lib,o=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,p=i.algo,m=p.EvpKDF,h=a.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(T,B){return this.create(this._ENC_XFORM_MODE,T,B)},createDecryptor:function(T,B){return this.create(this._DEC_XFORM_MODE,T,B)},init:function(T,B,F){this.cfg=this.cfg.extend(F),this._xformMode=T,this._key=B,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(B){return typeof B=="string"?J:w}return function(B){return{encrypt:function(F,A,N){return T(A).encrypt(B,F,A,N)},decrypt:function(F,A,N){return T(A).decrypt(B,F,A,N)}}}}()});a.StreamCipher=h.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var f=i.mode={},v=a.BlockCipherMode=o.extend({createEncryptor:function(T,B){return this.Encryptor.create(T,B)},createDecryptor:function(T,B){return this.Decryptor.create(T,B)},init:function(T,B){this._cipher=T,this._iv=B}}),g=f.CBC=function(){var T=v.extend();T.Encryptor=T.extend({processBlock:function(F,A){var N=this._cipher,O=N.blockSize;B.call(this,F,A,O),N.encryptBlock(F,A),this._prevBlock=F.slice(A,A+O)}}),T.Decryptor=T.extend({processBlock:function(F,A){var N=this._cipher,O=N.blockSize,U=F.slice(A,A+O);N.decryptBlock(F,A),B.call(this,F,A,O),this._prevBlock=U}});function B(F,A,N){var O,U=this._iv;U?(O=U,this._iv=r):O=this._prevBlock;for(var Z=0;Z<N;Z++)F[A+Z]^=O[Z]}return T}(),k=i.pad={},b=k.Pkcs7={pad:function(T,B){for(var F=B*4,A=F-T.sigBytes%F,N=A<<24|A<<16|A<<8|A,O=[],U=0;U<A;U+=4)O.push(N);var Z=s.create(O,A);T.concat(Z)},unpad:function(T){var B=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=B}};a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:b}),reset:function(){var T;h.reset.call(this);var B=this.cfg,F=B.iv,A=B.mode;this._xformMode==this._ENC_XFORM_MODE?T=A.createEncryptor:(T=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,F&&F.words):(this._mode=T.call(A,this,F&&F.words),this._mode.__creator=T)},_doProcessBlock:function(T,B){this._mode.processBlock(T,B)},_doFinalize:function(){var T,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),B.unpad(T)),T},blockSize:128/32});var x=a.CipherParams=o.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),S=i.format={},V=S.OpenSSL={stringify:function(T){var B,F=T.ciphertext,A=T.salt;return A?B=s.create([1398893684,1701076831]).concat(A).concat(F):B=F,B.toString(u)},parse:function(T){var B,F=u.parse(T),A=F.words;return A[0]==1398893684&&A[1]==1701076831&&(B=s.create(A.slice(2,4)),A.splice(0,4),F.sigBytes-=16),x.create({ciphertext:F,salt:B})}},w=a.SerializableCipher=o.extend({cfg:o.extend({format:V}),encrypt:function(T,B,F,A){A=this.cfg.extend(A);var N=T.createEncryptor(F,A),O=N.finalize(B),U=N.cfg;return x.create({ciphertext:O,key:F,iv:U.iv,algorithm:T,mode:U.mode,padding:U.padding,blockSize:T.blockSize,formatter:A.format})},decrypt:function(T,B,F,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var N=T.createDecryptor(F,A).finalize(B.ciphertext);return N},_parse:function(T,B){return typeof T=="string"?B.parse(T,this):T}}),$=i.kdf={},E=$.OpenSSL={execute:function(T,B,F,A,N){if(A||(A=s.random(64/8)),N)var O=m.create({keySize:B+F,hasher:N}).compute(T,A);else var O=m.create({keySize:B+F}).compute(T,A);var U=s.create(O.words.slice(B),F*4);return O.sigBytes=B*4,x.create({key:O,iv:U,salt:A})}},J=a.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:E}),encrypt:function(T,B,F,A){A=this.cfg.extend(A);var N=A.kdf.execute(F,T.keySize,T.ivSize,A.salt,A.hasher);A.iv=N.iv;var O=w.encrypt.call(this,T,B,N.key,A);return O.mixIn(N),O},decrypt:function(T,B,F,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var N=A.kdf.execute(F,T.keySize,T.ivSize,B.salt,A.hasher);A.iv=N.iv;var O=w.decrypt.call(this,T,B,N.key,A);return O}})}()})}($s)),$s.exports}(function(n,e){(function(t,r,i){n.exports=r(Ft(),Mc,Ic,Fc(),a3())})(He,function(t){return function(){var r=t,i=r.lib,a=i.BlockCipher,o=r.algo,s=[],l=[],c=[],u=[],p=[],m=[],h=[],f=[],v=[],g=[];(function(){for(var x=[],S=0;S<256;S++)S<128?x[S]=S<<1:x[S]=S<<1^283;for(var V=0,w=0,S=0;S<256;S++){var $=w^w<<1^w<<2^w<<3^w<<4;$=$>>>8^$&255^99,s[V]=$,l[$]=V;var E=x[V],J=x[E],T=x[J],B=x[$]*257^$*16843008;c[V]=B<<24|B>>>8,u[V]=B<<16|B>>>16,p[V]=B<<8|B>>>24,m[V]=B;var B=T*16843009^J*65537^E*257^V*16843008;h[$]=B<<24|B>>>8,f[$]=B<<16|B>>>16,v[$]=B<<8|B>>>24,g[$]=B,V?(V=E^x[x[x[T^E]]],w^=x[x[w]]):V=w=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],b=o.AES=a.extend({_doReset:function(){var x;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,V=S.words,w=S.sigBytes/4,$=this._nRounds=w+6,E=($+1)*4,J=this._keySchedule=[],T=0;T<E;T++)T<w?J[T]=V[T]:(x=J[T-1],T%w?w>6&&T%w==4&&(x=s[x>>>24]<<24|s[x>>>16&255]<<16|s[x>>>8&255]<<8|s[x&255]):(x=x<<8|x>>>24,x=s[x>>>24]<<24|s[x>>>16&255]<<16|s[x>>>8&255]<<8|s[x&255],x^=k[T/w|0]<<24),J[T]=J[T-w]^x);for(var B=this._invKeySchedule=[],F=0;F<E;F++){var T=E-F;if(F%4)var x=J[T];else var x=J[T-4];F<4||T<=4?B[F]=x:B[F]=h[s[x>>>24]]^f[s[x>>>16&255]]^v[s[x>>>8&255]]^g[s[x&255]]}}},encryptBlock:function(x,S){this._doCryptBlock(x,S,this._keySchedule,c,u,p,m,s)},decryptBlock:function(x,S){var V=x[S+1];x[S+1]=x[S+3],x[S+3]=V,this._doCryptBlock(x,S,this._invKeySchedule,h,f,v,g,l);var V=x[S+1];x[S+1]=x[S+3],x[S+3]=V},_doCryptBlock:function(x,S,V,w,$,E,J,T){for(var B=this._nRounds,F=x[S]^V[0],A=x[S+1]^V[1],N=x[S+2]^V[2],O=x[S+3]^V[3],U=4,Z=1;Z<B;Z++){var Q=w[F>>>24]^$[A>>>16&255]^E[N>>>8&255]^J[O&255]^V[U++],re=w[A>>>24]^$[N>>>16&255]^E[O>>>8&255]^J[F&255]^V[U++],ie=w[N>>>24]^$[O>>>16&255]^E[F>>>8&255]^J[A&255]^V[U++],L=w[O>>>24]^$[F>>>16&255]^E[A>>>8&255]^J[N&255]^V[U++];F=Q,A=re,N=ie,O=L}var Q=(T[F>>>24]<<24|T[A>>>16&255]<<16|T[N>>>8&255]<<8|T[O&255])^V[U++],re=(T[A>>>24]<<24|T[N>>>16&255]<<16|T[O>>>8&255]<<8|T[F&255])^V[U++],ie=(T[N>>>24]<<24|T[O>>>16&255]<<16|T[F>>>8&255]<<8|T[A&255])^V[U++],L=(T[O>>>24]<<24|T[F>>>16&255]<<16|T[A>>>8&255]<<8|T[N&255])^V[U++];x[S]=Q,x[S+1]=re,x[S+2]=ie,x[S+3]=L},keySize:256/32});r.AES=a._createHelper(b)}(),t.AES})})(Nc);var o3=Nc.exports;Bn(o3);var s3="0123456789abcdefghijklmnopqrstuvwxyz";function As(n){return s3.charAt(n)}function l3(n,e){return n&e}function yr(n,e){return n|e}function Ts(n,e){return n^e}function Bs(n,e){return n&~e}function c3(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 u3(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var Mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d3="=";function zs(n){var e,t,r="";for(e=0;e+3<=n.length;e+=3)t=parseInt(n.substring(e,e+3),16),r+=Mn.charAt(t>>6)+Mn.charAt(t&63);for(e+1==n.length?(t=parseInt(n.substring(e,e+1),16),r+=Mn.charAt(t<<2)):e+2==n.length&&(t=parseInt(n.substring(e,e+2),16),r+=Mn.charAt(t>>2)+Mn.charAt((t&3)<<4));(r.length&3)>0;)r+=d3;return r}var cn,p3={decode:function(n){var e;if(cn===void 0){var t="0123456789ABCDEF",r=` \f
20
- \r  \u2028\u2029`;for(cn={},e=0;e<16;++e)cn[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)cn[t.charAt(e)]=e;for(e=0;e<r.length;++e)cn[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=cn[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},qt,ra={decode:function(n){var e;if(qt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
21
- \r  \u2028\u2029`;for(qt=Object.create(null),e=0;e<64;++e)qt[t.charAt(e)]=e;for(qt["-"]=62,qt._=63,e=0;e<r.length;++e)qt[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=qt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);a|=s,++o>=4?(i[i.length]=a>>16,i[i.length]=a>>8&255,i[i.length]=a&255,a=0,o=0):a<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=a>>10;break;case 3:i[i.length]=a>>16,i[i.length]=a>>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=ra.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 ra.decode(n)}},un=1e13,Hn=function(){function n(e){this.buf=[+e||0]}return n.prototype.mulAdd=function(e,t){var r=this.buf,i=r.length,a,o;for(a=0;a<i;++a)o=r[a]*e+t,o<un?t=0:(t=0|o/un,o-=t*un),r[a]=o;t>0&&(r[a]=t)},n.prototype.sub=function(e){var t=this.buf,r=t.length,i,a;for(i=0;i<r;++i)a=t[i]-e,a<0?(a+=un,e=1):e=0,t[i]=a;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+=(un+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*un+e[r];return t},n.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},n}(),Hc="…",h3=/^(\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)?)?$/,m3=/^(\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 gn(n,e){return n.length>e&&(n=n.substring(0,e)+Hc),n}var bi=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="",a=e;a<t;++a)if(i+=this.hexByte(this.get(a)),r!==!0)switch(a&15){case 7:i+=" ";break;case 15:i+=`
22
- `;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 a=this.get(i++);a<128?r+=String.fromCharCode(a):a>191&&a<224?r+=String.fromCharCode((a&31)<<6|this.get(i++)&63):r+=String.fromCharCode((a&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(e,t){for(var r="",i,a,o=e;o<t;)i=this.get(o++),a=this.get(o++),r+=String.fromCharCode(i<<8|a);return r},n.prototype.parseTime=function(e,t,r){var i=this.parseStringISO(e,t),a=(r?h3:m3).exec(i);return a?(r&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),i=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(i+=":"+a[5],a[6]&&(i+=":"+a[6],a[7]&&(i+="."+a[7]))),a[8]&&(i+=" UTC",a[8]!="Z"&&(i+=a[8],a[9]&&(i+=":"+a[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(e,t){for(var r=this.get(e),i=r>127,a=i?255:0,o,s="";r==a&&++e<t;)r=this.get(e);if(o=t-e,o===0)return i?-1:0;if(o>4){for(s=r,o<<=3;!((+s^a)&128);)s=+s<<1,--o;s="("+o+` bit)
19
+ }`;var v=Wp(function(){return Function(a,h+"return "+p).apply(void 0,o)});if(v.source=p,Ql(v))throw v;return v}var e3="Expected a function";function t3(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(e3);return Oe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),$c(n,e,{leading:r,maxWait:e,trailing:i})}function Ur(n){return Xa(Gt(n))}var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Oc={exports:{}};function n3(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 ws={exports:{}},xs;function Ht(){return xs||(xs=1,function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=t||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof He<"u"&&He.crypto&&(a=He.crypto),!a&&typeof n3=="function")try{a=require("crypto")}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.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(w){var S;return b.prototype=w,S=new b,b.prototype=null,S}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(b){var w=s(this);return b&&w.mixIn(b),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var w in b)b.hasOwnProperty(w)&&(this[w]=b[w]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=u.extend({init:function(b,w){b=this.words=b||[],w!=i?this.sigBytes=w:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var w=this.words,S=b.words,C=this.sigBytes,x=b.sigBytes;if(this.clamp(),C%4)for(var E=0;E<x;E++){var $=S[E>>>2]>>>24-E%4*8&255;w[C+E>>>2]|=$<<24-(C+E)%4*8}else for(var U=0;U<x;U+=4)w[C+U>>>2]=S[U>>>2];return this.sigBytes+=x,this},clamp:function(){var b=this.words,w=this.sigBytes;b[w>>>2]&=4294967295<<32-w%4*8,b.length=r.ceil(w/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var w=[],S=0;S<b;S+=4)w.push(o());return new p.init(w,b)}}),m=l.enc={},h=m.Hex={stringify:function(b){for(var w=b.words,S=b.sigBytes,C=[],x=0;x<S;x++){var E=w[x>>>2]>>>24-x%4*8&255;C.push((E>>>4).toString(16)),C.push((E&15).toString(16))}return C.join("")},parse:function(b){for(var w=b.length,S=[],C=0;C<w;C+=2)S[C>>>3]|=parseInt(b.substr(C,2),16)<<24-C%8*4;return new p.init(S,w/2)}},f=m.Latin1={stringify:function(b){for(var w=b.words,S=b.sigBytes,C=[],x=0;x<S;x++){var E=w[x>>>2]>>>24-x%4*8&255;C.push(String.fromCharCode(E))}return C.join("")},parse:function(b){for(var w=b.length,S=[],C=0;C<w;C++)S[C>>>2]|=(b.charCodeAt(C)&255)<<24-C%4*8;return new p.init(S,w)}},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=c.BufferedBlockAlgorithm=u.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 w,S=this._data,C=S.words,x=S.sigBytes,E=this.blockSize,$=E*4,U=x/$;b?U=r.ceil(U):U=r.max((U|0)-this._minBufferSize,0);var T=U*E,B=r.min(T*4,x);if(T){for(var F=0;F<T;F+=E)this._doProcessBlock(C,F);w=C.splice(0,T),S.sigBytes-=B}return new p.init(w,B)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=g.extend({cfg:u.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 w=this._doFinalize();return w},blockSize:16,_createHelper:function(b){return function(w,S){return new b.init(S).finalize(w)}},_createHmacHelper:function(b){return function(w,S){return new k.HMAC.init(b,S).finalize(w)}}});var k=l.algo={};return l}(Math);return t})}(ws)),ws.exports}(function(n,e){(function(t,r){n.exports=r(Ht())})(He,function(t){return function(r){var i=t,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[];(function(){for(var v=0;v<64;v++)c[v]=r.abs(r.sin(v+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var k=0;k<16;k++){var b=g+k,w=v[b];v[b]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var S=this._hash.words,C=v[g+0],x=v[g+1],E=v[g+2],$=v[g+3],U=v[g+4],T=v[g+5],B=v[g+6],F=v[g+7],A=v[g+8],N=v[g+9],O=v[g+10],W=v[g+11],Z=v[g+12],Q=v[g+13],re=v[g+14],ie=v[g+15],L=S[0],q=S[1],G=S[2],Y=S[3];L=p(L,q,G,Y,C,7,c[0]),Y=p(Y,L,q,G,x,12,c[1]),G=p(G,Y,L,q,E,17,c[2]),q=p(q,G,Y,L,$,22,c[3]),L=p(L,q,G,Y,U,7,c[4]),Y=p(Y,L,q,G,T,12,c[5]),G=p(G,Y,L,q,B,17,c[6]),q=p(q,G,Y,L,F,22,c[7]),L=p(L,q,G,Y,A,7,c[8]),Y=p(Y,L,q,G,N,12,c[9]),G=p(G,Y,L,q,O,17,c[10]),q=p(q,G,Y,L,W,22,c[11]),L=p(L,q,G,Y,Z,7,c[12]),Y=p(Y,L,q,G,Q,12,c[13]),G=p(G,Y,L,q,re,17,c[14]),q=p(q,G,Y,L,ie,22,c[15]),L=m(L,q,G,Y,x,5,c[16]),Y=m(Y,L,q,G,B,9,c[17]),G=m(G,Y,L,q,W,14,c[18]),q=m(q,G,Y,L,C,20,c[19]),L=m(L,q,G,Y,T,5,c[20]),Y=m(Y,L,q,G,O,9,c[21]),G=m(G,Y,L,q,ie,14,c[22]),q=m(q,G,Y,L,U,20,c[23]),L=m(L,q,G,Y,N,5,c[24]),Y=m(Y,L,q,G,re,9,c[25]),G=m(G,Y,L,q,$,14,c[26]),q=m(q,G,Y,L,A,20,c[27]),L=m(L,q,G,Y,Q,5,c[28]),Y=m(Y,L,q,G,E,9,c[29]),G=m(G,Y,L,q,F,14,c[30]),q=m(q,G,Y,L,Z,20,c[31]),L=h(L,q,G,Y,T,4,c[32]),Y=h(Y,L,q,G,A,11,c[33]),G=h(G,Y,L,q,W,16,c[34]),q=h(q,G,Y,L,re,23,c[35]),L=h(L,q,G,Y,x,4,c[36]),Y=h(Y,L,q,G,U,11,c[37]),G=h(G,Y,L,q,F,16,c[38]),q=h(q,G,Y,L,O,23,c[39]),L=h(L,q,G,Y,Q,4,c[40]),Y=h(Y,L,q,G,C,11,c[41]),G=h(G,Y,L,q,$,16,c[42]),q=h(q,G,Y,L,B,23,c[43]),L=h(L,q,G,Y,N,4,c[44]),Y=h(Y,L,q,G,Z,11,c[45]),G=h(G,Y,L,q,ie,16,c[46]),q=h(q,G,Y,L,E,23,c[47]),L=f(L,q,G,Y,C,6,c[48]),Y=f(Y,L,q,G,F,10,c[49]),G=f(G,Y,L,q,re,15,c[50]),q=f(q,G,Y,L,T,21,c[51]),L=f(L,q,G,Y,Z,6,c[52]),Y=f(Y,L,q,G,$,10,c[53]),G=f(G,Y,L,q,O,15,c[54]),q=f(q,G,Y,L,x,21,c[55]),L=f(L,q,G,Y,A,6,c[56]),Y=f(Y,L,q,G,ie,10,c[57]),G=f(G,Y,L,q,B,15,c[58]),q=f(q,G,Y,L,Q,21,c[59]),L=f(L,q,G,Y,U,6,c[60]),Y=f(Y,L,q,G,W,10,c[61]),G=f(G,Y,L,q,E,15,c[62]),q=f(q,G,Y,L,N,21,c[63]),S[0]=S[0]+L|0,S[1]=S[1]+q|0,S[2]=S[2]+G|0,S[3]=S[3]+Y|0},_doFinalize:function(){var v=this._data,g=v.words,k=this._nDataBytes*8,b=v.sigBytes*8;g[b>>>5]|=128<<24-b%32;var w=r.floor(k/4294967296),S=k;g[(b+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,g[(b+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,E=0;E<4;E++){var $=x[E];x[E]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return C},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,k,b,w,S,C){var x=v+(g&k|~g&b)+w+C;return(x<<S|x>>>32-S)+g}function m(v,g,k,b,w,S,C){var x=v+(g&b|k&~b)+w+C;return(x<<S|x>>>32-S)+g}function h(v,g,k,b,w,S,C){var x=v+(g^k^b)+w+C;return(x<<S|x>>>32-S)+g}function f(v,g,k,b,w,S,C){var x=v+(k^(g|~b))+w+C;return(x<<S|x>>>32-S)+g}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),t.MD5})})(Oc);var Ic=Oc.exports;Bn(Ic);var Mc={exports:{}};(function(n,e){(function(t,r){n.exports=r(Ht())})(He,function(t){return function(){var r=t,i=r.lib,a=i.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,p=this._map;l.clamp();for(var m=[],h=0;h<u;h+=3)for(var f=c[h>>>2]>>>24-h%4*8&255,v=c[h+1>>>2]>>>24-(h+1)%4*8&255,g=c[h+2>>>2]>>>24-(h+2)%4*8&255,k=f<<16|v<<8|g,b=0;b<4&&h+b*.75<u;b++)m.push(p.charAt(k>>>6*(3-b)&63));var w=p.charAt(64);if(w)for(;m.length%4;)m.push(w);return m.join("")},parse:function(l){var c=l.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m<u.length;m++)p[u.charCodeAt(m)]=m}var h=u.charAt(64);if(h){var f=l.indexOf(h);f!==-1&&(c=f)}return s(l,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var p=[],m=0,h=0;h<c;h++)if(h%4){var f=u[l.charCodeAt(h-1)]<<h%4*2,v=u[l.charCodeAt(h)]>>>6-h%4*2,g=f|v;p[m>>>2]|=g<<24-m%4*8,m++}return a.create(p,m)}}(),t.enc.Base64})})(Mc);var Rc=Mc.exports;Bn(Rc);var Pc={exports:{}};(function(n,e){(function(t,r){n.exports=r(Ht())})(He,function(t){return t.enc.Utf8})})(Pc);var r3=Pc.exports;Bn(r3);var Nc={exports:{}},_s={exports:{}},Ss={exports:{}},ks;function i3(){return ks||(ks=1,function(n,e){(function(t,r){n.exports=r(Ht())})(He,function(t){return function(){var r=t,i=r.lib,a=i.WordArray,o=i.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,p){for(var m=this._hash.words,h=m[0],f=m[1],v=m[2],g=m[3],k=m[4],b=0;b<80;b++){if(b<16)l[b]=u[p+b]|0;else{var w=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=w<<1|w>>>31}var S=(h<<5|h>>>27)+k+l[b];b<20?S+=(f&v|~f&g)+1518500249:b<40?S+=(f^v^g)+1859775393:b<60?S+=(f&v|f&g|v&g)-1894007588:S+=(f^v^g)-899497514,k=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]+k|0},_doFinalize:function(){var u=this._data,p=u.words,m=this._nDataBytes*8,h=u.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,u.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),t.SHA1})}(Ss)),Ss.exports}var js={exports:{}},Vs;function a3(){return Vs||(Vs=1,function(n,e){(function(t,r){n.exports=r(Ht())})(He,function(t){(function(){var r=t,i=r.lib,a=i.Base,o=r.enc,s=o.Utf8,l=r.algo;l.HMAC=a.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var p=c.blockSize,m=p*4;u.sigBytes>m&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),f=this._iKey=u.clone(),v=h.words,g=f.words,k=0;k<p;k++)v[k]^=1549556828,g[k]^=909522486;h.sigBytes=f.sigBytes=m,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,p=u.finalize(c);u.reset();var m=u.finalize(this._oKey.clone().concat(p));return m}})})()})}(js)),js.exports}var Cs;function Fc(){return Cs||(Cs=1,function(n,e){(function(t,r,i){n.exports=r(Ht(),i3(),a3())})(He,function(t){return function(){var r=t,i=r.lib,a=i.Base,o=i.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var m,h=this.cfg,f=h.hasher.create(),v=o.create(),g=v.words,k=h.keySize,b=h.iterations;g.length<k;){m&&f.update(m),m=f.update(u).finalize(p),f.reset();for(var w=1;w<b;w++)m=f.finalize(m),f.reset();v.concat(m)}return v.sigBytes=k*4,v}});r.EvpKDF=function(u,p,m){return c.create(m).compute(u,p)}}(),t.EvpKDF})}(_s)),_s.exports}var Es={exports:{}},$s;function o3(){return $s||($s=1,function(n,e){(function(t,r,i){n.exports=r(Ht(),Fc())})(He,function(t){t.lib.Cipher||function(r){var i=t,a=i.lib,o=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,p=i.algo,m=p.EvpKDF,h=a.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(T,B){return this.create(this._ENC_XFORM_MODE,T,B)},createDecryptor:function(T,B){return this.create(this._DEC_XFORM_MODE,T,B)},init:function(T,B,F){this.cfg=this.cfg.extend(F),this._xformMode=T,this._key=B,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(B){return typeof B=="string"?U:x}return function(B){return{encrypt:function(F,A,N){return T(A).encrypt(B,F,A,N)},decrypt:function(F,A,N){return T(A).decrypt(B,F,A,N)}}}}()});a.StreamCipher=h.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var f=i.mode={},v=a.BlockCipherMode=o.extend({createEncryptor:function(T,B){return this.Encryptor.create(T,B)},createDecryptor:function(T,B){return this.Decryptor.create(T,B)},init:function(T,B){this._cipher=T,this._iv=B}}),g=f.CBC=function(){var T=v.extend();T.Encryptor=T.extend({processBlock:function(F,A){var N=this._cipher,O=N.blockSize;B.call(this,F,A,O),N.encryptBlock(F,A),this._prevBlock=F.slice(A,A+O)}}),T.Decryptor=T.extend({processBlock:function(F,A){var N=this._cipher,O=N.blockSize,W=F.slice(A,A+O);N.decryptBlock(F,A),B.call(this,F,A,O),this._prevBlock=W}});function B(F,A,N){var O,W=this._iv;W?(O=W,this._iv=r):O=this._prevBlock;for(var Z=0;Z<N;Z++)F[A+Z]^=O[Z]}return T}(),k=i.pad={},b=k.Pkcs7={pad:function(T,B){for(var F=B*4,A=F-T.sigBytes%F,N=A<<24|A<<16|A<<8|A,O=[],W=0;W<A;W+=4)O.push(N);var Z=s.create(O,A);T.concat(Z)},unpad:function(T){var B=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=B}};a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:b}),reset:function(){var T;h.reset.call(this);var B=this.cfg,F=B.iv,A=B.mode;this._xformMode==this._ENC_XFORM_MODE?T=A.createEncryptor:(T=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,F&&F.words):(this._mode=T.call(A,this,F&&F.words),this._mode.__creator=T)},_doProcessBlock:function(T,B){this._mode.processBlock(T,B)},_doFinalize:function(){var T,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),B.unpad(T)),T},blockSize:128/32});var w=a.CipherParams=o.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),S=i.format={},C=S.OpenSSL={stringify:function(T){var B,F=T.ciphertext,A=T.salt;return A?B=s.create([1398893684,1701076831]).concat(A).concat(F):B=F,B.toString(u)},parse:function(T){var B,F=u.parse(T),A=F.words;return A[0]==1398893684&&A[1]==1701076831&&(B=s.create(A.slice(2,4)),A.splice(0,4),F.sigBytes-=16),w.create({ciphertext:F,salt:B})}},x=a.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(T,B,F,A){A=this.cfg.extend(A);var N=T.createEncryptor(F,A),O=N.finalize(B),W=N.cfg;return w.create({ciphertext:O,key:F,iv:W.iv,algorithm:T,mode:W.mode,padding:W.padding,blockSize:T.blockSize,formatter:A.format})},decrypt:function(T,B,F,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var N=T.createDecryptor(F,A).finalize(B.ciphertext);return N},_parse:function(T,B){return typeof T=="string"?B.parse(T,this):T}}),E=i.kdf={},$=E.OpenSSL={execute:function(T,B,F,A,N){if(A||(A=s.random(64/8)),N)var O=m.create({keySize:B+F,hasher:N}).compute(T,A);else var O=m.create({keySize:B+F}).compute(T,A);var W=s.create(O.words.slice(B),F*4);return O.sigBytes=B*4,w.create({key:O,iv:W,salt:A})}},U=a.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:$}),encrypt:function(T,B,F,A){A=this.cfg.extend(A);var N=A.kdf.execute(F,T.keySize,T.ivSize,A.salt,A.hasher);A.iv=N.iv;var O=x.encrypt.call(this,T,B,N.key,A);return O.mixIn(N),O},decrypt:function(T,B,F,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var N=A.kdf.execute(F,T.keySize,T.ivSize,B.salt,A.hasher);A.iv=N.iv;var O=x.decrypt.call(this,T,B,N.key,A);return O}})}()})}(Es)),Es.exports}(function(n,e){(function(t,r,i){n.exports=r(Ht(),Rc,Ic,Fc(),o3())})(He,function(t){return function(){var r=t,i=r.lib,a=i.BlockCipher,o=r.algo,s=[],l=[],c=[],u=[],p=[],m=[],h=[],f=[],v=[],g=[];(function(){for(var w=[],S=0;S<256;S++)S<128?w[S]=S<<1:w[S]=S<<1^283;for(var C=0,x=0,S=0;S<256;S++){var E=x^x<<1^x<<2^x<<3^x<<4;E=E>>>8^E&255^99,s[C]=E,l[E]=C;var $=w[C],U=w[$],T=w[U],B=w[E]*257^E*16843008;c[C]=B<<24|B>>>8,u[C]=B<<16|B>>>16,p[C]=B<<8|B>>>24,m[C]=B;var B=T*16843009^U*65537^$*257^C*16843008;h[E]=B<<24|B>>>8,f[E]=B<<16|B>>>16,v[E]=B<<8|B>>>24,g[E]=B,C?(C=$^w[w[w[T^$]]],x^=w[w[x]]):C=x=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],b=o.AES=a.extend({_doReset:function(){var w;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,C=S.words,x=S.sigBytes/4,E=this._nRounds=x+6,$=(E+1)*4,U=this._keySchedule=[],T=0;T<$;T++)T<x?U[T]=C[T]:(w=U[T-1],T%x?x>6&&T%x==4&&(w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255]):(w=w<<8|w>>>24,w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255],w^=k[T/x|0]<<24),U[T]=U[T-x]^w);for(var B=this._invKeySchedule=[],F=0;F<$;F++){var T=$-F;if(F%4)var w=U[T];else var w=U[T-4];F<4||T<=4?B[F]=w:B[F]=h[s[w>>>24]]^f[s[w>>>16&255]]^v[s[w>>>8&255]]^g[s[w&255]]}}},encryptBlock:function(w,S){this._doCryptBlock(w,S,this._keySchedule,c,u,p,m,s)},decryptBlock:function(w,S){var C=w[S+1];w[S+1]=w[S+3],w[S+3]=C,this._doCryptBlock(w,S,this._invKeySchedule,h,f,v,g,l);var C=w[S+1];w[S+1]=w[S+3],w[S+3]=C},_doCryptBlock:function(w,S,C,x,E,$,U,T){for(var B=this._nRounds,F=w[S]^C[0],A=w[S+1]^C[1],N=w[S+2]^C[2],O=w[S+3]^C[3],W=4,Z=1;Z<B;Z++){var Q=x[F>>>24]^E[A>>>16&255]^$[N>>>8&255]^U[O&255]^C[W++],re=x[A>>>24]^E[N>>>16&255]^$[O>>>8&255]^U[F&255]^C[W++],ie=x[N>>>24]^E[O>>>16&255]^$[F>>>8&255]^U[A&255]^C[W++],L=x[O>>>24]^E[F>>>16&255]^$[A>>>8&255]^U[N&255]^C[W++];F=Q,A=re,N=ie,O=L}var Q=(T[F>>>24]<<24|T[A>>>16&255]<<16|T[N>>>8&255]<<8|T[O&255])^C[W++],re=(T[A>>>24]<<24|T[N>>>16&255]<<16|T[O>>>8&255]<<8|T[F&255])^C[W++],ie=(T[N>>>24]<<24|T[O>>>16&255]<<16|T[F>>>8&255]<<8|T[A&255])^C[W++],L=(T[O>>>24]<<24|T[F>>>16&255]<<16|T[A>>>8&255]<<8|T[N&255])^C[W++];w[S]=Q,w[S+1]=re,w[S+2]=ie,w[S+3]=L},keySize:256/32});r.AES=a._createHelper(b)}(),t.AES})})(Nc);var s3=Nc.exports;Bn(s3);var l3="0123456789abcdefghijklmnopqrstuvwxyz";function As(n){return l3.charAt(n)}function c3(n,e){return n&e}function yr(n,e){return n|e}function Ts(n,e){return n^e}function Bs(n,e){return n&~e}function u3(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 d3(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var Rn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p3="=";function zs(n){var e,t,r="";for(e=0;e+3<=n.length;e+=3)t=parseInt(n.substring(e,e+3),16),r+=Rn.charAt(t>>6)+Rn.charAt(t&63);for(e+1==n.length?(t=parseInt(n.substring(e,e+1),16),r+=Rn.charAt(t<<2)):e+2==n.length&&(t=parseInt(n.substring(e,e+2),16),r+=Rn.charAt(t>>2)+Rn.charAt((t&3)<<4));(r.length&3)>0;)r+=p3;return r}var un,h3={decode:function(n){var e;if(un===void 0){var t="0123456789ABCDEF",r=` \f
20
+ \r  \u2028\u2029`;for(un={},e=0;e<16;++e)un[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)un[t.charAt(e)]=e;for(e=0;e<r.length;++e)un[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=un[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Kt,ra={decode:function(n){var e;if(Kt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
21
+ \r  \u2028\u2029`;for(Kt=Object.create(null),e=0;e<64;++e)Kt[t.charAt(e)]=e;for(Kt["-"]=62,Kt._=63,e=0;e<r.length;++e)Kt[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=Kt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);a|=s,++o>=4?(i[i.length]=a>>16,i[i.length]=a>>8&255,i[i.length]=a&255,a=0,o=0):a<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=a>>10;break;case 3:i[i.length]=a>>16,i[i.length]=a>>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=ra.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 ra.decode(n)}},dn=1e13,Hn=function(){function n(e){this.buf=[+e||0]}return n.prototype.mulAdd=function(e,t){var r=this.buf,i=r.length,a,o;for(a=0;a<i;++a)o=r[a]*e+t,o<dn?t=0:(t=0|o/dn,o-=t*dn),r[a]=o;t>0&&(r[a]=t)},n.prototype.sub=function(e){var t=this.buf,r=t.length,i,a;for(i=0;i<r;++i)a=t[i]-e,a<0?(a+=dn,e=1):e=0,t[i]=a;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+=(dn+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*dn+e[r];return t},n.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},n}(),Hc="…",m3=/^(\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)?)?$/,f3=/^(\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 gn(n,e){return n.length>e&&(n=n.substring(0,e)+Hc),n}var bi=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="",a=e;a<t;++a)if(i+=this.hexByte(this.get(a)),r!==!0)switch(a&15){case 7:i+=" ";break;case 15:i+=`
22
+ `;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 a=this.get(i++);a<128?r+=String.fromCharCode(a):a>191&&a<224?r+=String.fromCharCode((a&31)<<6|this.get(i++)&63):r+=String.fromCharCode((a&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(e,t){for(var r="",i,a,o=e;o<t;)i=this.get(o++),a=this.get(o++),r+=String.fromCharCode(i<<8|a);return r},n.prototype.parseTime=function(e,t,r){var i=this.parseStringISO(e,t),a=(r?m3:f3).exec(i);return a?(r&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),i=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(i+=":"+a[5],a[6]&&(i+=":"+a[6],a[7]&&(i+="."+a[7]))),a[8]&&(i+=" UTC",a[8]!="Z"&&(i+=a[8],a[9]&&(i+=":"+a[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(e,t){for(var r=this.get(e),i=r>127,a=i?255:0,o,s="";r==a&&++e<t;)r=this.get(e);if(o=t-e,o===0)return i?-1:0;if(o>4){for(s=r,o<<=3;!((+s^a)&128);)s=+s<<1,--o;s="("+o+` bit)
23
23
  `}i&&(r=r-256);for(var l=new Hn(r),c=e+1;c<t;++c)l.mulAdd(256,this.get(c));return s+l.toString()},n.prototype.parseBitString=function(e,t,r){for(var i=this.get(e),a=(t-e-1<<3)-i,o="("+a+` bit)
24
24
  `,s="",l=e+1;l<t;++l){for(var c=this.get(l),u=l==t-1?i:0,p=7;p>=u;--p)s+=c>>p&1?"1":"0";if(s.length>r)return o+gn(s,r)}return o+s},n.prototype.parseOctetString=function(e,t,r){if(this.isASCII(e,t))return gn(this.parseStringISO(e,t),r);var i=t-e,a="("+i+` byte)
25
- `;r/=2,i>r&&(t=e+r);for(var o=e;o<t;++o)a+=this.hexByte(this.get(o));return i>r&&(a+=Hc),a},n.prototype.parseOID=function(e,t,r){for(var i="",a=new Hn,o=0,s=e;s<t;++s){var l=this.get(s);if(a.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(a=a.simplify(),a instanceof Hn)a.sub(80),i="2."+a.toString();else{var c=a<80?a<40?0:1:2;i=c+"."+(a-c*40)}else i+="."+a.toString();if(i.length>r)return gn(i,r);a=new Hn,o=0}}return o>0&&(i+=".incomplete"),i},n}(),f3=function(){function n(e,t,r,i,a){if(!(i instanceof Ds))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=i,this.sub=a}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 gn(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return gn(this.stream.parseStringISO(t,t+r),e);case 30:return gn(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+=`
26
- `,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 bi?t=e:t=new bi(e,0);var r=new bi(t),i=new Ds(t),a=n.decodeLength(t),o=t.pos,s=o-r.pos,l=null,c=function(){var p=[];if(a!==null){for(var m=o+a;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 "+o)}else try{for(;;){var h=n.decode(t);if(h.tag.isEOC())break;p[p.length]=h}a=o-t.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(i.tagConstructed)l=c();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=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(a===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);t.pos=o+Math.abs(a)}return new n(r,s,a,i,l)},n}(),Ds=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 Hn;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}(),zt,v3=0xdeadbeefcafe,Os=(v3&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],g3=(1<<26)/Fe[Fe.length-1],ue=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,a=!1,o="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(i=this[s]>>l)>0&&(a=!0,o=As(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&&(a=!0),a&&(o+=As(i));return a?o:"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)+br(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 Is(t):r=new Rs(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,a=0;if(e-- >0)for(r<this.DB&&(i=this[e]>>r)!=(this.s&this.DM)>>r&&(t[a++]=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),a==0&&(this.s&128)!=(i&128)&&++a,(a>0||i!=this.s)&&(t[a++]=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,l3,t),t},n.prototype.or=function(e){var t=pe();return this.bitwiseTo(e,yr,t),t},n.prototype.xor=function(e){var t=pe();return this.bitwiseTo(e,Ts,t),t},n.prototype.andNot=function(e){var t=pe();return this.bitwiseTo(e,Bs,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+c3(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+=u3(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,yr)},n.prototype.clearBit=function(e){return this.changeBit(e,Bs)},n.prototype.flipBit=function(e){return this.changeBit(e,Ts)},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,a=Dt(1),o;if(r<=0)return a;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?o=new Is(t):t.isEven()?o=new b3(t):o=new Rs(t);var s=[],l=3,c=i-1,u=(1<<i)-1;if(s[1]=o.convert(this),i>1){var p=pe();for(o.sqrTo(s[1],p);l<=u;)s[l]=pe(),o.mulTo(p,s[l-2],s[l]),l+=2}var m=e.t-1,h,f=!0,v=pe(),g;for(r=br(e[m])-1;m>=0;){for(r>=c?h=e[m]>>r-c&u:(h=(e[m]&(1<<r+1)-1)<<c-r,m>0&&(h|=e[m-1]>>this.DB+r-c)),l=i;!(h&1);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--m),f)s[h].copyTo(a),f=!1;else{for(;l>1;)o.sqrTo(a,v),o.sqrTo(v,a),l-=2;l>0?o.sqrTo(a,v):(g=a,a=v,v=g),o.mulTo(v,s[h],a)}for(;m>=0&&!(e[m]&1<<r);)o.sqrTo(a,v),g=a,a=v,v=g,--r<0&&(r=this.DB-1,--m)}return o.revert(a)},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(),a=Dt(1),o=Dt(0),s=Dt(0),l=Dt(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);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&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),t&&s.subTo(a,s),l.subTo(o,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 y3)},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 a=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(a<o&&(o=a),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,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],a=t+1;a<Fe.length&&i<g3;)i*=Fe[a++];for(i=r.modInt(i);t<a;)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,a=!1,o=0;--i>=0;){var s=r==8?+e[i]&255:Ps(e,i);if(s<0){e.charAt(i)=="-"&&(a=!0);continue}a=!1,o==0?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,o+=r,o>=this.DB&&(o-=this.DB)}r==8&&+e[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&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,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+o+1]=this[l]>>i|s,s=(this[l]&a)<<r;for(var l=o-1;l>=0;--l)t[l]=0;t[o]=s,t.t=this.t+o+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,a=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<a,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<a),t.t=this.t-r,t.clamp()},n.prototype.subTo=function(e,t){for(var r=0,i=0,a=Math.min(e.t,this.t);r<a;)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(),a=r.t;for(t.t=a+i.t;--a>=0;)t[a]=0;for(a=0;a<i.t;++a)t[a+r.t]=r.am(0,i[a],t,a,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 a=this.abs();if(a.t<i.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=pe());var o=pe(),s=this.s,l=e.s,c=this.DB-br(i[i.t-1]);c>0?(i.lShiftTo(c,o),a.lShiftTo(c,r)):(i.copyTo(o),a.copyTo(r));var u=o.t,p=o[u-1];if(p!=0){var m=p*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,v=1<<this.F2,g=r.t,k=g-u,b=t??pe();for(o.dlShiftTo(k,b),r.compareTo(b)>=0&&(r[r.t++]=1,r.subTo(b,r)),n.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--k>=0;){var x=r[--g]==p?this.DM:Math.floor(r[g]*h+(r[g-1]+v)*f);if((r[g]+=o.am(0,x,r,k,0,u))<x)for(o.dlShiftTo(k,b),r.subTo(b,r);r[g]<--x;)r.subTo(b,r)}t!=null&&(r.drShiftTo(u,t),s!=l&&n.ZERO.subTo(t,t)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,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(),a=t.convert(this),o=br(e)-1;for(a.copyTo(r);--o>=0;)if(t.sqrTo(r,i),(e&1<<o)>0)t.mulTo(i,a,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=Dt(r),a=pe(),o=pe(),s="";for(this.divRemTo(i,a,o);a.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,a.divRemTo(i,a,o);return o.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),a=!1,o=0,s=0,l=0;l<e.length;++l){var c=Ps(e,l);if(c<0){e.charAt(l)=="-"&&this.signum()==0&&(a=!0);continue}s=t*s+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0)}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),a&&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),yr,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=[],a=e&7;i.length=(e>>3)+1,t.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,a,o=Math.min(e.t,this.t);for(i=0;i<o;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(a=e.s&this.DM,i=o;i<this.t;++i)r[i]=t(this[i],a);r.t=this.t}else{for(a=this.s&this.DM,i=o;i<e.t;++i)r[i]=t(a,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,a=Math.min(e.t,this.t);r<a;)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 a=r.t-this.t;i<a;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(var a=Math.min(e.t,t);i<a;++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 a=pe(),o=0;o<e;++o){a.fromInt(Fe[Math.floor(Math.random()*Fe.length)]);var s=a.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 a=r;r=i,i=a}var o=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0){t(r);return}o<s&&(s=o),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));var l=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,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),yr,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(n.ONE.shiftLeft(e-1),a),a.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,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}(),y3=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}(),Is=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}(),Rs=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(ue.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}(),b3=function(){function n(e){this.m=e,this.r2=pe(),this.q3=pe(),ue.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 ue(null)}function Ce(n,e){return new ue(n,e)}var Ms=typeof navigator<"u";Ms&&Os&&navigator.appName=="Microsoft Internet Explorer"?(ue.prototype.am=function(n,e,t,r,i,a){for(var o=e&32767,s=e>>15;--a>=0;){var l=this[n]&32767,c=this[n++]>>15,u=s*l+c*o;l=o*l+((u&32767)<<15)+t[r]+(i&1073741823),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),t[r++]=l&1073741823}return i},zt=30):Ms&&Os&&navigator.appName!="Netscape"?(ue.prototype.am=function(n,e,t,r,i,a){for(;--a>=0;){var o=e*this[n++]+t[r]+i;i=Math.floor(o/67108864),t[r++]=o&67108863}return i},zt=26):(ue.prototype.am=function(n,e,t,r,i,a){for(var o=e&16383,s=e>>14;--a>=0;){var l=this[n]&16383,c=this[n++]>>14,u=s*l+c*o;l=o*l+((u&16383)<<14)+t[r]+i,i=(l>>28)+(u>>14)+s*c,t[r++]=l&268435455}return i},zt=28),ue.prototype.DB=zt,ue.prototype.DM=(1<<zt)-1,ue.prototype.DV=1<<zt;var wi=52;ue.prototype.FV=Math.pow(2,wi),ue.prototype.F1=wi-zt,ue.prototype.F2=2*zt-wi;var ri=[],Sn,tt;for(Sn=48,tt=0;tt<=9;++tt)ri[Sn++]=tt;for(Sn=97,tt=10;tt<36;++tt)ri[Sn++]=tt;for(Sn=65,tt=10;tt<36;++tt)ri[Sn++]=tt;function Ps(n,e){var t=ri[n.charCodeAt(e)];return t??-1}function Dt(n){var e=pe();return e.fromInt(n),e}function br(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}ue.ZERO=Dt(0),ue.ONE=Dt(1);var w3=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 x3(){return new w3}var Lc=256,wr,Ot=null,st;if(Ot==null){Ot=[],st=0;var xr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var xi=new Uint32Array(256);for(window.crypto.getRandomValues(xi),xr=0;xr<xi.length;++xr)Ot[st++]=xi[xr]&255}var _r=0,Sr=function(n){if(_r=_r||0,_r>=256||st>=Lc){window.removeEventListener?window.removeEventListener("mousemove",Sr,!1):window.detachEvent&&window.detachEvent("onmousemove",Sr);return}try{var e=n.x+n.y;Ot[st++]=e&255,_r+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Sr,!1):window.attachEvent&&window.attachEvent("onmousemove",Sr))}function _3(){if(wr==null){for(wr=x3();st<Lc;){var n=Math.floor(65536*Math.random());Ot[st++]=n&255}for(wr.init(Ot),st=0;st<Ot.length;++st)Ot[st]=0;st=0}return wr.next()}var ia=function(){function n(){}return n.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=_3()},n}();function S3(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 a="0001"+r+"00"+n;return Ce(a,16)}function k3(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 a=new ia,o=[];e>2;){for(o[0]=0;o[0]==0;)a.nextBytes(o);t[--e]=o[0]}return t[--e]=2,t[--e]=0,new ue(t)}var j3=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=Ce(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=k3(e,t);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var a=i.toString(16),o=a.length,s=0;s<t*2-o;s++)a="0"+a;return a},n.prototype.setPrivate=function(e,t,r){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ce(e,16),this.e=parseInt(t,16),this.d=Ce(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,t,r,i,a,o,s,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ce(e,16),this.e=parseInt(t,16),this.d=Ce(r,16),this.p=Ce(i,16),this.q=Ce(a,16),this.dmp1=Ce(o,16),this.dmq1=Ce(s,16),this.coeff=Ce(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,t){var r=new ia,i=e>>1;this.e=parseInt(t,16);for(var a=new ue(t,16);;){for(;this.p=new ue(e-i,1,r),!(this.p.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ue(i,1,r),!(this.q.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(ue.ONE),l=this.q.subtract(ue.ONE),c=s.multiply(l);if(c.gcd(a).compareTo(ue.ONE)==0){this.n=this.p.multiply(this.q),this.d=a.modInverse(c),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=Ce(e,16),r=this.doPrivate(t);return r==null?null:C3(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,t,r){var i=new ia,a=e>>1;this.e=parseInt(t,16);var o=new ue(t,16),s=this,l=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var m=s.p;s.p=s.q,s.q=m}var h=s.p.subtract(ue.ONE),f=s.q.subtract(ue.ONE),v=h.multiply(f);v.gcd(o).compareTo(ue.ONE)==0?(s.n=s.p.multiply(s.q),s.d=o.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)},u=function(){s.q=pe(),s.q.fromNumberAsync(a,1,i,function(){s.q.subtract(ue.ONE).gcda(o,function(m){m.compareTo(ue.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},p=function(){s.p=pe(),s.p.fromNumberAsync(e-a,1,i,function(){s.p.subtract(ue.ONE).gcda(o,function(m){m.compareTo(ue.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},n.prototype.sign=function(e,t,r){var i=V3(r),a=i+t(e).toString(),o=S3(a,this.n.bitLength()/4);if(o==null)return null;var s=this.doPrivate(o);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=Ce(t,16),a=this.doPublic(i);if(a==null)return null;var o=a.toString(16).replace(/^1f+00/,""),s=$3(o);return s==r(e).toString()},n}();function C3(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 a=t[r]&255;a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((a&31)<<6|t[r+1]&63),++r):(i+=String.fromCharCode((a&15)<<12|(t[r+1]&63)<<6|t[r+2]&63),r+=2)}return i}var zr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function V3(n){return zr[n]||""}function $3(n){for(var e in zr)if(zr.hasOwnProperty(e)){var t=zr[e],r=t.length;if(n.substr(0,r)==t)return n.substr(r)}return n}/*!
25
+ `;r/=2,i>r&&(t=e+r);for(var o=e;o<t;++o)a+=this.hexByte(this.get(o));return i>r&&(a+=Hc),a},n.prototype.parseOID=function(e,t,r){for(var i="",a=new Hn,o=0,s=e;s<t;++s){var l=this.get(s);if(a.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(a=a.simplify(),a instanceof Hn)a.sub(80),i="2."+a.toString();else{var c=a<80?a<40?0:1:2;i=c+"."+(a-c*40)}else i+="."+a.toString();if(i.length>r)return gn(i,r);a=new Hn,o=0}}return o>0&&(i+=".incomplete"),i},n}(),v3=function(){function n(e,t,r,i,a){if(!(i instanceof Ds))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=i,this.sub=a}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 gn(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return gn(this.stream.parseStringISO(t,t+r),e);case 30:return gn(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+=`
26
+ `,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 bi?t=e:t=new bi(e,0);var r=new bi(t),i=new Ds(t),a=n.decodeLength(t),o=t.pos,s=o-r.pos,l=null,c=function(){var p=[];if(a!==null){for(var m=o+a;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 "+o)}else try{for(;;){var h=n.decode(t);if(h.tag.isEOC())break;p[p.length]=h}a=o-t.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(i.tagConstructed)l=c();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=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(a===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);t.pos=o+Math.abs(a)}return new n(r,s,a,i,l)},n}(),Ds=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 Hn;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}(),zt,g3=0xdeadbeefcafe,Os=(g3&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],y3=(1<<26)/Fe[Fe.length-1],ue=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,a=!1,o="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(i=this[s]>>l)>0&&(a=!0,o=As(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&&(a=!0),a&&(o+=As(i));return a?o:"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)+br(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 Is(t):r=new Ms(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,a=0;if(e-- >0)for(r<this.DB&&(i=this[e]>>r)!=(this.s&this.DM)>>r&&(t[a++]=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),a==0&&(this.s&128)!=(i&128)&&++a,(a>0||i!=this.s)&&(t[a++]=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,c3,t),t},n.prototype.or=function(e){var t=pe();return this.bitwiseTo(e,yr,t),t},n.prototype.xor=function(e){var t=pe();return this.bitwiseTo(e,Ts,t),t},n.prototype.andNot=function(e){var t=pe();return this.bitwiseTo(e,Bs,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+u3(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+=d3(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,yr)},n.prototype.clearBit=function(e){return this.changeBit(e,Bs)},n.prototype.flipBit=function(e){return this.changeBit(e,Ts)},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,a=Dt(1),o;if(r<=0)return a;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?o=new Is(t):t.isEven()?o=new w3(t):o=new Ms(t);var s=[],l=3,c=i-1,u=(1<<i)-1;if(s[1]=o.convert(this),i>1){var p=pe();for(o.sqrTo(s[1],p);l<=u;)s[l]=pe(),o.mulTo(p,s[l-2],s[l]),l+=2}var m=e.t-1,h,f=!0,v=pe(),g;for(r=br(e[m])-1;m>=0;){for(r>=c?h=e[m]>>r-c&u:(h=(e[m]&(1<<r+1)-1)<<c-r,m>0&&(h|=e[m-1]>>this.DB+r-c)),l=i;!(h&1);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--m),f)s[h].copyTo(a),f=!1;else{for(;l>1;)o.sqrTo(a,v),o.sqrTo(v,a),l-=2;l>0?o.sqrTo(a,v):(g=a,a=v,v=g),o.mulTo(v,s[h],a)}for(;m>=0&&!(e[m]&1<<r);)o.sqrTo(a,v),g=a,a=v,v=g,--r<0&&(r=this.DB-1,--m)}return o.revert(a)},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(),a=Dt(1),o=Dt(0),s=Dt(0),l=Dt(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);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&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),t&&s.subTo(a,s),l.subTo(o,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 b3)},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 a=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(a<o&&(o=a),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,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],a=t+1;a<Fe.length&&i<y3;)i*=Fe[a++];for(i=r.modInt(i);t<a;)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,a=!1,o=0;--i>=0;){var s=r==8?+e[i]&255:Ps(e,i);if(s<0){e.charAt(i)=="-"&&(a=!0);continue}a=!1,o==0?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,o+=r,o>=this.DB&&(o-=this.DB)}r==8&&+e[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&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,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+o+1]=this[l]>>i|s,s=(this[l]&a)<<r;for(var l=o-1;l>=0;--l)t[l]=0;t[o]=s,t.t=this.t+o+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,a=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<a,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<a),t.t=this.t-r,t.clamp()},n.prototype.subTo=function(e,t){for(var r=0,i=0,a=Math.min(e.t,this.t);r<a;)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(),a=r.t;for(t.t=a+i.t;--a>=0;)t[a]=0;for(a=0;a<i.t;++a)t[a+r.t]=r.am(0,i[a],t,a,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 a=this.abs();if(a.t<i.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=pe());var o=pe(),s=this.s,l=e.s,c=this.DB-br(i[i.t-1]);c>0?(i.lShiftTo(c,o),a.lShiftTo(c,r)):(i.copyTo(o),a.copyTo(r));var u=o.t,p=o[u-1];if(p!=0){var m=p*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,v=1<<this.F2,g=r.t,k=g-u,b=t??pe();for(o.dlShiftTo(k,b),r.compareTo(b)>=0&&(r[r.t++]=1,r.subTo(b,r)),n.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--k>=0;){var w=r[--g]==p?this.DM:Math.floor(r[g]*h+(r[g-1]+v)*f);if((r[g]+=o.am(0,w,r,k,0,u))<w)for(o.dlShiftTo(k,b),r.subTo(b,r);r[g]<--w;)r.subTo(b,r)}t!=null&&(r.drShiftTo(u,t),s!=l&&n.ZERO.subTo(t,t)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,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(),a=t.convert(this),o=br(e)-1;for(a.copyTo(r);--o>=0;)if(t.sqrTo(r,i),(e&1<<o)>0)t.mulTo(i,a,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=Dt(r),a=pe(),o=pe(),s="";for(this.divRemTo(i,a,o);a.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,a.divRemTo(i,a,o);return o.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),a=!1,o=0,s=0,l=0;l<e.length;++l){var c=Ps(e,l);if(c<0){e.charAt(l)=="-"&&this.signum()==0&&(a=!0);continue}s=t*s+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0)}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),a&&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),yr,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=[],a=e&7;i.length=(e>>3)+1,t.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,a,o=Math.min(e.t,this.t);for(i=0;i<o;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(a=e.s&this.DM,i=o;i<this.t;++i)r[i]=t(this[i],a);r.t=this.t}else{for(a=this.s&this.DM,i=o;i<e.t;++i)r[i]=t(a,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,a=Math.min(e.t,this.t);r<a;)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 a=r.t-this.t;i<a;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(var a=Math.min(e.t,t);i<a;++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 a=pe(),o=0;o<e;++o){a.fromInt(Fe[Math.floor(Math.random()*Fe.length)]);var s=a.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 a=r;r=i,i=a}var o=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0){t(r);return}o<s&&(s=o),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));var l=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,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),yr,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(n.ONE.shiftLeft(e-1),a),a.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,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}(),b3=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}(),Is=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}(),Ms=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(ue.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}(),w3=function(){function n(e){this.m=e,this.r2=pe(),this.q3=pe(),ue.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 ue(null)}function Ve(n,e){return new ue(n,e)}var Rs=typeof navigator<"u";Rs&&Os&&navigator.appName=="Microsoft Internet Explorer"?(ue.prototype.am=function(n,e,t,r,i,a){for(var o=e&32767,s=e>>15;--a>=0;){var l=this[n]&32767,c=this[n++]>>15,u=s*l+c*o;l=o*l+((u&32767)<<15)+t[r]+(i&1073741823),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),t[r++]=l&1073741823}return i},zt=30):Rs&&Os&&navigator.appName!="Netscape"?(ue.prototype.am=function(n,e,t,r,i,a){for(;--a>=0;){var o=e*this[n++]+t[r]+i;i=Math.floor(o/67108864),t[r++]=o&67108863}return i},zt=26):(ue.prototype.am=function(n,e,t,r,i,a){for(var o=e&16383,s=e>>14;--a>=0;){var l=this[n]&16383,c=this[n++]>>14,u=s*l+c*o;l=o*l+((u&16383)<<14)+t[r]+i,i=(l>>28)+(u>>14)+s*c,t[r++]=l&268435455}return i},zt=28),ue.prototype.DB=zt,ue.prototype.DM=(1<<zt)-1,ue.prototype.DV=1<<zt;var wi=52;ue.prototype.FV=Math.pow(2,wi),ue.prototype.F1=wi-zt,ue.prototype.F2=2*zt-wi;var ri=[],Sn,tt;for(Sn=48,tt=0;tt<=9;++tt)ri[Sn++]=tt;for(Sn=97,tt=10;tt<36;++tt)ri[Sn++]=tt;for(Sn=65,tt=10;tt<36;++tt)ri[Sn++]=tt;function Ps(n,e){var t=ri[n.charCodeAt(e)];return t??-1}function Dt(n){var e=pe();return e.fromInt(n),e}function br(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}ue.ZERO=Dt(0),ue.ONE=Dt(1);var x3=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 _3(){return new x3}var Lc=256,wr,It=null,st;if(It==null){It=[],st=0;var xr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var xi=new Uint32Array(256);for(window.crypto.getRandomValues(xi),xr=0;xr<xi.length;++xr)It[st++]=xi[xr]&255}var _r=0,Sr=function(n){if(_r=_r||0,_r>=256||st>=Lc){window.removeEventListener?window.removeEventListener("mousemove",Sr,!1):window.detachEvent&&window.detachEvent("onmousemove",Sr);return}try{var e=n.x+n.y;It[st++]=e&255,_r+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Sr,!1):window.attachEvent&&window.attachEvent("onmousemove",Sr))}function S3(){if(wr==null){for(wr=_3();st<Lc;){var n=Math.floor(65536*Math.random());It[st++]=n&255}for(wr.init(It),st=0;st<It.length;++st)It[st]=0;st=0}return wr.next()}var ia=function(){function n(){}return n.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=S3()},n}();function k3(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 a="0001"+r+"00"+n;return Ve(a,16)}function j3(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 a=new ia,o=[];e>2;){for(o[0]=0;o[0]==0;)a.nextBytes(o);t[--e]=o[0]}return t[--e]=2,t[--e]=0,new ue(t)}var V3=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=Ve(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=j3(e,t);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var a=i.toString(16),o=a.length,s=0;s<t*2-o;s++)a="0"+a;return a},n.prototype.setPrivate=function(e,t,r){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ve(e,16),this.e=parseInt(t,16),this.d=Ve(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,t,r,i,a,o,s,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ve(e,16),this.e=parseInt(t,16),this.d=Ve(r,16),this.p=Ve(i,16),this.q=Ve(a,16),this.dmp1=Ve(o,16),this.dmq1=Ve(s,16),this.coeff=Ve(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,t){var r=new ia,i=e>>1;this.e=parseInt(t,16);for(var a=new ue(t,16);;){for(;this.p=new ue(e-i,1,r),!(this.p.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ue(i,1,r),!(this.q.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(ue.ONE),l=this.q.subtract(ue.ONE),c=s.multiply(l);if(c.gcd(a).compareTo(ue.ONE)==0){this.n=this.p.multiply(this.q),this.d=a.modInverse(c),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=Ve(e,16),r=this.doPrivate(t);return r==null?null:C3(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,t,r){var i=new ia,a=e>>1;this.e=parseInt(t,16);var o=new ue(t,16),s=this,l=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var m=s.p;s.p=s.q,s.q=m}var h=s.p.subtract(ue.ONE),f=s.q.subtract(ue.ONE),v=h.multiply(f);v.gcd(o).compareTo(ue.ONE)==0?(s.n=s.p.multiply(s.q),s.d=o.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)},u=function(){s.q=pe(),s.q.fromNumberAsync(a,1,i,function(){s.q.subtract(ue.ONE).gcda(o,function(m){m.compareTo(ue.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},p=function(){s.p=pe(),s.p.fromNumberAsync(e-a,1,i,function(){s.p.subtract(ue.ONE).gcda(o,function(m){m.compareTo(ue.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},n.prototype.sign=function(e,t,r){var i=E3(r),a=i+t(e).toString(),o=k3(a,this.n.bitLength()/4);if(o==null)return null;var s=this.doPrivate(o);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=Ve(t,16),a=this.doPublic(i);if(a==null)return null;var o=a.toString(16).replace(/^1f+00/,""),s=$3(o);return s==r(e).toString()},n}();function C3(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 a=t[r]&255;a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((a&31)<<6|t[r+1]&63),++r):(i+=String.fromCharCode((a&15)<<12|(t[r+1]&63)<<6|t[r+2]&63),r+=2)}return i}var zr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function E3(n){return zr[n]||""}function $3(n){for(var e in zr)if(zr.hasOwnProperty(e)){var t=zr[e],r=t.length;if(n.substr(0,r)==t)return n.substr(r)}return n}/*!
27
27
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
28
28
  Code licensed under the BSD License:
29
29
  http://developer.yahoo.com/yui/license.html
30
30
  version: 2.9.0
31
- */var $e={};$e.lang={extend:function(n,e,t){if(!e||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),t){var i;for(i in t)n.prototype[i]=t[i];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(s,l){for(i=0;i<o.length;i=i+1){var c=o[i],u=l[c];typeof u=="function"&&u!=Object.prototype[c]&&(s[c]=u)}})}catch{}a(n.prototype,t)}}};/**
31
+ */var Ee={};Ee.lang={extend:function(n,e,t){if(!e||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),t){var i;for(i in t)n.prototype[i]=t[i];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(s,l){for(i=0;i<o.length;i=i+1){var c=o[i],u=l[c];typeof u=="function"&&u!=Object.prototype[c]&&(s[c]=u)}})}catch{}a(n.prototype,t)}}};/**
32
32
  * @fileOverview
33
33
  * @name asn1-1.0.js
34
34
  * @author Kenji Urushima kenji.urushima@gmail.com
35
35
  * @version asn1 1.0.13 (2017-Jun-02)
36
36
  * @since jsrsasign 2.1
37
37
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
38
- */var W={};(typeof W.asn1>"u"||!W.asn1)&&(W.asn1={}),W.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="",a=0;a<r;a++)i+="f";var o=new ue(i,16),s=o.xor(n).add(ue.ONE);e=s.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=W,t=e.asn1,r=t.DERBoolean,i=t.DERInteger,a=t.DERBitString,o=t.DEROctetString,s=t.DERNull,l=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,p=t.DERNumericString,m=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,v=t.DERUTCTime,g=t.DERGeneralizedTime,k=t.DERSequence,b=t.DERSet,x=t.DERTaggedObject,S=t.ASN1Util.newObject,V=Object.keys(n);if(V.length!=1)throw"key of param shall be only one.";var w=V[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new r(n[w]);if(w=="int")return new i(n[w]);if(w=="bitstr")return new a(n[w]);if(w=="octstr")return new o(n[w]);if(w=="null")return new s(n[w]);if(w=="oid")return new l(n[w]);if(w=="enum")return new c(n[w]);if(w=="utf8str")return new u(n[w]);if(w=="numstr")return new p(n[w]);if(w=="prnstr")return new m(n[w]);if(w=="telstr")return new h(n[w]);if(w=="ia5str")return new f(n[w]);if(w=="utctime")return new v(n[w]);if(w=="gentime")return new g(n[w]);if(w=="seq"){for(var $=n[w],E=[],J=0;J<$.length;J++){var T=S($[J]);E.push(T)}return new k({array:E})}if(w=="set"){for(var $=n[w],E=[],J=0;J<$.length;J++){var T=S($[J]);E.push(T)}return new b({array:E})}if(w=="tag"){var B=n[w];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var F=S(B[2]);return new x({tag:B[0],explicit:B[1],obj:F})}else{var A={};if(B.explicit!==void 0&&(A.explicit=B.explicit),B.tag!==void 0&&(A.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return A.obj=S(B.obj),new x(A)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},W.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,a="",o=2;o<n.length;o+=2){var s=parseInt(n.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a=a+l.substr(1,7),l.substr(0,1)=="0"){var c=new ue(a,2);i=i+"."+c.toString(10),a=""}}return i},W.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="",c=new ue(s,10),u=c.toString(2),p=7-u.length%7;p==7&&(p=0);for(var m="",h=0;h<p;h++)m+="0";u=m+u;for(var h=0;h<u.length-1;h+=7){var f=u.substr(h,7);h!=u.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("."),a=parseInt(i[0])*40+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=t(i[o]);return r},W.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""}},W.asn1.DERAbstractString=function(n){W.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))},$e.lang.extend(W.asn1.DERAbstractString,W.asn1.ASN1Object),W.asn1.DERAbstractTime=function(n){W.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,a=this.localDateToUTC(e),o=String(a.getFullYear());t=="utc"&&(o=o.substr(2,2));var s=i(String(a.getMonth()+1),2),l=i(String(a.getDate()),2),c=i(String(a.getHours()),2),u=i(String(a.getMinutes()),2),p=i(String(a.getSeconds()),2),m=o+s+l+c+u+p;if(r===!0){var h=a.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,a,o){var s=new Date(Date.UTC(e,t-1,r,i,a,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},$e.lang.extend(W.asn1.DERAbstractTime,W.asn1.ASN1Object),W.asn1.DERAbstractStructured=function(n){W.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)},$e.lang.extend(W.asn1.DERAbstractStructured,W.asn1.ASN1Object),W.asn1.DERBoolean=function(){W.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},$e.lang.extend(W.asn1.DERBoolean,W.asn1.ASN1Object),W.asn1.DERInteger=function(n){W.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(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))},$e.lang.extend(W.asn1.DERInteger,W.asn1.ASN1Object),W.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=W.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}W.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 a="",i=0;i<t.length-1;i+=8){var o=t.substr(i,8),s=parseInt(o,2).toString(16);s.length==1&&(s="0"+s),a+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+r+a},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))},$e.lang.extend(W.asn1.DERBitString,W.asn1.ASN1Object),W.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=W.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}W.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},$e.lang.extend(W.asn1.DEROctetString,W.asn1.DERAbstractString),W.asn1.DERNull=function(){W.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},$e.lang.extend(W.asn1.DERNull,W.asn1.ASN1Object),W.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="",a=new ue(r,10),o=a.toString(2),s=7-o.length%7;s==7&&(s=0);for(var l="",c=0;c<s;c++)l+="0";o=l+o;for(var c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=e(parseInt(u,2))}return i};W.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="",a=r.split("."),o=parseInt(a[0])*40+parseInt(a[1]);i+=e(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=t(a[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=W.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))},$e.lang.extend(W.asn1.DERObjectIdentifier,W.asn1.ASN1Object),W.asn1.DEREnumerated=function(n){W.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(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))},$e.lang.extend(W.asn1.DEREnumerated,W.asn1.ASN1Object),W.asn1.DERUTF8String=function(n){W.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},$e.lang.extend(W.asn1.DERUTF8String,W.asn1.DERAbstractString),W.asn1.DERNumericString=function(n){W.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},$e.lang.extend(W.asn1.DERNumericString,W.asn1.DERAbstractString),W.asn1.DERPrintableString=function(n){W.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},$e.lang.extend(W.asn1.DERPrintableString,W.asn1.DERAbstractString),W.asn1.DERTeletexString=function(n){W.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},$e.lang.extend(W.asn1.DERTeletexString,W.asn1.DERAbstractString),W.asn1.DERIA5String=function(n){W.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},$e.lang.extend(W.asn1.DERIA5String,W.asn1.DERAbstractString),W.asn1.DERUTCTime=function(n){W.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))},$e.lang.extend(W.asn1.DERUTCTime,W.asn1.DERAbstractTime),W.asn1.DERGeneralizedTime=function(n){W.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))},$e.lang.extend(W.asn1.DERGeneralizedTime,W.asn1.DERAbstractTime),W.asn1.DERSequence=function(n){W.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}},$e.lang.extend(W.asn1.DERSequence,W.asn1.DERAbstractStructured),W.asn1.DERSet=function(n){W.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)},$e.lang.extend(W.asn1.DERSet,W.asn1.DERAbstractStructured),W.asn1.DERTaggedObject=function(n){W.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)))},$e.lang.extend(W.asn1.DERTaggedObject,W.asn1.ASN1Object);var E3=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},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){E3(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,a=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=a.test(t)?p3.decode(t):ra.unarmor(t),s=f3.decode(o);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){r=s.sub[1].getHexStringValue(),this.n=Ce(r,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=s.sub[3].getHexStringValue();this.d=Ce(l,16);var c=s.sub[4].getHexStringValue();this.p=Ce(c,16);var u=s.sub[5].getHexStringValue();this.q=Ce(u,16);var p=s.sub[6].getHexStringValue();this.dmp1=Ce(p,16);var m=s.sub[7].getHexStringValue();this.dmq1=Ce(m,16);var h=s.sub[8].getHexStringValue();this.coeff=Ce(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=Ce(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=s.sub[0].getHexStringValue(),this.n=Ce(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 W.asn1.DERInteger({int:0}),new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e}),new W.asn1.DERInteger({bigint:this.d}),new W.asn1.DERInteger({bigint:this.p}),new W.asn1.DERInteger({bigint:this.q}),new W.asn1.DERInteger({bigint:this.dmp1}),new W.asn1.DERInteger({bigint:this.dmq1}),new W.asn1.DERInteger({bigint:this.coeff})]},r=new W.asn1.DERSequence(t);return r.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return zs(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new W.asn1.DERSequence({array:[new W.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new W.asn1.DERNull]}),r=new W.asn1.DERSequence({array:[new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e})]}),i=new W.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),a=new W.asn1.DERSequence({array:[t,i]});return a.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return zs(this.getPublicBaseKey())},e.wordwrap=function(t,r){if(r=r||64,!t)return t;var i="(.{1,"+r+`})( +|$
38
+ */var J={};(typeof J.asn1>"u"||!J.asn1)&&(J.asn1={}),J.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="",a=0;a<r;a++)i+="f";var o=new ue(i,16),s=o.xor(n).add(ue.ONE);e=s.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=J,t=e.asn1,r=t.DERBoolean,i=t.DERInteger,a=t.DERBitString,o=t.DEROctetString,s=t.DERNull,l=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,p=t.DERNumericString,m=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,v=t.DERUTCTime,g=t.DERGeneralizedTime,k=t.DERSequence,b=t.DERSet,w=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 a(n[x]);if(x=="octstr")return new o(n[x]);if(x=="null")return new s(n[x]);if(x=="oid")return new l(n[x]);if(x=="enum")return new c(n[x]);if(x=="utf8str")return new u(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 E=n[x],$=[],U=0;U<E.length;U++){var T=S(E[U]);$.push(T)}return new k({array:$})}if(x=="set"){for(var E=n[x],$=[],U=0;U<E.length;U++){var T=S(E[U]);$.push(T)}return new b({array:$})}if(x=="tag"){var B=n[x];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var F=S(B[2]);return new w({tag:B[0],explicit:B[1],obj:F})}else{var A={};if(B.explicit!==void 0&&(A.explicit=B.explicit),B.tag!==void 0&&(A.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return A.obj=S(B.obj),new w(A)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},J.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,a="",o=2;o<n.length;o+=2){var s=parseInt(n.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a=a+l.substr(1,7),l.substr(0,1)=="0"){var c=new ue(a,2);i=i+"."+c.toString(10),a=""}}return i},J.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="",c=new ue(s,10),u=c.toString(2),p=7-u.length%7;p==7&&(p=0);for(var m="",h=0;h<p;h++)m+="0";u=m+u;for(var h=0;h<u.length-1;h+=7){var f=u.substr(h,7);h!=u.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("."),a=parseInt(i[0])*40+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=t(i[o]);return r},J.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""}},J.asn1.DERAbstractString=function(n){J.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))},Ee.lang.extend(J.asn1.DERAbstractString,J.asn1.ASN1Object),J.asn1.DERAbstractTime=function(n){J.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,a=this.localDateToUTC(e),o=String(a.getFullYear());t=="utc"&&(o=o.substr(2,2));var s=i(String(a.getMonth()+1),2),l=i(String(a.getDate()),2),c=i(String(a.getHours()),2),u=i(String(a.getMinutes()),2),p=i(String(a.getSeconds()),2),m=o+s+l+c+u+p;if(r===!0){var h=a.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,a,o){var s=new Date(Date.UTC(e,t-1,r,i,a,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},Ee.lang.extend(J.asn1.DERAbstractTime,J.asn1.ASN1Object),J.asn1.DERAbstractStructured=function(n){J.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)},Ee.lang.extend(J.asn1.DERAbstractStructured,J.asn1.ASN1Object),J.asn1.DERBoolean=function(){J.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ee.lang.extend(J.asn1.DERBoolean,J.asn1.ASN1Object),J.asn1.DERInteger=function(n){J.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=J.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(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))},Ee.lang.extend(J.asn1.DERInteger,J.asn1.ASN1Object),J.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=J.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}J.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 a="",i=0;i<t.length-1;i+=8){var o=t.substr(i,8),s=parseInt(o,2).toString(16);s.length==1&&(s="0"+s),a+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+r+a},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))},Ee.lang.extend(J.asn1.DERBitString,J.asn1.ASN1Object),J.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=J.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}J.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},Ee.lang.extend(J.asn1.DEROctetString,J.asn1.DERAbstractString),J.asn1.DERNull=function(){J.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ee.lang.extend(J.asn1.DERNull,J.asn1.ASN1Object),J.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="",a=new ue(r,10),o=a.toString(2),s=7-o.length%7;s==7&&(s=0);for(var l="",c=0;c<s;c++)l+="0";o=l+o;for(var c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=e(parseInt(u,2))}return i};J.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="",a=r.split("."),o=parseInt(a[0])*40+parseInt(a[1]);i+=e(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=t(a[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=J.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))},Ee.lang.extend(J.asn1.DERObjectIdentifier,J.asn1.ASN1Object),J.asn1.DEREnumerated=function(n){J.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=J.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(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))},Ee.lang.extend(J.asn1.DEREnumerated,J.asn1.ASN1Object),J.asn1.DERUTF8String=function(n){J.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},Ee.lang.extend(J.asn1.DERUTF8String,J.asn1.DERAbstractString),J.asn1.DERNumericString=function(n){J.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},Ee.lang.extend(J.asn1.DERNumericString,J.asn1.DERAbstractString),J.asn1.DERPrintableString=function(n){J.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},Ee.lang.extend(J.asn1.DERPrintableString,J.asn1.DERAbstractString),J.asn1.DERTeletexString=function(n){J.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},Ee.lang.extend(J.asn1.DERTeletexString,J.asn1.DERAbstractString),J.asn1.DERIA5String=function(n){J.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},Ee.lang.extend(J.asn1.DERIA5String,J.asn1.DERAbstractString),J.asn1.DERUTCTime=function(n){J.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))},Ee.lang.extend(J.asn1.DERUTCTime,J.asn1.DERAbstractTime),J.asn1.DERGeneralizedTime=function(n){J.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))},Ee.lang.extend(J.asn1.DERGeneralizedTime,J.asn1.DERAbstractTime),J.asn1.DERSequence=function(n){J.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}},Ee.lang.extend(J.asn1.DERSequence,J.asn1.DERAbstractStructured),J.asn1.DERSet=function(n){J.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)},Ee.lang.extend(J.asn1.DERSet,J.asn1.DERAbstractStructured),J.asn1.DERTaggedObject=function(n){J.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)))},Ee.lang.extend(J.asn1.DERTaggedObject,J.asn1.ASN1Object);var A3=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},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){A3(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,a=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=a.test(t)?h3.decode(t):ra.unarmor(t),s=v3.decode(o);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){r=s.sub[1].getHexStringValue(),this.n=Ve(r,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=s.sub[3].getHexStringValue();this.d=Ve(l,16);var c=s.sub[4].getHexStringValue();this.p=Ve(c,16);var u=s.sub[5].getHexStringValue();this.q=Ve(u,16);var p=s.sub[6].getHexStringValue();this.dmp1=Ve(p,16);var m=s.sub[7].getHexStringValue();this.dmq1=Ve(m,16);var h=s.sub[8].getHexStringValue();this.coeff=Ve(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=Ve(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=s.sub[0].getHexStringValue(),this.n=Ve(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 J.asn1.DERInteger({int:0}),new J.asn1.DERInteger({bigint:this.n}),new J.asn1.DERInteger({int:this.e}),new J.asn1.DERInteger({bigint:this.d}),new J.asn1.DERInteger({bigint:this.p}),new J.asn1.DERInteger({bigint:this.q}),new J.asn1.DERInteger({bigint:this.dmp1}),new J.asn1.DERInteger({bigint:this.dmq1}),new J.asn1.DERInteger({bigint:this.coeff})]},r=new J.asn1.DERSequence(t);return r.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return zs(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new J.asn1.DERSequence({array:[new J.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new J.asn1.DERNull]}),r=new J.asn1.DERSequence({array:[new J.asn1.DERInteger({bigint:this.n}),new J.asn1.DERInteger({int:this.e})]}),i=new J.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),a=new J.asn1.DERSequence({array:[t,i]});return a.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return zs(this.getPublicBaseKey())},e.wordwrap=function(t,r){if(r=r||64,!t)return t;var i="(.{1,"+r+`})( +|$
39
39
  ?)|(.{1,`+r+"})";return t.match(RegExp(i,"g")).join(`
40
40
  `)},e.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
41
41
  `;return t+=e.wordwrap(this.getPrivateBaseKeyB64())+`
42
42
  `,t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
43
43
  `;return t+=e.wordwrap(this.getPublicBaseKeyB64())+`
44
- `,t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e})(j3);var _i;typeof process<"u"&&((_i=W2)===null||_i===void 0||_i.npm_package_version);const Uc=/^(http|https):\/\/[\w.:\-@]*/;function A3(n){return Uc.test(n)}var Wc={exports:{}};/*! @preserve
44
+ `,t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e})(V3);var _i;typeof process<"u"&&((_i=J2)===null||_i===void 0||_i.npm_package_version);const Uc=/^(http|https):\/\/[\w.:\-@]*/;function T3(n){return Uc.test(n)}var Wc={exports:{}};/*! @preserve
45
45
  * numeral.js
46
46
  * version : 2.0.6
47
47
  * author : Adam Draper
48
48
  * license : MIT
49
49
  * http://adamwdraper.github.com/Numeral-js/
50
- */(function(n){(function(e,t){n.exports?n.exports=t():e.numeral=t()})(He,function(){var e,t,r="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return e=function(c){var u,p,m,h;if(e.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||t.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(p in i)if(h=typeof i[p].regexps.unformat=="function"?i[p].regexps.unformat():i[p].regexps.unformat,h&&c.match(h)){m=i[p].unformat;break}m=m||e._.stringToNumber,u=m(c)}else u=Number(c)||null;return new l(c,u)},e.version=r,e.isNumeral=function(c){return c instanceof l},e._=t={numberToFormat:function(c,u,p){var m=a[e.options.currentLocale],h=!1,f=!1,v=0,g="",k=1e12,b=1e9,x=1e6,S=1e3,V="",w=!1,$,E,J,T,B,F,A;if(c=c||0,E=Math.abs(c),e._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(B=e._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&($=u.match(/a(k|m|b|t)?/),$=$?$[1]:!1,e._.includes(u," a")&&(g=" "),u=u.replace(new RegExp(g+"a[kmbt]?"),""),E>=k&&!$||$==="t"?(g+=m.abbreviations.trillion,c=c/k):E<k&&E>=b&&!$||$==="b"?(g+=m.abbreviations.billion,c=c/b):E<b&&E>=x&&!$||$==="m"?(g+=m.abbreviations.million,c=c/x):(E<x&&E>=S&&!$||$==="k")&&(g+=m.abbreviations.thousand,c=c/S)),e._.includes(u,"[.]")&&(f=!0,u=u.replace("[.]",".")),J=c.toString().split(".")[0],T=u.split(".")[1],F=u.indexOf(","),v=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(e._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),V=e._.toFixed(c,T[0].length+T[1].length,p,T[1].length)):V=e._.toFixed(c,T.length,p),J=V.split(".")[0],e._.includes(V,".")?V=m.delimiters.decimal+V.split(".")[1]:V="",f&&Number(V.slice(1))===0&&(V="")):J=e._.toFixed(c,0,p),g&&!$&&Number(J)>=1e3&&g!==m.abbreviations.trillion)switch(J=String(Number(J)/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(J,"-")&&(J=J.slice(1),w=!0),J.length<v)for(var N=v-J.length;N>0;N--)J="0"+J;return F>-1&&(J=J.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),u.indexOf(".")===0&&(J=""),A=J+V+(g||""),h?A=(h&&w?"(":"")+A+(h&&w?")":""):B>=0?A=B===0?(w?"-":"+")+A:A+(w?"-":"+"):w&&(A="-"+A),A},stringToNumber:function(c){var u=a[s.currentLocale],p=c,m={thousand:3,million:6,billion:9,trillion:12},h,f,v;if(s.zeroFormat&&c===s.zeroFormat)f=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)f=null;else{f=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(h in m)if(v=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),p.match(v)){f*=Math.pow(10,m[h]);break}f*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),f*=Number(c)}return f},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,p){return c.slice(0,p)+u+c.slice(p)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var p=Object(c),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=u(f,p[h],h,p));return f},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,p){var m=t.multiplier(p);return u>m?u:m},1)},toFixed:function(c,u,p,m){var h=c.toString().split("."),f=u-(m||0),v,g,k,b;return h.length===2?v=Math.min(Math.max(h[1].length,f),u):v=f,k=Math.pow(10,v),b=(p(c+"e+"+v)/k).toFixed(v),m>u-v&&(g=new RegExp("\\.?0{1,"+(m-(u-v))+"}$"),b=b.replace(g,"")),b}},e.options=s,e.formats=i,e.locales=a,e.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},e.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},e.reset=function(){for(var c in o)s[c]=o[c]},e.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,u,p){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=p,p},e.validate=function(c,u){var p,m,h,f,v,g,k,b;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{k=e.localeData(u)}catch{k=e.localeData(e.locale())}return h=k.currency.symbol,v=k.abbreviations,p=k.delimiters.decimal,k.delimiters.thousands==="."?m="\\.":m=k.delimiters.thousands,b=c.match(/^[^\d]+/),b!==null&&(c=c.substr(1),b[0]!==h)||(b=c.match(/[^\d]+$/),b!==null&&(c=c.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}"),c.match(/[^\d.,]/g)?!1:(f=c.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(c,u){var p=this._value,m=c||s.defaultFormat,h,f,v;if(u=u||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,u)}return f},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=t.correctionFactor.call(null,this._value,c);function p(m,h,f,v){return m+Math.round(u*h)}return this._value=t.reduce([this._value,c],p,0)/u,this},subtract:function(c){var u=t.correctionFactor.call(null,this._value,c);function p(m,h,f,v){return m-Math.round(u*h)}return this._value=t.reduce([c],p,Math.round(this._value*u))/u,this},multiply:function(c){function u(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,c],u,1),this},divide:function(c){function u(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,c],u),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,p){var m=e._.includes(u," BPS")?" ":"",h;return c=c*1e4,u=u.replace(/\s?BPS/,""),h=e._.numberToFormat(c,u,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"BPS"),h=h.join("")):h=h+m+"BPS",h},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=c.suffixes.concat(u.suffixes.filter(function(h){return c.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,k=e._.includes(f,"ib")?u:c,b=e._.includes(f," b")||e._.includes(f," ib")?" ":"",x,S,V;for(f=f.replace(/\s?i?b/,""),x=0;x<=k.suffixes.length;x++)if(S=Math.pow(k.base,x),V=Math.pow(k.base,x+1),h===null||h===0||h>=S&&h<V){b+=k.suffixes[x],S>0&&(h=h/S);break}return g=e._.numberToFormat(h,f,v),g+b},unformat:function(h){var f=e._.stringToNumber(h),v,g;if(f){for(v=c.suffixes.length-1;v>=0;v--){if(e._.includes(h,c.suffixes[v])){g=Math.pow(c.base,v);break}if(e._.includes(h,u.suffixes[v])){g=Math.pow(u.base,v);break}}f*=g||1}return f}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,p){var m=e.locales[e.options.currentLocale],h={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},f,v,g;for(u=u.replace(/\s?\$\s?/,""),f=e._.numberToFormat(c,u,p),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<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(c,u,p){var m,h=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",f=h.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),m=e._.numberToFormat(Number(f[0]),u,p),m+"e"+f[1]},unformat:function(c){var u=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),p=Number(u[0]),m=Number(u[1]);m=e._.includes(c,"e-")?m*=-1:m;function h(f,v,g,k){var b=e._.correctionFactor(f,v),x=f*b*(v*b)/(b*b);return x}return e._.reduce([p,Math.pow(10,m)],h,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,p){var m=e.locales[e.options.currentLocale],h,f=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),f+=m.ordinal(c),h=e._.numberToFormat(c,u,p),h+f}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,p){var m=e._.includes(u," %")?" ":"",h;return e.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),h=e._.numberToFormat(c,u,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"%"),h=h.join("")):h=h+m+"%",h},unformat:function(c){var u=e._.stringToNumber(c);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,p){var m=Math.floor(c/60/60),h=Math.floor((c-m*60*60)/60),f=Math.round(c-m*60*60-h*60);return m+":"+(h<10?"0"+h:h)+":"+(f<10?"0"+f:f)},unformat:function(c){var u=c.split(":"),p=0;return u.length===3?(p=p+Number(u[0])*60*60,p=p+Number(u[1])*60,p=p+Number(u[2])):u.length===2&&(p=p+Number(u[0])*60,p=p+Number(u[1])),Number(p)}})}(),e})})(Wc);var T3=Wc.exports;const B3=Bn(T3);function z3(n,e="0.00"){return B3(n).format(e)}var Jc={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="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+)?$/,k=/\[([^\]]+)]|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(N){var O=["th","st","nd","rd"],U=N%100;return"["+N+(O[(U-20)%10]||O[U]||O[0])+"]"}},x=function(N,O,U){var Z=String(N);return!Z||Z.length>=O?N:""+Array(O+1-Z.length).join(U)+N},S={s:x,z:function(N){var O=-N.utcOffset(),U=Math.abs(O),Z=Math.floor(U/60),Q=U%60;return(O<=0?"+":"-")+x(Z,2,"0")+":"+x(Q,2,"0")},m:function N(O,U){if(O.date()<U.date())return-N(U,O);var Z=12*(U.year()-O.year())+(U.month()-O.month()),Q=O.clone().add(Z,p),re=U-Q<0,ie=O.clone().add(Z+(re?-1:1),p);return+(-(Z+(U-Q)/(re?Q-ie:ie-Q))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:p,y:h,w:u,d:c,D:f,h:l,m:s,s:o,ms:a,Q:m}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},V="en",w={};w[V]=b;var $="$isDayjsObject",E=function(N){return N instanceof F||!(!N||!N[$])},J=function N(O,U,Z){var Q;if(!O)return V;if(typeof O=="string"){var re=O.toLowerCase();w[re]&&(Q=re),U&&(w[re]=U,Q=re);var ie=O.split("-");if(!Q&&ie.length>1)return N(ie[0])}else{var L=O.name;w[L]=O,Q=L}return!Z&&Q&&(V=Q),Q||!Z&&V},T=function(N,O){if(E(N))return N.clone();var U=typeof O=="object"?O:{};return U.date=N,U.args=arguments,new F(U)},B=S;B.l=J,B.i=E,B.w=function(N,O){return T(N,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var F=function(){function N(U){this.$L=J(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[$]=!0}var O=N.prototype;return O.parse=function(U){this.$d=function(Z){var Q=Z.date,re=Z.utc;if(Q===null)return new Date(NaN);if(B.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 L=ie[2]-1||0,q=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],L,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,q)):new Date(ie[1],L,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,q)}}return new Date(Q)}(U),this.init()},O.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},O.$utils=function(){return B},O.isValid=function(){return this.$d.toString()!==v},O.isSame=function(U,Z){var Q=T(U);return this.startOf(Z)<=Q&&Q<=this.endOf(Z)},O.isAfter=function(U,Z){return T(U)<this.startOf(Z)},O.isBefore=function(U,Z){return this.endOf(Z)<T(U)},O.$g=function(U,Z,Q){return B.u(U)?this[Z]:this.set(Q,U)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(U,Z){var Q=this,re=!!B.u(Z)||Z,ie=B.p(U),L=function(Jt,Ue){var Et=B.w(Q.$u?Date.UTC(Q.$y,Ue,Jt):new Date(Q.$y,Ue,Jt),Q);return re?Et:Et.endOf(c)},q=function(Jt,Ue){return B.w(Q.toDate()[Jt].apply(Q.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(Ue)),Q)},G=this.$W,Y=this.$M,Qe=this.$D,ln="set"+(this.$u?"UTC":"");switch(ie){case h:return re?L(1,0):L(31,11);case p:return re?L(1,Y):L(0,Y+1);case u:var Wt=this.$locale().weekStart||0,On=(G<Wt?G+7:G)-Wt;return L(re?Qe-On:Qe+(6-On),Y);case c:case f:return q(ln+"Hours",0);case l:return q(ln+"Minutes",1);case s:return q(ln+"Seconds",2);case o:return q(ln+"Milliseconds",3);default:return this.clone()}},O.endOf=function(U){return this.startOf(U,!1)},O.$set=function(U,Z){var Q,re=B.p(U),ie="set"+(this.$u?"UTC":""),L=(Q={},Q[c]=ie+"Date",Q[f]=ie+"Date",Q[p]=ie+"Month",Q[h]=ie+"FullYear",Q[l]=ie+"Hours",Q[s]=ie+"Minutes",Q[o]=ie+"Seconds",Q[a]=ie+"Milliseconds",Q)[re],q=re===c?this.$D+(Z-this.$W):Z;if(re===p||re===h){var G=this.clone().set(f,1);G.$d[L](q),G.init(),this.$d=G.set(f,Math.min(this.$D,G.daysInMonth())).$d}else L&&this.$d[L](q);return this.init(),this},O.set=function(U,Z){return this.clone().$set(U,Z)},O.get=function(U){return this[B.p(U)]()},O.add=function(U,Z){var Q,re=this;U=Number(U);var ie=B.p(Z),L=function(Y){var Qe=T(re);return B.w(Qe.date(Qe.date()+Math.round(Y*U)),re)};if(ie===p)return this.set(p,this.$M+U);if(ie===h)return this.set(h,this.$y+U);if(ie===c)return L(1);if(ie===u)return L(7);var q=(Q={},Q[s]=r,Q[l]=i,Q[o]=t,Q)[ie]||1,G=this.$d.getTime()+U*q;return B.w(G,this)},O.subtract=function(U,Z){return this.add(-1*U,Z)},O.format=function(U){var Z=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||v;var re=U||"YYYY-MM-DDTHH:mm:ssZ",ie=B.z(this),L=this.$H,q=this.$m,G=this.$M,Y=Q.weekdays,Qe=Q.months,ln=Q.meridiem,Wt=function(Ue,Et,In,fr){return Ue&&(Ue[Et]||Ue(Z,re))||In[Et].slice(0,fr)},On=function(Ue){return B.s(L%12||12,Ue,"0")},Jt=ln||function(Ue,Et,In){var fr=Ue<12?"AM":"PM";return In?fr.toLowerCase():fr};return re.replace(k,function(Ue,Et){return Et||function(In){switch(In){case"YY":return String(Z.$y).slice(-2);case"YYYY":return B.s(Z.$y,4,"0");case"M":return G+1;case"MM":return B.s(G+1,2,"0");case"MMM":return Wt(Q.monthsShort,G,Qe,3);case"MMMM":return Wt(Qe,G);case"D":return Z.$D;case"DD":return B.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return Wt(Q.weekdaysMin,Z.$W,Y,2);case"ddd":return Wt(Q.weekdaysShort,Z.$W,Y,3);case"dddd":return Y[Z.$W];case"H":return String(L);case"HH":return B.s(L,2,"0");case"h":return On(1);case"hh":return On(2);case"a":return Jt(L,q,!0);case"A":return Jt(L,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(Z.$s);case"ss":return B.s(Z.$s,2,"0");case"SSS":return B.s(Z.$ms,3,"0");case"Z":return ie}return null}(Ue)||ie.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(U,Z,Q){var re,ie=this,L=B.p(Z),q=T(U),G=(q.utcOffset()-this.utcOffset())*r,Y=this-q,Qe=function(){return B.m(ie,q)};switch(L){case h:re=Qe()/12;break;case p:re=Qe();break;case m:re=Qe()/3;break;case u:re=(Y-G)/6048e5;break;case c:re=(Y-G)/864e5;break;case l:re=Y/i;break;case s:re=Y/r;break;case o:re=Y/t;break;default:re=Y}return Q?re:B.a(re)},O.daysInMonth=function(){return this.endOf(p).$D},O.$locale=function(){return w[this.$L]},O.locale=function(U,Z){if(!U)return this.$L;var Q=this.clone(),re=J(U,Z,!0);return re&&(Q.$L=re),Q},O.clone=function(){return B.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},N}(),A=F.prototype;return T.prototype=A,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",p],["$y",h],["$D",f]].forEach(function(N){A[N[1]]=function(O){return this.$g(O,N[0],N[1])}}),T.extend=function(N,O){return N.$i||(N(O,F,T),N.$i=!0),T},T.locale=J,T.isDayjs=E,T.unix=function(N){return T(1e3*N)},T.en=w[V],T.Ls=w,T.p={},T})})(Jc);var qc=Jc.exports;const D3=Bn(qc);var O3={exports:{}};(function(n,e){(function(t,r){n.exports=r(qc)})(He,function(t){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(t),a={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(o,s){return s==="W"?o+"周":o+"日"},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(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a})})(O3),D3.locale("zh-cn");const I3=n=>Object.prototype.toString.call(n),Si=n=>I3(n).slice(8,-1),Kc=()=>+Date.now();function dt(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function R3(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 Gc(n=0){return new Promise(e=>{setTimeout(e,n)})}function M3(n,e){return n.reduce((t,r)=>{const i=r[e];return t.set(i,r),t},new Map)}function P3(n){return[...n.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}function Yc(n,e){return Array.from(new Set(n))}function eo(n){return n?[].concat(n):[]}function ki(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,a])=>{r(i,a)||(t[i]=a)})}return t}function N3(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,a])=>{r(i,a)&&(t[i]=a)})}return t}var aa={exports:{}};aa.exports,function(n){var e=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function o(l,c){if(!a[l]){a[l]={};for(var u=0;u<l.length;u++)a[l][l.charAt(u)]=u}return a[l][c]}var s={compressToBase64:function(l){if(l==null)return"";var c=s._compress(l,6,function(u){return r.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(c){return o(r,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(c){return t(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=s.compress(l),u=new Uint8Array(c.length*2),p=0,m=c.length;p<m;p++){var h=c.charCodeAt(p);u[p*2]=h>>>8,u[p*2+1]=h%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,p=c.length;u<p;u++)c[u]=l[u*2]*256+l[u*2+1];var m=[];return c.forEach(function(h){m.push(t(h))}),s.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(c){return o(i,l.charAt(c))}))},compress:function(l){return s._compress(l,16,function(c){return t(c)})},_compress:function(l,c,u){if(l==null)return"";var p,m,h={},f={},v="",g="",k="",b=2,x=3,S=2,V=[],w=0,$=0,E;for(E=0;E<l.length;E+=1)if(v=l.charAt(E),Object.prototype.hasOwnProperty.call(h,v)||(h[v]=x++,f[v]=!0),g=k+v,Object.prototype.hasOwnProperty.call(h,g))k=g;else{if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<S;p++)w=w<<1,$==c-1?($=0,V.push(u(w)),w=0):$++;for(m=k.charCodeAt(0),p=0;p<8;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1}else{for(m=1,p=0;p<S;p++)w=w<<1|m,$==c-1?($=0,V.push(u(w)),w=0):$++,m=0;for(m=k.charCodeAt(0),p=0;p<16;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1}b--,b==0&&(b=Math.pow(2,S),S++),delete f[k]}else for(m=h[k],p=0;p<S;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1;b--,b==0&&(b=Math.pow(2,S),S++),h[g]=x++,k=String(v)}if(k!==""){if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<S;p++)w=w<<1,$==c-1?($=0,V.push(u(w)),w=0):$++;for(m=k.charCodeAt(0),p=0;p<8;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1}else{for(m=1,p=0;p<S;p++)w=w<<1|m,$==c-1?($=0,V.push(u(w)),w=0):$++,m=0;for(m=k.charCodeAt(0),p=0;p<16;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1}b--,b==0&&(b=Math.pow(2,S),S++),delete f[k]}else for(m=h[k],p=0;p<S;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1;b--,b==0&&(b=Math.pow(2,S),S++)}for(m=2,p=0;p<S;p++)w=w<<1|m&1,$==c-1?($=0,V.push(u(w)),w=0):$++,m=m>>1;for(;;)if(w=w<<1,$==c-1){V.push(u(w));break}else $++;return V.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var p=[],m=4,h=4,f=3,v="",g=[],k,b,x,S,V,w,$,E={val:u(0),position:c,index:1};for(k=0;k<3;k+=1)p[k]=k;for(x=0,V=Math.pow(2,2),w=1;w!=V;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),x|=(S>0?1:0)*w,w<<=1;switch(x){case 0:for(x=0,V=Math.pow(2,8),w=1;w!=V;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),x|=(S>0?1:0)*w,w<<=1;$=t(x);break;case 1:for(x=0,V=Math.pow(2,16),w=1;w!=V;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),x|=(S>0?1:0)*w,w<<=1;$=t(x);break;case 2:return""}for(p[3]=$,b=$,g.push($);;){if(E.index>l)return"";for(x=0,V=Math.pow(2,f),w=1;w!=V;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),x|=(S>0?1:0)*w,w<<=1;switch($=x){case 0:for(x=0,V=Math.pow(2,8),w=1;w!=V;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),x|=(S>0?1:0)*w,w<<=1;p[h++]=t(x),$=h-1,m--;break;case 1:for(x=0,V=Math.pow(2,16),w=1;w!=V;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),x|=(S>0?1:0)*w,w<<=1;p[h++]=t(x),$=h-1,m--;break;case 2:return g.join("")}if(m==0&&(m=Math.pow(2,f),f++),p[$])v=p[$];else if($===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})}(aa);var Xc=aa.exports;function F3(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 H3(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="",a=t+1;a<n.length;){var o=n.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var s=1,l="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<n.length;){if(n[a]==="\\"){l+=n[a++]+n[a++];continue}if(n[a]===")"){if(s--,s===0){a++;break}}else if(n[a]==="("&&(s++,n[a+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(a));l+=n[a++]}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=a;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function Qc(n,e){e===void 0&&(e={});for(var t=H3(n),r=e.prefixes,i=r===void 0?"./":r,a="[^".concat(hn(e.delimiter||"/#?"),"]+?"),o=[],s=0,l=0,c="",u=function(w){if(l<t.length&&t[l].type===w)return t[l++].value},p=function(w){var $=u(w);if($!==void 0)return $;var E=t[l],J=E.type,T=E.index;throw new TypeError("Unexpected ".concat(J," at ").concat(T,", expected ").concat(w))},m=function(){for(var w="",$;$=u("CHAR")||u("ESCAPED_CHAR");)w+=$;return w};l<t.length;){var h=u("CHAR"),f=u("NAME"),v=u("PATTERN");if(f||v){var g=h||"";i.indexOf(g)===-1&&(c+=g,g=""),c&&(o.push(c),c=""),o.push({name:f||s++,prefix:g,suffix:"",pattern:v||a,modifier:u("MODIFIER")||""});continue}var k=h||u("ESCAPED_CHAR");if(k){c+=k;continue}c&&(o.push(c),c="");var b=u("OPEN");if(b){var g=m(),x=u("NAME")||"",S=u("PATTERN")||"",V=m();p("CLOSE"),o.push({name:x||(S?s++:""),pattern:x&&!S?a:S,prefix:g,suffix:V,modifier:u("MODIFIER")||""});continue}p("END")}return o}function L3(n,e){return U3(Qc(n,e),e)}function U3(n,e){e===void 0&&(e={});var t=to(e),r=e.encode,i=r===void 0?function(l){return l}:r,a=e.validate,o=a===void 0?!0:a,s=n.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),t)});return function(l){for(var c="",u=0;u<n.length;u++){var p=n[u];if(typeof p=="string"){c+=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(o&&!s[u].test(g))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));c+=p.prefix+g+p.suffix}continue}if(typeof m=="string"||typeof m=="number"){var g=i(String(m),p);if(o&&!s[u].test(g))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));c+=p.prefix+g+p.suffix;continue}if(!h){var k=f?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(k))}}return c}}function W3(n,e){var t=[],r=no(n,t,e);return J3(r,t,e)}function J3(n,e,t){t===void 0&&(t={});var r=t.decode,i=r===void 0?function(a){return a}:r;return function(a){var o=n.exec(a);if(!o)return!1;for(var s=o[0],l=o.index,c=Object.create(null),u=function(m){if(o[m]===void 0)return"continue";var h=e[m-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=o[m].split(h.prefix+h.suffix).map(function(f){return i(f,h)}):c[h.name]=i(o[m],h)},p=1;p<o.length;p++)u(p);return{path:s,index:l,params:c}}}function hn(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function to(n){return n&&n.sensitive?"":"i"}function q3(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 K3(n,e,t){var r=n.map(function(i){return no(i,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),to(t))}function G3(n,e,t){return Y3(Qc(n,t),e,t)}function Y3(n,e,t){t===void 0&&(t={});for(var r=t.strict,i=r===void 0?!1:r,a=t.start,o=a===void 0?!0:a,s=t.end,l=s===void 0?!0:s,c=t.encode,u=c===void 0?function(T){return T}:c,p=t.delimiter,m=p===void 0?"/#?":p,h=t.endsWith,f=h===void 0?"":h,v="[".concat(hn(f),"]|$"),g="[".concat(hn(m),"]"),k=o?"^":"",b=0,x=n;b<x.length;b++){var S=x[b];if(typeof S=="string")k+=hn(u(S));else{var V=hn(u(S.prefix)),w=hn(u(S.suffix));if(S.pattern)if(e&&e.push(S),V||w)if(S.modifier==="+"||S.modifier==="*"){var $=S.modifier==="*"?"?":"";k+="(?:".concat(V,"((?:").concat(S.pattern,")(?:").concat(w).concat(V,"(?:").concat(S.pattern,"))*)").concat(w,")").concat($)}else k+="(?:".concat(V,"(").concat(S.pattern,")").concat(w,")").concat(S.modifier);else S.modifier==="+"||S.modifier==="*"?k+="((?:".concat(S.pattern,")").concat(S.modifier,")"):k+="(".concat(S.pattern,")").concat(S.modifier);else k+="(?:".concat(V).concat(w,")").concat(S.modifier)}}if(l)i||(k+="".concat(g,"?")),k+=t.endsWith?"(?=".concat(v,")"):"$";else{var E=n[n.length-1],J=typeof E=="string"?g.indexOf(E[E.length-1])>-1:E===void 0;i||(k+="(?:".concat(g,"(?=").concat(v,"))?")),J||(k+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(k,to(t))}function no(n,e,t){return n instanceof RegExp?q3(n,e):Array.isArray(n)?K3(n,e,t):G3(n,e,t)}Xc.compress;Xc.decompress;/**!
50
+ */(function(n){(function(e,t){n.exports?n.exports=t():e.numeral=t()})(He,function(){var e,t,r="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return e=function(c){var u,p,m,h;if(e.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||t.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(p in i)if(h=typeof i[p].regexps.unformat=="function"?i[p].regexps.unformat():i[p].regexps.unformat,h&&c.match(h)){m=i[p].unformat;break}m=m||e._.stringToNumber,u=m(c)}else u=Number(c)||null;return new l(c,u)},e.version=r,e.isNumeral=function(c){return c instanceof l},e._=t={numberToFormat:function(c,u,p){var m=a[e.options.currentLocale],h=!1,f=!1,v=0,g="",k=1e12,b=1e9,w=1e6,S=1e3,C="",x=!1,E,$,U,T,B,F,A;if(c=c||0,$=Math.abs(c),e._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(B=e._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&(E=u.match(/a(k|m|b|t)?/),E=E?E[1]:!1,e._.includes(u," a")&&(g=" "),u=u.replace(new RegExp(g+"a[kmbt]?"),""),$>=k&&!E||E==="t"?(g+=m.abbreviations.trillion,c=c/k):$<k&&$>=b&&!E||E==="b"?(g+=m.abbreviations.billion,c=c/b):$<b&&$>=w&&!E||E==="m"?(g+=m.abbreviations.million,c=c/w):($<w&&$>=S&&!E||E==="k")&&(g+=m.abbreviations.thousand,c=c/S)),e._.includes(u,"[.]")&&(f=!0,u=u.replace("[.]",".")),U=c.toString().split(".")[0],T=u.split(".")[1],F=u.indexOf(","),v=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(e._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),C=e._.toFixed(c,T[0].length+T[1].length,p,T[1].length)):C=e._.toFixed(c,T.length,p),U=C.split(".")[0],e._.includes(C,".")?C=m.delimiters.decimal+C.split(".")[1]:C="",f&&Number(C.slice(1))===0&&(C="")):U=e._.toFixed(c,0,p),g&&!E&&Number(U)>=1e3&&g!==m.abbreviations.trillion)switch(U=String(Number(U)/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(U,"-")&&(U=U.slice(1),x=!0),U.length<v)for(var N=v-U.length;N>0;N--)U="0"+U;return F>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),u.indexOf(".")===0&&(U=""),A=U+C+(g||""),h?A=(h&&x?"(":"")+A+(h&&x?")":""):B>=0?A=B===0?(x?"-":"+")+A:A+(x?"-":"+"):x&&(A="-"+A),A},stringToNumber:function(c){var u=a[s.currentLocale],p=c,m={thousand:3,million:6,billion:9,trillion:12},h,f,v;if(s.zeroFormat&&c===s.zeroFormat)f=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)f=null;else{f=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(h in m)if(v=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),p.match(v)){f*=Math.pow(10,m[h]);break}f*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),f*=Number(c)}return f},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,p){return c.slice(0,p)+u+c.slice(p)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var p=Object(c),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=u(f,p[h],h,p));return f},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,p){var m=t.multiplier(p);return u>m?u:m},1)},toFixed:function(c,u,p,m){var h=c.toString().split("."),f=u-(m||0),v,g,k,b;return h.length===2?v=Math.min(Math.max(h[1].length,f),u):v=f,k=Math.pow(10,v),b=(p(c+"e+"+v)/k).toFixed(v),m>u-v&&(g=new RegExp("\\.?0{1,"+(m-(u-v))+"}$"),b=b.replace(g,"")),b}},e.options=s,e.formats=i,e.locales=a,e.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},e.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},e.reset=function(){for(var c in o)s[c]=o[c]},e.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,u,p){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=p,p},e.validate=function(c,u){var p,m,h,f,v,g,k,b;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{k=e.localeData(u)}catch{k=e.localeData(e.locale())}return h=k.currency.symbol,v=k.abbreviations,p=k.delimiters.decimal,k.delimiters.thousands==="."?m="\\.":m=k.delimiters.thousands,b=c.match(/^[^\d]+/),b!==null&&(c=c.substr(1),b[0]!==h)||(b=c.match(/[^\d]+$/),b!==null&&(c=c.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}"),c.match(/[^\d.,]/g)?!1:(f=c.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(c,u){var p=this._value,m=c||s.defaultFormat,h,f,v;if(u=u||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,u)}return f},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=t.correctionFactor.call(null,this._value,c);function p(m,h,f,v){return m+Math.round(u*h)}return this._value=t.reduce([this._value,c],p,0)/u,this},subtract:function(c){var u=t.correctionFactor.call(null,this._value,c);function p(m,h,f,v){return m-Math.round(u*h)}return this._value=t.reduce([c],p,Math.round(this._value*u))/u,this},multiply:function(c){function u(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,c],u,1),this},divide:function(c){function u(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,c],u),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,p){var m=e._.includes(u," BPS")?" ":"",h;return c=c*1e4,u=u.replace(/\s?BPS/,""),h=e._.numberToFormat(c,u,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"BPS"),h=h.join("")):h=h+m+"BPS",h},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=c.suffixes.concat(u.suffixes.filter(function(h){return c.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,k=e._.includes(f,"ib")?u:c,b=e._.includes(f," b")||e._.includes(f," ib")?" ":"",w,S,C;for(f=f.replace(/\s?i?b/,""),w=0;w<=k.suffixes.length;w++)if(S=Math.pow(k.base,w),C=Math.pow(k.base,w+1),h===null||h===0||h>=S&&h<C){b+=k.suffixes[w],S>0&&(h=h/S);break}return g=e._.numberToFormat(h,f,v),g+b},unformat:function(h){var f=e._.stringToNumber(h),v,g;if(f){for(v=c.suffixes.length-1;v>=0;v--){if(e._.includes(h,c.suffixes[v])){g=Math.pow(c.base,v);break}if(e._.includes(h,u.suffixes[v])){g=Math.pow(u.base,v);break}}f*=g||1}return f}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,p){var m=e.locales[e.options.currentLocale],h={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},f,v,g;for(u=u.replace(/\s?\$\s?/,""),f=e._.numberToFormat(c,u,p),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<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(c,u,p){var m,h=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",f=h.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),m=e._.numberToFormat(Number(f[0]),u,p),m+"e"+f[1]},unformat:function(c){var u=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),p=Number(u[0]),m=Number(u[1]);m=e._.includes(c,"e-")?m*=-1:m;function h(f,v,g,k){var b=e._.correctionFactor(f,v),w=f*b*(v*b)/(b*b);return w}return e._.reduce([p,Math.pow(10,m)],h,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,p){var m=e.locales[e.options.currentLocale],h,f=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),f+=m.ordinal(c),h=e._.numberToFormat(c,u,p),h+f}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,p){var m=e._.includes(u," %")?" ":"",h;return e.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),h=e._.numberToFormat(c,u,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"%"),h=h.join("")):h=h+m+"%",h},unformat:function(c){var u=e._.stringToNumber(c);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,p){var m=Math.floor(c/60/60),h=Math.floor((c-m*60*60)/60),f=Math.round(c-m*60*60-h*60);return m+":"+(h<10?"0"+h:h)+":"+(f<10?"0"+f:f)},unformat:function(c){var u=c.split(":"),p=0;return u.length===3?(p=p+Number(u[0])*60*60,p=p+Number(u[1])*60,p=p+Number(u[2])):u.length===2&&(p=p+Number(u[0])*60,p=p+Number(u[1])),Number(p)}})}(),e})})(Wc);var B3=Wc.exports;const z3=Bn(B3);function D3(n,e="0.00"){return z3(n).format(e)}var Jc={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="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+)?$/,k=/\[([^\]]+)]|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(N){var O=["th","st","nd","rd"],W=N%100;return"["+N+(O[(W-20)%10]||O[W]||O[0])+"]"}},w=function(N,O,W){var Z=String(N);return!Z||Z.length>=O?N:""+Array(O+1-Z.length).join(W)+N},S={s:w,z:function(N){var O=-N.utcOffset(),W=Math.abs(O),Z=Math.floor(W/60),Q=W%60;return(O<=0?"+":"-")+w(Z,2,"0")+":"+w(Q,2,"0")},m:function N(O,W){if(O.date()<W.date())return-N(W,O);var Z=12*(W.year()-O.year())+(W.month()-O.month()),Q=O.clone().add(Z,p),re=W-Q<0,ie=O.clone().add(Z+(re?-1:1),p);return+(-(Z+(W-Q)/(re?Q-ie:ie-Q))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:p,y:h,w:u,d:c,D:f,h:l,m:s,s:o,ms:a,Q:m}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",x={};x[C]=b;var E="$isDayjsObject",$=function(N){return N instanceof F||!(!N||!N[E])},U=function N(O,W,Z){var Q;if(!O)return C;if(typeof O=="string"){var re=O.toLowerCase();x[re]&&(Q=re),W&&(x[re]=W,Q=re);var ie=O.split("-");if(!Q&&ie.length>1)return N(ie[0])}else{var L=O.name;x[L]=O,Q=L}return!Z&&Q&&(C=Q),Q||!Z&&C},T=function(N,O){if($(N))return N.clone();var W=typeof O=="object"?O:{};return W.date=N,W.args=arguments,new F(W)},B=S;B.l=U,B.i=$,B.w=function(N,O){return T(N,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var F=function(){function N(W){this.$L=U(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[E]=!0}var O=N.prototype;return O.parse=function(W){this.$d=function(Z){var Q=Z.date,re=Z.utc;if(Q===null)return new Date(NaN);if(B.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 L=ie[2]-1||0,q=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],L,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,q)):new Date(ie[1],L,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,q)}}return new Date(Q)}(W),this.init()},O.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},O.$utils=function(){return B},O.isValid=function(){return this.$d.toString()!==v},O.isSame=function(W,Z){var Q=T(W);return this.startOf(Z)<=Q&&Q<=this.endOf(Z)},O.isAfter=function(W,Z){return T(W)<this.startOf(Z)},O.isBefore=function(W,Z){return this.endOf(Z)<T(W)},O.$g=function(W,Z,Q){return B.u(W)?this[Z]:this.set(Q,W)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(W,Z){var Q=this,re=!!B.u(Z)||Z,ie=B.p(W),L=function(qt,Ue){var $t=B.w(Q.$u?Date.UTC(Q.$y,Ue,qt):new Date(Q.$y,Ue,qt),Q);return re?$t:$t.endOf(c)},q=function(qt,Ue){return B.w(Q.toDate()[qt].apply(Q.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(Ue)),Q)},G=this.$W,Y=this.$M,Qe=this.$D,cn="set"+(this.$u?"UTC":"");switch(ie){case h:return re?L(1,0):L(31,11);case p:return re?L(1,Y):L(0,Y+1);case u:var Jt=this.$locale().weekStart||0,On=(G<Jt?G+7:G)-Jt;return L(re?Qe-On:Qe+(6-On),Y);case c:case f:return q(cn+"Hours",0);case l:return q(cn+"Minutes",1);case s:return q(cn+"Seconds",2);case o:return q(cn+"Milliseconds",3);default:return this.clone()}},O.endOf=function(W){return this.startOf(W,!1)},O.$set=function(W,Z){var Q,re=B.p(W),ie="set"+(this.$u?"UTC":""),L=(Q={},Q[c]=ie+"Date",Q[f]=ie+"Date",Q[p]=ie+"Month",Q[h]=ie+"FullYear",Q[l]=ie+"Hours",Q[s]=ie+"Minutes",Q[o]=ie+"Seconds",Q[a]=ie+"Milliseconds",Q)[re],q=re===c?this.$D+(Z-this.$W):Z;if(re===p||re===h){var G=this.clone().set(f,1);G.$d[L](q),G.init(),this.$d=G.set(f,Math.min(this.$D,G.daysInMonth())).$d}else L&&this.$d[L](q);return this.init(),this},O.set=function(W,Z){return this.clone().$set(W,Z)},O.get=function(W){return this[B.p(W)]()},O.add=function(W,Z){var Q,re=this;W=Number(W);var ie=B.p(Z),L=function(Y){var Qe=T(re);return B.w(Qe.date(Qe.date()+Math.round(Y*W)),re)};if(ie===p)return this.set(p,this.$M+W);if(ie===h)return this.set(h,this.$y+W);if(ie===c)return L(1);if(ie===u)return L(7);var q=(Q={},Q[s]=r,Q[l]=i,Q[o]=t,Q)[ie]||1,G=this.$d.getTime()+W*q;return B.w(G,this)},O.subtract=function(W,Z){return this.add(-1*W,Z)},O.format=function(W){var Z=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||v;var re=W||"YYYY-MM-DDTHH:mm:ssZ",ie=B.z(this),L=this.$H,q=this.$m,G=this.$M,Y=Q.weekdays,Qe=Q.months,cn=Q.meridiem,Jt=function(Ue,$t,In,fr){return Ue&&(Ue[$t]||Ue(Z,re))||In[$t].slice(0,fr)},On=function(Ue){return B.s(L%12||12,Ue,"0")},qt=cn||function(Ue,$t,In){var fr=Ue<12?"AM":"PM";return In?fr.toLowerCase():fr};return re.replace(k,function(Ue,$t){return $t||function(In){switch(In){case"YY":return String(Z.$y).slice(-2);case"YYYY":return B.s(Z.$y,4,"0");case"M":return G+1;case"MM":return B.s(G+1,2,"0");case"MMM":return Jt(Q.monthsShort,G,Qe,3);case"MMMM":return Jt(Qe,G);case"D":return Z.$D;case"DD":return B.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return Jt(Q.weekdaysMin,Z.$W,Y,2);case"ddd":return Jt(Q.weekdaysShort,Z.$W,Y,3);case"dddd":return Y[Z.$W];case"H":return String(L);case"HH":return B.s(L,2,"0");case"h":return On(1);case"hh":return On(2);case"a":return qt(L,q,!0);case"A":return qt(L,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(Z.$s);case"ss":return B.s(Z.$s,2,"0");case"SSS":return B.s(Z.$ms,3,"0");case"Z":return ie}return null}(Ue)||ie.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(W,Z,Q){var re,ie=this,L=B.p(Z),q=T(W),G=(q.utcOffset()-this.utcOffset())*r,Y=this-q,Qe=function(){return B.m(ie,q)};switch(L){case h:re=Qe()/12;break;case p:re=Qe();break;case m:re=Qe()/3;break;case u:re=(Y-G)/6048e5;break;case c:re=(Y-G)/864e5;break;case l:re=Y/i;break;case s:re=Y/r;break;case o:re=Y/t;break;default:re=Y}return Q?re:B.a(re)},O.daysInMonth=function(){return this.endOf(p).$D},O.$locale=function(){return x[this.$L]},O.locale=function(W,Z){if(!W)return this.$L;var Q=this.clone(),re=U(W,Z,!0);return re&&(Q.$L=re),Q},O.clone=function(){return B.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},N}(),A=F.prototype;return T.prototype=A,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",p],["$y",h],["$D",f]].forEach(function(N){A[N[1]]=function(O){return this.$g(O,N[0],N[1])}}),T.extend=function(N,O){return N.$i||(N(O,F,T),N.$i=!0),T},T.locale=U,T.isDayjs=$,T.unix=function(N){return T(1e3*N)},T.en=x[C],T.Ls=x,T.p={},T})})(Jc);var qc=Jc.exports;const O3=Bn(qc);var I3={exports:{}};(function(n,e){(function(t,r){n.exports=r(qc)})(He,function(t){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(t),a={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(o,s){return s==="W"?o+"周":o+"日"},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(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a})})(I3),O3.locale("zh-cn");const M3=n=>Object.prototype.toString.call(n),Si=n=>M3(n).slice(8,-1),Kc=()=>+Date.now();function dt(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function R3(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 Gc(n=0){return new Promise(e=>{setTimeout(e,n)})}function P3(n,e){return n.reduce((t,r)=>{const i=r[e];return t.set(i,r),t},new Map)}function N3(n){return[...n.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}function Yc(n,e){return Array.from(new Set(n))}function eo(n){return n?[].concat(n):[]}function ki(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,a])=>{r(i,a)||(t[i]=a)})}return t}function F3(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,a])=>{r(i,a)&&(t[i]=a)})}return t}var aa={exports:{}};aa.exports,function(n){var e=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function o(l,c){if(!a[l]){a[l]={};for(var u=0;u<l.length;u++)a[l][l.charAt(u)]=u}return a[l][c]}var s={compressToBase64:function(l){if(l==null)return"";var c=s._compress(l,6,function(u){return r.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(c){return o(r,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(c){return t(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=s.compress(l),u=new Uint8Array(c.length*2),p=0,m=c.length;p<m;p++){var h=c.charCodeAt(p);u[p*2]=h>>>8,u[p*2+1]=h%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,p=c.length;u<p;u++)c[u]=l[u*2]*256+l[u*2+1];var m=[];return c.forEach(function(h){m.push(t(h))}),s.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(c){return o(i,l.charAt(c))}))},compress:function(l){return s._compress(l,16,function(c){return t(c)})},_compress:function(l,c,u){if(l==null)return"";var p,m,h={},f={},v="",g="",k="",b=2,w=3,S=2,C=[],x=0,E=0,$;for($=0;$<l.length;$+=1)if(v=l.charAt($),Object.prototype.hasOwnProperty.call(h,v)||(h[v]=w++,f[v]=!0),g=k+v,Object.prototype.hasOwnProperty.call(h,g))k=g;else{if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<S;p++)x=x<<1,E==c-1?(E=0,C.push(u(x)),x=0):E++;for(m=k.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1}else{for(m=1,p=0;p<S;p++)x=x<<1|m,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=0;for(m=k.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1}b--,b==0&&(b=Math.pow(2,S),S++),delete f[k]}else for(m=h[k],p=0;p<S;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1;b--,b==0&&(b=Math.pow(2,S),S++),h[g]=w++,k=String(v)}if(k!==""){if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<S;p++)x=x<<1,E==c-1?(E=0,C.push(u(x)),x=0):E++;for(m=k.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1}else{for(m=1,p=0;p<S;p++)x=x<<1|m,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=0;for(m=k.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1}b--,b==0&&(b=Math.pow(2,S),S++),delete f[k]}else for(m=h[k],p=0;p<S;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1;b--,b==0&&(b=Math.pow(2,S),S++)}for(m=2,p=0;p<S;p++)x=x<<1|m&1,E==c-1?(E=0,C.push(u(x)),x=0):E++,m=m>>1;for(;;)if(x=x<<1,E==c-1){C.push(u(x));break}else E++;return C.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var p=[],m=4,h=4,f=3,v="",g=[],k,b,w,S,C,x,E,$={val:u(0),position:c,index:1};for(k=0;k<3;k+=1)p[k]=k;for(w=0,C=Math.pow(2,2),x=1;x!=C;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=u($.index++)),w|=(S>0?1:0)*x,x<<=1;switch(w){case 0:for(w=0,C=Math.pow(2,8),x=1;x!=C;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=u($.index++)),w|=(S>0?1:0)*x,x<<=1;E=t(w);break;case 1:for(w=0,C=Math.pow(2,16),x=1;x!=C;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=u($.index++)),w|=(S>0?1:0)*x,x<<=1;E=t(w);break;case 2:return""}for(p[3]=E,b=E,g.push(E);;){if($.index>l)return"";for(w=0,C=Math.pow(2,f),x=1;x!=C;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=u($.index++)),w|=(S>0?1:0)*x,x<<=1;switch(E=w){case 0:for(w=0,C=Math.pow(2,8),x=1;x!=C;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=u($.index++)),w|=(S>0?1:0)*x,x<<=1;p[h++]=t(w),E=h-1,m--;break;case 1:for(w=0,C=Math.pow(2,16),x=1;x!=C;)S=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=u($.index++)),w|=(S>0?1:0)*x,x<<=1;p[h++]=t(w),E=h-1,m--;break;case 2:return g.join("")}if(m==0&&(m=Math.pow(2,f),f++),p[E])v=p[E];else if(E===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})}(aa);var Xc=aa.exports;function H3(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 L3(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="",a=t+1;a<n.length;){var o=n.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var s=1,l="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<n.length;){if(n[a]==="\\"){l+=n[a++]+n[a++];continue}if(n[a]===")"){if(s--,s===0){a++;break}}else if(n[a]==="("&&(s++,n[a+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(a));l+=n[a++]}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=a;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function Qc(n,e){e===void 0&&(e={});for(var t=L3(n),r=e.prefixes,i=r===void 0?"./":r,a="[^".concat(mn(e.delimiter||"/#?"),"]+?"),o=[],s=0,l=0,c="",u=function(x){if(l<t.length&&t[l].type===x)return t[l++].value},p=function(x){var E=u(x);if(E!==void 0)return E;var $=t[l],U=$.type,T=$.index;throw new TypeError("Unexpected ".concat(U," at ").concat(T,", expected ").concat(x))},m=function(){for(var x="",E;E=u("CHAR")||u("ESCAPED_CHAR");)x+=E;return x};l<t.length;){var h=u("CHAR"),f=u("NAME"),v=u("PATTERN");if(f||v){var g=h||"";i.indexOf(g)===-1&&(c+=g,g=""),c&&(o.push(c),c=""),o.push({name:f||s++,prefix:g,suffix:"",pattern:v||a,modifier:u("MODIFIER")||""});continue}var k=h||u("ESCAPED_CHAR");if(k){c+=k;continue}c&&(o.push(c),c="");var b=u("OPEN");if(b){var g=m(),w=u("NAME")||"",S=u("PATTERN")||"",C=m();p("CLOSE"),o.push({name:w||(S?s++:""),pattern:w&&!S?a:S,prefix:g,suffix:C,modifier:u("MODIFIER")||""});continue}p("END")}return o}function U3(n,e){return W3(Qc(n,e),e)}function W3(n,e){e===void 0&&(e={});var t=to(e),r=e.encode,i=r===void 0?function(l){return l}:r,a=e.validate,o=a===void 0?!0:a,s=n.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),t)});return function(l){for(var c="",u=0;u<n.length;u++){var p=n[u];if(typeof p=="string"){c+=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(o&&!s[u].test(g))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));c+=p.prefix+g+p.suffix}continue}if(typeof m=="string"||typeof m=="number"){var g=i(String(m),p);if(o&&!s[u].test(g))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));c+=p.prefix+g+p.suffix;continue}if(!h){var k=f?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(k))}}return c}}function J3(n,e){var t=[],r=no(n,t,e);return q3(r,t,e)}function q3(n,e,t){t===void 0&&(t={});var r=t.decode,i=r===void 0?function(a){return a}:r;return function(a){var o=n.exec(a);if(!o)return!1;for(var s=o[0],l=o.index,c=Object.create(null),u=function(m){if(o[m]===void 0)return"continue";var h=e[m-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=o[m].split(h.prefix+h.suffix).map(function(f){return i(f,h)}):c[h.name]=i(o[m],h)},p=1;p<o.length;p++)u(p);return{path:s,index:l,params:c}}}function mn(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function to(n){return n&&n.sensitive?"":"i"}function K3(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 G3(n,e,t){var r=n.map(function(i){return no(i,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),to(t))}function Y3(n,e,t){return X3(Qc(n,t),e,t)}function X3(n,e,t){t===void 0&&(t={});for(var r=t.strict,i=r===void 0?!1:r,a=t.start,o=a===void 0?!0:a,s=t.end,l=s===void 0?!0:s,c=t.encode,u=c===void 0?function(T){return T}:c,p=t.delimiter,m=p===void 0?"/#?":p,h=t.endsWith,f=h===void 0?"":h,v="[".concat(mn(f),"]|$"),g="[".concat(mn(m),"]"),k=o?"^":"",b=0,w=n;b<w.length;b++){var S=w[b];if(typeof S=="string")k+=mn(u(S));else{var C=mn(u(S.prefix)),x=mn(u(S.suffix));if(S.pattern)if(e&&e.push(S),C||x)if(S.modifier==="+"||S.modifier==="*"){var E=S.modifier==="*"?"?":"";k+="(?:".concat(C,"((?:").concat(S.pattern,")(?:").concat(x).concat(C,"(?:").concat(S.pattern,"))*)").concat(x,")").concat(E)}else k+="(?:".concat(C,"(").concat(S.pattern,")").concat(x,")").concat(S.modifier);else S.modifier==="+"||S.modifier==="*"?k+="((?:".concat(S.pattern,")").concat(S.modifier,")"):k+="(".concat(S.pattern,")").concat(S.modifier);else k+="(?:".concat(C).concat(x,")").concat(S.modifier)}}if(l)i||(k+="".concat(g,"?")),k+=t.endsWith?"(?=".concat(v,")"):"$";else{var $=n[n.length-1],U=typeof $=="string"?g.indexOf($[$.length-1])>-1:$===void 0;i||(k+="(?:".concat(g,"(?=").concat(v,"))?")),U||(k+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(k,to(t))}function no(n,e,t){return n instanceof RegExp?K3(n,e):Array.isArray(n)?G3(n,e,t):Y3(n,e,t)}Xc.compress;Xc.decompress;/**!
51
51
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.8.2
54
+ * @version 0.8.3
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const oa="BuiltIn",Zc="VueMaterial",eu="VueRouterMaterial",X3={vue:"Vue","vue-router":"VueRouter"},Q3={[Zc]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[eu]:["RouterView","RouterLink"]};let ro=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}},ji=class tu{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 tu(r,i),t),{})}},Ci=class nu{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:a,modifiers:o}=i;return t[r]={name:r,handler:a,modifiers:o},t},{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new nu(i),t),{})}},mn=class ru{constructor(e){this.schema=e,this.id=e.id||dt(),this.update(e)}id;name="";arg;modifiers;value;iterator;update(e){Object.assign(this.schema,e);const{name:t,arg:r,modifiers:i,value:a,iterator:o}=this.schema;this.name=t,this.arg=r,this.modifiers=i,this.value=a,this.iterator=o}static parse(e=[]){return e.map(t=>new ru(t))}static toDsl(e=[]){return e.map(t=>{const{name:r,arg:i,modifiers:a,value:o,iterator:s,id:l}=t;return{id:l,name:r,arg:i,modifiers:a,value:o,iterator:s}})}};const ke="EVENT_NODE_CHANGE";let Wr=class Dr{constructor(e,t=null){this.parent=t;const{id:r=dt(),name:i,from:a=""}=e;this.id=r,this.name=i,this.from=a,this.update(e,!0),Dr.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:a=[],slot:o,props:s={},events:l={},directives:c=[]}=e;this.invisible=r,this.locked=i,this.setChildren(a,!0),this.setSlot(o,!0),this.props=ji.parse(s),this.events=Ci.parse(l),this.directives=mn.parse(c),t||K.emit(ke,this)}setChildren(e="",t=!1){Array.isArray(e)?this.children=e.map(r=>new Dr(r,this)):this.children=e,t||K.emit(ke,this)}setSlot(e,t=!1){this.slot=typeof e=="string"?{name:e,params:[]}:e,t||K.emit(ke,this)}setProp(e,t,r,i=!1){const a=this.props[e];a?a.setValue(t):this.props[e]=new ji(e,t,r),i||K.emit(ke,this)}removeProp(e,t=!1){delete this.props[e],t||K.emit(ke,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 Ci(e),t||K.emit(ke,this)}removeEvent(e,t=!1){delete this.events[e],t||K.emit(ke,this)}setDirective(e,t=!1){const r=this.directives.findIndex(i=>i.id===e.id);r>=0?this.directives.splice(r,1,new mn(e)):this.directives.push(new mn(e)),t||K.emit(ke,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||K.emit(ke,this)}removeChild(e,t=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const a=r.findIndex(o=>o===e);e.parent=null,r.splice(a,1),t||K.emit(ke,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||K.emit(ke,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||K.emit(ke,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||K.emit(ke,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||K.emit(ke,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||K.emit(ke,t))}}toDsl(){const{id:e,name:t,from:r,invisible:i,locked:a,slot:o,children:s,props:l,directives:c,events:u}=this,p=Array.isArray(s)?s.map(m=>m.toDsl()):s;return{id:e,name:t,from:r,invisible:i,locked:a,slot:o,children:p,props:ji.toDsl(l),directives:mn.toDsl(c),events:Ci.toDsl(u)}}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||K.emit(ke,this),this.parent=null,this.disposed=!0,delete Dr.nodes[this.id])}lock(e=!1){if(this.locked=!0,Array.isArray(this.children))for(const t of this.children)t.lock(!0);e||K.emit(ke,this)}unlock(e=!1){if(this.locked=!1,Array.isArray(this.children))for(const t of this.children)t.unlock(!0);e||K.emit(ke,this)}setVisible(e,t=!1){if(this.invisible=!e,Array.isArray(this.children))for(const r of this.children)r.setVisible(e,!0);t||K.emit(ke,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 yn=class sa{__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||dt(),this.update(e,!0)}update(e,t=!1){for(const i of sa.normalAttrs){const a=e[i];a&&(this[i]=a)}const{nodes:r=[]}=e;r.length&&(this.nodes=r.map(i=>new Wr(i))),t||K.emit(ge,this)}toDsl(e){const{__VTJ_BLOCK__:t,id:r,nodes:i}=this;return{...sa.normalAttrs.reduce((a,o)=>(a[o]=this[o],a),{}),__VTJ_BLOCK__:t,__VERSION__:e||Kc().toString(),id:r,nodes:i.map(a=>a.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||K.emit(ge,this)}removeFunction(e,t,r=!1){delete this[e][t],r||K.emit(ge,this)}setState(e,t,r=!1){this.state[e]=t,r||K.emit(ge,this)}removeState(e,t=!1){delete this.state[e],t||K.emit(ge,this)}setCss(e,t=!1){this.css=e,t||K.emit(ge,this)}setWatch(e,t=!1){e.id=e.id||dt();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||K.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||K.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||K.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||K.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||K.emit(ge,this)}removeEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1&&(this.emits.splice(r,1),t||K.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||K.emit(ge,this)}removeSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1&&(this.slots.splice(r,1),t||K.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||K.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||K.emit(ge,this))}setDataSource(e,t=!1){this.dataSources[e.name]=e,t||K.emit(ge,this)}removeDataSource(e,t=!1){delete this.dataSources[e],t||K.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||K.emit(ge,this)}insertBefore(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i,0,e),r||K.emit(ge,this)}appendNode(e,t=!1){e.parent=null,this.nodes.push(e),t||K.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||K.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||K.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||K.emit(ge,this))}}cloneNode(e,t=!1){const r=ou(e.toDsl()),i=new Wr(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||K.emit(ge,this)}unlock(e=!1){this.locked=!1;for(const t of this.nodes)t.unlock(!0);e||K.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",nr="EVENT_PROJECT_ACTIVED",la="EVENT_PROJECT_DEPS_CHANGE",Ln="EVENT_PROJECT_PAGES_CHANGE",Or="EVENT_PROJECT_BLOCKS_CHANGE",Ns="EVENT_PROJECT_APIS_CHANGE",iu="EVENT_PROJECT_PUBLISH",au="EVENT_PROJECT_FILE_PUBLISH";let Z3=class ca{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||dt(),this.update(e,!0)}update(e,t=!1){for(const r of ca.attrs){const i=e[r];i&&(this[r]=i)}t||K.emit(Ne,{model:this,type:"update",data:e})}isPageFile(e){return e.type==="page"}toDsl(e){const{id:t}=this,r=ca.attrs.reduce((i,a)=>(i[a]=this[a],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||Kc().toString(),id:t,...r}}active(e,t=!1){this.currentFile=e,t||K.emit(nr,{model:this,type:"update",data:e})}deactivate(e=!1){this.currentFile=null,e||K.emit(nr,{model:this,type:"update",data:null})}setDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===e.package);let a;if(i>-1?(a="update",r.splice(i,1,{...r[i],...e})):(a="create",r.push(e)),!t){const o={model:this,type:a,data:e};K.emit(la,o),K.emit(Ne,o)}}removeDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(a=>a.package===e.package);if(i>-1&&r.splice(i,1),!t){const a={model:this,type:"delete",data:e};K.emit(la,a),K.emit(Ne,a)}}getPage(e){const t=(r,i=[])=>{for(const a of i){if(a.id===r)return a;if(a.children&&a.children.length){const o=t(r,a.children);if(o)return o}}};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||dt(),e.type="page",e.dir?e.children=[]:e.dsl=e.dsl||new yn({id:e.id,name:Ur(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};K.emit(Ln,i),K.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};K.emit(Ln,i),K.emit(Ne,i)}}clonePage(e,t,r=!1){const i=dt(),a=`${e.name}Copy`,o=`${e.title}_副本`,s=new yn({id:i,name:a}).toDsl(),l=ht({},e,{id:i,name:a,title:o,dsl:s}),c=t?this.getPage(t)?.children||[]:this.pages,u=c.findIndex(p=>p.id===e.id);if(c.splice(u+1,0,l),!r){const p={model:this,type:"clone",data:{page:e,newPage:l}};K.emit(Ln,p),K.emit(Ne,p)}}removePage(e,t=!1){const r=this.getPage(e),i=(a,o)=>{const s=o.findIndex(l=>l.id===a);if(s>=0){o.splice(s,1);return}for(const l of o)if(l.children&&l.children.length)return i(a,l.children)};if(i(e,this.pages),e===this.homepage&&(this.homepage=""),this.currentFile?.id===e&&this.deactivate(t),!t){const a={model:this,type:"delete",data:r};K.emit(Ln,a),K.emit(Ne,a)}}getBlock(e){return this.blocks.find(t=>t.id===e)}createBlock(e,t=!1){const r=e.id||dt(),i=Ur(e.name);e.id=r,e.type="block",e.dsl=new yn({id:r,name:i}).toDsl(),this.blocks.push(e);const a=e.fromType||"Schema";if(!this.currentFile&&a==="Schema"&&this.active(e,t),!t){const o={model:this,type:"create",data:e};K.emit(Or,o),K.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};K.emit(Or,i),K.emit(Ne,i)}}removeBlock(e,t=!1){const r=this.getBlock(e),i=this.blocks,a=i.findIndex(o=>o.id===e);if(a>-1?(i.splice(a,1),this.currentFile?.id===e&&this.deactivate(t)):console.warn(`not found PageFile for id: ${e} `),!t){const o={model:this,type:"delete",data:r};K.emit(Or,o),K.emit(Ne,o)}}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(a=>a.name===e.name||a.id===e.id);let i;if(r?(i="update",Object.assign(r,e)):(i="create",e.id=dt(),this.apis.push(e)),!t){const a={model:this,type:i,data:e};K.emit(Ns,a),K.emit(Ne,a)}}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};K.emit(Ns,i),K.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};K.emit(Ne,r)}}setConfig(e,t=!1){if(this.config=Object.assign(this.config,e),!t){const r={model:this,type:"update",data:e};K.emit(Ne,r)}}publish(e){const t={model:this,type:"publish",data:e||this};e?K.emit(au,t):K.emit(iu,t)}};const Un="EVENT_HISTORY_CHANGE",Ir="EVENT_HISTORY_LOAD";let eg=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:dt(),label:new Date().toLocaleString(),dsl:en(e)};if(this.items.unshift(i),this.items.length>r){const a=this.items.splice(r);t||K.emit(Un,{model:this,type:"delete",data:a.map(o=>o.id)})}this.index=-1,t||K.emit(Un,{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||K.emit(Un,{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&&K.emit(Ir,{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&&K.emit(Ir,{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||K.emit(Ir,{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||K.emit(Un,{model:this,type:"clear",data:t})}};const K=F3();function Ve(n){return n instanceof yn}function ou(n){return delete n.id,Array.isArray(n.children)&&(n.children=n.children.map(e=>ou(e))),n}function tg(n){const e=n.fromType||"Schema";return e==="Schema"?{type:"Schema",id:n.id}:e==="UrlSchema"?{type:"UrlSchema",url:(n.urls||"").split(",")[0]||""}:e==="Plugin"?{type:"Plugin",urls:(n.urls||"").split(","),library:n.library}:""}/**!
56
+ */const oa="BuiltIn",Zc="VueMaterial",eu="VueRouterMaterial",Q3={vue:"Vue","vue-router":"VueRouter"},Z3={[Zc]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[eu]:["RouterView","RouterLink"]};let ro=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}},ji=class tu{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 tu(r,i),t),{})}},Vi=class nu{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:a,modifiers:o}=i;return t[r]={name:r,handler:a,modifiers:o},t},{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new nu(i),t),{})}},fn=class ru{constructor(e){this.schema=e,this.id=e.id||dt(),this.update(e)}id;name="";arg;modifiers;value;iterator;update(e){Object.assign(this.schema,e);const{name:t,arg:r,modifiers:i,value:a,iterator:o}=this.schema;this.name=t,this.arg=r,this.modifiers=i,this.value=a,this.iterator=o}static parse(e=[]){return e.map(t=>new ru(t))}static toDsl(e=[]){return e.map(t=>{const{name:r,arg:i,modifiers:a,value:o,iterator:s,id:l}=t;return{id:l,name:r,arg:i,modifiers:a,value:o,iterator:s}})}};const ke="EVENT_NODE_CHANGE";let Wr=class Dr{constructor(e,t=null){this.parent=t;const{id:r=dt(),name:i,from:a=""}=e;this.id=r,this.name=i,this.from=a,this.update(e,!0),Dr.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:a=[],slot:o,props:s={},events:l={},directives:c=[]}=e;this.invisible=r,this.locked=i,this.setChildren(a,!0),this.setSlot(o,!0),this.props=ji.parse(s),this.events=Vi.parse(l),this.directives=fn.parse(c),t||K.emit(ke,this)}setChildren(e="",t=!1){Array.isArray(e)?this.children=e.map(r=>new Dr(r,this)):this.children=e,t||K.emit(ke,this)}setSlot(e,t=!1){this.slot=typeof e=="string"?{name:e,params:[]}:e,t||K.emit(ke,this)}setProp(e,t,r,i=!1){const a=this.props[e];a?a.setValue(t):this.props[e]=new ji(e,t,r),i||K.emit(ke,this)}removeProp(e,t=!1){delete this.props[e],t||K.emit(ke,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 Vi(e),t||K.emit(ke,this)}removeEvent(e,t=!1){delete this.events[e],t||K.emit(ke,this)}setDirective(e,t=!1){const r=this.directives.findIndex(i=>i.id===e.id);r>=0?this.directives.splice(r,1,new fn(e)):this.directives.push(new fn(e)),t||K.emit(ke,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||K.emit(ke,this)}removeChild(e,t=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const a=r.findIndex(o=>o===e);e.parent=null,r.splice(a,1),t||K.emit(ke,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||K.emit(ke,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||K.emit(ke,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||K.emit(ke,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||K.emit(ke,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||K.emit(ke,t))}}toDsl(){const{id:e,name:t,from:r,invisible:i,locked:a,slot:o,children:s,props:l,directives:c,events:u}=this,p=Array.isArray(s)?s.map(m=>m.toDsl()):s;return{id:e,name:t,from:r,invisible:i,locked:a,slot:o,children:p,props:ji.toDsl(l),directives:fn.toDsl(c),events:Vi.toDsl(u)}}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||K.emit(ke,this),this.parent=null,this.disposed=!0,delete Dr.nodes[this.id])}lock(e=!1){if(this.locked=!0,Array.isArray(this.children))for(const t of this.children)t.lock(!0);e||K.emit(ke,this)}unlock(e=!1){if(this.locked=!1,Array.isArray(this.children))for(const t of this.children)t.unlock(!0);e||K.emit(ke,this)}setVisible(e,t=!1){if(this.invisible=!e,Array.isArray(this.children))for(const r of this.children)r.setVisible(e,!0);t||K.emit(ke,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 yn=class sa{__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||dt(),this.update(e,!0)}update(e,t=!1){for(const i of sa.normalAttrs){const a=e[i];a&&(this[i]=a)}const{nodes:r=[]}=e;r.length&&(this.nodes=r.map(i=>new Wr(i))),t||K.emit(ge,this)}toDsl(e){const{__VTJ_BLOCK__:t,id:r,nodes:i}=this;return{...sa.normalAttrs.reduce((a,o)=>(a[o]=this[o],a),{}),__VTJ_BLOCK__:t,__VERSION__:e||Kc().toString(),id:r,nodes:i.map(a=>a.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||K.emit(ge,this)}removeFunction(e,t,r=!1){delete this[e][t],r||K.emit(ge,this)}setState(e,t,r=!1){this.state[e]=t,r||K.emit(ge,this)}removeState(e,t=!1){delete this.state[e],t||K.emit(ge,this)}setCss(e,t=!1){this.css=e,t||K.emit(ge,this)}setWatch(e,t=!1){e.id=e.id||dt();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||K.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||K.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||K.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||K.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||K.emit(ge,this)}removeEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1&&(this.emits.splice(r,1),t||K.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||K.emit(ge,this)}removeSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1&&(this.slots.splice(r,1),t||K.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||K.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||K.emit(ge,this))}setDataSource(e,t=!1){this.dataSources[e.name]=e,t||K.emit(ge,this)}removeDataSource(e,t=!1){delete this.dataSources[e],t||K.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||K.emit(ge,this)}insertBefore(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i,0,e),r||K.emit(ge,this)}appendNode(e,t=!1){e.parent=null,this.nodes.push(e),t||K.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||K.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||K.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||K.emit(ge,this))}}cloneNode(e,t=!1){const r=ou(e.toDsl()),i=new Wr(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||K.emit(ge,this)}unlock(e=!1){this.locked=!1;for(const t of this.nodes)t.unlock(!0);e||K.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",nr="EVENT_PROJECT_ACTIVED",la="EVENT_PROJECT_DEPS_CHANGE",Ln="EVENT_PROJECT_PAGES_CHANGE",Or="EVENT_PROJECT_BLOCKS_CHANGE",Ns="EVENT_PROJECT_APIS_CHANGE",iu="EVENT_PROJECT_PUBLISH",au="EVENT_PROJECT_FILE_PUBLISH";let eg=class ca{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||dt(),this.update(e,!0)}update(e,t=!1){for(const r of ca.attrs){const i=e[r];i&&(this[r]=i)}t||K.emit(Ne,{model:this,type:"update",data:e})}isPageFile(e){return e.type==="page"}toDsl(e){const{id:t}=this,r=ca.attrs.reduce((i,a)=>(i[a]=this[a],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||Kc().toString(),id:t,...r}}active(e,t=!1){this.currentFile=e,t||K.emit(nr,{model:this,type:"update",data:e})}deactivate(e=!1){this.currentFile=null,e||K.emit(nr,{model:this,type:"update",data:null})}setDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===e.package);let a;if(i>-1?(a="update",r.splice(i,1,{...r[i],...e})):(a="create",r.push(e)),!t){const o={model:this,type:a,data:e};K.emit(la,o),K.emit(Ne,o)}}removeDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(a=>a.package===e.package);if(i>-1&&r.splice(i,1),!t){const a={model:this,type:"delete",data:e};K.emit(la,a),K.emit(Ne,a)}}getPage(e){const t=(r,i=[])=>{for(const a of i){if(a.id===r)return a;if(a.children&&a.children.length){const o=t(r,a.children);if(o)return o}}};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||dt(),e.type="page",e.dir?e.children=[]:e.dsl=e.dsl||new yn({id:e.id,name:Ur(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};K.emit(Ln,i),K.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};K.emit(Ln,i),K.emit(Ne,i)}}clonePage(e,t,r=!1){const i=dt(),a=`${e.name}Copy`,o=`${e.title}_副本`,s=new yn({id:i,name:a}).toDsl(),l=ht({},e,{id:i,name:a,title:o,dsl:s}),c=t?this.getPage(t)?.children||[]:this.pages,u=c.findIndex(p=>p.id===e.id);if(c.splice(u+1,0,l),!r){const p={model:this,type:"clone",data:{page:e,newPage:l}};K.emit(Ln,p),K.emit(Ne,p)}}removePage(e,t=!1){const r=this.getPage(e),i=(a,o)=>{const s=o.findIndex(l=>l.id===a);if(s>=0){o.splice(s,1);return}for(const l of o)if(l.children&&l.children.length)return i(a,l.children)};if(i(e,this.pages),e===this.homepage&&(this.homepage=""),this.currentFile?.id===e&&this.deactivate(t),!t){const a={model:this,type:"delete",data:r};K.emit(Ln,a),K.emit(Ne,a)}}getBlock(e){return this.blocks.find(t=>t.id===e)}createBlock(e,t=!1){const r=e.id||dt(),i=Ur(e.name);e.id=r,e.type="block",e.dsl=new yn({id:r,name:i}).toDsl(),this.blocks.push(e);const a=e.fromType||"Schema";if(!this.currentFile&&a==="Schema"&&this.active(e,t),!t){const o={model:this,type:"create",data:e};K.emit(Or,o),K.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};K.emit(Or,i),K.emit(Ne,i)}}removeBlock(e,t=!1){const r=this.getBlock(e),i=this.blocks,a=i.findIndex(o=>o.id===e);if(a>-1?(i.splice(a,1),this.currentFile?.id===e&&this.deactivate(t)):console.warn(`not found PageFile for id: ${e} `),!t){const o={model:this,type:"delete",data:r};K.emit(Or,o),K.emit(Ne,o)}}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(a=>a.name===e.name||a.id===e.id);let i;if(r?(i="update",Object.assign(r,e)):(i="create",e.id=dt(),this.apis.push(e)),!t){const a={model:this,type:i,data:e};K.emit(Ns,a),K.emit(Ne,a)}}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};K.emit(Ns,i),K.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};K.emit(Ne,r)}}setConfig(e,t=!1){if(this.config=Object.assign(this.config,e),!t){const r={model:this,type:"update",data:e};K.emit(Ne,r)}}publish(e){const t={model:this,type:"publish",data:e||this};e?K.emit(au,t):K.emit(iu,t)}};const Un="EVENT_HISTORY_CHANGE",Ir="EVENT_HISTORY_LOAD";let tg=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:dt(),label:new Date().toLocaleString(),dsl:tn(e)};if(this.items.unshift(i),this.items.length>r){const a=this.items.splice(r);t||K.emit(Un,{model:this,type:"delete",data:a.map(o=>o.id)})}this.index=-1,t||K.emit(Un,{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||K.emit(Un,{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&&K.emit(Ir,{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&&K.emit(Ir,{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||K.emit(Ir,{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||K.emit(Un,{model:this,type:"clear",data:t})}};const K=H3();function Ce(n){return n instanceof yn}function ou(n){return delete n.id,Array.isArray(n.children)&&(n.children=n.children.map(e=>ou(e))),n}function ng(n){const e=n.fromType||"Schema";return e==="Schema"?{type:"Schema",id:n.id}:e==="UrlSchema"?{type:"UrlSchema",url:(n.urls||"").split(",")[0]||""}:e==="Plugin"?{type:"Plugin",urls:(n.urls||"").split(","),library:n.library}:""}/**!
57
57
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/icons
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.8.2
60
+ * @version 0.8.3
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const ng=I({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),rg=I({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ig=I({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ag=I({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),og=I({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),su=I({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),lu=I({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),cu=I({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),sg=I({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),uu=I({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),lg=I({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),cg=I({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ug=I({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),dg=I({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),pg=I({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),hg=I({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),mg=I({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),fg=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:ng,Fixed:rg,Fullscreen:ig,Invisible:ag,LineHeight:og,Maximize:su,Minimize:lu,Popup:cu,QrCodeLogin:sg,RawClose:uu,RawLock:lg,RawUnLock:cg,Rows:ug,Skin:dg,UnFixed:pg,UserLogin:hg,Visible:mg},Symbol.toStringTag,{value:"Module"}));function X(n,e){return Pt(I({name:n,render(){return _("i",{class:e})}}))}const vg=X("VtjIconWindowMax","vtj-icon-window-max"),gg=X("VtjIconWindowMin","vtj-icon-window-min"),yg=X("VtjIconWindowClose","vtj-icon-window-close"),bg=X("VtjIconWindowNormal","vtj-icon-window-normal"),wg=X("VtjIconWindowDown","vtj-icon-window-down"),xg=X("VtjIconWindowUp","vtj-icon-window-up"),_g=X("VtjIconNpSave","vtj-icon-np-save"),Sg=X("VtjIconNpFile","vtj-icon-np-file"),kg=X("VtjIconNpEdit","vtj-icon-np-edit"),jg=X("VtjIconNpShare","vtj-icon-np-share"),Cg=X("VtjIconNpSearch","vtj-icon-np-search"),Vg=X("VtjIconNpExport","vtj-icon-np-export"),$g=X("VtjIconNpImport","vtj-icon-np-import"),Eg=X("VtjIconNpList","vtj-icon-np-list"),Ag=X("VtjIconNpPrint","vtj-icon-np-print"),Tg=X("VtjIconNpCancel","vtj-icon-np-cancel"),Bg=X("VtjIconNpConfirm","vtj-icon-np-confirm"),zg=X("VtjIconNpReset","vtj-icon-np-reset"),Dg=X("VtjIconNpReturnAll","vtj-icon-np-return-all"),Og=X("VtjIconNpReturn","vtj-icon-np-return"),Ig=X("VtjIconNpRemove","vtj-icon-np-remove"),Rg=X("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),Mg=X("VtjIconNpDelete","vtj-icon-np-delete"),Pg=X("VtjIconNpExit","vtj-icon-np-exit"),Ng=X("VtjIconNpRefresh","vtj-icon-np-refresh"),Fg=X("VtjIconNpAdd","vtj-icon-np-add"),Hg=X("VtjIconNpSelect","vtj-icon-np-select"),Lg=X("VtjIconNpAddRow","vtj-icon-np-add-row"),Ug=X("VtjIconNpExtend","vtj-icon-np-extend"),Wg=X("VtjIconNpClose","vtj-icon-np-close"),Jg=X("VtjIconNpSubmit","vtj-icon-np-submit"),qg=X("VtjIconDeps","vtj-icon-deps"),du=X("VtjIconBack","vtj-icon-back"),pu=X("VtjIconHome","vtj-icon-home"),hu=X("VtjIconApi","vtj-icon-api"),Kg=X("VtjIconExport","vtj-icon-export"),Gg=X("VtjIconImport","vtj-icon-import"),Yg=X("VtjIconGreater","vtj-icon-greater"),Xg=X("VtjIconSmaller","vtj-icon-smaller"),io=X("VtjIconCheck","vtj-icon-check"),mu=X("VtjIconSwitch","vtj-icon-switch"),ao=X("VtjIconCopy","vtj-icon-copy"),oo=X("VtjIconLock","vtj-icon-lock"),fu=X("VtjIconUnlock","vtj-icon-unlock"),so=X("VtjIconLayers","vtj-icon-layers"),Qg=X("VtjIconConsole","vtj-icon-console"),Zg=X("VtjIconTeam","vtj-icon-team"),e6=X("VtjIconPublish","vtj-icon-publish"),vu=X("VtjIconPreview","vtj-icon-preview"),gu=X("VtjIconSave","vtj-icon-save"),yu=X("VtjIconPc","vtj-icon-pc"),bu=X("VtjIconPhone","vtj-icon-phone"),wu=X("VtjIconPad","vtj-icon-pad"),xu=X("VtjIconRedo","vtj-icon-redo"),_u=X("VtjIconRefresh","vtj-icon-refresh"),Su=X("VtjIconUndo","vtj-icon-undo"),ku=X("VtjIconCategory","vtj-icon-category"),t6=X("VtjIconProject","vtj-icon-project"),n6=X("VtjIconNotice","vtj-icon-notice"),r6=X("VtjIconFav","vtj-icon-fav"),i6=X("VtjIconBug","vtj-icon-bug"),a6=X("VtjIconFile","vtj-icon-file"),o6=X("VtjIconFolder","vtj-icon-folder"),s6=X("VtjIconUpload","vtj-icon-upload"),l6=X("VtjIconDownload","vtj-icon-download"),c6=X("VtjIconUser","vtj-icon-user"),lo=X("VtjIconSetting","vtj-icon-setting"),u6=X("VtjIconArrowRight","vtj-icon-arrow-right"),d6=X("VtjIconArrowLeft","vtj-icon-arrow-left"),ju=X("VtjIconArrowDown","vtj-icon-arrow-down"),Cu=X("VtjIconArrowUp","vtj-icon-arrow-up"),p6=X("VtjIconShare","vtj-icon-share"),h6=X("VtjIconData","vtj-icon-data"),m6=X("VtjIconTemplate","vtj-icon-template"),f6=X("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),v6=X("VtjIconFullscreen","vtj-icon-fullscreen"),co=X("VtjIconEdit","vtj-icon-edit"),sr=X("VtjIconRemove","vtj-icon-remove"),g6=X("VtjIconJs","vtj-icon-js"),y6=X("VtjIconDatabase","vtj-icon-database"),Vu=X("VtjIconInfo","vtj-icon-info"),uo=X("VtjIconPlus","vtj-icon-plus"),b6=X("VtjIconMinus","vtj-icon-minus"),po=X("VtjIconHelp","vtj-icon-help"),$u=X("VtjIconVars","vtj-icon-vars"),Eu=X("VtjIconOutline","vtj-icon-outline"),Au=X("VtjIconVisible","vtj-icon-visible"),ho=X("VtjIconInvisible","vtj-icon-invisible"),Tu=X("VtjIconDocument","vtj-icon-document"),Bu=X("VtjIconHistory","vtj-icon-history"),w6=X("VtjIconFixed","vtj-icon-fixed"),x6=X("VtjIconUnfixed","vtj-icon-unfixed"),zu=X("VtjIconSearch","vtj-icon-search"),_6=X("VtjIconMore","vtj-icon-more"),S6=X("VtjIconClose","vtj-icon-close"),Du=X("VtjIconComponents","vtj-icon-components"),Ou=X("VtjIconBlock","vtj-icon-block"),k6=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:hu,VtjIconArrowDown:ju,VtjIconArrowLeft:d6,VtjIconArrowRight:u6,VtjIconArrowUp:Cu,VtjIconBack:du,VtjIconBlock:Ou,VtjIconBug:i6,VtjIconCategory:ku,VtjIconCheck:io,VtjIconClose:S6,VtjIconComponents:Du,VtjIconConsole:Qg,VtjIconCopy:ao,VtjIconData:h6,VtjIconDatabase:y6,VtjIconDeps:qg,VtjIconDocument:Tu,VtjIconDownload:l6,VtjIconEdit:co,VtjIconExitFullscreen:f6,VtjIconExport:Kg,VtjIconFav:r6,VtjIconFile:a6,VtjIconFixed:w6,VtjIconFolder:o6,VtjIconFullscreen:v6,VtjIconGreater:Yg,VtjIconHelp:po,VtjIconHistory:Bu,VtjIconHome:pu,VtjIconImport:Gg,VtjIconInfo:Vu,VtjIconInvisible:ho,VtjIconJs:g6,VtjIconLayers:so,VtjIconLock:oo,VtjIconMinus:b6,VtjIconMore:_6,VtjIconNotice:n6,VtjIconNpAdd:Fg,VtjIconNpAddRow:Lg,VtjIconNpCancel:Tg,VtjIconNpClose:Wg,VtjIconNpConfirm:Bg,VtjIconNpDelete:Mg,VtjIconNpEdit:kg,VtjIconNpExit:Pg,VtjIconNpExport:Vg,VtjIconNpExtend:Ug,VtjIconNpFile:Sg,VtjIconNpImport:$g,VtjIconNpList:Eg,VtjIconNpPrint:Ag,VtjIconNpRefresh:Ng,VtjIconNpRemove:Ig,VtjIconNpRemoveRow:Rg,VtjIconNpReset:zg,VtjIconNpReturn:Og,VtjIconNpReturnAll:Dg,VtjIconNpSave:_g,VtjIconNpSearch:Cg,VtjIconNpSelect:Hg,VtjIconNpShare:jg,VtjIconNpSubmit:Jg,VtjIconOutline:Eu,VtjIconPad:wu,VtjIconPc:yu,VtjIconPhone:bu,VtjIconPlus:uo,VtjIconPreview:vu,VtjIconProject:t6,VtjIconPublish:e6,VtjIconRedo:xu,VtjIconRefresh:_u,VtjIconRemove:sr,VtjIconSave:gu,VtjIconSearch:zu,VtjIconSetting:lo,VtjIconShare:p6,VtjIconSmaller:Xg,VtjIconSwitch:mu,VtjIconTeam:Zg,VtjIconTemplate:m6,VtjIconUndo:Su,VtjIconUnfixed:x6,VtjIconUnlock:fu,VtjIconUpload:s6,VtjIconUser:c6,VtjIconVars:$u,VtjIconVisible:Au,VtjIconWindowClose:yg,VtjIconWindowDown:wg,VtjIconWindowMax:vg,VtjIconWindowMin:gg,VtjIconWindowNormal:bg,VtjIconWindowUp:xg},Symbol.toStringTag,{value:"Module"})),j6="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",C6="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",V6="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",$6="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",E6="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",A6="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",T6="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",B6="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",z6="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",Iu="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",D6="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",O6="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",I6="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",R6="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",M6="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",P6="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",N6="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",F6="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",H6="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",L6="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",U6="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",W6="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",J6="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",q6="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",K6="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",G6="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",Y6="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",X6="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",Q6="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",Z6="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",e4="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",t4="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",n4="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",r4="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",i4="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",a4="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",o4="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",s4="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",l4="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",c4="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",u4="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",d4="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",p4="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",h4="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",m4="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",f4="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",v4="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",g4="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",y4="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",b4="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",w4="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",x4="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",_4="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",S4="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",ua={...A2,...fg,...k6};(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 k4=n=>typeof n=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(k4));function Ru(n,e){return function(){return n.apply(e,arguments)}}const{toString:j4}=Object.prototype,{getPrototypeOf:mo}=Object,ii=(n=>e=>{const t=j4.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),bt=n=>(n=n.toLowerCase(),e=>ii(e)===n),ai=n=>e=>typeof e===n,{isArray:zn}=Array,rr=ai("undefined");function C4(n){return n!==null&&!rr(n)&&n.constructor!==null&&!rr(n.constructor)&&nt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Mu=bt("ArrayBuffer");function V4(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Mu(n.buffer),e}const $4=ai("string"),nt=ai("function"),Pu=ai("number"),oi=n=>n!==null&&typeof n=="object",E4=n=>n===!0||n===!1,Rr=n=>{if(ii(n)!=="object")return!1;const e=mo(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},A4=bt("Date"),T4=bt("File"),B4=bt("Blob"),z4=bt("FileList"),D4=n=>oi(n)&&nt(n.pipe),O4=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||nt(n.append)&&((e=ii(n))==="formdata"||e==="object"&&nt(n.toString)&&n.toString()==="[object FormData]"))},I4=bt("URLSearchParams"),R4=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lr(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),zn(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),o=a.length;let s;for(r=0;r<o;r++)s=a[r],e.call(null,n[s],s,n)}}function Nu(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 Fu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hu=n=>!rr(n)&&n!==Fu;function da(){const{caseless:n}=Hu(this)&&this||{},e={},t=(r,i)=>{const a=n&&Nu(e,i)||i;Rr(e[a])&&Rr(r)?e[a]=da(e[a],r):Rr(r)?e[a]=da({},r):zn(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&lr(arguments[r],t);return e}const M4=(n,e,t,{allOwnKeys:r}={})=>(lr(e,(i,a)=>{t&&nt(i)?n[a]=Ru(i,t):n[a]=i},{allOwnKeys:r}),n),P4=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),N4=(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)},F4=(n,e,t,r)=>{let i,a,o;const s={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),a=i.length;a-- >0;)o=i[a],(!r||r(o,n,e))&&!s[o]&&(e[o]=n[o],s[o]=!0);n=t!==!1&&mo(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},H4=(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},L4=n=>{if(!n)return null;if(zn(n))return n;let e=n.length;if(!Pu(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},U4=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&mo(Uint8Array)),W4=(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])}},J4=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},q4=bt("HTMLFormElement"),K4=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Fs=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),G4=bt("RegExp"),Lu=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};lr(t,(i,a)=>{let o;(o=e(i,a,n))!==!1&&(r[a]=o||i)}),Object.defineProperties(n,r)},Y4=n=>{Lu(n,(e,t)=>{if(nt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(nt(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+"'")})}})},X4=(n,e)=>{const t={},r=i=>{i.forEach(a=>{t[a]=!0})};return zn(n)?r(n):r(String(n).split(e)),t},Q4=()=>{},Z4=(n,e)=>(n=+n,Number.isFinite(n)?n:e),Vi="abcdefghijklmnopqrstuvwxyz",Hs="0123456789",Uu={DIGIT:Hs,ALPHA:Vi,ALPHA_DIGIT:Vi+Vi.toUpperCase()+Hs},e8=(n=16,e=Uu.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function t8(n){return!!(n&&nt(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const n8=n=>{const e=new Array(10),t=(r,i)=>{if(oi(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=zn(r)?[]:{};return lr(r,(o,s)=>{const l=t(o,i+1);!rr(l)&&(a[s]=l)}),e[i]=void 0,a}}return r};return t(n,0)},r8=bt("AsyncFunction"),i8=n=>n&&(oi(n)||nt(n))&&nt(n.then)&&nt(n.catch),H={isArray:zn,isArrayBuffer:Mu,isBuffer:C4,isFormData:O4,isArrayBufferView:V4,isString:$4,isNumber:Pu,isBoolean:E4,isObject:oi,isPlainObject:Rr,isUndefined:rr,isDate:A4,isFile:T4,isBlob:B4,isRegExp:G4,isFunction:nt,isStream:D4,isURLSearchParams:I4,isTypedArray:U4,isFileList:z4,forEach:lr,merge:da,extend:M4,trim:R4,stripBOM:P4,inherits:N4,toFlatObject:F4,kindOf:ii,kindOfTest:bt,endsWith:H4,toArray:L4,forEachEntry:W4,matchAll:J4,isHTMLForm:q4,hasOwnProperty:Fs,hasOwnProp:Fs,reduceDescriptors:Lu,freezeMethods:Y4,toObjectSet:X4,toCamelCase:K4,noop:Q4,toFiniteNumber:Z4,findKey:Nu,global:Fu,isContextDefined:Hu,ALPHABET:Uu,generateString:e8,isSpecCompliantForm:t8,toJSONObject:n8,isAsyncFn:r8,isThenable:i8};function ve(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)}H.inherits(ve,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:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wu=ve.prototype,Ju={};["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=>{Ju[n]={value:n}});Object.defineProperties(ve,Ju);Object.defineProperty(Wu,"isAxiosError",{value:!0});ve.from=(n,e,t,r,i,a)=>{const o=Object.create(Wu);return H.toFlatObject(n,o,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),ve.call(o,n.message,e,t,r,i),o.cause=n,o.name=n.name,a&&Object.assign(o,a),o};const a8=null;function pa(n){return H.isPlainObject(n)||H.isArray(n)}function qu(n){return H.endsWith(n,"[]")?n.slice(0,-2):n}function Ls(n,e,t){return n?n.concat(e).map(function(r,i){return r=qu(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function o8(n){return H.isArray(n)&&!n.some(pa)}const s8=H.toFlatObject(H,{},null,function(n){return/^is[A-Z]/.test(n)});function si(n,e,t){if(!H.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,f){return!H.isUndefined(f[h])});const r=t.metaTokens,i=t.visitor||c,a=t.dots,o=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(H.isDate(h))return h.toISOString();if(!s&&H.isBlob(h))throw new ve("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(h)||H.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,f,v){let g=h;if(h&&!v&&typeof h=="object"){if(H.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(H.isArray(h)&&o8(h)||(H.isFileList(h)||H.endsWith(f,"[]"))&&(g=H.toArray(h)))return f=qu(f),g.forEach(function(k,b){!(H.isUndefined(k)||k===null)&&e.append(o===!0?Ls([f],b,a):o===null?f:f+"[]",l(k))}),!1}return pa(h)?!0:(e.append(Ls(v,f,a),l(h)),!1)}const u=[],p=Object.assign(s8,{defaultVisitor:c,convertValue:l,isVisitable:pa});function m(h,f){if(!H.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(h),H.forEach(h,function(v,g){(!(H.isUndefined(v)||v===null)&&i.call(e,v,H.isString(g)?g.trim():g,f,p))===!0&&m(v,f?f.concat(g):[g])}),u.pop()}}if(!H.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 fo(n,e){this._pairs=[],n&&si(n,this,e)}const Ku=fo.prototype;Ku.append=function(n,e){this._pairs.push([n,e])};Ku.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 l8(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gu(n,e,t){if(!e)return n;const r=t&&t.encode||l8,i=t&&t.serialize;let a;if(i?a=i(e,t):a=H.isURLSearchParams(e)?e.toString():new fo(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}let Ws=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){H.forEach(this.handlers,function(t){t!==null&&e(t)})}};const Yu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c8=typeof URLSearchParams<"u"?URLSearchParams:fo,u8=typeof FormData<"u"?FormData:null,d8=typeof Blob<"u"?Blob:null,p8={isBrowser:!0,classes:{URLSearchParams:c8,FormData:u8,Blob:d8},protocols:["http","https","file","blob","url","data"]},Xu=typeof window<"u"&&typeof document<"u",h8=(n=>Xu&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),m8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",f8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xu,hasStandardBrowserEnv:h8,hasStandardBrowserWebWorkerEnv:m8},Symbol.toStringTag,{value:"Module"})),mt={...f8,...p8};function v8(n,e){return si(n,new mt.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,a){return mt.isNode&&H.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function g8(n){return H.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function y8(n){const e={},t=Object.keys(n);let r;const i=t.length;let a;for(r=0;r<i;r++)a=t[r],e[a]=n[a];return e}function Qu(n){function e(t,r,i,a){let o=t[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=t.length;return o=!o&&H.isArray(i)?i.length:o,l?(H.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!H.isObject(i[o]))&&(i[o]=[]),e(t,r,i[o],a)&&H.isArray(i[o])&&(i[o]=y8(i[o])),!s)}if(H.isFormData(n)&&H.isFunction(n.entries)){const t={};return H.forEachEntry(n,(r,i)=>{e(g8(r),i,t,0)}),t}return null}function b8(n,e,t){if(H.isString(n))try{return(e||JSON.parse)(n),H.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(n)}const cr={transitional:Yu,adapter:["xhr","http"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,i=H.isObject(n);if(i&&H.isHTMLForm(n)&&(n=new FormData(n)),H.isFormData(n))return r?JSON.stringify(Qu(n)):n;if(H.isArrayBuffer(n)||H.isBuffer(n)||H.isStream(n)||H.isFile(n)||H.isBlob(n))return n;if(H.isArrayBufferView(n))return n.buffer;if(H.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let a;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return v8(n,this.formSerializer).toString();if((a=H.isFileList(n))||t.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return si(a?{"files[]":n}:n,o&&new o,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),b8(n)):n}],transformResponse:[function(n){const e=this.transitional||cr.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(n&&H.isString(n)&&(t&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(a){if(i)throw a.name==="SyntaxError"?ve.from(a,ve.ERR_BAD_RESPONSE,this,null,this.response):a}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],n=>{cr.headers[n]={}});const w8=H.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"]),x8=n=>{const e={};let t,r,i;return n&&n.split(`
63
- `).forEach(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!t||e[t]&&w8[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Js=Symbol("internals");function Pn(n){return n&&String(n).trim().toLowerCase()}function Mr(n){return n===!1||n==null?n:H.isArray(n)?n.map(Mr):String(n)}function _8(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 S8=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function $i(n,e,t,r,i){if(H.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!H.isString(e)){if(H.isString(r))return e.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(e)}}function k8(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function j8(n,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}let rt=class{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function a(s,l,c){const u=Pn(l);if(!u)throw new Error("header name must be a non-empty string");const p=H.findKey(i,u);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||l]=Mr(s))}const o=(s,l)=>H.forEach(s,(c,u)=>a(c,u,l));return H.isPlainObject(e)||e instanceof this.constructor?o(e,t):H.isString(e)&&(e=e.trim())&&!S8(e)?o(x8(e),t):e!=null&&a(t,e,r),this}get(e,t){if(e=Pn(e),e){const r=H.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return _8(i);if(H.isFunction(t))return t.call(this,i,r);if(H.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pn(e),e){const r=H.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||$i(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function a(o){if(o=Pn(o),o){const s=H.findKey(r,o);s&&(!t||$i(r,r[s],s,t))&&(delete r[s],i=!0)}}return H.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const a=t[r];(!e||$i(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const t=this,r={};return H.forEach(this,(i,a)=>{const o=H.findKey(r,a);if(o){t[o]=Mr(i),delete t[a];return}const s=e?k8(a):String(a).trim();s!==a&&delete t[a],t[s]=Mr(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&H.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(`
64
- `)}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[Js]=this[Js]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Pn(a);t[o]||(j8(r,a),t[o]=!0)}return H.isArray(e)?e.forEach(i):i(e),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(rt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});H.freezeMethods(rt);function Ei(n,e){const t=this||cr,r=e||t,i=rt.from(r.headers);let a=r.data;return H.forEach(n,function(o){a=o.call(t,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function Zu(n){return!!(n&&n.__CANCEL__)}function ur(n,e,t){ve.call(this,n??"canceled",ve.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(ur,ve,{__CANCEL__:!0});function C8(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new ve("Request failed with status code "+t.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const V8=mt.hasStandardBrowserEnv?{write(n,e,t,r,i,a){const o=[n+"="+encodeURIComponent(e)];H.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),H.isString(r)&&o.push("path="+r),H.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.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 $8(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function E8(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function e0(n,e){return n&&!$8(e)?E8(n,e):e}const A8=mt.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let t;function r(i){let a=i;return n&&(e.setAttribute("href",a),a=e.href),e.setAttribute("href",a),{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 a=H.isString(i)?r(i):i;return a.protocol===t.protocol&&a.host===t.host}}():function(){return function(){return!0}}();function T8(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function B8(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),t[i]=s,r[i]=l;let u=a,p=0;for(;u!==i;)p+=t[u++],u=u%n;if(i=(i+1)%n,i===a&&(a=(a+1)%n),l-o<e)return;const m=c&&l-c;return m?Math.round(p*1e3/m):void 0}}function qs(n,e){let t=0;const r=B8(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-t,l=r(s),c=a<=o;t=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-a)/l:void 0,event:i};u[e?"download":"upload"]=!0,n(u)}}const z8=typeof XMLHttpRequest<"u",D8=z8&&function(n){return new Promise(function(e,t){let r=n.data;const i=rt.from(n.headers).normalize();let{responseType:a,withXSRFToken:o}=n,s;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let c;if(H.isFormData(r)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[f,...v]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...v].join("; "))}}let u=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=e0(n.baseURL,n.url);u.open(n.method.toUpperCase(),Gu(p,n.params,n.paramsSerializer),!0),u.timeout=n.timeout;function m(){if(!u)return;const f=rt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:f,config:n,request:u};C8(function(g){e(g),l()},function(g){t(g),l()},v),u=null}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(t(new ve("Request aborted",ve.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new ve("Network Error",ve.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let f=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Yu;n.timeoutErrorMessage&&(f=n.timeoutErrorMessage),t(new ve(f,v.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,n,u)),u=null},mt.hasStandardBrowserEnv&&(o&&H.isFunction(o)&&(o=o(n)),o||o!==!1&&A8(p))){const f=n.xsrfHeaderName&&n.xsrfCookieName&&V8.read(n.xsrfCookieName);f&&i.set(n.xsrfHeaderName,f)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&H.forEach(i.toJSON(),function(f,v){u.setRequestHeader(v,f)}),H.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),a&&a!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",qs(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",qs(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=f=>{u&&(t(!f||f.type?new ur(null,n,u):f),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const h=T8(p);if(h&&mt.protocols.indexOf(h)===-1){t(new ve("Unsupported protocol "+h+":",ve.ERR_BAD_REQUEST,n));return}u.send(r||null)})},ha={http:a8,xhr:D8};H.forEach(ha,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ks=n=>`- ${n}`,O8=n=>H.isFunction(n)||n===null||n===!1,t0={getAdapter:n=>{n=H.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let a=0;a<e;a++){t=n[a];let o;if(r=t,!O8(t)&&(r=ha[(o=String(t)).toLowerCase()],r===void 0))throw new ve(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
62
+ */const rg=I({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ig=I({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ag=I({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),og=I({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),sg=I({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),su=I({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),lu=I({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),cu=I({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),lg=I({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),uu=I({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),cg=I({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),ug=I({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),dg=I({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),pg=I({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),hg=I({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),mg=I({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),fg=I({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("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)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),vg=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:rg,Fixed:ig,Fullscreen:ag,Invisible:og,LineHeight:sg,Maximize:su,Minimize:lu,Popup:cu,QrCodeLogin:lg,RawClose:uu,RawLock:cg,RawUnLock:ug,Rows:dg,Skin:pg,UnFixed:hg,UserLogin:mg,Visible:fg},Symbol.toStringTag,{value:"Module"}));function X(n,e){return Nt(I({name:n,render(){return _("i",{class:e})}}))}const gg=X("VtjIconWindowMax","vtj-icon-window-max"),yg=X("VtjIconWindowMin","vtj-icon-window-min"),bg=X("VtjIconWindowClose","vtj-icon-window-close"),wg=X("VtjIconWindowNormal","vtj-icon-window-normal"),xg=X("VtjIconWindowDown","vtj-icon-window-down"),_g=X("VtjIconWindowUp","vtj-icon-window-up"),Sg=X("VtjIconNpSave","vtj-icon-np-save"),kg=X("VtjIconNpFile","vtj-icon-np-file"),jg=X("VtjIconNpEdit","vtj-icon-np-edit"),Vg=X("VtjIconNpShare","vtj-icon-np-share"),Cg=X("VtjIconNpSearch","vtj-icon-np-search"),Eg=X("VtjIconNpExport","vtj-icon-np-export"),$g=X("VtjIconNpImport","vtj-icon-np-import"),Ag=X("VtjIconNpList","vtj-icon-np-list"),Tg=X("VtjIconNpPrint","vtj-icon-np-print"),Bg=X("VtjIconNpCancel","vtj-icon-np-cancel"),zg=X("VtjIconNpConfirm","vtj-icon-np-confirm"),Dg=X("VtjIconNpReset","vtj-icon-np-reset"),Og=X("VtjIconNpReturnAll","vtj-icon-np-return-all"),Ig=X("VtjIconNpReturn","vtj-icon-np-return"),Mg=X("VtjIconNpRemove","vtj-icon-np-remove"),Rg=X("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),Pg=X("VtjIconNpDelete","vtj-icon-np-delete"),Ng=X("VtjIconNpExit","vtj-icon-np-exit"),Fg=X("VtjIconNpRefresh","vtj-icon-np-refresh"),Hg=X("VtjIconNpAdd","vtj-icon-np-add"),Lg=X("VtjIconNpSelect","vtj-icon-np-select"),Ug=X("VtjIconNpAddRow","vtj-icon-np-add-row"),Wg=X("VtjIconNpExtend","vtj-icon-np-extend"),Jg=X("VtjIconNpClose","vtj-icon-np-close"),qg=X("VtjIconNpSubmit","vtj-icon-np-submit"),Kg=X("VtjIconDeps","vtj-icon-deps"),du=X("VtjIconBack","vtj-icon-back"),pu=X("VtjIconHome","vtj-icon-home"),hu=X("VtjIconApi","vtj-icon-api"),Gg=X("VtjIconExport","vtj-icon-export"),Yg=X("VtjIconImport","vtj-icon-import"),Xg=X("VtjIconGreater","vtj-icon-greater"),Qg=X("VtjIconSmaller","vtj-icon-smaller"),io=X("VtjIconCheck","vtj-icon-check"),mu=X("VtjIconSwitch","vtj-icon-switch"),ao=X("VtjIconCopy","vtj-icon-copy"),oo=X("VtjIconLock","vtj-icon-lock"),fu=X("VtjIconUnlock","vtj-icon-unlock"),so=X("VtjIconLayers","vtj-icon-layers"),Zg=X("VtjIconConsole","vtj-icon-console"),e6=X("VtjIconTeam","vtj-icon-team"),t6=X("VtjIconPublish","vtj-icon-publish"),vu=X("VtjIconPreview","vtj-icon-preview"),gu=X("VtjIconSave","vtj-icon-save"),yu=X("VtjIconPc","vtj-icon-pc"),bu=X("VtjIconPhone","vtj-icon-phone"),wu=X("VtjIconPad","vtj-icon-pad"),xu=X("VtjIconRedo","vtj-icon-redo"),_u=X("VtjIconRefresh","vtj-icon-refresh"),Su=X("VtjIconUndo","vtj-icon-undo"),ku=X("VtjIconCategory","vtj-icon-category"),n6=X("VtjIconProject","vtj-icon-project"),r6=X("VtjIconNotice","vtj-icon-notice"),i6=X("VtjIconFav","vtj-icon-fav"),a6=X("VtjIconBug","vtj-icon-bug"),o6=X("VtjIconFile","vtj-icon-file"),s6=X("VtjIconFolder","vtj-icon-folder"),l6=X("VtjIconUpload","vtj-icon-upload"),c6=X("VtjIconDownload","vtj-icon-download"),u6=X("VtjIconUser","vtj-icon-user"),lo=X("VtjIconSetting","vtj-icon-setting"),d6=X("VtjIconArrowRight","vtj-icon-arrow-right"),p6=X("VtjIconArrowLeft","vtj-icon-arrow-left"),ju=X("VtjIconArrowDown","vtj-icon-arrow-down"),Vu=X("VtjIconArrowUp","vtj-icon-arrow-up"),h6=X("VtjIconShare","vtj-icon-share"),m6=X("VtjIconData","vtj-icon-data"),f6=X("VtjIconTemplate","vtj-icon-template"),v6=X("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),g6=X("VtjIconFullscreen","vtj-icon-fullscreen"),co=X("VtjIconEdit","vtj-icon-edit"),sr=X("VtjIconRemove","vtj-icon-remove"),y6=X("VtjIconJs","vtj-icon-js"),b6=X("VtjIconDatabase","vtj-icon-database"),Cu=X("VtjIconInfo","vtj-icon-info"),uo=X("VtjIconPlus","vtj-icon-plus"),w6=X("VtjIconMinus","vtj-icon-minus"),po=X("VtjIconHelp","vtj-icon-help"),Eu=X("VtjIconVars","vtj-icon-vars"),$u=X("VtjIconOutline","vtj-icon-outline"),Au=X("VtjIconVisible","vtj-icon-visible"),ho=X("VtjIconInvisible","vtj-icon-invisible"),Tu=X("VtjIconDocument","vtj-icon-document"),Bu=X("VtjIconHistory","vtj-icon-history"),x6=X("VtjIconFixed","vtj-icon-fixed"),_6=X("VtjIconUnfixed","vtj-icon-unfixed"),zu=X("VtjIconSearch","vtj-icon-search"),S6=X("VtjIconMore","vtj-icon-more"),k6=X("VtjIconClose","vtj-icon-close"),Du=X("VtjIconComponents","vtj-icon-components"),Ou=X("VtjIconBlock","vtj-icon-block"),j6=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:hu,VtjIconArrowDown:ju,VtjIconArrowLeft:p6,VtjIconArrowRight:d6,VtjIconArrowUp:Vu,VtjIconBack:du,VtjIconBlock:Ou,VtjIconBug:a6,VtjIconCategory:ku,VtjIconCheck:io,VtjIconClose:k6,VtjIconComponents:Du,VtjIconConsole:Zg,VtjIconCopy:ao,VtjIconData:m6,VtjIconDatabase:b6,VtjIconDeps:Kg,VtjIconDocument:Tu,VtjIconDownload:c6,VtjIconEdit:co,VtjIconExitFullscreen:v6,VtjIconExport:Gg,VtjIconFav:i6,VtjIconFile:o6,VtjIconFixed:x6,VtjIconFolder:s6,VtjIconFullscreen:g6,VtjIconGreater:Xg,VtjIconHelp:po,VtjIconHistory:Bu,VtjIconHome:pu,VtjIconImport:Yg,VtjIconInfo:Cu,VtjIconInvisible:ho,VtjIconJs:y6,VtjIconLayers:so,VtjIconLock:oo,VtjIconMinus:w6,VtjIconMore:S6,VtjIconNotice:r6,VtjIconNpAdd:Hg,VtjIconNpAddRow:Ug,VtjIconNpCancel:Bg,VtjIconNpClose:Jg,VtjIconNpConfirm:zg,VtjIconNpDelete:Pg,VtjIconNpEdit:jg,VtjIconNpExit:Ng,VtjIconNpExport:Eg,VtjIconNpExtend:Wg,VtjIconNpFile:kg,VtjIconNpImport:$g,VtjIconNpList:Ag,VtjIconNpPrint:Tg,VtjIconNpRefresh:Fg,VtjIconNpRemove:Mg,VtjIconNpRemoveRow:Rg,VtjIconNpReset:Dg,VtjIconNpReturn:Ig,VtjIconNpReturnAll:Og,VtjIconNpSave:Sg,VtjIconNpSearch:Cg,VtjIconNpSelect:Lg,VtjIconNpShare:Vg,VtjIconNpSubmit:qg,VtjIconOutline:$u,VtjIconPad:wu,VtjIconPc:yu,VtjIconPhone:bu,VtjIconPlus:uo,VtjIconPreview:vu,VtjIconProject:n6,VtjIconPublish:t6,VtjIconRedo:xu,VtjIconRefresh:_u,VtjIconRemove:sr,VtjIconSave:gu,VtjIconSearch:zu,VtjIconSetting:lo,VtjIconShare:h6,VtjIconSmaller:Qg,VtjIconSwitch:mu,VtjIconTeam:e6,VtjIconTemplate:f6,VtjIconUndo:Su,VtjIconUnfixed:_6,VtjIconUnlock:fu,VtjIconUpload:l6,VtjIconUser:u6,VtjIconVars:Eu,VtjIconVisible:Au,VtjIconWindowClose:bg,VtjIconWindowDown:xg,VtjIconWindowMax:gg,VtjIconWindowMin:yg,VtjIconWindowNormal:wg,VtjIconWindowUp:_g},Symbol.toStringTag,{value:"Module"})),V6="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",C6="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",E6="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",$6="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",A6="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",T6="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",B6="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",z6="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",D6="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",Iu="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",O6="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",I6="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",M6="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",R6="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",P6="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",N6="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",F6="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",H6="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",L6="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",U6="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",W6="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",J6="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",q6="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",K6="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",G6="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",Y6="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",X6="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",Q6="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",Z6="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",e4="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",t4="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",n4="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",r4="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",i4="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",a4="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",o4="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",s4="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",l4="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",c4="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",u4="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",d4="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",p4="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",h4="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",m4="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",f4="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",v4="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",g4="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",y4="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",b4="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",w4="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",x4="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",_4="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",S4="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",k4="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",ua={...A2,...vg,...j6};(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 j4=n=>typeof n=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(j4));function Mu(n,e){return function(){return n.apply(e,arguments)}}const{toString:V4}=Object.prototype,{getPrototypeOf:mo}=Object,ii=(n=>e=>{const t=V4.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),bt=n=>(n=n.toLowerCase(),e=>ii(e)===n),ai=n=>e=>typeof e===n,{isArray:zn}=Array,rr=ai("undefined");function C4(n){return n!==null&&!rr(n)&&n.constructor!==null&&!rr(n.constructor)&&nt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ru=bt("ArrayBuffer");function E4(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Ru(n.buffer),e}const $4=ai("string"),nt=ai("function"),Pu=ai("number"),oi=n=>n!==null&&typeof n=="object",A4=n=>n===!0||n===!1,Mr=n=>{if(ii(n)!=="object")return!1;const e=mo(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},T4=bt("Date"),B4=bt("File"),z4=bt("Blob"),D4=bt("FileList"),O4=n=>oi(n)&&nt(n.pipe),I4=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||nt(n.append)&&((e=ii(n))==="formdata"||e==="object"&&nt(n.toString)&&n.toString()==="[object FormData]"))},M4=bt("URLSearchParams"),R4=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lr(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),zn(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),o=a.length;let s;for(r=0;r<o;r++)s=a[r],e.call(null,n[s],s,n)}}function Nu(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 Fu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hu=n=>!rr(n)&&n!==Fu;function da(){const{caseless:n}=Hu(this)&&this||{},e={},t=(r,i)=>{const a=n&&Nu(e,i)||i;Mr(e[a])&&Mr(r)?e[a]=da(e[a],r):Mr(r)?e[a]=da({},r):zn(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&lr(arguments[r],t);return e}const P4=(n,e,t,{allOwnKeys:r}={})=>(lr(e,(i,a)=>{t&&nt(i)?n[a]=Mu(i,t):n[a]=i},{allOwnKeys:r}),n),N4=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),F4=(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)},H4=(n,e,t,r)=>{let i,a,o;const s={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),a=i.length;a-- >0;)o=i[a],(!r||r(o,n,e))&&!s[o]&&(e[o]=n[o],s[o]=!0);n=t!==!1&&mo(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},L4=(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},U4=n=>{if(!n)return null;if(zn(n))return n;let e=n.length;if(!Pu(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},W4=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&mo(Uint8Array)),J4=(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])}},q4=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},K4=bt("HTMLFormElement"),G4=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Fs=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),Y4=bt("RegExp"),Lu=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};lr(t,(i,a)=>{let o;(o=e(i,a,n))!==!1&&(r[a]=o||i)}),Object.defineProperties(n,r)},X4=n=>{Lu(n,(e,t)=>{if(nt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(nt(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+"'")})}})},Q4=(n,e)=>{const t={},r=i=>{i.forEach(a=>{t[a]=!0})};return zn(n)?r(n):r(String(n).split(e)),t},Z4=()=>{},e8=(n,e)=>(n=+n,Number.isFinite(n)?n:e),Ci="abcdefghijklmnopqrstuvwxyz",Hs="0123456789",Uu={DIGIT:Hs,ALPHA:Ci,ALPHA_DIGIT:Ci+Ci.toUpperCase()+Hs},t8=(n=16,e=Uu.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function n8(n){return!!(n&&nt(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const r8=n=>{const e=new Array(10),t=(r,i)=>{if(oi(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=zn(r)?[]:{};return lr(r,(o,s)=>{const l=t(o,i+1);!rr(l)&&(a[s]=l)}),e[i]=void 0,a}}return r};return t(n,0)},i8=bt("AsyncFunction"),a8=n=>n&&(oi(n)||nt(n))&&nt(n.then)&&nt(n.catch),H={isArray:zn,isArrayBuffer:Ru,isBuffer:C4,isFormData:I4,isArrayBufferView:E4,isString:$4,isNumber:Pu,isBoolean:A4,isObject:oi,isPlainObject:Mr,isUndefined:rr,isDate:T4,isFile:B4,isBlob:z4,isRegExp:Y4,isFunction:nt,isStream:O4,isURLSearchParams:M4,isTypedArray:W4,isFileList:D4,forEach:lr,merge:da,extend:P4,trim:R4,stripBOM:N4,inherits:F4,toFlatObject:H4,kindOf:ii,kindOfTest:bt,endsWith:L4,toArray:U4,forEachEntry:J4,matchAll:q4,isHTMLForm:K4,hasOwnProperty:Fs,hasOwnProp:Fs,reduceDescriptors:Lu,freezeMethods:X4,toObjectSet:Q4,toCamelCase:G4,noop:Z4,toFiniteNumber:e8,findKey:Nu,global:Fu,isContextDefined:Hu,ALPHABET:Uu,generateString:t8,isSpecCompliantForm:n8,toJSONObject:r8,isAsyncFn:i8,isThenable:a8};function ve(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)}H.inherits(ve,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:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wu=ve.prototype,Ju={};["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=>{Ju[n]={value:n}});Object.defineProperties(ve,Ju);Object.defineProperty(Wu,"isAxiosError",{value:!0});ve.from=(n,e,t,r,i,a)=>{const o=Object.create(Wu);return H.toFlatObject(n,o,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),ve.call(o,n.message,e,t,r,i),o.cause=n,o.name=n.name,a&&Object.assign(o,a),o};const o8=null;function pa(n){return H.isPlainObject(n)||H.isArray(n)}function qu(n){return H.endsWith(n,"[]")?n.slice(0,-2):n}function Ls(n,e,t){return n?n.concat(e).map(function(r,i){return r=qu(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function s8(n){return H.isArray(n)&&!n.some(pa)}const l8=H.toFlatObject(H,{},null,function(n){return/^is[A-Z]/.test(n)});function si(n,e,t){if(!H.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,f){return!H.isUndefined(f[h])});const r=t.metaTokens,i=t.visitor||c,a=t.dots,o=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(H.isDate(h))return h.toISOString();if(!s&&H.isBlob(h))throw new ve("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(h)||H.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,f,v){let g=h;if(h&&!v&&typeof h=="object"){if(H.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(H.isArray(h)&&s8(h)||(H.isFileList(h)||H.endsWith(f,"[]"))&&(g=H.toArray(h)))return f=qu(f),g.forEach(function(k,b){!(H.isUndefined(k)||k===null)&&e.append(o===!0?Ls([f],b,a):o===null?f:f+"[]",l(k))}),!1}return pa(h)?!0:(e.append(Ls(v,f,a),l(h)),!1)}const u=[],p=Object.assign(l8,{defaultVisitor:c,convertValue:l,isVisitable:pa});function m(h,f){if(!H.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(h),H.forEach(h,function(v,g){(!(H.isUndefined(v)||v===null)&&i.call(e,v,H.isString(g)?g.trim():g,f,p))===!0&&m(v,f?f.concat(g):[g])}),u.pop()}}if(!H.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 fo(n,e){this._pairs=[],n&&si(n,this,e)}const Ku=fo.prototype;Ku.append=function(n,e){this._pairs.push([n,e])};Ku.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 c8(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gu(n,e,t){if(!e)return n;const r=t&&t.encode||c8,i=t&&t.serialize;let a;if(i?a=i(e,t):a=H.isURLSearchParams(e)?e.toString():new fo(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}let Ws=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){H.forEach(this.handlers,function(t){t!==null&&e(t)})}};const Yu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u8=typeof URLSearchParams<"u"?URLSearchParams:fo,d8=typeof FormData<"u"?FormData:null,p8=typeof Blob<"u"?Blob:null,h8={isBrowser:!0,classes:{URLSearchParams:u8,FormData:d8,Blob:p8},protocols:["http","https","file","blob","url","data"]},Xu=typeof window<"u"&&typeof document<"u",m8=(n=>Xu&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),f8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",v8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xu,hasStandardBrowserEnv:m8,hasStandardBrowserWebWorkerEnv:f8},Symbol.toStringTag,{value:"Module"})),mt={...v8,...h8};function g8(n,e){return si(n,new mt.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,a){return mt.isNode&&H.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function y8(n){return H.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function b8(n){const e={},t=Object.keys(n);let r;const i=t.length;let a;for(r=0;r<i;r++)a=t[r],e[a]=n[a];return e}function Qu(n){function e(t,r,i,a){let o=t[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=t.length;return o=!o&&H.isArray(i)?i.length:o,l?(H.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!H.isObject(i[o]))&&(i[o]=[]),e(t,r,i[o],a)&&H.isArray(i[o])&&(i[o]=b8(i[o])),!s)}if(H.isFormData(n)&&H.isFunction(n.entries)){const t={};return H.forEachEntry(n,(r,i)=>{e(y8(r),i,t,0)}),t}return null}function w8(n,e,t){if(H.isString(n))try{return(e||JSON.parse)(n),H.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(n)}const cr={transitional:Yu,adapter:["xhr","http"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,i=H.isObject(n);if(i&&H.isHTMLForm(n)&&(n=new FormData(n)),H.isFormData(n))return r?JSON.stringify(Qu(n)):n;if(H.isArrayBuffer(n)||H.isBuffer(n)||H.isStream(n)||H.isFile(n)||H.isBlob(n))return n;if(H.isArrayBufferView(n))return n.buffer;if(H.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let a;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return g8(n,this.formSerializer).toString();if((a=H.isFileList(n))||t.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return si(a?{"files[]":n}:n,o&&new o,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),w8(n)):n}],transformResponse:[function(n){const e=this.transitional||cr.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(n&&H.isString(n)&&(t&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(a){if(i)throw a.name==="SyntaxError"?ve.from(a,ve.ERR_BAD_RESPONSE,this,null,this.response):a}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],n=>{cr.headers[n]={}});const x8=H.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"]),_8=n=>{const e={};let t,r,i;return n&&n.split(`
63
+ `).forEach(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!t||e[t]&&x8[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Js=Symbol("internals");function Pn(n){return n&&String(n).trim().toLowerCase()}function Rr(n){return n===!1||n==null?n:H.isArray(n)?n.map(Rr):String(n)}function S8(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 k8=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Ei(n,e,t,r,i){if(H.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!H.isString(e)){if(H.isString(r))return e.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(e)}}function j8(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function V8(n,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}let rt=class{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function a(s,l,c){const u=Pn(l);if(!u)throw new Error("header name must be a non-empty string");const p=H.findKey(i,u);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||l]=Rr(s))}const o=(s,l)=>H.forEach(s,(c,u)=>a(c,u,l));return H.isPlainObject(e)||e instanceof this.constructor?o(e,t):H.isString(e)&&(e=e.trim())&&!k8(e)?o(_8(e),t):e!=null&&a(t,e,r),this}get(e,t){if(e=Pn(e),e){const r=H.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return S8(i);if(H.isFunction(t))return t.call(this,i,r);if(H.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pn(e),e){const r=H.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Ei(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function a(o){if(o=Pn(o),o){const s=H.findKey(r,o);s&&(!t||Ei(r,r[s],s,t))&&(delete r[s],i=!0)}}return H.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const a=t[r];(!e||Ei(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const t=this,r={};return H.forEach(this,(i,a)=>{const o=H.findKey(r,a);if(o){t[o]=Rr(i),delete t[a];return}const s=e?j8(a):String(a).trim();s!==a&&delete t[a],t[s]=Rr(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&H.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(`
64
+ `)}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[Js]=this[Js]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Pn(a);t[o]||(V8(r,a),t[o]=!0)}return H.isArray(e)?e.forEach(i):i(e),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(rt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});H.freezeMethods(rt);function $i(n,e){const t=this||cr,r=e||t,i=rt.from(r.headers);let a=r.data;return H.forEach(n,function(o){a=o.call(t,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function Zu(n){return!!(n&&n.__CANCEL__)}function ur(n,e,t){ve.call(this,n??"canceled",ve.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(ur,ve,{__CANCEL__:!0});function C8(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new ve("Request failed with status code "+t.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const E8=mt.hasStandardBrowserEnv?{write(n,e,t,r,i,a){const o=[n+"="+encodeURIComponent(e)];H.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),H.isString(r)&&o.push("path="+r),H.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.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 $8(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function A8(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function e0(n,e){return n&&!$8(e)?A8(n,e):e}const T8=mt.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let t;function r(i){let a=i;return n&&(e.setAttribute("href",a),a=e.href),e.setAttribute("href",a),{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 a=H.isString(i)?r(i):i;return a.protocol===t.protocol&&a.host===t.host}}():function(){return function(){return!0}}();function B8(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function z8(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),t[i]=s,r[i]=l;let u=a,p=0;for(;u!==i;)p+=t[u++],u=u%n;if(i=(i+1)%n,i===a&&(a=(a+1)%n),l-o<e)return;const m=c&&l-c;return m?Math.round(p*1e3/m):void 0}}function qs(n,e){let t=0;const r=z8(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-t,l=r(s),c=a<=o;t=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-a)/l:void 0,event:i};u[e?"download":"upload"]=!0,n(u)}}const D8=typeof XMLHttpRequest<"u",O8=D8&&function(n){return new Promise(function(e,t){let r=n.data;const i=rt.from(n.headers).normalize();let{responseType:a,withXSRFToken:o}=n,s;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let c;if(H.isFormData(r)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[f,...v]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...v].join("; "))}}let u=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=e0(n.baseURL,n.url);u.open(n.method.toUpperCase(),Gu(p,n.params,n.paramsSerializer),!0),u.timeout=n.timeout;function m(){if(!u)return;const f=rt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:f,config:n,request:u};C8(function(g){e(g),l()},function(g){t(g),l()},v),u=null}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(t(new ve("Request aborted",ve.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new ve("Network Error",ve.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let f=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Yu;n.timeoutErrorMessage&&(f=n.timeoutErrorMessage),t(new ve(f,v.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,n,u)),u=null},mt.hasStandardBrowserEnv&&(o&&H.isFunction(o)&&(o=o(n)),o||o!==!1&&T8(p))){const f=n.xsrfHeaderName&&n.xsrfCookieName&&E8.read(n.xsrfCookieName);f&&i.set(n.xsrfHeaderName,f)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&H.forEach(i.toJSON(),function(f,v){u.setRequestHeader(v,f)}),H.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),a&&a!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",qs(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",qs(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=f=>{u&&(t(!f||f.type?new ur(null,n,u):f),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const h=B8(p);if(h&&mt.protocols.indexOf(h)===-1){t(new ve("Unsupported protocol "+h+":",ve.ERR_BAD_REQUEST,n));return}u.send(r||null)})},ha={http:o8,xhr:O8};H.forEach(ha,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ks=n=>`- ${n}`,I8=n=>H.isFunction(n)||n===null||n===!1,t0={getAdapter:n=>{n=H.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let a=0;a<e;a++){t=n[a];let o;if(r=t,!I8(t)&&(r=ha[(o=String(t)).toLowerCase()],r===void 0))throw new ve(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
65
65
  `+a.map(Ks).join(`
66
- `):" "+Ks(a[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ha};function Ai(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ur(null,n)}function Gs(n){return Ai(n),n.headers=rt.from(n.headers),n.data=Ei.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),t0.getAdapter(n.adapter||cr.adapter)(n).then(function(e){return Ai(n),e.data=Ei.call(n,n.transformResponse,e),e.headers=rt.from(e.headers),e},function(e){return Zu(e)||(Ai(n),e&&e.response&&(e.response.data=Ei.call(n,n.transformResponse,e.response),e.response.headers=rt.from(e.response.headers))),Promise.reject(e)})}const Ys=n=>n instanceof rt?{...n}:n;function kn(n,e){e=e||{};const t={};function r(c,u,p){return H.isPlainObject(c)&&H.isPlainObject(u)?H.merge.call({caseless:p},c,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function i(c,u,p){if(H.isUndefined(u)){if(!H.isUndefined(c))return r(void 0,c,p)}else return r(c,u,p)}function a(c,u){if(!H.isUndefined(u))return r(void 0,u)}function o(c,u){if(H.isUndefined(u)){if(!H.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,p){if(p in e)return r(c,u);if(p in n)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(Ys(c),Ys(u),!0)};return H.forEach(Object.keys(Object.assign({},n,e)),function(c){const u=l[c]||i,p=u(n[c],e[c],c);H.isUndefined(p)&&u!==s||(t[c]=p)}),t}const n0="1.6.8",vo={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{vo[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Xs={};vo.transitional=function(n,e,t){function r(i,a){return"[Axios v"+n0+"] Transitional option '"+i+"'"+a+(t?". "+t:"")}return(i,a,o)=>{if(n===!1)throw new ve(r(a," has been removed"+(e?" in "+e:"")),ve.ERR_DEPRECATED);return e&&!Xs[a]&&(Xs[a]=!0,console.warn(r(a," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(i,a,o):!0}};function I8(n,e,t){if(typeof n!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=n[a],l=s===void 0||o(s,a,n);if(l!==!0)throw new ve("option "+a+" must be "+l,ve.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ve("Unknown option "+a,ve.ERR_BAD_OPTION)}}const ma={assertOptions:I8,validators:vo},Tt=ma.validators;class Xt{constructor(e){this.defaults=e,this.interceptors={request:new Ws,response:new Ws}}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 a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
67
- `+a):r.stack=a}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=kn(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&ma.assertOptions(r,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),i!=null&&(H.isFunction(i)?t.paramsSerializer={serialize:i}:ma.assertOptions(i,{encode:Tt.function,serialize:Tt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&H.merge(a.common,a[t.method]);a&&H.forEach(["delete","get","head","post","put","patch","common"],f=>{delete a[f]}),t.headers=rt.concat(o,a);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 c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,p=0,m;if(!l){const f=[Gs.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),m=f.length,u=Promise.resolve(t);p<m;)u=u.then(f[p++],f[p++]);return u}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{u=Gs.call(this,h)}catch(f){return Promise.reject(f)}for(p=0,m=c.length;p<m;)u=u.then(c[p++],c[p++]);return u}getUri(e){e=kn(this.defaults,e);const t=e0(e.baseURL,e.url);return Gu(t,e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(n){Xt.prototype[n]=function(e,t){return this.request(kn(t||{},{method:n,url:e,data:(t||{}).data}))}});H.forEach(["post","put","patch"],function(n){function e(t){return function(r,i,a){return this.request(kn(a||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Xt.prototype[n]=e(),Xt.prototype[n+"Form"]=e(!0)});let R8=class r0{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 a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(i,a,o){r.reason||(r.reason=new ur(i,a,o),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 r0(function(t){e=t}),cancel:e}}};function M8(n){return function(e){return n.apply(null,e)}}function P8(n){return H.isObject(n)&&n.isAxiosError===!0}const fa={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(fa).forEach(([n,e])=>{fa[e]=n});function i0(n){const e=new Xt(n),t=Ru(Xt.prototype.request,e);return H.extend(t,Xt.prototype,e,{allOwnKeys:!0}),H.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return i0(kn(n,r))},t}const Ee=i0(cr);Ee.Axios=Xt;Ee.CanceledError=ur;Ee.CancelToken=R8;Ee.isCancel=Zu;Ee.VERSION=n0;Ee.toFormData=si;Ee.AxiosError=ve;Ee.Cancel=Ee.CanceledError;Ee.all=function(n){return Promise.all(n)};Ee.spread=M8;Ee.isAxiosError=P8;Ee.mergeConfig=kn;Ee.AxiosHeaders=rt;Ee.formToJSON=n=>Qu(H.isHTMLForm(n)?new FormData(n):n);Ee.getAdapter=t0.getAdapter;Ee.HttpStatusCode=fa;Ee.default=Ee;const N8={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},F8=["put","post","patch"],Qs="Local-Request-Id",H8=200,L8=500;let a0=class{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(e={}){this.settings=e.settings||{};const t=ki(e,["settings"]);this.axios=Ee.create(ht({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Ec(this.openLoading.bind(this),H8),this.showError=e3(this._showError.bind(this),L8,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ht(this.settings,e.settings||{});const t=ki(e,["settings"]);this.axios.defaults=ht(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||{}:{},a={"Content-Type":N8[t.type||"form"],...r.headers,...i};return t.skipWarn&&(a[Qs]=e),a}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,a])=>{r.append(i,a)}),r}createSendData(e,t,r,i){const{type:a,skipWarn:o}=e,{name:s="skipWarn"}=o||{};let{data:l,params:c,method:u="get"}=t;const p=i?{[s]:!0}:{};return F8.includes(u.toLowerCase())?(l=Object.assign(l||{},p),l=a!=="json"||!this.isJsonType(r)?this.toFormData(l,a):l):c={...l,...c,...p},{data:l,params:c}}createUrl(e){let{url:t,query:r}=e;if(t){r&&(t=Dc(t)(r));try{return L3(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 a=t?.message||t?.msg||"未知错误";i(a,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=ht({},this.settings,e.settings||{}),i=ki(e,["settings"]),a=R3(!1),o=Ee.CancelToken.source();this.records[a]={settings:r,config:i,source:o};const s=this.createUrl(i),l=this.createHeaders(a,r,i),{data:c,params:u}=this.createSendData(r,i,l,t);return this.showLoading(r),new Promise((p,m)=>{this.axios({cancelToken:o.token,...i,url:s,headers:l,data:c,params:u}).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[a],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:a}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Qs],l=this.records[s];if(!l)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if(c?.code===t){i&&i(o);const u=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));u.catch(p=>p).finally(()=>{a&&a()}),o.promise=u}return o})}};function o0(n={}){const e=new a0(n),t=e.send.bind(e),r=e.cancel.bind(e),i=e.setConfig.bind(e),a=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(t,{...e,instance:e,send:t,cancel:r,setConfig:i,useRequest:a,useResponse:o})}o0({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});const va=typeof window<"u",U8=n=>new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=i=>{t(i)}});function W8(n){const e={};return n?(n.forEach((t,r)=>{e[r]=typeof t=="string"?decodeURIComponent(t):t}),e):{}}let s0=class{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(e={}){this.types={local:va?window.localStorage:this.caches,session:va?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:a,prefix:o}={...this.options,...r},s=Date.now(),l=o+e,c=this.types[i]||this.caches,u={value:t,timestamp:s,expired:a};c===this.caches?c[l]=u:c.setItem(l,JSON.stringify(u))}get(e,t={}){const{type:r,prefix:i}={...this.options,...t},a=i+e,o=this.types[r]||this.caches;let s;if(o===this.caches)s=o[a];else{const p=o.getItem(a);p&&(s=JSON.parse(p))}if(!s)return null;const{value:l,timestamp:c,expired:u}=s;return u>0&&c+u<Date.now()?(this.remove(e,t),null):l}remove(e,t={}){const{type:r,prefix:i}={...this.options,...t},a=this.types[r]||this.caches,o=i+e;a===this.caches?delete a[o]:a.removeItem(o)}clear(e={}){const{type:t}={...this.options,...e},r=this.types[t]||this.caches;r===this.caches?this.caches={}:r.clear()}};new s0;var J8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ga={exports:{}};(function(n,e){(function(t,r){r(e,n)})(J8,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function a(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch{window[c]=void 0}}function s(c){var u=document.getElementById(c);u&&document.getElementsByTagName("head")[0].removeChild(u)}function l(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=c,m=u.timeout||i.timeout,h=u.jsonpCallback||i.jsonpCallback,f=void 0;return new Promise(function(v,g){var k=u.jsonpCallbackFunction||a(),b=h+"_"+k;window[k]=function(S){v({ok:!0,json:function(){return Promise.resolve(S)}}),f&&clearTimeout(f),s(b),o(k)},p+=p.indexOf("?")===-1?"?":"&";var x=document.createElement("script");x.setAttribute("src",""+p+h+"="+k),u.charset&&x.setAttribute("charset",u.charset),u.nonce&&x.setAttribute("nonce",u.nonce),u.referrerPolicy&&x.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&x.setAttribute("crossorigin","true"),x.id=b,document.getElementsByTagName("head")[0].appendChild(x),f=setTimeout(function(){g(new Error("JSONP request to "+c+" timed out")),o(k),s(b),window[k]=function(){o(k)}},m),x.onerror=function(){g(new Error("JSONP request to "+c+" failed")),o(k),s(b),f&&clearTimeout(f)}})}r.exports=l})})(ga,ga.exports);var q8=ga.exports;const K8=l0(q8);function G8(n){if(va){const{protocol:e,host:t,pathname:r}=location;return`${e}//${t}${n?r:""}`}else return null}function Y8(n=""){const e=n.match(Uc);return e?e[0]:""}function c0(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 ya(n,e,t){const r={};n=(n||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const a=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=a.exec(n))!==null;)i[1]!==n&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function u0(n,e){e=typeof e=="string"?ya(e):e;const t=n.split("?")[0],r=ya(n),i=Object.assign({},r,e),a=c0(i);return a?[t,a].join("?"):n}const bn=Object.freeze(Object.defineProperty({__proto__:null,append:u0,getCurrentHost:G8,getHost:Y8,parse:ya,stringify:c0},Symbol.toStringTag,{value:"Module"}));async function X8(n,e={}){const{query:t={}}=e;n.includes("${")&&(n=Dc(n)(t||{}));const r=u0(n,t);return await(await K8(r,e)).json()}var Q8=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&&Z8(i,e.attrs),e.text&&(i.text=""+e.text);var a="onload"in i?Zs:e5;a(i,t),i.onload||Zs(i,t),r.appendChild(i)};function Z8(n,e){for(var t in e)n.setAttribute(t,e[t])}function Zs(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 e5(n,e){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,n))}}const t5=l0(Q8);function el(n,e={}){return new Promise((t,r)=>{const{library:i}=e;t5(n,e,(a,o)=>{a?r(a):t(i?window[i]:void 0)})})}const tl={debug:-1,log:0,info:0,warn:1,error:2},n5=function(n,e,t,r){return function(...i){if(e&&tl[e]<=tl[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,r5(i,t))}};function r5(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]=`[${e}] ${n[0]}`:n=["["+e+"]"].concat(n)),n}function i5(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 a5={level:"warn",bizName:"*"};let o5=class{config;options;constructor(e){this.options={...a5,...e};const t=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=i5(r,e)}_log(e){const{targetLevel:t,targetBizName:r}=this.config,{bizName:i}=this.options;return n5(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 s5(n){return new o5(n)}const Ye=s5({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function kr(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 l5={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 ba(n,e){function t(i,a,o){if(!(typeof document>"u")){o=kr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+n.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(o[u]=n.read(c,u),i===u)break}catch{}}return i?o[i]:o}}return Object.create({set:t,get:r,remove:function(i,a){t(i,"",kr({},a,{expires:-1}))},withAttributes:function(i){return ba(this.converter,kr({},this.attributes,i))},withConverter:function(i){return ba(kr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}ba(l5,{path:"/"});function nl(n,e=""){const t=document.createElement("a");t.download=e,t.href=n,t.target="_blank",t.click()}function c5(n,e=""){const t=new Blob([n]),r=document.createElement("a");r.download=e,r.style.display="none",r.href=URL.createObjectURL(t),r.click(),URL.revokeObjectURL(r.href)}async function u5(n,e=""){return fetch(n).then(async t=>{const r=await t.blob();return c5(r,e),r})}/**!
66
+ `):" "+Ks(a[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ha};function Ai(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ur(null,n)}function Gs(n){return Ai(n),n.headers=rt.from(n.headers),n.data=$i.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),t0.getAdapter(n.adapter||cr.adapter)(n).then(function(e){return Ai(n),e.data=$i.call(n,n.transformResponse,e),e.headers=rt.from(e.headers),e},function(e){return Zu(e)||(Ai(n),e&&e.response&&(e.response.data=$i.call(n,n.transformResponse,e.response),e.response.headers=rt.from(e.response.headers))),Promise.reject(e)})}const Ys=n=>n instanceof rt?{...n}:n;function kn(n,e){e=e||{};const t={};function r(c,u,p){return H.isPlainObject(c)&&H.isPlainObject(u)?H.merge.call({caseless:p},c,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function i(c,u,p){if(H.isUndefined(u)){if(!H.isUndefined(c))return r(void 0,c,p)}else return r(c,u,p)}function a(c,u){if(!H.isUndefined(u))return r(void 0,u)}function o(c,u){if(H.isUndefined(u)){if(!H.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,p){if(p in e)return r(c,u);if(p in n)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(Ys(c),Ys(u),!0)};return H.forEach(Object.keys(Object.assign({},n,e)),function(c){const u=l[c]||i,p=u(n[c],e[c],c);H.isUndefined(p)&&u!==s||(t[c]=p)}),t}const n0="1.6.8",vo={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{vo[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Xs={};vo.transitional=function(n,e,t){function r(i,a){return"[Axios v"+n0+"] Transitional option '"+i+"'"+a+(t?". "+t:"")}return(i,a,o)=>{if(n===!1)throw new ve(r(a," has been removed"+(e?" in "+e:"")),ve.ERR_DEPRECATED);return e&&!Xs[a]&&(Xs[a]=!0,console.warn(r(a," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(i,a,o):!0}};function M8(n,e,t){if(typeof n!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=n[a],l=s===void 0||o(s,a,n);if(l!==!0)throw new ve("option "+a+" must be "+l,ve.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ve("Unknown option "+a,ve.ERR_BAD_OPTION)}}const ma={assertOptions:M8,validators:vo},Tt=ma.validators;class Qt{constructor(e){this.defaults=e,this.interceptors={request:new Ws,response:new Ws}}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 a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
67
+ `+a):r.stack=a}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=kn(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&ma.assertOptions(r,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),i!=null&&(H.isFunction(i)?t.paramsSerializer={serialize:i}:ma.assertOptions(i,{encode:Tt.function,serialize:Tt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&H.merge(a.common,a[t.method]);a&&H.forEach(["delete","get","head","post","put","patch","common"],f=>{delete a[f]}),t.headers=rt.concat(o,a);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 c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,p=0,m;if(!l){const f=[Gs.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),m=f.length,u=Promise.resolve(t);p<m;)u=u.then(f[p++],f[p++]);return u}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{u=Gs.call(this,h)}catch(f){return Promise.reject(f)}for(p=0,m=c.length;p<m;)u=u.then(c[p++],c[p++]);return u}getUri(e){e=kn(this.defaults,e);const t=e0(e.baseURL,e.url);return Gu(t,e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(n){Qt.prototype[n]=function(e,t){return this.request(kn(t||{},{method:n,url:e,data:(t||{}).data}))}});H.forEach(["post","put","patch"],function(n){function e(t){return function(r,i,a){return this.request(kn(a||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}Qt.prototype[n]=e(),Qt.prototype[n+"Form"]=e(!0)});let R8=class r0{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 a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(i,a,o){r.reason||(r.reason=new ur(i,a,o),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 r0(function(t){e=t}),cancel:e}}};function P8(n){return function(e){return n.apply(null,e)}}function N8(n){return H.isObject(n)&&n.isAxiosError===!0}const fa={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(fa).forEach(([n,e])=>{fa[e]=n});function i0(n){const e=new Qt(n),t=Mu(Qt.prototype.request,e);return H.extend(t,Qt.prototype,e,{allOwnKeys:!0}),H.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return i0(kn(n,r))},t}const $e=i0(cr);$e.Axios=Qt;$e.CanceledError=ur;$e.CancelToken=R8;$e.isCancel=Zu;$e.VERSION=n0;$e.toFormData=si;$e.AxiosError=ve;$e.Cancel=$e.CanceledError;$e.all=function(n){return Promise.all(n)};$e.spread=P8;$e.isAxiosError=N8;$e.mergeConfig=kn;$e.AxiosHeaders=rt;$e.formToJSON=n=>Qu(H.isHTMLForm(n)?new FormData(n):n);$e.getAdapter=t0.getAdapter;$e.HttpStatusCode=fa;$e.default=$e;const F8={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},H8=["put","post","patch"],Qs="Local-Request-Id",L8=200,U8=500;let a0=class{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(e={}){this.settings=e.settings||{};const t=ki(e,["settings"]);this.axios=$e.create(ht({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=$c(this.openLoading.bind(this),L8),this.showError=t3(this._showError.bind(this),U8,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ht(this.settings,e.settings||{});const t=ki(e,["settings"]);this.axios.defaults=ht(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||{}:{},a={"Content-Type":F8[t.type||"form"],...r.headers,...i};return t.skipWarn&&(a[Qs]=e),a}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,a])=>{r.append(i,a)}),r}createSendData(e,t,r,i){const{type:a,skipWarn:o}=e,{name:s="skipWarn"}=o||{};let{data:l,params:c,method:u="get"}=t;const p=i?{[s]:!0}:{};return H8.includes(u.toLowerCase())?(l=Object.assign(l||{},p),l=a!=="json"||!this.isJsonType(r)?this.toFormData(l,a):l):c={...l,...c,...p},{data:l,params:c}}createUrl(e){let{url:t,query:r}=e;if(t){r&&(t=Dc(t)(r));try{return U3(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 a=t?.message||t?.msg||"未知错误";i(a,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=ht({},this.settings,e.settings||{}),i=ki(e,["settings"]),a=R3(!1),o=$e.CancelToken.source();this.records[a]={settings:r,config:i,source:o};const s=this.createUrl(i),l=this.createHeaders(a,r,i),{data:c,params:u}=this.createSendData(r,i,l,t);return this.showLoading(r),new Promise((p,m)=>{this.axios({cancelToken:o.token,...i,url:s,headers:l,data:c,params:u}).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[a],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:a}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Qs],l=this.records[s];if(!l)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if(c?.code===t){i&&i(o);const u=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));u.catch(p=>p).finally(()=>{a&&a()}),o.promise=u}return o})}};function o0(n={}){const e=new a0(n),t=e.send.bind(e),r=e.cancel.bind(e),i=e.setConfig.bind(e),a=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(t,{...e,instance:e,send:t,cancel:r,setConfig:i,useRequest:a,useResponse:o})}o0({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});const va=typeof window<"u",W8=n=>new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=i=>{t(i)}});function J8(n){const e={};return n?(n.forEach((t,r)=>{e[r]=typeof t=="string"?decodeURIComponent(t):t}),e):{}}let s0=class{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(e={}){this.types={local:va?window.localStorage:this.caches,session:va?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:a,prefix:o}={...this.options,...r},s=Date.now(),l=o+e,c=this.types[i]||this.caches,u={value:t,timestamp:s,expired:a};c===this.caches?c[l]=u:c.setItem(l,JSON.stringify(u))}get(e,t={}){const{type:r,prefix:i}={...this.options,...t},a=i+e,o=this.types[r]||this.caches;let s;if(o===this.caches)s=o[a];else{const p=o.getItem(a);p&&(s=JSON.parse(p))}if(!s)return null;const{value:l,timestamp:c,expired:u}=s;return u>0&&c+u<Date.now()?(this.remove(e,t),null):l}remove(e,t={}){const{type:r,prefix:i}={...this.options,...t},a=this.types[r]||this.caches,o=i+e;a===this.caches?delete a[o]:a.removeItem(o)}clear(e={}){const{type:t}={...this.options,...e},r=this.types[t]||this.caches;r===this.caches?this.caches={}:r.clear()}};new s0;var q8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ga={exports:{}};(function(n,e){(function(t,r){r(e,n)})(q8,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function a(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch{window[c]=void 0}}function s(c){var u=document.getElementById(c);u&&document.getElementsByTagName("head")[0].removeChild(u)}function l(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=c,m=u.timeout||i.timeout,h=u.jsonpCallback||i.jsonpCallback,f=void 0;return new Promise(function(v,g){var k=u.jsonpCallbackFunction||a(),b=h+"_"+k;window[k]=function(S){v({ok:!0,json:function(){return Promise.resolve(S)}}),f&&clearTimeout(f),s(b),o(k)},p+=p.indexOf("?")===-1?"?":"&";var w=document.createElement("script");w.setAttribute("src",""+p+h+"="+k),u.charset&&w.setAttribute("charset",u.charset),u.nonce&&w.setAttribute("nonce",u.nonce),u.referrerPolicy&&w.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&w.setAttribute("crossorigin","true"),w.id=b,document.getElementsByTagName("head")[0].appendChild(w),f=setTimeout(function(){g(new Error("JSONP request to "+c+" timed out")),o(k),s(b),window[k]=function(){o(k)}},m),w.onerror=function(){g(new Error("JSONP request to "+c+" failed")),o(k),s(b),f&&clearTimeout(f)}})}r.exports=l})})(ga,ga.exports);var K8=ga.exports;const G8=l0(K8);function Y8(n){if(va){const{protocol:e,host:t,pathname:r}=location;return`${e}//${t}${n?r:""}`}else return null}function X8(n=""){const e=n.match(Uc);return e?e[0]:""}function c0(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 ya(n,e,t){const r={};n=(n||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const a=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=a.exec(n))!==null;)i[1]!==n&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function u0(n,e){e=typeof e=="string"?ya(e):e;const t=n.split("?")[0],r=ya(n),i=Object.assign({},r,e),a=c0(i);return a?[t,a].join("?"):n}const bn=Object.freeze(Object.defineProperty({__proto__:null,append:u0,getCurrentHost:Y8,getHost:X8,parse:ya,stringify:c0},Symbol.toStringTag,{value:"Module"}));async function Q8(n,e={}){const{query:t={}}=e;n.includes("${")&&(n=Dc(n)(t||{}));const r=u0(n,t);return await(await G8(r,e)).json()}var Z8=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&&e5(i,e.attrs),e.text&&(i.text=""+e.text);var a="onload"in i?Zs:t5;a(i,t),i.onload||Zs(i,t),r.appendChild(i)};function e5(n,e){for(var t in e)n.setAttribute(t,e[t])}function Zs(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 t5(n,e){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,n))}}const n5=l0(Z8);function el(n,e={}){return new Promise((t,r)=>{const{library:i}=e;n5(n,e,(a,o)=>{a?r(a):t(i?window[i]:void 0)})})}const tl={debug:-1,log:0,info:0,warn:1,error:2},r5=function(n,e,t,r){return function(...i){if(e&&tl[e]<=tl[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,i5(i,t))}};function i5(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]=`[${e}] ${n[0]}`:n=["["+e+"]"].concat(n)),n}function a5(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 o5={level:"warn",bizName:"*"};let s5=class{config;options;constructor(e){this.options={...o5,...e};const t=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=a5(r,e)}_log(e){const{targetLevel:t,targetBizName:r}=this.config,{bizName:i}=this.options;return r5(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 l5(n){return new s5(n)}const Ye=l5({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function kr(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 c5={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 ba(n,e){function t(i,a,o){if(!(typeof document>"u")){o=kr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+n.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(o[u]=n.read(c,u),i===u)break}catch{}}return i?o[i]:o}}return Object.create({set:t,get:r,remove:function(i,a){t(i,"",kr({},a,{expires:-1}))},withAttributes:function(i){return ba(this.converter,kr({},this.attributes,i))},withConverter:function(i){return ba(kr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}ba(c5,{path:"/"});function nl(n,e=""){const t=document.createElement("a");t.download=e,t.href=n,t.target="_blank",t.click()}function u5(n,e=""){const t=new Blob([n]),r=document.createElement("a");r.download=e,r.style.display="none",r.href=URL.createObjectURL(t),r.click(),URL.revokeObjectURL(r.href)}async function d5(n,e=""){return fetch(n).then(async t=>{const r=await t.blob();return u5(r,e),r})}/**!
68
68
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
69
69
  * @name @vtj/ui
70
70
  * @author CHC chenhuachun1549@dingtalk.com
71
- * @version 0.8.2
71
+ * @version 0.8.3
72
72
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
73
- */const d5={default:14,small:12,large:18},p5={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 ir(n){return typeof n=="string"?n:`${n}px`}function jr(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 h5=Symbol("ADAPTER_KEY");function m5(){return Mt(h5,{})}const f5=["src"],at=I({name:"XIcon",__name:"Icon",props:p5,setup(n){const e=n,t=Aa(),r=or(),i=z(()=>{if(!e.icon)return null;const l=r?.appContext.app;return typeof e.icon=="object"?Pt(e.icon):l?.component(e.icon)||e.icon}),a=z(()=>{const l={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(l[e.icon]=!0),l}),o=z(()=>({"background-color":e.background,"border-radius":e.radius?ir(e.radius):void 0,padding:e.padding?ir(e.padding):void 0})),s=z(()=>typeof e.size=="number"?e.size:d5[e.size]??void 0);return(l,c)=>(y(),C(d(Fn),{class:ce(["x-icon",a.value]),color:e.color,size:s.value,style:Rt(o.value)},{default:j(()=>[de(l.$slots,"default",{},()=>[i.value?(y(),C(Ke(i.value),{key:0})):R("",!0),e.src?(y(),M("img",{key:1,src:e.src},null,8,f5)):R("",!0)])]),_:3},8,["class","color","size","style"]))}}),d0={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 v5(n){return z(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function g5(n){return z(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function y5(n){return z(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function b5(n){const e=or();return z(()=>{const t=d(n);if(t)if(typeof t=="string"||t.setup||t.render||r2(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function go(n){const e=b5(n);return e.value?Pt(I({render:()=>Re(at,e.value)})):void 0}function yo(n,e){return z(()=>{const t=d(n);return typeof t=="function"?t(e):!!t})}const w5={key:0},x5=I({__name:"Trigger",props:d0,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=go(Nr(t,"icon")),a=yo(Nr(t,"disabled")),o=z(()=>({[`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(),!a.value)return r("click"),!1};return(l,c)=>t.mode==="button"?(y(),C(d(xe),me({key:0,icon:d(i),type:t.type,size:t.size,disabled:d(a)},t.button,{onClick:s}),{default:j(()=>[le(te(l.label),1)]),_:1},16,["icon","type","size","disabled"])):(y(),M("div",{key:1,class:ce(["x-action__inner",o.value]),onClick:s},[(y(),C(Ke(d(i)))),l.label?(y(),M("span",w5,te(l.label),1)):R("",!0)],2))}}),Be=I({name:"XAction",__name:"Action",props:d0,emits:["click","command"],setup(n,{emit:e}){const t=n,r=t2(),i=e,a=v5(t),o=g5(t),s=y5(t),l=yo(Nr(t,"disabled")),c=z(()=>({[`x-action--${t.mode}`]:!!t.mode})),u=()=>{l.value||i("click",fn(t))},p=g=>{if(l.value)return;const k=t.menus?.find(b=>b.command===g);k&&i("command",fn(k))},m=g=>Re(u2,o.value,()=>[].concat(g)),h=g=>Re(Oa,{...s.value,disabled:l.value,onCommand:p},{default:()=>[g],dropdown:()=>[Re(Da,()=>(t.menus||[]).map((k,b)=>Re(Fr,k,()=>r.item?r.item({item:k,index:b}):k.label)))]}),f=g=>Re(Gr,{...a.value,disabled:l.value},()=>[g]),v=z(()=>{let g=Re(Pt(x5),{...t,onClick:u});const k=r.default?.();return k&&k.length&&(g=k[0]),o.value&&(g=m(g)),s.value&&(g=h(g)),a.value&&(g=f(g)),g});return(g,k)=>(y(),M("div",{class:ce(["x-action",c.value])},[(y(),C(Ke(v.value)))],2))}}),_5={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}},S5=I({name:"XActionBar",__name:"ActionBar",props:_5,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>(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})),a=s=>{r("click",s)},o=(s,l)=>{r("command",s,l)};return(s,l)=>(y(),C(d(se),{class:"x-action-bar",align:"center"},{default:j(()=>[(y(!0),M(ne,null,ae(i.value,c=>(y(),M(ne,null,[c==="|"?(y(),C(d(Yr),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(y(),C(d(Be),me({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(yo)(t.disabled,c).value},c,{onClick:a,onCommand:u=>o(c,u)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),k5={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}},se=I({name:"XContainer",__name:"Container",props:k5,setup(n){const e=n,t=Aa(),r=or(),i=z(()=>{const s=r?.parent;if(!s)return!1;const l=s.proxy;return l.$options.name==="XContainer"||!!l.flex}),a=z(()=>({"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})),o=z(()=>{const{width:s,height:l,fit:c}=e;return c?null:{width:s?ir(s):void 0,height:l?ir(l):void 0}});return(s,l)=>(y(),C(Ke(e.tag),{class:ce(["x-container",a.value]),style:Rt(o.value)},{default:j(()=>[de(s.$slots,"default")]),_:3},8,["class","style"]))}}),j5={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},C5={class:"x-header__content"},V5={key:0,class:"x-header__actions"},$5=I({name:"XHeader",inheritAttrs:!1,__name:"Header",props:j5,setup(n){const e=n,t=go(Nr(e,"icon")),r=Aa(),i=z(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(a,o)=>(y(),C(d(se),{class:ce(["x-header",i.value]),justify:"space-between",align:"center"},{default:j(()=>[_(d(se),{align:"center",class:ce(["x-header__wrapper",i.value]),grow:"",onClick:d(r).onClick},{default:j(()=>[d(t)?(y(),C(Ke(d(t)),{key:0,class:"x-header__icon",onClick:d(r).onClickIcon||d(r).onClick},null,8,["onClick"])):R("",!0),P("span",C5,[de(a.$slots,"default",{},()=>[le(te(e.content),1)])]),e.more?(y(),C(d(at),{key:1,class:"x-header__more",icon:d($l)},null,8,["icon"])):R("",!0),e.subtitle||a.$slots.subtitle?(y(),M("span",{key:2,class:"x-header__subtitle",onClick:o[0]||(o[0]=(...s)=>d(r).onClick&&d(r).onClick(...s))},[de(a.$slots,"subtitle",{},()=>[le(te(e.subtitle),1)])])):R("",!0)]),_:3},8,["class","onClick"]),a.$slots.actions?(y(),M("div",V5,[de(a.$slots,"actions")])):R("",!0)]),_:3},8,["class"]))}}),E5={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}},dr=I({name:"XPanel",__name:"Panel",props:E5,setup(n,{expose:e}){const t=n,r=D(),i=z(()=>({"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"})),a=z(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),o=z(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(s,l)=>(y(),C(d(se),{class:ce(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:j(()=>[a.value?(y(),C(d(se),{key:0,flex:!1,class:"x-panel__header"},{default:j(()=>[de(s.$slots,"header",{},()=>[_(d($5),kt(Nt(a.value)),{default:j(()=>[de(s.$slots,"title")]),actions:j(()=>[de(s.$slots,"actions")]),_:3},16)])]),_:3})):R("",!0),_(d(se),me({ref_key:"bodyRef",ref:r,flex:!1,overflow:o.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:j(()=>[de(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(y(),C(d(se),me({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:j(()=>[de(s.$slots,"footer")]),_:3},16)):R("",!0)]),_:3},8,["class","fit","width","height"]))}}),rl="user-select-none";class il{constructor(e,t={}){this.el=e,this.options=t,this.scope=vl(),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:a,onEnd:o}=t;if(r)return;let s=null;const l=this.getHandle(),c=this.getTarget();let u=e.getBoundingClientRect(),p=null;const{x:m,y:h}=N2(e,{initialValue:{x:u.x,y:u.y},...t,handle:l,onStart:(f,v)=>{document.body.classList.add(rl),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,u=e.getBoundingClientRect(),p=c?.getBoundingClientRect(),a&&a(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(s),document.body.classList.remove(rl),this.dragging&&p){this.dragging=!1;const{x:g,y:k}=f,b=this.getPosition(p,u,g,k);o&&o(b,v),p=null}}});oe([m,h],()=>{if(this.dragging&&p){const f=this.getPosition(p,u,m.value,h.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:a=50}=this.options,o=-t.width+a,s=e.width-a,l=0,c=e.height-a,u=Math.min(s,Math.max(r,o)),p=Math.min(c,Math.max(i,l));return{x:u,y:p}}destory(){this.scope.stop()}}const A5={mounted(n,e){const t=e.value||{},r=new il(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!Za(r.options,t)&&(r.destory(),n.__draggable__=new il(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},Ti="user-select-none";class al{constructor(e,t={}){this.el=e,this.options=t,this.scope=vl(),this.scope.run(()=>{this.init()})}scope;resizing=D(!1);direction=D("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:a}=t;if(r)return;this.MIE=P2(e),this.cleanMousedown=Io(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=Io(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),a&&a(this.direction.value,this.MIE)),this.resizing.value=!1}),oe(this.direction,l=>{const c=document.body;c.style.cursor=l?`${l}-resize`:"",l?c.classList.add(Ti):c.classList.remove(Ti)});const{x:o,y:s}=this.MIE;oe([o,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:a}=this,o=t?.value||"";if(!e||!r.value||!o)return;const{x:s,y:l,elementX:c,elementY:u,elementHeight:p,elementWidth:m}=e,{onResizing:h}=i,{minWidth:f=0,minHeight:v=0,maxWidth:g=99999,maxHeight:k=99999}=i;if(o.includes("e")){const b=Math.min(Math.max(c.value,f),g);a.style.width=`${b}px`}if(o.includes("s")){const b=Math.min(Math.max(u.value,v),k);a.style.height=`${b}px`}if(o.includes("w")){const b=Math.min(Math.max(m.value-c.value,f),g);a.style.width=`${b}px`,a.style.left=`${s.value}px`}if(o.includes("n")){const b=Math.min(Math.max(p.value-u.value,v),k);this.el.style.height=`${b}px`,this.el.style.top=`${l.value}px`}h&&h(o,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:a}=this.MIE;if(a.value)return"";const{dirs:o=["n","s","w","e"],edge:s=5}=this.options;let l="";return o.includes("n")&&t.value<=s?l+="n":o.includes("s")&&t.value>r.value-s&&(l+="s"),o.includes("w")&&e.value<=s?l+="w":o.includes("e")&&e.value>i.value-s&&(l+="e"),l}destory(){const e=document.body;e.style.cursor="",e.classList.remove(Ti),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}}const wa={mounted(n,e){const t=e.value||{},r=new al(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!Za(r.options,t)&&(r.destory(),n.__resizable__=new al(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},T5={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 wn=1e3;function B5(n,e){const{width:t,height:r}=_n(e),i=tn({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++wn,dragging:!1,resizing:!1});return oe([t,r],([a,o])=>{i.wrapperWidth=a,i.wrapperHeight=o,i.width=jr(n.width,a),i.height=jr(n.height,o),i.left=n.left?jr(n.left,a)-i.width/2:Math.max(Math.floor((a-i.width)/2),0),i.top=n.top?jr(n.top,o):Math.max(Math.floor((o-i.height)/2),0)}),oe(i,a=>{wn=Math.max(a.zIndex,wn)}),{state:i,normal:z(()=>i.mode==="normal"),maximized:z(()=>i.mode==="maximized"),minimized:z(()=>i.mode==="minimized")}}function z5(n,e){const t=z(()=>{const{width:o,height:s,top:l,left:c,zIndex:u}=e;return{width:`${o}px`,height:`${s}px`,top:`${l}px`,left:`${c}px`,zIndex:u}}),r=z(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=z(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),a=z(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:a}}function D5(n,e,t){const r=a=>{e.mode=a,["maximized","minimized","normal"].includes(a)&&t(a),t("modeChange",a)},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:a=>{const o=a.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(o.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++wn))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function O5(n,e,t,r){return z(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...Oe(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(a){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++wn),t("dragStart",a)},onMove(a){t("dragging",a)},onEnd(a){if(e.mode==="maximized")return;const{x:o,y:s}=a;e.left=o,e.top=s,e.dragging=!1,t("dragEnd",a)}}})}function I5(n,e,t){return z(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...Oe(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,a){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++wn),t("resizeStart",i,a)},onResizing(i,a){t("resizing",i,a)},onEnd(i,a){e.left=a.elementPositionX.value,e.top=a.elementPositionY.value,e.width=a.elementWidth.value,e.height=a.elementHeight.value,e.resizing=!1,t("resizeEnd",i,a)}}})}function R5(n,e){const t=n.componentInstance;if(!t)return;let r=null;return Ta(()=>{const i=d(e),a=d(i?.bodyRef);r=t.$el,a&&a.$el&&a.$el.appendChild(r)}),Ba(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const M5=["src"],Ct=I({name:"XDialog",__name:"Dialog",props:T5,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,a=or(),o=D(),s=D(),{state:l,maximized:c,minimized:u,normal:p}=B5(r,o),{styles:m,classes:h,wrapperClass:f,modalStyle:v}=z5(r,l),{changeMode:g,active:k,close:b,show:x,hide:S,submit:V,cancel:w}=D5(r,l,i),$=O5(r,l,i,o),E=I5(r,l,i),J=R5(r,s);gl(async()=>{r.modelValue&&(await pt(),a&&i("open",a))});const T=z(()=>s.value?.$el);return e({$vtjEl:T,panelRef:s,state:l,maximized:c,minimized:u,changeMode:g,show:x,hide:S,submit:V,cancel:w,close:b,componentInstance:J}),(B,F)=>r.modelValue?(y(),C(n2,{key:0,to:"body"},[P("div",{ref_key:"wrapper",ref:o,class:ce(["x-dialog__wrapper",d(f)])},[r.modal?(y(),M("div",{key:0,class:"x-dialog__modal",style:Rt(d(v))},null,4)):R("",!0),ft((y(),C(d(dr),me({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(k)},B.$attrs),Qt({title:j(()=>[le(te(r.title),1)]),actions:j(()=>[de(B.$slots,"actions"),r.minimizable?(y(),C(d(Be),{key:0,icon:d(lu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[0]||(F[0]=A=>d(g)("minimized"))},null,8,["icon","size"])):R("",!0),r.maximizable?(y(),M(ne,{key:1},[d(p)?(y(),C(d(Be),{key:1,icon:d(su),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[2]||(F[2]=A=>d(g)("maximized"))},null,8,["icon","size"])):(y(),C(d(Be),{key:0,icon:d(cu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[1]||(F[1]=A=>d(g)("normal"))},null,8,["icon","size"]))],64)):R("",!0),r.closable?(y(),C(d(Be),{key:2,icon:d(uu),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:d(b)},null,8,["icon","size","onClick"])):R("",!0)]),default:j(()=>[de(B.$slots,"default",{},()=>[r.content?(y(),C(Ke(r.content),{key:0})):R("",!0),r.src?(y(),M("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,M5)):R("",!0)])]),_:2},[r.cancel||r.submit||B.$slots.footer||B.$slots.extra||B.$slots.handle?{name:"footer",fn:j(()=>[de(B.$slots,"footer",{},()=>[_(d(se),{align:"center"},{default:j(()=>[de(B.$slots,"extra")]),_:3}),_(d(se),{align:"center"},{default:j(()=>[de(B.$slots,"handle"),r.cancel?(y(),C(d(xe),{key:0,type:"default",size:r.size,onClick:d(w)},{default:j(()=>[le(te(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):R("",!0),r.submit?(y(),C(d(xe),{key:1,type:"primary",size:r.size,onClick:d(V)},{default:j(()=>[le(te(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):R("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[d(A5),d($)],[d(wa),d(E)]])],2)])):R("",!0)}});function p0(n,e){const t=document.createElement("div"),r=_(Ct,n);r.appContext=e??p0._context,Bo(r,t);const i=()=>{Bo(null,t),t.parentNode?.removeChild(t)};return r.props.onDestroy=()=>{i()},document.body.appendChild(t),{vnode:r,destroy:i}}const P5=I({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),C(d(Ra),kt(Nt(t.$attrs)),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,(i,a)=>(y(),C(d(Ma),me({key:`item_${a}_${i.value}`},i),Qt({_:2},[t.$slots.option?{name:"default",fn:j(()=>[de(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),N5=I({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=z(()=>Pt(e.button?m2:f2));return(r,i)=>(y(),C(d(v2),kt(Nt(r.$attrs)),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,(a,o)=>(y(),C(Ke(t.value),me({key:`item_${o}_${a.value}`},a),{default:j(()=>[le(te(a.label),1)]),_:2},1040))),128))]),_:1},16))}}),F5=I({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=z(()=>Pt(e.button?Jn:g2));return(r,i)=>(y(),C(d(Pa),kt(Nt(r.$attrs)),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,(a,o)=>(y(),C(Ke(t.value),me({key:`item_${o}_${a.value}`},a),{default:j(()=>[le(te(a.label),1)]),_:2},1040))),128))]),_:1},16))}}),h0={none:{component:"div",props:{class:"x-field-none"}},text:{component:Ge,props:{clearable:!0},defaultValue:""},textarea:{component:Ge,props:{type:"textarea",rows:2},defaultValue:""},select:{component:P5,props:{clearable:!0}},checkbox:{component:N5,props:{},defaultValue:[]},radio:{component:F5,props:{}},number:{component:xl,props:{}},date:{component:zo,props:{}},time:{component:d2,props:{}},datetime:{component:zo,props:{type:"datetime"}},switch:{component:Ia,props:{}},rate:{component:p2,props:{}},slider:{component:_l,props:{}},cascader:{component:h2,props:{}}},H5={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 h0[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 L5(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function U5(n,e,t,r,i){const a=D([]),o=z(()=>!r||!i?{}:eo(n.cascader).reduce((s,l)=>(s[l]=Ar(i,l),s),{}));return oe(o,async s=>{if(t.value){a.value=await L5(n,s);const l=r?.exposed?.reset;l&&n.name&&l(n.name)}},{immediate:!0}),{editor:z(()=>{const{editor:s="text",placeholder:l,label:c="...",disabled:u,readonly:p}=n,m={...n.props,placeholder:l||(l===null?void 0:`请输入${c}`),disabled:u,readonly:p,options:a.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},h=typeof s=="string"?h0[s]:{component:s,props:{}};return ht({},h,{props:m})})}}const W5={key:1,class:"el-form-item__error"},J5={key:0,class:"x-field__tip"},ee=I({name:"XField",__name:"Field",props:H5,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=Mt(m0,null),o=Mt(a2,null),s=Mt(f0,null),l=z(()=>!a?.proxy||!s?r.visible:typeof r.visible=="function"?r.visible(s):Oe(r.visible)?Object.entries(r.visible).every(([V,w])=>Ar(s,V)===w):r.visible),c=()=>a?.proxy&&s&&r.name?Ar(s,r.name)??r.modelValue:r.modelValue,u=D(c()),{editor:p}=U5(r,i,l,a,s),m=D(),h=D(),f=z(()=>r.size||o?.size||"default"),v=z(()=>Object.assign({},a?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),g=(V="")=>r.error?r.error:V.includes("is required")?`${r.label||r.name}是必填项!`:V,k=z(()=>{const V=a?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!V&&!!r.tooltipPosition}}),b=z(()=>{const V=a?.proxy;return{width:r.width?ir(r.width):V&&V.inline&&V.inlineColumns?`${100/V.inlineColumns}%`:null}}),x=z(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),S=z(()=>({...p.value.props,modelValue:u.value,"onUpdate:modelValue":V=>{u.value=V}}));return oe(u,(V,w)=>{l.value&&!Za(V,w)&&(i("update:modelValue",V),a?.proxy&&s&&r.name&&yi(s,r.name,V))}),oe(()=>!a?.proxy||!r.name||!s?r.modelValue:Ar(s,r.name)??r.modelValue,V=>{l.value&&(u.value=V)},{immediate:!0}),oe(l,V=>{a?.proxy&&s&&r.name&&(V?(u.value=c(),yi(s,r.name,u.value)):(u.value=void 0,yi(s,r.name,void 0)))},{immediate:!0}),e({fieldValue:u,itemRef:m,editorRef:h,focus:()=>{h.value?.focus&&h.value.focus()},blur:()=>{h.value?.foucs&&h.value.blur()}}),(V,w)=>l.value?(y(),C(d(za),me({key:0,class:["x-field",k.value],ref_key:"itemRef",ref:m,prop:r.name,label:V.label,size:f.value,style:b.value},V.$attrs),Qt({error:j(({error:$})=>[de(V.$slots,"error",{error:$},()=>[d(a)?.props.tooltipMessage??r.tooltipMessage?(y(),M("div",{key:0,class:"x-field__info",style:Rt(x.value)},[_(d(Gr),me({content:g($)},v.value),{default:j(()=>[_(d(at),{class:"x-field__trigger",icon:d(T2),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(y(),M("div",W5,te(g($)),1))])]),default:j(()=>[P("div",{class:ce(["x-field__editor_wrap",{"is-inline":r.inline}])},[de(V.$slots,"editor",{editor:S.value},()=>[d(p).component?(y(),C(Ke(d(p).component),me({key:0,class:"x-field__editor",ref_key:"editorRef",ref:h,modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=$=>u.value=$)},d(p).props),Qt({_:2},[V.$slots.option?{name:"option",fn:j(({option:$})=>[de(V.$slots,"option",{option:$})]),key:"0"}:void 0]),1040,["modelValue"])):R("",!0)]),r.tip||V.$slots.tip?(y(),M("div",J5,[de(V.$slots,"tip",{},()=>[le(te(r.tip),1)])])):R("",!0)],2),de(V.$slots,"default")]),_:2},[V.$slots.label?{name:"label",fn:j(()=>[de(V.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):R("",!0)}}),q5={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}},m0=Symbol("formInstanceKey"),f0=Symbol("formModelKey"),li=I({name:"XForm",__name:"Form",props:q5,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=or(),o=D(),s=tn(r.model||{}),l=D(!1);Ni(m0,a),Ni(f0,s),oe(()=>r.model,p=>{Object.assign(s,p)},{deep:!0}),oe(s,()=>{i("change",fn(s))});const c=async()=>{await o.value.validate().catch(()=>!1)&&(i("submit",fn(s)),r.submitMethod&&(l.value=!0,await r.submitMethod(fn(s)),l.value=!1))},u=p=>{o.value.resetFields(p),i("reset")};return e({formRef:o,model:s,submit:c,reset:u}),(p,m)=>(y(),C(d(qe),me({ref_key:"formRef",ref:o,class:"x-form",inline:r.inline,model:s,onKeyup:Wn(c,["enter"]),onSubmit:m[1]||(m[1]=vn(()=>{},["stop","prevent"]))},p.$attrs),{default:j(()=>[de(p.$slots,"default"),r.footer?(y(),C(d(ee),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:j(()=>[de(p.$slots,"footer",{},()=>[r.submitText?(y(),C(d(xe),{key:0,loading:l.value,type:"primary",onClick:c},{default:j(()=>[le(te(r.submitText),1)]),_:1},8,["loading"])):R("",!0),r.resetText?(y(),C(d(xe),{key:1,type:"default",onClick:m[0]||(m[0]=()=>u())},{default:j(()=>[le(te(r.resetText),1)]),_:1})):R("",!0),de(p.$slots,"action")])]),_:3})):R("",!0)]),_:3},16,["inline","model"]))}}),K5={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}},Vt=I({name:"XDialogForm",__name:"DialogForm",props:K5,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=D(),o=D(),s=z(()=>o.value?.$vtjEl),l=()=>{a.value?.submit()},c=()=>{i("update:modelValue",!1),i("close")},u=async h=>{i("submit",h),r.submitMethod?await r.submitMethod(h)&&c():c()},p=z(()=>r.formProps?.disabled?!1:r.submit),m=z(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:s,formRef:a,dialogRef:o}),(h,f)=>(y(),C(d(Ct),me({ref_key:"dialogRef",ref:o,class:"x-dialog-form","model-value":r.modelValue,submit:p.value,cancel:m.value,size:r.size,onSubmit:l,onClose:c,minimizable:!1,maximizable:!1},h.$attrs),Qt({default:j(()=>[_(d(li),me({ref_key:"formRef",ref:a,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":u},r.formProps),{default:j(()=>[de(h.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[h.$slots.extra?{name:"extra",fn:j(()=>[de(h.$slots,"extra")]),key:"0"}:void 0,h.$slots.handle?{name:"handle",fn:j(()=>[de(h.$slots,"handle")]),key:"1"}:void 0,h.$slots.footer?{name:"footer",fn:j(()=>[de(h.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),G5={items:{type:Array,default(){return[]}},border:{type:Boolean},fit:{type:Boolean},align:{type:String}},Y5={class:"x-tabs__label-inner"},X5={key:0,class:"x-tabs__actions"},bo=I({name:"XTabs",__name:"Tabs",props:G5,emits:["actionClick","actionCommand"],setup(n,{emit:e}){const t=n,r=e,i=l=>{const{label:c,name:u,value:p,disabled:m,closable:h,lazy:f}=l;return{label:c,name:p??u,disabled:m,closable:h,lazy:f}},a=z(()=>({"is-no-border":!t.border,"is-fit":!!t.fit,[`is-align-${t.align}`]:!!t.align})),o=l=>{r("actionClick",l)},s=l=>{r("actionCommand",l)};return(l,c)=>(y(),C(d(s2),me({class:["x-tabs",a.value]},l.$attrs),{default:j(()=>[(y(!0),M(ne,null,ae(t.items,u=>(y(),C(d(o2),me({key:u.value??u.name},i(u)),{label:j(()=>[de(l.$slots,"label",kt(Nt(u)),()=>[u.icon?(y(),C(Ke(d(go)(u.icon)),{key:0,class:"x-tabs__icon"})):R("",!0),P("div",Y5,[le(te(u.label)+" ",1),u.actions&&[u.name,u.value].includes(l.$attrs.modelValue)?(y(),M("div",X5,[(y(!0),M(ne,null,ae(u.actions,p=>(y(),C(d(Be),me({mode:"icon",type:"primary",size:"small",circle:""},p,{onClick:o,onCommand:s}),null,16))),256))])):R("",!0)])])]),default:j(()=>[de(l.$slots,"default",kt(Nt(u)),()=>[u.component?(y(),C(Ke(u.component),kt(me({key:0},u.props)),null,16)):R("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}}),Q5={name:{type:String,default:"VTJ.PRO"},tagline:{type:String,default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{type:String,default:"开始设计"},actionLink:{type:String,default:"/@vtj/pro/"}},Z5={class:"x-startup"},ey={class:"x-startup__wrapper"},ty={class:"x-startup__name"},ny={class:"clip"},ry={class:"x-startup__tagline"},iy={class:"x-startup__actions"},ay=I({__name:"Startup",props:Q5,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",Z5,[P("div",ey,[P("div",ty,[P("span",ny,te(e.name),1)]),P("div",ry,te(e.tagline),1),P("div",iy,[_(d(xe),{type:"primary",size:"large",round:"",icon:d(El),onClick:t},{default:j(()=>[le(te(e.actionText),1)]),_:1},8,["icon"])])])]))}}),oy={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}},v0=I({name:"XInputUnit",__name:"InputUnit",props:oy,emits:["update:modelValue","update:unit","change","unit-change"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=z(()=>eo(r.units).map(f=>typeof f=="string"?{label:f,value:f}:f)),o=z(()=>{const f=a.value.map(v=>v.value);return r.unit&&f.push(r.unit),Yc(f)}),s=D(),l=D(),c=f=>r.format&&f?z3(Number(f)||0,r.format):f,u=f=>{if(!r.withUnit||typeof f!="string")return{value:c(f),unit:r.unit};for(const v of o.value){const g=new RegExp(`${v}$`);if(g.test(f))return{value:c(f.toString().replace(g,"")),unit:v}}return{value:c(f),unit:r.unit}},p=()=>{const f=c(l.value),v=s.value;return r.withUnit&&f&&v?`${f}${v}`:f};oe(()=>r.modelValue,f=>{const{value:v,unit:g}=u(f);s.value=g,l.value=v},{immediate:!0}),oe(l,f=>{i("change",f)});const m=async()=>{const{value:f,unit:v}=u(p());l.value=f,s.value=v,i("update:modelValue",p())},h=()=>{i("unit-change",s.value),m()};return e({parser:u,formatValue:c}),(f,v)=>(y(),C(d(Ge),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=g=>l.value=g),modelModifiers:{trim:!0},class:"x-input-unit",onChange:m},Qt({_:2},[a.value.length?{name:"append",fn:j(()=>[_(d(Ra),me({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:j(()=>[(y(!0),M(ne,null,ae(a.value,g=>(y(),C(d(Ma),{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","size","style"])]),key:"0"}:{name:"suffix",fn:j(()=>[s.value?(y(),M("div",{key:0,class:"x-input-unit__unit"},[P("span",null,te(s.value),1)])):R("",!0)]),key:"1"}]),1032,["modelValue"]))}});var sy=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},g0={},Xe={};let wo;const ly=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};Xe.getSymbolTotalCodewords=function(n){return ly[n]};Xe.getBCHDigit=function(n){let e=0;for(;n!==0;)e++,n>>>=1;return e};Xe.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');wo=n};Xe.isKanjiModeEnabled=function(){return typeof wo<"u"};Xe.toSJIS=function(n){return wo(n)};var ci={};(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}n.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},n.from=function(t,r){if(n.isValid(t))return t;try{return e(t)}catch{return r}}})(ci);function y0(){this.buffer=[],this.length=0}y0.prototype={get:function(n){const e=Math.floor(n/8);return(this.buffer[e]>>>7-n%8&1)===1},put:function(n,e){for(let t=0;t<e;t++)this.putBit((n>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),n&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var cy=y0;function pr(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}pr.prototype.set=function(n,e,t,r){const i=n*this.size+e;this.data[i]=t,r&&(this.reservedBit[i]=!0)};pr.prototype.get=function(n,e){return this.data[n*this.size+e]};pr.prototype.xor=function(n,e,t){this.data[n*this.size+e]^=t};pr.prototype.isReserved=function(n,e){return this.reservedBit[n*this.size+e]};var uy=pr,b0={};(function(n){const e=Xe.getSymbolSize;n.getRowColCoords=function(t){if(t===1)return[];const r=Math.floor(t/7)+2,i=e(t),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-a;return o.push(6),o.reverse()},n.getPositions=function(t){const r=[],i=n.getRowColCoords(t),a=i.length;for(let o=0;o<a;o++)for(let s=0;s<a;s++)o===0&&s===0||o===0&&s===a-1||o===a-1&&s===0||r.push([i[o],i[s]]);return r}})(b0);var w0={};const dy=Xe.getSymbolSize,ol=7;w0.getPositions=function(n){const e=dy(n);return[[0,0],[e-ol,0],[0,e-ol]]};var x0={};(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};n.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},n.from=function(r){return n.isValid(r)?parseInt(r,10):void 0},n.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,l=null,c=null;for(let u=0;u<i;u++){o=s=0,l=c=null;for(let p=0;p<i;p++){let m=r.get(u,p);m===l?o++:(o>=5&&(a+=e.N1+(o-5)),l=m,o=1),m=r.get(p,u),m===c?s++:(s>=5&&(a+=e.N1+(s-5)),c=m,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},n.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o<i-1;o++)for(let s=0;s<i-1;s++){const l=r.get(o,s)+r.get(o,s+1)+r.get(o+1,s)+r.get(o+1,s+1);(l===4||l===0)&&a++}return a*e.N2},n.getPenaltyN3=function(r){const i=r.size;let a=0,o=0,s=0;for(let l=0;l<i;l++){o=s=0;for(let c=0;c<i;c++)o=o<<1&2047|r.get(l,c),c>=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(c,l),c>=10&&(s===1488||s===93)&&a++}return a*e.N3},n.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let o=0;o<a;o++)i+=r.data[o];return Math.abs(Math.ceil(i*100/a/5)-10)*e.N4};function t(r,i,a){switch(r){case n.Patterns.PATTERN000:return(i+a)%2===0;case n.Patterns.PATTERN001:return i%2===0;case n.Patterns.PATTERN010:return a%3===0;case n.Patterns.PATTERN011:return(i+a)%3===0;case n.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case n.Patterns.PATTERN101:return i*a%2+i*a%3===0;case n.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case n.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}n.applyMask=function(r,i){const a=i.size;for(let o=0;o<a;o++)for(let s=0;s<a;s++)i.isReserved(s,o)||i.xor(s,o,t(r,s,o))},n.getBestMask=function(r,i){const a=Object.keys(n.Patterns).length;let o=0,s=1/0;for(let l=0;l<a;l++){i(l),n.applyMask(l,r);const c=n.getPenaltyN1(r)+n.getPenaltyN2(r)+n.getPenaltyN3(r)+n.getPenaltyN4(r);n.applyMask(l,r),c<s&&(s=c,o=l)}return o}})(x0);var ui={};const It=ci,Cr=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Vr=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ui.getBlocksCount=function(n,e){switch(e){case It.L:return Cr[(n-1)*4+0];case It.M:return Cr[(n-1)*4+1];case It.Q:return Cr[(n-1)*4+2];case It.H:return Cr[(n-1)*4+3];default:return}};ui.getTotalCodewordsCount=function(n,e){switch(e){case It.L:return Vr[(n-1)*4+0];case It.M:return Vr[(n-1)*4+1];case It.Q:return Vr[(n-1)*4+2];case It.H:return Vr[(n-1)*4+3];default:return}};var _0={},di={};const Kn=new Uint8Array(512),Jr=new Uint8Array(256);(function(){let n=1;for(let e=0;e<255;e++)Kn[e]=n,Jr[n]=e,n<<=1,n&256&&(n^=285);for(let e=255;e<512;e++)Kn[e]=Kn[e-255]})();di.log=function(n){if(n<1)throw new Error("log("+n+")");return Jr[n]};di.exp=function(n){return Kn[n]};di.mul=function(n,e){return n===0||e===0?0:Kn[Jr[n]+Jr[e]]};(function(n){const e=di;n.mul=function(t,r){const i=new Uint8Array(t.length+r.length-1);for(let a=0;a<t.length;a++)for(let o=0;o<r.length;o++)i[a+o]^=e.mul(t[a],r[o]);return i},n.mod=function(t,r){let i=new Uint8Array(t);for(;i.length-r.length>=0;){const a=i[0];for(let s=0;s<r.length;s++)i[s]^=e.mul(r[s],a);let o=0;for(;o<i.length&&i[o]===0;)o++;i=i.slice(o)}return i},n.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let i=0;i<t;i++)r=n.mul(r,new Uint8Array([1,e.exp(i)]));return r}})(_0);const S0=_0;function xo(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}xo.prototype.initialize=function(n){this.degree=n,this.genPoly=S0.generateECPolynomial(this.degree)};xo.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const t=S0.mod(e,this.genPoly),r=this.degree-t.length;if(r>0){const i=new Uint8Array(this.degree);return i.set(t,r),i}return t};var py=xo,k0={},Ht={},_o={};_o.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40};var wt={};const j0="[0-9]+",hy="[A-Z $%*+\\-./:]+";let ar="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ar=ar.replace(/u/g,"\\u");const my="(?:(?![A-Z0-9 $%*+\\-./:]|"+ar+`)(?:.|[\r
74
- ]))+`;wt.KANJI=new RegExp(ar,"g");wt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");wt.BYTE=new RegExp(my,"g");wt.NUMERIC=new RegExp(j0,"g");wt.ALPHANUMERIC=new RegExp(hy,"g");const fy=new RegExp("^"+ar+"$"),vy=new RegExp("^"+j0+"$"),gy=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");wt.testKanji=function(n){return fy.test(n)};wt.testNumeric=function(n){return vy.test(n)};wt.testAlphanumeric=function(n){return gy.test(n)};(function(n){const e=_o,t=wt;n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},n.getBestModeForData=function(i){return t.testNumeric(i)?n.NUMERIC:t.testAlphanumeric(i)?n.ALPHANUMERIC:t.testKanji(i)?n.KANJI:n.BYTE},n.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},n.isValid=function(i){return i&&i.bit&&i.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+i)}}n.from=function(i,a){if(n.isValid(i))return i;try{return r(i)}catch{return a}}})(Ht);(function(n){const e=Xe,t=ui,r=ci,i=Ht,a=_o,o=7973,s=e.getBCHDigit(o);function l(m,h,f){for(let v=1;v<=40;v++)if(h<=n.getCapacity(v,f,m))return v}function c(m,h){return i.getCharCountIndicator(m,h)+4}function u(m,h){let f=0;return m.forEach(function(v){const g=c(v.mode,h);f+=g+v.getBitsLength()}),f}function p(m,h){for(let f=1;f<=40;f++)if(u(m,f)<=n.getCapacity(f,h,i.MIXED))return f}n.from=function(m,h){return a.isValid(m)?parseInt(m,10):h},n.getCapacity=function(m,h,f){if(!a.isValid(m))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=i.BYTE);const v=e.getSymbolTotalCodewords(m),g=t.getTotalCodewordsCount(m,h),k=(v-g)*8;if(f===i.MIXED)return k;const b=k-c(f,m);switch(f){case i.NUMERIC:return Math.floor(b/10*3);case i.ALPHANUMERIC:return Math.floor(b/11*2);case i.KANJI:return Math.floor(b/13);case i.BYTE:default:return Math.floor(b/8)}},n.getBestVersionForData=function(m,h){let f;const v=r.from(h,r.M);if(Array.isArray(m)){if(m.length>1)return p(m,v);if(m.length===0)return 1;f=m[0]}else f=m;return l(f.mode,f.getLength(),v)},n.getEncodedBits=function(m){if(!a.isValid(m)||m<7)throw new Error("Invalid QR Code version");let h=m<<12;for(;e.getBCHDigit(h)-s>=0;)h^=o<<e.getBCHDigit(h)-s;return m<<12|h}})(k0);var C0={};const xa=Xe,V0=1335,yy=21522,sl=xa.getBCHDigit(V0);C0.getEncodedBits=function(n,e){const t=n.bit<<3|e;let r=t<<10;for(;xa.getBCHDigit(r)-sl>=0;)r^=V0<<xa.getBCHDigit(r)-sl;return(t<<10|r)^yy};var $0={};const by=Ht;function jn(n){this.mode=by.NUMERIC,this.data=n.toString()}jn.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};jn.prototype.getLength=function(){return this.data.length};jn.prototype.getBitsLength=function(){return jn.getBitsLength(this.data.length)};jn.prototype.write=function(n){let e,t,r;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),r=parseInt(t,10),n.put(r,10);const i=this.data.length-e;i>0&&(t=this.data.substr(e),r=parseInt(t,10),n.put(r,i*3+1))};var wy=jn;const xy=Ht,Bi=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Cn(n){this.mode=xy.ALPHANUMERIC,this.data=n}Cn.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};Cn.prototype.getLength=function(){return this.data.length};Cn.prototype.getBitsLength=function(){return Cn.getBitsLength(this.data.length)};Cn.prototype.write=function(n){let e;for(e=0;e+2<=this.data.length;e+=2){let t=Bi.indexOf(this.data[e])*45;t+=Bi.indexOf(this.data[e+1]),n.put(t,11)}this.data.length%2&&n.put(Bi.indexOf(this.data[e]),6)};var _y=Cn,Sy=function(n){for(var e=[],t=n.length,r=0;r<t;r++){var i=n.charCodeAt(r);if(i>=55296&&i<=56319&&t>r+1){var a=n.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){e.push(i);continue}if(i<2048){e.push(i>>6|192),e.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){e.push(i>>12|224),e.push(i>>6&63|128),e.push(i&63|128);continue}if(i>=65536&&i<=1114111){e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(i&63|128);continue}e.push(239,191,189)}return new Uint8Array(e).buffer};const ky=Sy,jy=Ht;function Vn(n){this.mode=jy.BYTE,typeof n=="string"&&(n=ky(n)),this.data=new Uint8Array(n)}Vn.getBitsLength=function(n){return n*8};Vn.prototype.getLength=function(){return this.data.length};Vn.prototype.getBitsLength=function(){return Vn.getBitsLength(this.data.length)};Vn.prototype.write=function(n){for(let e=0,t=this.data.length;e<t;e++)n.put(this.data[e],8)};var Cy=Vn;const Vy=Ht,$y=Xe;function $n(n){this.mode=Vy.KANJI,this.data=n}$n.getBitsLength=function(n){return n*13};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(n){let e;for(e=0;e<this.data.length;e++){let t=$y.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
75
- Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),n.put(t,13)}};var Ey=$n,E0={exports:{}};(function(n){var e={single_source_shortest_paths:function(t,r,i){var a={},o={};o[r]=0;var s=e.PriorityQueue.make();s.push(r,0);for(var l,c,u,p,m,h,f,v,g;!s.empty();){l=s.pop(),c=l.value,p=l.cost,m=t[c]||{};for(u in m)m.hasOwnProperty(u)&&(h=m[u],f=p+h,v=o[u],g=typeof o[u]>"u",(g||v>f)&&(o[u]=f,s.push(u,f),a[u]=c))}if(typeof i<"u"&&typeof o[i]>"u"){var k=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(k)}return a},extract_shortest_path_from_predecessor_list:function(t,r){for(var i=[],a=r;a;)i.push(a),t[a],a=t[a];return i.reverse(),i},find_path:function(t,r,i){var a=e.single_source_shortest_paths(t,r,i);return e.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(t){var r=e.PriorityQueue,i={},a;t=t||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var i={value:t,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=e})(E0);var Ay=E0.exports;(function(n){const e=Ht,t=wy,r=_y,i=Cy,a=Ey,o=wt,s=Xe,l=Ay;function c(k){return unescape(encodeURIComponent(k)).length}function u(k,b,x){const S=[];let V;for(;(V=k.exec(x))!==null;)S.push({data:V[0],index:V.index,mode:b,length:V[0].length});return S}function p(k){const b=u(o.NUMERIC,e.NUMERIC,k),x=u(o.ALPHANUMERIC,e.ALPHANUMERIC,k);let S,V;return s.isKanjiModeEnabled()?(S=u(o.BYTE,e.BYTE,k),V=u(o.KANJI,e.KANJI,k)):(S=u(o.BYTE_KANJI,e.BYTE,k),V=[]),b.concat(x,S,V).sort(function(w,$){return w.index-$.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function m(k,b){switch(b){case e.NUMERIC:return t.getBitsLength(k);case e.ALPHANUMERIC:return r.getBitsLength(k);case e.KANJI:return a.getBitsLength(k);case e.BYTE:return i.getBitsLength(k)}}function h(k){return k.reduce(function(b,x){const S=b.length-1>=0?b[b.length-1]:null;return S&&S.mode===x.mode?(b[b.length-1].data+=x.data,b):(b.push(x),b)},[])}function f(k){const b=[];for(let x=0;x<k.length;x++){const S=k[x];switch(S.mode){case e.NUMERIC:b.push([S,{data:S.data,mode:e.ALPHANUMERIC,length:S.length},{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.ALPHANUMERIC:b.push([S,{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.KANJI:b.push([S,{data:S.data,mode:e.BYTE,length:c(S.data)}]);break;case e.BYTE:b.push([{data:S.data,mode:e.BYTE,length:c(S.data)}])}}return b}function v(k,b){const x={},S={start:{}};let V=["start"];for(let w=0;w<k.length;w++){const $=k[w],E=[];for(let J=0;J<$.length;J++){const T=$[J],B=""+w+J;E.push(B),x[B]={node:T,lastCount:0},S[B]={};for(let F=0;F<V.length;F++){const A=V[F];x[A]&&x[A].node.mode===T.mode?(S[A][B]=m(x[A].lastCount+T.length,T.mode)-m(x[A].lastCount,T.mode),x[A].lastCount+=T.length):(x[A]&&(x[A].lastCount=T.length),S[A][B]=m(T.length,T.mode)+4+e.getCharCountIndicator(T.mode,b))}}V=E}for(let w=0;w<V.length;w++)S[V[w]].end=0;return{map:S,table:x}}function g(k,b){let x;const S=e.getBestModeForData(k);if(x=e.from(b,S),x!==e.BYTE&&x.bit<S.bit)throw new Error('"'+k+'" cannot be encoded with mode '+e.toString(x)+`.
76
- Suggested mode is: `+e.toString(S));switch(x===e.KANJI&&!s.isKanjiModeEnabled()&&(x=e.BYTE),x){case e.NUMERIC:return new t(k);case e.ALPHANUMERIC:return new r(k);case e.KANJI:return new a(k);case e.BYTE:return new i(k)}}n.fromArray=function(k){return k.reduce(function(b,x){return typeof x=="string"?b.push(g(x,null)):x.data&&b.push(g(x.data,x.mode)),b},[])},n.fromString=function(k,b){const x=p(k,s.isKanjiModeEnabled()),S=f(x),V=v(S,b),w=l.find_path(V.map,"start","end"),$=[];for(let E=1;E<w.length-1;E++)$.push(V.table[w[E]].node);return n.fromArray(h($))},n.rawSplit=function(k){return n.fromArray(p(k,s.isKanjiModeEnabled()))}})($0);const pi=Xe,zi=ci,Ty=cy,By=uy,zy=b0,Dy=w0,_a=x0,Sa=ui,Oy=py,qr=k0,Iy=C0,Ry=Ht,Di=$0;function My(n,e){const t=n.size,r=Dy.getPositions(e);for(let i=0;i<r.length;i++){const a=r[i][0],o=r[i][1];for(let s=-1;s<=7;s++)if(!(a+s<=-1||t<=a+s))for(let l=-1;l<=7;l++)o+l<=-1||t<=o+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?n.set(a+s,o+l,!0,!0):n.set(a+s,o+l,!1,!0))}}function Py(n){const e=n.size;for(let t=8;t<e-8;t++){const r=t%2===0;n.set(t,6,r,!0),n.set(6,t,r,!0)}}function Ny(n,e){const t=zy.getPositions(e);for(let r=0;r<t.length;r++){const i=t[r][0],a=t[r][1];for(let o=-2;o<=2;o++)for(let s=-2;s<=2;s++)o===-2||o===2||s===-2||s===2||o===0&&s===0?n.set(i+o,a+s,!0,!0):n.set(i+o,a+s,!1,!0)}}function Fy(n,e){const t=n.size,r=qr.getEncodedBits(e);let i,a,o;for(let s=0;s<18;s++)i=Math.floor(s/3),a=s%3+t-8-3,o=(r>>s&1)===1,n.set(i,a,o,!0),n.set(a,i,o,!0)}function Oi(n,e,t){const r=n.size,i=Iy.getEncodedBits(e,t);let a,o;for(a=0;a<15;a++)o=(i>>a&1)===1,a<6?n.set(a,8,o,!0):a<8?n.set(a+1,8,o,!0):n.set(r-15+a,8,o,!0),a<8?n.set(8,r-a-1,o,!0):a<9?n.set(8,15-a-1+1,o,!0):n.set(8,15-a-1,o,!0);n.set(r-8,8,1,!0)}function Hy(n,e){const t=n.size;let r=-1,i=t-1,a=7,o=0;for(let s=t-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!n.isReserved(i,s-l)){let c=!1;o<e.length&&(c=(e[o]>>>a&1)===1),n.set(i,s-l,c),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||t<=i){i-=r,r=-r;break}}}function Ly(n,e,t){const r=new Ty;t.forEach(function(l){r.put(l.mode.bit,4),r.put(l.getLength(),Ry.getCharCountIndicator(l.mode,n)),l.write(r)});const i=pi.getSymbolTotalCodewords(n),a=Sa.getTotalCodewordsCount(n,e),o=(i-a)*8;for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(o-r.getLengthInBits())/8;for(let l=0;l<s;l++)r.put(l%2?17:236,8);return Uy(r,n,e)}function Uy(n,e,t){const r=pi.getSymbolTotalCodewords(e),i=Sa.getTotalCodewordsCount(e,t),a=r-i,o=Sa.getBlocksCount(e,t),s=r%o,l=o-s,c=Math.floor(r/o),u=Math.floor(a/o),p=u+1,m=c-u,h=new Oy(m);let f=0;const v=new Array(o),g=new Array(o);let k=0;const b=new Uint8Array(n.buffer);for(let $=0;$<o;$++){const E=$<l?u:p;v[$]=b.slice(f,f+E),g[$]=h.encode(v[$]),f+=E,k=Math.max(k,E)}const x=new Uint8Array(r);let S=0,V,w;for(V=0;V<k;V++)for(w=0;w<o;w++)V<v[w].length&&(x[S++]=v[w][V]);for(V=0;V<m;V++)for(w=0;w<o;w++)x[S++]=g[w][V];return x}function Wy(n,e,t,r){let i;if(Array.isArray(n))i=Di.fromArray(n);else if(typeof n=="string"){let c=e;if(!c){const u=Di.rawSplit(n);c=qr.getBestVersionForData(u,t)}i=Di.fromString(n,c||40)}else throw new Error("Invalid data");const a=qr.getBestVersionForData(i,t);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
73
+ */const p5={default:14,small:12,large:18},h5={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 ir(n){return typeof n=="string"?n:`${n}px`}function jr(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 m5=Symbol("ADAPTER_KEY");function f5(){return Pt(m5,{})}const v5=["src"],at=I({name:"XIcon",__name:"Icon",props:h5,setup(n){const e=n,t=Aa(),r=or(),i=z(()=>{if(!e.icon)return null;const l=r?.appContext.app;return typeof e.icon=="object"?Nt(e.icon):l?.component(e.icon)||e.icon}),a=z(()=>{const l={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(l[e.icon]=!0),l}),o=z(()=>({"background-color":e.background,"border-radius":e.radius?ir(e.radius):void 0,padding:e.padding?ir(e.padding):void 0})),s=z(()=>typeof e.size=="number"?e.size:p5[e.size]??void 0);return(l,c)=>(y(),V(d(Fn),{class:ce(["x-icon",a.value]),color:e.color,size:s.value,style:Rt(o.value)},{default:j(()=>[de(l.$slots,"default",{},()=>[i.value?(y(),V(Ke(i.value),{key:0})):M("",!0),e.src?(y(),R("img",{key:1,src:e.src},null,8,v5)):M("",!0)])]),_:3},8,["class","color","size","style"]))}}),d0={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},draggable:{type:Boolean}};function g5(n){return z(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function y5(n){return z(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function b5(n){return z(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function w5(n){const e=or();return z(()=>{const t=d(n);if(t)if(typeof t=="string"||t.setup||t.render||r2(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function go(n){const e=w5(n);return e.value?Nt(I({render:()=>Me(at,e.value)})):void 0}function yo(n,e){return z(()=>{const t=d(n);return typeof t=="function"?t(e):!!t})}const x5={key:0},_5=I({__name:"Trigger",props:d0,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=go(Nr(t,"icon")),a=yo(Nr(t,"disabled")),o=z(()=>({[`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(),!a.value)return r("click"),!1};return(l,c)=>t.mode==="button"?(y(),V(d(xe),me({key:0,icon:d(i),type:t.type,size:t.size,disabled:d(a)},t.button,{onClick:s}),{default:j(()=>[le(te(l.label),1)]),_:1},16,["icon","type","size","disabled"])):(y(),R("div",{key:1,class:ce(["x-action__inner",o.value]),onClick:s},[(y(),V(Ke(d(i)))),l.label?(y(),R("span",x5,te(l.label),1)):M("",!0)],2))}}),S5=["draggable"],Be=I({name:"XAction",__name:"Action",props:d0,emits:["click","command","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=t2(),i=e,a=g5(t),o=y5(t),s=b5(t),l=yo(Nr(t,"disabled")),c=z(()=>!!t.draggable&&!l.value),u=z(()=>({[`x-action--${t.mode}`]:!!t.mode})),p=()=>{l.value||i("click",Ot(t))},m=w=>{if(l.value)return;const S=t.menus?.find(C=>C.command===w);S&&i("command",Ot(S))},h=w=>{c&&i("dragstart",Ot(t),w)},f=w=>{c&&i("dragend",Ot(t),w)},v=w=>Me(u2,o.value,()=>[].concat(w)),g=w=>Me(Oa,{...s.value,disabled:l.value,onCommand:m},{default:()=>[w],dropdown:()=>[Me(Da,()=>(t.menus||[]).map((S,C)=>Me(Fr,S,()=>r.item?r.item({item:S,index:C}):S.label)))]}),k=w=>Me(Gr,{...a.value,disabled:l.value},()=>[w]),b=z(()=>{let w=Me(Nt(_5),{...t,onClick:p});const S=r.default?.();return S&&S.length&&(w=S[0]),o.value&&(w=v(w)),s.value&&(w=g(w)),a.value&&(w=k(w)),w});return(w,S)=>(y(),R("div",{class:ce(["x-action",u.value]),draggable:c.value,onDragstart:h,onDragend:f},[(y(),V(Ke(b.value)))],42,S5))}}),k5={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}},j5=I({name:"XActionBar",__name:"ActionBar",props:k5,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>(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})),a=s=>{r("click",s)},o=(s,l)=>{r("command",s,l)};return(s,l)=>(y(),V(d(se),{class:"x-action-bar",align:"center"},{default:j(()=>[(y(!0),R(ne,null,ae(i.value,c=>(y(),R(ne,null,[c==="|"?(y(),V(d(Yr),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(y(),V(d(Be),me({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(yo)(t.disabled,c).value},c,{onClick:a,onCommand:u=>o(c,u)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),V5={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}},se=I({name:"XContainer",__name:"Container",props:V5,setup(n){const e=n,t=Aa(),r=or(),i=z(()=>{const s=r?.parent;if(!s)return!1;const l=s.proxy;return l.$options.name==="XContainer"||!!l.flex}),a=z(()=>({"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})),o=z(()=>{const{width:s,height:l,fit:c}=e;return c?null:{width:s?ir(s):void 0,height:l?ir(l):void 0}});return(s,l)=>(y(),V(Ke(e.tag),{class:ce(["x-container",a.value]),style:Rt(o.value)},{default:j(()=>[de(s.$slots,"default")]),_:3},8,["class","style"]))}}),C5={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},E5={class:"x-header__content"},$5={key:0,class:"x-header__actions"},A5=I({name:"XHeader",inheritAttrs:!1,__name:"Header",props:C5,setup(n){const e=n,t=go(Nr(e,"icon")),r=Aa(),i=z(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(a,o)=>(y(),V(d(se),{class:ce(["x-header",i.value]),justify:"space-between",align:"center"},{default:j(()=>[_(d(se),{align:"center",class:ce(["x-header__wrapper",i.value]),grow:"",onClick:d(r).onClick},{default:j(()=>[d(t)?(y(),V(Ke(d(t)),{key:0,class:"x-header__icon",onClick:d(r).onClickIcon||d(r).onClick},null,8,["onClick"])):M("",!0),P("span",E5,[de(a.$slots,"default",{},()=>[le(te(e.content),1)])]),e.more?(y(),V(d(at),{key:1,class:"x-header__more",icon:d(El)},null,8,["icon"])):M("",!0),e.subtitle||a.$slots.subtitle?(y(),R("span",{key:2,class:"x-header__subtitle",onClick:o[0]||(o[0]=(...s)=>d(r).onClick&&d(r).onClick(...s))},[de(a.$slots,"subtitle",{},()=>[le(te(e.subtitle),1)])])):M("",!0)]),_:3},8,["class","onClick"]),a.$slots.actions?(y(),R("div",$5,[de(a.$slots,"actions")])):M("",!0)]),_:3},8,["class"]))}}),T5={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}},dr=I({name:"XPanel",__name:"Panel",props:T5,setup(n,{expose:e}){const t=n,r=D(),i=z(()=>({"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"})),a=z(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),o=z(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(s,l)=>(y(),V(d(se),{class:ce(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:j(()=>[a.value?(y(),V(d(se),{key:0,flex:!1,class:"x-panel__header"},{default:j(()=>[de(s.$slots,"header",{},()=>[_(d(A5),kt(Ft(a.value)),{default:j(()=>[de(s.$slots,"title")]),actions:j(()=>[de(s.$slots,"actions")]),_:3},16)])]),_:3})):M("",!0),_(d(se),me({ref_key:"bodyRef",ref:r,flex:!1,overflow:o.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:j(()=>[de(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(y(),V(d(se),me({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:j(()=>[de(s.$slots,"footer")]),_:3},16)):M("",!0)]),_:3},8,["class","fit","width","height"]))}}),rl="user-select-none";class il{constructor(e,t={}){this.el=e,this.options=t,this.scope=vl(),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:a,onEnd:o}=t;if(r)return;let s=null;const l=this.getHandle(),c=this.getTarget();let u=e.getBoundingClientRect(),p=null;const{x:m,y:h}=F2(e,{initialValue:{x:u.x,y:u.y},...t,handle:l,onStart:(f,v)=>{document.body.classList.add(rl),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,u=e.getBoundingClientRect(),p=c?.getBoundingClientRect(),a&&a(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(s),document.body.classList.remove(rl),this.dragging&&p){this.dragging=!1;const{x:g,y:k}=f,b=this.getPosition(p,u,g,k);o&&o(b,v),p=null}}});oe([m,h],()=>{if(this.dragging&&p){const f=this.getPosition(p,u,m.value,h.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:a=50}=this.options,o=-t.width+a,s=e.width-a,l=0,c=e.height-a,u=Math.min(s,Math.max(r,o)),p=Math.min(c,Math.max(i,l));return{x:u,y:p}}destory(){this.scope.stop()}}const B5={mounted(n,e){const t=e.value||{},r=new il(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!Za(r.options,t)&&(r.destory(),n.__draggable__=new il(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},Ti="user-select-none";class al{constructor(e,t={}){this.el=e,this.options=t,this.scope=vl(),this.scope.run(()=>{this.init()})}scope;resizing=D(!1);direction=D("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:a}=t;if(r)return;this.MIE=N2(e),this.cleanMousedown=Io(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=Io(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),a&&a(this.direction.value,this.MIE)),this.resizing.value=!1}),oe(this.direction,l=>{const c=document.body;c.style.cursor=l?`${l}-resize`:"",l?c.classList.add(Ti):c.classList.remove(Ti)});const{x:o,y:s}=this.MIE;oe([o,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:a}=this,o=t?.value||"";if(!e||!r.value||!o)return;const{x:s,y:l,elementX:c,elementY:u,elementHeight:p,elementWidth:m}=e,{onResizing:h}=i,{minWidth:f=0,minHeight:v=0,maxWidth:g=99999,maxHeight:k=99999}=i;if(o.includes("e")){const b=Math.min(Math.max(c.value,f),g);a.style.width=`${b}px`}if(o.includes("s")){const b=Math.min(Math.max(u.value,v),k);a.style.height=`${b}px`}if(o.includes("w")){const b=Math.min(Math.max(m.value-c.value,f),g);a.style.width=`${b}px`,a.style.left=`${s.value}px`}if(o.includes("n")){const b=Math.min(Math.max(p.value-u.value,v),k);this.el.style.height=`${b}px`,this.el.style.top=`${l.value}px`}h&&h(o,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:a}=this.MIE;if(a.value)return"";const{dirs:o=["n","s","w","e"],edge:s=5}=this.options;let l="";return o.includes("n")&&t.value<=s?l+="n":o.includes("s")&&t.value>r.value-s&&(l+="s"),o.includes("w")&&e.value<=s?l+="w":o.includes("e")&&e.value>i.value-s&&(l+="e"),l}destory(){const e=document.body;e.style.cursor="",e.classList.remove(Ti),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}}const wa={mounted(n,e){const t=e.value||{},r=new al(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!Za(r.options,t)&&(r.destory(),n.__resizable__=new al(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},z5={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 wn=1e3;function D5(n,e){const{width:t,height:r}=_n(e),i=nn({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++wn,dragging:!1,resizing:!1});return oe([t,r],([a,o])=>{i.wrapperWidth=a,i.wrapperHeight=o,i.width=jr(n.width,a),i.height=jr(n.height,o),i.left=n.left?jr(n.left,a)-i.width/2:Math.max(Math.floor((a-i.width)/2),0),i.top=n.top?jr(n.top,o):Math.max(Math.floor((o-i.height)/2),0)}),oe(i,a=>{wn=Math.max(a.zIndex,wn)}),{state:i,normal:z(()=>i.mode==="normal"),maximized:z(()=>i.mode==="maximized"),minimized:z(()=>i.mode==="minimized")}}function O5(n,e){const t=z(()=>{const{width:o,height:s,top:l,left:c,zIndex:u}=e;return{width:`${o}px`,height:`${s}px`,top:`${l}px`,left:`${c}px`,zIndex:u}}),r=z(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=z(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),a=z(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:a}}function I5(n,e,t){const r=a=>{e.mode=a,["maximized","minimized","normal"].includes(a)&&t(a),t("modeChange",a)},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:a=>{const o=a.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(o.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++wn))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function M5(n,e,t,r){return z(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...Oe(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(a){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++wn),t("dragStart",a)},onMove(a){t("dragging",a)},onEnd(a){if(e.mode==="maximized")return;const{x:o,y:s}=a;e.left=o,e.top=s,e.dragging=!1,t("dragEnd",a)}}})}function R5(n,e,t){return z(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...Oe(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,a){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++wn),t("resizeStart",i,a)},onResizing(i,a){t("resizing",i,a)},onEnd(i,a){e.left=a.elementPositionX.value,e.top=a.elementPositionY.value,e.width=a.elementWidth.value,e.height=a.elementHeight.value,e.resizing=!1,t("resizeEnd",i,a)}}})}function P5(n,e){const t=n.componentInstance;if(!t)return;let r=null;return Ta(()=>{const i=d(e),a=d(i?.bodyRef);r=t.$el,a&&a.$el&&a.$el.appendChild(r)}),Ba(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const N5=["src"],Vt=I({name:"XDialog",__name:"Dialog",props:z5,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,a=or(),o=D(),s=D(),{state:l,maximized:c,minimized:u,normal:p}=D5(r,o),{styles:m,classes:h,wrapperClass:f,modalStyle:v}=O5(r,l),{changeMode:g,active:k,close:b,show:w,hide:S,submit:C,cancel:x}=I5(r,l,i),E=M5(r,l,i,o),$=R5(r,l,i),U=P5(r,s);gl(async()=>{r.modelValue&&(await pt(),a&&i("open",a))});const T=z(()=>s.value?.$el);return e({$vtjEl:T,panelRef:s,state:l,maximized:c,minimized:u,changeMode:g,show:w,hide:S,submit:C,cancel:x,close:b,componentInstance:U}),(B,F)=>r.modelValue?(y(),V(n2,{key:0,to:"body"},[P("div",{ref_key:"wrapper",ref:o,class:ce(["x-dialog__wrapper",d(f)])},[r.modal?(y(),R("div",{key:0,class:"x-dialog__modal",style:Rt(d(v))},null,4)):M("",!0),ft((y(),V(d(dr),me({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(k)},B.$attrs),Zt({title:j(()=>[le(te(r.title),1)]),actions:j(()=>[de(B.$slots,"actions"),r.minimizable?(y(),V(d(Be),{key:0,icon:d(lu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[0]||(F[0]=A=>d(g)("minimized"))},null,8,["icon","size"])):M("",!0),r.maximizable?(y(),R(ne,{key:1},[d(p)?(y(),V(d(Be),{key:1,icon:d(su),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[2]||(F[2]=A=>d(g)("maximized"))},null,8,["icon","size"])):(y(),V(d(Be),{key:0,icon:d(cu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[1]||(F[1]=A=>d(g)("normal"))},null,8,["icon","size"]))],64)):M("",!0),r.closable?(y(),V(d(Be),{key:2,icon:d(uu),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:d(b)},null,8,["icon","size","onClick"])):M("",!0)]),default:j(()=>[de(B.$slots,"default",{},()=>[r.content?(y(),V(Ke(r.content),{key:0})):M("",!0),r.src?(y(),R("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,N5)):M("",!0)])]),_:2},[r.cancel||r.submit||B.$slots.footer||B.$slots.extra||B.$slots.handle?{name:"footer",fn:j(()=>[de(B.$slots,"footer",{},()=>[_(d(se),{align:"center"},{default:j(()=>[de(B.$slots,"extra")]),_:3}),_(d(se),{align:"center"},{default:j(()=>[de(B.$slots,"handle"),r.cancel?(y(),V(d(xe),{key:0,type:"default",size:r.size,onClick:d(x)},{default:j(()=>[le(te(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):M("",!0),r.submit?(y(),V(d(xe),{key:1,type:"primary",size:r.size,onClick:d(C)},{default:j(()=>[le(te(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):M("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[d(B5),d(E)],[d(wa),d($)]])],2)])):M("",!0)}});function p0(n,e){const t=document.createElement("div"),r=_(Vt,n);r.appContext=e??p0._context,Bo(r,t);const i=()=>{Bo(null,t),t.parentNode?.removeChild(t)};return r.props.onDestroy=()=>{i()},document.body.appendChild(t),{vnode:r,destroy:i}}const F5=I({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(Ma),kt(Ft(t.$attrs)),{default:j(()=>[(y(!0),R(ne,null,ae(e.options,(i,a)=>(y(),V(d(Ra),me({key:`item_${a}_${i.value}`},i),Zt({_:2},[t.$slots.option?{name:"default",fn:j(()=>[de(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),H5=I({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=z(()=>Nt(e.button?m2:f2));return(r,i)=>(y(),V(d(v2),kt(Ft(r.$attrs)),{default:j(()=>[(y(!0),R(ne,null,ae(e.options,(a,o)=>(y(),V(Ke(t.value),me({key:`item_${o}_${a.value}`},a),{default:j(()=>[le(te(a.label),1)]),_:2},1040))),128))]),_:1},16))}}),L5=I({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=z(()=>Nt(e.button?Jn:g2));return(r,i)=>(y(),V(d(Pa),kt(Ft(r.$attrs)),{default:j(()=>[(y(!0),R(ne,null,ae(e.options,(a,o)=>(y(),V(Ke(t.value),me({key:`item_${o}_${a.value}`},a),{default:j(()=>[le(te(a.label),1)]),_:2},1040))),128))]),_:1},16))}}),h0={none:{component:"div",props:{class:"x-field-none"}},text:{component:Ge,props:{clearable:!0},defaultValue:""},textarea:{component:Ge,props:{type:"textarea",rows:2},defaultValue:""},select:{component:F5,props:{clearable:!0}},checkbox:{component:H5,props:{},defaultValue:[]},radio:{component:L5,props:{}},number:{component:xl,props:{}},date:{component:zo,props:{}},time:{component:d2,props:{}},datetime:{component:zo,props:{type:"datetime"}},switch:{component:Ia,props:{}},rate:{component:p2,props:{}},slider:{component:_l,props:{}},cascader:{component:h2,props:{}}},U5={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 h0[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 W5(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function J5(n,e,t,r,i){const a=D([]),o=z(()=>!r||!i?{}:eo(n.cascader).reduce((s,l)=>(s[l]=Ar(i,l),s),{}));return oe(o,async s=>{if(t.value){a.value=await W5(n,s);const l=r?.exposed?.reset;l&&n.name&&l(n.name)}},{immediate:!0}),{editor:z(()=>{const{editor:s="text",placeholder:l,label:c="...",disabled:u,readonly:p}=n,m={...n.props,placeholder:l||(l===null?void 0:`请输入${c}`),disabled:u,readonly:p,options:a.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},h=typeof s=="string"?h0[s]:{component:s,props:{}};return ht({},h,{props:m})})}}const q5={key:1,class:"el-form-item__error"},K5={key:0,class:"x-field__tip"},ee=I({name:"XField",__name:"Field",props:U5,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=Pt(m0,null),o=Pt(a2,null),s=Pt(f0,null),l=z(()=>!a?.proxy||!s?r.visible:typeof r.visible=="function"?r.visible(s):Oe(r.visible)?Object.entries(r.visible).every(([C,x])=>Ar(s,C)===x):r.visible),c=()=>a?.proxy&&s&&r.name?Ar(s,r.name)??r.modelValue:r.modelValue,u=D(c()),{editor:p}=J5(r,i,l,a,s),m=D(),h=D(),f=z(()=>r.size||o?.size||"default"),v=z(()=>Object.assign({},a?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),g=(C="")=>r.error?r.error:C.includes("is required")?`${r.label||r.name}是必填项!`:C,k=z(()=>{const C=a?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!C&&!!r.tooltipPosition}}),b=z(()=>{const C=a?.proxy;return{width:r.width?ir(r.width):C&&C.inline&&C.inlineColumns?`${100/C.inlineColumns}%`:null}}),w=z(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),S=z(()=>({...p.value.props,modelValue:u.value,"onUpdate:modelValue":C=>{u.value=C}}));return oe(u,(C,x)=>{l.value&&!Za(C,x)&&(i("update:modelValue",C),a?.proxy&&s&&r.name&&yi(s,r.name,C))}),oe(()=>!a?.proxy||!r.name||!s?r.modelValue:Ar(s,r.name)??r.modelValue,C=>{l.value&&(u.value=C)},{immediate:!0}),oe(l,C=>{a?.proxy&&s&&r.name&&(C?(u.value=c(),yi(s,r.name,u.value)):(u.value=void 0,yi(s,r.name,void 0)))},{immediate:!0}),e({fieldValue:u,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(za),me({key:0,class:["x-field",k.value],ref_key:"itemRef",ref:m,prop:r.name,label:C.label,size:f.value,style:b.value},C.$attrs),Zt({error:j(({error:E})=>[de(C.$slots,"error",{error:E},()=>[d(a)?.props.tooltipMessage??r.tooltipMessage?(y(),R("div",{key:0,class:"x-field__info",style:Rt(w.value)},[_(d(Gr),me({content:g(E)},v.value),{default:j(()=>[_(d(at),{class:"x-field__trigger",icon:d(T2),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(y(),R("div",q5,te(g(E)),1))])]),default:j(()=>[P("div",{class:ce(["x-field__editor_wrap",{"is-inline":r.inline}])},[de(C.$slots,"editor",{editor:S.value},()=>[d(p).component?(y(),V(Ke(d(p).component),me({key:0,class:"x-field__editor",ref_key:"editorRef",ref:h,modelValue:u.value,"onUpdate:modelValue":x[0]||(x[0]=E=>u.value=E)},d(p).props),Zt({_:2},[C.$slots.option?{name:"option",fn:j(({option:E})=>[de(C.$slots,"option",{option:E})]),key:"0"}:void 0]),1040,["modelValue"])):M("",!0)]),r.tip||C.$slots.tip?(y(),R("div",K5,[de(C.$slots,"tip",{},()=>[le(te(r.tip),1)])])):M("",!0)],2),de(C.$slots,"default")]),_:2},[C.$slots.label?{name:"label",fn:j(()=>[de(C.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):M("",!0)}}),G5={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}},m0=Symbol("formInstanceKey"),f0=Symbol("formModelKey"),li=I({name:"XForm",__name:"Form",props:G5,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=or(),o=D(),s=nn(r.model||{}),l=D(!1);Ni(m0,a),Ni(f0,s),oe(()=>r.model,p=>{Object.assign(s,p)},{deep:!0}),oe(s,()=>{i("change",Ot(s))});const c=async()=>{await o.value.validate().catch(()=>!1)&&(i("submit",Ot(s)),r.submitMethod&&(l.value=!0,await r.submitMethod(Ot(s)),l.value=!1))},u=p=>{o.value.resetFields(p),i("reset")};return e({formRef:o,model:s,submit:c,reset:u}),(p,m)=>(y(),V(d(qe),me({ref_key:"formRef",ref:o,class:"x-form",inline:r.inline,model:s,onKeyup:Wn(c,["enter"]),onSubmit:m[1]||(m[1]=vn(()=>{},["stop","prevent"]))},p.$attrs),{default:j(()=>[de(p.$slots,"default"),r.footer?(y(),V(d(ee),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:j(()=>[de(p.$slots,"footer",{},()=>[r.submitText?(y(),V(d(xe),{key:0,loading:l.value,type:"primary",onClick:c},{default:j(()=>[le(te(r.submitText),1)]),_:1},8,["loading"])):M("",!0),r.resetText?(y(),V(d(xe),{key:1,type:"default",onClick:m[0]||(m[0]=()=>u())},{default:j(()=>[le(te(r.resetText),1)]),_:1})):M("",!0),de(p.$slots,"action")])]),_:3})):M("",!0)]),_:3},16,["inline","model"]))}}),Y5={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}},Ct=I({name:"XDialogForm",__name:"DialogForm",props:Y5,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=D(),o=D(),s=z(()=>o.value?.$vtjEl),l=()=>{a.value?.submit()},c=()=>{i("update:modelValue",!1),i("close")},u=async h=>{i("submit",h),r.submitMethod?await r.submitMethod(h)&&c():c()},p=z(()=>r.formProps?.disabled?!1:r.submit),m=z(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:s,formRef:a,dialogRef:o}),(h,f)=>(y(),V(d(Vt),me({ref_key:"dialogRef",ref:o,class:"x-dialog-form","model-value":r.modelValue,submit:p.value,cancel:m.value,size:r.size,onSubmit:l,onClose:c,minimizable:!1,maximizable:!1},h.$attrs),Zt({default:j(()=>[_(d(li),me({ref_key:"formRef",ref:a,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":u},r.formProps),{default:j(()=>[de(h.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[h.$slots.extra?{name:"extra",fn:j(()=>[de(h.$slots,"extra")]),key:"0"}:void 0,h.$slots.handle?{name:"handle",fn:j(()=>[de(h.$slots,"handle")]),key:"1"}:void 0,h.$slots.footer?{name:"footer",fn:j(()=>[de(h.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),X5={items:{type:Array,default(){return[]}},border:{type:Boolean},fit:{type:Boolean},align:{type:String}},Q5={class:"x-tabs__label-inner"},Z5={key:0,class:"x-tabs__actions"},bo=I({name:"XTabs",__name:"Tabs",props:X5,emits:["actionClick","actionCommand"],setup(n,{emit:e}){const t=n,r=e,i=l=>{const{label:c,name:u,value:p,disabled:m,closable:h,lazy:f}=l;return{label:c,name:p??u,disabled:m,closable:h,lazy:f}},a=z(()=>({"is-no-border":!t.border,"is-fit":!!t.fit,[`is-align-${t.align}`]:!!t.align})),o=l=>{r("actionClick",l)},s=l=>{r("actionCommand",l)};return(l,c)=>(y(),V(d(s2),me({class:["x-tabs",a.value]},l.$attrs),{default:j(()=>[(y(!0),R(ne,null,ae(t.items,u=>(y(),V(d(o2),me({key:u.value??u.name},i(u)),{label:j(()=>[de(l.$slots,"label",kt(Ft(u)),()=>[u.icon?(y(),V(Ke(d(go)(u.icon)),{key:0,class:"x-tabs__icon"})):M("",!0),P("div",Q5,[le(te(u.label)+" ",1),u.actions&&[u.name,u.value].includes(l.$attrs.modelValue)?(y(),R("div",Z5,[(y(!0),R(ne,null,ae(u.actions,p=>(y(),V(d(Be),me({mode:"icon",type:"primary",size:"small",circle:""},p,{onClick:o,onCommand:s}),null,16))),256))])):M("",!0)])])]),default:j(()=>[de(l.$slots,"default",kt(Ft(u)),()=>[u.component?(y(),V(Ke(u.component),kt(me({key:0},u.props)),null,16)):M("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}}),ey={name:{type:String,default:"VTJ.PRO"},tagline:{type:String,default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{type:String,default:"开始设计"},actionLink:{type:String,default:"/@vtj/pro/"}},ty={class:"x-startup"},ny={class:"x-startup__wrapper"},ry={class:"x-startup__name"},iy={class:"clip"},ay={class:"x-startup__tagline"},oy={class:"x-startup__actions"},sy=I({__name:"Startup",props:ey,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(),R("div",ty,[P("div",ny,[P("div",ry,[P("span",iy,te(e.name),1)]),P("div",ay,te(e.tagline),1),P("div",oy,[_(d(xe),{type:"primary",size:"large",round:"",icon:d($l),onClick:t},{default:j(()=>[le(te(e.actionText),1)]),_:1},8,["icon"])])])]))}}),ly={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}},v0=I({name:"XInputUnit",__name:"InputUnit",props:ly,emits:["update:modelValue","update:unit","change","unit-change"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=z(()=>eo(r.units).map(f=>typeof f=="string"?{label:f,value:f}:f)),o=z(()=>{const f=a.value.map(v=>v.value);return r.unit&&f.push(r.unit),Yc(f)}),s=D(),l=D(),c=f=>r.format&&f?D3(Number(f)||0,r.format):f,u=f=>{if(!r.withUnit||typeof f!="string")return{value:c(f),unit:r.unit};for(const v of o.value){const g=new RegExp(`${v}$`);if(g.test(f))return{value:c(f.toString().replace(g,"")),unit:v}}return{value:c(f),unit:r.unit}},p=()=>{const f=c(l.value),v=s.value;return r.withUnit&&f&&v?`${f}${v}`:f};oe(()=>r.modelValue,f=>{const{value:v,unit:g}=u(f);s.value=g,l.value=v},{immediate:!0}),oe(l,f=>{i("change",f)});const m=async()=>{const{value:f,unit:v}=u(p());l.value=f,s.value=v,i("update:modelValue",p())},h=()=>{i("unit-change",s.value),m()};return e({parser:u,formatValue:c}),(f,v)=>(y(),V(d(Ge),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=g=>l.value=g),modelModifiers:{trim:!0},class:"x-input-unit",onChange:m},Zt({_:2},[a.value.length?{name:"append",fn:j(()=>[_(d(Ma),me({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:j(()=>[(y(!0),R(ne,null,ae(a.value,g=>(y(),V(d(Ra),{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","size","style"])]),key:"0"}:{name:"suffix",fn:j(()=>[s.value?(y(),R("div",{key:0,class:"x-input-unit__unit"},[P("span",null,te(s.value),1)])):M("",!0)]),key:"1"}]),1032,["modelValue"]))}});var cy=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},g0={},Xe={};let wo;const uy=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};Xe.getSymbolTotalCodewords=function(n){return uy[n]};Xe.getBCHDigit=function(n){let e=0;for(;n!==0;)e++,n>>>=1;return e};Xe.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');wo=n};Xe.isKanjiModeEnabled=function(){return typeof wo<"u"};Xe.toSJIS=function(n){return wo(n)};var ci={};(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}n.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},n.from=function(t,r){if(n.isValid(t))return t;try{return e(t)}catch{return r}}})(ci);function y0(){this.buffer=[],this.length=0}y0.prototype={get:function(n){const e=Math.floor(n/8);return(this.buffer[e]>>>7-n%8&1)===1},put:function(n,e){for(let t=0;t<e;t++)this.putBit((n>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),n&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var dy=y0;function pr(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}pr.prototype.set=function(n,e,t,r){const i=n*this.size+e;this.data[i]=t,r&&(this.reservedBit[i]=!0)};pr.prototype.get=function(n,e){return this.data[n*this.size+e]};pr.prototype.xor=function(n,e,t){this.data[n*this.size+e]^=t};pr.prototype.isReserved=function(n,e){return this.reservedBit[n*this.size+e]};var py=pr,b0={};(function(n){const e=Xe.getSymbolSize;n.getRowColCoords=function(t){if(t===1)return[];const r=Math.floor(t/7)+2,i=e(t),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-a;return o.push(6),o.reverse()},n.getPositions=function(t){const r=[],i=n.getRowColCoords(t),a=i.length;for(let o=0;o<a;o++)for(let s=0;s<a;s++)o===0&&s===0||o===0&&s===a-1||o===a-1&&s===0||r.push([i[o],i[s]]);return r}})(b0);var w0={};const hy=Xe.getSymbolSize,ol=7;w0.getPositions=function(n){const e=hy(n);return[[0,0],[e-ol,0],[0,e-ol]]};var x0={};(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};n.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},n.from=function(r){return n.isValid(r)?parseInt(r,10):void 0},n.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,l=null,c=null;for(let u=0;u<i;u++){o=s=0,l=c=null;for(let p=0;p<i;p++){let m=r.get(u,p);m===l?o++:(o>=5&&(a+=e.N1+(o-5)),l=m,o=1),m=r.get(p,u),m===c?s++:(s>=5&&(a+=e.N1+(s-5)),c=m,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},n.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o<i-1;o++)for(let s=0;s<i-1;s++){const l=r.get(o,s)+r.get(o,s+1)+r.get(o+1,s)+r.get(o+1,s+1);(l===4||l===0)&&a++}return a*e.N2},n.getPenaltyN3=function(r){const i=r.size;let a=0,o=0,s=0;for(let l=0;l<i;l++){o=s=0;for(let c=0;c<i;c++)o=o<<1&2047|r.get(l,c),c>=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(c,l),c>=10&&(s===1488||s===93)&&a++}return a*e.N3},n.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let o=0;o<a;o++)i+=r.data[o];return Math.abs(Math.ceil(i*100/a/5)-10)*e.N4};function t(r,i,a){switch(r){case n.Patterns.PATTERN000:return(i+a)%2===0;case n.Patterns.PATTERN001:return i%2===0;case n.Patterns.PATTERN010:return a%3===0;case n.Patterns.PATTERN011:return(i+a)%3===0;case n.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case n.Patterns.PATTERN101:return i*a%2+i*a%3===0;case n.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case n.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}n.applyMask=function(r,i){const a=i.size;for(let o=0;o<a;o++)for(let s=0;s<a;s++)i.isReserved(s,o)||i.xor(s,o,t(r,s,o))},n.getBestMask=function(r,i){const a=Object.keys(n.Patterns).length;let o=0,s=1/0;for(let l=0;l<a;l++){i(l),n.applyMask(l,r);const c=n.getPenaltyN1(r)+n.getPenaltyN2(r)+n.getPenaltyN3(r)+n.getPenaltyN4(r);n.applyMask(l,r),c<s&&(s=c,o=l)}return o}})(x0);var ui={};const Mt=ci,Vr=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Cr=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ui.getBlocksCount=function(n,e){switch(e){case Mt.L:return Vr[(n-1)*4+0];case Mt.M:return Vr[(n-1)*4+1];case Mt.Q:return Vr[(n-1)*4+2];case Mt.H:return Vr[(n-1)*4+3];default:return}};ui.getTotalCodewordsCount=function(n,e){switch(e){case Mt.L:return Cr[(n-1)*4+0];case Mt.M:return Cr[(n-1)*4+1];case Mt.Q:return Cr[(n-1)*4+2];case Mt.H:return Cr[(n-1)*4+3];default:return}};var _0={},di={};const Kn=new Uint8Array(512),Jr=new Uint8Array(256);(function(){let n=1;for(let e=0;e<255;e++)Kn[e]=n,Jr[n]=e,n<<=1,n&256&&(n^=285);for(let e=255;e<512;e++)Kn[e]=Kn[e-255]})();di.log=function(n){if(n<1)throw new Error("log("+n+")");return Jr[n]};di.exp=function(n){return Kn[n]};di.mul=function(n,e){return n===0||e===0?0:Kn[Jr[n]+Jr[e]]};(function(n){const e=di;n.mul=function(t,r){const i=new Uint8Array(t.length+r.length-1);for(let a=0;a<t.length;a++)for(let o=0;o<r.length;o++)i[a+o]^=e.mul(t[a],r[o]);return i},n.mod=function(t,r){let i=new Uint8Array(t);for(;i.length-r.length>=0;){const a=i[0];for(let s=0;s<r.length;s++)i[s]^=e.mul(r[s],a);let o=0;for(;o<i.length&&i[o]===0;)o++;i=i.slice(o)}return i},n.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let i=0;i<t;i++)r=n.mul(r,new Uint8Array([1,e.exp(i)]));return r}})(_0);const S0=_0;function xo(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}xo.prototype.initialize=function(n){this.degree=n,this.genPoly=S0.generateECPolynomial(this.degree)};xo.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const t=S0.mod(e,this.genPoly),r=this.degree-t.length;if(r>0){const i=new Uint8Array(this.degree);return i.set(t,r),i}return t};var my=xo,k0={},Lt={},_o={};_o.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40};var wt={};const j0="[0-9]+",fy="[A-Z $%*+\\-./:]+";let ar="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ar=ar.replace(/u/g,"\\u");const vy="(?:(?![A-Z0-9 $%*+\\-./:]|"+ar+`)(?:.|[\r
74
+ ]))+`;wt.KANJI=new RegExp(ar,"g");wt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");wt.BYTE=new RegExp(vy,"g");wt.NUMERIC=new RegExp(j0,"g");wt.ALPHANUMERIC=new RegExp(fy,"g");const gy=new RegExp("^"+ar+"$"),yy=new RegExp("^"+j0+"$"),by=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");wt.testKanji=function(n){return gy.test(n)};wt.testNumeric=function(n){return yy.test(n)};wt.testAlphanumeric=function(n){return by.test(n)};(function(n){const e=_o,t=wt;n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},n.getBestModeForData=function(i){return t.testNumeric(i)?n.NUMERIC:t.testAlphanumeric(i)?n.ALPHANUMERIC:t.testKanji(i)?n.KANJI:n.BYTE},n.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},n.isValid=function(i){return i&&i.bit&&i.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+i)}}n.from=function(i,a){if(n.isValid(i))return i;try{return r(i)}catch{return a}}})(Lt);(function(n){const e=Xe,t=ui,r=ci,i=Lt,a=_o,o=7973,s=e.getBCHDigit(o);function l(m,h,f){for(let v=1;v<=40;v++)if(h<=n.getCapacity(v,f,m))return v}function c(m,h){return i.getCharCountIndicator(m,h)+4}function u(m,h){let f=0;return m.forEach(function(v){const g=c(v.mode,h);f+=g+v.getBitsLength()}),f}function p(m,h){for(let f=1;f<=40;f++)if(u(m,f)<=n.getCapacity(f,h,i.MIXED))return f}n.from=function(m,h){return a.isValid(m)?parseInt(m,10):h},n.getCapacity=function(m,h,f){if(!a.isValid(m))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=i.BYTE);const v=e.getSymbolTotalCodewords(m),g=t.getTotalCodewordsCount(m,h),k=(v-g)*8;if(f===i.MIXED)return k;const b=k-c(f,m);switch(f){case i.NUMERIC:return Math.floor(b/10*3);case i.ALPHANUMERIC:return Math.floor(b/11*2);case i.KANJI:return Math.floor(b/13);case i.BYTE:default:return Math.floor(b/8)}},n.getBestVersionForData=function(m,h){let f;const v=r.from(h,r.M);if(Array.isArray(m)){if(m.length>1)return p(m,v);if(m.length===0)return 1;f=m[0]}else f=m;return l(f.mode,f.getLength(),v)},n.getEncodedBits=function(m){if(!a.isValid(m)||m<7)throw new Error("Invalid QR Code version");let h=m<<12;for(;e.getBCHDigit(h)-s>=0;)h^=o<<e.getBCHDigit(h)-s;return m<<12|h}})(k0);var V0={};const xa=Xe,C0=1335,wy=21522,sl=xa.getBCHDigit(C0);V0.getEncodedBits=function(n,e){const t=n.bit<<3|e;let r=t<<10;for(;xa.getBCHDigit(r)-sl>=0;)r^=C0<<xa.getBCHDigit(r)-sl;return(t<<10|r)^wy};var E0={};const xy=Lt;function jn(n){this.mode=xy.NUMERIC,this.data=n.toString()}jn.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};jn.prototype.getLength=function(){return this.data.length};jn.prototype.getBitsLength=function(){return jn.getBitsLength(this.data.length)};jn.prototype.write=function(n){let e,t,r;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),r=parseInt(t,10),n.put(r,10);const i=this.data.length-e;i>0&&(t=this.data.substr(e),r=parseInt(t,10),n.put(r,i*3+1))};var _y=jn;const Sy=Lt,Bi=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Vn(n){this.mode=Sy.ALPHANUMERIC,this.data=n}Vn.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};Vn.prototype.getLength=function(){return this.data.length};Vn.prototype.getBitsLength=function(){return Vn.getBitsLength(this.data.length)};Vn.prototype.write=function(n){let e;for(e=0;e+2<=this.data.length;e+=2){let t=Bi.indexOf(this.data[e])*45;t+=Bi.indexOf(this.data[e+1]),n.put(t,11)}this.data.length%2&&n.put(Bi.indexOf(this.data[e]),6)};var ky=Vn,jy=function(n){for(var e=[],t=n.length,r=0;r<t;r++){var i=n.charCodeAt(r);if(i>=55296&&i<=56319&&t>r+1){var a=n.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){e.push(i);continue}if(i<2048){e.push(i>>6|192),e.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){e.push(i>>12|224),e.push(i>>6&63|128),e.push(i&63|128);continue}if(i>=65536&&i<=1114111){e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(i&63|128);continue}e.push(239,191,189)}return new Uint8Array(e).buffer};const Vy=jy,Cy=Lt;function Cn(n){this.mode=Cy.BYTE,typeof n=="string"&&(n=Vy(n)),this.data=new Uint8Array(n)}Cn.getBitsLength=function(n){return n*8};Cn.prototype.getLength=function(){return this.data.length};Cn.prototype.getBitsLength=function(){return Cn.getBitsLength(this.data.length)};Cn.prototype.write=function(n){for(let e=0,t=this.data.length;e<t;e++)n.put(this.data[e],8)};var Ey=Cn;const $y=Lt,Ay=Xe;function En(n){this.mode=$y.KANJI,this.data=n}En.getBitsLength=function(n){return n*13};En.prototype.getLength=function(){return this.data.length};En.prototype.getBitsLength=function(){return En.getBitsLength(this.data.length)};En.prototype.write=function(n){let e;for(e=0;e<this.data.length;e++){let t=Ay.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
75
+ Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),n.put(t,13)}};var Ty=En,$0={exports:{}};(function(n){var e={single_source_shortest_paths:function(t,r,i){var a={},o={};o[r]=0;var s=e.PriorityQueue.make();s.push(r,0);for(var l,c,u,p,m,h,f,v,g;!s.empty();){l=s.pop(),c=l.value,p=l.cost,m=t[c]||{};for(u in m)m.hasOwnProperty(u)&&(h=m[u],f=p+h,v=o[u],g=typeof o[u]>"u",(g||v>f)&&(o[u]=f,s.push(u,f),a[u]=c))}if(typeof i<"u"&&typeof o[i]>"u"){var k=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(k)}return a},extract_shortest_path_from_predecessor_list:function(t,r){for(var i=[],a=r;a;)i.push(a),t[a],a=t[a];return i.reverse(),i},find_path:function(t,r,i){var a=e.single_source_shortest_paths(t,r,i);return e.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(t){var r=e.PriorityQueue,i={},a;t=t||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var i={value:t,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=e})($0);var By=$0.exports;(function(n){const e=Lt,t=_y,r=ky,i=Ey,a=Ty,o=wt,s=Xe,l=By;function c(k){return unescape(encodeURIComponent(k)).length}function u(k,b,w){const S=[];let C;for(;(C=k.exec(w))!==null;)S.push({data:C[0],index:C.index,mode:b,length:C[0].length});return S}function p(k){const b=u(o.NUMERIC,e.NUMERIC,k),w=u(o.ALPHANUMERIC,e.ALPHANUMERIC,k);let S,C;return s.isKanjiModeEnabled()?(S=u(o.BYTE,e.BYTE,k),C=u(o.KANJI,e.KANJI,k)):(S=u(o.BYTE_KANJI,e.BYTE,k),C=[]),b.concat(w,S,C).sort(function(x,E){return x.index-E.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function m(k,b){switch(b){case e.NUMERIC:return t.getBitsLength(k);case e.ALPHANUMERIC:return r.getBitsLength(k);case e.KANJI:return a.getBitsLength(k);case e.BYTE:return i.getBitsLength(k)}}function h(k){return k.reduce(function(b,w){const S=b.length-1>=0?b[b.length-1]:null;return S&&S.mode===w.mode?(b[b.length-1].data+=w.data,b):(b.push(w),b)},[])}function f(k){const b=[];for(let w=0;w<k.length;w++){const S=k[w];switch(S.mode){case e.NUMERIC:b.push([S,{data:S.data,mode:e.ALPHANUMERIC,length:S.length},{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.ALPHANUMERIC:b.push([S,{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.KANJI:b.push([S,{data:S.data,mode:e.BYTE,length:c(S.data)}]);break;case e.BYTE:b.push([{data:S.data,mode:e.BYTE,length:c(S.data)}])}}return b}function v(k,b){const w={},S={start:{}};let C=["start"];for(let x=0;x<k.length;x++){const E=k[x],$=[];for(let U=0;U<E.length;U++){const T=E[U],B=""+x+U;$.push(B),w[B]={node:T,lastCount:0},S[B]={};for(let F=0;F<C.length;F++){const A=C[F];w[A]&&w[A].node.mode===T.mode?(S[A][B]=m(w[A].lastCount+T.length,T.mode)-m(w[A].lastCount,T.mode),w[A].lastCount+=T.length):(w[A]&&(w[A].lastCount=T.length),S[A][B]=m(T.length,T.mode)+4+e.getCharCountIndicator(T.mode,b))}}C=$}for(let x=0;x<C.length;x++)S[C[x]].end=0;return{map:S,table:w}}function g(k,b){let w;const S=e.getBestModeForData(k);if(w=e.from(b,S),w!==e.BYTE&&w.bit<S.bit)throw new Error('"'+k+'" cannot be encoded with mode '+e.toString(w)+`.
76
+ Suggested mode is: `+e.toString(S));switch(w===e.KANJI&&!s.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new t(k);case e.ALPHANUMERIC:return new r(k);case e.KANJI:return new a(k);case e.BYTE:return new i(k)}}n.fromArray=function(k){return k.reduce(function(b,w){return typeof w=="string"?b.push(g(w,null)):w.data&&b.push(g(w.data,w.mode)),b},[])},n.fromString=function(k,b){const w=p(k,s.isKanjiModeEnabled()),S=f(w),C=v(S,b),x=l.find_path(C.map,"start","end"),E=[];for(let $=1;$<x.length-1;$++)E.push(C.table[x[$]].node);return n.fromArray(h(E))},n.rawSplit=function(k){return n.fromArray(p(k,s.isKanjiModeEnabled()))}})(E0);const pi=Xe,zi=ci,zy=dy,Dy=py,Oy=b0,Iy=w0,_a=x0,Sa=ui,My=my,qr=k0,Ry=V0,Py=Lt,Di=E0;function Ny(n,e){const t=n.size,r=Iy.getPositions(e);for(let i=0;i<r.length;i++){const a=r[i][0],o=r[i][1];for(let s=-1;s<=7;s++)if(!(a+s<=-1||t<=a+s))for(let l=-1;l<=7;l++)o+l<=-1||t<=o+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?n.set(a+s,o+l,!0,!0):n.set(a+s,o+l,!1,!0))}}function Fy(n){const e=n.size;for(let t=8;t<e-8;t++){const r=t%2===0;n.set(t,6,r,!0),n.set(6,t,r,!0)}}function Hy(n,e){const t=Oy.getPositions(e);for(let r=0;r<t.length;r++){const i=t[r][0],a=t[r][1];for(let o=-2;o<=2;o++)for(let s=-2;s<=2;s++)o===-2||o===2||s===-2||s===2||o===0&&s===0?n.set(i+o,a+s,!0,!0):n.set(i+o,a+s,!1,!0)}}function Ly(n,e){const t=n.size,r=qr.getEncodedBits(e);let i,a,o;for(let s=0;s<18;s++)i=Math.floor(s/3),a=s%3+t-8-3,o=(r>>s&1)===1,n.set(i,a,o,!0),n.set(a,i,o,!0)}function Oi(n,e,t){const r=n.size,i=Ry.getEncodedBits(e,t);let a,o;for(a=0;a<15;a++)o=(i>>a&1)===1,a<6?n.set(a,8,o,!0):a<8?n.set(a+1,8,o,!0):n.set(r-15+a,8,o,!0),a<8?n.set(8,r-a-1,o,!0):a<9?n.set(8,15-a-1+1,o,!0):n.set(8,15-a-1,o,!0);n.set(r-8,8,1,!0)}function Uy(n,e){const t=n.size;let r=-1,i=t-1,a=7,o=0;for(let s=t-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!n.isReserved(i,s-l)){let c=!1;o<e.length&&(c=(e[o]>>>a&1)===1),n.set(i,s-l,c),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||t<=i){i-=r,r=-r;break}}}function Wy(n,e,t){const r=new zy;t.forEach(function(l){r.put(l.mode.bit,4),r.put(l.getLength(),Py.getCharCountIndicator(l.mode,n)),l.write(r)});const i=pi.getSymbolTotalCodewords(n),a=Sa.getTotalCodewordsCount(n,e),o=(i-a)*8;for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(o-r.getLengthInBits())/8;for(let l=0;l<s;l++)r.put(l%2?17:236,8);return Jy(r,n,e)}function Jy(n,e,t){const r=pi.getSymbolTotalCodewords(e),i=Sa.getTotalCodewordsCount(e,t),a=r-i,o=Sa.getBlocksCount(e,t),s=r%o,l=o-s,c=Math.floor(r/o),u=Math.floor(a/o),p=u+1,m=c-u,h=new My(m);let f=0;const v=new Array(o),g=new Array(o);let k=0;const b=new Uint8Array(n.buffer);for(let E=0;E<o;E++){const $=E<l?u:p;v[E]=b.slice(f,f+$),g[E]=h.encode(v[E]),f+=$,k=Math.max(k,$)}const w=new Uint8Array(r);let S=0,C,x;for(C=0;C<k;C++)for(x=0;x<o;x++)C<v[x].length&&(w[S++]=v[x][C]);for(C=0;C<m;C++)for(x=0;x<o;x++)w[S++]=g[x][C];return w}function qy(n,e,t,r){let i;if(Array.isArray(n))i=Di.fromArray(n);else if(typeof n=="string"){let c=e;if(!c){const u=Di.rawSplit(n);c=qr.getBestVersionForData(u,t)}i=Di.fromString(n,c||40)}else throw new Error("Invalid data");const a=qr.getBestVersionForData(i,t);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
77
77
  The chosen QR Code version cannot contain this amount of data.
78
78
  Minimum version required to store current data is: `+a+`.
79
- `);const o=Ly(e,t,i),s=pi.getSymbolSize(e),l=new By(s);return My(l,e),Py(l),Ny(l,e),Oi(l,t,0),e>=7&&Fy(l,e),Hy(l,o),isNaN(r)&&(r=_a.getBestMask(l,Oi.bind(null,l,t))),_a.applyMask(r,l),Oi(l,t,r),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:r,segments:i}}g0.create=function(n,e){if(typeof n>"u"||n==="")throw new Error("No input text");let t=zi.M,r,i;return typeof e<"u"&&(t=zi.from(e.errorCorrectionLevel,zi.M),r=qr.from(e.version),i=_a.from(e.maskPattern),e.toSJISFunc&&pi.setToSJISFunction(e.toSJISFunc)),Wy(n,r,t,i)};var A0={},So={};(function(n){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let r=t.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+t);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});const r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,a=t.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale},n.getImageWidth=function(t,r){const i=n.getScale(t,r);return Math.floor((t+r.margin*2)*i)},n.qrToImageData=function(t,r,i){const a=r.modules.size,o=r.modules.data,s=n.getScale(a,i),l=Math.floor((a+i.margin*2)*s),c=i.margin*s,u=[i.color.light,i.color.dark];for(let p=0;p<l;p++)for(let m=0;m<l;m++){let h=(p*l+m)*4,f=i.color.light;if(p>=c&&m>=c&&p<l-c&&m<l-c){const v=Math.floor((p-c)/s),g=Math.floor((m-c)/s);f=u[o[v*a+g]?1:0]}t[h++]=f.r,t[h++]=f.g,t[h++]=f.b,t[h]=f.a}}})(So);(function(n){const e=So;function t(i,a,o){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=o,a.width=o,a.style.height=o+"px",a.style.width=o+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(i,a,o){let s=o,l=a;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(l=r()),s=e.getOptions(s);const c=e.getImageWidth(i.modules.size,s),u=l.getContext("2d"),p=u.createImageData(c,c);return e.qrToImageData(p.data,i,s),t(u,l,c),u.putImageData(p,0,0),l},n.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const l=n.render(i,a,s),c=s.type||"image/png",u=s.rendererOpts||{};return l.toDataURL(c,u.quality)}})(A0);var T0={};const Jy=So;function ll(n,e){const t=n.a/255,r=e+'="'+n.hex+'"';return t<1?r+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':r}function Ii(n,e,t){let r=n+e;return typeof t<"u"&&(r+=" "+t),r}function qy(n,e,t){let r="",i=0,a=!1,o=0;for(let s=0;s<n.length;s++){const l=Math.floor(s%e),c=Math.floor(s/e);!l&&!a&&(a=!0),n[s]?(o++,s>0&&l>0&&n[s-1]||(r+=a?Ii("M",l+t,.5+c+t):Ii("m",i,0),i=0,a=!1),l+1<e&&n[s+1]||(r+=Ii("h",o),o=0)):i++}return r}T0.render=function(n,e,t){const r=Jy.getOptions(e),i=n.modules.size,a=n.modules.data,o=i+r.margin*2,s=r.color.light.a?"<path "+ll(r.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",l="<path "+ll(r.color.dark,"stroke")+' d="'+qy(a,i,r.margin)+'"/>',c='viewBox="0 0 '+o+" "+o+'"',u='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+c+' shape-rendering="crispEdges">'+s+l+`</svg>
80
- `;return typeof t=="function"&&t(null,u),u};const Ky=sy,ka=g0,B0=A0,Gy=T0;function ko(n,e,t,r,i){const a=[].slice.call(arguments,1),o=a.length,s=typeof a[o-1]=="function";if(!s&&!Ky())throw new Error("Callback required as last argument");if(s){if(o<2)throw new Error("Too few arguments provided");o===2?(i=t,t=e,e=r=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=t,t=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(t=e,e=r=void 0):o===2&&!e.getContext&&(r=t,t=e,e=void 0),new Promise(function(l,c){try{const u=ka.create(t,r);l(n(u,e,r))}catch(u){c(u)}})}try{const l=ka.create(t,r);i(null,n(l,e,r))}catch(l){i(l)}}ka.create;ko.bind(null,B0.render);ko.bind(null,B0.renderToDataURL);ko.bind(null,function(n,e,t){return Gy.render(n,t)});const Yy={modelValue:{type:Array,default:()=>[]},selectValue:{type:[Object,Array]},uploader:{type:Function},multiple:{type:Boolean},limit:{type:Number},accept:{type:String,default:"image/*,audio/*,video/*,.zip,.svg,.pdf,.json,.docx,.xlsx,.pptx,.doc,.xls,.ppt"},disabled:{type:Boolean},size:{type:String,default:"default"},thumbnail:{type:Function},addable:{type:Boolean,default:!0},removable:{type:Boolean,default:!0},downloadable:{type:Boolean,default:!0},previewable:{type:Boolean,default:!0},selectable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},listType:{type:String,default:"card"}};function jo(n){if(n.type)return n.type;const e=n.name||n.url.split("?")[0],t=e.substring(e.lastIndexOf(".")+1).toLowerCase(),r=["jpg","png","gif","jpeg","bpm","webp","svg"],i=["js","mjs","cjs","ts","jsx","tsx"],a=["css","scss","sass","less"],o=["doc","docx"],s=["xls","xlsx"],l=["ppt","pptx"],c=["zip","rar"],u=["mp4","wmv"],p=["mp3","wma"],m=["pdf","json"];return r.includes(t)?"img":i.includes(t)?"js":a.includes(t)?"css":o.includes(t)?"word":s.includes(t)?"excel":l.includes(t)?"ppt":c.includes(t)?"zip":u.includes(t)?"video":p.includes(t)?"audio":m.includes(t)?t:"unknow"}function Ri(n){return jo(n)==="img"}function Nn(n){const{url:e,type:t,name:r}=n||{};return{url:e,type:t||jo(n),name:r}}const Xy="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='1713229470455'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='22625'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M743.417191%200l280.583066%20283.157223v655.380264a85.204583%2085.204583%200%200%201-85.461998%2085.461998H213.398352A85.204583%2085.204583%200%200%201%20128.708601%20938.537487v-106.570082H42.731771A42.730999%2042.730999%200%200%201%200.000772%20789.236406V426.537744a41.701337%2041.701337%200%200%201%2012.613367-30.117632%2042.473583%2042.473583%200%200%201%2030.117632-12.355951H128.708601V85.204583A85.461998%2085.461998%200%200%201%20213.398352%200z%20m-25.741566%2064.096499H213.398352a21.108084%2021.108084%200%200%200-15.187524%206.177975%2021.622915%2021.622915%200%200%200-6.177975%2014.930109v298.859578h639.935324A42.730999%2042.730999%200%200%201%20875.214007%20426.537744v362.698662a42.730999%2042.730999%200%200%201-42.730999%2042.730999H192.032853v106.570082a21.108084%2021.108084%200%200%200%2021.365499%2021.365499h725.139907a21.108084%2021.108084%200%200%200%2021.3655-21.365499V308.898789l-10.039211-10.296626H823.730876a97.81795%2097.81795%200%200%201-97.81795-98.075366v-128.707829zM191.260606%20467.209418a120.470528%20120.470528%200%200%200-100.392107%2043.245831%20154.449394%20154.449394%200%200%200-30.117632%2099.362443%20154.449394%20154.449394%200%200%200%2029.08797%2099.105029%20121.50019%20121.50019%200%200%200%20102.966263%2042.988414%20116.866708%20116.866708%200%200%200%2077.224697-25.741565%20120.985359%20120.985359%200%200%200%2042.988415-75.165372h-43.760662a85.461998%2085.461998%200%200%201-27.543475%2046.592234%2078.769191%2078.769191%200%200%201-48.136728%2014.415276%2079.541438%2079.541438%200%200%201-66.41324-28.058306%20121.757606%20121.757606%200%200%201-19.56359-74.650541%20118.153787%20118.153787%200%200%201%2020.078421-73.620878%2074.393125%2074.393125%200%200%201%2062.809421-29.087969%2081.343348%2081.343348%200%200%201%2047.107065%2012.355951%2064.096499%2064.096499%200%200%201%2025.741566%2039.642012h43.760662a100.392106%20100.392106%200%200%200-36.038193-66.155824%20122.529853%20122.529853%200%200%200-79.798853-25.741566z%20m258.702735%200a123.559516%20123.559516%200%200%200-72.848631%2019.821006%2064.868746%2064.868746%200%200%200-30.889879%2057.146276%2060.750095%2060.750095%200%200%200%2031.662126%2055.344366%20439.151112%20439.151112%200%200%200%2062.809421%2023.167409%20446.616166%20446.616166%200%200%201%2053.542456%2018.019096%2039.12718%2039.12718%200%200%201%2025.741566%2034.493698%2031.147295%2031.147295%200%200%201-17.76168%2027.28606%2098.590197%2098.590197%200%200%201-47.621897%2010.039211%2085.719414%2085.719414%200%200%201-49.938637-12.098536%2063.324252%2063.324252%200%200%201-22.137747-44.532909h-44.790324a93.441884%2093.441884%200%200%200%2037.840101%2077.224697%20136.94513%20136.94513%200%200%200%2079.026607%2019.56359%20136.687714%20136.687714%200%200%200%2081.343348-21.108084%2068.472565%2068.472565%200%200%200%2028.830554-58.175938%2065.383577%2065.383577%200%200%200-35.780777-59.205601%20418.815275%20418.815275%200%200%200-71.818968-25.741566%20398.479438%20398.479438%200%200%201-46.84965-16.732018A31.40471%2031.40471%200%200%201%20391.272572%20540.572881a29.087969%2029.087969%200%200%201%2016.732017-28.315723%2082.887842%2082.887842%200%200%201%2039.642011-7.465054%2077.224697%2077.224697%200%200%201%2045.305156%2011.068873A61.007511%2061.007511%200%200%201%20514.832087%20553.443663h43.760662a88.036155%2088.036155%200%200%200-32.949204-66.413239%20125.361425%20125.361425%200%200%200-75.680204-19.821006z%20m265.138128%200a123.559516%20123.559516%200%200%200-72.848632%2019.821006%2064.868746%2064.868746%200%200%200-30.889878%2057.146276A60.750095%2060.750095%200%200%200%20643.539916%20599.521066a439.151112%20439.151112%200%200%200%2062.80942%2023.167409%20446.616166%20446.616166%200%200%201%2053.542457%2018.019096%2039.12718%2039.12718%200%200%201%2025.741566%2034.493698%2031.147295%2031.147295%200%200%201-17.761681%2027.28606%2098.590197%2098.590197%200%200%201-47.621896%2010.039211%2085.719414%2085.719414%200%200%201-50.9683-12.098536%2063.324252%2063.324252%200%200%201-22.137747-44.532909h-44.018077a92.412221%2092.412221%200%200%200%2037.582686%2077.224697%20136.94513%20136.94513%200%200%200%2079.026606%2019.56359%20136.687714%20136.687714%200%200%200%2081.343348-21.108084%2068.472565%2068.472565%200%200%200%2028.830554-58.175938%2065.383577%2065.383577%200%200%200-35.780777-59.205601%20418.815275%20418.815275%200%200%200-71.818968-25.741566%20398.479438%20398.479438%200%200%201-46.84965-16.732018A31.40471%2031.40471%200%200%201%20656.410699%20540.572881a29.087969%2029.087969%200%200%201%2016.732017-28.315723%2082.887842%2082.887842%200%200%201%2039.642012-7.465054%2077.224697%2077.224697%200%200%201%2045.305155%2011.068873%2061.007511%2061.007511%200%200%201%2021.108084%2036.553024H823.730876a87.263908%2087.263908%200%200%200-32.949204-66.41324%20125.361425%20125.361425%200%200%200-75.680203-19.821005z'%20fill='%23007BEA'%20p-id='22626'%3e%3c/path%3e%3c/svg%3e",Qy="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='1713229259681'%20class='icon'%20viewBox='0%200%201082%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13779'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='270.5'%20height='256'%3e%3cpath%20d='M1014.941308%20865.332934c-4.506568%2023.309835-32.633769%2023.869271-51.405956%2024.646266-116.673496%200.372957-233.47131-0.186479-350.238046%200v100.884967h-69.929506c-171.591468-31.017621-343.555892-59.735338-515.333838-89.634086V116.869663c172.834659-29.898749%20345.669317-59.362381%20518.379657-89.758406h66.883687v89.634087c112.726363%200%20225.452727%200.248638%20338.148011-0.310798%2019.020826%200.808074%2039.968598-0.559436%2056.53412%2010.753604%2011.592758%2016.627683%2010.225248%2037.668694%2011.002243%2056.65844-0.559436%20194.590505-0.310798%20389.056691-0.186479%20583.460717-0.590516%2032.57161%203.045818%2065.889134-3.853893%2098.025627z%20m-576.840724-547.283852c-25.547579%201.212111-51.126239%202.79718-76.580579%204.568727-18.989746%2046.029155-41.242869%2090.908358-56.067923%20138.522582-13.861582-44.910283-32.229732-88.204417-48.981734-132.026908-24.770585%201.336431-49.54117%202.79718-74.342835%204.25793%2026.138095%2057.404354%2053.954499%20113.969555%2079.3156%20171.684707-29.867669%2056.036844-57.808392%20112.819603-86.743667%20169.198325%2024.677346%201.025633%2049.323611%202.020186%2074.032036%202.393143%2017.528996-44.630565%2039.409162-87.551741%2054.669334-133.02146%2013.737263%2048.826335%2037.078178%2094.016336%2056.192243%20140.791405%2027.163728%201.864787%2054.172057%203.512015%2081.335785%205.128164-31.07978-62.781156-62.718997-125.096116-93.705538-187.877273a21887.624539%2021887.624539%200%200%200%2090.877278-183.619342z%20m546.786577-167.675416H613.297306v67.225565h90.131363v78.445366h-90.131363v44.848123h90.131363v78.445366h-90.131363v44.817043h90.131363v78.414286h-90.131363v44.879203h90.131363v78.445366h-90.131363v44.785963h90.131363v78.445366h-90.131363v67.225565h371.589855V150.373666z%20m-78.787244%20145.670931h-157.667726V217.599231h157.667726v78.445366z%20m0%20123.293489h-157.667726v-78.445366h157.667726v78.445366z%20m0%20123.293489h-157.667726V464.155129h157.667726v78.476446z%20m0%20123.262409h-157.667726v-78.445366h157.667726v78.445366z%20m0%20123.293489h-157.667726v-78.507526h157.667726v78.507526z'%20fill='%23207245'%20p-id='13780'%3e%3c/path%3e%3c/svg%3e",Zy="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='1713229428492'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20525'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M896%20448H128v-384h541.866667v221.866667H896v162.133333z%20m-243.2%20251.733333c-4.266667-8.533333-12.8-12.8-21.333333-17.066666-12.8-4.266667-29.866667-8.533333-42.666667-12.8-17.066667-4.266667-34.133333-8.533333-46.933333-17.066667-12.8-4.266667-21.333333-12.8-25.6-21.333333-4.266667-8.533333-8.533333-21.333333-8.533334-29.866667%200-12.8%204.266667-25.6%2012.8-34.133333%208.533333-12.8%2017.066667-21.333333%2029.866667-25.6%2012.8-4.266667%2029.866667-8.533333%2046.933333-8.533334%2017.066667%200%2034.133333%204.266667%2051.2%208.533334%2012.8%204.266667%2025.6%2012.8%2034.133334%2025.6%208.533333%2012.8%2012.8%2025.6%2012.8%2038.4l-29.866667%204.266666c0-12.8-8.533333-25.6-17.066667-34.133333-12.8-8.533333-29.866667-12.8-42.666666-12.8-17.066667%200-29.866667%204.266667-42.666667%2012.8-8.533333%204.266667-12.8%2017.066667-12.8%2025.6%200%208.533333%204.266667%2017.066667%208.533333%2021.333333%2017.066667%208.533333%2034.133333%2017.066667%2051.2%2017.066667%2017.066667%204.266667%2038.4%208.533333%2055.466667%2017.066667%2012.8%204.266667%2025.6%2012.8%2034.133333%2025.6%208.533333%208.533333%208.533333%2021.333333%208.533334%2034.133333%200%2012.8-4.266667%2025.6-12.8%2038.4-8.533333%2012.8-21.333333%2021.333333-34.133334%2025.6-17.066667%208.533333-29.866667%208.533333-46.933333%208.533333-21.333333%200-38.4-4.266667-55.466667-8.533333-12.8-4.266667-25.6-17.066667-34.133333-29.866667-8.533333-12.8-12.8-29.866667-12.8-46.933333l29.866667-4.266667c0%2012.8%204.266667%2021.333333%208.533333%2029.866667%204.266667%208.533333%2017.066667%2017.066667%2025.6%2021.333333%2012.8%204.266667%2025.6%208.533333%2038.4%208.533334%2012.8%200%2021.333333%200%2034.133333-4.266667%208.533333-4.266667%2017.066667-8.533333%2021.333334-17.066667%204.266667-4.266667%208.533333-12.8%208.533333-21.333333-17.066667-4.266667-21.333333-12.8-25.6-17.066667z%20m-341.333333%2017.066667l29.866666-4.266667c0%2012.8%200%2029.866667%208.533334%2038.4%208.533333%208.533333%2017.066667%2012.8%2025.6%208.533334%208.533333%200%2017.066667%200%2021.333333-4.266667%204.266667-4.266667%208.533333-8.533333%2012.8-17.066667%204.266667-8.533333%204.266667-21.333333%204.266667-29.866666v-174.933334h34.133333v170.666667c0%2017.066667%200%2034.133333-8.533333%2046.933333-4.266667%2012.8-12.8%2021.333333-25.6%2025.6-12.8%204.266667-25.6%208.533333-38.4%208.533334-17.066667%200-38.4-4.266667-51.2-17.066667-8.533333-8.533333-17.066667-29.866667-12.8-51.2zM896%20960H128V896h768v64z%20m64-512V290.133333L669.866667%200H93.866667c-4.266667%200-12.8%204.266667-21.333334%208.533333-4.266667%208.533333-8.533333%2012.8-8.533333%2021.333334v418.133333H0V896h64v98.133333c0%208.533333%204.266667%2017.066667%208.533333%2021.333334%208.533333%204.266667%2012.8%208.533333%2021.333334%208.533333h832c8.533333%200%2017.066667-4.266667%2021.333333-8.533333%204.266667-4.266667%208.533333-12.8%208.533333-21.333334V896H1024V448h-64z'%20fill='%23129C00'%20p-id='20526'%3e%3c/path%3e%3c/svg%3e",eb="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='1713229451017'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='21591'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M1008%20464h-72a8%208%200%200%201-8-8v-141.44a64%2064%200%200%200-18.688-45.376L658.688%2018.688A63.808%2063.808%200%200%200%20613.504%200H144a48%2048%200%200%200-48%2048v408a8%208%200%200%201-8%208H16A16%2016%200%200%200%200%20480v400c0%208.768%207.232%2016%2016%2016H96c0%2035.328%2014.272%2067.328%2037.504%2090.496%2023.168%2023.232%2055.168%2037.504%2090.496%2037.504h656a48%2048%200%200%200%2048-48v-64a16%2016%200%200%201%2016-16h64a16%2016%200%200%200%2016-16V480a16%2016%200%200%200-16-16zM704%20154.496L773.504%20224h-65.536A4.032%204.032%200%200%201%20704%20219.968V154.56zM160%2072c0-4.416%203.584-8%208-8H576a64%2064%200%200%201%2064%2064v144c0%208.832%207.232%2016%2016%2016h144a64%2064%200%200%201%2064%2064v104a8%208%200%200%201-8%208H168a8%208%200%200%201-8-8v-384z%20m492.288%20603.52c0%2032.512-9.472%2058.88-28.416%2079.104-18.88%2020.288-43.648%2030.4-74.24%2030.4-29.952%200-54.208-9.792-72.96-29.44-18.496-19.584-27.904-44.864-27.904-75.776%200-32.704%209.536-59.328%2028.608-79.808%2019.136-20.48%2044.352-30.784%2075.648-30.784%2029.76%200%2053.76%209.856%2072%2029.76%2018.176%2019.84%2027.264%2045.44%2027.264%2076.544z%20m-365.888%2053.248c16.896%2013.952%2035.84%2020.928%2057.28%2020.928%2012.16%200%2021.248-2.112%2027.328-6.272%206.08-4.224%209.216-9.536%209.216-16.128a22.528%2022.528%200%200%200-7.296-16c-4.928-4.992-17.6-11.904-38.4-20.48-32.64-13.824-48.896-33.92-48.896-60.416%200-19.392%207.36-34.56%2022.144-45.184%2014.848-10.688%2034.304-16.128%2058.752-16.128%2020.352%200%2037.44%202.688%2051.264%207.936v41.792a85.504%2085.504%200%200%200-49.216-14.336%2050.176%2050.176%200%200%200-26.24%206.016c-6.656%204.032-9.856%209.408-9.856%2016.128%200%205.376%202.24%2010.368%206.72%2014.848%204.48%204.48%2015.616%2010.752%2033.28%2018.432%2020.736%208.896%2035.008%2018.304%2042.88%2028.16a55.168%2055.168%200%200%201%2011.648%2035.328c0%2020.032-7.104%2035.328-21.312%2045.824-14.208%2010.496-34.368%2015.808-60.48%2015.808-23.936%200-43.52-3.904-58.688-11.648l-0.128-44.608c0.128%200%200%200%200%200z%20m-139.584%208.96c7.68%205.76%2016.512%208.768%2026.368%208.768%2021.44%200%2032.128-16.192%2032.128-48.64V572.736h44.48v126.848h-0.064c0%2027.52-6.4%2048.64-19.136%2063.488-12.672%2014.592-30.912%2022.016-54.592%2022.016a77.44%2077.44%200%200%201-29.184-5.44v-41.856zM864%20952a8%208%200%200%201-8%208H224a64%2064%200%200%201-64-64h696c4.416%200%208%203.584%208%208v48z%20m9.216-170.624h-45.504L739.328%20646.4a162.048%20162.048%200%200%201-10.048-17.024h-0.64c0.768%207.232%201.152%2018.304%201.152%2033.28v118.72h-42.24V572.8h48.576l85.12%20131.2c5.632%208.64%209.024%2014.144%2010.368%2016.576h0.64a199.168%20199.168%200%200%201-1.28-28.8v-119.04h42.24v208.704z%20m-267.392-103.168c0%2020.864-4.8%2037.504-14.528%2049.792-9.728%2012.288-23.296%2018.56-40.704%2018.56a47.744%2047.744%200%200%201-40.32-19.328c-9.792-12.928-14.72-29.504-14.72-49.856%200-20.608%205.056-37.248%2015.04-50.176a49.536%2049.536%200%200%201%2041.216-19.392c17.216%200%2030.464%206.272%2039.872%2018.88%209.408%2012.608%2014.08%2029.824%2014.08%2051.52z'%20fill='%23A0D911'%20p-id='21592'%3e%3c/path%3e%3c/svg%3e",tb="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='1713229295544'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14834'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M535.198324%200h69.53853v95.276816c124.175945%200.677323%20248.351891-1.354647%20373.205159%200.677324a40.6394%2040.6394%200%200%201%2045.154889%2045.154889c1.919083%20234.579649%200%20469.272186%201.128872%20703.851835-1.128872%2024.044979%202.257744%2050.686363-11.288722%2072.022049-17.045971%2012.417595-38.946092%2011.288722-58.814243%2011.288722H604.962628v95.276816h-72.925146C354.917429%20990.924044%20177.458715%20960.557381%200%20928.723184V95.502591C178.361812%2063.555507%20356.836512%2032.51152%20535.198324%200z'%20fill='%23A33639'%20p-id='14835'%3e%3c/path%3e%3cpath%20d='M604.736854%20130.949179h383.816558v762.101642h-383.816558v-95.276816h302.42487v-47.638408H604.736854v-59.491567h302.42487V643.457171H604.736854v-60.056002h302.42487v-47.638409H604.736854v-59.491566h302.42487V428.971447H604.736854v-59.830228h302.42487v-47.638408H604.736854V261.898357h302.42487v597.17341H604.736854z'%20fill='%23FFFFFF'%20p-id='14836'%3e%3c/path%3e%3cpath%20d='M645.489141%20529.66685h302.424871v47.638409H645.489141zM645.489141%20611.510087h302.424871v47.638408H645.489141zM645.489141%20693.353324h302.424871v47.638408H645.489141zM596.383199%20775.19656h351.530813v47.638409H596.383199z'%20fill='%23A33639'%20p-id='14837'%3e%3c/path%3e%3cpath%20d='M180.619557%20317.325984c59.265792%202.822181%20130.949179-24.044979%20180.619557%2021.335685%2046.961085%2058.475582%2034.54349%20165.831331-35.107927%20200.713483-24.722302%2012.982031-53.169882%2011.288722-80.037041%2010.272737v130.949179L180.619557%20675.065594c-0.903098-119.208908-1.128872-238.530702%200-357.73961z'%20fill='%23FFFFFF'%20p-id='14838'%3e%3c/path%3e%3cpath%20d='M245.642597%20377.720648c21.448572-1.015985%2048.089957-5.079925%2062.539522%2015.578437a82.407673%2082.407673%200%200%201%201.467534%2073.263808c-12.417595%2022.577445-40.526513%2020.771249-62.313747%2023.367655-2.257744-37.365671-2.03197-74.731342-1.693309-112.2099zM885.713152%20379.865505a83.988094%2083.988094%200%200%201-48.315732-19.642376%20460.57987%20460.57987%200%200%200-77.666409%2024.835189c-20.3197%2036.011024-39.171866%2054.411641-55.540514%2054.411641a17.384632%2017.384632%200%200%201-9.821188-2.596406%2019.416602%2019.416602%200%200%201-11.288723-17.723294c0-5.870136%201.354647-22.577445%2063.329733-49.105942a467.917539%20467.917539%200%200%200%2034.656377-81.278801c-7.902106-15.691324-24.835189-54.298754-13.094918-73.941131a20.658362%2020.658362%200%200%201%2020.206813-10.498511%2021.900121%2021.900121%200%200%201%2017.045971%208.466541c8.466542%2011.288722%207.789218%2036.688347-3.27373%2073.376695A196.988204%20196.988204%200%200%200%20842.70312%20338.661669a221.14607%20221.14607%200%200%201%2041.090949-4.515489c30.705325%200.677323%2035.333701%2015.014001%2034.656377%2023.59343%200%2022.577445-21.56146%2022.577445-32.624407%2022.577444z%20m-185.022159%2042.106935l2.257745-0.564436a45.154889%2045.154889%200%200%200%2023.932091-16.820197%2056.443612%2056.443612%200%200%200-26.189836%2017.384633z%20m93.357734-200.261934h-2.144858a4.402602%204.402602%200%200%200-2.82218%200.677323%2052.492559%2052.492559%200%200%200%204.176827%2033.866167%2053.282769%2053.282769%200%200%200%200.790211-34.54349zM790.210561%20317.551758v1.24176l-0.677323-0.677324c-5.418587%2014.336677-11.288722%2028.44758-18.061956%2042.332709l1.128872-0.677323V361.239114A346.338%20346.338%200%200%201%20812.788006%20348.595745l-0.677324-0.564436h1.806196a196.310881%20196.310881%200%200%201-23.706317-30.479551z%20m94.599493%2034.769265a66.151913%2066.151913%200%200%200-18.174843%201.693308%2050.686363%2050.686363%200%200%200%2020.997024%206.660347%2026.076949%2026.076949%200%200%200%2013.885128-1.580422c-0.451549-2.596406-3.273729-6.773233-17.158858-6.773233z'%20fill='%23A33639'%20p-id='14839'%3e%3c/path%3e%3c/svg%3e",nb="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='1713229322104'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16865'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M538.731891%200h65.98683v107.168391c124.387582%200.722484%20248.895579-1.324553%20373.28316%200a40.699906%2040.699906%200%200%201%2045.034808%2046.118533c2.047037%20222.404516%200%20444.929445%201.204139%20667.454374-1.204139%2024.082785%202.287865%2050.694262-11.198495%2072.248354-16.978363%2012.041392-39.014111%2010.957667-59.002822%2012.041392-116.319849-0.60207-232.639699%200-349.200376%200V1023.518344h-72.248354C355.100659%20990.886171%20177.490122%20960.662277%200%20928.752587V95.488241C179.537159%2063.698965%20359.074318%2031.30762%20538.731891%200z'%20fill='%23D24625'%20p-id='16866'%3e%3c/path%3e%3cpath%20d='M604.718721%20142.931326H988.598307v726.216369H604.718721v-95.247413h279.239887v-47.563499H604.718721v-60.206962h279.239887v-46.96143H604.839135v-69.960489c46.118532%2014.570085%2098.619003%2014.208843%20139.800564-14.088429%2044.553151-27.093133%2067.793039-78.630292%2071.646284-130.047036H663.119473c0-51.777987%200.60207-103.555974-0.963311-155.213547-19.145814%203.732832-38.171214%207.826905-57.196614%2012.041392z'%20fill='%23FFFFFF'%20p-id='16867'%3e%3c/path%3e%3cpath%20d='M686.35936%20224.69238a165.689558%20165.689558%200%200%201%20153.16651%20156.5381c-51.055503%200.60207-102.111007%200-153.286924%200%200.120414-52.380056%200.120414-104.278457%200.120414-156.5381z'%20fill='%23D24625'%20p-id='16868'%3e%3c/path%3e%3cpath%20d='M186.64158%20314.521167c63.21731%203.130762%20139.680151-25.527752%20192.662277%2022.878645%2050.092192%2062.374412%2036.84666%20176.888053-37.44873%20214.095955-26.370649%2013.847601-56.714958%2012.041392-85.373471%2010.957667v139.68015l-69.238006-5.900282c-1.806209-127.157103-2.047037-254.434619-0.60207-381.712135z'%20fill='%23FFFFFF'%20p-id='16869'%3e%3c/path%3e%3cpath%20d='M255.759172%20378.942615c22.878645-0.963311%2051.296331-5.298213%2066.709313%2016.737536a87.902164%2087.902164%200%200%201%201.565381%2078.148635c-13.245532%2024.082785-43.228598%2022.035748-66.468485%2024.925682-2.408278-39.857008-2.167451-79.714017-1.806209-119.811853z'%20fill='%23D24625'%20p-id='16870'%3e%3c/path%3e%3c/svg%3e",rb="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='1713229667944'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='29126'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M604.672%20142.848h384v726.528h-384V142.848z'%20fill='%23FFFFFF'%20p-id='29127'%3e%3c/path%3e%3cpath%20d='M1022.976%20154.112c2.56-22.528-12.8-42.496-35.328-45.568-3.072-0.512-6.656-0.512-9.728%200-123.904-2.048-248.832%200-373.248%200V0h-65.536C358.912%2031.232%20179.712%2063.488%200%2095.744v833.024c177.664%2031.744%20355.328%2061.952%20532.48%2094.72h72.192v-118.784h349.184c19.968-1.024%2041.984%200.512%2058.88-12.288%2013.312-21.504%2010.24-48.128%2011.264-72.192-1.536-221.184%201.024-443.904-1.024-666.112z%20m-34.304%20715.264h-384V142.848h384v726.528z'%20fill='%238199AF'%20p-id='29128'%3e%3c/path%3e%3cpath%20d='M252.928%20590.848c1.024-19.968%205.632-37.376%2013.824-52.736%208.192-15.36%2023.04-30.72%2044.544-46.592%2016.896-13.312%2028.672-23.04%2034.816-29.696%206.144-6.656%2011.264-13.824%2014.848-21.504%203.584-7.68%205.12-15.872%205.12-24.576%200-18.944-5.632-33.28-16.896-43.008-11.264-9.728-27.136-14.336-46.592-14.336s-35.328%205.632-47.616%2016.896c-12.288%2011.264-19.456%2028.16-20.992%2050.176l-73.728-2.56c4.608-37.888%2018.944-67.072%2044.032-87.04%2025.088-19.968%2057.856-30.208%2098.304-30.208%2043.008%200%2076.288%209.216%20100.352%2027.648%2024.064%2018.432%2035.84%2044.544%2035.84%2078.848%200%2018.944-4.608%2036.352-13.824%2052.224-9.216%2016.384-25.088%2033.28-48.64%2050.688l-20.48%2015.36c-24.576%2018.944-37.376%2038.912-37.888%2060.928H252.928z%20m-5.12%20114.688V640H327.68v66.048H247.808z'%20fill='%23FCFCFC'%20p-id='29129'%3e%3c/path%3e%3c/svg%3e",ib="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='1713229195392'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8195'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M535.119473%200h69.599248v95.247413C729.226717%2096.331138%20853.614299%2093.92286%20977.881468%2096.331138a40.459078%2040.459078%200%200%201%2044.914393%2045.516463c2.047037%20234.566322%200%20469.614299%201.204139%20703.819379-1.204139%2024.082785%202.287865%2050.694262-11.318909%2072.248354-16.978363%2012.041392-38.893697%2010.837253-58.761994%2012.041392h-349.200376V1023.518344h-72.248354C354.980245%20990.886171%20177.490122%20960.541863%200%20928.752587V95.488241C178.33302%2063.578551%20356.786453%2032.511759%20535.119473%200z'%20fill='%232A5699'%20p-id='8196'%3e%3c/path%3e%3cpath%20d='M604.718721%20131.010348H988.598307v761.979304H604.718721v-95.247413h302.479774v-48.165569H604.718721v-59.002822h302.479774v-48.16557H604.718721v-59.002822h302.479774v-48.165569H604.718721v-60.206961h302.479774V428.673565H604.718721v-60.206961h302.479774v-46.96143H604.718721v-59.604892h302.479774V214.336783H604.718721zM240.827846%20341.373471c22.156162-1.324553%2044.19191-2.287865%2066.348071-3.492003%2015.533396%2080.4365%2031.30762%20160.632173%2048.165569%20240.827845%2013.125118-82.724365%2027.695202-165.087488%2041.783632-247.571025%2023.239887-0.842897%2046.479774-2.167451%2069.719661-3.612418-26.370649%20115.356538-49.369708%20231.796802-78.148636%20346.430856-19.386642%2010.355597-48.165569%200-71.52587%201.204139C301.034807%20596.169332%20283.093133%20517.779868%20269.245532%20438.667921c-13.606773%2076.944497-31.30762%20153.16651-46.841016%20229.508937-22.39699-1.204139-44.793979-2.528692-67.311383-4.094073-19.266228-104.760113-42.024459-208.918156-60.206962-313.919097%2019.868297-0.963311%2039.857008-1.806209%2060.206962-2.528693%2012.041392%2075.860771%2025.648166%20151.360301%2036.124177%20227.341487%2016.135466-77.907808%2032.873001-155.695202%2049.610536-233.603011z'%20fill='%23FFFFFF'%20p-id='8197'%3e%3c/path%3e%3c/svg%3e",ab="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='1713229493469'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23652'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M192.065027%20384.129533h640.128032a42.536025%2042.536025%200%200%201%2042.536025%2042.536025v362.730519a42.796982%2042.796982%200%200%201-42.536025%2042.796982H192.065027V939.446472a20.354662%2020.354662%200%200%200%206.262973%2015.135518%2021.659448%2021.659448%200%200%200%2015.135518%206.262973H939.446472a21.398491%2021.398491%200%200%200%2021.398491-21.398491V308.973857l-10.177331-10.177332h-127.347118a98.11991%2098.11991%200%200%201-97.858953-98.11991V72.546626l-8.611588-8.611588H213.463518a21.659448%2021.659448%200%200%200-15.135518%206.262973%2020.876577%2020.876577%200%200%200-6.262973%2015.135518zM128.130511%20832.193059H42.797504A42.796982%2042.796982%200%200%201%200.000522%20789.396077v-362.730519a41.753153%2041.753153%200%200%201%2012.525946-30.010079%2042.536025%2042.536025%200%200%201%2030.271036-12.525946h85.333007V85.333529A85.07205%2085.07205%200%200%201%20213.463518%200.000522h530.004091l280.528999%20282.355699V939.446472A84.550136%2084.550136%200%200%201%20939.446472%201023.996608H213.463518A84.550136%2084.550136%200%200%201%20128.130511%20939.446472z%20m32.619651-359.599033v38.36071h146.918909l-158.401026%20200.415136v35.229223h225.988943v-38.36071H208.766289l156.574325-199.893221v-35.751138z%20m251.040835%200v274.005069h44.88464v-274.005069z%20m98.641824%200v274.005069h45.145598v-104.382883h67.848874c66.805045%200%20100.207568-28.444336%20100.207568-84.811093s-33.402523-84.028221-99.424697-84.028221z%20m45.145598%2038.36071h65.239302a69.675575%2069.675575%200%200%201%2043.318896%2010.699245%2041.492196%2041.492196%200%200%201%2014.352647%2034.968266%2042.536025%2042.536025%200%200%201-13.830732%2035.751138%2073.589933%2073.589933%200%200%201-43.579854%2010.699245h-65.239302z'%20fill='%23007BEA'%20p-id='23653'%3e%3c/path%3e%3c/svg%3e",ob="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='1713254049146'%20class='icon'%20viewBox='0%200%201718%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3440'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='429.5'%20height='256'%3e%3cpath%20d='M1137.358398%20222.43912v-44.412335h-44.412336V0H536.219192c-37.995823%200-66.807224%2028.937216-66.807225%2066.807224v314.534956h22.143261V66.807224c0-24.65954%2020.004423-44.663964%2044.663964-44.663963h534.206167v177.775156h44.663964v44.663964h178.026785v712.610395c0%2024.65954-20.004423%2044.663964-44.663964%2044.663963H536.219192c-24.65954%200-44.663964-20.004423-44.663964-44.663963V470.670107h-22.143261v486.522669c0%2037.995823%2028.937216%2066.807224%2066.807225%2066.807224h712.232952c37.995823%200%2066.807224-28.937216%2066.807224-66.807224v-734.753656H1137.358398z'%20fill='%239FA0A6'%20p-id='3441'%3e%3c/path%3e%3cpath%20d='M558.362452%20890.385551h667.946431v44.663964H558.362452v-44.663964z%20m0-111.21956h667.946431v44.663964H558.362452v-44.663964z%20m0-111.471188h667.946431v44.663963H558.362452v-44.663963z%20m0%200'%20fill='%239FA0A6'%20p-id='3442'%3e%3c/path%3e%3cpath%20d='M803.196461%20111.21956h-356.053569c-24.282099%200-44.412336%2020.004423-44.663963%2044.412336v356.431011c0%2024.65954%2020.004423%2044.663964%2044.663963%2044.663964h356.053569c24.65954%200%2044.663964-20.004423%2044.663964-44.663964v-356.053569c0.125814-24.785354-20.004423-44.789778-44.663964-44.789778zM656.497358%20429.403121c-24.911168%203.019536-44.663964-9.813491-44.663963-30.95024%200-20.381865%2020.381865-40.13466%2044.663963-43.154196%2016.73326-2.138838%2026.420936%203.648605%2026.420937%203.648606V280.690994c0-9.813491-10.694188-6.039071-10.694189-6.039071L580.254085%20304.595651s-10.694188%203.648605-10.694188%2012.833026v97.505836c0%2020.381865-18.243027%2040.13466-43.154196%2043.154196-24.911168%203.648605-44.663964-9.184421-44.663964-29.440472%200-20.381865%2019.752795-40.13466%2044.663964-43.783266%2016.73326-2.138838%2024.407913%203.019536%2024.407912%203.019536v-113.987468c0-12.833026%209.813491-26.420936%2022.772331-30.069542l104.299791-33.089077c12.833026-3.648605%2022.772331%203.648605%2022.772331%2017.362329v158.651432h0.62907l0.125814-0.251628c-0.251628%2020.004423-20.507679%2039.883032-44.915592%2042.902568z'%20fill='%23A40FA8'%20p-id='3443'%3e%3c/path%3e%3c/svg%3e",sb="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='1713253996768'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M1000.207102%20340.239099c0-59.250945-14.250227-116.376855-57.125911-161.252571-40.875652-42.875684-79.626269-87.751399-124.501985-122.501953C785.828684%2029.984153%20740.952969%205.483762%20702.202351%203.358729%20555.200007-2.766369%20408.197664%201.358697%20261.320322%201.358697c-40.875652%202.000032-71.50114%2026.500422-73.501171%2065.376042-2.000032%2051.000813%200%20104.12666%200%20155.127473h59.250944c0-42.875684%202.000032-83.751335%200-124.501985%200-24.500391%208.12513-34.750554%2034.750554-34.750554h410.256541c6.125098%200%2012.250195%202.000032%2022.500358%206.125098v224.503579h230.628677c0%20218.378481%200%20432.756899-4.125066%20645.010283%200%2028.625456-20.375325%2026.500422-38.750617%2026.500422H281.695647c-26.500422%200-40.875652-6.125098-38.750618-34.750554%202.000032-10.250163-2.000032-18.375293-2.000032-26.500422h-55.125878c-4.125066%2089.876433%2018.375293%20120.376919%2089.751431%20120.376919H912.455703c61.250976%200%2087.751399-26.500422%2087.751399-87.751399%200-197.878155%202.000032-397.881343%200-595.8845z%20m-226.628613-108.251726V101.360291l130.627082%20130.627082H773.578489z'%20fill='%23B85884'%20p-id='2359'%3e%3c/path%3e%3cpath%20d='M628.701179%20687.244631h234.753743v61.250977H628.701179zM634.826277%20411.615237h228.628645v65.376042H634.826277zM630.701211%20550.492451h234.753743v61.250977H630.701211zM22.441514%20311.613643v536.883559h538.883591V311.613643H22.441514z%20m94.251503%20499.382961H59.942112V754.245699h56.750905v56.750905z%20m0-135.127154H59.942112V619.243547h56.750905v56.625903z%20m0-135.002152H59.942112v-56.750905h56.750905v56.750905z%20m0-135.002153H59.942112v-56.750904h56.750905v56.750904z%20m299.629776%20201.128207l-184.877947%20106.751702c-20.750331%2012.000191-46.750745-3.000048-46.750745-27.000431V473.366222c0-24.000383%2026.000415-39.000622%2046.750745-27.000431l184.877947%20106.751702c20.750331%2012.000191%2020.750331%2041.875668%200%2053.875859z%20m107.501714%20204.003252h-56.750904V754.245699h56.750904v56.750905z%20m0-135.127154h-56.750904V619.243547h56.750904v56.625903z%20m0-135.002152h-56.750904v-56.750905h56.750904v56.750905z%20m0-135.002153h-56.750904v-56.750904h56.750904v56.750904z'%20fill='%23B85884'%20p-id='2360'%3e%3c/path%3e%3c/svg%3e",lb={css:Xy,excel:Qy,js:Zy,json:eb,pdf:tb,ppt:nb,unknow:rb,word:ib,zip:ab,audio:ob,video:sb},cb={class:"x-attachment__upload"},ub=["onClick"],db={class:"x-attachment__wrapper"},pb=["src"],hb=["title"],mb={key:0,class:"x-attachment__item-name"},fb={class:"el-upload-list__item-url"},vb={key:0,class:"el-upload-list__item-actions"},gb=["onClick"],yb=["onClick"],bb=["onClick"],wb=I({name:"XAttachment",__name:"Attachment",props:Yy,emits:["click","preview","remove","download","select","change","update:modelValue","update:selectValue"],setup(n,{expose:e,emit:t}){const r=m5(),i=n,a=t,o=D(!1),s=D(),l=D(Symbol()),c=D(!1),u=D(0),p=D([]),m=z(()=>({[`x-attachment--${i.listType}`]:!!i.listType,"is-disabled":!!i.disabled,"is-pointer":!!i.clickable||!!i.selectable,"is-not-add":!i.addable||i.limit===h.value.length,[`is-${i.size}`]:!!i.size})),h=D([]),f=z(()=>h.value.filter(A=>Ri(A)).map(A=>A.url)),v=z(()=>i.removable||i.previewable||i.downloadable),g=A=>{const N=jo(A.response||A);return N==="img"?i.thumbnail?i.thumbnail(A):A.url:lb[N]},k=z(()=>({autoUpload:!0,limit:i.limit,disabled:o.value||i.disabled,multiple:i.multiple,accept:i.accept,listType:{card:"picture-card",list:"picture"}[i.listType]}));oe(()=>i.modelValue,A=>{h.value=en(A||[])},{immediate:!0}),oe(()=>i.selectValue,A=>{p.value=[].concat(en(A||[]))},{immediate:!0});const b=(A,N)=>{xn.warning({message:`您选择的文件数量超过了限制,只允许上传${i.limit}个文件。`})},x=async A=>{const N=i.uploader||r.uploader;if(N){o.value=!0;const O=A.file,U=await N(O).catch(()=>null);if(!U){const Z=h.value.findIndex(Q=>Q.uid===O.uid);Z>-1&&(h.value.splice(Z,1),xn.error({message:`文件${O.name}上传失败。`}))}return o.value=!1,typeof U=="string"?{url:U}:U}},S=A=>{const N=p.value.findIndex(O=>O.url===A.url);N>-1?i.multiple?p.value.splice(N,1):p.value=[]:i.multiple?p.value.push(Nn(A.response||A)):p.value=[Nn(A.response||A)],a("select",p.value),a("update:selectValue",i.multiple?p.value:p.value[0])},V=A=>{const N=p.value.findIndex(O=>O.url===A.url);N>-1&&p.value.splice(N,1)},w=A=>!!p.value.find(N=>N.url===A.url),$=A=>{i.clickable&&a("click",Nn(A.response||A)),i.selectable&&S(A)},E=async(A,N)=>{if(N.every(O=>O.status==="success")&&N.length===h.value.length){const O=h.value.map(U=>Nn(U.response||U));a("change",O),a("update:modelValue",O),l.value=Symbol()}},J=async A=>{if(!await Xr.confirm("确定删除文件?","提示",{type:"warning"}).catch(()=>!1))return;const N=h.value.filter(O=>O.uid!==A.uid||O.url!==A.url).map(O=>Nn(O.response||O));h.value=N,a("remove",A),a("change",N),a("update:modelValue",N),V(A),l.value=Symbol()},T=A=>{u5(A.url,A.name).catch(()=>{nl(A.url,A.name)}),a("download",A)},B=A=>{Ri(A)?(u.value=f.value.findIndex(N=>N===A.url),c.value=!0):nl(A.url,A.name),a("preview",A)},F=()=>{c.value=!1};return e({elUploadRef:s,remove:J,download:T,selections:p,fileList:h}),(A,N)=>(y(),M("div",{class:ce(["x-attachment",m.value])},[(y(),C(d(wl),me({ref_key:"elUploadRef",ref:s,key:l.value,"file-list":h.value,"onUpdate:fileList":N[0]||(N[0]=O=>h.value=O)},k.value,{"on-exceed":b,"on-change":E,"http-request":x}),{file:j(({file:O})=>[ft((y(),M("div",{class:ce(["x-attachment__item",{"is-selected":w(O.response||O)}]),onClick:U=>$(O.response||O)},[P("div",db,[P("img",{class:ce(["el-upload-list__item-thumbnail",{"is-icon":!d(Ri)(O.response||O)}]),src:g(O.response||O)},null,10,pb),P("div",{class:"el-upload-list__item-name",title:(O.response||O).url},[O.name?(y(),M("span",mb,te((O.response||O).name),1)):R("",!0),P("span",fb,te((O.response||O).url),1)],8,hb)]),v.value?(y(),M("div",vb,[i.previewable?(y(),M("span",{key:0,onClick:U=>B(O.response||O),class:"el-upload-list__item-preview"},[_(d(Fn),null,{default:j(()=>[_(d(B2))]),_:1})],8,gb)):R("",!0),i.downloadable?(y(),M("span",{key:1,onClick:U=>T(O.response||O),class:"el-upload-list__item-delete"},[_(d(Fn),null,{default:j(()=>[_(d(z2))]),_:1})],8,yb)):R("",!0),i.removable&&!i.disabled?(y(),M("span",{key:2,onClick:U=>J(O),class:"el-upload-list__item-delete"},[_(d(Fn),null,{default:j(()=>[_(d(Cl))]),_:1})],8,bb)):R("",!0)])):R("",!0)],10,ub)),[[d(l2),O.status==="ready"||O.status==="uploading"]])]),tip:j(()=>[de(A.$slots,"tip")]),default:j(()=>[P("div",cb,[_(d(Fn),null,{default:j(()=>[_(d(Vl))]),_:1})])]),_:3},16,["file-list"])),i.previewable&&c.value?(y(),C(d(c2),{key:0,"hide-on-click-modal":"",teleported:"","url-list":f.value,"initial-index":u.value,onClose:F},null,8,["url-list","initial-index"])):R("",!0)],2))}});/**!
79
+ `);const o=Wy(e,t,i),s=pi.getSymbolSize(e),l=new Dy(s);return Ny(l,e),Fy(l),Hy(l,e),Oi(l,t,0),e>=7&&Ly(l,e),Uy(l,o),isNaN(r)&&(r=_a.getBestMask(l,Oi.bind(null,l,t))),_a.applyMask(r,l),Oi(l,t,r),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:r,segments:i}}g0.create=function(n,e){if(typeof n>"u"||n==="")throw new Error("No input text");let t=zi.M,r,i;return typeof e<"u"&&(t=zi.from(e.errorCorrectionLevel,zi.M),r=qr.from(e.version),i=_a.from(e.maskPattern),e.toSJISFunc&&pi.setToSJISFunction(e.toSJISFunc)),qy(n,r,t,i)};var A0={},So={};(function(n){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let r=t.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+t);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});const r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,a=t.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale},n.getImageWidth=function(t,r){const i=n.getScale(t,r);return Math.floor((t+r.margin*2)*i)},n.qrToImageData=function(t,r,i){const a=r.modules.size,o=r.modules.data,s=n.getScale(a,i),l=Math.floor((a+i.margin*2)*s),c=i.margin*s,u=[i.color.light,i.color.dark];for(let p=0;p<l;p++)for(let m=0;m<l;m++){let h=(p*l+m)*4,f=i.color.light;if(p>=c&&m>=c&&p<l-c&&m<l-c){const v=Math.floor((p-c)/s),g=Math.floor((m-c)/s);f=u[o[v*a+g]?1:0]}t[h++]=f.r,t[h++]=f.g,t[h++]=f.b,t[h]=f.a}}})(So);(function(n){const e=So;function t(i,a,o){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=o,a.width=o,a.style.height=o+"px",a.style.width=o+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(i,a,o){let s=o,l=a;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(l=r()),s=e.getOptions(s);const c=e.getImageWidth(i.modules.size,s),u=l.getContext("2d"),p=u.createImageData(c,c);return e.qrToImageData(p.data,i,s),t(u,l,c),u.putImageData(p,0,0),l},n.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const l=n.render(i,a,s),c=s.type||"image/png",u=s.rendererOpts||{};return l.toDataURL(c,u.quality)}})(A0);var T0={};const Ky=So;function ll(n,e){const t=n.a/255,r=e+'="'+n.hex+'"';return t<1?r+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':r}function Ii(n,e,t){let r=n+e;return typeof t<"u"&&(r+=" "+t),r}function Gy(n,e,t){let r="",i=0,a=!1,o=0;for(let s=0;s<n.length;s++){const l=Math.floor(s%e),c=Math.floor(s/e);!l&&!a&&(a=!0),n[s]?(o++,s>0&&l>0&&n[s-1]||(r+=a?Ii("M",l+t,.5+c+t):Ii("m",i,0),i=0,a=!1),l+1<e&&n[s+1]||(r+=Ii("h",o),o=0)):i++}return r}T0.render=function(n,e,t){const r=Ky.getOptions(e),i=n.modules.size,a=n.modules.data,o=i+r.margin*2,s=r.color.light.a?"<path "+ll(r.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",l="<path "+ll(r.color.dark,"stroke")+' d="'+Gy(a,i,r.margin)+'"/>',c='viewBox="0 0 '+o+" "+o+'"',u='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+c+' shape-rendering="crispEdges">'+s+l+`</svg>
80
+ `;return typeof t=="function"&&t(null,u),u};const Yy=cy,ka=g0,B0=A0,Xy=T0;function ko(n,e,t,r,i){const a=[].slice.call(arguments,1),o=a.length,s=typeof a[o-1]=="function";if(!s&&!Yy())throw new Error("Callback required as last argument");if(s){if(o<2)throw new Error("Too few arguments provided");o===2?(i=t,t=e,e=r=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=t,t=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(t=e,e=r=void 0):o===2&&!e.getContext&&(r=t,t=e,e=void 0),new Promise(function(l,c){try{const u=ka.create(t,r);l(n(u,e,r))}catch(u){c(u)}})}try{const l=ka.create(t,r);i(null,n(l,e,r))}catch(l){i(l)}}ka.create;ko.bind(null,B0.render);ko.bind(null,B0.renderToDataURL);ko.bind(null,function(n,e,t){return Xy.render(n,t)});const Qy={modelValue:{type:Array,default:()=>[]},selectValue:{type:[Object,Array]},uploader:{type:Function},multiple:{type:Boolean},limit:{type:Number},accept:{type:String,default:"image/*,audio/*,video/*,.zip,.svg,.pdf,.json,.docx,.xlsx,.pptx,.doc,.xls,.ppt"},disabled:{type:Boolean},size:{type:String,default:"default"},thumbnail:{type:Function},addable:{type:Boolean,default:!0},removable:{type:Boolean,default:!0},downloadable:{type:Boolean,default:!0},previewable:{type:Boolean,default:!0},selectable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},listType:{type:String,default:"card"}};function jo(n){if(n.type)return n.type;const e=n.name||n.url.split("?")[0],t=e.substring(e.lastIndexOf(".")+1).toLowerCase(),r=["jpg","png","gif","jpeg","bpm","webp","svg"],i=["js","mjs","cjs","ts","jsx","tsx"],a=["css","scss","sass","less"],o=["doc","docx"],s=["xls","xlsx"],l=["ppt","pptx"],c=["zip","rar"],u=["mp4","wmv"],p=["mp3","wma"],m=["pdf","json"];return r.includes(t)?"img":i.includes(t)?"js":a.includes(t)?"css":o.includes(t)?"word":s.includes(t)?"excel":l.includes(t)?"ppt":c.includes(t)?"zip":u.includes(t)?"video":p.includes(t)?"audio":m.includes(t)?t:"unknow"}function Mi(n){return jo(n)==="img"}function Nn(n){const{url:e,type:t,name:r}=n||{};return{url:e,type:t||jo(n),name:r}}const Zy="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='1713229470455'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='22625'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M743.417191%200l280.583066%20283.157223v655.380264a85.204583%2085.204583%200%200%201-85.461998%2085.461998H213.398352A85.204583%2085.204583%200%200%201%20128.708601%20938.537487v-106.570082H42.731771A42.730999%2042.730999%200%200%201%200.000772%20789.236406V426.537744a41.701337%2041.701337%200%200%201%2012.613367-30.117632%2042.473583%2042.473583%200%200%201%2030.117632-12.355951H128.708601V85.204583A85.461998%2085.461998%200%200%201%20213.398352%200z%20m-25.741566%2064.096499H213.398352a21.108084%2021.108084%200%200%200-15.187524%206.177975%2021.622915%2021.622915%200%200%200-6.177975%2014.930109v298.859578h639.935324A42.730999%2042.730999%200%200%201%20875.214007%20426.537744v362.698662a42.730999%2042.730999%200%200%201-42.730999%2042.730999H192.032853v106.570082a21.108084%2021.108084%200%200%200%2021.365499%2021.365499h725.139907a21.108084%2021.108084%200%200%200%2021.3655-21.365499V308.898789l-10.039211-10.296626H823.730876a97.81795%2097.81795%200%200%201-97.81795-98.075366v-128.707829zM191.260606%20467.209418a120.470528%20120.470528%200%200%200-100.392107%2043.245831%20154.449394%20154.449394%200%200%200-30.117632%2099.362443%20154.449394%20154.449394%200%200%200%2029.08797%2099.105029%20121.50019%20121.50019%200%200%200%20102.966263%2042.988414%20116.866708%20116.866708%200%200%200%2077.224697-25.741565%20120.985359%20120.985359%200%200%200%2042.988415-75.165372h-43.760662a85.461998%2085.461998%200%200%201-27.543475%2046.592234%2078.769191%2078.769191%200%200%201-48.136728%2014.415276%2079.541438%2079.541438%200%200%201-66.41324-28.058306%20121.757606%20121.757606%200%200%201-19.56359-74.650541%20118.153787%20118.153787%200%200%201%2020.078421-73.620878%2074.393125%2074.393125%200%200%201%2062.809421-29.087969%2081.343348%2081.343348%200%200%201%2047.107065%2012.355951%2064.096499%2064.096499%200%200%201%2025.741566%2039.642012h43.760662a100.392106%20100.392106%200%200%200-36.038193-66.155824%20122.529853%20122.529853%200%200%200-79.798853-25.741566z%20m258.702735%200a123.559516%20123.559516%200%200%200-72.848631%2019.821006%2064.868746%2064.868746%200%200%200-30.889879%2057.146276%2060.750095%2060.750095%200%200%200%2031.662126%2055.344366%20439.151112%20439.151112%200%200%200%2062.809421%2023.167409%20446.616166%20446.616166%200%200%201%2053.542456%2018.019096%2039.12718%2039.12718%200%200%201%2025.741566%2034.493698%2031.147295%2031.147295%200%200%201-17.76168%2027.28606%2098.590197%2098.590197%200%200%201-47.621897%2010.039211%2085.719414%2085.719414%200%200%201-49.938637-12.098536%2063.324252%2063.324252%200%200%201-22.137747-44.532909h-44.790324a93.441884%2093.441884%200%200%200%2037.840101%2077.224697%20136.94513%20136.94513%200%200%200%2079.026607%2019.56359%20136.687714%20136.687714%200%200%200%2081.343348-21.108084%2068.472565%2068.472565%200%200%200%2028.830554-58.175938%2065.383577%2065.383577%200%200%200-35.780777-59.205601%20418.815275%20418.815275%200%200%200-71.818968-25.741566%20398.479438%20398.479438%200%200%201-46.84965-16.732018A31.40471%2031.40471%200%200%201%20391.272572%20540.572881a29.087969%2029.087969%200%200%201%2016.732017-28.315723%2082.887842%2082.887842%200%200%201%2039.642011-7.465054%2077.224697%2077.224697%200%200%201%2045.305156%2011.068873A61.007511%2061.007511%200%200%201%20514.832087%20553.443663h43.760662a88.036155%2088.036155%200%200%200-32.949204-66.413239%20125.361425%20125.361425%200%200%200-75.680204-19.821006z%20m265.138128%200a123.559516%20123.559516%200%200%200-72.848632%2019.821006%2064.868746%2064.868746%200%200%200-30.889878%2057.146276A60.750095%2060.750095%200%200%200%20643.539916%20599.521066a439.151112%20439.151112%200%200%200%2062.80942%2023.167409%20446.616166%20446.616166%200%200%201%2053.542457%2018.019096%2039.12718%2039.12718%200%200%201%2025.741566%2034.493698%2031.147295%2031.147295%200%200%201-17.761681%2027.28606%2098.590197%2098.590197%200%200%201-47.621896%2010.039211%2085.719414%2085.719414%200%200%201-50.9683-12.098536%2063.324252%2063.324252%200%200%201-22.137747-44.532909h-44.018077a92.412221%2092.412221%200%200%200%2037.582686%2077.224697%20136.94513%20136.94513%200%200%200%2079.026606%2019.56359%20136.687714%20136.687714%200%200%200%2081.343348-21.108084%2068.472565%2068.472565%200%200%200%2028.830554-58.175938%2065.383577%2065.383577%200%200%200-35.780777-59.205601%20418.815275%20418.815275%200%200%200-71.818968-25.741566%20398.479438%20398.479438%200%200%201-46.84965-16.732018A31.40471%2031.40471%200%200%201%20656.410699%20540.572881a29.087969%2029.087969%200%200%201%2016.732017-28.315723%2082.887842%2082.887842%200%200%201%2039.642012-7.465054%2077.224697%2077.224697%200%200%201%2045.305155%2011.068873%2061.007511%2061.007511%200%200%201%2021.108084%2036.553024H823.730876a87.263908%2087.263908%200%200%200-32.949204-66.41324%20125.361425%20125.361425%200%200%200-75.680203-19.821005z'%20fill='%23007BEA'%20p-id='22626'%3e%3c/path%3e%3c/svg%3e",eb="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='1713229259681'%20class='icon'%20viewBox='0%200%201082%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13779'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='270.5'%20height='256'%3e%3cpath%20d='M1014.941308%20865.332934c-4.506568%2023.309835-32.633769%2023.869271-51.405956%2024.646266-116.673496%200.372957-233.47131-0.186479-350.238046%200v100.884967h-69.929506c-171.591468-31.017621-343.555892-59.735338-515.333838-89.634086V116.869663c172.834659-29.898749%20345.669317-59.362381%20518.379657-89.758406h66.883687v89.634087c112.726363%200%20225.452727%200.248638%20338.148011-0.310798%2019.020826%200.808074%2039.968598-0.559436%2056.53412%2010.753604%2011.592758%2016.627683%2010.225248%2037.668694%2011.002243%2056.65844-0.559436%20194.590505-0.310798%20389.056691-0.186479%20583.460717-0.590516%2032.57161%203.045818%2065.889134-3.853893%2098.025627z%20m-576.840724-547.283852c-25.547579%201.212111-51.126239%202.79718-76.580579%204.568727-18.989746%2046.029155-41.242869%2090.908358-56.067923%20138.522582-13.861582-44.910283-32.229732-88.204417-48.981734-132.026908-24.770585%201.336431-49.54117%202.79718-74.342835%204.25793%2026.138095%2057.404354%2053.954499%20113.969555%2079.3156%20171.684707-29.867669%2056.036844-57.808392%20112.819603-86.743667%20169.198325%2024.677346%201.025633%2049.323611%202.020186%2074.032036%202.393143%2017.528996-44.630565%2039.409162-87.551741%2054.669334-133.02146%2013.737263%2048.826335%2037.078178%2094.016336%2056.192243%20140.791405%2027.163728%201.864787%2054.172057%203.512015%2081.335785%205.128164-31.07978-62.781156-62.718997-125.096116-93.705538-187.877273a21887.624539%2021887.624539%200%200%200%2090.877278-183.619342z%20m546.786577-167.675416H613.297306v67.225565h90.131363v78.445366h-90.131363v44.848123h90.131363v78.445366h-90.131363v44.817043h90.131363v78.414286h-90.131363v44.879203h90.131363v78.445366h-90.131363v44.785963h90.131363v78.445366h-90.131363v67.225565h371.589855V150.373666z%20m-78.787244%20145.670931h-157.667726V217.599231h157.667726v78.445366z%20m0%20123.293489h-157.667726v-78.445366h157.667726v78.445366z%20m0%20123.293489h-157.667726V464.155129h157.667726v78.476446z%20m0%20123.262409h-157.667726v-78.445366h157.667726v78.445366z%20m0%20123.293489h-157.667726v-78.507526h157.667726v78.507526z'%20fill='%23207245'%20p-id='13780'%3e%3c/path%3e%3c/svg%3e",tb="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='1713229428492'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20525'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M896%20448H128v-384h541.866667v221.866667H896v162.133333z%20m-243.2%20251.733333c-4.266667-8.533333-12.8-12.8-21.333333-17.066666-12.8-4.266667-29.866667-8.533333-42.666667-12.8-17.066667-4.266667-34.133333-8.533333-46.933333-17.066667-12.8-4.266667-21.333333-12.8-25.6-21.333333-4.266667-8.533333-8.533333-21.333333-8.533334-29.866667%200-12.8%204.266667-25.6%2012.8-34.133333%208.533333-12.8%2017.066667-21.333333%2029.866667-25.6%2012.8-4.266667%2029.866667-8.533333%2046.933333-8.533334%2017.066667%200%2034.133333%204.266667%2051.2%208.533334%2012.8%204.266667%2025.6%2012.8%2034.133334%2025.6%208.533333%2012.8%2012.8%2025.6%2012.8%2038.4l-29.866667%204.266666c0-12.8-8.533333-25.6-17.066667-34.133333-12.8-8.533333-29.866667-12.8-42.666666-12.8-17.066667%200-29.866667%204.266667-42.666667%2012.8-8.533333%204.266667-12.8%2017.066667-12.8%2025.6%200%208.533333%204.266667%2017.066667%208.533333%2021.333333%2017.066667%208.533333%2034.133333%2017.066667%2051.2%2017.066667%2017.066667%204.266667%2038.4%208.533333%2055.466667%2017.066667%2012.8%204.266667%2025.6%2012.8%2034.133333%2025.6%208.533333%208.533333%208.533333%2021.333333%208.533334%2034.133333%200%2012.8-4.266667%2025.6-12.8%2038.4-8.533333%2012.8-21.333333%2021.333333-34.133334%2025.6-17.066667%208.533333-29.866667%208.533333-46.933333%208.533333-21.333333%200-38.4-4.266667-55.466667-8.533333-12.8-4.266667-25.6-17.066667-34.133333-29.866667-8.533333-12.8-12.8-29.866667-12.8-46.933333l29.866667-4.266667c0%2012.8%204.266667%2021.333333%208.533333%2029.866667%204.266667%208.533333%2017.066667%2017.066667%2025.6%2021.333333%2012.8%204.266667%2025.6%208.533333%2038.4%208.533334%2012.8%200%2021.333333%200%2034.133333-4.266667%208.533333-4.266667%2017.066667-8.533333%2021.333334-17.066667%204.266667-4.266667%208.533333-12.8%208.533333-21.333333-17.066667-4.266667-21.333333-12.8-25.6-17.066667z%20m-341.333333%2017.066667l29.866666-4.266667c0%2012.8%200%2029.866667%208.533334%2038.4%208.533333%208.533333%2017.066667%2012.8%2025.6%208.533334%208.533333%200%2017.066667%200%2021.333333-4.266667%204.266667-4.266667%208.533333-8.533333%2012.8-17.066667%204.266667-8.533333%204.266667-21.333333%204.266667-29.866666v-174.933334h34.133333v170.666667c0%2017.066667%200%2034.133333-8.533333%2046.933333-4.266667%2012.8-12.8%2021.333333-25.6%2025.6-12.8%204.266667-25.6%208.533333-38.4%208.533334-17.066667%200-38.4-4.266667-51.2-17.066667-8.533333-8.533333-17.066667-29.866667-12.8-51.2zM896%20960H128V896h768v64z%20m64-512V290.133333L669.866667%200H93.866667c-4.266667%200-12.8%204.266667-21.333334%208.533333-4.266667%208.533333-8.533333%2012.8-8.533333%2021.333334v418.133333H0V896h64v98.133333c0%208.533333%204.266667%2017.066667%208.533333%2021.333334%208.533333%204.266667%2012.8%208.533333%2021.333334%208.533333h832c8.533333%200%2017.066667-4.266667%2021.333333-8.533333%204.266667-4.266667%208.533333-12.8%208.533333-21.333334V896H1024V448h-64z'%20fill='%23129C00'%20p-id='20526'%3e%3c/path%3e%3c/svg%3e",nb="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='1713229451017'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='21591'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M1008%20464h-72a8%208%200%200%201-8-8v-141.44a64%2064%200%200%200-18.688-45.376L658.688%2018.688A63.808%2063.808%200%200%200%20613.504%200H144a48%2048%200%200%200-48%2048v408a8%208%200%200%201-8%208H16A16%2016%200%200%200%200%20480v400c0%208.768%207.232%2016%2016%2016H96c0%2035.328%2014.272%2067.328%2037.504%2090.496%2023.168%2023.232%2055.168%2037.504%2090.496%2037.504h656a48%2048%200%200%200%2048-48v-64a16%2016%200%200%201%2016-16h64a16%2016%200%200%200%2016-16V480a16%2016%200%200%200-16-16zM704%20154.496L773.504%20224h-65.536A4.032%204.032%200%200%201%20704%20219.968V154.56zM160%2072c0-4.416%203.584-8%208-8H576a64%2064%200%200%201%2064%2064v144c0%208.832%207.232%2016%2016%2016h144a64%2064%200%200%201%2064%2064v104a8%208%200%200%201-8%208H168a8%208%200%200%201-8-8v-384z%20m492.288%20603.52c0%2032.512-9.472%2058.88-28.416%2079.104-18.88%2020.288-43.648%2030.4-74.24%2030.4-29.952%200-54.208-9.792-72.96-29.44-18.496-19.584-27.904-44.864-27.904-75.776%200-32.704%209.536-59.328%2028.608-79.808%2019.136-20.48%2044.352-30.784%2075.648-30.784%2029.76%200%2053.76%209.856%2072%2029.76%2018.176%2019.84%2027.264%2045.44%2027.264%2076.544z%20m-365.888%2053.248c16.896%2013.952%2035.84%2020.928%2057.28%2020.928%2012.16%200%2021.248-2.112%2027.328-6.272%206.08-4.224%209.216-9.536%209.216-16.128a22.528%2022.528%200%200%200-7.296-16c-4.928-4.992-17.6-11.904-38.4-20.48-32.64-13.824-48.896-33.92-48.896-60.416%200-19.392%207.36-34.56%2022.144-45.184%2014.848-10.688%2034.304-16.128%2058.752-16.128%2020.352%200%2037.44%202.688%2051.264%207.936v41.792a85.504%2085.504%200%200%200-49.216-14.336%2050.176%2050.176%200%200%200-26.24%206.016c-6.656%204.032-9.856%209.408-9.856%2016.128%200%205.376%202.24%2010.368%206.72%2014.848%204.48%204.48%2015.616%2010.752%2033.28%2018.432%2020.736%208.896%2035.008%2018.304%2042.88%2028.16a55.168%2055.168%200%200%201%2011.648%2035.328c0%2020.032-7.104%2035.328-21.312%2045.824-14.208%2010.496-34.368%2015.808-60.48%2015.808-23.936%200-43.52-3.904-58.688-11.648l-0.128-44.608c0.128%200%200%200%200%200z%20m-139.584%208.96c7.68%205.76%2016.512%208.768%2026.368%208.768%2021.44%200%2032.128-16.192%2032.128-48.64V572.736h44.48v126.848h-0.064c0%2027.52-6.4%2048.64-19.136%2063.488-12.672%2014.592-30.912%2022.016-54.592%2022.016a77.44%2077.44%200%200%201-29.184-5.44v-41.856zM864%20952a8%208%200%200%201-8%208H224a64%2064%200%200%201-64-64h696c4.416%200%208%203.584%208%208v48z%20m9.216-170.624h-45.504L739.328%20646.4a162.048%20162.048%200%200%201-10.048-17.024h-0.64c0.768%207.232%201.152%2018.304%201.152%2033.28v118.72h-42.24V572.8h48.576l85.12%20131.2c5.632%208.64%209.024%2014.144%2010.368%2016.576h0.64a199.168%20199.168%200%200%201-1.28-28.8v-119.04h42.24v208.704z%20m-267.392-103.168c0%2020.864-4.8%2037.504-14.528%2049.792-9.728%2012.288-23.296%2018.56-40.704%2018.56a47.744%2047.744%200%200%201-40.32-19.328c-9.792-12.928-14.72-29.504-14.72-49.856%200-20.608%205.056-37.248%2015.04-50.176a49.536%2049.536%200%200%201%2041.216-19.392c17.216%200%2030.464%206.272%2039.872%2018.88%209.408%2012.608%2014.08%2029.824%2014.08%2051.52z'%20fill='%23A0D911'%20p-id='21592'%3e%3c/path%3e%3c/svg%3e",rb="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='1713229295544'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14834'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M535.198324%200h69.53853v95.276816c124.175945%200.677323%20248.351891-1.354647%20373.205159%200.677324a40.6394%2040.6394%200%200%201%2045.154889%2045.154889c1.919083%20234.579649%200%20469.272186%201.128872%20703.851835-1.128872%2024.044979%202.257744%2050.686363-11.288722%2072.022049-17.045971%2012.417595-38.946092%2011.288722-58.814243%2011.288722H604.962628v95.276816h-72.925146C354.917429%20990.924044%20177.458715%20960.557381%200%20928.723184V95.502591C178.361812%2063.555507%20356.836512%2032.51152%20535.198324%200z'%20fill='%23A33639'%20p-id='14835'%3e%3c/path%3e%3cpath%20d='M604.736854%20130.949179h383.816558v762.101642h-383.816558v-95.276816h302.42487v-47.638408H604.736854v-59.491567h302.42487V643.457171H604.736854v-60.056002h302.42487v-47.638409H604.736854v-59.491566h302.42487V428.971447H604.736854v-59.830228h302.42487v-47.638408H604.736854V261.898357h302.42487v597.17341H604.736854z'%20fill='%23FFFFFF'%20p-id='14836'%3e%3c/path%3e%3cpath%20d='M645.489141%20529.66685h302.424871v47.638409H645.489141zM645.489141%20611.510087h302.424871v47.638408H645.489141zM645.489141%20693.353324h302.424871v47.638408H645.489141zM596.383199%20775.19656h351.530813v47.638409H596.383199z'%20fill='%23A33639'%20p-id='14837'%3e%3c/path%3e%3cpath%20d='M180.619557%20317.325984c59.265792%202.822181%20130.949179-24.044979%20180.619557%2021.335685%2046.961085%2058.475582%2034.54349%20165.831331-35.107927%20200.713483-24.722302%2012.982031-53.169882%2011.288722-80.037041%2010.272737v130.949179L180.619557%20675.065594c-0.903098-119.208908-1.128872-238.530702%200-357.73961z'%20fill='%23FFFFFF'%20p-id='14838'%3e%3c/path%3e%3cpath%20d='M245.642597%20377.720648c21.448572-1.015985%2048.089957-5.079925%2062.539522%2015.578437a82.407673%2082.407673%200%200%201%201.467534%2073.263808c-12.417595%2022.577445-40.526513%2020.771249-62.313747%2023.367655-2.257744-37.365671-2.03197-74.731342-1.693309-112.2099zM885.713152%20379.865505a83.988094%2083.988094%200%200%201-48.315732-19.642376%20460.57987%20460.57987%200%200%200-77.666409%2024.835189c-20.3197%2036.011024-39.171866%2054.411641-55.540514%2054.411641a17.384632%2017.384632%200%200%201-9.821188-2.596406%2019.416602%2019.416602%200%200%201-11.288723-17.723294c0-5.870136%201.354647-22.577445%2063.329733-49.105942a467.917539%20467.917539%200%200%200%2034.656377-81.278801c-7.902106-15.691324-24.835189-54.298754-13.094918-73.941131a20.658362%2020.658362%200%200%201%2020.206813-10.498511%2021.900121%2021.900121%200%200%201%2017.045971%208.466541c8.466542%2011.288722%207.789218%2036.688347-3.27373%2073.376695A196.988204%20196.988204%200%200%200%20842.70312%20338.661669a221.14607%20221.14607%200%200%201%2041.090949-4.515489c30.705325%200.677323%2035.333701%2015.014001%2034.656377%2023.59343%200%2022.577445-21.56146%2022.577445-32.624407%2022.577444z%20m-185.022159%2042.106935l2.257745-0.564436a45.154889%2045.154889%200%200%200%2023.932091-16.820197%2056.443612%2056.443612%200%200%200-26.189836%2017.384633z%20m93.357734-200.261934h-2.144858a4.402602%204.402602%200%200%200-2.82218%200.677323%2052.492559%2052.492559%200%200%200%204.176827%2033.866167%2053.282769%2053.282769%200%200%200%200.790211-34.54349zM790.210561%20317.551758v1.24176l-0.677323-0.677324c-5.418587%2014.336677-11.288722%2028.44758-18.061956%2042.332709l1.128872-0.677323V361.239114A346.338%20346.338%200%200%201%20812.788006%20348.595745l-0.677324-0.564436h1.806196a196.310881%20196.310881%200%200%201-23.706317-30.479551z%20m94.599493%2034.769265a66.151913%2066.151913%200%200%200-18.174843%201.693308%2050.686363%2050.686363%200%200%200%2020.997024%206.660347%2026.076949%2026.076949%200%200%200%2013.885128-1.580422c-0.451549-2.596406-3.273729-6.773233-17.158858-6.773233z'%20fill='%23A33639'%20p-id='14839'%3e%3c/path%3e%3c/svg%3e",ib="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='1713229322104'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16865'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M538.731891%200h65.98683v107.168391c124.387582%200.722484%20248.895579-1.324553%20373.28316%200a40.699906%2040.699906%200%200%201%2045.034808%2046.118533c2.047037%20222.404516%200%20444.929445%201.204139%20667.454374-1.204139%2024.082785%202.287865%2050.694262-11.198495%2072.248354-16.978363%2012.041392-39.014111%2010.957667-59.002822%2012.041392-116.319849-0.60207-232.639699%200-349.200376%200V1023.518344h-72.248354C355.100659%20990.886171%20177.490122%20960.662277%200%20928.752587V95.488241C179.537159%2063.698965%20359.074318%2031.30762%20538.731891%200z'%20fill='%23D24625'%20p-id='16866'%3e%3c/path%3e%3cpath%20d='M604.718721%20142.931326H988.598307v726.216369H604.718721v-95.247413h279.239887v-47.563499H604.718721v-60.206962h279.239887v-46.96143H604.839135v-69.960489c46.118532%2014.570085%2098.619003%2014.208843%20139.800564-14.088429%2044.553151-27.093133%2067.793039-78.630292%2071.646284-130.047036H663.119473c0-51.777987%200.60207-103.555974-0.963311-155.213547-19.145814%203.732832-38.171214%207.826905-57.196614%2012.041392z'%20fill='%23FFFFFF'%20p-id='16867'%3e%3c/path%3e%3cpath%20d='M686.35936%20224.69238a165.689558%20165.689558%200%200%201%20153.16651%20156.5381c-51.055503%200.60207-102.111007%200-153.286924%200%200.120414-52.380056%200.120414-104.278457%200.120414-156.5381z'%20fill='%23D24625'%20p-id='16868'%3e%3c/path%3e%3cpath%20d='M186.64158%20314.521167c63.21731%203.130762%20139.680151-25.527752%20192.662277%2022.878645%2050.092192%2062.374412%2036.84666%20176.888053-37.44873%20214.095955-26.370649%2013.847601-56.714958%2012.041392-85.373471%2010.957667v139.68015l-69.238006-5.900282c-1.806209-127.157103-2.047037-254.434619-0.60207-381.712135z'%20fill='%23FFFFFF'%20p-id='16869'%3e%3c/path%3e%3cpath%20d='M255.759172%20378.942615c22.878645-0.963311%2051.296331-5.298213%2066.709313%2016.737536a87.902164%2087.902164%200%200%201%201.565381%2078.148635c-13.245532%2024.082785-43.228598%2022.035748-66.468485%2024.925682-2.408278-39.857008-2.167451-79.714017-1.806209-119.811853z'%20fill='%23D24625'%20p-id='16870'%3e%3c/path%3e%3c/svg%3e",ab="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='1713229667944'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='29126'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M604.672%20142.848h384v726.528h-384V142.848z'%20fill='%23FFFFFF'%20p-id='29127'%3e%3c/path%3e%3cpath%20d='M1022.976%20154.112c2.56-22.528-12.8-42.496-35.328-45.568-3.072-0.512-6.656-0.512-9.728%200-123.904-2.048-248.832%200-373.248%200V0h-65.536C358.912%2031.232%20179.712%2063.488%200%2095.744v833.024c177.664%2031.744%20355.328%2061.952%20532.48%2094.72h72.192v-118.784h349.184c19.968-1.024%2041.984%200.512%2058.88-12.288%2013.312-21.504%2010.24-48.128%2011.264-72.192-1.536-221.184%201.024-443.904-1.024-666.112z%20m-34.304%20715.264h-384V142.848h384v726.528z'%20fill='%238199AF'%20p-id='29128'%3e%3c/path%3e%3cpath%20d='M252.928%20590.848c1.024-19.968%205.632-37.376%2013.824-52.736%208.192-15.36%2023.04-30.72%2044.544-46.592%2016.896-13.312%2028.672-23.04%2034.816-29.696%206.144-6.656%2011.264-13.824%2014.848-21.504%203.584-7.68%205.12-15.872%205.12-24.576%200-18.944-5.632-33.28-16.896-43.008-11.264-9.728-27.136-14.336-46.592-14.336s-35.328%205.632-47.616%2016.896c-12.288%2011.264-19.456%2028.16-20.992%2050.176l-73.728-2.56c4.608-37.888%2018.944-67.072%2044.032-87.04%2025.088-19.968%2057.856-30.208%2098.304-30.208%2043.008%200%2076.288%209.216%20100.352%2027.648%2024.064%2018.432%2035.84%2044.544%2035.84%2078.848%200%2018.944-4.608%2036.352-13.824%2052.224-9.216%2016.384-25.088%2033.28-48.64%2050.688l-20.48%2015.36c-24.576%2018.944-37.376%2038.912-37.888%2060.928H252.928z%20m-5.12%20114.688V640H327.68v66.048H247.808z'%20fill='%23FCFCFC'%20p-id='29129'%3e%3c/path%3e%3c/svg%3e",ob="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='1713229195392'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8195'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M535.119473%200h69.599248v95.247413C729.226717%2096.331138%20853.614299%2093.92286%20977.881468%2096.331138a40.459078%2040.459078%200%200%201%2044.914393%2045.516463c2.047037%20234.566322%200%20469.614299%201.204139%20703.819379-1.204139%2024.082785%202.287865%2050.694262-11.318909%2072.248354-16.978363%2012.041392-38.893697%2010.837253-58.761994%2012.041392h-349.200376V1023.518344h-72.248354C354.980245%20990.886171%20177.490122%20960.541863%200%20928.752587V95.488241C178.33302%2063.578551%20356.786453%2032.511759%20535.119473%200z'%20fill='%232A5699'%20p-id='8196'%3e%3c/path%3e%3cpath%20d='M604.718721%20131.010348H988.598307v761.979304H604.718721v-95.247413h302.479774v-48.165569H604.718721v-59.002822h302.479774v-48.16557H604.718721v-59.002822h302.479774v-48.165569H604.718721v-60.206961h302.479774V428.673565H604.718721v-60.206961h302.479774v-46.96143H604.718721v-59.604892h302.479774V214.336783H604.718721zM240.827846%20341.373471c22.156162-1.324553%2044.19191-2.287865%2066.348071-3.492003%2015.533396%2080.4365%2031.30762%20160.632173%2048.165569%20240.827845%2013.125118-82.724365%2027.695202-165.087488%2041.783632-247.571025%2023.239887-0.842897%2046.479774-2.167451%2069.719661-3.612418-26.370649%20115.356538-49.369708%20231.796802-78.148636%20346.430856-19.386642%2010.355597-48.165569%200-71.52587%201.204139C301.034807%20596.169332%20283.093133%20517.779868%20269.245532%20438.667921c-13.606773%2076.944497-31.30762%20153.16651-46.841016%20229.508937-22.39699-1.204139-44.793979-2.528692-67.311383-4.094073-19.266228-104.760113-42.024459-208.918156-60.206962-313.919097%2019.868297-0.963311%2039.857008-1.806209%2060.206962-2.528693%2012.041392%2075.860771%2025.648166%20151.360301%2036.124177%20227.341487%2016.135466-77.907808%2032.873001-155.695202%2049.610536-233.603011z'%20fill='%23FFFFFF'%20p-id='8197'%3e%3c/path%3e%3c/svg%3e",sb="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='1713229493469'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23652'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M192.065027%20384.129533h640.128032a42.536025%2042.536025%200%200%201%2042.536025%2042.536025v362.730519a42.796982%2042.796982%200%200%201-42.536025%2042.796982H192.065027V939.446472a20.354662%2020.354662%200%200%200%206.262973%2015.135518%2021.659448%2021.659448%200%200%200%2015.135518%206.262973H939.446472a21.398491%2021.398491%200%200%200%2021.398491-21.398491V308.973857l-10.177331-10.177332h-127.347118a98.11991%2098.11991%200%200%201-97.858953-98.11991V72.546626l-8.611588-8.611588H213.463518a21.659448%2021.659448%200%200%200-15.135518%206.262973%2020.876577%2020.876577%200%200%200-6.262973%2015.135518zM128.130511%20832.193059H42.797504A42.796982%2042.796982%200%200%201%200.000522%20789.396077v-362.730519a41.753153%2041.753153%200%200%201%2012.525946-30.010079%2042.536025%2042.536025%200%200%201%2030.271036-12.525946h85.333007V85.333529A85.07205%2085.07205%200%200%201%20213.463518%200.000522h530.004091l280.528999%20282.355699V939.446472A84.550136%2084.550136%200%200%201%20939.446472%201023.996608H213.463518A84.550136%2084.550136%200%200%201%20128.130511%20939.446472z%20m32.619651-359.599033v38.36071h146.918909l-158.401026%20200.415136v35.229223h225.988943v-38.36071H208.766289l156.574325-199.893221v-35.751138z%20m251.040835%200v274.005069h44.88464v-274.005069z%20m98.641824%200v274.005069h45.145598v-104.382883h67.848874c66.805045%200%20100.207568-28.444336%20100.207568-84.811093s-33.402523-84.028221-99.424697-84.028221z%20m45.145598%2038.36071h65.239302a69.675575%2069.675575%200%200%201%2043.318896%2010.699245%2041.492196%2041.492196%200%200%201%2014.352647%2034.968266%2042.536025%2042.536025%200%200%201-13.830732%2035.751138%2073.589933%2073.589933%200%200%201-43.579854%2010.699245h-65.239302z'%20fill='%23007BEA'%20p-id='23653'%3e%3c/path%3e%3c/svg%3e",lb="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='1713254049146'%20class='icon'%20viewBox='0%200%201718%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3440'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='429.5'%20height='256'%3e%3cpath%20d='M1137.358398%20222.43912v-44.412335h-44.412336V0H536.219192c-37.995823%200-66.807224%2028.937216-66.807225%2066.807224v314.534956h22.143261V66.807224c0-24.65954%2020.004423-44.663964%2044.663964-44.663963h534.206167v177.775156h44.663964v44.663964h178.026785v712.610395c0%2024.65954-20.004423%2044.663964-44.663964%2044.663963H536.219192c-24.65954%200-44.663964-20.004423-44.663964-44.663963V470.670107h-22.143261v486.522669c0%2037.995823%2028.937216%2066.807224%2066.807225%2066.807224h712.232952c37.995823%200%2066.807224-28.937216%2066.807224-66.807224v-734.753656H1137.358398z'%20fill='%239FA0A6'%20p-id='3441'%3e%3c/path%3e%3cpath%20d='M558.362452%20890.385551h667.946431v44.663964H558.362452v-44.663964z%20m0-111.21956h667.946431v44.663964H558.362452v-44.663964z%20m0-111.471188h667.946431v44.663963H558.362452v-44.663963z%20m0%200'%20fill='%239FA0A6'%20p-id='3442'%3e%3c/path%3e%3cpath%20d='M803.196461%20111.21956h-356.053569c-24.282099%200-44.412336%2020.004423-44.663963%2044.412336v356.431011c0%2024.65954%2020.004423%2044.663964%2044.663963%2044.663964h356.053569c24.65954%200%2044.663964-20.004423%2044.663964-44.663964v-356.053569c0.125814-24.785354-20.004423-44.789778-44.663964-44.789778zM656.497358%20429.403121c-24.911168%203.019536-44.663964-9.813491-44.663963-30.95024%200-20.381865%2020.381865-40.13466%2044.663963-43.154196%2016.73326-2.138838%2026.420936%203.648605%2026.420937%203.648606V280.690994c0-9.813491-10.694188-6.039071-10.694189-6.039071L580.254085%20304.595651s-10.694188%203.648605-10.694188%2012.833026v97.505836c0%2020.381865-18.243027%2040.13466-43.154196%2043.154196-24.911168%203.648605-44.663964-9.184421-44.663964-29.440472%200-20.381865%2019.752795-40.13466%2044.663964-43.783266%2016.73326-2.138838%2024.407913%203.019536%2024.407912%203.019536v-113.987468c0-12.833026%209.813491-26.420936%2022.772331-30.069542l104.299791-33.089077c12.833026-3.648605%2022.772331%203.648605%2022.772331%2017.362329v158.651432h0.62907l0.125814-0.251628c-0.251628%2020.004423-20.507679%2039.883032-44.915592%2042.902568z'%20fill='%23A40FA8'%20p-id='3443'%3e%3c/path%3e%3c/svg%3e",cb="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='1713253996768'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M1000.207102%20340.239099c0-59.250945-14.250227-116.376855-57.125911-161.252571-40.875652-42.875684-79.626269-87.751399-124.501985-122.501953C785.828684%2029.984153%20740.952969%205.483762%20702.202351%203.358729%20555.200007-2.766369%20408.197664%201.358697%20261.320322%201.358697c-40.875652%202.000032-71.50114%2026.500422-73.501171%2065.376042-2.000032%2051.000813%200%20104.12666%200%20155.127473h59.250944c0-42.875684%202.000032-83.751335%200-124.501985%200-24.500391%208.12513-34.750554%2034.750554-34.750554h410.256541c6.125098%200%2012.250195%202.000032%2022.500358%206.125098v224.503579h230.628677c0%20218.378481%200%20432.756899-4.125066%20645.010283%200%2028.625456-20.375325%2026.500422-38.750617%2026.500422H281.695647c-26.500422%200-40.875652-6.125098-38.750618-34.750554%202.000032-10.250163-2.000032-18.375293-2.000032-26.500422h-55.125878c-4.125066%2089.876433%2018.375293%20120.376919%2089.751431%20120.376919H912.455703c61.250976%200%2087.751399-26.500422%2087.751399-87.751399%200-197.878155%202.000032-397.881343%200-595.8845z%20m-226.628613-108.251726V101.360291l130.627082%20130.627082H773.578489z'%20fill='%23B85884'%20p-id='2359'%3e%3c/path%3e%3cpath%20d='M628.701179%20687.244631h234.753743v61.250977H628.701179zM634.826277%20411.615237h228.628645v65.376042H634.826277zM630.701211%20550.492451h234.753743v61.250977H630.701211zM22.441514%20311.613643v536.883559h538.883591V311.613643H22.441514z%20m94.251503%20499.382961H59.942112V754.245699h56.750905v56.750905z%20m0-135.127154H59.942112V619.243547h56.750905v56.625903z%20m0-135.002152H59.942112v-56.750905h56.750905v56.750905z%20m0-135.002153H59.942112v-56.750904h56.750905v56.750904z%20m299.629776%20201.128207l-184.877947%20106.751702c-20.750331%2012.000191-46.750745-3.000048-46.750745-27.000431V473.366222c0-24.000383%2026.000415-39.000622%2046.750745-27.000431l184.877947%20106.751702c20.750331%2012.000191%2020.750331%2041.875668%200%2053.875859z%20m107.501714%20204.003252h-56.750904V754.245699h56.750904v56.750905z%20m0-135.127154h-56.750904V619.243547h56.750904v56.625903z%20m0-135.002152h-56.750904v-56.750905h56.750904v56.750905z%20m0-135.002153h-56.750904v-56.750904h56.750904v56.750904z'%20fill='%23B85884'%20p-id='2360'%3e%3c/path%3e%3c/svg%3e",ub={css:Zy,excel:eb,js:tb,json:nb,pdf:rb,ppt:ib,unknow:ab,word:ob,zip:sb,audio:lb,video:cb},db={class:"x-attachment__upload"},pb=["onClick"],hb={class:"x-attachment__wrapper"},mb=["src"],fb=["title"],vb={key:0,class:"x-attachment__item-name"},gb={class:"el-upload-list__item-url"},yb={key:0,class:"el-upload-list__item-actions"},bb=["onClick"],wb=["onClick"],xb=["onClick"],_b=I({name:"XAttachment",__name:"Attachment",props:Qy,emits:["click","preview","remove","download","select","change","update:modelValue","update:selectValue"],setup(n,{expose:e,emit:t}){const r=f5(),i=n,a=t,o=D(!1),s=D(),l=D(Symbol()),c=D(!1),u=D(0),p=D([]),m=z(()=>({[`x-attachment--${i.listType}`]:!!i.listType,"is-disabled":!!i.disabled,"is-pointer":!!i.clickable||!!i.selectable,"is-not-add":!i.addable||i.limit===h.value.length,[`is-${i.size}`]:!!i.size})),h=D([]),f=z(()=>h.value.filter(A=>Mi(A)).map(A=>A.url)),v=z(()=>i.removable||i.previewable||i.downloadable),g=A=>{const N=jo(A.response||A);return N==="img"?i.thumbnail?i.thumbnail(A):A.url:ub[N]},k=z(()=>({autoUpload:!0,limit:i.limit,disabled:o.value||i.disabled,multiple:i.multiple,accept:i.accept,listType:{card:"picture-card",list:"picture"}[i.listType]}));oe(()=>i.modelValue,A=>{h.value=tn(A||[])},{immediate:!0}),oe(()=>i.selectValue,A=>{p.value=[].concat(tn(A||[]))},{immediate:!0});const b=(A,N)=>{xn.warning({message:`您选择的文件数量超过了限制,只允许上传${i.limit}个文件。`})},w=async A=>{const N=i.uploader||r.uploader;if(N){o.value=!0;const O=A.file,W=await N(O).catch(()=>null);if(!W){const Z=h.value.findIndex(Q=>Q.uid===O.uid);Z>-1&&(h.value.splice(Z,1),xn.error({message:`文件${O.name}上传失败。`}))}return o.value=!1,typeof W=="string"?{url:W}:W}},S=A=>{const N=p.value.findIndex(O=>O.url===A.url);N>-1?i.multiple?p.value.splice(N,1):p.value=[]:i.multiple?p.value.push(Nn(A.response||A)):p.value=[Nn(A.response||A)],a("select",p.value),a("update:selectValue",i.multiple?p.value:p.value[0])},C=A=>{const N=p.value.findIndex(O=>O.url===A.url);N>-1&&p.value.splice(N,1)},x=A=>!!p.value.find(N=>N.url===A.url),E=A=>{i.clickable&&a("click",Nn(A.response||A)),i.selectable&&S(A)},$=async(A,N)=>{if(N.every(O=>O.status==="success")&&N.length===h.value.length){const O=h.value.map(W=>Nn(W.response||W));a("change",O),a("update:modelValue",O),l.value=Symbol()}},U=async A=>{if(!await Xr.confirm("确定删除文件?","提示",{type:"warning"}).catch(()=>!1))return;const N=h.value.filter(O=>O.uid!==A.uid||O.url!==A.url).map(O=>Nn(O.response||O));h.value=N,a("remove",A),a("change",N),a("update:modelValue",N),C(A),l.value=Symbol()},T=A=>{d5(A.url,A.name).catch(()=>{nl(A.url,A.name)}),a("download",A)},B=A=>{Mi(A)?(u.value=f.value.findIndex(N=>N===A.url),c.value=!0):nl(A.url,A.name),a("preview",A)},F=()=>{c.value=!1};return e({elUploadRef:s,remove:U,download:T,selections:p,fileList:h}),(A,N)=>(y(),R("div",{class:ce(["x-attachment",m.value])},[(y(),V(d(wl),me({ref_key:"elUploadRef",ref:s,key:l.value,"file-list":h.value,"onUpdate:fileList":N[0]||(N[0]=O=>h.value=O)},k.value,{"on-exceed":b,"on-change":$,"http-request":w}),{file:j(({file:O})=>[ft((y(),R("div",{class:ce(["x-attachment__item",{"is-selected":x(O.response||O)}]),onClick:W=>E(O.response||O)},[P("div",hb,[P("img",{class:ce(["el-upload-list__item-thumbnail",{"is-icon":!d(Mi)(O.response||O)}]),src:g(O.response||O)},null,10,mb),P("div",{class:"el-upload-list__item-name",title:(O.response||O).url},[O.name?(y(),R("span",vb,te((O.response||O).name),1)):M("",!0),P("span",gb,te((O.response||O).url),1)],8,fb)]),v.value?(y(),R("div",yb,[i.previewable?(y(),R("span",{key:0,onClick:W=>B(O.response||O),class:"el-upload-list__item-preview"},[_(d(Fn),null,{default:j(()=>[_(d(B2))]),_:1})],8,bb)):M("",!0),i.downloadable?(y(),R("span",{key:1,onClick:W=>T(O.response||O),class:"el-upload-list__item-delete"},[_(d(Fn),null,{default:j(()=>[_(d(z2))]),_:1})],8,wb)):M("",!0),i.removable&&!i.disabled?(y(),R("span",{key:2,onClick:W=>U(O),class:"el-upload-list__item-delete"},[_(d(Fn),null,{default:j(()=>[_(d(Vl))]),_:1})],8,xb)):M("",!0)])):M("",!0)],10,pb)),[[d(l2),O.status==="ready"||O.status==="uploading"]])]),tip:j(()=>[de(A.$slots,"tip")]),default:j(()=>[P("div",db,[_(d(Fn),null,{default:j(()=>[_(d(Cl))]),_:1})])]),_:3},16,["file-list"])),i.previewable&&c.value?(y(),V(d(c2),{key:0,"hide-on-click-modal":"",teleported:"","url-list":f.value,"initial-index":u.value,onClose:F},null,8,["url-list","initial-index"])):M("",!0)],2))}});/**!
81
81
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
82
82
  * @name @vtj/renderer
83
83
  * @author CHC chenhuachun1549@dingtalk.com
84
- * @version 0.8.2
84
+ * @version 0.8.3
85
85
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
86
- */const Gn="0.8.2";var Je=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(Je||{});const cl=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],xb=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],_b=["vIf","vShow","vModel","vFor","vBind"],z0={String,Number,Boolean,Array,Object,Function,Date};function $r(n,e){return n.map(t=>A3(t)?t:`${e}${t}`)}function Co(n){return/\.css$/.test(n)}function Vo(n){return/\.js$/.test(n)}function Sb(n){return/\.json$/.test(n)}function ul(n){return n.map(e=>`<script src="${bn.append(e,{v:Gn})}"><\/script>`).join("")}function kb(n=[]){return n.map(e=>`<link rel="stylesheet" href="${bn.append(e,{v:Gn})}" />`).join("")}function D0(n,e){const t=n.filter(p=>!!p.enabled),r=[],i=[],a=[],o=[],s={},l={},c=[],u={};return t.forEach(({urls:p,assetsUrl:m,library:h,assetsLibrary:f,localeLibrary:v})=>{p?.forEach(g=>{Vo(g)&&r.push(g),Co(g)&&i.push(g)}),h&&(o.push(h),s[h]=$r(p||[],e),v&&(l[h]=v)),m&&a.push(m),f&&c.push(f),h&&f&&(u[f]=h)}),{scripts:$r(r,e),css:$r(i,e),materials:$r(a,e),libraryExports:o,materialExports:Yc(c),materialMapLibrary:u,libraryMap:s,libraryLocaleMap:l}}function ja(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function O0(n){return Tn(n)?n:JSON.stringify(n)}function I0(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const a=n.document,o=a.adoptedStyleSheets,s=Array.from(o).filter(l=>l.id!==e);a.adoptedStyleSheets=[...s,i]}else{const i=n.document;let a=i.getElementById(e);a?a.innerHTML=t:(a=i.createElement("style"),a.id=e,a.innerHTML=t,i.head.appendChild(a))}}async function jb(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&I0(window,n,t)}function R0(n,e=window){const t=e.document,r=e.document.head;for(const i of n)if(!t.getElementById(i)){const a=t.createElement("link");a.rel="stylesheet",a.id=i,a.href=i,r.appendChild(a)}}async function Cb(n,e,t=window){const r=t.document,i=t.document.head;let a=t[e];return a?a.default||a:new Promise((o,s)=>{for(const l of n){const c=r.createElement("script");c.src=l,c.onload=()=>{a=t[e],a&&o(a.default||a)},c.onerror=u=>{s(u)},i.appendChild(c)}})}function Vb(n){return Xn(n)||Xn(n?.install)}function yt(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let a=(n.value||"").trim();a=a.replace(/this(\W|$)/g,(s,l)=>`__self${l}`),a=i.join(`
87
- `)+a;const o=`with(${t?"{}":"$scope || {}"}) { ${a} }`;return new Function("$scope",o)(e)}catch(i){if(Ye.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function Ca(n,e,t=!1,r=!1){const i=yt(n,e,t,r);if(typeof i!="function"&&(Ye.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 hr(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function $b(n){return Pe(n)||hr(n)}function En(n){return $b(n)?n.value:JSON.stringify(n)}let dn=null;const Eb=o0({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{nn.error({message:n||"未知错误"})},showLoading:()=>{dn&&dn.close(),dn=Sl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{dn&&(dn.close(),dn=null)}}});function Ab(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?yt(n.headers,{},!0):void 0,a={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(o,s)=>r.send(ht(a,s||{},{data:o}))}}function M0(n=[],e){return n.reduce((t,r)=>(t[r.id]=Ab(r,e),t),{})}function P0(n=[]){Yn.setup({timeout:"50-500"}),$o(),n.forEach(e=>Tb(e))}function Tb(n){if(!n.mock)return;const{url:e,mockTemplate:t}=n;if(e&&t){const r=no(`${e}(.*)`),i=W3(e,{decode:decodeURIComponent}),a=yt(t,{},!0);Yn.mock(r,o=>{const s=bn.parse(o.url)||{},l=o.body instanceof FormData?W8(o.body):o.body,c=i(o.url)?.params;return Object.assign(o,{data:l,params:s,query:c}),Yn.mock(a(o))})}}function $o(){Yn._mocked={}}let Bb=class{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};props={};$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=Qr){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&&cl.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){cl.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 Ca({type:r,value:i},this)}else return Ca(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 yt({type:r,value:i},this)}else return yt(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.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=e,Je.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const a=this.$refs[t];if(a){const o=new Set([].concat(a,r));this.$refs[t]=Array.from(o)}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 Va(n){const{Vue:e=Qr,mode:t=Je.Runtime,components:r={},libs:i={},apis:a={},loader:o}=n,s=e.computed(()=>n.dsl),l={$components:r,$libs:i,$apis:a},c=new Bb({mode:t,dsl:s.value,attrs:l}),u=e.defineComponent({name:s.value.name,props:{...zb(s.value.props??[],c)},setup(p){c.$props=p,c.props=p,s.value.id&&I0(n.window||window,s.value.id,s.value.css||""),c.state=Db(e,s.value.state??{},c);const m=Ob(e,s.value.computed??{},c),h=Ib(s.value.methods??{},c),f=Rb(e,s.value.inject,c),v=Mb(s.value.dataSources||{},c),g={...f,...m,...h,...v};return c.setup(g,e),Pb(e,s.value.watch??[],c),{vtj:c}},emits:[...s.value.emits??[]],expose:["vtj"],render(){if(!s.value.nodes)return null;const p=s.value.nodes||[];return p.length===1?Kr(p[0],c,e,o):p.map(m=>Kr(m,c,e,o))},...Nb(s.value.lifeCycles??{},c)});return{renderer:e.markRaw(u),context:c}}function zb(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>z0[i]):void 0;return n.map(r=>Tn(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 Db(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let a=e[i];return Pe(a)?a=t.__parseExpression(a):hr(a)&&(a=t.__parseFunction(a)),r[i]=a,r},{}))}function Ob(n,e,t){return Object.entries(e??{}).reduce((r,[i,a])=>(r[i]=n.computed(t.__parseFunction(a)),r),{})}function Ib(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function Rb(n,e=[],t){return e.reduce((r,i)=>{const{name:a,from:o}=i||{};i.default;const s=Pe(o)?t.__parseExpression(o)||a:o??a,l=Pe(i.default)?t.__parseExpression(i.default):i.default??null;return r[a]=n.inject(s,l),r},{})}function Mb(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],a=e.$apis[i.ref],o=hr(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...s)=>{const l=await a.apply(e,s);return o?o(l):l},t},{})}function Pb(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function Nb(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}const Fb=n=>n;async function N0(n,e=window){const{urls:t=[],library:r}=n,i=t.filter(l=>Vo(l));if(i.length===0||!r)return null;const a=t.filter(l=>Co(l));let o;const s=await Cb(i,r,e).catch(()=>null);return s?.plugin&&(o=s.plugin),o?{component:o,css:a}:null}function $a(n){const{getDsl:e,getDslByUrl:t,options:r}=n;return(i,a,o=Qr)=>!a||typeof a=="string"?i:a.type==="Schema"&&a.id?o.defineAsyncComponent(async()=>{const s=await e(a.id);return s&&(s.name=i),s?Va({...r,Vue:o,dsl:s,mode:Je.Runtime,loader:$a(n)}).renderer:null}):a.type==="UrlSchema"&&a.url?o.defineAsyncComponent(async()=>{const s=await t(a.url);return s&&(s.name=i),s?Va({...r,Vue:o,dsl:s,mode:Je.Runtime,loader:$a(n)}).renderer:null}):a.type==="Plugin"?o.defineAsyncComponent(async()=>{const s=await N0(a,r.window);return s?(R0(s.css),s.component):null}):i}function Kr(n,e,t=Qr,r=Fb){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:a=[]}=n,{vIf:o,vFor:s,vShow:l,vModels:c,vBind:u}=Hb(a);if(o&&!Lb(o,e))return null;const p=m=>{const h=m.$components,f=(()=>{if(n.name==="component")return Ub(m,n.props?.is);if(n.name==="slot")return n.name;const b=r(n.name,n.from,t);return Tn(b)?h[b]??b:b})(),v=Wb(i,n.props??{},m),g=Jb(t,n.events??{},m);if(n.name==="slot")return qb(t,n,v,m);u&&Object.assign(v,m.__parseExpression(u.value)),l&&(v.style=Object.assign(v.style??{},Gb(l,m))),c.forEach(b=>{Object.assign(v,Yb(t,b,m))});const k=Xb(t,n.children??[],m,n);return t.createVNode(f,{...v,...g},k)};return s?e7(s,p,e):p(e)}function Hb(n=[]){const e=n.find(s=>Kt(s.name)==="vIf"),t=n.find(s=>Kt(s.name)==="vFor"),r=n.find(s=>Kt(s.name)==="vShow"),i=n.find(s=>Kt(s.name)==="vBind"),a=n.filter(s=>Kt(s.name)==="vModel"),o=n.filter(s=>!_b.includes(Kt(s.name)));return{vIf:e,vFor:t,vShow:r,vModels:a,vBind:i,others:o}}function Lb(n,e){return!!e.__parseExpression(n.value)}function Ub(n,e){return e?Pe(e)?n.__parseExpression(e):e:"div"}function Wb(n,e,t){const r=Object.keys(e||{}).reduce((i,a)=>{let o=e[a];return Pe(o)?o=t.__parseExpression(o):hr(o)&&(o=t.__parseFunction(o)),i[a]=o,i},{});return r.ref=t.__ref(n,r.ref),r}function Jb(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((a,o)=>{const s=e[o],l=F0(s.modifiers),c=l.find(m=>r.includes(m)),u="on"+Xa(o)+(c&&i[c]||""),p=t.__parseFunction(s.handler);return p&&(a[u]=n.withModifiers(p,l)),a},{})}function F0(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function qb(n,e,t,r){const{children:i}=e,a=Kb(e,r),o=r.$slots?.[a.name];return o?o(t):i?Tn(i)?n.createTextVNode(i):Pe(i)?n.createTextVNode(O0(r.__parseExpression(i))):Array.isArray(i)?i.map(s=>Kr(s,r,n)):null:null}function Kb(n,e){const{props:t}=n,r=t?.name||"default";return{name:Pe(r)?e.__parseExpression(r):r,params:[]}}function Gb(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function Yb(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
86
+ */const Gn="0.8.3";var Je=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(Je||{});const cl=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Sb=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],kb=["vIf","vShow","vModel","vFor","vBind"],z0={String,Number,Boolean,Array,Object,Function,Date};function Er(n,e){return n.map(t=>T3(t)?t:`${e}${t}`)}function Vo(n){return/\.css$/.test(n)}function Co(n){return/\.js$/.test(n)}function jb(n){return/\.json$/.test(n)}function ul(n){return n.map(e=>`<script src="${bn.append(e,{v:Gn})}"><\/script>`).join("")}function Vb(n=[]){return n.map(e=>`<link rel="stylesheet" href="${bn.append(e,{v:Gn})}" />`).join("")}function D0(n,e){const t=n.filter(p=>!!p.enabled),r=[],i=[],a=[],o=[],s={},l={},c=[],u={};return t.forEach(({urls:p,assetsUrl:m,library:h,assetsLibrary:f,localeLibrary:v})=>{p?.forEach(g=>{Co(g)&&r.push(g),Vo(g)&&i.push(g)}),h&&(o.push(h),s[h]=Er(p||[],e),v&&(l[h]=v)),m&&a.push(m),f&&c.push(f),h&&f&&(u[f]=h)}),{scripts:Er(r,e),css:Er(i,e),materials:Er(a,e),libraryExports:o,materialExports:Yc(c),materialMapLibrary:u,libraryMap:s,libraryLocaleMap:l}}function ja(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function O0(n){return Tn(n)?n:JSON.stringify(n)}function I0(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const a=n.document,o=a.adoptedStyleSheets,s=Array.from(o).filter(l=>l.id!==e);a.adoptedStyleSheets=[...s,i]}else{const i=n.document;let a=i.getElementById(e);a?a.innerHTML=t:(a=i.createElement("style"),a.id=e,a.innerHTML=t,i.head.appendChild(a))}}async function Cb(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&I0(window,n,t)}function M0(n,e=window){const t=e.document,r=e.document.head;for(const i of n)if(!t.getElementById(i)){const a=t.createElement("link");a.rel="stylesheet",a.id=i,a.href=i,r.appendChild(a)}}async function Eb(n,e,t=window){const r=t.document,i=t.document.head;let a=t[e];return a?a.default||a:new Promise((o,s)=>{for(const l of n){const c=r.createElement("script");c.src=l,c.onload=()=>{a=t[e],a&&o(a.default||a)},c.onerror=u=>{s(u)},i.appendChild(c)}})}function $b(n){return Xn(n)||Xn(n?.install)}function yt(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let a=(n.value||"").trim();a=a.replace(/this(\W|$)/g,(s,l)=>`__self${l}`),a=i.join(`
87
+ `)+a;const o=`with(${t?"{}":"$scope || {}"}) { ${a} }`;return new Function("$scope",o)(e)}catch(i){if(Ye.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function Va(n,e,t=!1,r=!1){const i=yt(n,e,t,r);if(typeof i!="function"&&(Ye.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 hr(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function Ab(n){return Pe(n)||hr(n)}function $n(n){return Ab(n)?n.value:JSON.stringify(n)}let pn=null;const Tb=o0({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{rn.error({message:n||"未知错误"})},showLoading:()=>{pn&&pn.close(),pn=Sl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{pn&&(pn.close(),pn=null)}}});function Bb(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?yt(n.headers,{},!0):void 0,a={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(o,s)=>r.send(ht(a,s||{},{data:o}))}}function R0(n=[],e){return n.reduce((t,r)=>(t[r.id]=Bb(r,e),t),{})}function P0(n=[]){Yn.setup({timeout:"50-500"}),Eo(),n.forEach(e=>zb(e))}function zb(n){if(!n.mock)return;const{url:e,mockTemplate:t}=n;if(e&&t){const r=no(`${e}(.*)`),i=J3(e,{decode:decodeURIComponent}),a=yt(t,{},!0);Yn.mock(r,o=>{const s=bn.parse(o.url)||{},l=o.body instanceof FormData?J8(o.body):o.body,c=i(o.url)?.params;return Object.assign(o,{data:l,params:s,query:c}),Yn.mock(a(o))})}}function Eo(){Yn._mocked={}}class Db{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};props={};$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=Qr){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&&cl.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){cl.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 Va({type:r,value:i},this)}else return Va(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 yt({type:r,value:i},this)}else return yt(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.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=e,Je.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const a=this.$refs[t];if(a){const o=new Set([].concat(a,r));this.$refs[t]=Array.from(o)}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 Ca(n){const{Vue:e=Qr,mode:t=Je.Runtime,components:r={},libs:i={},apis:a={},loader:o}=n,s=e.computed(()=>n.dsl),l={$components:r,$libs:i,$apis:a},c=new Db({mode:t,dsl:s.value,attrs:l}),u=e.defineComponent({name:s.value.name,props:{...Ob(s.value.props??[],c)},setup(p){c.$props=p,c.props=p,s.value.id&&I0(n.window||window,s.value.id,s.value.css||""),c.state=Ib(e,s.value.state??{},c);const m=Mb(e,s.value.computed??{},c),h=Rb(s.value.methods??{},c),f=Pb(e,s.value.inject,c),v=Nb(s.value.dataSources||{},c),g={...f,...m,...h,...v};return c.setup(g,e),Fb(e,s.value.watch??[],c),{vtj:c}},emits:[...s.value.emits??[]],expose:["vtj"],render(){if(!s.value.nodes)return null;const p=s.value.nodes||[];return p.length===1?Kr(p[0],c,e,o):p.map(m=>Kr(m,c,e,o))},...Hb(s.value.lifeCycles??{},c)});return{renderer:e.markRaw(u),context:c}}function Ob(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>z0[i]):void 0;return n.map(r=>Tn(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 Ib(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let a=e[i];return Pe(a)?a=t.__parseExpression(a):hr(a)&&(a=t.__parseFunction(a)),r[i]=a,r},{}))}function Mb(n,e,t){return Object.entries(e??{}).reduce((r,[i,a])=>(r[i]=n.computed(t.__parseFunction(a)),r),{})}function Rb(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function Pb(n,e=[],t){return e.reduce((r,i)=>{const{name:a,from:o}=i||{};i.default;const s=Pe(o)?t.__parseExpression(o)||a:o??a,l=Pe(i.default)?t.__parseExpression(i.default):i.default??null;return r[a]=n.inject(s,l),r},{})}function Nb(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],a=e.$apis[i.ref],o=hr(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...s)=>{const l=await a.apply(e,s);return o?o(l):l},t},{})}function Fb(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function Hb(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}const Lb=n=>n;async function N0(n,e=window){const{urls:t=[],library:r}=n,i=t.filter(l=>Co(l));if(i.length===0||!r)return null;const a=t.filter(l=>Vo(l));let o;const s=await Eb(i,r,e).catch(()=>null);return s?.plugin&&(o=s.plugin),o?{component:o,css:a}:null}function Ea(n){const{getDsl:e,getDslByUrl:t,options:r}=n;return(i,a,o=Qr)=>!a||typeof a=="string"?i:a.type==="Schema"&&a.id?o.defineAsyncComponent(async()=>{const s=await e(a.id);return s&&(s.name=i),s?Ca({...r,Vue:o,dsl:s,mode:Je.Runtime,loader:Ea(n)}).renderer:null}):a.type==="UrlSchema"&&a.url?o.defineAsyncComponent(async()=>{const s=await t(a.url);return s&&(s.name=i),s?Ca({...r,Vue:o,dsl:s,mode:Je.Runtime,loader:Ea(n)}).renderer:null}):a.type==="Plugin"?o.defineAsyncComponent(async()=>{const s=await N0(a,r.window);return s?(M0(s.css),s.component):null}):i}function Kr(n,e,t=Qr,r=Lb){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:a=[]}=n,{vIf:o,vFor:s,vShow:l,vModels:c,vBind:u}=Ub(a);if(o&&!Wb(o,e))return null;const p=m=>{const h=m.$components,f=(()=>{if(n.name==="component")return Jb(m,n.props?.is);if(n.name==="slot")return n.name;const b=r(n.name,n.from,t);return Tn(b)?h[b]??b:b})(),v=qb(i,n.props??{},m),g=Kb(t,n.events??{},m);if(n.name==="slot")return Gb(t,n,v,m);u&&Object.assign(v,m.__parseExpression(u.value)),l&&(v.style=Object.assign(v.style??{},Xb(l,m))),c.forEach(b=>{Object.assign(v,Qb(t,b,m))});const k=Zb(t,n.children??[],m,n);return t.createVNode(f,{...v,...g},k)};return s?n7(s,p,e):p(e)}function Ub(n=[]){const e=n.find(s=>Gt(s.name)==="vIf"),t=n.find(s=>Gt(s.name)==="vFor"),r=n.find(s=>Gt(s.name)==="vShow"),i=n.find(s=>Gt(s.name)==="vBind"),a=n.filter(s=>Gt(s.name)==="vModel"),o=n.filter(s=>!kb.includes(Gt(s.name)));return{vIf:e,vFor:t,vShow:r,vModels:a,vBind:i,others:o}}function Wb(n,e){return!!e.__parseExpression(n.value)}function Jb(n,e){return e?Pe(e)?n.__parseExpression(e):e:"div"}function qb(n,e,t){const r=Object.keys(e||{}).reduce((i,a)=>{let o=e[a];return Pe(o)?o=t.__parseExpression(o):hr(o)&&(o=t.__parseFunction(o)),i[a]=o,i},{});return r.ref=t.__ref(n,r.ref),r}function Kb(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((a,o)=>{const s=e[o],l=F0(s.modifiers),c=l.find(m=>r.includes(m)),u="on"+Xa(o)+(c&&i[c]||""),p=t.__parseFunction(s.handler);return p&&(a[u]=n.withModifiers(p,l)),a},{})}function F0(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function Gb(n,e,t,r){const{children:i}=e,a=Yb(e,r),o=r.$slots?.[a.name];return o?o(t):i?Tn(i)?n.createTextVNode(i):Pe(i)?n.createTextVNode(O0(r.__parseExpression(i))):Array.isArray(i)?i.map(s=>Kr(s,r,n)):null:null}function Yb(n,e){const{props:t}=n,r=t?.name||"default";return{name:Pe(r)?e.__parseExpression(r):r,params:[]}}function Xb(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function Qb(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
88
88
  ${e.value.value} = v;
89
- }`:"(v) => {}"},i=t.__parseFunction(r),a=F0(e.modifiers),o=Pe(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:t.__parseExpression(e.value),[`onUpdate:${o}`]:a.length&&i?n.withModifiers(i,a):i}}function Xb(n,e,t,r){if(!e)return null;if(Tn(e))return{default:()=>e};if(Pe(e))return{default:()=>O0(t.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const i=Qb(e),a=o=>!o||!r?{}:r?.id&&Object.keys(o).length?{[`scope_${r.id}`]:o}:{};return Object.entries(i).reduce((o,[s,{nodes:l,params:c}])=>(o[s]=u=>{const p=c.length?N3(u??{},c):a(u);return l.map(m=>Kr(m,t.__clone(p),n))},o),{})}return null}function Qb(n){const e={default:{params:[],nodes:[]}};for(const t of n){const r=Zb(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 Zb(n="default"){return Tn(n)?{name:n,params:[]}:{params:[],...n}}function e7(n,e,t){const{value:r,iterator:i}=n,{item:a="item",index:o="index"}=i||{};let s=t.__parseExpression(r)||[];return Number.isInteger(s)&&(s=new Array(s).fill(!0).map((l,c)=>c+1)),Array.isArray(s)?s.map((l,c)=>e(t.__clone({[a]:l,[o]:c}))):(console.warn("[vForRender]:",`${r?.value} is not a Arrary`),[])}const dl=I({name:"VtjPageContainer",async setup(){const n=n7(),e=U2(),t=e.params.id,r=t?n.getPage(t):n.getHomepage(),i=r?await n.getRenderComponent(r.id):null;return r&&F2(r.title||"VTJ"),{provider:n,component:i,file:r,query:e.query}},render(){return this.component?Re(this.component,this.query):Re("div","页面不存在")}}),t7=I({name:"VtjStartupContainer",render(){return Re(ay)}}),H0=Symbol("Provider");class L0 extends ro{mode;globals={};modules={};adapter={request:Eb,jsonp:X8};apis={};dependencies={};materials={};library={};service;project=null;components={};nodeEnv="development";router=null;materialPath="./";urlDslCaches={};constructor(e){super();const{service:t,mode:r=Je.Raw,dependencies:i,materials:a,project:o={},adapter:s={},globals:l={},modules:c={},router:u=null,materialPath:p="./",nodeEnv:m="development"}=e;this.mode=r,this.modules=c,this.service=t,this.router=u,this.materialPath=p,this.nodeEnv=m,i&&(this.dependencies=i),a&&(this.materials=a),Object.assign(this.globals,l),Object.assign(this.adapter,s),r!==Je.Design&&this.load(o)}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:a,library:o,components:s,materialPath:l}=this,{libraryExports:c,libraryMap:u,materials:p,materialExports:m,materialMapLibrary:h}=D0(r,l),f=window;f.CKEDITOR_VERSION=void 0;for(const g of c){const k=a[g],b=f[g];if(b)o[g]=b;else if(k)f[g]=o[g]=await k();else{const x=u[g]||[];for(const S of x)Co(S)&&await jb(g,bn.append(S,{v:Gn})),Vo(S)&&await el(bn.append(S,{v:Gn})),o[g]=f[g]}}for(const g of p)await el(bn.append(g,{v:Gn}));const v=this.materials||{};for(const g of m){const k=f[h[g]],b=Q3[g];if(b)k&&b.forEach(x=>{s[x]=k[x]});else{const x=v[g]?(await v[g]()).default:f[g];x&&k&&(x.components||[]).forEach(S=>{s[S.name]=ja(S,k)})}}i&&(this.apis=M0(i,this.adapter),$o(),this.project.config?.mock&&P0(i)),this.initRouter(),this.triggerReady()}initRouter(){const{router:e,project:t}=this;e&&(e.addRoute({path:"/page/:id",name:"VtjPage",component:dl}),e.addRoute({path:"/",name:"VtjHomepage",component:t?.homepage?dl:t7}))}install(e){const t=e.config.globalProperties.installed||{};for(const[r,i]of Object.entries(this.library))!t[r]&&Vb(i)&&(e.use(i),t[r]=!0);e.provide(H0,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,a=[])=>{for(const o of a){if(o.id===i)return o;if(o.children&&o.children.length){const s=r(i,o.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 getDslByUrl(e){return this.urlDslCaches[e]||(this.urlDslCaches[e]=this.adapter.request.send({url:e,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(r=>r.data).catch(()=>null))}createDslRenderer(e,t={}){const{library:r,components:i,mode:a,apis:o}=this,s={mode:a,Vue:r.Vue,components:i,libs:r,apis:o,window,...t},l=$a({getDsl:async c=>await this.getDsl(c)||null,getDslByUrl:async c=>await this.getDslByUrl(c)||null,options:s});return Va({...s,dsl:e,loader:l})}async getRenderComponent(e){const t=this.getFile(e);if(!t)return Ye.warn(`Can not find file: ${e}`),null;const r=`.vtj/vue/${e}.vue`,i=this.modules[r];if(i)return(await i())?.default;const a=await this.getDsl(t.id);return a?this.createDslRenderer(a).renderer:(Ye.warn(`Can not find dsl: ${e}`),null)}defineUrlSchemaComponent(e,t){return Fi(async()=>{const r=await this.getDslByUrl(e);return r?(r.name=t||r.name,this.createDslRenderer(r).renderer):null})}definePluginComponent(e){return Fi(async()=>{const t=await N0(e,window);return t?(R0(t.css),t.component):null})}}function A_(n){const e=new L0(n);return{provider:e,onReady:t=>e.ready(t)}}function n7(n={}){const e=Mt(H0);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&&nn.warning({title:i?.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})()}return e}const Eo=new a0({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:n=>n.data?.code===0,showError:n=>{nn.error({message:n||"未知错误"})}}}),r7=(n="/vtj/local/repository/${type}.json")=>(e,t)=>Eo.send({url:n,method:"post",query:{type:e},data:{type:e,data:t}}),i7=(n="/vtj/local/repository/uploader.json")=>async(e,t)=>await Eo.send({url:n,method:"post",data:{files:e,projectId:t},settings:{type:"data"}}).then(r=>r&&r[0]?r[0]:null).catch(()=>null);let a7=class{api;pluginCaches={};uploader;constructor(){this.api=r7(),this.uploader=i7()}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(()=>"")}async uploadStaticFile(e,t){return await this.uploader(e,t).catch(()=>null)}async getStaticFiles(e){return await this.api("getStaticFiles",e).catch(()=>[])}async removeStaticFile(e,t){return await this.api("removeStaticFile",{name:e,projectId:t}).catch(()=>"")}async clearStaticFiles(e){return await this.api("clearStaticFiles",e).catch(()=>"")}async getPluginMaterial(e){const{urls:t=[]}=e,r=t.filter(a=>Sb(a))[0];return r?this.pluginCaches[r]||(this.pluginCaches[r]=Eo.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(a=>a.data).catch(()=>null)):null}};new s0({type:"local",expired:0,prefix:"__VTJ_"});class B_ extends a7{getFileCaches={};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:P3(t)}).catch(()=>!1)}async saveFile(e){return!!await this.api("saveFile",e).catch(()=>!1)}async getFile(e){return this.getFileCaches[e]||(this.getFileCaches[e]=this.api("getFile",e).catch(()=>null)).finally(()=>{delete this.getFileCaches[e]})}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)}}/**!
89
+ }`:"(v) => {}"},i=t.__parseFunction(r),a=F0(e.modifiers),o=Pe(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:t.__parseExpression(e.value),[`onUpdate:${o}`]:a.length&&i?n.withModifiers(i,a):i}}function Zb(n,e,t,r){if(!e)return null;if(Tn(e))return{default:()=>e};if(Pe(e))return{default:()=>O0(t.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const i=e7(e),a=o=>!o||!r?{}:r?.id&&Object.keys(o).length?{[`scope_${r.id}`]:o}:{};return Object.entries(i).reduce((o,[s,{nodes:l,params:c}])=>(o[s]=u=>{const p=c.length?F3(u??{},c):a(u);return l.map(m=>Kr(m,t.__clone(p),n))},o),{})}return null}function e7(n){const e={default:{params:[],nodes:[]}};for(const t of n){const r=t7(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 t7(n="default"){return Tn(n)?{name:n,params:[]}:{params:[],...n}}function n7(n,e,t){const{value:r,iterator:i}=n,{item:a="item",index:o="index"}=i||{};let s=t.__parseExpression(r)||[];return Number.isInteger(s)&&(s=new Array(s).fill(!0).map((l,c)=>c+1)),Array.isArray(s)?s.map((l,c)=>e(t.__clone({[a]:l,[o]:c}))):(console.warn("[vForRender]:",`${r?.value} is not a Arrary`),[])}const dl=I({name:"VtjPageContainer",async setup(){const n=i7(),e=W2(),t=e.params.id,r=t?n.getPage(t):n.getHomepage(),i=r?await n.getRenderComponent(r.id):null;return r&&H2(r.title||"VTJ"),{provider:n,component:i,file:r,query:e.query}},render(){return this.component?Me(this.component,this.query):Me("div","页面不存在")}}),r7=I({name:"VtjStartupContainer",render(){return Me(sy)}}),H0=Symbol("Provider");class L0 extends ro{mode;globals={};modules={};adapter={request:Tb,jsonp:Q8};apis={};dependencies={};materials={};library={};service;project=null;components={};nodeEnv="development";router=null;materialPath="./";urlDslCaches={};constructor(e){super();const{service:t,mode:r=Je.Raw,dependencies:i,materials:a,project:o={},adapter:s={},globals:l={},modules:c={},router:u=null,materialPath:p="./",nodeEnv:m="development"}=e;this.mode=r,this.modules=c,this.service=t,this.router=u,this.materialPath=p,this.nodeEnv=m,i&&(this.dependencies=i),a&&(this.materials=a),Object.assign(this.globals,l),Object.assign(this.adapter,s),r!==Je.Design&&this.load(o)}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:a,library:o,components:s,materialPath:l}=this,{libraryExports:c,libraryMap:u,materials:p,materialExports:m,materialMapLibrary:h}=D0(r,l),f=window;f.CKEDITOR_VERSION=void 0;for(const g of c){const k=a[g],b=f[g];if(b)o[g]=b;else if(k)f[g]=o[g]=await k();else{const w=u[g]||[];for(const S of w)Vo(S)&&await Cb(g,bn.append(S,{v:Gn})),Co(S)&&await el(bn.append(S,{v:Gn})),o[g]=f[g]}}for(const g of p)await el(bn.append(g,{v:Gn}));const v=this.materials||{};for(const g of m){const k=f[h[g]],b=Z3[g];if(b)k&&b.forEach(w=>{s[w]=k[w]});else{const w=v[g]?(await v[g]()).default:f[g];w&&k&&(w.components||[]).forEach(S=>{s[S.name]=ja(S,k)})}}i&&(this.apis=R0(i,this.adapter),Eo(),this.project.config?.mock&&P0(i)),this.initRouter(),this.triggerReady()}initRouter(){const{router:e,project:t}=this;e&&(e.addRoute({path:"/page/:id",name:"VtjPage",component:dl}),e.addRoute({path:"/",name:"VtjHomepage",component:t?.homepage?dl:r7}))}install(e){const t=e.config.globalProperties.installed||{};for(const[r,i]of Object.entries(this.library))!t[r]&&$b(i)&&(e.use(i),t[r]=!0);e.provide(H0,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,a=[])=>{for(const o of a){if(o.id===i)return o;if(o.children&&o.children.length){const s=r(i,o.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 getDslByUrl(e){return this.urlDslCaches[e]||(this.urlDslCaches[e]=this.adapter.request.send({url:e,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(r=>r.data).catch(()=>null))}createDslRenderer(e,t={}){const{library:r,components:i,mode:a,apis:o}=this,s={mode:a,Vue:r.Vue,components:i,libs:r,apis:o,window,...t},l=Ea({getDsl:async c=>await this.getDsl(c)||null,getDslByUrl:async c=>await this.getDslByUrl(c)||null,options:s});return Ca({...s,dsl:e,loader:l})}async getRenderComponent(e){const t=this.getFile(e);if(!t)return Ye.warn(`Can not find file: ${e}`),null;const r=`.vtj/vue/${e}.vue`,i=this.modules[r];if(i)return(await i())?.default;const a=await this.getDsl(t.id);return a?this.createDslRenderer(a).renderer:(Ye.warn(`Can not find dsl: ${e}`),null)}defineUrlSchemaComponent(e,t){return Fi(async()=>{const r=await this.getDslByUrl(e);return r?(r.name=t||r.name,this.createDslRenderer(r).renderer):null})}definePluginComponent(e){return Fi(async()=>{const t=await N0(e,window);return t?(M0(t.css),t.component):null})}}function T_(n){const e=new L0(n);return{provider:e,onReady:t=>e.ready(t)}}function i7(n={}){const e=Pt(H0);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&&rn.warning({title:i?.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})()}return e}const $o=new a0({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:n=>n.data?.code===0,showError:n=>{rn.error({message:n||"未知错误"})}}}),a7=(n="/vtj/local/repository/${type}.json")=>(e,t)=>$o.send({url:n,method:"post",query:{type:e},data:{type:e,data:t}}),o7=(n="/vtj/local/repository/uploader.json")=>async(e,t)=>await $o.send({url:n,method:"post",data:{files:e,projectId:t},settings:{type:"data"}}).then(r=>r&&r[0]?r[0]:null).catch(()=>null);let s7=class{api;pluginCaches={};uploader;constructor(){this.api=a7(),this.uploader=o7()}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(()=>"")}async uploadStaticFile(e,t){return await this.uploader(e,t).catch(()=>null)}async getStaticFiles(e){return await this.api("getStaticFiles",e).catch(()=>[])}async removeStaticFile(e,t){return await this.api("removeStaticFile",{name:e,projectId:t}).catch(()=>"")}async clearStaticFiles(e){return await this.api("clearStaticFiles",e).catch(()=>"")}async getPluginMaterial(e){const{urls:t=[]}=e,r=t.filter(a=>jb(a))[0];return r?this.pluginCaches[r]||(this.pluginCaches[r]=$o.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(a=>a.data).catch(()=>null)):null}};new s0({type:"local",expired:0,prefix:"__VTJ_"});class z_ extends s7{getFileCaches={};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:N3(t)}).catch(()=>!1)}async saveFile(e){return!!await this.api("saveFile",e).catch(()=>!1)}async getFile(e){return this.getFileCaches[e]||(this.getFileCaches[e]=this.api("getFile",e).catch(()=>null)).finally(()=>{delete this.getFileCaches[e]})}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)}}/**!
90
90
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
91
91
  * @name @vtj/designer
92
92
  * @author CHC chenhuachun1549@dingtalk.com
93
- * @version 0.8.2
93
+ * @version 0.8.3
94
94
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
95
- */const o7="0.8.2",pl={width:390,height:844},hl={width:1180,height:820},$t=/^[A-Za-z_$][\:\w_-]*$/,s7=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],l7=["keydown","keyup","keypress"],c7=["GET","POST","PUT","PATCH","DELETE","JSONP"],u7=["stop","prevent","capture","self","once","passive"];var ot=(n=>(n.Block="block",n.Node="node",n))(ot||{});function U0(){const n=Le(),e=z(()=>n.project.value?.dependencies??[]),t=z(()=>n.project.value?.apis??[]);return{engine:n,dependencies:e,apis:t}}function Lt(n,e){const t=z(()=>Q0.getWidgets(d(n),d(e)).filter(i=>!i.invisible)),r=D();return{widgets:t,widgetsRef:r}}function W0(){const n=Le();return{span:z(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function d7(){const n=Le(),e=z(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const p7=(n=[])=>n.map(e=>e.name);function h7(){const n=Le(),{components:e,groups:t,componentMap:r}=n.assets,i=tn({}),a=z(()=>{const p={};return t.value&&t.value.forEach(m=>{p[m.name]=m}),p}),o=z(()=>t.value?t.value.map(p=>({label:`${p.label} (${p.count})`,name:p.name,disabled:!p.children?.length})):[]),s=D(o.value[0]?.name),l=D(""),c=z(()=>a.value[s.value]);gl(()=>{const p=o.value.reduce((m,h)=>(m[h.name]=p7(a.value[h.name].children),m),{});Object.assign(i,p)}),oe(o,p=>{p.length&&!s.value&&(s.value=p[0].name)},{immediate:!0});const u=z(()=>{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:a,tabs:o,model:i,currentTab:s,currentGroup:c,searchKey:l,searchResult:u}}function Ie(){const n=Le(),e=z(()=>n.current.value),t=z(()=>n.simulator.renderer?.context??null),r=z(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function m7(n,e,t,r){const i=Le();i.simulator.init(n,e,t,r);const a=z(()=>i.simulator.designer.value),o=z(()=>Mi("hover",a.value?.hover.value)),s=z(()=>Mi("dropping",a.value?.dropping.value)),l=z(()=>Mi("selected",a.value?.selected.value));return oe(i.changed,()=>{a.value?.updateRect()}),{designer:a,dropping:s,hover:o,selected:l}}function f7(n,e=!0){const{top:t,height:r,width:i,left:a}=n||{};if(r>100&&i>200)return"inner";let o,s;return s=t>30?"top":"bottom",o=e||a<300&&i<300?"left":"right",[o,s].join("-")}function v7(n){const{rect:e,type:t}=n,{left:r,width:i,top:a,height:o}=e,s={left:r,width:i,top:a,height:o};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:a}=n==="dropping"?v7(e):e.rect,o={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${a}px`,visibility:i||a?"visible":"hidden"};return{...e,style:o,position:f7(e.rect,n!=="selected")}}function xt(){const n=Le(),e=z(()=>n.simulator.designer.value),t=z(()=>e.value?.selected.value),r=z(()=>Ve(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function g7(n,e){const t=D(""),{selected:r,isSelectBlock:i}=xt(),a=z(()=>r.value?.model.id),o=z(()=>{const l=Li(n),c=Li(e),u=[];if(!l)return u;const p=c?.__contextRefs[a.value||""],m=c===p||i.value?[]:Object.keys(p?.context||{}).filter(S=>!["context","ref"].includes(S)).map(S=>`this.context.${S}`);m.length&&u.push({title:"上下文",items:m});const h=l.inject.map(S=>`this.${S.name}`);h.length&&u.push({title:"注入",items:h});const f=l.props.map(S=>typeof S=="string"?`this.props.${S}`:`this.props.${S.name}`);f.length&&u.push({title:"属性",items:f});const v=Object.keys(l.state).map(S=>`this.state.${S}`);v.length&&u.push({title:"状态",items:v});const g=Object.keys(l.computed).map(S=>`this.${S}.value`);g.length&&u.push({title:"计算属性",items:g});const k=Object.keys(l.methods).map(S=>`this.${S}`);k.length&&u.push({title:"方法",items:k});const b=Object.keys(l.dataSources).map(S=>`this.${S}`);b.length&&u.push({title:"数据源",items:b});const x=Object.keys(c?.$refs||{}).map(S=>`this.$refs.${S}`);return x.length&&u.push({title:"refs",items:x}),u}),s=z(()=>{if(!t.value)return o.value;const l=t.value.toLowerCase(),c=[];return o.value.forEach(u=>{const p=u.items.filter(m=>m.toLowerCase().includes(l));p.length&&c.push({title:u.title,items:p})}),c});return{keyword:t,options:o,searchResult:s}}const Er=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function y7(n){const e=Le(),t=z(()=>{const l=n.value?.model||null;return Ve(l)?null:l}),r=D();oe(t,async l=>{l?.from?r.value=await e.assets.getBlockMaterial(l.from)||void 0:r.value=void 0},{immediate:!0});const i=z(()=>t.value?[{name:"key",setters:Er,value:t.value.getPropValue("key")},{name:"ref",setters:Er,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:Er,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:Er,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),a=z(()=>{if(!t.value)return[];const l=r.value||e.assets.componentMap.get(t.value.name);return l?(l.props||[]).map(c=>({...c,value:t.value?.getPropValue(c.name)??c.defaultValue})):[]}),o=l=>i.value.some(c=>c.name===l)||a.value.some(c=>c.name===l)||l==="style",s=z(()=>t.value?Object.keys(t.value.props).filter(l=>!o(l)).map(l=>({name:l,setters:"InputSetter",value:t.value?.getPropValue(l)})):[]);return{commonProps:i,componentProps:a,customProps:s,node:t,change:(l,c)=>{t.value&&(l==="children"?t.value.setChildren(c):t.value.setProp(l,c))},addCustom:l=>{l&&t.value?.setProp(l,"")},removeCustom:l=>{t.value?.removeProp(l)},isExist:o}}function Ae(n,e="提示"){return nn.warning({title:e,message:n})}async function Dn(n){return await Xr.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function We(n,e="success"){return xn({message:n,type:e})}function De(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?yt(n,e,t,!0):Ca(n,e,t,!0)}catch(i){r=!1,nn.error({title:"代码错误",message:i.message})}return r}function J0(){const n=Le(),e=z(()=>n.simulator.designer.value),t=z(()=>n.current.value?n.history.value:null),r=z(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},a=()=>{t.value?.backward(),e.value?.cleanHelper()},o=c=>{e.value?.cleanHelper(),t.value?.load(c),We("已载入历史记录","success")},s=z(()=>r.value<=1?!0:(t.value?.index||-1)<=0),l=z(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:a,load:o,forwardDisabled:s,backwardDisabled:l}}function sn(){const n=Le(),e=z(()=>n.project.value);return{engine:n,project:e}}function b7(n){const e=Le(),t=z(()=>{const s=n.value?.model||null;return!s||Ve(s)?null:s}),r=D();oe(t,async s=>{s?.from?r.value=await e.assets.getBlockMaterial(s.from)||void 0:r.value=void 0},{immediate:!0});const i=z(()=>{if(Ve(t.value))return[];const s=t.value?.events||{};return s7.map(l=>({name:l,event:s[l]}))}),a=z(()=>{if(Ve(t.value))return[];const s=t.value?.events||{};return l7.map(l=>({name:l,event:s[l]}))}),o=z(()=>{if(!t.value||Ve(t.value))return[];const s=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(l=>{const c=typeof l=="string"?l:l.name;return{name:c,event:s[c]}})});return{mouseEventList:i,keyboardEventList:a,componentEventList:o}}const w7=(n,e)=>new mn({name:n,value:void 0,iterator:e}),x7=(n="modelValue")=>new mn({name:"vModel",value:void 0,arg:n});function _7(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(a=>a.includes(i.name))):[]}return[]}function S7(n){const e=Le(),t=z(()=>{const p=n.value?.model||null;return Ve(p)?null:p}),r=p=>z(()=>t.value&&(t.value.directives||[]).find(m=>m.name===p)||w7(p)),i=()=>z(()=>{if(!t.value)return[];const p=e.assets.componentMap.get(t.value.name||"");return(p?_7(p):[]).map(m=>(t.value?.directives||[]).find(h=>h.name==="vModel"&&h.arg==m.name)||x7(m.name))}),a=r("vIf"),o=r("vShow"),s=r("vBind"),l=r("vFor"),c=i(),u={vIf:a,vShow:o,vBind:s,vFor:l};return{engine:e,node:t,vIf:a,vShow:o,vBind:s,vFor:l,vModels:c,onValueChange:(p,m)=>{const h=u[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=c.value[h];f&&(m?(f.value=m,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function k7(){const{engine:n,project:e}=sn(),t=z(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const j7="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",C7=["title","src"],V7={key:1},$7=I({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{},text:{default:"VTJ"},link:{}},setup(n){const{engine:e}=Ie(),t=n,r=z(()=>t.icon||e.project.value?.config?.logo||j7),i=()=>{t.link&&(location.href=t.link)};return(a,o)=>(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,C7)):(y(),M("span",V7,te(t.text),1))]))}}),E7={class:"v-empty-widget"},A7=I({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",E7,"EmptyWidget"))}}),T7={class:"v-switcher-widget"},B7={key:1},z7=I({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=Ie(),i=z(()=>r.project.value?.config?.title||r.project.value?.name),a=z(()=>r.project.value?.currentFile?.title),o=()=>{t("click",r.project.value)};return(s,l)=>(y(),M("div",T7,[_(d(xe),{size:"small",round:"",onClick:o},{default:j(()=>[_(d(du),{class:"v-switcher-widget__back"}),P("span",null,te(i.value),1),a.value?(y(),C(d(Yr),{key:0,direction:"vertical"})):R("",!0),a.value?(y(),M("span",B7,te(a.value),1)):R("",!0)]),_:1})]))}}),D7={class:"v-toolbar-widget"},O7=I({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:a,backwardDisabled:o}=J0(),s=D("pc");return e({mode:s}),(l,c)=>(y(),M("div",D7,[_(d(Pa),{size:"small",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:j(()=>[_(d(Jn),{label:"pc",value:"pc"},{default:j(()=>[_(d(yu))]),_:1}),_(d(Jn),{label:"mobile",value:"mobile"},{default:j(()=>[_(d(bu))]),_:1}),_(d(Jn),{label:"pad",value:"pad"},{default:j(()=>[_(d(wu))]),_:1})]),_:1},8,["modelValue"]),R("",!0),_(d(y2),null,{default:j(()=>[_(d(xe),{type:"default",size:"small",onClick:d(i),disabled:d(o)||!!t.preview},{default:j(()=>[_(d(Su))]),_:1},8,["onClick","disabled"]),_(d(xe),{type:"default",size:"small",onClick:d(r),disabled:d(a)||!!t.preview},{default:j(()=>[_(d(xu))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),I7={class:"v-actions-widget"},R7=P("span",null,"发布",-1),M7=I({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=xt(),r=D(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),We("刷新完成","success")):We("请先打开文件","warning")},a=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await Gc(1e3)),t.value?.setSelected(e.current.value)):We("请先打开文件","warning")},o=()=>{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 c=e.project.value;c&&(c.currentFile?c.publish(c.currentFile):We("请先打开文件","warning"))},l=c=>{const u=e.project.value;u&&(c==="current"?s():u.publish())};return(c,u)=>(y(),M("div",I7,[R("",!0),R("",!0),_(d(xe),{onClick:o,type:r.value?"warning":"default",size:"small",title:"预览"},{default:j(()=>[_(d(vu))]),_:1},8,["type"]),_(d(xe),{onClick:i,type:"default",size:"small",title:"刷新"},{default:j(()=>[_(d(_u))]),_:1}),_(d(xe),{type:"default",size:"small",title:"页面设置",onClick:a},{default:j(()=>[_(d(lo))]),_:1}),_(d(Yr),{direction:"vertical"}),_(d(Oa),{"split-button":"",type:"primary",size:"small",onClick:s,onCommand:l},{dropdown:j(()=>[_(d(Da),null,{default:j(()=>[_(d(Fr),{command:"current"},{default:j(()=>[le("发布页面")]),_:1}),_(d(Fr),{command:"project"},{default:j(()=>[le("整站发布")]),_:1})]),_:1})]),default:j(()=>[R7]),_:1})]))}}),P7={class:"v-icon-setter"},N7={class:"v-icon-setter__content"},F7={class:"v-icon-setter__list"},q0=I({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D(!1),a=D(t.modelValue),o=D(""),s=z(()=>ua[t.modelValue]||t.modelValue),l=z(()=>{const h=Object.entries(ua);return o.value?h.filter(f=>f[0].toLowerCase().includes(o.value)):h}),c=h=>{a.value=h},u=()=>{r("change",a.value),r("update:modelValue",a.value),i.value=!1},p=()=>{a.value="",r("change",""),r("update:modelValue",""),i.value=!1},m=()=>{i.value=!0};return(h,f)=>(y(),M("div",P7,[_(d(Ge),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":d(Al),onFocus:m},{prepend:j(()=>[_(d(at),{icon:s.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(y(),C(d(Ct),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:u},{extra:j(()=>[_(d(xe),{size:"default",type:"warning",onClick:p},{default:j(()=>[le(" 清除绑定 ")]),_:1})]),default:j(()=>[P("div",N7,[_(d(Ge),{size:t.size,"prefix-icon":d(Tl),clearable:"",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),P("div",F7,[(y(!0),M(ne,null,ae(l.value,v=>(y(),C(d(at),{icon:v[1],onClick:g=>c(v[0]),class:ce({"is-active":a.value===v[0]})},null,8,["icon","onClick","class"]))),256)),l.value.length===0?(y(),C(d(ze),{key:0})):R("",!0)])])]),_:1},8,["modelValue"])):R("",!0)]))}}),H7=I({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=sn(),r=z(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!0,hidden:!1,raw:!1}),a=D(e.item||i()),o=[{label:"页面",value:!1},{label:"目录",value:!0}],s=c=>{a.value&&(a.value.name=Ur(c))},l=async c=>t.value?.existPageName(c.name,[c.id])?(Ae("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(c):t.value?.createPage(c,e.parentId),!0);return(c,u)=>(y(),C(d(Vt),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:a.value,"submit-method":l},{default:j(()=>[_(d(ee),{name:"dir",label:"类型",editor:"radio",options:o,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),_(d(ee),{name:"name",label:"名称",required:"",onChange:s,rules:{pattern:d($t),message:"名称格式不正确"}},null,8,["rules"]),_(d(ee),{name:"title",label:"标题",required:""}),_(d(ee),{name:"icon",label:"菜单图标",editor:"none"},{editor:j(()=>[_(q0,{modelValue:a.value.icon,"onUpdate:modelValue":u[0]||(u[0]=p=>a.value.icon=p),size:"default"},null,8,["modelValue"])]),_:1}),_(d(ee),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),_(d(ee),{name:"hidden",label:"隐藏菜单",editor:"switch"}),_(d(ee),{visible:{dir:!1},disabled:!!e.item,inline:"",name:"raw",label:"源码模式",editor:"switch",tip:"页面是非低代码开发,不能在线编辑"},null,8,["disabled"])]),_:1},8,["title","model"]))}}),ml=I({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=z(()=>({"is-active":t.active,"is-open":t.open})),a=()=>{r("click")};return(o,s)=>(y(),C(d(Gr),{effect:"dark",placement:"right",content:o.label,"show-after":600},{default:j(()=>[P("div",{class:ce(["v-apps-region__icon",i.value]),onClick:a},[(y(),C(Ke(o.icon)))],2)]),_:1},8,["content"]))}}),fe=I({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=D(!1),a=z(()=>({"is-collapsed":!!i.value})),o=()=>{r("plus")},s=()=>{r("edit")},l=()=>{r("back")},c=()=>{r("remove")},u=()=>{r("save")},p=z(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?D2: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(),C(d(dr),{class:ce(["v-panel",a.value]),border:!1,header:p.value,fit:""},Qt({actions:j(()=>[t.plus?(y(),C(d(Be),{key:0,size:h.$attrs.size,mode:"icon",icon:d(uo),background:"hover",title:"新增",onClick:o},null,8,["size","icon"])):R("",!0),t.edit?(y(),C(d(Be),{key:1,size:h.$attrs.size,mode:"icon",icon:d(El),background:"hover",title:"编辑",onClick:s},null,8,["size","icon"])):R("",!0),t.remove?(y(),C(d(Be),{key:2,size:h.$attrs.size,mode:"icon",icon:d(Cl),background:"hover",title:"清除",onClick:c},null,8,["size","icon"])):R("",!0),t.save?(y(),C(d(Be),{key:3,size:h.$attrs.size,mode:"icon",icon:d(gu),background:"hover",title:"保存",onClick:u},null,8,["size","icon"])):R("",!0),t.collapsable?ft((y(),C(d(Be),{key:4,size:h.$attrs.size,mode:"icon",icon:d(Al),background:"hover",title:"展开",onClick:f[0]||(f[0]=v=>m(!1))},null,8,["size","icon"])),[[Zt,i.value]]):R("",!0),t.collapsable?ft((y(),C(d(Be),{key:5,size:h.$attrs.size,mode:"icon",icon:d(O2),background:"hover",title:"收起",onClick:f[1]||(f[1]=v=>m(!0))},null,8,["size","icon"])),[[Zt,!i.value]]):R("",!0),de(h.$slots,"actions")]),default:j(()=>[de(h.$slots,"default")]),_:2},[h.$slots.footer?{name:"footer",fn:j(()=>[de(h.$slots,"footer")]),key:"0"}:void 0]),1032,["class","header"]))}}),L7={class:"v-tabs__header"},U7={key:0,class:"v-tabs__actions"},hi=I({__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=D((t.modelValue||t.items[0]?.name)??"");oe(i,()=>{r("update:modelValue",i.value)}),oe(()=>t.modelValue,l=>{i.value=l});const a=l=>{r("command",l)},o=l=>{r("remove",l)},s=l=>{r("action-click",l)};return(l,c)=>(y(),C(d(dr),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:j(()=>[P("div",L7,[_(d(bo),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),onTabRemove:o,onActionClick:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(y(),M("div",U7,[t.menus&&t.menus.length?(y(),C(d(Be),{key:0,mode:"icon",size:"small",icon:d(Fa),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:a},{item:j(({item:u})=>[P("span",null,[t.checkable?(y(),C(d(io),{key:0,class:ce({"v-tabs__checked":!0,"is-checked":u.checked})},null,8,["class"])):R("",!0),le(" "+te(u.label),1)])]),_:1},8,["icon","menus"])):R("",!0)])):R("",!0)])]),default:j(()=>[de(l.$slots,"default")]),_:3}))}}),W7={key:2,class:"v-item__index"},J7={class:"v-item__content"},q7={key:3,class:"v-item__subtitle"},Me=I({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:uo},copy:{label:"复制",icon:ao},edit:{label:"编辑",icon:co},remove:{label:"删除",icon:sr},lock:{label:"锁定",icon:oo},unlock:{label:"解锁",icon:fu},invisible:{label:"隐藏",icon:ho},visible:{label:"显示",icon:Au},home:{label:"主页",icon:pu}},r=n,i=e,a=D(!!r.modelValue),o=z(()=>r.actions.map(u=>{const p=t[u];return{name:u,...p}})),s=z(()=>({"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)},c=async u=>{u==="remove"?await Xr.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:u,modelValue:r.modelValue}):i("action",{name:u,modelValue:r.modelValue})};return oe(a,u=>{i("update:modelValue",u),i("switch",u)}),oe(()=>r.modelValue,u=>{a.value=!!u}),(u,p)=>(y(),C(d(se),{class:ce(["v-item",s.value]),justify:"space-between",align:"center",onClick:l},{default:j(()=>[_(d(se),{class:"v-item__title",align:"center"},{default:j(()=>[de(u.$slots,"default",{},()=>[u.icon?(y(),C(d(at),{key:0,icon:u.icon},null,8,["icon"])):R("",!0),r.tag?(y(),C(d($2),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:j(()=>[le(te(r.tag),1)]),_:1},8,["type"])):R("",!0),u.index!==void 0?(y(),M("span",W7," # "+te(u.index),1)):R("",!0),P("span",J7,te(u.title),1),u.subtitle?(y(),M("span",q7,te(u.subtitle),1)):R("",!0)])]),_:3}),_(d(se),{class:"v-item__actions",onClick:p[1]||(p[1]=vn(()=>{},["stop"]))},{default:j(()=>[(y(!0),M(ne,null,ae(o.value,m=>(y(),C(d(Be),{name:m.name,title:m.label,mode:"icon",size:"small",background:"none",type:"info",icon:m.icon,onClick:h=>c(m.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(y(),C(d(Ia),{key:0,modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=m=>a.value=m),class:"v-item__switch",size:"small"},null,8,["modelValue"])):R("",!0),de(u.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),K7=["draggable"],G7={class:"v-box__name"},Y7={class:"v-box__label"},Ea=I({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean},tag:{},tagType:{}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},a=async()=>{await Xr.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},o=z(()=>({"is-active":t.active,"is-draggable":t.draggable})),s=()=>{r("dragstart",t)},l=()=>{r("dragend",t)};return(c,u)=>(y(),M("div",{class:ce(["v-box",o.value]),draggable:c.draggable,onDragstart:s,onDragend:l},[_(d(se),{direction:"column",justify:"center",align:"center"},{default:j(()=>[P("span",G7,te(t.name),1),P("span",Y7,te(t.title),1)]),_:1}),t.editable?(y(),C(d(se),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:j(()=>[_(d(at),{icon:d(co),onClick:i},null,8,["icon"]),_(d(at),{icon:d(sr),onClick:a},null,8,["icon"])]),_:1})):R("",!0),t.tag?(y(),M("span",{key:1,class:ce(["v-box__tag",{[`is-${t.tagType}`]:!!t.tagType}])},te(t.tag),3)):R("",!0)],42,K7))}}),X7={class:"v-context-viewer"},Q7=I({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],a=u=>{const p=u.value,m=Si(p);return m==="Object"||m==="Module"?Object.keys(p||{}).length===0:m==="Array"?p.length===0:!0},o=(u,p="this")=>typeof u=="object"?Array.isArray(u)?u.map((m,h)=>{const f=`[${h}]`;return{label:f,value:m,type:Si(m),path:`${p}${f}`}}):Object.entries(u).map(([m,h])=>({label:m,value:h,type:Si(h),path:`${p}.${m}`})).filter(m=>!m.label.startsWith("__")&&!i.includes(m.label)):[],s=(u,p)=>{if(u.level===0)p(o(t.context));else{const m=fn(u.data.value);p(o(m,u.data.path))}},l=u=>{r("copy",u.path)},c=u=>{r("pick",u.path)};return(u,p)=>(y(),M("div",X7,[u.context?(y(),C(d(Na),{key:0,lazy:"",load:s,"expand-on-click-node":!1,props:{isLeaf:a}},{default:j(({data:m})=>[_(Me,{title:m.label,clickable:"",onClick:h=>c(m),background:"",actions:["copy"],onAction:h=>l(m),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):R("",!0)]))}}),Ao=I({__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:a}=g7(t.block,t.context),{copy:o}=H2({}),s=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],l=D("normal"),c=D(),u=async k=>{r("submit",k),t.submitMethod?await t.submitMethod(k)&&p():p()},p=()=>{r("update:modelValue",!1),r("close")},m=()=>{r("unbind")},h=()=>{p()},f=async()=>{c.value?.submit()},v=k=>{r("pick",k)},g=k=>{o(k),xn.success({message:"已经复制到粘贴板"})};return(k,b)=>(y(),C(d(Ct),{"model-value":t.modelValue,class:"v-binder",title:k.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:p},{default:j(()=>[_(d(se),{fit:"",direction:"row",overflow:"hidden"},{default:j(()=>[_(d(se),{width:"30%",height:"100%"},{default:j(()=>[_(hi,{class:"v-binder__tabs",items:s,modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=x=>l.value=x)},{default:j(()=>[_(d(se),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:j(()=>[ft(P("div",null,[_(d(Ge),{modelValue:d(a),"onUpdate:modelValue":b[0]||(b[0]=x=>Hi(a)?a.value=x:null),size:"small",clearable:"","prefix-icon":d(Tl),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(y(!0),M(ne,null,ae(d(i),x=>(y(),M("div",null,[_(d(Yr),{"border-style":"dotted"},{default:j(()=>[le(te(x.title),1)]),_:2},1024),(y(!0),M(ne,null,ae(x.items,S=>(y(),C(Me,{title:S,background:"",actions:["copy"],small:"",onClick:V=>v(S),onAction:V=>g(S)},null,8,["title","onClick","onAction"]))),256))]))),256)),d(i).length?R("",!0):(y(),C(d(ze),{key:0}))],512),[[Zt,l.value==="normal"]]),ft(_(Q7,{context:t.context,onCopy:g,onPick:v},null,8,["context"]),[[Zt,l.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),_(d(dr),{grow:"",header:null,border:!1},{footer:j(()=>[_(d(se),{justify:"space-between"},{default:j(()=>[_(d(se),null,{default:j(()=>[k.unbindEnabled?(y(),C(d(xe),{key:0,type:"warning",size:"default",onClick:m},{default:j(()=>[le(" 移除绑定 ")]),_:1})):R("",!0)]),_:1}),_(d(se),null,{default:j(()=>[_(d(xe),{type:"default",size:"default",onClick:h},{default:j(()=>[le(" 取消 ")]),_:1}),_(d(xe),{type:"primary",size:"default",onClick:f},{default:j(()=>[le(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:j(()=>[_(d(li),{ref_key:"formRef",ref:c,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":u},{default:j(()=>[de(k.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),Z7={class:"v-slots-picker__sn"},e9=I({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D(),a=z(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),o=l=>{i.value=l},s=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Ae("请选择插槽")};return(l,c)=>(y(),C(d(Ct),me({class:"v-slots-picker",title:"选择插槽",width:"600px",height:a.value,submit:"",cancel:"",onSubmit:s},l.$attrs),{default:j(()=>[_(d(jl),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),_(d(se),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:j(()=>[(y(!0),M(ne,null,ae(t.slots,(u,p)=>(y(),C(d(se),{class:ce(["v-slots-picker__item",{"is-active":u.name===i.value?.name}]),grow:"",flex:!1,onClick:m=>o(u)},{default:j(()=>[P("span",Z7,"#"+te(p+1),1),le(" "+te(u.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),K0=I({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=z(()=>[`is-${e.mode}`]),r=z(()=>{if(e.mode==="pc")return 1;const a=e.mode==="mobile"?pl:hl,{width:o,height:s}=a,l=o>0?(e.width||0)/o:1,c=s>0?(e.height||0)/s:1;return Math.min(l,c)}),i=z(()=>{if(e.mode==="pc")return{};const a=e.mode==="mobile"?pl:hl,{width:o,height:s}=a;return{width:`${o}px`,height:`${s}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(a,o)=>(y(),M("div",{class:ce(["v-viewport",t.value]),style:Rt(i.value)},[de(a.$slots,"default")],6))}}),t9=I({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=sn(),r=z(()=>e.value?.pages||[]),{current:i}=Ie(),a=D(!1),o=D(),s=D(),l=()=>{s.value=void 0,o.value=void 0,a.value=!0},c=async h=>{const{name:f,modelValue:v}=h,{data:g,node:k}=v;if(f==="add"&&(o.value=void 0,s.value=g.id,a.value=!0),f==="edit"&&(o.value=en(g),s.value=void 0,a.value=!0),f==="remove"){if(g.dir){const b=e.value?.getPage(g.id);if(b&&b.children?.length){Ae("请先删除子页面");return}}e.value?.removePage(g.id)}if(f==="copy"){const b=k.parent?.data.id;e.value?.clonePage(g,b)}f==="home"&&(e.value?.setHomepage(g.id),We("设置主页成功","success"))},u=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:Li(r)})};return(h,f)=>(y(),C(d(fe),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:l},{default:j(()=>[_(d(Na),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":p,onNodeDrop:m},{default:j(({data:v,node:g})=>[_(d(Me),{class:"v-pages-widget__item",icon:d(ua)[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:c,onClick:k=>u(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"]),a.value?(y(),C(H7,{key:0,modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),item:o.value,"parent-id":s.value},null,8,["modelValue","item","parent-id"])):R("",!0)]),_:1}))}}),n9={class:"v-file-setter"},To=I({name:"FileSetter",__name:"file",props:{modelValue:{},attachment:{}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,{engine:i,project:a}=sn(),o=D([]),s=D(!1),l=b=>Array.isArray(b)?b.map(x=>({name:x.filename,url:x.filepath})):b?{name:b.filename,url:b.filepath}:null,c=async b=>{if(i&&a.value){const x=await i.service.uploadStaticFile(b,a.value.id);return l(x)}return null},u=b=>b?(b||"").split(",").map(x=>({url:x})):[],p=D(u(t.modelValue)),m=z(()=>Array.isArray(p.value)?p.value.map(b=>b.url).join(","):p.value?p.value.url:"");oe(()=>t.modelValue,b=>{p.value=u(b)}),oe(s,async b=>{if(b){const x=await i.service.getStaticFiles(a.value?.id).catch(()=>null);o.value=l(x)}});const h=()=>{if(!p.value||Array.isArray(p.value)&&p.value.length===0)return Ae("请选择文件"),!1;const b=(t.attachment?.accept||"").toLowerCase().split(",");return b.length>0?[].concat(p.value).every(x=>{const S=x.name||x.url.split("?")[0],V=S.substring(S.lastIndexOf(".")).toLowerCase();return b.includes(V)})?!0:(Ae(`只支持 ${b.join(",")} 文件`),!1):!0},f=()=>{h()&&(r("change",m.value),r("update:modelValue",m.value),s.value=!1)},v=()=>{p.value=[],r("change",void 0),r("update:modelValue",void 0),s.value=!1},g=()=>{s.value=!0},k=b=>{b.name&&a.value?.id&&i.service.removeStaticFile(b.name,a.value?.id)};return(b,x)=>(y(),M("div",n9,[_(d(Ge),me({readonly:"",onFocus:g,"model-value":t.modelValue,"suffix-icon":d(I2)},b.$attrs),null,16,["model-value","suffix-icon"]),s.value?(y(),C(d(Ct),{key:0,modelValue:s.value,"onUpdate:modelValue":x[1]||(x[1]=S=>s.value=S),title:"文件选择器",width:"600px",height:"400px",cancel:"",submit:"",onSubmit:f},{extra:j(()=>[_(d(xe),{type:"warning",size:"default",onClick:v},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(wb),me({size:"small","list-type":"list",selectable:!0,uploader:c,"model-value":o.value,"select-value":p.value,"onUpdate:selectValue":x[0]||(x[0]=S=>p.value=S)},t.attachment,{onRemove:k}),null,16,["model-value","select-value"])]),_:1},8,["modelValue"])):R("",!0)]))}}),r9=I({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=W0(),{blocks:t,engine:r}=d7(),i=[{label:"设计",value:"Schema",border:!0},{label:"引用",value:"UrlSchema",border:!0},{label:"插件",value:"Plugin",border:!0}],a={Schema:{label:"设计",type:"primary"},UrlSchema:{label:"引用",type:"warning"},Plugin:{label:"插件",type:"danger"}},o=D(void 0),{current:s}=Ie(),l=D(!1),c=z(()=>o.value?.id?"编辑区块":"新增区块"),u=z(()=>`(共 ${t.value.length} 个)`),p=()=>({fromType:"Schema",name:"",title:"",urls:"",library:"",type:"block"}),m=z(()=>{if(o.value?.fromType==="UrlSchema")return".json";if(o.value?.fromType==="Plugin")return".js,.css,.json"}),h=z(()=>o.value?.fromType==="Plugin"),f=async w=>{const $=w,E=r.project.value;if(!E)return!1;if(w.id)if(!E.existBlockName($.name,[$.id]))E.updateBlock($);else return Ae(`名称【${$.name}】已经存在,请更换名称`),!1;else if(!E.existBlockName($.name))E.createBlock($);else return Ae(`名称【${$.name}】已经存在,请更换名称`),!1;return!0},v=()=>{o.value=p(),l.value=!0},g=w=>{o.value=en(w),l.value=!0},k=w=>{r.project.value?.removeBlock(w.id)},b=w=>{o.value&&(o.value.name=Ur(w))},x=async w=>{(!w.fromType||w.fromType==="Schema")&&r.project.value?.active(w)},S=async w=>{const $=tg(w),E=await r.assets.getBlockMaterial($,w.name),J=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;J&&E&&J.setDragging(E)},V=()=>{const w=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;w&&w.setDragging(null)};return(w,$)=>(y(),C(d(fe),{class:"v-blocks-widget",title:"区块管理",subtitle:u.value,plus:"",onPlus:v},{default:j(()=>[_(d(Ji),{wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),M(ne,null,ae(d(t),E=>(y(),C(d(Wi),{key:E.id,span:d(e)},{default:j(()=>[_(d(Ea),{name:E.name,title:E.title,active:d(s)?.id===E.id,editable:"",tag:a[E.fromType||"Schema"]?.label,tagType:a[E.fromType||"Schema"]?.type,onEdit:J=>g(E),onRemove:J=>k(E),onClick:J=>x(E),draggable:d(s)?.id!==E.id,onDragstart:J=>S(E),onDragend:V},null,8,["name","title","active","tag","tagType","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(t).length?R("",!0):(y(),C(d(ze),{key:0})),_(d(Vt),{modelValue:l.value,"onUpdate:modelValue":$[0]||($[0]=E=>l.value=E),title:c.value,model:o.value,width:"600px",height:"400px","form-props":{tooltipMessage:!1},"submit-method":f},{default:j(()=>[_(d(ee),{name:"fromType",label:"类型",required:"",editor:"radio",disabled:!!o.value?.id,options:i},null,8,["disabled"]),_(d(ee),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:d($t)},onChange:b},null,8,["rules"]),_(d(ee),{name:"title",label:"标题",required:""}),o.value?.fromType==="Plugin"?(y(),C(d(ee),{key:0,name:"library",label:"插件名称",required:""})):R("",!0),["Plugin","UrlSchema"].includes(o.value?.fromType||"")?(y(),C(d(ee),{key:1,name:"urls",label:"资源文件",required:"",editor:To,props:{attachment:{accept:m.value,multiple:h.value}}},null,8,["props"])):R("",!0)]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),i9={class:"v-components-widget__search"},a9={key:0,class:"v-components-widget__result"},o9={class:"v-components-widget__list"},s9=I({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=W0(),{tabs:r,currentTab:i,currentGroup:a,model:o,searchKey:s,searchResult:l}=h7(),c=p=>{const m=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;m&&m.setDragging(p)},u=()=>{const p=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;p&&p.setDragging(null)};return(p,m)=>(y(),C(d(fe),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:j(()=>[P("div",i9,[_(d(Ge),{modelValue:d(s),"onUpdate:modelValue":m[0]||(m[0]=h=>Hi(s)?s.value=h:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:j(()=>[_(d(zu))]),_:1},8,["modelValue"])]),d(s)?(y(),M("div",a9,[_(d(Ji),{wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),M(ne,null,ae(d(l),h=>(y(),C(d(Wi),{span:d(e),key:h.name},{default:j(()=>[_(d(Ea),{name:h.name,title:h.label||h.name,draggable:"",onDragstart:f=>c(h),onDragend:u},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(l).length?R("",!0):(y(),C(d(ze),{key:0}))])):(y(),C(d(bo),{key:1,items:d(r),modelValue:d(i),"onUpdate:modelValue":m[2]||(m[2]=h=>Hi(i)?i.value=h:null)},{default:j(()=>[P("div",o9,[d(a)?(y(),C(d(b2),{key:0,modelValue:d(o)[d(i)],"onUpdate:modelValue":m[1]||(m[1]=h=>d(o)[d(i)]=h)},{default:j(()=>[(y(!0),M(ne,null,ae(d(a).children,h=>(y(),C(d(w2),{key:h.name,name:h.name,title:`${h.label} (${h.count})`},{default:j(()=>[h.components?(y(),C(d(Ji),{key:0,wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),M(ne,null,ae(h.components,f=>(y(),C(d(Wi),{span:d(e),key:f.name},{default:j(()=>[_(d(Ea),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>c(f),onDragend:u},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):R("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):R("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),l9=I({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=xt(),{current:i}=Ie(),a=D([]),o=(w,$)=>{if($==="slot")return[];if(Ve(w))return w.locked?["unlock"]:["lock"];const E=w.parent;return E&&(E.locked||E.invisible)?[]:i.value?.locked?[]:w.locked?["unlock"]:w.invisible?["visible"]:["lock","invisible","copy","remove"]},s=(w,$)=>{const E={};if(!w.some(T=>T.slot))return l(w);for(const T of w){const B=T.slot?.name||"default";E[B]||(E[B]=[]),E[B].push(T)}const J=[];for(const[T,B]of Object.entries(E))J.push({id:`${$.id}-${T}`,label:`#${T}`,type:"slot",model:$,disabled:!0,children:l(B)});return J},l=w=>{const $=[];return w.forEach(E=>{const J={id:E.id,label:E.name,type:E.id,model:E};Array.isArray(E.children)&&(J.children=s(E.children,E)),$.push(J)}),$},c=()=>{if(!i.value)return[];const{id:w,name:$,nodes:E}=i.value;return[{id:w,label:$,type:w,model:i.value,children:l(E)}]},u=async()=>{a.value=c(),r.value?.model&&(await pt(),t.value?.setSelected(r.value.model))},p=z(()=>r.value?.model.id),m=w=>{const $=w.data;if($.type==="slot"||Ve($.model)||$.model.locked||$.model.name==="template")return!1;const E=e.assets.componentMap.get($.model.name);return E?(t.value?.setDragging(E),!0):!1},h=async(w,$,E)=>{const J=$.data,T={prev:"top",next:"bottom",inner:"inner"}[E];let B=!1;if(Ve(J.model))B=E==="inner",t.value?.setDropping(B?J.model:null,"inner");else{const F=J.model;B=!!await t.value?.allowDrop(F,T),t.value?.setDropping(B?F:null,"inner")}return B},f=w=>{const $=w?.model;if(!$||$.invisible||w.type==="slot"){t.value?.setSelected(null),t.value?.setHover(null);return}t.value?.setSelected($),t.value?.setHover(null)},v=async(w,$,E)=>{const J=w.data,T=$.data;if(Ve(T.model)){t.value?.setDropping(null),t.value?.setDragging(null);return}const B=T.model,F={before:"left",after:"right"}[E]||"inner";if(!await t.value?.allowDrop(B,F)){t.value?.setDropping(null),u(),xn.warning({message:`${J.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const A=await t.value?.getDropSlot(E==="inner"?B:B.parent);if(A!==null){const N=J.model;N.slot=A,i.value?.move(N,B,F)}else u();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},g=w=>{if(w.type==="slot"){t.value?.setHover(null);return}Ve(w.model)?t.value?.setHover(w.model):(t.value?.setHover(w.model),w.model.invisible&&t.value?.setHover(null),w.model.name==="slot"&&t.value?.setHover(null))},k=()=>{t.value?.setHover(null)},b=w=>{const $=w.data;$.dragging=!0;const E=e.assets.componentMap.get($.model.name);E&&t.value?.setDragging(E)},x=async w=>{const $=w.data;$.dragging=!1},S=(w,$)=>{w&&((w.id===$.id||!Ve(w)&&$.isChild(w))&&t.value?.setSelected(null),t.value?.setHover(null))},V=w=>{const{name:$,modelValue:E}=w,J=r.value?.model;switch($){case"lock":S(J,E),E.lock();break;case"unlock":S(J,E),E.unlock();break;case"invisible":S(J,E),E.setVisible(!1);break;case"visible":E.setVisible(!0);break;case"copy":const T=i.value?.cloneNode(E);T&&t.value?.setSelected(T);break;case"remove":S(J,E),i.value?.removeNode(E);break}};return oe(e.changed,u,{immediate:!0}),(w,$)=>(y(),C(d(fe),{class:"v-outline-widget",title:"大纲树"},{default:j(()=>[(y(),C(d(Na),{key:d(e).changed.value,data:a.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:x},{default:j(({data:E,node:J})=>[_(d(Me),{class:ce(["v-outline-widget__item",{"is-locked":E.model.locked,"is-invisible":E.model.invisible,"is-dragging":E.dragging,"is-slot":E.type==="slot"}]),active:!E.model.invisible&&J.isCurrent&&E.type!=="slot",grow:"",small:"",background:"",hover:"","model-value":E.model,icon:E.model.locked?d(oo):E.model.invisible?d(ho):void 0,title:E.label,subtitle:E.type,actions:o(E.model,E.type),onAction:V,onMouseenter:T=>g(E),onMouseleave:k},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"]))]),_:1}))}}),c9=I({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=J0(),i=z(()=>`(共 ${r.value} 条)`),a=s=>{s.name==="remove"&&e.value?.remove(s.modelValue.id)},o=async()=>{await Dn("确定要清空历史记录吗?")&&e.value?.clear()};return(s,l)=>(y(),C(d(fe),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!d(r),onRemove:o},{default:j(()=>[d(r)===0?(y(),C(d(ze),{key:0,"image-size":50})):R("",!0),d(e)?(y(!0),M(ne,{key:1},ae(d(e).items,(c,u)=>(y(),C(d(Me),{index:u+1,title:c.label,"model-value":c,active:u==d(e).index,small:"",background:"",actions:["remove"],onAction:a,onClick:p=>d(t)(c.id)},null,8,["index","title","model-value","active","onClick"]))),256)):R("",!0)]),_:1},8,["subtitle","remove"]))}}),u9=I({__name:"base-info",setup(n){const e=c7.map(t=>({label:t,value:t.toLowerCase()}));return(t,r)=>(y(),M("div",null,[_(d(ee),{name:"method",label:"请求类型",required:"",editor:"radio",options:d(e)},null,8,["options"]),_(d(ee),{name:"name",label:"接口名称",required:"",rules:{pattern:d($t),message:"名称格式不正确"}},null,8,["rules"]),_(d(ee),{name:"label",label:"备注说明",required:""}),_(d(ee),{name:"url",label:"接口URL",required:""})]))}}),Te=Fi({loader:()=>e2(()=>import("./Editor-BKlikwSl-BkVOzfXj.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:I({render(){return Re("div","正在拼命加载...")}}),errorComponent:I({render(){return Re("div","组件加载失败!")}})}),d9=I({__name:"request-settings",setup(n){const e=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],t=Mt("currentModel",null);return(r,i)=>(y(),M("div",null,[_(d(se),{justify:"space-between"},{default:j(()=>[_(d(ee),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),_(d(ee),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),_(d(ee),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),_(d(ee),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),_(d(ee),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),_(d(ee),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:e,props:{button:!0}}),_(d(ee),{size:"small",name:"headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction"},{editor:j(()=>[_(d(Te),{dark:"",height:"260px",modelValue:d(t).headers.value,"onUpdate:modelValue":i[0]||(i[0]=a=>d(t).headers.value=a)},null,8,["modelValue"])]),_:1})]))}}),p9=I({__name:"jsonp-options",setup(n){return(e,t)=>(y(),M("div",null,[_(d(ee),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),_(d(ee),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),_(d(ee),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),_(d(ee),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]))}}),h9=P("span",null,"模拟数据模板",-1),m9=I({__name:"mock-template",setup(n){const e=Mt("currentModel",null),{project:t}=sn(),r=z(()=>t.value?.config||{}),i=()=>{window.open("https://vtj.pro/help/mock.html")};return(a,o)=>(y(),M("div",null,[r.value.mock?R("",!0):(y(),C(d(jl),{key:0,type:"warning",title:"需要在项目配置中开启模拟数据",closable:!1,style:{"margin-bottom":"20px"}})),_(d(ee),{size:"small",name:"mock",label:"开启模拟数据",disabled:!r.value.mock,editor:"switch"},null,8,["disabled"]),_(d(se),{justify:"space-between"},{default:j(()=>[h9,_(d(Be),{icon:d(po),mode:"text",label:"帮助",onClick:i},null,8,["icon"])]),_:1}),_(d(ee),{size:"small",name:"mockTemplate.value",label:" "},{editor:j(()=>[_(d(Te),{dark:"",height:r.value.mock?"330px":"280px",lang:"typescript",disabled:!r.value.mock,readonly:!r.value.mock,modelValue:d(e).mockTemplate.value,"onUpdate:modelValue":o[0]||(o[0]=s=>d(e).mockTemplate.value=s)},null,8,["height","disabled","readonly","modelValue"])]),_:1})]))}}),f9={key:0},v9=I({__name:"form",props:{model:{},project:{}},setup(n){const e=n,t=z(()=>e.model?"编辑API":"新增API"),r=D("base"),i=D(),a=D(),o=D(e.model||{}),s=D(!1),l=D(""),c=[{label:"基础信息",value:"base"},{label:"请求配置",value:"settings"},{label:"模拟数据",value:"mock"}];Ni("currentModel",o);const u=z(()=>o.value?.method==="jsonp");oe(()=>e.model,v=>{o.value=Object.assign({},v||{}),r.value="base"},{immediate:!0}),oe(r,async()=>{a.value?.formRef.validate(async v=>{v||(await pt(),r.value="base")})});const p=()=>{i.value?.cancel()},m=()=>{a.value?.submit()},h=async v=>e.project?.existApiName(o.value.name,e.model?[o.value.id]:[])?(Ae(`API名称 [ ${o.value.name} ] 已存在`),!1):o.value.headers&&!De(o.value.headers,window)||o.value.mockTemplate&&!De(o.value.mockTemplate,window)?!1:(e.project?.setApi(o.value),i.value?.close(),!0),f=()=>{if(o.value.mockTemplate){const v=yt(o.value.mockTemplate,{},!0),{url:g,method:k}=o.value,b=Yn.mock(v({url:g,type:k}));l.value=JSON.stringify(b,null,2),s.value=!0}};return(v,g)=>(y(),C(d(Ct),{ref_key:"dialogRef",ref:i,title:t.value,width:"1000px",height:"600px"},{default:j(()=>[_(d(se),{fit:""},{default:j(()=>[_(d(se),{width:"100px",shrink:!1},{default:j(()=>[_(d(bo),{modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=k=>r.value=k),items:c,"tab-position":"left",border:"",fit:""},null,8,["modelValue"])]),_:1}),_(d(dr),{header:null,border:!1,overflow:"auto",grow:"",shrink:!0,fit:""},{footer:j(()=>[_(d(se),{justify:"space-between"},{default:j(()=>[P("div",null,[r.value==="mock"?(y(),C(d(xe),{key:0,disabled:!e.project?.config?.mock,type:"warning",onClick:f},{default:j(()=>[le(" 预览 ")]),_:1},8,["disabled"])):R("",!0)]),P("div",null,[_(d(xe),{onClick:p},{default:j(()=>[le("取消")]),_:1}),_(d(xe),{type:"primary",onClick:m},{default:j(()=>[le("保存")]),_:1})])]),_:1})]),default:j(()=>[_(d(li),{ref_key:"formRef",ref:a,footer:!1,labelPosition:"top",tooltipMessage:!1,model:o.value,submitMethod:h},{default:j(()=>[ft(_(u9,null,null,512),[[Zt,r.value==="base"]]),r.value==="settings"?(y(),M("div",f9,[u.value?(y(),C(p9,{key:0})):(y(),C(d9,{key:1}))])):R("",!0),r.value==="mock"?(y(),C(m9,{key:1})):R("",!0)]),_:1},8,["model"])]),_:1})]),_:1}),s.value?(y(),C(d(kl),{key:0,class:"v-drawer",modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=k=>s.value=k),title:"模拟数据结果",direction:"btt","append-to-body":"",size:"80%"},{default:j(()=>[_(d(Te),{"model-value":l.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):R("",!0)]),_:1},8,["title"]))}}),g9=I({name:"ApisWidget",__name:"index",setup(n){const e=D(!1),t=D(null),r=D(!1),i=z(()=>a.value?.apis||[]),{project:a}=sn(),o=()=>({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) => {
95
+ */const l7="0.8.3",pl={width:390,height:844},hl={width:1180,height:820},Et=/^[A-Za-z_$][\:\w_-]*$/,c7=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],u7=["keydown","keyup","keypress"],d7=["GET","POST","PUT","PATCH","DELETE","JSONP"],p7=["stop","prevent","capture","self","once","passive"];var ot=(n=>(n.Block="block",n.Node="node",n))(ot||{});function U0(){const n=Le(),e=z(()=>n.project.value?.dependencies??[]),t=z(()=>n.project.value?.apis??[]);return{engine:n,dependencies:e,apis:t}}function Ut(n,e){const t=z(()=>Q0.getWidgets(d(n),d(e)).filter(i=>!i.invisible)),r=D();return{widgets:t,widgetsRef:r}}function W0(){const n=Le();return{span:z(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function h7(){const n=Le(),e=z(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const m7=(n=[])=>n.map(e=>e.name);function f7(){const n=Le(),{components:e,groups:t,componentMap:r}=n.assets,i=nn({}),a=z(()=>{const p={};return t.value&&t.value.forEach(m=>{p[m.name]=m}),p}),o=z(()=>t.value?t.value.map(p=>({label:`${p.label} (${p.count})`,name:p.name,disabled:!p.children?.length})):[]),s=D(o.value[0]?.name),l=D(""),c=z(()=>a.value[s.value]);gl(()=>{const p=o.value.reduce((m,h)=>(m[h.name]=m7(a.value[h.name].children),m),{});Object.assign(i,p)}),oe(o,p=>{p.length&&!s.value&&(s.value=p[0].name)},{immediate:!0});const u=z(()=>{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:a,tabs:o,model:i,currentTab:s,currentGroup:c,searchKey:l,searchResult:u}}function Ie(){const n=Le(),e=z(()=>n.current.value),t=z(()=>n.simulator.renderer?.context??null),r=z(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function v7(n,e,t,r){const i=Le();i.simulator.init(n,e,t,r);const a=z(()=>i.simulator.designer.value),o=z(()=>Ri("hover",a.value?.hover.value)),s=z(()=>Ri("dropping",a.value?.dropping.value)),l=z(()=>Ri("selected",a.value?.selected.value));return oe(i.changed,()=>{a.value?.updateRect()}),{designer:a,dropping:s,hover:o,selected:l}}function g7(n,e=!0){const{top:t,height:r,width:i,left:a}=n||{};if(r>100&&i>200)return"inner";let o,s;return s=t>30?"top":"bottom",o=e||a<300&&i<300?"left":"right",[o,s].join("-")}function y7(n){const{rect:e,type:t}=n,{left:r,width:i,top:a,height:o}=e,s={left:r,width:i,top:a,height:o};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 Ri(n,e){if(!e)return null;const{left:t,top:r,width:i,height:a}=n==="dropping"?y7(e):e.rect,o={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${a}px`,visibility:i||a?"visible":"hidden"};return{...e,style:o,position:g7(e.rect,n!=="selected")}}function xt(){const n=Le(),e=z(()=>n.simulator.designer.value),t=z(()=>e.value?.selected.value),r=z(()=>Ce(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function b7(n,e){const t=D(""),{selected:r,isSelectBlock:i}=xt(),a=z(()=>r.value?.model.id),o=z(()=>{const l=Li(n),c=Li(e),u=[];if(!l)return u;const p=c?.__contextRefs[a.value||""],m=c===p||i.value?[]:Object.keys(p?.context||{}).filter(S=>!["context","ref"].includes(S)).map(S=>`this.context.${S}`);m.length&&u.push({title:"上下文",items:m});const h=l.inject.map(S=>`this.${S.name}`);h.length&&u.push({title:"注入",items:h});const f=l.props.map(S=>typeof S=="string"?`this.props.${S}`:`this.props.${S.name}`);f.length&&u.push({title:"属性",items:f});const v=Object.keys(l.state).map(S=>`this.state.${S}`);v.length&&u.push({title:"状态",items:v});const g=Object.keys(l.computed).map(S=>`this.${S}.value`);g.length&&u.push({title:"计算属性",items:g});const k=Object.keys(l.methods).map(S=>`this.${S}`);k.length&&u.push({title:"方法",items:k});const b=Object.keys(l.dataSources).map(S=>`this.${S}`);b.length&&u.push({title:"数据源",items:b});const w=Object.keys(c?.$refs||{}).map(S=>`this.$refs.${S}`);return w.length&&u.push({title:"refs",items:w}),u}),s=z(()=>{if(!t.value)return o.value;const l=t.value.toLowerCase(),c=[];return o.value.forEach(u=>{const p=u.items.filter(m=>m.toLowerCase().includes(l));p.length&&c.push({title:u.title,items:p})}),c});return{keyword:t,options:o,searchResult:s}}const $r=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function w7(n){const e=Le(),t=z(()=>{const l=n.value?.model||null;return Ce(l)?null:l}),r=D();oe(t,async l=>{l?.from?r.value=await e.assets.getBlockMaterial(l.from)||void 0:r.value=void 0},{immediate:!0});const i=z(()=>t.value?[{name:"key",setters:$r,value:t.value.getPropValue("key")},{name:"ref",setters:$r,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:$r,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:$r,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),a=z(()=>{if(!t.value)return[];const l=r.value||e.assets.componentMap.get(t.value.name);return l?(l.props||[]).map(c=>({...c,value:t.value?.getPropValue(c.name)??c.defaultValue})):[]}),o=l=>i.value.some(c=>c.name===l)||a.value.some(c=>c.name===l)||l==="style",s=z(()=>t.value?Object.keys(t.value.props).filter(l=>!o(l)).map(l=>({name:l,setters:"InputSetter",value:t.value?.getPropValue(l)})):[]);return{commonProps:i,componentProps:a,customProps:s,node:t,change:(l,c)=>{t.value&&(l==="children"?t.value.setChildren(c):t.value.setProp(l,c))},addCustom:l=>{l&&t.value?.setProp(l,"")},removeCustom:l=>{t.value?.removeProp(l)},isExist:o}}function Ae(n,e="提示"){return rn.warning({title:e,message:n})}async function Dn(n){return await Xr.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function We(n,e="success"){return xn({message:n,type:e})}function De(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?yt(n,e,t,!0):Va(n,e,t,!0)}catch(i){r=!1,rn.error({title:"代码错误",message:i.message})}return r}function J0(){const n=Le(),e=z(()=>n.simulator.designer.value),t=z(()=>n.current.value?n.history.value:null),r=z(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},a=()=>{t.value?.backward(),e.value?.cleanHelper()},o=c=>{e.value?.cleanHelper(),t.value?.load(c),We("已载入历史记录","success")},s=z(()=>r.value<=1?!0:(t.value?.index||-1)<=0),l=z(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:a,load:o,forwardDisabled:s,backwardDisabled:l}}function ln(){const n=Le(),e=z(()=>n.project.value);return{engine:n,project:e}}function x7(n){const e=Le(),t=z(()=>{const s=n.value?.model||null;return!s||Ce(s)?null:s}),r=D();oe(t,async s=>{s?.from?r.value=await e.assets.getBlockMaterial(s.from)||void 0:r.value=void 0},{immediate:!0});const i=z(()=>{if(Ce(t.value))return[];const s=t.value?.events||{};return c7.map(l=>({name:l,event:s[l]}))}),a=z(()=>{if(Ce(t.value))return[];const s=t.value?.events||{};return u7.map(l=>({name:l,event:s[l]}))}),o=z(()=>{if(!t.value||Ce(t.value))return[];const s=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(l=>{const c=typeof l=="string"?l:l.name;return{name:c,event:s[c]}})});return{mouseEventList:i,keyboardEventList:a,componentEventList:o}}const _7=(n,e)=>new fn({name:n,value:void 0,iterator:e}),S7=(n="modelValue")=>new fn({name:"vModel",value:void 0,arg:n});function k7(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(a=>a.includes(i.name))):[]}return[]}function j7(n){const e=Le(),t=z(()=>{const p=n.value?.model||null;return Ce(p)?null:p}),r=p=>z(()=>t.value&&(t.value.directives||[]).find(m=>m.name===p)||_7(p)),i=()=>z(()=>{if(!t.value)return[];const p=e.assets.componentMap.get(t.value.name||"");return(p?k7(p):[]).map(m=>(t.value?.directives||[]).find(h=>h.name==="vModel"&&h.arg==m.name)||S7(m.name))}),a=r("vIf"),o=r("vShow"),s=r("vBind"),l=r("vFor"),c=i(),u={vIf:a,vShow:o,vBind:s,vFor:l};return{engine:e,node:t,vIf:a,vShow:o,vBind:s,vFor:l,vModels:c,onValueChange:(p,m)=>{const h=u[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=c.value[h];f&&(m?(f.value=m,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function V7(){const{engine:n,project:e}=ln(),t=z(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const C7="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",E7=["title","src"],$7={key:1},A7=I({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{},text:{default:"VTJ"},link:{}},setup(n){const{engine:e}=Ie(),t=n,r=z(()=>t.icon||e.project.value?.config?.logo||C7),i=()=>{t.link&&(location.href=t.link)};return(a,o)=>(y(),R("div",{class:"v-logo-widget",onClick:i},[r.value?(y(),R("img",{key:0,title:t.text,class:"v-logo-widget__icon",src:r.value},null,8,E7)):(y(),R("span",$7,te(t.text),1))]))}}),T7={class:"v-empty-widget"},B7=I({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(y(),R("div",T7,"EmptyWidget"))}}),z7={class:"v-switcher-widget"},D7={key:1},O7=I({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=Ie(),i=z(()=>r.project.value?.config?.title||r.project.value?.name),a=z(()=>r.project.value?.currentFile?.title),o=()=>{t("click",r.project.value)};return(s,l)=>(y(),R("div",z7,[_(d(xe),{size:"small",round:"",onClick:o},{default:j(()=>[_(d(du),{class:"v-switcher-widget__back"}),P("span",null,te(i.value),1),a.value?(y(),V(d(Yr),{key:0,direction:"vertical"})):M("",!0),a.value?(y(),R("span",D7,te(a.value),1)):M("",!0)]),_:1})]))}}),I7={class:"v-toolbar-widget"},M7=I({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:a,backwardDisabled:o}=J0(),s=D("pc");return e({mode:s}),(l,c)=>(y(),R("div",I7,[_(d(Pa),{size:"small",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:j(()=>[_(d(Jn),{label:"pc",value:"pc"},{default:j(()=>[_(d(yu))]),_:1}),_(d(Jn),{label:"mobile",value:"mobile"},{default:j(()=>[_(d(bu))]),_:1}),_(d(Jn),{label:"pad",value:"pad"},{default:j(()=>[_(d(wu))]),_:1})]),_:1},8,["modelValue"]),M("",!0),_(d(y2),null,{default:j(()=>[_(d(xe),{type:"default",size:"small",onClick:d(i),disabled:d(o)||!!t.preview},{default:j(()=>[_(d(Su))]),_:1},8,["onClick","disabled"]),_(d(xe),{type:"default",size:"small",onClick:d(r),disabled:d(a)||!!t.preview},{default:j(()=>[_(d(xu))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),R7={class:"v-actions-widget"},P7=P("span",null,"发布",-1),N7=I({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=xt(),r=D(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),We("刷新完成","success")):We("请先打开文件","warning")},a=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await Gc(1e3)),t.value?.setSelected(e.current.value)):We("请先打开文件","warning")},o=()=>{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 c=e.project.value;c&&(c.currentFile?c.publish(c.currentFile):We("请先打开文件","warning"))},l=c=>{const u=e.project.value;u&&(c==="current"?s():u.publish())};return(c,u)=>(y(),R("div",R7,[M("",!0),M("",!0),_(d(xe),{onClick:o,type:r.value?"warning":"default",size:"small",title:"预览"},{default:j(()=>[_(d(vu))]),_:1},8,["type"]),_(d(xe),{onClick:i,type:"default",size:"small",title:"刷新"},{default:j(()=>[_(d(_u))]),_:1}),_(d(xe),{type:"default",size:"small",title:"页面设置",onClick:a},{default:j(()=>[_(d(lo))]),_:1}),_(d(Yr),{direction:"vertical"}),_(d(Oa),{"split-button":"",type:"primary",size:"small",onClick:s,onCommand:l},{dropdown:j(()=>[_(d(Da),null,{default:j(()=>[_(d(Fr),{command:"current"},{default:j(()=>[le("发布页面")]),_:1}),_(d(Fr),{command:"project"},{default:j(()=>[le("整站发布")]),_:1})]),_:1})]),default:j(()=>[P7]),_:1})]))}}),F7={class:"v-icon-setter"},H7={class:"v-icon-setter__content"},L7={class:"v-icon-setter__list"},q0=I({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D(!1),a=D(t.modelValue),o=D(""),s=z(()=>ua[t.modelValue]||t.modelValue),l=z(()=>{const h=Object.entries(ua);return o.value?h.filter(f=>f[0].toLowerCase().includes(o.value)):h}),c=h=>{a.value=h},u=()=>{r("change",a.value),r("update:modelValue",a.value),i.value=!1},p=()=>{a.value="",r("change",""),r("update:modelValue",""),i.value=!1},m=()=>{i.value=!0};return(h,f)=>(y(),R("div",F7,[_(d(Ge),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":d(Al),onFocus:m},{prepend:j(()=>[_(d(at),{icon:s.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(y(),V(d(Vt),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:u},{extra:j(()=>[_(d(xe),{size:"default",type:"warning",onClick:p},{default:j(()=>[le(" 清除绑定 ")]),_:1})]),default:j(()=>[P("div",H7,[_(d(Ge),{size:t.size,"prefix-icon":d(Tl),clearable:"",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),P("div",L7,[(y(!0),R(ne,null,ae(l.value,v=>(y(),V(d(at),{icon:v[1],onClick:g=>c(v[0]),class:ce({"is-active":a.value===v[0]})},null,8,["icon","onClick","class"]))),256)),l.value.length===0?(y(),V(d(ze),{key:0})):M("",!0)])])]),_:1},8,["modelValue"])):M("",!0)]))}}),U7=I({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=ln(),r=z(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!0,hidden:!1,raw:!1}),a=D(e.item||i()),o=[{label:"页面",value:!1},{label:"目录",value:!0}],s=c=>{a.value&&(a.value.name=Ur(c))},l=async c=>t.value?.existPageName(c.name,[c.id])?(Ae("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(c):t.value?.createPage(c,e.parentId),!0);return(c,u)=>(y(),V(d(Ct),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:a.value,"submit-method":l},{default:j(()=>[_(d(ee),{name:"dir",label:"类型",editor:"radio",options:o,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),_(d(ee),{name:"name",label:"名称",required:"",onChange:s,rules:{pattern:d(Et),message:"名称格式不正确"}},null,8,["rules"]),_(d(ee),{name:"title",label:"标题",required:""}),_(d(ee),{name:"icon",label:"菜单图标",editor:"none"},{editor:j(()=>[_(q0,{modelValue:a.value.icon,"onUpdate:modelValue":u[0]||(u[0]=p=>a.value.icon=p),size:"default"},null,8,["modelValue"])]),_:1}),_(d(ee),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),_(d(ee),{name:"hidden",label:"隐藏菜单",editor:"switch"}),_(d(ee),{visible:{dir:!1},disabled:!!e.item,inline:"",name:"raw",label:"源码模式",editor:"switch",tip:"页面是非低代码开发,不能在线编辑"},null,8,["disabled"])]),_:1},8,["title","model"]))}}),ml=I({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=z(()=>({"is-active":t.active,"is-open":t.open})),a=()=>{r("click")};return(o,s)=>(y(),V(d(Gr),{effect:"dark",placement:"right",content:o.label,"show-after":600},{default:j(()=>[P("div",{class:ce(["v-apps-region__icon",i.value]),onClick:a},[(y(),V(Ke(o.icon)))],2)]),_:1},8,["content"]))}}),fe=I({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=D(!1),a=z(()=>({"is-collapsed":!!i.value})),o=()=>{r("plus")},s=()=>{r("edit")},l=()=>{r("back")},c=()=>{r("remove")},u=()=>{r("save")},p=z(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?D2: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(dr),{class:ce(["v-panel",a.value]),border:!1,header:p.value,fit:""},Zt({actions:j(()=>[t.plus?(y(),V(d(Be),{key:0,size:h.$attrs.size,mode:"icon",icon:d(uo),background:"hover",title:"新增",onClick:o},null,8,["size","icon"])):M("",!0),t.edit?(y(),V(d(Be),{key:1,size:h.$attrs.size,mode:"icon",icon:d($l),background:"hover",title:"编辑",onClick:s},null,8,["size","icon"])):M("",!0),t.remove?(y(),V(d(Be),{key:2,size:h.$attrs.size,mode:"icon",icon:d(Vl),background:"hover",title:"清除",onClick:c},null,8,["size","icon"])):M("",!0),t.save?(y(),V(d(Be),{key:3,size:h.$attrs.size,mode:"icon",icon:d(gu),background:"hover",title:"保存",onClick:u},null,8,["size","icon"])):M("",!0),t.collapsable?ft((y(),V(d(Be),{key:4,size:h.$attrs.size,mode:"icon",icon:d(Al),background:"hover",title:"展开",onClick:f[0]||(f[0]=v=>m(!1))},null,8,["size","icon"])),[[en,i.value]]):M("",!0),t.collapsable?ft((y(),V(d(Be),{key:5,size:h.$attrs.size,mode:"icon",icon:d(O2),background:"hover",title:"收起",onClick:f[1]||(f[1]=v=>m(!0))},null,8,["size","icon"])),[[en,!i.value]]):M("",!0),de(h.$slots,"actions")]),default:j(()=>[de(h.$slots,"default")]),_:2},[h.$slots.footer?{name:"footer",fn:j(()=>[de(h.$slots,"footer")]),key:"0"}:void 0]),1032,["class","header"]))}}),W7={class:"v-tabs__header"},J7={key:0,class:"v-tabs__actions"},hi=I({__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=D((t.modelValue||t.items[0]?.name)??"");oe(i,()=>{r("update:modelValue",i.value)}),oe(()=>t.modelValue,l=>{i.value=l});const a=l=>{r("command",l)},o=l=>{r("remove",l)},s=l=>{r("action-click",l)};return(l,c)=>(y(),V(d(dr),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:j(()=>[P("div",W7,[_(d(bo),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),onTabRemove:o,onActionClick:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(y(),R("div",J7,[t.menus&&t.menus.length?(y(),V(d(Be),{key:0,mode:"icon",size:"small",icon:d(Fa),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:a},{item:j(({item:u})=>[P("span",null,[t.checkable?(y(),V(d(io),{key:0,class:ce({"v-tabs__checked":!0,"is-checked":u.checked})},null,8,["class"])):M("",!0),le(" "+te(u.label),1)])]),_:1},8,["icon","menus"])):M("",!0)])):M("",!0)])]),default:j(()=>[de(l.$slots,"default")]),_:3}))}}),q7={key:2,class:"v-item__index"},K7={class:"v-item__content"},G7={key:3,class:"v-item__subtitle"},Re=I({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:uo},copy:{label:"复制",icon:ao},edit:{label:"编辑",icon:co},remove:{label:"删除",icon:sr},lock:{label:"锁定",icon:oo},unlock:{label:"解锁",icon:fu},invisible:{label:"隐藏",icon:ho},visible:{label:"显示",icon:Au},home:{label:"主页",icon:pu}},r=n,i=e,a=D(!!r.modelValue),o=z(()=>r.actions.map(u=>{const p=t[u];return{name:u,...p}})),s=z(()=>({"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)},c=async u=>{u==="remove"?await Xr.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:u,modelValue:r.modelValue}):i("action",{name:u,modelValue:r.modelValue})};return oe(a,u=>{i("update:modelValue",u),i("switch",u)}),oe(()=>r.modelValue,u=>{a.value=!!u}),(u,p)=>(y(),V(d(se),{class:ce(["v-item",s.value]),justify:"space-between",align:"center",onClick:l},{default:j(()=>[_(d(se),{class:"v-item__title",align:"center"},{default:j(()=>[de(u.$slots,"default",{},()=>[u.icon?(y(),V(d(at),{key:0,icon:u.icon},null,8,["icon"])):M("",!0),r.tag?(y(),V(d(E2),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:j(()=>[le(te(r.tag),1)]),_:1},8,["type"])):M("",!0),u.index!==void 0?(y(),R("span",q7," # "+te(u.index),1)):M("",!0),P("span",K7,te(u.title),1),u.subtitle?(y(),R("span",G7,te(u.subtitle),1)):M("",!0)])]),_:3}),_(d(se),{class:"v-item__actions",onClick:p[1]||(p[1]=vn(()=>{},["stop"]))},{default:j(()=>[(y(!0),R(ne,null,ae(o.value,m=>(y(),V(d(Be),{name:m.name,title:m.label,mode:"icon",size:"small",background:"none",type:"info",icon:m.icon,onClick:h=>c(m.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(y(),V(d(Ia),{key:0,modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=m=>a.value=m),class:"v-item__switch",size:"small"},null,8,["modelValue"])):M("",!0),de(u.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),Y7=["draggable"],X7={class:"v-box__name"},Q7={class:"v-box__label"},$a=I({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean},tag:{},tagType:{}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},a=async()=>{await Xr.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},o=z(()=>({"is-active":t.active,"is-draggable":t.draggable})),s=()=>{r("dragstart",t)},l=()=>{r("dragend",t)};return(c,u)=>(y(),R("div",{class:ce(["v-box",o.value]),draggable:c.draggable,onDragstart:s,onDragend:l},[_(d(se),{direction:"column",justify:"center",align:"center"},{default:j(()=>[P("span",X7,te(t.name),1),P("span",Q7,te(t.title),1)]),_:1}),t.editable?(y(),V(d(se),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:j(()=>[_(d(at),{icon:d(co),onClick:i},null,8,["icon"]),_(d(at),{icon:d(sr),onClick:a},null,8,["icon"])]),_:1})):M("",!0),t.tag?(y(),R("span",{key:1,class:ce(["v-box__tag",{[`is-${t.tagType}`]:!!t.tagType}])},te(t.tag),3)):M("",!0)],42,Y7))}}),Z7={class:"v-context-viewer"},e9=I({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],a=u=>{const p=u.value,m=Si(p);return m==="Object"||m==="Module"?Object.keys(p||{}).length===0:m==="Array"?p.length===0:!0},o=(u,p="this")=>typeof u=="object"?Array.isArray(u)?u.map((m,h)=>{const f=`[${h}]`;return{label:f,value:m,type:Si(m),path:`${p}${f}`}}):Object.entries(u).map(([m,h])=>({label:m,value:h,type:Si(h),path:`${p}.${m}`})).filter(m=>!m.label.startsWith("__")&&!i.includes(m.label)):[],s=(u,p)=>{if(u.level===0)p(o(t.context));else{const m=Ot(u.data.value);p(o(m,u.data.path))}},l=u=>{r("copy",u.path)},c=u=>{r("pick",u.path)};return(u,p)=>(y(),R("div",Z7,[u.context?(y(),V(d(Na),{key:0,lazy:"",load:s,"expand-on-click-node":!1,props:{isLeaf:a}},{default:j(({data:m})=>[_(Re,{title:m.label,clickable:"",onClick:h=>c(m),background:"",actions:["copy"],onAction:h=>l(m),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):M("",!0)]))}}),Ao=I({__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:a}=b7(t.block,t.context),{copy:o}=L2({}),s=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],l=D("normal"),c=D(),u=async k=>{r("submit",k),t.submitMethod?await t.submitMethod(k)&&p():p()},p=()=>{r("update:modelValue",!1),r("close")},m=()=>{r("unbind")},h=()=>{p()},f=async()=>{c.value?.submit()},v=k=>{r("pick",k)},g=k=>{o(k),xn.success({message:"已经复制到粘贴板"})};return(k,b)=>(y(),V(d(Vt),{"model-value":t.modelValue,class:"v-binder",title:k.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:p},{default:j(()=>[_(d(se),{fit:"",direction:"row",overflow:"hidden"},{default:j(()=>[_(d(se),{width:"30%",height:"100%"},{default:j(()=>[_(hi,{class:"v-binder__tabs",items:s,modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=w=>l.value=w)},{default:j(()=>[_(d(se),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:j(()=>[ft(P("div",null,[_(d(Ge),{modelValue:d(a),"onUpdate:modelValue":b[0]||(b[0]=w=>Hi(a)?a.value=w:null),size:"small",clearable:"","prefix-icon":d(Tl),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(y(!0),R(ne,null,ae(d(i),w=>(y(),R("div",null,[_(d(Yr),{"border-style":"dotted"},{default:j(()=>[le(te(w.title),1)]),_:2},1024),(y(!0),R(ne,null,ae(w.items,S=>(y(),V(Re,{title:S,background:"",actions:["copy"],small:"",onClick:C=>v(S),onAction:C=>g(S)},null,8,["title","onClick","onAction"]))),256))]))),256)),d(i).length?M("",!0):(y(),V(d(ze),{key:0}))],512),[[en,l.value==="normal"]]),ft(_(e9,{context:t.context,onCopy:g,onPick:v},null,8,["context"]),[[en,l.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),_(d(dr),{grow:"",header:null,border:!1},{footer:j(()=>[_(d(se),{justify:"space-between"},{default:j(()=>[_(d(se),null,{default:j(()=>[k.unbindEnabled?(y(),V(d(xe),{key:0,type:"warning",size:"default",onClick:m},{default:j(()=>[le(" 移除绑定 ")]),_:1})):M("",!0)]),_:1}),_(d(se),null,{default:j(()=>[_(d(xe),{type:"default",size:"default",onClick:h},{default:j(()=>[le(" 取消 ")]),_:1}),_(d(xe),{type:"primary",size:"default",onClick:f},{default:j(()=>[le(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:j(()=>[_(d(li),{ref_key:"formRef",ref:c,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":u},{default:j(()=>[de(k.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),t9={class:"v-slots-picker__sn"},n9=I({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D(),a=z(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),o=l=>{i.value=l},s=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Ae("请选择插槽")};return(l,c)=>(y(),V(d(Vt),me({class:"v-slots-picker",title:"选择插槽",width:"600px",height:a.value,submit:"",cancel:"",onSubmit:s},l.$attrs),{default:j(()=>[_(d(jl),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),_(d(se),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:j(()=>[(y(!0),R(ne,null,ae(t.slots,(u,p)=>(y(),V(d(se),{class:ce(["v-slots-picker__item",{"is-active":u.name===i.value?.name}]),grow:"",flex:!1,onClick:m=>o(u)},{default:j(()=>[P("span",t9,"#"+te(p+1),1),le(" "+te(u.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),K0=I({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=z(()=>[`is-${e.mode}`]),r=z(()=>{if(e.mode==="pc")return 1;const a=e.mode==="mobile"?pl:hl,{width:o,height:s}=a,l=o>0?(e.width||0)/o:1,c=s>0?(e.height||0)/s:1;return Math.min(l,c)}),i=z(()=>{if(e.mode==="pc")return{};const a=e.mode==="mobile"?pl:hl,{width:o,height:s}=a;return{width:`${o}px`,height:`${s}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(a,o)=>(y(),R("div",{class:ce(["v-viewport",t.value]),style:Rt(i.value)},[de(a.$slots,"default")],6))}}),r9=I({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=ln(),r=z(()=>e.value?.pages||[]),{current:i}=Ie(),a=D(!1),o=D(),s=D(),l=()=>{s.value=void 0,o.value=void 0,a.value=!0},c=async h=>{const{name:f,modelValue:v}=h,{data:g,node:k}=v;if(f==="add"&&(o.value=void 0,s.value=g.id,a.value=!0),f==="edit"&&(o.value=tn(g),s.value=void 0,a.value=!0),f==="remove"){if(g.dir){const b=e.value?.getPage(g.id);if(b&&b.children?.length){Ae("请先删除子页面");return}}e.value?.removePage(g.id)}if(f==="copy"){const b=k.parent?.data.id;e.value?.clonePage(g,b)}f==="home"&&(e.value?.setHomepage(g.id),We("设置主页成功","success"))},u=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:Li(r)})};return(h,f)=>(y(),V(d(fe),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:l},{default:j(()=>[_(d(Na),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":p,onNodeDrop:m},{default:j(({data:v,node:g})=>[_(d(Re),{class:"v-pages-widget__item",icon:d(ua)[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:c,onClick:k=>u(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"]),a.value?(y(),V(U7,{key:0,modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),item:o.value,"parent-id":s.value},null,8,["modelValue","item","parent-id"])):M("",!0)]),_:1}))}}),i9={class:"v-file-setter"},To=I({name:"FileSetter",__name:"file",props:{modelValue:{},attachment:{}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,{engine:i,project:a}=ln(),o=D([]),s=D(!1),l=b=>Array.isArray(b)?b.map(w=>({name:w.filename,url:w.filepath})):b?{name:b.filename,url:b.filepath}:null,c=async b=>{if(i&&a.value){const w=await i.service.uploadStaticFile(b,a.value.id);return l(w)}return null},u=b=>b?(b||"").split(",").map(w=>({url:w})):[],p=D(u(t.modelValue)),m=z(()=>Array.isArray(p.value)?p.value.map(b=>b.url).join(","):p.value?p.value.url:"");oe(()=>t.modelValue,b=>{p.value=u(b)}),oe(s,async b=>{if(b){const w=await i.service.getStaticFiles(a.value?.id).catch(()=>null);o.value=l(w)}});const h=()=>{if(!p.value||Array.isArray(p.value)&&p.value.length===0)return Ae("请选择文件"),!1;const b=(t.attachment?.accept||"").toLowerCase().split(",");return b.length>0?[].concat(p.value).every(w=>{const S=w.name||w.url.split("?")[0],C=S.substring(S.lastIndexOf(".")).toLowerCase();return b.includes(C)})?!0:(Ae(`只支持 ${b.join(",")} 文件`),!1):!0},f=()=>{h()&&(r("change",m.value),r("update:modelValue",m.value),s.value=!1)},v=()=>{p.value=[],r("change",void 0),r("update:modelValue",void 0),s.value=!1},g=()=>{s.value=!0},k=b=>{b.name&&a.value?.id&&i.service.removeStaticFile(b.name,a.value?.id)};return(b,w)=>(y(),R("div",i9,[_(d(Ge),me({readonly:"",onFocus:g,"model-value":t.modelValue,"suffix-icon":d(I2)},b.$attrs),null,16,["model-value","suffix-icon"]),s.value?(y(),V(d(Vt),{key:0,modelValue:s.value,"onUpdate:modelValue":w[1]||(w[1]=S=>s.value=S),title:"文件选择器",width:"600px",height:"400px",cancel:"",submit:"",onSubmit:f},{extra:j(()=>[_(d(xe),{type:"warning",size:"default",onClick:v},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(_b),me({size:"small","list-type":"list",selectable:!0,uploader:c,"model-value":o.value,"select-value":p.value,"onUpdate:selectValue":w[0]||(w[0]=S=>p.value=S)},t.attachment,{onRemove:k}),null,16,["model-value","select-value"])]),_:1},8,["modelValue"])):M("",!0)]))}}),a9=I({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=W0(),{blocks:t,engine:r}=h7(),i=[{label:"设计",value:"Schema",border:!0},{label:"引用",value:"UrlSchema",border:!0},{label:"插件",value:"Plugin",border:!0}],a={Schema:{label:"设计",type:"primary"},UrlSchema:{label:"引用",type:"warning"},Plugin:{label:"插件",type:"danger"}},o=D(void 0),{current:s}=Ie(),l=D(!1),c=z(()=>o.value?.id?"编辑区块":"新增区块"),u=z(()=>`(共 ${t.value.length} 个)`),p=()=>({fromType:"Schema",name:"",title:"",urls:"",library:"",type:"block"}),m=z(()=>{if(o.value?.fromType==="UrlSchema")return".json";if(o.value?.fromType==="Plugin")return".js,.css,.json"}),h=z(()=>o.value?.fromType==="Plugin"),f=async x=>{const E=x,$=r.project.value;if(!$)return!1;if(x.id)if(!$.existBlockName(E.name,[E.id]))$.updateBlock(E);else return Ae(`名称【${E.name}】已经存在,请更换名称`),!1;else if(!$.existBlockName(E.name))$.createBlock(E);else return Ae(`名称【${E.name}】已经存在,请更换名称`),!1;return!0},v=()=>{o.value=p(),l.value=!0},g=x=>{o.value=tn(x),l.value=!0},k=x=>{r.project.value?.removeBlock(x.id)},b=x=>{o.value&&(o.value.name=Ur(x))},w=async x=>{(!x.fromType||x.fromType==="Schema")&&r.project.value?.active(x)},S=async x=>{const E=ng(x),$=await r.assets.getBlockMaterial(E,x.name),U=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;U&&$&&U.setDragging($)},C=()=>{const x=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;x&&x.setDragging(null)};return(x,E)=>(y(),V(d(fe),{class:"v-blocks-widget",title:"区块管理",subtitle:u.value,plus:"",onPlus:v},{default:j(()=>[_(d(Ji),{wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),R(ne,null,ae(d(t),$=>(y(),V(d(Wi),{key:$.id,span:d(e)},{default:j(()=>[_(d($a),{name:$.name,title:$.title,active:d(s)?.id===$.id,editable:"",tag:a[$.fromType||"Schema"]?.label,tagType:a[$.fromType||"Schema"]?.type,onEdit:U=>g($),onRemove:U=>k($),onClick:U=>w($),draggable:d(s)?.id!==$.id,onDragstart:U=>S($),onDragend:C},null,8,["name","title","active","tag","tagType","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(t).length?M("",!0):(y(),V(d(ze),{key:0})),_(d(Ct),{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=$=>l.value=$),title:c.value,model:o.value,width:"600px",height:"400px","form-props":{tooltipMessage:!1},"submit-method":f},{default:j(()=>[_(d(ee),{name:"fromType",label:"类型",required:"",editor:"radio",disabled:!!o.value?.id,options:i},null,8,["disabled"]),_(d(ee),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:d(Et)},onChange:b},null,8,["rules"]),_(d(ee),{name:"title",label:"标题",required:""}),o.value?.fromType==="Plugin"?(y(),V(d(ee),{key:0,name:"library",label:"插件名称",required:""})):M("",!0),["Plugin","UrlSchema"].includes(o.value?.fromType||"")?(y(),V(d(ee),{key:1,name:"urls",label:"资源文件",required:"",editor:To,props:{attachment:{accept:m.value,multiple:h.value}}},null,8,["props"])):M("",!0)]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),o9={class:"v-components-widget__search"},s9={key:0,class:"v-components-widget__result"},l9={class:"v-components-widget__list"},c9=I({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=W0(),{tabs:r,currentTab:i,currentGroup:a,model:o,searchKey:s,searchResult:l}=f7(),c=p=>{const m=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;m&&m.setDragging(p)},u=()=>{const p=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;p&&p.setDragging(null)};return(p,m)=>(y(),V(d(fe),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:j(()=>[P("div",o9,[_(d(Ge),{modelValue:d(s),"onUpdate:modelValue":m[0]||(m[0]=h=>Hi(s)?s.value=h:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:j(()=>[_(d(zu))]),_:1},8,["modelValue"])]),d(s)?(y(),R("div",s9,[_(d(Ji),{wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),R(ne,null,ae(d(l),h=>(y(),V(d(Wi),{span:d(e),key:h.name},{default:j(()=>[_(d($a),{name:h.name,title:h.label||h.name,draggable:"",onDragstart:f=>c(h),onDragend:u},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(l).length?M("",!0):(y(),V(d(ze),{key:0}))])):(y(),V(d(bo),{key:1,items:d(r),modelValue:d(i),"onUpdate:modelValue":m[2]||(m[2]=h=>Hi(i)?i.value=h:null)},{default:j(()=>[P("div",l9,[d(a)?(y(),V(d(b2),{key:0,modelValue:d(o)[d(i)],"onUpdate:modelValue":m[1]||(m[1]=h=>d(o)[d(i)]=h)},{default:j(()=>[(y(!0),R(ne,null,ae(d(a).children,h=>(y(),V(d(w2),{key:h.name,name:h.name,title:`${h.label} (${h.count})`},{default:j(()=>[h.components?(y(),V(d(Ji),{key:0,wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),R(ne,null,ae(h.components,f=>(y(),V(d(Wi),{span:d(e),key:f.name},{default:j(()=>[_(d($a),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>c(f),onDragend:u},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):M("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):M("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),u9=I({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=xt(),{current:i}=Ie(),a=D([]),o=(x,E)=>{if(E==="slot")return[];if(Ce(x))return x.locked?["unlock"]:["lock"];const $=x.parent;return $&&($.locked||$.invisible)?[]:i.value?.locked?[]:x.locked?["unlock"]:x.invisible?["visible"]:["lock","invisible","copy","remove"]},s=(x,E)=>{const $={};if(!x.some(T=>T.slot))return l(x);for(const T of x){const B=T.slot?.name||"default";$[B]||($[B]=[]),$[B].push(T)}const U=[];for(const[T,B]of Object.entries($))U.push({id:`${E.id}-${T}`,label:`#${T}`,type:"slot",model:E,disabled:!0,children:l(B)});return U},l=x=>{const E=[];return x.forEach($=>{const U={id:$.id,label:$.name,type:$.id,model:$};Array.isArray($.children)&&(U.children=s($.children,$)),E.push(U)}),E},c=()=>{if(!i.value)return[];const{id:x,name:E,nodes:$}=i.value;return[{id:x,label:E,type:x,model:i.value,children:l($)}]},u=async()=>{a.value=c(),r.value?.model&&(await pt(),t.value?.setSelected(r.value.model))},p=z(()=>r.value?.model.id),m=x=>{const E=x.data;if(E.type==="slot"||Ce(E.model)||E.model.locked||E.model.name==="template")return!1;const $=e.assets.componentMap.get(E.model.name);return $?(t.value?.setDragging($),!0):!1},h=async(x,E,$)=>{const U=E.data,T={prev:"top",next:"bottom",inner:"inner"}[$];let B=!1;if(Ce(U.model))B=$==="inner",t.value?.setDropping(B?U.model:null,"inner");else{const F=U.model;B=!!await t.value?.allowDrop(F,T),t.value?.setDropping(B?F:null,"inner")}return B},f=x=>{const E=x?.model;if(!E||E.invisible||x.type==="slot"){t.value?.setSelected(null),t.value?.setHover(null);return}t.value?.setSelected(E),t.value?.setHover(null)},v=async(x,E,$)=>{const U=x.data,T=E.data;if(Ce(T.model)){const N=U.model;delete N.slot,i.value?.move(N,void 0,"inner"),t.value?.setDropping(null),t.value?.setDragging(null);return}const B=T.model,F={before:"left",after:"right"}[$]||"inner";if(!await t.value?.allowDrop(B,F)){t.value?.setDropping(null),u(),xn.warning({message:`${U.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const A=await t.value?.getDropSlot($==="inner"?B:B.parent);if(A!==null){const N=U.model;N.slot=A,i.value?.move(N,B,F)}else u();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},g=x=>{if(x.type==="slot"){t.value?.setHover(null);return}Ce(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))},k=()=>{t.value?.setHover(null)},b=x=>{const E=x.data;E.dragging=!0;const $=e.assets.componentMap.get(E.model.name);$&&t.value?.setDragging($)},w=async x=>{const E=x.data;E.dragging=!1},S=(x,E)=>{x&&((x.id===E.id||!Ce(x)&&E.isChild(x))&&t.value?.setSelected(null),t.value?.setHover(null))},C=x=>{const{name:E,modelValue:$}=x,U=r.value?.model;switch(E){case"lock":S(U,$),$.lock();break;case"unlock":S(U,$),$.unlock();break;case"invisible":S(U,$),$.setVisible(!1);break;case"visible":$.setVisible(!0);break;case"copy":const T=i.value?.cloneNode($);T&&t.value?.setSelected(T);break;case"remove":S(U,$),i.value?.removeNode($);break}};return oe(e.changed,u,{immediate:!0}),(x,E)=>(y(),V(d(fe),{class:"v-outline-widget",title:"大纲树"},{default:j(()=>[(y(),V(d(Na),{key:d(e).changed.value,data:a.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:w},{default:j(({data:$,node:U})=>[_(d(Re),{class:ce(["v-outline-widget__item",{"is-locked":$.model.locked,"is-invisible":$.model.invisible,"is-dragging":$.dragging,"is-slot":$.type==="slot"}]),active:!$.model.invisible&&U.isCurrent&&$.type!=="slot",grow:"",small:"",background:"",hover:"","model-value":$.model,icon:$.model.locked?d(oo):$.model.invisible?d(ho):void 0,title:$.label,subtitle:$.type,actions:o($.model,$.type),onAction:C,onMouseenter:T=>g($),onMouseleave:k},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"]))]),_:1}))}}),d9=I({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=J0(),i=z(()=>`(共 ${r.value} 条)`),a=s=>{s.name==="remove"&&e.value?.remove(s.modelValue.id)},o=async()=>{await Dn("确定要清空历史记录吗?")&&e.value?.clear()};return(s,l)=>(y(),V(d(fe),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!d(r),onRemove:o},{default:j(()=>[d(r)===0?(y(),V(d(ze),{key:0,"image-size":50})):M("",!0),d(e)?(y(!0),R(ne,{key:1},ae(d(e).items,(c,u)=>(y(),V(d(Re),{index:u+1,title:c.label,"model-value":c,active:u==d(e).index,small:"",background:"",actions:["remove"],onAction:a,onClick:p=>d(t)(c.id)},null,8,["index","title","model-value","active","onClick"]))),256)):M("",!0)]),_:1},8,["subtitle","remove"]))}}),p9=I({__name:"base-info",setup(n){const e=d7.map(t=>({label:t,value:t.toLowerCase()}));return(t,r)=>(y(),R("div",null,[_(d(ee),{name:"method",label:"请求类型",required:"",editor:"radio",options:d(e)},null,8,["options"]),_(d(ee),{name:"name",label:"接口名称",required:"",rules:{pattern:d(Et),message:"名称格式不正确"}},null,8,["rules"]),_(d(ee),{name:"label",label:"备注说明",required:""}),_(d(ee),{name:"url",label:"接口URL",required:""})]))}}),Te=Fi({loader:()=>e2(()=>import("./Editor-BKlikwSl-BkVOzfXj.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:I({render(){return Me("div","正在拼命加载...")}}),errorComponent:I({render(){return Me("div","组件加载失败!")}})}),h9=I({__name:"request-settings",setup(n){const e=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],t=Pt("currentModel",null);return(r,i)=>(y(),R("div",null,[_(d(se),{justify:"space-between"},{default:j(()=>[_(d(ee),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),_(d(ee),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),_(d(ee),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),_(d(ee),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),_(d(ee),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),_(d(ee),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:e,props:{button:!0}}),_(d(ee),{size:"small",name:"headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction"},{editor:j(()=>[_(d(Te),{dark:"",height:"260px",modelValue:d(t).headers.value,"onUpdate:modelValue":i[0]||(i[0]=a=>d(t).headers.value=a)},null,8,["modelValue"])]),_:1})]))}}),m9=I({__name:"jsonp-options",setup(n){return(e,t)=>(y(),R("div",null,[_(d(ee),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),_(d(ee),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),_(d(ee),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),_(d(ee),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]))}}),f9=P("span",null,"模拟数据模板",-1),v9=I({__name:"mock-template",setup(n){const e=Pt("currentModel",null),{project:t}=ln(),r=z(()=>t.value?.config||{}),i=()=>{window.open("https://vtj.pro/help/mock.html")};return(a,o)=>(y(),R("div",null,[r.value.mock?M("",!0):(y(),V(d(jl),{key:0,type:"warning",title:"需要在项目配置中开启模拟数据",closable:!1,style:{"margin-bottom":"20px"}})),_(d(ee),{size:"small",name:"mock",label:"开启模拟数据",disabled:!r.value.mock,editor:"switch"},null,8,["disabled"]),_(d(se),{justify:"space-between"},{default:j(()=>[f9,_(d(Be),{icon:d(po),mode:"text",label:"帮助",onClick:i},null,8,["icon"])]),_:1}),_(d(ee),{size:"small",name:"mockTemplate.value",label:" "},{editor:j(()=>[_(d(Te),{dark:"",height:r.value.mock?"330px":"280px",lang:"typescript",disabled:!r.value.mock,readonly:!r.value.mock,modelValue:d(e).mockTemplate.value,"onUpdate:modelValue":o[0]||(o[0]=s=>d(e).mockTemplate.value=s)},null,8,["height","disabled","readonly","modelValue"])]),_:1})]))}}),g9={key:0},y9=I({__name:"form",props:{model:{},project:{}},setup(n){const e=n,t=z(()=>e.model?"编辑API":"新增API"),r=D("base"),i=D(),a=D(),o=D(e.model||{}),s=D(!1),l=D(""),c=[{label:"基础信息",value:"base"},{label:"请求配置",value:"settings"},{label:"模拟数据",value:"mock"}];Ni("currentModel",o);const u=z(()=>o.value?.method==="jsonp");oe(()=>e.model,v=>{o.value=Object.assign({},v||{}),r.value="base"},{immediate:!0}),oe(r,async()=>{a.value?.formRef.validate(async v=>{v||(await pt(),r.value="base")})});const p=()=>{i.value?.cancel()},m=()=>{a.value?.submit()},h=async v=>e.project?.existApiName(o.value.name,e.model?[o.value.id]:[])?(Ae(`API名称 [ ${o.value.name} ] 已存在`),!1):o.value.headers&&!De(o.value.headers,window)||o.value.mockTemplate&&!De(o.value.mockTemplate,window)?!1:(e.project?.setApi(o.value),i.value?.close(),!0),f=()=>{if(o.value.mockTemplate){const v=yt(o.value.mockTemplate,{},!0),{url:g,method:k}=o.value,b=Yn.mock(v({url:g,type:k}));l.value=JSON.stringify(b,null,2),s.value=!0}};return(v,g)=>(y(),V(d(Vt),{ref_key:"dialogRef",ref:i,title:t.value,width:"1000px",height:"600px"},{default:j(()=>[_(d(se),{fit:""},{default:j(()=>[_(d(se),{width:"100px",shrink:!1},{default:j(()=>[_(d(bo),{modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=k=>r.value=k),items:c,"tab-position":"left",border:"",fit:""},null,8,["modelValue"])]),_:1}),_(d(dr),{header:null,border:!1,overflow:"auto",grow:"",shrink:!0,fit:""},{footer:j(()=>[_(d(se),{justify:"space-between"},{default:j(()=>[P("div",null,[r.value==="mock"?(y(),V(d(xe),{key:0,disabled:!e.project?.config?.mock,type:"warning",onClick:f},{default:j(()=>[le(" 预览 ")]),_:1},8,["disabled"])):M("",!0)]),P("div",null,[_(d(xe),{onClick:p},{default:j(()=>[le("取消")]),_:1}),_(d(xe),{type:"primary",onClick:m},{default:j(()=>[le("保存")]),_:1})])]),_:1})]),default:j(()=>[_(d(li),{ref_key:"formRef",ref:a,footer:!1,labelPosition:"top",tooltipMessage:!1,model:o.value,submitMethod:h},{default:j(()=>[ft(_(p9,null,null,512),[[en,r.value==="base"]]),r.value==="settings"?(y(),R("div",g9,[u.value?(y(),V(m9,{key:0})):(y(),V(h9,{key:1}))])):M("",!0),r.value==="mock"?(y(),V(v9,{key:1})):M("",!0)]),_:1},8,["model"])]),_:1})]),_:1}),s.value?(y(),V(d(kl),{key:0,class:"v-drawer",modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=k=>s.value=k),title:"模拟数据结果",direction:"btt","append-to-body":"",size:"80%"},{default:j(()=>[_(d(Te),{"model-value":l.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):M("",!0)]),_:1},8,["title"]))}}),b9=I({name:"ApisWidget",__name:"index",setup(n){const e=D(!1),t=D(null),r=D(!1),i=z(()=>a.value?.apis||[]),{project:a}=ln(),o=()=>({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) => {
96
96
  return {
97
97
  code: 0,
98
98
  data: null
99
99
  }
100
- }`}}),s=()=>{e.value=!0,r.value=!1,t.value=o()},l={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},c=p=>{p.name==="edit"&&u(p.modelValue),p.name==="remove"&&a.value?.removeApi(p.modelValue.name)},u=p=>{r.value=!0,t.value=en(p),e.value=!0};return(p,m)=>(y(),C(d(fe),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:s},{default:j(()=>[(y(!0),M(ne,null,ae(i.value,h=>(y(),C(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=>u(h),onAction:c},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),i.value.length===0?(y(),C(d(ze),{key:0,"image-size":50})):R("",!0),_(v9,{modelValue:e.value,"onUpdate:modelValue":m[0]||(m[0]=h=>e.value=h),model:t.value,project:d(a)},null,8,["modelValue","model","project"])]),_:1}))}}),y9=I({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=U0(),r=D(!1),i=D(!1),a=D({}),o=z(()=>i.value?"查看依赖":a.value?"编辑依赖":"新增依赖"),s=f=>f.required||f.official?[]:["edit","remove"],l=f=>f.official&&!f.required,c=async f=>(f.urls=f.urls.split(`
100
+ }`}}),s=()=>{e.value=!0,r.value=!1,t.value=o()},l={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},c=p=>{p.name==="edit"&&u(p.modelValue),p.name==="remove"&&a.value?.removeApi(p.modelValue.name)},u=p=>{r.value=!0,t.value=tn(p),e.value=!0};return(p,m)=>(y(),V(d(fe),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:s},{default:j(()=>[(y(!0),R(ne,null,ae(i.value,h=>(y(),V(d(Re),{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=>u(h),onAction:c},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),i.value.length===0?(y(),V(d(ze),{key:0,"image-size":50})):M("",!0),_(y9,{modelValue:e.value,"onUpdate:modelValue":m[0]||(m[0]=h=>e.value=h),model:t.value,project:d(a)},null,8,["modelValue","model","project"])]),_:1}))}}),w9=I({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=U0(),r=D(!1),i=D(!1),a=D({}),o=z(()=>i.value?"查看依赖":a.value?"编辑依赖":"新增依赖"),s=f=>f.required||f.official?[]:["edit","remove"],l=f=>f.official&&!f.required,c=async f=>(f.urls=f.urls.split(`
101
101
  `),t.project.value?.setDeps(f),!0),u=f=>{t.project.value?.setDeps(f)},p=()=>{i.value=!1,r.value=!0,a.value=null},m=f=>{i.value=!0,a.value={...f,urls:f.urls.join(`
102
102
  `)},r.value=!0},h=(f,v)=>{v.name==="edit"&&(a.value={...f,urls:f.urls.join(`
103
- `)},i.value=!1,r.value=!0),v.name==="remove"&&t.project.value?.removeDeps(f)};return(f,v)=>(y(),C(d(fe),{class:"v-deps-widget",title:"依赖管理",plus:"",onPlus:p},{default:j(()=>[(y(!0),M(ne,null,ae(d(e),g=>(y(),C(d(Me),{key:g.package,title:g.package,subtitle:g.version,actions:s(g),background:"",switch:l(g),modelValue:g.enabled,"onUpdate:modelValue":k=>g.enabled=k,onSwitch:k=>u(g),onClick:k=>m(g),onAction:k=>h(g,k)},null,8,["title","subtitle","actions","switch","modelValue","onUpdate:modelValue","onSwitch","onClick","onAction"]))),128)),_(d(Vt),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=g=>r.value=g),width:"600px",height:"500px",title:o.value,model:a.value,submitMethod:c,formProps:{disabled:i.value,tooltipMessage:!1}},{default:j(()=>[_(d(ee),{name:"package",label:"包名",required:"",disabled:!!a.value},null,8,["disabled"]),_(d(ee),{name:"version",label:"版本",required:""}),_(d(ee),{name:"library",label:"导出名称",required:""}),_(d(ee),{name:"urls",label:"资源文件",editor:"textarea",props:{rows:3},tip:"多个资源可以换行输入",required:""}),_(d(ee),{name:"assetsUrl",label:"物料URL"}),_(d(ee),{name:"assetsLibrary",label:"物料名称"})]),_:1},8,["modelValue","title","model","formProps"])]),_:1}))}}),b9=I({__name:"actions",props:{position:{},model:{},path:{default:()=>[]}},emits:["action"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>t.model.name),a=z(()=>!Ve(t.model)&&!t.model.locked),o=z(()=>t.path.map(u=>({command:u,label:u.name,onMouseenter:()=>{r("action",{type:"hover",model:u})}}))),s=[{name:"prev",icon:Cu,title:"向前移动"},{name:"next",icon:ju,title:"向后移动"},{name:"copy",icon:ao,title:"复制"},{name:"remove",icon:sr,title:"删除"}],l=u=>{r("action",{type:"selected",model:u.command})},c=async u=>{u.name==="remove"?await Dn("确定删除?")&&r("action",{type:u.name,model:t.model}):r("action",{type:u.name,model:t.model})};return(u,p)=>(y(),M("div",{class:ce(["v-actions",[`is-${t.position}`]])},[_(d(Be),{mode:"icon",size:"small",icon:d(so),label:i.value,menus:o.value,background:"none",onCommand:l},null,8,["icon","label","menus"]),_(d(S5),{disabled:!a.value,mode:"icon",size:"small",items:s,background:"none",onClick:c},null,8,["disabled"])],2))}}),w9={key:1,class:"v-designer__placeholder"},x9=I({name:"VDesigner",inheritAttrs:!1,__name:"index",setup(n,{expose:e}){const t=D(),r=D(),{width:i,height:a}=_n(t),{dependencies:o,engine:s,apis:l}=U0(),{current:c,isEmpty:u}=Ie(),p=z(()=>s.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc"),m=z(()=>s.project.value?.config||{}),{designer:h,hover:f,dropping:v,selected:g}=m7(r,o,l,m),k=b=>{const x=b.type,S=b.model;if(c.value)switch(x){case"remove":c.value.removeNode(S),h.value?.setSelected(null);break;case"copy":const V=c.value.cloneNode(S);h.value?.setSelected(V);break;case"prev":c.value.movePrev(S),h.value?.setSelected(S);break;case"next":c.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}),(b,x)=>(y(),M("div",{ref_key:"container",ref:t,class:"v-designer"},[_(d(K0),{mode:p.value,width:d(i),height:d(a)},{default:j(()=>[P("iframe",{ref_key:"iframe",ref:r,frameborder:"0"},null,512),d(v)?(y(),M("div",{key:0,class:ce(["v-designer__dropping","is-inner"]),style:Rt(d(v).style)},null,4)):R("",!0),d(f)?(y(),M("div",{key:1,class:"v-designer__hover",style:Rt(d(f).style)},[P("span",{class:ce(`is-${d(f).position}`)},[le(te(d(f).model.name)+": ",1),P("i",null,te(d(f).model.id),1)],2)],4)):R("",!0),d(g)?(y(),M("div",{key:2,class:"v-designer__selected",style:Rt(d(g).style)},[_(b9,{position:d(g).position,model:d(g).model,path:d(g).path,onAction:k},null,8,["position","model","path"])],4)):R("",!0)]),_:1},8,["mode","width","height"]),d(c)?R("",!0):(y(),C(d(ze),{key:0,description:"请新建或打开文件"})),d(c)&&d(u)?(y(),M("div",w9," 您可以拖拽组件放置到这里 ")):R("",!0)],512))}}),mr=I({__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=D(),r=D(),i=D(!1),a=D(e.createEmpty()),o=D(!1),s=z(()=>o.value?`编辑${e.title}`:`新增${e.title}`),l=()=>{o.value=!1,a.value=e.createEmpty(),i.value=!0},c=(f,v)=>{switch(v.name){case"edit":p(f);break;case"remove":e.remove(f);break}},u=f=>{a.value.value=f},p=f=>{o.value=!0,a.value={...f},i.value=!0},m=async f=>e.submit(f,o.value),h=()=>{r.value?.itemRef.validate()};return(f,v)=>(y(),C(d(fe),{title:e.title,class:"v-sub-panel",size:"small",fit:!1,plus:"",onPlus:l},{default:j(()=>[(y(!0),M(ne,null,ae(f.list,g=>(y(),C(d(Me),{title:e.itemTitle(g),border:"",actions:["edit","remove"],onAction:k=>c(g,k),onClick:k=>p(g)},null,8,["title","onAction","onClick"]))),256)),f.list.length?R("",!0):(y(),C(d(ze),{key:0,"image-size":40})),_(d(Ao),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),title:s.value,"submit-method":m,model:a.value,block:f.current,context:f.context,onPick:u},{default:j(()=>[de(f.$slots,"fields",kt(Nt({model:a.value,isEdit:o.value,nameLabel:f.nameLabel,valueLabel:f.valueLabel})),()=>[_(d(ee),{name:"name",label:f.nameLabel,required:"",disabled:o.value},null,8,["label","disabled"]),_(d(ee),{ref_key:"codeFieldRef",ref:r,name:"value",label:f.valueLabel,required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,dark:"",height:"350px",modelValue:a.value.value,"onUpdate:modelValue":v[0]||(v[0]=g=>a.value.value=g),onBlur:h},null,8,["modelValue"])]),_:1},8,["label"])])]),_:3},8,["modelValue","title","model","block","context"])]),_:3},8,["title"]))}}),_9=I({__name:"state",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.state||{}).map(([o,s])=>({name:o,value:En(s)}))),r=()=>({name:"",value:""}),i=o=>e.current?.removeState(o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.state[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSExpression",value:c};return De(u,e.context,!0)?(e.current?.setState(l,u),!0):!1};return(o,s)=>(y(),C(mr,{title:"状态数据",current:e.current,context:e.context,list:t.value,nameLabel:"状态数据名称",valueLabel:"状态初始值 [ JSExpression ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),S9=I({__name:"computed",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.computed||{}).map(([o,s])=>({name:o,value:En(s)}))),r=()=>({name:"",value:"() => { }"}),i=o=>e.current?.removeFunction("computed",o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.computed[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSFunction",value:c};return De(u,e.context,!0)?(e.current?.setFunction("computed",l,u),!0):!1};return(o,s)=>(y(),C(mr,{title:"计算属性",current:e.current,context:e.context,list:t.value,nameLabel:"计算属性名称",valueLabel:"计算函数 [ JSFunction ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),k9=I({__name:"methods",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.methods||{}).map(([o,s])=>({name:o,value:En(s)}))),r=()=>({name:"",value:"() => { }"}),i=o=>e.current?.removeFunction("methods",o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.methods[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSFunction",value:c};return De(u,e.context,!0)?(e.current?.setFunction("methods",l,u),!0):!1};return(o,s)=>(y(),C(mr,{title:"组件方法",current:e.current,context:e.context,list:t.value,nameLabel:"方法名称",valueLabel:"方法函数 [ JSFunction ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),j9=I({__name:"lifeCycles",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>xb.map(s=>({label:s,value:s}))),r=z(()=>Object.entries(e.current?.lifeCycles||{}).map(([s,l])=>({name:s,value:En(l)}))),i=()=>({name:"",value:"() => { }"}),a=s=>e.current?.removeFunction("lifeCycles",s.name),o=async(s,l)=>{const{name:c,value:u}=s;if(!l&&e.current?.lifeCycles[c])return Ae(`名称 ${c} 已存在,请更换!`),!1;const p={type:"JSFunction",value:u};return De(p,e.context,!0)?(e.current?.setFunction("lifeCycles",c,p),!0):!1};return(s,l)=>(y(),C(mr,{title:"生命周期",current:e.current,context:e.context,list:r.value,nameLabel:"名称",valueLabel:"函数 [ JSFunction ]",createEmpty:i,remove:a,submit:o},{fields:j(({model:c,nameLabel:u,isEdit:p,valueLabel:m})=>[_(d(ee),{name:"name",label:u,editor:"select",options:t.value,required:"",disabled:p},null,8,["label","options","disabled"]),_(d(ee),{name:"value",label:m,required:""},{editor:j(()=>[_(d(Te),{ref:"editorRef",dark:"",height:"350px",modelValue:c.value,"onUpdate:modelValue":h=>c.value=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),C9=I({__name:"watch",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>(e.current?.watch||[]).map(s=>({...s,source:En(s.source),handler:En(s.handler)}))),r=()=>({source:"() => { }",deep:!1,immediate:!1,handler:"() => { }"}),i=s=>s.source,a=s=>e.current?.removeWatch(s),o=async(s,l)=>{const c={type:"JSFunction",value:s.source},u={type:"JSFunction",value:s.handler};if(!De(c,e.context,!0)||!De(u,e.context,!0))return!1;const p={...s,source:c,handler:u};return e.current?.setWatch(p),!0};return(s,l)=>(y(),C(mr,{title:"侦听器",current:e.current,context:e.context,list:t.value,nameLabel:"侦听源 [ JSFunction ]",valueLabel:"处理函数 [ JSFunction ]",createEmpty:r,remove:a,submit:o,itemTitle:i,grow:""},{fields:j(({model:c,nameLabel:u,valueLabel:p})=>[_(d(ee),{name:"source",label:u,required:""},{editor:j(()=>[_(d(Te),{dark:"",height:"100px",modelValue:c.source,"onUpdate:modelValue":m=>c.source=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),_(d(ee),{name:"deep",modelValue:c.deep,"onUpdate:modelValue":m=>c.deep=m,label:"深度监听",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),_(d(ee),{name:"immediate",modelValue:c.immediate,"onUpdate:modelValue":m=>c.immediate=m,label:"立即执行",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),_(d(ee),{name:"handler",label:p,required:""},{editor:j(()=>[_(d(Te),{dark:"",height:"130px",modelValue:c.handler,"onUpdate:modelValue":m=>c.handler=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),V9=I({__name:"index",setup(n){const{current:e,context:t}=Ie();return(r,i)=>(y(),C(d(se),{class:"v-scripts-widget",direction:"column",fit:""},{default:j(()=>[_(_9,{current:d(e),context:d(t)},null,8,["current","context"]),_(S9,{current:d(e),context:d(t)},null,8,["current","context"]),_(k9,{current:d(e),context:d(t)},null,8,["current","context"]),_(j9,{current:d(e),context:d(t)},null,8,["current","context"]),_(C9,{current:d(e),context:d(t)},null,8,["current","context"])]),_:1}))}}),Pi=I({__name:"setters",props:{context:{},current:{},title:{},items:{},node:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=(o,s)=>{r("change",o,s)},a=o=>{r("remove",o)};return(o,s)=>(y(),C(d(fe),{title:t.title,class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[_(d(qe),{class:"v-properties-widget__form",size:"small","label-width":"90px",onKeydown:s[0]||(s[0]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[(y(!0),M(ne,null,ae(t.items,l=>(y(),C(d(he),me(l,{key:`${l.name}_${t.node.id}`,current:t.current,context:t.context,removable:t.removable,onChange:i,onRemove:a}),null,16,["current","context","removable"]))),128))]),_:1})]),_:1},8,["title"]))}}),$9=I({name:"PropertiesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=xt(),{node:i,commonProps:a,change:o,componentProps:s,customProps:l,addCustom:c,removeCustom:u,isExist:p}=y7(r),m=D(!1),h=D(),f=()=>{m.value=!0,h.value={name:""}},v=async k=>{const b=Object.keys(i.value?.props||{});return!p(k.name)&&!b.includes(k.name)?(c(k.name),!0):(Ae("已存在该属性名称"),!1)},g=async k=>{await Dn("确定删除?")&&u(k)};return(k,b)=>d(e)?(y(),C(d(se),{key:0,class:"v-properties-widget",direction:"column",fit:""},{default:j(()=>[d(i)?(y(),C(Pi,{key:0,title:"通用属性",current:d(e),context:d(t),node:d(i),items:d(a),onChange:d(o)},null,8,["current","context","node","items","onChange"])):R("",!0),d(i)&&d(s).length?(y(),C(Pi,{key:1,title:"组件属性",current:d(e),context:d(t),node:d(i),items:d(s),onChange:d(o)},null,8,["current","context","node","items","onChange"])):R("",!0),d(i)?(y(),C(Pi,{key:2,title:"自定义属性",current:d(e),context:d(t),node:d(i),items:d(l),onChange:d(o),removable:"",plus:"",grow:"",onPlus:f,onRemove:g},null,8,["current","context","node","items","onChange"])):R("",!0),_(d(Vt),{modelValue:m.value,"onUpdate:modelValue":b[0]||(b[0]=x=>m.value=x),title:"新增自定义属性",width:"400px",height:"150px","submit-method":v,formProps:{tooltipMessage:!1},model:h.value},{default:j(()=>[_(d(ee),{name:"name",label:"属性名称",required:"",rules:{message:"名称格式错误",pattern:d($t)}},null,8,["rules"])]),_:1},8,["modelValue","model"])]),_:1})):R("",!0)}}),E9=I({name:"VariableBinder",__name:"variable",props:{context:{},current:{},value:{}},setup(n){const e=n,t=D(),r=tn({type:"JSExpression",value:e.value}),i=a=>{t.value.getEditor().setValue(a),r.value=a};return(a,o)=>(y(),C(d(Ao),{title:"绑定变量","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:i},{default:j(()=>[_(d(ee),{name:"value",label:"绑定内容 [ JSExpression ]",required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s),dark:"",height:"450px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),A9=I({name:"EventBinder",__name:"event",props:{context:{},current:{},name:{},event:{}},setup(n){const e=n,t=D(),r=tn({name:e.name,...e.event,modifiers:Object.keys(e.event?.modifiers||{}),handler:{type:"JSFunction",value:e.event?.handler?.value||"() => {}"}}),i=u7.map(o=>({label:o,value:o})),a=o=>{t.value.getEditor().setValue(o),r.handler.value=o};return(o,s)=>(y(),C(d(Ao),{title:"绑定事件","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:a},{default:j(()=>[_(d(ee),{name:"modifiers",label:"事件修饰符",editor:"checkbox",options:d(i)},null,8,["options"]),_(d(ee),{name:"handler.value",label:"事件处理函数 [ JSFunction ]",required:""},{editor:j(()=>[_(d(Te),{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"]))}}),T9=I({name:"EventsWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=xt(),{mouseEventList:i,keyboardEventList:a,componentEventList:o}=b7(r),s=D({name:"",event:void 0}),l=D(!1),c=f=>{s.value=en(f),l.value=!0},u=async f=>{const v={...f,modifiers:f.modifiers.reduce((g,k)=>(g[k]=!0,g),{})};return De(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 Dn("确定要删除该事件吗?")&&p(s.value)},h=f=>{const{name:v,modelValue:g}=f;v==="edit"&&c(g),v==="remove"&&p(g)};return(f,v)=>(y(),C(d(se),{class:"v-events-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{title:"组件事件",class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[d(o).length?R("",!0):(y(),C(d(ze),{key:0,"image-size":50,description:"该组件无自带事件"})),(y(!0),M(ne,null,ae(d(o),g=>(y(),C(d(Me),{key:`component_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),_(d(fe),{title:"鼠标事件",class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[(y(!0),M(ne,null,ae(d(i),g=>(y(),C(d(Me),{key:`mouse_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),_(d(fe),{title:"键盘事件",class:"v-sub-panel",size:"small",grow:"",fit:!1},{default:j(()=>[(y(!0),M(ne,null,ae(d(a),g=>(y(),C(d(Me),{key:`keyboard_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),l.value?(y(),C(d(A9),{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:u,onUnbind:m},null,8,["modelValue","context","current","name","event"])):R("",!0)]),_:1}))}}),B9=I({name:"CssWidget",__name:"index",setup(n){const{current:e}=Ie(),t=D(),r=z(()=>e.value?.css||""),i=o=>{e.value?.setCss(o)},a=()=>{const o=(t.value?.getEditor()).getValue();i(o),We("保存成功")};return(o,s)=>(y(),C(d(fe),{class:"v-css-widget v-sub-panel",title:"lang:css scoped",size:"small",fit:"",save:"",onSave:a},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"css",dark:"",onBlur:i},null,8,["model-value"])]),_:1}))}}),z9=I({name:"DirectivesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=xt(),{vIf:i,vShow:a,vBind:o,vFor:s,vModels:l,onValueChange:c,onForChange:u,onModelChange:p}=S7(r),m=h=>h.arg?typeof h.arg=="string"?h.arg:yt(h.arg,{}):"modelValue";return(h,f)=>(y(),C(d(se),{class:"v-directives-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{class:"v-sub-panel",title:"内置指令",size:"small",fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px",onKeydown:f[0]||(f[0]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(he),{name:"vIf",label:"v-if",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(i).value,onChange:d(c)},null,8,["current","context","value","onChange"]),_(d(he),{name:"vShow",label:"v-show",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(a).value,onChange:d(c)},null,8,["current","context","value","onChange"]),_(d(he),{name:"vBind",label:"v-bind",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(o).value,onChange:d(c)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),_(d(fe),{class:"v-sub-panel",title:"循环",size:"small",fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px",onKeydown:f[1]||(f[1]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(he),{name:"value",label:"循环数据",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(s).value,onChange:d(u)},null,8,["current","context","value","onChange"]),_(d(he),{name:"item",label:"迭代变量名",setters:{name:"StringSetter",props:{placeholder:"item"}},current:d(e),context:d(t),value:d(s).iterator?.item,onChange:d(u)},null,8,["current","context","value","onChange"]),_(d(he),{name:"index",label:"索引变量名",setters:{name:"StringSetter",props:{placeholder:"index"}},current:d(e),context:d(t),value:d(s).iterator?.index,onChange:d(u)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),_(d(fe),{class:"v-sub-panel",title:"双向绑定",size:"small",fit:!1,grow:""},{default:j(()=>[(y(!0),M(ne,null,ae(d(l),(v,g)=>(y(),C(d(fe),{card:"",border:"",class:"v-sub-panel",size:"small",title:`v-model: ${m(v)}`,body:{grow:!1},fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"60px",onKeydown:f[2]||(f[2]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(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?R("",!0):(y(),C(d(ze),{key:0,description:"当前组件没有双向绑定属性","image-size":50}))]),_:1})]),_:1}))}}),D9=I({name:"DefinedPropsDialog",__name:"props",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义属性":"新增定义属性"),r=D(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=Object.keys(z0).map(o=>({label:o,value:o})),a=async o=>{const s=o.default;return s&&!De(s,e.context,!0)?!1:(e.current.setProp(o),!0)};return(o,s)=>(y(),C(d(Vt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":a},{default:j(()=>[_(d(ee),{name:"name",label:"属性名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d($t)}},null,8,["disabled","rules"]),_(d(ee),{name:"type",label:"数据类型",editor:"checkbox",props:{button:!0,size:"small"},options:d(i),required:""},null,8,["options"]),_(d(ee),{name:"required",label:"必须",editor:"switch"}),_(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:j(()=>[_(d(Te),{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"]))}}),O9=I({name:"DefinedEventsDialog",__name:"events",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义事件":"新增定义事件"),r=D({name:e.item}),i=async a=>(e.item&&e.current.removeEmit(e.item,!0),e.current.setEmit(a.name),!0);return(a,o)=>(y(),C(d(Vt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"事件名称",required:"",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d($t)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),I9=I({name:"DefinedSlotsDialog",__name:"slots",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义插槽":"新增定义插槽"),r=D({name:e.item}),i=async a=>(e.item&&e.current.removeSlot(e.item,!0),e.current.setSlot(a.name),!0);return(a,o)=>(y(),C(d(Vt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"插槽名称",disabled:!!e.item,required:"",rules:{message:"名称格式错误",pattern:d($t)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),R9=I({name:"DefinedInjectsDialog",__name:"injects",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑注入":"新增注入"),r=D(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=async a=>{const o=a.default;return o&&!De(o,e.context,!0)?!1:(e.current.setInject(a),!0)};return(a,o)=>(y(),C(d(Vt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"注入名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d($t)}},null,8,["disabled","rules"]),_(d(ee),{name:"from",label:"来源名称",tip:"默认和注入名称一致"}),_(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.default.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value.default.value=s),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),M9=I({name:"DefinedWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=z(()=>(e.value?.props||[]).map(B=>typeof B=="string"?{name:B}:B)),i=z(()=>e.value?.emits||[]),a=z(()=>e.value?.slots||[]),o=z(()=>e.value?.inject||[]),s=D(!1),l=D(),c=D(!1),u=D(),p=D(!1),m=D(),h=D(!1),f=D(),v=()=>{l.value=void 0,s.value=!0},g=B=>{const{name:F,modelValue:A}=B;F==="edit"&&k(A),F==="remove"&&e.value?.removeProp(A)},k=B=>{l.value=B,s.value=!0},b=()=>{u.value=void 0,c.value=!0},x=B=>{u.value=B,c.value=!0},S=B=>{const{name:F,modelValue:A}=B;F==="edit"&&x(A),F==="remove"&&e.value?.removeEmit(A)},V=()=>{m.value=void 0,p.value=!0},w=B=>{m.value=B,p.value=!0},$=B=>{const{name:F,modelValue:A}=B;F==="edit"&&w(A),F==="remove"&&e.value?.removeSlot(A)},E=()=>{f.value=void 0,h.value=!0},J=B=>{f.value=B,h.value=!0},T=B=>{const{name:F,modelValue:A}=B;F==="edit"&&J(A),F==="remove"&&e.value?.removeInject(A)};return(B,F)=>d(e)&&d(t)?(y(),C(d(se),{key:0,class:"v-defined-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{class:"v-sub-panel",title:"定义属性",size:"small",plus:"",fit:!1,onPlus:v},{default:j(()=>[(y(!0),M(ne,null,ae(r.value,A=>(y(),C(d(Me),{"model-value":A,title:A.name,border:"",actions:["edit","remove"],onClick:N=>k(A),onAction:g},null,8,["model-value","title","onClick"]))),256)),r.value.length?R("",!0):(y(),C(d(ze),{key:0,"image-size":50})),s.value?(y(),C(D9,{key:1,current:d(e),context:d(t),modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=A=>s.value=A),item:l.value},null,8,["current","context","modelValue","item"])):R("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"定义事件",size:"small",plus:"",fit:!1,onPlus:b},{default:j(()=>[(y(!0),M(ne,null,ae(i.value,A=>(y(),C(d(Me),{"model-value":A,title:A,border:"",actions:["remove"],onClick:N=>x(A),onAction:S},null,8,["model-value","title","onClick"]))),256)),i.value.length?R("",!0):(y(),C(d(ze),{key:0,"image-size":50})),c.value?(y(),C(O9,{key:1,modelValue:c.value,"onUpdate:modelValue":F[1]||(F[1]=A=>c.value=A),current:d(e),context:d(t),item:u.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"定义插槽",size:"small",plus:"",fit:!1,onPlus:V},{default:j(()=>[(y(!0),M(ne,null,ae(a.value,A=>(y(),C(d(Me),{"model-value":A,title:A,border:"",actions:["remove"],onClick:N=>w(A),onAction:$},null,8,["model-value","title","onClick"]))),256)),a.value.length?R("",!0):(y(),C(d(ze),{key:0,"image-size":50})),p.value?(y(),C(I9,{key:1,modelValue:p.value,"onUpdate:modelValue":F[2]||(F[2]=A=>p.value=A),current:d(e),context:d(t),item:m.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"注入",size:"small",plus:"",fit:!1,grow:"",onPlus:E},{default:j(()=>[(y(!0),M(ne,null,ae(o.value,A=>(y(),C(d(Me),{"model-value":A,title:A.name,border:"",actions:["remove"],onClick:N=>J(A),onAction:T},null,8,["model-value","title","onClick"]))),256)),o.value.length?R("",!0):(y(),C(d(ze),{key:0,"image-size":50})),h.value?(y(),C(R9,{key:1,modelValue:h.value,"onUpdate:modelValue":F[3]||(F[3]=A=>h.value=A),current:d(e),context:d(t),item:f.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1})]),_:1})):R("",!0)}}),P9=I({name:"DataSourceDialogForm",__name:"form",props:{context:{},current:{},item:{}},setup(n){const e=n,{apis:t}=k7(),r=D(Object.assign({type:"api",ref:"",name:"",label:"",transform:{type:"JSFunction",value:`(res) => {
103
+ `)},i.value=!1,r.value=!0),v.name==="remove"&&t.project.value?.removeDeps(f)};return(f,v)=>(y(),V(d(fe),{class:"v-deps-widget",title:"依赖管理",plus:"",onPlus:p},{default:j(()=>[(y(!0),R(ne,null,ae(d(e),g=>(y(),V(d(Re),{key:g.package,title:g.package,subtitle:g.version,actions:s(g),background:"",switch:l(g),modelValue:g.enabled,"onUpdate:modelValue":k=>g.enabled=k,onSwitch:k=>u(g),onClick:k=>m(g),onAction:k=>h(g,k)},null,8,["title","subtitle","actions","switch","modelValue","onUpdate:modelValue","onSwitch","onClick","onAction"]))),128)),_(d(Ct),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=g=>r.value=g),width:"600px",height:"500px",title:o.value,model:a.value,submitMethod:c,formProps:{disabled:i.value,tooltipMessage:!1}},{default:j(()=>[_(d(ee),{name:"package",label:"包名",required:"",disabled:!!a.value},null,8,["disabled"]),_(d(ee),{name:"version",label:"版本",required:""}),_(d(ee),{name:"library",label:"导出名称",required:""}),_(d(ee),{name:"urls",label:"资源文件",editor:"textarea",props:{rows:3},tip:"多个资源可以换行输入",required:""}),_(d(ee),{name:"assetsUrl",label:"物料URL"}),_(d(ee),{name:"assetsLibrary",label:"物料名称"})]),_:1},8,["modelValue","title","model","formProps"])]),_:1}))}}),x9=I({__name:"actions",props:{position:{},model:{},path:{default:()=>[]}},emits:["action","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>t.model.name),a=z(()=>!Ce(t.model)&&!t.model.locked),o=z(()=>t.path.map(u=>({command:u,label:u.name,onMouseenter:()=>{r("action",{type:"hover",model:u})}}))),s=[{name:"move",icon:M2,title:"移动",draggable:!0,onDragstart:()=>{r("dragstart",t.model)},onDragend:()=>{r("dragend",t.model)}},{name:"prev",icon:Vu,title:"向前移动"},{name:"next",icon:ju,title:"向后移动"},{name:"copy",icon:ao,title:"复制"},{name:"remove",icon:sr,title:"删除"}],l=u=>{r("action",{type:"selected",model:u.command})},c=async u=>{u.name==="remove"?await Dn("确定删除?")&&r("action",{type:u.name,model:t.model}):r("action",{type:u.name,model:t.model})};return(u,p)=>(y(),R("div",{class:ce(["v-actions",[`is-${t.position}`]])},[_(d(Be),{mode:"icon",size:"small",icon:d(so),label:i.value,menus:o.value,background:"none",onCommand:l},null,8,["icon","label","menus"]),_(d(j5),{disabled:!a.value,mode:"icon",size:"small",items:s,background:"none",onClick:c},null,8,["disabled"])],2))}}),_9={key:1,class:"v-designer__placeholder"},S9=I({name:"VDesigner",inheritAttrs:!1,__name:"index",setup(n,{expose:e}){const t=D(),r=D(),{width:i,height:a}=_n(t),{dependencies:o,engine:s,apis:l}=U0(),{current:c,isEmpty:u}=Ie(),p=z(()=>s.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc"),m=z(()=>s.project.value?.config||{}),{designer:h,hover:f,dropping:v,selected:g}=v7(r,o,l,m),k=S=>{const C=S.type,x=S.model;if(c.value)switch(C){case"remove":c.value.removeNode(x),h.value?.setSelected(null);break;case"copy":const E=c.value.cloneNode(x);h.value?.setSelected(E);break;case"prev":c.value.movePrev(x),h.value?.setSelected(x);break;case"next":c.value.moveNext(x),h.value?.setSelected(x);break;case"hover":h.value?.setHover(x);break;case"selected":h.value?.setSelected(x);break}},b=S=>{if(S){const C=s.assets.componentMap.get(S.name);C&&h.value?.setDragging(C),h.value?.setDraggingNode(S)}},w=()=>{h.value?.setDraggingNode(null),h.value?.setDragging(null)};return e({designer:h,mode:p}),(S,C)=>(y(),R("div",{ref_key:"container",ref:t,class:"v-designer"},[_(d(K0),{mode:p.value,width:d(i),height:d(a)},{default:j(()=>[P("iframe",{ref_key:"iframe",ref:r,frameborder:"0"},null,512),d(v)?(y(),R("div",{key:0,class:ce(["v-designer__dropping","is-inner"]),style:Rt(d(v).style)},null,4)):M("",!0),d(f)?(y(),R("div",{key:1,class:"v-designer__hover",style:Rt(d(f).style)},[P("span",{class:ce(`is-${d(f).position}`)},[le(te(d(f).model.name)+": ",1),P("i",null,te(d(f).model.id),1)],2)],4)):M("",!0),d(g)?(y(),R("div",{key:2,class:"v-designer__selected",style:Rt(d(g).style)},[_(x9,{position:d(g).position,model:d(g).model,path:d(g).path,onAction:k,onDragstart:b,onDragend:w},null,8,["position","model","path"])],4)):M("",!0)]),_:1},8,["mode","width","height"]),d(c)?M("",!0):(y(),V(d(ze),{key:0,description:"请新建或打开文件"})),d(c)&&d(u)?(y(),R("div",_9," 您可以拖拽组件放置到这里 ")):M("",!0)],512))}}),mr=I({__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=D(),r=D(),i=D(!1),a=D(e.createEmpty()),o=D(!1),s=z(()=>o.value?`编辑${e.title}`:`新增${e.title}`),l=()=>{o.value=!1,a.value=e.createEmpty(),i.value=!0},c=(f,v)=>{switch(v.name){case"edit":p(f);break;case"remove":e.remove(f);break}},u=f=>{a.value.value=f},p=f=>{o.value=!0,a.value={...f},i.value=!0},m=async f=>e.submit(f,o.value),h=()=>{r.value?.itemRef.validate()};return(f,v)=>(y(),V(d(fe),{title:e.title,class:"v-sub-panel",size:"small",fit:!1,plus:"",onPlus:l},{default:j(()=>[(y(!0),R(ne,null,ae(f.list,g=>(y(),V(d(Re),{title:e.itemTitle(g),border:"",actions:["edit","remove"],onAction:k=>c(g,k),onClick:k=>p(g)},null,8,["title","onAction","onClick"]))),256)),f.list.length?M("",!0):(y(),V(d(ze),{key:0,"image-size":40})),_(d(Ao),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),title:s.value,"submit-method":m,model:a.value,block:f.current,context:f.context,onPick:u},{default:j(()=>[de(f.$slots,"fields",kt(Ft({model:a.value,isEdit:o.value,nameLabel:f.nameLabel,valueLabel:f.valueLabel})),()=>[_(d(ee),{name:"name",label:f.nameLabel,required:"",disabled:o.value},null,8,["label","disabled"]),_(d(ee),{ref_key:"codeFieldRef",ref:r,name:"value",label:f.valueLabel,required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,dark:"",height:"350px",modelValue:a.value.value,"onUpdate:modelValue":v[0]||(v[0]=g=>a.value.value=g),onBlur:h},null,8,["modelValue"])]),_:1},8,["label"])])]),_:3},8,["modelValue","title","model","block","context"])]),_:3},8,["title"]))}}),k9=I({__name:"state",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.state||{}).map(([o,s])=>({name:o,value:$n(s)}))),r=()=>({name:"",value:""}),i=o=>e.current?.removeState(o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.state[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSExpression",value:c};return De(u,e.context,!0)?(e.current?.setState(l,u),!0):!1};return(o,s)=>(y(),V(mr,{title:"状态数据",current:e.current,context:e.context,list:t.value,nameLabel:"状态数据名称",valueLabel:"状态初始值 [ JSExpression ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),j9=I({__name:"computed",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.computed||{}).map(([o,s])=>({name:o,value:$n(s)}))),r=()=>({name:"",value:"() => { }"}),i=o=>e.current?.removeFunction("computed",o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.computed[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSFunction",value:c};return De(u,e.context,!0)?(e.current?.setFunction("computed",l,u),!0):!1};return(o,s)=>(y(),V(mr,{title:"计算属性",current:e.current,context:e.context,list:t.value,nameLabel:"计算属性名称",valueLabel:"计算函数 [ JSFunction ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),V9=I({__name:"methods",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.methods||{}).map(([o,s])=>({name:o,value:$n(s)}))),r=()=>({name:"",value:"() => { }"}),i=o=>e.current?.removeFunction("methods",o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.methods[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSFunction",value:c};return De(u,e.context,!0)?(e.current?.setFunction("methods",l,u),!0):!1};return(o,s)=>(y(),V(mr,{title:"组件方法",current:e.current,context:e.context,list:t.value,nameLabel:"方法名称",valueLabel:"方法函数 [ JSFunction ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),C9=I({__name:"lifeCycles",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Sb.map(s=>({label:s,value:s}))),r=z(()=>Object.entries(e.current?.lifeCycles||{}).map(([s,l])=>({name:s,value:$n(l)}))),i=()=>({name:"",value:"() => { }"}),a=s=>e.current?.removeFunction("lifeCycles",s.name),o=async(s,l)=>{const{name:c,value:u}=s;if(!l&&e.current?.lifeCycles[c])return Ae(`名称 ${c} 已存在,请更换!`),!1;const p={type:"JSFunction",value:u};return De(p,e.context,!0)?(e.current?.setFunction("lifeCycles",c,p),!0):!1};return(s,l)=>(y(),V(mr,{title:"生命周期",current:e.current,context:e.context,list:r.value,nameLabel:"名称",valueLabel:"函数 [ JSFunction ]",createEmpty:i,remove:a,submit:o},{fields:j(({model:c,nameLabel:u,isEdit:p,valueLabel:m})=>[_(d(ee),{name:"name",label:u,editor:"select",options:t.value,required:"",disabled:p},null,8,["label","options","disabled"]),_(d(ee),{name:"value",label:m,required:""},{editor:j(()=>[_(d(Te),{ref:"editorRef",dark:"",height:"350px",modelValue:c.value,"onUpdate:modelValue":h=>c.value=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),E9=I({__name:"watch",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>(e.current?.watch||[]).map(s=>({...s,source:$n(s.source),handler:$n(s.handler)}))),r=()=>({source:"() => { }",deep:!1,immediate:!1,handler:"() => { }"}),i=s=>s.source,a=s=>e.current?.removeWatch(s),o=async(s,l)=>{const c={type:"JSFunction",value:s.source},u={type:"JSFunction",value:s.handler};if(!De(c,e.context,!0)||!De(u,e.context,!0))return!1;const p={...s,source:c,handler:u};return e.current?.setWatch(p),!0};return(s,l)=>(y(),V(mr,{title:"侦听器",current:e.current,context:e.context,list:t.value,nameLabel:"侦听源 [ JSFunction ]",valueLabel:"处理函数 [ JSFunction ]",createEmpty:r,remove:a,submit:o,itemTitle:i,grow:""},{fields:j(({model:c,nameLabel:u,valueLabel:p})=>[_(d(ee),{name:"source",label:u,required:""},{editor:j(()=>[_(d(Te),{dark:"",height:"100px",modelValue:c.source,"onUpdate:modelValue":m=>c.source=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),_(d(ee),{name:"deep",modelValue:c.deep,"onUpdate:modelValue":m=>c.deep=m,label:"深度监听",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),_(d(ee),{name:"immediate",modelValue:c.immediate,"onUpdate:modelValue":m=>c.immediate=m,label:"立即执行",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),_(d(ee),{name:"handler",label:p,required:""},{editor:j(()=>[_(d(Te),{dark:"",height:"130px",modelValue:c.handler,"onUpdate:modelValue":m=>c.handler=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),$9=I({__name:"index",setup(n){const{current:e,context:t}=Ie();return(r,i)=>(y(),V(d(se),{class:"v-scripts-widget",direction:"column",fit:""},{default:j(()=>[_(k9,{current:d(e),context:d(t)},null,8,["current","context"]),_(j9,{current:d(e),context:d(t)},null,8,["current","context"]),_(V9,{current:d(e),context:d(t)},null,8,["current","context"]),_(C9,{current:d(e),context:d(t)},null,8,["current","context"]),_(E9,{current:d(e),context:d(t)},null,8,["current","context"])]),_:1}))}}),Pi=I({__name:"setters",props:{context:{},current:{},title:{},items:{},node:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=(o,s)=>{r("change",o,s)},a=o=>{r("remove",o)};return(o,s)=>(y(),V(d(fe),{title:t.title,class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[_(d(qe),{class:"v-properties-widget__form",size:"small","label-width":"90px",onKeydown:s[0]||(s[0]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[(y(!0),R(ne,null,ae(t.items,l=>(y(),V(d(he),me(l,{key:`${l.name}_${t.node.id}`,current:t.current,context:t.context,removable:t.removable,onChange:i,onRemove:a}),null,16,["current","context","removable"]))),128))]),_:1})]),_:1},8,["title"]))}}),A9=I({name:"PropertiesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=xt(),{node:i,commonProps:a,change:o,componentProps:s,customProps:l,addCustom:c,removeCustom:u,isExist:p}=w7(r),m=D(!1),h=D(),f=()=>{m.value=!0,h.value={name:""}},v=async k=>{const b=Object.keys(i.value?.props||{});return!p(k.name)&&!b.includes(k.name)?(c(k.name),!0):(Ae("已存在该属性名称"),!1)},g=async k=>{await Dn("确定删除?")&&u(k)};return(k,b)=>d(e)?(y(),V(d(se),{key:0,class:"v-properties-widget",direction:"column",fit:""},{default:j(()=>[d(i)?(y(),V(Pi,{key:0,title:"通用属性",current:d(e),context:d(t),node:d(i),items:d(a),onChange:d(o)},null,8,["current","context","node","items","onChange"])):M("",!0),d(i)&&d(s).length?(y(),V(Pi,{key:1,title:"组件属性",current:d(e),context:d(t),node:d(i),items:d(s),onChange:d(o)},null,8,["current","context","node","items","onChange"])):M("",!0),d(i)?(y(),V(Pi,{key:2,title:"自定义属性",current:d(e),context:d(t),node:d(i),items:d(l),onChange:d(o),removable:"",plus:"",grow:"",onPlus:f,onRemove:g},null,8,["current","context","node","items","onChange"])):M("",!0),_(d(Ct),{modelValue:m.value,"onUpdate:modelValue":b[0]||(b[0]=w=>m.value=w),title:"新增自定义属性",width:"400px",height:"150px","submit-method":v,formProps:{tooltipMessage:!1},model:h.value},{default:j(()=>[_(d(ee),{name:"name",label:"属性名称",required:"",rules:{message:"名称格式错误",pattern:d(Et)}},null,8,["rules"])]),_:1},8,["modelValue","model"])]),_:1})):M("",!0)}}),T9=I({name:"VariableBinder",__name:"variable",props:{context:{},current:{},value:{}},setup(n){const e=n,t=D(),r=nn({type:"JSExpression",value:e.value}),i=a=>{t.value.getEditor().setValue(a),r.value=a};return(a,o)=>(y(),V(d(Ao),{title:"绑定变量","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:i},{default:j(()=>[_(d(ee),{name:"value",label:"绑定内容 [ JSExpression ]",required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s),dark:"",height:"450px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),B9=I({name:"EventBinder",__name:"event",props:{context:{},current:{},name:{},event:{}},setup(n){const e=n,t=D(),r=nn({name:e.name,...e.event,modifiers:Object.keys(e.event?.modifiers||{}),handler:{type:"JSFunction",value:e.event?.handler?.value||"() => {}"}}),i=p7.map(o=>({label:o,value:o})),a=o=>{t.value.getEditor().setValue(o),r.handler.value=o};return(o,s)=>(y(),V(d(Ao),{title:"绑定事件","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:a},{default:j(()=>[_(d(ee),{name:"modifiers",label:"事件修饰符",editor:"checkbox",options:d(i)},null,8,["options"]),_(d(ee),{name:"handler.value",label:"事件处理函数 [ JSFunction ]",required:""},{editor:j(()=>[_(d(Te),{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"]))}}),z9=I({name:"EventsWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=xt(),{mouseEventList:i,keyboardEventList:a,componentEventList:o}=x7(r),s=D({name:"",event:void 0}),l=D(!1),c=f=>{s.value=tn(f),l.value=!0},u=async f=>{const v={...f,modifiers:f.modifiers.reduce((g,k)=>(g[k]=!0,g),{})};return De(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 Dn("确定要删除该事件吗?")&&p(s.value)},h=f=>{const{name:v,modelValue:g}=f;v==="edit"&&c(g),v==="remove"&&p(g)};return(f,v)=>(y(),V(d(se),{class:"v-events-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{title:"组件事件",class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[d(o).length?M("",!0):(y(),V(d(ze),{key:0,"image-size":50,description:"该组件无自带事件"})),(y(!0),R(ne,null,ae(d(o),g=>(y(),V(d(Re),{key:`component_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),_(d(fe),{title:"鼠标事件",class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[(y(!0),R(ne,null,ae(d(i),g=>(y(),V(d(Re),{key:`mouse_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),_(d(fe),{title:"键盘事件",class:"v-sub-panel",size:"small",grow:"",fit:!1},{default:j(()=>[(y(!0),R(ne,null,ae(d(a),g=>(y(),V(d(Re),{key:`keyboard_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),l.value?(y(),V(d(B9),{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:u,onUnbind:m},null,8,["modelValue","context","current","name","event"])):M("",!0)]),_:1}))}}),D9=I({name:"CssWidget",__name:"index",setup(n){const{current:e}=Ie(),t=D(),r=z(()=>e.value?.css||""),i=o=>{e.value?.setCss(o)},a=()=>{const o=(t.value?.getEditor()).getValue();i(o),We("保存成功")};return(o,s)=>(y(),V(d(fe),{class:"v-css-widget v-sub-panel",title:"lang:css scoped",size:"small",fit:"",save:"",onSave:a},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"css",dark:"",onBlur:i},null,8,["model-value"])]),_:1}))}}),O9=I({name:"DirectivesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=xt(),{vIf:i,vShow:a,vBind:o,vFor:s,vModels:l,onValueChange:c,onForChange:u,onModelChange:p}=j7(r),m=h=>h.arg?typeof h.arg=="string"?h.arg:yt(h.arg,{}):"modelValue";return(h,f)=>(y(),V(d(se),{class:"v-directives-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{class:"v-sub-panel",title:"内置指令",size:"small",fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px",onKeydown:f[0]||(f[0]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(he),{name:"vIf",label:"v-if",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(i).value,onChange:d(c)},null,8,["current","context","value","onChange"]),_(d(he),{name:"vShow",label:"v-show",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(a).value,onChange:d(c)},null,8,["current","context","value","onChange"]),_(d(he),{name:"vBind",label:"v-bind",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(o).value,onChange:d(c)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),_(d(fe),{class:"v-sub-panel",title:"循环",size:"small",fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px",onKeydown:f[1]||(f[1]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(he),{name:"value",label:"循环数据",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(s).value,onChange:d(u)},null,8,["current","context","value","onChange"]),_(d(he),{name:"item",label:"迭代变量名",setters:{name:"StringSetter",props:{placeholder:"item"}},current:d(e),context:d(t),value:d(s).iterator?.item,onChange:d(u)},null,8,["current","context","value","onChange"]),_(d(he),{name:"index",label:"索引变量名",setters:{name:"StringSetter",props:{placeholder:"index"}},current:d(e),context:d(t),value:d(s).iterator?.index,onChange:d(u)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),_(d(fe),{class:"v-sub-panel",title:"双向绑定",size:"small",fit:!1,grow:""},{default:j(()=>[(y(!0),R(ne,null,ae(d(l),(v,g)=>(y(),V(d(fe),{card:"",border:"",class:"v-sub-panel",size:"small",title:`v-model: ${m(v)}`,body:{grow:!1},fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"60px",onKeydown:f[2]||(f[2]=Wn(vn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(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?M("",!0):(y(),V(d(ze),{key:0,description:"当前组件没有双向绑定属性","image-size":50}))]),_:1})]),_:1}))}}),I9=I({name:"DefinedPropsDialog",__name:"props",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义属性":"新增定义属性"),r=D(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=Object.keys(z0).map(o=>({label:o,value:o})),a=async o=>{const s=o.default;return s&&!De(s,e.context,!0)?!1:(e.current.setProp(o),!0)};return(o,s)=>(y(),V(d(Ct),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":a},{default:j(()=>[_(d(ee),{name:"name",label:"属性名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Et)}},null,8,["disabled","rules"]),_(d(ee),{name:"type",label:"数据类型",editor:"checkbox",props:{button:!0,size:"small"},options:d(i),required:""},null,8,["options"]),_(d(ee),{name:"required",label:"必须",editor:"switch"}),_(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:j(()=>[_(d(Te),{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"]))}}),M9=I({name:"DefinedEventsDialog",__name:"events",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义事件":"新增定义事件"),r=D({name:e.item}),i=async a=>(e.item&&e.current.removeEmit(e.item,!0),e.current.setEmit(a.name),!0);return(a,o)=>(y(),V(d(Ct),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"事件名称",required:"",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Et)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),R9=I({name:"DefinedSlotsDialog",__name:"slots",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义插槽":"新增定义插槽"),r=D({name:e.item}),i=async a=>(e.item&&e.current.removeSlot(e.item,!0),e.current.setSlot(a.name),!0);return(a,o)=>(y(),V(d(Ct),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"插槽名称",disabled:!!e.item,required:"",rules:{message:"名称格式错误",pattern:d(Et)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),P9=I({name:"DefinedInjectsDialog",__name:"injects",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑注入":"新增注入"),r=D(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=async a=>{const o=a.default;return o&&!De(o,e.context,!0)?!1:(e.current.setInject(a),!0)};return(a,o)=>(y(),V(d(Ct),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"注入名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Et)}},null,8,["disabled","rules"]),_(d(ee),{name:"from",label:"来源名称",tip:"默认和注入名称一致"}),_(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.default.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value.default.value=s),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),N9=I({name:"DefinedWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=z(()=>(e.value?.props||[]).map(B=>typeof B=="string"?{name:B}:B)),i=z(()=>e.value?.emits||[]),a=z(()=>e.value?.slots||[]),o=z(()=>e.value?.inject||[]),s=D(!1),l=D(),c=D(!1),u=D(),p=D(!1),m=D(),h=D(!1),f=D(),v=()=>{l.value=void 0,s.value=!0},g=B=>{const{name:F,modelValue:A}=B;F==="edit"&&k(A),F==="remove"&&e.value?.removeProp(A)},k=B=>{l.value=B,s.value=!0},b=()=>{u.value=void 0,c.value=!0},w=B=>{u.value=B,c.value=!0},S=B=>{const{name:F,modelValue:A}=B;F==="edit"&&w(A),F==="remove"&&e.value?.removeEmit(A)},C=()=>{m.value=void 0,p.value=!0},x=B=>{m.value=B,p.value=!0},E=B=>{const{name:F,modelValue:A}=B;F==="edit"&&x(A),F==="remove"&&e.value?.removeSlot(A)},$=()=>{f.value=void 0,h.value=!0},U=B=>{f.value=B,h.value=!0},T=B=>{const{name:F,modelValue:A}=B;F==="edit"&&U(A),F==="remove"&&e.value?.removeInject(A)};return(B,F)=>d(e)&&d(t)?(y(),V(d(se),{key:0,class:"v-defined-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{class:"v-sub-panel",title:"定义属性",size:"small",plus:"",fit:!1,onPlus:v},{default:j(()=>[(y(!0),R(ne,null,ae(r.value,A=>(y(),V(d(Re),{"model-value":A,title:A.name,border:"",actions:["edit","remove"],onClick:N=>k(A),onAction:g},null,8,["model-value","title","onClick"]))),256)),r.value.length?M("",!0):(y(),V(d(ze),{key:0,"image-size":50})),s.value?(y(),V(I9,{key:1,current:d(e),context:d(t),modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=A=>s.value=A),item:l.value},null,8,["current","context","modelValue","item"])):M("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"定义事件",size:"small",plus:"",fit:!1,onPlus:b},{default:j(()=>[(y(!0),R(ne,null,ae(i.value,A=>(y(),V(d(Re),{"model-value":A,title:A,border:"",actions:["remove"],onClick:N=>w(A),onAction:S},null,8,["model-value","title","onClick"]))),256)),i.value.length?M("",!0):(y(),V(d(ze),{key:0,"image-size":50})),c.value?(y(),V(M9,{key:1,modelValue:c.value,"onUpdate:modelValue":F[1]||(F[1]=A=>c.value=A),current:d(e),context:d(t),item:u.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"定义插槽",size:"small",plus:"",fit:!1,onPlus:C},{default:j(()=>[(y(!0),R(ne,null,ae(a.value,A=>(y(),V(d(Re),{"model-value":A,title:A,border:"",actions:["remove"],onClick:N=>x(A),onAction:E},null,8,["model-value","title","onClick"]))),256)),a.value.length?M("",!0):(y(),V(d(ze),{key:0,"image-size":50})),p.value?(y(),V(R9,{key:1,modelValue:p.value,"onUpdate:modelValue":F[2]||(F[2]=A=>p.value=A),current:d(e),context:d(t),item:m.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"注入",size:"small",plus:"",fit:!1,grow:"",onPlus:$},{default:j(()=>[(y(!0),R(ne,null,ae(o.value,A=>(y(),V(d(Re),{"model-value":A,title:A.name,border:"",actions:["remove"],onClick:N=>U(A),onAction:T},null,8,["model-value","title","onClick"]))),256)),o.value.length?M("",!0):(y(),V(d(ze),{key:0,"image-size":50})),h.value?(y(),V(P9,{key:1,modelValue:h.value,"onUpdate:modelValue":F[3]||(F[3]=A=>h.value=A),current:d(e),context:d(t),item:f.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1})]),_:1})):M("",!0)}}),F9=I({name:"DataSourceDialogForm",__name:"form",props:{context:{},current:{},item:{}},setup(n){const e=n,{apis:t}=V7(),r=D(Object.assign({type:"api",ref:"",name:"",label:"",transform:{type:"JSFunction",value:`(res) => {
104
104
  /* 在这里可对接口返回数据进行转换 */
105
105
  return res;
106
106
  }`},test:{type:"JSFunction",value:`() => this.runApi({
107
107
  /* 在这里可输入接口参数 */
108
- })`}},e.item)),i=D(!1),a=D(""),o=D(!1),s=z(()=>t.value.map(m=>({label:m.label||"",value:m.id,data:m}))),l=z(()=>e.item?"编辑数据源":"新增数据源"),c=m=>{const h=t.value.find(f=>f.id===m);h&&(r.value.name=h.name,r.value.label=h.label||"")},u=async m=>{const{transform:h,test:f,name:v}=m;if(!e.current)return!1;if(!e.item&&e.current.dataSources[v])return Ae(`名称【${v}】已经存在,请更换名称`),!1;if(h?.value){if(!De(h,e.context,!0))return!1}else m.transform=void 0;if(f?.value){if(!De(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){Ae("请先选择API");return}if(!r.value.test?.value){Ae("请先填写测试用例");return}if(!De(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);Ye.warn(`API【${r.value.ref}】不存在`)},h=yt(r.value.test,{runApi:m}),f=r.value.transform?.value?yt(r.value.transform,{},!0):v=>v;i.value=!0;try{const v=await h();a.value=JSON.stringify(await f(v),null,2)}catch(v){Ye.error(v)}i.value=!1,o.value=!0};return(m,h)=>(y(),C(d(Vt),{width:"1000px",height:"600px",title:l.value,model:r.value,"form-props":{tooltipMessage:!1},"submit-method":u},{extra:j(()=>[_(d(xe),{loading:i.value,type:"warning",onClick:p},{default:j(()=>[le(" 运行测试用例 ")]),_:1},8,["loading"])]),default:j(()=>[_(d(ee),{name:"ref",label:"引用API",editor:"select",required:"",disabled:!!e.item,options:s.value,props:{filterable:!0},onChange:c},{option:j(({option:f})=>[le(te(f.data.label)+" ",1),P("i",null,"[ "+te(f.data.name)+" ]",1)]),_:1},8,["disabled","options"]),_(d(ee),{name:"name",label:"调用名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d($t)}},null,8,["disabled","rules"]),_(d(ee),{name:"label",label:"备注说明",required:""}),_(d(ee),{name:"transform.value",label:"转换函数",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.transform.value,"onUpdate:modelValue":h[0]||(h[0]=f=>r.value.transform.value=f),height:"200px",dark:""},null,8,["modelValue"])]),_:1}),_(d(ee),{name:"test.value",label:"测试用例",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.test.value,"onUpdate:modelValue":h[1]||(h[1]=f=>r.value.test.value=f),height:"100px",dark:""},null,8,["modelValue"])]),_:1}),o.value?(y(),C(d(kl),{key:0,class:"v-drawer",modelValue:o.value,"onUpdate:modelValue":h[2]||(h[2]=f=>o.value=f),title:"测试用例运行结果",direction:"btt","append-to-body":"",size:"80%"},{default:j(()=>[_(d(Te),{"model-value":a.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):R("",!0)]),_:1},8,["title","model"]))}}),N9=I({name:"DataSourcesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=D(!1),i=D(),a=z(()=>Object.values(e.value?.dataSources||{}).filter(c=>c.type==="api")),o=()=>{i.value=void 0,r.value=!0},s=c=>{i.value=c,r.value=!0},l=c=>{const{name:u,modelValue:p}=c;u==="edit"&&s(p),u==="remove"&&e.value?.removeDataSource(p.name)};return(c,u)=>(y(),C(d(se),{class:"v-data-sources-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{title:"API",class:"v-sub-panel",size:"small",plus:"",onPlus:o},{default:j(()=>[(y(!0),M(ne,null,ae(a.value,p=>(y(),C(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)),a.value.length?R("",!0):(y(),C(d(ze),{key:0,"image-size":50}))]),_:1}),r.value?(y(),C(P9,{key:0,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),current:d(e),context:d(t),item:i.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1}))}}),F9=I({__name:"layout",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D();oe(()=>e.styleJson.display,c=>{t.value=c==="flex"},{immediate:!0});const r=[{label:"block-块级布局",value:"block",svg:M6},{label:"flex-弹性布局",value:"flex",svg:P6},{label:"inline-block-行内块级布局",value:"inline-block",svg:N6},{label:"inline-行内布局",value:"inline",svg:F6},{label:"invisible-不可见",value:"none",svg:H6}],i=[{label:"row-水平",value:"row",svg:X6},{label:"row-reverse-水平",value:"row-reverse",svg:Y6},{label:"column-垂直",value:"column",svg:G6},{label:"column-reverse-垂直",value:"column-reverse",svg:K6}],a=[{label:"flex-start",value:"flex-start",svg:e4},{label:"flex-end",value:"flex-end",svg:Z6},{label:"center",value:"center",svg:Q6},{label:"space-between",value:"space-between",svg:n4},{label:"space-around",value:"space-around",svg:t4}],o=[{label:"不换行",value:"nowrap"},{label:"正换行",value:"wrap"},{label:"逆换行",value:"wrap-reverse"}],s=[{label:"flex-start",value:"flex-start",svg:J6},{label:"flex-end",value:"flex-end",svg:W6},{label:"center",value:"center",svg:U6},{label:"baseline",value:"baseline",svg:L6},{label:"stretch",value:"stretch",svg:q6}],l=(c,u)=>{t.value=u==="flex",e.setStyle("display",u),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(c,u)=>(y(),C(d(fe),{title:"布局",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px"},{default:j(()=>[_(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},[_(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"]),_(d(he),{name:"justify-content",label:"主轴对齐",setters:{name:"TagSetter"},options:a,variable:!1,value:e.styleJson["justify-content"],onChange:e.setStyle},null,8,["value","onChange"]),_(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"]),_(d(he),{name:"flex-wrap",label:"换行模式",setters:{name:"TagSetter"},options:o,variable:!1,value:e.styleJson["flex-wrap"],onChange:e.setStyle},null,8,["value","onChange"])],64)):R("",!0)]),_:1})]),_:1}))}}),H9=I({name:"StyleWidget",__name:"JsonMode",setup(n){const{selected:e}=xt(),t=D(),r=z(()=>{const s=e.value?.model||null;return Ve(s)?null:s}),i=z(()=>JSON.stringify(r.value?.getPropValue("style")||{},null,2)),a=s=>{try{const l=JSON.parse(s);r.value?.setProp("style",l)}catch{Ae("JSON格式错误")}},o=()=>{const s=(t.value?.getEditor()).getValue();a(s),We("保存成功")};return(s,l)=>(y(),C(d(fe),{class:"v-css-widget v-sub-panel",title:"JSON",size:"small",fit:"",save:"",onSave:o},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":i.value,height:"100%",lang:"json",dark:"",onBlur:a},null,8,["model-value"])]),_:1}))}}),L9={class:"v-spacing-input"},U9=P("div",{class:"v-spacing-input__modal"},null,-1),W9={class:"v-spacing-input__content"},J9=["onClick"],G0=I({__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,a=z(()=>r.auto||r.name.includes("margin")),o=D(),s=D(r.modelValue),l=D("px");L2(o,()=>{i("close")});const c=h=>{s.value=typeof h=="number"?`${h}px`:"auto",u(s.value)},u=h=>{l.value=h==="auto"?void 0:"px"},p=()=>{s.value?(i("update:modelValue",s.value),i("submit",r.name,s.value),i("close")):Ae("请输入有效值","提示")},m=()=>{s.value=void 0,i("update:modelValue",s.value),i("submit",r.name,void 0),i("close")};return(h,f)=>(y(),M("div",L9,[U9,P("div",W9,[_(d(se),{class:"v-spacing-input__body",ref_key:"bodyRef",ref:o,direction:"column"},{default:j(()=>[_(d(se),null,{default:j(()=>[_(d(v0),{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:u},null,8,["modelValue","with-unit","unit","format"])]),_:1}),_(d(se),null,{default:j(()=>[a.value?(y(),C(d(se),{key:0,class:"v-spacing-input__auto",width:"20%"},{default:j(()=>[P("span",{onClick:f[1]||(f[1]=v=>c("auto"))},"auto")]),_:1})):R("",!0),_(d(se),{grow:"",class:"v-spacing-input__values",align:"center",wrap:"wrap"},{default:j(()=>[(y(),M(ne,null,ae(t,v=>P("span",{onClick:g=>c(v)},te(v),9,J9)),64))]),_:1})]),_:1}),_(d(se),null,{default:j(()=>[_(d(xe),{size:"small",type:"primary",round:"",style:{width:"100%"},onClick:p},{default:j(()=>[le(" 确定 ")]),_:1}),_(d(xe),{size:"small",round:"",style:{width:"100%"},onClick:m},{default:j(()=>[le(" 重置 ")]),_:1})]),_:1})]),_:1},512)])]))}}),q9={class:"spacing-wrap"},K9={class:"spacing-max-icon"},G9=["width","height"],Y9=["d"],X9=["d"],Q9=["d"],Z9=["d"],ew={id:"margin-outer"},tw=["width","height"],nw=["width","height"],rw={id:"margin-inner"},iw=["width","height"],aw=["width","height"],ow=["width","height"],sw=["d"],lw=["d"],cw=["d"],uw=["d"],dw={id:"padding-outer"},pw=["width","height"],hw=["width","height"],mw={id:"padding-inner"},fw=["width","height"],vw=["width","height"],gw={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"3 / 3 / span 3 / span 3","pointer-events":"none"}},yw=P("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," padding ",-1),bw=[yw],ww={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"1 / 1 / -1 / -1","pointer-events":"none"}},xw=P("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," margin ",-1),_w=[xw],_e=36,Se=24,Sw=I({__name:"spacing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D(),r=D(),{width:i,height:a}=_n(t),{width:o,height:s}=_n(r),l=D(!1),c=D(),u=D(),p=()=>{l.value=!1,c.value=void 0,u.value=void 0},m=h=>{c.value=h,u.value=e.styleJson[h],l.value=!0};return(h,f)=>(y(),C(d(fe),{title:"间距",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[P("div",{class:"v-style-widget__spacing",ref_key:"container",ref:t},[P("div",q9,[P("div",K9,[d(i)&&d(a)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(i),height:d(a),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
108
+ })`}},e.item)),i=D(!1),a=D(""),o=D(!1),s=z(()=>t.value.map(m=>({label:m.label||"",value:m.id,data:m}))),l=z(()=>e.item?"编辑数据源":"新增数据源"),c=m=>{const h=t.value.find(f=>f.id===m);h&&(r.value.name=h.name,r.value.label=h.label||"")},u=async m=>{const{transform:h,test:f,name:v}=m;if(!e.current)return!1;if(!e.item&&e.current.dataSources[v])return Ae(`名称【${v}】已经存在,请更换名称`),!1;if(h?.value){if(!De(h,e.context,!0))return!1}else m.transform=void 0;if(f?.value){if(!De(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){Ae("请先选择API");return}if(!r.value.test?.value){Ae("请先填写测试用例");return}if(!De(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);Ye.warn(`API【${r.value.ref}】不存在`)},h=yt(r.value.test,{runApi:m}),f=r.value.transform?.value?yt(r.value.transform,{},!0):v=>v;i.value=!0;try{const v=await h();a.value=JSON.stringify(await f(v),null,2)}catch(v){Ye.error(v)}i.value=!1,o.value=!0};return(m,h)=>(y(),V(d(Ct),{width:"1000px",height:"600px",title:l.value,model:r.value,"form-props":{tooltipMessage:!1},"submit-method":u},{extra:j(()=>[_(d(xe),{loading:i.value,type:"warning",onClick:p},{default:j(()=>[le(" 运行测试用例 ")]),_:1},8,["loading"])]),default:j(()=>[_(d(ee),{name:"ref",label:"引用API",editor:"select",required:"",disabled:!!e.item,options:s.value,props:{filterable:!0},onChange:c},{option:j(({option:f})=>[le(te(f.data.label)+" ",1),P("i",null,"[ "+te(f.data.name)+" ]",1)]),_:1},8,["disabled","options"]),_(d(ee),{name:"name",label:"调用名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Et)}},null,8,["disabled","rules"]),_(d(ee),{name:"label",label:"备注说明",required:""}),_(d(ee),{name:"transform.value",label:"转换函数",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.transform.value,"onUpdate:modelValue":h[0]||(h[0]=f=>r.value.transform.value=f),height:"200px",dark:""},null,8,["modelValue"])]),_:1}),_(d(ee),{name:"test.value",label:"测试用例",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.test.value,"onUpdate:modelValue":h[1]||(h[1]=f=>r.value.test.value=f),height:"100px",dark:""},null,8,["modelValue"])]),_:1}),o.value?(y(),V(d(kl),{key:0,class:"v-drawer",modelValue:o.value,"onUpdate:modelValue":h[2]||(h[2]=f=>o.value=f),title:"测试用例运行结果",direction:"btt","append-to-body":"",size:"80%"},{default:j(()=>[_(d(Te),{"model-value":a.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):M("",!0)]),_:1},8,["title","model"]))}}),H9=I({name:"DataSourcesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=D(!1),i=D(),a=z(()=>Object.values(e.value?.dataSources||{}).filter(c=>c.type==="api")),o=()=>{i.value=void 0,r.value=!0},s=c=>{i.value=c,r.value=!0},l=c=>{const{name:u,modelValue:p}=c;u==="edit"&&s(p),u==="remove"&&e.value?.removeDataSource(p.name)};return(c,u)=>(y(),V(d(se),{class:"v-data-sources-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{title:"API",class:"v-sub-panel",size:"small",plus:"",onPlus:o},{default:j(()=>[(y(!0),R(ne,null,ae(a.value,p=>(y(),V(d(Re),{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)),a.value.length?M("",!0):(y(),V(d(ze),{key:0,"image-size":50}))]),_:1}),r.value?(y(),V(F9,{key:0,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),current:d(e),context:d(t),item:i.value},null,8,["modelValue","current","context","item"])):M("",!0)]),_:1}))}}),L9=I({__name:"layout",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D();oe(()=>e.styleJson.display,c=>{t.value=c==="flex"},{immediate:!0});const r=[{label:"block-块级布局",value:"block",svg:P6},{label:"flex-弹性布局",value:"flex",svg:N6},{label:"inline-block-行内块级布局",value:"inline-block",svg:F6},{label:"inline-行内布局",value:"inline",svg:H6},{label:"invisible-不可见",value:"none",svg:L6}],i=[{label:"row-水平",value:"row",svg:Q6},{label:"row-reverse-水平",value:"row-reverse",svg:X6},{label:"column-垂直",value:"column",svg:Y6},{label:"column-reverse-垂直",value:"column-reverse",svg:G6}],a=[{label:"flex-start",value:"flex-start",svg:t4},{label:"flex-end",value:"flex-end",svg:e4},{label:"center",value:"center",svg:Z6},{label:"space-between",value:"space-between",svg:r4},{label:"space-around",value:"space-around",svg:n4}],o=[{label:"不换行",value:"nowrap"},{label:"正换行",value:"wrap"},{label:"逆换行",value:"wrap-reverse"}],s=[{label:"flex-start",value:"flex-start",svg:q6},{label:"flex-end",value:"flex-end",svg:J6},{label:"center",value:"center",svg:W6},{label:"baseline",value:"baseline",svg:U6},{label:"stretch",value:"stretch",svg:K6}],l=(c,u)=>{t.value=u==="flex",e.setStyle("display",u),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(c,u)=>(y(),V(d(fe),{title:"布局",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px"},{default:j(()=>[_(d(he),{name:"display",label:"排布",setters:{name:"TagSetter"},options:r,variable:!1,value:e.styleJson.display,onChange:l},null,8,["value"]),t.value?(y(),R(ne,{key:0},[_(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"]),_(d(he),{name:"justify-content",label:"主轴对齐",setters:{name:"TagSetter"},options:a,variable:!1,value:e.styleJson["justify-content"],onChange:e.setStyle},null,8,["value","onChange"]),_(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"]),_(d(he),{name:"flex-wrap",label:"换行模式",setters:{name:"TagSetter"},options:o,variable:!1,value:e.styleJson["flex-wrap"],onChange:e.setStyle},null,8,["value","onChange"])],64)):M("",!0)]),_:1})]),_:1}))}}),U9=I({name:"StyleWidget",__name:"JsonMode",setup(n){const{selected:e}=xt(),t=D(),r=z(()=>{const s=e.value?.model||null;return Ce(s)?null:s}),i=z(()=>JSON.stringify(r.value?.getPropValue("style")||{},null,2)),a=s=>{try{const l=JSON.parse(s);r.value?.setProp("style",l)}catch{Ae("JSON格式错误")}},o=()=>{const s=(t.value?.getEditor()).getValue();a(s),We("保存成功")};return(s,l)=>(y(),V(d(fe),{class:"v-css-widget v-sub-panel",title:"JSON",size:"small",fit:"",save:"",onSave:o},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":i.value,height:"100%",lang:"json",dark:"",onBlur:a},null,8,["model-value"])]),_:1}))}}),W9={class:"v-spacing-input"},J9=P("div",{class:"v-spacing-input__modal"},null,-1),q9={class:"v-spacing-input__content"},K9=["onClick"],G0=I({__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,a=z(()=>r.auto||r.name.includes("margin")),o=D(),s=D(r.modelValue),l=D("px");U2(o,()=>{i("close")});const c=h=>{s.value=typeof h=="number"?`${h}px`:"auto",u(s.value)},u=h=>{l.value=h==="auto"?void 0:"px"},p=()=>{s.value?(i("update:modelValue",s.value),i("submit",r.name,s.value),i("close")):Ae("请输入有效值","提示")},m=()=>{s.value=void 0,i("update:modelValue",s.value),i("submit",r.name,void 0),i("close")};return(h,f)=>(y(),R("div",W9,[J9,P("div",q9,[_(d(se),{class:"v-spacing-input__body",ref_key:"bodyRef",ref:o,direction:"column"},{default:j(()=>[_(d(se),null,{default:j(()=>[_(d(v0),{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:u},null,8,["modelValue","with-unit","unit","format"])]),_:1}),_(d(se),null,{default:j(()=>[a.value?(y(),V(d(se),{key:0,class:"v-spacing-input__auto",width:"20%"},{default:j(()=>[P("span",{onClick:f[1]||(f[1]=v=>c("auto"))},"auto")]),_:1})):M("",!0),_(d(se),{grow:"",class:"v-spacing-input__values",align:"center",wrap:"wrap"},{default:j(()=>[(y(),R(ne,null,ae(t,v=>P("span",{onClick:g=>c(v)},te(v),9,K9)),64))]),_:1})]),_:1}),_(d(se),null,{default:j(()=>[_(d(xe),{size:"small",type:"primary",round:"",style:{width:"100%"},onClick:p},{default:j(()=>[le(" 确定 ")]),_:1}),_(d(xe),{size:"small",round:"",style:{width:"100%"},onClick:m},{default:j(()=>[le(" 重置 ")]),_:1})]),_:1})]),_:1},512)])]))}}),G9={class:"spacing-wrap"},Y9={class:"spacing-max-icon"},X9=["width","height"],Q9=["d"],Z9=["d"],ew=["d"],tw=["d"],nw={id:"margin-outer"},rw=["width","height"],iw=["width","height"],aw={id:"margin-inner"},ow=["width","height"],sw=["width","height"],lw=["width","height"],cw=["d"],uw=["d"],dw=["d"],pw=["d"],hw={id:"padding-outer"},mw=["width","height"],fw=["width","height"],vw={id:"padding-inner"},gw=["width","height"],yw=["width","height"],bw={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"3 / 3 / span 3 / span 3","pointer-events":"none"}},ww=P("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," padding ",-1),xw=[ww],_w={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"1 / 1 / -1 / -1","pointer-events":"none"}},Sw=P("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," margin ",-1),kw=[Sw],_e=36,Se=24,jw=I({__name:"spacing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D(),r=D(),{width:i,height:a}=_n(t),{width:o,height:s}=_n(r),l=D(!1),c=D(),u=D(),p=()=>{l.value=!1,c.value=void 0,u.value=void 0},m=h=>{c.value=h,u.value=e.styleJson[h],l.value=!0};return(h,f)=>(y(),V(d(fe),{title:"间距",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[P("div",{class:"v-style-widget__spacing",ref_key:"container",ref:t},[P("div",G9,[P("div",Y9,[d(i)&&d(a)?(y(),R("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(i),height:d(a),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
109
109
  m1,1
110
110
  h${d(i)-1}
111
111
  l-${_e},${Se}
112
112
  h-${d(i)-2*_e}
113
- l-${_e},-${Se}z`,"data-automation-id":"margin-top-button","aria-label":"Margin top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>m("margin-top"))},null,8,Y9)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
113
+ l-${_e},-${Se}z`,"data-automation-id":"margin-top-button","aria-label":"Margin top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>m("margin-top"))},null,8,Q9)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
114
114
  m${d(i)-1},1
115
115
  v${d(a)-1}
116
116
  l-${_e},-${Se}
117
117
  v-${d(a)-2*Se}
118
- l${_e},-${Se}z`,"data-automation-id":"margin-right-button","aria-label":"Margin right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>m("margin-right"))},null,8,X9)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
118
+ l${_e},-${Se}z`,"data-automation-id":"margin-right-button","aria-label":"Margin right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>m("margin-right"))},null,8,Z9)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
119
119
  m1,${d(a)-1}
120
120
  h${d(i)-1}
121
121
  l-${_e},-${Se}
122
122
  h-${d(i)-2*_e}
123
- l-${_e},${Se}z`,"data-automation-id":"margin-bottom-button","aria-label":"Margin bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>m("margin-bottom"))},null,8,Q9)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
123
+ l-${_e},${Se}z`,"data-automation-id":"margin-bottom-button","aria-label":"Margin bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>m("margin-bottom"))},null,8,ew)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
124
124
  m1,1
125
125
  v${d(a)-1}
126
126
  l${_e},-${Se}
127
127
  v-${d(a)-2*Se}
128
- l-${_e},-${Se}z`,"data-automation-id":"margin-left-button","aria-label":"Margin left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>m("margin-left"))},null,8,Z9)])]),P("clipPath",ew,[P("rect",{x:"0",y:"0",width:d(i),height:d(a),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,tw)]),P("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(i),height:d(a),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,nw),P("clipPath",rw,[P("rect",{x:"36",y:"24",width:d(i)-2*_e+1,height:d(a)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,iw)]),P("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(i)-2*_e+1,height:d(a)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,aw)],8,G9)):R("",!0),P("div",{class:ce(["spacing-edit margin-top",{"is-setting":e.styleJson["margin-top"]}]),onClick:f[4]||(f[4]=v=>m("margin-top"))},te(e.styleJson["margin-top"]||"-"),3),P("div",{class:ce(["spacing-edit margin-right",{"is-setting":e.styleJson["margin-right"]}]),onClick:f[5]||(f[5]=v=>m("margin-right"))},te(e.styleJson["margin-right"]||"-"),3),P("div",{class:ce(["spacing-edit margin-bottom",{"is-setting":e.styleJson["margin-bottom"]}]),onClick:f[6]||(f[6]=v=>m("margin-bottom"))},te(e.styleJson["margin-bottom"]||"-"),3),P("div",{class:ce(["spacing-edit margin-left",{"is-setting":e.styleJson["margin-left"]}]),onClick:f[7]||(f[7]=v=>m("margin-left"))},te(e.styleJson["margin-left"]||"-"),3)]),P("div",{ref_key:"inner",ref:r,class:"spacing-min-icon"},[d(i)&&d(a)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(o),height:d(s),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
128
+ l-${_e},-${Se}z`,"data-automation-id":"margin-left-button","aria-label":"Margin left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>m("margin-left"))},null,8,tw)])]),P("clipPath",nw,[P("rect",{x:"0",y:"0",width:d(i),height:d(a),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,rw)]),P("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(i),height:d(a),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,iw),P("clipPath",aw,[P("rect",{x:"36",y:"24",width:d(i)-2*_e+1,height:d(a)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,ow)]),P("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(i)-2*_e+1,height:d(a)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,sw)],8,X9)):M("",!0),P("div",{class:ce(["spacing-edit margin-top",{"is-setting":e.styleJson["margin-top"]}]),onClick:f[4]||(f[4]=v=>m("margin-top"))},te(e.styleJson["margin-top"]||"-"),3),P("div",{class:ce(["spacing-edit margin-right",{"is-setting":e.styleJson["margin-right"]}]),onClick:f[5]||(f[5]=v=>m("margin-right"))},te(e.styleJson["margin-right"]||"-"),3),P("div",{class:ce(["spacing-edit margin-bottom",{"is-setting":e.styleJson["margin-bottom"]}]),onClick:f[6]||(f[6]=v=>m("margin-bottom"))},te(e.styleJson["margin-bottom"]||"-"),3),P("div",{class:ce(["spacing-edit margin-left",{"is-setting":e.styleJson["margin-left"]}]),onClick:f[7]||(f[7]=v=>m("margin-left"))},te(e.styleJson["margin-left"]||"-"),3)]),P("div",{ref_key:"inner",ref:r,class:"spacing-min-icon"},[d(i)&&d(a)?(y(),R("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(o),height:d(s),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
129
129
  m1,1
130
130
  h${d(o)-1}
131
131
  l-${_e},${Se}
132
132
  h-${d(o)-2*_e}
133
- l-${_e},-${Se}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[8]||(f[8]=v=>m("padding-top"))},null,8,sw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
133
+ l-${_e},-${Se}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[8]||(f[8]=v=>m("padding-top"))},null,8,cw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
134
134
  m${d(o)-1},1
135
135
  v${d(s)-1}
136
136
  l-${_e},-${Se}
137
137
  v-${d(s)-2*Se}
138
- l${_e},-${Se}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[9]||(f[9]=v=>m("padding-right"))},null,8,lw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
138
+ l${_e},-${Se}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[9]||(f[9]=v=>m("padding-right"))},null,8,uw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
139
139
  m1,${d(s)-1}
140
140
  h${d(o)-1}
141
141
  l-${_e},-${Se}
142
142
  h-${d(o)-2*_e}
143
- l-${_e},${Se}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[10]||(f[10]=v=>m("padding-bottom"))},null,8,cw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
143
+ l-${_e},${Se}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[10]||(f[10]=v=>m("padding-bottom"))},null,8,dw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
144
144
  m1,1
145
145
  v${d(s)-1}
146
146
  l${_e},-${Se}
147
147
  v-${d(s)-2*Se}
148
- l-${_e},-${Se}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,uw)])]),P("clipPath",dw,[P("rect",{x:"0",y:"0",width:d(o),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,pw)]),P("rect",{class:"stroke","clip-path":"url(#padding-outer)",x:"0",y:"0",width:d(o),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,hw),P("clipPath",mw,[P("rect",{x:"36",y:"24",width:d(o)-2*_e+1,height:d(s)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,fw)]),P("rect",{class:"stroke","clip-path":"url(#padding-inner)",x:"36",y:"24",width:d(o)-2*_e+1,height:d(s)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,vw)],8,ow)):R("",!0),P("div",{class:ce(["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),P("div",{class:ce(["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),P("div",{class:ce(["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),P("div",{class:ce(["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",gw,bw)),(y(),M("svg",ww,_w))]),l.value?(y(),C(G0,{key:0,name:c.value,modelValue:u.value,"onUpdate:modelValue":f[16]||(f[16]=v=>u.value=v),onClose:p,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):R("",!0)],512)]),_:1}))}}),kw=I({__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(),C(d(fe),{title:"尺寸",class:"v-sub-panel v-",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{class:"v-style-widget__sizing",size:"small","label-width":"60px",inline:""},{default:j(()=>[(y(),M(ne,null,ae(t,a=>_(d(he),{name:a.name,label:a.label,setters:{name:a.setter},options:a.options,variable:!1,value:e.styleJson[a.name],onChange:r.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1})]),_:1}))}}),jw={class:"v-style-widget__positioning"},Cw={class:"spacing-wrap"},Vw=["width","height"],$w=["d"],Ew=["d"],Aw=["d"],Tw=["d"],Bw={id:"margin-outer"},zw=["width","height"],Dw=["width","height"],Ow={id:"margin-inner"},Iw=["width","height"],Rw=["width","height"],Ze=36,et=24,Mw=I({__name:"positioning",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D(),{width:r,height:i}=_n(t),a=D(!1),o=D(),s=D(),l=[{label:"静态",value:"static"},{label:"相对",value:"relative"},{label:"绝对",value:"absolute"},{label:"固定",value:"fixed"},{label:"粘性",value:"sticky"}],c=[{label:"左上",svg:d4,value:"0% auto auto 0%"},{label:"右上",svg:p4,value:"0% 0% auto auto"},{label:"左下",svg:o4,value:"auto auto 0% 0%"},{label:"右下",svg:s4,value:"auto 0% 0% auto"},{label:"左",svg:c4,value:"0% auto 0% 0%"},{label:"右",svg:u4,value:"0% 0% 0% auto"},{label:"上",svg:h4,value:"auto 0% 0% 0%"},{label:"下",svg:l4,value:"0% 0% auto 0%"},{label:"填充",svg:a4,value:"0% 0% 0% 0%"}],u=z(()=>(e.styleJson.inset||"").split(" ")),p=h=>{o.value=h,s.value=e.styleJson[h],a.value=!0},m=()=>{a.value=!1,o.value=void 0,s.value=void 0};return(h,f)=>(y(),C(d(fe),{title:"定位",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[P("div",jw,[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(he),{name:"position",label:"定位",setters:{name:"SelectSetter"},options:l,variable:!1,value:e.styleJson.position,onChange:e.setStyle},null,8,["value","onChange"]),_(d(he),{name:"inset",label:" ",setters:{name:"TagSetter"},options:c,variable:!1,value:e.styleJson.inset,onChange:e.setStyle},null,8,["value","onChange"]),_(d(za),{label:" "},{default:j(()=>[P("div",Cw,[P("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"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
148
+ l-${_e},-${Se}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,pw)])]),P("clipPath",hw,[P("rect",{x:"0",y:"0",width:d(o),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,mw)]),P("rect",{class:"stroke","clip-path":"url(#padding-outer)",x:"0",y:"0",width:d(o),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,fw),P("clipPath",vw,[P("rect",{x:"36",y:"24",width:d(o)-2*_e+1,height:d(s)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,gw)]),P("rect",{class:"stroke","clip-path":"url(#padding-inner)",x:"36",y:"24",width:d(o)-2*_e+1,height:d(s)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,yw)],8,lw)):M("",!0),P("div",{class:ce(["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),P("div",{class:ce(["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),P("div",{class:ce(["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),P("div",{class:ce(["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(),R("svg",bw,xw)),(y(),R("svg",_w,kw))]),l.value?(y(),V(G0,{key:0,name:c.value,modelValue:u.value,"onUpdate:modelValue":f[16]||(f[16]=v=>u.value=v),onClose:p,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):M("",!0)],512)]),_:1}))}}),Vw=I({__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(fe),{title:"尺寸",class:"v-sub-panel v-",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{class:"v-style-widget__sizing",size:"small","label-width":"60px",inline:""},{default:j(()=>[(y(),R(ne,null,ae(t,a=>_(d(he),{name:a.name,label:a.label,setters:{name:a.setter},options:a.options,variable:!1,value:e.styleJson[a.name],onChange:r.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1})]),_:1}))}}),Cw={class:"v-style-widget__positioning"},Ew={class:"spacing-wrap"},$w=["width","height"],Aw=["d"],Tw=["d"],Bw=["d"],zw=["d"],Dw={id:"margin-outer"},Ow=["width","height"],Iw=["width","height"],Mw={id:"margin-inner"},Rw=["width","height"],Pw=["width","height"],Ze=36,et=24,Nw=I({__name:"positioning",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D(),{width:r,height:i}=_n(t),a=D(!1),o=D(),s=D(),l=[{label:"静态",value:"static"},{label:"相对",value:"relative"},{label:"绝对",value:"absolute"},{label:"固定",value:"fixed"},{label:"粘性",value:"sticky"}],c=[{label:"左上",svg:p4,value:"0% auto auto 0%"},{label:"右上",svg:h4,value:"0% 0% auto auto"},{label:"左下",svg:s4,value:"auto auto 0% 0%"},{label:"右下",svg:l4,value:"auto 0% 0% auto"},{label:"左",svg:u4,value:"0% auto 0% 0%"},{label:"右",svg:d4,value:"0% 0% 0% auto"},{label:"上",svg:m4,value:"auto 0% 0% 0%"},{label:"下",svg:c4,value:"0% 0% auto 0%"},{label:"填充",svg:o4,value:"0% 0% 0% 0%"}],u=z(()=>(e.styleJson.inset||"").split(" ")),p=h=>{o.value=h,s.value=e.styleJson[h],a.value=!0},m=()=>{a.value=!1,o.value=void 0,s.value=void 0};return(h,f)=>(y(),V(d(fe),{title:"定位",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[P("div",Cw,[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(he),{name:"position",label:"定位",setters:{name:"SelectSetter"},options:l,variable:!1,value:e.styleJson.position,onChange:e.setStyle},null,8,["value","onChange"]),_(d(he),{name:"inset",label:" ",setters:{name:"TagSetter"},options:c,variable:!1,value:e.styleJson.inset,onChange:e.setStyle},null,8,["value","onChange"]),_(d(za),{label:" "},{default:j(()=>[P("div",Ew,[P("div",{ref_key:"inner",ref:t,class:"spacing-min-icon"},[d(r)&&d(r)?(y(),R("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(r),height:d(i),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
149
149
  m1,1
150
150
  h${d(r)-1}
151
151
  l-${Ze},${et}
152
152
  h-${d(r)-2*Ze}
153
- l-${Ze},-${et}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>p("top"))},null,8,$w)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
153
+ l-${Ze},-${et}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>p("top"))},null,8,Aw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
154
154
  m${d(r)-1},1
155
155
  v${d(i)-1}
156
156
  l-${Ze},-${et}
157
157
  v-${d(i)-2*et}
158
- l${Ze},-${et}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>p("right"))},null,8,Ew)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
158
+ l${Ze},-${et}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>p("right"))},null,8,Tw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
159
159
  m1,${d(i)-1}
160
160
  h${d(r)-1}
161
161
  l-${Ze},-${et}
162
162
  h-${d(r)-2*Ze}
163
- l-${Ze},${et}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>p("bottom"))},null,8,Aw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
163
+ l-${Ze},${et}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>p("bottom"))},null,8,Bw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
164
164
  m1,1
165
165
  v${d(i)-1}
166
166
  l${Ze},-${et}
167
167
  v-${d(i)-2*et}
168
- l-${Ze},-${et}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,Tw)])]),P("clipPath",Bw,[P("rect",{x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,zw)]),P("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,Dw),P("clipPath",Ow,[P("rect",{x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*et+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Iw)]),P("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*et+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Rw)],8,Vw)):R("",!0),P("div",{class:ce(["spacing-edit padding-top",{"is-setting":e.styleJson.top}]),onClick:f[4]||(f[4]=v=>p("top"))},te(e.styleJson.top||u.value[0]||"-"),3),P("div",{class:ce(["spacing-edit padding-right",{"is-setting":e.styleJson.right}]),onClick:f[5]||(f[5]=v=>p("right"))},te(e.styleJson.right||u.value[1]||"-"),3),P("div",{class:ce(["spacing-edit padding-bottom",{"is-setting":e.styleJson.bottom}]),onClick:f[6]||(f[6]=v=>p("bottom"))},te(e.styleJson.bottom||u.value[2]||"-"),3),P("div",{class:ce(["spacing-edit padding-left",{"is-setting":e.styleJson.left}]),onClick:f[7]||(f[7]=v=>p("left"))},te(e.styleJson.left||u.value[3]||"-"),3)],512),a.value?(y(),C(G0,{key:0,auto:"",name:o.value,modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=v=>s.value=v),onClose:m,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):R("",!0)])]),_:1}),_(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}))}}),Pw=I({__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:v4},{label:"中",value:"center",svg:m4},{label:"右",value:"right",svg:g4},{label:"两端",value:"justify",svg:f4}],i=[{label:"正常",value:"normal",svg:i4},{label:"斜体",value:"italic",svg:r4}],a=[{label:"无",value:"none",svg:Iu},{label:"下划线",value:"underline",svg:w4},{label:"删除线",value:"line-through",svg:b4},{label:"上划线",value:"overline",svg:y4}];return(o,s)=>(y(),C(d(fe),{title:"文本",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{class:"v-style-widget__texting",size:"small","label-width":"60px",inline:""},{default:j(()=>[(y(),M(ne,null,ae(t,l=>_(d(he),{name:l.name,label:l.label,setters:{name:l.setter},options:l.options,variable:!1,value:e.styleJson[l.name],onChange:o.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1}),_(d(qe),{size:"small","label-width":"60px"},{default:j(()=>[_(d(he),{name:"color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson.color,onChange:o.setStyle},null,8,["value","onChange"]),_(d(he),{name:"text-align",label:"对齐",setters:{name:"TagSetter"},variable:!1,options:r,value:e.styleJson["text-align"],onChange:o.setStyle},null,8,["value","onChange"]),_(d(he),{name:"font-style",label:"风格",setters:{name:"TagSetter"},variable:!1,options:i,value:e.styleJson["font-style"],onChange:o.setStyle},null,8,["value","onChange"]),_(d(he),{name:"text-decoration",label:"修饰",setters:{name:"TagSetter"},variable:!1,options:a,value:e.styleJson["text-decoration"],onChange:o.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),Nw=I({__name:"backgound",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=(l,c)=>{c?e.setStyle("background-image",`url(${c})`):e.setStyle("background-image",void 0)},r=l=>{const c=/^url\(([\w\W]+)\)$/;return l?.match(c)?.[1]},i=[{label:"重复",value:"repeat",svg:_4},{label:"水平重复",value:"repeat-x",svg:x4},{label:"垂直重复",value:"repeat-y",svg:S4},{label:"不重复",value:"no-repeat",svg:z6}],a=[{label:"固定",value:"fixed"},{label:"滚动",value:"scroll"}],o=[{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,c)=>(y(),C(d(fe),{title:"背景",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(he),{name:"background-image",label:"图片",setters:{name:"ImageSetter"},variable:!1,value:r(e.styleJson["background-image"]),onChange:t},null,8,["value"]),_(d(he),{name:"background-color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson["background-color"],onChange:e.setStyle},null,8,["value","onChange"]),_(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"]),_(d(he),{name:"background-attachment",label:"固定",setters:{name:"RadioSetter"},variable:!1,value:e.styleJson["background-attachment"],options:a,onChange:e.setStyle},null,8,["value","onChange"]),_(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"]),_(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"]),_(d(he),{name:"background-clip",label:"裁剪",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-clip"],options:o,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),Fw=I({__name:"border",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D("border"),r=[{label:"全边框",svg:j6,value:"border"},{label:"左边框",svg:V6,value:"border-left"},{label:"上边框",svg:B6,value:"border-top"},{label:"下边框",svg:C6,value:"border-bottom"},{label:"右边框",svg:$6,value:"border-right"}],i=[{label:"无",value:"none",svg:Iu},{label:"实线",value:"solid",svg:T6},{label:"虚线",value:"dashed",svg:E6},{label:"点线",value:"dotted",svg:A6}],a=(o,s)=>{t.value=s};return(o,s)=>(y(),C(d(fe),{title:"边框",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(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"]),_(d(he),{name:"borders",label:"边框",setters:{name:"TagSetter"},variable:!1,options:r,value:t.value,onChange:a},null,8,["value"]),t.value?(y(),M(ne,{key:0},[(y(),C(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(),C(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(),C(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)):R("",!0)]),_:1})]),_:1}))}}),Hw=I({__name:"effect",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{label:"自动",value:"auto",svg:D6},{label:"Pointer",value:"pointer",svg:R6},{label:"NotAllowed",value:"not-allowed",svg:I6},{label:"无",value:"none",svg:O6}],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=(o,s)=>{e.setStyle("opacity",s!==void 0?(Number(s)||0)/100:void 0)},a=()=>Number(e.styleJson.opactiy||0)*100;return(o,s)=>(y(),C(d(fe),{title:"效果",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(he),{name:"opacity",label:"透明度",setters:{name:"SliderSetter"},variable:!1,value:a(),onChange:i},null,8,["value"]),_(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"]),_(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}))}}),Lw=I({name:"StyleWidget",__name:"index",props:{isStyleCodeMode:{type:Boolean}},setup(n){const e=n,{selected:t}=xt(),r=z(()=>{const o=t.value?.model||null;return Ve(o)?null:o}),i=z(()=>r.value?.getPropValue("style")||{}),a=(o,s)=>{const l=r.value?.getPropValue("style")||{};s!==void 0?l[o]=s:delete l[o],r.value?.setProp("style",l)};return(o,s)=>e.isStyleCodeMode?(y(),C(H9,{key:0})):(y(),C(d(se),{key:`widget-style-${r.value?.id}`,class:"v-style-widget",direction:"column",fit:""},{default:j(()=>[(y(),C(F9,{key:`Layout${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(Sw,{key:`Spacing${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(kw,{key:`Sizing${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(Mw,{key:`Positioning${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(Pw,{key:`Texting${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(Nw,{key:`Backgound${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(Fw,{key:`Border${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),C(Hw,{key:`Effect${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"]))]),_:1}))}}),Uw=["src"],Ww=I({name:"PreviewerWidget",__name:"index",props:{path:{type:Function}},setup(n,{expose:e}){const t=n,r=D(),i=D(Symbol()),{current:a,engine:o}=Ie(),{width:s,height:l}=_n(r),c=z(()=>a.value&&t.path?t.path(a.value):null),u=z(()=>o.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},[_(d(K0),{mode:u.value,width:d(s),height:d(l)},{default:j(()=>[c.value?(y(),M("iframe",{key:0,ref:"iframe",frameborder:"0",src:c.value},null,8,Uw)):R("",!0)]),_:1},8,["mode","width","height"])]))}}),Jw=I({name:"NodePathWidget",inheritAttrs:!1,__name:"index",setup(n){const{selected:e,designer:t}=xt(),r=z(()=>(e.value?.path||[]).slice(0).reverse()),i=o=>{t.value?.setSelected(o)},a=o=>{t.value?.setHover(o)};return(o,s)=>d(e)?(y(),C(d(_2),{key:0,class:"v-nodepath-widget","separator-icon":d($l)},{default:j(()=>[(y(!0),M(ne,null,ae(r.value,l=>(y(),C(d(x2),{onClick:c=>i(l),onMouseover:c=>a(l)},{default:j(()=>[le(te(l.name),1)]),_:2},1032,["onClick","onMouseover"]))),256))]),_:1},8,["separator-icon"])):R("",!0)}}),qw=I({name:"SchemaWidget",__name:"index",setup(n){const{current:e}=Ie(),t=D(),r=z(()=>JSON.stringify(e.value?.toDsl()||{},null,2)),i=z(()=>e.value?e.value.name:""),a=async()=>{const o=(t.value?.getEditor()).getValue();if(o&&await Dn("手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"))try{const s=JSON.parse(o);e.value?.update(s),We("保存成功")}catch(s){Ae(s?.message)}};return(o,s)=>(y(),C(d(fe),{class:"v-schema-widget",title:i.value,subtitle:"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",size:"small",fit:"",save:"",onSave:a},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"json",dark:""},null,8,["model-value"])]),_:1},8,["title"]))}}),Kw=I({name:"SchemaWidget",__name:"index",setup(n){const{current:e,engine:t}=Ie(),r=D(),i=D(""),a=z(()=>e.value?`$vtj/vue/${e.value.id}.vue`:""),o=z(()=>e.value?e.value.name:"");return oe(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(),C(d(fe),{class:"v-raw-widget",title:o.value,subtitle:a.value,size:"small",fit:""},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:r,"model-value":i.value,height:"100%",lang:"html",dark:"",readonly:""},null,8,["model-value"])]),_:1},8,["title","subtitle"]))}}),Gw=["src"],Yw=I({name:"DocsWidget",__name:"index",props:{url:{default:"https://newgateway.gitee.io/vtj/help/index.html"}},setup(n){const e=n,t=D();let r=null;Ta(()=>{r||(r=Sl.service({target:t.value?.$el}))}),Ba(()=>{i(),r=null});const i=()=>{r?.close()};return(a,o)=>(y(),C(d(fe),{class:"v-docs-widget",size:"small",fit:"",body:{padding:!1},header:!1,ref_key:"panel",ref:t},{default:j(()=>[P("iframe",{ref:"frame",src:e.url,onLoad:i},null,40,Gw)]),_:1},512))}}),Y0="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==",Xw={class:"v-about-widget"},Qw={class:"v-about-widget__logo"},Zw=["src"],ex=P("div",{class:"v-about-widget__name"},"VTJ.PRO",-1),tx={class:"v-about-widget__version"},nx=I({name:"AboutWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",Xw,[P("div",Qw,[P("img",{src:d(Y0)},null,8,Zw)]),ex,P("div",tx,"版本:"+te(d(o7)),1)]))}}),rx=I({name:"ProjectConfigWidget",__name:"index",setup(n){const{project:e}=sn(),t=r=>{e.value?.setConfig(r)};return(r,i)=>(y(),C(d(fe),{class:"v-project-config-widget",title:"项目配置"},{default:j(()=>[d(e)?(y(),C(d(li),{key:0,footer:!1,size:"small","label-position":"top",model:d(e).config,onChange:t},{default:j(()=>[_(d(ee),{label:"站点名称",name:"title"}),_(d(ee),{label:"Logo",name:"logo",editor:To,props:{attachment:{accept:".png,.jpg,.jpeg"}}},null,8,["props"]),_(d(ee),{label:"主题切换",name:"themeSwitchable",editor:"switch"}),_(d(ee),{label:"模拟数据",name:"mock",editor:"switch"})]),_:1},8,["model"])):R("",!0)]),_:1}))}}),ye={Logo:$7,EmptyWidget:A7,Switcher:z7,Toolbar:O7,Actions:M7,Pages:t9,Blocks:r9,Components:s9,Outline:l9,History:c9,Apis:g9,Deps:y9,Designer:x9,Scripts:V9,Properties:$9,Events:T9,Css:B9,Directives:z9,Defined:M9,DataSources:N9,Style:Lw,Previewer:Ww,NodePath:Jw,Schema:qw,Raw:Kw,Docs:Yw,About:nx,ProjectConfig:rx},ix=[{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:Tu,label:"页面管理"},{name:"Blocks",region:"Apps",component:ye.Blocks,type:"app",openType:"panel",icon:Du,label:"区块管理"},{name:"Components",region:"Apps",component:ye.Components,type:"app",openType:"panel",icon:Ou,label:"组件库"},{name:"Outline",region:"Apps",component:ye.Outline,type:"app",openType:"panel",icon:Eu,label:"大纲树"},{name:"History",region:"Apps",component:ye.History,type:"app",openType:"panel",icon:Bu,label:"历史记录"},{name:"Apis",region:"Apps",component:ye.Apis,type:"app",openType:"panel",icon:hu,label:"API管理"},{name:"Deps",region:"Apps",component:ye.Deps,type:"app",openType:"panel",icon:ku,label:"依赖管理"},{name:"ProjectConfig",region:"Apps",component:ye.ProjectConfig,type:"app",openType:"panel",icon:lo,label:"项目配置"},{name:"About",region:"Apps",component:ye.About,type:"app",openType:"dialog",icon:Vu,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:ot.Block,label:"设置"},{name:"Css",region:"Settings",component:ye.Css,type:"tab",group:ot.Block,label:"CSS"},{name:"DataSources",region:"Settings",component:ye.DataSources,type:"tab",group:ot.Block,label:"数据源"},{name:"Defined",region:"Settings",component:ye.Defined,type:"tab",group:ot.Block,label:"定义"},{name:"Properties",region:"Settings",component:ye.Properties,type:"tab",group:ot.Node,label:"属性"},{name:"Style",region:"Settings",component:ye.Style,type:"tab",group:ot.Node,label:"样式"},{name:"Events",region:"Settings",component:ye.Events,type:"tab",group:ot.Node,label:"事件"},{name:"Directives",region:"Settings",component:ye.Directives,type:"tab",group:ot.Node,label:"指令"},{name:"NodePath",region:"Status",component:ye.NodePath}],ax=[{package:"vue",version:"latest",library:"Vue",urls:["@vtj/materials/deps/vue/vue.global.prod.js"],assetsLibrary:Zc,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:eu,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",localeLibrary:"ElementPlusLocaleZhCn",urls:["@vtj/materials/deps/element-plus/dark/css-vars.css","@vtj/materials/deps/element-plus/index.css","@vtj/materials/deps/element-plus/zh-cn.js","@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}],ox=[{id:"html",category:"HTML"},{id:"elements",category:"特殊元素"},{id:"components",category:"内置组件"}],sx=[{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:Y0,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:"默认插槽内容"}}],lx=[...sx,{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:"/"}}}],cx=[{name:oa,version:"latest",label:"内置",library:oa,order:0,categories:ox,components:lx}],ux=I({name:"StringSetter",__name:"string",setup(n){return(e,t)=>(y(),C(d(Ge),me({clearable:""},e.$attrs),null,16))}}),dx=I({name:"BooleanSetter",__name:"boolean",setup(n){return(e,t)=>(y(),C(d(Ia),me(e.$attrs,{"model-value":!!e.$attrs.modelValue}),null,16,["model-value"]))}}),px="{{",hx="}}",mx=I({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,a=l=>De(l,r.context,!0),o=D(t(r.modelValue).value);oe(()=>r.modelValue,l=>{o.value=t(l).value},{immediate:!0});const s=l=>{const c={type:"JSExpression",value:l};a(c)&&i("change",c)};return(l,c)=>(y(),C(d(Ge),{class:"v-expression-setter",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),onChange:s},{prefix:j(()=>[le(te(px))]),suffix:j(()=>[le(te(hx))]),_:1},8,["modelValue"]))}}),fx=I({name:"SelectSetter",__name:"select",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),C(d(Ra),me({clearable:""},t.$attrs),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,i=>(y(),C(d(Ma),me({key:i.label},i),null,16))),128))]),_:1},16))}}),vx=I({name:"NumberSetter",__name:"number",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>Pe(t.modelValue)?void 0:Number(t.modelValue||0)),a=o=>{r("change",o)};return(o,s)=>(y(),C(d(xl),me({class:"v-number-setter","controls-position":"right","model-value":i.value},o.$attrs,{onChange:a}),null,16,["model-value"]))}}),gx=I({name:"ColorSetter",__name:"color",setup(n){return(e,t)=>(y(),C(d(E2),kt(Nt(e.$attrs)),null,16))}}),yx=I({name:"JsonSetter",__name:"json",props:{modelValue:{default:void 0},type:{default:"JSON"}},emits:["change"],setup(n,{emit:e}){const t=n,r=D(),i=D(typeof t.modelValue=="object"?JSON.stringify(t.modelValue,null,2):void 0),a=z(()=>!!i.value),o=D(!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"&&!Ya(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,nn.error({title:"代码错误",message:f?.message||f})}return h},c=()=>{const m=r.value?.getEditor();if(m){const h=m.getValue();l(h)&&(i.value=h,s("change",JSON.parse(h)),o.value=!1)}},u=()=>{i.value="",s("change",void 0),o.value=!1},p=()=>{o.value=!0};return(m,h)=>(y(),M("div",{class:ce(["v-json-setter",{"is-active":a.value}])},[_(d(Ge),me({readonly:"",onFocus:p,"model-value":t.type,"suffix-icon":d(Fa)},m.$attrs),null,16,["model-value","suffix-icon"]),o.value?(y(),C(d(Ct),{key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),title:t.type,width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:c,onClear:u},{extra:j(()=>[_(d(xe),{type:"warning",onClick:u,size:"default"},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Te),{ref_key:"codeEditor",ref:r,height:"100%",lang:"json",dark:"","model-value":i.value},null,8,["model-value"])]),_:1},8,["modelValue","title"])):R("",!0)],2))}}),bx=I({name:"FunctionSetter",__name:"function",props:{modelValue:{default:()=>({type:"JSFunction",value:""})}},emits:["change"],setup(n,{emit:e}){const t=n,r=D(),i=D(t.modelValue.value),a=D(!1),o=z(()=>!!i.value),s=e,l=()=>{const p=r.value?.getEditor();if(p){const m=p.getValue(),h={type:"JSFunction",value:m};De(h,{})&&(i.value=m,s("change",h),a.value=!1)}},c=()=>{i.value="",s("change",void 0),a.value=!1},u=()=>{a.value=!0};return(p,m)=>(y(),M("div",{class:ce(["v-function-setter",{"is-active":o.value}])},[_(d(Ge),me({readonly:"",onFocus:u,"model-value":"JSFunction","suffix-icon":d(Fa)},p.$attrs),null,16,["suffix-icon"]),a.value?(y(),C(d(Ct),{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=h=>a.value=h),title:"JSFunction",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:l,onClear:c},{extra:j(()=>[_(d(xe),{type:"warning",onClick:c,size:"default"},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Te),{ref_key:"codeEditor",ref:r,height:"100%","model-value":i.value,dark:""},null,8,["model-value"])]),_:1},8,["modelValue"])):R("",!0)],2))}}),wx=I({name:"RadioSetter",__name:"radio",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),C(d(Pa),me({class:"v-radio-setter",size:"small"},t.$attrs),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,i=>(y(),C(d(Jn),{label:i.label,value:i.value,title:i.label},{default:j(()=>[i.svg?(y(),C(d(at),{key:0,src:i.svg},null,8,["src"])):(y(),M(ne,{key:1},[le(te(i.label),1)],64))]),_:2},1032,["label","value","title"]))),256))]),_:1},16))}}),xx=["label","title","onClick"],_x=I({name:"TagSetter",__name:"tag",props:{options:{default:()=>[]},modelValue:{}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,i=a=>{a.value===t.modelValue?(r("update:modelValue",void 0),r("change",void 0)):(r("update:modelValue",a.value),r("change",a.value))};return(a,o)=>(y(),M("div",me({class:"v-tag-setter",size:"small"},a.$attrs),[(y(!0),M(ne,null,ae(t.options,s=>(y(),M("span",{label:s.value,title:s.label,class:ce({"is-active":t.modelValue===s.value}),onClick:l=>i(s)},[s.svg?(y(),C(d(at),{key:0,src:s.svg,size:16},null,8,["src"])):(y(),M(ne,{key:1},[le(te(s.label),1)],64))],10,xx))),256))],16))}}),X0=I({name:"SizeSetter",__name:"size",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=D(!0),a=z(()=>i.value?"px":void 0),o=D(t.modelValue),s=l=>{i.value=!!Number(l)};return oe(o,l=>{r("change",l)}),oe(()=>t.modelValue,l=>{l&&(i.value=l.endsWith("px"),o.value=l)},{immediate:!0}),(l,c)=>(y(),C(d(v0),me({clearable:"",unit:a.value,"with-unit":!!a.value,modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),onChange:s},l.$attrs),null,16,["unit","with-unit","modelValue"]))}}),Sx={class:"v-image-setter__plus"},kx=I({name:"ImageSetter",__name:"image",props:{modelValue:{},limit:{default:1}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D([]),a=z(()=>i.value.length<t.limit),o=l=>l.type.includes("image")?(U8(l).then(c=>{i.value=[{name:l.name,url:c}]}),!1):(xn.error("只能上传图片"),!1),s=()=>{i.value=[]};return oe(()=>t.modelValue,l=>{i.value=l?[{name:"",url:l}]:[]},{immediate:!0}),oe(i,()=>{const l=i.value[0]?.url;r("change",l),r("update:modelValue",l)}),(l,c)=>(y(),C(d(wl),me({class:["v-image-setter",{"v-image-setter--addable":a.value}],"list-type":"picture-card",limit:1,action:"#","file-list":i.value,"onUpdate:fileList":c[0]||(c[0]=u=>i.value=u),"before-upload":o,"auto-upload":!0,"on-remove":s},l.$attrs),{default:j(()=>[P("span",Sx,[_(d(at),{icon:d(Vl)},null,8,["icon"])])]),_:1},16,["class","file-list"]))}}),jx={class:"v-section-setter"},Cx=I({name:"SectionSetter",__name:"section",props:{modelValue:{},sections:{default:4}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=D(new Array(t.sections).fill(""));oe(()=>t.modelValue,o=>{i.value=o?o.split(" "):new Array(t.sections).fill("")},{immediate:!0});const a=()=>{r("change",i.value.join(" ").trim())};return(o,s)=>(y(),M("div",jx,[(y(!0),M(ne,null,ae(t.sections,l=>(y(),C(X0,{name:l-1,modelValue:i.value[l-1],"onUpdate:modelValue":c=>i.value[l-1]=c,onChange:a,class:"v-section-setter__item"},null,8,["name","modelValue","onUpdate:modelValue"]))),256))]))}}),Vx={class:"v-slider-setter"},$x=I({name:"SliderSetter",__name:"slider",props:{modelValue:{default:void 0}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D();oe(()=>t.modelValue,o=>{i.value=o},{immediate:!0}),oe(i,o=>{r("change",o),r("update:modelValue",o)});const a=()=>{i.value=void 0,r("change",void 0),r("update:modelValue",void 0)};return(o,s)=>(y(),M("div",Vx,[_(d(_l),me({size:"small"},o.$attrs,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l)}),null,16,["modelValue"]),_(d(at),{onClick:a,class:"v-slider-setter__close",size:16,icon:d(R2)},null,8,["icon"])]))}}),je={StringSetter:ux,BooleanSetter:dx,ExpressionSetter:mx,SelectSetter:fx,NumberSetter:vx,ColorSetter:gx,IconSetter:q0,JsonSetter:yx,FunctionSetter:bx,RadioSetter:wx,TagSetter:_x,SizeSetter:X0,ImageSetter:kx,SectionSetter:Cx,SliderSetter:$x,FileSetter:To},Ex={name:"StringSetter",component:je.StringSetter,type:"String"},Ax=[{name:"InputSetter",component:je.StringSetter,type:"String"},{name:"StringSetter",component:je.StringSetter,type:"String"},{name:"BooleanSetter",component:je.BooleanSetter,type:"Boolean"},{name:"ExpressionSetter",component:je.ExpressionSetter,type:"Object"},{name:"SelectSetter",component:je.SelectSetter,type:"String"},{name:"NumberSetter",component:je.NumberSetter,type:"Number"},{name:"ColorSetter",component:je.ColorSetter,type:"String"},{name:"IconSetter",component:je.IconSetter,type:"String"},{name:"ObjectSetter",component:je.JsonSetter,type:"Object",props:{type:"Object"}},{name:"ArraySetter",component:je.JsonSetter,type:"Array",props:{type:"Array"}},{name:"JsonSetter",component:je.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"JSONSetter",component:je.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"FunctionSetter",component:je.FunctionSetter,type:"Function"},{name:"RadioSetter",component:je.RadioSetter,type:"String"},{name:"TagSetter",component:je.TagSetter,type:"String"},{name:"SizeSetter",component:je.SizeSetter,type:"String"},{name:"ImageSetter",component:je.ImageSetter,type:"String"},{name:"SectionSetter",component:je.SectionSetter,type:"String"},{name:"SliderSetter",component:je.SliderSetter,type:"Number"},{name:"RangeSetter",component:je.SliderSetter,type:"Array",props:{range:!0}},{name:"FileSetter",component:je.FileSetter,type:"String",props:{multiple:!1}},{name:"FilesSetter",component:je.FileSetter,type:"String",props:{multiple:!0}}];class Tx{widgets={};constructor(){this.widgets=this.createWidgets()}createWidgets(){const e={};for(const t of ix)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){Ye.warn(`widget '${e}' is not found`);return}ht(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 Q0=new Tx;class Bx{constructor(e=ax){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(a=>a.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 zx=new Bx;class Dx{setters={};defaultSetter=Ex;constructor(){this.setters=this.createSetters()}createSetters(){const e={};for(const t of Ax)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){Ye.warn(`setter '${e}' is not found`);return}ht(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 Pr=new Dx;function Ox(n){return new Promise((e,t)=>{const r=yl(e9,{slots:n,onClose:()=>{r.unmount(),t(null)},onSubmit:i=>{r.unmount(),e(i)}});r.mount(document.createElement("div"))})}class Ix{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=Ui(null);dropping=Ui(null);selected=D(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")),K.on(nr,this.bind(this.onActiveChange,"onActiveChange")),K.on(ke,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")),K.off(nr,this.bind(this.onActiveChange,"onActiveChange")),K.off(ke,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,a=await r.getBlockMaterial(e.from)||i.get(e.name);if(console.log("targetDesc",a),!a?.slots)return;const o=(a?.slots||["default"]).map(s=>typeof s=="string"?{name:s,params:[]}:{name:s.name,params:s.params||[]});return o.length===0?void 0:o.length===1?o[0]:await Ox(o).catch(()=>null)}async onDrop(e){e.preventDefault();const{engine:t,dragging:r,dropping:i}=this,a=t.current.value,o=this.getHelper(e);if(!a||!r||!i.value||!o)return;const s=o.model,l=i.value.type;if(!await this.allowDrop(s,l))return;const c=this.createNodeDsl(r),u=new Wr(c);if(Ve(s))a.addNode(u,void 0,l);else{const p=await this.getDropSlot(l==="inner"?s:s.parent);if(p===null){this.dropping.value=null;return}u.slot=p,a.addNode(u,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 Wr.nodes[t]||null}getDropType(e,t,r){const{left:i,top:a,width:o,height:s}=e;return t>=i&&t<=i+o*.2?"left":t>=i+o*.8&&t<=i+o?"right":r>=a&&r<=a+s*.2?"top":r>=a+s*.8&&r<=a+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,a={...r,name:t,from:i||e.package};return this.setDslFrom(a),a}getElmenetByModel(e){return!this.document||!e?null:Ve(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 a=r.getBoundingClientRect(),o=this.getDropType(a,e.clientX,e.clientY),s=this.getNodePath(t);return{el:r,model:i,rect:a,type:o,path:s}}cleanHelper(){this.setSelected(null),this.setHover(null),this.setDragging(null),this.setDropping(null)}async updateRect(){await Gc(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 pt(),e){const t=this.getElmenetByModel(e);if(!t)return;const r=t.getBoundingClientRect(),i=Ve(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 pt(),e){const t=this.getElmenetByModel(e)||this.document?.createElement("span");if(!t)return;const r=t.getBoundingClientRect(),i=Ve(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 pt(),e){const r=this.getElmenetByModel(e);if(!r)return;const i=r.getBoundingClientRect(),a=Ve(e)?[]:this.findPathByNode(e);this.dropping.value={el:r,model:e,rect:i,type:t,path:a}}else this.dropping.value=null}async allowDrop(e,t="inner"){const{dragging:r,engine:i}=this,a=i.current.value;if(!r||!a)return!1;if(Ve(e))return!0;const o=i.assets.componentMap,s=t!=="inner"&&e.parent||e,l=await i.assets.getBlockMaterial(s.from)||o.get(s.name);if(!l)return!1;const{parentIncludes:c=!0,name:u}=r,{childIncludes:p=!0}=l,m=c===!0||Array.isArray(c)&&c.includes(s.name),h=p===!0||Array.isArray(p)&&p.includes(u);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 Rx{constructor(e,t,r,i=null){this.env=e,this.service=t,this.provider=r,this.designer=i,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,locales:a}=this.env;if(i){const s=i.createRouter({history:i.createWebHashHistory(),routes:[]});e.use(s)}const o=Object.entries(t);Object.assign(e.config.globalProperties,r),e.config.errorHandler=(s,l,c)=>{const u=l?.$options.name,p=s?.message||s?.msg||"未知错误",m=`[ ${u} ] ${p}`;console.error({err:s,instance:l,info:c}),nn.error({title:"运行错误",message:m})},o.forEach(([s,l])=>{if(typeof l=="function"||typeof l.install=="function"){let c={};const u=a[s];u&&(c.locale=u),e?.use(l,c)}})}render(e){const{window:t,container:r,library:i,Vue:a,components:o,apis:s}=this.env,l=t.document.createElement("div");l.id="app",r.appendChild(l),this.dsl=a.reactive(e.toDsl());const{renderer:c,context:u}=this.provider.createDslRenderer(this.dsl,{window:t,mode:Je.Design,Vue:a,components:o,apis:s,libs:i});this.app=a.createApp(c),this.install(this.app);try{this.app.mount(l)}catch(p){Ae(p.message||"未知错误","运行时错误"),console.error(p)}this.context=u,K.on(ke,this.nodeChange),K.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,K.off(ke,this.nodeChange),K.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 a=r[i];if(a.id===e.id){r.splice(i,1,e);return}else this.updateChild(e,a)}}__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 Mx extends ro{contentWindow=null;renderer=null;designer=Ui(null);engine;materialPath;constructor(e){super();const{engine:t,materialPath:r}=e;this.engine=t,this.materialPath=r,oe(this.engine.current,()=>{this.refresh()})}init(e,t,r,i){oe([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 Ix(this.engine,this.contentWindow,t)))},{immediate:!0,deep:!0})}setup(e,t){const r=e.contentWindow;if(!r){Ye.warn("Simulator contentWindow is null");return}r.__simulator__=this;const i=r.document;r.CKEDITOR_VERSION=void 0,this.contentWindow=r;const{scripts:a,css:o,materials:s,libraryExports:l,materialExports:c,materialMapLibrary:u,libraryLocaleMap:p}=D0(t,this.materialPath);i.open(),i.write(`
168
+ l-${Ze},-${et}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,zw)])]),P("clipPath",Dw,[P("rect",{x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Ow)]),P("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,Iw),P("clipPath",Mw,[P("rect",{x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*et+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Rw)]),P("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*et+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Pw)],8,$w)):M("",!0),P("div",{class:ce(["spacing-edit padding-top",{"is-setting":e.styleJson.top}]),onClick:f[4]||(f[4]=v=>p("top"))},te(e.styleJson.top||u.value[0]||"-"),3),P("div",{class:ce(["spacing-edit padding-right",{"is-setting":e.styleJson.right}]),onClick:f[5]||(f[5]=v=>p("right"))},te(e.styleJson.right||u.value[1]||"-"),3),P("div",{class:ce(["spacing-edit padding-bottom",{"is-setting":e.styleJson.bottom}]),onClick:f[6]||(f[6]=v=>p("bottom"))},te(e.styleJson.bottom||u.value[2]||"-"),3),P("div",{class:ce(["spacing-edit padding-left",{"is-setting":e.styleJson.left}]),onClick:f[7]||(f[7]=v=>p("left"))},te(e.styleJson.left||u.value[3]||"-"),3)],512),a.value?(y(),V(G0,{key:0,auto:"",name:o.value,modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=v=>s.value=v),onClose:m,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):M("",!0)])]),_:1}),_(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}))}}),Fw=I({__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:g4},{label:"中",value:"center",svg:f4},{label:"右",value:"right",svg:y4},{label:"两端",value:"justify",svg:v4}],i=[{label:"正常",value:"normal",svg:a4},{label:"斜体",value:"italic",svg:i4}],a=[{label:"无",value:"none",svg:Iu},{label:"下划线",value:"underline",svg:x4},{label:"删除线",value:"line-through",svg:w4},{label:"上划线",value:"overline",svg:b4}];return(o,s)=>(y(),V(d(fe),{title:"文本",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{class:"v-style-widget__texting",size:"small","label-width":"60px",inline:""},{default:j(()=>[(y(),R(ne,null,ae(t,l=>_(d(he),{name:l.name,label:l.label,setters:{name:l.setter},options:l.options,variable:!1,value:e.styleJson[l.name],onChange:o.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1}),_(d(qe),{size:"small","label-width":"60px"},{default:j(()=>[_(d(he),{name:"color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson.color,onChange:o.setStyle},null,8,["value","onChange"]),_(d(he),{name:"text-align",label:"对齐",setters:{name:"TagSetter"},variable:!1,options:r,value:e.styleJson["text-align"],onChange:o.setStyle},null,8,["value","onChange"]),_(d(he),{name:"font-style",label:"风格",setters:{name:"TagSetter"},variable:!1,options:i,value:e.styleJson["font-style"],onChange:o.setStyle},null,8,["value","onChange"]),_(d(he),{name:"text-decoration",label:"修饰",setters:{name:"TagSetter"},variable:!1,options:a,value:e.styleJson["text-decoration"],onChange:o.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),Hw=I({__name:"backgound",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=(l,c)=>{c?e.setStyle("background-image",`url(${c})`):e.setStyle("background-image",void 0)},r=l=>{const c=/^url\(([\w\W]+)\)$/;return l?.match(c)?.[1]},i=[{label:"重复",value:"repeat",svg:S4},{label:"水平重复",value:"repeat-x",svg:_4},{label:"垂直重复",value:"repeat-y",svg:k4},{label:"不重复",value:"no-repeat",svg:D6}],a=[{label:"固定",value:"fixed"},{label:"滚动",value:"scroll"}],o=[{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,c)=>(y(),V(d(fe),{title:"背景",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(he),{name:"background-image",label:"图片",setters:{name:"ImageSetter"},variable:!1,value:r(e.styleJson["background-image"]),onChange:t},null,8,["value"]),_(d(he),{name:"background-color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson["background-color"],onChange:e.setStyle},null,8,["value","onChange"]),_(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"]),_(d(he),{name:"background-attachment",label:"固定",setters:{name:"RadioSetter"},variable:!1,value:e.styleJson["background-attachment"],options:a,onChange:e.setStyle},null,8,["value","onChange"]),_(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"]),_(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"]),_(d(he),{name:"background-clip",label:"裁剪",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-clip"],options:o,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),Lw=I({__name:"border",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D("border"),r=[{label:"全边框",svg:V6,value:"border"},{label:"左边框",svg:E6,value:"border-left"},{label:"上边框",svg:z6,value:"border-top"},{label:"下边框",svg:C6,value:"border-bottom"},{label:"右边框",svg:$6,value:"border-right"}],i=[{label:"无",value:"none",svg:Iu},{label:"实线",value:"solid",svg:B6},{label:"虚线",value:"dashed",svg:A6},{label:"点线",value:"dotted",svg:T6}],a=(o,s)=>{t.value=s};return(o,s)=>(y(),V(d(fe),{title:"边框",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(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"]),_(d(he),{name:"borders",label:"边框",setters:{name:"TagSetter"},variable:!1,options:r,value:t.value,onChange:a},null,8,["value"]),t.value?(y(),R(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)):M("",!0)]),_:1})]),_:1}))}}),Uw=I({__name:"effect",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{label:"自动",value:"auto",svg:O6},{label:"Pointer",value:"pointer",svg:R6},{label:"NotAllowed",value:"not-allowed",svg:M6},{label:"无",value:"none",svg:I6}],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=(o,s)=>{e.setStyle("opacity",s!==void 0?(Number(s)||0)/100:void 0)},a=()=>Number(e.styleJson.opactiy||0)*100;return(o,s)=>(y(),V(d(fe),{title:"效果",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(he),{name:"opacity",label:"透明度",setters:{name:"SliderSetter"},variable:!1,value:a(),onChange:i},null,8,["value"]),_(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"]),_(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}))}}),Ww=I({name:"StyleWidget",__name:"index",props:{isStyleCodeMode:{type:Boolean}},setup(n){const e=n,{selected:t}=xt(),r=z(()=>{const o=t.value?.model||null;return Ce(o)?null:o}),i=z(()=>r.value?.getPropValue("style")||{}),a=(o,s)=>{const l=r.value?.getPropValue("style")||{};s!==void 0?l[o]=s:delete l[o],r.value?.setProp("style",l)};return(o,s)=>e.isStyleCodeMode?(y(),V(U9,{key:0})):(y(),V(d(se),{key:`widget-style-${r.value?.id}`,class:"v-style-widget",direction:"column",fit:""},{default:j(()=>[(y(),V(L9,{key:`Layout${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(jw,{key:`Spacing${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Vw,{key:`Sizing${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Nw,{key:`Positioning${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Fw,{key:`Texting${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Hw,{key:`Backgound${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Lw,{key:`Border${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Uw,{key:`Effect${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"]))]),_:1}))}}),Jw=["src"],qw=I({name:"PreviewerWidget",__name:"index",props:{path:{type:Function}},setup(n,{expose:e}){const t=n,r=D(),i=D(Symbol()),{current:a,engine:o}=Ie(),{width:s,height:l}=_n(r),c=z(()=>a.value&&t.path?t.path(a.value):null),u=z(()=>o.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc");return e({refresh:()=>{i.value=Symbol()}}),(p,m)=>(y(),R("div",{ref_key:"container",ref:r,class:"v-previewer",key:i.value},[_(d(K0),{mode:u.value,width:d(s),height:d(l)},{default:j(()=>[c.value?(y(),R("iframe",{key:0,ref:"iframe",frameborder:"0",src:c.value},null,8,Jw)):M("",!0)]),_:1},8,["mode","width","height"])]))}}),Kw=I({name:"NodePathWidget",inheritAttrs:!1,__name:"index",setup(n){const{selected:e,designer:t}=xt(),r=z(()=>(e.value?.path||[]).slice(0).reverse()),i=o=>{t.value?.setSelected(o)},a=o=>{t.value?.setHover(o)};return(o,s)=>d(e)?(y(),V(d(_2),{key:0,class:"v-nodepath-widget","separator-icon":d(El)},{default:j(()=>[(y(!0),R(ne,null,ae(r.value,l=>(y(),V(d(x2),{onClick:c=>i(l),onMouseover:c=>a(l)},{default:j(()=>[le(te(l.name),1)]),_:2},1032,["onClick","onMouseover"]))),256))]),_:1},8,["separator-icon"])):M("",!0)}}),Gw=I({name:"SchemaWidget",__name:"index",setup(n){const{current:e}=Ie(),t=D(),r=z(()=>JSON.stringify(e.value?.toDsl()||{},null,2)),i=z(()=>e.value?e.value.name:""),a=async()=>{const o=(t.value?.getEditor()).getValue();if(o&&await Dn("手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"))try{const s=JSON.parse(o);e.value?.update(s),We("保存成功")}catch(s){Ae(s?.message)}};return(o,s)=>(y(),V(d(fe),{class:"v-schema-widget",title:i.value,subtitle:"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",size:"small",fit:"",save:"",onSave:a},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"json",dark:""},null,8,["model-value"])]),_:1},8,["title"]))}}),Yw=I({name:"SchemaWidget",__name:"index",setup(n){const{current:e,engine:t}=Ie(),r=D(),i=D(""),a=z(()=>e.value?`$vtj/vue/${e.value.id}.vue`:""),o=z(()=>e.value?e.value.name:"");return oe(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(fe),{class:"v-raw-widget",title:o.value,subtitle:a.value,size:"small",fit:""},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:r,"model-value":i.value,height:"100%",lang:"html",dark:"",readonly:""},null,8,["model-value"])]),_:1},8,["title","subtitle"]))}}),Xw=["src"],Qw=I({name:"DocsWidget",__name:"index",props:{url:{default:"https://newgateway.gitee.io/vtj/help/index.html"}},setup(n){const e=n,t=D();let r=null;Ta(()=>{r||(r=Sl.service({target:t.value?.$el}))}),Ba(()=>{i(),r=null});const i=()=>{r?.close()};return(a,o)=>(y(),V(d(fe),{class:"v-docs-widget",size:"small",fit:"",body:{padding:!1},header:!1,ref_key:"panel",ref:t},{default:j(()=>[P("iframe",{ref:"frame",src:e.url,onLoad:i},null,40,Xw)]),_:1},512))}}),Y0="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==",Zw={class:"v-about-widget"},ex={class:"v-about-widget__logo"},tx=["src"],nx=P("div",{class:"v-about-widget__name"},"VTJ.PRO",-1),rx={class:"v-about-widget__version"},ix=I({name:"AboutWidget",__name:"index",setup(n){return(e,t)=>(y(),R("div",Zw,[P("div",ex,[P("img",{src:d(Y0)},null,8,tx)]),nx,P("div",rx,"版本:"+te(d(l7)),1)]))}}),ax=I({name:"ProjectConfigWidget",__name:"index",setup(n){const{project:e}=ln(),t=r=>{e.value?.setConfig(r)};return(r,i)=>(y(),V(d(fe),{class:"v-project-config-widget",title:"项目配置"},{default:j(()=>[d(e)?(y(),V(d(li),{key:0,footer:!1,size:"small","label-position":"top",model:d(e).config,onChange:t},{default:j(()=>[_(d(ee),{label:"站点名称",name:"title"}),_(d(ee),{label:"Logo",name:"logo",editor:To,props:{attachment:{accept:".png,.jpg,.jpeg"}}},null,8,["props"]),_(d(ee),{label:"主题切换",name:"themeSwitchable",editor:"switch"}),_(d(ee),{label:"模拟数据",name:"mock",editor:"switch"})]),_:1},8,["model"])):M("",!0)]),_:1}))}}),ye={Logo:A7,EmptyWidget:B7,Switcher:O7,Toolbar:M7,Actions:N7,Pages:r9,Blocks:a9,Components:c9,Outline:u9,History:d9,Apis:b9,Deps:w9,Designer:S9,Scripts:$9,Properties:A9,Events:z9,Css:D9,Directives:O9,Defined:N9,DataSources:H9,Style:Ww,Previewer:qw,NodePath:Kw,Schema:Gw,Raw:Yw,Docs:Qw,About:ix,ProjectConfig:ax},ox=[{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:Tu,label:"页面管理"},{name:"Blocks",region:"Apps",component:ye.Blocks,type:"app",openType:"panel",icon:Du,label:"区块管理"},{name:"Components",region:"Apps",component:ye.Components,type:"app",openType:"panel",icon:Ou,label:"组件库"},{name:"Outline",region:"Apps",component:ye.Outline,type:"app",openType:"panel",icon:$u,label:"大纲树"},{name:"History",region:"Apps",component:ye.History,type:"app",openType:"panel",icon:Bu,label:"历史记录"},{name:"Apis",region:"Apps",component:ye.Apis,type:"app",openType:"panel",icon:hu,label:"API管理"},{name:"Deps",region:"Apps",component:ye.Deps,type:"app",openType:"panel",icon:ku,label:"依赖管理"},{name:"ProjectConfig",region:"Apps",component:ye.ProjectConfig,type:"app",openType:"panel",icon:lo,label:"项目配置"},{name:"About",region:"Apps",component:ye.About,type:"app",openType:"dialog",icon:Cu,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:ot.Block,label:"设置"},{name:"Css",region:"Settings",component:ye.Css,type:"tab",group:ot.Block,label:"CSS"},{name:"DataSources",region:"Settings",component:ye.DataSources,type:"tab",group:ot.Block,label:"数据源"},{name:"Defined",region:"Settings",component:ye.Defined,type:"tab",group:ot.Block,label:"定义"},{name:"Properties",region:"Settings",component:ye.Properties,type:"tab",group:ot.Node,label:"属性"},{name:"Style",region:"Settings",component:ye.Style,type:"tab",group:ot.Node,label:"样式"},{name:"Events",region:"Settings",component:ye.Events,type:"tab",group:ot.Node,label:"事件"},{name:"Directives",region:"Settings",component:ye.Directives,type:"tab",group:ot.Node,label:"指令"},{name:"NodePath",region:"Status",component:ye.NodePath}],sx=[{package:"vue",version:"latest",library:"Vue",urls:["@vtj/materials/deps/vue/vue.global.prod.js"],assetsLibrary:Zc,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:eu,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",localeLibrary:"ElementPlusLocaleZhCn",urls:["@vtj/materials/deps/element-plus/dark/css-vars.css","@vtj/materials/deps/element-plus/index.css","@vtj/materials/deps/element-plus/zh-cn.js","@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}],lx=[{id:"html",category:"HTML"},{id:"elements",category:"特殊元素"},{id:"components",category:"内置组件"}],cx=[{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:Y0,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:"默认插槽内容"}}],ux=[...cx,{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:"/"}}}],dx=[{name:oa,version:"latest",label:"内置",library:oa,order:0,categories:lx,components:ux}],px=I({name:"StringSetter",__name:"string",setup(n){return(e,t)=>(y(),V(d(Ge),me({clearable:""},e.$attrs),null,16))}}),hx=I({name:"BooleanSetter",__name:"boolean",setup(n){return(e,t)=>(y(),V(d(Ia),me(e.$attrs,{"model-value":!!e.$attrs.modelValue}),null,16,["model-value"]))}}),mx="{{",fx="}}",vx=I({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,a=l=>De(l,r.context,!0),o=D(t(r.modelValue).value);oe(()=>r.modelValue,l=>{o.value=t(l).value},{immediate:!0});const s=l=>{const c={type:"JSExpression",value:l};a(c)&&i("change",c)};return(l,c)=>(y(),V(d(Ge),{class:"v-expression-setter",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),onChange:s},{prefix:j(()=>[le(te(mx))]),suffix:j(()=>[le(te(fx))]),_:1},8,["modelValue"]))}}),gx=I({name:"SelectSetter",__name:"select",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(Ma),me({clearable:""},t.$attrs),{default:j(()=>[(y(!0),R(ne,null,ae(e.options,i=>(y(),V(d(Ra),me({key:i.label},i),null,16))),128))]),_:1},16))}}),yx=I({name:"NumberSetter",__name:"number",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>Pe(t.modelValue)?void 0:Number(t.modelValue||0)),a=o=>{r("change",o)};return(o,s)=>(y(),V(d(xl),me({class:"v-number-setter","controls-position":"right","model-value":i.value},o.$attrs,{onChange:a}),null,16,["model-value"]))}}),bx=I({name:"ColorSetter",__name:"color",setup(n){return(e,t)=>(y(),V(d($2),kt(Ft(e.$attrs)),null,16))}}),wx=I({name:"JsonSetter",__name:"json",props:{modelValue:{default:void 0},type:{default:"JSON"}},emits:["change"],setup(n,{emit:e}){const t=n,r=D(),i=D(typeof t.modelValue=="object"?JSON.stringify(t.modelValue,null,2):void 0),a=z(()=>!!i.value),o=D(!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"&&!Ya(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,rn.error({title:"代码错误",message:f?.message||f})}return h},c=()=>{const m=r.value?.getEditor();if(m){const h=m.getValue();l(h)&&(i.value=h,s("change",JSON.parse(h)),o.value=!1)}},u=()=>{i.value="",s("change",void 0),o.value=!1},p=()=>{o.value=!0};return(m,h)=>(y(),R("div",{class:ce(["v-json-setter",{"is-active":a.value}])},[_(d(Ge),me({readonly:"",onFocus:p,"model-value":t.type,"suffix-icon":d(Fa)},m.$attrs),null,16,["model-value","suffix-icon"]),o.value?(y(),V(d(Vt),{key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),title:t.type,width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:c,onClear:u},{extra:j(()=>[_(d(xe),{type:"warning",onClick:u,size:"default"},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Te),{ref_key:"codeEditor",ref:r,height:"100%",lang:"json",dark:"","model-value":i.value},null,8,["model-value"])]),_:1},8,["modelValue","title"])):M("",!0)],2))}}),xx=I({name:"FunctionSetter",__name:"function",props:{modelValue:{default:()=>({type:"JSFunction",value:""})}},emits:["change"],setup(n,{emit:e}){const t=n,r=D(),i=D(t.modelValue.value),a=D(!1),o=z(()=>!!i.value),s=e,l=()=>{const p=r.value?.getEditor();if(p){const m=p.getValue(),h={type:"JSFunction",value:m};De(h,{})&&(i.value=m,s("change",h),a.value=!1)}},c=()=>{i.value="",s("change",void 0),a.value=!1},u=()=>{a.value=!0};return(p,m)=>(y(),R("div",{class:ce(["v-function-setter",{"is-active":o.value}])},[_(d(Ge),me({readonly:"",onFocus:u,"model-value":"JSFunction","suffix-icon":d(Fa)},p.$attrs),null,16,["suffix-icon"]),a.value?(y(),V(d(Vt),{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=h=>a.value=h),title:"JSFunction",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:l,onClear:c},{extra:j(()=>[_(d(xe),{type:"warning",onClick:c,size:"default"},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Te),{ref_key:"codeEditor",ref:r,height:"100%","model-value":i.value,dark:""},null,8,["model-value"])]),_:1},8,["modelValue"])):M("",!0)],2))}}),_x=I({name:"RadioSetter",__name:"radio",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(Pa),me({class:"v-radio-setter",size:"small"},t.$attrs),{default:j(()=>[(y(!0),R(ne,null,ae(e.options,i=>(y(),V(d(Jn),{label:i.label,value:i.value,title:i.label},{default:j(()=>[i.svg?(y(),V(d(at),{key:0,src:i.svg},null,8,["src"])):(y(),R(ne,{key:1},[le(te(i.label),1)],64))]),_:2},1032,["label","value","title"]))),256))]),_:1},16))}}),Sx=["label","title","onClick"],kx=I({name:"TagSetter",__name:"tag",props:{options:{default:()=>[]},modelValue:{}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,i=a=>{a.value===t.modelValue?(r("update:modelValue",void 0),r("change",void 0)):(r("update:modelValue",a.value),r("change",a.value))};return(a,o)=>(y(),R("div",me({class:"v-tag-setter",size:"small"},a.$attrs),[(y(!0),R(ne,null,ae(t.options,s=>(y(),R("span",{label:s.value,title:s.label,class:ce({"is-active":t.modelValue===s.value}),onClick:l=>i(s)},[s.svg?(y(),V(d(at),{key:0,src:s.svg,size:16},null,8,["src"])):(y(),R(ne,{key:1},[le(te(s.label),1)],64))],10,Sx))),256))],16))}}),X0=I({name:"SizeSetter",__name:"size",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=D(!0),a=z(()=>i.value?"px":void 0),o=D(t.modelValue),s=l=>{i.value=!!Number(l)};return oe(o,l=>{r("change",l)}),oe(()=>t.modelValue,l=>{l&&(i.value=l.endsWith("px"),o.value=l)},{immediate:!0}),(l,c)=>(y(),V(d(v0),me({clearable:"",unit:a.value,"with-unit":!!a.value,modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),onChange:s},l.$attrs),null,16,["unit","with-unit","modelValue"]))}}),jx={class:"v-image-setter__plus"},Vx=I({name:"ImageSetter",__name:"image",props:{modelValue:{},limit:{default:1}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D([]),a=z(()=>i.value.length<t.limit),o=l=>l.type.includes("image")?(W8(l).then(c=>{i.value=[{name:l.name,url:c}]}),!1):(xn.error("只能上传图片"),!1),s=()=>{i.value=[]};return oe(()=>t.modelValue,l=>{i.value=l?[{name:"",url:l}]:[]},{immediate:!0}),oe(i,()=>{const l=i.value[0]?.url;r("change",l),r("update:modelValue",l)}),(l,c)=>(y(),V(d(wl),me({class:["v-image-setter",{"v-image-setter--addable":a.value}],"list-type":"picture-card",limit:1,action:"#","file-list":i.value,"onUpdate:fileList":c[0]||(c[0]=u=>i.value=u),"before-upload":o,"auto-upload":!0,"on-remove":s},l.$attrs),{default:j(()=>[P("span",jx,[_(d(at),{icon:d(Cl)},null,8,["icon"])])]),_:1},16,["class","file-list"]))}}),Cx={class:"v-section-setter"},Ex=I({name:"SectionSetter",__name:"section",props:{modelValue:{},sections:{default:4}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=D(new Array(t.sections).fill(""));oe(()=>t.modelValue,o=>{i.value=o?o.split(" "):new Array(t.sections).fill("")},{immediate:!0});const a=()=>{r("change",i.value.join(" ").trim())};return(o,s)=>(y(),R("div",Cx,[(y(!0),R(ne,null,ae(t.sections,l=>(y(),V(X0,{name:l-1,modelValue:i.value[l-1],"onUpdate:modelValue":c=>i.value[l-1]=c,onChange:a,class:"v-section-setter__item"},null,8,["name","modelValue","onUpdate:modelValue"]))),256))]))}}),$x={class:"v-slider-setter"},Ax=I({name:"SliderSetter",__name:"slider",props:{modelValue:{default:void 0}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D();oe(()=>t.modelValue,o=>{i.value=o},{immediate:!0}),oe(i,o=>{r("change",o),r("update:modelValue",o)});const a=()=>{i.value=void 0,r("change",void 0),r("update:modelValue",void 0)};return(o,s)=>(y(),R("div",$x,[_(d(_l),me({size:"small"},o.$attrs,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l)}),null,16,["modelValue"]),_(d(at),{onClick:a,class:"v-slider-setter__close",size:16,icon:d(R2)},null,8,["icon"])]))}}),je={StringSetter:px,BooleanSetter:hx,ExpressionSetter:vx,SelectSetter:gx,NumberSetter:yx,ColorSetter:bx,IconSetter:q0,JsonSetter:wx,FunctionSetter:xx,RadioSetter:_x,TagSetter:kx,SizeSetter:X0,ImageSetter:Vx,SectionSetter:Ex,SliderSetter:Ax,FileSetter:To},Tx={name:"StringSetter",component:je.StringSetter,type:"String"},Bx=[{name:"InputSetter",component:je.StringSetter,type:"String"},{name:"StringSetter",component:je.StringSetter,type:"String"},{name:"BooleanSetter",component:je.BooleanSetter,type:"Boolean"},{name:"ExpressionSetter",component:je.ExpressionSetter,type:"Object"},{name:"SelectSetter",component:je.SelectSetter,type:"String"},{name:"NumberSetter",component:je.NumberSetter,type:"Number"},{name:"ColorSetter",component:je.ColorSetter,type:"String"},{name:"IconSetter",component:je.IconSetter,type:"String"},{name:"ObjectSetter",component:je.JsonSetter,type:"Object",props:{type:"Object"}},{name:"ArraySetter",component:je.JsonSetter,type:"Array",props:{type:"Array"}},{name:"JsonSetter",component:je.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"JSONSetter",component:je.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"FunctionSetter",component:je.FunctionSetter,type:"Function"},{name:"RadioSetter",component:je.RadioSetter,type:"String"},{name:"TagSetter",component:je.TagSetter,type:"String"},{name:"SizeSetter",component:je.SizeSetter,type:"String"},{name:"ImageSetter",component:je.ImageSetter,type:"String"},{name:"SectionSetter",component:je.SectionSetter,type:"String"},{name:"SliderSetter",component:je.SliderSetter,type:"Number"},{name:"RangeSetter",component:je.SliderSetter,type:"Array",props:{range:!0}},{name:"FileSetter",component:je.FileSetter,type:"String",props:{multiple:!1}},{name:"FilesSetter",component:je.FileSetter,type:"String",props:{multiple:!0}}];class zx{widgets={};constructor(){this.widgets=this.createWidgets()}createWidgets(){const e={};for(const t of ox)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){Ye.warn(`widget '${e}' is not found`);return}ht(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 Q0=new zx;class Dx{constructor(e=sx){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(a=>a.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 Ox=new Dx;class Ix{setters={};defaultSetter=Tx;constructor(){this.setters=this.createSetters()}createSetters(){const e={};for(const t of Bx)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){Ye.warn(`setter '${e}' is not found`);return}ht(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 Pr=new Ix;function Mx(n){return new Promise((e,t)=>{const r=yl(n9,{slots:n,onClose:()=>{r.unmount(),t(null)},onSubmit:i=>{r.unmount(),e(i)}});r.mount(document.createElement("div"))})}class Rx{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=Ui(null);dropping=Ui(null);selected=D(null);dragging=null;draggingNode=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")),K.on(nr,this.bind(this.onActiveChange,"onActiveChange")),K.on(ke,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")),K.off(nr,this.bind(this.onActiveChange,"onActiveChange")),K.off(ke,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,a=await r.getBlockMaterial(e.from)||i.get(e.name);if(!a?.slots)return;const o=(a?.slots||["default"]).map(s=>typeof s=="string"?{name:s,params:[]}:{name:s.name,params:s.params||[]});return o.length===0?void 0:o.length===1?o[0]:await Mx(o).catch(()=>null)}async onDrop(e){e.preventDefault();const{engine:t,dragging:r,dropping:i,draggingNode:a}=this,o=t.current.value,s=this.getHelper(e);if(!o||!r||!i.value||!s)return;const l=s.model,c=i.value.type;if(!await this.allowDrop(l,c))return;let u;if(a)u=a;else{const p=this.createNodeDsl(r);u=new Wr(p)}if(Ce(l))a?(delete u.slot,o.move(u,void 0,"inner")):o.addNode(u,void 0,c);else{const p=await this.getDropSlot(c==="inner"?l:l.parent);if(p===null){this.dropping.value=null;return}u.slot=p,a?o.move(u,l,c):o.addNode(u,l,c)}this.dropping.value=null,t.simulator.refresh(),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 Wr.nodes[t]||null}getDropType(e,t,r){const{left:i,top:a,width:o,height:s}=e;return t>=i&&t<=i+o*.2?"left":t>=i+o*.8&&t<=i+o?"right":r>=a&&r<=a+s*.2?"top":r>=a+s*.8&&r<=a+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,a={...r,name:t,from:i||e.package};return this.setDslFrom(a),a}getElmenetByModel(e){return!this.document||!e?null:Ce(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 a=r.getBoundingClientRect(),o=this.getDropType(a,e.clientX,e.clientY),s=this.getNodePath(t);return{el:r,model:i,rect:a,type:o,path:s}}cleanHelper(){this.setSelected(null),this.setHover(null),this.setDragging(null),this.setDropping(null)}async updateRect(){await Gc(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}setDraggingNode(e){this.draggingNode=e}async setHover(e){if(await pt(),e){const t=this.getElmenetByModel(e);if(!t)return;const r=t.getBoundingClientRect(),i=Ce(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 pt(),e){const t=this.getElmenetByModel(e)||this.document?.createElement("span");if(!t)return;const r=t.getBoundingClientRect(),i=Ce(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 pt(),e){const r=this.getElmenetByModel(e);if(!r)return;const i=r.getBoundingClientRect(),a=Ce(e)?[]:this.findPathByNode(e);this.dropping.value={el:r,model:e,rect:i,type:t,path:a}}else this.dropping.value=null}async allowDrop(e,t="inner"){const{dragging:r,engine:i}=this,a=i.current.value;if(!r||!a)return!1;if(Ce(e))return!0;const o=i.assets.componentMap,s=t!=="inner"&&e.parent||e,l=await i.assets.getBlockMaterial(s.from)||o.get(s.name);if(!l)return!1;const{parentIncludes:c=!0,name:u}=r,{childIncludes:p=!0}=l,m=c===!0||Array.isArray(c)&&c.includes(s.name),h=p===!0||Array.isArray(p)&&p.includes(u);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 Px{constructor(e,t,r,i=null){this.env=e,this.service=t,this.provider=r,this.designer=i,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,locales:a}=this.env;if(i){const s=i.createRouter({history:i.createWebHashHistory(),routes:[]});e.use(s)}const o=Object.entries(t);Object.assign(e.config.globalProperties,r),e.config.errorHandler=(s,l,c)=>{const u=l?.$options.name,p=s?.message||s?.msg||"未知错误",m=`[ ${u} ] ${p}`;console.error({err:s,instance:l,info:c}),rn.error({title:"运行错误",message:m})},o.forEach(([s,l])=>{if(typeof l=="function"||typeof l.install=="function"){let c={};const u=a[s];u&&(c.locale=u),e?.use(l,c)}})}render(e){const{window:t,container:r,library:i,Vue:a,components:o,apis:s}=this.env,l=t.document.createElement("div");l.id="app",r.appendChild(l),this.dsl=a.reactive(e.toDsl());const{renderer:c,context:u}=this.provider.createDslRenderer(this.dsl,{window:t,mode:Je.Design,Vue:a,components:o,apis:s,libs:i});this.app=a.createApp(c),this.install(this.app);try{this.app.mount(l)}catch(p){Ae(p.message||"未知错误","运行时错误"),console.error(p)}this.context=u,K.on(ke,this.nodeChange),K.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,K.off(ke,this.nodeChange),K.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 a=r[i];if(a.id===e.id){r.splice(i,1,e);return}else this.updateChild(e,a)}}__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 Nx extends ro{contentWindow=null;renderer=null;designer=Ui(null);engine;materialPath;constructor(e){super();const{engine:t,materialPath:r}=e;this.engine=t,this.materialPath=r,oe(this.engine.current,()=>{this.refresh()})}init(e,t,r,i){oe([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 Rx(this.engine,this.contentWindow,t)))},{immediate:!0,deep:!0})}setup(e,t){const r=e.contentWindow;if(!r){Ye.warn("Simulator contentWindow is null");return}r.__simulator__=this;const i=r.document;r.CKEDITOR_VERSION=void 0,this.contentWindow=r;const{scripts:a,css:o,materials:s,libraryExports:l,materialExports:c,materialMapLibrary:u,libraryLocaleMap:p}=D0(t,this.materialPath);i.open(),i.write(`
169
169
  <!DOCTYPE html>
170
170
  <html lang="zh-CN">
171
171
  <head>
@@ -182,7 +182,7 @@ Minimum version required to store current data is: `+a+`.
182
182
  background: #fff;
183
183
  }
184
184
  </style>
185
- ${kb(o)}
185
+ ${Vb(o)}
186
186
  ${ul(a)}
187
187
  ${ul(s)}
188
188
  </head>
@@ -196,4 +196,4 @@ Minimum version required to store current data is: `+a+`.
196
196
  );
197
197
  <\/script>
198
198
  </html>
199
- `),i.close()}async emitReady(e=[],t=[],r={},i={}){this.renderer?.dispose(),this.renderer=null;const a=this.contentWindow,{assets:o,service:s,current:l,provider:c}=this.engine,u=c.materials||{},p=[];for(const h of t){const f=u[h]?(await u[h]()).default:a[h];p.push(f)}o.load(p);const m=this.createEnv(e,r,p,i);this.renderer=new Rx(m,s,c,this.designer.value),l.value&&this.renderer.render(l.value),this.triggerReady()}createEnv(e=[],t={},r=[],i={}){const a=this.contentWindow,{engine:o}=this,{project:s,assets:l,provider:c}=o,u=e.reduce((b,x)=>(b[x]=a[x],b),{}),p={};Object.entries(i).forEach(([b,x])=>{p[b]=a[x]});const m={},{groups:h,componentMap:f}=l;for(const b of h.value){const x=b.names||[];if(b.name===oa)x.forEach(S=>{const V=f.get(S),w=V?.package||"",$=X3[w],E=u[$];E&&V&&(m[S]=ja(V,E))});else{const S=u[t[b.library||""]];S&&x.forEach(V=>{const w=f.get(V);w?m[V]=ja(w,S):m[V]=S[V]})}}const{adapter:v,globals:g}=c,k=M0(s.value?.apis,v);return $o(),s.value?.config?.mock&&P0(s.value?.apis),{window:a,Vue:a.Vue,VueRouter:a.VueRouter,library:u,materials:r,components:m,container:a.document.body,apis:k,globals:g,libraryLocaleMap:i,locales:p}}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 Px{constructor(e,t){this.service=e,this.provider=t}components=[];componentMap=new Map;groups=D([]);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:a,label:o,name:s,library:l}=r;if(!i||!a)continue;const c=a.filter(h=>!!h.package).map(h=>h.name),u=i.map(h=>this.getCateoryComponents(h,a)),p=u.reduce((h,f)=>f.count+h,0),m={name:r.name,label:o||s,count:p,names:c,library:l,children:u};t.push(m)}return t}load(e){const t=[...cx,...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=M3(this.components,"name")}async getBlockMaterial(e,t){if(!e||typeof e=="string")return null;let r;if(e.type==="Schema"&&e.id&&(r=this.caches[e.id]||await this.service.getFile(e.id),this.caches[e.id]=r),e.type==="UrlSchema"&&e.url&&(r=this.caches[e.url]||await this.provider.getDslByUrl(e.url),this.caches[e.url]=r),e.type==="Plugin"){const p=await this.service.getPluginMaterial(e);return p?(p.name=t||p.name,p.from=e,this.componentMap.set(p.name,p),p):null}if(!r)return null;r.name=t||r.name;const{id:i,name:a,slots:o,props:s,emits:l}=r,c=p=>{const m=Array.isArray(p)?p:[p];let h=[];for(const f of m)h=h.concat(Pr.getByType(f));return h},u={id:i,name:a,childIncludes:o?.length?void 0:!1,props:(s||[]).map(p=>typeof p=="string"?{name:p}:{name:p.name,type:p.type,setters:c(p.type)}),events:l,slots:o,from:e};return this.componentMap.set(a,u),u}clearCaches(){this.caches={}}}const Z0=Symbol("VtjEngine");class z_ extends ro{app;skeleton;container;service;assets;simulator;emitter=K;project=D(null);current=D(null);context=D(null);isEmptyCurrent=D(!1);history=D(null);provider;changed=D(Symbol());constructor(e){super();const{container:t,service:r,project:i={},globals:a={},dependencies:o,materials:s,materialPath:l="./"}=e;this.container=t,this.service=r,this.provider=new L0({mode:Je.Design,globals:a,project:i,service:r,dependencies:o,materials:s,materialPath:l}),this.assets=new Px(this.service,this.provider),this.simulator=new Mx({engine:this,materialPath:l}),this.bindEvents(),this.init(i),Ta(this.render.bind(this)),Ba(this.dispose.bind(this))}async init(e){const t=await this.service.init(e).catch(r=>(Ye.warn("VTJEngine service init fail.",r),null));t&&(t.dependencies=zx.merge(t.dependencies||[]),this.project.value=new Z3(t),this.saveMaterials(),this.triggerReady())}render(){const e=d(this.container);if(e){const t=yl(Nx);t.provide(Z0,i2(this)),t.mount(e),this.app=t}else Ye.warn("VTJEngine constructor param [ container ] is undefined")}bindEvents(){K.on(Ne,e=>this.saveProject(e)),K.on(Or,e=>this.saveBlockFile(e)),K.on(Ln,e=>this.saveBlockFile(e)),K.on(la,()=>this.saveMaterials()),K.on(nr,e=>this.activeFile(e)),K.on(iu,()=>this.publish()),K.on(au,()=>this.publishCurrent()),K.on(ge,e=>this.changeFile(e)),K.on(ke,()=>this.changeCurrentFile()),K.on(Un,e=>this.saveHistory(e)),K.on(Ir,e=>this.loadHistory(e))}async activeFile(e){await pt();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 yn(r.dsl);this.updateCurrent(i),this.initHistory(i)}else this.updateCurrent(null);At(this.project)}async changeFile(e){await pt();const t=e.toDsl();this.service.saveFile(t),this.updateCurrent(e),this.history.value?.add(t),At(this.history)}changeCurrentFile(){this.saveCurrentFile(),this.current.value&&(this.history.value?.add(this.current.value.toDsl()),At(this.history))}async updateCurrent(e,t=!0){this.current.value=e,await pt(),this.context.value=this.simulator.renderer?.context||null,this.isEmptyCurrent.value=this.current.value?.nodes.length===0,this.changed.value=Symbol(),t&&At(this.context)}async saveProject(e){const t=e.model.toDsl();await this.service.saveProject(t),At(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 a=await this.service.getFile(i.id);a&&(a.name=i.name,await this.service.saveFile(a))}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:a}=e.data,o=await this.service.getFile(i.id);o&&(o.id=a.id,o.name=a.name,await this.service.saveFile(o))}At(this.project)}async saveMaterials(){await pt(),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 eg(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),At(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 a=new yn(i.dsl);await this.updateCurrent(a),At(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 a=t.getPage(i);a&&!a.raw&&(r.regionRef?.setActive("Pages"),this.simulator.ready(()=>{t.active(a)}));const o=t.getBlock(i);o&&(r.regionRef?.setActive("Blocks"),this.simulator?.ready(()=>{t.active(o)}))}}function Le(){const n=Mt(Z0,null);return n||Ye.error("VTJEngine is not exist"),n}const Bt=I({name:"RegionWrapper",props:{region:{type:String,required:!0}},setup(){return{regionRef:D()}},render(){const n=fl[this.region]||fl.EmptyRegion;return Re(n,{...this.$props,...this.$attrs,ref:"regionRef"})}}),Ut=I({name:"WidgetWrapper",props:{region:{type:String,required:!0},widget:{type:Object,required:!0}},setup(){return{widgetRef:D()}},render(){return Re(this.widget.component,{...this.widget.props,...this.$props,...this.$attrs,ref:"widgetRef"})}}),Nx=I({name:"SkeletonWrapper",setup(){const n=D(),e=Le(),t=D({});return{skeletonRef:n,engine:e,widgets:t}},mounted(){this.engine.skeleton=this},render(){return Re(Fx,{...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?eo(e.regionRef?.widgetsRef||[]):[]},getWidget(n){const e=Q0.get(n);if(!e){Ye.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=I({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:Pt(e.component),name:e.name,label:n,props:e.props||{}};{const t=n;return e=this.getSetter(t.name),{component:Pt(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":hr(n)&&(t="Function"));const r=Pr.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:a,computedSetters:o,computedOptions:s,variable:l,changeValue:c,defaultSetter:u,removable:p,onRemove:m}=this;return Re(Kx,{context:n,current:e,name:t,label:r,title:i,setters:o,defaultSetter:u,variable:l,value:a,removable:p,options:s,onChange:c,onRemove:m})},emits:["change","remove"],methods:{getSetter(n){return typeof n=="string"?Pr.get(n)||Pr.defaultSetter:n},changeValue(n){this.$emit("change",this.name,n)},onRemove(n){this.$emit("remove",n)}}}),Fx=I({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=D(!1),i=D(parseInt(t.leftWidth)),a=D(parseInt(t.rightWidth)),o={dirs:["e"],maxWidth:600,minWidth:49,onResizing(b,x){i.value=x.elementWidth.value},onEnd(b,x){i.value=x.elementWidth.value}},s={dirs:["w"],maxWidth:600,minWidth:2,onResizing(b,x){a.value=x.elementWidth.value},onEnd(b,x){a.value=x.elementWidth.value}},l=D(),c=D(),u=D(),p=D(),m=D(),h=D(),f=D(),v=D(),g=D(!1),k=D(!1);return e({brand:l,toolbar:c,actions:u,apps:p,workspace:m,settings:h,status:f,collapsed:g,settable:k,leftWidth:i,rightWidth:a,preview:v,isPreview:r}),(b,x)=>(y(),C(d(V2),{locale:d(C2)},{default:j(()=>[_(d(Do),{class:"v-skeleton"},{default:j(()=>[_(d(S2),{class:"v-skeleton__header",height:b.headerHeight},{default:j(()=>[_(d(Bt),{ref_key:"brand",ref:l,region:"Brand"},null,512),_(d(Bt),{ref_key:"toolbar",ref:c,region:"Toolbar",preview:r.value},null,8,["preview"]),_(d(Bt),{ref_key:"actions",ref:u,region:"Actions"},null,512)]),_:1},8,["height"]),_(d(Do),{class:"v-skeleton__wrapper"},{default:j(()=>[r.value?R("",!0):ft((y(),C(d(Oo),{key:0,width:t.leftWidth,class:ce(["v-skeleton__left",{"is-collapsed":g.value}])},{default:j(()=>[_(d(Bt),{ref_key:"apps",ref:p,region:"Apps"},null,512)]),_:1},8,["width","class"])),[[d(wa),o]]),_(d(k2),{class:"v-skeleton__main"},{default:j(()=>[r.value?(y(),C(d(Bt),{key:0,ref_key:"preview",ref:v,region:"Preview",preview:r.value},null,8,["preview"])):R("",!0),ft(_(d(Bt),{ref_key:"workspace",ref:m,region:"Workspace"},null,512),[[Zt,!r.value]])]),_:1}),r.value?R("",!0):ft((y(),C(d(Oo),{key:1,width:t.rightWidth,class:"v-skeleton__right"},{default:j(()=>[_(d(Bt),{ref_key:"settings",ref:h,region:"Settings"},null,512)]),_:1},8,["width"])),[[Zt,k.value],[d(wa),s]])]),_:1}),r.value?R("",!0):(y(),C(d(j2),{key:0,class:"v-skeleton__footer",height:b.footerHeight},{default:j(()=>[_(d(Bt),{ref_key:"status",ref:f,region:"Status"},null,512)]),_:1},8,["height"]))]),_:1})]),_:1},8,["locale"]))}}),Hx={key:1},Lx={class:"v-setter__content"},Ux={key:0,class:"v-setter__input"},Wx={class:"v-setter__action"},Jx="{{",qx="}}",Kx=I({__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=D(!1),a=D(""),o=D(t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]),s=D(t.value),l=z(()=>!!Pe(s.value)),c={[o.value.name]:s.value},u=k=>{c[o.value.name]=s.value,o.value=k,s.value=c[k.name]??void 0,p(s.value)};oe(()=>t.value,()=>{s.value=t.value}),oe(()=>t.defaultSetter,()=>{o.value=t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]});const p=k=>{r("change",k)},m=()=>{r("remove",t.name)},h=()=>{i.value=!0,a.value=Pe(s.value)?s.value.value:""},f=()=>{i.value=!1,a.value=""},v=async k=>De(k,t.context,!0)?(c[o.value.name]=s.value,s.value=k,r("change",k),!0):!1,g=async()=>{await Dn("确定要解除绑定吗?")&&(f(),s.value=void 0,r("change",""))};return(k,b)=>(y(),C(d(za),{class:"v-setter",size:"small","label-positon":"left"},{label:j(()=>[t.title?(y(),C(d(Gr),{key:0,placement:"top-start",content:t.title},{default:j(()=>[le(te(t.label||t.name),1)]),_:1},8,["content"])):(y(),M("span",Hx,te(t.label||t.name),1))]),default:j(()=>[P("div",Lx,[o.value?(y(),M("div",Ux,[l.value?R("",!0):(y(),C(Ke(o.value.component),me({key:0,current:t.current,context:t.context},o.value.props,{options:t.options,modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=x=>s.value=x),onChange:p,disabled:l.value}),null,16,["current","context","options","modelValue","disabled"])),l.value?(y(),C(d(Ge),{key:1,class:"v-expression-setter",disabled:"","model-value":"JSExpression"},{prefix:j(()=>[le(te(Jx))]),suffix:j(()=>[le(te(qx))]),_:1})):R("",!0)])):R("",!0),P("div",Wx,[t.variable?(y(),C(d($u),{key:0,onClick:h,class:ce(["v-icon-vars",{"is-active":l.value}]),title:"绑定变量"},null,8,["class"])):R("",!0),t.setters.length>1?(y(),C(d(Oa),{key:1,disabled:l.value,size:"small","popper-class":"v-setter-switch",onCommand:u},{dropdown:j(()=>[_(d(Da),null,{default:j(()=>[(y(!0),M(ne,null,ae(t.setters,x=>(y(),C(d(Fr),{command:x,key:x.name},{default:j(()=>[_(d(io),{class:ce({"is-placeholder":x.name!==o.value.name})},null,8,["class"]),le(" "+te(x.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:j(()=>[_(d(mu),{title:"切换设置器"})]),_:1},8,["disabled"])):R("",!0),t.removable?(y(),C(d(sr),{key:2,onClick:m,title:"删除"})):R("",!0)])]),i.value?(y(),C(d(E9),{key:0,current:t.current,context:t.context,value:a.value,modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=x=>i.value=x),submitMethod:v,onUnbind:g},null,8,["current","context","value","modelValue"])):R("",!0)]),_:1}))}}),Gx={class:"v-empty-region"},Yx=I({name:"EmptyRegion",__name:"empty",props:{region:{}},setup(n){return(e,t)=>(y(),M("div",Gx,"找不到符合【"+te(e.region)+"】名称的区域组件",1))}}),Xx={class:"v-brand-region"},Qx=I({name:"BrandRegion",inheritAttrs:!1,__name:"brand",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Lt(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",Xx,[(y(!0),M(ne,null,ae(d(r),s=>(y(),C(d(Ut),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),Zx={class:"v-toolbar-region"},e_=I({name:"ToolbarRegion",__name:"toolbar",props:{region:{},preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Lt(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",Zx,[(y(!0),M(ne,null,ae(d(r),s=>(y(),C(d(Ut),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s,preview:a.preview},null,8,["region","widget","preview"]))),256))]))}}),t_={class:"v-actions-region"},n_=I({name:"ActionsRegion",inheritAttrs:!1,__name:"actions",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Lt(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",t_,[(y(!0),M(ne,null,ae(d(r),s=>(y(),C(d(Ut),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),r_={class:"v-apps-region"},i_={class:"v-apps-region__header"},a_={class:"v-apps-region__top"},o_={class:"v-apps-region__bottom"},s_={class:"v-apps-region__panels"},l_=I({name:"AppsRegion",inheritAttrs:!1,__name:"apps",props:{region:{},index:{default:0}},setup(n,{expose:e}){const t=n,r=Le(),{widgets:i,widgetsRef:a}=Lt(t.region),o=z(()=>i.value.filter(h=>h.openType==="panel")),s=z(()=>i.value.filter(h=>h.openType!=="panel")),l=o.value[t.index],c=D(l),u=D(l),p=h=>{c.value=h,u.value=u.value?.name===h.name?null:h},m=h=>{h.openType==="link"&&h.url&&window.open(h.url),h.openType==="dialog"&&p0({title:h.label,icon:h.icon,...h.props,content:h.component})};return oe(u,h=>{r.skeleton?.toggleCollapse(!h)}),e({widgets:i,widgetsRef:a,setActive:h=>{const f=o.value.find(v=>v.name===h);c.value=f,u.value=f}}),(h,f)=>(y(),M("div",r_,[P("div",i_,[P("div",a_,[(y(!0),M(ne,null,ae(o.value,v=>(y(),C(d(ml),{key:`icon-${v.name}`,icon:v.icon,label:v.label,active:c.value?.name===v.name,open:u.value?.name===v.name,onClick:g=>p(v)},null,8,["icon","label","active","open","onClick"]))),128))]),P("div",o_,[(y(!0),M(ne,null,ae(s.value,v=>(y(),C(d(ml),{key:`icon-${v.name}`,icon:v.icon,label:v.label,onClick:g=>m(v)},null,8,["icon","label","onClick"]))),128))])]),P("div",s_,[(y(!0),M(ne,null,ae(o.value,v=>(y(),C(bl,{key:v.name},[c.value?.name===v.name?(y(),C(d(Ut),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:a,region:h.region,widget:v},null,8,["region","widget"])):R("",!0)],1024))),128))])]))}}),c_=I({name:"WorkspaceRegion",__name:"workspace",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Lt(t.region),a=tn(r.value.map(m=>({name:m.name,command:m.name,label:m.label,closable:!!m.closable,props:m.props||{},checked:!m.closable}))),o=z(()=>a.filter(m=>!m.closable||m.checked)),s=z(()=>a.map(m=>({...m,disabled:!m.closable}))),l=D(o.value[0]?.name),c=z(()=>a.find(m=>m.name===l.value)?.props||{}),u=m=>{const h=a.find(f=>f.name===m);h&&(h.checked=!1),l.value===m&&(l.value=o.value[0]?.name)},p=m=>{const h=a.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=o.value[0]?.name))};return e({currentTab:l,widgets:r,widgetsRef:i,openTab:(m,h={})=>{const f=a.find(v=>v.name===m);f&&(f.props=Object.assign({},f.props,h),f.checked=!0,l.value=f.name)}}),(m,h)=>(y(),C(d(hi),{class:"v-workspace-region",items:o.value,menus:s.value,modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=f=>l.value=f),checkable:"",onRemove:u,onCommand:p},{default:j(()=>[(y(!0),M(ne,null,ae(d(r),f=>(y(),M(ne,{key:f.name},[l.value===f.name?(y(),C(d(Ut),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:m.region,widget:{...f,props:c.value}},null,8,["region","widget"])):R("",!0)],64))),128))]),_:1},8,["items","menus","modelValue"]))}}),u_=I({name:"SettingsRegion",__name:"settings",props:{region:{}},setup(n,{expose:e}){const t=n,r=Le(),{current:i}=Ie(),{selected:a,isSelectBlock:o}=xt(),s=z(()=>o.value?ot.Block:ot.Node),{widgets:l,widgetsRef:c}=Lt(t.region,s),u=D(),p=D(!1),m=z(()=>l.value.map(g=>({name:g.name,label:g.label,actions:g.name==="Style"?[{name:"switch",icon:M2,background:"hover"}]:void 0}))),h=z(()=>{const g=a.value?.model;return g?r.assets.componentMap.get(g.name)?.doc:null});oe(i,g=>{r.skeleton?.settable(!!g)}),oe(s,()=>{u.value=m.value[0]?.name},{immediate:!0}),oe(u,()=>{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:c}),(g,k)=>d(i)?(y(),C(d(se),{key:0,class:"v-settings-region",fit:"",direction:"column"},{default:j(()=>[d(a)?(y(),C(d(se),{key:0,flex:"",justify:"space-between",align:"center",class:"v-settings-region__header"},{default:j(()=>[_(d(se),{class:"v-settings-region__title"},{default:j(()=>[_(d(so)),P("span",null,[le(te(d(a)?.model.name)+": ",1),P("i",null,te(d(a)?.model.id),1)])]),_:1}),h.value?(y(),C(d(se),{key:0},{default:j(()=>[_(d(Be),{onClick:f,icon:d(po),mode:"text",label:"帮助"},null,8,["icon"])]),_:1})):R("",!0)]),_:1})):R("",!0),d(a)&&!d(a).model.locked?(y(),C(d(se),{key:1,grow:"",padding:!1},{default:j(()=>[_(d(hi),{items:m.value,modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=b=>u.value=b),stretch:"",body:{padding:!1},onActionClick:v},{default:j(()=>[(y(!0),M(ne,null,ae(d(l),b=>(y(),M(ne,{key:b.name},[u.value===b.name?(y(),C(d(Ut),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:c,region:g.region,widget:d(ht)({props:{isStyleCodeMode:p.value}},b)},null,8,["region","widget"])):R("",!0)],64))),128))]),_:1},8,["items","modelValue"])]),_:1})):R("",!0),d(a)?R("",!0):(y(),C(d(ze),{key:2,description:"请在左侧画布选中节点"})),d(a)&&d(a).model.locked?(y(),C(d(ze),{key:3,"image-size":1,description:"节点已被锁定, 禁止编辑"})):R("",!0)]),_:1})):R("",!0)}}),d_={class:"v-status-region"},p_=I({name:"StatusRegion",inheritAttrs:!1,__name:"status",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Lt(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",d_,[(y(!0),M(ne,null,ae(d(r),s=>(y(),C(d(Ut),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),h_=I({name:"PreviewRegion",__name:"preview",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Lt(t.region),a=tn(r.value.map(l=>({name:l.name,command:l.name,label:l.label,closable:!!l.closable,checked:!1}))),o=z(()=>a.filter(l=>!l.closable||l.checked)),s=D(o.value[0]?.name);return e({currentTab:s,widgets:r,widgetsRef:i}),(l,c)=>(y(),C(d(hi),{class:"v-workspace-region",items:o.value,modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:j(()=>[(y(!0),M(ne,null,ae(d(r),u=>(y(),C(bl,{key:u.name},[s.value===u.name?(y(),C(d(Ut),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:l.region,widget:u},null,8,["region","widget"])):R("",!0)],1024))),128))]),_:1},8,["items","modelValue"]))}}),fl={EmptyRegion:Yx,Brand:Qx,Toolbar:e_,Actions:n_,Apps:l_,Workspace:c_,Settings:u_,Status:p_,Preview:h_};export{z_ as D,A_ as H,Je as _,B_ as a,Q0 as j};
199
+ `),i.close()}async emitReady(e=[],t=[],r={},i={}){this.renderer?.dispose(),this.renderer=null;const a=this.contentWindow,{assets:o,service:s,current:l,provider:c}=this.engine,u=c.materials||{},p=[];for(const h of t){const f=u[h]?(await u[h]()).default:a[h];p.push(f)}o.load(p);const m=this.createEnv(e,r,p,i);this.renderer=new Px(m,s,c,this.designer.value),l.value&&this.renderer.render(l.value),this.triggerReady()}createEnv(e=[],t={},r=[],i={}){const a=this.contentWindow,{engine:o}=this,{project:s,assets:l,provider:c}=o,u=e.reduce((b,w)=>(b[w]=a[w],b),{}),p={};Object.entries(i).forEach(([b,w])=>{p[b]=a[w]});const m={},{groups:h,componentMap:f}=l;for(const b of h.value){const w=b.names||[];if(b.name===oa)w.forEach(S=>{const C=f.get(S),x=C?.package||"",E=Q3[x],$=u[E];$&&C&&(m[S]=ja(C,$))});else{const S=u[t[b.library||""]];S&&w.forEach(C=>{const x=f.get(C);x?m[C]=ja(x,S):m[C]=S[C]})}}const{adapter:v,globals:g}=c,k=R0(s.value?.apis,v);return Eo(),s.value?.config?.mock&&P0(s.value?.apis),{window:a,Vue:a.Vue,VueRouter:a.VueRouter,library:u,materials:r,components:m,container:a.document.body,apis:k,globals:g,libraryLocaleMap:i,locales:p}}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 Fx{constructor(e,t){this.service=e,this.provider=t}components=[];componentMap=new Map;groups=D([]);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:a,label:o,name:s,library:l}=r;if(!i||!a)continue;const c=a.filter(h=>!!h.package).map(h=>h.name),u=i.map(h=>this.getCateoryComponents(h,a)),p=u.reduce((h,f)=>f.count+h,0),m={name:r.name,label:o||s,count:p,names:c,library:l,children:u};t.push(m)}return t}load(e){const t=[...dx,...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=P3(this.components,"name")}async getBlockMaterial(e,t){if(!e||typeof e=="string")return null;let r;if(e.type==="Schema"&&e.id&&(r=this.caches[e.id]||await this.service.getFile(e.id),this.caches[e.id]=r),e.type==="UrlSchema"&&e.url&&(r=this.caches[e.url]||await this.provider.getDslByUrl(e.url),this.caches[e.url]=r),e.type==="Plugin"){const p=await this.service.getPluginMaterial(e);return p?(p.name=t||p.name,p.from=e,this.componentMap.set(p.name,p),p):null}if(!r)return null;r.name=t||r.name;const{id:i,name:a,slots:o,props:s,emits:l}=r,c=p=>{const m=Array.isArray(p)?p:[p];let h=[];for(const f of m)h=h.concat(Pr.getByType(f));return h},u={id:i,name:a,childIncludes:o?.length?void 0:!1,props:(s||[]).map(p=>typeof p=="string"?{name:p}:{name:p.name,type:p.type,setters:c(p.type)}),events:l,slots:o,from:e};return this.componentMap.set(a,u),u}clearCaches(){this.caches={}}}const Z0=Symbol("VtjEngine");class D_ extends ro{app;skeleton;container;service;assets;simulator;emitter=K;project=D(null);current=D(null);context=D(null);isEmptyCurrent=D(!1);history=D(null);provider;changed=D(Symbol());constructor(e){super();const{container:t,service:r,project:i={},globals:a={},dependencies:o,materials:s,materialPath:l="./"}=e;this.container=t,this.service=r,this.provider=new L0({mode:Je.Design,globals:a,project:i,service:r,dependencies:o,materials:s,materialPath:l}),this.assets=new Fx(this.service,this.provider),this.simulator=new Nx({engine:this,materialPath:l}),this.bindEvents(),this.init(i),Ta(this.render.bind(this)),Ba(this.dispose.bind(this))}async init(e){const t=await this.service.init(e).catch(r=>(Ye.warn("VTJEngine service init fail.",r),null));t&&(t.dependencies=Ox.merge(t.dependencies||[]),this.project.value=new eg(t),this.saveMaterials(),this.triggerReady())}render(){const e=d(this.container);if(e){const t=yl(Hx);t.provide(Z0,i2(this)),t.mount(e),this.app=t}else Ye.warn("VTJEngine constructor param [ container ] is undefined")}bindEvents(){K.on(Ne,e=>this.saveProject(e)),K.on(Or,e=>this.saveBlockFile(e)),K.on(Ln,e=>this.saveBlockFile(e)),K.on(la,()=>this.saveMaterials()),K.on(nr,e=>this.activeFile(e)),K.on(iu,()=>this.publish()),K.on(au,()=>this.publishCurrent()),K.on(ge,e=>this.changeFile(e)),K.on(ke,()=>this.changeCurrentFile()),K.on(Un,e=>this.saveHistory(e)),K.on(Ir,e=>this.loadHistory(e))}async activeFile(e){await pt();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 yn(r.dsl);this.updateCurrent(i),this.initHistory(i)}else this.updateCurrent(null);At(this.project)}async changeFile(e){await pt();const t=e.toDsl();this.service.saveFile(t),this.updateCurrent(e),this.history.value?.add(t),At(this.history)}changeCurrentFile(){this.saveCurrentFile(),this.current.value&&(this.history.value?.add(this.current.value.toDsl()),At(this.history))}async updateCurrent(e,t=!0){this.current.value=e,await pt(),this.context.value=this.simulator.renderer?.context||null,this.isEmptyCurrent.value=this.current.value?.nodes.length===0,this.changed.value=Symbol(),t&&At(this.context)}async saveProject(e){const t=e.model.toDsl();await this.service.saveProject(t),At(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 a=await this.service.getFile(i.id);a&&(a.name=i.name,await this.service.saveFile(a))}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:a}=e.data,o=await this.service.getFile(i.id);o&&(o.id=a.id,o.name=a.name,await this.service.saveFile(o))}At(this.project)}async saveMaterials(){await pt(),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 tg(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),At(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 a=new yn(i.dsl);await this.updateCurrent(a),this.service.saveFile(i.dsl),At(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 a=t.getPage(i);a&&!a.raw&&(r.regionRef?.setActive("Pages"),this.simulator.ready(()=>{t.active(a)}));const o=t.getBlock(i);o&&(r.regionRef?.setActive("Blocks"),this.simulator?.ready(()=>{t.active(o)}))}}function Le(){const n=Pt(Z0,null);return n||Ye.error("VTJEngine is not exist"),n}const Bt=I({name:"RegionWrapper",props:{region:{type:String,required:!0}},setup(){return{regionRef:D()}},render(){const n=fl[this.region]||fl.EmptyRegion;return Me(n,{...this.$props,...this.$attrs,ref:"regionRef"})}}),Wt=I({name:"WidgetWrapper",props:{region:{type:String,required:!0},widget:{type:Object,required:!0}},setup(){return{widgetRef:D()}},render(){return Me(this.widget.component,{...this.widget.props,...this.$props,...this.$attrs,ref:"widgetRef"})}}),Hx=I({name:"SkeletonWrapper",setup(){const n=D(),e=Le(),t=D({});return{skeletonRef:n,engine:e,widgets:t}},mounted(){this.engine.skeleton=this},render(){return Me(Lx,{...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?eo(e.regionRef?.widgetsRef||[]):[]},getWidget(n){const e=Q0.get(n);if(!e){Ye.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=I({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:Nt(e.component),name:e.name,label:n,props:e.props||{}};{const t=n;return e=this.getSetter(t.name),{component:Nt(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":hr(n)&&(t="Function"));const r=Pr.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:a,computedSetters:o,computedOptions:s,variable:l,changeValue:c,defaultSetter:u,removable:p,onRemove:m}=this;return Me(Yx,{context:n,current:e,name:t,label:r,title:i,setters:o,defaultSetter:u,variable:l,value:a,removable:p,options:s,onChange:c,onRemove:m})},emits:["change","remove"],methods:{getSetter(n){return typeof n=="string"?Pr.get(n)||Pr.defaultSetter:n},changeValue(n){this.$emit("change",this.name,n)},onRemove(n){this.$emit("remove",n)}}}),Lx=I({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=D(!1),i=D(parseInt(t.leftWidth)),a=D(parseInt(t.rightWidth)),o={dirs:["e"],maxWidth:600,minWidth:49,onResizing(b,w){i.value=w.elementWidth.value},onEnd(b,w){i.value=w.elementWidth.value}},s={dirs:["w"],maxWidth:600,minWidth:2,onResizing(b,w){a.value=w.elementWidth.value},onEnd(b,w){a.value=w.elementWidth.value}},l=D(),c=D(),u=D(),p=D(),m=D(),h=D(),f=D(),v=D(),g=D(!1),k=D(!1);return e({brand:l,toolbar:c,actions:u,apps:p,workspace:m,settings:h,status:f,collapsed:g,settable:k,leftWidth:i,rightWidth:a,preview:v,isPreview:r}),(b,w)=>(y(),V(d(C2),{locale:d(V2)},{default:j(()=>[_(d(Do),{class:"v-skeleton"},{default:j(()=>[_(d(S2),{class:"v-skeleton__header",height:b.headerHeight},{default:j(()=>[_(d(Bt),{ref_key:"brand",ref:l,region:"Brand"},null,512),_(d(Bt),{ref_key:"toolbar",ref:c,region:"Toolbar",preview:r.value},null,8,["preview"]),_(d(Bt),{ref_key:"actions",ref:u,region:"Actions"},null,512)]),_:1},8,["height"]),_(d(Do),{class:"v-skeleton__wrapper"},{default:j(()=>[r.value?M("",!0):ft((y(),V(d(Oo),{key:0,width:t.leftWidth,class:ce(["v-skeleton__left",{"is-collapsed":g.value}])},{default:j(()=>[_(d(Bt),{ref_key:"apps",ref:p,region:"Apps"},null,512)]),_:1},8,["width","class"])),[[d(wa),o]]),_(d(k2),{class:"v-skeleton__main"},{default:j(()=>[r.value?(y(),V(d(Bt),{key:0,ref_key:"preview",ref:v,region:"Preview",preview:r.value},null,8,["preview"])):M("",!0),ft(_(d(Bt),{ref_key:"workspace",ref:m,region:"Workspace"},null,512),[[en,!r.value]])]),_:1}),r.value?M("",!0):ft((y(),V(d(Oo),{key:1,width:t.rightWidth,class:"v-skeleton__right"},{default:j(()=>[_(d(Bt),{ref_key:"settings",ref:h,region:"Settings"},null,512)]),_:1},8,["width"])),[[en,k.value],[d(wa),s]])]),_:1}),r.value?M("",!0):(y(),V(d(j2),{key:0,class:"v-skeleton__footer",height:b.footerHeight},{default:j(()=>[_(d(Bt),{ref_key:"status",ref:f,region:"Status"},null,512)]),_:1},8,["height"]))]),_:1})]),_:1},8,["locale"]))}}),Ux={key:1},Wx={class:"v-setter__content"},Jx={key:0,class:"v-setter__input"},qx={class:"v-setter__action"},Kx="{{",Gx="}}",Yx=I({__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=D(!1),a=D(""),o=D(t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]),s=D(t.value),l=z(()=>!!Pe(s.value)),c={[o.value.name]:s.value},u=k=>{c[o.value.name]=s.value,o.value=k,s.value=c[k.name]??void 0,p(s.value)};oe(()=>t.value,()=>{s.value=t.value}),oe(()=>t.defaultSetter,()=>{o.value=t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]});const p=k=>{r("change",k)},m=()=>{r("remove",t.name)},h=()=>{i.value=!0,a.value=Pe(s.value)?s.value.value:""},f=()=>{i.value=!1,a.value=""},v=async k=>De(k,t.context,!0)?(c[o.value.name]=s.value,s.value=k,r("change",k),!0):!1,g=async()=>{await Dn("确定要解除绑定吗?")&&(f(),s.value=void 0,r("change",""))};return(k,b)=>(y(),V(d(za),{class:"v-setter",size:"small","label-positon":"left"},{label:j(()=>[t.title?(y(),V(d(Gr),{key:0,placement:"top-start",content:t.title},{default:j(()=>[le(te(t.label||t.name),1)]),_:1},8,["content"])):(y(),R("span",Ux,te(t.label||t.name),1))]),default:j(()=>[P("div",Wx,[o.value?(y(),R("div",Jx,[l.value?M("",!0):(y(),V(Ke(o.value.component),me({key:0,current:t.current,context:t.context},o.value.props,{options:t.options,modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=w=>s.value=w),onChange:p,disabled:l.value}),null,16,["current","context","options","modelValue","disabled"])),l.value?(y(),V(d(Ge),{key:1,class:"v-expression-setter",disabled:"","model-value":"JSExpression"},{prefix:j(()=>[le(te(Kx))]),suffix:j(()=>[le(te(Gx))]),_:1})):M("",!0)])):M("",!0),P("div",qx,[t.variable?(y(),V(d(Eu),{key:0,onClick:h,class:ce(["v-icon-vars",{"is-active":l.value}]),title:"绑定变量"},null,8,["class"])):M("",!0),t.setters.length>1?(y(),V(d(Oa),{key:1,disabled:l.value,size:"small","popper-class":"v-setter-switch",onCommand:u},{dropdown:j(()=>[_(d(Da),null,{default:j(()=>[(y(!0),R(ne,null,ae(t.setters,w=>(y(),V(d(Fr),{command:w,key:w.name},{default:j(()=>[_(d(io),{class:ce({"is-placeholder":w.name!==o.value.name})},null,8,["class"]),le(" "+te(w.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:j(()=>[_(d(mu),{title:"切换设置器"})]),_:1},8,["disabled"])):M("",!0),t.removable?(y(),V(d(sr),{key:2,onClick:m,title:"删除"})):M("",!0)])]),i.value?(y(),V(d(T9),{key:0,current:t.current,context:t.context,value:a.value,modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=w=>i.value=w),submitMethod:v,onUnbind:g},null,8,["current","context","value","modelValue"])):M("",!0)]),_:1}))}}),Xx={class:"v-empty-region"},Qx=I({name:"EmptyRegion",__name:"empty",props:{region:{}},setup(n){return(e,t)=>(y(),R("div",Xx,"找不到符合【"+te(e.region)+"】名称的区域组件",1))}}),Zx={class:"v-brand-region"},e_=I({name:"BrandRegion",inheritAttrs:!1,__name:"brand",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ut(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),R("div",Zx,[(y(!0),R(ne,null,ae(d(r),s=>(y(),V(d(Wt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),t_={class:"v-toolbar-region"},n_=I({name:"ToolbarRegion",__name:"toolbar",props:{region:{},preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ut(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),R("div",t_,[(y(!0),R(ne,null,ae(d(r),s=>(y(),V(d(Wt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s,preview:a.preview},null,8,["region","widget","preview"]))),256))]))}}),r_={class:"v-actions-region"},i_=I({name:"ActionsRegion",inheritAttrs:!1,__name:"actions",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ut(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),R("div",r_,[(y(!0),R(ne,null,ae(d(r),s=>(y(),V(d(Wt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),a_={class:"v-apps-region"},o_={class:"v-apps-region__header"},s_={class:"v-apps-region__top"},l_={class:"v-apps-region__bottom"},c_={class:"v-apps-region__panels"},u_=I({name:"AppsRegion",inheritAttrs:!1,__name:"apps",props:{region:{},index:{default:0}},setup(n,{expose:e}){const t=n,r=Le(),{widgets:i,widgetsRef:a}=Ut(t.region),o=z(()=>i.value.filter(h=>h.openType==="panel")),s=z(()=>i.value.filter(h=>h.openType!=="panel")),l=o.value[t.index],c=D(l),u=D(l),p=h=>{c.value=h,u.value=u.value?.name===h.name?null:h},m=h=>{h.openType==="link"&&h.url&&window.open(h.url),h.openType==="dialog"&&p0({title:h.label,icon:h.icon,...h.props,content:h.component})};return oe(u,h=>{r.skeleton?.toggleCollapse(!h)}),e({widgets:i,widgetsRef:a,setActive:h=>{const f=o.value.find(v=>v.name===h);c.value=f,u.value=f}}),(h,f)=>(y(),R("div",a_,[P("div",o_,[P("div",s_,[(y(!0),R(ne,null,ae(o.value,v=>(y(),V(d(ml),{key:`icon-${v.name}`,icon:v.icon,label:v.label,active:c.value?.name===v.name,open:u.value?.name===v.name,onClick:g=>p(v)},null,8,["icon","label","active","open","onClick"]))),128))]),P("div",l_,[(y(!0),R(ne,null,ae(s.value,v=>(y(),V(d(ml),{key:`icon-${v.name}`,icon:v.icon,label:v.label,onClick:g=>m(v)},null,8,["icon","label","onClick"]))),128))])]),P("div",c_,[(y(!0),R(ne,null,ae(o.value,v=>(y(),V(bl,{key:v.name},[c.value?.name===v.name?(y(),V(d(Wt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:a,region:h.region,widget:v},null,8,["region","widget"])):M("",!0)],1024))),128))])]))}}),d_=I({name:"WorkspaceRegion",__name:"workspace",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ut(t.region),a=nn(r.value.map(m=>({name:m.name,command:m.name,label:m.label,closable:!!m.closable,props:m.props||{},checked:!m.closable}))),o=z(()=>a.filter(m=>!m.closable||m.checked)),s=z(()=>a.map(m=>({...m,disabled:!m.closable}))),l=D(o.value[0]?.name),c=z(()=>a.find(m=>m.name===l.value)?.props||{}),u=m=>{const h=a.find(f=>f.name===m);h&&(h.checked=!1),l.value===m&&(l.value=o.value[0]?.name)},p=m=>{const h=a.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=o.value[0]?.name))};return e({currentTab:l,widgets:r,widgetsRef:i,openTab:(m,h={})=>{const f=a.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(hi),{class:"v-workspace-region",items:o.value,menus:s.value,modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=f=>l.value=f),checkable:"",onRemove:u,onCommand:p},{default:j(()=>[(y(!0),R(ne,null,ae(d(r),f=>(y(),R(ne,{key:f.name},[l.value===f.name?(y(),V(d(Wt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:m.region,widget:{...f,props:c.value}},null,8,["region","widget"])):M("",!0)],64))),128))]),_:1},8,["items","menus","modelValue"]))}}),p_=I({name:"SettingsRegion",__name:"settings",props:{region:{}},setup(n,{expose:e}){const t=n,r=Le(),{current:i}=Ie(),{selected:a,isSelectBlock:o}=xt(),s=z(()=>o.value?ot.Block:ot.Node),{widgets:l,widgetsRef:c}=Ut(t.region,s),u=D(),p=D(!1),m=z(()=>l.value.map(g=>({name:g.name,label:g.label,actions:g.name==="Style"?[{name:"switch",icon:P2,background:"hover"}]:void 0}))),h=z(()=>{const g=a.value?.model;return g?r.assets.componentMap.get(g.name)?.doc:null});oe(i,g=>{r.skeleton?.settable(!!g)}),oe(s,()=>{u.value=m.value[0]?.name},{immediate:!0}),oe(u,()=>{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:c}),(g,k)=>d(i)?(y(),V(d(se),{key:0,class:"v-settings-region",fit:"",direction:"column"},{default:j(()=>[d(a)?(y(),V(d(se),{key:0,flex:"",justify:"space-between",align:"center",class:"v-settings-region__header"},{default:j(()=>[_(d(se),{class:"v-settings-region__title"},{default:j(()=>[_(d(so)),P("span",null,[le(te(d(a)?.model.name)+": ",1),P("i",null,te(d(a)?.model.id),1)])]),_:1}),h.value?(y(),V(d(se),{key:0},{default:j(()=>[_(d(Be),{onClick:f,icon:d(po),mode:"text",label:"帮助"},null,8,["icon"])]),_:1})):M("",!0)]),_:1})):M("",!0),d(a)&&!d(a).model.locked?(y(),V(d(se),{key:1,grow:"",padding:!1},{default:j(()=>[_(d(hi),{items:m.value,modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=b=>u.value=b),stretch:"",body:{padding:!1},onActionClick:v},{default:j(()=>[(y(!0),R(ne,null,ae(d(l),b=>(y(),R(ne,{key:b.name},[u.value===b.name?(y(),V(d(Wt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:c,region:g.region,widget:d(ht)({props:{isStyleCodeMode:p.value}},b)},null,8,["region","widget"])):M("",!0)],64))),128))]),_:1},8,["items","modelValue"])]),_:1})):M("",!0),d(a)?M("",!0):(y(),V(d(ze),{key:2,description:"请在左侧画布选中节点"})),d(a)&&d(a).model.locked?(y(),V(d(ze),{key:3,"image-size":1,description:"节点已被锁定, 禁止编辑"})):M("",!0)]),_:1})):M("",!0)}}),h_={class:"v-status-region"},m_=I({name:"StatusRegion",inheritAttrs:!1,__name:"status",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ut(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),R("div",h_,[(y(!0),R(ne,null,ae(d(r),s=>(y(),V(d(Wt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),f_=I({name:"PreviewRegion",__name:"preview",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ut(t.region),a=nn(r.value.map(l=>({name:l.name,command:l.name,label:l.label,closable:!!l.closable,checked:!1}))),o=z(()=>a.filter(l=>!l.closable||l.checked)),s=D(o.value[0]?.name);return e({currentTab:s,widgets:r,widgetsRef:i}),(l,c)=>(y(),V(d(hi),{class:"v-workspace-region",items:o.value,modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:j(()=>[(y(!0),R(ne,null,ae(d(r),u=>(y(),V(bl,{key:u.name},[s.value===u.name?(y(),V(d(Wt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:l.region,widget:u},null,8,["region","widget"])):M("",!0)],1024))),128))]),_:1},8,["items","modelValue"]))}}),fl={EmptyRegion:Qx,Brand:e_,Toolbar:n_,Actions:i_,Apps:u_,Workspace:d_,Settings:p_,Status:m_,Preview:f_};export{D_ as B,z_ as D,T_ as H,Je as _,Q0 as j};