const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BfFk43nw.js","./vue-CEtC17Vu.js"])))=>i.map(i=>d[i]);
var h=Object.defineProperty;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var w=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))x.call(t,e)&&w(o,e,t[e]);if(v)for(var e of v(t))P.call(t,e)&&w(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as A}from"./monaco-editor-xcHgnT1C.js";import{useRoute as g}from"./vue-router-BfFk43nw.js";import"./element-plus-MdtkBKvq.js";import"./vxe-mp8c2cud.js";import{O as k,k as V,R as O,A as T,y as B,a as D,j as I}from"./Editor-BuEQalqM-DucWgUTD.js";import{a as L,n as C,l as j,E as S}from"./utils-CEJpjMok.js";import{w as z}from"./@vueuse-DmJSJ3Sc.js";import{d as H,az as E,e as N,h as Q,L as b,P as q,o as F,Q as G,i as J}from"./vue-CEtC17Vu.js";import"./lodash-es-BaeSyToa.js";import"./@element-plus-icons-vue-CtYczY4K.js";import"./shared-CiMZBXIr.js";import"./dayjs-C1e0w4cr.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-B1eBEK5l.js";import"./marked-BQZxLJfc.js";const it=H({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new k(V(C)),s=([t,e]=E(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=O({loading:j,notify:C,useTitle:z,alert:L,access:s==null?void 0:s.access}),d=s?([t,e]=E(()=>new S(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:B.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>A(()=>import("./vue-CEtC17Vu.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-BfFk43nw.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=g(),f=N(),n=J(),R=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{I(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(D),a.use(r),R(a))})),Q(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;R(m)}})),(a,m)=>f.value?(F(),b(G(f.value),{key:0})):q("",!0)})}});export{it as default};
