New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

futoin-asyncevent

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

futoin-asyncevent - npm Package Compare versions

Comparing version 2.3.6 to 2.3.7

2

dist/futoin-asyncevent.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["futoin-asyncevent"]=t():e.$asyncevent=t()}(self,(function(){return e={818:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,u=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){a=!0,c=e},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw c}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=n(898),a=Symbol("FutoIn Event Emitter"),s="_evt_",l="_evtonce_",f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._max=n,this._scheduleCall=u.ActiveAsyncTool.callImmediate;var r,i=o(e);try{for(i.s();!(r=i.n()).done;){var c=r.value;this["".concat(s).concat(c)]=[],this["".concat(l).concat(c)]=[]}}catch(e){i.e(e)}finally{i.f()}}var n,i,f;return n=t,f=[{key:"SYM_EVENT_EMITTER",get:function(){return a}},{key:Symbol.hasInstance,value:function(e){return void 0!==e[a]||e.constructor===t}},{key:"attach",value:function(e,n){var i,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,u=e[a];if(void 0===u){var f=new t(n,c);Object.defineProperties(e,(r(i={},a,{configurable:!1,enumerable:!1,writable:!1,value:f}),r(i,"on",{configurable:!1,enumerable:!1,writable:!1,value:function(e,t){return f.on(e,t)}}),r(i,"off",{configurable:!1,enumerable:!1,writable:!1,value:function(e,t){return f.off(e,t)}}),r(i,"once",{configurable:!1,enumerable:!1,writable:!1,value:function(e,t){return f.once(e,t)}}),r(i,"emit",{configurable:!1,enumerable:!1,writable:!1,value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return f.emit.apply(f,[e].concat(n))}}),i))}else{u._max=c;var h,_=o(n);try{for(_.s();!(h=_.n()).done;){var v=h.value;if("".concat(s).concat(v)in u)throw new Error('Event "'.concat(v,'" has been already registered!'));u["".concat(s).concat(v)]=[],u["".concat(l).concat(v)]=[]}}catch(e){_.e(e)}finally{_.f()}}}},{key:"setMaxListeners",value:function(e,t){e[a]._max=t}}],(i=[{key:"on",value:function(e,t){try{var n=this["".concat(s).concat(e)];n.length===this._max&&console.warn("Hitting max handler limit for: ".concat(e)),n.push(t)}catch(t){throw new Error("Unknown event: ".concat(e))}}},{key:"once",value:function(e,t){try{var n=this["".concat(l).concat(e)];n.length===this._max&&console.warn("Hitting max once handler limit for: ".concat(e)),n.push(t)}catch(t){throw new Error("Unknown event: ".concat(e))}}},{key:"off",value:function(e,t){try{var n="".concat(s).concat(e);this[n]=this[n].filter((function(e){return e!==t}));var r="".concat(l).concat(e);this[r]=this[r].filter((function(e){return e!==t}))}catch(t){throw new Error("Unknown event: ".concat(e))}}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var c=this["".concat(s).concat(e)],u=this["".concat(l).concat(e)];if(void 0===c)throw new Error("Unknown event: ".concat(e));var a,f=[],h=o(c);try{for(h.s();!(a=h.n()).done;){var _=a.value;f.push(_)}}catch(e){h.e(e)}finally{h.f()}if(u.length){var v,p=o(u);try{for(p.s();!(v=p.n()).done;){var y=v.value;f.push(y)}}catch(e){p.e(e)}finally{p.f()}this["".concat(l).concat(e)]=[]}this._scheduleCall((function(){var e,n=o(f);try{for(n.s();!(e=n.n()).done;){var i=e.value;try{i.apply(void 0,r)}catch(e){t._scheduleCall((function(){throw e}))}}}catch(e){n.e(e)}finally{n.f()}}))}}])&&c(n.prototype,i),f&&c(n,f),t}();e.exports=f},748:(e,t,n)=>{"use strict";var r=n(818),o=r.attach;o.EventEmitter=r,e.exports=o},308:(e,t,n)=>{"use strict";!function(t){var r=t.FutoIn||t.futoin||{};if(void 0===r.$asyncevent){var o=n(748);t.$asyncevent=o,r.$asyncevent=o,r.EventEmitter=o.EventEmitter,t.FutoIn=r,t.futoin=r}e.exports=r.$asyncevent}(window)},178:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=n(214),u=n(659).InternalError,a=n(644),s=n(561),l=n(740),f=l.isProduction,h=l.checkFunc,_=l.checkOnError,v=l.noop,p=l.loop,y=l.repeat,d=l.forEach,m=l.as_await,b=l.EMPTY_ARRAY,w=l.newExecStack,g=f?v:function(e){e._stack.length>0&&e.error(u,"Top level add in execution")},x=f?v:function(e,t,n){g(e),h(e,t),_(e,n)},k=100,E=null,O=function(e){e._post_exec=v,e._execute()},A=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;o(this,e),null===n&&(n=function(){return this.state}),this.state=n,this._queue=[],this._stack=[],this._exec_stack=w(),this._in_exec=!1,this._post_exec=v,this._exec_event=null,this._next_args=b,this._async_tool=r;var i=r.callImmediate,u=function(){k=100,E=t,t._exec_event=null,t._execute()};this._scheduleExecute=function(){--k<=0||!t._in_exec||E!==t?t._exec_event=i(u):t._in_exec&&(t._post_exec=O)}}var t,n;return t=e,(n=[{key:"add",value:function(e,t){return x(this,e,t),this._queue.push([e,t]),this}},{key:"parallel",value:function(e){g(this),_(this,e);var t=new s(this,this);return this._queue.push([function(e){t.executeParallel(e)},e]),t}},{key:"sync",value:function(e,t,n){return x(this,t,n),e.sync(this,t,n),this}},{key:"error",value:function(e,t){this.state.error_info=t;var n=new Error(e);throw this._in_exec||(this.state.last_exception=n,this._handle_error(e)),n}},{key:"copyFrom",value:function(e){this._queue.push.apply(this._queue,e._queue);var t=e.state,n=this.state;for(var r in t)r in n||(n[r]=t[r]);return this}},{key:"_handle_success",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=this._stack;t.length||this.error(u,"Invalid success completion"),this._next_args=e;for(var n=t[t.length-1];;){var r=n._limit_event;if(r&&(this._async_tool.cancelCall(r),n._limit_event=null),n._cleanup(),t.pop(),!t.length)break;if((n=t[t.length-1])._queue.length)break}(t.length||this._queue.length)&&this._scheduleExecute()}},{key:"_handle_error",value:function(e){if(this._exec_event)this.cancel();else{this._next_args=b;var t=this._stack,n=this._exec_stack;this.state.async_stack=n;for(var r=this._in_exec,o=!0;t.length;){var i=t[t.length-1],c=i._limit_event,u=i._on_cancel,a=i._on_error;if(c&&(this._async_tool.cancelCall(c),i._limit_event=null),u&&(u.call(null,i),i._on_cancel=null),a){var s=t.length;i._queue=null,i._on_error=null,n.push(a);try{if(this._in_exec=!0,a.call(null,i,e),s!==t.length){o=!1;break}if(null!==i._queue){o=!1,this._scheduleExecute();break}}catch(t){this.state.last_exception=t,e=t.message}finally{this._in_exec=r}}i._cleanup(),t.pop()}o?this._queue=[]:r||this._post_exec(this)}}},{key:"cancel",value:function(){this._next_args=b;var e=this._exec_event;e&&(this._async_tool.cancelImmediate(e),this._exec_event=null);for(var t=this._stack,n=this._async_tool;t.length;){var r=t.pop(),o=r._limit_event,i=r._on_cancel;o&&(n.cancelCall(o),r._limit_event=null),i&&(i.call(null,r),r._on_cancel=null),r._cleanup()}return this._queue=[],this}},{key:"execute",value:function(){var e=E;return E=this,this._execute(),E=e,this}},{key:"_execute",value:function(){var e,t,n=this._stack;if((e=n.length?n[n.length-1]._queue:this._queue).length){var o=e.shift(),i=o[0];this._exec_stack.push(i);var c=this._next_args,u=c.length,s=new a(this,o[1],c);n.push(s);try{var l=n.length;this._in_exec=!0,u?(this._next_args=b,i.apply(void 0,[s].concat(function(e){if(Array.isArray(e))return r(e)}(t=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):i(s),l===n.length&&(null!==s._queue?this._scheduleExecute():s._on_cancel||s._limit_event||this._handle_success(this._next_args))}catch(e){this.state.last_exception=e,this._handle_error(e.message)}finally{this._in_exec=!1}this._post_exec(this)}}},{key:"_burst_success",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;try{this._in_exec=!0,E=this,this._handle_success(e)}catch(e){this.state.last_exception=e,this._handle_error(e.message)}finally{this._in_exec=!1}this._post_exec(this)}},{key:"loop",value:function(e,t){return x(this,e),p(this,this,e,t),this}},{key:"repeat",value:function(e,t,n){return x(this,t),y(this,this,e,t,n),this}},{key:"forEach",value:function(e,t,n){return x(this,t),d(this,this,e,t,n),this}},{key:"successStep",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];g(this);var o=this._queue;return o.length>0?o.push([function(){e._handle_success(n)},void 0]):this._next_args=n,this}},{key:"await",value:function(e,t){return g(this),m(this,this,e,t),this}},{key:"promise",value:function(){var e=this;return g(this),new Promise((function(t,n){var r=e._queue;e._queue=[[function(e){e._queue=r},function(e,t){n(new Error(t))}],[function(e,n){t(n)},void 0]],E=e,e._execute()}))}},{key:"newInstance",value:function(){return new e(null,this._async_tool)}},{key:"isAsyncSteps",value:function(){return!0}}])&&i(t.prototype,n),e}();e.exports=A},659:e=>{"use strict";var t=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};["ConnectError","CommError","UnknownInterface","NotSupportedVersion","NotImplemented","Unauthorized","InternalError","InvokerError","InvalidRequest","DefenseRejected","PleaseReauth","SecurityError","Timeout","LoopBreak","LoopCont"].forEach((function(e){return Object.defineProperty(t,e,{enumerable:!0,value:e})})),e.exports=t},658:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(659).NotImplemented,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"sync",value:function(e,t,n){e.error(o,"#sync() API")}}])&&r(t.prototype,n),e}();e.exports=i},367:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=n(658),l=n(525),f=n(88),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(_,e);var t,n,r,s,h=(r=_,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(r);if(s){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function _(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,_),(e=h.call(this))._mutex=new l(t.concurrent||1,t.max_queue||0),e._throttle=new f(t.rate||1,t.period_ms||1e3,t.burst||0),e}return t=_,(n=[{key:"sync",value:function(e,t,n){var r=this;e.sync(this._mutex,(function(e){e._root._next_args=e._call_args,e.sync(r._throttle,t,n)}))}}])&&i(t.prototype,n),_}(s);e.exports=h},525:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=n(658),l=n(659).DefenseRejected,f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,r,s,f=(r=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(r);if(s){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function h(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(this,h),(e=f.call(this))._max=t,e._locked=0,e._owners=new WeakMap,e._queue=[],e._max_queue=n,e._release_handler=function(t){e._release(t._root)},e}return t=h,(n=[{key:"_lock",value:function(e,t){var n=this._owners,r=n.get(t);if(r)return n.set(t,r+1),!0;if(this._locked>=this._max){var o=this._queue,i=this._max_queue;return null!==i&&o.length>=i&&t.error(l,"Mutex queue limit"),o.push(e),!1}return this._locked+=1,n.set(t,1),!0}},{key:"_release",value:function(e){var t=this._owners,n=t.get(e);if(n){if(n>1)return void t.set(e,n-1);t.delete(e),this._locked-=1;for(var r=this._queue;r.length;){var o=r.shift();if(o.state){var i=o._root;this._lock(o,i),i._handle_success(o._call_args);break}}}else{var c=this._queue.indexOf(e);c>=0&&this._queue.splice(c,1)}}},{key:"sync",value:function(e,t,n){var r=this;e.add((function(e){!function(e,t,n,r){var o=e._root;e._on_cancel=t._release_handler,e._queue=[[function(n){t._lock(e,o)?o._handle_success(e._call_args):(n.waitExternal(),n._call_args=e._call_args)},void 0],[n,r],[function(e){t._release(o),o._handle_success(e._call_args)},void 0]]}(e,r,t,n)}))}}])&&i(t.prototype,n),h}(s);e.exports=f},88:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=n(658),f=n(659).DefenseRejected,h=n(740).prev_queue,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(v,e);var t,n,r,l,_=(r=v,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(r);if(l){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function v(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;o(this,v),(t=_.call(this))._max=e,t._current=0;var i=t._queue=[];return t._timer=null,t._period_ms=n,t._max_queue=r,t._cancel_handler=function(e){var t=i.indexOf(e);t>=0&&i.splice(t,1)},t}return t=v,(n=[{key:"_lock",value:function(e){if(this._ensureTimer(),this._current>=this._max){var t=this._queue,n=this._max_queue;return null!==n&&t.length>=n&&e.error(f,"Throttle queue limit"),t.push(e),!1}return this._current+=1,!0}},{key:"_ensureTimer",value:function(){var e=this;this._timer||(this._timer=setInterval((function(){e._resetPeriod()}),this._period_ms))}},{key:"_resetPeriod",value:function(){this._current=0;var e=this._queue;if(!e.length)return clearInterval(this._timer),void(this._timer=null);for(var t=this._max,n=0;e.length&&n<t;){var r=e.shift();if(r.state){++n;var o=r._root;o._handle_success(o._next_args)}}this._current=n}},{key:"sync",value:function(e,t,n){var r=this;e.add((function(e){!function(e,t,n,r){var o,i=e._root;t._lock(e)?(e._on_error=r,n.apply(void 0,[e].concat(function(e){if(Array.isArray(e))return s(e)}(o=e._call_args)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):(e._on_cancel=t._cancel_handler,i._next_args=e._call_args,h(i).unshift([n,r]))}(e,r,t,n)}))}}])&&i(t.prototype,n),v}(l);e.exports=_},644:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(561),i=n(659),c=i.InternalError,u=i.Timeout,a=i.LoopBreak,s=i.LoopCont,l=n(740),f=l.isProduction,h=l.checkFunc,_=l.checkOnError,v=l.noop,p=l.loop,y=l.repeat,d=l.forEach,m=l.LOOP_TERM_LABEL,b=l.as_await,w=f?v:function(e){var t=e._root;if(t){var n=t._stack;if(n){if(n[n.length-1]===e)return;t.error(c,"Invalid call (sanity check)")}}throw new Error("InternalError: Unexpected call, object is out of service")},g=f?v:function(e,t,n){w(e),h(e,t),_(e,n)},x=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._root=t,this.state=t.state,this._queue=null,this._call_args=r,this._on_error=n,this._on_cancel=null,this._limit_event=null}var t,n;return t=e,(n=[{key:"add",value:function(e,t){g(this,e,t);var n=[e,t],r=this._queue;return r?r.push(n):this._queue=[n],this}},{key:"parallel",value:function(e){var t=new o(this._root,this);return this.add((function(e){t.executeParallel(e)}),e),t}},{key:"success",value:function(){w(this),null!==this._queue&&this.error(c,"Invalid success() call");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._root._handle_success(t)}},{key:"error",value:function(e,t){w(this),this._root.error(e,t)}},{key:"setTimeout",value:function(e){var t=this;w(this);var n=this._root._async_tool;return null!==this._limit_event&&n.cancelCall(this._limit_event),this._limit_event=n.callLater((function(){!function(e){e._limit_event=null;var t=e.state;t.error_info=void 0,t.last_exception=new Error(u),e._root._handle_error(u)}(t)}),e),this}},{key:"setCancel",value:function(e){return this._on_cancel=e,this}},{key:"waitExternal",value:function(){return this._on_cancel=v,this}},{key:"copyFrom",value:function(e){if(w(this),e._queue.length){var t=this._queue;null===t&&(t=[],this._queue=t),t.push.apply(t,e._queue)}var n=e.state,r=this.state;for(var o in n)void 0===r[o]&&(r[o]=n[o]);return this}},{key:"loop",value:function(e,t){return g(this,e),p(this,this._root,e,t),this}},{key:"repeat",value:function(e,t,n){return g(this,t),y(this,this._root,e,t,n),this}},{key:"forEach",value:function(e,t,n){return g(this,t),d(this,this._root,e,t,n),this}},{key:"break",value:function(e){w(this),this.state[m]=e,this._root.error(a)}},{key:"continue",value:function(e){w(this),this.state[m]=e,this._root.error(s)}},{key:"successStep",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];w(this);var o=this._queue;return o&&o.length?o.push([function(){e._root._handle_success(n)},void 0]):this._root._next_args=n,this}},{key:"await",value:function(e,t){return w(this),b(this,this._root,e,t),this}},{key:"sync",value:function(e,t,n){return g(this,t,n),e.sync(this,t,n),this}},{key:"newInstance",value:function(){return this._root.newInstance()}},{key:"isAsyncSteps",value:function(){return!0}},{key:"_cleanup",value:function(){this._root=null,this.state=null}}])&&r(t.prototype,n),e}();e.exports=x},214:(e,t)=>{"use strict";if(t=e.exports={},"undefined"==typeof setImmediate){t.callLater=function(e,t){return setTimeout(e,t)},t.cancelCall=function(e){return clearTimeout(e)},window._FutoInEventLoopQueue=window._FutoInEventLoopQueue||[];var n=window._FutoInEventLoopQueue,r=window.performance,o=null,i=function(){o&&clearTimeout(o),o=setTimeout(c,0)},c=function(){o=null;for(var e=r.now()+10;n.length;){var t=n.shift();try{t()}catch(e){throw i(),e}if(r.now()>=e){i();break}}};t.callImmediate=function(e){n.length||i();var t=function(){e()};return n.push(t),t},t.cancelImmediate=function(e){var t=n.indexOf(e);t>=0&&n.splice(t,1)}}else t.callLater=function(e,t){return setTimeout(e,t)},t.cancelCall=function(e){clearTimeout(e)},t.callImmediate=function(e){return setImmediate(e)},t.cancelImmediate=function(e){clearImmediate(e)}},299:(e,t,n)=>{"use strict";var r=n(75),o=[];(t=e.exports={}).callLater=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=1e3*r();t&&(n+=t);for(var i={f:e,t:n},c=0;c<o.length;++c)if(o[c].t>n)return void o.splice(c,0,i);return o.push(i),i},t.cancelCall=function(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)},t.nextEvent=function(){o.shift().f()},t.hasEvents=function(){return o.length>0},t.getEvents=function(){return o},t.resetEvents=function(){o.splice(0,o.length)},t.run=function(){for(;this.hasEvents();)this.nextEvent()},t.callImmediate=t.callLater,t.cancelImmediate=t.cancelCall},561:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(740),i=o.checkFunc,c=o.checkOnError,u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._root=t,this._as=n,this._queue=[],this._psteps=[],this._complete_count=0}var t,n;return t=e,(n=[{key:"add",value:function(e,t){return i(this,e),c(this,t),this._queue.push([e,t]),this}},{key:"_complete",value:function(){this._complete_count+=1,this._complete_count===this._psteps.length&&(this._as._root._handle_success(),this._cleanup())}},{key:"_error",value:function(e,t){try{this._as.error(e,t)}catch(e){}}},{key:"executeParallel",value:function(t){var n=this,r=this._queue,o=this._root;if(o!==t._root){var i=new e(t._root,t);return i._queue.push.apply(i._queue,r),void i.executeParallel(t)}if(this._as=t,r.length){t._on_cancel=function(){n.cancel()};var c=this._psteps,u=function(e){n._complete()},a=function(e,t){n._error(t,e.state.error_info)},s=o.constructor;r.forEach((function(e){var n=new s(t.state,o._async_tool);n._queue.push([function(t){t._queue=[[e[0],e[1]]]},a],[u,void 0]),c.push(n)})),c.forEach((function(e){e.execute()}))}else this._complete()}},{key:"cancel",value:function(){this._psteps.forEach((function(e){e.cancel()})),this._cleanup()}},{key:"isAsyncSteps",value:function(){return!0}},{key:"_cleanup",value:function(){this._root=null,this._as=null,this._psteps=null}}])&&r(t.prototype,n),e}();e.exports=u},898:(e,t,n)=>{"use strict";!function(t){var r=t.FutoIn||t.futoin||{};if(void 0===r.AsyncSteps){var o=n(386);t.$as=o,r.$as=o,t.FutoInError=o.FutoInError,r.AsyncSteps=o.AsyncSteps,t.FutoIn=r,t.futoin=r}e.exports=r.$as}(window)},740:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=n(659),c=(i.InternalError,i.LoopCont),u=i.LoopBreak,a="undefined"==typeof Symbol?function(e){return e}:function(e){return Symbol(e)},s=a("_loop_term_label"),l=function(e,t,n,r,o){o&&o()||e.add((function(e){var i=e.state,a=t._exec_stack,l=a.length,f=[n,function(t,n){!function(e,t,n,r,o){if(t===c){var i=r[s];i&&i!==o||(r.last_exception=null,e._root._handle_success())}else if(t===u){var a=r[s];a&&a!==o||(r.last_exception=null,n._queue.length=0,e._root._handle_success())}}(t,n,e,i,r)}],h=[function(e){o&&o()||(a.length=l,_())},null],_=function(){e._queue=[f,h]};_()}))},f=function(e,t,n,r,o){var i=0,c=n;l(e,t,(function(e){r(e,i++)}),o,(function(){return i>=c}))},h=[];Object.freeze(h);var _=function(){};e.exports=t={noop:_,makeSym:a,loop:l,repeat:f,forEach:function(e,t,n,r,i){if(Array.isArray(n)){var c=n;f(e,t,c.length,(function(e,t){r(e,t,c[t])}),i)}else if("undefined"!=typeof Map&&n instanceof Map){var u=n.entries();l(e,t,(function(e){var t=u.next();t.done&&e.break();var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.value,2),i=n[0],c=n[1];r(e,i,c)}),i)}else{var a=n,s=Object.keys(a);f(e,t,s.length,(function(e,t){r(e,s[t],a[s[t]])}),i)}},LOOP_TERM_LABEL:s,as_await:function(e,t,n,r){var o,i;n.then((function(e){o?o.state&&t._burst_success([e]):i=function(){t._handle_success([e])}}),(function(e){o?function(e,t,n){var r=e.state;if(r){var o="PromiseReject";if(e._on_cancel=null,n instanceof Error)r.last_exception=n,r.error_info=void 0,t._handle_error(o);else{var i=n||o;r.last_exception=new Error(i),r.error_info=void 0,t._handle_error(i)}}}(o,t,e):(o=null,i=e instanceof Error?function(){throw e}:function(t){t.error(e||"PromiseReject")})})),e.add((function(e){i?i(e):(o=e,e._on_cancel=function(){if(o){o=null;try{n.cancel()}catch(e){}}})}),r)},EMPTY_ARRAY:h,prev_queue:function(e){var t=e._stack,n=t.length;return n>1?t[n-2]._queue:e._queue}},t.isProduction=!0,t.checkFunc=_,t.checkOnError=_;var v=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"push",value:function(){}},{key:"length",get:function(){return 0},set:function(e){}}])&&r(t.prototype,n),e}());Object.freeze(v),t.newExecStack=function(){return v}},386:(e,t,n)=>{"use strict";(t=e.exports=n(414)).ISync=n(658),t.Mutex=n(525),t.Throttle=n(88),t.Limiter=n(367),t.testcase=n(819)},414:(e,t,n)=>{"use strict";var r=n(214),o=n(299),i=n(659),c=n(178),u=n(740).isProduction;(t=e.exports=function(){return new c(null,t.ActiveAsyncTool)}).ActiveAsyncTool=r,t.AsyncTool=r,t.AsyncToolTest=o,t.FutoInError=i,t.Errors=i,t.AsyncSteps=c,t.isProduction=u,t.installAsyncToolTest=function(e){t.ActiveAsyncTool=!1===e?r:o},t.assertAS=function(e){try{if(e.isAsyncSteps())return}catch(e){}throw new Error("Not an instance of AsyncSteps: ".concat(e))}},819:(e,t,n)=>{"use strict";var r=n(178);e.exports=function(e,t){return function(n){var o=this,i=new r;i.add((function(n){n.add((function(n){e.call(o,n),t&&n.add((function(e){e.error("NegativeTestMustThrow")}))}),t)}),(function(e,t){console.log("ERROR: ".concat(t," (").concat(e.state.error_info,")")),n(e.state.last_exception||new Error("Generic Fail"))})),i.add((function(e){return n()})),i.execute()}}},75:function(e){(function(){var t,n,r,o,i,c;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),c=1e9*process.uptime(),i=o-c):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(308);var e,t}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["futoin-asyncevent"]=e():t.$asyncevent=e()}(self,(()=>{return t={818:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===r(e)?e:String(e)}var l=n(898),s=Symbol("FutoIn Event Emitter"),f="_evt_",h="_evtonce_",y=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._max=n,this._scheduleCall=l.ActiveAsyncTool.callImmediate;var r,o=i(t);try{for(o.s();!(r=o.n()).done;){var u=r.value;this["".concat(f).concat(u)]=[],this["".concat(h).concat(u)]=[]}}catch(t){o.e(t)}finally{o.f()}}var n,r,u;return n=e,r=[{key:"on",value:function(t,e){try{var n=this["".concat(f).concat(t)];n.length===this._max&&console.warn("Hitting max handler limit for: ".concat(t)),n.push(e)}catch(e){throw new Error("Unknown event: ".concat(t))}}},{key:"once",value:function(t,e){try{var n=this["".concat(h).concat(t)];n.length===this._max&&console.warn("Hitting max once handler limit for: ".concat(t)),n.push(e)}catch(e){throw new Error("Unknown event: ".concat(t))}}},{key:"off",value:function(t,e){try{var n="".concat(f).concat(t);this[n]=this[n].filter((function(t){return t!==e}));var r="".concat(h).concat(t);this[r]=this[r].filter((function(t){return t!==e}))}catch(e){throw new Error("Unknown event: ".concat(t))}}},{key:"emit",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var u=this["".concat(f).concat(t)],c=this["".concat(h).concat(t)];if(void 0===u)throw new Error("Unknown event: ".concat(t));var a,l=[],s=i(u);try{for(s.s();!(a=s.n()).done;){var y=a.value;l.push(y)}}catch(t){s.e(t)}finally{s.f()}if(c.length){var v,p=i(c);try{for(p.s();!(v=p.n()).done;){var _=v.value;l.push(_)}}catch(t){p.e(t)}finally{p.f()}this["".concat(h).concat(t)]=[]}this._scheduleCall((function(){for(var t=function(){var t=o[n];try{t.apply(void 0,r)}catch(t){e._scheduleCall((function(){throw t}))}},n=0,o=l;n<o.length;n++)t()}))}}],u=[{key:"SYM_EVENT_EMITTER",get:function(){return s}},{key:Symbol.hasInstance,value:function(t){return void 0!==t[s]||t.constructor===e}},{key:"attach",value:function(t,n){var r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,c=t[s];if(void 0===c){var a=new e(n,u);Object.defineProperties(t,(o(r={},s,{configurable:!1,enumerable:!1,writable:!1,value:a}),o(r,"on",{configurable:!1,enumerable:!1,writable:!1,value:function(t,e){return a.on(t,e)}}),o(r,"off",{configurable:!1,enumerable:!1,writable:!1,value:function(t,e){return a.off(t,e)}}),o(r,"once",{configurable:!1,enumerable:!1,writable:!1,value:function(t,e){return a.once(t,e)}}),o(r,"emit",{configurable:!1,enumerable:!1,writable:!1,value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return a.emit.apply(a,[t].concat(n))}}),r))}else{c._max=u;var l,y=i(n);try{for(y.s();!(l=y.n()).done;){var v=l.value;if("".concat(f).concat(v)in c)throw new Error('Event "'.concat(v,'" has been already registered!'));c["".concat(f).concat(v)]=[],c["".concat(h).concat(v)]=[]}}catch(t){y.e(t)}finally{y.f()}}}},{key:"setMaxListeners",value:function(t,e){t[s]._max=e}}],r&&c(n.prototype,r),u&&c(n,u),Object.defineProperty(n,"prototype",{writable:!1}),e}();t.exports=y},748:(t,e,n)=>{"use strict";var r=n(818),o=r.attach;o.EventEmitter=r,t.exports=o},308:(t,e,n)=>{"use strict";!function(e){var r=e.FutoIn||e.futoin||{};if(void 0===r.$asyncevent){var o=n(748);e.$asyncevent=o,r.$asyncevent=o,r.EventEmitter=o.EventEmitter,e.FutoIn=r,e.futoin=r}t.exports=r.$asyncevent}(window)},178:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}var u=n(214),c=n(659).InternalError,a=n(644),l=n(561),s=n(740),f=s.isProduction,h=s.checkFunc,y=s.checkOnError,v=s.noop,p=s.loop,_=s.repeat,m=s.forEach,b=s.as_await,d=s.EMPTY_ARRAY,w=s.newExecStack,g=f?v:function(t){t._stack.length>0&&t.error(c,"Top level add in execution")},x=f?v:function(t,e,n){g(t),h(t,e),y(t,n)},k=100,S=null,E=function(t){t._post_exec=v,t._execute()},j=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===n&&(n=function(){return this.state}),this.state=n,this._queue=[],this._stack=[],this._exec_stack=w(),this._in_exec=!1,this._post_exec=v,this._exec_event=null,this._next_args=d,this._async_tool=r;var o=r.callImmediate,i=function(){k=100,S=e,e._exec_event=null,e._execute()};this._scheduleExecute=function(){--k<=0||!e._in_exec||S!==e?e._exec_event=o(i):e._in_exec&&(e._post_exec=E)}}var e,n;return e=t,n=[{key:"add",value:function(t,e){return x(this,t,e),this._queue.push([t,e]),this}},{key:"parallel",value:function(t){g(this),y(this,t);var e=new l(this,this);return this._queue.push([function(t){e.executeParallel(t)},t]),e}},{key:"sync",value:function(t,e,n){return x(this,e,n),t.sync(this,e,n),this}},{key:"error",value:function(t,e){this.state.error_info=e;var n=new Error(t);throw this._in_exec||(this.state.last_exception=n,this._handle_error(t)),n}},{key:"copyFrom",value:function(t){this._queue.push.apply(this._queue,t._queue);var e=t.state,n=this.state;for(var r in e)r in n||(n[r]=e[r]);return this}},{key:"_handle_success",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,e=this._stack;e.length||this.error(c,"Invalid success completion"),this._next_args=t;for(var n=e[e.length-1];;){var r=n._limit_event;if(r&&(this._async_tool.cancelCall(r),n._limit_event=null),n._cleanup(),e.pop(),!e.length)break;if((n=e[e.length-1])._queue.length)break}(e.length||this._queue.length)&&this._scheduleExecute()}},{key:"_handle_error",value:function(t){if(this._exec_event)this.cancel();else{this._next_args=d;var e=this._stack,n=this._exec_stack;this.state.async_stack=n;for(var r=this._in_exec,o=!0;e.length;){var i=e[e.length-1],u=i._limit_event,c=i._on_cancel,a=i._on_error;if(u&&(this._async_tool.cancelCall(u),i._limit_event=null),c&&(c.call(null,i),i._on_cancel=null),a){var l=e.length;i._queue=null,i._on_error=null,n.push(a);try{if(this._in_exec=!0,a.call(null,i,t),l!==e.length){o=!1;break}if(null!==i._queue){o=!1,this._scheduleExecute();break}}catch(e){this.state.last_exception=e,t=e.message}finally{this._in_exec=r}}i._cleanup(),e.pop()}o?this._queue=[]:r||this._post_exec(this)}}},{key:"cancel",value:function(){this._next_args=d;var t=this._exec_event;t&&(this._async_tool.cancelImmediate(t),this._exec_event=null);for(var e=this._stack,n=this._async_tool;e.length;){var r=e.pop(),o=r._limit_event,i=r._on_cancel;o&&(n.cancelCall(o),r._limit_event=null),i&&(i.call(null,r),r._on_cancel=null),r._cleanup()}return this._queue=[],this}},{key:"execute",value:function(){var t=S;return S=this,this._execute(),S=t,this}},{key:"_execute",value:function(){var t,e,n=this._stack;if((t=n.length?n[n.length-1]._queue:this._queue).length){var r=t.shift(),i=r[0];this._exec_stack.push(i);var u=this._next_args,c=u.length,l=new a(this,r[1],u);n.push(l);try{var s=n.length;this._in_exec=!0,c?(this._next_args=d,i.apply(void 0,[l].concat(function(t){if(Array.isArray(t))return o(t)}(e=u)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):i(l),s===n.length&&(null!==l._queue?this._scheduleExecute():l._on_cancel||l._limit_event||this._handle_success(this._next_args))}catch(t){this.state.last_exception=t,this._handle_error(t.message)}finally{this._in_exec=!1}this._post_exec(this)}}},{key:"_burst_success",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;try{this._in_exec=!0,S=this,this._handle_success(t)}catch(t){this.state.last_exception=t,this._handle_error(t.message)}finally{this._in_exec=!1}this._post_exec(this)}},{key:"loop",value:function(t,e){return x(this,t),p(this,this,t,e),this}},{key:"repeat",value:function(t,e,n){return x(this,e),_(this,this,t,e,n),this}},{key:"forEach",value:function(t,e,n){return x(this,e),m(this,this,t,e,n),this}},{key:"successStep",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];g(this);var o=this._queue;return o.length>0?o.push([function(){t._handle_success(n)},void 0]):this._next_args=n,this}},{key:"await",value:function(t,e){return g(this),b(this,this,t,e),this}},{key:"promise",value:function(){var t=this;return g(this),new Promise((function(e,n){var r=t._queue;t._queue=[[function(t){t._queue=r},function(t,e){n(new Error(e))}],[function(t,n){e(n)},void 0]],S=t,t._execute()}))}},{key:"newInstance",value:function(){return new t(null,this._async_tool)}},{key:"isAsyncSteps",value:function(){return!0}}],n&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=j},659:t=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===e(i)?i:String(i)),o)}var i}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var o=r((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}));["ConnectError","CommError","UnknownInterface","NotSupportedVersion","NotImplemented","Unauthorized","InternalError","InvokerError","InvalidRequest","DefenseRejected","PleaseReauth","SecurityError","Timeout","LoopBreak","LoopCont"].forEach((function(t){return Object.defineProperty(o,t,{enumerable:!0,value:t})})),t.exports=o},658:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}var i=n(659).NotImplemented,u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"sync",value:function(t,e,n){t.error(i,"#sync() API")}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=u},367:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=n(658),a=n(525),l=n(88),s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(h,t);var e,n,c,s,f=(c=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(c);if(s){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(t=f.call(this))._mutex=new a(e.concurrent||1,e.max_queue||0),t._throttle=new l(e.rate||1,e.period_ms||1e3,e.burst||0),t}return e=h,(n=[{key:"sync",value:function(t,e,n){var r=this;t.sync(this._mutex,(function(t){t._root._next_args=t._call_args,t.sync(r._throttle,e,n)}))}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),h}(c);t.exports=s},525:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=n(658),a=n(659).DefenseRejected,l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(f,t);var e,n,c,l,s=(c=f,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(c);if(l){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this))._max=e,t._locked=0,t._owners=new WeakMap,t._queue=[],t._max_queue=n,t._release_handler=function(e){t._release(e._root)},t}return e=f,(n=[{key:"_lock",value:function(t,e){var n=this._owners,r=n.get(e);if(r)return n.set(e,r+1),!0;if(this._locked>=this._max){var o=this._queue,i=this._max_queue;return null!==i&&o.length>=i&&e.error(a,"Mutex queue limit"),o.push(t),!1}return this._locked+=1,n.set(e,1),!0}},{key:"_release",value:function(t){var e=this._owners,n=e.get(t);if(n){if(n>1)return void e.set(t,n-1);e.delete(t),this._locked-=1;for(var r=this._queue;r.length;){var o=r.shift();if(o.state){var i=o._root;this._lock(o,i),i._handle_success(o._call_args);break}}}else{var u=this._queue.indexOf(t);u>=0&&this._queue.splice(u,1)}}},{key:"sync",value:function(t,e,n){var r=this;t.add((function(t){!function(t,e,n,r){var o=t._root;t._on_cancel=e._release_handler,t._queue=[[function(n){e._lock(t,o)?o._handle_success(t._call_args):(n.waitExternal(),n._call_args=t._call_args)},void 0],[n,r],[function(t){e._release(o),o._handle_success(t._call_args)},void 0]]}(t,r,e,n)}))}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(c);t.exports=l},88:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(658),l=n(659).DefenseRejected,s=n(740).prev_queue,f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(y,t);var e,n,a,f,h=(a=y,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(a);if(f){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function y(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),(e=h.call(this))._max=t,e._current=0;var o=e._queue=[];return e._timer=null,e._period_ms=n,e._max_queue=r,e._cancel_handler=function(t){var e=o.indexOf(t);e>=0&&o.splice(e,1)},e}return e=y,(n=[{key:"_lock",value:function(t){if(this._ensureTimer(),this._current>=this._max){var e=this._queue,n=this._max_queue;return null!==n&&e.length>=n&&t.error(l,"Throttle queue limit"),e.push(t),!1}return this._current+=1,!0}},{key:"_ensureTimer",value:function(){var t=this;this._timer||(this._timer=setInterval((function(){t._resetPeriod()}),this._period_ms))}},{key:"_resetPeriod",value:function(){this._current=0;var t=this._queue;if(!t.length)return clearInterval(this._timer),void(this._timer=null);for(var e=this._max,n=0;t.length&&n<e;){var r=t.shift();if(r.state){++n;var o=r._root;o._handle_success(o._next_args)}}this._current=n}},{key:"sync",value:function(t,e,n){var r=this;t.add((function(t){!function(t,e,n,r){var o,i=t._root;e._lock(t)?(t._on_error=r,n.apply(void 0,[t].concat(function(t){if(Array.isArray(t))return c(t)}(o=t._call_args)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):(t._on_cancel=e._cancel_handler,i._next_args=t._call_args,s(i).unshift([n,r]))}(t,r,e,n)}))}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(a);t.exports=f},644:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}var i=n(561),u=n(659),c=u.InternalError,a=u.Timeout,l=u.LoopBreak,s=u.LoopCont,f=n(740),h=f.isProduction,y=f.checkFunc,v=f.checkOnError,p=f.noop,_=f.loop,m=f.repeat,b=f.forEach,d=f.LOOP_TERM_LABEL,w=f.as_await,g=h?p:function(t){var e=t._root;if(e){var n=e._stack;if(n){if(n[n.length-1]===t)return;e.error(c,"Invalid call (sanity check)")}}throw new Error("InternalError: Unexpected call, object is out of service")},x=h?p:function(t,e,n){g(t),y(t,e),v(t,n)},k=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._root=e,this.state=e.state,this._queue=null,this._call_args=r,this._on_error=n,this._on_cancel=null,this._limit_event=null}var e,n;return e=t,n=[{key:"add",value:function(t,e){x(this,t,e);var n=[t,e],r=this._queue;return r?r.push(n):this._queue=[n],this}},{key:"parallel",value:function(t){var e=new i(this._root,this);return this.add((function(t){e.executeParallel(t)}),t),e}},{key:"success",value:function(){g(this),null!==this._queue&&this.error(c,"Invalid success() call");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this._root._handle_success(e)}},{key:"error",value:function(t,e){g(this),this._root.error(t,e)}},{key:"setTimeout",value:function(t){var e=this;g(this);var n=this._root._async_tool;return null!==this._limit_event&&n.cancelCall(this._limit_event),this._limit_event=n.callLater((function(){!function(t){t._limit_event=null;var e=t.state;e.error_info=void 0,e.last_exception=new Error(a),t._root._handle_error(a)}(e)}),t),this}},{key:"setCancel",value:function(t){return this._on_cancel=t,this}},{key:"waitExternal",value:function(){return this._on_cancel=p,this}},{key:"copyFrom",value:function(t){if(g(this),t._queue.length){var e=this._queue;null===e&&(e=[],this._queue=e),e.push.apply(e,t._queue)}var n=t.state,r=this.state;for(var o in n)void 0===r[o]&&(r[o]=n[o]);return this}},{key:"loop",value:function(t,e){return x(this,t),_(this,this._root,t,e),this}},{key:"repeat",value:function(t,e,n){return x(this,e),m(this,this._root,t,e,n),this}},{key:"forEach",value:function(t,e,n){return x(this,e),b(this,this._root,t,e,n),this}},{key:"break",value:function(t){g(this),this.state[d]=t,this._root.error(l)}},{key:"continue",value:function(t){g(this),this.state[d]=t,this._root.error(s)}},{key:"successStep",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];g(this);var o=this._queue;return o&&o.length?o.push([function(){t._root._handle_success(n)},void 0]):this._root._next_args=n,this}},{key:"await",value:function(t,e){return g(this),w(this,this._root,t,e),this}},{key:"sync",value:function(t,e,n){return x(this,e,n),t.sync(this,e,n),this}},{key:"newInstance",value:function(){return this._root.newInstance()}},{key:"isAsyncSteps",value:function(){return!0}},{key:"_cleanup",value:function(){this._root=null,this.state=null}}],n&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=k},214:(t,e)=>{"use strict";if(e=t.exports={},"undefined"==typeof setImmediate){e.callLater=function(t,e){return setTimeout(t,e)},e.cancelCall=function(t){return clearTimeout(t)},window._FutoInEventLoopQueue=window._FutoInEventLoopQueue||[];var n=window._FutoInEventLoopQueue,r=window.performance,o=null,i=function(){o&&clearTimeout(o),o=setTimeout(u,0)},u=function(){o=null;for(var t=r.now()+10;n.length;){var e=n.shift();try{e()}catch(t){throw i(),t}if(r.now()>=t){i();break}}};e.callImmediate=function(t){n.length||i();var e=function(){t()};return n.push(e),e},e.cancelImmediate=function(t){var e=n.indexOf(t);e>=0&&n.splice(e,1)}}else e.callLater=function(t,e){return setTimeout(t,e)},e.cancelCall=function(t){clearTimeout(t)},e.callImmediate=function(t){return setImmediate(t)},e.cancelImmediate=function(t){clearImmediate(t)}},299:(t,e,n)=>{"use strict";var r=n(75),o=[];(e=t.exports={}).callLater=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=1e3*r();e&&(n+=e);for(var i={f:t,t:n},u=0;u<o.length;++u)if(o[u].t>n)return void o.splice(u,0,i);return o.push(i),i},e.cancelCall=function(t){var e=o.indexOf(t);e>=0&&o.splice(e,1)},e.nextEvent=function(){o.shift().f()},e.hasEvents=function(){return o.length>0},e.getEvents=function(){return o},e.resetEvents=function(){o.splice(0,o.length)},e.run=function(){for(;this.hasEvents();)this.nextEvent()},e.callImmediate=e.callLater,e.cancelImmediate=e.cancelCall},561:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}var i=n(740),u=i.checkFunc,c=i.checkOnError,a=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._root=e,this._as=n,this._queue=[],this._psteps=[],this._complete_count=0}var e,n;return e=t,(n=[{key:"add",value:function(t,e){return u(this,t),c(this,e),this._queue.push([t,e]),this}},{key:"_complete",value:function(){this._complete_count+=1,this._complete_count===this._psteps.length&&(this._as._root._handle_success(),this._cleanup())}},{key:"_error",value:function(t,e){try{this._as.error(t,e)}catch(t){}}},{key:"executeParallel",value:function(e){var n=this,r=this._queue,o=this._root;if(o!==e._root){var i=new t(e._root,e);return i._queue.push.apply(i._queue,r),void i.executeParallel(e)}if(this._as=e,r.length){e._on_cancel=function(){n.cancel()};var u=this._psteps,c=function(t){n._complete()},a=function(t,e){n._error(e,t.state.error_info)},l=o.constructor;r.forEach((function(t){var n=new l(e.state,o._async_tool);n._queue.push([function(e){e._queue=[[t[0],t[1]]]},a],[c,void 0]),u.push(n)})),u.forEach((function(t){t.execute()}))}else this._complete()}},{key:"cancel",value:function(){this._psteps.forEach((function(t){t.cancel()})),this._cleanup()}},{key:"isAsyncSteps",value:function(){return!0}},{key:"_cleanup",value:function(){this._root=null,this._as=null,this._psteps=null}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=a},898:(t,e,n)=>{"use strict";!function(e){var r=e.FutoIn||e.futoin||{};if(void 0===r.AsyncSteps){var o=n(386);e.$as=o,r.$as=o,e.FutoInError=o.FutoInError,r.AsyncSteps=o.AsyncSteps,e.FutoIn=r,e.futoin=r}t.exports=r.$as}(window)},740:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===r(i)?i:String(i)),o)}var i}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=n(659),c=(u.InternalError,u.LoopCont),a=u.LoopBreak,l="undefined"==typeof Symbol?function(t){return t}:function(t){return Symbol(t)},s=l("_loop_term_label"),f=function(t,e,n,r,o){o&&o()||t.add((function(t){var i=t.state,u=e._exec_stack,l=u.length,f=[n,function(e,n){!function(t,e,n,r,o){if(e===c){var i=r[s];i&&i!==o||(r.last_exception=null,t._root._handle_success())}else if(e===a){var u=r[s];u&&u!==o||(r.last_exception=null,n._queue.length=0,t._root._handle_success())}}(e,n,t,i,r)}],h=[function(t){o&&o()||(u.length=l,y())},null],y=function(){t._queue=[f,h]};y()}))},h=function(t,e,n,r,o){var i=0,u=n;f(t,e,(function(t){r(t,i++)}),o,(function(){return i>=u}))},y=[];Object.freeze(y);var v=function(){};t.exports=e={noop:v,makeSym:l,loop:f,repeat:h,forEach:function(t,e,n,r,o){if(Array.isArray(n)){var u=n;h(t,e,u.length,(function(t,e){r(t,e,u[e])}),o)}else if("undefined"!=typeof Map&&n instanceof Map){var c=n.entries();f(t,e,(function(t){var e=c.next();e.done&&t.break();var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.value,2),o=n[0],u=n[1];r(t,o,u)}),o)}else{var a=n,l=Object.keys(a);h(t,e,l.length,(function(t,e){r(t,l[e],a[l[e]])}),o)}},LOOP_TERM_LABEL:s,as_await:function(t,e,n,r){var o,i;n.then((function(t){o?o.state&&e._burst_success([t]):i=function(){e._handle_success([t])}}),(function(t){o?function(t,e,n){var r=t.state;if(r){var o="PromiseReject";if(t._on_cancel=null,n instanceof Error)r.last_exception=n,r.error_info=void 0,e._handle_error(o);else{var i=n||o;r.last_exception=new Error(i),r.error_info=void 0,e._handle_error(i)}}}(o,e,t):(o=null,i=t instanceof Error?function(){throw t}:function(e){e.error(t||"PromiseReject")})})),t.add((function(t){i?i(t):(o=t,t._on_cancel=function(){if(o){o=null;try{n.cancel()}catch(t){}}})}),r)},EMPTY_ARRAY:y,prev_queue:function(t){var e=t._stack,n=e.length;return n>1?e[n-2]._queue:t._queue}},e.isProduction=!0,e.checkFunc=v,e.checkOnError=v;var p=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"push",value:function(){}},{key:"length",get:function(){return 0},set:function(t){}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());Object.freeze(p),e.newExecStack=function(){return p}},386:(t,e,n)=>{"use strict";(e=t.exports=n(414)).ISync=n(658),e.Mutex=n(525),e.Throttle=n(88),e.Limiter=n(367),e.testcase=n(819)},414:(t,e,n)=>{"use strict";var r=n(214),o=n(299),i=n(659),u=n(178),c=n(740).isProduction;(e=t.exports=function(){return new u(null,e.ActiveAsyncTool)}).ActiveAsyncTool=r,e.AsyncTool=r,e.AsyncToolTest=o,e.FutoInError=i,e.Errors=i,e.AsyncSteps=u,e.isProduction=c,e.installAsyncToolTest=function(t){e.ActiveAsyncTool=!1===t?r:o},e.assertAS=function(t){try{if(t.isAsyncSteps())return}catch(t){}throw new Error("Not an instance of AsyncSteps: ".concat(t))}},819:(t,e,n)=>{"use strict";var r=n(178);t.exports=function(t,e){return function(n){var o=this,i=new r;i.add((function(n){n.add((function(n){t.call(o,n),e&&n.add((function(t){t.error("NegativeTestMustThrow")}))}),e)}),(function(t,e){console.log("ERROR: ".concat(e," (").concat(t.state.error_info,")")),n(t.state.last_exception||new Error("Generic Fail"))})),i.add((function(t){return n()})),i.execute()}}},75:function(t){(function(){var e,n,r,o,i,u;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-i)/1e6},n=process.hrtime,o=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})(),u=1e9*process.uptime(),i=o-u):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}},e={},function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}(308);var t,e}));

