Publish the verified user build output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
import{$ as e,C as t,E as n,U as r,Y as i,Z as a,at as o,it as s,k as c,lt as l,nt as u,q as d,st as f,tt as p,w as m,y as h}from"./_plugin-vue_export-helper-1xMDlcEE.js";function g(t,n){return i()?(e(t,n),!0):!1}var _=new WeakMap,v=(...e)=>{let n=e[0],r=h()?.proxy??i();if(r==null&&!t())throw Error(`injectLocal must be called in setup`);return r&&_.has(r)&&n in _.get(r)?_.get(r)[n]:m(...e)},y=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var b=Object.prototype.toString,x=e=>b.call(e)===`[object Object]`,S=()=>{},C=w();function w(){var e,t;return y&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function T(...e){if(e.length!==1)return f(...e);let t=e[0];return typeof t==`function`?p(d(()=>({get:t,set:S}))):u(t)}function E(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var D=e=>e();function O(e=D,t={}){let{initialState:n=`active`}=t,r=T(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:s(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function k(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function A(e){return Array.isArray(e)?e:[e]}function j(e){return e||h()}function M(e,t,n={}){let{eventFilter:i=D,...a}=n;return r(e,E(i,t),a)}function N(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=O(r,{initialState:i});return{stop:M(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function P(e,t=!0,r){j(r)?c(e,r):t?e():n(e)}function F(e,t=1e3,n={}){let{immediate:i=!0,immediateCallback:c=!1}=n,u=null,d=o(!1);function f(){u&&=(clearInterval(u),null)}function p(){d.value=!1,f()}function m(){let n=l(t);n<=0||(d.value=!0,c&&e(),f(),d.value&&(u=setInterval(e,n)))}return i&&y&&m(),(a(t)||typeof t==`function`)&&g(r(t,()=>{d.value&&y&&m()})),g(p),{isActive:s(d),pause:p,resume:m}}function I(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=o(!1),c;function u(){c&&=(clearTimeout(c),void 0)}function d(){a.value=!1,u()}function f(...n){i&&e(),u(),a.value=!0,c=setTimeout(()=>{a.value=!1,c=void 0,e(...n)},l(t))}return r&&(a.value=!0,y&&f()),g(d),{isPending:s(a),start:f,stop:d}}function L(e,t,n){return r(e,t,{...n,immediate:!0})}export{S as a,P as c,L as d,N as f,x as i,F as l,y as n,k as o,C as r,A as s,v as t,I as u}; |