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