@vtj/pro 0.12.39 → 0.12.41
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/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/utils/index.umd.js +21 -21
- package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +20 -20
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/xe-utils/xe-utils.umd.min.js +1 -1
- package/dist/assets/@vueuse-_x9SZ0wC.js +1 -0
- package/dist/assets/{Editor-CYQNUi8W-BulRDd7p.js → Editor-Cem79x1z-B0FbIGz_.js} +76 -76
- package/dist/assets/auth-CxsuWlW8.js +1 -0
- package/dist/assets/element-plus-CaArhaoJ.js +13 -0
- package/dist/assets/element-plus-DcTadS-P.css +1 -0
- package/dist/assets/index-Br15Vo-G.js +1 -0
- package/dist/assets/{index-RGdSyKbb.js → index-PIr9Nf4v.js} +2 -2
- package/dist/assets/{monaco-editor-B5WqzYTl.js → monaco-editor-CrbCX11s.js} +1 -1
- package/dist/assets/page-BxNDj8xf.js +2 -0
- package/dist/assets/preview-DyIzdC5P.js +2 -0
- package/dist/assets/utils-2MyngnUY.js +1 -0
- package/dist/assets/{vxe-CWcmrjam.js → vxe-BdykRz5w.js} +4 -4
- package/dist/index.html +7 -7
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-aeVRcOfZ.js → @dcloudio-uni-h5-vue-BEVv3z-t.js} +1 -1
- package/dist/uni/assets/{index-EESVcAQh.js → index-jt8jH6xK.js} +30 -30
- package/dist/uni/assets/{vue-router-DVjQ9Lh0.js → vue-router-5EIDvL-H.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +12 -12
- package/dist/assets/@vueuse-vmN9qs5b.js +0 -1
- package/dist/assets/auth-C4ygULpe.js +0 -1
- package/dist/assets/element-plus-EFxNtExC.css +0 -1
- package/dist/assets/element-plus-XVJlWyfz.js +0 -13
- package/dist/assets/index-CDJPH36v.js +0 -1
- package/dist/assets/page-9pEin-yb.js +0 -2
- package/dist/assets/preview-DlnxbhBA.js +0 -2
- package/dist/assets/utils-CT1D4Iet.js +0 -1
- /package/dist/assets/{Editor-CYQNUi8W-BN1eKDXZ.css → Editor-Cem79x1z-BN1eKDXZ.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Ge=Object.defineProperty,Je=Object.defineProperties;var Ue=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var pe=(e,t,n)=>t in e?Ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))me.call(t,n)&&pe(e,n,t[n]);if(K)for(var n of K(t))he.call(t,n)&&pe(e,n,t[n]);return e},Y=(e,t)=>Je(e,Ue(t));var G=(e,t)=>{var n={};for(var o in e)me.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&K)for(var o of K(e))t.indexOf(o)<0&&he.call(e,o)&&(n[o]=e[o]);return n};import{g as Me,b as Re,s as P,w as We,r as ee,e as b,f as T,h as U,i as ie,n as ue,u as Ae,j as ae,k as E,t as Ke,l as qe,m as Ze,p as O,q as Ie,v as et}from"./vue-BfodOvnP.js";var tt=Object.defineProperty,nt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,ye=(e,t,n)=>t in e?tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,it=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&ye(e,n,t[n]);if(ge)for(var n of ge(t))st.call(t,n)&&ye(e,n,t[n]);return e},ut=(e,t)=>nt(e,ot(t));function fn(e,t){var n;const o=P();return We(()=>{o.value=e()},ut(it({},t),{flush:(n=void 0)!=null?n:"sync"})),ee(o)}var we;const te=typeof window!="undefined",at=e=>typeof e!="undefined",se=e=>typeof e=="function",lt=e=>typeof e=="string",Q=()=>{},ct=te&&((we=window==null?void 0:window.navigator)==null?void 0:we.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function H(e){return typeof e=="function"?e():Ae(e)}function De(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}function ft(e,t={}){let n,o,r=Q;const s=i=>{clearTimeout(i),r(),r=Q};return i=>{const a=H(e),f=H(t.maxWait);return n&&s(n),a<=0||f!==void 0&&f<=0?(o&&(s(o),o=null),Promise.resolve(i())):new Promise((v,l)=>{r=t.rejectOnCancel?l:v,f&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,v(i())},f)),n=setTimeout(()=>{o&&s(o),o=null,v(i())},a)})}}function dt(e,t=!0,n=!0,o=!1){let r=0,s,u=!0,i=Q,a;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=Q)};return l=>{const c=H(e),d=Date.now()-r,p=()=>a=l();return f(),c<=0?(r=Date.now(),p()):(d>c&&(n||!u)?(r=Date.now(),p()):t&&(a=new Promise((h,g)=>{i=o?g:h,s=setTimeout(()=>{r=Date.now(),u=!0,h(p()),f()},Math.max(0,c-d))})),!n&&!s&&(s=setTimeout(()=>u=!0,c)),u=!1,a)}}function vt(e){return e}function pt(e,t){let n,o,r;const s=b(!0),u=()=>{s.value=!0,r()};T(e,u,{flush:"sync"});const i=se(t)?t:t.get,a=se(t)?void 0:t.set,f=ae((v,l)=>(o=v,r=l,{get(){return s.value&&(n=i(),s.value=!1),o(),n},set(c){a==null||a(c)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function ne(e){return Me()?(Re(e),!0):!1}function mt(e,t=200,n={}){return De(ft(t,n),e)}function dn(e,t=200,n={}){const o=b(e.value),r=mt(()=>{o.value=e.value},t,n);return T(e,()=>r()),o}function vn(e,t=200,n=!1,o=!0,r=!1){return De(dt(t,n,o,r),e)}function le(e,t=!0){U()?ie(e):t?e():ue(e)}function pn(e,t,n={}){const{immediate:o=!0}=n,r=b(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,u()}function a(...f){u(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...f)},H(t))}return o&&(r.value=!0,te&&a()),ne(i),{isPending:ee(r),start:a,stop:i}}function L(e){var t;const n=H(e);return(t=n==null?void 0:n.$el)!=null?t:n}const B=te?window:void 0,ht=te?window.document:void 0;function F(...e){let t,n,o,r;if(lt(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=B):[t,n,o,r]=e,!t)return Q;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],u=()=>{s.forEach(v=>v()),s.length=0},i=(v,l,c,d)=>(v.addEventListener(l,c,d),()=>v.removeEventListener(l,c,d)),a=T(()=>[L(t),H(r)],([v,l])=>{u(),v&&s.push(...n.flatMap(c=>o.map(d=>i(v,c,d,l))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return ne(f),f}let be=!1;function mn(e,t,n={}){const{window:o=B,ignore:r=[],capture:s=!0,detectIframe:u=!1}=n;if(!o)return;ct&&!be&&(be=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",Q)));let i=!0;const a=c=>r.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=L(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[F(o,"click",c=>{const d=L(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(i=!a(c)),!i){i=!0;return}t(c)}},{passive:!0,capture:s}),F(o,"pointerdown",c=>{const d=L(e);d&&(i=!c.composedPath().includes(d)&&!a(c))},{passive:!0}),u&&F(o,"blur",c=>{var d;const p=L(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(c)})].filter(Boolean);return()=>v.forEach(c=>c())}function hn(e={}){var t;const{window:n=B}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=pt(()=>null,()=>o==null?void 0:o.activeElement);return n&&(F(n,"blur",s=>{s.relatedTarget===null&&r.trigger()},!0),F(n,"focus",r.trigger,!0)),r}function Le(e,t=!1){const n=b(),o=()=>n.value=!!e();return o(),le(o,t),n}function gt(e){return JSON.parse(JSON.stringify(e))}const Oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},_e="__vueuse_ssr_handlers__";Oe[_e]=Oe[_e]||{};function gn(e,t,{window:n=B,initialValue:o=""}={}){const r=b(o),s=E(()=>{var u;return L(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return T([s,()=>H(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();r.value=f||o}},{immediate:!0}),T(r,u=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(H(e),u)}),r}function yn({document:e=ht}={}){if(!e)return b("visible");const t=b(e.visibilityState);return F(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Se=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var n={};for(var o in e)yt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Se)for(var o of Se(e))t.indexOf(o)<0&&wt.call(e,o)&&(n[o]=e[o]);return n};function Fe(e,t,n={}){const o=n,{window:r=B}=o,s=bt(o,["window"]);let u;const i=Le(()=>r&&"ResizeObserver"in r),a=()=>{u&&(u.disconnect(),u=void 0)},f=T(()=>L(e),l=>{a(),i.value&&r&&l&&(u=new ResizeObserver(t),u.observe(l,s))},{immediate:!0,flush:"post"}),v=()=>{a(),f()};return ne(v),{isSupported:i,stop:v}}function wn(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:s=!0}=t,u=b(0),i=b(0),a=b(0),f=b(0),v=b(0),l=b(0),c=b(0),d=b(0);function p(){const h=L(e);if(!h){n&&(u.value=0,i.value=0,a.value=0,f.value=0,v.value=0,l.value=0,c.value=0,d.value=0);return}const g=h.getBoundingClientRect();u.value=g.height,i.value=g.bottom,a.value=g.left,f.value=g.right,v.value=g.top,l.value=g.width,c.value=g.x,d.value=g.y}return Fe(e,p),T(()=>L(e),h=>!h&&p()),r&&F("scroll",p,{capture:!0,passive:!0}),o&&F("resize",p,{passive:!0}),le(()=>{s&&p()}),{height:u,bottom:i,left:a,right:f,top:v,width:l,x:c,y:d,update:p}}function bn(e,t={width:0,height:0},n={}){const{window:o=B,box:r="content-box"}=n,s=E(()=>{var a,f;return(f=(a=L(e))==null?void 0:a.namespaceURI)==null?void 0:f.includes("svg")}),u=b(t.width),i=b(t.height);return Fe(e,([a])=>{const f=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const v=L(e);if(v){const l=o.getComputedStyle(v);u.value=parseFloat(l.width),i.value=parseFloat(l.height)}}else if(f){const v=Array.isArray(f)?f:[f];u.value=v.reduce((l,{inlineSize:c})=>l+c,0),i.value=v.reduce((l,{blockSize:c})=>l+c,0)}else u.value=a.contentRect.width,i.value=a.contentRect.height},n),T(()=>L(e),a=>{u.value=a?t.width:0,i.value=a?t.height:0}),{width:u,height:i}}var Ee=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,St=(e,t)=>{var n={};for(var o in e)Ot.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ee)for(var o of Ee(e))t.indexOf(o)<0&&_t.call(e,o)&&(n[o]=e[o]);return n};function On(e,t,n={}){const o=n,{window:r=B}=o,s=St(o,["window"]);let u;const i=Le(()=>r&&"MutationObserver"in r),a=()=>{u&&(u.disconnect(),u=void 0)},f=T(()=>L(e),l=>{a(),i.value&&r&&l&&(u=new MutationObserver(t),u.observe(l,s))},{immediate:!0}),v=()=>{a(),f()};return ne(v),{isSupported:i,stop:v}}var xe;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xe||(xe={}));var Et=Object.defineProperty,Pe=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Te=(e,t,n)=>t in e?Et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tt=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&Te(e,n,t[n]);if(Pe)for(var n of Pe(t))Pt.call(t,n)&&Te(e,n,t[n]);return e};const Ct={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:vt},Ct);function _n(e,t,n,o={}){var r,s,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:v=!1,defaultValue:l}=o,c=U(),d=n||(c==null?void 0:c.emit)||((r=c==null?void 0:c.$emit)==null?void 0:r.bind(c))||((u=(s=c==null?void 0:c.proxy)==null?void 0:s.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const h=y=>i?se(i)?i(y):gt(y):y,g=()=>at(e[t])?h(e[t]):l;if(a){const y=g(),_=b(y);return T(()=>e[t],C=>_.value=h(C)),T(_,C=>{(C!==e[t]||v)&&d(p,C)},{deep:v}),_}else return E({get(){return g()},set(y){d(p,y)}})}function Sn({window:e=B}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return F(e,"blur",()=>{t.value=!1}),F(e,"focus",()=>{t.value=!0}),t}function En(e={}){const{window:t=B,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,u=b(n),i=b(o),a=()=>{t&&(s?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return a(),le(a),F("resize",a,{passive:!0}),r&&F("orientationchange",a,{passive:!0}),{width:u,height:i}}function oe(e){return Me()?(Re(e),!0):!1}const re=new WeakMap,$t=(...e)=>{var t;const n=e[0],o=(t=U())==null?void 0:t.proxy;if(o==null&&!Ie())throw new Error("injectLocal must be called in setup");return o&&re.has(o)&&n in re.get(o)?re.get(o)[n]:et(...e)},ce=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Mt=e=>e!=null,Rt=Object.prototype.toString,Wt=e=>Rt.call(e)==="[object Object]",At=()=>{};function fe(...e){if(e.length!==1)return Ke(...e);const t=e[0];return typeof t=="function"?ee(ae(()=>({get:t,set:At}))):b(t)}function It(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ke=e=>e();function Dt(e=ke,t={}){const{initialState:n="active"}=t,o=fe(n==="active");function r(){o.value=!1}function s(){o.value=!0}const u=(...i)=>{o.value&&e(...i)};return{isActive:ee(o),pause:r,resume:s,eventFilter:u}}function Ce(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function J(e){return Array.isArray(e)?e:[e]}function Lt(e){return U()}function Ft(e,t,n={}){const s=n,{eventFilter:o=ke}=s,r=G(s,["eventFilter"]);return T(e,It(o,t),r)}function kt(e,t,n={}){const l=n,{eventFilter:o,initialState:r="active"}=l,s=G(l,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=Dt(o,{initialState:r});return{stop:Ft(e,t,Y(V({},s),{eventFilter:u})),pause:i,resume:a,isActive:f}}function zt(e,t={}){if(!qe(e))return Ze(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=ae(()=>({get(){return e.value[o]},set(r){var s;if((s=O(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[o]=r,e.value=i}else{const i=Y(V({},e.value),{[o]:r});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[o]=r}}));return n}function de(e,t=!0,n){Lt()?ie(e,n):t?e():ue(e)}function Nt(e,t,n){return T(e,t,Y(V({},n),{immediate:!0}))}const N=ce?window:void 0,Vt=ce?window.document:void 0;function j(e){var t;const n=O(e);return(t=n==null?void 0:n.$el)!=null?t:n}function z(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,a,f,v)=>(i.addEventListener(a,f,v),()=>i.removeEventListener(a,f,v)),r=E(()=>{const i=J(O(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),s=Nt(()=>{var i,a;return[(a=(i=r.value)==null?void 0:i.map(f=>j(f)))!=null?a:[N].filter(f=>f!=null),J(O(r.value?e[1]:e[0])),J(Ae(r.value?e[2]:e[1])),O(r.value?e[3]:e[2])]},([i,a,f,v])=>{if(n(),!(i!=null&&i.length)||!(a!=null&&a.length)||!(f!=null&&f.length))return;const l=Wt(v)?V({},v):v;t.push(...i.flatMap(c=>a.flatMap(d=>f.map(p=>o(c,d,p,l)))))},{flush:"post"}),u=()=>{s(),n()};return oe(n),u}function jt(){const e=P(!1),t=U();return t&&ie(()=>{e.value=!0},t),e}function ve(e){const t=jt();return E(()=>(t.value,!!e()))}function Bt(e,t,n={}){const c=n,{window:o=N}=c,r=G(c,["window"]);let s;const u=ve(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},a=E(()=>{const d=O(e),p=J(d).map(j).filter(Mt);return new Set(p)}),f=T(()=>a.value,d=>{i(),u.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,r)))},{immediate:!0,flush:"post"}),v=()=>s==null?void 0:s.takeRecords(),l=()=>{f(),i()};return oe(l),{isSupported:u,stop:l,takeRecords:v}}const Ht=Symbol("vueuse-ssr-width");function Xt(){const e=Ie()?$t(Ht,null):null;return typeof e=="number"?e:void 0}function Yt(e,t={}){const{window:n=N,ssrWidth:o=Xt()}=t,r=ve(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=P(typeof o=="number"),u=P(),i=P(!1),a=f=>{i.value=f.matches};return We(()=>{if(s.value){s.value=!r.value;const f=O(e).split(",");i.value=f.some(v=>{const l=v.includes("not all"),c=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(c||d);return c&&p&&(p=o>=Ce(c[1])),d&&p&&(p=o<=Ce(d[1])),l?!p:p});return}r.value&&(u.value=n.matchMedia(O(e)),i.value=u.value.matches)}),z(u,"change",a,{passive:!0}),E(()=>i.value)}const q=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Z="__vueuse_ssr_handlers__",Qt=Gt();function Gt(){return Z in q||(q[Z]=q[Z]||{}),q[Z]}function ze(e,t){return Qt[e]||t}function Jt(e){return Yt("(prefers-color-scheme: dark)",e)}function Ut(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 Kt={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()}},$e="vueuse-storage";function qt(e,t,n,o={}){var r;const{flush:s="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:v,window:l=N,eventFilter:c,onError:d=w=>{console.error(w)},initOnMounted:p}=o,h=(v?P:b)(typeof t=="function"?t():t),g=E(()=>O(e));if(!n)try{n=ze("getDefaultStorage",()=>{var w;return(w=N)==null?void 0:w.localStorage})()}catch(w){d(w)}if(!n)return h;const y=O(t),_=Ut(y),C=(r=o.serializer)!=null?r:Kt[_],{pause:x,resume:R}=kt(h,()=>W(h.value),{flush:s,deep:u,eventFilter:c});T(g,()=>D(),{flush:s});let I=!1;const m=w=>{p&&!I||D(w)},S=w=>{p&&!I||X(w)};l&&i&&(n instanceof Storage?z(l,"storage",m,{passive:!0}):z(l,$e,S)),p?de(()=>{I=!0,D()}):D();function $(w,A){if(l){const k={key:g.value,oldValue:w,newValue:A,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent($e,{detail:k}))}}function W(w){try{const A=n.getItem(g.value);if(w==null)$(A,null),n.removeItem(g.value);else{const k=C.write(w);A!==k&&(n.setItem(g.value,k),$(A,k))}}catch(A){d(A)}}function M(w){const A=w?w.newValue:n.getItem(g.value);if(A==null)return a&&y!=null&&n.setItem(g.value,C.write(y)),y;if(!w&&f){const k=C.read(A);return typeof f=="function"?f(k,y):_==="object"&&!Array.isArray(k)?V(V({},y),k):k}else return typeof A!="string"?A:C.read(A)}function D(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){h.value=y;return}if(!(w&&w.key!==g.value)){x();try{(w==null?void 0:w.newValue)!==C.write(h.value)&&(h.value=M(w))}catch(A){d(A)}finally{w?ue(R):R()}}}}function X(w){D(w.detail)}return h}const Zt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function en(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=N,storage:s,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:v=!0}=e,l=V({auto:"",light:"light",dark:"dark"},e.modes||{}),c=Jt({window:r}),d=E(()=>c.value?"dark":"light"),p=a||(u==null?fe(o):qt(u,o,s,{window:r,listenToStorageChanges:i})),h=E(()=>p.value==="auto"?d.value:p.value),g=ze("updateHTMLAttrs",(x,R,I)=>{const m=typeof x=="string"?r==null?void 0:r.document.querySelector(x):j(x);if(!m)return;const S=new Set,$=new Set;let W=null;if(R==="class"){const D=I.split(/\s/g);Object.values(l).flatMap(X=>(X||"").split(/\s/g)).filter(Boolean).forEach(X=>{D.includes(X)?S.add(X):$.add(X)})}else W={key:R,value:I};if(S.size===0&&$.size===0&&W===null)return;let M;v&&(M=r.document.createElement("style"),M.appendChild(document.createTextNode(Zt)),r.document.head.appendChild(M));for(const D of S)m.classList.add(D);for(const D of $)m.classList.remove(D);W&&m.setAttribute(W.key,W.value),v&&(r.getComputedStyle(M).opacity,document.head.removeChild(M))});function y(x){var R;g(t,n,(R=l[x])!=null?R:x)}function _(x){e.onChanged?e.onChanged(x,y):y(x)}T(h,_,{flush:"post",immediate:!0}),de(()=>_(h.value));const C=E({get(){return f?p.value:h.value},set(x){p.value=x}});return Object.assign(C,{store:p,system:d,state:h})}function xn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=en(Y(V({},e),{onChanged:(u,i)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,u==="dark",i,u):i(u)},modes:{dark:t,light:n}})),r=E(()=>o.system.value);return E({get(){return o.value==="dark"},set(u){const i=u?"dark":"light";r.value===i?o.value="auto":o.value=i}})}function Pn(e,t={}){var n;const{pointerTypes:o,preventDefault:r,stopPropagation:s,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:v,axis:l="both",draggingElement:c=N,containerElement:d,handle:p=e,buttons:h=[0]}=t,g=b((n=O(v))!=null?n:{x:0,y:0}),y=b(),_=m=>o?o.includes(m.pointerType):!0,C=m=>{O(r)&&m.preventDefault(),O(s)&&m.stopPropagation()},x=m=>{var S;if(!O(h).includes(m.button)||O(t.disabled)||!_(m)||O(u)&&m.target!==O(e))return;const $=O(d),W=(S=$==null?void 0:$.getBoundingClientRect)==null?void 0:S.call($),M=O(e).getBoundingClientRect(),D={x:m.clientX-($?M.left-W.left+$.scrollLeft:M.left),y:m.clientY-($?M.top-W.top+$.scrollTop:M.top)};(f==null?void 0:f(D,m))!==!1&&(y.value=D,C(m))},R=m=>{if(O(t.disabled)||!_(m)||!y.value)return;const S=O(d),$=O(e).getBoundingClientRect();let{x:W,y:M}=g.value;(l==="x"||l==="both")&&(W=m.clientX-y.value.x,S&&(W=Math.min(Math.max(0,W),S.scrollWidth-$.width))),(l==="y"||l==="both")&&(M=m.clientY-y.value.y,S&&(M=Math.min(Math.max(0,M),S.scrollHeight-$.height))),g.value={x:W,y:M},i==null||i(g.value,m),C(m)},I=m=>{O(t.disabled)||!_(m)||y.value&&(y.value=void 0,a==null||a(g.value,m),C(m))};if(ce){const m=()=>{var S;return{capture:(S=t.capture)!=null?S:!0,passive:!O(r)}};z(p,"pointerdown",x,m),z(c,"pointermove",R,m),z(c,"pointerup",I,m)}return Y(V({},zt(g)),{position:g,isDragging:E(()=>!!y.value),style:E(()=>`left:${g.value.x}px;top:${g.value.y}px;`)})}function tn(e,t,n={}){const l=n,{window:o=N}=l,r=G(l,["window"]);let s;const u=ve(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},a=E(()=>{const c=O(e);return Array.isArray(c)?c.map(d=>j(d)):[j(c)]}),f=T(a,c=>{if(i(),u.value&&o){s=new ResizeObserver(t);for(const d of c)d&&s.observe(d,r)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:u,stop:v}}function nn(e,t={width:0,height:0},n={}){const{window:o=N,box:r="content-box"}=n,s=E(()=>{var l,c;return(c=(l=j(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),u=P(t.width),i=P(t.height),{stop:a}=tn(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const d=j(e);if(d){const p=d.getBoundingClientRect();u.value=p.width,i.value=p.height}}else if(c){const d=J(c);u.value=d.reduce((p,{inlineSize:h})=>p+h,0),i.value=d.reduce((p,{blockSize:h})=>p+h,0)}else u.value=l.contentRect.width,i.value=l.contentRect.height},n);de(()=>{const l=j(e);l&&(u.value="offsetWidth"in l?l.offsetWidth:t.width,i.value="offsetHeight"in l?l.offsetHeight:t.height)});const f=T(()=>j(e),l=>{u.value=l?t.width:0,i.value=l?t.height:0});function v(){a(),f()}return{width:u,height:i,stop:v}}const on={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function rn(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:r={x:0,y:0},window:s=N,target:u=s,scroll:i=!0,eventFilter:a}=e;let f=null,v=0,l=0;const c=P(r.x),d=P(r.y),p=P(null),h=typeof t=="function"?t:on[t],g=m=>{const S=h(m);f=m,S&&([c.value,d.value]=S,p.value="mouse"),s&&(v=s.scrollX,l=s.scrollY)},y=m=>{if(m.touches.length>0){const S=h(m.touches[0]);S&&([c.value,d.value]=S,p.value="touch")}},_=()=>{if(!f||!s)return;const m=h(f);f instanceof MouseEvent&&m&&(c.value=m[0]+s.scrollX-v,d.value=m[1]+s.scrollY-l)},C=()=>{c.value=r.x,d.value=r.y},x=a?m=>a(()=>g(m),{}):m=>g(m),R=a?m=>a(()=>y(m),{}):m=>y(m),I=a?()=>a(()=>_(),{}):()=>_();if(u){const m={passive:!0};z(u,["mousemove","dragover"],x,m),n&&t!=="movement"&&(z(u,["touchstart","touchmove"],R,m),o&&z(u,"touchend",C,m)),i&&t==="page"&&z(s,"scroll",I,m)}return{x:c,y:d,sourceType:p}}function Tn(e,t={}){const{handleOutside:n=!0,window:o=N}=t,r=t.type||"page",{x:s,y:u,sourceType:i}=rn(t),a=P(e!=null?e:o==null?void 0:o.document.body),f=P(0),v=P(0),l=P(0),c=P(0),d=P(0),p=P(0),h=P(!0);let g=()=>{};return o&&(g=T([a,s,u],()=>{const y=j(a);if(!y||!(y instanceof Element))return;const{left:_,top:C,width:x,height:R}=y.getBoundingClientRect();l.value=_+(r==="page"?o.pageXOffset:0),c.value=C+(r==="page"?o.pageYOffset:0),d.value=R,p.value=x;const I=s.value-l.value,m=u.value-c.value;h.value=x===0||R===0||I<0||m<0||I>x||m>R,(n||!h.value)&&(f.value=I,v.value=m)},{immediate:!0}),z(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:s,y:u,sourceType:i,elementX:f,elementY:v,elementPositionX:l,elementPositionY:c,elementHeight:d,elementWidth:p,isOutside:h,stop:g}}function Cn(e=null,t={}){var n,o,r;const{document:s=Vt,restoreOnUnmount:u=l=>l}=t,i=(n=s==null?void 0:s.title)!=null?n:"",a=fe((o=e!=null?e:s==null?void 0:s.title)!=null?o:null),f=!!(e&&typeof e=="function");function v(l){if(!("titleTemplate"in t))return l;const c=t.titleTemplate||"%s";return typeof c=="function"?c(l):O(c).replace(/%s/g,l)}return T(a,(l,c)=>{l!==c&&s&&(s.title=v(l!=null?l:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!f&&Bt((r=s.head)==null?void 0:r.querySelector("title"),()=>{s&&s.title!==a.value&&(a.value=v(s.title))},{childList:!0}),oe(()=>{if(u){const l=u(i,a.value||"");l!=null&&s&&(s.title=l)}}),a}function $n(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:r,calculateRange:s,currentList:u,containerRef:i}="itemHeight"in t?an(t,e):un(t,e);return{list:u,scrollTo:r,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:o}}function Ne(e){const t=P(null),n=nn(t),o=b([]),r=P(e);return{state:b({start:0,end:10}),source:r,currentList:o,size:n,containerRef:t}}function Ve(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:r=0}=e.value;let s=0,u=0;for(let i=r;i<t.value.length;i++){const a=n(i);if(s+=a,u=i,s>o)break}return u-r}}function je(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,r=0;for(let s=0;s<e.value.length;s++){const u=t(s);if(o+=u,o>=n){r=s;break}}return r+1}}function Be(e,t,n,o,{containerRef:r,state:s,currentList:u,source:i}){return()=>{const a=r.value;if(a){const f=n(e==="vertical"?a.scrollTop:a.scrollLeft),v=o(e==="vertical"?a.clientHeight:a.clientWidth),l=f-t,c=f+v+t;s.value={start:l<0?0:l,end:c>i.value.length?i.value.length:c},u.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function He(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,s,u)=>r+e(u),0)}function Xe(e,t,n,o){T([e.width,e.height,t,n],()=>{o()})}function Ye(e,t){return E(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,r)=>n+e(r),0))}const sn={horizontal:"scrollLeft",vertical:"scrollTop"};function Qe(e,t,n,o){return r=>{o.value&&(o.value[sn[e]]=n(r),t())}}function un(e,t){const n=Ne(t),{state:o,source:r,currentList:s,size:u,containerRef:i}=n,a={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,l=Ve(o,r,f),c=je(r,f),d=Be("horizontal",v,c,l,n),p=He(f,r),h=E(()=>p(o.value.start)),g=Ye(f,r);Xe(u,t,i,d);const y=Qe("horizontal",d,p,i),_=E(()=>({style:{height:"100%",width:`${g.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:y,calculateRange:d,wrapperProps:_,containerStyle:a,currentList:s,containerRef:i}}function an(e,t){const n=Ne(t),{state:o,source:r,currentList:s,size:u,containerRef:i}=n,a={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,l=Ve(o,r,f),c=je(r,f),d=Be("vertical",v,c,l,n),p=He(f,r),h=E(()=>p(o.value.start)),g=Ye(f,r);Xe(u,t,i,d);const y=Qe("vertical",d,p,i),_=E(()=>({style:{width:"100%",height:`${g.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:y,containerStyle:a,wrapperProps:_,currentList:s,containerRef:i}}export{xn as A,wn as a,F as b,fn as c,Fe as d,L as e,vn as f,gn as g,pn as h,te as i,ct as j,On as k,yn as l,Sn as m,_n as n,mn as o,hn as p,bn as q,dn as r,Cn as s,ne as t,En as u,Pn as v,Tn as w,z as x,$n as y,nn as z};
|