UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 2.73 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`57c4c72d-5e7b-4da0-be78-f25ce9f1a568`,e._sentryDebugIdIdentifier=`sentry-dbid-57c4c72d-5e7b-4da0-be78-f25ce9f1a568`)})()}catch{}import{o as e,t}from"./chunk-CACdhNlC.js";import{Ft as n}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{l as r}from"./get-BjzKP_3k.js";import{c as i,f as a}from"./_MapCache-CP9ToMjk.js";import{cl as o}from"./constants-DuQbSl-q.js";var s=t(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),c=t(((e,t)=>{var n=s(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),l=t(((e,t)=>{var n=c(),a=i(),o=r(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;function p(e){if(typeof e==`number`)return e;if(o(e))return s;if(a(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=a(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var r=u.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):l.test(e)?s:+e}t.exports=p})),u=t(((e,t)=>{var n=a();t.exports=function(){return n.Date.now()}})),d=t(((e,t)=>{var n=i(),r=u(),a=l(),o=`Expected a function`,s=Math.max,c=Math.min;function d(e,t,i){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(o);t=a(t)||0,n(i)&&(g=!!i.leading,_=`maxWait`in i,d=_?s(a(i.maxWait)||0,t):d,v=`trailing`in i?!!i.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?c(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=d})),f=e(d(),1);function p(){let e=n(new WeakMap),t=(t,n)=>{let{trailing:r,debounceTime:i}=n,a=o(i),s=e.value.get(t);return s===void 0&&(s=(0,f.default)(async(...e)=>t(...e),a,r?{trailing:r}:{leading:!0}),e.value.set(t,s)),s};return{debounce:t,callDebounced:(e,n,...r)=>t(e,n)(...r)}}export{d as n,l as r,p as t}; //# sourceMappingURL=useDebounce-DyDXl6eh.js.map