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