var T=Object.defineProperty;var S=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))d.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(a))I.call(a,s)&&g(t,s,a[s]);return t};var l=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(E){i(E)}},c=r=>{try{n(s.throw(r))}catch(E){i(E)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{az as f}from"./vue-BfodOvnP.js";import{B as O,T as V,L as A,c as m,e as R,b,d as P,R as D,O as L,D as M,U as y,f as B,G as h,I as N,x as j,V as x,g as w,N as k,i as v,j as H,k as U,m as Y,q as G,r as K,P as W,Q as C,M as F,s as $,v as z,w as J,y as Q,z as q,C as X,J as Z,F as aa,E as sa,H as ea,K as ta,S as ra,W as ia,X as na,Y as oa,Z as Ea,$ as la,a0 as _a,a1 as ca,a2 as ga,a3 as Sa,a4 as pa,a5 as ua,a6 as Ta,a7 as da,a8 as Ia,a9 as fa,aa as Oa,ab as Va,ac as Aa,ad as ma,ae as Ra,af as ba,ag as Pa,ah as Da,ai as La,aj as Ma,ak as ya,al as Ba,am as ha,an as Na,t as ja,ao as xa,ap as wa,aq as ka,ar as va,as as Ha,at as Ua,au as Ya,av as Ga,aw as Ka,ax as Wa}from"./Editor-_84wgCQz-ClJHNWEl.js";import{E as Ca,a as Fa,b as $a,c as za}from"./element-plus-XVJlWyfz.js";const Ja=Object.freeze(Object.defineProperty({__proto__:null,ACCESS:O,API_METHOD_TYPES:V,Assets:A,Binder:m,Box:R,Designer:b,DevTools:P,EVENT_MODIFIERS:D,Editor:L,Engine:M,EventBinder:y,Icon:B,Item:h,KEYBOARD_EVENT_LIST:N,MOBILE_SIZE:j,MOUSE_EVENT_LIST:x,MicroApp:w,NAME_REGEX:k,NPM_REGISTRY_URL:v,OpenApi:H,PAD_SIZE:U,Panel:Y,REMOTE:G,REPORT_API:K,RegionType:W,RegionWrapper:C,Renderer:F,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:J,SetterView:Q,SetterWrapper:q,Simulator:X,Skeleton:Z,SkeletonWrapper:aa,SlotsPicker:sa,Tabs:ea,VERSION_REGEX:ta,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:na,VUE_DEVTOOLS_PATH:oa,VariableBinder:Ea,Viewer:la,Viewport:_a,WidgetGroup:ca,WidgetWrapper:ga,alert:Sa,builtInDeps:pa,builtInMaterials:ua,builtInSetters:Ta,builtInWidgets:da,confirm:Ia,createSlotsPicker:fa,defaultSetter:Oa,depsManager:Va,engineKey:Aa,expressionValidate:ma,getClassProperties:Ra,message:ba,normalizedStyle:Pa,notify:Da,proxyContext:La,readJsonFile:Ma,regions:ya,setterManager:Ba,setters:ha,useEngine:Na,widgetManager:ja,widgets:xa},Symbol.toStringTag,{value:"Module"}));class as{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Ua),Ja),Ha),o={Vue:f,__VTJ_PRO__:s,VtjUtils:va,VtjIcons:ka,VtjUI:wa,ElementPlus:Ca};for(const[E,u]of Object.entries(o))window[E]=u;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ya(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>Ga(e)).map(e=>`${s}${e}`);if(Ka(o),i.length){const e=yield Wa(i,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return a})}}function ss(){return za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){$a({title:a,message:t,type:s})}function ts(t,a){return Fa.alert(t,a)}export{as as E,ts as a,ss as l,es as n};
