2023-04-28 12:03:53 +02:00
|
|
|
import { e as commonjsGlobal } from "./_page-3b75f931.js";
|
2023-02-27 07:03:31 +01:00
|
|
|
var eventsExports = {};
|
|
|
|
var events = {
|
|
|
|
get exports() {
|
|
|
|
return eventsExports;
|
|
|
|
},
|
|
|
|
set exports(v) {
|
|
|
|
eventsExports = v;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
var R = typeof Reflect === "object" ? Reflect : null;
|
|
|
|
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
|
|
return Function.prototype.apply.call(target, receiver, args);
|
|
|
|
};
|
|
|
|
var ReflectOwnKeys;
|
|
|
|
if (R && typeof R.ownKeys === "function") {
|
|
|
|
ReflectOwnKeys = R.ownKeys;
|
|
|
|
} else if (Object.getOwnPropertySymbols) {
|
|
|
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
|
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
|
|
};
|
|
|
|
} else {
|
|
|
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
|
|
return Object.getOwnPropertyNames(target);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
function ProcessEmitWarning(warning) {
|
|
|
|
if (console && console.warn)
|
|
|
|
console.warn(warning);
|
|
|
|
}
|
|
|
|
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
|
|
return value !== value;
|
|
|
|
};
|
|
|
|
function EventEmitter() {
|
|
|
|
EventEmitter.init.call(this);
|
|
|
|
}
|
|
|
|
events.exports = EventEmitter;
|
|
|
|
eventsExports.once = once2;
|
|
|
|
EventEmitter.EventEmitter = EventEmitter;
|
|
|
|
EventEmitter.prototype._events = void 0;
|
|
|
|
EventEmitter.prototype._eventsCount = 0;
|
|
|
|
EventEmitter.prototype._maxListeners = void 0;
|
|
|
|
var defaultMaxListeners = 10;
|
|
|
|
function checkListener(listener) {
|
|
|
|
if (typeof listener !== "function") {
|
|
|
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
|
|
enumerable: true,
|
|
|
|
get: function() {
|
|
|
|
return defaultMaxListeners;
|
|
|
|
},
|
|
|
|
set: function(arg) {
|
|
|
|
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
|
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
|
|
}
|
|
|
|
defaultMaxListeners = arg;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
EventEmitter.init = function() {
|
|
|
|
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
|
|
this._events = /* @__PURE__ */ Object.create(null);
|
|
|
|
this._eventsCount = 0;
|
|
|
|
}
|
|
|
|
this._maxListeners = this._maxListeners || void 0;
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
|
|
if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
|
|
|
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
|
|
|
|
}
|
|
|
|
this._maxListeners = n;
|
|
|
|
return this;
|
|
|
|
};
|
|
|
|
function _getMaxListeners(that) {
|
|
|
|
if (that._maxListeners === void 0)
|
|
|
|
return EventEmitter.defaultMaxListeners;
|
|
|
|
return that._maxListeners;
|
|
|
|
}
|
|
|
|
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
|
|
return _getMaxListeners(this);
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.emit = function emit(type) {
|
|
|
|
var args = [];
|
|
|
|
for (var i = 1; i < arguments.length; i++)
|
|
|
|
args.push(arguments[i]);
|
|
|
|
var doError = type === "error";
|
|
|
|
var events2 = this._events;
|
|
|
|
if (events2 !== void 0)
|
|
|
|
doError = doError && events2.error === void 0;
|
|
|
|
else if (!doError)
|
|
|
|
return false;
|
|
|
|
if (doError) {
|
|
|
|
var er;
|
|
|
|
if (args.length > 0)
|
|
|
|
er = args[0];
|
|
|
|
if (er instanceof Error) {
|
|
|
|
throw er;
|
|
|
|
}
|
|
|
|
var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
|
|
err.context = er;
|
|
|
|
throw err;
|
|
|
|
}
|
|
|
|
var handler = events2[type];
|
|
|
|
if (handler === void 0)
|
|
|
|
return false;
|
|
|
|
if (typeof handler === "function") {
|
|
|
|
ReflectApply(handler, this, args);
|
|
|
|
} else {
|
|
|
|
var len = handler.length;
|
|
|
|
var listeners2 = arrayClone(handler, len);
|
|
|
|
for (var i = 0; i < len; ++i)
|
|
|
|
ReflectApply(listeners2[i], this, args);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
};
|
|
|
|
function _addListener(target, type, listener, prepend) {
|
|
|
|
var m;
|
|
|
|
var events2;
|
|
|
|
var existing;
|
|
|
|
checkListener(listener);
|
|
|
|
events2 = target._events;
|
|
|
|
if (events2 === void 0) {
|
|
|
|
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
|
|
|
target._eventsCount = 0;
|
|
|
|
} else {
|
|
|
|
if (events2.newListener !== void 0) {
|
|
|
|
target.emit(
|
|
|
|
"newListener",
|
|
|
|
type,
|
|
|
|
listener.listener ? listener.listener : listener
|
|
|
|
);
|
|
|
|
events2 = target._events;
|
|
|
|
}
|
|
|
|
existing = events2[type];
|
|
|
|
}
|
|
|
|
if (existing === void 0) {
|
|
|
|
existing = events2[type] = listener;
|
|
|
|
++target._eventsCount;
|
|
|
|
} else {
|
|
|
|
if (typeof existing === "function") {
|
|
|
|
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
|
|
|
|
} else if (prepend) {
|
|
|
|
existing.unshift(listener);
|
|
|
|
} else {
|
|
|
|
existing.push(listener);
|
|
|
|
}
|
|
|
|
m = _getMaxListeners(target);
|
|
|
|
if (m > 0 && existing.length > m && !existing.warned) {
|
|
|
|
existing.warned = true;
|
|
|
|
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
|
|
w.name = "MaxListenersExceededWarning";
|
|
|
|
w.emitter = target;
|
|
|
|
w.type = type;
|
|
|
|
w.count = existing.length;
|
|
|
|
ProcessEmitWarning(w);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return target;
|
|
|
|
}
|
|
|
|
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
|
|
return _addListener(this, type, listener, false);
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
|
|
EventEmitter.prototype.prependListener = function prependListener(type, listener) {
|
|
|
|
return _addListener(this, type, listener, true);
|
|
|
|
};
|
|
|
|
function onceWrapper() {
|
|
|
|
if (!this.fired) {
|
|
|
|
this.target.removeListener(this.type, this.wrapFn);
|
|
|
|
this.fired = true;
|
|
|
|
if (arguments.length === 0)
|
|
|
|
return this.listener.call(this.target);
|
|
|
|
return this.listener.apply(this.target, arguments);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _onceWrap(target, type, listener) {
|
|
|
|
var state = { fired: false, wrapFn: void 0, target, type, listener };
|
|
|
|
var wrapped = onceWrapper.bind(state);
|
|
|
|
wrapped.listener = listener;
|
|
|
|
state.wrapFn = wrapped;
|
|
|
|
return wrapped;
|
|
|
|
}
|
|
|
|
EventEmitter.prototype.once = function once(type, listener) {
|
|
|
|
checkListener(listener);
|
|
|
|
this.on(type, _onceWrap(this, type, listener));
|
|
|
|
return this;
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
|
|
|
|
checkListener(listener);
|
|
|
|
this.prependListener(type, _onceWrap(this, type, listener));
|
|
|
|
return this;
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
|
|
|
var list, events2, position, i, originalListener;
|
|
|
|
checkListener(listener);
|
|
|
|
events2 = this._events;
|
|
|
|
if (events2 === void 0)
|
|
|
|
return this;
|
|
|
|
list = events2[type];
|
|
|
|
if (list === void 0)
|
|
|
|
return this;
|
|
|
|
if (list === listener || list.listener === listener) {
|
|
|
|
if (--this._eventsCount === 0)
|
|
|
|
this._events = /* @__PURE__ */ Object.create(null);
|
|
|
|
else {
|
|
|
|
delete events2[type];
|
|
|
|
if (events2.removeListener)
|
|
|
|
this.emit("removeListener", type, list.listener || listener);
|
|
|
|
}
|
|
|
|
} else if (typeof list !== "function") {
|
|
|
|
position = -1;
|
|
|
|
for (i = list.length - 1; i >= 0; i--) {
|
|
|
|
if (list[i] === listener || list[i].listener === listener) {
|
|
|
|
originalListener = list[i].listener;
|
|
|
|
position = i;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (position < 0)
|
|
|
|
return this;
|
|
|
|
if (position === 0)
|
|
|
|
list.shift();
|
|
|
|
else {
|
|
|
|
spliceOne(list, position);
|
|
|
|
}
|
|
|
|
if (list.length === 1)
|
|
|
|
events2[type] = list[0];
|
|
|
|
if (events2.removeListener !== void 0)
|
|
|
|
this.emit("removeListener", type, originalListener || listener);
|
|
|
|
}
|
|
|
|
return this;
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
|
|
EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
|
|
|
|
var listeners2, events2, i;
|
|
|
|
events2 = this._events;
|
|
|
|
if (events2 === void 0)
|
|
|
|
return this;
|
|
|
|
if (events2.removeListener === void 0) {
|
|
|
|
if (arguments.length === 0) {
|
|
|
|
this._events = /* @__PURE__ */ Object.create(null);
|
|
|
|
this._eventsCount = 0;
|
|
|
|
} else if (events2[type] !== void 0) {
|
|
|
|
if (--this._eventsCount === 0)
|
|
|
|
this._events = /* @__PURE__ */ Object.create(null);
|
|
|
|
else
|
|
|
|
delete events2[type];
|
|
|
|
}
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
if (arguments.length === 0) {
|
|
|
|
var keys = Object.keys(events2);
|
|
|
|
var key;
|
|
|
|
for (i = 0; i < keys.length; ++i) {
|
|
|
|
key = keys[i];
|
|
|
|
if (key === "removeListener")
|
|
|
|
continue;
|
|
|
|
this.removeAllListeners(key);
|
|
|
|
}
|
|
|
|
this.removeAllListeners("removeListener");
|
|
|
|
this._events = /* @__PURE__ */ Object.create(null);
|
|
|
|
this._eventsCount = 0;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
listeners2 = events2[type];
|
|
|
|
if (typeof listeners2 === "function") {
|
|
|
|
this.removeListener(type, listeners2);
|
|
|
|
} else if (listeners2 !== void 0) {
|
|
|
|
for (i = listeners2.length - 1; i >= 0; i--) {
|
|
|
|
this.removeListener(type, listeners2[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return this;
|
|
|
|
};
|
|
|
|
function _listeners(target, type, unwrap) {
|
|
|
|
var events2 = target._events;
|
|
|
|
if (events2 === void 0)
|
|
|
|
return [];
|
|
|
|
var evlistener = events2[type];
|
|
|
|
if (evlistener === void 0)
|
|
|
|
return [];
|
|
|
|
if (typeof evlistener === "function")
|
|
|
|
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
|
|
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
|
|
}
|
|
|
|
EventEmitter.prototype.listeners = function listeners(type) {
|
|
|
|
return _listeners(this, type, true);
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
|
|
return _listeners(this, type, false);
|
|
|
|
};
|
|
|
|
EventEmitter.listenerCount = function(emitter, type) {
|
|
|
|
if (typeof emitter.listenerCount === "function") {
|
|
|
|
return emitter.listenerCount(type);
|
|
|
|
} else {
|
|
|
|
return listenerCount.call(emitter, type);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
EventEmitter.prototype.listenerCount = listenerCount;
|
|
|
|
function listenerCount(type) {
|
|
|
|
var events2 = this._events;
|
|
|
|
if (events2 !== void 0) {
|
|
|
|
var evlistener = events2[type];
|
|
|
|
if (typeof evlistener === "function") {
|
|
|
|
return 1;
|
|
|
|
} else if (evlistener !== void 0) {
|
|
|
|
return evlistener.length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EventEmitter.prototype.eventNames = function eventNames() {
|
|
|
|
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
|
|
};
|
|
|
|
function arrayClone(arr, n) {
|
|
|
|
var copy = new Array(n);
|
|
|
|
for (var i = 0; i < n; ++i)
|
|
|
|
copy[i] = arr[i];
|
|
|
|
return copy;
|
|
|
|
}
|
|
|
|
function spliceOne(list, index) {
|
|
|
|
for (; index + 1 < list.length; index++)
|
|
|
|
list[index] = list[index + 1];
|
|
|
|
list.pop();
|
|
|
|
}
|
|
|
|
function unwrapListeners(arr) {
|
|
|
|
var ret = new Array(arr.length);
|
|
|
|
for (var i = 0; i < ret.length; ++i) {
|
|
|
|
ret[i] = arr[i].listener || arr[i];
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
function once2(emitter, name) {
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
|
function errorListener(err) {
|
|
|
|
emitter.removeListener(name, resolver);
|
|
|
|
reject(err);
|
|
|
|
}
|
|
|
|
function resolver() {
|
|
|
|
if (typeof emitter.removeListener === "function") {
|
|
|
|
emitter.removeListener("error", errorListener);
|
|
|
|
}
|
|
|
|
resolve([].slice.call(arguments));
|
|
|
|
}
|
|
|
|
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
|
|
if (name !== "error") {
|
|
|
|
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
|
|
if (typeof emitter.on === "function") {
|
|
|
|
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
|
|
if (typeof emitter.on === "function") {
|
|
|
|
if (flags.once) {
|
|
|
|
emitter.once(name, listener);
|
|
|
|
} else {
|
|
|
|
emitter.on(name, listener);
|
|
|
|
}
|
|
|
|
} else if (typeof emitter.addEventListener === "function") {
|
|
|
|
emitter.addEventListener(name, function wrapListener(arg) {
|
|
|
|
if (flags.once) {
|
|
|
|
emitter.removeEventListener(name, wrapListener);
|
|
|
|
}
|
|
|
|
listener(arg);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var tslibExports = {};
|
|
|
|
var tslib = {
|
|
|
|
get exports() {
|
|
|
|
return tslibExports;
|
|
|
|
},
|
|
|
|
set exports(v) {
|
|
|
|
tslibExports = v;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
/*! *****************************************************************************
|
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
***************************************************************************** */
|
|
|
|
(function(module) {
|
|
|
|
var __extends;
|
|
|
|
var __assign;
|
|
|
|
var __rest;
|
|
|
|
var __decorate;
|
|
|
|
var __param;
|
|
|
|
var __metadata;
|
|
|
|
var __awaiter;
|
|
|
|
var __generator;
|
|
|
|
var __exportStar;
|
|
|
|
var __values;
|
|
|
|
var __read;
|
|
|
|
var __spread;
|
|
|
|
var __spreadArrays;
|
|
|
|
var __await;
|
|
|
|
var __asyncGenerator;
|
|
|
|
var __asyncDelegator;
|
|
|
|
var __asyncValues;
|
|
|
|
var __makeTemplateObject;
|
|
|
|
var __importStar;
|
|
|
|
var __importDefault;
|
|
|
|
var __classPrivateFieldGet;
|
|
|
|
var __classPrivateFieldSet;
|
|
|
|
var __createBinding;
|
|
|
|
(function(factory) {
|
|
|
|
var root = typeof commonjsGlobal === "object" ? commonjsGlobal : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
|
|
{
|
|
|
|
factory(createExporter(root, createExporter(module.exports)));
|
|
|
|
}
|
|
|
|
function createExporter(exports, previous) {
|
|
|
|
if (exports !== root) {
|
|
|
|
if (typeof Object.create === "function") {
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
} else {
|
|
|
|
exports.__esModule = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return function(id, v) {
|
|
|
|
return exports[id] = previous ? previous(id, v) : v;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
})(function(exporter) {
|
|
|
|
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
|
|
|
|
d.__proto__ = b;
|
|
|
|
} || function(d, b) {
|
|
|
|
for (var p in b)
|
|
|
|
if (b.hasOwnProperty(p))
|
|
|
|
d[p] = b[p];
|
|
|
|
};
|
|
|
|
__extends = function(d, b) {
|
|
|
|
extendStatics(d, b);
|
|
|
|
function __() {
|
|
|
|
this.constructor = d;
|
|
|
|
}
|
|
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
|
};
|
|
|
|
__assign = Object.assign || function(t) {
|
|
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
|
|
s = arguments[i];
|
|
|
|
for (var p in s)
|
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
|
|
t[p] = s[p];
|
|
|
|
}
|
|
|
|
return t;
|
|
|
|
};
|
|
|
|
__rest = function(s, e) {
|
|
|
|
var t = {};
|
|
|
|
for (var p in s)
|
|
|
|
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
|
|
t[p] = s[p];
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
|
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
|
|
t[p[i]] = s[p[i]];
|
|
|
|
}
|
|
|
|
return t;
|
|
|
|
};
|
|
|
|
__decorate = function(decorators, target, key, desc) {
|
|
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
|
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
|
|
else
|
|
|
|
for (var i = decorators.length - 1; i >= 0; i--)
|
|
|
|
if (d = decorators[i])
|
|
|
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
|
};
|
|
|
|
__param = function(paramIndex, decorator) {
|
|
|
|
return function(target, key) {
|
|
|
|
decorator(target, key, paramIndex);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
__metadata = function(metadataKey, metadataValue) {
|
|
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
|
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
|
|
};
|
|
|
|
__awaiter = function(thisArg, _arguments, P, generator) {
|
|
|
|
function adopt(value) {
|
|
|
|
return value instanceof P ? value : new P(function(resolve) {
|
|
|
|
resolve(value);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return new (P || (P = Promise))(function(resolve, reject) {
|
|
|
|
function fulfilled(value) {
|
|
|
|
try {
|
|
|
|
step(generator.next(value));
|
|
|
|
} catch (e) {
|
|
|
|
reject(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function rejected(value) {
|
|
|
|
try {
|
|
|
|
step(generator["throw"](value));
|
|
|
|
} catch (e) {
|
|
|
|
reject(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function step(result) {
|
|
|
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
|
|
}
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
});
|
|
|
|
};
|
|
|
|
__generator = function(thisArg, body) {
|
|
|
|
var _ = { label: 0, sent: function() {
|
|
|
|
if (t[0] & 1)
|
|
|
|
throw t[1];
|
|
|
|
return t[1];
|
|
|
|
}, trys: [], ops: [] }, f, y, t, g;
|
|
|
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
|
|
return this;
|
|
|
|
}), g;
|
|
|
|
function verb(n) {
|
|
|
|
return function(v) {
|
|
|
|
return step([n, v]);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
function step(op) {
|
|
|
|
if (f)
|
|
|
|
throw new TypeError("Generator is already executing.");
|
|
|
|
while (_)
|
|
|
|
try {
|
|
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
|
|
return t;
|
|
|
|
if (y = 0, t)
|
|
|
|
op = [op[0] & 2, t.value];
|
|
|
|
switch (op[0]) {
|
|
|
|
case 0:
|
|
|
|
case 1:
|
|
|
|
t = op;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
_.label++;
|
|
|
|
return { value: op[1], done: false };
|
|
|
|
case 5:
|
|
|
|
_.label++;
|
|
|
|
y = op[1];
|
|
|
|
op = [0];
|
|
|
|
continue;
|
|
|
|
case 7:
|
|
|
|
op = _.ops.pop();
|
|
|
|
_.trys.pop();
|
|
|
|
continue;
|
|
|
|
default:
|
|
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
|
|
_ = 0;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
|
|
_.label = op[1];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (op[0] === 6 && _.label < t[1]) {
|
|
|
|
_.label = t[1];
|
|
|
|
t = op;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (t && _.label < t[2]) {
|
|
|
|
_.label = t[2];
|
|
|
|
_.ops.push(op);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (t[2])
|
|
|
|
_.ops.pop();
|
|
|
|
_.trys.pop();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
op = body.call(thisArg, _);
|
|
|
|
} catch (e) {
|
|
|
|
op = [6, e];
|
|
|
|
y = 0;
|
|
|
|
} finally {
|
|
|
|
f = t = 0;
|
|
|
|
}
|
|
|
|
if (op[0] & 5)
|
|
|
|
throw op[1];
|
|
|
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
__createBinding = function(o, m, k, k2) {
|
|
|
|
if (k2 === void 0)
|
|
|
|
k2 = k;
|
|
|
|
o[k2] = m[k];
|
|
|
|
};
|
|
|
|
__exportStar = function(m, exports) {
|
|
|
|
for (var p in m)
|
|
|
|
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
|
|
exports[p] = m[p];
|
|
|
|
};
|
|
|
|
__values = function(o) {
|
|
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
|
|
if (m)
|
|
|
|
return m.call(o);
|
|
|
|
if (o && typeof o.length === "number")
|
|
|
|
return {
|
|
|
|
next: function() {
|
|
|
|
if (o && i >= o.length)
|
|
|
|
o = void 0;
|
|
|
|
return { value: o && o[i++], done: !o };
|
|
|
|
}
|
|
|
|
};
|
|
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
|
|
};
|
|
|
|
__read = function(o, n) {
|
|
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
|
|
if (!m)
|
|
|
|
return o;
|
|
|
|
var i = m.call(o), r, ar = [], e;
|
|
|
|
try {
|
|
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
|
|
ar.push(r.value);
|
|
|
|
} catch (error) {
|
|
|
|
e = { error };
|
|
|
|
} finally {
|
|
|
|
try {
|
|
|
|
if (r && !r.done && (m = i["return"]))
|
|
|
|
m.call(i);
|
|
|
|
} finally {
|
|
|
|
if (e)
|
|
|
|
throw e.error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ar;
|
|
|
|
};
|
|
|
|
__spread = function() {
|
|
|
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
|
|
ar = ar.concat(__read(arguments[i]));
|
|
|
|
return ar;
|
|
|
|
};
|
|
|
|
__spreadArrays = function() {
|
|
|
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
|
|
s += arguments[i].length;
|
|
|
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
|
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
|
|
r[k] = a[j];
|
|
|
|
return r;
|
|
|
|
};
|
|
|
|
__await = function(v) {
|
|
|
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
|
|
};
|
|
|
|
__asyncGenerator = function(thisArg, _arguments, generator) {
|
|
|
|
if (!Symbol.asyncIterator)
|
|
|
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
|
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
|
|
return this;
|
|
|
|
}, i;
|
|
|
|
function verb(n) {
|
|
|
|
if (g[n])
|
|
|
|
i[n] = function(v) {
|
|
|
|
return new Promise(function(a, b) {
|
|
|
|
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
function resume(n, v) {
|
|
|
|
try {
|
|
|
|
step(g[n](v));
|
|
|
|
} catch (e) {
|
|
|
|
settle(q[0][3], e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function step(r) {
|
|
|
|
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
|
|
}
|
|
|
|
function fulfill(value) {
|
|
|
|
resume("next", value);
|
|
|
|
}
|
|
|
|
function reject(value) {
|
|
|
|
resume("throw", value);
|
|
|
|
}
|
|
|
|
function settle(f, v) {
|
|
|
|
if (f(v), q.shift(), q.length)
|
|
|
|
resume(q[0][0], q[0][1]);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
__asyncDelegator = function(o) {
|
|
|
|
var i, p;
|
|
|
|
return i = {}, verb("next"), verb("throw", function(e) {
|
|
|
|
throw e;
|
|
|
|
}), verb("return"), i[Symbol.iterator] = function() {
|
|
|
|
return this;
|
|
|
|
}, i;
|
|
|
|
function verb(n, f) {
|
|
|
|
i[n] = o[n] ? function(v) {
|
|
|
|
return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v;
|
|
|
|
} : f;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
__asyncValues = function(o) {
|
|
|
|
if (!Symbol.asyncIterator)
|
|
|
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
|
|
var m = o[Symbol.asyncIterator], i;
|
|
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
|
|
return this;
|
|
|
|
}, i);
|
|
|
|
function verb(n) {
|
|
|
|
i[n] = o[n] && function(v) {
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
|
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
function settle(resolve, reject, d, v) {
|
|
|
|
Promise.resolve(v).then(function(v2) {
|
|
|
|
resolve({ value: v2, done: d });
|
|
|
|
}, reject);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
__makeTemplateObject = function(cooked, raw) {
|
|
|
|
if (Object.defineProperty) {
|
|
|
|
Object.defineProperty(cooked, "raw", { value: raw });
|
|
|
|
} else {
|
|
|
|
cooked.raw = raw;
|
|
|
|
}
|
|
|
|
return cooked;
|
|
|
|
};
|
|
|
|
__importStar = function(mod) {
|
|
|
|
if (mod && mod.__esModule)
|
|
|
|
return mod;
|
|
|
|
var result = {};
|
|
|
|
if (mod != null) {
|
|
|
|
for (var k in mod)
|
|
|
|
if (Object.hasOwnProperty.call(mod, k))
|
|
|
|
result[k] = mod[k];
|
|
|
|
}
|
|
|
|
result["default"] = mod;
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
__importDefault = function(mod) {
|
|
|
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
|
|
};
|
|
|
|
__classPrivateFieldGet = function(receiver, privateMap) {
|
|
|
|
if (!privateMap.has(receiver)) {
|
|
|
|
throw new TypeError("attempted to get private field on non-instance");
|
|
|
|
}
|
|
|
|
return privateMap.get(receiver);
|
|
|
|
};
|
|
|
|
__classPrivateFieldSet = function(receiver, privateMap, value) {
|
|
|
|
if (!privateMap.has(receiver)) {
|
|
|
|
throw new TypeError("attempted to set private field on non-instance");
|
|
|
|
}
|
|
|
|
privateMap.set(receiver, value);
|
|
|
|
return value;
|
|
|
|
};
|
|
|
|
exporter("__extends", __extends);
|
|
|
|
exporter("__assign", __assign);
|
|
|
|
exporter("__rest", __rest);
|
|
|
|
exporter("__decorate", __decorate);
|
|
|
|
exporter("__param", __param);
|
|
|
|
exporter("__metadata", __metadata);
|
|
|
|
exporter("__awaiter", __awaiter);
|
|
|
|
exporter("__generator", __generator);
|
|
|
|
exporter("__exportStar", __exportStar);
|
|
|
|
exporter("__createBinding", __createBinding);
|
|
|
|
exporter("__values", __values);
|
|
|
|
exporter("__read", __read);
|
|
|
|
exporter("__spread", __spread);
|
|
|
|
exporter("__spreadArrays", __spreadArrays);
|
|
|
|
exporter("__await", __await);
|
|
|
|
exporter("__asyncGenerator", __asyncGenerator);
|
|
|
|
exporter("__asyncDelegator", __asyncDelegator);
|
|
|
|
exporter("__asyncValues", __asyncValues);
|
|
|
|
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
|
|
exporter("__importStar", __importStar);
|
|
|
|
exporter("__importDefault", __importDefault);
|
|
|
|
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
|
|
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
|
|
});
|
|
|
|
})(tslib);
|
|
|
|
export {
|
|
|
|
eventsExports as e,
|
|
|
|
tslibExports as t
|
|
|
|
};
|