@@ -1,1 +0,1 @@

(()=>{var t={5483:(t,r,e)=>{e(2401),e(4855);var n=e(6061);t.exports=n.f("hasInstance")},9266:(t,r,e)=>{e(2222),e(1539),e(2526),e(2443),e(1817),e(2401),e(8722),e(2165),e(9007),e(6066),e(3510),e(1840),e(6982),e(2159),e(6649),e(9341),e(543),e(3706),e(408),e(1299);var n=e(857);t.exports=n.Symbol},5834:(t,r,e)=>{e(6992),e(1539),e(8783),e(2165);var n=e(6061);t.exports=n.f("iterator")},3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,r,e)=>{var n=e(111);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:(t,r,e)=>{var n=e(5112),o=e(30),i=e(3070),a=n("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},9670:(t,r,e)=>{var n=e(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},1318:(t,r,e)=>{var n=e(5656),o=e(7466),i=e(1400),a=function(t){return function(r,e,a){var u,c=n(r),s=o(c.length),f=i(a,s);if(t&&e!=e){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,r,e)=>{var n=e(9974),o=e(8361),i=e(7908),a=e(7466),u=e(5417),c=[].push,s=function(t){var r=1==t,e=2==t,s=3==t,f=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,h,g,d){for(var b,x,m=i(y),S=o(m),O=n(h,g,3),w=a(S.length),j=0,T=d||u,P=r?T(y,w):e||l?T(y,0):void 0;w>j;j++)if((v||j in S)&&(x=O(b=S[j],j,m),t))if(r)P[j]=x;else if(x)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:c.call(P,b)}else switch(t){case 4:return!1;case 7:c.call(P,b)}return p?-1:s||f?f:P}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(t,r,e)=>{var n=e(7293),o=e(5112),i=e(7392),a=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[];return(r.constructor={})[a]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},7475:(t,r,e)=>{var n=e(111),o=e(3157),i=e(5112)("species");t.exports=function(t){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),void 0===r?Array:r}},5417:(t,r,e)=>{var n=e(7475);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},4326:t=>{var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},648:(t,r,e)=>{var n=e(1694),o=e(4326),i=e(5112)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),i))?e:a?o(r):"Object"==(n=o(r))&&"function"==typeof r.callee?"Arguments":n}},9920:(t,r,e)=>{var n=e(6656),o=e(3887),i=e(1236),a=e(3070);t.exports=function(t,r){for(var e=o(r),u=a.f,c=i.f,s=0;s<e.length;s++){var f=e[s];n(t,f)||u(t,f,c(r,f))}}},8544:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,r,e)=>{"use strict";var n=e(3383).IteratorPrototype,o=e(30),i=e(9114),a=e(8003),u=e(7497),c=function(){return this};t.exports=function(t,r,e){var s=r+" Iterator";return t.prototype=o(n,{next:i(1,e)}),a(t,s,!1,!0),u[s]=c,t}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},6135:(t,r,e)=>{"use strict";var n=e(4948),o=e(3070),i=e(9114);t.exports=function(t,r,e){var a=n(r);a in t?o.f(t,a,i(0,e)):t[a]=e}},654:(t,r,e)=>{"use strict";var n=e(2109),o=e(4994),i=e(9518),a=e(7674),u=e(8003),c=e(8880),s=e(1320),f=e(5112),p=e(1913),l=e(7497),v=e(3383),y=v.IteratorPrototype,h=v.BUGGY_SAFARI_ITERATORS,g=f("iterator"),d="keys",b="values",x="entries",m=function(){return this};t.exports=function(t,r,e,f,v,S,O){o(e,r,f);var w,j,T,P=function(t){if(t===v&&_)return _;if(!h&&t in L)return L[t];switch(t){case d:case b:case x:return function(){return new e(this,t)}}return function(){return new e(this)}},A=r+" Iterator",E=!1,L=t.prototype,I=L[g]||L["@@iterator"]||v&&L[v],_=!h&&I||P(v),M="Array"==r&&L.entries||I;if(M&&(w=i(M.call(new t)),y!==Object.prototype&&w.next&&(p||i(w)===y||(a?a(w,y):"function"!=typeof w[g]&&c(w,g,m)),u(w,A,!0,!0),p&&(l[A]=m))),v==b&&I&&I.name!==b&&(E=!0,_=function(){return I.call(this)}),p&&!O||L[g]===_||c(L,g,_),l[r]=_,v)if(j={values:P(b),keys:S?_:P(d),entries:P(x)},O)for(T in j)(h||E||!(T in L))&&s(L,T,j[T]);else n({target:r,proto:!0,forced:h||E},j);return j}},7235:(t,r,e)=>{var n=e(857),o=e(6656),i=e(6061),a=e(3070).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||a(r,t,{value:i.f(t)})}},9781:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,r,e)=>{var n=e(7854),o=e(111),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:(t,r,e)=>{var n=e(5005);t.exports=n("navigator","userAgent")||""},7392:(t,r,e)=>{var n,o,i=e(7854),a=e(8113),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f?o=(n=f.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,r,e)=>{var n=e(7854),o=e(1236).f,i=e(8880),a=e(1320),u=e(3505),c=e(9920),s=e(4705);t.exports=function(t,r){var e,f,p,l,v,y=t.target,h=t.global,g=t.stat;if(e=h?n:g?n[y]||u(y,{}):(n[y]||{}).prototype)for(f in r){if(l=r[f],p=t.noTargetGet?(v=o(e,f))&&v.value:e[f],!s(h?f:y+(g?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),a(e,f,l,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,r,e)=>{var n=e(3099);t.exports=function(t,r,e){if(n(t),void 0===r)return t;switch(e){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}}},5005:(t,r,e)=>{var n=e(7854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?o(n[t]):n[t]&&n[t][r]}},7854:t=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()},6656:(t,r,e)=>{var n=e(7908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,r){return o.call(n(t),r)}},3501:t=>{t.exports={}},490:(t,r,e)=>{var n=e(5005);t.exports=n("document","documentElement")},4664:(t,r,e)=>{var n=e(9781),o=e(7293),i=e(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(t,r,e)=>{var n=e(7293),o=e(4326),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:(t,r,e)=>{var n=e(5465),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},9909:(t,r,e)=>{var n,o,i,a=e(8536),u=e(7854),c=e(111),s=e(8880),f=e(6656),p=e(5465),l=e(6200),v=e(3501),y="Object already initialized",h=u.WeakMap;if(a||p.state){var g=p.state||(p.state=new h),d=g.get,b=g.has,x=g.set;n=function(t,r){if(b.call(g,t))throw new TypeError(y);return r.facade=t,x.call(g,t,r),r},o=function(t){return d.call(g,t)||{}},i=function(t){return b.call(g,t)}}else{var m=l("state");v[m]=!0,n=function(t,r){if(f(t,m))throw new TypeError(y);return r.facade=t,s(t,m,r),r},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},3157:(t,r,e)=>{var n=e(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},4705:(t,r,e)=>{var n=e(7293),o=/#|\.prototype\./,i=function(t,r){var e=u[a(t)];return e==s||e!=c&&("function"==typeof r?n(r):!!r)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},2190:(t,r,e)=>{var n=e(5005),o=e(3307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return"function"==typeof r&&Object(t)instanceof r}},3383:(t,r,e)=>{"use strict";var n,o,i,a=e(7293),u=e(9518),c=e(8880),s=e(6656),f=e(5112),p=e(1913),l=f("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(n=o):v=!0);var y=null==n||a((function(){var t={};return n[l].call(t)!==t}));y&&(n={}),p&&!y||s(n,l)||c(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},7497:t=>{t.exports={}},133:(t,r,e)=>{var n=e(7392),o=e(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8536:(t,r,e)=>{var n=e(7854),o=e(2788),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},30:(t,r,e)=>{var n,o=e(9670),i=e(6048),a=e(748),u=e(3501),c=e(490),s=e(317),f=e(6200)("IE_PROTO"),p=function(){},l=function(t){return"<script>"+t+"<\/script>"},v=function(t){t.write(l("")),t.close();var r=t.parentWindow.Object;return t=null,r},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}y=document.domain&&n?v(n):function(){var t,r=s("iframe");if(r.style)return r.style.display="none",c.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(l("document.F=Object")),t.close(),t.F}()||v(n);for(var t=a.length;t--;)delete y.prototype[a[t]];return y()};u[f]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(p.prototype=o(t),e=new p,p.prototype=null,e[f]=t):e=y(),void 0===r?e:i(e,r)}},6048:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9670),a=e(1956);t.exports=n?Object.defineProperties:function(t,r){i(t);for(var e,n=a(r),u=n.length,c=0;u>c;)o.f(t,e=n[c++],r[e]);return t}},3070:(t,r,e)=>{var n=e(9781),o=e(4664),i=e(9670),a=e(4948),u=Object.defineProperty;r.f=n?u:function(t,r,e){if(i(t),r=a(r),i(e),o)try{return u(t,r,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},1236:(t,r,e)=>{var n=e(9781),o=e(5296),i=e(9114),a=e(5656),u=e(4948),c=e(6656),s=e(4664),f=Object.getOwnPropertyDescriptor;r.f=n?f:function(t,r){if(t=a(t),r=u(r),s)try{return f(t,r)}catch(t){}if(c(t,r))return i(!o.f.call(t,r),t[r])}},1156:(t,r,e)=>{var n=e(5656),o=e(8006).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},8006:(t,r,e)=>{var n=e(6324),o=e(748).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,r)=>{r.f=Object.getOwnPropertySymbols},9518:(t,r,e)=>{var n=e(6656),o=e(7908),i=e(6200),a=e(8544),u=i("IE_PROTO"),c=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},6324:(t,r,e)=>{var n=e(6656),o=e(5656),i=e(1318).indexOf,a=e(3501);t.exports=function(t,r){var e,u=o(t),c=0,s=[];for(e in u)!n(a,e)&&n(u,e)&&s.push(e);for(;r.length>c;)n(u,e=r[c++])&&(~i(s,e)||s.push(e));return s}},1956:(t,r,e)=>{var n=e(6324),o=e(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},7674:(t,r,e)=>{var n=e(9670),o=e(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),r=e instanceof Array}catch(t){}return function(e,i){return n(e),o(i),r?t.call(e,i):e.__proto__=i,e}}():void 0)},288:(t,r,e)=>{"use strict";var n=e(1694),o=e(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(t,r,e)=>{var n=e(111);t.exports=function(t,r){var e,o;if("string"===r&&"function"==typeof(e=t.toString)&&!n(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!n(o=e.call(t)))return o;if("string"!==r&&"function"==typeof(e=t.toString)&&!n(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3887:(t,r,e)=>{var n=e(5005),o=e(8006),i=e(5181),a=e(9670);t.exports=n("Reflect","ownKeys")||function(t){var r=o.f(a(t)),e=i.f;return e?r.concat(e(t)):r}},857:(t,r,e)=>{var n=e(7854);t.exports=n},1320:(t,r,e)=>{var n=e(7854),o=e(8880),i=e(6656),a=e(3505),u=e(2788),c=e(9909),s=c.get,f=c.enforce,p=String(String).split("String");(t.exports=function(t,r,e,u){var c,s=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof r||i(e,"name")||o(e,"name",r),(c=f(e)).source||(c.source=p.join("string"==typeof r?r:""))),t!==n?(s?!v&&t[r]&&(l=!0):delete t[r],l?t[r]=e:o(t,r,e)):l?t[r]=e:a(r,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,r,e)=>{var n=e(7854);t.exports=function(t,r){try{Object.defineProperty(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},8003:(t,r,e)=>{var n=e(3070).f,o=e(6656),i=e(5112)("toStringTag");t.exports=function(t,r,e){t&&!o(t=e?t:t.prototype,i)&&n(t,i,{configurable:!0,value:r})}},6200:(t,r,e)=>{var n=e(2309),o=e(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,r,e)=>{var n=e(7854),o=e(3505),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},2309:(t,r,e)=>{var n=e(1913),o=e(5465);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.16.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8710:(t,r,e)=>{var n=e(9958),o=e(1340),i=e(4488),a=function(t){return function(r,e){var a,u,c=o(i(r)),s=n(e),f=c.length;return s<0||s>=f?t?"":void 0:(a=c.charCodeAt(s))<55296||a>56319||s+1===f||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):a:t?c.slice(s,s+2):u-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},1400:(t,r,e)=>{var n=e(9958),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5656:(t,r,e)=>{var n=e(8361),o=e(4488);t.exports=function(t){return n(o(t))}},9958:t=>{var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},7466:(t,r,e)=>{var n=e(9958),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:(t,r,e)=>{var n=e(4488);t.exports=function(t){return Object(n(t))}},7593:(t,r,e)=>{var n=e(111),o=e(2190),i=e(2140),a=e(5112)("toPrimitive");t.exports=function(t,r){if(!n(t)||o(t))return t;var e,u=t[a];if(void 0!==u){if(void 0===r&&(r="default"),e=u.call(t,r),!n(e)||o(e))return e;throw TypeError("Can't convert object to primitive value")}return void 0===r&&(r="number"),i(t,r)}},4948:(t,r,e)=>{var n=e(7593),o=e(2190);t.exports=function(t){var r=n(t,"string");return o(r)?r:String(r)}},1694:(t,r,e)=>{var n={};n[e(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:(t,r,e)=>{var n=e(2190);t.exports=function(t){if(n(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},9711:t=>{var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},3307:(t,r,e)=>{var n=e(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,r,e)=>{var n=e(5112);r.f=n},5112:(t,r,e)=>{var n=e(7854),o=e(2309),i=e(6656),a=e(9711),u=e(133),c=e(3307),s=o("wks"),f=n.Symbol,p=c?f:f&&f.withoutSetter||a;t.exports=function(t){return i(s,t)&&(u||"string"==typeof s[t])||(u&&i(f,t)?s[t]=f[t]:s[t]=p("Symbol."+t)),s[t]}},2222:(t,r,e)=>{"use strict";var n=e(2109),o=e(7293),i=e(3157),a=e(111),u=e(7908),c=e(7466),s=e(6135),f=e(5417),p=e(1194),l=e(5112),v=e(7392),y=l("isConcatSpreadable"),h=9007199254740991,g="Maximum allowed index exceeded",d=v>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),b=p("concat"),x=function(t){if(!a(t))return!1;var r=t[y];return void 0!==r?!!r:i(t)};n({target:"Array",proto:!0,forced:!d||!b},{concat:function(t){var r,e,n,o,i,a=u(this),p=f(a,0),l=0;for(r=-1,n=arguments.length;r<n;r++)if(x(i=-1===r?a:arguments[r])){if(l+(o=c(i.length))>h)throw TypeError(g);for(e=0;e<o;e++,l++)e in i&&s(p,l,i[e])}else{if(l>=h)throw TypeError(g);s(p,l++,i)}return p.length=l,p}})},6992:(t,r,e)=>{"use strict";var n=e(5656),o=e(1223),i=e(7497),a=e(9909),u=e(654),c="Array Iterator",s=a.set,f=a.getterFor(c);t.exports=u(Array,"Array",(function(t,r){s(this,{type:c,target:n(t),index:0,kind:r})}),(function(){var t=f(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:n,done:!1}:"values"==e?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},4855:(t,r,e)=>{"use strict";var n=e(111),o=e(3070),i=e(9518),a=e(5112)("hasInstance"),u=Function.prototype;a in u||o.f(u,a,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},3706:(t,r,e)=>{var n=e(7854);e(8003)(n.JSON,"JSON",!0)},408:(t,r,e)=>{e(8003)(Math,"Math",!0)},1539:(t,r,e)=>{var n=e(1694),o=e(1320),i=e(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},1299:(t,r,e)=>{var n=e(2109),o=e(7854),i=e(8003);n({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},8783:(t,r,e)=>{"use strict";var n=e(8710).charAt,o=e(1340),i=e(9909),a=e(654),u="String Iterator",c=i.set,s=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,r=s(this),e=r.string,o=r.index;return o>=e.length?{value:void 0,done:!0}:(t=n(e,o),r.index+=t.length,{value:t,done:!1})}))},2443:(t,r,e)=>{e(7235)("asyncIterator")},1817:(t,r,e)=>{"use strict";var n=e(2109),o=e(9781),i=e(7854),a=e(6656),u=e(111),c=e(3070).f,s=e(9920),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var p={},l=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),r=this instanceof l?new f(t):void 0===t?f():f(t);return""===t&&(p[r]=!0),r};s(l,f);var v=l.prototype=f.prototype;v.constructor=l;var y=v.toString,h="Symbol(test)"==String(f("test")),g=/^Symbol\((.*)\)[^)]+$/;c(v,"description",{configurable:!0,get:function(){var t=u(this)?this.valueOf():this,r=y.call(t);if(a(p,t))return"";var e=h?r.slice(7,-1):r.replace(g,"$1");return""===e?void 0:e}}),n({global:!0,forced:!0},{Symbol:l})}},2401:(t,r,e)=>{e(7235)("hasInstance")},8722:(t,r,e)=>{e(7235)("isConcatSpreadable")},2165:(t,r,e)=>{e(7235)("iterator")},2526:(t,r,e)=>{"use strict";var n=e(2109),o=e(7854),i=e(5005),a=e(1913),u=e(9781),c=e(133),s=e(7293),f=e(6656),p=e(3157),l=e(111),v=e(2190),y=e(9670),h=e(7908),g=e(5656),d=e(4948),b=e(1340),x=e(9114),m=e(30),S=e(1956),O=e(8006),w=e(1156),j=e(5181),T=e(1236),P=e(3070),A=e(5296),E=e(8880),L=e(1320),I=e(2309),_=e(6200),M=e(3501),k=e(9711),C=e(5112),N=e(6061),R=e(7235),F=e(8003),G=e(9909),D=e(2092).forEach,V=_("hidden"),z="Symbol",W=C("toPrimitive"),B=G.set,H=G.getterFor(z),J=Object.prototype,U=o.Symbol,Y=i("JSON","stringify"),q=T.f,$=P.f,K=w.f,Q=A.f,X=I("symbols"),Z=I("op-symbols"),tt=I("string-to-symbol-registry"),rt=I("symbol-to-string-registry"),et=I("wks"),nt=o.QObject,ot=!nt||!nt.prototype||!nt.prototype.findChild,it=u&&s((function(){return 7!=m($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=q(J,r);n&&delete J[r],$(t,r,e),n&&t!==J&&$(J,r,n)}:$,at=function(t,r){var e=X[t]=m(U.prototype);return B(e,{type:z,tag:t,description:r}),u||(e.description=r),e},ut=function(t,r,e){t===J&&ut(Z,r,e),y(t);var n=d(r);return y(e),f(X,n)?(e.enumerable?(f(t,V)&&t[V][n]&&(t[V][n]=!1),e=m(e,{enumerable:x(0,!1)})):(f(t,V)||$(t,V,x(1,{})),t[V][n]=!0),it(t,n,e)):$(t,n,e)},ct=function(t,r){y(t);var e=g(r),n=S(e).concat(lt(e));return D(n,(function(r){u&&!st.call(e,r)||ut(t,r,e[r])})),t},st=function(t){var r=d(t),e=Q.call(this,r);return!(this===J&&f(X,r)&&!f(Z,r))&&(!(e||!f(this,r)||!f(X,r)||f(this,V)&&this[V][r])||e)},ft=function(t,r){var e=g(t),n=d(r);if(e!==J||!f(X,n)||f(Z,n)){var o=q(e,n);return!o||!f(X,n)||f(e,V)&&e[V][n]||(o.enumerable=!0),o}},pt=function(t){var r=K(g(t)),e=[];return D(r,(function(t){f(X,t)||f(M,t)||e.push(t)})),e},lt=function(t){var r=t===J,e=K(r?Z:g(t)),n=[];return D(e,(function(t){!f(X,t)||r&&!f(J,t)||n.push(X[t])})),n};c||(L((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,r=k(t),e=function(t){this===J&&e.call(Z,t),f(this,V)&&f(this[V],r)&&(this[V][r]=!1),it(this,r,x(1,t))};return u&&ot&&it(J,r,{configurable:!0,set:e}),at(r,t)}).prototype,"toString",(function(){return H(this).tag})),L(U,"withoutSetter",(function(t){return at(k(t),t)})),A.f=st,P.f=ut,T.f=ft,O.f=w.f=pt,j.f=lt,N.f=function(t){return at(C(t),t)},u&&($(U.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),a||L(J,"propertyIsEnumerable",st,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),D(S(et),(function(t){R(t)})),n({target:z,stat:!0,forced:!c},{for:function(t){var r=b(t);if(f(tt,r))return tt[r];var e=U(r);return tt[r]=e,rt[e]=r,e},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(f(rt,t))return rt[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,r){return void 0===r?m(t):ct(m(t),r)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt,getOwnPropertySymbols:lt}),n({target:"Object",stat:!0,forced:s((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(h(t))}}),Y&&n({target:"JSON",stat:!0,forced:!c||s((function(){var t=U();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,r,e){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=r,(l(r)||void 0!==t)&&!v(t))return p(r)||(r=function(t,r){if("function"==typeof n&&(r=n.call(this,t,r)),!v(r))return r}),o[1]=r,Y.apply(null,o)}}),U.prototype[W]||E(U.prototype,W,U.prototype.valueOf),F(U,z),M[V]=!0},6066:(t,r,e)=>{e(7235)("matchAll")},9007:(t,r,e)=>{e(7235)("match")},3510:(t,r,e)=>{e(7235)("replace")},1840:(t,r,e)=>{e(7235)("search")},6982:(t,r,e)=>{e(7235)("species")},2159:(t,r,e)=>{e(7235)("split")},6649:(t,r,e)=>{e(7235)("toPrimitive")},9341:(t,r,e)=>{e(7235)("toStringTag")},543:(t,r,e)=>{e(7235)("unscopables")},3948:(t,r,e)=>{var n=e(7854),o=e(8324),i=e(6992),a=e(8880),u=e(5112),c=u("iterator"),s=u("toStringTag"),f=i.values;for(var p in o){var l=n[p],v=l&&l.prototype;if(v){if(v[c]!==f)try{a(v,c,f)}catch(t){v[c]=f}if(v[s]||a(v,s,p),o[p])for(var y in i)if(v[y]!==i[y])try{a(v,y,i[y])}catch(t){v[y]=i[y]}}}},618:(t,r,e)=>{var n=e(5483);t.exports=n},5914:(t,r,e)=>{var n=e(9266);e(3948),t.exports=n},8970:(t,r,e)=>{var n=e(5834);e(3948),t.exports=n}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n](i,i.exports,e),i.exports}(()=>{"use strict";e(5914),e(8970),e(618)})()})();
(()=>{var t={5483:(t,r,e)=>{e(2401),e(4855);var n=e(6061);t.exports=n.f("hasInstance")},9266:(t,r,e)=>{e(2222),e(1539),e(2526),e(2443),e(1817),e(2401),e(8722),e(2165),e(9007),e(6066),e(3510),e(1840),e(6982),e(2159),e(6649),e(9341),e(543),e(3706),e(408),e(1299);var n=e(857);t.exports=n.Symbol},5834:(t,r,e)=>{e(6992),e(1539),e(8783),e(2165);var n=e(6061);t.exports=n.f("iterator")},9662:(t,r,e)=>{var n=e(614),o=e(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},6077:(t,r,e)=>{var n=e(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},1223:(t,r,e)=>{var n=e(5112),o=e(30),i=e(3070).f,a=n("unscopables"),u=Array.prototype;null==u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},9670:(t,r,e)=>{var n=e(111),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},1318:(t,r,e)=>{var n=e(5656),o=e(1400),i=e(6244),a=function(t){return function(r,e,a){var u,c=n(r),s=i(c),f=o(a,s);if(t&&e!=e){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,r,e)=>{var n=e(9974),o=e(1702),i=e(8361),a=e(7908),u=e(6244),c=e(5417),s=o([].push),f=function(t){var r=1==t,e=2==t,o=3==t,f=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,g,b,h){for(var d,m,x=a(y),S=i(x),O=n(g,b),w=u(S),j=0,P=h||c,A=r?P(y,w):e||l?P(y,0):void 0;w>j;j++)if((v||j in S)&&(m=O(d=S[j],j,x),t))if(r)A[j]=m;else if(m)switch(t){case 3:return!0;case 5:return d;case 6:return j;case 2:s(A,d)}else switch(t){case 4:return!1;case 7:s(A,d)}return p?-1:o||f?f:A}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},1194:(t,r,e)=>{var n=e(7293),o=e(5112),i=e(7392),a=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[];return(r.constructor={})[a]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},1589:(t,r,e)=>{var n=e(1400),o=e(6244),i=e(6135),a=Array,u=Math.max;t.exports=function(t,r,e){for(var c=o(t),s=n(r,c),f=n(void 0===e?c:e,c),p=a(u(f-s,0)),l=0;s<f;s++,l++)i(p,l,t[s]);return p.length=l,p}},206:(t,r,e)=>{var n=e(1702);t.exports=n([].slice)},7475:(t,r,e)=>{var n=e(3157),o=e(4411),i=e(111),a=e(5112)("species"),u=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===u||n(r.prototype))||i(r)&&null===(r=r[a]))&&(r=void 0)),void 0===r?u:r}},5417:(t,r,e)=>{var n=e(7475);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},4326:(t,r,e)=>{var n=e(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:(t,r,e)=>{var n=e(1694),o=e(614),i=e(4326),a=e(5112)("toStringTag"),u=Object,c="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=u(t),a))?e:c?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},9920:(t,r,e)=>{var n=e(2597),o=e(3887),i=e(1236),a=e(3070);t.exports=function(t,r,e){for(var u=o(r),c=a.f,s=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||e&&n(e,p)||c(t,p,s(r,p))}}},8544:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6178:t=>{t.exports=function(t,r){return{value:t,done:r}}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},6135:(t,r,e)=>{"use strict";var n=e(4948),o=e(3070),i=e(9114);t.exports=function(t,r,e){var a=n(r);a in t?o.f(t,a,i(0,e)):t[a]=e}},7045:(t,r,e)=>{var n=e(6339),o=e(3070);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},8052:(t,r,e)=>{var n=e(614),o=e(3070),i=e(6339),a=e(3072);t.exports=function(t,r,e,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:r;if(n(e)&&i(e,s,u),u.global)c?t[r]=e:a(r,e);else{try{u.unsafe?t[r]&&(c=!0):delete t[r]}catch(t){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},3072:(t,r,e)=>{var n=e(7854),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},9781:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},317:(t,r,e)=>{var n=e(7854),o=e(111),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},7207:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(t,r,e)=>{var n=e(317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8113:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:(t,r,e)=>{var n,o,i=e(7854),a=e(8113),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,r,e)=>{var n=e(7854),o=e(1236).f,i=e(8880),a=e(8052),u=e(3072),c=e(9920),s=e(4705);t.exports=function(t,r){var e,f,p,l,v,y=t.target,g=t.global,b=t.stat;if(e=g?n:b?n[y]||u(y,{}):(n[y]||{}).prototype)for(f in r){if(l=r[f],p=t.dontCallGetSet?(v=o(e,f))&&v.value:e[f],!s(g?f:y+(b?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),a(e,f,l,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},2104:(t,r,e)=>{var n=e(4374),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},9974:(t,r,e)=>{var n=e(1470),o=e(9662),i=e(4374),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},4374:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,r,e)=>{var n=e(4374),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6530:(t,r,e)=>{var n=e(9781),o=e(2597),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},5668:(t,r,e)=>{var n=e(1702),o=e(9662);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}},1470:(t,r,e)=>{var n=e(4326),o=e(1702);t.exports=function(t){if("Function"===n(t))return o(t)}},1702:(t,r,e)=>{var n=e(4374),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},5005:(t,r,e)=>{var n=e(7854),o=e(614);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},8044:(t,r,e)=>{var n=e(1702),o=e(3157),i=e(614),a=e(4326),u=e(1340),c=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,e=[],n=0;n<r;n++){var s=t[n];"string"==typeof s?c(e,s):"number"!=typeof s&&"Number"!=a(s)&&"String"!=a(s)||c(e,u(s))}var f=e.length,p=!0;return function(t,r){if(p)return p=!1,r;if(o(this))return r;for(var n=0;n<f;n++)if(e[n]===t)return r}}}},8173:(t,r,e)=>{var n=e(9662),o=e(8554);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},7854:t=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()},2597:(t,r,e)=>{var n=e(1702),o=e(7908),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},3501:t=>{t.exports={}},490:(t,r,e)=>{var n=e(5005);t.exports=n("document","documentElement")},4664:(t,r,e)=>{var n=e(9781),o=e(7293),i=e(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(4326),a=Object,u=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?u(t,""):a(t)}:a},2788:(t,r,e)=>{var n=e(1702),o=e(614),i=e(5465),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9909:(t,r,e)=>{var n,o,i,a=e(4811),u=e(7854),c=e(111),s=e(8880),f=e(2597),p=e(5465),l=e(6200),v=e(3501),y="Object already initialized",g=u.TypeError,b=u.WeakMap;if(a||p.state){var h=p.state||(p.state=new b);h.get=h.get,h.has=h.has,h.set=h.set,n=function(t,r){if(h.has(t))throw g(y);return r.facade=t,h.set(t,r),r},o=function(t){return h.get(t)||{}},i=function(t){return h.has(t)}}else{var d=l("state");v[d]=!0,n=function(t,r){if(f(t,d))throw g(y);return r.facade=t,s(t,d,r),r},o=function(t){return f(t,d)?t[d]:{}},i=function(t){return f(t,d)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw g("Incompatible receiver, "+t+" required");return e}}}},3157:(t,r,e)=>{var n=e(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:(t,r,e)=>{var n=e(4154),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4411:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(614),a=e(648),u=e(5005),c=e(2788),s=function(){},f=[],p=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=n(l.exec),y=!l.exec(s),g=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},b=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!v(l,c(t))}catch(t){return!0}};b.sham=!0,t.exports=!p||o((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?b:g},4705:(t,r,e)=>{var n=e(7293),o=e(614),i=/#|\.prototype\./,a=function(t,r){var e=c[u(t)];return e==f||e!=s&&(o(r)?n(r):!!r)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8554:t=>{t.exports=function(t){return null==t}},111:(t,r,e)=>{var n=e(614),o=e(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:t=>{t.exports=!1},2190:(t,r,e)=>{var n=e(5005),o=e(614),i=e(7976),a=e(3307),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},3061:(t,r,e)=>{"use strict";var n=e(3383).IteratorPrototype,o=e(30),i=e(9114),a=e(8003),u=e(7497),c=function(){return this};t.exports=function(t,r,e,s){var f=r+" Iterator";return t.prototype=o(n,{next:i(+!s,e)}),a(t,f,!1,!0),u[f]=c,t}},1656:(t,r,e)=>{"use strict";var n=e(2109),o=e(6916),i=e(1913),a=e(6530),u=e(614),c=e(3061),s=e(9518),f=e(7674),p=e(8003),l=e(8880),v=e(8052),y=e(5112),g=e(7497),b=e(3383),h=a.PROPER,d=a.CONFIGURABLE,m=b.IteratorPrototype,x=b.BUGGY_SAFARI_ITERATORS,S=y("iterator"),O="keys",w="values",j="entries",P=function(){return this};t.exports=function(t,r,e,a,y,b,A){c(e,r,a);var T,L,E,F=function(t){if(t===y&&_)return _;if(!x&&t in C)return C[t];switch(t){case O:case w:case j:return function(){return new e(this,t)}}return function(){return new e(this)}},I=r+" Iterator",M=!1,C=t.prototype,R=C[S]||C["@@iterator"]||y&&C[y],_=!x&&R||F(y),D="Array"==r&&C.entries||R;if(D&&(T=s(D.call(new t)))!==Object.prototype&&T.next&&(i||s(T)===m||(f?f(T,m):u(T[S])||v(T,S,P)),p(T,I,!0,!0),i&&(g[I]=P)),h&&y==w&&R&&R.name!==w&&(!i&&d?l(C,"name",w):(M=!0,_=function(){return o(R,this)})),y)if(L={values:F(w),keys:b?_:F(O),entries:F(j)},A)for(E in L)(x||M||!(E in C))&&v(C,E,L[E]);else n({target:r,proto:!0,forced:x||M},L);return i&&!A||C[S]===_||v(C,S,_,{name:y}),g[r]=_,L}},3383:(t,r,e)=>{"use strict";var n,o,i,a=e(7293),u=e(614),c=e(111),s=e(30),f=e(9518),p=e(8052),l=e(5112),v=e(1913),y=l("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):g=!0),!c(n)||a((function(){var t={};return n[y].call(t)!==t}))?n={}:v&&(n=s(n)),u(n[y])||p(n,y,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},7497:t=>{t.exports={}},6244:(t,r,e)=>{var n=e(7466);t.exports=function(t){return n(t.length)}},6339:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(614),a=e(2597),u=e(9781),c=e(6530).CONFIGURABLE,s=e(2788),f=e(9909),p=f.enforce,l=f.get,v=String,y=Object.defineProperty,g=n("".slice),b=n("".replace),h=n([].join),d=u&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===g(v(r),0,7)&&(r="["+b(v(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||c&&t.name!==r)&&(u?y(t,"name",{value:r,configurable:!0}):t.name=r),d&&e&&a(e,"arity")&&t.length!==e.arity&&y(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?u&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=p(t);return a(n,"source")||(n.source=h(m,"string"==typeof r?r:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||s(this)}),"toString")},4758:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},30:(t,r,e)=>{var n,o=e(9670),i=e(6048),a=e(748),u=e(3501),c=e(490),s=e(317),f=e(6200),p="prototype",l="script",v=f("IE_PROTO"),y=function(){},g=function(t){return"<"+l+">"+t+"</"+l+">"},b=function(t){t.write(g("")),t.close();var r=t.parentWindow.Object;return t=null,r},h=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;h="undefined"!=typeof document?document.domain&&n?b(n):(r=s("iframe"),e="java"+l+":",r.style.display="none",c.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):b(n);for(var o=a.length;o--;)delete h[p][a[o]];return h()};u[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(y[p]=o(t),e=new y,y[p]=null,e[v]=t):e=h(),void 0===r?e:i.f(e,r)}},6048:(t,r,e)=>{var n=e(9781),o=e(3353),i=e(3070),a=e(9670),u=e(5656),c=e(1956);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=u(r),o=c(r),s=o.length,f=0;s>f;)i.f(t,e=o[f++],n[e]);return t}},3070:(t,r,e)=>{var n=e(9781),o=e(4664),i=e(3353),a=e(9670),u=e(4948),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(a(t),r=u(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(a(t),r=u(r),a(e),o)try{return s(t,r,e)}catch(t){}if("get"in e||"set"in e)throw c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},1236:(t,r,e)=>{var n=e(9781),o=e(6916),i=e(5296),a=e(9114),u=e(5656),c=e(4948),s=e(2597),f=e(4664),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=u(t),r=c(r),f)try{return p(t,r)}catch(t){}if(s(t,r))return a(!o(i.f,t,r),t[r])}},1156:(t,r,e)=>{var n=e(4326),o=e(5656),i=e(8006).f,a=e(1589),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return a(u)}}(t):i(o(t))}},8006:(t,r,e)=>{var n=e(6324),o=e(748).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,r)=>{r.f=Object.getOwnPropertySymbols},9518:(t,r,e)=>{var n=e(2597),o=e(614),i=e(7908),a=e(6200),u=e(8544),c=a("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var r=i(t);if(n(r,c))return r[c];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof s?f:null}},7976:(t,r,e)=>{var n=e(1702);t.exports=n({}.isPrototypeOf)},6324:(t,r,e)=>{var n=e(1702),o=e(2597),i=e(5656),a=e(1318).indexOf,u=e(3501),c=n([].push);t.exports=function(t,r){var e,n=i(t),s=0,f=[];for(e in n)!o(u,e)&&o(n,e)&&c(f,e);for(;r.length>s;)o(n,e=r[s++])&&(~a(f,e)||c(f,e));return f}},1956:(t,r,e)=>{var n=e(6324),o=e(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},7674:(t,r,e)=>{var n=e(5668),o=e(9670),i=e(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},288:(t,r,e)=>{"use strict";var n=e(1694),o=e(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(t,r,e)=>{var n=e(6916),o=e(614),i=e(111),a=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw a("Can't convert object to primitive value")}},3887:(t,r,e)=>{var n=e(5005),o=e(1702),i=e(8006),a=e(5181),u=e(9670),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(u(t)),e=a.f;return e?c(r,e(t)):r}},857:(t,r,e)=>{var n=e(7854);t.exports=n},4488:(t,r,e)=>{var n=e(8554),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},8003:(t,r,e)=>{var n=e(3070).f,o=e(2597),i=e(5112)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},6200:(t,r,e)=>{var n=e(2309),o=e(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,r,e)=>{var n=e(7854),o=e(3072),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},2309:(t,r,e)=>{var n=e(1913),o=e(5465);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.29.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:(t,r,e)=>{var n=e(1702),o=e(9303),i=e(1340),a=e(4488),u=n("".charAt),c=n("".charCodeAt),s=n("".slice),f=function(t){return function(r,e){var n,f,p=i(a(r)),l=o(e),v=p.length;return l<0||l>=v?t?"":void 0:(n=c(p,l))<55296||n>56319||l+1===v||(f=c(p,l+1))<56320||f>57343?t?u(p,l):n:t?s(p,l,l+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},6293:(t,r,e)=>{var n=e(7392),o=e(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},6532:(t,r,e)=>{var n=e(6916),o=e(5005),i=e(5112),a=e(8052);t.exports=function(){var t=o("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,u=i("toPrimitive");r&&!r[u]&&a(r,u,(function(t){return n(e,this)}),{arity:1})}},2015:(t,r,e)=>{var n=e(6293);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},1400:(t,r,e)=>{var n=e(9303),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5656:(t,r,e)=>{var n=e(8361),o=e(4488);t.exports=function(t){return n(o(t))}},9303:(t,r,e)=>{var n=e(4758);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},7466:(t,r,e)=>{var n=e(9303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:(t,r,e)=>{var n=e(4488),o=Object;t.exports=function(t){return o(n(t))}},7593:(t,r,e)=>{var n=e(6916),o=e(111),i=e(2190),a=e(8173),u=e(2140),c=e(5112),s=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=a(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw s("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},4948:(t,r,e)=>{var n=e(7593),o=e(2190);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},1694:(t,r,e)=>{var n={};n[e(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:(t,r,e)=>{var n=e(648),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9711:(t,r,e)=>{var n=e(1702),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3307:(t,r,e)=>{var n=e(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,r,e)=>{var n=e(9781),o=e(7293);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:(t,r,e)=>{var n=e(7854),o=e(614),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6800:(t,r,e)=>{var n=e(857),o=e(2597),i=e(6061),a=e(3070).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||a(r,t,{value:i.f(t)})}},6061:(t,r,e)=>{var n=e(5112);r.f=n},5112:(t,r,e)=>{var n=e(7854),o=e(2309),i=e(2597),a=e(9711),u=e(6293),c=e(3307),s=n.Symbol,f=o("wks"),p=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},2222:(t,r,e)=>{"use strict";var n=e(2109),o=e(7293),i=e(3157),a=e(111),u=e(7908),c=e(6244),s=e(7207),f=e(6135),p=e(5417),l=e(1194),v=e(5112),y=e(7392),g=v("isConcatSpreadable"),b=y>=51||!o((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),h=function(t){if(!a(t))return!1;var r=t[g];return void 0!==r?!!r:i(t)};n({target:"Array",proto:!0,arity:1,forced:!b||!l("concat")},{concat:function(t){var r,e,n,o,i,a=u(this),l=p(a,0),v=0;for(r=-1,n=arguments.length;r<n;r++)if(h(i=-1===r?a:arguments[r]))for(o=c(i),s(v+o),e=0;e<o;e++,v++)e in i&&f(l,v,i[e]);else s(v+1),f(l,v++,i);return l.length=v,l}})},6992:(t,r,e)=>{"use strict";var n=e(5656),o=e(1223),i=e(7497),a=e(9909),u=e(3070).f,c=e(1656),s=e(6178),f=e(1913),p=e(9781),l="Array Iterator",v=a.set,y=a.getterFor(l);t.exports=c(Array,"Array",(function(t,r){v(this,{type:l,target:n(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,s(void 0,!0)):s("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&p&&"values"!==g.name)try{u(g,"name",{value:"values"})}catch(t){}},4855:(t,r,e)=>{"use strict";var n=e(614),o=e(111),i=e(3070),a=e(9518),u=e(5112),c=e(6339),s=u("hasInstance"),f=Function.prototype;s in f||i.f(f,s,{value:c((function(t){if(!n(this)||!o(t))return!1;var r=this.prototype;if(!o(r))return t instanceof this;for(;t=a(t);)if(r===t)return!0;return!1}),s)})},8862:(t,r,e)=>{var n=e(2109),o=e(5005),i=e(2104),a=e(6916),u=e(1702),c=e(7293),s=e(614),f=e(2190),p=e(206),l=e(8044),v=e(6293),y=String,g=o("JSON","stringify"),b=u(/./.exec),h=u("".charAt),d=u("".charCodeAt),m=u("".replace),x=u(1..toString),S=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,j=!v||c((function(){var t=o("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),P=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),A=function(t,r){var e=p(arguments),n=l(r);if(s(n)||void 0!==t&&!f(t))return e[1]=function(t,r){if(s(n)&&(r=a(n,this,y(t),r)),!f(r))return r},i(g,null,e)},T=function(t,r,e){var n=h(e,r-1),o=h(e,r+1);return b(O,t)&&!b(w,o)||b(w,t)&&!b(O,n)?"\\u"+x(d(t,0),16):t};g&&n({target:"JSON",stat:!0,arity:3,forced:j||P},{stringify:function(t,r,e){var n=p(arguments),o=i(j?A:g,null,n);return P&&"string"==typeof o?m(o,S,T):o}})},3706:(t,r,e)=>{var n=e(7854);e(8003)(n.JSON,"JSON",!0)},408:(t,r,e)=>{e(8003)(Math,"Math",!0)},9660:(t,r,e)=>{var n=e(2109),o=e(6293),i=e(7293),a=e(5181),u=e(7908);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var r=a.f;return r?r(u(t)):[]}})},1539:(t,r,e)=>{var n=e(1694),o=e(8052),i=e(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},1299:(t,r,e)=>{var n=e(2109),o=e(7854),i=e(8003);n({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},8783:(t,r,e)=>{"use strict";var n=e(8710).charAt,o=e(1340),i=e(9909),a=e(1656),u=e(6178),c="String Iterator",s=i.set,f=i.getterFor(c);a(String,"String",(function(t){s(this,{type:c,string:o(t),index:0})}),(function(){var t,r=f(this),e=r.string,o=r.index;return o>=e.length?u(void 0,!0):(t=n(e,o),r.index+=t.length,u(t,!1))}))},2443:(t,r,e)=>{e(6800)("asyncIterator")},4032:(t,r,e)=>{"use strict";var n=e(2109),o=e(7854),i=e(6916),a=e(1702),u=e(1913),c=e(9781),s=e(6293),f=e(7293),p=e(2597),l=e(7976),v=e(9670),y=e(5656),g=e(4948),b=e(1340),h=e(9114),d=e(30),m=e(1956),x=e(8006),S=e(1156),O=e(5181),w=e(1236),j=e(3070),P=e(6048),A=e(5296),T=e(8052),L=e(7045),E=e(2309),F=e(6200),I=e(3501),M=e(9711),C=e(5112),R=e(6061),_=e(6800),D=e(6532),k=e(8003),N=e(9909),G=e(2092).forEach,z=F("hidden"),B="Symbol",V="prototype",H=N.set,U=N.getterFor(B),W=Object[V],$=o.Symbol,J=$&&$[V],Y=o.TypeError,q=o.QObject,X=w.f,K=j.f,Q=S.f,Z=A.f,tt=a([].push),rt=E("symbols"),et=E("op-symbols"),nt=E("wks"),ot=!q||!q[V]||!q[V].findChild,it=c&&f((function(){return 7!=d(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=X(W,r);n&&delete W[r],K(t,r,e),n&&t!==W&&K(W,r,n)}:K,at=function(t,r){var e=rt[t]=d(J);return H(e,{type:B,tag:t,description:r}),c||(e.description=r),e},ut=function(t,r,e){t===W&&ut(et,r,e),v(t);var n=g(r);return v(e),p(rt,n)?(e.enumerable?(p(t,z)&&t[z][n]&&(t[z][n]=!1),e=d(e,{enumerable:h(0,!1)})):(p(t,z)||K(t,z,h(1,{})),t[z][n]=!0),it(t,n,e)):K(t,n,e)},ct=function(t,r){v(t);var e=y(r),n=m(e).concat(lt(e));return G(n,(function(r){c&&!i(st,e,r)||ut(t,r,e[r])})),t},st=function(t){var r=g(t),e=i(Z,this,r);return!(this===W&&p(rt,r)&&!p(et,r))&&(!(e||!p(this,r)||!p(rt,r)||p(this,z)&&this[z][r])||e)},ft=function(t,r){var e=y(t),n=g(r);if(e!==W||!p(rt,n)||p(et,n)){var o=X(e,n);return!o||!p(rt,n)||p(e,z)&&e[z][n]||(o.enumerable=!0),o}},pt=function(t){var r=Q(y(t)),e=[];return G(r,(function(t){p(rt,t)||p(I,t)||tt(e,t)})),e},lt=function(t){var r=t===W,e=Q(r?et:y(t)),n=[];return G(e,(function(t){!p(rt,t)||r&&!p(W,t)||tt(n,rt[t])})),n};s||(T(J=($=function(){if(l(J,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,r=M(t),e=function(t){this===W&&i(e,et,t),p(this,z)&&p(this[z],r)&&(this[z][r]=!1),it(this,r,h(1,t))};return c&&ot&&it(W,r,{configurable:!0,set:e}),at(r,t)})[V],"toString",(function(){return U(this).tag})),T($,"withoutSetter",(function(t){return at(M(t),t)})),A.f=st,j.f=ut,P.f=ct,w.f=ft,x.f=S.f=pt,O.f=lt,R.f=function(t){return at(C(t),t)},c&&(L(J,"description",{configurable:!0,get:function(){return U(this).description}}),u||T(W,"propertyIsEnumerable",st,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:$}),G(m(nt),(function(t){_(t)})),n({target:B,stat:!0,forced:!s},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,r){return void 0===r?d(t):ct(d(t),r)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:pt}),D(),k($,B),I[z]=!0},1817:(t,r,e)=>{"use strict";var n=e(2109),o=e(9781),i=e(7854),a=e(1702),u=e(2597),c=e(614),s=e(7976),f=e(1340),p=e(7045),l=e(9920),v=i.Symbol,y=v&&v.prototype;if(o&&c(v)&&(!("description"in y)||void 0!==v().description)){var g={},b=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),r=s(y,this)?new v(t):void 0===t?v():v(t);return""===t&&(g[r]=!0),r};l(b,v),b.prototype=y,y.constructor=b;var h="Symbol(test)"==String(v("test")),d=a(y.valueOf),m=a(y.toString),x=/^Symbol\((.*)\)[^)]+$/,S=a("".replace),O=a("".slice);p(y,"description",{configurable:!0,get:function(){var t=d(this);if(u(g,t))return"";var r=m(t),e=h?O(r,7,-1):S(r,x,"$1");return""===e?void 0:e}}),n({global:!0,constructor:!0,forced:!0},{Symbol:b})}},763:(t,r,e)=>{var n=e(2109),o=e(5005),i=e(2597),a=e(1340),u=e(2309),c=e(2015),s=u("string-to-symbol-registry"),f=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var r=a(t);if(i(s,r))return s[r];var e=o("Symbol")(r);return s[r]=e,f[e]=r,e}})},2401:(t,r,e)=>{e(6800)("hasInstance")},8722:(t,r,e)=>{e(6800)("isConcatSpreadable")},2165:(t,r,e)=>{e(6800)("iterator")},2526:(t,r,e)=>{e(4032),e(763),e(6620),e(8862),e(9660)},6620:(t,r,e)=>{var n=e(2109),o=e(2597),i=e(2190),a=e(6330),u=e(2309),c=e(2015),s=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(s,t))return s[t]}})},6066:(t,r,e)=>{e(6800)("matchAll")},9007:(t,r,e)=>{e(6800)("match")},3510:(t,r,e)=>{e(6800)("replace")},1840:(t,r,e)=>{e(6800)("search")},6982:(t,r,e)=>{e(6800)("species")},2159:(t,r,e)=>{e(6800)("split")},6649:(t,r,e)=>{var n=e(6800),o=e(6532);n("toPrimitive"),o()},9341:(t,r,e)=>{var n=e(5005),o=e(6800),i=e(8003);o("toStringTag"),i(n("Symbol"),"Symbol")},543:(t,r,e)=>{e(6800)("unscopables")},3948:(t,r,e)=>{var n=e(7854),o=e(8324),i=e(8509),a=e(6992),u=e(8880),c=e(5112),s=c("iterator"),f=c("toStringTag"),p=a.values,l=function(t,r){if(t){if(t[s]!==p)try{u(t,s,p)}catch(r){t[s]=p}if(t[f]||u(t,f,r),o[r])for(var e in a)if(t[e]!==a[e])try{u(t,e,a[e])}catch(r){t[e]=a[e]}}};for(var v in o)l(n[v]&&n[v].prototype,v);l(i,"DOMTokenList")},618:(t,r,e)=>{var n=e(5483);t.exports=n},5914:(t,r,e)=>{var n=e(9266);e(3948),t.exports=n},8970:(t,r,e)=>{var n=e(5834);e(3948),t.exports=n}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n](i,i.exports,e),i.exports}(()=>{"use strict";e(5914),e(8970),e(618)})()})();
'use strict';
/**

@@ -20,22 +21,17 @@ * @file

*/
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var $as = require('futoin-asyncsteps');
var SYM_EVENT_EMITTER = Symbol('FutoIn Event Emitter');
var ON_PREFIX = '_evt_';
var ONCE_PREFIX = '_evtonce_';
/**

@@ -46,13 +42,9 @@ * Asynchronous Event Emitter.

*/
var EventEmitter = /*#__PURE__*/function (_Symbol$hasInstance) {
function EventEmitter(allowed_events, max_listeners) {
_classCallCheck(this, EventEmitter);
this._max = max_listeners;
this._scheduleCall = $as.ActiveAsyncTool.callImmediate;
var _iterator = _createForOfIteratorHelper(allowed_events),
_step;
_step;
try {

@@ -70,2 +62,3 @@ for (_iterator.s(); !(_step = _iterator.n()).done;) {

}
/**

@@ -76,4 +69,2 @@ * Attach event handler.

*/
_createClass(EventEmitter, [{

@@ -84,3 +75,2 @@ key: "on",

var hlist = this["".concat(ON_PREFIX).concat(evt)];
if (hlist.length === this._max) {

@@ -90,3 +80,2 @@ // eslint-disable-next-line no-console

}
hlist.push(handler);

@@ -97,2 +86,3 @@ } catch (e) {

}
/**

@@ -103,3 +93,2 @@ * Attach once-only event handler.

*/
}, {

@@ -110,3 +99,2 @@ key: "once",

var hlist = this["".concat(ONCE_PREFIX).concat(evt)];
if (hlist.length === this._max) {

@@ -116,3 +104,2 @@ // eslint-disable-next-line no-console

}
hlist.push(handler);

@@ -123,2 +110,3 @@ } catch (e) {

}
/**

@@ -129,3 +117,2 @@ * Remove event handler.

*/
}, {

@@ -147,2 +134,3 @@ key: "off",

}
/**

@@ -152,3 +140,2 @@ * Emit async event.

*/
}, {

@@ -158,23 +145,17 @@ key: "emit",

var _this = this;
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
var handlers = this["".concat(ON_PREFIX).concat(evt)];
var once_handlers = this["".concat(ONCE_PREFIX).concat(evt)];
if (handlers === undefined) {
throw new Error("Unknown event: ".concat(evt));
}
var call_list = [];
var _iterator2 = _createForOfIteratorHelper(handlers),
_step2;
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var _h2 = _step2.value;
call_list.push(_h2);
var _h = _step2.value;
call_list.push(_h);
}

@@ -186,7 +167,5 @@ } catch (err) {

}
if (once_handlers.length) {
var _iterator3 = _createForOfIteratorHelper(once_handlers),
_step3;
_step3;
try {

@@ -202,28 +181,19 @@ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {

}
this["".concat(ONCE_PREFIX).concat(evt)] = [];
}
this._scheduleCall(function () {
var _loop = function _loop() {
var h = _call_list[_i];
try {
h.apply(void 0, args);
} catch (e) {
// let runtime deal with exceptions
_this._scheduleCall(function () {
throw e;
});
}
};
// ---
var _iterator4 = _createForOfIteratorHelper(call_list),
_step4;
try {
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
var _h = _step4.value;
try {
_h.apply(void 0, args);
} catch (e) {
// let runtime deal with exceptions
_this._scheduleCall(function () {
throw e;
});
}
}
} catch (err) {
_iterator4.e(err);
} finally {
_iterator4.f();
for (var _i = 0, _call_list = call_list; _i < _call_list.length; _i++) {
_loop();
}

@@ -242,2 +212,3 @@ });

}
/**

@@ -249,3 +220,2 @@ * Attach event emitter to any instance

*/
}, {

@@ -255,16 +225,11 @@ key: "attach",

var _Object$definePropert;
var max_listeners = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 8;
var old_ee = instance[SYM_EVENT_EMITTER];
if (old_ee !== undefined) {
old_ee._max = max_listeners;
var _iterator5 = _createForOfIteratorHelper(allowed_events),
_step5;
var _iterator4 = _createForOfIteratorHelper(allowed_events),
_step4;
try {
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
var evt = _step5.value;
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
var evt = _step4.value;
if ("".concat(ON_PREFIX).concat(evt) in old_ee) {

@@ -278,10 +243,8 @@ throw new Error("Event \"".concat(evt, "\" has been already registered!"));

} catch (err) {
_iterator5.e(err);
_iterator4.e(err);
} finally {
_iterator5.f();
_iterator4.f();
}
return;
}
var ee = new EventEmitter(allowed_events, max_listeners);

@@ -322,3 +285,2 @@ Object.defineProperties(instance, (_Object$definePropert = {}, _defineProperty(_Object$definePropert, SYM_EVENT_EMITTER, {

}
return ee.emit.apply(ee, [evt].concat(args));

@@ -328,2 +290,3 @@ }

}
/**

@@ -334,3 +297,2 @@ * Dynamically update max listener count

*/
}, {

@@ -342,7 +304,5 @@ key: "setMaxListeners",

}]);
return EventEmitter;
}(Symbol.hasInstance);
module.exports = EventEmitter;
//# sourceMappingURL=EventEmitter.js.map
'use strict';
/**

@@ -20,4 +21,4 @@ * @file

*/
var EventEmitter = require('../EventEmitter');
var EventEmitter = require('../EventEmitter');
/**

@@ -27,11 +28,9 @@ * Attach event emitter properties to object. Call it in c-tor.

*/
var $asyncevent = EventEmitter.attach;
var $asyncevent = EventEmitter.attach;
/**
* Reference to EventEmitter class
*/
$asyncevent.EventEmitter = EventEmitter;
module.exports = $asyncevent;
//# sourceMappingURL=asyncevent.js.map

@@ -23,2 +23,3 @@ "use strict";

*/
(function (window) {

@@ -28,5 +29,5 @@ 'use strict';

var futoin = window.FutoIn || window.futoin || {};
if (typeof futoin.$asyncevent === 'undefined') {
var $asyncevent = require('./asyncevent.js');
/**

@@ -37,5 +38,4 @@ * **window.$asyncevent** - browser-only reference to futoin-asyncsteps module

*/
window.$asyncevent = $asyncevent;
window.$asyncevent = $asyncevent;
/**

@@ -46,4 +46,4 @@ * **window.FutoIn.$asyncevent** - browser-only reference to futoin-asyncsteps module

*/
futoin.$asyncevent = $asyncevent;
futoin.$asyncevent = $asyncevent;
/**

@@ -54,3 +54,2 @@ * **window.futoin.EventEmitter** - browser-only reference to futoin-asyncsteps.EventEmitter

*/
futoin.EventEmitter = $asyncevent.EventEmitter;

@@ -60,3 +59,2 @@ window.FutoIn = futoin;

}
if (typeof module !== 'undefined') {

@@ -63,0 +61,0 @@ module.exports = futoin.$asyncevent;

'use strict';
/**

@@ -20,8 +21,5 @@ * @file

*/
require('core-js/stable/symbol');
require('core-js/stable/symbol/iterator');
require('core-js/stable/symbol/has-instance');
//# sourceMappingURL=polyfill.js.map

@@ -1,10 +0,10 @@

'use strict'; // ensure it works with frozen one
'use strict';
Object.freeze(Object.prototype); //
// ensure it works with frozen one
Object.freeze(Object.prototype);
//
var $asyncevent = typeof window !== 'undefined' ? require('futoin-asyncevent') : module.require('../lib/asyncevent');
var _require = require('chai'),
expect = _require.expect;
expect = _require.expect;
var SYM_EVENT_EMITTER = $asyncevent.EventEmitter.SYM_EVENT_EMITTER;

@@ -75,15 +75,8 @@ describe('EventEmitter', function () {

$asyncevent(o, ['a', 'b', 'c']);
var a1 = function a1() {};
var a2 = function a2() {};
var b1 = function b1() {};
var a1o = function a1o() {};
var b1o = function b1o() {};
var b2o = function b2o() {};
o.on('a', a1);

@@ -100,4 +93,5 @@ o.on('a', a2);

expect(o[SYM_EVENT_EMITTER]._evtonce_b.length).to.equal(2);
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0); // ---
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0);
// ---
o.off('a');

@@ -109,4 +103,5 @@ expect(o[SYM_EVENT_EMITTER]._evt_a.length).to.equal(2);

expect(o[SYM_EVENT_EMITTER]._evtonce_b.length).to.equal(2);
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0); // ---
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0);
// ---
o.off('a', a1);

@@ -118,4 +113,5 @@ expect(o[SYM_EVENT_EMITTER]._evt_a.length).to.equal(1);

expect(o[SYM_EVENT_EMITTER]._evtonce_b.length).to.equal(2);
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0); // ---
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0);
// ---
o.off('a', a1);

@@ -127,4 +123,5 @@ expect(o[SYM_EVENT_EMITTER]._evt_a.length).to.equal(1);

expect(o[SYM_EVENT_EMITTER]._evtonce_b.length).to.equal(2);
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0); // ---
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0);
// ---
o.off('a', a2);

@@ -136,4 +133,5 @@ expect(o[SYM_EVENT_EMITTER]._evt_a.length).to.equal(0);

expect(o[SYM_EVENT_EMITTER]._evtonce_b.length).to.equal(2);
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0); // ---
expect(o[SYM_EVENT_EMITTER]._evtonce_c.length).to.equal(0);
// ---
o.off('a', a1o);

@@ -180,4 +178,5 @@ expect(o[SYM_EVENT_EMITTER]._evt_a.length).to.equal(0);

o.emit('a');
o.emit('b'); // ---
o.emit('b');
// ---
o.on('a', function (a, b, c, d) {

@@ -192,3 +191,2 @@ try {

}
spies.a += 1;

@@ -205,4 +203,5 @@ });

});
o.emit('a', 'A', 1, true); // ---
o.emit('a', 'A', 1, true);
// ---
o.once('a', function () {

@@ -236,3 +235,2 @@ try {

spies.a += 1;
if (spies.a === EVT_NUM) {

@@ -242,7 +240,5 @@ done();

});
for (var i = 0; i < EVT_NUM; ++i) {
o.emit('a', 'A', 1, true);
}
expect(spies.a).to.equal(0);

@@ -256,3 +252,2 @@ });

var bak = console.warn;
console.warn = function (m) {

@@ -262,3 +257,2 @@ o.called += 1;

};
$asyncevent.EventEmitter.setMaxListeners(o, 1);

@@ -281,3 +275,2 @@ o.on('a', function () {});

});
if (typeof window === 'undefined') {

@@ -295,3 +288,2 @@ it("should support instanceof", function () {

});
if (typeof window !== 'undefined') {

@@ -298,0 +290,0 @@ describe('Globals', function () {

{
"name": "futoin-asyncevent",
"version": "2.3.6",
"version": "2.3.7",
"description": "FutoIn AsyncEvent - FTN15 compliant event emitter",

@@ -41,13 +41,13 @@ "main": "lib/asyncevent.js",

"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/plugin-transform-object-assign": "^7.14.5",
"@babel/preset-env": "^7.15.0",
"babel-loader": "^8.2.2",
"chai": "^4.3.4",
"core-js": "^3.16.1",
"eslint": "^7.32.0",
"futoin-asyncsteps": "^2.5.3",
"grunt": "^1.4.1",
"@babel/core": "^7.21.3",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"babel-loader": "^9.1.2",
"chai": "^4.3.7",
"core-js": "^3.29.1",
"eslint": "^8.36.0",
"futoin-asyncsteps": "^2.5.4",
"grunt": "^1.6.1",
"grunt-babel": "^8.0.0",
"grunt-eslint": "^23.0.0",
"grunt-eslint": "^24.0.1",
"grunt-jsdoc-to-markdown": "^6.0.0",

@@ -57,9 +57,9 @@ "grunt-karma": "^4.0.2",

"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.3",
"karma": "^6.3.4",
"karma-firefox-launcher": "^2.1.1",
"grunt-webpack": "^5.0.0",
"karma": "^6.4.1",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"mocha": "^9.0.3",
"webpack": "^5.50.0"
"mocha": "^10.2.0",
"webpack": "^5.76.3"
},

@@ -66,0 +66,0 @@ "peerDependencies": {

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc