You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.7 MiB
1 line
1.7 MiB
5 years ago
|
webpackJsonp([49],{1019:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return f});var o,a=n(1265),i=n(2422),d=n(914),l=n(2111);!function(e){var t={dispose:function(){}};function o(r){return function(t,n,e){void 0===n&&(n=null);var o,i=!1;return o=r(function(e){if(!i)return o?o.dispose():i=!0,t.call(n,e)},null,e),i&&o.dispose(),o}}function i(o,i){return s(function(t,n,e){return void 0===n&&(n=null),o(function(e){return t.call(n,i(e))},null,e)})}function n(o,i){return s(function(t,n,e){return void 0===n&&(n=null),o(function(e){i(e),t.call(n,e)},null,e)})}function r(o,i){return s(function(t,n,e){return void 0===n&&(n=null),o(function(e){return i(e)&&t.call(n,e)},null,e)})}function a(e,t,n){var o=n;return i(e,function(e){return o=t(o,e)})}function s(e){var t,n=new h({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function l(e){var n,o=!0;return r(e,function(e){var t=o||e!==n;return o=!1,n=e,t})}e.None=function(){return t},e.once=o,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,o){return void 0===n&&(n=null),Object(d.c)(e.map(function(e){return e(function(e){return t.call(n,e)},null,o)}))}},e.reduce=a,e.snapshot=s,e.debounce=function(e,t,n,o,i){var r;void 0===n&&(n=100),void 0===o&&(o=!1);var a=void 0,s=void 0,l=0,u=new h({leakWarningThreshold:i,onFirstListenerAdd:function(){r=e(function(e){l++,a=t(a,e),o&&!s&&u.fire(a),clearTimeout(s),s=setTimeout(function(){var e=a;s=a=void 0,(!o||1<l)&&u.fire(e),l=0},n)})},onLastListenerRemove:function(){r.dispose()}});return u.event},e.stopwatch=function(e){var t=(new Date).getTime();return i(o(e),function(e){return(new Date).getTime()-t})},e.latch=l,e.buffer=function(e,t,n){function o(){i&&i.forEach(function(e){return a.fire(e)}),i=null}void 0===t&&(t=!1),void 0===n&&(n=[]);var i=n.slice(),r=e(function(e){i?i.push(e):a.fire(e)}),a=new h({onFirstListenerAdd:function(){r=r||e(function(e){return a.fire(e)})},onFirstListenerDidAdd:function(){i&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return a.event},e.echo=function(e,o,i){function r(t,n){return i.forEach(function(e){return t.call(n,e)})}void 0===o&&(o=!1),void 0===i&&(i=[]),i=i.slice(),e(function(e){i.push(e),t.fire(e)});var t=new h({onListenerDidAdd:function(e,t,n){o?setTimeout(function(){return r(t,n)}):r(t,n)}});return t.event};var u=(c.prototype.map=function(e){return new c(i(this.event,e))},c.prototype.forEach=function(e){return new c(n(this.event,e))},c.prototype.filter=function(e){return new c(r(this.event,e))},c.prototype.reduce=function(e,t){return new c(a(this.event,e,t))},c.prototype.latch=function(){return new c(l(this.event))},c.prototype.on=function(e,t,n){return this.event(e,t,n)},c.prototype.once=function(e,t,n){return o(this.event)(e,t,n)},c);function c(e){this.event=e}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,n){function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))}void 0===n&&(n=function(e){return e});var i=new h({onFirstListenerAdd:function(){return e.on(t,o)},onLastListenerRemove:function(){return e.removeListener(t,o)}});return i.event},e.fromPromise=function(e){var t=new h,n=!1;return e.then(void 0,function(){return null}).then(function(){n?t.fire(void 0):setTimeout(function(){return t.fire(void 0)},0)}),n=!0,t.event},e.toPromise=function(t){return new Promise(function(e){return o(t)(e)})}}(o=o||{});r.prototype.dispose=function(){this._stacks&&this._stacks.clear()},r.prototype.check=function(e){var t=this,n=-1;if("number"==typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var o=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(o)||0;if(this._stacks.set(o,i+1),this._warnCountdown-=1,this._warnCountdown<=0){var r;this._warnCountdown=.5*n;var a=0;this._stacks.forEac
|