You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
24 KiB
2 lines
24 KiB
1 month ago
|
var VueDemi=function(a,i,E){if(a.install)return a;if(!i)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),a;if(i.version.slice(0,4)==="2.7."){let O=function(P,A){var m,N={},W={config:i.config,use:i.use.bind(i),mixin:i.mixin.bind(i),component:i.component.bind(i),provide:function($,S){return N[$]=S,this},directive:function($,S){return S?(i.directive($,S),W):i.directive($)},mount:function($,S){return m||(m=new i(Object.assign({propsData:A},P,{provide:Object.assign(N,P.provide)})),m.$mount($,S),m)},unmount:function(){m&&(m.$destroy(),m=void 0)}};return W};var zt=O;for(var b in i)a[b]=i[b];a.isVue2=!0,a.isVue3=!1,a.install=function(){},a.Vue=i,a.Vue2=i,a.version=i.version,a.warn=i.util.warn,a.createApp=O}else if(i.version.slice(0,2)==="2.")if(E){for(var b in E)a[b]=E[b];a.isVue2=!0,a.isVue3=!1,a.install=function(){},a.Vue=i,a.Vue2=i,a.version=i.version}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(i.version.slice(0,2)==="3."){for(var b in i)a[b]=i[b];a.isVue2=!1,a.isVue3=!0,a.install=function(){},a.Vue=i,a.Vue2=void 0,a.version=i.version,a.set=function(O,P,A){return Array.isArray(O)?(O.length=Math.max(O.length,P),O.splice(P,1,A),A):(O[P]=A,A)},a.del=function(O,P){if(Array.isArray(O)){O.splice(P,1);return}delete O[P]}}else console.error("[vue-demi] Vue version "+i.version+" is unsupported.");return a}(this.VueDemi=this.VueDemi||(typeof VueDemi!="undefined"?VueDemi:{}),this.Vue||(typeof Vue!="undefined"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI!="undefined"?VueCompositionAPI:void 0));(function(a,i){"use strict";var E=Object.defineProperty,b=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,m=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N=(t,e)=>{for(var n in e||(e={}))P.call(e,n)&&m(t,n,e[n]);if(O)for(var n of O(e))A.call(e,n)&&m(t,n,e[n]);return t},W=(t,e)=>b(t,zt(e));function $(t,e){var n;const r=i.shallowRef();return i.watchEffect(()=>{r.value=t()},W(N({},e),{flush:(n=e==null?void 0:e.flush)!=null?n:"sync"})),i.readonly(r)}var S;const M=typeof window!="undefined",Zt=t=>typeof t!="undefined",qt=(t,...e)=>{t||console.warn(...e)},x=Object.prototype.toString,Jt=t=>typeof t=="boolean",U=t=>typeof t=="function",Xt=t=>typeof t=="number",Kt=t=>typeof t=="string",Qt=t=>x.call(t)==="[object Object]",Vt=t=>typeof window!="undefined"&&x.call(t)==="[object Window]",Dt=()=>Date.now(),tt=()=>+Date.now(),xt=(t,e,n)=>Math.min(n,Math.max(e,t)),F=()=>{},te=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),ee=M&&((S=window==null?void 0:window.navigator)==null?void 0:S.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),ne=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function y(t){return typeof t=="function"?t():i.unref(t)}function R(t,e){function n(...r){return new Promise((o,l)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(l)})}return n}const L=t=>t();function z(t,e={}){let n,r,o=F;const l=c=>{clearTimeout(c),o(),o=F};return c=>{const d=y(t),_=y(e.maxWait);return n&&l(n),d<=0||_!==void 0&&_<=0?(r&&(l(r),r=null),Promise.resolve(c())):new Promise((s,f)=>{o=e.rejectOnCancel?f:s,_&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,s(c())},_)),n=setTimeout(()=>{r&&l(r),r=null,s(c())},d)})}}function Z(t,e=!0,n=!0,r=!1){let o=0,l,u=!0,c=F,d;const _=()=>{l&&(clearTimeout(l),l=void 0,c(),c=F)};return f=>{const p=y(t),h=Date.now()-o,v=()=>d=f();return _(),p<=0?(o=Date.now(),v()):(h>p&&(n||!u)?(o=Date.now(),v()):e&&(d=new Promise((w,g)=>{c=r?g:w,l=setTimeout(()=>{o=Date.now(),u=!0,w(v()),_()},Math.max(0,p-h))})),!n&&!l&&(l=setTimeout(()=>u=!0,p)),u=!1,d)}}function et(t=L){const e=i.ref(!0);function n(){e.value=!1}function r(){e.value=!0}const o=(...l)=>{e.value&&t(...l)};return{isActive:i.readonly(e),pause:n,resume:r,eventFilter:o}}function re(t="this function"){if(!
|