@vtj/pro 0.8.25 → 0.8.26
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/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/ui/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/utils/index.umd.js +2 -2
- package/dist/assets/{@element-plus-Vqo2cZUp.js → @element-plus-D-VgZRoc.js} +1 -1
- package/dist/assets/{@vue-DXjs1h6G.js → @vue-DQ4WxKa6.js} +1 -1
- package/dist/assets/@vueuse-8c25s-Jh.js +1 -0
- package/dist/assets/{Editor-bVAaI2zL-DG8AR_al.js → Editor-bVAaI2zL-DPZFq3jT.js} +1 -1
- package/dist/assets/{element-plus-CmJkoIJL.js → element-plus-BAJGvxQa.js} +2 -2
- package/dist/assets/index-Bk6g5atx.js +1 -0
- package/dist/assets/index-DjAxfaii.js +209 -0
- package/dist/assets/{index-CzJDrYeY.js → index-yJspJ_Ow.js} +2 -2
- package/dist/assets/{preview-CemgC4vI.js → preview-DVOMDOhU.js} +2 -2
- package/dist/assets/{vue-DsB9nCS4.js → vue-J7T6X87Y.js} +1 -1
- package/dist/assets/{vue-router-pxpwpbvr.js → vue-router-CPADLzbG.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +10 -10
- package/src/extension.ts +2 -0
- package/dist/assets/@vueuse-ByKc4Ggo.js +0 -1
- package/dist/assets/index-DFLh1Xwk.js +0 -1
- package/dist/assets/index-Dqe2lhtz.js +0 -209
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
* @vue/shared v3.4.21
|
|
27
27
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
28
28
|
* @license MIT
|
|
29
|
-
**/const La=()=>{},du=Object.prototype.hasOwnProperty,$a=(e,t)=>du.call(e,t),Ha=Array.isArray,Va=e=>pr(e)==="[object Date]",ms=e=>typeof e=="function",Da=e=>typeof e=="string",hu=e=>e!==null&&typeof e=="object",ka=e=>(hu(e)||ms(e))&&ms(e.then)&&ms(e.catch),pu=Object.prototype.toString,pr=e=>pu.call(e),ja=e=>pr(e).slice(8,-1),Ba=e=>pr(e)==="[object Object]",gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,Ua=gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),mu=/\B([A-Z])/g,Ka=gr(e=>e.replace(mu,"-$1").toLowerCase()),Wa=gr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{Lf as $,$a as A,ya as B,ms as C,ht as D,he as E,ae as F,Sn as G,Fl as H,or as I,hf as J,Oc as K,Bc as L,Gu as M,La as N,qn as O,Gn as P,of as Q,ta as R,xo as S,ca as T,Yi as U,ju as V,Hu as W,da as X,So as Y,Nu as Z,ne as _,Ao as a,Sa as a$,$o as a0,Ws as a1,rr as a2,Ra as a3,na as a4,Na as a5,De as a6,At as a7,Ac as a8,Ku as a9,Mu as aA,ba as aB,Uu as aC,Bt as aD,xt as aE,Du as aF,Su as aG,Ou as aH,hr as aI,Pu as aJ,ve as aK,Xe as aL,Re as aM,zs as aN,xa as aO,Xc as aP,ia as aQ,Zc as aR,Fa as aS,aa as aT,Bu as aU,Zf as aV,Yu as aW,zu as aX,Qu as aY,Zu as aZ,Ju as a_,Pa as aa,Wu as ab,Va as ac,Ru as ad,rf as ae,z as af,Go as ag,qo as ah,$u as ai,Rc as aj,ka as ak,Ds as al,qu as am,Ml as an,_u as ao,ja as ap,Vu as aq,fi as ar,Ba as as,Ma as at,Ka as au,Pl as av,wc as aw,to as ax,va as ay,hi as az,yu as b,Xu as b0,Ca as b1,bu as b2,sr as b3,Nt as b4,la as b5,au as b6,ma as b7,Ia as b8,pf as b9,xn as bA,xu as bB,ua as bC,wu as bD,Oa as bE,Aa as bF,ga as bG,yc as bH,eo as bI,ou as bJ,iu as bK,gf as bL,bc as bM,Cc as bN,oa as bO,ea as bP,_a as bQ,Lu as bR,Ri as ba,$t as bb,Ut as bc,pa as bd,Mn as be,sa as bf,ra as bg,vc as bh,Fc as bi,Mc as bj,Pc as bk,Nc as bl,Iu as bm,Fi as bn,Fu as bo,Es as bp,ha as bq,wa as br,zt as bs,Ur as bt,Ea as bu,vt as bv,Eu as bw,_c as bx,Ta as by,Cu as bz,fa as c,so as d,Oi as e,An as f,ul as g,Hl as h,st as i,Xn as j,df as k,
|
|
29
|
+
**/const La=()=>{},du=Object.prototype.hasOwnProperty,$a=(e,t)=>du.call(e,t),Ha=Array.isArray,Va=e=>pr(e)==="[object Date]",ms=e=>typeof e=="function",Da=e=>typeof e=="string",hu=e=>e!==null&&typeof e=="object",ka=e=>(hu(e)||ms(e))&&ms(e.then)&&ms(e.catch),pu=Object.prototype.toString,pr=e=>pu.call(e),ja=e=>pr(e).slice(8,-1),Ba=e=>pr(e)==="[object Object]",gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,Ua=gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),mu=/\B([A-Z])/g,Ka=gr(e=>e.replace(mu,"-$1").toLowerCase()),Wa=gr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{Lf as $,$a as A,ya as B,ms as C,ht as D,he as E,ae as F,Sn as G,Fl as H,or as I,hf as J,Oc as K,Bc as L,Gu as M,La as N,qn as O,Gn as P,of as Q,ta as R,xo as S,ca as T,Yi as U,ju as V,Hu as W,da as X,So as Y,Nu as Z,ne as _,Ao as a,Sa as a$,$o as a0,Ws as a1,rr as a2,Ra as a3,na as a4,Na as a5,De as a6,At as a7,Ac as a8,Ku as a9,Mu as aA,ba as aB,Uu as aC,Bt as aD,xt as aE,Du as aF,Su as aG,Ou as aH,hr as aI,Pu as aJ,ve as aK,Xe as aL,Re as aM,zs as aN,xa as aO,Xc as aP,ia as aQ,Zc as aR,Fa as aS,aa as aT,Bu as aU,Zf as aV,Yu as aW,zu as aX,Qu as aY,Zu as aZ,Ju as a_,Pa as aa,Wu as ab,Va as ac,Ru as ad,rf as ae,z as af,Go as ag,qo as ah,$u as ai,Rc as aj,ka as ak,Ds as al,qu as am,Ml as an,_u as ao,ja as ap,Vu as aq,fi as ar,Ba as as,Ma as at,Ka as au,Pl as av,wc as aw,to as ax,va as ay,hi as az,yu as b,Xu as b0,Ca as b1,bu as b2,sr as b3,Nt as b4,la as b5,au as b6,ma as b7,Ia as b8,pf as b9,xn as bA,xu as bB,ua as bC,wu as bD,Oa as bE,Aa as bF,ga as bG,yc as bH,eo as bI,ou as bJ,iu as bK,gf as bL,bc as bM,Cc as bN,oa as bO,ea as bP,_a as bQ,Lu as bR,Ri as ba,$t as bb,Ut as bc,pa as bd,Mn as be,sa as bf,ra as bg,vc as bh,Fc as bi,Mc as bj,Pc as bk,Nc as bl,Iu as bm,Fi as bn,Fu as bo,Es as bp,ha as bq,wa as br,zt as bs,Ur as bt,Ea as bu,vt as bv,Eu as bw,_c as bx,Ta as by,Cu as bz,fa as c,so as d,Oi as e,An as f,ul as g,Hl as h,st as i,Xn as j,df as k,pe as l,vu as m,Xs as n,ur as o,ir as p,Ha as q,wn as r,Tu as s,Au as t,Mi as u,hu as v,ku as w,Da as x,Wa as y,Ua as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Ye=Object.defineProperty,Qe=Object.defineProperties;var Je=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable;var le=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&le(e,n,t[n]);if(G)for(var n of G(t))fe.call(t,n)&&le(e,n,t[n]);return e},j=(e,t)=>Qe(e,Je(t));var B=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&G)for(var r of G(e))t.indexOf(r)<0&&fe.call(e,r)&&(n[r]=e[r]);return n};var U=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{s(n.next(l))}catch(d){o(d)}},a=l=>{try{s(n.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((n=n.apply(e,t)).next())});import{g as Te,b as xe,u as Ae,r as m,e as Y,s as re,w as Ce,f as A,h as oe,i as Z,j as ie,n as se,k as x,t as Ge,l as Ue,m as qe,p as Ke}from"./@vue-DQ4WxKa6.js";var Ze=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,ve=(e,t,n)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ot=(e,t)=>{for(var n in t||(t={}))nt.call(t,n)&&ve(e,n,t[n]);if(de)for(var n of de(t))rt.call(t,n)&&ve(e,n,t[n]);return e},it=(e,t)=>et(e,tt(t));function an(e,t){var n;const r=re();return Ce(()=>{r.value=e()},it(ot({},t),{flush:(n=void 0)!=null?n:"sync"})),Y(r)}var pe;const ee=typeof window!="undefined",st=e=>typeof e!="undefined",ne=e=>typeof e=="function",at=e=>typeof e=="string",z=()=>{},ut=ee&&((pe=window==null?void 0:window.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function V(e){return typeof e=="function"?e():Ae(e)}function $e(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function lt(e,t={}){let n,r,o=z;const i=s=>{clearTimeout(s),o(),o=z};return s=>{const l=V(e),d=V(t.maxWait);return n&&i(n),l<=0||d!==void 0&&d<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((v,c)=>{o=t.rejectOnCancel?c:v,d&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,v(s())},d)),n=setTimeout(()=>{r&&i(r),r=null,v(s())},l)})}}function ct(e,t=!0,n=!0,r=!1){let o=0,i,a=!0,s=z,l;const d=()=>{i&&(clearTimeout(i),i=void 0,s(),s=z)};return c=>{const u=V(e),f=Date.now()-o,p=()=>l=c();return d(),u<=0?(o=Date.now(),p()):(f>u&&(n||!a)?(o=Date.now(),p()):t&&(l=new Promise((h,g)=>{s=r?g:h,i=setTimeout(()=>{o=Date.now(),a=!0,h(p()),d()},Math.max(0,u-f))})),!n&&!i&&(i=setTimeout(()=>a=!0,u)),a=!1,l)}}function ft(e){return e}function dt(e,t){let n,r,o;const i=m(!0),a=()=>{i.value=!0,o()};A(e,a,{flush:"sync"});const s=ne(t)?t:t.get,l=ne(t)?void 0:t.set,d=oe((v,c)=>(r=v,o=c,{get(){return i.value&&(n=s(),i.value=!1),r(),n},set(u){l==null||l(u)}}));return Object.isExtensible(d)&&(d.trigger=a),d}function te(e){return Te()?(xe(e),!0):!1}function vt(e,t=200,n={}){return $e(lt(t,n),e)}function un(e,t=200,n={}){const r=m(e.value),o=vt(()=>{r.value=e.value},t,n);return A(e,()=>o()),r}function ln(e,t=200,n=!1,r=!0,o=!1){return $e(ct(t,n,r,o),e)}function ae(e,t=!0){Z()?ie(e):t?e():se(e)}function cn(e,t,n={}){const{immediate:r=!0}=n,o=m(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...d){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...d)},V(t))}return r&&(o.value=!0,ee&&l()),te(s),{isPending:Y(o),start:l,stop:s}}function F(e){var t;const n=V(e);return(t=n==null?void 0:n.$el)!=null?t:n}const k=ee?window:void 0,pt=ee?window.document:void 0;function W(...e){let t,n,r,o;if(at(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=k):[t,n,r,o]=e,!t)return z;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(v=>v()),i.length=0},s=(v,c,u,f)=>(v.addEventListener(c,u,f),()=>v.removeEventListener(c,u,f)),l=A(()=>[F(t),V(o)],([v,c])=>{a(),v&&i.push(...n.flatMap(u=>r.map(f=>s(v,u,f,c))))},{immediate:!0,flush:"post"}),d=()=>{l(),a()};return te(d),d}let me=!1;function fn(e,t,n={}){const{window:r=k,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return;ut&&!me&&(me=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",z)));let s=!0;const l=u=>o.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(p=>p===u.target||u.composedPath().includes(p));{const p=F(f);return p&&(u.target===p||u.composedPath().includes(p))}}),v=[W(r,"click",u=>{const f=F(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(s=!l(u)),!s){s=!0;return}t(u)}},{passive:!0,capture:i}),W(r,"pointerdown",u=>{const f=F(e);f&&(s=!u.composedPath().includes(f)&&!l(u))},{passive:!0}),a&&W(r,"blur",u=>{var f;const p=F(e);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>v.forEach(u=>u())}function dn(e={}){var t;const{window:n=k}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=dt(()=>null,()=>r==null?void 0:r.activeElement);return n&&(W(n,"blur",i=>{i.relatedTarget===null&&o.trigger()},!0),W(n,"focus",o.trigger,!0)),o}function Me(e,t=!1){const n=m(),r=()=>n.value=!!e();return r(),ae(r,t),n}function mt(e){return JSON.parse(JSON.stringify(e))}const he=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ge="__vueuse_ssr_handlers__";he[ge]=he[ge]||{};function vn(e,t,{window:n=k,initialValue:r=""}={}){const o=m(r),i=x(()=>{var a;return F(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return A([i,()=>V(e)],([a,s])=>{var l;if(a&&n){const d=(l=n.getComputedStyle(a).getPropertyValue(s))==null?void 0:l.trim();o.value=d||r}},{immediate:!0}),A(o,a=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(V(e),a)}),o}function pn({document:e=pt}={}){if(!e)return m("visible");const t=m(e.visibilityState);return W(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ye=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,yt=(e,t)=>{var n={};for(var r in e)ht.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ye)for(var r of ye(e))t.indexOf(r)<0&>.call(e,r)&&(n[r]=e[r]);return n};function wt(e,t,n={}){const r=n,{window:o=k}=r,i=yt(r,["window"]);let a;const s=Me(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},d=A(()=>F(e),c=>{l(),s.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,i))},{immediate:!0,flush:"post"}),v=()=>{l(),d()};return te(v),{isSupported:s,stop:v}}function mn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=m(0),s=m(0),l=m(0),d=m(0),v=m(0),c=m(0),u=m(0),f=m(0);function p(){const h=F(e);if(!h){n&&(a.value=0,s.value=0,l.value=0,d.value=0,v.value=0,c.value=0,u.value=0,f.value=0);return}const g=h.getBoundingClientRect();a.value=g.height,s.value=g.bottom,l.value=g.left,d.value=g.right,v.value=g.top,c.value=g.width,u.value=g.x,f.value=g.y}return wt(e,p),A(()=>F(e),h=>!h&&p()),o&&W("scroll",p,{capture:!0,passive:!0}),r&&W("resize",p,{passive:!0}),ae(()=>{i&&p()}),{height:a,bottom:s,left:l,right:d,top:v,width:c,x:u,y:f,update:p}}var we=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,_t=(e,t)=>{var n={};for(var r in e)bt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&we)for(var r of we(e))t.indexOf(r)<0&&Ot.call(e,r)&&(n[r]=e[r]);return n};function hn(e,t,n={}){const r=n,{window:o=k}=r,i=_t(r,["window"]);let a;const s=Me(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},d=A(()=>F(e),c=>{l(),s.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,i))},{immediate:!0}),v=()=>{l(),d()};return te(v),{isSupported:s,stop:v}}var be;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(be||(be={}));var St=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,_e=(e,t,n)=>t in e?St(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tt=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&_e(e,n,t[n]);if(Oe)for(var n of Oe(t))Pt.call(t,n)&&_e(e,n,t[n]);return e};const xt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Tt({linear:ft},xt);function gn(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:l=!1,eventName:d,deep:v=!1,defaultValue:c}=r,u=Z(),f=n||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u))||((a=(i=u==null?void 0:u.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(u==null?void 0:u.proxy));let p=d;t||(t="modelValue"),p=d||p||`update:${t.toString()}`;const h=_=>s?ne(s)?s(_):mt(_):_,g=()=>st(e[t])?h(e[t]):c;if(l){const _=g(),w=m(_);return A(()=>e[t],S=>w.value=h(S)),A(w,S=>{(S!==e[t]||v)&&f(p,S)},{deep:v}),w}else return x({get(){return g()},set(_){f(p,_)}})}function yn({window:e=k}={}){if(!e)return m(!1);const t=m(e.document.hasFocus());return W(e,"blur",()=>{t.value=!1}),W(e,"focus",()=>{t.value=!0}),t}function wn(e={}){const{window:t=k,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=m(n),s=m(r),l=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),ae(l),W("resize",l,{passive:!0}),o&&W("orientationchange",l,{passive:!0}),{width:a,height:s}}function Q(e){return Te()?(xe(e),!0):!1}function T(e){return typeof e=="function"?e():Ae(e)}const H=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const At=e=>e!=null,Ct=Object.prototype.toString,$t=e=>Ct.call(e)==="[object Object]",X=()=>{},Mt=It();function It(){var e,t;return H&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Lt(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const Ie=e=>e();function Rt(e=Ie){const t=m(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...i)=>{t.value&&e(...i)};return{isActive:Y(t),pause:n,resume:r,eventFilter:o}}function Wt(e){let t;function n(){return t||(t=e()),t}return n.reset=()=>U(this,null,function*(){const r=t;t=void 0,r&&(yield r)}),n}function Le(e){return Z()}function Re(...e){if(e.length!==1)return Ge(...e);const t=e[0];return typeof t=="function"?Y(oe(()=>({get:t,set:X}))):m(t)}function Dt(e,t,n={}){const i=n,{eventFilter:r=Ie}=i,o=B(i,["eventFilter"]);return A(e,Lt(r,t),o)}function Ft(e,t,n={}){const v=n,{eventFilter:r}=v,o=B(v,["eventFilter"]),{eventFilter:i,pause:a,resume:s,isActive:l}=Rt(r);return{stop:Dt(e,t,j(N({},o),{eventFilter:i})),pause:a,resume:s,isActive:l}}function Nt(e,t={}){if(!Ue(e))return qe(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=oe(()=>({get(){return e.value[r]},set(o){var i;if((i=T(t.replaceRef))!=null?i:!0)if(Array.isArray(e.value)){const s=[...e.value];s[r]=o,e.value=s}else{const s=j(N({},e.value),{[r]:o});Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[r]=o}}));return n}function Vt(e,t){Le()&&Ke(e,t)}function ue(e,t=!0,n){Le()?ie(e,n):t?e():se(e)}function kt(e,t,n={}){const{immediate:r=!0}=n,o=m(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...d){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...d)},T(t))}return r&&(o.value=!0,H&&l()),Q(s),{isPending:Y(o),start:l,stop:s}}function L(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}const R=H?window:void 0,zt=H?window.document:void 0,We=H?window.navigator:void 0;function I(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=R):[t,n,r,o]=e,!t)return X;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(v=>v()),i.length=0},s=(v,c,u,f)=>(v.addEventListener(c,u,f),()=>v.removeEventListener(c,u,f)),l=A(()=>[L(t),T(o)],([v,c])=>{if(a(),!v)return;const u=$t(c)?N({},c):c;i.push(...n.flatMap(f=>r.map(p=>s(v,f,p,u))))},{immediate:!0,flush:"post"}),d=()=>{l(),a()};return Q(d),d}let Se=!1;function bn(e,t,n={}){const{window:r=R,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return X;Mt&&!Se&&(Se=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",X)),r.document.documentElement.addEventListener("click",X));let s=!0;const l=u=>o.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(p=>p===u.target||u.composedPath().includes(p));{const p=L(f);return p&&(u.target===p||u.composedPath().includes(p))}}),v=[I(r,"click",u=>{const f=L(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(s=!l(u)),!s){s=!0;return}t(u)}},{passive:!0,capture:i}),I(r,"pointerdown",u=>{const f=L(e);s=!l(u)&&!!(f&&!u.composedPath().includes(f))},{passive:!0}),a&&I(r,"blur",u=>{setTimeout(()=>{var f;const p=L(e);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(u)},0)})].filter(Boolean);return()=>v.forEach(u=>u())}function Ht(){const e=m(!1),t=Z();return t&&ie(()=>{e.value=!0},t),e}function J(e){const t=Ht();return x(()=>(t.value,!!e()))}function jt(e,t={}){const{window:n=R}=t,r=J(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const i=m(!1),a=d=>{i.value=d.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))},l=Ce(()=>{r.value&&(s(),o=n.matchMedia(T(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),i.value=o.matches)});return Q(()=>{l(),s(),o=void 0}),i}function Ee(e,t={}){const{controls:n=!1,navigator:r=We}=t,o=J(()=>r&&"permissions"in r);let i;const a=typeof e=="string"?{name:e}:e,s=m(),l=()=>{i&&(s.value=i.state)},d=Wt(()=>U(this,null,function*(){if(o.value){if(!i)try{i=yield r.permissions.query(a),I(i,"change",l),l()}catch(v){s.value="prompt"}return i}}));return d(),n?{state:s,isSupported:o,query:d}:s}function On(e={}){const{navigator:t=We,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,a=J(()=>t&&"clipboard"in t),s=Ee("clipboard-read"),l=Ee("clipboard-write"),d=x(()=>a.value||i),v=m(""),c=m(!1),u=kt(()=>c.value=!1,o);function f(){a.value&&_(s.value)?t.clipboard.readText().then(w=>{v.value=w}):v.value=g()}d.value&&n&&I(["copy","cut"],f);function p(){return U(this,arguments,function*(w=T(r)){d.value&&w!=null&&(a.value&&_(l.value)?yield t.clipboard.writeText(w):h(w),v.value=w,c.value=!0,u.start())})}function h(w){const S=document.createElement("textarea");S.value=w!=null?w:"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function g(){var w,S,E;return(E=(S=(w=document==null?void 0:document.getSelection)==null?void 0:w.call(document))==null?void 0:S.toString())!=null?E:""}function _(w){return w==="granted"||w==="prompt"}return{isSupported:d,text:v,copied:c,copy:p}}const q=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},K="__vueuse_ssr_handlers__",Bt=Xt();function Xt(){return K in q||(q[K]=q[K]||{}),q[K]}function De(e,t){return Bt[e]||t}function Yt(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Qt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Pe="vueuse-storage";function Jt(e,t,n,r={}){var o;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:d=!1,shallow:v,window:c=R,eventFilter:u,onError:f=y=>{console.error(y)},initOnMounted:p}=r,h=(v?re:m)(typeof t=="function"?t():t);if(!n)try{n=De("getDefaultStorage",()=>{var y;return(y=R)==null?void 0:y.localStorage})()}catch(y){f(y)}if(!n)return h;const g=T(t),_=Yt(g),w=(o=r.serializer)!=null?o:Qt[_],{pause:S,resume:E}=Ft(h,()=>$(h.value),{flush:i,deep:a,eventFilter:u});c&&s&&ue(()=>{I(c,"storage",C),I(c,Pe,M),p&&C()}),p||C();function b(y,P){c&&c.dispatchEvent(new CustomEvent(Pe,{detail:{key:e,oldValue:y,newValue:P,storageArea:n}}))}function $(y){try{const P=n.getItem(e);if(y==null)b(P,null),n.removeItem(e);else{const D=w.write(y);P!==D&&(n.setItem(e,D),b(P,D))}}catch(P){f(P)}}function O(y){const P=y?y.newValue:n.getItem(e);if(P==null)return l&&g!=null&&n.setItem(e,w.write(g)),g;if(!y&&d){const D=w.read(P);return typeof d=="function"?d(D,g):_==="object"&&!Array.isArray(D)?N(N({},g),D):D}else return typeof P!="string"?P:w.read(P)}function C(y){if(!(y&&y.storageArea!==n)){if(y&&y.key==null){h.value=g;return}if(!(y&&y.key!==e)){S();try{(y==null?void 0:y.newValue)!==w.write(h.value)&&(h.value=O(y))}catch(P){f(P)}finally{y?se(E):E()}}}}function M(y){C(y.detail)}return h}function Fe(e){return jt("(prefers-color-scheme: dark)",e)}function Gt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=R,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:d,disableTransition:v=!0}=e,c=N({auto:"",light:"light",dark:"dark"},e.modes||{}),u=Fe({window:o}),f=x(()=>u.value?"dark":"light"),p=l||(a==null?Re(r):Jt(a,r,i,{window:o,listenToStorageChanges:s})),h=x(()=>p.value==="auto"?f.value:p.value),g=De("updateHTMLAttrs",(E,b,$)=>{const O=typeof E=="string"?o==null?void 0:o.document.querySelector(E):L(E);if(!O)return;let C;if(v&&(C=o.document.createElement("style"),C.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o.document.head.appendChild(C)),b==="class"){const M=$.split(/\s/g);Object.values(c).flatMap(y=>(y||"").split(/\s/g)).filter(Boolean).forEach(y=>{M.includes(y)?O.classList.add(y):O.classList.remove(y)})}else O.setAttribute(b,$);v&&(o.getComputedStyle(C).opacity,document.head.removeChild(C))});function _(E){var b;g(t,n,(b=c[E])!=null?b:E)}function w(E){e.onChanged?e.onChanged(E,_):_(E)}A(h,w,{flush:"post",immediate:!0}),ue(()=>w(h.value));const S=x({get(){return d?p.value:h.value},set(E){p.value=E}});try{return Object.assign(S,{store:p,system:f,state:h})}catch(E){return S}}function Ut(e,t,n={}){const u=n,{window:r=R}=u,o=B(u,["window"]);let i;const a=J(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},l=x(()=>{const f=T(e),p=(Array.isArray(f)?f:[f]).map(L).filter(At);return new Set(p)}),d=A(()=>l.value,f=>{s(),a.value&&r&&f.size&&(i=new MutationObserver(t),f.forEach(p=>i.observe(p,o)))},{immediate:!0,flush:"post"}),v=()=>i==null?void 0:i.takeRecords(),c=()=>{s(),d()};return Q(c),{isSupported:a,stop:c,takeRecords:v}}function _n(e={}){const{valueDark:t="dark",valueLight:n="",window:r=R}=e,o=Gt(j(N({},e),{onChanged:(s,l)=>{var d;e.onChanged?(d=e.onChanged)==null||d.call(e,s==="dark",l,s):l(s)},modes:{dark:t,light:n}})),i=x(()=>o.system?o.system.value:Fe({window:r}).value?"dark":"light");return x({get(){return o.value==="dark"},set(s){const l=s?"dark":"light";i.value===l?o.value="auto":o.value=l}})}function Sn(e,t={}){var n,r;const{pointerTypes:o,preventDefault:i,stopPropagation:a,exact:s,onMove:l,onEnd:d,onStart:v,initialValue:c,axis:u="both",draggingElement:f=R,containerElement:p,handle:h=e}=t,g=m((n=T(c))!=null?n:{x:0,y:0}),_=m(),w=O=>o?o.includes(O.pointerType):!0,S=O=>{T(i)&&O.preventDefault(),T(a)&&O.stopPropagation()},E=O=>{var C;if(T(t.disabled)||!w(O)||T(s)&&O.target!==T(e))return;const M=T(p),y=(C=M==null?void 0:M.getBoundingClientRect)==null?void 0:C.call(M),P=T(e).getBoundingClientRect(),D={x:O.clientX-(M?P.left-y.left+M.scrollLeft:P.left),y:O.clientY-(M?P.top-y.top+M.scrollTop:P.top)};(v==null?void 0:v(D,O))!==!1&&(_.value=D,S(O))},b=O=>{if(T(t.disabled)||!w(O)||!_.value)return;const C=T(p),M=T(e).getBoundingClientRect();let{x:y,y:P}=g.value;(u==="x"||u==="both")&&(y=O.clientX-_.value.x,C&&(y=Math.min(Math.max(0,y),C.scrollWidth-M.width))),(u==="y"||u==="both")&&(P=O.clientY-_.value.y,C&&(P=Math.min(Math.max(0,P),C.scrollHeight-M.height))),g.value={x:y,y:P},l==null||l(g.value,O),S(O)},$=O=>{T(t.disabled)||!w(O)||_.value&&(_.value=void 0,d==null||d(g.value,O),S(O))};if(H){const O={capture:(r=t.capture)!=null?r:!0};I(h,"pointerdown",E,O),I(f,"pointermove",b,O),I(f,"pointerup",$,O)}return j(N({},Nt(g)),{position:g,isDragging:x(()=>!!_.value),style:x(()=>`left:${g.value.x}px;top:${g.value.y}px;`)})}function qt(e,t,n={}){const c=n,{window:r=R}=c,o=B(c,["window"]);let i;const a=J(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},l=x(()=>Array.isArray(e)?e.map(u=>L(u)):[L(e)]),d=A(l,u=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const f of u)f&&i.observe(f,o)}},{immediate:!0,flush:"post"}),v=()=>{s(),d()};return Q(v),{isSupported:a,stop:v}}function Kt(e,t={width:0,height:0},n={}){const{window:r=R,box:o="content-box"}=n,i=x(()=>{var c,u;return(u=(c=L(e))==null?void 0:c.namespaceURI)==null?void 0:u.includes("svg")}),a=m(t.width),s=m(t.height),{stop:l}=qt(e,([c])=>{const u=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&i.value){const f=L(e);if(f){const p=r.getComputedStyle(f);a.value=Number.parseFloat(p.width),s.value=Number.parseFloat(p.height)}}else if(u){const f=Array.isArray(u)?u:[u];a.value=f.reduce((p,{inlineSize:h})=>p+h,0),s.value=f.reduce((p,{blockSize:h})=>p+h,0)}else a.value=c.contentRect.width,s.value=c.contentRect.height},n);ue(()=>{const c=L(e);c&&(a.value="offsetWidth"in c?c.offsetWidth:t.width,s.value="offsetHeight"in c?c.offsetHeight:t.height)});const d=A(()=>L(e),c=>{a.value=c?t.width:0,s.value=c?t.height:0});function v(){l(),d()}return{width:a,height:s,stop:v}}const Zt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function en(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:i=R,target:a=i,scroll:s=!0,eventFilter:l}=e;let d=null;const v=m(o.x),c=m(o.y),u=m(null),f=typeof t=="function"?t:Zt[t],p=b=>{const $=f(b);d=b,$&&([v.value,c.value]=$,u.value="mouse")},h=b=>{if(b.touches.length>0){const $=f(b.touches[0]);$&&([v.value,c.value]=$,u.value="touch")}},g=()=>{if(!d||!i)return;const b=f(d);d instanceof MouseEvent&&b&&(v.value=b[0]+i.scrollX,c.value=b[1]+i.scrollY)},_=()=>{v.value=o.x,c.value=o.y},w=l?b=>l(()=>p(b),{}):b=>p(b),S=l?b=>l(()=>h(b),{}):b=>h(b),E=l?()=>l(()=>g(),{}):()=>g();if(a){const b={passive:!0};I(a,["mousemove","dragover"],w,b),n&&t!=="movement"&&(I(a,["touchstart","touchmove"],S,b),r&&I(a,"touchend",_,b)),s&&t==="page"&&I(i,"scroll",E,{passive:!0})}return{x:v,y:c,sourceType:u}}function En(e,t={}){const{handleOutside:n=!0,window:r=R}=t,o=t.type||"page",{x:i,y:a,sourceType:s}=en(t),l=m(e!=null?e:r==null?void 0:r.document.body),d=m(0),v=m(0),c=m(0),u=m(0),f=m(0),p=m(0),h=m(!0);let g=()=>{};return r&&(g=A([l,i,a],()=>{const _=L(l);if(!_)return;const{left:w,top:S,width:E,height:b}=_.getBoundingClientRect();c.value=w+(o==="page"?r.pageXOffset:0),u.value=S+(o==="page"?r.pageYOffset:0),f.value=b,p.value=E;const $=i.value-c.value,O=a.value-u.value;h.value=E===0||b===0||$<0||O<0||$>E||O>b,(n||!h.value)&&(d.value=$,v.value=O)},{immediate:!0}),I(document,"mouseleave",()=>{h.value=!0})),{x:i,y:a,sourceType:s,elementX:d,elementY:v,elementPositionX:c,elementPositionY:u,elementHeight:f,elementWidth:p,isOutside:h,stop:g}}function Pn(e=null,t={}){var n,r,o;const{document:i=zt,restoreOnUnmount:a=c=>c}=t,s=(n=i==null?void 0:i.title)!=null?n:"",l=Re((r=e!=null?e:i==null?void 0:i.title)!=null?r:null),d=e&&typeof e=="function";function v(c){if(!("titleTemplate"in t))return c;const u=t.titleTemplate||"%s";return typeof u=="function"?u(c):T(u).replace(/%s/g,c)}return A(l,(c,u)=>{c!==u&&i&&(i.title=v(typeof c=="string"?c:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!d&&Ut((o=i.head)==null?void 0:o.querySelector("title"),()=>{i&&i.title!==l.value&&(l.value=v(i.title))},{childList:!0}),Vt(()=>{if(a){const c=a(s,l.value||"");c!=null&&i&&(i.title=c)}}),l}function Tn(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?rn(t,e):nn(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function Ne(e){const t=m(null),n=Kt(t),r=m([]),o=re(e);return{state:m({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Ve(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let s=o;s<t.value.length;s++){const l=n(s);if(i+=l,a=s,i>r)break}return a-o}}function ke(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++){const a=t(i);if(r+=a,r>=n){o=i;break}}return o+1}}function ze(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const l=o.value;if(l){const d=n(e==="vertical"?l.scrollTop:l.scrollLeft),v=r(e==="vertical"?l.clientHeight:l.clientWidth),c=d-t,u=d+v+t;i.value={start:c<0?0:c,end:u>s.value.length?s.value.length:u},a.value=s.value.slice(i.value.start,i.value.end).map((f,p)=>({data:f,index:p+i.value.start}))}}}function He(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,i,a)=>o+e(a),0)}function je(e,t,n){A([e.width,e.height,t],()=>{n()})}function Be(e,t){return x(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const tn={horizontal:"scrollLeft",vertical:"scrollTop"};function Xe(e,t,n,r){return o=>{r.value&&(r.value[tn[e]]=n(o),t())}}function nn(e,t){const n=Ne(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,l={overflowX:"auto"},{itemWidth:d,overscan:v=5}=e,c=Ve(r,o,d),u=ke(o,d),f=ze("horizontal",v,u,c,n),p=He(d,o),h=x(()=>p(r.value.start)),g=Be(d,o);je(a,t,f);const _=Xe("horizontal",f,p,s),w=x(()=>({style:{height:"100%",width:`${g.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:_,calculateRange:f,wrapperProps:w,containerStyle:l,currentList:i,containerRef:s}}function rn(e,t){const n=Ne(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,l={overflowY:"auto"},{itemHeight:d,overscan:v=5}=e,c=Ve(r,o,d),u=ke(o,d),f=ze("vertical",v,u,c,n),p=He(d,o),h=x(()=>p(r.value.start)),g=Be(d,o);je(a,t,f);const _=Xe("vertical",f,p,s),w=x(()=>({style:{width:"100%",height:`${g.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:f,scrollTo:_,containerStyle:l,wrapperProps:w,currentList:i,containerRef:s}}export{bn as A,F as a,wn as b,mn as c,wt as d,ln as e,vn as f,cn as g,hn as h,ee as i,pn as j,yn as k,an as l,gn as m,dn as n,fn as o,Sn as p,En as q,un as r,I as s,te as t,W as u,Tn as v,Kt as w,_n as x,Pn as y,On as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))E.call(a,t)&&f(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-DwlLClUG.js";import{d as w,r as T,j as k,n as D,I as P,f as b,o as B,c as O,O as A,aa as I,a5 as L,P as x}from"./@vue-
|
|
1
|
+
var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))E.call(a,t)&&f(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-DwlLClUG.js";import{d as w,r as T,j as k,n as D,I as P,f as b,o as B,c as O,O as A,aa as I,a5 as L,P as x}from"./@vue-DQ4WxKa6.js";const j=w({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(o,{expose:a,emit:t}){const r=o;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(i,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-BhNp9C2F-DV_Vc8JJ.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-BG3X4ypZ-CEcCZxtT.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-BCBdCLMV-Dzznz_ni.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-yjAiJiOi-BhFdT8k5.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-CdJourTJ-XsdejOxF.js"),[],import.meta.url)),new s.default})}};const d=t,c=T();let e=null;const u=()=>_(this,null,function*(){var i;e&&(yield(i=e.getAction("editor.action.formatDocument"))==null?void 0:i.run(),e.setValue(e.getValue()))}),l=()=>_(this,null,function*(){yield u();const i=e==null?void 0:e.getValue();d("update:modelValue",i),d("blur",i)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(i=>{d("change",e==null?void 0:e.getValue(),i)}),e.onDidBlurEditorText(l)};return k(()=>{D(m)}),P(()=>{e&&e.dispose()}),b(()=>r.modelValue,i=>{e&&e.setValue(i)}),a({getEditor:()=>e}),(i,n)=>(B(),O("div",{class:A(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=I(L(()=>{},["stop"]),["enter"])),style:x({height:r.height})},null,38))}});export{j as default};
|