@vtj/pro 0.12.65 → 0.12.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vtj/2.png +0 -0
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{Editor-BmXW3-2o-D8cEBEe8.js → Editor-Bdom0pBx-BMv6Nlyr.js} +81 -81
- package/dist/assets/Editor-Bdom0pBx-ttxEPtJz.css +1 -0
- package/dist/assets/auth-DH0i1F-W.js +1 -0
- package/dist/assets/{element-plus-iCQ0AeYB.js → element-plus-COProxbp.js} +1 -1
- package/dist/assets/{index-Y5OP8j6p.css → index-1XTA0ffa.css} +1 -1
- package/dist/assets/index-BmWJ2yPj.js +1 -0
- package/dist/assets/{index-fEjuB8u6.js → index-CapG4hKa.js} +2 -2
- package/dist/assets/{mockjs-3Ni81vZ8.js → mockjs-DG3OW7C0.js} +1 -1
- package/dist/assets/page-CXshMEMJ.js +2 -0
- package/dist/assets/{preview-D3vbMuy6.js → preview-CxxPUZbw.js} +1 -1
- package/dist/assets/{shared-DgX_DHMy.js → shared-Bnc4f-Fv.js} +1 -1
- package/dist/assets/utils-BidBdZeD.js +1 -0
- package/dist/assets/{vxe-Dwuldplg.js → vxe-Bet8YtVU.js} +1 -1
- package/dist/index.html +6 -6
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-BPSV-pNw.js → @dcloudio-uni-h5-vue-BEVv3z-t.js} +1 -1
- package/dist/uni/assets/index-BYHIipCr.js +77 -0
- package/dist/uni/assets/{vue-router-Uz_q6KEP.js → vue-router-5EIDvL-H.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +13 -13
- package/dist/assets/Editor-BmXW3-2o-1VcXkDKi.css +0 -1
- package/dist/assets/auth-oDTEwyxz.js +0 -1
- package/dist/assets/index-QqS6g_uz.js +0 -1
- package/dist/assets/page-CiQOFv6Z.js +0 -2
- package/dist/assets/utils-tMXybmQW.js +0 -1
- package/dist/uni/assets/index-DDqyu5CZ.js +0 -77
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}html,body,#app{width:100%;height:100%;padding:0;margin:0}#app{background:var(--el-bg-color, #fff);box-sizing:border-box}#app.is-page{padding:10px;box-sizing:border-box}#app.is-page.is-pure{background
|
|
1
|
+
*{box-sizing:border-box}html,body,#app{width:100%;height:100%;padding:0;margin:0}#app{background:var(--el-bg-color, #fff);box-sizing:border-box}#app.is-page{padding:10px;box-sizing:border-box}#app.is-page.is-pure{background:initial!important;padding:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var N=Object.defineProperty;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var P=(o,e,t)=>e in o?N(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,y=(o,e)=>{for(var t in e||(e={}))V.call(e,t)&&P(o,t,e[t]);if(v)for(var t of v(e))W.call(e,t)&&P(o,t,e[t]);return o};var h=(o,e,t)=>new Promise((_,i)=>{var l=n=>{try{r(t.next(n))}catch(c){i(c)}},a=n=>{try{r(t.throw(n))}catch(c){i(c)}},r=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,a);r((t=t.apply(o,e)).next())});import{useRoute as z}from"./vue-router-CezURGfh.js";import{s as I}from"./@vueuse-WO_0ftym.js";import{b as J,j as U,v as D,y as G,h as C,q as K,i as E}from"./Editor-Bdom0pBx-BMv6Nlyr.js";import"./element-plus-COProxbp.js";import"./vxe-Bet8YtVU.js";import{E as L,a as S,n as A,l as M}from"./utils-BidBdZeD.js";import{d as O,e as Q,az as B,f as X,c as Y,o as Z}from"./vue-ipWmmxHk.js";import{_ as ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-B8sWZqMY.js";import"./@element-plus-icons-vue-0BR09xN9.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-DG3OW7C0.js";import"./dayjs-DO-COJPZ.js";import"./marked-BQZxLJfc.js";import"./lodash-es-BL-d_OSa.js";import"./shared-Bnc4f-Fv.js";const te=O({__name:"index",setup(o){return h(this,null,function*(){let e,t;const _=z(),i=Q(),l=new J(U(A)),a=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),r=D({loading:M,notify:A,useTitle:I,alert:S,access:a==null?void 0:a.access}),n=G(y({alert:S},a==null?void 0:a.__ACCESS__)),c=a?([e,t]=B(()=>new L(a).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:k="hash",base:$="/",pageRouteName:g="page",remote:q,auth:b,checkVersion:F=!0,enhance:R}=a||{},T=()=>k==="hash",j=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);C.set("Switcher",{props:{onClick:s=>{const u=s.platform==="uniapp",p=location.pathname;let m=p===`${d}__vtj__/`?d:p;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const H=a.pageBasePath?`/${g}`:"",x=`${j($)}${u?`pages${H}`:g}/${f.id}`;m=T()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.set("Previewer",{props:{path:(s,u)=>{const p=location.pathname;return u.platform==="uniapp"?`${p}uni/#/pages/${s.id}`:`${p}#/preview/${s.id}`}}});const w=new K(y({container:i,service:l,materialPath:d,pageBasePath:$==="/"?"":$,adapter:r,access:n,remote:q,auth:b,checkVersion:F,enhance:R},c));return w.ready(()=>h(null,null,function*(){yield E(300),w.openFile(_.query.id)})),X(()=>_.query.id,s=>h(null,null,function*(){yield E(300),w.openFile(s)})),(s,u)=>(Z(),Y("div",{class:"designer",ref_key:"container",ref:i},null,512))})}}),ye=ee(te,[["__scopeId","data-v-79f08aff"]]);export{ye as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{d as _,K as p,u as s,an as d,o as m,L as u,aB as f,T as h,aw as v}from"./vue-ipWmmxHk.js";import{z as g,d as y}from"./element-plus-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BmWJ2yPj.js","./vue-router-CezURGfh.js","./vue-ipWmmxHk.js","./@vueuse-WO_0ftym.js","./Editor-Bdom0pBx-BMv6Nlyr.js","./monaco-editor-B8sWZqMY.js","./monaco-editor-Cpw7ccEV.css","./element-plus-COProxbp.js","./lodash-es-BL-d_OSa.js","./@element-plus-icons-vue-0BR09xN9.js","./shared-Bnc4f-Fv.js","./dayjs-DO-COJPZ.js","./element-plus-CxJJf0IB.css","./vxe-Bet8YtVU.js","./vxe-BAb1d5vW.css","./html2canvas-CIV5arX1.js","./mockjs-DG3OW7C0.js","./marked-BQZxLJfc.js","./Editor-Bdom0pBx-ttxEPtJz.css","./utils-BidBdZeD.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-CrVHlN_5.css","./preview-CxxPUZbw.js","./page-CXshMEMJ.js","./uni-page-Bs0TAzEa.js","./uni-page-Diqmj53r.css","./auth-DH0i1F-W.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as _,K as p,u as s,an as d,o as m,L as u,aB as f,T as h,aw as v}from"./vue-ipWmmxHk.js";import{z as g,d as y}from"./element-plus-COProxbp.js";import{_ as r}from"./monaco-editor-B8sWZqMY.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-CezURGfh.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-WO_0ftym.js";import"./@element-plus-icons-vue-0BR09xN9.js";import"./shared-Bnc4f-Fv.js";import"./dayjs-DO-COJPZ.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function a(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=a(e);fetch(e.href,t)}})();const O=_({__name:"app",setup(l){return(o,a)=>{const i=d("router-view");return m(),p(s(y),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-BmWJ2yPj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-CxxPUZbw.js"),__vite__mapDeps([22,5,6,1,2,7,8,3,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-CXshMEMJ.js"),__vite__mapDeps([23,5,6,1,2,7,8,3,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-Bs0TAzEa.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-DH0i1F-W.js"),__vite__mapDeps([26,7,2,8,3,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],w=E({history:L(),routes:P}),c=v(O);c.use(w);c.mount("#app");
|
|
@@ -6,4 +6,4 @@ import{g as getDefaultExportFromCjs}from"./dayjs-DO-COJPZ.js";var mock$1={export
|
|
|
6
6
|
`?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):$==="\r"||$==="\u2028"||$==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return K!==e&&(K>e&&(K=0,s0={line:1,column:1,seenCR:!1}),t(s0,K,e),K=e),s0}function R(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function I(){var e,t,g,k,S;return e=r,t=W(),t!==null?(g=r,E.charCodeAt(r)===124?(k=L2,r++):(k=null,w===0&&R(F2)),k!==null?(S=I(),S!==null?(k=[k,S],g=k):(r=g,g=M)):(r=g,g=M),g===null&&(g=G),g!==null?(H=e,t=I2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function W(){var e,t,g,k,S;if(e=r,t=z(),t===null&&(t=G),t!==null)if(g=r,w++,k=B(),w--,k===null?g=G:(r=g,g=M),g!==null){for(k=[],S=Y(),S===null&&(S=X());S!==null;)k.push(S),S=Y(),S===null&&(S=X());k!==null?(S=J(),S===null&&(S=G),S!==null?(H=e,t=q2(t,k,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return e}function X(){var e;return e=x2(),e===null&&(e=w2(),e===null&&(e=A2())),e}function z(){var e,t;return e=r,E.charCodeAt(r)===94?(t=D0,r++):(t=null,w===0&&R(P0)),t!==null&&(H=e,t=N2()),t===null&&(r=e),e=t,e}function J(){var e,t;return e=r,E.charCodeAt(r)===36?(t=U2,r++):(t=null,w===0&&R(j2)),t!==null&&(H=e,t=B2()),t===null&&(r=e),e=t,e}function Y(){var e,t,g;return e=r,t=X(),t!==null?(g=B(),g!==null?(H=e,t=z2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function B(){var e,t,g;return w++,e=r,t=q(),t!==null?(g=m2(),g===null&&(g=G),g!==null?(H=e,t=X2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(G2)),e}function q(){var e;return e=f2(),e===null&&(e=h2(),e===null&&(e=p2(),e===null&&(e=d2(),e===null&&(e=v2(),e===null&&(e=g2()))))),e}function f2(){var e,t,g,k,S,j;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===44?(k=K2,r++):(k=null,w===0&&R($2)),k!==null?(S=V(),S!==null?(E.charCodeAt(r)===125?(j=O0,r++):(j=null,w===0&&R(L0)),j!==null?(H=e,t=W2(g,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function h2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.substr(r,2)===F0?(k=F0,r+=2):(k=null,w===0&&R(J2)),k!==null?(H=e,t=Y2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function p2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===125?(k=O0,r++):(k=null,w===0&&R(L0)),k!==null?(H=e,t=V2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function d2(){var e,t;return e=r,E.charCodeAt(r)===43?(t=_2,r++):(t=null,w===0&&R(Q2)),t!==null&&(H=e,t=Z2()),t===null&&(r=e),e=t,e}function v2(){var e,t;return e=r,E.charCodeAt(r)===42?(t=e1,r++):(t=null,w===0&&R(t1)),t!==null&&(H=e,t=n1()),t===null&&(r=e),e=t,e}function g2(){var e,t;return e=r,E.charCodeAt(r)===63?(t=I0,r++):(t=null,w===0&&R(q0)),t!==null&&(H=e,t=r1()),t===null&&(r=e),e=t,e}function m2(){var e;return E.charCodeAt(r)===63?(e=I0,r++):(e=null,w===0&&R(q0)),e}function V(){var e,t,g;if(e=r,t=[],N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0)),g!==null)for(;g!==null;)t.push(g),N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0));else t=M;return t!==null&&(H=e,t=a1(t)),t===null&&(r=e),e=t,e}function x2(){var e,t,g,k;return e=r,E.charCodeAt(r)===40?(t=u1,r++):(t=null,w===0&&R(l1)),t!==null?(g=C2(),g===null&&(g=E2(),g===null&&(g=b2(),g===null&&(g=y2()))),g!==null?(E.charCodeAt(r)===41?(k=i1,r++):(k=null,w===0&&R(o1)),k!==null?(H=e,t=c1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function y2(){var e,t;return e=r,t=I(),t!==null&&(H=e,t=s1(t)),t===null&&(r=e),e=t,e}function b2(){var e,t,g;return e=r,E.substr(r,2)===j0?(t=j0,r+=2):(t=null,w===0&&R(f1)),t!==null?(g=I(),g!==null?(H=e,t=h1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function C2(){var e,t,g;return e=r,E.substr(r,2)===B0?(t=B0,r+=2):(t=null,w===0&&R(p1)),t!==null?(g=I(),g!==null?(H=e,t=d1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function E2(){var e,t,g;return e=r,E.substr(r,2)===z0?(t=z0,r+=2):(t=null,w===0&&R(v1)),t!==null?(g=I(),g!==null?(H=e,t=g1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function w2(){var e,t,g,k,S;if(w++,e=r,E.charCodeAt(r)===91?(t=x1,r++):(t=null,w===0&&R(y1)),t!==null)if(E.charCodeAt(r)===94?(g=D0,r++):(g=null,w===0&&R(P0)),g===null&&(g=G),g!==null){for(k=[],S=f0(),S===null&&(S=_());S!==null;)k.push(S),S=f0(),S===null&&(S=_());k!==null?(E.charCodeAt(r)===93?(S=b1,r++):(S=null,w===0&&R(C1)),S!==null?(H=e,t=E1(g,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return w--,e===null&&(t=null,w===0&&R(m1)),e}function f0(){var e,t,g,k;return w++,e=r,t=_(),t!==null?(E.charCodeAt(r)===45?(g=R1,r++):(g=null,w===0&&R(k1)),g!==null?(k=_(),k!==null?(H=e,t=A1(t,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(w1)),e}function _(){var e;return w++,e=k2(),e===null&&(e=R2()),w--,e===null&&w===0&&R(M1),e}function R2(){var e,t;return e=r,H1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(T1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,e}function k2(){var e;return e=S2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))),e}function A2(){var e;return e=M2(),e===null&&(e=T2(),e===null&&(e=H2())),e}function M2(){var e,t;return e=r,E.charCodeAt(r)===46?(t=S1,r++):(t=null,w===0&&R(D1)),t!==null&&(H=e,t=P1()),t===null&&(r=e),e=t,e}function H2(){var e,t;return w++,e=r,L1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(F1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,w--,e===null&&(t=null,w===0&&R(O1)),e}function T2(){var e;return e=D2(),e===null&&(e=P2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=O2(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))))),e}function S2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=I1()),t===null&&(r=e),e=t,e}function D2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=q1()),t===null&&(r=e),e=t,e}function P2(){var e,t;return e=r,E.substr(r,2)===X0?(t=X0,r+=2):(t=null,w===0&&R(N1)),t!==null&&(H=e,t=U1()),t===null&&(r=e),e=t,e}function h0(){var e,t;return e=r,E.substr(r,2)===K0?(t=K0,r+=2):(t=null,w===0&&R(j1)),t!==null&&(H=e,t=B1()),t===null&&(r=e),e=t,e}function p0(){var e,t;return e=r,E.substr(r,2)===$0?(t=$0,r+=2):(t=null,w===0&&R(z1)),t!==null&&(H=e,t=G1()),t===null&&(r=e),e=t,e}function d0(){var e,t;return e=r,E.substr(r,2)===W0?(t=W0,r+=2):(t=null,w===0&&R(X1)),t!==null&&(H=e,t=K1()),t===null&&(r=e),e=t,e}function v0(){var e,t;return e=r,E.substr(r,2)===J0?(t=J0,r+=2):(t=null,w===0&&R($1)),t!==null&&(H=e,t=W1()),t===null&&(r=e),e=t,e}function g0(){var e,t;return e=r,E.substr(r,2)===Y0?(t=Y0,r+=2):(t=null,w===0&&R(J1)),t!==null&&(H=e,t=Y1()),t===null&&(r=e),e=t,e}function m0(){var e,t;return e=r,E.substr(r,2)===V0?(t=V0,r+=2):(t=null,w===0&&R(V1)),t!==null&&(H=e,t=_1()),t===null&&(r=e),e=t,e}function x0(){var e,t;return e=r,E.substr(r,2)===_0?(t=_0,r+=2):(t=null,w===0&&R(Q1)),t!==null&&(H=e,t=Z1()),t===null&&(r=e),e=t,e}function y0(){var e,t;return e=r,E.substr(r,2)===Q0?(t=Q0,r+=2):(t=null,w===0&&R(e3)),t!==null&&(H=e,t=t3()),t===null&&(r=e),e=t,e}function b0(){var e,t;return e=r,E.substr(r,2)===Z0?(t=Z0,r+=2):(t=null,w===0&&R(n3)),t!==null&&(H=e,t=r3()),t===null&&(r=e),e=t,e}function C0(){var e,t;return e=r,E.substr(r,2)===e2?(t=e2,r+=2):(t=null,w===0&&R(a3)),t!==null&&(H=e,t=u3()),t===null&&(r=e),e=t,e}function E0(){var e,t;return e=r,E.substr(r,2)===t2?(t=t2,r+=2):(t=null,w===0&&R(l3)),t!==null&&(H=e,t=i3()),t===null&&(r=e),e=t,e}function w0(){var e,t,g;return e=r,E.substr(r,2)===n2?(t=n2,r+=2):(t=null,w===0&&R(o3)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function O2(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(s3.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(f3)),g!==null?(H=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function R0(){var e,t,g,k;if(e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null){if(g=[],i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2)),k!==null)for(;k!==null;)g.push(k),i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2));else g=M;g!==null?(H=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function k0(){var e,t,g,k;if(e=r,E.substr(r,2)===c2?(t=c2,r+=2):(t=null,w===0&&R(d3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function A0(){var e,t,g,k;if(e=r,E.substr(r,2)===s2?(t=s2,r+=2):(t=null,w===0&&R(g3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function M0(){var e,t;return e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null&&(H=e,t=x3()),t===null&&(r=e),e=t,e}function H0(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}var l0,Q=arguments.length>1?arguments[1]:{},T0={regexp:I},S0=I,M=null,G="",L2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},q2=function(e,t,g){return new a([e].concat(t).concat([g]))},D0="^",P0='"^"',N2=function(){return new n("start")},U2="$",j2='"$"',B2=function(){return new n("end")},z2=function(e,t){return new p(e,t)},G2="Quantifier",X2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',K2=",",$2='","',O0="}",L0='"}"',W2=function(e,t){return new f(e,t)},F0=",}",J2='",}"',Y2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",q0='"?"',r1=function(){return new f(0,1)},N0=/^[0-9]/,U0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},j0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},B0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},z0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',E1=function(e,t){return new o(!!e,t)},w1="CharacterRange",R1="-",k1='"-"',A1=function(e,t){return new v(e,t)},M1="Character",H1=/^[^\\\]]/,T1="[^\\\\\\]]",c0=function(e){return new y(e)},S1=".",D1='"."',P1=function(){return new n("any-character")},O1="Literal",L1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",G0='"\\\\b"',I1=function(){return new n("backspace")},q1=function(){return new n("word-boundary")},X0="\\B",N1='"\\\\B"',U1=function(){return new n("non-word-boundary")},K0="\\d",j1='"\\\\d"',B1=function(){return new n("digit")},$0="\\D",z1='"\\\\D"',G1=function(){return new n("non-digit")},W0="\\f",X1='"\\\\f"',K1=function(){return new n("form-feed")},J0="\\n",$1='"\\\\n"',W1=function(){return new n("line-feed")},Y0="\\r",J1='"\\\\r"',Y1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,H=0,K=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],w=0;if("startRule"in Q){if(!(Q.startRule in T0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');S0=T0[Q.startRule]}if(n.offset=F,n.text=O,l0=S0(),l0!==null&&r===E.length)return l0;throw u0(a0),H=Math.max(r,r0),new P(a0,H<E.length?E.charAt(H):null,H,U(H).line,U(H).column)}return T(P,Error),{SyntaxError:P,parse:N}}(),D=1,L={};l.exports=A},function(l,x,n){var u=n(3),a=n(5),s={extend:u.extend},c=C(97,122),p=C(65,90),f=C(48,57),o=C(32,47)+C(58,64)+C(91,96)+C(123,126),v=C(32,126),y=` \f
|
|
7
7
|
\r \v \u2028\u2029`,m={"\\w":c+p+f+"_","\\W":o.replace("_",""),"\\s":y,"\\S":function(){for(var h=v,d=0;d<y.length;d++)h=h.replace(y[d],"");return h}(),"\\d":f,"\\D":c+p+o};function C(h,d){for(var b="",A=h;A<=d;A++)b+=String.fromCharCode(A);return b}s.gen=function(h,d,b){return b=b||{guid:1},s[h.type]?s[h.type](h,d,b):s.token(h,d,b)},s.extend({token:function(h,d,b){switch(h.type){case"start":case"end":return"";case"any-character":return a.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return a.pick(f.split(""));case"non-digit":return a.pick((c+p+o).split(""));case"form-feed":break;case"line-feed":return h.body||h.text;case"carriage-return":break;case"white-space":return a.pick(y.split(""));case"non-white-space":return a.pick((c+p+f).split(""));case"tab":break;case"vertical-tab":break;case"word":return a.pick((c+p+f).split(""));case"non-word":return a.pick(o.replace("_","").split(""))}return h.body||h.text},alternate:function(h,d,b){return this.gen(a.boolean()?h.left:h.right,d,b)},match:function(h,d,b){d="";for(var A=0;A<h.body.length;A++)d+=this.gen(h.body[A],d,b);return d},"capture-group":function(h,d,b){return d=this.gen(h.body,d,b),b[b.guid++]=d,d},"non-capture-group":function(h,d,b){return this.gen(h.body,d,b)},"positive-lookahead":function(h,d,b){return this.gen(h.body,d,b)},"negative-lookahead":function(h,d,b){return""},quantified:function(h,d,b){d="";for(var A=this.quantifier(h.quantifier),D=0;D<A;D++)d+=this.gen(h.body,d,b);return d},quantifier:function(h,d,b){var A=Math.max(h.min,0),D=isFinite(h.max)?h.max:A+a.integer(3,7);return a.integer(A,D)},charset:function(h,d,b){if(h.invert)return this["invert-charset"](h,d,b);var A=a.pick(h.body);return this.gen(A,d,b)},"invert-charset":function(h,d,b){for(var A=v,D=0,L;D<h.body.length;D++)switch(L=h.body[D],L.type){case"literal":A=A.replace(L.body,"");break;case"range":for(var T=this.gen(L.start,d,b).charCodeAt(),P=this.gen(L.end,d,b).charCodeAt(),N=T;N<=P;N++)A=A.replace(String.fromCharCode(N),"");default:var E=m[L.text];if(E)for(var O=0;O<=E.length;O++)A=A.replace(E[O],"")}return a.pick(A.split(""))},range:function(h,d,b){var A=this.gen(h.start,d,b).charCodeAt(),D=this.gen(h.end,d,b).charCodeAt();return String.fromCharCode(a.integer(A,D))},literal:function(h,d,b){return h.escaped?h.body:h.text},unicode:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},hex:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},octal:function(h,d,b){return String.fromCharCode(parseInt(h.code,8))},"back-reference":function(h,d,b){return b[h.code]||""},CONTROL_CHARACTER_MAP:function(){for(var h="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),d=`\0 \x07 \b
|
|
8
8
|
\v \f \r \x1B `.split(" "),b={},A=0;A<h.length;A++)b[h[A]]=d[A];return b}(),"control-character":function(h,d,b){return this.CONTROL_CHARACTER_MAP[h.code]}}),l.exports=s},function(l,x,n){l.exports=n(24)},function(l,x,n){var u=n(2),a=n(3),s=n(4);function c(p,f,o){o=o||[];var v={name:typeof f=="string"?f.replace(u.RE_KEY,"$1"):f,template:p,type:a.type(p),rule:s.parse(f)};switch(v.path=o.slice(0),v.path.push(f===void 0?"ROOT":v.name),v.type){case"array":v.items=[],a.each(p,function(y,m){v.items.push(c(y,m,v.path))});break;case"object":v.properties=[],a.each(p,function(y,m){v.properties.push(c(y,m,v.path))});break}return v}l.exports=c},function(l,x,n){l.exports=n(26)},function(l,x,n){var u=n(2),a=n(3),s=n(23);function c(o,v){for(var y=s(o),m=p.diff(y,v),C=0;C<m.length;C++);return m}var p={diff:function(v,y,m){var C=[];return this.name(v,y,m,C)&&this.type(v,y,m,C)&&(this.value(v,y,m,C),this.properties(v,y,m,C),this.items(v,y,m,C)),C},name:function(o,v,y,m){var C=m.length;return f.equal("name",o.path,y+"",o.name+"",m),m.length===C},type:function(o,v,y,m){var C=m.length;switch(o.type){case"string":if(o.template.match(u.RE_PLACEHOLDER))return!0;break;case"array":if(o.rule.parameters&&(o.rule.min!==void 0&&o.rule.max===void 0&&o.rule.count===1||o.rule.parameters[2]))return!0;break;case"function":return!0}return f.equal("type",o.path,a.type(v),o.type,m),m.length===C},value:function(o,v,y,m){var C=m.length,h=o.rule,d=o.type;if(d==="object"||d==="array"||d==="function")return!0;if(!h.parameters){switch(d){case"regexp":return f.match("value",o.path,v,o.template,m),m.length===C;case"string":if(o.template.match(u.RE_PLACEHOLDER))return m.length===C;break}return f.equal("value",o.path,v,o.template,m),m.length===C}var b;switch(d){case"number":var A=(v+"").split(".");A[0]=+A[0],h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[0],Math.min(h.min,h.max),m),f.lessThanOrEqualTo("value",o.path,A[0],Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&f.equal("value",o.path,A[0],h.min,m,"[value] "+y),h.decimal&&(h.dmin!==void 0&&h.dmax!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[1].length,h.dmin,m),f.lessThanOrEqualTo("value",o.path,A[1].length,h.dmax,m)),h.dmin!==void 0&&h.dmax===void 0&&f.equal("value",o.path,A[1].length,h.dmin,m));break;case"boolean":break;case"string":b=v.match(new RegExp(o.template,"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break;case"regexp":b=v.match(new RegExp(o.template.source.replace(/^\^|\$$/g,""),"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break}return m.length===C},properties:function(o,v,y,m){var C=m.length,h=o.rule,d=a.keys(v);if(o.properties){if(o.rule.parameters?(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("properties length",o.path,d.length,Math.min(h.min,h.max),m),f.lessThanOrEqualTo("properties length",o.path,d.length,Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&h.count!==1&&f.equal("properties length",o.path,d.length,h.min,m)):f.equal("properties length",o.path,d.length,o.properties.length,m),m.length!==C)return!1;for(var b=0;b<d.length;b++)m.push.apply(m,this.diff(function(){var A;return a.each(o.properties,function(D){D.name===d[b]&&(A=D)}),A||o.properties[b]}(),v[d[b]],d[b]));return m.length===C}},items:function(o,v,y,m){var C=m.length;if(o.items){var h=o.rule;if(!o.rule.parameters)f.equal("items length",o.path,v.length,o.items.length,m);else{if(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("items",o.path,v.length,Math.min(h.min,h.max)*o.items.length,m,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),f.lessThanOrEqualTo("items",o.path,v.length,Math.max(h.min,h.max)*o.items.length,m,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),h.min!==void 0&&h.max===void 0){if(h.count===1)return m.length===C;f.equal("items length",o.path,v.length,h.min*o.items.length,m)}if(h.parameters[2])return m.length===C}if(m.length!==C)return!1;for(var d=0;d<v.length;d++)m.push.apply(m,this.diff(o.items[d%o.items.length],v[d],d%o.items.length));return m.length===C}}},f={message:function(o){return(o.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",o.type.toUpperCase()).replace("{ltype}",o.type.toLowerCase()).replace("{path}",a.isArray(o.path)&&o.path.join(".")||o.path).replace("{action}",o.action).replace("{expected}",o.expected).replace("{actual}",o.actual)},equal:function(o,v,y,m,C,h){if(y===m)return!0;switch(o){case"type":if(m==="regexp"&&y==="string")return!0;break}var d={path:v,type:o,actual:y,expected:m,action:"is equal to",message:h};return d.message=f.message(d),C.push(d),!1},match:function(o,v,y,m,C,h){if(m.test(y))return!0;var d={path:v,type:o,actual:y,expected:m,action:"matches",message:h};return d.message=f.message(d),C.push(d),!1},notEqual:function(o,v,y,m,C,h){if(y!==m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is not equal to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThan:function(o,v,y,m,C,h){if(y>m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y<m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThanOrEqualTo:function(o,v,y,m,C,h){if(y>=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c},function(l,x,n){l.exports=n(28)},function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(h,d,b,A){var D=document.createEvent("CustomEvent");return D.initCustomEvent(h,d,b,A),D}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={200:"OK"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,A){var D=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:A,options:{url:h,type:C}}),this.custom.timeout=function(O){if(typeof O=="number")return O;if(typeof O=="string"&&!~O.indexOf("-"))return parseInt(O,10);if(typeof O=="string"&&~O.indexOf("-")){var F=O.split("-"),U=parseInt(F[0],10),R=parseInt(F[1],10);return Math.round(Math.random()*(R-U))+U}}(o._settings.timeout);var L=y(this.custom.options);function T(O){for(var F=0;F<p.length;F++)try{D[p[F]]=P[p[F]]}catch(U){}D.dispatchEvent(new Event(O.type))}if(!L){var P=v();this.custom.xhr=P;for(var N=0;N<s.length;N++)P.addEventListener(s[N],T);b?P.open(C,h,d,b,A):P.open(C,h,d);for(var E=0;E<c.length;E++)try{P[c[E]]=D[c[E]]}catch(O){}return}this.match=!0,this.custom.template=L,this.readyState=o.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(C,h){if(!this.match){this.custom.xhr.setRequestHeader(C,h);return}var d=this.custom.requestHeaders;d[C]?d[C]+=","+h:d[C]=h},timeout:0,withCredentials:!1,upload:{},send:function(h){var d=this;if(this.custom.options.body=h,!this.match){this.custom.xhr.send(h);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(b,this.custom.timeout):b();function b(){d.readyState=o.HEADERS_RECEIVED,d.dispatchEvent(new Event("readystatechange")),d.readyState=o.LOADING,d.dispatchEvent(new Event("readystatechange")),d.status=200,d.statusText=f[200],d.response=d.responseText=JSON.stringify(m(d.custom.template,d.custom.options),null,4),d.readyState=o.DONE,d.dispatchEvent(new Event("readystatechange")),d.dispatchEvent(new Event("load")),d.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=o.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),u.extend(o.prototype,{responseURL:"",status:o.UNSENT,statusText:"",getResponseHeader:function(C){return this.match?this.custom.responseHeaders[C.toLowerCase()]:this.custom.xhr.getResponseHeader(C)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var C=this.custom.responseHeaders,h="";for(var d in C)C.hasOwnProperty(d)&&(h+=d+": "+C[d]+`\r
|
|
9
|
-
`);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,D=location.href,L=A.exec(D.toLowerCase())||[];return b.test(L[1])}();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,D){if(u.type(A)==="string")return A===D;if(u.type(A)==="regexp")return A.test(D)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o}])})}(mock$1)),mock$1.exports}var mockExports=requireMock();const
|
|
9
|
+
`);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,D=location.href,L=A.exec(D.toLowerCase())||[];return b.test(L[1])}();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,D){if(u.type(A)==="string")return A===D;if(u.type(A)==="regexp")return A.test(D)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o}])})}(mock$1)),mock$1.exports}var mockExports=requireMock();const Do=getDefaultExportFromCjs(mockExports);export{Do as D};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CezURGfh.js","./vue-ipWmmxHk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var x=Object.defineProperty;var w=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var A=(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)&&A(o,e,t[e]);if(w)for(var e of w(t))R.call(t,e)&&A(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,r)=>{var u=s=>{try{p(e.next(s))}catch(m){r(m)}},d=s=>{try{p(e.throw(s))}catch(m){r(m)}},p=s=>s.done?_(s.value):Promise.resolve(s.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as C}from"./monaco-editor-B8sWZqMY.js";import{useRoute as g}from"./vue-router-CezURGfh.js";import"./element-plus-COProxbp.js";import"./vxe-Bet8YtVU.js";import{b as V,j as S,v as T,S as k,w as B,A as D,m as I}from"./Editor-Bdom0pBx-BMv6Nlyr.js";import{a as O,n as E,l as b,E as j}from"./utils-BidBdZeD.js";import{s as L}from"./@vueuse-WO_0ftym.js";import{d as z,az as h,e as H,f as K,K as N,O as q,P as F,o as G,h as J}from"./vue-ipWmmxHk.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-0BR09xN9.js";import"./shared-Bnc4f-Fv.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-DG3OW7C0.js";import"./marked-BQZxLJfc.js";const mt=z({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new V(S(E)),r=([t,e]=h(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=T({loading:b,notify:E,useTitle:L,alert:O,access:r==null?void 0:r.access}),d=r?([t,e]=h(()=>new j(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=r||{},{provider:s,onReady:m}=k({mode:B.Runtime,service:_,materialPath:p,adapter:v(v({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-ipWmmxHk.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-CezURGfh.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=g(),f=H(),n=J(),y=a=>c(null,null,function*(){f.value=yield s.getRenderComponent(l.params.id.toString(),i=>{I(a,l,i)})});return m(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(D),a.use(s),y(a))})),K(()=>l.params.id,a=>c(null,null,function*(){if(a){const i=n==null?void 0:n.appContext.app;if(!i)return;y(i)}})),(a,i)=>f.value?(G(),N(F(f.value),{key:0})):q("",!0)})}});export{mt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CezURGfh.js","./vue-ipWmmxHk.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var R=Object.defineProperty;var w=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var h=(o,e,t)=>e in o?R(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)&&h(o,t,e[t]);if(w)for(var t of w(e))P.call(e,t)&&h(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(m){s(m)}},n=a=>{try{i(t.throw(a))}catch(m){s(m)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as A}from"./monaco-editor-B8sWZqMY.js";import{useRoute as V}from"./vue-router-CezURGfh.js";import"./element-plus-
|
|
2
|
+
var R=Object.defineProperty;var w=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var h=(o,e,t)=>e in o?R(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)&&h(o,t,e[t]);if(w)for(var t of w(e))P.call(e,t)&&h(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(m){s(m)}},n=a=>{try{i(t.throw(a))}catch(m){s(m)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as A}from"./monaco-editor-B8sWZqMY.js";import{useRoute as V}from"./vue-router-CezURGfh.js";import"./element-plus-COProxbp.js";import"./vxe-Bet8YtVU.js";import{b as g,j as S,v as T,S as k,w as B,$ as D,A as I,m as O}from"./Editor-Bdom0pBx-BMv6Nlyr.js";import{a as b,n as E,l as j,E as L}from"./utils-BidBdZeD.js";import{s as $}from"./@vueuse-WO_0ftym.js";import{d as z,az as y,e as H,K,O as N,P as q,o as F,h as G}from"./vue-ipWmmxHk.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-0BR09xN9.js";import"./shared-Bnc4f-Fv.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-DG3OW7C0.js";import"./marked-BQZxLJfc.js";const me=z({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(S(E)),s=([e,t]=y(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=T({loading:j,notify:E,useTitle:$,alert:b,access:s==null?void 0:s.access}),n=s?([e,t]=y(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:m}=k({mode:B.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>A(()=>import("./vue-ipWmmxHk.js").then(p=>p.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-CezURGfh.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=V(),u=H(),l=G();return m(()=>f(null,null,function*(){const p=yield D(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),p&&r.use(p,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{O(r,v,C)}))})),(p,r)=>u.value?(F(),K(q(u.value),{key:0})):N("",!0)})}});export{me as default};
|
|
@@ -22,4 +22,4 @@ var ei=Object.defineProperty,ni=Object.defineProperties;var ri=Object.getOwnProp
|
|
|
22
22
|
* @return {boolean} True if the event is supported.
|
|
23
23
|
* @internal
|
|
24
24
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
25
|
-
*/const Ht=Math.min,Et=Math.max,me=Math.round,ce=Math.floor,nt=e=>({x:e,y:e}),ra={left:"right",right:"left",bottom:"top",top:"bottom"},ia={start:"end",end:"start"};function Ge(e,t,n){return Et(e,Ht(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Mr(e){return e==="x"?"y":"x"}function sn(e){return e==="y"?"height":"width"}const oa=new Set(["top","bottom"]);function pt(e){return oa.has(Rt(e))?"y":"x"}function fn(e){return Mr(pt(e))}function aa(e,t,n){n===void 0&&(n=!1);const r=Qt(e),i=fn(e),o=sn(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ve(a)),[a,ve(a)]}function sa(e){const t=ve(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>ia[t])}const Qn=["left","right"],tr=["right","left"],fa=["top","bottom"],ca=["bottom","top"];function ua(e,t,n){switch(e){case"top":case"bottom":return n?t?tr:Qn:t?Qn:tr;case"left":case"right":return t?fa:ca;default:return[]}}function la(e,t,n,r){const i=Qt(e);let o=ua(Rt(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Ze)))),o}function ve(e){return e.replace(/left|right|bottom|top/g,t=>ra[t])}function da(e){return I({top:0,right:0,bottom:0,left:0},e)}function Pr(e){return typeof e!="number"?da(e):{top:e,right:e,bottom:e,left:e}}function ye(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function er(e,t,n){let{reference:r,floating:i}=e;const o=pt(t),a=fn(t),s=sn(a),f=Rt(t),c=o==="y",l=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let p;switch(f){case"top":p={x:l,y:r.y-i.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(Qt(t)){case"start":p[a]-=m*(n&&c?-1:1);break;case"end":p[a]+=m*(n&&c?-1:1);break}return p}const pa=(e,t,n)=>st(null,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:h}=er(c,r,f),m=r,p={},v=0;for(let u=0;u<s.length;u++){const{name:y,fn:d}=s[u],{x:w,y:g,data:b,reset:x}=yield d({x:l,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});l=w!=null?w:l,h=g!=null?g:h,p=ut(I({},p),{[y]:I(I({},p[y]),b)}),x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:l,y:h}=er(c,m,f)),u=-1)}return{x:l,y:h,placement:m,strategy:i,middlewareData:p}});function cn(e,t){return st(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:h="floating",altBoundary:m=!1,padding:p=0}=Jt(t,e),v=Pr(p),y=s[m?h==="floating"?"reference":"floating":h],d=ye(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),w=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(g))?(yield o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=ye(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:g,strategy:f}):w);return{top:(d.top-x.top+v.top)/b.y,bottom:(x.bottom-d.bottom+v.bottom)/b.y,left:(d.left-x.left+v.left)/b.x,right:(x.right-d.right+v.right)/b.x}})}const ha=e=>({name:"arrow",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:h=0}=Jt(e,n)||{};if(l==null)return{};const m=Pr(h),p={x:r,y:i},v=fn(o),u=sn(v),y=yield s.getDimensions(l),d=v==="y",w=d?"top":"left",g=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[v]-p[v]-a.floating[u],O=p[v]-a.reference[v],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const P=x/2-O/2,T=E/2-y[u]/2-1,F=Ht(m[w],T),M=Ht(m[g],T),S=F,_=E-y[u]-M,j=E/2-y[u]/2+P,q=Ge(S,j,_),D=!c.arrow&&Qt(o)!=null&&j!==q&&a.reference[u]/2-(j<S?F:M)-y[u]/2<0,C=D?j<S?j-S:j-_:0;return{[v]:p[v]+C,data:I({[v]:q,centerOffset:j-q-C},D&&{alignmentOffset:C}),reset:D}})}}),ga=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return st(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,j=Jt(e,n),{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=j,d=Fe(j,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Rt(o),g=pt(f),b=Rt(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),O=p||(b||!y?[ve(f)]:sa(f)),A=u!=="none";!p&&A&&O.push(...la(f,y,u,x));const E=[f,...O],P=yield cn(n,d),T=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&T.push(P[w]),m){const q=aa(o,s,x);T.push(P[q[0]],P[q[1]])}if(F=[...F,{placement:o,overflows:T}],!T.every(q=>q<=0)){var M,S;const q=(((M=a.flip)==null?void 0:M.index)||0)+1,D=E[q];if(D&&(!(m==="alignment"?g!==pt(D):!1)||F.every(H=>H.overflows[0]>0&&pt(H.placement)===g)))return{data:{index:q,overflows:F},reset:{placement:D}};let C=(S=F.filter(L=>L.overflows[0]<=0).sort((L,H)=>L.overflows[1]-H.overflows[1])[0])==null?void 0:S.placement;if(!C)switch(v){case"bestFit":{var _;const L=(_=F.filter(H=>{if(A){const X=pt(H.placement);return X===g||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,mt)=>X+mt,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:_[0];L&&(C=L);break}case"initialPlacement":C=f;break}if(o!==C)return{reset:{placement:C}}}return{}})}}},ma=new Set(["left","top"]);function va(e,t){return st(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Rt(n),s=Qt(n),f=pt(n)==="y",c=ma.has(a)?-1:1,l=o&&f?-1:1,h=Jt(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),f?{x:p*l,y:m*c}:{x:m*c,y:p*l}})}const ya=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return st(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield va(n,e);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:ut(I({},c),{placement:s})}})}}},ba=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o}=n,d=Jt(e,n),{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}}}=d,c=Fe(d,["mainAxis","crossAxis","limiter"]),l={x:r,y:i},h=yield cn(n,c),m=pt(Rt(o)),p=Mr(m);let v=l[p],u=l[m];if(a){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",b=v+h[w],x=v-h[g];v=Ge(b,v,x)}if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=u+h[w],x=u-h[g];u=Ge(b,u,x)}const y=f.fn(ut(I({},n),{[p]:v,[m]:u}));return ut(I({},y),{data:{x:y.x-r,y:y.y-i,enabled:{[p]:a,[m]:s}}})})}}};function we(){return typeof window!="undefined"}function Ct(e){return Tr(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tr(e){return we()?e instanceof Node||e instanceof U(e).Node:!1}function J(e){return we()?e instanceof Element||e instanceof U(e).Element:!1}function it(e){return we()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function nr(e){return!we()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}const xa=new Set(["inline","contents"]);function te(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xa.has(i)}const wa=new Set(["table","td","th"]);function Oa(e){return wa.has(Ct(e))}const Aa=[":popover-open",":modal"];function Oe(e){return Aa.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Ea=["transform","translate","scale","rotate","perspective"],Ra=["transform","translate","scale","rotate","perspective","filter"],Sa=["paint","layout","strict","content"];function un(e){const t=ln(),n=J(e)?Q(e):e;return Ea.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ra.some(r=>(n.willChange||"").includes(r))||Sa.some(r=>(n.contain||"").includes(r))}function Fa(e){let t=ht(e);for(;it(t)&&!Lt(t);){if(un(t))return t;if(Oe(t))return null;t=ht(t)}return null}function ln(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ma=new Set(["html","body","#document"]);function Lt(e){return Ma.has(Ct(e))}function Q(e){return U(e).getComputedStyle(e)}function Ae(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||ot(e);return nr(t)?t.host:t}function qr(e){const t=ht(e);return Lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&te(t)?t:qr(t)}function Yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=U(i);if(o){const s=Ke(a);return t.concat(a,a.visualViewport||[],te(i)?i:[],s&&n?Yt(s):[])}return t.concat(i,Yt(i,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dr(e){const t=Q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=it(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=me(n)!==o||me(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function dn(e){return J(e)?e:e.contextElement}function Pt(e){const t=dn(e);if(!it(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dr(t);let a=(o?me(n.width):n.width)/r,s=(o?me(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Pa=nt(0);function Nr(e){const t=U(e);return!ln()||!t.visualViewport?Pa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ta(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function St(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=dn(e);let a=nt(1);t&&(r?J(r)&&(a=Pt(r)):a=Pt(e));const s=Ta(o,n,r)?Nr(o):nt(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,h=i.height/a.y;if(o){const m=U(o),p=r&&J(r)?U(r):r;let v=m,u=Ke(v);for(;u&&r&&p!==v;){const y=Pt(u),d=u.getBoundingClientRect(),w=Q(u),g=d.left+(u.clientLeft+parseFloat(w.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(w.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,h*=y.y,f+=g,c+=b,v=U(u),u=Ke(v)}}return ye({width:l,height:h,x:f,y:c})}function pn(e,t){const n=Ae(e).scrollLeft;return t?t.left+n:St(ot(e)).left+n}function kr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pn(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function qa(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=ot(r),s=t?Oe(t.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=nt(1);const l=nt(0),h=it(r);if((h||!h&&!o)&&((Ct(r)!=="body"||te(a))&&(f=Ae(r)),it(r))){const p=St(r);c=Pt(r),l.x=p.x+r.clientLeft,l.y=p.y+r.clientTop}const m=a&&!h&&!o?kr(a,f,!0):nt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+m.x,y:n.y*c.y-f.scrollTop*c.y+l.y+m.y}}function Da(e){return Array.from(e.getClientRects())}function Na(e){const t=ot(e),n=Ae(e),r=e.ownerDocument.body,i=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pn(e);const s=-n.scrollTop;return Q(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function ka(e,t){const n=U(e),r=ot(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const c=ln();(!c||c&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s,y:f}}const ja=new Set(["absolute","fixed"]);function Ha(e,t){const n=St(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=it(e)?Pt(e):nt(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function rr(e,t,n){let r;if(t==="viewport")r=ka(e,n);else if(t==="document")r=Na(ot(e));else if(J(t))r=Ha(t,n);else{const i=Nr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ye(r)}function jr(e,t){const n=ht(e);return n===t||!J(n)||Lt(n)?!1:Q(n).position==="fixed"||jr(n,t)}function La(e,t){const n=t.get(e);if(n)return n;let r=Yt(e,[],!1).filter(s=>J(s)&&Ct(s)!=="body"),i=null;const o=Q(e).position==="fixed";let a=o?ht(e):e;for(;J(a)&&!Lt(a);){const s=Q(a),f=un(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&ja.has(i.position)||te(a)&&!f&&jr(e,a))?r=r.filter(l=>l!==a):i=s,a=ht(a)}return t.set(e,r),r}function Ca(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Oe(t)?[]:La(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const h=rr(t,l,i);return c.top=Et(h.top,c.top),c.right=Ht(h.right,c.right),c.bottom=Ht(h.bottom,c.bottom),c.left=Et(h.left,c.left),c},rr(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ba(e){const{width:t,height:n}=Dr(e);return{width:t,height:n}}function Wa(e,t,n){const r=it(t),i=ot(t),o=n==="fixed",a=St(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const f=nt(0);function c(){f.x=pn(i)}if(r||!r&&!o)if((Ct(t)!=="body"||te(i))&&(s=Ae(t)),r){const p=St(t,!0,o,t);f.x=p.x+t.clientLeft,f.y=p.y+t.clientTop}else i&&c();o&&!r&&i&&c();const l=i&&!r&&!o?kr(i,s):nt(0),h=a.left+s.scrollLeft-f.x-l.x,m=a.top+s.scrollTop-f.y-l.y;return{x:h,y:m,width:a.width,height:a.height}}function De(e){return Q(e).position==="static"}function ir(e,t){if(!it(e)||Q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function Hr(e,t){const n=U(e);if(Oe(e))return n;if(!it(e)){let i=ht(e);for(;i&&!Lt(i);){if(J(i)&&!De(i))return i;i=ht(i)}return n}let r=ir(e,t);for(;r&&Oa(r)&&De(r);)r=ir(r,t);return r&&Lt(r)&&De(r)&&!un(r)?n:r||Fa(e)||n}const Va=function(e){return st(this,null,function*(){const t=this.getOffsetParent||Hr,n=this.getDimensions,r=yield n(e.floating);return{reference:Wa(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function _a(e){return Q(e).direction==="rtl"}const Ia={convertOffsetParentRelativeRectToViewportRelativeRect:qa,getDocumentElement:ot,getClippingRect:Ca,getOffsetParent:Hr,getElementRects:Va,getClientRects:Da,getDimensions:Ba,getScale:Pt,isElement:J,isRTL:_a};function Lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $a(e,t){let n=null,r;const i=ot(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:h,width:m,height:p}=c;if(s||t(),!m||!p)return;const v=ce(h),u=ce(i.clientWidth-(l+m)),y=ce(i.clientHeight-(h+p)),d=ce(l),g={rootMargin:-v+"px "+-u+"px "+-y+"px "+-d+"px",threshold:Et(0,Ht(1,f))||1};let b=!0;function x(O){const A=O[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Lr(c,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,ut(I({},g),{root:i.ownerDocument}))}catch(O){n=new IntersectionObserver(x,g)}n.observe(e)}return a(!0),o}function Ja(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=dn(e),l=i||o?[...c?Yt(c):[],...Yt(t)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const h=c&&s?$a(c,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(d=>{let[w]=d;w&&w.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),c&&!f&&p.observe(c),p.observe(t));let v,u=f?St(e):null;f&&y();function y(){const d=St(e);u&&!Lr(u,d)&&n(),u=d,v=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),h==null||h(),(d=p)==null||d.disconnect(),p=null,f&&cancelAnimationFrame(v)}}const Qa=cn,ts=ya,es=ba,ns=ga,rs=ha,is=(e,t,n)=>{const r=new Map,i=I({platform:Ia},n),o=ut(I({},i.platform),{_c:r});return pa(e,t,ut(I({},i),{platform:o}))};var Tt=null,Ne=null,lt=null,or="z-index-manage",bt=null,ar="z-index-style",Cr="m",Br="s",Gt={m:1e3,s:1e3};function hn(){return Tt||typeof document!="undefined"&&(Tt=document),Tt}function Wr(){return Tt&&!Ne&&(Ne=Tt.body||Tt.getElementsByTagName("body")[0]),Ne}function za(){var e=0,t=hn();if(t){var n=Wr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Ua(){if(!bt){var e=hn();e&&(bt=e.getElementById(ar),bt||(bt=e.createElement("style"),bt.id=ar,e.getElementsByTagName("head")[0].appendChild(bt)))}return bt}function Vr(){var e=Ua();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Ee()+";"+t+"sub"+n+":"+vn()+"}"}}function _r(){if(!lt){var e=hn();if(e&&(lt=e.getElementById(or),!lt)){var t=Wr();t&&(lt=e.createElement("div"),lt.id=or,lt.style.display="none",t.appendChild(lt),gn(Gt.m),mn(Gt.s))}}return lt}function Ir(e){return function(t){if(t){t=Number(t),Gt[e]=t;var n=_r();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Vr(),Gt[e]}}var gn=Ir(Cr);function $r(e,t){return function(r){var i,o=_r();if(o){var a=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Gt[e]),r?Number(r)<i?t():r:i}}var Ee=$r(Cr,zr);function zr(){return gn(Ee()+1)}var mn=Ir(Br),Ur=$r(Br,Xr);function vn(){return Ee()+Ur()}function Xr(){return mn(Ur()+1),vn()}var os={setCurrent:gn,getCurrent:Ee,getNext:zr,setSubCurrent:mn,getSubCurrent:vn,getSubNext:Xr,getMax:za};Vr();export{os as D,fr as E,xe as S,Ga as T,Ka as Y,rs as a,Ja as b,is as c,Qa as d,ns as f,Za as m,ts as o,es as s,Ya as y};
|
|
25
|
+
*/const Ht=Math.min,Et=Math.max,me=Math.round,ce=Math.floor,nt=e=>({x:e,y:e}),ra={left:"right",right:"left",bottom:"top",top:"bottom"},ia={start:"end",end:"start"};function Ge(e,t,n){return Et(e,Ht(t,n))}function Jt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Mr(e){return e==="x"?"y":"x"}function sn(e){return e==="y"?"height":"width"}const oa=new Set(["top","bottom"]);function pt(e){return oa.has(Rt(e))?"y":"x"}function fn(e){return Mr(pt(e))}function aa(e,t,n){n===void 0&&(n=!1);const r=Qt(e),i=fn(e),o=sn(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ve(a)),[a,ve(a)]}function sa(e){const t=ve(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>ia[t])}const Qn=["left","right"],tr=["right","left"],fa=["top","bottom"],ca=["bottom","top"];function ua(e,t,n){switch(e){case"top":case"bottom":return n?t?tr:Qn:t?Qn:tr;case"left":case"right":return t?fa:ca;default:return[]}}function la(e,t,n,r){const i=Qt(e);let o=ua(Rt(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Ze)))),o}function ve(e){return e.replace(/left|right|bottom|top/g,t=>ra[t])}function da(e){return I({top:0,right:0,bottom:0,left:0},e)}function Pr(e){return typeof e!="number"?da(e):{top:e,right:e,bottom:e,left:e}}function ye(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function er(e,t,n){let{reference:r,floating:i}=e;const o=pt(t),a=fn(t),s=sn(a),f=Rt(t),c=o==="y",l=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let p;switch(f){case"top":p={x:l,y:r.y-i.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(Qt(t)){case"start":p[a]-=m*(n&&c?-1:1);break;case"end":p[a]+=m*(n&&c?-1:1);break}return p}const pa=(e,t,n)=>st(null,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:h}=er(c,r,f),m=r,p={},v=0;for(let u=0;u<s.length;u++){const{name:y,fn:d}=s[u],{x:w,y:g,data:b,reset:x}=yield d({x:l,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});l=w!=null?w:l,h=g!=null?g:h,p=ut(I({},p),{[y]:I(I({},p[y]),b)}),x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:l,y:h}=er(c,m,f)),u=-1)}return{x:l,y:h,placement:m,strategy:i,middlewareData:p}});function cn(e,t){return st(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:h="floating",altBoundary:m=!1,padding:p=0}=Jt(t,e),v=Pr(p),y=s[m?h==="floating"?"reference":"floating":h],d=ye(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),w=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(g))?(yield o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=ye(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:g,strategy:f}):w);return{top:(d.top-x.top+v.top)/b.y,bottom:(x.bottom-d.bottom+v.bottom)/b.y,left:(d.left-x.left+v.left)/b.x,right:(x.right-d.right+v.right)/b.x}})}const ha=e=>({name:"arrow",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:h=0}=Jt(e,n)||{};if(l==null)return{};const m=Pr(h),p={x:r,y:i},v=fn(o),u=sn(v),y=yield s.getDimensions(l),d=v==="y",w=d?"top":"left",g=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[v]-p[v]-a.floating[u],O=p[v]-a.reference[v],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const P=x/2-O/2,T=E/2-y[u]/2-1,F=Ht(m[w],T),M=Ht(m[g],T),S=F,_=E-y[u]-M,j=E/2-y[u]/2+P,q=Ge(S,j,_),D=!c.arrow&&Qt(o)!=null&&j!==q&&a.reference[u]/2-(j<S?F:M)-y[u]/2<0,C=D?j<S?j-S:j-_:0;return{[v]:p[v]+C,data:I({[v]:q,centerOffset:j-q-C},D&&{alignmentOffset:C}),reset:D}})}}),ga=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return st(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,j=Jt(e,n),{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=j,d=Fe(j,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Rt(o),g=pt(f),b=Rt(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),O=p||(b||!y?[ve(f)]:sa(f)),A=u!=="none";!p&&A&&O.push(...la(f,y,u,x));const E=[f,...O],P=yield cn(n,d),T=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&T.push(P[w]),m){const q=aa(o,s,x);T.push(P[q[0]],P[q[1]])}if(F=[...F,{placement:o,overflows:T}],!T.every(q=>q<=0)){var M,S;const q=(((M=a.flip)==null?void 0:M.index)||0)+1,D=E[q];if(D&&(!(m==="alignment"?g!==pt(D):!1)||F.every(H=>pt(H.placement)===g?H.overflows[0]>0:!0)))return{data:{index:q,overflows:F},reset:{placement:D}};let C=(S=F.filter(L=>L.overflows[0]<=0).sort((L,H)=>L.overflows[1]-H.overflows[1])[0])==null?void 0:S.placement;if(!C)switch(v){case"bestFit":{var _;const L=(_=F.filter(H=>{if(A){const X=pt(H.placement);return X===g||X==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(X=>X>0).reduce((X,mt)=>X+mt,0)]).sort((H,X)=>H[1]-X[1])[0])==null?void 0:_[0];L&&(C=L);break}case"initialPlacement":C=f;break}if(o!==C)return{reset:{placement:C}}}return{}})}}},ma=new Set(["left","top"]);function va(e,t){return st(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Rt(n),s=Qt(n),f=pt(n)==="y",c=ma.has(a)?-1:1,l=o&&f?-1:1,h=Jt(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),f?{x:p*l,y:m*c}:{x:m*c,y:p*l}})}const ya=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return st(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield va(n,e);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:ut(I({},c),{placement:s})}})}}},ba=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return st(this,null,function*(){const{x:r,y:i,placement:o}=n,d=Jt(e,n),{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}}}=d,c=Fe(d,["mainAxis","crossAxis","limiter"]),l={x:r,y:i},h=yield cn(n,c),m=pt(Rt(o)),p=Mr(m);let v=l[p],u=l[m];if(a){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",b=v+h[w],x=v-h[g];v=Ge(b,v,x)}if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=u+h[w],x=u-h[g];u=Ge(b,u,x)}const y=f.fn(ut(I({},n),{[p]:v,[m]:u}));return ut(I({},y),{data:{x:y.x-r,y:y.y-i,enabled:{[p]:a,[m]:s}}})})}}};function we(){return typeof window!="undefined"}function Ct(e){return Tr(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tr(e){return we()?e instanceof Node||e instanceof U(e).Node:!1}function J(e){return we()?e instanceof Element||e instanceof U(e).Element:!1}function it(e){return we()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function nr(e){return!we()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}const xa=new Set(["inline","contents"]);function te(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xa.has(i)}const wa=new Set(["table","td","th"]);function Oa(e){return wa.has(Ct(e))}const Aa=[":popover-open",":modal"];function Oe(e){return Aa.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Ea=["transform","translate","scale","rotate","perspective"],Ra=["transform","translate","scale","rotate","perspective","filter"],Sa=["paint","layout","strict","content"];function un(e){const t=ln(),n=J(e)?Q(e):e;return Ea.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ra.some(r=>(n.willChange||"").includes(r))||Sa.some(r=>(n.contain||"").includes(r))}function Fa(e){let t=ht(e);for(;it(t)&&!Lt(t);){if(un(t))return t;if(Oe(t))return null;t=ht(t)}return null}function ln(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ma=new Set(["html","body","#document"]);function Lt(e){return Ma.has(Ct(e))}function Q(e){return U(e).getComputedStyle(e)}function Ae(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nr(e)&&e.host||ot(e);return nr(t)?t.host:t}function qr(e){const t=ht(e);return Lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&te(t)?t:qr(t)}function Yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=U(i);if(o){const s=Ke(a);return t.concat(a,a.visualViewport||[],te(i)?i:[],s&&n?Yt(s):[])}return t.concat(i,Yt(i,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dr(e){const t=Q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=it(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=me(n)!==o||me(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function dn(e){return J(e)?e:e.contextElement}function Pt(e){const t=dn(e);if(!it(t))return nt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dr(t);let a=(o?me(n.width):n.width)/r,s=(o?me(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Pa=nt(0);function Nr(e){const t=U(e);return!ln()||!t.visualViewport?Pa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ta(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function St(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=dn(e);let a=nt(1);t&&(r?J(r)&&(a=Pt(r)):a=Pt(e));const s=Ta(o,n,r)?Nr(o):nt(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,h=i.height/a.y;if(o){const m=U(o),p=r&&J(r)?U(r):r;let v=m,u=Ke(v);for(;u&&r&&p!==v;){const y=Pt(u),d=u.getBoundingClientRect(),w=Q(u),g=d.left+(u.clientLeft+parseFloat(w.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(w.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,h*=y.y,f+=g,c+=b,v=U(u),u=Ke(v)}}return ye({width:l,height:h,x:f,y:c})}function pn(e,t){const n=Ae(e).scrollLeft;return t?t.left+n:St(ot(e)).left+n}function kr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pn(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function qa(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=ot(r),s=t?Oe(t.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=nt(1);const l=nt(0),h=it(r);if((h||!h&&!o)&&((Ct(r)!=="body"||te(a))&&(f=Ae(r)),it(r))){const p=St(r);c=Pt(r),l.x=p.x+r.clientLeft,l.y=p.y+r.clientTop}const m=a&&!h&&!o?kr(a,f,!0):nt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+m.x,y:n.y*c.y-f.scrollTop*c.y+l.y+m.y}}function Da(e){return Array.from(e.getClientRects())}function Na(e){const t=ot(e),n=Ae(e),r=e.ownerDocument.body,i=Et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pn(e);const s=-n.scrollTop;return Q(r).direction==="rtl"&&(a+=Et(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function ka(e,t){const n=U(e),r=ot(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const c=ln();(!c||c&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s,y:f}}const ja=new Set(["absolute","fixed"]);function Ha(e,t){const n=St(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=it(e)?Pt(e):nt(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function rr(e,t,n){let r;if(t==="viewport")r=ka(e,n);else if(t==="document")r=Na(ot(e));else if(J(t))r=Ha(t,n);else{const i=Nr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ye(r)}function jr(e,t){const n=ht(e);return n===t||!J(n)||Lt(n)?!1:Q(n).position==="fixed"||jr(n,t)}function La(e,t){const n=t.get(e);if(n)return n;let r=Yt(e,[],!1).filter(s=>J(s)&&Ct(s)!=="body"),i=null;const o=Q(e).position==="fixed";let a=o?ht(e):e;for(;J(a)&&!Lt(a);){const s=Q(a),f=un(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&ja.has(i.position)||te(a)&&!f&&jr(e,a))?r=r.filter(l=>l!==a):i=s,a=ht(a)}return t.set(e,r),r}function Ca(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Oe(t)?[]:La(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const h=rr(t,l,i);return c.top=Et(h.top,c.top),c.right=Ht(h.right,c.right),c.bottom=Ht(h.bottom,c.bottom),c.left=Et(h.left,c.left),c},rr(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ba(e){const{width:t,height:n}=Dr(e);return{width:t,height:n}}function Wa(e,t,n){const r=it(t),i=ot(t),o=n==="fixed",a=St(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const f=nt(0);function c(){f.x=pn(i)}if(r||!r&&!o)if((Ct(t)!=="body"||te(i))&&(s=Ae(t)),r){const p=St(t,!0,o,t);f.x=p.x+t.clientLeft,f.y=p.y+t.clientTop}else i&&c();o&&!r&&i&&c();const l=i&&!r&&!o?kr(i,s):nt(0),h=a.left+s.scrollLeft-f.x-l.x,m=a.top+s.scrollTop-f.y-l.y;return{x:h,y:m,width:a.width,height:a.height}}function De(e){return Q(e).position==="static"}function ir(e,t){if(!it(e)||Q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function Hr(e,t){const n=U(e);if(Oe(e))return n;if(!it(e)){let i=ht(e);for(;i&&!Lt(i);){if(J(i)&&!De(i))return i;i=ht(i)}return n}let r=ir(e,t);for(;r&&Oa(r)&&De(r);)r=ir(r,t);return r&&Lt(r)&&De(r)&&!un(r)?n:r||Fa(e)||n}const Va=function(e){return st(this,null,function*(){const t=this.getOffsetParent||Hr,n=this.getDimensions,r=yield n(e.floating);return{reference:Wa(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function _a(e){return Q(e).direction==="rtl"}const Ia={convertOffsetParentRelativeRectToViewportRelativeRect:qa,getDocumentElement:ot,getClippingRect:Ca,getOffsetParent:Hr,getElementRects:Va,getClientRects:Da,getDimensions:Ba,getScale:Pt,isElement:J,isRTL:_a};function Lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $a(e,t){let n=null,r;const i=ot(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:h,width:m,height:p}=c;if(s||t(),!m||!p)return;const v=ce(h),u=ce(i.clientWidth-(l+m)),y=ce(i.clientHeight-(h+p)),d=ce(l),g={rootMargin:-v+"px "+-u+"px "+-y+"px "+-d+"px",threshold:Et(0,Ht(1,f))||1};let b=!0;function x(O){const A=O[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Lr(c,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,ut(I({},g),{root:i.ownerDocument}))}catch(O){n=new IntersectionObserver(x,g)}n.observe(e)}return a(!0),o}function Ja(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=dn(e),l=i||o?[...c?Yt(c):[],...Yt(t)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const h=c&&s?$a(c,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(d=>{let[w]=d;w&&w.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),c&&!f&&p.observe(c),p.observe(t));let v,u=f?St(e):null;f&&y();function y(){const d=St(e);u&&!Lr(u,d)&&n(),u=d,v=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),h==null||h(),(d=p)==null||d.disconnect(),p=null,f&&cancelAnimationFrame(v)}}const Qa=cn,ts=ya,es=ba,ns=ga,rs=ha,is=(e,t,n)=>{const r=new Map,i=I({platform:Ia},n),o=ut(I({},i.platform),{_c:r});return pa(e,t,ut(I({},i),{platform:o}))};var Tt=null,Ne=null,lt=null,or="z-index-manage",bt=null,ar="z-index-style",Cr="m",Br="s",Gt={m:1e3,s:1e3};function hn(){return Tt||typeof document!="undefined"&&(Tt=document),Tt}function Wr(){return Tt&&!Ne&&(Ne=Tt.body||Tt.getElementsByTagName("body")[0]),Ne}function za(){var e=0,t=hn();if(t){var n=Wr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Ua(){if(!bt){var e=hn();e&&(bt=e.getElementById(ar),bt||(bt=e.createElement("style"),bt.id=ar,e.getElementsByTagName("head")[0].appendChild(bt)))}return bt}function Vr(){var e=Ua();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Ee()+";"+t+"sub"+n+":"+vn()+"}"}}function _r(){if(!lt){var e=hn();if(e&&(lt=e.getElementById(or),!lt)){var t=Wr();t&&(lt=e.createElement("div"),lt.id=or,lt.style.display="none",t.appendChild(lt),gn(Gt.m),mn(Gt.s))}}return lt}function Ir(e){return function(t){if(t){t=Number(t),Gt[e]=t;var n=_r();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Vr(),Gt[e]}}var gn=Ir(Cr);function $r(e,t){return function(r){var i,o=_r();if(o){var a=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Gt[e]),r?Number(r)<i?t():r:i}}var Ee=$r(Cr,zr);function zr(){return gn(Ee()+1)}var mn=Ir(Br),Ur=$r(Br,Xr);function vn(){return Ee()+Ur()}function Xr(){return mn(Ur()+1),vn()}var os={setCurrent:gn,getCurrent:Ee,getNext:zr,setSubCurrent:mn,getSubCurrent:vn,getSubNext:Xr,getMax:za};Vr();export{os as D,fr as E,xe as S,Ga as T,Ka as Y,rs as a,Ja as b,is as c,Qa as d,ns as f,Za as m,ts as o,es as s,Ya as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var p=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?f(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,E=(t,a)=>{for(var s in a||(a={}))d.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))T.call(a,s)&&g(t,s,a[s]);return t};var _=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(l){n(l)}},c=r=>{try{i(s.throw(r))}catch(l){n(l)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as O}from"./vue-ipWmmxHk.js";import{P as I,s as A,p as V,n as m,X as b,a as h,L as P,O as R,q as M,c as y,H as N,d as B,Y as L,N as D,W as K,B as x,M as H,K as k,F as w,e as U,f as W,D as Y,g as j,J as F,Q as v,Z as G,t as $,k as z,l as J,o as q,r as X,u as Z,x as C,z as Q,C as aa,E as sa,G as ea,I as ta,R as ra,T as na,U as ia,V as oa,_ as la,a0 as _a,a1 as Ea,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as ua,a7 as fa,a8 as da,a9 as Ta,aa as Oa,ab as Ia,ac as Aa,ad as Va,ae as ma,af as ba,ag as ha,ah as Pa,ai as Ra,aj as Ma,ak as ya,al as Na,am as Ba,an as La,ao as Da,ap as Ka,h as xa,aq as Ha,ar as ka,as as wa,at as Ua,au as Wa,av as Ya,aw as ja,ax as Fa,ay as va,az as Ga,aA as $a}from"./Editor-Bdom0pBx-BMv6Nlyr.js";import{E as za,a as Ja,b as qa,c as Xa}from"./element-plus-COProxbp.js";const Za=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:I,Assets:A,Binder:V,Box:m,Designer:b,DevTools:h,EVENT_MODIFIERS:P,Editor:R,Engine:M,EventBinder:y,GET_TOKENS_LINK:N,Icon:B,Item:L,KEYBOARD_EVENT_LIST:D,MAX_TOKENS:K,MOBILE_SIZE:x,MOUSE_EVENT_LIST:H,MicroApp:k,NAME_REGEX:w,NPM_REGISTRY_URL:U,OpenApi:W,PAD_SIZE:Y,Panel:j,REPORT_API:F,RegionType:v,RegionWrapper:G,Renderer:$,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:J,STATE_KEY:q,SetterView:X,SetterWrapper:Z,Simulator:C,Skeleton:Q,SkeletonWrapper:aa,SlotsPicker:sa,State:ea,Tabs:ta,VERSION_REGEX:ra,VTJ_DESIGNER_VERSION:na,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:oa,VUE_DEVTOOLS_PATH:la,VariableBinder:_a,Viewer:Ea,Viewport:ca,WidgetGroup:ga,WidgetWrapper:pa,alert:Sa,builtInDeps:ua,builtInMaterials:fa,builtInSetters:da,builtInWidgets:Ta,confirm:Oa,createSlotsPicker:Ia,defaultSetter:Aa,depsManager:Va,engineKey:ma,expressionValidate:ba,getClassProperties:ha,message:Pa,normalizedStyle:Ra,notify:Ma,proxyContext:ya,readJsonFile:Na,regions:Ba,setterManager:La,setters:Da,useEngine:Ka,widgetManager:xa,widgets:Ha},Symbol.toStringTag,{value:"Module"}));class es{constructor(a){_(this,"urls",[]);_(this,"library","");_(this,"params",[]);_(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Ya),Za),Wa),o={Vue:O,__VTJ_PRO__:s,VtjUtils:Ua,VtjIcons:wa,VtjUI:ka,ElementPlus:za};for(const[l,u]of Object.entries(o))window[l]=u;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Fa(e)).map(e=>`${s}${e}`);if(va(o),n.length){const e=yield Ga(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask"];return $a(this.config,a)}}function ts(){return Xa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function rs(t,a="",s="warning"){qa({title:a,message:t,type:s})}function ns(t,a){return Ja.alert(t,a)}export{es as E,ns as a,ts as l,rs as n};
|