@nevware21/ts-async
Advanced tools
Comparing version 0.5.2 to 0.5.3
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -7,3 +7,3 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. | ||
*/ | ||
function n(n,t){return n||t}function t(n,t){return n[t]}function A(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function C(t){return function(n){return typeof n===t}}function b(n){return typeof n===c||n===c}function j(n){return n&&n.then&&N(n.then)}function z(n,t){return!!n&&Hn.hasOwnProperty[s](n,t)||!!Gn(n,t)}function F(n,t,e){if(n&&(n||n!==a&&!b(n))&&n&&typeof n===xn)for(var r in n)if(Kn(n,r)&&-1===t[s](e||n,r,n[r]))break}function q(n,t,e){return k(n,t,(r=e,(u={})[Mn.c]=!0,u[Mn.e]=!0,r.l&&(u.get=function(){return r.l.v},n=Gn(r.l,"v"))&&n.set&&(u.set=function(n){r.l.v=n}),F(r,function(n,t){u[Mn[n]]=b(t)?u[Mn[n]]:t}),u));var r,u}function J(n,t,e,r){k(n,t,{value:e,enumerable:!0,writable:!!r})}function R(n,t){var e=kn,r=Hn[Wn][s](n);r===Vn&&(n={stack:d(n.stack),message:d(n.message),name:d(n.name)});try{e=(e=JSON.stringify(n,a,t?"number"==typeof t?t:4:f))&&e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||d(n)}catch(n){e=" - "+R(n,t)}return r+": "+e}function I(n){throw new TypeError(n)}function W(n){return n}function H(n){return n[$n]||a}function L(n){return t=Xn,e={},F(n,function(n,t){J(e,n,n,void 0),J(e,t,n,void 0)}),t?t(e):e;var t,e}function U(){var n;return(n=(n=(n=typeof globalThis!==c?globalThis:n)||typeof self===c?n:self)||typeof window===c?n:window)||typeof global===c?n:global}function B(t){return function(n){return n[t]}}function G(){var n;Zn||(n=A(U).v||{},Zn=n[et]=n[et]||{}),g=Zn}function E(n){return k({toJSON:function(){return n}},"v",{value:n})}function K(n,t){var e;return function(){return g||G(),(e=e&&!g.lzy?e:E(A(n,t).v)).v}}function M(n){return g||G(),(rt=rt&&!1!==n&&!g.lzy?rt:E(A(U).v||a)).v}function T(n,t){t=rt&&!1!==t?rt.v:M(t);return t&&t[n]?t[n]:n===ut?ft():a}function Q(){return it=E(A(T,[zn]).v)}function V(){return g||G(),((g.lzy?0:it)||Q()).v}function D(n,t){var e,r=tt[n],u=(g||G(),(g.lzy?0:it)||Q());return u.v?u.v[r||n]:t?f:(nt=nt||{},(u=tt[n])?nt[u]=nt[u]||((r={description:d(e=zn+"."+u),toString:function(){return zn+"("+e+")"}})[Fn]=!0,r):void 0)}function X(n){return n&&N(n.next)}function Y(n){return n!==a&&(n||n!==f)&&N(n[D(3)])}function Z(t,n,e){if(t&&(X(t)||(t=t[(ot=ot||E(D(3))).v]?t[ot.v]():null),X(t))){var r=f,u=f;try{for(var i=0;!(u=t.next()).done&&-1!==n[s](e||t,u.value,i,t);)i++}catch(n){r={e:n},t.throw&&(u=a,t.throw(r))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(r)throw r.e}}}}function nn(n,t,e){return n.apply(t,e)}function tn(n,t,e){if(n)for(var r=n[qn]>>>0,u=0;u<r&&!(u in n&&-1===t[s](e||n,n[u],u,n));u++);}function _(n){return(n&&n.slice||y).apply(n,y[s](arguments,1))}function en(n){var t;return n?((t=typeof n)!==xn&&"function"!=t&&I("Prototype must be an Object or function: "+R(n)),e[l]=n,new e):{};function e(){}}function rn(n,t){return(v.setPrototypeOf||function(e,n){var t;(st=st||E(((t={})[$n]=[],t instanceof Array))).v?e[$n]=n:F(n,function(n,t){return e[n]=t})})(n,t)}function un(n,t){t&&(n[Jn]=t)}function on(u,i,n){var t,e,o=n||Error,c=o[l][Jn],f=Error.captureStackTrace,n=o;return A(q,[e=function(){var n=this,t=arguments;try{A(un,[o,u]);var e,r=nn(o,n,y[s](t))||n;return r!==n&&(e=Yn(n))!==Yn(r)&&rn(r,e),f&&f(r,n[Cn]),i&&i(r,t),r}finally{A(un,[o,c])}},Jn,{v:t=u,c:!0,e:!1}]),(e=rn(e,n))[l]=n===a?vt(n):(r[l]=n[l],new r),e;function r(){this[Cn]=e,A(q,[this,Jn,{v:t,c:!0,e:!1}])}}function h(){return(Date.now||cn)()}function cn(){return(new Date).getTime()}function fn(n,t,e){var r,u=!0,i=n?t(a):a;function o(){return u=!1,i&&i[dt]&&i[dt](),r}function c(){i&&e(i),i=a}function f(){return i=t(i),u||o(),r}return(r={cancel:c,refresh:f})[ht]=function(){return i&&i[ht]?i[ht]():u},r[yt]=function(){return u=!0,i&&i[yt]&&i[yt](),r},r[dt]=o,{h:r=k(r,mt,{get:function(){return!!i},set:function(n){!n&&i&&c(),n&&!i&&f()}}),dn:function(){i=a}}}function O(){return n=f,t=y[s](arguments),r=(e=Un(n))?n.length:0,u=(0<r?n[0]:e?f:n)||setTimeout,i=(1<r?n[1]:f)||clearTimeout,o=t[0],t[0]=function(){c.dn(),nn(o,f,y[s](arguments))},(c=fn(!0,function(n){if(n){if(n.refresh)return n.refresh(),n;nn(i,f,[n])}return nn(u,f,t)},function(n){nn(i,f,[n])})).h;var n,t,e,r,u,i,o,c}function an(n,t){return m(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Rt,rejected:!0,reason:n}):n})}function m(n,t,e,r){var u=n;try{if(j(n))(t||e)&&(u=n.then(t,e));else try{t&&(u=t(n))}catch(n){if(!e)throw n;u=e(n)}}finally{r&&ln(u,r)}return u}function ln(n,t){var e=n;return t&&(j(n)?e=n.finally?n.finally(t):n.then(function(n){return t(),n},function(n){throw t(),n}):t()),e}function sn(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}function vn(n){return N(n)?n.toString():R(n)}function yn(n){return new(_t=_t||E(A(T,["AggregationError"]).v||on("AggregationError",function(n,t){n.errors=t[0]}))).v(n)}function dn(n,t,e){var o,i,r,u,c,f=_(arguments,3),a=0,l=!1,s=[],v=zt++,y=0<$.length?$[$.length-1]:void 0,d=!1,h=null;function m(u,i){try{return $.push(v),d=!0,h&&h.cancel(),h=null,n(function(e,r){s.push(function(){try{var n=2===a?u:i,t=b(n)?o:N(n)?n(o):n;j(t)?t.then(e,r):(n||3!==a?e:r)(t)}catch(n){r(n)}}),l&&g()},f)}finally{$.pop()}}function p(){return Tt[a]}function g(){var n;0<s.length&&(n=s.slice(),s=[],d=!0,h&&h.cancel(),h=null,t(n))}function P(t,e){return function(n){a===e&&(2===t&&j(n)?(a=1,n.then(P(2,1),P(3,1))):(a=t,l=!0,o=n,g(),d||3!==t||(h=h||O(w,Ft))))}}function w(){var n,t,e,r,u;d||(d=!0,at()?process.emit($t,o,i):(n=ft()||M(),Ot=Ot||E(A(T,[x+"RejectionEvent"]).v),n=n,t=Ct,u=function(n){return q(n,"promise",{g:function(){return i}}),n.reason=o,n},e=!!Ot.v,r=ct(),u(u=(Et=Et||E(!!A(sn,[r]).v)).v?r.createEvent("Event"):e?new Event(t):{}),Et.v&&u.initEvent(t,!1,!0),u&&n[Dt]?n[Dt](u):(r=n["on"+t])?r(u):(e=T("console"))&&(e.error||e.log)(t,R(u))))}k(i={then:m,catch:function(n){return m(void 0,n)},finally:function(t){var n=t,e=t;return N(t)&&(n=function(n){return t&&t(),n},e=function(n){throw t&&t(),n}),m(n,e)}},"state",{get:p}),It&&(r=i,S=function(){return n=o,Hn[Wn].call(n);var n},u=function(){return d},At=At||{toString:function(){return"[[PromiseResult]]"}},bt=bt||{toString:function(){return"[[PromiseIsHandled]]"}},(c={})[St=St||{toString:function(){return"[[PromiseState]]"}}]={get:p},c[At]={get:S},c[bt]={get:u},Qn(r,c)),V()&&(i[D(11)]="IPromise"),i.toString=function(){return"IPromise"+(It?"["+v+(b(y)?"":":"+y)+"]":"")+" "+p()+(l?" - "+vn(o):"")},N(e)||I(x+": executor is not a function - "+vn(e));var S=P(3,0);try{e.call(i,P(2,0),S)}catch(n){S(n)}return i}function hn(e){return function(n){var t=_(arguments,1);return e(function(e,r){try{var u=[],i=1;Z(n,function(n,t){n&&(i++,m(n,function(n){u[t]=n,0==--i&&e(u)},r))}),0==--i&&e(u)}catch(n){r(n)}},t)}}function mn(e){return function(t){var n=_(arguments,1);return j(t)?t:e(function(n){n(t)},n)}}function pn(t){return function(e){var n=_(arguments,1);return t(function(n,t){t(e)},n)}}function gn(t){return E(function(i){var n=_(arguments,1);return t(function(e,t){var r=[],u=1;function n(n,t){u++,an(n,function(n){n.rejected?r[t]={status:Rt,reason:n.reason}:r[t]={status:"fulfilled",value:n.value},0==--u&&e(r)})}try{Un(i)?tn(i,n):Y(i)?Z(i,n):I("Input is not an iterable"),0==--u&&e(r)}catch(n){t(n)}},n)})}function Pn(t){return E(function(u){var n=_(arguments,1);return t(function(t,e){var r=!1;function n(n){an(n,function(n){r||(r=!0,n.rejected?e(n.reason):t(n.value))})}try{Un(u)?tn(u,n):Y(u)?Z(u,n):I("Input is not an iterable")}catch(n){e(n)}},n)})}function wn(e){return E(function(t){var n=_(arguments,1);return e(function(e,r){var u=[],i=1,o=!1;function n(n,t){i++,an(n,function(n){n.rejected?(u[t]=n.reason,0!=--i||o||r(yn(u))):(o=!0,e(n.value))})}try{Un(t)?tn(t,n):Y(t)?Z(t,n):I("Input is not an iterable"),0!=--i||o||r(yn(u))}catch(n){r(n)}},n)})}function Sn(n){tn(n,function(n){try{n()}catch(n){}})}function u(n,t){return dn(u,(r=Bn(e=t)?e:0,function(n){O(function(){Sn(n)},r)}),n,t);var e,r}function An(n,t){return(Nt=Nt||gn(u)).v(n,t)}function bn(n,t){return(kt=kt||Pn(u)).v(n,t)}function jn(n,t){return(xt=xt||wn(u)).v(n,t)}function Rn(r,n){return(w=w||E(A(T,[x]).v||null)).v&&w.v[r]?E(function(e,n){return i(function(n,t){w.v[r](e).then(n,t)})}):n()}function i(n,t){var e=(w=w||E(A(T,[x]).v||null)).v;if(!e)return u(n);N(n)||I(x+": executor is not a function - "+R(n));var r=0,e=new e(function(t,e){n(function(n){r=2,t(n)},function(n){r=3,e(n)})});return k(e,"state",{get:function(){return Tt[r]}}),e}function e(n){return dn(e,Sn,n)}function In(n){Xt=n}function r(n,t){var o,t=b(t)?Xt:t;return dn(r,(0<=t&&(o={timeout:+t}),function(t){function e(n){Sn(t)}var r,n,u=o;function i(n){var t=h();return{didTimeout:n,timeRemaining:function(){return gt-(n=t,h()-n);var n}}}Pt()?(r=fn(!0,function(n){return n&&wt()(n),Pt()(function(n){r.dn(),e(n||i(!1))},u)},function(n){wt()(n)})).h:O(function(){e(i(!0))},b(n=(u||{}).timeout)?pt:n)}),n,t)}function p(n,t){return(ie=ie||E(i)).v.call(this,n,t)}function En(n,t,e,r){if(t.res=e,!n){if(t.isDone&&N(t.isDone))return m(t.isDone.call(r,t),function(n){return t.iter++,!!n});n=!!t.isDone}return t.iter++,n}function Tn(e,n,r){var u,i,o,c,t,f=function(n){throw a=!0,n},a=!1,l={st:h(),iter:0,isDone:n||!1};if(e)return o=function(){return p(function(n,t){i=n,f=t})},c=function(n){(a=!!n)?i(l.res):t()},(t=function(){for(;!a;)try{var n=e.call(r,l);if(j(n))return u=u||o(),m(n,function(n){try{m(En(a,l,n,r),c,f)}catch(n){f(n)}},f),u;var t=En(a,l,n,r);if(j(t))return u=u||o(),m(t,c,f),u;a=!!t}catch(n){return f(n),u}return a&&i&&i(l.res),u||l.res})()}function Dn(){}function _n(n,t,e){Se[n]||(Se[n]=on(n));var r=h();return new Se[n]("Task [".concat(t.id,"] ").concat(e||"","- ").concat(t.st?"Running":"Waiting",": ").concat((r-(t.st||t.cr)||"0")+" ms"))}function On(n,t){var e=h()-t;tn(n,function(n){(n&&!n.rj&&n.st&&n.st<e||!n.st&&n.cr&&n.cr<e)&&n&&n[S](n.rj||_n("Aborted",n,"Stale "))})}function Nn(n,t){t=lt(n,t);-1!==t&&n.splice(t,1)}var o,f,a,kn,xn,l,$n,c,Cn,zn,Fn,qn,Jn,s,Wn,v,Hn,Ln,y,N,Un,Bn,Gn,Kn,Mn,k,Qn,d,Vn,Xn,Yn,Zn,nt,g,tt,et,rt,ut,it,ot,ct,ft,at,lt,st,vt,P,yt,dt,ht,mt,pt,gt,Pt,wt,St,At,bt,x,jt,Rt,It,Et,Tt,Dt,_t,Ot,Nt,kt,xt,$t,Ct,$,zt,Ft,w,qt,Jt,Wt,Ht,Lt,Ut,Bt,Gt,Kt,Mt,Qt,Vt,Xt,Yt,Zt,ne,te,ee,re,ue,ie,oe,ce,fe,ae,le,se,ve,ye,de,he,me,pe,ge,S,Pe,we,Se,Ae;this.nevware21=this.nevware21||{},this.nevware21["ts-async"]=(o={},f=void 0,a=null,kn="",xn="object",$n="__proto__",c="undefined",Cn="constructor",zn="Symbol",Fn="_polyfill",qn="length",Jn="name",s="call",Wn="toString",Hn=t(v=n(Object),l="prototype"),y=t(Ln=t(Qt=n(Array),l),"slice"),N=C("function"),Un=t(Qt,"isArray"),Bn=C("number"),Gn=t(v,"getOwnPropertyDescriptor"),Kn=n(t(v,"hasOwn"),z),Mn={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},k=t(v,"defineProperty"),Qn=t(v,"defineProperties"),d=n(n(String)),Vn="[object Error]",Xn=n(t(v,"freeze"),W),Yn=n(t(v,"getPrototypeOf"),H),tt=L({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),et="__tsUtils$gblCfg",ct=K(T,["document"]),ft=K(T,[ut="window"]),at=K(function(){return!!A(function(){return process&&(process.versions||{}).node}).v}),lt=function(r){var u=Ln&&Ln[r];return function(n){var t,e=n&&n[r]||u;if(e)return t=arguments,(e||void 0).apply(n,e?y[s](t,1):t);I('"'+d(r)+'" not defined for '+R(n))}}("indexOf"),vt=n(t(v,"create"),en),P=B(qn),yt="ref",dt="unref",ht="hasRef",mt="enabled",pt=100,gt=50,Pt=K(T,["requestIdleCallback"]),wt=K(T,["cancelIdleCallback"]),x="Promise",jt="done",It=!(Rt="rejected"),Tt=["pending","resolving","resolved",Rt],Dt="dispatchEvent",Ct=($t="unhandledRejection").toLowerCase(),$=[],Ft=10,Lt=hn(u),Ut=mn(u),Bt=pn(u),Qt=mn(i),Vt=pn(i),te=hn(e),ee=mn(e),re=pn(e),ue=In,ae=hn(r),le=mn(r),se=pn(r),de=hn(p),he=mn(p),me=pn(p),S="reject",Pe="Rejected",we=zt=0,Se={},Ae=D(11),o.PolyPromise=function(){function n(n){this._$=u(n),Ae&&(this[Ae]="Promise"),k(this,"state",{get:function(){return this._$.state}})}n.all=Lt,n.race=bn,n.any=jn,n.reject=Bt,n.resolve=Ut,n.allSettled=An;var t=n.prototype;return t.then=function(n,t){return this._$.then(n,t)},t.catch=function(n){return this._$.catch(n)},t.finally=function(n){return this._$.finally(n)},n}(),o.arrForEachAsync=function(t,e,r){if(t){var u=P(t);if(u)return Tn(function(n){n=n.iter;if(n in t)return e.call(r||t,t[n],n,t)},function(n){if(n.iter>=u||-1===n.res)return!0})}},o.createAllPromise=de,o.createAllSettledPromise=function(n,t){return(oe=oe||gn(p)).v(n,t)},o.createAnyPromise=function(n,t){return(fe=fe||wn(p)).v(n,t)},o.createAsyncAllPromise=Lt,o.createAsyncAllSettledPromise=An,o.createAsyncAnyPromise=jn,o.createAsyncPromise=u,o.createAsyncRacePromise=bn,o.createAsyncRejectedPromise=Bt,o.createAsyncResolvedPromise=Ut,o.createIdleAllPromise=ae,o.createIdleAllSettledPromise=function(n,t){return(Yt=Yt||gn(r)).v(n,t)},o.createIdleAnyPromise=function(n,t){return(ne=ne||wn(r)).v(n,t)},o.createIdlePromise=r,o.createIdleRacePromise=function(n,t){return(Zt=Zt||Pn(r)).v(n,t)},o.createIdleRejectedPromise=se,o.createIdleResolvedPromise=le,o.createNativeAllPromise=function(n,t){return(qt=qt||Rn("all",function(){return E(hn(i))})).v(n,t)},o.createNativeAllSettledPromise=function(n,t){return(Jt=Jt||Rn("allSettled",function(){return gn(i)})).v(n,t)},o.createNativeAnyPromise=function(n,t){return(Ht=Ht||Rn("any",function(){return wn(i)})).v(n,t)},o.createNativePromise=i,o.createNativeRacePromise=function(n,t){return(Wt=Wt||Rn("race",function(){return Pn(i)})).v(n,t)},o.createNativeRejectedPromise=Vt,o.createNativeResolvedPromise=Qt,o.createPromise=p,o.createRacePromise=function(n,t){return(ce=ce||Pn(p)).v(n,t)},o.createRejectedPromise=me,o.createResolvedPromise=he,o.createSyncAllPromise=te,o.createSyncAllSettledPromise=function(n,t){return(Gt=Gt||gn(e)).v(n,t)},o.createSyncAnyPromise=function(n,t){return(Mt=Mt||wn(e)).v(n,t)},o.createSyncPromise=e,o.createSyncRacePromise=function(n,t){return(Kt=Kt||Pn(e)).v(n,t)},o.createSyncRejectedPromise=re,o.createSyncResolvedPromise=ee,o.createTaskScheduler=function(f,n){function a(){var n=0<P(u)+P(v);0<i&&(e||(e=O(function(){On(u,i),On(v,i),e&&(e.enabled=0<P(u)+P(v))},o)).unref(),e)&&(e.enabled=n)}function l(i,o){return i.st=h(),u.push(i),a(),function(t,e){function r(n){i.rj=i.rj||n||_n(Pe,i),i[S]=Dn,c(i),t=null,e&&e(n),e=null}var n=i.id;if(i.rj)r(i.rj);else{i[S]=r;try{var u=o(n);i.to&&j(u)&&(i.t=O(function(){r(_n("Timeout",i))},i.to)),m(u,function(n){c(i);try{t&&t(n)}catch(n){e&&e(n)}t=e=null},r)}catch(n){r(n)}}}}function c(n){Nn(u,n),n.t&&n.t.cancel(),n.t=null,s&&s===n&&(s=null,P(u)+P(v)===0)&&(e&&e.cancel(),e=null)}var s,e,t,r,u=[],v=[],i=6e5,o=i/10,y=0,d=(n?n+".":"")+we++,n=(f=f||p,{idle:!0,queue:function(n,t,e){var r,u,i,o=d+"."+y++,c=(t&&(o+="-("+t+")"),(t={id:o,cr:h(),to:e})[S]=function(n){c.rj=n||_n(Pe,c),c[S]=Dn},t);return c.p=s?(u=s,i=n,v.push(r=c),a(),f(function(n,t){an(u.p,function(){Nn(v,r),l(r,i)(n,t)})})):f(l(c,n)),(s=c).p},setStaleTimeout:function(n,t){e&&e.cancel(),e=null,i=n,o=t||n/10,a()}});return q(n,"idle",{g:function(){return P(u)+P(v)===0}}),r=function(){return{l:s,r:u,w:v}},ge=ge||{toString:function(){return"[[SchedulerState]]"}},k(t=n,pe=pe||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return d}}),k(t,ge,{get:r}),n},o.createTimeoutPromise=function(e,r,u){return p(function(n,t){O(function(){(r?n:t)(b(u)?"Timeout of "+e+"ms exceeded":u)},e)})},o.doAwait=m,o.doAwaitResponse=an,o.doFinally=ln,o.doWhileAsync=Tn,o.iterForOfAsync=function(n,e,r){var t,u,i=n;function o(n){throw t={e:n},i.throw&&(u=null,i.throw(t)),n}function c(){try{u&&!u[jt]&&i.return&&i.return(u)}finally{if(t)throw t.e}}if(n&&(X(n)||(ye=ye||E(D(0)),i=n[ye.v]?n[ye.v]():null)||(ve=ve||E(D(3)),i=n[ve.v]?n[ve.v]():null),i)&&X(i)){n=void 0;try{return n=j(n=Tn(function(t){return m(i.next(),function(n){if(!(u=n)[jt])return function(n,t){return n.apply(t,y[s](arguments,2))}(e,r||i,u.value,t.iter,i)},function(n){t.isDone=!0,o(n)})},function(n){if(!u||u[jt]||-1===n.res)return c(),!0},r||i))?ln(n.catch(o),c):n}catch(n){o(n)}finally{n&&!j(n)&&c()}}},o.setCreatePromiseImpl=function(n){ie=n?E(n):null},o.setDefaultIdlePromiseTimeout=In,o.setDefaultIdleTimeout=ue,o.setPromiseDebugState=function(n,t){It=n},o); | ||
function n(n,t){return n||t}function t(n,t){return n[t]}function A(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function C(t){return function(n){return typeof n===t}}function b(n){return typeof n===c||n===c}function z(n){return n||n!==f}function j(n){return n&&n.then&&N(n.then)}function F(n,t){return!!n&&Ln.hasOwnProperty[s](n,t)||!!Kn(n,t)}function q(n,t,e){if(n&&(n||n!==a&&!b(n))&&n&&typeof n===$n)for(var r in n)if(Mn(n,r)&&-1===t[s](e||n,r,n[r]))break}function J(n,t,e){return k(n,t,(r=e,(u={})[Qn.c]=!0,u[Qn.e]=!0,r.l&&(u.get=function(){return r.l.v},n=Kn(r.l,"v"))&&n.set&&(u.set=function(n){r.l.v=n}),q(r,function(n,t){u[Qn[n]]=z(t)?t:u[Qn[n]]}),u));var r,u}function W(n,t,e,r){k(n,t,{value:e,enumerable:!0,writable:!!r})}function R(n,t){var e=xn,r=Ln[Hn][s](n);r===Xn&&(n={stack:d(n.stack),message:d(n.message),name:d(n.name)});try{e=((e=JSON.stringify(n,a,t?"number"==typeof t?t:4:f))?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):a)||d(n)}catch(n){e=" - "+R(n,t)}return r+": "+e}function I(n){throw new TypeError(n)}function H(n){return n}function L(n){return n[Cn]||a}function U(n){return t=Yn,e={},q(n,function(n,t){W(e,n,n,void 0),W(e,t,n,void 0)}),t?t(e):e;var t,e}function B(){var n;return(n=(n=(n=typeof globalThis!==c?globalThis:n)||typeof self===c?n:self)||typeof window===c?n:window)||typeof global===c?n:global}function G(t){return function(n){return n[t]}}function K(){var n;nt||(n=A(B).v||{},nt=n[rt]=n[rt]||{}),g=nt}function E(n){return k({toJSON:function(){return n}},"v",{value:n})}function M(n,t){var e;return function(){return g||K(),(e=e&&!g.lzy?e:E(A(n,t).v)).v}}function Q(n){return g||K(),(ut=ut&&!1!==n&&!g.lzy?ut:E(A(B).v||a)).v}function T(n,t){t=ut&&!1!==t?ut.v:Q(t);if(t&&t[n])return t[n];if(n===it)try{return window}catch(n){}return a}function V(){return ot=E(A(T,[Fn]).v)}function X(){return g||K(),((g.lzy?0:ot)||V()).v}function D(n,t){var e,r=et[n],u=(g||K(),(g.lzy?0:ot)||V());return u.v?u.v[r||n]:t?f:(tt=tt||{},(u=et[n])?tt[u]=tt[u]||((r={description:d(e=Fn+"."+u),toString:function(){return Fn+"("+e+")"}})[qn]=!0,r):void 0)}function Y(n){return n&&N(n.next)}function Z(n){return n!==a&&z(n)&&N(n[D(3)])}function nn(t,n,e){if(t&&(Y(t)||(t=t[(ct=ct||E(D(3))).v]?t[ct.v]():a),Y(t))){var r=f,u=f;try{for(var i=0;!(u=t.next()).done&&-1!==n[s](e||t,u.value,i,t);)i++}catch(n){r={e:n},t.throw&&(u=a,t.throw(r))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(r)throw r.e}}}}function tn(n,t,e){return n.apply(t,e)}function en(n,t,e){if(n)for(var r=n[Jn]>>>0,u=0;u<r&&!(u in n&&-1===t[s](e||n,n[u],u,n));u++);}function _(n){return((n?n.slice:a)||y).apply(n,y[s](arguments,1))}function rn(n){var t;return n?((t=typeof n)!==$n&&"function"!=t&&I("Prototype must be an Object or function: "+R(n)),e[l]=n,new e):{};function e(){}}function un(n,t){return(v.setPrototypeOf||function(e,n){var t;(vt=vt||E(((t={})[Cn]=[],t instanceof Array))).v?e[Cn]=n:q(n,function(n,t){return e[n]=t})})(n,t)}function on(n,t){t&&(n[Wn]=t)}function cn(u,i,n){var t,e,o=n||Error,c=o[l][Wn],f=Error.captureStackTrace,n=o;return A(J,[e=function(){var n=this,t=arguments;try{A(on,[o,u]);var e,r=tn(o,n,y[s](t))||n;return r!==n&&(e=Zn(n))!==Zn(r)&&un(r,e),f&&f(r,n[zn]),i&&i(r,t),r}finally{A(on,[o,c])}},Wn,{v:t=u,c:!0,e:!1}]),(e=un(e,n))[l]=n===a?yt(n):(r[l]=n[l],new r),e;function r(){this[zn]=e,A(J,[this,Wn,{v:t,c:!0,e:!1}])}}function h(){return(Date.now||fn)()}function fn(){return(new Date).getTime()}function an(n,t,e){var r,u=!0,i=n?t(a):a;function o(){return u=!1,i&&i[ht]&&i[ht](),r}function c(){i&&e(i),i=a}function f(){return i=t(i),u||o(),r}return(r={cancel:c,refresh:f})[mt]=function(){return i&&i[mt]?i[mt]():u},r[dt]=function(){return u=!0,i&&i[dt]&&i[dt](),r},r[ht]=o,{h:r=k(r,pt,{get:function(){return!!i},set:function(n){!n&&i&&c(),n&&!i&&f()}}),dn:function(){i=a}}}function O(){return n=f,t=y[s](arguments),r=(e=Bn(n))?n.length:0,u=(0<r?n[0]:e?f:n)||setTimeout,i=(1<r?n[1]:f)||clearTimeout,o=t[0],t[0]=function(){c.dn(),tn(o,f,y[s](arguments))},(c=an(!0,function(n){if(n){if(n.refresh)return n.refresh(),n;tn(i,f,[n])}return tn(u,f,t)},function(n){tn(i,f,[n])})).h;var n,t,e,r,u,i,o,c}function ln(n,t){return m(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:It,rejected:!0,reason:n}):n})}function m(n,t,e,r){var u=n;try{if(j(n))(t||e)&&(u=n.then(t,e));else try{t&&(u=t(n))}catch(n){if(!e)throw n;u=e(n)}}finally{r&&sn(u,r)}return u}function sn(n,t){var e=n;return t&&(j(n)?e=n.finally?n.finally(t):n.then(function(n){return t(),n},function(n){throw t(),n}):t()),e}function vn(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}function yn(n){return N(n)?n.toString():R(n)}function dn(n){return new(Ot=Ot||E(A(T,["AggregationError"]).v||cn("AggregationError",function(n,t){n.errors=t[0]}))).v(n)}function hn(n,t,e){var o,i,r,u,c,f=_(arguments,3),a=0,l=!1,s=[],v=Ft++,y=0<$.length?$[$.length-1]:void 0,d=!1,h=null;function m(u,i){try{return $.push(v),d=!0,h&&h.cancel(),h=null,n(function(e,r){s.push(function(){try{var n=2===a?u:i,t=b(n)?o:N(n)?n(o):n;j(t)?t.then(e,r):(n||3!==a?e:r)(t)}catch(n){r(n)}}),l&&g()},f)}finally{$.pop()}}function p(){return Dt[a]}function g(){var n;0<s.length&&(n=s.slice(),s=[],d=!0,h&&h.cancel(),h=null,t(n))}function P(t,e){return function(n){a===e&&(2===t&&j(n)?(a=1,n.then(P(2,1),P(3,1))):(a=t,l=!0,o=n,g(),d||3!==t||(h=h||O(w,qt))))}}function w(){var n,t,e,r,u;d||(d=!0,lt()?process.emit(Ct,o,i):(n=at()||Q(),Nt=Nt||E(A(T,[x+"RejectionEvent"]).v),n=n,t=zt,u=function(n){return J(n,"promise",{g:function(){return i}}),n.reason=o,n},e=!!Nt.v,r=ft(),u(u=(Tt=Tt||E(!!A(vn,[r]).v)).v?r.createEvent("Event"):e?new Event(t):{}),Tt.v&&u.initEvent(t,!1,!0),u&&n[_t]?n[_t](u):(r=n["on"+t])?r(u):(e=T("console"))&&(e.error||e.log)(t,R(u))))}k(i={then:m,catch:function(n){return m(void 0,n)},finally:function(t){var n=t,e=t;return N(t)&&(n=function(n){return t&&t(),n},e=function(n){throw t&&t(),n}),m(n,e)}},"state",{get:p}),Et&&(r=i,S=function(){return n=o,Ln[Hn].call(n);var n},u=function(){return d},bt=bt||{toString:function(){return"[[PromiseResult]]"}},jt=jt||{toString:function(){return"[[PromiseIsHandled]]"}},(c={})[At=At||{toString:function(){return"[[PromiseState]]"}}]={get:p},c[bt]={get:S},c[jt]={get:u},Vn(r,c)),X()&&(i[D(11)]="IPromise"),i.toString=function(){return"IPromise"+(Et?"["+v+(b(y)?"":":"+y)+"]":"")+" "+p()+(l?" - "+yn(o):"")},N(e)||I(x+": executor is not a function - "+yn(e));var S=P(3,0);try{e.call(i,P(2,0),S)}catch(n){S(n)}return i}function mn(e){return function(n){var t=_(arguments,1);return e(function(e,r){try{var u=[],i=1;nn(n,function(n,t){n&&(i++,m(n,function(n){u[t]=n,0==--i&&e(u)},r))}),0==--i&&e(u)}catch(n){r(n)}},t)}}function pn(e){return function(t){var n=_(arguments,1);return j(t)?t:e(function(n){n(t)},n)}}function gn(t){return function(e){var n=_(arguments,1);return t(function(n,t){t(e)},n)}}function Pn(t){return E(function(i){var n=_(arguments,1);return t(function(e,t){var r=[],u=1;function n(n,t){u++,ln(n,function(n){n.rejected?r[t]={status:It,reason:n.reason}:r[t]={status:"fulfilled",value:n.value},0==--u&&e(r)})}try{Bn(i)?en(i,n):Z(i)?nn(i,n):I("Input is not an iterable"),0==--u&&e(r)}catch(n){t(n)}},n)})}function wn(t){return E(function(u){var n=_(arguments,1);return t(function(t,e){var r=!1;function n(n){ln(n,function(n){r||(r=!0,n.rejected?e(n.reason):t(n.value))})}try{Bn(u)?en(u,n):Z(u)?nn(u,n):I("Input is not an iterable")}catch(n){e(n)}},n)})}function Sn(e){return E(function(t){var n=_(arguments,1);return e(function(e,r){var u=[],i=1,o=!1;function n(n,t){i++,ln(n,function(n){n.rejected?(u[t]=n.reason,0!=--i||o||r(dn(u))):(o=!0,e(n.value))})}try{Bn(t)?en(t,n):Z(t)?nn(t,n):I("Input is not an iterable"),0!=--i||o||r(dn(u))}catch(n){r(n)}},n)})}function An(n){en(n,function(n){try{n()}catch(n){}})}function u(n,t){return hn(u,(r=Gn(e=t)?e:0,function(n){O(function(){An(n)},r)}),n,t);var e,r}function bn(n,t){return(kt=kt||Pn(u)).v(n,t)}function jn(n,t){return(xt=xt||wn(u)).v(n,t)}function Rn(n,t){return($t=$t||Sn(u)).v(n,t)}function In(r,n){return(w=w||E(A(T,[x]).v||null)).v&&w.v[r]?E(function(e,n){return i(function(n,t){w.v[r](e).then(n,t)})}):n()}function i(n,t){var e=(w=w||E(A(T,[x]).v||null)).v;if(!e)return u(n);N(n)||I(x+": executor is not a function - "+R(n));var r=0,e=new e(function(t,e){n(function(n){r=2,t(n)},function(n){r=3,e(n)})});return k(e,"state",{get:function(){return Dt[r]}}),e}function e(n){return hn(e,An,n)}function En(n){Yt=n}function r(n,t){var o,t=b(t)?Yt:t;return hn(r,(0<=t&&(o={timeout:+t}),function(t){function e(n){An(t)}var r,n,u=o;function i(n){var t=h();return{didTimeout:n,timeRemaining:function(){return Pt-(n=t,h()-n);var n}}}wt()?(r=an(!0,function(n){return n&&St()(n),wt()(function(n){r.dn(),e(n||i(!1))},u)},function(n){St()(n)})).h:O(function(){e(i(!0))},b(n=(u||{}).timeout)?gt:n)}),n,t)}function p(n,t){return(oe=oe||E(i)).v.call(this,n,t)}function Tn(n,t,e,r){if(t.res=e,!n){if(t.isDone&&N(t.isDone))return m(t.isDone.call(r,t),function(n){return t.iter++,!!n});n=!!t.isDone}return t.iter++,n}function Dn(e,n,r){var u,i,o,c,t,f=function(n){throw a=!0,n},a=!1,l={st:h(),iter:0,isDone:n||!1};if(e)return o=function(){return p(function(n,t){i=n,f=t})},c=function(n){(a=!!n)?i(l.res):t()},(t=function(){for(;!a;)try{var n=e.call(r,l);if(j(n))return u=u||o(),m(n,function(n){try{m(Tn(a,l,n,r),c,f)}catch(n){f(n)}},f),u;var t=Tn(a,l,n,r);if(j(t))return u=u||o(),m(t,c,f),u;a=!!t}catch(n){return f(n),u}return a&&i&&i(l.res),u||l.res})()}function _n(){}function On(n,t,e){Ae[n]||(Ae[n]=cn(n));var r=h();return new Ae[n]("Task [".concat(t.id,"] ").concat(e||"","- ").concat(t.st?"Running":"Waiting",": ").concat((r-(t.st||t.cr)||"0")+" ms"))}function Nn(n,t){var e=h()-t;en(n,function(n){(n&&!n.rj&&n.st&&n.st<e||!n.st&&n.cr&&n.cr<e)&&n&&n[S](n.rj||On("Aborted",n,"Stale "))})}function kn(n,t){t=st(n,t);-1!==t&&n.splice(t,1)}var o,f,a,xn,$n,l,Cn,c,zn,Fn,qn,Jn,Wn,s,Hn,v,Ln,Un,y,N,Bn,Gn,Kn,Mn,Qn,k,Vn,d,Xn,Yn,Zn,nt,tt,g,et,rt,ut,it,ot,ct,ft,at,lt,st,vt,yt,P,dt,ht,mt,pt,gt,Pt,wt,St,At,bt,jt,x,Rt,It,Et,Tt,Dt,_t,Ot,Nt,kt,xt,$t,Ct,zt,$,Ft,qt,w,Jt,Wt,Ht,Lt,Ut,Bt,Gt,Kt,Mt,Qt,Vt,Xt,Yt,Zt,ne,te,ee,re,ue,ie,oe,ce,fe,ae,le,se,ve,ye,de,he,me,pe,ge,Pe,S,we,Se,Ae,be;this.nevware21=this.nevware21||{},this.nevware21["ts-async"]=(o={},f=void 0,a=null,xn="",$n="object",Cn="__proto__",c="undefined",zn="constructor",Fn="Symbol",qn="_polyfill",Jn="length",Wn="name",s="call",Hn="toString",Ln=t(v=n(Object),l="prototype"),y=t(Un=t(Vt=n(Array),l),"slice"),N=C("function"),Bn=t(Vt,"isArray"),Gn=C("number"),Kn=t(v,"getOwnPropertyDescriptor"),Mn=n(t(v,"hasOwn"),F),Qn={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},k=t(v,"defineProperty"),Vn=t(v,"defineProperties"),d=n(n(String)),Xn="[object Error]",Yn=n(t(v,"freeze"),H),Zn=n(t(v,"getPrototypeOf"),L),et=U({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),rt="__tsUtils$gblCfg",ft=M(T,["document"]),at=M(T,[it="window"]),lt=M(function(){return!!A(function(){return process&&(process.versions||{}).node}).v}),st=(r=>{var u=Un?Un[r]:a;return function(n){var t,e=(n?n[r]:a)||u;if(e)return t=arguments,(e||void 0).apply(n,e?y[s](t,1):t);I('"'+d(r)+'" not defined for '+R(n))}})("indexOf"),yt=n(t(v,"create"),rn),P=G(Jn),dt="ref",ht="unref",mt="hasRef",pt="enabled",gt=100,Pt=50,wt=M(T,["requestIdleCallback"]),St=M(T,["cancelIdleCallback"]),x="Promise",Rt="done",Et=!(It="rejected"),Dt=["pending","resolving","resolved",It],_t="dispatchEvent",zt=(Ct="unhandledRejection").toLowerCase(),$=[],qt=10,Ut=mn(u),Bt=pn(u),Gt=gn(u),Vt=pn(i),Xt=gn(i),ee=mn(e),re=pn(e),ue=gn(e),ie=En,le=mn(r),se=pn(r),ve=gn(r),he=mn(p),me=pn(p),pe=gn(p),S="reject",we="Rejected",Se=Ft=0,Ae={},be=D(11),o.PolyPromise=(()=>{function n(n){this._$=u(n),be&&(this[be]="Promise"),k(this,"state",{get:function(){return this._$.state}})}n.all=Ut,n.race=jn,n.any=Rn,n.reject=Gt,n.resolve=Bt,n.allSettled=bn;var t=n.prototype;return t.then=function(n,t){return this._$.then(n,t)},t.catch=function(n){return this._$.catch(n)},t.finally=function(n){return this._$.finally(n)},n})(),o.arrForEachAsync=function(t,e,r){if(t){var u=P(t);if(u)return Dn(function(n){n=n.iter;if(n in t)return e.call(r||t,t[n],n,t)},function(n){if(n.iter>=u||-1===n.res)return!0})}},o.createAllPromise=he,o.createAllSettledPromise=function(n,t){return(ce=ce||Pn(p)).v(n,t)},o.createAnyPromise=function(n,t){return(ae=ae||Sn(p)).v(n,t)},o.createAsyncAllPromise=Ut,o.createAsyncAllSettledPromise=bn,o.createAsyncAnyPromise=Rn,o.createAsyncPromise=u,o.createAsyncRacePromise=jn,o.createAsyncRejectedPromise=Gt,o.createAsyncResolvedPromise=Bt,o.createIdleAllPromise=le,o.createIdleAllSettledPromise=function(n,t){return(Zt=Zt||Pn(r)).v(n,t)},o.createIdleAnyPromise=function(n,t){return(te=te||Sn(r)).v(n,t)},o.createIdlePromise=r,o.createIdleRacePromise=function(n,t){return(ne=ne||wn(r)).v(n,t)},o.createIdleRejectedPromise=ve,o.createIdleResolvedPromise=se,o.createNativeAllPromise=function(n,t){return(Jt=Jt||In("all",function(){return E(mn(i))})).v(n,t)},o.createNativeAllSettledPromise=function(n,t){return(Wt=Wt||In("allSettled",function(){return Pn(i)})).v(n,t)},o.createNativeAnyPromise=function(n,t){return(Lt=Lt||In("any",function(){return Sn(i)})).v(n,t)},o.createNativePromise=i,o.createNativeRacePromise=function(n,t){return(Ht=Ht||In("race",function(){return wn(i)})).v(n,t)},o.createNativeRejectedPromise=Xt,o.createNativeResolvedPromise=Vt,o.createPromise=p,o.createRacePromise=function(n,t){return(fe=fe||wn(p)).v(n,t)},o.createRejectedPromise=pe,o.createResolvedPromise=me,o.createSyncAllPromise=ee,o.createSyncAllSettledPromise=function(n,t){return(Kt=Kt||Pn(e)).v(n,t)},o.createSyncAnyPromise=function(n,t){return(Qt=Qt||Sn(e)).v(n,t)},o.createSyncPromise=e,o.createSyncRacePromise=function(n,t){return(Mt=Mt||wn(e)).v(n,t)},o.createSyncRejectedPromise=ue,o.createSyncResolvedPromise=re,o.createTaskScheduler=function(f,n){function a(){var n=0<P(u)+P(v);0<i&&(e||(e=O(function(){Nn(u,i),Nn(v,i),e&&(e.enabled=0<P(u)+P(v))},o)).unref(),e)&&(e.enabled=n)}function l(i,o){return i.st=h(),u.push(i),a(),function(t,e){function r(n){i.rj=i.rj||n||On(we,i),i[S]=_n,c(i),t=null,e&&e(n),e=null}var n=i.id;if(i.rj)r(i.rj);else{i[S]=r;try{var u=o(n);i.to&&j(u)&&(i.t=O(function(){r(On("Timeout",i))},i.to)),m(u,function(n){c(i);try{t&&t(n)}catch(n){e&&e(n)}t=e=null},r)}catch(n){r(n)}}}}function c(n){kn(u,n),n.t&&n.t.cancel(),n.t=null,s&&s===n&&(s=null,P(u)+P(v)===0)&&(e&&e.cancel(),e=null)}var s,e,t,r,u=[],v=[],i=6e5,o=i/10,y=0,d=(n?n+".":"")+Se++,n=(f=f||p,{idle:!0,queue:function(n,t,e){var r,u,i,o=d+"."+y++,c=(t&&(o+="-("+t+")"),(t={id:o,cr:h(),to:e})[S]=function(n){c.rj=n||On(we,c),c[S]=_n},t);return c.p=s?(u=s,i=n,v.push(r=c),a(),f(function(n,t){ln(u.p,function(){kn(v,r),l(r,i)(n,t)})})):f(l(c,n)),(s=c).p},setStaleTimeout:function(n,t){e&&e.cancel(),e=null,i=n,o=t||n/10,a()}});return J(n,"idle",{g:function(){return P(u)+P(v)===0}}),r=function(){return{l:s,r:u,w:v}},Pe=Pe||{toString:function(){return"[[SchedulerState]]"}},k(t=n,ge=ge||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return d}}),k(t,Pe,{get:r}),n},o.createTimeoutPromise=function(e,r,u){return p(function(n,t){O(function(){(r?n:t)(b(u)?"Timeout of "+e+"ms exceeded":u)},e)})},o.doAwait=m,o.doAwaitResponse=ln,o.doFinally=sn,o.doWhileAsync=Dn,o.iterForOfAsync=function(n,e,r){var t,u,i=n;function o(n){throw t={e:n},i.throw&&(u=null,i.throw(t)),n}function c(){try{u&&!u[Rt]&&i.return&&i.return(u)}finally{if(t)throw t.e}}if(n&&(Y(n)||(de=de||E(D(0)),i=n[de.v]?n[de.v]():null)||(ye=ye||E(D(3)),i=n[ye.v]?n[ye.v]():null),i)&&Y(i)){n=void 0;try{return n=j(n=Dn(function(t){return m(i.next(),function(n){if(!(u=n)[Rt])return function(n,t){return n.apply(t,y[s](arguments,2))}(e,r||i,u.value,t.iter,i)},function(n){t.isDone=!0,o(n)})},function(n){if(!u||u[Rt]||-1===n.res)return c(),!0},r||i))?sn(n.catch(o),c):n}catch(n){o(n)}finally{n&&!j(n)&&c()}}},o.setCreatePromiseImpl=function(n){oe=n?E(n):null},o.setDefaultIdlePromiseTimeout=En,o.setDefaultIdleTimeout=ie,o.setPromiseDebugState=function(n,t){Et=n},o); | ||
//# sourceMappingURL=ts-async.min.js.map |
/*! | ||
* NevWare21 Solutions LLC - ts-async Polyfills, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async Polyfills, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -60,2 +60,6 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isStrictUndefined(arg) { | ||
return !isDefined(arg); | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function isNullOrUndefined(value) { | ||
@@ -130,3 +134,3 @@ return value === NULL_VALUE || isUndefined(value); | ||
objForEachKey(value, function (key, value) { | ||
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value; | ||
prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value; | ||
}); | ||
@@ -166,3 +170,3 @@ return prop; | ||
propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE); | ||
propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object); | ||
propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object); | ||
} | ||
@@ -269,10 +273,13 @@ catch (e) { | ||
!_globalLazyTestHooks && _initTestHooks(); | ||
(!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v)); | ||
if (!cachedValue || _globalLazyTestHooks.lzy) { | ||
cachedValue = createCachedValue(safe(getFn, theArgs).v); | ||
} | ||
return cachedValue.v; | ||
}; | ||
} | ||
/*#__NO_SIDE_EFFECTS__*/ | ||
function getGlobal(useCached) { | ||
!_globalLazyTestHooks && _initTestHooks(); | ||
(!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE)); | ||
if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) { | ||
_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE); | ||
} | ||
return _cachedGlobal.v; | ||
@@ -282,3 +289,9 @@ } | ||
function getInst(name, useCached) { | ||
var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v; | ||
var gbl; | ||
if (!_cachedGlobal || useCached === false) { | ||
gbl = getGlobal(useCached); | ||
} | ||
else { | ||
gbl = _cachedGlobal.v; | ||
} | ||
if (gbl && gbl[name]) { | ||
@@ -288,3 +301,7 @@ return gbl[name]; | ||
if (name === WINDOW) { | ||
return getWindow(); | ||
try { | ||
return window; | ||
} | ||
catch (e) { | ||
} | ||
} | ||
@@ -333,3 +350,3 @@ return NULL_VALUE; | ||
!_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 ))); | ||
iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null; | ||
iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE; | ||
} | ||
@@ -386,3 +403,3 @@ if (isIterator(iter)) { | ||
function arrSlice(theArray, start, end) { | ||
return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1)); | ||
return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1)); | ||
} | ||
@@ -389,0 +406,0 @@ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate)); |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -7,3 +7,3 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. | ||
*/ | ||
function n(n,t){return n||t}function t(n,t){return n[t]}function m(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function J(t){return function(n){return typeof n===t}}function b(n){return typeof n===y||n===y}function w(n){return n&&n.then&&z(n.then)}function N(n,t){return!!n&&kn.hasOwnProperty[T](n,t)||!!Rn(n,t)}function o(n,t,r){if(n&&(n||n!==I&&!b(n))&&n&&typeof n===_n)for(var e in n)if(Cn(n,e)&&-1===t[T](r||n,e,n[e]))break}function E(n,t,r){return R(n,t,(e=r,(u={})[x.c]=!0,u[x.e]=!0,e.l&&(u.get=function(){return e.l.v},n=Rn(e.l,"v"))&&n.set&&(u.set=function(n){e.l.v=n}),o(e,function(n,t){u[x[n]]=b(t)?u[x[n]]:t}),u));var e,u}function D(n,t,r,e){R(n,t,{value:r,enumerable:!0,writable:!!e})}function j(n,t){var r=Pn,e=kn[zn][T](n);e===Jn&&(n={stack:C(n.stack),message:C(n.message),name:C(n.name)});try{r=(r=JSON.stringify(n,I,t?"number"==typeof t?t:4:d))&&r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||C(n)}catch(n){r=" - "+j(n,t)}return e+": "+r}function P(n){throw new TypeError(n)}function U(n){return n}function q(n){return n[On]||I}function B(n){return t=Nn,r={},o(n,function(n,t){D(r,n,n,void 0),D(r,t,n,void 0)}),t?t(r):r;var t,r}function F(){var n;return(n=(n=(n=typeof globalThis!==y?globalThis:n)||typeof self===y?n:self)||typeof window===y?n:window)||typeof global===y?n:global}function i(){var n;an||(n=m(F).v||{},an=n[qn]=n[qn]||{}),v=an}function S(n){return R({toJSON:function(){return n}},"v",{value:n})}function r(n,t){var r;return function(){return v||i(),(r=r&&!v.lzy?r:S(m(n,t).v)).v}}function G(n){return v||i(),(h=h&&!1!==n&&!v.lzy?h:S(m(F).v||I)).v}function _(n,t){t=h&&!1!==t?h.v:G(t);return t&&t[n]?t[n]:n===ln?Fn():I}function H(){return sn=S(m(_,[In]).v)}function K(){return v||i(),((v.lzy?0:sn)||H()).v}function O(n,t){var r,e=Un[n],u=(v||i(),(v.lzy?0:sn)||H());return u.v?u.v[e||n]:t?d:(s=s||{},(u=Un[n])?s[u]=s[u]||((e={description:C(r=In+"."+u),toString:function(){return In+"("+r+")"}})[Tn]=!0,e):void 0)}function L(n){return n&&z(n.next)}function c(n){return n!==I&&(n||n!==d)&&z(n[O(3)])}function f(t,n,r){if(t&&(L(t)||(t=t[(vn=vn||S(O(3))).v]?t[vn.v]():null),L(t))){var e=d,u=d;try{for(var o=0;!(u=t.next()).done&&-1!==n[T](r||t,u.value,o,t);)o++}catch(n){e={e:n},t.throw&&(u=I,t.throw(e))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(e)throw e.e}}}}function g(n,t,r){return n.apply(t,r)}function a(n,t,r){if(n)for(var e=n[$n]>>>0,u=0;u<e&&!(u in n&&-1===t[T](r||n,n[u],u,n));u++);}function A(n){return(n&&n.slice||$).apply(n,$[T](arguments,1))}function M(n){var t;return n?((t=typeof n)!==_n&&t!=Sn&&P("Prototype must be an Object or function: "+j(n)),r[l]=n,new r):{};function r(){}}function Q(n,t){return(e.setPrototypeOf||function(r,n){var t;(hn=hn||S(((t={})[On]=[],t instanceof Array))).v?r[On]=n:o(n,function(n,t){return r[n]=t})})(n,t)}function V(n,t){t&&(n[p]=t)}function W(){return f=d,a=$[T](arguments),s=(l=k(f))?f.length:0,v=(0<s?f[0]:l?d:f)||setTimeout,h=(1<s?f[1]:d)||clearTimeout,y=a[0],a[0]=function(){p.dn(),g(y,d,$[T](arguments))},u=function(n){g(h,d,[n])},i=!0,c=(e=function(n){if(n){if(n.refresh)return n.refresh(),n;g(h,d,[n])}return g(v,d,a)})(I),(o={cancel:t,refresh:r})[Mn]=function(){return c&&c[Mn]?c[Mn]():i},o[Kn]=function(){return i=!0,c&&c[Kn]&&c[Kn](),o},o[Ln]=n,(p={h:o=R(o,Qn,{get:function(){return!!c},set:function(n){!n&&c&&t(),n&&!c&&r()}}),dn:function(){c=I}}).h;function n(){return i=!1,c&&c[Ln]&&c[Ln](),o}function t(){c&&u(c),c=I}function r(){return c=e(c),i||n(),o}var e,u,o,i,c,f,a,l,s,v,h,y,p}function X(n,t){Y(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:yn,rejected:!0,reason:n}):n})}function Y(n,t,r,e){var u,o=n;try{if(w(n))(t||r)&&(o=n.then(t,r));else try{t&&(o=t(n))}catch(n){if(!r)throw n;o=r(n)}}finally{e&&(t=o,u=e)&&(w(t)?t.finally?t.finally(u):t.then(function(n){return u(),n},function(n){throw u(),n}):u())}}function Z(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}function nn(n){return z(n)?n.toString():j(n)}function tn(n){return new(gn=gn||S(m(_,["AggregationError"]).v||(c=(i=Error)[l][p],f=Error.captureStackTrace,e=i,m(E,[r=function(){var n=this,t=arguments;try{m(V,[i,u]);var r,e=g(i,n,$[T](t))||n;return e!==n&&(r=Dn(n))!==Dn(e)&&Q(e,r),f&&f(e,n[An]),o(e,t),e}finally{m(V,[i,c])}},p,{v:u="AggregationError",c:!0,e:!(o=function(n,t){n.errors=t[0]})}]),(r=Q(r,e))[l]=e===I?Hn(e):(t[l]=e[l],new t),r))).v(n);function t(){this[An]=r,m(E,[this,p,{v:"AggregationError",c:!0,e:!1}])}var u,o,r,i,c,f,e}function rn(r){return function(n){var t=A(arguments,1);return r(function(r,e){try{var u=[],o=1;f(n,function(n,t){n&&(o++,Y(n,function(n){u[t]=n,0==--o&&r(u)},e))}),0==--o&&r(u)}catch(n){e(n)}},t)}}function en(r){return function(t){var n=A(arguments,1);return w(t)?t:r(function(n){n(t)},n)}}function un(t){return function(r){var n=A(arguments,1);return t(function(n,t){t(r)},n)}}function u(n,t){return function(n,t,r){var i,o,e=A(arguments,3),c=0,f=!1,a=[],l=Zn++,s=!1,v=null;function u(u,o){try{return Yn.push(l),s=!0,v&&v.cancel(),v=null,n(function(r,e){a.push(function(){try{var n=2===c?u:o,t=b(n)?i:z(n)?n(i):n;w(t)?t.then(r,e):(n||3!==c?r:e)(t)}catch(n){e(n)}}),f&&y()},e)}finally{Yn.pop()}}function h(){return Wn[c]}function y(){var n;0<a.length&&(n=a.slice(),a=[],s=!0,v&&v.cancel(),v=null,t(n))}function p(t,r){return function(n){c===r&&(2===t&&w(n)?(c=1,n.then(p(2,1),p(3,1))):(c=t,f=!0,i=n,y(),s||3!==t||(v=v||W(g,10))))}}function g(){var n,t,r,e,u;s||(s=!0,Gn()?process.emit(En,i,o):(n=Fn()||G(),t="unhandledrejection",u=function(n){return E(n,"promise",{g:function(){return o}}),n.reason=i,n},r=!!(dn=dn||S(m(_,[Vn+"RejectionEvent"]).v)).v,e=Bn(),u(u=(pn=pn||S(!!m(Z,[e]).v)).v?e.createEvent("Event"):r?new Event(t):{}),pn.v&&u.initEvent(t,!1,!0),u&&n[Xn]?n[Xn](u):(e=n["on"+t])?e(u):(r=_("console"))&&(r.error||r.log)(t,j(u))))}R(o={then:u,catch:function(n){return u(void 0,n)},finally:function(t){var n=t,r=t;return z(t)&&(n=function(n){return t&&t(),n},r=function(n){throw t&&t(),n}),u(n,r)}},"state",{get:h}),K()&&(o[O(11)]="IPromise"),o.toString=function(){return"IPromise "+h()+(f?" - "+nn(i):"")},z(r)||P(Vn+": executor is not a function - "+nn(r));var d=p(3,0);try{r.call(o,p(2,0),d)}catch(n){d(n)}return o}(u,(e=xn(r=t)?r:0,function(n){W(function(){a(n,function(n){try{n()}catch(n){}})},e)}),n,t);var r,e}function on(n,t){var r;return mn||(r=u,mn=S(function(o){var n=A(arguments,1);return r(function(r,t){var e=[],u=1;function n(n,t){u++,X(n,function(n){n.rejected?e[t]={status:yn,reason:n.reason}:e[t]={status:"fulfilled",value:n.value},0==--u&&r(e)})}try{k(o)?a(o,n):c(o)?f(o,n):P("Input is not an iterable"),0==--u&&r(e)}catch(n){t(n)}},n)})),mn.v(n,t)}function cn(n,t){var r;return bn||(r=u,bn=S(function(u){var n=A(arguments,1);return r(function(t,r){var e=!1;function n(n){X(n,function(n){e||(e=!0,n.rejected?r(n.reason):t(n.value))})}try{k(u)?a(u,n):c(u)?f(u,n):P("Input is not an iterable")}catch(n){r(n)}},n)})),bn.v(n,t)}function fn(n,t){var r;return wn||(r=u,wn=S(function(t){var n=A(arguments,1);return r(function(r,e){var u=[],o=1,i=!1;function n(n,t){o++,X(n,function(n){n.rejected?(u[t]=n.reason,0!=--o||i||e(tn(u))):(i=!0,r(n.value))})}try{k(t)?a(t,n):c(t)?f(t,n):P("Input is not an iterable"),0!=--o||i||e(tn(u))}catch(n){e(n)}},n)})),wn.v(n,t)}var l,e,an,s,v,h,ln,sn,vn,hn,yn,pn,gn,dn,mn,bn,wn,En,jn,d=void 0,I=null,Pn="",Sn="function",_n="object",On="__proto__",y="undefined",An="constructor",In="Symbol",Tn="_polyfill",$n="length",p="name",T="call",zn="toString",kn=t(e=n(Object),l="prototype"),$=t(t(ut=n(Array),l),"slice"),z=J(Sn),k=t(ut,"isArray"),xn=J("number"),Rn=t(e,"getOwnPropertyDescriptor"),Cn=n(t(e,"hasOwn"),N),x={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},R=t(e,"defineProperty"),C=n(n(String)),Jn="[object Error]",Nn=n(t(e,"freeze"),U),Dn=n(t(e,"getPrototypeOf"),q),Un=B({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),qn="__tsUtils$gblCfg",Bn=r(_,["document"]),Fn=r(_,[ln="window"]),Gn=r(function(){return!!m(function(){return process&&(process.versions||{}).node}).v}),Hn=n(t(e,"create"),M),Kn="ref",Ln="unref",Mn="hasRef",Qn="enabled",Vn="Promise",Wn=["pending","resolving","resolved",yn="rejected"],Xn="dispatchEvent",Yn=(En="unhandledRejection",[]),Zn=0,nt=rn(u),tt=en(u),rt=un(u),et=O(11),ut=function(){function n(n){this._$=u(n),et&&(this[et]="Promise"),R(this,"state",{get:function(){return this._$.state}})}n.all=nt,n.race=cn,n.any=fn,n.reject=rt,n.resolve=tt,n.allSettled=on;var t=n.prototype;return t.then=function(n,t){return this._$.then(n,t)},t.catch=function(n){return this._$.catch(n)},t.finally=function(n){return this._$.finally(n)},n}();Promise?(jn=Promise)&&o({all:nt,resolved:tt,rejected:rt,allSettled:on},function(n,t){jn[n]||(jn[n]=t)}):Promise=ut; | ||
function n(n,t){return n||t}function t(n,t){return n[t]}function w(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function J(t){return function(n){return typeof n===t}}function N(n){return typeof n===p||n===p}function D(n){return n||n!==d}function m(n){return n&&n.then&&z(n.then)}function U(n,t){return!!n&&xn.hasOwnProperty[T](n,t)||!!Cn(n,t)}function o(n,t,r){if(n&&(n||n!==A&&!N(n))&&n&&typeof n===On)for(var e in n)if(Jn(n,e)&&-1===t[T](r||n,e,n[e]))break}function b(n,t,r){return R(n,t,(e=r,(u={})[x.c]=!0,u[x.e]=!0,e.l&&(u.get=function(){return e.l.v},n=Cn(e.l,"v"))&&n.set&&(u.set=function(n){e.l.v=n}),o(e,function(n,t){u[x[n]]=D(t)?t:u[x[n]]}),u));var e,u}function q(n,t,r,e){R(n,t,{value:r,enumerable:!0,writable:!!e})}function E(n,t){var r=Sn,e=xn[kn][T](n);e===Nn&&(n={stack:C(n.stack),message:C(n.message),name:C(n.name)});try{r=((r=JSON.stringify(n,A,t?"number"==typeof t?t:4:d))?r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):A)||C(n)}catch(n){r=" - "+E(n,t)}return e+": "+r}function j(n){throw new TypeError(n)}function B(n){return n}function F(n){return n[An]||A}function G(n){return t=Dn,r={},o(n,function(n,t){q(r,n,n,void 0),q(r,t,n,void 0)}),t?t(r):r;var t,r}function H(){var n;return(n=(n=(n=typeof globalThis!==p?globalThis:n)||typeof self===p?n:self)||typeof window===p?n:window)||typeof global===p?n:global}function i(){var n;ln||(n=w(H).v||{},ln=n[Bn]=n[Bn]||{}),h=ln}function P(n){return R({toJSON:function(){return n}},"v",{value:n})}function r(n,t){var r;return function(){return h||i(),(r=r&&!h.lzy?r:P(w(n,t).v)).v}}function K(n){return h||i(),(y=y&&!1!==n&&!h.lzy?y:P(w(H).v||A)).v}function S(n,t){t=y&&!1!==t?y.v:K(t);if(t&&t[n])return t[n];if(n===sn)try{return window}catch(n){}return A}function L(){return vn=P(w(S,[Tn]).v)}function M(){return h||i(),((h.lzy?0:vn)||L()).v}function _(n,t){var r,e=qn[n],u=(h||i(),(h.lzy?0:vn)||L());return u.v?u.v[e||n]:t?d:(v=v||{},(u=qn[n])?v[u]=v[u]||((e={description:C(r=Tn+"."+u),toString:function(){return Tn+"("+r+")"}})[$n]=!0,e):void 0)}function Q(n){return n&&z(n.next)}function c(n){return n!==A&&D(n)&&z(n[_(3)])}function f(t,n,r){if(t&&(Q(t)||(t=t[(hn=hn||P(_(3))).v]?t[hn.v]():A),Q(t))){var e=d,u=d;try{for(var o=0;!(u=t.next()).done&&-1!==n[T](r||t,u.value,o,t);)o++}catch(n){e={e:n},t.throw&&(u=A,t.throw(e))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(e)throw e.e}}}}function g(n,t,r){return n.apply(t,r)}function a(n,t,r){if(n)for(var e=n[zn]>>>0,u=0;u<e&&!(u in n&&-1===t[T](r||n,n[u],u,n));u++);}function O(n){return((n?n.slice:A)||$).apply(n,$[T](arguments,1))}function V(n){var t;return n?((t=typeof n)!==On&&t!=_n&&j("Prototype must be an Object or function: "+E(n)),r[s]=n,new r):{};function r(){}}function W(n,t){return(e.setPrototypeOf||function(r,n){var t;(yn=yn||P(((t={})[An]=[],t instanceof Array))).v?r[An]=n:o(n,function(n,t){return r[n]=t})})(n,t)}function X(n,t){t&&(n[I]=t)}function Y(){return f=d,a=$[T](arguments),s=(l=k(f))?f.length:0,v=(0<s?f[0]:l?d:f)||setTimeout,h=(1<s?f[1]:d)||clearTimeout,y=a[0],a[0]=function(){p.dn(),g(y,d,$[T](arguments))},u=function(n){g(h,d,[n])},i=!0,c=(e=function(n){if(n){if(n.refresh)return n.refresh(),n;g(h,d,[n])}return g(v,d,a)})(A),(o={cancel:t,refresh:r})[Qn]=function(){return c&&c[Qn]?c[Qn]():i},o[Ln]=function(){return i=!0,c&&c[Ln]&&c[Ln](),o},o[Mn]=n,(p={h:o=R(o,Vn,{get:function(){return!!c},set:function(n){!n&&c&&t(),n&&!c&&r()}}),dn:function(){c=A}}).h;function n(){return i=!1,c&&c[Mn]&&c[Mn](),o}function t(){c&&u(c),c=A}function r(){return c=e(c),i||n(),o}var e,u,o,i,c,f,a,l,s,v,h,y,p}function l(n,t){Z(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:pn,rejected:!0,reason:n}):n})}function Z(n,t,r,e){var u,o=n;try{if(m(n))(t||r)&&(o=n.then(t,r));else try{t&&(o=t(n))}catch(n){if(!r)throw n;o=r(n)}}finally{e&&(t=o,u=e)&&(m(t)?t.finally?t.finally(u):t.then(function(n){return u(),n},function(n){throw u(),n}):u())}}function nn(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}function tn(n){return z(n)?n.toString():E(n)}function rn(n){return new(dn=dn||P(w(S,["AggregationError"]).v||(c=(i=Error)[s][I],f=Error.captureStackTrace,e=i,w(b,[r=function(){var n=this,t=arguments;try{w(X,[i,u]);var r,e=g(i,n,$[T](t))||n;return e!==n&&(r=Un(n))!==Un(e)&&W(e,r),f&&f(e,n[In]),o(e,t),e}finally{w(X,[i,c])}},I,{v:u="AggregationError",c:!0,e:!(o=function(n,t){n.errors=t[0]})}]),(r=W(r,e))[s]=e===A?Kn(e):(t[s]=e[s],new t),r))).v(n);function t(){this[In]=r,w(b,[this,I,{v:"AggregationError",c:!0,e:!1}])}var u,o,r,i,c,f,e}function en(r){return function(n){var t=O(arguments,1);return r(function(r,e){try{var u=[],o=1;f(n,function(n,t){n&&(o++,Z(n,function(n){u[t]=n,0==--o&&r(u)},e))}),0==--o&&r(u)}catch(n){e(n)}},t)}}function un(r){return function(t){var n=O(arguments,1);return m(t)?t:r(function(n){n(t)},n)}}function on(t){return function(r){var n=O(arguments,1);return t(function(n,t){t(r)},n)}}function u(n,t){return function(n,t,r){var i,o,e=O(arguments,3),c=0,f=!1,a=[],l=nt++,s=!1,v=null;function u(u,o){try{return Zn.push(l),s=!0,v&&v.cancel(),v=null,n(function(r,e){a.push(function(){try{var n=2===c?u:o,t=N(n)?i:z(n)?n(i):n;m(t)?t.then(r,e):(n||3!==c?r:e)(t)}catch(n){e(n)}}),f&&y()},e)}finally{Zn.pop()}}function h(){return Xn[c]}function y(){var n;0<a.length&&(n=a.slice(),a=[],s=!0,v&&v.cancel(),v=null,t(n))}function p(t,r){return function(n){c===r&&(2===t&&m(n)?(c=1,n.then(p(2,1),p(3,1))):(c=t,f=!0,i=n,y(),s||3!==t||(v=v||Y(g,10))))}}function g(){var n,t,r,e,u;s||(s=!0,Hn()?process.emit(jn,i,o):(n=Gn()||K(),t="unhandledrejection",u=function(n){return b(n,"promise",{g:function(){return o}}),n.reason=i,n},r=!!(wn=wn||P(w(S,[Wn+"RejectionEvent"]).v)).v,e=Fn(),u(u=(gn=gn||P(!!w(nn,[e]).v)).v?e.createEvent("Event"):r?new Event(t):{}),gn.v&&u.initEvent(t,!1,!0),u&&n[Yn]?n[Yn](u):(e=n["on"+t])?e(u):(r=S("console"))&&(r.error||r.log)(t,E(u))))}R(o={then:u,catch:function(n){return u(void 0,n)},finally:function(t){var n=t,r=t;return z(t)&&(n=function(n){return t&&t(),n},r=function(n){throw t&&t(),n}),u(n,r)}},"state",{get:h}),M()&&(o[_(11)]="IPromise"),o.toString=function(){return"IPromise "+h()+(f?" - "+tn(i):"")},z(r)||j(Wn+": executor is not a function - "+tn(r));var d=p(3,0);try{r.call(o,p(2,0),d)}catch(n){d(n)}return o}(u,(e=Rn(r=t)?r:0,function(n){Y(function(){a(n,function(n){try{n()}catch(n){}})},e)}),n,t);var r,e}function cn(n,t){var r;return mn||(r=u,mn=P(function(o){var n=O(arguments,1);return r(function(r,t){var e=[],u=1;function n(n,t){u++,l(n,function(n){n.rejected?e[t]={status:pn,reason:n.reason}:e[t]={status:"fulfilled",value:n.value},0==--u&&r(e)})}try{k(o)?a(o,n):c(o)?f(o,n):j("Input is not an iterable"),0==--u&&r(e)}catch(n){t(n)}},n)})),mn.v(n,t)}function fn(n,t){var r;return bn||(r=u,bn=P(function(u){var n=O(arguments,1);return r(function(t,r){var e=!1;function n(n){l(n,function(n){e||(e=!0,n.rejected?r(n.reason):t(n.value))})}try{k(u)?a(u,n):c(u)?f(u,n):j("Input is not an iterable")}catch(n){r(n)}},n)})),bn.v(n,t)}function an(n,t){var r;return En||(r=u,En=P(function(t){var n=O(arguments,1);return r(function(r,e){var u=[],o=1,i=!1;function n(n,t){o++,l(n,function(n){n.rejected?(u[t]=n.reason,0!=--o||i||e(rn(u))):(i=!0,r(n.value))})}try{k(t)?a(t,n):c(t)?f(t,n):j("Input is not an iterable"),0!=--o||i||e(rn(u))}catch(n){e(n)}},n)})),En.v(n,t)}var s,e,ln,v,h,y,sn,vn,hn,yn,pn,gn,dn,wn,mn,bn,En,jn,Pn,d=void 0,A=null,Sn="",_n="function",On="object",An="__proto__",p="undefined",In="constructor",Tn="Symbol",$n="_polyfill",zn="length",I="name",T="call",kn="toString",xn=t(e=n(Object),s="prototype"),$=t(t(ot=n(Array),s),"slice"),z=J(_n),k=t(ot,"isArray"),Rn=J("number"),Cn=t(e,"getOwnPropertyDescriptor"),Jn=n(t(e,"hasOwn"),U),x={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},R=t(e,"defineProperty"),C=n(n(String)),Nn="[object Error]",Dn=n(t(e,"freeze"),B),Un=n(t(e,"getPrototypeOf"),F),qn=G({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Bn="__tsUtils$gblCfg",Fn=r(S,["document"]),Gn=r(S,[sn="window"]),Hn=r(function(){return!!w(function(){return process&&(process.versions||{}).node}).v}),Kn=n(t(e,"create"),V),Ln="ref",Mn="unref",Qn="hasRef",Vn="enabled",Wn="Promise",Xn=["pending","resolving","resolved",pn="rejected"],Yn="dispatchEvent",Zn=(jn="unhandledRejection",[]),nt=0,tt=en(u),rt=un(u),et=on(u),ut=_(11),ot=(()=>{function n(n){this._$=u(n),ut&&(this[ut]="Promise"),R(this,"state",{get:function(){return this._$.state}})}n.all=tt,n.race=fn,n.any=an,n.reject=et,n.resolve=rt,n.allSettled=cn;var t=n.prototype;return t.then=function(n,t){return this._$.then(n,t)},t.catch=function(n){return this._$.catch(n)},t.finally=function(n){return this._$.finally(n)},n})();Promise?(Pn=Promise)&&o({all:tt,resolved:rt,rejected:et,allSettled:cn},function(n,t){Pn[n]||(Pn[n]=t)}):Promise=ot; | ||
//# sourceMappingURL=ts-polyfills-async.min.js.map |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -7,3 +7,3 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. | ||
*/ | ||
function n(n){function t(n,t){return n||t}function e(n,t){return n[t]}var f=void 0,a=null,C="",z="function",F="object",l="prototype",q="__proto__",r="undefined",J="constructor",W="Symbol",H="_polyfill",L="length",U="name",s="call",B="toString",u=t(Object),G=e(u,l),K=e(Jt=t(Array),l),v=e(K,"slice");function b(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function M(t){return function(n){return typeof n===t}}function A(n){return typeof n===r||n===r}var j=M(z),Q=e(Jt,"isArray"),V=M("number");function R(n){return n&&n.then&&j(n.then)}var X=e(u,"getOwnPropertyDescriptor"),Y=t(e(u,"hasOwn"),Z);function Z(n,t){return!!n&&G.hasOwnProperty[s](n,t)||!!X(n,t)}function nn(n,t,e){if(n&&(n||n!==a&&!A(n))&&n&&typeof n===F)for(var r in n)if(Y(n,r)&&-1===t[s](e||n,r,n[r]))break}var tn={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},I=e(u,"defineProperty"),en=e(u,"defineProperties");function rn(n,t,e){return I(n,t,(r=e,(u={})[tn.c]=!0,u[tn.e]=!0,r.l&&(u.get=function(){return r.l.v},n=X(r.l,"v"))&&n.set&&(u.set=function(n){r.l.v=n}),nn(r,function(n,t){u[tn[n]]=A(t)?u[tn[n]]:t}),u));var r,u}function un(n,t,e,r){I(n,t,{value:e,enumerable:!0,writable:!!r})}var i=t(t(String)),on="[object Error]";function T(n,t){var e=C,r=G[B][s](n);r===on&&(n={stack:i(n.stack),message:i(n.message),name:i(n.name)});try{e=(e=JSON.stringify(n,a,t?"number"==typeof t?t:4:f))&&e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||i(n)}catch(n){e=" - "+T(n,t)}return r+": "+e}function E(n){throw new TypeError(n)}function cn(n){return n}function fn(n){return n[q]||a}var an=t(e(u,"freeze"),cn),ln=t(e(u,"getPrototypeOf"),fn);function sn(n){return t=an,e={},nn(n,function(n,t){un(e,n,n,void 0),un(e,t,n,void 0)}),t?t(e):e;var t,e}var vn,dn,o,yn=sn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),hn="__tsUtils$gblCfg";function mn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function pn(t){return function(n){return n[t]}}function gn(){var n;vn||(n=b(mn).v||{},vn=n[hn]=n[hn]||{}),o=vn}function D(n){return I({toJSON:function(){return n}},"v",{value:n})}var c,Pn="window";function d(n,t){var e;return function(){return o||gn(),(e=e&&!o.lzy?e:D(b(n,t).v)).v}}function wn(n){return o||gn(),(c=c&&!1!==n&&!o.lzy?c:D(b(mn).v||a)).v}function _(n,t){t=c&&!1!==t?c.v:wn(t);return t&&t[n]?t[n]:n===Pn?jn():a}var Sn,bn,An=d(_,["document"]),jn=d(_,[Pn]),Rn=d(function(){return!!b(function(){return process&&(process.versions||{}).node}).v});function In(){return Sn=D(b(_,[W]).v)}function Tn(){return o||gn(),((o.lzy?0:Sn)||In()).v}function O(n,t){var e,r=yn[n],u=(o||gn(),(o.lzy?0:Sn)||In());return u.v?u.v[r||n]:t?f:(dn=dn||{},(u=yn[n])?dn[u]=dn[u]||((r={description:i(e=W+"."+u),toString:function(){return W+"("+e+")"}})[H]=!0,r):void 0)}function En(n){return n&&j(n.next)}function Dn(n){return n!==a&&(n||n!==f)&&j(n[O(3)])}function _n(t,n,e){if(t&&(En(t)||(t=t[(bn=bn||D(O(3))).v]?t[bn.v]():null),En(t))){var r=f,u=f;try{for(var i=0;!(u=t.next()).done&&-1!==n[s](e||t,u.value,i,t);)i++}catch(n){r={e:n},t.throw&&(u=a,t.throw(r))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(r)throw r.e}}}}function y(n,t,e){return n.apply(t,e)}function On(n,t,e){if(n)for(var r=n[L]>>>0,u=0;u<r&&!(u in n&&-1===t[s](e||n,n[u],u,n));u++);}var xn=function(r){var u=K&&K[r];return function(n){var t,e=n&&n[r]||u;if(e)return t=arguments,(e||void 0).apply(n,e?v[s](t,1):t);E('"'+i(r)+'" not defined for '+T(n))}}("indexOf");function x(n){return(n&&n.slice||v).apply(n,v[s](arguments,1))}var Nn,kn=t(e(u,"create"),$n);function $n(n){var t;return n?((t=typeof n)!==F&&t!=z&&E("Prototype must be an Object or function: "+T(n)),e[l]=n,new e):{};function e(){}}function Cn(n,t){return(u.setPrototypeOf||function(e,n){var t;(Nn=Nn||D(((t={})[q]=[],t instanceof Array))).v?e[q]=n:nn(n,function(n,t){return e[n]=t})})(n,t)}function zn(n,t){t&&(n[U]=t)}function Fn(u,i,n){var t,e,o=n||Error,c=o[l][U],f=Error.captureStackTrace,n=o;return b(rn,[e=function(){var n=this,t=arguments;try{b(zn,[o,u]);var e,r=y(o,n,v[s](t))||n;return r!==n&&(e=ln(n))!==ln(r)&&Cn(r,e),f&&f(r,n[J]),i&&i(r,t),r}finally{b(zn,[o,c])}},U,{v:t=u,c:!0,e:!1}]),(e=Cn(e,n))[l]=n===a?kn(n):(r[l]=n[l],new r),e;function r(){this[J]=e,b(rn,[this,U,{v:t,c:!0,e:!1}])}}function h(){return(Date.now||qn)()}function qn(){return(new Date).getTime()}var m=pn(L),Jn="ref",Wn="unref",Hn="hasRef",Ln="enabled";function Un(n,t,e){var r,u=!0,i=n?t(a):a;function o(){return u=!1,i&&i[Wn]&&i[Wn](),r}function c(){i&&e(i),i=a}function f(){return i=t(i),u||o(),r}return(r={cancel:c,refresh:f})[Hn]=function(){return i&&i[Hn]?i[Hn]():u},r[Jn]=function(){return u=!0,i&&i[Jn]&&i[Jn](),r},r[Wn]=o,{h:r=I(r,Ln,{get:function(){return!!i},set:function(n){!n&&i&&c(),n&&!i&&f()}}),dn:function(){i=a}}}function N(){return n=f,t=v[s](arguments),r=(e=Q(n))?n.length:0,u=(0<r?n[0]:e?f:n)||setTimeout,i=(1<r?n[1]:f)||clearTimeout,o=t[0],t[0]=function(){c.dn(),y(o,f,v[s](arguments))},(c=Un(!0,function(n){if(n){if(n.refresh)return n.refresh(),n;y(i,f,[n])}return y(u,f,t)},function(n){y(i,f,[n])})).h;var n,t,e,r,u,i,o,c}var Bn,Gn,Kn,Mn=d(_,["requestIdleCallback"]),Qn=d(_,["cancelIdleCallback"]),Vn="Promise",Xn="done",Yn="rejected";function Zn(n,t){return p(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Yn,rejected:!0,reason:n}):n})}function p(n,t,e,r){var u=n;try{if(R(n))(t||e)&&(u=n.then(t,e));else try{t&&(u=t(n))}catch(n){if(!e)throw n;u=e(n)}}finally{r&&nt(u,r)}return u}function nt(n,t){var e=n;return t&&(R(n)?e=n.finally?n.finally(t):n.then(function(n){return t(),n},function(n){throw t(),n}):t()),e}var tt,et=!1,rt=["pending","resolving","resolved",Yn],ut="dispatchEvent";function it(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}var ot,ct,ft,at,lt,st="unhandledRejection",vt=st.toLowerCase(),dt=[],yt=0,ht=10;function mt(n){return j(n)?n.toString():T(n)}function pt(n){return new(ot=ot||D(b(_,["AggregationError"]).v||Fn("AggregationError",function(n,t){n.errors=t[0]}))).v(n)}function gt(n,t,e){var o,i,r,u,c,f=x(arguments,3),a=0,l=!1,s=[],v=yt++,d=0<dt.length?dt[dt.length-1]:void 0,y=!1,h=null;function m(u,i){try{return dt.push(v),y=!0,h&&h.cancel(),h=null,n(function(e,r){s.push(function(){try{var n=2===a?u:i,t=A(n)?o:j(n)?n(o):n;R(t)?t.then(e,r):(n||3!==a?e:r)(t)}catch(n){r(n)}}),l&&g()},f)}finally{dt.pop()}}function p(){return rt[a]}function g(){var n;0<s.length&&(n=s.slice(),s=[],y=!0,h&&h.cancel(),h=null,t(n))}function P(t,e){return function(n){a===e&&(2===t&&R(n)?(a=1,n.then(P(2,1),P(3,1))):(a=t,l=!0,o=n,g(),y||3!==t||(h=h||N(w,ht))))}}function w(){var n,t,e,r,u;y||(y=!0,Rn()?process.emit(st,o,i):(n=jn()||wn(),ct=ct||D(b(_,[Vn+"RejectionEvent"]).v),n=n,t=vt,u=function(n){return rn(n,"promise",{g:function(){return i}}),n.reason=o,n},e=!!ct.v,r=An(),u(u=(tt=tt||D(!!b(it,[r]).v)).v?r.createEvent("Event"):e?new Event(t):{}),tt.v&&u.initEvent(t,!1,!0),u&&n[ut]?n[ut](u):(r=n["on"+t])?r(u):(e=_("console"))&&(e.error||e.log)(t,T(u))))}I(i={then:m,catch:function(n){return m(void 0,n)},finally:function(t){var n=t,e=t;return j(t)&&(n=function(n){return t&&t(),n},e=function(n){throw t&&t(),n}),m(n,e)}},"state",{get:p}),et&&(r=i,S=function(){return n=o,G[B].call(n);var n},u=function(){return y},Gn=Gn||{toString:function(){return"[[PromiseResult]]"}},Kn=Kn||{toString:function(){return"[[PromiseIsHandled]]"}},(c={})[Bn=Bn||{toString:function(){return"[[PromiseState]]"}}]={get:p},c[Gn]={get:S},c[Kn]={get:u},en(r,c)),Tn()&&(i[O(11)]="IPromise"),i.toString=function(){return"IPromise"+(et?"["+v+(A(d)?"":":"+d)+"]":"")+" "+p()+(l?" - "+mt(o):"")},j(e)||E(Vn+": executor is not a function - "+mt(e));var S=P(3,0);try{e.call(i,P(2,0),S)}catch(n){S(n)}return i}function Pt(e){return function(n){var t=x(arguments,1);return e(function(e,r){try{var u=[],i=1;_n(n,function(n,t){n&&(i++,p(n,function(n){u[t]=n,0==--i&&e(u)},r))}),0==--i&&e(u)}catch(n){r(n)}},t)}}function wt(e){return function(t){var n=x(arguments,1);return R(t)?t:e(function(n){n(t)},n)}}function St(t){return function(e){var n=x(arguments,1);return t(function(n,t){t(e)},n)}}function bt(t){return D(function(i){var n=x(arguments,1);return t(function(e,t){var r=[],u=1;function n(n,t){u++,Zn(n,function(n){n.rejected?r[t]={status:Yn,reason:n.reason}:r[t]={status:"fulfilled",value:n.value},0==--u&&e(r)})}try{Q(i)?On(i,n):Dn(i)?_n(i,n):E("Input is not an iterable"),0==--u&&e(r)}catch(n){t(n)}},n)})}function At(t){return D(function(u){var n=x(arguments,1);return t(function(t,e){var r=!1;function n(n){Zn(n,function(n){r||(r=!0,n.rejected?e(n.reason):t(n.value))})}try{Q(u)?On(u,n):Dn(u)?_n(u,n):E("Input is not an iterable")}catch(n){e(n)}},n)})}function jt(e){return D(function(t){var n=x(arguments,1);return e(function(e,r){var u=[],i=1,o=!1;function n(n,t){i++,Zn(n,function(n){n.rejected?(u[t]=n.reason,0!=--i||o||r(pt(u))):(o=!0,e(n.value))})}try{Q(t)?On(t,n):Dn(t)?_n(t,n):E("Input is not an iterable"),0!=--i||o||r(pt(u))}catch(n){r(n)}},n)})}function Rt(n){On(n,function(n){try{n()}catch(n){}})}function g(n,t){return gt(g,(r=V(e=t)?e:0,function(n){N(function(){Rt(n)},r)}),n,t);var e,r}var P,It,Tt,Et,Dt,_t=Pt(g),Ot=wt(g),xt=St(g);function Nt(n,t){return(ft=ft||bt(g)).v(n,t)}function kt(n,t){return(at=at||At(g)).v(n,t)}function $t(n,t){return(lt=lt||jt(g)).v(n,t)}function Ct(r,n){return(P=P||D(b(_,[Vn]).v||null)).v&&P.v[r]?D(function(e,n){return w(function(n,t){P.v[r](e).then(n,t)})}):n()}function w(n,t){var e=(P=P||D(b(_,[Vn]).v||null)).v;if(!e)return g(n);j(n)||E(Vn+": executor is not a function - "+T(n));var r=0,e=new e(function(t,e){n(function(n){r=2,t(n)},function(n){r=3,e(n)})});return I(e,"state",{get:function(){return rt[r]}}),e}var zt,Ft,qt,Jt=wt(w),Wt=St(w);function S(n){return gt(S,Rt,n)}var Ht,Lt,Ut,Bt,Gt=Pt(S),Kt=wt(S),Mt=St(S);function Qt(n){Ht=n}var Vt=Qt;function k(n,t){var o,t=A(t)?Ht:t;return gt(k,(0<=t&&(o={timeout:+t}),function(t){function e(n){Rt(t)}var r,n,u=o;function i(n){var t=h();return{didTimeout:n,timeRemaining:function(){return 50-(n=t,h()-n);var n}}}Mn()?(r=Un(!0,function(n){return n&&Qn()(n),Mn()(function(n){r.dn(),e(n||i(!1))},u)},function(n){Qn()(n)})).h:N(function(){e(i(!0))},A(n=(u||{}).timeout)?100:n)}),n,t)}var Xt,Yt,Zt,ne,te=Pt(k),ee=wt(k),re=St(k);function $(n,t){return(Xt=Xt||D(w)).v.call(this,n,t)}var ue,ie,oe=Pt($),ce=wt($),fe=St($);function ae(n,t,e,r){if(t.res=e,!n){if(t.isDone&&j(t.isDone))return p(t.isDone.call(r,t),function(n){return t.iter++,!!n});n=!!t.isDone}return t.iter++,n}function le(e,n,r){var u,i,o,c,t,f=function(n){throw a=!0,n},a=!1,l={st:h(),iter:0,isDone:n||!1};if(e)return o=function(){return $(function(n,t){i=n,f=t})},c=function(n){(a=!!n)?i(l.res):t()},(t=function(){for(;!a;)try{var n=e.call(r,l);if(R(n))return u=u||o(),p(n,function(n){try{p(ae(a,l,n,r),c,f)}catch(n){f(n)}},f),u;var t=ae(a,l,n,r);if(R(t))return u=u||o(),p(t,c,f),u;a=!!t}catch(n){return f(n),u}return a&&i&&i(l.res),u||l.res})()}var se,ve,de="reject",ye="Rejected",he=0,me={};function pe(){}function ge(n,t,e){me[n]||(me[n]=Fn(n));var r=h();return new me[n]("Task [".concat(t.id,"] ").concat(e||"","- ").concat(t.st?"Running":"Waiting",": ").concat((r-(t.st||t.cr)||"0")+" ms"))}function Pe(n,t){var e=h()-t;On(n,function(n){(n&&!n.rj&&n.st&&n.st<e||!n.st&&n.cr&&n.cr<e)&&n&&n[de](n.rj||ge("Aborted",n,"Stale "))})}function we(n,t){t=xn(n,t);-1!==t&&n.splice(t,1)}var Se=O(11);n.PolyPromise=function(){function n(n){this._$=g(n),Se&&(this[Se]="Promise"),I(this,"state",{get:function(){return this._$.state}})}n.all=_t,n.race=kt,n.any=$t,n.reject=xt,n.resolve=Ot,n.allSettled=Nt;var t=n.prototype;return t.then=function(n,t){return this._$.then(n,t)},t.catch=function(n){return this._$.catch(n)},t.finally=function(n){return this._$.finally(n)},n}(),n.arrForEachAsync=function(t,e,r){if(t){var u=m(t);if(u)return le(function(n){n=n.iter;if(n in t)return e.call(r||t,t[n],n,t)},function(n){if(n.iter>=u||-1===n.res)return!0})}},n.createAllPromise=oe,n.createAllSettledPromise=function(n,t){return(Yt=Yt||bt($)).v(n,t)},n.createAnyPromise=function(n,t){return(ne=ne||jt($)).v(n,t)},n.createAsyncAllPromise=_t,n.createAsyncAllSettledPromise=Nt,n.createAsyncAnyPromise=$t,n.createAsyncPromise=g,n.createAsyncRacePromise=kt,n.createAsyncRejectedPromise=xt,n.createAsyncResolvedPromise=Ot,n.createIdleAllPromise=te,n.createIdleAllSettledPromise=function(n,t){return(Lt=Lt||bt(k)).v(n,t)},n.createIdleAnyPromise=function(n,t){return(Bt=Bt||jt(k)).v(n,t)},n.createIdlePromise=k,n.createIdleRacePromise=function(n,t){return(Ut=Ut||At(k)).v(n,t)},n.createIdleRejectedPromise=re,n.createIdleResolvedPromise=ee,n.createNativeAllPromise=function(n,t){return(It=It||Ct("all",function(){return D(Pt(w))})).v(n,t)},n.createNativeAllSettledPromise=function(n,t){return(Tt=Tt||Ct("allSettled",function(){return bt(w)})).v(n,t)},n.createNativeAnyPromise=function(n,t){return(Dt=Dt||Ct("any",function(){return jt(w)})).v(n,t)},n.createNativePromise=w,n.createNativeRacePromise=function(n,t){return(Et=Et||Ct("race",function(){return At(w)})).v(n,t)},n.createNativeRejectedPromise=Wt,n.createNativeResolvedPromise=Jt,n.createPromise=$,n.createRacePromise=function(n,t){return(Zt=Zt||At($)).v(n,t)},n.createRejectedPromise=fe,n.createResolvedPromise=ce,n.createSyncAllPromise=Gt,n.createSyncAllSettledPromise=function(n,t){return(zt=zt||bt(S)).v(n,t)},n.createSyncAnyPromise=function(n,t){return(qt=qt||jt(S)).v(n,t)},n.createSyncPromise=S,n.createSyncRacePromise=function(n,t){return(Ft=Ft||At(S)).v(n,t)},n.createSyncRejectedPromise=Mt,n.createSyncResolvedPromise=Kt,n.createTaskScheduler=function(f,n){function a(i,o){return i.st=h(),u.push(i),y(),function(t,e){function r(n){i.rj=i.rj||n||ge(ye,i),i[de]=pe,c(i),t=null,e&&e(n),e=null}var n=i.id;if(i.rj)r(i.rj);else{i[de]=r;try{var u=o(n);i.to&&R(u)&&(i.t=N(function(){r(ge("Timeout",i))},i.to)),p(u,function(n){c(i);try{t&&t(n)}catch(n){e&&e(n)}t=e=null},r)}catch(n){r(n)}}}}var l,e,t,r,u=[],s=[],i=6e5,o=i/10,v=0,d=(n?n+".":"")+he++,y=(f=f||$,function(){var n=0<m(u)+m(s);0<i&&(e||(e=N(function(){Pe(u,i),Pe(s,i),e&&(e.enabled=0<m(u)+m(s))},o)).unref(),e)&&(e.enabled=n)}),c=function(n){we(u,n),n.t&&n.t.cancel(),n.t=null,l&&l===n&&(l=null,m(u)+m(s)===0)&&(e&&e.cancel(),e=null)},n={idle:!0,queue:function(n,t,e){var r,u,i,o=d+"."+v++,c=(t&&(o+="-("+t+")"),(t={id:o,cr:h(),to:e})[de]=function(n){c.rj=n||ge(ye,c),c[de]=pe},t);return c.p=l?(u=l,i=n,s.push(r=c),y(),f(function(n,t){Zn(u.p,function(){we(s,r),a(r,i)(n,t)})})):f(a(c,n)),(l=c).p},setStaleTimeout:function(n,t){e&&e.cancel(),e=null,i=n,o=t||n/10,y()}};return rn(n,"idle",{g:function(){return m(u)+m(s)===0}}),r=function(){return{l:l,r:u,w:s}},ve=ve||{toString:function(){return"[[SchedulerState]]"}},I(t=n,se=se||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return d}}),I(t,ve,{get:r}),n},n.createTimeoutPromise=function(e,r,u){return $(function(n,t){N(function(){(r?n:t)(A(u)?"Timeout of "+e+"ms exceeded":u)},e)})},n.doAwait=p,n.doAwaitResponse=Zn,n.doFinally=nt,n.doWhileAsync=le,n.iterForOfAsync=function(n,e,r){var t,u,i=n;function o(n){throw t={e:n},i.throw&&(u=null,i.throw(t)),n}function c(){try{u&&!u[Xn]&&i.return&&i.return(u)}finally{if(t)throw t.e}}if(n&&(En(n)||(ie=ie||D(O(0)),i=n[ie.v]?n[ie.v]():null)||(ue=ue||D(O(3)),i=n[ue.v]?n[ue.v]():null),i)&&En(i)){n=void 0;try{return n=R(n=le(function(t){return p(i.next(),function(n){if(!(u=n)[Xn])return function(n,t){return n.apply(t,v[s](arguments,2))}(e,r||i,u.value,t.iter,i)},function(n){t.isDone=!0,o(n)})},function(n){if(!u||u[Xn]||-1===n.res)return c(),!0},r||i))?nt(n.catch(o),c):n}catch(n){o(n)}finally{n&&!R(n)&&c()}}},n.setCreatePromiseImpl=function(n){Xt=n?D(n):null},n.setDefaultIdlePromiseTimeout=Qt,n.setDefaultIdleTimeout=Vt,n.setPromiseDebugState=function(n,t){et=n}}var t=this;"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((t="undefined"!=typeof globalThis?globalThis:t||self).nevware21=t.nevware21||{},t.nevware21["ts-async"]={})); | ||
function n(n){function t(n,t){return n||t}function e(n,t){return n[t]}var f=void 0,a=null,C="",z="function",F="object",l="prototype",q="__proto__",r="undefined",J="constructor",W="Symbol",H="_polyfill",L="length",U="name",s="call",B="toString",u=t(Object),G=e(u,l),K=e(Wt=t(Array),l),v=e(K,"slice");function b(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function M(t){return function(n){return typeof n===t}}function A(n){return typeof n===r||n===r}function Q(n){return n||n!==f}var j=M(z),V=e(Wt,"isArray"),X=M("number");function R(n){return n&&n.then&&j(n.then)}var Y=e(u,"getOwnPropertyDescriptor"),Z=t(e(u,"hasOwn"),nn);function nn(n,t){return!!n&&G.hasOwnProperty[s](n,t)||!!Y(n,t)}function tn(n,t,e){if(n&&(n||n!==a&&!A(n))&&n&&typeof n===F)for(var r in n)if(Z(n,r)&&-1===t[s](e||n,r,n[r]))break}var en={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},I=e(u,"defineProperty"),rn=e(u,"defineProperties");function un(n,t,e){return I(n,t,(r=e,(u={})[en.c]=!0,u[en.e]=!0,r.l&&(u.get=function(){return r.l.v},n=Y(r.l,"v"))&&n.set&&(u.set=function(n){r.l.v=n}),tn(r,function(n,t){u[en[n]]=Q(t)?t:u[en[n]]}),u));var r,u}function on(n,t,e,r){I(n,t,{value:e,enumerable:!0,writable:!!r})}var i=t(t(String)),cn="[object Error]";function T(n,t){var e=C,r=G[B][s](n);r===cn&&(n={stack:i(n.stack),message:i(n.message),name:i(n.name)});try{e=((e=JSON.stringify(n,a,t?"number"==typeof t?t:4:f))?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):a)||i(n)}catch(n){e=" - "+T(n,t)}return r+": "+e}function E(n){throw new TypeError(n)}function fn(n){return n}function an(n){return n[q]||a}var ln=t(e(u,"freeze"),fn),sn=t(e(u,"getPrototypeOf"),an);function vn(n){return t=ln,e={},tn(n,function(n,t){on(e,n,n,void 0),on(e,t,n,void 0)}),t?t(e):e;var t,e}var dn,yn,o,hn=vn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),mn="__tsUtils$gblCfg";function pn(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function gn(t){return function(n){return n[t]}}function Pn(){var n;dn||(n=b(pn).v||{},dn=n[mn]=n[mn]||{}),o=dn}function D(n){return I({toJSON:function(){return n}},"v",{value:n})}var c,wn="window";function d(n,t){var e;return function(){return o||Pn(),(e=e&&!o.lzy?e:D(b(n,t).v)).v}}function Sn(n){return o||Pn(),(c=c&&!1!==n&&!o.lzy?c:D(b(pn).v||a)).v}function _(n,t){t=c&&!1!==t?c.v:Sn(t);if(t&&t[n])return t[n];if(n===wn)try{return window}catch(n){}return a}var bn,An,jn=d(_,["document"]),Rn=d(_,[wn]),In=d(function(){return!!b(function(){return process&&(process.versions||{}).node}).v});function Tn(){return bn=D(b(_,[W]).v)}function En(){return o||Pn(),((o.lzy?0:bn)||Tn()).v}function O(n,t){var e,r=hn[n],u=(o||Pn(),(o.lzy?0:bn)||Tn());return u.v?u.v[r||n]:t?f:(yn=yn||{},(u=hn[n])?yn[u]=yn[u]||((r={description:i(e=W+"."+u),toString:function(){return W+"("+e+")"}})[H]=!0,r):void 0)}function Dn(n){return n&&j(n.next)}function _n(n){return n!==a&&Q(n)&&j(n[O(3)])}function On(t,n,e){if(t&&(Dn(t)||(t=t[(An=An||D(O(3))).v]?t[An.v]():a),Dn(t))){var r=f,u=f;try{for(var i=0;!(u=t.next()).done&&-1!==n[s](e||t,u.value,i,t);)i++}catch(n){r={e:n},t.throw&&(u=a,t.throw(r))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(r)throw r.e}}}}function y(n,t,e){return n.apply(t,e)}function xn(n,t,e){if(n)for(var r=n[L]>>>0,u=0;u<r&&!(u in n&&-1===t[s](e||n,n[u],u,n));u++);}var Nn=(r=>{var u=K?K[r]:a;return function(n){var t,e=(n?n[r]:a)||u;if(e)return t=arguments,(e||void 0).apply(n,e?v[s](t,1):t);E('"'+i(r)+'" not defined for '+T(n))}})("indexOf");function x(n){return((n?n.slice:a)||v).apply(n,v[s](arguments,1))}var kn,$n=t(e(u,"create"),Cn);function Cn(n){var t;return n?((t=typeof n)!==F&&t!=z&&E("Prototype must be an Object or function: "+T(n)),e[l]=n,new e):{};function e(){}}function zn(n,t){return(u.setPrototypeOf||function(e,n){var t;(kn=kn||D(((t={})[q]=[],t instanceof Array))).v?e[q]=n:tn(n,function(n,t){return e[n]=t})})(n,t)}function Fn(n,t){t&&(n[U]=t)}function qn(u,i,n){var t,e,o=n||Error,c=o[l][U],f=Error.captureStackTrace,n=o;return b(un,[e=function(){var n=this,t=arguments;try{b(Fn,[o,u]);var e,r=y(o,n,v[s](t))||n;return r!==n&&(e=sn(n))!==sn(r)&&zn(r,e),f&&f(r,n[J]),i&&i(r,t),r}finally{b(Fn,[o,c])}},U,{v:t=u,c:!0,e:!1}]),(e=zn(e,n))[l]=n===a?$n(n):(r[l]=n[l],new r),e;function r(){this[J]=e,b(un,[this,U,{v:t,c:!0,e:!1}])}}function h(){return(Date.now||Jn)()}function Jn(){return(new Date).getTime()}var m=gn(L),Wn="ref",Hn="unref",Ln="hasRef",Un="enabled";function Bn(n,t,e){var r,u=!0,i=n?t(a):a;function o(){return u=!1,i&&i[Hn]&&i[Hn](),r}function c(){i&&e(i),i=a}function f(){return i=t(i),u||o(),r}return(r={cancel:c,refresh:f})[Ln]=function(){return i&&i[Ln]?i[Ln]():u},r[Wn]=function(){return u=!0,i&&i[Wn]&&i[Wn](),r},r[Hn]=o,{h:r=I(r,Un,{get:function(){return!!i},set:function(n){!n&&i&&c(),n&&!i&&f()}}),dn:function(){i=a}}}function N(){return n=f,t=v[s](arguments),r=(e=V(n))?n.length:0,u=(0<r?n[0]:e?f:n)||setTimeout,i=(1<r?n[1]:f)||clearTimeout,o=t[0],t[0]=function(){c.dn(),y(o,f,v[s](arguments))},(c=Bn(!0,function(n){if(n){if(n.refresh)return n.refresh(),n;y(i,f,[n])}return y(u,f,t)},function(n){y(i,f,[n])})).h;var n,t,e,r,u,i,o,c}var Gn,Kn,Mn,Qn=d(_,["requestIdleCallback"]),Vn=d(_,["cancelIdleCallback"]),Xn="Promise",Yn="done",Zn="rejected";function nt(n,t){return p(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Zn,rejected:!0,reason:n}):n})}function p(n,t,e,r){var u=n;try{if(R(n))(t||e)&&(u=n.then(t,e));else try{t&&(u=t(n))}catch(n){if(!e)throw n;u=e(n)}}finally{r&&tt(u,r)}return u}function tt(n,t){var e=n;return t&&(R(n)?e=n.finally?n.finally(t):n.then(function(n){return t(),n},function(n){throw t(),n}):t()),e}var et,rt=!1,ut=["pending","resolving","resolved",Zn],it="dispatchEvent";function ot(n){var t;return!!(t=n&&n.createEvent?n.createEvent("Event"):t)&&t.initEvent}var ct,ft,at,lt,st,vt="unhandledRejection",dt=vt.toLowerCase(),yt=[],ht=0,mt=10;function pt(n){return j(n)?n.toString():T(n)}function gt(n){return new(ct=ct||D(b(_,["AggregationError"]).v||qn("AggregationError",function(n,t){n.errors=t[0]}))).v(n)}function Pt(n,t,e){var o,i,r,u,c,f=x(arguments,3),a=0,l=!1,s=[],v=ht++,d=0<yt.length?yt[yt.length-1]:void 0,y=!1,h=null;function m(u,i){try{return yt.push(v),y=!0,h&&h.cancel(),h=null,n(function(e,r){s.push(function(){try{var n=2===a?u:i,t=A(n)?o:j(n)?n(o):n;R(t)?t.then(e,r):(n||3!==a?e:r)(t)}catch(n){r(n)}}),l&&g()},f)}finally{yt.pop()}}function p(){return ut[a]}function g(){var n;0<s.length&&(n=s.slice(),s=[],y=!0,h&&h.cancel(),h=null,t(n))}function P(t,e){return function(n){a===e&&(2===t&&R(n)?(a=1,n.then(P(2,1),P(3,1))):(a=t,l=!0,o=n,g(),y||3!==t||(h=h||N(w,mt))))}}function w(){var n,t,e,r,u;y||(y=!0,In()?process.emit(vt,o,i):(n=Rn()||Sn(),ft=ft||D(b(_,[Xn+"RejectionEvent"]).v),n=n,t=dt,u=function(n){return un(n,"promise",{g:function(){return i}}),n.reason=o,n},e=!!ft.v,r=jn(),u(u=(et=et||D(!!b(ot,[r]).v)).v?r.createEvent("Event"):e?new Event(t):{}),et.v&&u.initEvent(t,!1,!0),u&&n[it]?n[it](u):(r=n["on"+t])?r(u):(e=_("console"))&&(e.error||e.log)(t,T(u))))}I(i={then:m,catch:function(n){return m(void 0,n)},finally:function(t){var n=t,e=t;return j(t)&&(n=function(n){return t&&t(),n},e=function(n){throw t&&t(),n}),m(n,e)}},"state",{get:p}),rt&&(r=i,S=function(){return n=o,G[B].call(n);var n},u=function(){return y},Kn=Kn||{toString:function(){return"[[PromiseResult]]"}},Mn=Mn||{toString:function(){return"[[PromiseIsHandled]]"}},(c={})[Gn=Gn||{toString:function(){return"[[PromiseState]]"}}]={get:p},c[Kn]={get:S},c[Mn]={get:u},rn(r,c)),En()&&(i[O(11)]="IPromise"),i.toString=function(){return"IPromise"+(rt?"["+v+(A(d)?"":":"+d)+"]":"")+" "+p()+(l?" - "+pt(o):"")},j(e)||E(Xn+": executor is not a function - "+pt(e));var S=P(3,0);try{e.call(i,P(2,0),S)}catch(n){S(n)}return i}function wt(e){return function(n){var t=x(arguments,1);return e(function(e,r){try{var u=[],i=1;On(n,function(n,t){n&&(i++,p(n,function(n){u[t]=n,0==--i&&e(u)},r))}),0==--i&&e(u)}catch(n){r(n)}},t)}}function St(e){return function(t){var n=x(arguments,1);return R(t)?t:e(function(n){n(t)},n)}}function bt(t){return function(e){var n=x(arguments,1);return t(function(n,t){t(e)},n)}}function At(t){return D(function(i){var n=x(arguments,1);return t(function(e,t){var r=[],u=1;function n(n,t){u++,nt(n,function(n){n.rejected?r[t]={status:Zn,reason:n.reason}:r[t]={status:"fulfilled",value:n.value},0==--u&&e(r)})}try{V(i)?xn(i,n):_n(i)?On(i,n):E("Input is not an iterable"),0==--u&&e(r)}catch(n){t(n)}},n)})}function jt(t){return D(function(u){var n=x(arguments,1);return t(function(t,e){var r=!1;function n(n){nt(n,function(n){r||(r=!0,n.rejected?e(n.reason):t(n.value))})}try{V(u)?xn(u,n):_n(u)?On(u,n):E("Input is not an iterable")}catch(n){e(n)}},n)})}function Rt(e){return D(function(t){var n=x(arguments,1);return e(function(e,r){var u=[],i=1,o=!1;function n(n,t){i++,nt(n,function(n){n.rejected?(u[t]=n.reason,0!=--i||o||r(gt(u))):(o=!0,e(n.value))})}try{V(t)?xn(t,n):_n(t)?On(t,n):E("Input is not an iterable"),0!=--i||o||r(gt(u))}catch(n){r(n)}},n)})}function It(n){xn(n,function(n){try{n()}catch(n){}})}function g(n,t){return Pt(g,(r=X(e=t)?e:0,function(n){N(function(){It(n)},r)}),n,t);var e,r}var P,Tt,Et,Dt,_t,Ot=wt(g),xt=St(g),Nt=bt(g);function kt(n,t){return(at=at||At(g)).v(n,t)}function $t(n,t){return(lt=lt||jt(g)).v(n,t)}function Ct(n,t){return(st=st||Rt(g)).v(n,t)}function zt(r,n){return(P=P||D(b(_,[Xn]).v||null)).v&&P.v[r]?D(function(e,n){return w(function(n,t){P.v[r](e).then(n,t)})}):n()}function w(n,t){var e=(P=P||D(b(_,[Xn]).v||null)).v;if(!e)return g(n);j(n)||E(Xn+": executor is not a function - "+T(n));var r=0,e=new e(function(t,e){n(function(n){r=2,t(n)},function(n){r=3,e(n)})});return I(e,"state",{get:function(){return ut[r]}}),e}var Ft,qt,Jt,Wt=St(w),Ht=bt(w);function S(n){return Pt(S,It,n)}var Lt,Ut,Bt,Gt,Kt=wt(S),Mt=St(S),Qt=bt(S);function Vt(n){Lt=n}var Xt=Vt;function k(n,t){var o,t=A(t)?Lt:t;return Pt(k,(0<=t&&(o={timeout:+t}),function(t){function e(n){It(t)}var r,n,u=o;function i(n){var t=h();return{didTimeout:n,timeRemaining:function(){return 50-(n=t,h()-n);var n}}}Qn()?(r=Bn(!0,function(n){return n&&Vn()(n),Qn()(function(n){r.dn(),e(n||i(!1))},u)},function(n){Vn()(n)})).h:N(function(){e(i(!0))},A(n=(u||{}).timeout)?100:n)}),n,t)}var Yt,Zt,ne,te,ee=wt(k),re=St(k),ue=bt(k);function $(n,t){return(Yt=Yt||D(w)).v.call(this,n,t)}var ie,oe,ce=wt($),fe=St($),ae=bt($);function le(n,t,e,r){if(t.res=e,!n){if(t.isDone&&j(t.isDone))return p(t.isDone.call(r,t),function(n){return t.iter++,!!n});n=!!t.isDone}return t.iter++,n}function se(e,n,r){var u,i,o,c,t,f=function(n){throw a=!0,n},a=!1,l={st:h(),iter:0,isDone:n||!1};if(e)return o=function(){return $(function(n,t){i=n,f=t})},c=function(n){(a=!!n)?i(l.res):t()},(t=function(){for(;!a;)try{var n=e.call(r,l);if(R(n))return u=u||o(),p(n,function(n){try{p(le(a,l,n,r),c,f)}catch(n){f(n)}},f),u;var t=le(a,l,n,r);if(R(t))return u=u||o(),p(t,c,f),u;a=!!t}catch(n){return f(n),u}return a&&i&&i(l.res),u||l.res})()}var ve,de,ye="reject",he="Rejected",me=0,pe={};function ge(){}function Pe(n,t,e){pe[n]||(pe[n]=qn(n));var r=h();return new pe[n]("Task [".concat(t.id,"] ").concat(e||"","- ").concat(t.st?"Running":"Waiting",": ").concat((r-(t.st||t.cr)||"0")+" ms"))}function we(n,t){var e=h()-t;xn(n,function(n){(n&&!n.rj&&n.st&&n.st<e||!n.st&&n.cr&&n.cr<e)&&n&&n[ye](n.rj||Pe("Aborted",n,"Stale "))})}function Se(n,t){t=Nn(n,t);-1!==t&&n.splice(t,1)}var be=O(11);n.PolyPromise=(()=>{function n(n){this._$=g(n),be&&(this[be]="Promise"),I(this,"state",{get:function(){return this._$.state}})}n.all=Ot,n.race=$t,n.any=Ct,n.reject=Nt,n.resolve=xt,n.allSettled=kt;var t=n.prototype;return t.then=function(n,t){return this._$.then(n,t)},t.catch=function(n){return this._$.catch(n)},t.finally=function(n){return this._$.finally(n)},n})(),n.arrForEachAsync=function(t,e,r){if(t){var u=m(t);if(u)return se(function(n){n=n.iter;if(n in t)return e.call(r||t,t[n],n,t)},function(n){if(n.iter>=u||-1===n.res)return!0})}},n.createAllPromise=ce,n.createAllSettledPromise=function(n,t){return(Zt=Zt||At($)).v(n,t)},n.createAnyPromise=function(n,t){return(te=te||Rt($)).v(n,t)},n.createAsyncAllPromise=Ot,n.createAsyncAllSettledPromise=kt,n.createAsyncAnyPromise=Ct,n.createAsyncPromise=g,n.createAsyncRacePromise=$t,n.createAsyncRejectedPromise=Nt,n.createAsyncResolvedPromise=xt,n.createIdleAllPromise=ee,n.createIdleAllSettledPromise=function(n,t){return(Ut=Ut||At(k)).v(n,t)},n.createIdleAnyPromise=function(n,t){return(Gt=Gt||Rt(k)).v(n,t)},n.createIdlePromise=k,n.createIdleRacePromise=function(n,t){return(Bt=Bt||jt(k)).v(n,t)},n.createIdleRejectedPromise=ue,n.createIdleResolvedPromise=re,n.createNativeAllPromise=function(n,t){return(Tt=Tt||zt("all",function(){return D(wt(w))})).v(n,t)},n.createNativeAllSettledPromise=function(n,t){return(Et=Et||zt("allSettled",function(){return At(w)})).v(n,t)},n.createNativeAnyPromise=function(n,t){return(_t=_t||zt("any",function(){return Rt(w)})).v(n,t)},n.createNativePromise=w,n.createNativeRacePromise=function(n,t){return(Dt=Dt||zt("race",function(){return jt(w)})).v(n,t)},n.createNativeRejectedPromise=Ht,n.createNativeResolvedPromise=Wt,n.createPromise=$,n.createRacePromise=function(n,t){return(ne=ne||jt($)).v(n,t)},n.createRejectedPromise=ae,n.createResolvedPromise=fe,n.createSyncAllPromise=Kt,n.createSyncAllSettledPromise=function(n,t){return(Ft=Ft||At(S)).v(n,t)},n.createSyncAnyPromise=function(n,t){return(Jt=Jt||Rt(S)).v(n,t)},n.createSyncPromise=S,n.createSyncRacePromise=function(n,t){return(qt=qt||jt(S)).v(n,t)},n.createSyncRejectedPromise=Qt,n.createSyncResolvedPromise=Mt,n.createTaskScheduler=function(f,n){function a(i,o){return i.st=h(),u.push(i),y(),function(t,e){function r(n){i.rj=i.rj||n||Pe(he,i),i[ye]=ge,c(i),t=null,e&&e(n),e=null}var n=i.id;if(i.rj)r(i.rj);else{i[ye]=r;try{var u=o(n);i.to&&R(u)&&(i.t=N(function(){r(Pe("Timeout",i))},i.to)),p(u,function(n){c(i);try{t&&t(n)}catch(n){e&&e(n)}t=e=null},r)}catch(n){r(n)}}}}var l,e,t,r,u=[],s=[],i=6e5,o=i/10,v=0,d=(n?n+".":"")+me++,y=(f=f||$,function(){var n=0<m(u)+m(s);0<i&&(e||(e=N(function(){we(u,i),we(s,i),e&&(e.enabled=0<m(u)+m(s))},o)).unref(),e)&&(e.enabled=n)}),c=function(n){Se(u,n),n.t&&n.t.cancel(),n.t=null,l&&l===n&&(l=null,m(u)+m(s)===0)&&(e&&e.cancel(),e=null)},n={idle:!0,queue:function(n,t,e){var r,u,i,o=d+"."+v++,c=(t&&(o+="-("+t+")"),(t={id:o,cr:h(),to:e})[ye]=function(n){c.rj=n||Pe(he,c),c[ye]=ge},t);return c.p=l?(u=l,i=n,s.push(r=c),y(),f(function(n,t){nt(u.p,function(){Se(s,r),a(r,i)(n,t)})})):f(a(c,n)),(l=c).p},setStaleTimeout:function(n,t){e&&e.cancel(),e=null,i=n,o=t||n/10,y()}};return un(n,"idle",{g:function(){return m(u)+m(s)===0}}),r=function(){return{l:l,r:u,w:s}},de=de||{toString:function(){return"[[SchedulerState]]"}},I(t=n,ve=ve||{toString:function(){return"[[SchedulerName]]"}},{get:function(){return d}}),I(t,de,{get:r}),n},n.createTimeoutPromise=function(e,r,u){return $(function(n,t){N(function(){(r?n:t)(A(u)?"Timeout of "+e+"ms exceeded":u)},e)})},n.doAwait=p,n.doAwaitResponse=nt,n.doFinally=tt,n.doWhileAsync=se,n.iterForOfAsync=function(n,e,r){var t,u,i=n;function o(n){throw t={e:n},i.throw&&(u=null,i.throw(t)),n}function c(){try{u&&!u[Yn]&&i.return&&i.return(u)}finally{if(t)throw t.e}}if(n&&(Dn(n)||(oe=oe||D(O(0)),i=n[oe.v]?n[oe.v]():null)||(ie=ie||D(O(3)),i=n[ie.v]?n[ie.v]():null),i)&&Dn(i)){n=void 0;try{return n=R(n=se(function(t){return p(i.next(),function(n){if(!(u=n)[Yn])return function(n,t){return n.apply(t,v[s](arguments,2))}(e,r||i,u.value,t.iter,i)},function(n){t.isDone=!0,o(n)})},function(n){if(!u||u[Yn]||-1===n.res)return c(),!0},r||i))?tt(n.catch(o),c):n}catch(n){o(n)}finally{n&&!R(n)&&c()}}},n.setCreatePromiseImpl=function(n){Yt=n?D(n):null},n.setDefaultIdlePromiseTimeout=Vt,n.setDefaultIdleTimeout=Xt,n.setPromiseDebugState=function(n,t){rt=n}}var t=this;"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((t="undefined"!=typeof globalThis?globalThis:t||self).nevware21=t.nevware21||{},t.nevware21["ts-async"]={})); | ||
//# sourceMappingURL=ts-async.min.js.map |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -7,3 +7,3 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. | ||
*/ | ||
this.nevware21=this.nevware21||{},this.nevware21["ts-async"]=function(e){function t(e,t){return e||t}function n(e,t){return e[t]}var a=void 0,l=null,C="",z="function",F="object",f="prototype",q="__proto__",r="undefined",J="constructor",W="Symbol",H="_polyfill",L="length",U="name",s="call",B="toString",i=t(Object),G=n(i,f),K=t(Array),M=n(K,f),v=n(M,"slice");function b(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function Q(t){return function(e){return typeof e===t}}function j(e){return typeof e===r||e===r}var R=Q(z),V=n(K,"isArray"),X=Q("number");function I(e){return e&&e.then&&R(e.then)}var Y=n(i,"getOwnPropertyDescriptor"),Z=t(n(i,"hasOwn"),ee);function ee(e,t){return!!e&&G.hasOwnProperty[s](e,t)||!!Y(e,t)}function te(e,t,n){if(e&&(e||e!==l&&!j(e))&&e&&typeof e===F)for(var r in e)if(Z(e,r)&&-1===t[s](n||e,r,e[r]))break}var ne={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},E=n(i,"defineProperty"),re=n(i,"defineProperties");function ie(e,t,n){return E(e,t,(r=n,(i={})[ne.c]=!0,i[ne.e]=!0,r.l&&(i.get=function(){return r.l.v},e=Y(r.l,"v"))&&e.set&&(i.set=function(e){r.l.v=e}),te(r,function(e,t){i[ne[e]]=j(t)?i[ne[e]]:t}),i));var r,i}function ue(e,t,n,r){E(e,t,{value:n,enumerable:!0,writable:!!r})}var u=t(t(String)),oe="[object Error]";function T(e,t){var n=C,r=G[B][s](e);r===oe&&(e={stack:u(e.stack),message:u(e.message),name:u(e.name)});try{n=(n=JSON.stringify(e,l,t?"number"==typeof t?t:4:a))&&n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||u(e)}catch(e){n=" - "+T(e,t)}return r+": "+n}function D(e){throw new TypeError(e)}function ce(e){return e}function ae(e){return e[q]||l}var le=t(n(i,"freeze"),ce),fe=t(n(i,"getPrototypeOf"),ae);function se(e){return t=le,n={},te(e,function(e,t){ue(n,e,e,void 0),ue(n,t,e,void 0)}),t?t(n):n;var t,n}var ve,ye,o,de=se({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),he="__tsUtils$gblCfg";function me(){var e;return(e=(e=(e=typeof globalThis!==r?globalThis:e)||typeof self===r?e:self)||typeof window===r?e:window)||typeof global===r?e:global}function pe(t){return function(e){return e[t]}}function ge(){var e;ve||(e=b(me).v||{},ve=e[he]=e[he]||{}),o=ve}function _(e){return E({toJSON:function(){return e}},"v",{value:e})}var c,Pe="window";function y(e,t){var n;return function(){return o||ge(),(n=n&&!o.lzy?n:_(b(e,t).v)).v}}function we(e){return o||ge(),(c=c&&!1!==e&&!o.lzy?c:_(b(me).v||l)).v}function O(e,t){t=c&&!1!==t?c.v:we(t);return t&&t[e]?t[e]:e===Pe?je():l}var Se,Ae,be=y(O,["document"]),je=y(O,[Pe]),Re=y(function(){return!!b(function(){return process&&(process.versions||{}).node}).v});function Ie(){return Se=_(b(O,[W]).v)}function Ee(){return o||ge(),((o.lzy?0:Se)||Ie()).v}function N(e,t){var n,r=de[e],i=(o||ge(),(o.lzy?0:Se)||Ie());return i.v?i.v[r||e]:t?a:(ye=ye||{},(i=de[e])?ye[i]=ye[i]||((r={description:u(n=W+"."+i),toString:function(){return W+"("+n+")"}})[H]=!0,r):void 0)}function Te(e){return e&&R(e.next)}function De(e){return e!==l&&(e||e!==a)&&R(e[N(3)])}function _e(t,e,n){if(t&&(Te(t)||(t=t[(Ae=Ae||_(N(3))).v]?t[Ae.v]():null),Te(t))){var r=a,i=a;try{for(var u=0;!(i=t.next()).done&&-1!==e[s](n||t,i.value,u,t);)u++}catch(e){r={e:e},t.throw&&(i=l,t.throw(r))}finally{try{i&&!i.done&&t.return&&t.return(i)}finally{if(r)throw r.e}}}}function Oe(e,t,n){return e.apply(t,n)}function Ne(e,t,n){if(e)for(var r=e[L]>>>0,i=0;i<r&&!(i in e&&-1===t[s](n||e,e[i],i,e));i++);}var $e=function(r){var i=M&&M[r];return function(e){var t,n=e&&e[r]||i;if(n)return t=arguments,(n||void 0).apply(e,n?v[s](t,1):t);D('"'+u(r)+'" not defined for '+T(e))}}("indexOf");function $(e){return(e&&e.slice||v).apply(e,v[s](arguments,1))}var ke,xe=t(n(i,"create"),Ce);function Ce(e){var t;return e?((t=typeof e)!==F&&t!=z&&D("Prototype must be an Object or function: "+T(e)),n[f]=e,new n):{};function n(){}}function ze(e,t){return(i.setPrototypeOf||function(n,e){var t;(ke=ke||_(((t={})[q]=[],t instanceof Array))).v?n[q]=e:te(e,function(e,t){return n[e]=t})})(e,t)}function Fe(e,t){t&&(e[U]=t)}function qe(i,u,e){var t,n,o=e||Error,c=o[f][U],a=Error.captureStackTrace,e=o;return b(ie,[n=function(){var e=this,t=arguments;try{b(Fe,[o,i]);var n,r=Oe(o,e,v[s](t))||e;return r!==e&&(n=fe(e))!==fe(r)&&ze(r,n),a&&a(r,e[J]),u&&u(r,t),r}finally{b(Fe,[o,c])}},U,{v:t=i,c:!0,e:!1}]),(n=ze(n,e))[f]=e===l?xe(e):(r[f]=e[f],new r),n;function r(){this[J]=n,b(ie,[this,U,{v:t,c:!0,e:!1}])}}function p(){return(Date.now||Je)()}function Je(){return(new Date).getTime()}var g=pe(L),We="ref",He="unref",Le="hasRef",Ue="enabled";function Be(e,t,n){var r,i=!0,u=e?t(l):l;function o(){return i=!1,u&&u[He]&&u[He](),r}function c(){u&&n(u),u=l}function a(){return u=t(u),i||o(),r}return(r={cancel:c,refresh:a})[Le]=function(){return u&&u[Le]?u[Le]():i},r[We]=function(){return i=!0,u&&u[We]&&u[We](),r},r[He]=o,{h:r=E(r,Ue,{get:function(){return!!u},set:function(e){!e&&u&&c(),e&&!u&&a()}}),dn:function(){u=l}}}function k(){return e=a,t=v[s](arguments),r=(n=V(e))?e.length:0,i=(0<r?e[0]:n?a:e)||setTimeout,u=(1<r?e[1]:a)||clearTimeout,o=t[0],t[0]=function(){c.dn(),Oe(o,a,v[s](arguments))},(c=Be(!0,function(e){if(e){if(e.refresh)return e.refresh(),e;Oe(u,a,[e])}return Oe(i,a,t)},function(e){Oe(u,a,[e])})).h;var e,t,n,r,i,u,o,c}var Ge=y(O,["requestIdleCallback"]),Ke=y(O,["cancelIdleCallback"]);let Me="Promise",Qe="done",Ve="rejected";function Xe(e,t){return P(e,e=>t?t({status:"fulfilled",rejected:!1,value:e}):e,e=>t?t({status:Ve,rejected:!0,reason:e}):e)}function P(e,t,n,r){let i=e;try{if(I(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(e){if(!n)throw e;i=n(e)}}finally{r&&Ye(i,r)}return i}function Ye(e,t){let n=e;return t&&(I(e)?n=e.finally?e.finally(t):e.then(function(e){return t(),e},function(e){throw t(),e}):t()),n}let Ze,et,tt,nt=!1,rt=["pending","resolving","resolved",Ve],it="dispatchEvent",ut;function ot(e){return!!(e=e&&e.createEvent?e.createEvent("Event"):void 0)&&e.initEvent}let ct="unhandledRejection",at=ct.toLowerCase(),lt=[],ft=0,st=10,vt,yt;function dt(e){return R(e)?e.toString():T(e)}function ht(e){return new(vt=vt||_(b(O,["AggregationError"]).v||qe("AggregationError",(e,t)=>{e.errors=t[0]}))).v(e)}function mt(e,t,n){let r=$(arguments,3),o=0,c=!1,a,l=[],f=ft++,i=0<lt.length?lt[lt.length-1]:void 0,s=!1,v=null,u;function y(i,u){try{return lt.push(f),s=!0,v&&v.cancel(),v=null,e(function(n,r){l.push(function(){try{var e=2===o?i:u,t=j(e)?a:R(e)?e(a):e;I(t)?t.then(n,r):(e||3!==o?n:r)(t)}catch(e){r(e)}}),c&&h()},r)}finally{lt.pop()}}function d(){return rt[o]}function h(){var e;0<l.length&&(e=l.slice(),l=[],s=!0,v&&v.cancel(),v=null,t(e))}function m(t,n){return e=>{o===n&&(2===t&&I(e)?(o=1,e.then(m(2,1),m(3,1))):(o=t,c=!0,a=e,h(),s||3!==t||(v=v||k(p,st))))}}function p(){var e,t,n,r,i;s||(s=!0,Re()?process.emit(ct,a,u):(e=je()||we(),yt=yt||_(b(O,[Me+"RejectionEvent"]).v),e=e,t=at,i=e=>(ie(e,"promise",{g:()=>u}),e.reason=a,e),n=!!yt.v,r=be(),i(i=(ut=ut||_(!!b(ot,[r]).v)).v?r.createEvent("Event"):n?new Event(t):{}),ut.v&&i.initEvent(t,!1,!0),i&&e[it]?e[it](i):(r=e["on"+t])?r(i):(n=O("console"))&&(n.error||n.log)(t,T(i))))}u={then:y,catch:function(e){return y(void 0,e)},finally:function(t){let e=t,n=t;return R(t)&&(e=function(e){return t&&t(),e},n=function(e){throw t&&t(),e}),y(e,n)}},E(u,"state",{get:d}),nt&&(g=u,A=d,P=()=>{return e=a,G[B].call(e);var e},w=()=>s,Ze=Ze||{toString:()=>"[[PromiseState]]"},et=et||{toString:()=>"[[PromiseResult]]"},tt=tt||{toString:()=>"[[PromiseIsHandled]]"},(S={})[Ze]={get:A},S[et]={get:P},S[tt]={get:w},re(g,S)),Ee()&&(u[N(11)]="IPromise"),u.toString=function(){return"IPromise"+(nt?"["+f+(j(i)?"":":"+i)+"]":"")+" "+d()+(c?" - "+dt(a):"")},R(n)||D(Me+": executor is not a function - "+dt(n));var g,P,w,S,A=m(3,0);try{n.call(u,m(2,0),A)}catch(e){A(e)}return u}function pt(n){return function(e){var t=$(arguments,1);return n((i,u)=>{try{let n=[],r=1;_e(e,(e,t)=>{e&&(r++,P(e,e=>{n[t]=e,0==--r&&i(n)},u))}),0==--r&&i(n)}catch(e){u(e)}},t)}}function gt(n){return function(t){var e=$(arguments,1);return I(t)?t:n(e=>{e(t)},e)}}function Pt(t){return function(n){var e=$(arguments,1);return t((e,t)=>{t(n)},e)}}function wt(t){return _(function(u){var e=$(arguments,1);return t((n,t)=>{let r=[],i=1;function e(e,t){i++,Xe(e,e=>{e.rejected?r[t]={status:Ve,reason:e.reason}:r[t]={status:"fulfilled",value:e.value},0==--i&&n(r)})}try{V(u)?Ne(u,e):De(u)?_e(u,e):D("Input is not an iterable"),0==--i&&n(r)}catch(e){t(e)}},e)})}function St(t){return _(function(i){var e=$(arguments,1);return t((t,n)=>{let r=!1;function e(e){Xe(e,e=>{r||(r=!0,e.rejected?n(e.reason):t(e.value))})}try{V(i)?Ne(i,e):De(i)?_e(i,e):D("Input is not an iterable")}catch(e){n(e)}},e)})}function At(n){return _(function(t){var e=$(arguments,1);return n((n,r)=>{let i=[],u=1,o=!1;function e(e,t){u++,Xe(e,e=>{e.rejected?(i[t]=e.reason,0!=--u||o||r(ht(i))):(o=!0,n(e.value))})}try{V(t)?Ne(t,e):De(t)?_e(t,e):D("Input is not an iterable"),0!=--u||o||r(ht(i))}catch(e){r(e)}},e)})}function bt(e){Ne(e,e=>{try{e()}catch(e){}})}let jt,Rt,It;function d(e,t){return mt(d,function(e){let t=X(e)?e:0;return e=>{k(()=>{bt(e)},t)}}(t),e,t)}var K=pt(d),Et=gt(d),Tt=Pt(d);function Dt(e,t){return(jt=jt||wt(d)).v(e,t)}function _t(e,t){return(Rt=Rt||St(d)).v(e,t)}function Ot(e,t){return(It=It||At(d)).v(e,t)}let h,Nt,$t,kt,xt;function Ct(r,e){return(h=h||_(b(O,[Me]).v||null)).v&&h.v[r]?_(function(n,e){return m((e,t)=>{h.v[r](n).then(e,t)})}):e()}function m(e,t){var n=(h=h||_(b(O,[Me]).v||null)).v;if(!n)return d(e);R(e)||D(Me+": executor is not a function - "+T(e));let r=0,i=new n((t,n)=>{e(function(e){r=2,t(e)},function(e){r=3,n(e)})});return E(i,"state",{get:function(){return rt[r]}}),i}let zt=gt(m),Ft=Pt(m),qt,Jt,Wt;function w(e){return mt(w,bt,e)}let Ht=pt(w),Lt=gt(w),Ut=Pt(w),Bt,Gt,Kt,Mt;function Qt(e){Bt=e}var Vt=Qt;function S(e,t){var n=j(t)?Bt:t;return mt(S,function(){let o;return 0<=n&&(o={timeout:+n}),t=>{var n,e,r=e=>{bt(t)},i=o;function u(e){var t=p();return{didTimeout:e,timeRemaining:function(){return 50-(e=t,p()-e);var e}}}Ge()?(n=Be(!0,function(e){return e&&Ke()(e),Ge()(function(e){n.dn(),r(e||u(!1))},i)},function(e){Ke()(e)})).h:k(function(){r(u(!0))},j(e=(i||{}).timeout)?100:e)}}(),e,n)}let Xt=pt(S),Yt=gt(S),Zt=Pt(S),en,tn,nn,rn;function A(e,t){return(en=en||_(m)).v.call(this,e,t)}var un,on=pt(A),cn=gt(A),an=Pt(A);function ln(e,t,n,r){let i=e;if(t.res=n,!i){if(t.isDone&&R(t.isDone))return P(t.isDone.call(r,t),e=>(t.iter++,!!e));i=!!t.isDone}return t.iter++,i}function fn(i,e,u){let o,c,a=e=>{throw l=!0,e},l=!1,f={st:p(),iter:0,isDone:e||!1};if(i){let n=()=>A((e,t)=>{c=e,a=t}),r=e=>{(l=!!e)?c(f.res):t()},t=()=>{for(;!l;)try{var e=i.call(u,f);if(I(e))return o=o||n(),P(e,e=>{try{P(ln(l,f,e,u),r,a)}catch(e){a(e)}},a),o;var t=ln(l,f,e,u);if(I(t))return o=o||n(),P(t,r,a),o;l=!!t}catch(e){return a(e),o}return l&&c&&c(f.res),o||f.res};return t()}}let sn,vn,yn="reject",dn="Rejected",hn=0,mn,pn,gn={};function Pn(){}function wn(e,t,n){gn[e]||(gn[e]=qe(e));var r=p();return new gn[e](`Task [${t.id}] ${n||""}- ${t.st?"Running":"Waiting"}: `+(r-(t.st||t.cr)||"0")+" ms")}function Sn(e,t){let n=p()-t;Ne(e,e=>{(e&&!e.rj&&e.st&&e.st<n||!e.st&&e.cr&&e.cr<n)&&e&&e[yn](e.rj||wn("Aborted",e,"Stale "))})}function An(e,t){t=$e(e,t);-1!==t&&e.splice(t,1)}let bn=N(11);function x(e){this._$=d(e),bn&&(this[bn]="Promise"),E(this,"state",{get:function(){return this._$.state}})}return x.all=K,x.race=_t,x.any=Ot,x.reject=Tt,x.resolve=Et,x.allSettled=Dt,(un=x.prototype).then=function(e,t){return this._$.then(e,t)},un.catch=function(e){return this._$.catch(e)},un.finally=function(e){return this._$.finally(e)},e.PolyPromise=x,e.arrForEachAsync=function(n,r,i){if(n){let t=g(n);if(t)return fn(e=>{e=e.iter;if(e in n)return r.call(i||n,n[e],e,n)},e=>{if(e.iter>=t||-1===e.res)return!0})}},e.createAllPromise=on,e.createAllSettledPromise=function(e,t){return(tn=tn||wt(A)).v(e,t)},e.createAnyPromise=function(e,t){return(rn=rn||At(A)).v(e,t)},e.createAsyncAllPromise=K,e.createAsyncAllSettledPromise=Dt,e.createAsyncAnyPromise=Ot,e.createAsyncPromise=d,e.createAsyncRacePromise=_t,e.createAsyncRejectedPromise=Tt,e.createAsyncResolvedPromise=Et,e.createIdleAllPromise=Xt,e.createIdleAllSettledPromise=function(e,t){return(Gt=Gt||wt(S)).v(e,t)},e.createIdleAnyPromise=function(e,t){return(Mt=Mt||At(S)).v(e,t)},e.createIdlePromise=S,e.createIdleRacePromise=function(e,t){return(Kt=Kt||St(S)).v(e,t)},e.createIdleRejectedPromise=Zt,e.createIdleResolvedPromise=Yt,e.createNativeAllPromise=function(e,t){return(Nt=Nt||Ct("all",()=>_(pt(m)))).v(e,t)},e.createNativeAllSettledPromise=function(e,t){return($t=$t||Ct("allSettled",()=>wt(m))).v(e,t)},e.createNativeAnyPromise=function(e,t){return(xt=xt||Ct("any",()=>At(m))).v(e,t)},e.createNativePromise=m,e.createNativeRacePromise=function(e,t){return(kt=kt||Ct("race",()=>St(m))).v(e,t)},e.createNativeRejectedPromise=Ft,e.createNativeResolvedPromise=zt,e.createPromise=A,e.createRacePromise=function(e,t){return(nn=nn||St(A)).v(e,t)},e.createRejectedPromise=an,e.createResolvedPromise=cn,e.createSyncAllPromise=Ht,e.createSyncAllSettledPromise=function(e,t){return(qt=qt||wt(w)).v(e,t)},e.createSyncAnyPromise=function(e,t){return(Wt=Wt||At(w)).v(e,t)},e.createSyncPromise=w,e.createSyncRacePromise=function(e,t){return(Jt=Jt||St(w)).v(e,t)},e.createSyncRejectedPromise=Ut,e.createSyncResolvedPromise=Lt,e.createTaskScheduler=function(a,e){let l,t=[],f=[],n=6e5,r=n/10,s=0,v=(e?e+".":"")+hn++,i,y=(a=a||A,()=>{var e=0<g(t)+g(f);0<n&&(i||(i=k(()=>{Sn(t,n),Sn(f,n),i&&(i.enabled=0<g(t)+g(f))},r)).unref(),i)&&(i.enabled=e)}),d=(u,o)=>(u.st=p(),t.push(u),y(),(t,n)=>{let r=e=>{u.rj=u.rj||e||wn(dn,u),u[yn]=Pn,c(u),t=null,n&&n(e),n=null},e=u.id;if(u.rj)r(u.rj);else{u[yn]=r;try{var i=o(e);u.to&&I(i)&&(u.t=k(()=>{r(wn("Timeout",u))},u.to)),P(i,e=>{c(u);try{t&&t(e)}catch(e){n&&n(e)}t=n=null},r)}catch(e){r(e)}}}),c=e=>{An(t,e),e.t&&e.t.cancel(),e.t=null,l&&l===e&&(l=null,g(t)+g(f)===0)&&(i&&i.cancel(),i=null)},u,o,h,m={idle:!0,queue:(e,t,n)=>{let r=v+"."+s++,i=(t&&(r+="-("+t+")"),{id:r,cr:p(),to:n,reject:e=>{i.rj=e||wn(dn,i),i[yn]=Pn}});var u,o,c;return l?i.p=(u=i,o=l,c=e,f.push(u),y(),a((e,t)=>{Xe(o.p,()=>{An(f,u),d(u,c)(e,t)})})):i.p=a(d(i,e)),(l=i).p},setStaleTimeout:(e,t)=>{i&&i.cancel(),i=null,n=e,r=t||e/10,y()}};return ie(m,"idle",{g:()=>g(t)+g(f)===0}),u=m,o=()=>v,h=()=>({l:l,r:t,w:f}),mn=mn||{toString:()=>"[[SchedulerName]]"},pn=pn||{toString:()=>"[[SchedulerState]]"},E(u,mn,{get:o}),E(u,pn,{get:h}),m},e.createTimeoutPromise=function(n,r,i){return A((e,t)=>{k(()=>{(r?e:t)(j(i)?"Timeout of "+n+"ms exceeded":i)},n)})},e.doAwait=P,e.doAwaitResponse=Xe,e.doFinally=Ye,e.doWhileAsync=fn,e.iterForOfAsync=function(e,n,r){let t,i,u=e;function o(e){throw t={e:e},u.throw&&(i=null,u.throw(t)),e}function c(){try{i&&!i[Qe]&&u.return&&u.return(i)}finally{if(t)throw t.e}}if(e&&(Te(e)||(vn=vn||_(N(0)),u=e[vn.v]?e[vn.v]():null)||(sn=sn||_(N(3)),u=e[sn.v]?e[sn.v]():null),u)&&Te(u)){let e;try{return e=I(e=fn(t=>P(u.next(),e=>{if(!(i=e)[Qe])return function(e,t){return e.apply(t,v[s](arguments,2))}(n,r||u,i.value,t.iter,u)},e=>{t.isDone=!0,o(e)}),e=>{if(!i||i[Qe]||-1===e.res)return c(),!0},r||u))?Ye(e.catch(o),c):e}catch(e){o(e)}finally{e&&!I(e)&&c()}}},e.setCreatePromiseImpl=function(e){en=e?_(e):null},e.setDefaultIdlePromiseTimeout=Qt,e.setDefaultIdleTimeout=Vt,e.setPromiseDebugState=function(e,t){nt=e},e}({}); | ||
this.nevware21=this.nevware21||{},this.nevware21["ts-async"]=(e=>{function t(e,t){return e||t}function n(e,t){return e[t]}var a=void 0,l=null,C="",z="function",F="object",f="prototype",q="__proto__",r="undefined",J="constructor",W="Symbol",H="_polyfill",L="length",U="name",s="call",B="toString",i=t(Object),G=n(i,f),K=t(Array),M=n(K,f),v=n(M,"slice");function b(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function Q(t){return function(e){return typeof e===t}}function j(e){return typeof e===r||e===r}function V(e){return e||e!==a}var R=Q(z),X=n(K,"isArray"),Y=Q("number");function I(e){return e&&e.then&&R(e.then)}var Z=n(i,"getOwnPropertyDescriptor"),ee=t(n(i,"hasOwn"),te);function te(e,t){return!!e&&G.hasOwnProperty[s](e,t)||!!Z(e,t)}function ne(e,t,n){if(e&&(e||e!==l&&!j(e))&&e&&typeof e===F)for(var r in e)if(ee(e,r)&&-1===t[s](n||e,r,e[r]))break}var re={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},E=n(i,"defineProperty"),ie=n(i,"defineProperties");function ue(e,t,n){return E(e,t,(r=n,(i={})[re.c]=!0,i[re.e]=!0,r.l&&(i.get=function(){return r.l.v},e=Z(r.l,"v"))&&e.set&&(i.set=function(e){r.l.v=e}),ne(r,function(e,t){i[re[e]]=V(t)?t:i[re[e]]}),i));var r,i}function oe(e,t,n,r){E(e,t,{value:n,enumerable:!0,writable:!!r})}var u=t(t(String)),ce="[object Error]";function T(e,t){var n=C,r=G[B][s](e);r===ce&&(e={stack:u(e.stack),message:u(e.message),name:u(e.name)});try{n=((n=JSON.stringify(e,l,t?"number"==typeof t?t:4:a))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):l)||u(e)}catch(e){n=" - "+T(e,t)}return r+": "+n}function D(e){throw new TypeError(e)}function ae(e){return e}function le(e){return e[q]||l}var fe=t(n(i,"freeze"),ae),se=t(n(i,"getPrototypeOf"),le);function ve(e){return t=fe,n={},ne(e,function(e,t){oe(n,e,e,void 0),oe(n,t,e,void 0)}),t?t(n):n;var t,n}var ye,de,o,he=ve({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),me="__tsUtils$gblCfg";function pe(){var e;return(e=(e=(e=typeof globalThis!==r?globalThis:e)||typeof self===r?e:self)||typeof window===r?e:window)||typeof global===r?e:global}function ge(t){return function(e){return e[t]}}function Pe(){var e;ye||(e=b(pe).v||{},ye=e[me]=e[me]||{}),o=ye}function _(e){return E({toJSON:function(){return e}},"v",{value:e})}var c,we="window";function y(e,t){var n;return function(){return o||Pe(),(n=n&&!o.lzy?n:_(b(e,t).v)).v}}function Se(e){return o||Pe(),(c=c&&!1!==e&&!o.lzy?c:_(b(pe).v||l)).v}function O(e,t){t=c&&!1!==t?c.v:Se(t);if(t&&t[e])return t[e];if(e===we)try{return window}catch(e){}return l}var Ae,be,je=y(O,["document"]),Re=y(O,[we]),Ie=y(function(){return!!b(function(){return process&&(process.versions||{}).node}).v});function Ee(){return Ae=_(b(O,[W]).v)}function Te(){return o||Pe(),((o.lzy?0:Ae)||Ee()).v}function N(e,t){var n,r=he[e],i=(o||Pe(),(o.lzy?0:Ae)||Ee());return i.v?i.v[r||e]:t?a:(de=de||{},(i=he[e])?de[i]=de[i]||((r={description:u(n=W+"."+i),toString:function(){return W+"("+n+")"}})[H]=!0,r):void 0)}function De(e){return e&&R(e.next)}function _e(e){return e!==l&&V(e)&&R(e[N(3)])}function Oe(t,e,n){if(t&&(De(t)||(t=t[(be=be||_(N(3))).v]?t[be.v]():l),De(t))){var r=a,i=a;try{for(var u=0;!(i=t.next()).done&&-1!==e[s](n||t,i.value,u,t);)u++}catch(e){r={e:e},t.throw&&(i=l,t.throw(r))}finally{try{i&&!i.done&&t.return&&t.return(i)}finally{if(r)throw r.e}}}}function Ne(e,t,n){return e.apply(t,n)}function $e(e,t,n){if(e)for(var r=e[L]>>>0,i=0;i<r&&!(i in e&&-1===t[s](n||e,e[i],i,e));i++);}var ke=(r=>{var i=M?M[r]:l;return function(e){var t,n=(e?e[r]:l)||i;if(n)return t=arguments,(n||void 0).apply(e,n?v[s](t,1):t);D('"'+u(r)+'" not defined for '+T(e))}})("indexOf");function $(e){return((e?e.slice:l)||v).apply(e,v[s](arguments,1))}var xe,Ce=t(n(i,"create"),ze);function ze(e){var t;return e?((t=typeof e)!==F&&t!=z&&D("Prototype must be an Object or function: "+T(e)),n[f]=e,new n):{};function n(){}}function Fe(e,t){return(i.setPrototypeOf||function(n,e){var t;(xe=xe||_(((t={})[q]=[],t instanceof Array))).v?n[q]=e:ne(e,function(e,t){return n[e]=t})})(e,t)}function qe(e,t){t&&(e[U]=t)}function Je(i,u,e){var t,n,o=e||Error,c=o[f][U],a=Error.captureStackTrace,e=o;return b(ue,[n=function(){var e=this,t=arguments;try{b(qe,[o,i]);var n,r=Ne(o,e,v[s](t))||e;return r!==e&&(n=se(e))!==se(r)&&Fe(r,n),a&&a(r,e[J]),u&&u(r,t),r}finally{b(qe,[o,c])}},U,{v:t=i,c:!0,e:!1}]),(n=Fe(n,e))[f]=e===l?Ce(e):(r[f]=e[f],new r),n;function r(){this[J]=n,b(ue,[this,U,{v:t,c:!0,e:!1}])}}function p(){return(Date.now||We)()}function We(){return(new Date).getTime()}var g=ge(L),He="ref",Le="unref",Ue="hasRef",Be="enabled";function Ge(e,t,n){var r,i=!0,u=e?t(l):l;function o(){return i=!1,u&&u[Le]&&u[Le](),r}function c(){u&&n(u),u=l}function a(){return u=t(u),i||o(),r}return(r={cancel:c,refresh:a})[Ue]=function(){return u&&u[Ue]?u[Ue]():i},r[He]=function(){return i=!0,u&&u[He]&&u[He](),r},r[Le]=o,{h:r=E(r,Be,{get:function(){return!!u},set:function(e){!e&&u&&c(),e&&!u&&a()}}),dn:function(){u=l}}}function k(){return e=a,t=v[s](arguments),r=(n=X(e))?e.length:0,i=(0<r?e[0]:n?a:e)||setTimeout,u=(1<r?e[1]:a)||clearTimeout,o=t[0],t[0]=function(){c.dn(),Ne(o,a,v[s](arguments))},(c=Ge(!0,function(e){if(e){if(e.refresh)return e.refresh(),e;Ne(u,a,[e])}return Ne(i,a,t)},function(e){Ne(u,a,[e])})).h;var e,t,n,r,i,u,o,c}var Ke=y(O,["requestIdleCallback"]),Me=y(O,["cancelIdleCallback"]);let Qe="Promise",Ve="done",Xe="rejected";function Ye(e,t){return P(e,e=>t?t({status:"fulfilled",rejected:!1,value:e}):e,e=>t?t({status:Xe,rejected:!0,reason:e}):e)}function P(e,t,n,r){let i=e;try{if(I(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(e){if(!n)throw e;i=n(e)}}finally{r&&Ze(i,r)}return i}function Ze(e,t){let n=e;return t&&(I(e)?n=e.finally?e.finally(t):e.then(function(e){return t(),e},function(e){throw t(),e}):t()),n}let et,tt,nt,rt=!1,it=["pending","resolving","resolved",Xe],ut="dispatchEvent",ot;function ct(e){return!!(e=e&&e.createEvent?e.createEvent("Event"):void 0)&&e.initEvent}let at="unhandledRejection",lt=at.toLowerCase(),ft=[],st=0,vt=10,yt,dt;function ht(e){return R(e)?e.toString():T(e)}function mt(e){return new(yt=yt||_(b(O,["AggregationError"]).v||Je("AggregationError",(e,t)=>{e.errors=t[0]}))).v(e)}function pt(e,t,n){let r=$(arguments,3),o=0,c=!1,a,l=[],f=st++,i=0<ft.length?ft[ft.length-1]:void 0,s=!1,v=null,u;function y(i,u){try{return ft.push(f),s=!0,v&&v.cancel(),v=null,e(function(n,r){l.push(function(){try{var e=2===o?i:u,t=j(e)?a:R(e)?e(a):e;I(t)?t.then(n,r):(e||3!==o?n:r)(t)}catch(e){r(e)}}),c&&h()},r)}finally{ft.pop()}}function d(){return it[o]}function h(){var e;0<l.length&&(e=l.slice(),l=[],s=!0,v&&v.cancel(),v=null,t(e))}function m(t,n){return e=>{o===n&&(2===t&&I(e)?(o=1,e.then(m(2,1),m(3,1))):(o=t,c=!0,a=e,h(),s||3!==t||(v=v||k(p,vt))))}}function p(){var e,t,n,r,i;s||(s=!0,Ie()?process.emit(at,a,u):(e=Re()||Se(),dt=dt||_(b(O,[Qe+"RejectionEvent"]).v),e=e,t=lt,i=e=>(ue(e,"promise",{g:()=>u}),e.reason=a,e),n=!!dt.v,r=je(),i(i=(ot=ot||_(!!b(ct,[r]).v)).v?r.createEvent("Event"):n?new Event(t):{}),ot.v&&i.initEvent(t,!1,!0),i&&e[ut]?e[ut](i):(r=e["on"+t])?r(i):(n=O("console"))&&(n.error||n.log)(t,T(i))))}u={then:y,catch:function(e){return y(void 0,e)},finally:function(t){let e=t,n=t;return R(t)&&(e=function(e){return t&&t(),e},n=function(e){throw t&&t(),e}),y(e,n)}},E(u,"state",{get:d}),rt&&(g=u,A=d,P=()=>{return e=a,G[B].call(e);var e},w=()=>s,et=et||{toString:()=>"[[PromiseState]]"},tt=tt||{toString:()=>"[[PromiseResult]]"},nt=nt||{toString:()=>"[[PromiseIsHandled]]"},(S={})[et]={get:A},S[tt]={get:P},S[nt]={get:w},ie(g,S)),Te()&&(u[N(11)]="IPromise"),u.toString=function(){return"IPromise"+(rt?"["+f+(j(i)?"":":"+i)+"]":"")+" "+d()+(c?" - "+ht(a):"")},R(n)||D(Qe+": executor is not a function - "+ht(n));var g,P,w,S,A=m(3,0);try{n.call(u,m(2,0),A)}catch(e){A(e)}return u}function gt(n){return function(e){var t=$(arguments,1);return n((i,u)=>{try{let n=[],r=1;Oe(e,(e,t)=>{e&&(r++,P(e,e=>{n[t]=e,0==--r&&i(n)},u))}),0==--r&&i(n)}catch(e){u(e)}},t)}}function Pt(n){return function(t){var e=$(arguments,1);return I(t)?t:n(e=>{e(t)},e)}}function wt(t){return function(n){var e=$(arguments,1);return t((e,t)=>{t(n)},e)}}function St(t){return _(function(u){var e=$(arguments,1);return t((n,t)=>{let r=[],i=1;function e(e,t){i++,Ye(e,e=>{e.rejected?r[t]={status:Xe,reason:e.reason}:r[t]={status:"fulfilled",value:e.value},0==--i&&n(r)})}try{X(u)?$e(u,e):_e(u)?Oe(u,e):D("Input is not an iterable"),0==--i&&n(r)}catch(e){t(e)}},e)})}function At(t){return _(function(i){var e=$(arguments,1);return t((t,n)=>{let r=!1;function e(e){Ye(e,e=>{r||(r=!0,e.rejected?n(e.reason):t(e.value))})}try{X(i)?$e(i,e):_e(i)?Oe(i,e):D("Input is not an iterable")}catch(e){n(e)}},e)})}function bt(n){return _(function(t){var e=$(arguments,1);return n((n,r)=>{let i=[],u=1,o=!1;function e(e,t){u++,Ye(e,e=>{e.rejected?(i[t]=e.reason,0!=--u||o||r(mt(i))):(o=!0,n(e.value))})}try{X(t)?$e(t,e):_e(t)?Oe(t,e):D("Input is not an iterable"),0!=--u||o||r(mt(i))}catch(e){r(e)}},e)})}function jt(e){$e(e,e=>{try{e()}catch(e){}})}let Rt,It,Et;function d(e,t){return pt(d,(e=>{let t=Y(e)?e:0;return e=>{k(()=>{jt(e)},t)}})(t),e,t)}var K=gt(d),Tt=Pt(d),Dt=wt(d);function _t(e,t){return(Rt=Rt||St(d)).v(e,t)}function Ot(e,t){return(It=It||At(d)).v(e,t)}function Nt(e,t){return(Et=Et||bt(d)).v(e,t)}let h,$t,kt,xt,Ct;function zt(r,e){return(h=h||_(b(O,[Qe]).v||null)).v&&h.v[r]?_(function(n,e){return m((e,t)=>{h.v[r](n).then(e,t)})}):e()}function m(e,t){var n=(h=h||_(b(O,[Qe]).v||null)).v;if(!n)return d(e);R(e)||D(Qe+": executor is not a function - "+T(e));let r=0,i=new n((t,n)=>{e(function(e){r=2,t(e)},function(e){r=3,n(e)})});return E(i,"state",{get:function(){return it[r]}}),i}let Ft=Pt(m),qt=wt(m),Jt,Wt,Ht;function w(e){return pt(w,jt,e)}let Lt=gt(w),Ut=Pt(w),Bt=wt(w),Gt,Kt,Mt,Qt;function Vt(e){Gt=e}var Xt=Vt;function S(e,t){var n=j(t)?Gt:t;return pt(S,(()=>{let o;return 0<=n&&(o={timeout:+n}),t=>{var n,e,r=e=>{jt(t)},i=o;function u(e){var t=p();return{didTimeout:e,timeRemaining:function(){return 50-(e=t,p()-e);var e}}}Ke()?(n=Ge(!0,function(e){return e&&Me()(e),Ke()(function(e){n.dn(),r(e||u(!1))},i)},function(e){Me()(e)})).h:k(function(){r(u(!0))},j(e=(i||{}).timeout)?100:e)}})(),e,n)}let Yt=gt(S),Zt=Pt(S),en=wt(S),tn,nn,rn,un;function A(e,t){return(tn=tn||_(m)).v.call(this,e,t)}var on,cn=gt(A),an=Pt(A),ln=wt(A);function fn(e,t,n,r){let i=e;if(t.res=n,!i){if(t.isDone&&R(t.isDone))return P(t.isDone.call(r,t),e=>(t.iter++,!!e));i=!!t.isDone}return t.iter++,i}function sn(i,e,u){let o,c,a=e=>{throw l=!0,e},l=!1,f={st:p(),iter:0,isDone:e||!1};if(i){let n=()=>A((e,t)=>{c=e,a=t}),r=e=>{(l=!!e)?c(f.res):t()},t=()=>{for(;!l;)try{var e=i.call(u,f);if(I(e))return o=o||n(),P(e,e=>{try{P(fn(l,f,e,u),r,a)}catch(e){a(e)}},a),o;var t=fn(l,f,e,u);if(I(t))return o=o||n(),P(t,r,a),o;l=!!t}catch(e){return a(e),o}return l&&c&&c(f.res),o||f.res};return t()}}let vn,yn,dn="reject",hn="Rejected",mn=0,pn,gn,Pn={};function wn(){}function Sn(e,t,n){Pn[e]||(Pn[e]=Je(e));var r=p();return new Pn[e](`Task [${t.id}] ${n||""}- ${t.st?"Running":"Waiting"}: `+(r-(t.st||t.cr)||"0")+" ms")}function An(e,t){let n=p()-t;$e(e,e=>{(e&&!e.rj&&e.st&&e.st<n||!e.st&&e.cr&&e.cr<n)&&e&&e[dn](e.rj||Sn("Aborted",e,"Stale "))})}function bn(e,t){t=ke(e,t);-1!==t&&e.splice(t,1)}let jn=N(11);function x(e){this._$=d(e),jn&&(this[jn]="Promise"),E(this,"state",{get:function(){return this._$.state}})}return x.all=K,x.race=Ot,x.any=Nt,x.reject=Dt,x.resolve=Tt,x.allSettled=_t,(on=x.prototype).then=function(e,t){return this._$.then(e,t)},on.catch=function(e){return this._$.catch(e)},on.finally=function(e){return this._$.finally(e)},e.PolyPromise=x,e.arrForEachAsync=function(n,r,i){if(n){let t=g(n);if(t)return sn(e=>{e=e.iter;if(e in n)return r.call(i||n,n[e],e,n)},e=>{if(e.iter>=t||-1===e.res)return!0})}},e.createAllPromise=cn,e.createAllSettledPromise=function(e,t){return(nn=nn||St(A)).v(e,t)},e.createAnyPromise=function(e,t){return(un=un||bt(A)).v(e,t)},e.createAsyncAllPromise=K,e.createAsyncAllSettledPromise=_t,e.createAsyncAnyPromise=Nt,e.createAsyncPromise=d,e.createAsyncRacePromise=Ot,e.createAsyncRejectedPromise=Dt,e.createAsyncResolvedPromise=Tt,e.createIdleAllPromise=Yt,e.createIdleAllSettledPromise=function(e,t){return(Kt=Kt||St(S)).v(e,t)},e.createIdleAnyPromise=function(e,t){return(Qt=Qt||bt(S)).v(e,t)},e.createIdlePromise=S,e.createIdleRacePromise=function(e,t){return(Mt=Mt||At(S)).v(e,t)},e.createIdleRejectedPromise=en,e.createIdleResolvedPromise=Zt,e.createNativeAllPromise=function(e,t){return($t=$t||zt("all",()=>_(gt(m)))).v(e,t)},e.createNativeAllSettledPromise=function(e,t){return(kt=kt||zt("allSettled",()=>St(m))).v(e,t)},e.createNativeAnyPromise=function(e,t){return(Ct=Ct||zt("any",()=>bt(m))).v(e,t)},e.createNativePromise=m,e.createNativeRacePromise=function(e,t){return(xt=xt||zt("race",()=>At(m))).v(e,t)},e.createNativeRejectedPromise=qt,e.createNativeResolvedPromise=Ft,e.createPromise=A,e.createRacePromise=function(e,t){return(rn=rn||At(A)).v(e,t)},e.createRejectedPromise=ln,e.createResolvedPromise=an,e.createSyncAllPromise=Lt,e.createSyncAllSettledPromise=function(e,t){return(Jt=Jt||St(w)).v(e,t)},e.createSyncAnyPromise=function(e,t){return(Ht=Ht||bt(w)).v(e,t)},e.createSyncPromise=w,e.createSyncRacePromise=function(e,t){return(Wt=Wt||At(w)).v(e,t)},e.createSyncRejectedPromise=Bt,e.createSyncResolvedPromise=Ut,e.createTaskScheduler=function(a,e){let l,t=[],f=[],n=6e5,r=n/10,s=0,v=(e?e+".":"")+mn++,i,y=(a=a||A,()=>{var e=0<g(t)+g(f);0<n&&(i||(i=k(()=>{An(t,n),An(f,n),i&&(i.enabled=0<g(t)+g(f))},r)).unref(),i)&&(i.enabled=e)}),d=(u,o)=>(u.st=p(),t.push(u),y(),(t,n)=>{let r=e=>{u.rj=u.rj||e||Sn(hn,u),u[dn]=wn,c(u),t=null,n&&n(e),n=null},e=u.id;if(u.rj)r(u.rj);else{u[dn]=r;try{var i=o(e);u.to&&I(i)&&(u.t=k(()=>{r(Sn("Timeout",u))},u.to)),P(i,e=>{c(u);try{t&&t(e)}catch(e){n&&n(e)}t=n=null},r)}catch(e){r(e)}}}),c=e=>{bn(t,e),e.t&&e.t.cancel(),e.t=null,l&&l===e&&(l=null,g(t)+g(f)===0)&&(i&&i.cancel(),i=null)},u,o,h,m={idle:!0,queue:(e,t,n)=>{let r=v+"."+s++,i=(t&&(r+="-("+t+")"),{id:r,cr:p(),to:n,reject:e=>{i.rj=e||Sn(hn,i),i[dn]=wn}});var u,o,c;return l?i.p=(u=i,o=l,c=e,f.push(u),y(),a((e,t)=>{Ye(o.p,()=>{bn(f,u),d(u,c)(e,t)})})):i.p=a(d(i,e)),(l=i).p},setStaleTimeout:(e,t)=>{i&&i.cancel(),i=null,n=e,r=t||e/10,y()}};return ue(m,"idle",{g:()=>g(t)+g(f)===0}),u=m,o=()=>v,h=()=>({l:l,r:t,w:f}),pn=pn||{toString:()=>"[[SchedulerName]]"},gn=gn||{toString:()=>"[[SchedulerState]]"},E(u,pn,{get:o}),E(u,gn,{get:h}),m},e.createTimeoutPromise=function(n,r,i){return A((e,t)=>{k(()=>{(r?e:t)(j(i)?"Timeout of "+n+"ms exceeded":i)},n)})},e.doAwait=P,e.doAwaitResponse=Ye,e.doFinally=Ze,e.doWhileAsync=sn,e.iterForOfAsync=function(e,n,r){let t,i,u=e;function o(e){throw t={e:e},u.throw&&(i=null,u.throw(t)),e}function c(){try{i&&!i[Ve]&&u.return&&u.return(i)}finally{if(t)throw t.e}}if(e&&(De(e)||(yn=yn||_(N(0)),u=e[yn.v]?e[yn.v]():null)||(vn=vn||_(N(3)),u=e[vn.v]?e[vn.v]():null),u)&&De(u)){let e;try{return e=I(e=sn(t=>P(u.next(),e=>{if(!(i=e)[Ve])return function(e,t){return e.apply(t,v[s](arguments,2))}(n,r||u,i.value,t.iter,u)},e=>{t.isDone=!0,o(e)}),e=>{if(!i||i[Ve]||-1===e.res)return c(),!0},r||u))?Ze(e.catch(o),c):e}catch(e){o(e)}finally{e&&!I(e)&&c()}}},e.setCreatePromiseImpl=function(e){tn=e?_(e):null},e.setDefaultIdlePromiseTimeout=Vt,e.setDefaultIdleTimeout=Xt,e.setPromiseDebugState=function(e,t){rt=e},e})({}); | ||
//# sourceMappingURL=ts-async.min.js.map |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -7,3 +7,3 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. | ||
*/ | ||
function e(e){function t(e,t){return e||t}function n(e,t){return e[t]}var a=void 0,l=null,C="",z="function",F="object",f="prototype",q="__proto__",r="undefined",J="constructor",W="Symbol",H="_polyfill",L="length",U="name",s="call",B="toString",i=t(Object),G=n(i,f),K=n(It=t(Array),f),v=n(K,"slice");function A(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function M(t){return function(e){return typeof e===t}}function j(e){return typeof e===r||e===r}var R=M(z),Q=n(It,"isArray"),V=M("number");function I(e){return e&&e.then&&R(e.then)}var X=n(i,"getOwnPropertyDescriptor"),Y=t(n(i,"hasOwn"),Z);function Z(e,t){return!!e&&G.hasOwnProperty[s](e,t)||!!X(e,t)}function ee(e,t,n){if(e&&(e||e!==l&&!j(e))&&e&&typeof e===F)for(var r in e)if(Y(e,r)&&-1===t[s](n||e,r,e[r]))break}var te={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},T=n(i,"defineProperty"),ne=n(i,"defineProperties");function re(e,t,n){return T(e,t,(r=n,(i={})[te.c]=!0,i[te.e]=!0,r.l&&(i.get=function(){return r.l.v},e=X(r.l,"v"))&&e.set&&(i.set=function(e){r.l.v=e}),ee(r,function(e,t){i[te[e]]=j(t)?i[te[e]]:t}),i));var r,i}function ie(e,t,n,r){T(e,t,{value:n,enumerable:!0,writable:!!r})}var o=t(t(String)),oe="[object Error]";function E(e,t){var n=C,r=G[B][s](e);r===oe&&(e={stack:o(e.stack),message:o(e.message),name:o(e.name)});try{n=(n=JSON.stringify(e,l,t?"number"==typeof t?t:4:a))&&n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: ")||o(e)}catch(e){n=" - "+E(e,t)}return r+": "+n}function D(e){throw new TypeError(e)}function ue(e){return e}function ce(e){return e[q]||l}var ae=t(n(i,"freeze"),ue),le=t(n(i,"getPrototypeOf"),ce);function fe(e){return t=ae,n={},ee(e,function(e,t){ie(n,e,e,void 0),ie(n,t,e,void 0)}),t?t(n):n;var t,n}var se,ve,u,de=fe({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),ye="__tsUtils$gblCfg";function he(){var e;return(e=(e=(e=typeof globalThis!==r?globalThis:e)||typeof self===r?e:self)||typeof window===r?e:window)||typeof global===r?e:global}function me(t){return function(e){return e[t]}}function pe(){var e;se||(e=A(he).v||{},se=e[ye]=e[ye]||{}),u=se}function _(e){return T({toJSON:function(){return e}},"v",{value:e})}var c,ge="window";function d(e,t){var n;return function(){return u||pe(),(n=n&&!u.lzy?n:_(A(e,t).v)).v}}function Pe(e){return u||pe(),(c=c&&!1!==e&&!u.lzy?c:_(A(he).v||l)).v}function O(e,t){t=c&&!1!==t?c.v:Pe(t);return t&&t[e]?t[e]:e===ge?Ae():l}var we,Se,be=d(O,["document"]),Ae=d(O,[ge]),je=d(function(){return!!A(function(){return process&&(process.versions||{}).node}).v});function Re(){return we=_(A(O,[W]).v)}function Ie(){return u||pe(),((u.lzy?0:we)||Re()).v}function x(e,t){var n,r=de[e],i=(u||pe(),(u.lzy?0:we)||Re());return i.v?i.v[r||e]:t?a:(ve=ve||{},(i=de[e])?ve[i]=ve[i]||((r={description:o(n=W+"."+i),toString:function(){return W+"("+n+")"}})[H]=!0,r):void 0)}function Te(e){return e&&R(e.next)}function Ee(e){return e!==l&&(e||e!==a)&&R(e[x(3)])}function De(t,e,n){if(t&&(Te(t)||(t=t[(Se=Se||_(x(3))).v]?t[Se.v]():null),Te(t))){var r=a,i=a;try{for(var o=0;!(i=t.next()).done&&-1!==e[s](n||t,i.value,o,t);)o++}catch(e){r={e:e},t.throw&&(i=l,t.throw(r))}finally{try{i&&!i.done&&t.return&&t.return(i)}finally{if(r)throw r.e}}}}function _e(e,t,n){return e.apply(t,n)}function Oe(e,t,n){if(e)for(var r=e[L]>>>0,i=0;i<r&&!(i in e&&-1===t[s](n||e,e[i],i,e));i++);}var xe=function(r){var i=K&&K[r];return function(e){var t,n=e&&e[r]||i;if(n)return t=arguments,(n||void 0).apply(e,n?v[s](t,1):t);D('"'+o(r)+'" not defined for '+E(e))}}("indexOf");function N(e){return(e&&e.slice||v).apply(e,v[s](arguments,1))}var Ne,$e=t(n(i,"create"),ke);function ke(e){var t;return e?((t=typeof e)!==F&&t!=z&&D("Prototype must be an Object or function: "+E(e)),n[f]=e,new n):{};function n(){}}function Ce(e,t){return(i.setPrototypeOf||function(n,e){var t;(Ne=Ne||_(((t={})[q]=[],t instanceof Array))).v?n[q]=e:ee(e,function(e,t){return n[e]=t})})(e,t)}function ze(e,t){t&&(e[U]=t)}function Fe(i,o,e){var t,n,u=e||Error,c=u[f][U],a=Error.captureStackTrace,e=u;return A(re,[n=function(){var e=this,t=arguments;try{A(ze,[u,i]);var n,r=_e(u,e,v[s](t))||e;return r!==e&&(n=le(e))!==le(r)&&Ce(r,n),a&&a(r,e[J]),o&&o(r,t),r}finally{A(ze,[u,c])}},U,{v:t=i,c:!0,e:!1}]),(n=Ce(n,e))[f]=e===l?$e(e):(r[f]=e[f],new r),n;function r(){this[J]=n,A(re,[this,U,{v:t,c:!0,e:!1}])}}function p(){return(Date.now||qe)()}function qe(){return(new Date).getTime()}var g=me(L),Je="ref",We="unref",He="hasRef",Le="enabled";function Ue(e,t,n){var r,i=!0,o=e?t(l):l;function u(){return i=!1,o&&o[We]&&o[We](),r}function c(){o&&n(o),o=l}function a(){return o=t(o),i||u(),r}return(r={cancel:c,refresh:a})[He]=function(){return o&&o[He]?o[He]():i},r[Je]=function(){return i=!0,o&&o[Je]&&o[Je](),r},r[We]=u,{h:r=T(r,Le,{get:function(){return!!o},set:function(e){!e&&o&&c(),e&&!o&&a()}}),dn:function(){o=l}}}function $(){return e=a,t=v[s](arguments),r=(n=Q(e))?e.length:0,i=(0<r?e[0]:n?a:e)||setTimeout,o=(1<r?e[1]:a)||clearTimeout,u=t[0],t[0]=function(){c.dn(),_e(u,a,v[s](arguments))},(c=Ue(!0,function(e){if(e){if(e.refresh)return e.refresh(),e;_e(o,a,[e])}return _e(i,a,t)},function(e){_e(o,a,[e])})).h;var e,t,n,r,i,o,u,c}var Be=d(O,["requestIdleCallback"]),Ge=d(O,["cancelIdleCallback"]);let Ke="Promise",Me="done",Qe="rejected";function Ve(e,t){return P(e,e=>t?t({status:"fulfilled",rejected:!1,value:e}):e,e=>t?t({status:Qe,rejected:!0,reason:e}):e)}function P(e,t,n,r){let i=e;try{if(I(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(e){if(!n)throw e;i=n(e)}}finally{r&&Xe(i,r)}return i}function Xe(e,t){let n=e;return t&&(I(e)?n=e.finally?e.finally(t):e.then(function(e){return t(),e},function(e){throw t(),e}):t()),n}let Ye,Ze,et,tt=!1,nt=["pending","resolving","resolved",Qe],rt="dispatchEvent",it;function ot(e){return!!(e=e&&e.createEvent?e.createEvent("Event"):void 0)&&e.initEvent}let ut="unhandledRejection",ct=ut.toLowerCase(),at=[],lt=0,ft=10,st,vt;function dt(e){return R(e)?e.toString():E(e)}function yt(e){return new(st=st||_(A(O,["AggregationError"]).v||Fe("AggregationError",(e,t)=>{e.errors=t[0]}))).v(e)}function ht(e,t,n){let r=N(arguments,3),u=0,c=!1,a,l=[],f=lt++,i=0<at.length?at[at.length-1]:void 0,s=!1,v=null,o;function d(i,o){try{return at.push(f),s=!0,v&&v.cancel(),v=null,e(function(n,r){l.push(function(){try{var e=2===u?i:o,t=j(e)?a:R(e)?e(a):e;I(t)?t.then(n,r):(e||3!==u?n:r)(t)}catch(e){r(e)}}),c&&h()},r)}finally{at.pop()}}function y(){return nt[u]}function h(){var e;0<l.length&&(e=l.slice(),l=[],s=!0,v&&v.cancel(),v=null,t(e))}function m(t,n){return e=>{u===n&&(2===t&&I(e)?(u=1,e.then(m(2,1),m(3,1))):(u=t,c=!0,a=e,h(),s||3!==t||(v=v||$(p,ft))))}}function p(){var e,t,n,r,i;s||(s=!0,je()?process.emit(ut,a,o):(e=Ae()||Pe(),vt=vt||_(A(O,[Ke+"RejectionEvent"]).v),e=e,t=ct,i=e=>(re(e,"promise",{g:()=>o}),e.reason=a,e),n=!!vt.v,r=be(),i(i=(it=it||_(!!A(ot,[r]).v)).v?r.createEvent("Event"):n?new Event(t):{}),it.v&&i.initEvent(t,!1,!0),i&&e[rt]?e[rt](i):(r=e["on"+t])?r(i):(n=O("console"))&&(n.error||n.log)(t,E(i))))}o={then:d,catch:function(e){return d(void 0,e)},finally:function(t){let e=t,n=t;return R(t)&&(e=function(e){return t&&t(),e},n=function(e){throw t&&t(),e}),d(e,n)}},T(o,"state",{get:y}),tt&&(g=o,b=y,P=()=>{return e=a,G[B].call(e);var e},w=()=>s,Ye=Ye||{toString:()=>"[[PromiseState]]"},Ze=Ze||{toString:()=>"[[PromiseResult]]"},et=et||{toString:()=>"[[PromiseIsHandled]]"},(S={})[Ye]={get:b},S[Ze]={get:P},S[et]={get:w},ne(g,S)),Ie()&&(o[x(11)]="IPromise"),o.toString=function(){return"IPromise"+(tt?"["+f+(j(i)?"":":"+i)+"]":"")+" "+y()+(c?" - "+dt(a):"")},R(n)||D(Ke+": executor is not a function - "+dt(n));var g,P,w,S,b=m(3,0);try{n.call(o,m(2,0),b)}catch(e){b(e)}return o}function mt(n){return function(e){var t=N(arguments,1);return n((i,o)=>{try{let n=[],r=1;De(e,(e,t)=>{e&&(r++,P(e,e=>{n[t]=e,0==--r&&i(n)},o))}),0==--r&&i(n)}catch(e){o(e)}},t)}}function pt(n){return function(t){var e=N(arguments,1);return I(t)?t:n(e=>{e(t)},e)}}function gt(t){return function(n){var e=N(arguments,1);return t((e,t)=>{t(n)},e)}}function Pt(t){return _(function(o){var e=N(arguments,1);return t((n,t)=>{let r=[],i=1;function e(e,t){i++,Ve(e,e=>{e.rejected?r[t]={status:Qe,reason:e.reason}:r[t]={status:"fulfilled",value:e.value},0==--i&&n(r)})}try{Q(o)?Oe(o,e):Ee(o)?De(o,e):D("Input is not an iterable"),0==--i&&n(r)}catch(e){t(e)}},e)})}function wt(t){return _(function(i){var e=N(arguments,1);return t((t,n)=>{let r=!1;function e(e){Ve(e,e=>{r||(r=!0,e.rejected?n(e.reason):t(e.value))})}try{Q(i)?Oe(i,e):Ee(i)?De(i,e):D("Input is not an iterable")}catch(e){n(e)}},e)})}function St(n){return _(function(t){var e=N(arguments,1);return n((n,r)=>{let i=[],o=1,u=!1;function e(e,t){o++,Ve(e,e=>{e.rejected?(i[t]=e.reason,0!=--o||u||r(yt(i))):(u=!0,n(e.value))})}try{Q(t)?Oe(t,e):Ee(t)?De(t,e):D("Input is not an iterable"),0!=--o||u||r(yt(i))}catch(e){r(e)}},e)})}function bt(e){Oe(e,e=>{try{e()}catch(e){}})}let At,jt,Rt;function y(e,t){return ht(y,function(e){let t=V(e)?e:0;return e=>{$(()=>{bt(e)},t)}}(t),e,t)}var It=mt(y),Tt=pt(y),Et=gt(y);function Dt(e,t){return(At=At||Pt(y)).v(e,t)}function _t(e,t){return(jt=jt||wt(y)).v(e,t)}function Ot(e,t){return(Rt=Rt||St(y)).v(e,t)}let h,xt,Nt,$t,kt;function Ct(r,e){return(h=h||_(A(O,[Ke]).v||null)).v&&h.v[r]?_(function(n,e){return m((e,t)=>{h.v[r](n).then(e,t)})}):e()}function m(e,t){var n=(h=h||_(A(O,[Ke]).v||null)).v;if(!n)return y(e);R(e)||D(Ke+": executor is not a function - "+E(e));let r=0,i=new n((t,n)=>{e(function(e){r=2,t(e)},function(e){r=3,n(e)})});return T(i,"state",{get:function(){return nt[r]}}),i}let zt=pt(m),Ft=gt(m),qt,Jt,Wt;function w(e){return ht(w,bt,e)}let Ht=mt(w),Lt=pt(w),Ut=gt(w),Bt,Gt,Kt,Mt;function Qt(e){Bt=e}var Vt=Qt;function S(e,t){var n=j(t)?Bt:t;return ht(S,function(){let u;return 0<=n&&(u={timeout:+n}),t=>{var n,e,r=e=>{bt(t)},i=u;function o(e){var t=p();return{didTimeout:e,timeRemaining:function(){return 50-(e=t,p()-e);var e}}}Be()?(n=Ue(!0,function(e){return e&&Ge()(e),Be()(function(e){n.dn(),r(e||o(!1))},i)},function(e){Ge()(e)})).h:$(function(){r(o(!0))},j(e=(i||{}).timeout)?100:e)}}(),e,n)}let Xt=mt(S),Yt=pt(S),Zt=gt(S),en,tn,nn,rn;function b(e,t){return(en=en||_(m)).v.call(this,e,t)}var on,un=mt(b),cn=pt(b),an=gt(b);function ln(e,t,n,r){let i=e;if(t.res=n,!i){if(t.isDone&&R(t.isDone))return P(t.isDone.call(r,t),e=>(t.iter++,!!e));i=!!t.isDone}return t.iter++,i}function fn(i,e,o){let u,c,a=e=>{throw l=!0,e},l=!1,f={st:p(),iter:0,isDone:e||!1};if(i){let n=()=>b((e,t)=>{c=e,a=t}),r=e=>{(l=!!e)?c(f.res):t()},t=()=>{for(;!l;)try{var e=i.call(o,f);if(I(e))return u=u||n(),P(e,e=>{try{P(ln(l,f,e,o),r,a)}catch(e){a(e)}},a),u;var t=ln(l,f,e,o);if(I(t))return u=u||n(),P(t,r,a),u;l=!!t}catch(e){return a(e),u}return l&&c&&c(f.res),u||f.res};return t()}}let sn,vn,dn="reject",yn="Rejected",hn=0,mn,pn,gn={};function Pn(){}function wn(e,t,n){gn[e]||(gn[e]=Fe(e));var r=p();return new gn[e](`Task [${t.id}] ${n||""}- ${t.st?"Running":"Waiting"}: `+(r-(t.st||t.cr)||"0")+" ms")}function Sn(e,t){let n=p()-t;Oe(e,e=>{(e&&!e.rj&&e.st&&e.st<n||!e.st&&e.cr&&e.cr<n)&&e&&e[dn](e.rj||wn("Aborted",e,"Stale "))})}function bn(e,t){t=xe(e,t);-1!==t&&e.splice(t,1)}let An=x(11);function k(e){this._$=y(e),An&&(this[An]="Promise"),T(this,"state",{get:function(){return this._$.state}})}k.all=It,k.race=_t,k.any=Ot,k.reject=Et,k.resolve=Tt,k.allSettled=Dt,(on=k.prototype).then=function(e,t){return this._$.then(e,t)},on.catch=function(e){return this._$.catch(e)},on.finally=function(e){return this._$.finally(e)},e.PolyPromise=k,e.arrForEachAsync=function(n,r,i){if(n){let t=g(n);if(t)return fn(e=>{e=e.iter;if(e in n)return r.call(i||n,n[e],e,n)},e=>{if(e.iter>=t||-1===e.res)return!0})}},e.createAllPromise=un,e.createAllSettledPromise=function(e,t){return(tn=tn||Pt(b)).v(e,t)},e.createAnyPromise=function(e,t){return(rn=rn||St(b)).v(e,t)},e.createAsyncAllPromise=It,e.createAsyncAllSettledPromise=Dt,e.createAsyncAnyPromise=Ot,e.createAsyncPromise=y,e.createAsyncRacePromise=_t,e.createAsyncRejectedPromise=Et,e.createAsyncResolvedPromise=Tt,e.createIdleAllPromise=Xt,e.createIdleAllSettledPromise=function(e,t){return(Gt=Gt||Pt(S)).v(e,t)},e.createIdleAnyPromise=function(e,t){return(Mt=Mt||St(S)).v(e,t)},e.createIdlePromise=S,e.createIdleRacePromise=function(e,t){return(Kt=Kt||wt(S)).v(e,t)},e.createIdleRejectedPromise=Zt,e.createIdleResolvedPromise=Yt,e.createNativeAllPromise=function(e,t){return(xt=xt||Ct("all",()=>_(mt(m)))).v(e,t)},e.createNativeAllSettledPromise=function(e,t){return(Nt=Nt||Ct("allSettled",()=>Pt(m))).v(e,t)},e.createNativeAnyPromise=function(e,t){return(kt=kt||Ct("any",()=>St(m))).v(e,t)},e.createNativePromise=m,e.createNativeRacePromise=function(e,t){return($t=$t||Ct("race",()=>wt(m))).v(e,t)},e.createNativeRejectedPromise=Ft,e.createNativeResolvedPromise=zt,e.createPromise=b,e.createRacePromise=function(e,t){return(nn=nn||wt(b)).v(e,t)},e.createRejectedPromise=an,e.createResolvedPromise=cn,e.createSyncAllPromise=Ht,e.createSyncAllSettledPromise=function(e,t){return(qt=qt||Pt(w)).v(e,t)},e.createSyncAnyPromise=function(e,t){return(Wt=Wt||St(w)).v(e,t)},e.createSyncPromise=w,e.createSyncRacePromise=function(e,t){return(Jt=Jt||wt(w)).v(e,t)},e.createSyncRejectedPromise=Ut,e.createSyncResolvedPromise=Lt,e.createTaskScheduler=function(a,e){let l,t=[],f=[],n=6e5,r=n/10,s=0,v=(e?e+".":"")+hn++,i,d=(a=a||b,()=>{var e=0<g(t)+g(f);0<n&&(i||(i=$(()=>{Sn(t,n),Sn(f,n),i&&(i.enabled=0<g(t)+g(f))},r)).unref(),i)&&(i.enabled=e)}),y=(o,u)=>(o.st=p(),t.push(o),d(),(t,n)=>{let r=e=>{o.rj=o.rj||e||wn(yn,o),o[dn]=Pn,c(o),t=null,n&&n(e),n=null},e=o.id;if(o.rj)r(o.rj);else{o[dn]=r;try{var i=u(e);o.to&&I(i)&&(o.t=$(()=>{r(wn("Timeout",o))},o.to)),P(i,e=>{c(o);try{t&&t(e)}catch(e){n&&n(e)}t=n=null},r)}catch(e){r(e)}}}),c=e=>{bn(t,e),e.t&&e.t.cancel(),e.t=null,l&&l===e&&(l=null,g(t)+g(f)===0)&&(i&&i.cancel(),i=null)},o,u,h,m={idle:!0,queue:(e,t,n)=>{let r=v+"."+s++,i=(t&&(r+="-("+t+")"),{id:r,cr:p(),to:n,reject:e=>{i.rj=e||wn(yn,i),i[dn]=Pn}});var o,u,c;return l?i.p=(o=i,u=l,c=e,f.push(o),d(),a((e,t)=>{Ve(u.p,()=>{bn(f,o),y(o,c)(e,t)})})):i.p=a(y(i,e)),(l=i).p},setStaleTimeout:(e,t)=>{i&&i.cancel(),i=null,n=e,r=t||e/10,d()}};return re(m,"idle",{g:()=>g(t)+g(f)===0}),o=m,u=()=>v,h=()=>({l:l,r:t,w:f}),mn=mn||{toString:()=>"[[SchedulerName]]"},pn=pn||{toString:()=>"[[SchedulerState]]"},T(o,mn,{get:u}),T(o,pn,{get:h}),m},e.createTimeoutPromise=function(n,r,i){return b((e,t)=>{$(()=>{(r?e:t)(j(i)?"Timeout of "+n+"ms exceeded":i)},n)})},e.doAwait=P,e.doAwaitResponse=Ve,e.doFinally=Xe,e.doWhileAsync=fn,e.iterForOfAsync=function(e,n,r){let t,i,o=e;function u(e){throw t={e:e},o.throw&&(i=null,o.throw(t)),e}function c(){try{i&&!i[Me]&&o.return&&o.return(i)}finally{if(t)throw t.e}}if(e&&(Te(e)||(vn=vn||_(x(0)),o=e[vn.v]?e[vn.v]():null)||(sn=sn||_(x(3)),o=e[sn.v]?e[sn.v]():null),o)&&Te(o)){let e;try{return e=I(e=fn(t=>P(o.next(),e=>{if(!(i=e)[Me])return function(e,t){return e.apply(t,v[s](arguments,2))}(n,r||o,i.value,t.iter,o)},e=>{t.isDone=!0,u(e)}),e=>{if(!i||i[Me]||-1===e.res)return c(),!0},r||o))?Xe(e.catch(u),c):e}catch(e){u(e)}finally{e&&!I(e)&&c()}}},e.setCreatePromiseImpl=function(e){en=e?_(e):null},e.setDefaultIdlePromiseTimeout=Qt,e.setDefaultIdleTimeout=Vt,e.setPromiseDebugState=function(e,t){tt=e}}var t=this;"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).nevware21=t.nevware21||{},t.nevware21["ts-async"]={})); | ||
function e(e){function t(e,t){return e||t}function n(e,t){return e[t]}var a=void 0,l=null,C="",z="function",F="object",f="prototype",q="__proto__",r="undefined",J="constructor",W="Symbol",H="_polyfill",L="length",U="name",s="call",B="toString",i=t(Object),G=n(i,f),K=n(Tt=t(Array),f),v=n(K,"slice");function A(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function M(t){return function(e){return typeof e===t}}function j(e){return typeof e===r||e===r}function Q(e){return e||e!==a}var R=M(z),V=n(Tt,"isArray"),X=M("number");function I(e){return e&&e.then&&R(e.then)}var Y=n(i,"getOwnPropertyDescriptor"),Z=t(n(i,"hasOwn"),ee);function ee(e,t){return!!e&&G.hasOwnProperty[s](e,t)||!!Y(e,t)}function te(e,t,n){if(e&&(e||e!==l&&!j(e))&&e&&typeof e===F)for(var r in e)if(Z(e,r)&&-1===t[s](n||e,r,e[r]))break}var ne={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},T=n(i,"defineProperty"),re=n(i,"defineProperties");function ie(e,t,n){return T(e,t,(r=n,(i={})[ne.c]=!0,i[ne.e]=!0,r.l&&(i.get=function(){return r.l.v},e=Y(r.l,"v"))&&e.set&&(i.set=function(e){r.l.v=e}),te(r,function(e,t){i[ne[e]]=Q(t)?t:i[ne[e]]}),i));var r,i}function oe(e,t,n,r){T(e,t,{value:n,enumerable:!0,writable:!!r})}var o=t(t(String)),ue="[object Error]";function E(e,t){var n=C,r=G[B][s](e);r===ue&&(e={stack:o(e.stack),message:o(e.message),name:o(e.name)});try{n=((n=JSON.stringify(e,l,t?"number"==typeof t?t:4:a))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):l)||o(e)}catch(e){n=" - "+E(e,t)}return r+": "+n}function D(e){throw new TypeError(e)}function ce(e){return e}function ae(e){return e[q]||l}var le=t(n(i,"freeze"),ce),fe=t(n(i,"getPrototypeOf"),ae);function se(e){return t=le,n={},te(e,function(e,t){oe(n,e,e,void 0),oe(n,t,e,void 0)}),t?t(n):n;var t,n}var ve,de,u,ye=se({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),he="__tsUtils$gblCfg";function me(){var e;return(e=(e=(e=typeof globalThis!==r?globalThis:e)||typeof self===r?e:self)||typeof window===r?e:window)||typeof global===r?e:global}function pe(t){return function(e){return e[t]}}function ge(){var e;ve||(e=A(me).v||{},ve=e[he]=e[he]||{}),u=ve}function _(e){return T({toJSON:function(){return e}},"v",{value:e})}var c,Pe="window";function d(e,t){var n;return function(){return u||ge(),(n=n&&!u.lzy?n:_(A(e,t).v)).v}}function we(e){return u||ge(),(c=c&&!1!==e&&!u.lzy?c:_(A(me).v||l)).v}function O(e,t){t=c&&!1!==t?c.v:we(t);if(t&&t[e])return t[e];if(e===Pe)try{return window}catch(e){}return l}var Se,be,Ae=d(O,["document"]),je=d(O,[Pe]),Re=d(function(){return!!A(function(){return process&&(process.versions||{}).node}).v});function Ie(){return Se=_(A(O,[W]).v)}function Te(){return u||ge(),((u.lzy?0:Se)||Ie()).v}function x(e,t){var n,r=ye[e],i=(u||ge(),(u.lzy?0:Se)||Ie());return i.v?i.v[r||e]:t?a:(de=de||{},(i=ye[e])?de[i]=de[i]||((r={description:o(n=W+"."+i),toString:function(){return W+"("+n+")"}})[H]=!0,r):void 0)}function Ee(e){return e&&R(e.next)}function De(e){return e!==l&&Q(e)&&R(e[x(3)])}function _e(t,e,n){if(t&&(Ee(t)||(t=t[(be=be||_(x(3))).v]?t[be.v]():l),Ee(t))){var r=a,i=a;try{for(var o=0;!(i=t.next()).done&&-1!==e[s](n||t,i.value,o,t);)o++}catch(e){r={e:e},t.throw&&(i=l,t.throw(r))}finally{try{i&&!i.done&&t.return&&t.return(i)}finally{if(r)throw r.e}}}}function Oe(e,t,n){return e.apply(t,n)}function xe(e,t,n){if(e)for(var r=e[L]>>>0,i=0;i<r&&!(i in e&&-1===t[s](n||e,e[i],i,e));i++);}var Ne=(r=>{var i=K?K[r]:l;return function(e){var t,n=(e?e[r]:l)||i;if(n)return t=arguments,(n||void 0).apply(e,n?v[s](t,1):t);D('"'+o(r)+'" not defined for '+E(e))}})("indexOf");function N(e){return((e?e.slice:l)||v).apply(e,v[s](arguments,1))}var $e,ke=t(n(i,"create"),Ce);function Ce(e){var t;return e?((t=typeof e)!==F&&t!=z&&D("Prototype must be an Object or function: "+E(e)),n[f]=e,new n):{};function n(){}}function ze(e,t){return(i.setPrototypeOf||function(n,e){var t;($e=$e||_(((t={})[q]=[],t instanceof Array))).v?n[q]=e:te(e,function(e,t){return n[e]=t})})(e,t)}function Fe(e,t){t&&(e[U]=t)}function qe(i,o,e){var t,n,u=e||Error,c=u[f][U],a=Error.captureStackTrace,e=u;return A(ie,[n=function(){var e=this,t=arguments;try{A(Fe,[u,i]);var n,r=Oe(u,e,v[s](t))||e;return r!==e&&(n=fe(e))!==fe(r)&&ze(r,n),a&&a(r,e[J]),o&&o(r,t),r}finally{A(Fe,[u,c])}},U,{v:t=i,c:!0,e:!1}]),(n=ze(n,e))[f]=e===l?ke(e):(r[f]=e[f],new r),n;function r(){this[J]=n,A(ie,[this,U,{v:t,c:!0,e:!1}])}}function p(){return(Date.now||Je)()}function Je(){return(new Date).getTime()}var g=pe(L),We="ref",He="unref",Le="hasRef",Ue="enabled";function Be(e,t,n){var r,i=!0,o=e?t(l):l;function u(){return i=!1,o&&o[He]&&o[He](),r}function c(){o&&n(o),o=l}function a(){return o=t(o),i||u(),r}return(r={cancel:c,refresh:a})[Le]=function(){return o&&o[Le]?o[Le]():i},r[We]=function(){return i=!0,o&&o[We]&&o[We](),r},r[He]=u,{h:r=T(r,Ue,{get:function(){return!!o},set:function(e){!e&&o&&c(),e&&!o&&a()}}),dn:function(){o=l}}}function $(){return e=a,t=v[s](arguments),r=(n=V(e))?e.length:0,i=(0<r?e[0]:n?a:e)||setTimeout,o=(1<r?e[1]:a)||clearTimeout,u=t[0],t[0]=function(){c.dn(),Oe(u,a,v[s](arguments))},(c=Be(!0,function(e){if(e){if(e.refresh)return e.refresh(),e;Oe(o,a,[e])}return Oe(i,a,t)},function(e){Oe(o,a,[e])})).h;var e,t,n,r,i,o,u,c}var Ge=d(O,["requestIdleCallback"]),Ke=d(O,["cancelIdleCallback"]);let Me="Promise",Qe="done",Ve="rejected";function Xe(e,t){return P(e,e=>t?t({status:"fulfilled",rejected:!1,value:e}):e,e=>t?t({status:Ve,rejected:!0,reason:e}):e)}function P(e,t,n,r){let i=e;try{if(I(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(e){if(!n)throw e;i=n(e)}}finally{r&&Ye(i,r)}return i}function Ye(e,t){let n=e;return t&&(I(e)?n=e.finally?e.finally(t):e.then(function(e){return t(),e},function(e){throw t(),e}):t()),n}let Ze,et,tt,nt=!1,rt=["pending","resolving","resolved",Ve],it="dispatchEvent",ot;function ut(e){return!!(e=e&&e.createEvent?e.createEvent("Event"):void 0)&&e.initEvent}let ct="unhandledRejection",at=ct.toLowerCase(),lt=[],ft=0,st=10,vt,dt;function yt(e){return R(e)?e.toString():E(e)}function ht(e){return new(vt=vt||_(A(O,["AggregationError"]).v||qe("AggregationError",(e,t)=>{e.errors=t[0]}))).v(e)}function mt(e,t,n){let r=N(arguments,3),u=0,c=!1,a,l=[],f=ft++,i=0<lt.length?lt[lt.length-1]:void 0,s=!1,v=null,o;function d(i,o){try{return lt.push(f),s=!0,v&&v.cancel(),v=null,e(function(n,r){l.push(function(){try{var e=2===u?i:o,t=j(e)?a:R(e)?e(a):e;I(t)?t.then(n,r):(e||3!==u?n:r)(t)}catch(e){r(e)}}),c&&h()},r)}finally{lt.pop()}}function y(){return rt[u]}function h(){var e;0<l.length&&(e=l.slice(),l=[],s=!0,v&&v.cancel(),v=null,t(e))}function m(t,n){return e=>{u===n&&(2===t&&I(e)?(u=1,e.then(m(2,1),m(3,1))):(u=t,c=!0,a=e,h(),s||3!==t||(v=v||$(p,st))))}}function p(){var e,t,n,r,i;s||(s=!0,Re()?process.emit(ct,a,o):(e=je()||we(),dt=dt||_(A(O,[Me+"RejectionEvent"]).v),e=e,t=at,i=e=>(ie(e,"promise",{g:()=>o}),e.reason=a,e),n=!!dt.v,r=Ae(),i(i=(ot=ot||_(!!A(ut,[r]).v)).v?r.createEvent("Event"):n?new Event(t):{}),ot.v&&i.initEvent(t,!1,!0),i&&e[it]?e[it](i):(r=e["on"+t])?r(i):(n=O("console"))&&(n.error||n.log)(t,E(i))))}o={then:d,catch:function(e){return d(void 0,e)},finally:function(t){let e=t,n=t;return R(t)&&(e=function(e){return t&&t(),e},n=function(e){throw t&&t(),e}),d(e,n)}},T(o,"state",{get:y}),nt&&(g=o,b=y,P=()=>{return e=a,G[B].call(e);var e},w=()=>s,Ze=Ze||{toString:()=>"[[PromiseState]]"},et=et||{toString:()=>"[[PromiseResult]]"},tt=tt||{toString:()=>"[[PromiseIsHandled]]"},(S={})[Ze]={get:b},S[et]={get:P},S[tt]={get:w},re(g,S)),Te()&&(o[x(11)]="IPromise"),o.toString=function(){return"IPromise"+(nt?"["+f+(j(i)?"":":"+i)+"]":"")+" "+y()+(c?" - "+yt(a):"")},R(n)||D(Me+": executor is not a function - "+yt(n));var g,P,w,S,b=m(3,0);try{n.call(o,m(2,0),b)}catch(e){b(e)}return o}function pt(n){return function(e){var t=N(arguments,1);return n((i,o)=>{try{let n=[],r=1;_e(e,(e,t)=>{e&&(r++,P(e,e=>{n[t]=e,0==--r&&i(n)},o))}),0==--r&&i(n)}catch(e){o(e)}},t)}}function gt(n){return function(t){var e=N(arguments,1);return I(t)?t:n(e=>{e(t)},e)}}function Pt(t){return function(n){var e=N(arguments,1);return t((e,t)=>{t(n)},e)}}function wt(t){return _(function(o){var e=N(arguments,1);return t((n,t)=>{let r=[],i=1;function e(e,t){i++,Xe(e,e=>{e.rejected?r[t]={status:Ve,reason:e.reason}:r[t]={status:"fulfilled",value:e.value},0==--i&&n(r)})}try{V(o)?xe(o,e):De(o)?_e(o,e):D("Input is not an iterable"),0==--i&&n(r)}catch(e){t(e)}},e)})}function St(t){return _(function(i){var e=N(arguments,1);return t((t,n)=>{let r=!1;function e(e){Xe(e,e=>{r||(r=!0,e.rejected?n(e.reason):t(e.value))})}try{V(i)?xe(i,e):De(i)?_e(i,e):D("Input is not an iterable")}catch(e){n(e)}},e)})}function bt(n){return _(function(t){var e=N(arguments,1);return n((n,r)=>{let i=[],o=1,u=!1;function e(e,t){o++,Xe(e,e=>{e.rejected?(i[t]=e.reason,0!=--o||u||r(ht(i))):(u=!0,n(e.value))})}try{V(t)?xe(t,e):De(t)?_e(t,e):D("Input is not an iterable"),0!=--o||u||r(ht(i))}catch(e){r(e)}},e)})}function At(e){xe(e,e=>{try{e()}catch(e){}})}let jt,Rt,It;function y(e,t){return mt(y,(e=>{let t=X(e)?e:0;return e=>{$(()=>{At(e)},t)}})(t),e,t)}var Tt=pt(y),Et=gt(y),Dt=Pt(y);function _t(e,t){return(jt=jt||wt(y)).v(e,t)}function Ot(e,t){return(Rt=Rt||St(y)).v(e,t)}function xt(e,t){return(It=It||bt(y)).v(e,t)}let h,Nt,$t,kt,Ct;function zt(r,e){return(h=h||_(A(O,[Me]).v||null)).v&&h.v[r]?_(function(n,e){return m((e,t)=>{h.v[r](n).then(e,t)})}):e()}function m(e,t){var n=(h=h||_(A(O,[Me]).v||null)).v;if(!n)return y(e);R(e)||D(Me+": executor is not a function - "+E(e));let r=0,i=new n((t,n)=>{e(function(e){r=2,t(e)},function(e){r=3,n(e)})});return T(i,"state",{get:function(){return rt[r]}}),i}let Ft=gt(m),qt=Pt(m),Jt,Wt,Ht;function w(e){return mt(w,At,e)}let Lt=pt(w),Ut=gt(w),Bt=Pt(w),Gt,Kt,Mt,Qt;function Vt(e){Gt=e}var Xt=Vt;function S(e,t){var n=j(t)?Gt:t;return mt(S,(()=>{let u;return 0<=n&&(u={timeout:+n}),t=>{var n,e,r=e=>{At(t)},i=u;function o(e){var t=p();return{didTimeout:e,timeRemaining:function(){return 50-(e=t,p()-e);var e}}}Ge()?(n=Be(!0,function(e){return e&&Ke()(e),Ge()(function(e){n.dn(),r(e||o(!1))},i)},function(e){Ke()(e)})).h:$(function(){r(o(!0))},j(e=(i||{}).timeout)?100:e)}})(),e,n)}let Yt=pt(S),Zt=gt(S),en=Pt(S),tn,nn,rn,on;function b(e,t){return(tn=tn||_(m)).v.call(this,e,t)}var un,cn=pt(b),an=gt(b),ln=Pt(b);function fn(e,t,n,r){let i=e;if(t.res=n,!i){if(t.isDone&&R(t.isDone))return P(t.isDone.call(r,t),e=>(t.iter++,!!e));i=!!t.isDone}return t.iter++,i}function sn(i,e,o){let u,c,a=e=>{throw l=!0,e},l=!1,f={st:p(),iter:0,isDone:e||!1};if(i){let n=()=>b((e,t)=>{c=e,a=t}),r=e=>{(l=!!e)?c(f.res):t()},t=()=>{for(;!l;)try{var e=i.call(o,f);if(I(e))return u=u||n(),P(e,e=>{try{P(fn(l,f,e,o),r,a)}catch(e){a(e)}},a),u;var t=fn(l,f,e,o);if(I(t))return u=u||n(),P(t,r,a),u;l=!!t}catch(e){return a(e),u}return l&&c&&c(f.res),u||f.res};return t()}}let vn,dn,yn="reject",hn="Rejected",mn=0,pn,gn,Pn={};function wn(){}function Sn(e,t,n){Pn[e]||(Pn[e]=qe(e));var r=p();return new Pn[e](`Task [${t.id}] ${n||""}- ${t.st?"Running":"Waiting"}: `+(r-(t.st||t.cr)||"0")+" ms")}function bn(e,t){let n=p()-t;xe(e,e=>{(e&&!e.rj&&e.st&&e.st<n||!e.st&&e.cr&&e.cr<n)&&e&&e[yn](e.rj||Sn("Aborted",e,"Stale "))})}function An(e,t){t=Ne(e,t);-1!==t&&e.splice(t,1)}let jn=x(11);function k(e){this._$=y(e),jn&&(this[jn]="Promise"),T(this,"state",{get:function(){return this._$.state}})}k.all=Tt,k.race=Ot,k.any=xt,k.reject=Dt,k.resolve=Et,k.allSettled=_t,(un=k.prototype).then=function(e,t){return this._$.then(e,t)},un.catch=function(e){return this._$.catch(e)},un.finally=function(e){return this._$.finally(e)},e.PolyPromise=k,e.arrForEachAsync=function(n,r,i){if(n){let t=g(n);if(t)return sn(e=>{e=e.iter;if(e in n)return r.call(i||n,n[e],e,n)},e=>{if(e.iter>=t||-1===e.res)return!0})}},e.createAllPromise=cn,e.createAllSettledPromise=function(e,t){return(nn=nn||wt(b)).v(e,t)},e.createAnyPromise=function(e,t){return(on=on||bt(b)).v(e,t)},e.createAsyncAllPromise=Tt,e.createAsyncAllSettledPromise=_t,e.createAsyncAnyPromise=xt,e.createAsyncPromise=y,e.createAsyncRacePromise=Ot,e.createAsyncRejectedPromise=Dt,e.createAsyncResolvedPromise=Et,e.createIdleAllPromise=Yt,e.createIdleAllSettledPromise=function(e,t){return(Kt=Kt||wt(S)).v(e,t)},e.createIdleAnyPromise=function(e,t){return(Qt=Qt||bt(S)).v(e,t)},e.createIdlePromise=S,e.createIdleRacePromise=function(e,t){return(Mt=Mt||St(S)).v(e,t)},e.createIdleRejectedPromise=en,e.createIdleResolvedPromise=Zt,e.createNativeAllPromise=function(e,t){return(Nt=Nt||zt("all",()=>_(pt(m)))).v(e,t)},e.createNativeAllSettledPromise=function(e,t){return($t=$t||zt("allSettled",()=>wt(m))).v(e,t)},e.createNativeAnyPromise=function(e,t){return(Ct=Ct||zt("any",()=>bt(m))).v(e,t)},e.createNativePromise=m,e.createNativeRacePromise=function(e,t){return(kt=kt||zt("race",()=>St(m))).v(e,t)},e.createNativeRejectedPromise=qt,e.createNativeResolvedPromise=Ft,e.createPromise=b,e.createRacePromise=function(e,t){return(rn=rn||St(b)).v(e,t)},e.createRejectedPromise=ln,e.createResolvedPromise=an,e.createSyncAllPromise=Lt,e.createSyncAllSettledPromise=function(e,t){return(Jt=Jt||wt(w)).v(e,t)},e.createSyncAnyPromise=function(e,t){return(Ht=Ht||bt(w)).v(e,t)},e.createSyncPromise=w,e.createSyncRacePromise=function(e,t){return(Wt=Wt||St(w)).v(e,t)},e.createSyncRejectedPromise=Bt,e.createSyncResolvedPromise=Ut,e.createTaskScheduler=function(a,e){let l,t=[],f=[],n=6e5,r=n/10,s=0,v=(e?e+".":"")+mn++,i,d=(a=a||b,()=>{var e=0<g(t)+g(f);0<n&&(i||(i=$(()=>{bn(t,n),bn(f,n),i&&(i.enabled=0<g(t)+g(f))},r)).unref(),i)&&(i.enabled=e)}),y=(o,u)=>(o.st=p(),t.push(o),d(),(t,n)=>{let r=e=>{o.rj=o.rj||e||Sn(hn,o),o[yn]=wn,c(o),t=null,n&&n(e),n=null},e=o.id;if(o.rj)r(o.rj);else{o[yn]=r;try{var i=u(e);o.to&&I(i)&&(o.t=$(()=>{r(Sn("Timeout",o))},o.to)),P(i,e=>{c(o);try{t&&t(e)}catch(e){n&&n(e)}t=n=null},r)}catch(e){r(e)}}}),c=e=>{An(t,e),e.t&&e.t.cancel(),e.t=null,l&&l===e&&(l=null,g(t)+g(f)===0)&&(i&&i.cancel(),i=null)},o,u,h,m={idle:!0,queue:(e,t,n)=>{let r=v+"."+s++,i=(t&&(r+="-("+t+")"),{id:r,cr:p(),to:n,reject:e=>{i.rj=e||Sn(hn,i),i[yn]=wn}});var o,u,c;return l?i.p=(o=i,u=l,c=e,f.push(o),d(),a((e,t)=>{Xe(u.p,()=>{An(f,o),y(o,c)(e,t)})})):i.p=a(y(i,e)),(l=i).p},setStaleTimeout:(e,t)=>{i&&i.cancel(),i=null,n=e,r=t||e/10,d()}};return ie(m,"idle",{g:()=>g(t)+g(f)===0}),o=m,u=()=>v,h=()=>({l:l,r:t,w:f}),pn=pn||{toString:()=>"[[SchedulerName]]"},gn=gn||{toString:()=>"[[SchedulerState]]"},T(o,pn,{get:u}),T(o,gn,{get:h}),m},e.createTimeoutPromise=function(n,r,i){return b((e,t)=>{$(()=>{(r?e:t)(j(i)?"Timeout of "+n+"ms exceeded":i)},n)})},e.doAwait=P,e.doAwaitResponse=Xe,e.doFinally=Ye,e.doWhileAsync=sn,e.iterForOfAsync=function(e,n,r){let t,i,o=e;function u(e){throw t={e:e},o.throw&&(i=null,o.throw(t)),e}function c(){try{i&&!i[Qe]&&o.return&&o.return(i)}finally{if(t)throw t.e}}if(e&&(Ee(e)||(dn=dn||_(x(0)),o=e[dn.v]?e[dn.v]():null)||(vn=vn||_(x(3)),o=e[vn.v]?e[vn.v]():null),o)&&Ee(o)){let e;try{return e=I(e=sn(t=>P(o.next(),e=>{if(!(i=e)[Qe])return function(e,t){return e.apply(t,v[s](arguments,2))}(n,r||o,i.value,t.iter,o)},e=>{t.isDone=!0,u(e)}),e=>{if(!i||i[Qe]||-1===e.res)return c(),!0},r||o))?Ye(e.catch(u),c):e}catch(e){u(e)}finally{e&&!I(e)&&c()}}},e.setCreatePromiseImpl=function(e){tn=e?_(e):null},e.setDefaultIdlePromiseTimeout=Vt,e.setDefaultIdleTimeout=Xt,e.setPromiseDebugState=function(e,t){nt=e}}var t=this;"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).nevware21=t.nevware21||{},t.nevware21["ts-async"]={})); | ||
//# sourceMappingURL=ts-async.min.js.map |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -4,0 +4,0 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -4,0 +4,0 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -4,0 +4,0 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. |
/*! | ||
* NevWare21 Solutions LLC - ts-async, 0.5.2 | ||
* NevWare21 Solutions LLC - ts-async, 0.5.3 | ||
* https://github.com/nevware21/ts-async | ||
@@ -4,0 +4,0 @@ * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. |
{ | ||
"name": "@nevware21/ts-async", | ||
"description": "support for asynchronous development with a Promise based task Scheduler, several different Promise implementations (synchronous, idle, asynchronous and native runtime wrappers), await helpers, and aliases all built and tested using TypeScript.", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"homepage": "https://github.com/nevware21/ts-async", | ||
@@ -67,3 +67,3 @@ "sideEffects": false, | ||
"coverage:merge": "node ../tools/coverage/merge-coverage.js", | ||
"codecov": "npm run coverage:report && codecov -f coverage/*.json --disable=gcov", | ||
"codecov": "npm run coverage:report", | ||
"clean": "git clean -xdf && npm install", | ||
@@ -78,3 +78,3 @@ "cleanBuild": "npm run clean && npm run rebuild && npm run docs", | ||
"dependencies": { | ||
"@nevware21/ts-utils": ">= 0.11.3 < 2.x" | ||
"@nevware21/ts-utils": ">= 0.11.5 < 2.x" | ||
}, | ||
@@ -95,3 +95,2 @@ "devDependencies": { | ||
"chromium": "^3.0.3", | ||
"codecov": "^3.8.3", | ||
"cross-env": "^7.0.3", | ||
@@ -111,3 +110,3 @@ "grunt": "^1.5.3", | ||
"nyc": "^15.1.0", | ||
"puppeteer": "^21.6.0", | ||
"puppeteer": "^23.4.0", | ||
"rollup": "^3.8.1", | ||
@@ -117,2 +116,3 @@ "rollup-plugin-minify-es": "^1.1.1", | ||
"rollup-plugin-cleanup": "^3.2.1", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"sinon": "^15.0.0", | ||
@@ -119,0 +119,0 @@ "ts-mocha": "^10.0.0", |
@@ -101,3 +101,3 @@ <h1 align="center">@nevware21/ts-async</h1> | ||
> ```json | ||
> "@nevware21/ts-async": ">= 0.5.2 < 2.x" | ||
> "@nevware21/ts-async": ">= 0.5.3 < 2.x" | ||
> ``` | ||
@@ -104,0 +104,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6491549
16346