2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
import{g as se,f as le,i as x,j as ie,n as X,k as ue,r as w,w as F,u as O,s as Y,l as ce,m as fe,p as de,e as M}from"./@vue.51d7f2d8.js";var pe=Object.defineProperty,ve=Object.defineProperties,me=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,A=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_e=(e,t)=>{for(var r in t||(t={}))ge.call(t,r)&&A(e,r,t[r]);if(k)for(var r of k(t))we.call(t,r)&&A(e,r,t[r]);return e},he=(e,t)=>ve(e,me(t));function ot(e,t){var r;const n=Y();return ce(()=>{n.value=e()},he(_e({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),fe(n)}var W;const T=typeof window<"u",be=e=>typeof e<"u",st=e=>typeof e=="boolean",lt=e=>typeof e=="number",ye=e=>typeof e=="string",C=()=>{};T&&((W=window==null?void 0:window.navigator)==null?void 0:W.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e,t){function r(...n){e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})}return r}const Z=e=>e();function Oe(e,t={}){let r,n;return o=>{const s=O(e),l=O(t.maxWait);if(r&&clearTimeout(r),s<=0||l!==void 0&&l<=0)return n&&(clearTimeout(n),n=null),o();l&&!n&&(n=setTimeout(()=>{r&&clearTimeout(r),n=null,o()},l)),r=setTimeout(()=>{n&&clearTimeout(n),n=null,o()},s)}}function Pe(e,t=!0,r=!0){let n=0,a,o=!0;const s=()=>{a&&(clearTimeout(a),a=void 0)};return u=>{const f=O(e),m=Date.now()-n;if(s(),f<=0)return n=Date.now(),u();m>f&&(r||!o)?(n=Date.now(),u()):t&&(a=setTimeout(()=>{n=Date.now(),o=!0,s(),u()},f)),!r&&!a&&(a=setTimeout(()=>o=!0,f)),o=!1}}function Se(e=Z){const t=w(!0);function r(){t.value=!1}function n(){t.value=!0}return{isActive:t,pause:r,resume:n,eventFilter:(...o)=>{t.value&&e(...o)}}}function D(e){return se()?(le(e),!0):!1}function Ee(e,t=200,r={}){return z(Oe(t,r),e)}function it(e,t=200,r={}){if(t<=0)return e;const n=w(e.value),a=Ee(()=>{n.value=e.value},t,r);return F(e,()=>a()),n}function ut(e,t=200,r=!0,n=!0){return z(Pe(t,r,n),e)}function $e(e,t=!0){x()?de(e):t?e():X(e)}function ee(e,t=!0){x()?ie(e):t?e():X(e)}function ct(e,t,r={}){const{immediate:n=!0}=r,a=w(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function l(){a.value=!1,s()}function u(...f){s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...f)},O(t))}return n&&(a.value=!0,T&&u()),D(l),{isPending:a,start:u,stop:l}}function ft(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,a=ue(e),o=w(e);function s(l){return arguments.length?(o.value=l,o.value):(o.value=o.value===O(r)?O(n):O(r),o.value)}return a?s:[o,s]}var V=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(e,t)=>{var r={};for(var n in e)Fe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&V)for(var n of V(e))t.indexOf(n)<0&&je.call(e,n)&&(r[n]=e[n]);return r};function De(e,t,r={}){const n=r,{eventFilter:a=Z}=n,o=Te(n,["eventFilter"]);return F(e,z(a,t),o)}var Ne=Object.defineProperty,Me=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,q=(e,t,r)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ce=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&q(e,r,t[r]);if(R)for(var r of R(t))re.call(t,r)&&q(e,r,t[r]);return e},Ie=(e,t)=>Me(e,Re(t)),Le=(e,t)=>{var r={};for(var n in e)te.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&R)for(var n of R(e))t.indexOf(n)<0&&re.call(e,n)&&(r[n]=e[n]);return r};function xe(e,t,r={}){const n=r,{eventFilter:a}=n,o=Le(n,["eventFilter"]),{eventFilter:s,pause:l,resume:u,isActive:f}=Se(a);return{stop:De(e,t,Ie(Ce({},o),{eventFilter:s})),pause:l,resume:u,isActive:f}}function $(e){var t;const r=O(e);return(t=r==null?void 0:r.$el)!=null?t:r}const y=T?window:void 0,ne=T?window.document:void 0;T&&window.navigator;T&&window.location;function b(...e){let t,r,n,a;if(ye(e[0])?([r,n,a]=e,t=y):[t,r,n,a]=e,!t)return C;let o=C;const s=F(()=>$(t),u=>{o(),u&&(u.addEventListener(r,n,a),o=()=>{u.removeEventListener(r,n,a),o=C})},{imm
|