const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
var R=Object.defineProperty;var C=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,x=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&v(o,e,t[e]);if(C)for(var e of C(t))A.call(t,e)&&v(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 E}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{B,x as I,I as V,M as D,_ as T,Y as k,C as S}from"./Editor-DIkkoBrq-1sBJeaGq.js";import{a as L,n as g,l as M,E as O}from"./utils-DgXOVItp.js";import{y as Y}from"./@vueuse-DGhgU4Wj.js";import{x as z,az as w,d as H,E as N,S as U,U as b,r as j,D as q,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CtuJnEp1.js";import"./marked--VTVY_DP.js";const it=z({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(I(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:M,notify:g,useTitle:Y,alert:L,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new O(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=D({mode:T.Runtime,service:_,materialPath:p,adapter:x(x({},u),d.adapter),dependencies:{Vue:()=>E(()=>import("./vue-Cs4cahp0.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>E(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=j(),n=F(),y=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{S(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(k),a.use(r),y(a))})),H(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;y(m)}})),(a,m)=>f.value?(q(),N(U(f.value),{key:0})):b("",!0)})}});export{it as default};
