Ample Copilot

name

Ample Copilot

description

Next-gen AI plugin with chat ui and natural language searching.

icon

chat

instructions

The plugins adds various AI capabilities to Amplenote various AI capabilities to Amplenote, such as the ability to talk to all your notes for answers and insights and to edit and rewrite your notes interactively with AI.



Features:
- Chat UI with support for tool calling
- User defined custom prompts
- Support for multiple llm providers: OpenAI (recommended), Groq AI Interface (free), FireWorks, Ollama.
- Natural language search support with LocalVecDB.
- Support for quick plugin actions: Continue, Generate Text & Image, Edit, Rewrite, Fix grammar, etc.
- A lot more. Too many to list here!

Common FAQs:
Q) How do I set up plugin with OpenAI API?
Q) How do I set up plugin with Groq AI Interface?
Q) How do I set up plugin with Ollama?
Q) How do I speed up LocalVecDB indexing?

Note: This plugin is currently in its beta stage. If you encounter any issues, please report them below.

setting

LLM API Key

setting

LLM API URL

setting

LLM Model

setting

LLM Max Tokens (Default: 8192)

setting

Custom LLM Instruction (Optional)

setting

Custom LLM Avatar (Optional)

setting

Pinecone API Key (Optional)

setting

User Prompt List (DO NOT CHANGE MANUALLY)


linkAmple Copilot (v0.2.0)


linkCode

/***
* Source Code: https://github.com/debanjandhar12/my-amplenote-plugins-v2
* Author: debajandhar12
* Build: production
* Character Count: 458845 (0.46 M)
* Target Folder: src-copilot
***/
(() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __require = /* @__PURE__ */ ((x) => typeof require != "undefined" ? require : typeof Proxy != "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require != "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require != "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
var __esm = (fn, res) => function() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod) => function() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from == "object" || typeof from == "function")
for (let key of __getOwnPropNames(from))
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
));
 
// node_modules/esbuild-plugins-node-modules-polyfill/globals/process.js
var init_process = __esm({
"node_modules/esbuild-plugins-node-modules-polyfill/globals/process.js"() {
}
});
 
// node_modules/easy-web-worker/lib/bundle.js
var require_bundle = __commonJS({
"node_modules/easy-web-worker/lib/bundle.js"(exports2, module2) {
init_process();
(function(e, r) {
typeof exports2 == "object" && typeof module2 == "object" ? module2.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof exports2 == "object" ? exports2["easy-web-worker"] = r() : e["easy-web-worker"] = r();
})(exports2, () => {
return e = { 41: (e2, r2, t) => {
"use strict";
Object.defineProperty(r2, "__esModule", { value: !0 }), r2.createEasyWebWorker = void 0;
var n = t(382);
r2.createEasyWebWorker = function(e3) {
var r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
return new n.EasyWebWorker(e3, r3);
};
}, 382: (e2, r2, t) => {
"use strict";
function n(e3) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e4) {
return typeof e4;
} : function(e4) {
return e4 && typeof Symbol == "function" && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
}, n(e3);
}
function o(e3, r3) {
return function(e4) {
if (Array.isArray(e4)) return e4;
}(e3) || function(e4, r4) {
var t2 = e4 == null ? null : typeof Symbol != "undefined" && e4[Symbol.iterator] || e4["@@iterator"];
if (t2 != null) {
var n2, o2, i2, a2, c2 = [], s2 = !0, u2 = !1;
try {
if (i2 = (t2 = t2.call(e4)).next, r4 === 0) {
if (Object(t2) !== t2) return;
s2 = !1;
} else for (; !(s2 = (n2 = i2.call(t2)).done) && (c2.push(n2.value), c2.length !== r4); s2 = !0) ;
} catch (e5) {
u2 = !0, o2 = e5;
} finally {
try {
if (!s2 && t2.return != null && (a2 = t2.return(), Object(a2) !== a2)) return;
} finally {
if (u2) throw o2;
}
}
return c2;
}
}(e3, r3) || i(e3, r3) || function() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}();
}
function i(e3, r3) {
if (e3) {
if (typeof e3 == "string") return a(e3, r3);
var t2 = {}.toString.call(e3).slice(8, -1);
return t2 === "Object" && e3.constructor && (t2 = e3.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(e3) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? a(e3, r3) : void 0;
}
}
function a(e3, r3) {
(r3 == null || r3 > e3.length) && (r3 = e3.length);
for (var t2 = 0, n2 = Array(r3); t2 < r3; t2++) n2[t2] = e3[t2];
return n2;
}
function c() {
c = function() {
return r3;
};
var e3, r3 = {}, t2 = Object.prototype, o2 = t2.hasOwnProperty, i2 = Object.defineProperty || function(e4, r4, t3) {
e4[r4] = t3.value;
}, a2 = typeof Symbol == "function" ? Symbol : {}, s2 = a2.iterator || "@@iterator", u2 = a2.asyncIterator || "@@asyncIterator", l2 = a2.toStringTag || "@@toStringTag";
function f2(e4, r4, t3) {
return Object.defineProperty(e4, r4, { value: t3, enumerable: !0, configurable: !0, writable: !0 }), e4[r4];
}
try {
f2({}, "");
} catch {
f2 = function(e5, r4, t3) {
return e5[r4] = t3;
};
}
function p2(e4, r4, t3, n2) {
var o3 = r4 && r4.prototype instanceof b ? r4 : b, a3 = Object.create(o3.prototype), c2 = new A(n2 || []);
return i2(a3, "_invoke", { value: C(e4, t3, c2) }), a3;
}
function d2(e4, r4, t3) {
try {
return { type: "normal", arg: e4.call(r4, t3) };
} catch (e5) {
return { type: "throw", arg: e5 };
}
}
r3.wrap = p2;
var h2 = "suspendedStart", v = "suspendedYield", y = "executing", m = "completed", g = {};
function b() {
}
function w() {
}
function k() {
}
var P = {};
f2(P, s2, function() {
return this;
});
var j = Object.getPrototypeOf, O = j && j(j(L([])));
O && O !== t2 && o2.call(O, s2) && (P = O);
var E = k.prototype = b.prototype = Object.create(P);
function _(e4) {
["next", "throw", "return"].forEach(function(r4) {
f2(e4, r4, function(e5) {
return this._invoke(r4, e5);
});
});
}
function x(e4, r4) {
function t3(i3, a4, c2, s3) {
var u3 = d2(e4[i3], e4, a4);
if (u3.type !== "throw") {
var l3 = u3.arg, f3 = l3.value;
return f3 && n(f3) == "object" && o2.call(f3, "__await") ? r4.resolve(f3.__await).then(function(e5) {
t3("next", e5, c2, s3);
}, function(e5) {
t3("throw", e5, c2, s3);
}) : r4.resolve(f3).then(function(e5) {
l3.value = e5, c2(l3);
}, function(e5) {
return t3("throw", e5, c2, s3);
});
}
s3(u3.arg);
}
var a3;
i2(this, "_invoke", { value: function(e5, n2) {
function o3() {
return new r4(function(r5, o4) {
t3(e5, n2, r5, o4);
});
}
return a3 = a3 ? a3.then(o3, o3) : o3();
} });
}
function C(r4, t3, n2) {
var o3 = h2;
return function(i3, a3) {
if (o3 === y) throw Error("Generator is already running");
if (o3 === m) {
if (i3 === "throw") throw a3;
return { value: e3, done: !0 };
}
for (n2.method = i3, n2.arg = a3; ; ) {
var c2 = n2.delegate;
if (c2) {
var s3 = S(c2, n2);
if (s3) {
if (s3 === g) continue;
return s3;
}
}
if (n2.method === "next") n2.sent = n2._sent = n2.arg;
else if (n2.method === "throw") {
if (o3 === h2) throw o3 = m, n2.arg;
n2.dispatchException(n2.arg);
} else n2.method === "return" && n2.abrupt("return", n2.arg);
o3 = y;
var u3 = d2(r4, t3, n2);
if (u3.type === "normal") {
if (o3 = n2.done ? m : v, u3.arg === g) continue;
return { value: u3.arg, done: n2.done };
}
u3.type === "throw" && (o3 = m, n2.method = "throw", n2.arg = u3.arg);
}
};
}
function S(r4, t3) {
var n2 = t3.method, o3 = r4.iterator[n2];
if (o3 === e3) return t3.delegate = null, n2 === "throw" && r4.iterator.return && (t3.method = "return", t3.arg = e3, S(r4, t3), t3.method === "throw") || n2 !== "return" && (t3.method = "throw", t3.arg = new TypeError("The iterator does not provide a '" + n2 + "' method")), g;
var i3 = d2(o3, r4.iterator, t3.arg);
if (i3.type === "throw") return t3.method = "throw", t3.arg = i3.arg, t3.delegate = null, g;
var a3 = i3.arg;
return a3 ? a3.done ? (t3[r4.resultName] = a3.value, t3.next = r4.nextLoc, t3.method !== "return" && (t3.method = "next", t3.arg = e3), t3.delegate = null, g) : a3 : (t3.method = "throw", t3.arg = new TypeError("iterator result is not an object"), t3.delegate = null, g);
}
function W(e4) {
var r4 = { tryLoc: e4[0] };
1 in e4 && (r4.catchLoc = e4[1]), 2 in e4 && (r4.finallyLoc = e4[2], r4.afterLoc = e4[3]), this.tryEntries.push(r4);
}
function M(e4) {
var r4 = e4.completion || {};
r4.type = "normal", delete r4.arg, e4.completion = r4;
}
function A(e4) {
this.tryEntries = [{ tryLoc: "root" }], e4.forEach(W, this), this.reset(!0);
}
function L(r4) {
if (r4 || r4 === "") {
var t3 = r4[s2];
if (t3) return t3.call(r4);
if (typeof r4.next == "function") return r4;
if (!isNaN(r4.length)) {
var i3 = -1, a3 = function t4() {
for (; ++i3 < r4.length; ) if (o2.call(r4, i3)) return t4.value = r4[i3], t4.done = !1, t4;
return t4.value = e3, t4.done = !0, t4;
};
return a3.next = a3;
}
}
throw new TypeError(n(r4) + " is not iterable");
}
return w.prototype = k, i2(E, "constructor", { value: k, configurable: !0 }), i2(k, "constructor", { value: w, configurable: !0 }), w.displayName = f2(k, l2, "GeneratorFunction"), r3.isGeneratorFunction = function(e4) {
var r4 = typeof e4 == "function" && e4.constructor;
return !!r4 && (r4 === w || (r4.displayName || r4.name) === "GeneratorFunction");
}, r3.mark = function(e4) {
return Object.setPrototypeOf ? Object.setPrototypeOf(e4, k) : (e4.__proto__ = k, f2(e4, l2, "GeneratorFunction")), e4.prototype = Object.create(E), e4;
}, r3.awrap = function(e4) {
return { __await: e4 };
}, _(x.prototype), f2(x.prototype, u2, function() {
return this;
}), r3.AsyncIterator = x, r3.async = function(e4, t3, n2, o3, i3) {
i3 === void 0 && (i3 = Promise);
var a3 = new x(p2(e4, t3, n2, o3), i3);
return r3.isGeneratorFunction(t3) ? a3 : a3.next().then(function(e5) {
return e5.done ? e5.value : a3.next();
});
}, _(E), f2(E, l2, "Generator"), f2(E, s2, function() {
return this;
}), f2(E, "toString", function() {
return "[object Generator]";
}), r3.keys = function(e4) {
var r4 = Object(e4), t3 = [];
for (var n2 in r4) t3.push(n2);
return t3.reverse(), function e5() {
for (; t3.length; ) {
var n3 = t3.pop();
if (n3 in r4) return e5.value = n3, e5.done = !1, e5;
}
return e5.done = !0, e5;
};
}, r3.values = L, A.prototype = { constructor: A, reset: function(r4) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = e3, this.done = !1, this.delegate = null, this.method = "next", this.arg = e3, this.tryEntries.forEach(M), !r4) for (var t3 in this) t3.charAt(0) === "t" && o2.call(this, t3) && !isNaN(+t3.slice(1)) && (this[t3] = e3);
}, stop: function() {
this.done = !0;
var e4 = this.tryEntries[0].completion;
if (e4.type === "throw") throw e4.arg;
return this.rval;
}, dispatchException: function(r4) {
if (this.done) throw r4;
var t3 = this;
function n2(n3, o3) {
return c2.type = "throw", c2.arg = r4, t3.next = n3, o3 && (t3.method = "next", t3.arg = e3), !!o3;
}
for (var i3 = this.tryEntries.length - 1; i3 >= 0; --i3) {
var a3 = this.tryEntries[i3], c2 = a3.completion;
if (a3.tryLoc === "root") return n2("end");
if (a3.tryLoc <= this.prev) {
var s3 = o2.call(a3, "catchLoc"), u3 = o2.call(a3, "finallyLoc");
if (s3 && u3) {
if (this.prev < a3.catchLoc) return n2(a3.catchLoc, !0);
if (this.prev < a3.finallyLoc) return n2(a3.finallyLoc);
} else if (s3) {
if (this.prev < a3.catchLoc) return n2(a3.catchLoc, !0);
} else {
if (!u3) throw Error("try statement without catch or finally");
if (this.prev < a3.finallyLoc) return n2(a3.finallyLoc);
}
}
}
}, abrupt: function(e4, r4) {
for (var t3 = this.tryEntries.length - 1; t3 >= 0; --t3) {
var n2 = this.tryEntries[t3];
if (n2.tryLoc <= this.prev && o2.call(n2, "finallyLoc") && this.prev < n2.finallyLoc) {
var i3 = n2;
break;
}
}
i3 && (e4 === "break" || e4 === "continue") && i3.tryLoc <= r4 && r4 <= i3.finallyLoc && (i3 = null);
var a3 = i3 ? i3.completion : {};
return a3.type = e4, a3.arg = r4, i3 ? (this.method = "next", this.next = i3.finallyLoc, g) : this.complete(a3);
}, complete: function(e4, r4) {
if (e4.type === "throw") throw e4.arg;
return e4.type === "break" || e4.type === "continue" ? this.next = e4.arg : e4.type === "return" ? (this.rval = this.arg = e4.arg, this.method = "return", this.next = "end") : e4.type === "normal" && r4 && (this.next = r4), g;
}, finish: function(e4) {
for (var r4 = this.tryEntries.length - 1; r4 >= 0; --r4) {
var t3 = this.tryEntries[r4];
if (t3.finallyLoc === e4) return this.complete(t3.completion, t3.afterLoc), M(t3), g;
}
}, catch: function(e4) {
for (var r4 = this.tryEntries.length - 1; r4 >= 0; --r4) {
var t3 = this.tryEntries[r4];
if (t3.tryLoc === e4) {
var n2 = t3.completion;
if (n2.type === "throw") {
var o3 = n2.arg;
M(t3);
}
return o3;
}
}
throw Error("illegal catch attempt");
}, delegateYield: function(r4, t3, n2) {
return this.delegate = { iterator: L(r4), resultName: t3, nextLoc: n2 }, this.method === "next" && (this.arg = e3), g;
} }, r3;
}
function s(e3, r3) {
for (var t2 = 0; t2 < r3.length; t2++) {
var n2 = r3[t2];
n2.enumerable = n2.enumerable || !1, n2.configurable = !0, "value" in n2 && (n2.writable = !0), Object.defineProperty(e3, u(n2.key), n2);
}
}
function u(e3) {
var r3 = function(e4) {
if (n(e4) != "object" || !e4) return e4;
var r4 = e4[Symbol.toPrimitive];
if (r4 !== void 0) {
var t2 = r4.call(e4, "string");
if (n(t2) != "object") return t2;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(e4);
}(e3);
return n(r3) == "symbol" ? r3 : r3 + "";
}
var l = function(e3, r3, t2, n2) {
return new (t2 || (t2 = Promise))(function(o2, i2) {
function a2(e4) {
try {
s2(n2.next(e4));
} catch (e5) {
i2(e5);
}
}
function c2(e4) {
try {
s2(n2.throw(e4));
} catch (e5) {
i2(e5);
}
}
function s2(e4) {
var r4;
e4.done ? o2(e4.value) : (r4 = e4.value, r4 instanceof t2 ? r4 : new t2(function(e5) {
e5(r4);
})).then(a2, c2);
}
s2((n2 = n2.apply(e3, r3 || [])).next());
});
};
Object.defineProperty(r2, "__esModule", { value: !0 }), r2.EasyWebWorker = r2.createBlobWorker = void 0;
var f = t(655), p = t(920), d = t(806);
r2.createBlobWorker = function(e3) {
var r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t2 = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).primitiveParameters, n2 = t2 === void 0 ? [] : t2, o2 = Array.isArray(e3) ? e3 : [e3], i2 = "".concat(function() {
var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
return e4.length ? 'self.importScripts(["'.concat(e4.join('","'), '"]);') : "";
}(r3), "self.primitiveParameters=JSON.parse(`").concat(JSON.stringify(n2 != null ? n2 : []), "`);let ew$=").concat((0, p.getWorkerTemplate)(), ";let cn$=self;").concat(o2.map(function(e4) {
return `
(`.concat(e4 == null ? void 0 : e4.toString().trim(), ")(ew$,cn$);");
}).join(""));
return (window.URL || window.webkitURL).createObjectURL(new Blob([i2], { type: "application/javascript" }));
};
var h = function() {
return e3 = function e4(r3) {
var t3 = this, n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
(function(e5, r4) {
if (!(e5 instanceof r4)) throw new TypeError("Cannot call a class as a function");
})(this, e4), this.source = r3, this.workerUrl = null, this.config = null, this.maxWorkers = 1, this.workers = [], this.keepAlive = !0, this.warmUpWorkers = !1, this.terminationDelay = 1e3, this.primitiveParameters = [], this.messagesQueue = /* @__PURE__ */ new Map(), this.scripts = [], this.warmUp = function() {
var e5 = t3.config, r4 = e5.warmUpWorkers, n3 = e5.maxWorkers;
r4 && new Array(n3).fill(null).forEach(function() {
return t3.getWorkerFromPool();
});
}, this.fillWorkerMethods = function(e5) {
return e5.onmessage = function(e6) {
t3.executeMessageCallback(e6);
}, e5.onerror = function(e6) {
var r4 = t3.config.onWorkerError;
if (!r4) throw e6;
r4(e6);
}, e5;
}, this.createNewWorker = function() {
var e5, r4 = t3.workerUrl, n3 = t3.config.workerOptions;
n3.name = (e5 = t3.workers.length) === 0 ? n3.name : "".concat(n3.name, "-").concat(e5);
var o2 = new Worker(r4, n3);
return t3.fillWorkerMethods(o2);
}, this.getWorkerFromPool = function() {
var e5 = t3.config, r4 = e5.maxWorkers, n3 = e5.warmUpWorkers, o2 = t3.messagesQueue.size;
if (!t3.workers.length || t3.workers.length < r4 && (o2 || n3)) {
var i3 = t3.createNewWorker();
return t3.workers.push(i3), i3;
}
var a3 = t3.workers.shift();
return t3.workers.push(a3), a3;
}, this.computeWorkerBaseSource = function() {
var e5 = function() {
var e6, r5;
if (t3.source instanceof Worker) return t3.workers = [t3.fillWorkerMethods(t3.source)], { isArrayOfWebWorkers: !1, workerUrl: null };
var n4 = typeof t3.source == "string" || t3.source instanceof URL, o2 = typeof t3.source == "function";
if (n4 || o2) return { isArrayOfWebWorkers: !1, workerUrl: (e6 = t3.workerUrl) !== null && e6 !== void 0 ? e6 : t3.getWorkerUrl() };
var i3 = Array.isArray(t3.source);
if (i3 && typeof t3.source[0] == "function") return { isArrayOfWebWorkers: !1, workerUrl: (r5 = t3.workerUrl) !== null && r5 !== void 0 ? r5 : t3.getWorkerUrl() };
var a3 = i3 && t3.source[0] instanceof Worker;
return a3 ? (t3.workers = t3.source.map(t3.fillWorkerMethods), { isArrayOfWebWorkers: a3, workerUrl: null }) : { isArrayOfWebWorkers: !1, workerUrl: null };
}(), r4 = e5.workerUrl, n3 = e5.isArrayOfWebWorkers;
return t3.workerUrl = r4, t3.config.maxWorkers = n3 ? t3.workers.length : t3.config.maxWorkers, { isArrayOfWebWorkers: n3 };
}, this.send = function(e5, r4) {
return t3.sendToWorker({ payload: e5 }, r4);
}, this.sendToWorker = function(e5, r4) {
var n3, o2, i3 = e5.payload, a3 = e5.method, c2 = new f.EasyWebWorkerMessage(), s3 = c2.messageId, u3 = c2.decoupledPromise, l2 = t3.getWorkerFromPool();
u3.promise.cancel = function(e6) {
u3.promise.cancel = u3._cancel;
var n4 = { messageId: s3, method: a3, cancelation: { reason: e6 } };
return t3.workers.length ? (l2.postMessage(n4, r4), u3.promise) : u3.cancel(e6);
}, t3.config.keepAlive || (o2 = (n3 = u3.promise) === null || n3 === void 0 ? void 0 : n3.finally) === null || o2 === void 0 || o2.call(n3, function() {
setTimeout(function() {
t3.messagesQueue.size || (t3.workers.forEach(function(e6) {
return e6.terminate();
}), t3.workers = []);
}, t3.config.terminationDelay);
}), t3.addMessageToQueue(c2);
var p2 = { messageId: s3, method: a3, execution: { payload: i3 } };
return l2.postMessage(p2, r4), u3.promise;
}, this.override = function() {
for (var e5 = arguments.length, r4 = new Array(e5), n3 = 0; n3 < e5; n3++) r4[n3] = arguments[n3];
var o2 = r4[0], i3 = r4[1], a3 = r4[2];
return new d.CancelablePromise(function(e6, r5, n4) {
return l(t3, [e6, r5, n4], void 0, function(e7, r6, t4) {
var n5 = this, s3 = t4.onCancel;
return c().mark(function r7() {
var t5, u3;
return c().wrap(function(r8) {
for (; ; ) switch (r8.prev = r8.next) {
case 0:
return t5 = n5.cancelAll(i3, a3), u3 = s3(function() {
t5.cancel();
}), r8.next = 4, t5;
case 4:
u3(), e7(n5.send.apply(n5, [o2]));
case 6:
case "end":
return r8.stop();
}
}, r7);
})();
});
});
}, this.overrideAfterCurrent = function() {
for (var e5 = arguments.length, r4 = new Array(e5), n3 = 0; n3 < e5; n3++) r4[n3] = arguments[n3];
var i3 = r4[0], a3 = r4[1], s3 = r4[2];
return new d.CancelablePromise(function(e6, r5, n4) {
return l(t3, [e6, r5, n4], void 0, function(e7, r6, t4) {
var n5 = this, u3 = t4.onCancel, l2 = t4.reportProgress;
return c().mark(function r7() {
var t5, f2, p2, d2, h3, v2;
return c().wrap(function(r8) {
for (; ; ) switch (r8.prev = r8.next) {
case 0:
if (!n5.messagesQueue.size) {
r8.next = 10;
break;
}
return t5 = o(n5.messagesQueue, 1), f2 = t5[0], p2 = o(f2, 2), d2 = p2[1], n5.RemoveMessageFromQueue(d2.messageId), h3 = n5.cancelAll(a3, s3).onProgress(l2), v2 = u3(function() {
h3.cancel();
}), n5.addMessageToQueue(d2), r8.next = 9, h3;
case 9:
v2();
case 10:
e7(n5.send.apply(n5, [i3]));
case 11:
case "end":
return r8.stop();
}
}, r7);
})();
});
});
}, this.workerUrl = typeof r3 == "string" || r3 instanceof URL ? r3 : null;
var i2 = n2 != null ? n2 : {}, a2 = i2.scripts, s2 = a2 === void 0 ? [] : a2, u2 = i2.name, h2 = i2.onWorkerError, v = h2 === void 0 ? null : h2, y = i2.maxWorkers, m = y === void 0 ? 1 : y, g = i2.terminationDelay, b = g === void 0 ? 1e3 : g, w = i2.primitiveParameters, k = i2.workerOptions, P = k === void 0 ? {} : k, j = typeof (n2 == null ? void 0 : n2.warmUpWorkers) == "boolean" ? n2.warmUpWorkers : m === 1, O = typeof (n2 == null ? void 0 : n2.keepAlive) == "boolean" ? n2.keepAlive : j;
this.config = { scripts: s2 != null ? s2 : [], name: u2, maxWorkers: m, keepAlive: O, warmUpWorkers: j, workerOptions: Object.assign(Object.assign({}, P != null ? P : {}), { name: P.name || (0, p.generatedId)() }), onWorkerError: v, terminationDelay: b, primitiveParameters: w }, this.workerOptions = this.config.workerOptions, this.name = this.workerOptions.name, this.scripts = s2, this.onWorkerError = v, this.maxWorkers = m, this.terminationDelay = b, this.warmUpWorkers = j, this.primitiveParameters = w != null ? w : [], O = !!this.computeWorkerBaseSource().isArrayOfWebWorkers || O, this.keepAlive = O, this.config.keepAlive = O, this.warmUp();
}, t2 = [{ key: "worker", get: function() {
return this.workers.length > 1 ? null : this.workers[0];
} }, { key: "isExternalWorkerFile", get: function() {
return typeof this.source == "string" || this.source instanceof URL;
} }, { key: "RemoveMessageFromQueue", value: function(e4) {
this.messagesQueue.delete(e4);
} }, { key: "executeMessageCallback", value: function(e4) {
var r3, t3 = (r3 = this.messagesQueue.get(e4.data.messageId)) !== null && r3 !== void 0 ? r3 : null;
if (t3) {
var n2 = e4.data.progress;
if (this.workers.length) {
var o2 = t3.decoupledPromise;
if (n2) {
var c2 = n2.percentage, s2 = n2.payload;
o2.reportProgress(c2, s2);
} else {
this.RemoveMessageFromQueue(t3.messageId);
var u2 = e4.data.worker_cancelation;
if (u2) {
var l2 = u2.reason;
o2._cancel(l2);
} else {
var f2 = e4.data.rejected;
if (f2) {
var p2 = f2.reason;
o2.reject(p2);
} else {
var d2 = e4.data.resolved.payload;
o2.resolve.apply(o2, function(e5) {
return function(e6) {
if (Array.isArray(e6)) return a(e6);
}(e5) || function(e6) {
if (typeof Symbol != "undefined" && e6[Symbol.iterator] != null || e6["@@iterator"] != null) return Array.from(e6);
}(e5) || i(e5) || function() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}();
}(d2 != null ? d2 : []));
}
}
}
} else this.RemoveMessageFromQueue(t3.messageId);
}
} }, { key: "getWorkerUrl", value: function() {
if (this.isExternalWorkerFile) return this.source;
var e4 = this.config, t3 = e4.primitiveParameters, n2 = e4.scripts;
return (0, r2.createBlobWorker)(this.source, n2, { primitiveParameters: t3 });
} }, { key: "cancelAll", value: function(e4) {
var r3 = this, t3 = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).force, n2 = t3 !== void 0 && t3;
return new d.CancelablePromise(function(t4, o2, i2) {
return l(r3, [t4, o2, i2], void 0, function(r4, t5, o3) {
var i3 = this, a2 = o3.onCancel, s2 = o3.reportProgress;
return c().mark(function t6() {
var o4, u2, l2, f2, p2, h2;
return c().wrap(function(t7) {
for (; ; ) switch (t7.prev = t7.next) {
case 0:
if (l2 = Array.from((u2 = (o4 = i3.messagesQueue) === null || o4 === void 0 ? void 0 : o4.values()) !== null && u2 !== void 0 ? u2 : []), f2 = l2.length, p2 = 100 / f2, !n2) {
t7.next = 5;
break;
}
return t7.abrupt("return", r4(i3.reboot(e4)));
case 5:
h2 = (0, d.groupAsCancelablePromise)(l2.map(function(r5) {
return r5.decoupledPromise.promise.cancel(e4).catch(function(e5) {
return s2(p2, e5), e5;
});
})), a2(function() {
h2.cancel();
}), r4(h2);
case 8:
case "end":
return t7.stop();
}
}, t6);
})();
});
});
} }, { key: "addMessageToQueue", value: function(e4) {
this.messagesQueue.set(e4.messageId, e4);
} }, { key: "sendToMethod", value: function(e4, r3, t3) {
return this.sendToWorker({ method: e4, payload: r3 }, t3);
} }, { key: "reboot", value: function() {
var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "Worker was rebooted";
if (!this.workerUrl) throw new Error("You can not reboot a worker that was created from a Worker Instance");
this.workers.forEach(function(e5) {
return e5.terminate();
}), this.workers = [];
var r3 = this.cancelAll(e4);
return this.warmUp(), r3;
} }, { key: "dispose", value: function() {
return l(this, void 0, void 0, c().mark(function e4() {
return c().wrap(function(e5) {
for (; ; ) switch (e5.prev = e5.next) {
case 0:
return e5.next = 2, this.cancelAll(null);
case 2:
this.workerUrl && (window.URL || window.webkitURL).revokeObjectURL(typeof this.workerUrl == "string" ? this.workerUrl : this.workerUrl.href), this.workers.forEach(function(e6) {
return e6.terminate();
}), this.workers = [];
case 5:
case "end":
return e5.stop();
}
}, e4, this);
}));
} }], t2 && s(e3.prototype, t2), Object.defineProperty(e3, "prototype", { writable: !1 }), e3;
var e3, t2;
}();
r2.EasyWebWorker = h;
}, 920: (e2, r2) => {
"use strict";
Object.defineProperty(r2, "__esModule", { value: !0 }), r2.getWorkerTemplate = r2.generatedId = void 0, r2.generatedId = function() {
return "".concat(Date.now()).concat(Math.random().toString(36).substring(2, 9));
}, r2.getWorkerTemplate = function() {
return `(()=>{let e=new Map,o=new Map([["",()=>{throw"you didn't define a message-callback, please assign a callback by calling easyWorker.onMessage"}]]),t=({messageId:o,payload:t,method:n})=>{let a="pending",r=new Map,s=(t,s,l=[])=>{let c=a,i="progress"===t?"pending":t;if(!e.has(o)){let g="%c#"+o+" Message Not Found: %cThis means that the message was already resolved | rejected | canceled. To avoid this error, please make sure that you are not resolving | rejecting | canceling the same message twice. Also make sure that you are not reporting progress after the message was processed. Remember each message can handle his one cancelation by adding a handler with the %cmessage.onCancel%c method. To now more about this method, please check the documentation at: %chttps://www.npmjs.com/package/easy-web-worker#ieasywebworkermessageipayload--null-iresult--void %cTrying to process message:";console.error(g,"color: darkorange; font-size: 12px; font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;","color: lightblue; font-size: 10px; font-weight: bold;","font-weight: bold; color: darkorange;",{messageId:o,status:{current:c,target:i},method:n,action:s});return}let d={resolved:"onResolve",rejected:"onReject",canceled:"onCancel",worker_cancelation:"onCancel",pending:"onProgress"}[i],h=r.get(d);h?.forEach(e=>e(s,l));let w=!s.progress;w&&(r.get("onFinalize")?.forEach(e=>e(s,l)),e.delete(o)),self.postMessage({messageId:o,...s},l),a=i},l=(e,o=[])=>s("resolved",{resolved:{payload:void 0===e?[]:[e]}},o),c=(e,o=[])=>{s("rejected",{rejected:{reason:e}},o)},i=(e,o=[])=>s("worker_cancelation",{worker_cancelation:{reason:e}},o),g=(e,o,t=[])=>{s("progress",{progress:{percentage:e,payload:o}},t)},d=e=>o=>{r.has(e)||r.set(e,new Set);let t=r.get(e);return t.add(o),()=>t.delete(o)};return{messageId:o,method:n,payload:t,getStatus:()=>a,isPending:()=>"pending"===a,resolve:l,reject:c,cancel:i,reportProgress:g,onResolve:d("onResolve"),onReject:d("onReject"),onCancel:d("onCancel"),onProgress:d("onProgress"),onFinalize:d("onFinalize")}},n=(...e)=>{let[t,n]=e,a="string"==typeof t;if(a){let r=t,s=n;o.set(r,s);return}let l=t;o.set("",l)},a=()=>{let o=[...e.values()];o.forEach(e=>e.reject(Error("worker closed"))),self.close()};self.onmessage=n=>{let{data:a}=n,{messageId:r,cancelation:s}=a;if(s){let{reason:l}=s,c=e.get(r);c.cancel(l);return}let{method:i,execution:g}=n.data,{payload:d}=g,h=t({method:i,messageId:r,payload:d});e.set(r,h);let w=o.get(i||"");w(h,n)};let r=(...e)=>{self.importScripts(...e)};return{onMessage:n,close:a,importScripts:r}})()`;
};
}, 655: (e2, r2, t) => {
"use strict";
function n(e3) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e4) {
return typeof e4;
} : function(e4) {
return e4 && typeof Symbol == "function" && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
}, n(e3);
}
function o(e3, r3) {
for (var t2 = 0; t2 < r3.length; t2++) {
var n2 = r3[t2];
n2.enumerable = n2.enumerable || !1, n2.configurable = !0, "value" in n2 && (n2.writable = !0), Object.defineProperty(e3, a(n2.key), n2);
}
}
function i(e3, r3, t2) {
return r3 && o(e3.prototype, r3), t2 && o(e3, t2), Object.defineProperty(e3, "prototype", { writable: !1 }), e3;
}
function a(e3) {
var r3 = function(e4) {
if (n(e4) != "object" || !e4) return e4;
var r4 = e4[Symbol.toPrimitive];
if (r4 !== void 0) {
var t2 = r4.call(e4, "string");
if (n(t2) != "object") return t2;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(e4);
}(e3);
return n(r3) == "symbol" ? r3 : r3 + "";
}
Object.defineProperty(r2, "__esModule", { value: !0 }), r2.EasyWebWorkerMessage = void 0;
var c = t(806), s = t(920), u = i(function e3() {
(function(e4, r3) {
if (!(e4 instanceof r3)) throw new TypeError("Cannot call a class as a function");
})(this, e3), this.messageId = (0, s.generatedId)(), this.decoupledPromise = (0, c.createDecoupledPromise)(), this.decoupledPromise._cancel = this.decoupledPromise.promise.cancel;
});
r2.EasyWebWorkerMessage = u;
}, 600: (e2, r2) => {
"use strict";
function t(e3, r3) {
(r3 == null || r3 > e3.length) && (r3 = e3.length);
for (var t2 = 0, n = Array(r3); t2 < r3; t2++) n[t2] = e3[t2];
return n;
}
Object.defineProperty(r2, "__esModule", { value: !0 }), r2.createStaticEasyWebWorker = r2.StaticEasyWebWorker = void 0, r2.StaticEasyWebWorker = function(e3) {
var r3, n, o = (r3 = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map([["", function() {
throw "you didn't defined a message-callback, please assign a callback by calling easyWorker.onMessage";
}]]), self.onmessage = function(e4) {
var t2 = e4.data, o2 = t2.messageId, i2 = t2.cancelation;
if (i2) {
var a2 = i2.reason;
r3.get(o2).cancel(a2);
} else {
var c2 = e4.data, s = c2.method, u = function(e5) {
var t3 = e5.messageId, n2 = e5.payload, o3 = e5.method, i3 = "pending", a3 = /* @__PURE__ */ new Map(), c3 = function(e6, n3) {
var c4, s3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], u2 = i3, l = e6 === "progress" ? "pending" : e6;
if (r3.has(t3)) {
var f = { resolved: "onResolve", rejected: "onReject", canceled: "onCancel", worker_cancelation: "onCancel", pending: "onProgress" }[l], p = a3.get(f);
p == null || p.forEach(function(e7) {
return e7(n3, s3);
}), !n3.progress && ((c4 = a3.get("onFinalize")) === null || c4 === void 0 || c4.forEach(function(e7) {
return e7(n3, s3);
}), r3.delete(t3)), self.postMessage(Object.assign({ messageId: t3 }, n3), s3), i3 = l;
} else {
var d = "%c#" + t3 + " Message Not Found: %cThis means that the message was already resolved | rejected | canceled. To avoid this error, please make sure that you are not resolving | rejecting | canceling the same message twice. Also make sure that you are not reporting progress after the message was processed. Remember each message can handle his one cancelation by adding a handler with the %cmessage.onCancel%c method. To now more about this method, please check the documentation at: %chttps://www.npmjs.com/package/easy-web-worker#ieasywebworkermessageipayload--null-iresult--void %cTrying to process message:";
console.error(d, "color: darkorange; font-size: 12px; font-weight: bold;", "font-weight: normal;", "font-weight: bold;", "font-weight: normal;", "color: lightblue; font-size: 10px; font-weight: bold;", "font-weight: bold; color: darkorange;", { messageId: t3, status: { current: u2, target: l }, method: o3, action: n3 });
}
}, s2 = function(e6) {
return function(r4) {
a3.has(e6) || a3.set(e6, /* @__PURE__ */ new Set());
var t4 = a3.get(e6);
return t4.add(r4), function() {
return t4.delete(r4);
};
};
};
return { messageId: t3, method: o3, payload: n2, getStatus: function() {
return i3;
}, isPending: function() {
return i3 === "pending";
}, resolve: function(e6) {
return c3("resolved", { resolved: { payload: e6 === void 0 ? [] : [e6] } }, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []);
}, reject: function(e6) {
c3("rejected", { rejected: { reason: e6 } }, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []);
}, cancel: function(e6) {
return c3("worker_cancelation", { worker_cancelation: { reason: e6 } }, arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []);
}, reportProgress: function(e6, r4) {
c3("progress", { progress: { percentage: e6, payload: r4 } }, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []);
}, onResolve: s2("onResolve"), onReject: s2("onReject"), onCancel: s2("onCancel"), onProgress: s2("onProgress"), onFinalize: s2("onFinalize") };
}({ method: s, messageId: o2, payload: c2.execution.payload });
r3.set(o2, u), n.get(s || "")(u, e4);
}
}, { onMessage: function() {
for (var e4 = arguments.length, r4 = new Array(e4), t2 = 0; t2 < e4; t2++) r4[t2] = arguments[t2];
var o2 = r4[0], i2 = r4[1];
if (typeof o2 == "string") {
var a2 = o2, c2 = i2;
n.set(a2, c2);
} else {
var s = o2;
n.set("", s);
}
}, close: function() {
var e4;
(e4 = r3.values(), function(e5) {
if (Array.isArray(e5)) return t(e5);
}(e4) || function(e5) {
if (typeof Symbol != "undefined" && e5[Symbol.iterator] != null || e5["@@iterator"] != null) return Array.from(e5);
}(e4) || function(e5, r4) {
if (e5) {
if (typeof e5 == "string") return t(e5, r4);
var n2 = {}.toString.call(e5).slice(8, -1);
return n2 === "Object" && e5.constructor && (n2 = e5.constructor.name), n2 === "Map" || n2 === "Set" ? Array.from(e5) : n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? t(e5, r4) : void 0;
}
}(e4) || function() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}()).forEach(function(e5) {
return e5.reject(new Error("worker closed"));
}), self.close();
}, importScripts: function() {
var e4;
(e4 = self).importScripts.apply(e4, arguments);
} }), i = o.close, a = o.onMessage, c = o.importScripts;
this.close = i, this.onMessage = a, this.importScripts = c, e3 && a(e3);
}, r2.createStaticEasyWebWorker = function(e3) {
return new r2.StaticEasyWebWorker(e3);
};
}, 124: (e2, r2, t) => {
"use strict";
var n = Object.create ? function(e3, r3, t2, n2) {
n2 === void 0 && (n2 = t2);
var o2 = Object.getOwnPropertyDescriptor(r3, t2);
o2 && !("get" in o2 ? !r3.__esModule : o2.writable || o2.configurable) || (o2 = { enumerable: !0, get: function() {
return r3[t2];
} }), Object.defineProperty(e3, n2, o2);
} : function(e3, r3, t2, n2) {
n2 === void 0 && (n2 = t2), e3[n2] = r3[t2];
}, o = function(e3, r3) {
for (var t2 in e3) t2 === "default" || Object.prototype.hasOwnProperty.call(r3, t2) || n(r3, e3, t2);
};
Object.defineProperty(r2, "__esModule", { value: !0 }), r2.default = void 0;
var i = t(382);
Object.defineProperty(r2, "default", { enumerable: !0, get: function() {
return i.EasyWebWorker;
} }), o(t(382), r2), o(t(600), r2), o(t(41), r2);
}, 806: function(e2) {
var r2;
r2 = () => (() => {
"use strict";
var e3 = { 931: (e4, r4) => {
function t(e5) {
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e6) {
return typeof e6;
} : function(e6) {
return e6 && typeof Symbol == "function" && e6.constructor === Symbol && e6 !== Symbol.prototype ? "symbol" : typeof e6;
}, t(e5);
}
function n() {
return n = typeof Reflect != "undefined" && Reflect.get ? Reflect.get.bind() : function(e5, r5, t2) {
var n2 = function(e6, r6) {
for (; !Object.prototype.hasOwnProperty.call(e6, r6) && (e6 = s(e6)) !== null; ) ;
return e6;
}(e5, r5);
if (n2) {
var o2 = Object.getOwnPropertyDescriptor(n2, r5);
return o2.get ? o2.get.call(arguments.length < 3 ? e5 : t2) : o2.value;
}
}, n.apply(this, arguments);
}
function o(e5) {
var r5 = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return o = function(e6) {
if (e6 === null || (t2 = e6, Function.toString.call(t2).indexOf("[native code]") === -1)) return e6;
var t2;
if (typeof e6 != "function") throw new TypeError("Super expression must either be null or a function");
if (r5 !== void 0) {
if (r5.has(e6)) return r5.get(e6);
r5.set(e6, n2);
}
function n2() {
return i(e6, arguments, s(this).constructor);
}
return n2.prototype = Object.create(e6.prototype, { constructor: { value: n2, enumerable: !1, writable: !0, configurable: !0 } }), c(n2, e6);
}, o(e5);
}
function i(e5, r5, t2) {
return i = a() ? Reflect.construct.bind() : function(e6, r6, t3) {
var n2 = [null];
n2.push.apply(n2, r6);
var o2 = new (Function.bind.apply(e6, n2))();
return t3 && c(o2, t3.prototype), o2;
}, i.apply(null, arguments);
}
function a() {
if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) return !1;
if (typeof Proxy == "function") return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
})), !0;
} catch {
return !1;
}
}
function c(e5, r5) {
return c = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e6, r6) {
return e6.__proto__ = r6, e6;
}, c(e5, r5);
}
function s(e5) {
return s = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e6) {
return e6.__proto__ || Object.getPrototypeOf(e6);
}, s(e5);
}
Object.defineProperty(r4, "__esModule", { value: !0 }), r4.CancelableAbortController = void 0;
var u = function(e5) {
(function(e6, r6) {
if (typeof r6 != "function" && r6 !== null) throw new TypeError("Super expression must either be null or a function");
e6.prototype = Object.create(r6 && r6.prototype, { constructor: { value: e6, writable: !0, configurable: !0 } }), Object.defineProperty(e6, "prototype", { writable: !1 }), r6 && c(e6, r6);
})(f, e5);
var r5, o2, i2, u2, l = (i2 = f, u2 = a(), function() {
var e6, r6 = s(i2);
if (u2) {
var n2 = s(this).constructor;
e6 = Reflect.construct(r6, arguments, n2);
} else e6 = r6.apply(this, arguments);
return function(e7, r7) {
if (r7 && (t(r7) === "object" || typeof r7 == "function")) return r7;
if (r7 !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
return function(e8) {
if (e8 === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e8;
}(e7);
}(this, e6);
});
function f() {
var e6;
return function(e7, r6) {
if (!(e7 instanceof r6)) throw new TypeError("Cannot call a class as a function");
}(this, f), (e6 = l.call(this))._subscriptions = /* @__PURE__ */ new Set(), e6.signal.subscribe = function() {
if (!e6._subscriptions) throw new Error("AbortController was already aborted or disposed.");
for (var r6 = arguments.length, t2 = new Array(r6), n2 = 0; n2 < r6; n2++) t2[n2] = arguments[n2];
var o3 = t2[0], i3 = t2[1], a2 = t2[2], c2 = typeof o3 == "string" ? o3 : "abort", s2 = typeof o3 == "string" ? i3 : o3, u3 = typeof o3 == "string" ? a2 : i3;
e6.signal.addEventListener(c2, s2, u3);
var l2 = function() {
e6.signal.removeEventListener(c2, s2, u3);
};
return e6._subscriptions.add(l2), l2;
}, e6;
}
return r5 = f, (o2 = [{ key: "subscriptions", get: function() {
var e6;
return Array.from((e6 = this._subscriptions) !== null && e6 !== void 0 ? e6 : []);
} }, { key: "abort", value: function() {
n(s(f.prototype), "abort", this).call(this), this.dispose();
} }, { key: "dispose", value: function() {
var e6;
(e6 = this._subscriptions) === null || e6 === void 0 || e6.forEach(function(e7) {
return e7();
}), this._subscriptions = null;
} }]) && function(e6, r6) {
for (var n2 = 0; n2 < r6.length; n2++) {
var o3 = r6[n2];
o3.enumerable = o3.enumerable || !1, o3.configurable = !0, "value" in o3 && (o3.writable = !0), Object.defineProperty(e6, (i3 = function(e7) {
if (t(e7) !== "object" || e7 === null) return e7;
var r7 = e7[Symbol.toPrimitive];
if (r7 !== void 0) {
var n3 = r7.call(e7, "string");
if (t(n3) !== "object") return n3;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(e7);
}(o3.key), t(i3) === "symbol" ? i3 : String(i3)), o3);
}
var i3;
}(r5.prototype, o2), Object.defineProperty(r5, "prototype", { writable: !1 }), f;
}(o(AbortController));
r4.CancelableAbortController = u;
}, 399: (e4, r4, t) => {
function n(e5) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e6) {
return typeof e6;
} : function(e6) {
return e6 && typeof Symbol == "function" && e6.constructor === Symbol && e6 !== Symbol.prototype ? "symbol" : typeof e6;
}, n(e5);
}
Object.defineProperty(r4, "__esModule", { value: !0 }), r4.CancelablePromise = void 0;
var o, i = t(872), a = t(716);
function c(e5) {
if (e5 === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e5;
}
function s() {
return s = typeof Reflect != "undefined" && Reflect.get ? Reflect.get.bind() : function(e5, r5, t2) {
var n2 = function(e6, r6) {
for (; !Object.prototype.hasOwnProperty.call(e6, r6) && (e6 = d(e6)) !== null; ) ;
return e6;
}(e5, r5);
if (n2) {
var o2 = Object.getOwnPropertyDescriptor(n2, r5);
return o2.get ? o2.get.call(arguments.length < 3 ? e5 : t2) : o2.value;
}
}, s.apply(this, arguments);
}
function u(e5) {
var r5 = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return u = function(e6) {
if (e6 === null || (t2 = e6, Function.toString.call(t2).indexOf("[native code]") === -1)) return e6;
var t2;
if (typeof e6 != "function") throw new TypeError("Super expression must either be null or a function");
if (r5 !== void 0) {
if (r5.has(e6)) return r5.get(e6);
r5.set(e6, n2);
}
function n2() {
return l(e6, arguments, d(this).constructor);
}
return n2.prototype = Object.create(e6.prototype, { constructor: { value: n2, enumerable: !1, writable: !0, configurable: !0 } }), p(n2, e6);
}, u(e5);
}
function l(e5, r5, t2) {
return l = f() ? Reflect.construct.bind() : function(e6, r6, t3) {
var n2 = [null];
n2.push.apply(n2, r6);
var o2 = new (Function.bind.apply(e6, n2))();
return t3 && p(o2, t3.prototype), o2;
}, l.apply(null, arguments);
}
function f() {
if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) return !1;
if (typeof Proxy == "function") return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
})), !0;
} catch {
return !1;
}
}
function p(e5, r5) {
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e6, r6) {
return e6.__proto__ = r6, e6;
}, p(e5, r5);
}
function d(e5) {
return d = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e6) {
return e6.__proto__ || Object.getPrototypeOf(e6);
}, d(e5);
}
var h = function(e5) {
(function(e6, r6) {
if (typeof r6 != "function" && r6 !== null) throw new TypeError("Super expression must either be null or a function");
e6.prototype = Object.create(r6 && r6.prototype, { constructor: { value: e6, writable: !0, configurable: !0 } }), Object.defineProperty(e6, "prototype", { writable: !1 }), r6 && p(e6, r6);
})(l2, e5);
var r5, t2, i2, a2, u2 = (i2 = l2, a2 = f(), function() {
var e6, r6 = d(i2);
if (a2) {
var t3 = d(this).constructor;
e6 = Reflect.construct(r6, arguments, t3);
} else e6 = r6.apply(this, arguments);
return function(e7, r7) {
if (r7 && (n(r7) === "object" || typeof r7 == "function")) return r7;
if (r7 !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
return c(e7);
}(this, e6);
});
function l2(e6) {
var r6, t3, n2, i3, a3, f2;
return function(e7, r7) {
if (!(e7 instanceof r7)) throw new TypeError("Cannot call a class as a function");
}(this, l2), (i3 = u2.call(this, function(e7, r7) {
a3 = e7, f2 = r7;
}))[o] = !0, i3.status = "pending", i3.cancelCallbacks = /* @__PURE__ */ new Set(), i3.ownCancelCallbacks = /* @__PURE__ */ new Set(), i3.onProgressCallbacks = /* @__PURE__ */ new Set(), i3.disposeCallbacks = function() {
i3.cancelCallbacks = /* @__PURE__ */ new Set(), i3.ownCancelCallbacks = /* @__PURE__ */ new Set(), i3.onProgressCallbacks = /* @__PURE__ */ new Set();
}, i3.subscribeToOwnCancelEvent = function(e7) {
return i3.ownCancelCallbacks.add(e7), function() {
i3.ownCancelCallbacks.delete(e7);
};
}, i3.cancel = function(e7) {
if (i3.status !== "pending") return c(i3);
i3.status = "canceled";
var r7 = e7 === void 0 ? new Error("Promise canceled") : e7;
return i3.ownCancelCallbacks.forEach(function(e8) {
return e8(r7);
}), i3.cancelCallbacks.forEach(function(e8) {
return e8(r7);
}), i3._reject(r7), i3.disposeCallbacks(), c(i3);
}, i3.onCancel = function(e7) {
var r7 = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).signal;
return i3.cancelCallbacks.add(e7), r7 == null || r7.subscribe(function() {
i3.cancelCallbacks.delete(e7);
}), c(i3);
}, i3.onProgress = function(e7) {
var r7 = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).signal;
return i3.onProgressCallbacks.add(e7), r7 == null || r7.subscribe(function() {
i3.onProgressCallbacks.delete(e7);
}), c(i3);
}, i3.reportProgress = function(e7, r7) {
return i3.onProgressCallbacks.forEach(function(t4) {
return t4(e7, r7);
}), c(i3);
}, i3.createChildPromise = function() {
var e7, r7, t4 = new l2(function(t5, n3, o2) {
e7 = t5, r7 = n3;
});
return t4.onProgressCallbacks = i3.onProgressCallbacks, t4.onCancel(function(e8) {
i3.cancel(e8);
}), { promise: t4, resolve: e7, reject: r7 };
}, i3._resolve = a3, i3._reject = f2, e6(function(e7) {
i3.status = "resolved", i3.disposeCallbacks(), i3._resolve(e7);
}, function(e7) {
i3.status = "rejected", i3.disposeCallbacks(), i3._reject(e7);
}, { cancel: function(e7) {
return i3.cancel(e7);
}, onCancel: function(e7) {
return i3.subscribeToOwnCancelEvent(e7);
}, onProgress: function(e7) {
return i3.onProgress(e7), function() {
i3.onProgressCallbacks.delete(e7);
};
}, reportProgress: function(e7, r7) {
i3.reportProgress(e7, r7);
} }), i3.then = function(e7, t4) {
var n3 = i3.createChildPromise(), o2 = n3.promise, a4 = n3.resolve, u3 = n3.reject;
return s((r6 = c(i3), d(l2.prototype)), "then", r6).call(r6, e7, t4).then(a4, u3), o2;
}, i3.catch = function(e7) {
var r7 = i3.createChildPromise(), n3 = r7.promise, o2 = r7.resolve, a4 = r7.reject;
return s((t3 = c(i3), d(l2.prototype)), "catch", t3).call(t3, e7).then(o2, a4), n3;
}, i3.finally = function(e7) {
var r7 = i3.createChildPromise(), t4 = r7.promise, o2 = r7.resolve, a4 = r7.reject;
return s((n2 = c(i3), d(l2.prototype)), "finally", n2).call(n2, e7).then(o2, a4), t4;
}, i3;
}
return r5 = l2, t2 = [{ key: "resolve", value: function(e6) {
return new l2(function(r6) {
return r6(e6);
});
} }], t2 && function(e6, r6) {
for (var t3 = 0; t3 < r6.length; t3++) {
var o2 = r6[t3];
o2.enumerable = o2.enumerable || !1, o2.configurable = !0, "value" in o2 && (o2.writable = !0), Object.defineProperty(e6, (i3 = function(e7) {
if (n(e7) !== "object" || e7 === null) return e7;
var r7 = e7[Symbol.toPrimitive];
if (r7 !== void 0) {
var t4 = r7.call(e7, "string");
if (n(t4) !== "object") return t4;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(e7);
}(o2.key), n(i3) === "symbol" ? i3 : String(i3)), o2);
}
var i3;
}(r5, t2), Object.defineProperty(r5, "prototype", { writable: !1 }), l2;
}(u(Promise));
r4.CancelablePromise = h, o = i.promise_identifier, h.reject = function(e5) {
return new h(function(r5, t2) {
return t2(e5);
});
}, h.canceled = function(e5) {
return new h(function(r5, t2, n2) {
return (0, n2.cancel)(e5);
});
}, h.race = function(e5) {
return new h(function(r5, t2, n2) {
var o2 = n2.onCancel, i2 = n2.cancel;
e5.forEach(function(e6) {
var n3 = (0, a.toCancelablePromise)(e6);
o2(function(e7) {
n3.cancel(e7);
}), n3.then(r5, function(e7) {
n3.status !== "canceled" ? t2(e7) : i2(e7);
});
});
});
}, h.all = function(e5) {
return new h(function(r5, t2, n2) {
var o2 = n2.onCancel, i2 = n2.cancel, c2 = /* @__PURE__ */ new Map(), s2 = e5.length, u2 = 0;
e5.forEach(function(e6) {
var n3 = (0, a.toCancelablePromise)(e6);
c2.set(n3, null), o2(function(e7) {
n3.cancel(e7);
}), n3.then(function(e7) {
u2++, c2.set(n3, e7), u2 === s2 && r5(Array.from(c2.values()));
}, function(e7) {
n3.status !== "canceled" ? t2(e7) : i2(e7);
});
});
});
}, h.allSettled = function(e5) {
return new h(function(r5, t2, n2) {
var o2 = n2.onCancel, i2 = /* @__PURE__ */ new Map(), c2 = e5.length, s2 = 0;
e5.forEach(function(e6) {
var t3 = (0, a.toCancelablePromise)(e6);
i2.set(t3, null), o2(function(e7) {
t3.cancel(e7);
}), t3.then(function(e7) {
i2.set(t3, { status: "fulfilled", value: e7 });
}, function(e7) {
i2.set(t3, { status: t3.status === "canceled" ? "canceled" : "rejected", reason: e7 });
}).finally(function() {
++s2 === c2 && r5(Array.from(i2.values()));
});
});
});
}, h.prototype.constructor = Promise;
}, 716: (e4, r4, t) => {
function n(e5) {
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e6) {
return typeof e6;
} : function(e6) {
return e6 && typeof Symbol == "function" && e6.constructor === Symbol && e6 !== Symbol.prototype ? "symbol" : typeof e6;
}, n(e5);
}
Object.defineProperty(r4, "__esModule", { value: !0 }), r4.toCancelablePromise = r4.isPromise = r4.groupAsCancelablePromise = r4.createDecoupledPromise = r4.allSettledCancelable = void 0;
var o = t(872), i = t(335), a = t(399);
function c() {
c = function() {
return e5;
};
var e5 = {}, r5 = Object.prototype, t2 = r5.hasOwnProperty, o2 = Object.defineProperty || function(e6, r6, t3) {
e6[r6] = t3.value;
}, i2 = typeof Symbol == "function" ? Symbol : {}, a2 = i2.iterator || "@@iterator", s2 = i2.asyncIterator || "@@asyncIterator", u2 = i2.toStringTag || "@@toStringTag";
function l2(e6, r6, t3) {
return Object.defineProperty(e6, r6, { value: t3, enumerable: !0, configurable: !0, writable: !0 }), e6[r6];
}
try {
l2({}, "");
} catch {
l2 = function(e7, r6, t3) {
return e7[r6] = t3;
};
}
function f2(e6, r6, t3, n2) {
var i3 = r6 && r6.prototype instanceof h ? r6 : h, a3 = Object.create(i3.prototype), c2 = new x(n2 || []);
return o2(a3, "_invoke", { value: j(e6, t3, c2) }), a3;
}
function p(e6, r6, t3) {
try {
return { type: "normal", arg: e6.call(r6, t3) };
} catch (e7) {
return { type: "throw", arg: e7 };
}
}
e5.wrap = f2;
var d = {};
function h() {
}
function v() {
}
function y() {
}
var m = {};
l2(m, a2, function() {
return this;
});
var g = Object.getPrototypeOf, b = g && g(g(C([])));
b && b !== r5 && t2.call(b, a2) && (m = b);
var w = y.prototype = h.prototype = Object.create(m);
function k(e6) {
["next", "throw", "return"].forEach(function(r6) {
l2(e6, r6, function(e7) {
return this._invoke(r6, e7);
});
});
}
function P(e6, r6) {
function i3(o3, a4, c2, s3) {
var u3 = p(e6[o3], e6, a4);
if (u3.type !== "throw") {
var l3 = u3.arg, f3 = l3.value;
return f3 && n(f3) == "object" && t2.call(f3, "__await") ? r6.resolve(f3.__await).then(function(e7) {
i3("next", e7, c2, s3);
}, function(e7) {
i3("throw", e7, c2, s3);
}) : r6.resolve(f3).then(function(e7) {
l3.value = e7, c2(l3);
}, function(e7) {
return i3("throw", e7, c2, s3);
});
}
s3(u3.arg);
}
var a3;
o2(this, "_invoke", { value: function(e7, t3) {
function n2() {
return new r6(function(r7, n3) {
i3(e7, t3, r7, n3);
});
}
return a3 = a3 ? a3.then(n2, n2) : n2();
} });
}
function j(e6, r6, t3) {
var n2 = "suspendedStart";
return function(o3, i3) {
if (n2 === "executing") throw new Error("Generator is already running");
if (n2 === "completed") {
if (o3 === "throw") throw i3;
return { value: void 0, done: !0 };
}
for (t3.method = o3, t3.arg = i3; ; ) {
var a3 = t3.delegate;
if (a3) {
var c2 = O(a3, t3);
if (c2) {
if (c2 === d) continue;
return c2;
}
}
if (t3.method === "next") t3.sent = t3._sent = t3.arg;
else if (t3.method === "throw") {
if (n2 === "suspendedStart") throw n2 = "completed", t3.arg;
t3.dispatchException(t3.arg);
} else t3.method === "return" && t3.abrupt("return", t3.arg);
n2 = "executing";
var s3 = p(e6, r6, t3);
if (s3.type === "normal") {
if (n2 = t3.done ? "completed" : "suspendedYield", s3.arg === d) continue;
return { value: s3.arg, done: t3.done };
}
s3.type === "throw" && (n2 = "completed", t3.method = "throw", t3.arg = s3.arg);
}
};
}
function O(e6, r6) {
var t3 = r6.method, n2 = e6.iterator[t3];
if (n2 === void 0) return r6.delegate = null, t3 === "throw" && e6.iterator.return && (r6.method = "return", r6.arg = void 0, O(e6, r6), r6.method === "throw") || t3 !== "return" && (r6.method = "throw", r6.arg = new TypeError("The iterator does not provide a '" + t3 + "' method")), d;
var o3 = p(n2, e6.iterator, r6.arg);
if (o3.type === "throw") return r6.method = "throw", r6.arg = o3.arg, r6.delegate = null, d;
var i3 = o3.arg;
return i3 ? i3.done ? (r6[e6.resultName] = i3.value, r6.next = e6.nextLoc, r6.method !== "return" && (r6.method = "next", r6.arg = void 0), r6.delegate = null, d) : i3 : (r6.method = "throw", r6.arg = new TypeError("iterator result is not an object"), r6.delegate = null, d);
}
function E(e6) {
var r6 = { tryLoc: e6[0] };
1 in e6 && (r6.catchLoc = e6[1]), 2 in e6 && (r6.finallyLoc = e6[2], r6.afterLoc = e6[3]), this.tryEntries.push(r6);
}
function _(e6) {
var r6 = e6.completion || {};
r6.type = "normal", delete r6.arg, e6.completion = r6;
}
function x(e6) {
this.tryEntries = [{ tryLoc: "root" }], e6.forEach(E, this), this.reset(!0);
}
function C(e6) {
if (e6) {
var r6 = e6[a2];
if (r6) return r6.call(e6);
if (typeof e6.next == "function") return e6;
if (!isNaN(e6.length)) {
var n2 = -1, o3 = function r7() {
for (; ++n2 < e6.length; ) if (t2.call(e6, n2)) return r7.value = e6[n2], r7.done = !1, r7;
return r7.value = void 0, r7.done = !0, r7;
};
return o3.next = o3;
}
}
return { next: S };
}
function S() {
return { value: void 0, done: !0 };
}
return v.prototype = y, o2(w, "constructor", { value: y, configurable: !0 }), o2(y, "constructor", { value: v, configurable: !0 }), v.displayName = l2(y, u2, "GeneratorFunction"), e5.isGeneratorFunction = function(e6) {
var r6 = typeof e6 == "function" && e6.constructor;
return !!r6 && (r6 === v || (r6.displayName || r6.name) === "GeneratorFunction");
}, e5.mark = function(e6) {
return Object.setPrototypeOf ? Object.setPrototypeOf(e6, y) : (e6.__proto__ = y, l2(e6, u2, "GeneratorFunction")), e6.prototype = Object.create(w), e6;
}, e5.awrap = function(e6) {
return { __await: e6 };
}, k(P.prototype), l2(P.prototype, s2, function() {
return this;
}), e5.AsyncIterator = P, e5.async = function(r6, t3, n2, o3, i3) {
i3 === void 0 && (i3 = Promise);
var a3 = new P(f2(r6, t3, n2, o3), i3);
return e5.isGeneratorFunction(t3) ? a3 : a3.next().then(function(e6) {
return e6.done ? e6.value : a3.next();
});
}, k(w), l2(w, u2, "Generator"), l2(w, a2, function() {
return this;
}), l2(w, "toString", function() {
return "[object Generator]";
}), e5.keys = function(e6) {
var r6 = Object(e6), t3 = [];
for (var n2 in r6) t3.push(n2);
return t3.reverse(), function e7() {
for (; t3.length; ) {
var n3 = t3.pop();
if (n3 in r6) return e7.value = n3, e7.done = !1, e7;
}
return e7.done = !0, e7;
};
}, e5.values = C, x.prototype = { constructor: x, reset: function(e6) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(_), !e6) for (var r6 in this) r6.charAt(0) === "t" && t2.call(this, r6) && !isNaN(+r6.slice(1)) && (this[r6] = void 0);
}, stop: function() {
this.done = !0;
var e6 = this.tryEntries[0].completion;
if (e6.type === "throw") throw e6.arg;
return this.rval;
}, dispatchException: function(e6) {
if (this.done) throw e6;
var r6 = this;
function n2(t3, n3) {
return a3.type = "throw", a3.arg = e6, r6.next = t3, n3 && (r6.method = "next", r6.arg = void 0), !!n3;
}
for (var o3 = this.tryEntries.length - 1; o3 >= 0; --o3) {
var i3 = this.tryEntries[o3], a3 = i3.completion;
if (i3.tryLoc === "root") return n2("end");
if (i3.tryLoc <= this.prev) {
var c2 = t2.call(i3, "catchLoc"), s3 = t2.call(i3, "finallyLoc");
if (c2 && s3) {
if (this.prev < i3.catchLoc) return n2(i3.catchLoc, !0);
if (this.prev < i3.finallyLoc) return n2(i3.finallyLoc);
} else if (c2) {
if (this.prev < i3.catchLoc) return n2(i3.catchLoc, !0);
} else {
if (!s3) throw new Error("try statement without catch or finally");
if (this.prev < i3.finallyLoc) return n2(i3.finallyLoc);
}
}
}
}, abrupt: function(e6, r6) {
for (var n2 = this.tryEntries.length - 1; n2 >= 0; --n2) {
var o3 = this.tryEntries[n2];
if (o3.tryLoc <= this.prev && t2.call(o3, "finallyLoc") && this.prev < o3.finallyLoc) {
var i3 = o3;
break;
}
}
i3 && (e6 === "break" || e6 === "continue") && i3.tryLoc <= r6 && r6 <= i3.finallyLoc && (i3 = null);
var a3 = i3 ? i3.completion : {};
return a3.type = e6, a3.arg = r6, i3 ? (this.method = "next", this.next = i3.finallyLoc, d) : this.complete(a3);
}, complete: function(e6, r6) {
if (e6.type === "throw") throw e6.arg;
return e6.type === "break" || e6.type === "continue" ? this.next = e6.arg : e6.type === "return" ? (this.rval = this.arg = e6.arg, this.method = "return", this.next = "end") : e6.type === "normal" && r6 && (this.next = r6), d;
}, finish: function(e6) {
for (var r6 = this.tryEntries.length - 1; r6 >= 0; --r6) {
var t3 = this.tryEntries[r6];
if (t3.finallyLoc === e6) return this.complete(t3.completion, t3.afterLoc), _(t3), d;
}
}, catch: function(e6) {
for (var r6 = this.tryEntries.length - 1; r6 >= 0; --r6) {
var t3 = this.tryEntries[r6];
if (t3.tryLoc === e6) {
var n2 = t3.completion;
if (n2.type === "throw") {
var o3 = n2.arg;
_(t3);
}
return o3;
}
}
throw new Error("illegal catch attempt");
}, delegateYield: function(e6, r6, t3) {
return this.delegate = { iterator: C(e6), resultName: r6, nextLoc: t3 }, this.method === "next" && (this.arg = void 0), d;
} }, e5;
}
function s(e5, r5) {
(r5 == null || r5 > e5.length) && (r5 = e5.length);
for (var t2 = 0, n2 = new Array(r5); t2 < r5; t2++) n2[t2] = e5[t2];
return n2;
}
r4.createDecoupledPromise = function() {
var e5, r5, t2, n2 = new a.CancelablePromise(function(n3, o2, i2) {
e5 = n3, r5 = o2, t2 = i2;
});
return Object.assign(Object.assign({ resolve: e5, reject: r5 }, t2), { promise: n2 });
};
var u = function e5(r5) {
if ((0, o.isCancelablePromise)(r5)) return r5;
if (typeof r5 == "function") return e5(r5());
if (!f(r5)) return new a.CancelablePromise(function(e6) {
return e6(r5);
});
var t2, n2, i2 = new a.CancelablePromise(function(e6, o2, i3) {
t2 = e6, n2 = o2, r5.then(t2, n2);
});
return i2.onCancel(function(e6) {
n2(e6);
}), i2;
};
r4.toCancelablePromise = u;
var l = function(e5) {
var r5 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (!e5.length) return null;
var t2, n2 = r5.maxConcurrent, o2 = n2 === void 0 ? 8 : n2, i2 = r5.executeInOrder, c2 = i2 !== void 0 && i2, l2 = r5.beforeEachCallback, f2 = l2 === void 0 ? null : l2, p = r5.afterEachCallback, d = p === void 0 ? null : p, h = r5.onQueueEmptyCallback, v = h === void 0 ? null : h, y = function(e6) {
if (Array.isArray(e6)) return s(e6);
}(t2 = e5) || function(e6) {
if (typeof Symbol != "undefined" && e6[Symbol.iterator] != null || e6["@@iterator"] != null) return Array.from(e6);
}(t2) || function(e6, r6) {
if (e6) {
if (typeof e6 == "string") return s(e6, r6);
var t3 = Object.prototype.toString.call(e6).slice(8, -1);
return t3 === "Object" && e6.constructor && (t3 = e6.constructor.name), t3 === "Map" || t3 === "Set" ? Array.from(e6) : t3 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t3) ? s(e6, r6) : void 0;
}
}(t2) || function() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}(), m = [];
return new a.CancelablePromise(function(r6, t3, n3) {
(function r7() {
if (y.length) {
var t4 = y.splice(0, o2).map(function(r8) {
var t5 = typeof r8 == "function" ? r8() : r8;
f2 == null || f2();
var o3 = u(t5), i3 = n3.onCancel(function(e6) {
o3.cancel(e6);
});
return o3.then(function(r9) {
var t6, o4;
i3(), m.push(r9), d == null || d(r9), n3.reportProgress(((t6 = m.length) !== null && t6 !== void 0 ? t6 : 1) / ((o4 = e5.length) !== null && o4 !== void 0 ? o4 : 1) * 100);
}), c2 ? o3.then(function(e6) {
return e6;
}) : o3;
});
return Promise.all(t4).then(function() {
return r7();
});
}
})().then(function() {
v == null || v(m), r6(m);
});
});
};
r4.groupAsCancelablePromise = l;
var f = function(e5) {
return Promise.resolve(e5) === e5;
};
r4.isPromise = f, r4.allSettledCancelable = function(e5) {
var r5 = [], t2 = e5.map(function(e6) {
var t3 = u(e6);
return r5.push(t3), (0, i.tryCatchPromise)(function() {
return t3;
}).then(function(e7) {
return { error: e7.error, result: e7.result, promise: t3 };
});
}), n2 = l(r5);
return new a.CancelablePromise(function(e6, r6, o2) {
return i2 = void 0, a2 = c().mark(function r7() {
var i3, a3;
return c().wrap(function(r8) {
for (; ; ) switch (r8.prev = r8.next) {
case 0:
return i3 = o2.onCancel(n2.cancel), r8.next = 3, Promise.all(t2);
case 3:
a3 = r8.sent, i3(), e6(a3);
case 6:
case "end":
return r8.stop();
}
}, r7);
}), new (i2 || (i2 = Promise))(function(e7, r7) {
function t3(e8) {
try {
o3(a2.next(e8));
} catch (e9) {
r7(e9);
}
}
function n3(e8) {
try {
o3(a2.throw(e8));
} catch (e9) {
r7(e9);
}
}
function o3(r8) {
var o4;
r8.done ? e7(r8.value) : (o4 = r8.value, o4 instanceof i2 ? o4 : new i2(function(e8) {
e8(o4);
})).then(t3, n3);
}
o3((a2 = a2.apply(void 0, [])).next());
});
var i2, a2;
});
};
}, 522: (e4, r4, t) => {
Object.defineProperty(r4, "__esModule", { value: !0 });
var n = t(399);
Object.keys(n).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (e5 in r4 && r4[e5] === n[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return n[e5];
} }));
});
var o = t(716);
Object.keys(o).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (e5 in r4 && r4[e5] === o[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return o[e5];
} }));
});
var i = t(931);
Object.keys(i).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (e5 in r4 && r4[e5] === i[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return i[e5];
} }));
});
}, 872: (e4, r4) => {
Object.defineProperty(r4, "__esModule", { value: !0 }), r4.promise_identifier = r4.isCancelablePromise = void 0;
var t = Symbol("promise_identifier");
r4.promise_identifier = t, r4.isCancelablePromise = function(e5) {
return !!(e5 != null && e5[t]);
};
}, 991: (e4, r4, t) => {
Object.defineProperty(r4, "__esModule", { value: !0 });
var n = { isCancelablePromise: !0 };
Object.defineProperty(r4, "isCancelablePromise", { enumerable: !0, get: function() {
return a.isCancelablePromise;
} });
var o = t(522);
Object.keys(o).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (Object.prototype.hasOwnProperty.call(n, e5) || e5 in r4 && r4[e5] === o[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return o[e5];
} }));
});
var i = t(335);
Object.keys(i).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (Object.prototype.hasOwnProperty.call(n, e5) || e5 in r4 && r4[e5] === i[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return i[e5];
} }));
});
var a = t(872);
}, 335: (e4, r4, t) => {
Object.defineProperty(r4, "__esModule", { value: !0 });
var n = t(969);
Object.keys(n).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (e5 in r4 && r4[e5] === n[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return n[e5];
} }));
});
}, 969: (e4, r4, t) => {
Object.defineProperty(r4, "__esModule", { value: !0 });
var n = t(948);
Object.keys(n).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (e5 in r4 && r4[e5] === n[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return n[e5];
} }));
});
var o = t(667);
Object.keys(o).forEach(function(e5) {
e5 !== "default" && e5 !== "__esModule" && (e5 in r4 && r4[e5] === o[e5] || Object.defineProperty(r4, e5, { enumerable: !0, get: function() {
return o[e5];
} }));
});
}, 948: (e4, r4, t) => {
Object.defineProperty(r4, "__esModule", { value: !0 }), r4.tryCatchPromise = r4.tryCatch = void 0;
var n = t(872), o = t(522);
r4.tryCatch = function(e5) {
var r5 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t2 = r5.defaultResult, n2 = t2 === void 0 ? null : t2, o2 = r5.exceptionHandlingType, i = o2 === void 0 ? "error" : o2;
try {
return { error: null, result: e5() };
} catch (e6) {
return i !== "ignore" && console[i](e6), { error: e6, result: n2 };
}
}, r4.tryCatchPromise = function(e5, r5) {
var t2 = r5 || {}, i = t2.defaultResult, a = i === void 0 ? null : i, c = t2.exceptionHandlingType, s = c === void 0 ? "error" : c, u = t2.ignoreCancel, l = u === void 0 || u, f = null, p = null, d = function(e6) {
p = e6, s != "ignore" && ((f == null ? void 0 : f.status) === "canceled" && l || console[s](p));
};
try {
if ((0, n.isCancelablePromise)(e5)) return (f = e5).then(function(e6) {
return { error: null, result: e6, promise: f };
}).catch(function(e6) {
return d(e6), { error: e6, result: a, promise: f };
});
var h = e5();
return h === void 0 ? Promise.reject(Error("tryCatchPromise: callback parameter must return a value () => promise")) : (f = (0, n.isCancelablePromise)(h) ? h : (0, o.toCancelablePromise)(h)).then(function(e6) {
return { error: null, result: e6, promise: f };
}).catch(function(e6) {
return d(e6), { error: e6, result: a, promise: f };
});
} catch (e6) {
return d(e6), Promise.resolve({ error: p, result: a, promise: f });
}
};
}, 667: (e4, r4) => {
Object.defineProperty(r4, "__esModule", { value: !0 });
} }, r3 = {};
return function t(n) {
var o = r3[n];
if (o !== void 0) return o.exports;
var i = r3[n] = { exports: {} };
return e3[n](i, i.exports, t), i.exports;
}(991);
})(), e2.exports = r2();
} }, r = {}, function t(n) {
var o = r[n];
if (o !== void 0) return o.exports;
var i = r[n] = { exports: {} };
return e[n].call(i.exports, i, i.exports, t), i.exports;
}(124);
var e, r;
});
}
});
 
// src-copilot/plugin.js
init_process();
 
// inline-html:/home/deban/Documents/Projects/my-amplenote-plugins-v2/src-copilot/embed/chat.html
var chat_default = `<html lang="en">
<head>
<title>Copilot Chat</title>
</head>
<body>
<div class="app-container"></div>
<script>(() => {
var __defProp = Object.defineProperty;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
var __esm = (fn, res) => function() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
 
// node_modules/esbuild-plugins-node-modules-polyfill/globals/process.js
var init_process = __esm({
"node_modules/esbuild-plugins-node-modules-polyfill/globals/process.js"() {
}
});
 
// src-copilot/embed/chat.jsx
init_process();
 
// common-utils/dynamic-import-esm.js
init_process();
 
// package.json
var package_default = {
name: "amplenote-plugin-dev-env",
author: "debajandhar12",
version: "1.0.0",
type: "module",
repository: "https://github.com/debanjandhar12/my-amplenote-plugins-v2",
dependencies: {
"@debanjandhar12/markmap-lib": "0.17.0-mod.3",
"@debanjandhar12/markmap-toolbar": "0.17.0-mod.3",
"@debanjandhar12/markmap-view": "0.17.0-mod.3",
"date-fns": "^3.6.0",
"lodash-es": "^4.17.21",
luxon: "^3.4.4",
"@yiuayiu/telegram-markdown-escape": "^0.0.2-1",
"@omnivore-app/api": "^1.0.4",
"markdown-it": "^14.1.0",
"remark-gfm": "4.0.0",
"remark-parse": "11.0.0",
"remark-frontmatter": "5.0.0",
unified: "11.0.0",
"unist-util-visit": "5.0.0",
"unist-util-visit-parents": "6.0.1",
"mdast-util-to-string": "4.0.0",
"d3-svg-to-png": "^0.3.1",
"chart.js": "^4.4.3",
fparser: "^3.1.0",
nanoid: "^5.0.7",
zod: "^3.23.8",
react: "18.2.0",
"react-dom": "18.2.0",
"@assistant-ui/react-markdown": "0.7.10",
"emoji-mart": "^5.6.0",
"@emoji-mart/data": "^1.2.1",
"@emoji-mart/react": "^1.1.1",
"@pinecone-database/pinecone": "4.0.0",
"react-string-diff": "0.2.0",
"@radix-ui/themes": "3.1.6",
"@assistant-ui/react": "0.7.38",
"@radix-ui/react-icons": "1.3.2",
tributejs: "5.1.3",
ai: "4.1.0",
"@ai-sdk/groq": "1.1.0",
"@ai-sdk/anthropic": "1.1.0",
"@ai-sdk/openai": "1.1.0",
"@ai-sdk/google": "1.1.0",
"ollama-ai-provider": "1.2.0",
"easy-web-worker": "7.0.1",
"fuse.js": "7.0.0"
},
devDependencies: {
"@types/jest": "^29.5.0",
cors: "^2.8.5",
"cross-fetch": "^4.0.0",
dotenv: "^16.0.3",
esbuild: "0.23.1",
"esbuild-jest2": "0.6.7",
"esbuild-plugins-node-modules-polyfill": "1.6.6",
express: "^5.0.1",
"isomorphic-fetch": "^3.0.0",
jest: "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
jsdom: "^24.1.0",
"make-synchronous": "^1.0.0",
playwright: "^1.49.1",
"@playwright/test": "^1.49.1",
"core-js": "^3.38.1",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "^6.5.0",
"esbuild-plugin-external-global": "^1.0.1",
"@huggingface/transformers": "3.2.4",
idb: "^8.0.1"
},
scripts: {
test: "jest --testPathPattern=src-copilot",
"test:watch": "jest --testPathPattern=src-copilot --watch",
"build:prod": "NODE_ENV=production node esbuild.js $(pwd)/src-copilot",
"build:dev": "node esbuild.js $(pwd)/src-copilot --watch --server"
}
};
 
// common-utils/dynamic-import-esm.js
var dynamicImportMultipleESM = async (pkgs) => {
if (0) {
try {
} catch (e) {
}
try {
} catch (e) {
}
}
let pkgsDetailsMap = new Map(pkgs.map((pkg) => [pkg, {
version: resolvePackageVersion(pkg),
folder: getPackageFolderString(pkg)
}])), pkgFakeNames = pkgs.map((_, index) => \`pkgFakeName_\${index}\`), dependencies = {};
pkgsDetailsMap.forEach((value, key) => {
dependencies[getBasePackage(key)] = value.version;
});
let buildStr = \`
\${pkgs.map((pkg, index) => \`import * as \${pkgFakeNames[index]} from "\${getBasePackage(pkg)}\${pkgsDetailsMap.get(pkg).folder}";\`).join(\`
\`)}
export default [
\${pkgFakeNames.join(", ")}
]
\`.trim();
console.log(\`Loading bundle from:
\`, dependencies, buildStr);
let { build } = await dynamicImportESM("build"), buildResObj = await build({ dependencies, source: buildStr });
return (await import(new URL(buildResObj.bundleUrl.replace("https://esm.sh/", "https://legacy.esm.sh/v135/")))).default;
}, dynamicImportESM = async (pkg, pkgVersion = null) => {
if (0) {
try {
} catch (e) {
}
try {
} catch (e) {
}
}
let cdnList = ["https://legacy.esm.sh/", "https://esm.run/"], resolvedVersion = resolvePackageVersion(pkg, pkgVersion), importCompleted = !1, importPromises = cdnList.map(async (cdn) => {
let url = buildCDNUrl(cdn, pkg, resolvedVersion);
if (cdn !== "https://legacy.esm.sh/" && await new Promise((resolve) => setTimeout(resolve, 600)), importCompleted)
throw new Error(\`Terminating as \${pkg} has already been imported\`);
return import(url).then((module2) => ({ module: module2, url })).catch((e) => {
throw console.warn(\`Failed to import \${pkg} from \${cdn}: \${e.message}\`), e;
});
});
try {
let result = await Promise.any(importPromises);
return importCompleted = !0, console.log(\`Imported \${pkg}@\${resolvedVersion} from \${result.url}\`), result.module;
} catch {
throw new Error(\`Failed to import \${pkg} from all available CDNs\`);
}
throw new Error(\`Failed to import \${pkg} from all available CDNs\`);
};
function getBasePackage(pkg) {
if (pkg.startsWith("@")) {
let [scope, name] = pkg.split("/");
return \`\${scope}/\${name}\`;
}
return pkg.split("/")[0];
}
function resolvePackageVersion(pkg, pkgVersion) {
let basePkg = getBasePackage(pkg), version = pkgVersion || package_default.dependencies[basePkg] || package_default.devDependencies[basePkg] || "latest";
return version.startsWith("^") || version.startsWith("~") ? version.substring(1) : version;
}
function getPackageFolderString(pkg) {
let folders = [];
return pkg.startsWith("@") ? [, , ...folders] = pkg.split("/") : [, ...folders] = pkg.split("/"), folders && folders.length > 0 ? \`/\${folders.join("/")}\` : "";
}
function buildCDNUrl(cdn, pkg, version) {
let basePkg = getBasePackage(pkg), versionString = version !== "latest" ? \`@\${version}\` : "", folderString = getPackageFolderString(pkg), url = new URL(\`\${cdn}\${basePkg}\${versionString}\${folderString}\`);
if (cdn !== "https://legacy.esm.sh/" && (basePkg.includes("react") || basePkg.includes("radix") || basePkg.includes("build")))
throw new Error(\`React based packages is not supported in \${cdn}\`);
return cdn === "https://legacy.esm.sh/" && (basePkg !== "react-dom" && basePkg !== "react" && url.searchParams.set("bundle-deps", !1), !pkg.endsWith(".css") && pkg !== "build" && url.searchParams.set("deps", \`react@\${package_default.dependencies.react},react-dom@\${package_default.dependencies["react-dom"]}\`)), url.toString();
}
var dynamicImportCSS = async (pkg, pkgVersion = null) => {
let resolvedVersion = resolvePackageVersion(pkg, pkgVersion), url = buildCDNUrl("https://legacy.esm.sh/", pkg, resolvedVersion), link = document.createElement("link");
return link.rel = "stylesheet", link.href = url, document.head.appendChild(link), new Promise((resolve) => link.onload = resolve);
}, dynamic_import_esm_default = dynamicImportESM;
 
// src-copilot/backend/getLLMModel.js
init_process();
 
// src-copilot/constants.js
init_process();
var LLM_API_KEY_SETTING = "LLM API Key", LLM_API_URL_SETTING = "LLM API URL", LLM_MODEL_SETTING = "LLM Model", LLM_MAX_TOKENS_SETTING = "LLM Max Tokens (Default: 8192)", CUSTOM_LLM_INSTRUCTION_SETTING = "Custom LLM Instruction (Optional)", CUSTOM_LLM_AVATAR_SETTING = "Custom LLM Avatar (Optional)", USER_PROMPT_LIST_SETTING = "User Prompt List (DO NOT CHANGE MANUALLY)";
 
// src-copilot/backend/getLLMModel.js
async function getLLMModel(appSettings2) {
let apiUrl = appSettings2[LLM_API_URL_SETTING], model = appSettings2[LLM_MODEL_SETTING], apiKey = appSettings2[LLM_API_KEY_SETTING];
if (!apiUrl || !apiUrl.trim()) throw new Error("API URL is not provided. Please check plugin settings.");
if (!model || !model.trim()) throw new Error("Model is not provided. Please check plugin settings.");
if (apiUrl = apiUrl.toLowerCase(), model = model.toLowerCase(), apiUrl.includes("groq")) {
let { createGroq } = await dynamic_import_esm_default("@ai-sdk/groq");
return createGroq({
apiKey,
basePath: apiUrl
// Default: https://api.groq.com/openai/v1
}).languageModel(model);
} else if (apiUrl.includes("localhost")) {
let { createOllama } = await dynamic_import_esm_default("ollama-ai-provider");
return createOllama({
apiKey,
basePath: apiUrl
// Default: http://localhost:11434/api
}).languageModel(model);
} else if (apiUrl.includes("googleapis")) {
let { createGoogleGenerativeAI } = await dynamic_import_esm_default("@ai-sdk/google");
return createGoogleGenerativeAI({
apiKey,
basePath: apiUrl
// Default: https://generativelanguage.googleapis.com/v1beta
}).languageModel(model, { structuredOutputs: !1 });
} else if (apiUrl.includes("anthropic")) {
let { createAnthropic } = await dynamic_import_esm_default("@ai-sdk/anthropic");
return createAnthropic({
apiKey,
basePath: apiUrl,
headers: { "anthropic-dangerous-direct-browser-access": "true" }
}).languageModel(model);
} else if (apiUrl.includes("openai") || apiUrl.includes("fireworks")) {
let { createOpenAI } = await dynamic_import_esm_default("@ai-sdk/openai");
return createOpenAI({
apiKey,
basePath: apiUrl
// Default: https://api.openai.com/v1
}).languageModel(model);
} else throw new Error("It is likely that incorrect LLM API URL is provided. Please check plugin settings.");
}
 
// common-utils/embed-comunication.js
init_process();
function createCallAmplenotePluginMock(embedCommandsMock) {
return async (commandName, ...args) => {
if (commandName in embedCommandsMock)
return await embedCommandsMock[commandName](...args);
throw new Error(\`Unknown command: \${commandName}\`);
};
}
function deserializeWithFunctions(str) {
return JSON.parse(str, (key, value) => {
if (typeof value == "string" && value.startsWith("__FUNCTION:")) {
let functionBody = value.slice(11);
return new Function(\`return \${functionBody}\`)();
}
return value;
});
}
 
// src-copilot/test/chat/chat.testdata.js
init_process();
 
// common-utils/dynamic-import-env.js
init_process();
 
// common-utils/embed-ui.js
init_process();
function showEmbedLoader() {
window.LoadingStartTime = performance.now();
let overlay = document.createElement("div");
overlay.id = "embed-loader-overlay", overlay.style.cssText = \`
position: fixed;
top: 0;
left: 0;
width: 100%;
/*height: 100%;*/
background-color: rgba(0, 0, 0, 0.5);
z-index: 9998;
animation: fadeIn 0.3s ease-in-out;
\`;
let loader = document.createElement("div");
loader.id = "embed-loader", loader.style.cssText = \`
position: fixed;
left: 50%;
transform: translate(-50%, 0%);
width: 50px;
height: 50px;
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
z-index: 9999;
\`;
let keyframes = document.createElement("style");
keyframes.textContent = \`
@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
\`, document.head.appendChild(keyframes), document.body.appendChild(overlay), document.body.appendChild(loader), overlay.style.display = "none", loader.style.display = "none", setTimeout(() => {
document.getElementById("embed-loader") && (loader.style.display = "block"), document.getElementById("embed-loader-overlay") && (overlay.style.display = "block");
}, 240);
}
function hideEmbedLoader() {
window.LoadingEndTime = performance.now(), console.log("Loading time:", window.LoadingEndTime - window.LoadingStartTime);
let loader = document.getElementById("embed-loader"), overlay = document.getElementById("embed-loader-overlay");
loader && loader.remove(), overlay && overlay.remove();
}
 
// src-copilot/frontend/overwriteWithAmplenoteStyle.js
init_process();
var overwriteWithAmplenoteStyle = () => {
let body2 = document.body, styleEl = document.createElement("style");
styleEl.innerText = \`
.dark, .dark-theme, :is(.dark, .dark-theme) :where(.radix-themes:not(.light, .light-theme)) {
--color-background: #272f35;
}
.dark, .dark-theme {
--gray-1: #292f33;
--gray-2: #2f3539;
--gray-3: #343c43;
--gray-4: #36414b;
--gray-5: #3a4651;
--gray-6: #3e4d5a;
--gray-7: #455968;
--gray-8: #577084;
--gray-9: #617b8f;
--gray-10: #6d8599;
--gray-11: #a7bac9;
--gray-12: #eaeff3;
 
--gray-a1: #d12f0003;
--gray-a2: #f4c99b0a;
--gray-a3: #e0e8fc12;
--gray-a4: #b0d3fe1c;
--gray-a5: #aed2fb24;
--gray-a6: #a4d2fe2f;
--gray-a7: #9dd4fe41;
--gray-a8: #a1d4ff64;
--gray-a9: #a8d9ff72;
--gray-a10: #b3dbfd7f;
--gray-a11: #d6ecffbb;
--gray-a12: #f7fbfff0;
 
--gray-contrast: #FFFFFF;
--gray-surface: rgba(0, 0, 0, 0.05);
--gray-indicator: #617b8f;
--gray-track: #617b8f;
}
@supports (color: color(display-p3 1 1 1)) {
@media (color-gamut: p3) {
.dark, .dark-theme {
--gray-1: oklch(30% 0.0115 242.8);
--gray-2: oklch(32.3% 0.0119 242.8);
--gray-3: oklch(35.3% 0.0166 242.8);
--gray-4: oklch(37.1% 0.0213 242.8);
--gray-5: oklch(38.8% 0.024 242.8);
--gray-6: oklch(41.2% 0.0288 242.8);
--gray-7: oklch(45.3% 0.035 242.8);
--gray-8: oklch(53.4% 0.0433 242.8);
--gray-9: oklch(57% 0.0433 242.8);
--gray-10: oklch(60.5% 0.0412 242.8);
--gray-11: oklch(77.9% 0.0302 242.8);
--gray-12: oklch(94.9% 0.0081 242.8);
 
--gray-a1: color(display-p3 0.9451 0.1843 0 / 0.005);
--gray-a2: color(display-p3 0.9961 0.898 0.8 / 0.033);
--gray-a3: color(display-p3 0.902 0.9255 1 / 0.069);
--gray-a4: color(display-p3 0.698 0.8353 0.9961 / 0.109);
--gray-a5: color(display-p3 0.702 0.8353 1 / 0.138);
--gray-a6: color(display-p3 0.6784 0.8275 1 / 0.183);
--gray-a7: color(display-p3 0.6588 0.8235 1 / 0.252);
--gray-a8: color(display-p3 0.6824 0.8392 1 / 0.385);
--gray-a9: color(display-p3 0.7059 0.8549 1 / 0.439);
--gray-a10: color(display-p3 0.749 0.8706 1 / 0.488);
--gray-a11: color(display-p3 0.8667 0.9294 1 / 0.725);
--gray-a12: color(display-p3 0.9725 0.9843 1 / 0.941);
 
--gray-contrast: #FFFFFF;
--gray-surface: color(display-p3 0 0 0 / 5%);
--gray-indicator: oklch(57% 0.0433 242.8);
--gray-track: oklch(57% 0.0433 242.8);
}
}
}
.dark, .dark-theme {
--accent-1: #252f3c;
--accent-2: #253141;
--accent-3: #223e64;
--accent-4: #1a467f;
--accent-5: #1e508f;
--accent-6: #275b9e;
--accent-7: #2e68b2;
--accent-8: #3277cf;
--accent-9: #0080ff;
--accent-10: #3378d0;
--accent-11: #7cbaff;
--accent-12: #cbe3ff;
 
--accent-a1: #002ffc09;
--accent-a2: #084ff510;
--accent-a3: #126ffc3c;
--accent-a4: #046dfe5e;
--accent-a5: #1379ff72;
--accent-a6: #2784ff85;
--accent-a7: #328bff9e;
--accent-a8: #368dffc3;
--accent-a9: #0080ff;
--accent-a10: #378effc4;
--accent-a11: #7cbaff;
--accent-a12: #cbe3ff;
 
--accent-contrast: #fff;
--accent-surface: #24334d80;
--accent-indicator: #0080ff;
--accent-track: #0080ff;
}
 
@supports (color: color(display-p3 1 1 1)) {
@media (color-gamut: p3) {
.dark, .dark-theme {
--accent-1: oklch(30% 0.0278 256.1);
--accent-2: oklch(31% 0.0325 256.1);
--accent-3: oklch(36.2% 0.074 256.1);
--accent-4: oklch(39.6% 0.1073 256.1);
--accent-5: oklch(43.2% 0.1173 256.1);
--accent-6: oklch(47.1% 0.1224 256.1);
--accent-7: oklch(51.7% 0.1323 256.1);
--accent-8: oklch(57% 0.1522 256.1);
--accent-9: oklch(61.5% 0.2108 256.1);
--accent-10: oklch(57.3% 0.1522 256.1);
--accent-11: oklch(78% 0.1427 256.1);
--accent-12: oklch(90.8% 0.0525 256.1);
 
--accent-a1: color(display-p3 0 0.1882 0.9882 / 0.035);
--accent-a2: color(display-p3 0.0314 0.3176 0.9922 / 0.06);
--accent-a3: color(display-p3 0.1608 0.4314 1 / 0.222);
--accent-a4: color(display-p3 0.1294 0.4275 1 / 0.35);
--accent-a5: color(display-p3 0.1882 0.4824 1 / 0.424);
--accent-a6: color(display-p3 0.2549 0.5216 1 / 0.498);
--accent-a7: color(display-p3 0.2902 0.5529 1 / 0.597);
--accent-a8: color(display-p3 0.3098 0.5569 1 / 0.734);
--accent-a9: color(display-p3 0.2157 0.5059 1 / 0.961);
--accent-a10: color(display-p3 0.3137 0.5647 1 / 0.739);
--accent-a11: color(display-p3 0.5529 0.7373 0.9961 / 0.971);
--accent-a12: color(display-p3 0.8235 0.8941 1 / 0.986);
 
--accent-contrast: #fff;
--accent-surface: color(display-p3 0.1529 0.1961 0.2902 / 0.5);
--accent-indicator: oklch(61.5% 0.2108 256.1);
--accent-track: oklch(61.5% 0.2108 256.1);
}
}
}\`.replace(/\\s+/g, " ").trim(), styleEl.innerText += \`
.app-container .radix-themes {
--default-font-size: 15px;
}
\`.replace(/\\s+/g, " ").trim(), body2.appendChild(styleEl);
let styleEl2 = document.createElement("style");
styleEl2.innerText = \`
.dark {
--aui-background: 210, 10%, 18%;
--aui-foreground: 210, 10%, 94%;
--aui-card: 210, 10%, 20%;
--aui-card-foreground: 210, 10%, 94%;
--aui-popover: 210, 10%, 22%;
--aui-popover-foreground: 210, 10%, 94%;
--aui-border: 210, 10%, 50%;
--aui-input: 210, 10%, 50%;
--aui-ring: 210, 10%, 18%;
 
--aui-primary: 205 80% 50%;
--aui-primary-foreground: 0, 0%, 100%;
--aui-secondary: 205, 10%, 94%;
--aui-secondary-foreground: 205, 10%, 18%;
 
--aui-muted-foreground: 205, 10%, 50%;
--aui-accent: 205, 100%, 50%;
--aui-accent-foreground: 0, 0%, 100%;
 
--aui-destructive: 0, 84%, 60%;
--aui-destructive-foreground: 0, 0%, 98%;
 
--aui-radius: 0.3rem;
}\`.replace(/\\s+/g, " ").trim(), body2.appendChild(styleEl2);
let styleEl3 = document.createElement("style");
styleEl3.innerText = \`
.tool_category_mention {
background-color: var(--accent-a3);
border-radius: var(--aui-radius);
}
div.aui-user-message-content {
border-radius: 1.25rem;
}
\`.replace(/\\s+/g, " ").trim(), body2.appendChild(styleEl3);
};
 
// src-copilot/frontend/ChatApp.jsx
init_process();
 
// src-copilot/frontend/hooks/useDangerousInBrowserRuntimeMod.jsx
init_process();
var useDangerousInBrowserRuntimeMod = (options) => {
let { localRuntimeOptions, otherOptions } = AssistantUIUtils.splitLocalRuntimeOptions(options), [adapter] = React.useState(() => {
let adapter2 = new AssistantUIUtils.DangerousInBrowserAdapter(otherOptions), originalRun = adapter2.run;
return adapter2.run = async function* (...args) {
var _a;
try {
for await (let chunk of originalRun.call(this, ...args))
yield chunk;
} catch (e) {
throw e.name !== "AbortError" && (console.log(e), (_a = options.onError) == null || _a.call(options, e)), e;
}
}, adapter2;
});
return AssistantUI.useLocalRuntime(adapter, localRuntimeOptions);
};
 
// src-copilot/frontend/tools-core/utils/errorToString.js
init_process();
var errorToString = (error) => error instanceof Error ? error.message : typeof error == "string" ? error : JSON.stringify(error);
 
// src-copilot/frontend/ChatInterface.jsx
init_process();
 
// src-copilot/frontend/hooks/useChatSuggestions.jsx
init_process();
var useChatSuggestions = (thread, count = 2) => {
let [suggestions, setSuggestions] = React.useState([]);
return React.useEffect(() => {
try {
setSuggestions(getRandomSuggestions(count));
} catch (e) {
console.error(e);
}
}, [thread]), suggestions;
}, allSuggestions = [
{
prompt: "@tasks Add shopping for groceries at evening today",
displayCondition: () => !0
},
{
prompt: "@tasks Summarize tasks for today",
displayCondition: () => !0
},
{
prompt: "@web Search for best song of current year",
displayCondition: () => !0
},
{
prompt: "@notes Provide summary of current note",
displayCondition: () => window.userData.currentNoteUUID !== null
},
{
prompt: "@notes Analyze & add appropriate tags to current note",
displayCondition: () => window.userData.currentNoteUUID !== null
}
], getRandomSuggestions = (count) => {
let validSuggestions = allSuggestions.filter((suggestion) => suggestion.displayCondition()), selectedIndices = [], result = [];
for (; selectedIndices.length < count && selectedIndices.length < validSuggestions.length; ) {
let randomIndex = Math.floor(Math.random() * validSuggestions.length);
selectedIndices.includes(randomIndex) || (selectedIndices.push(randomIndex), result.push(validSuggestions[randomIndex]));
}
return result.sort(
(a, b) => (
// Sort based on original index to maintain order
validSuggestions.indexOf(a) - validSuggestions.indexOf(b)
)
);
};
 
// src-copilot/frontend/components/CustomComposer.jsx
init_process();
 
// src-copilot/frontend/hooks/useTributeSetup.jsx
init_process();
var useTributeSetup = (textareaRef, toolCategoryNames) => {
let threadRuntime = AssistantUI.useThreadRuntime();
React.useEffect(() => {
if (!textareaRef.current) return;
let style = document.createElement("style");
style.textContent = \`
.tribute-container > ul {
background-color: #434A54;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
color: #FFFFFF;
margin: 10px;
padding: 0;
list-style: none;
}
.tribute-item {
padding: 8px;
cursor: pointer;
border-bottom: 1px solid #333333;
}
.tribute-item:hover {
background-color: #2d4759;
}
.tribute-item-selected {
background-color: #2d4759;
color: #FFFFFF;
}
\`, document.body.append(style);
let tribute = new window.Tribute({
trigger: "@",
values: toolCategoryNames.map((toolCategory) => ({
key: toolCategory,
value: toolCategory
})),
noMatchTemplate: null,
containerClass: "tribute-container",
itemClass: "tribute-item",
selectClass: "tribute-item-selected",
allowSpaces: !1,
menuItemLimit: 4,
replaceTextSuffix: " "
});
tribute.attach(textareaRef.current);
let tributeOnReplace = (event) => {
let currentValue = textareaRef.current.value;
threadRuntime.composer.setText(currentValue);
};
return textareaRef.current.addEventListener("tribute-replaced", tributeOnReplace), () => {
tribute.detach(textareaRef.current), textareaRef.current.removeEventListener("tribute-replaced", tributeOnReplace);
};
}, [textareaRef]);
};
 
// src-copilot/frontend/tools-core/registry/ToolCategoryRegistry.js
init_process();
 
// src-copilot/frontend/tools-core/registry/ToolRegistry.js
init_process();
 
// src-copilot/frontend/tools/DeleteUserNotes.jsx
init_process();
 
// src-copilot/frontend/components/tools-ui/ToolCardContainer.jsx
init_process();
var ToolCardContainer = ({ children }) => {
let { Card } = window.RadixUI;
return /* @__PURE__ */ React.createElement("div", { style: { height: "fit-content", marginBottom: "2px" } }, /* @__PURE__ */ React.createElement(Card, null, children));
};
 
// src-copilot/frontend/components/tools-ui/ItemSelectionTable.jsx
init_process();
 
// node_modules/lodash-es/lodash.js
init_process();
 
// node_modules/lodash-es/isSymbol.js
init_process();
 
// node_modules/lodash-es/_baseGetTag.js
init_process();
 
// node_modules/lodash-es/_Symbol.js
init_process();
 
// node_modules/lodash-es/_root.js
init_process();
 
// node_modules/lodash-es/_freeGlobal.js
init_process();
var freeGlobal = typeof globalThis == "object" && globalThis && globalThis.Object === Object && globalThis, freeGlobal_default = freeGlobal;
 
// node_modules/lodash-es/_root.js
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal_default || freeSelf || Function("return this")(), root_default = root;
 
// node_modules/lodash-es/_Symbol.js
var Symbol2 = root_default.Symbol, Symbol_default = Symbol2;
 
// node_modules/lodash-es/_getRawTag.js
init_process();
var objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
function getRawTag(value) {
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
try {
value[symToStringTag] = void 0;
var unmasked = !0;
} catch {
}
var result = nativeObjectToString.call(value);
return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), result;
}
var getRawTag_default = getRawTag;
 
// node_modules/lodash-es/_objectToString.js
init_process();
var objectProto2 = Object.prototype, nativeObjectToString2 = objectProto2.toString;
function objectToString(value) {
return nativeObjectToString2.call(value);
}
var objectToString_default = objectToString;
 
// node_modules/lodash-es/_baseGetTag.js
var nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
function baseGetTag(value) {
return value == null ? value === void 0 ? undefinedTag : nullTag : symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
}
var baseGetTag_default = baseGetTag;
 
// node_modules/lodash-es/isObjectLike.js
init_process();
function isObjectLike(value) {
return value != null && typeof value == "object";
}
var isObjectLike_default = isObjectLike;
 
// node_modules/lodash-es/isSymbol.js
var symbolTag = "[object Symbol]";
function isSymbol(value) {
return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
}
var isSymbol_default = isSymbol;
 
// node_modules/lodash-es/_baseToString.js
init_process();
 
// node_modules/lodash-es/_arrayMap.js
init_process();
function arrayMap(array, iteratee) {
for (var index = -1, length = array == null ? 0 : array.length, result = Array(length); ++index < length; )
result[index] = iteratee(array[index], index, array);
return result;
}
var arrayMap_default = arrayMap;
 
// node_modules/lodash-es/isArray.js
init_process();
var isArray = Array.isArray, isArray_default = isArray;
 
// node_modules/lodash-es/_baseToString.js
var INFINITY = 1 / 0, symbolProto = Symbol_default ? Symbol_default.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
function baseToString(value) {
if (typeof value == "string")
return value;
if (isArray_default(value))
return arrayMap_default(value, baseToString) + "";
if (isSymbol_default(value))
return symbolToString ? symbolToString.call(value) : "";
var result = value + "";
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
}
var baseToString_default = baseToString;
 
// node_modules/lodash-es/toInteger.js
init_process();
 
// node_modules/lodash-es/toFinite.js
init_process();
 
// node_modules/lodash-es/toNumber.js
init_process();
 
// node_modules/lodash-es/_baseTrim.js
init_process();
 
// node_modules/lodash-es/_trimmedEndIndex.js
init_process();
var reWhitespace = /\\s/;
function trimmedEndIndex(string) {
for (var index = string.length; index-- && reWhitespace.test(string.charAt(index)); )
;
return index;
}
var trimmedEndIndex_default = trimmedEndIndex;
 
// node_modules/lodash-es/_baseTrim.js
var reTrimStart = /^\\s+/;
function baseTrim(string) {
return string && string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "");
}
var baseTrim_default = baseTrim;
 
// node_modules/lodash-es/isObject.js
init_process();
function isObject(value) {
var type = typeof value;
return value != null && (type == "object" || type == "function");
}
var isObject_default = isObject;
 
// node_modules/lodash-es/toNumber.js
var NAN = NaN, reIsBadHex = /^[-+]0x[0-9a-f]+$/i, reIsBinary = /^0b[01]+$/i, reIsOctal = /^0o[0-7]+$/i, freeParseInt = parseInt;
function toNumber(value) {
if (typeof value == "number")
return value;
if (isSymbol_default(value))
return NAN;
if (isObject_default(value)) {
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
value = isObject_default(other) ? other + "" : other;
}
if (typeof value != "string")
return value === 0 ? value : +value;
value = baseTrim_default(value);
var isBinary = reIsBinary.test(value);
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
}
var toNumber_default = toNumber;
 
// node_modules/lodash-es/toFinite.js
var INFINITY2 = 1 / 0, MAX_INTEGER = 17976931348623157e292;
function toFinite(value) {
if (!value)
return value === 0 ? value : 0;
if (value = toNumber_default(value), value === INFINITY2 || value === -INFINITY2) {
var sign = value < 0 ? -1 : 1;
return sign * MAX_INTEGER;
}
return value === value ? value : 0;
}
var toFinite_default = toFinite;
 
// node_modules/lodash-es/toInteger.js
function toInteger(value) {
var result = toFinite_default(value), remainder = result % 1;
return result === result ? remainder ? result - remainder : result : 0;
}
var toInteger_default = toInteger;
 
// node_modules/lodash-es/identity.js
init_process();
function identity(value) {
return value;
}
var identity_default = identity;
 
// node_modules/lodash-es/_WeakMap.js
init_process();
 
// node_modules/lodash-es/_getNative.js
init_process();
 
// node_modules/lodash-es/_baseIsNative.js
init_process();
 
// node_modules/lodash-es/isFunction.js
init_process();
var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
function isFunction(value) {
if (!isObject_default(value))
return !1;
var tag = baseGetTag_default(value);
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
var isFunction_default = isFunction;
 
// node_modules/lodash-es/_isMasked.js
init_process();
 
// node_modules/lodash-es/_coreJsData.js
init_process();
var coreJsData = root_default["__core-js_shared__"], coreJsData_default = coreJsData;
 
// node_modules/lodash-es/_isMasked.js
var maskSrcKey = function() {
var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
return uid ? "Symbol(src)_1." + uid : "";
}();
function isMasked(func) {
return !!maskSrcKey && maskSrcKey in func;
}
var isMasked_default = isMasked;
 
// node_modules/lodash-es/_toSource.js
init_process();
var funcProto = Function.prototype, funcToString = funcProto.toString;
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch {
}
try {
return func + "";
} catch {
}
}
return "";
}
var toSource_default = toSource;
 
// node_modules/lodash-es/_baseIsNative.js
var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g, reIsHostCtor = /^\\[object .+?Constructor\\]$/, funcProto2 = Function.prototype, objectProto3 = Object.prototype, funcToString2 = funcProto2.toString, hasOwnProperty2 = objectProto3.hasOwnProperty, reIsNative = RegExp(
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, "$1.*?") + "$"
);
function baseIsNative(value) {
if (!isObject_default(value) || isMasked_default(value))
return !1;
var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
return pattern.test(toSource_default(value));
}
var baseIsNative_default = baseIsNative;
 
// node_modules/lodash-es/_getValue.js
init_process();
function getValue(object, key) {
return object == null ? void 0 : object[key];
}
var getValue_default = getValue;
 
// node_modules/lodash-es/_getNative.js
function getNative(object, key) {
var value = getValue_default(object, key);
return baseIsNative_default(value) ? value : void 0;
}
var getNative_default = getNative;
 
// node_modules/lodash-es/_WeakMap.js
var WeakMap = getNative_default(root_default, "WeakMap"), WeakMap_default = WeakMap;
 
// node_modules/lodash-es/noop.js
init_process();
function noop() {
}
var noop_default = noop;
 
// node_modules/lodash-es/_arrayIncludes.js
init_process();
 
// node_modules/lodash-es/_baseIndexOf.js
init_process();
 
// node_modules/lodash-es/_baseFindIndex.js
init_process();
function baseFindIndex(array, predicate, fromIndex, fromRight) {
for (var length = array.length, index = fromIndex + (fromRight ? 1 : -1); fromRight ? index-- : ++index < length; )
if (predicate(array[index], index, array))
return index;
return -1;
}
var baseFindIndex_default = baseFindIndex;
 
// node_modules/lodash-es/_baseIsNaN.js
init_process();
function baseIsNaN(value) {
return value !== value;
}
var baseIsNaN_default = baseIsNaN;
 
// node_modules/lodash-es/_strictIndexOf.js
init_process();
function strictIndexOf(array, value, fromIndex) {
for (var index = fromIndex - 1, length = array.length; ++index < length; )
if (array[index] === value)
return index;
return -1;
}
var strictIndexOf_default = strictIndexOf;
 
// node_modules/lodash-es/_baseIndexOf.js
function baseIndexOf(array, value, fromIndex) {
return value === value ? strictIndexOf_default(array, value, fromIndex) : baseFindIndex_default(array, baseIsNaN_default, fromIndex);
}
var baseIndexOf_default = baseIndexOf;
 
// node_modules/lodash-es/_arrayIncludes.js
function arrayIncludes(array, value) {
var length = array == null ? 0 : array.length;
return !!length && baseIndexOf_default(array, value, 0) > -1;
}
var arrayIncludes_default = arrayIncludes;
 
// node_modules/lodash-es/_isIndex.js
init_process();
var MAX_SAFE_INTEGER = 9007199254740991, reIsUint = /^(?:0|[1-9]\\d*)$/;
function isIndex(value, length) {
var type = typeof value;
return length = length == null ? MAX_SAFE_INTEGER : length, !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
}
var isIndex_default = isIndex;
 
// node_modules/lodash-es/eq.js
init_process();
function eq(value, other) {
return value === other || value !== value && other !== other;
}
var eq_default = eq;
 
// node_modules/lodash-es/isArrayLike.js
init_process();
 
// node_modules/lodash-es/isLength.js
init_process();
var MAX_SAFE_INTEGER2 = 9007199254740991;
function isLength(value) {
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
}
var isLength_default = isLength;
 
// node_modules/lodash-es/isArrayLike.js
function isArrayLike(value) {
return value != null && isLength_default(value.length) && !isFunction_default(value);
}
var isArrayLike_default = isArrayLike;
 
// node_modules/lodash-es/_isPrototype.js
init_process();
var objectProto4 = Object.prototype;
function isPrototype(value) {
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto4;
return value === proto;
}
var isPrototype_default = isPrototype;
 
// node_modules/lodash-es/keys.js
init_process();
 
// node_modules/lodash-es/_arrayLikeKeys.js
init_process();
 
// node_modules/lodash-es/_baseTimes.js
init_process();
function baseTimes(n, iteratee) {
for (var index = -1, result = Array(n); ++index < n; )
result[index] = iteratee(index);
return result;
}
var baseTimes_default = baseTimes;
 
// node_modules/lodash-es/isArguments.js
init_process();
 
// node_modules/lodash-es/_baseIsArguments.js
init_process();
var argsTag = "[object Arguments]";
function baseIsArguments(value) {
return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
}
var baseIsArguments_default = baseIsArguments;
 
// node_modules/lodash-es/isArguments.js
var objectProto5 = Object.prototype, hasOwnProperty3 = objectProto5.hasOwnProperty, propertyIsEnumerable = objectProto5.propertyIsEnumerable, isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
return arguments;
}()) ? baseIsArguments_default : function(value) {
return isObjectLike_default(value) && hasOwnProperty3.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
}, isArguments_default = isArguments;
 
// node_modules/lodash-es/isBuffer.js
init_process();
 
// node_modules/lodash-es/stubFalse.js
init_process();
function stubFalse() {
return !1;
}
var stubFalse_default = stubFalse;
 
// node_modules/lodash-es/isBuffer.js
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports, freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, Buffer2 = moduleExports ? root_default.Buffer : void 0, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, isBuffer = nativeIsBuffer || stubFalse_default, isBuffer_default = isBuffer;
 
// node_modules/lodash-es/isTypedArray.js
init_process();
 
// node_modules/lodash-es/_baseIsTypedArray.js
init_process();
var argsTag2 = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag2 = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0;
typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = !1;
function baseIsTypedArray(value) {
return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
}
var baseIsTypedArray_default = baseIsTypedArray;
 
// node_modules/lodash-es/_baseUnary.js
init_process();
function baseUnary(func) {
return function(value) {
return func(value);
};
}
var baseUnary_default = baseUnary;
 
// node_modules/lodash-es/_nodeUtil.js
init_process();
var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports, freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module, moduleExports2 = freeModule2 && freeModule2.exports === freeExports2, freeProcess = moduleExports2 && freeGlobal_default.process, nodeUtil = function() {
try {
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
return types || freeProcess && freeProcess.binding && freeProcess.binding("util");
} catch {
}
}(), nodeUtil_default = nodeUtil;
 
// node_modules/lodash-es/isTypedArray.js
var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default, isTypedArray_default = isTypedArray;
 
// node_modules/lodash-es/_arrayLikeKeys.js
var objectProto6 = Object.prototype, hasOwnProperty4 = objectProto6.hasOwnProperty;
function arrayLikeKeys(value, inherited) {
var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
for (var key in value)
(inherited || hasOwnProperty4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable \`arguments.length\` in strict mode.
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
isIndex_default(key, length))) && result.push(key);
return result;
}
var arrayLikeKeys_default = arrayLikeKeys;
 
// node_modules/lodash-es/_baseKeys.js
init_process();
 
// node_modules/lodash-es/_nativeKeys.js
init_process();
 
// node_modules/lodash-es/_overArg.js
init_process();
function overArg(func, transform) {
return function(arg) {
return func(transform(arg));
};
}
var overArg_default = overArg;
 
// node_modules/lodash-es/_nativeKeys.js
var nativeKeys = overArg_default(Object.keys, Object), nativeKeys_default = nativeKeys;
 
// node_modules/lodash-es/_baseKeys.js
var objectProto7 = Object.prototype, hasOwnProperty5 = objectProto7.hasOwnProperty;
function baseKeys(object) {
if (!isPrototype_default(object))
return nativeKeys_default(object);
var result = [];
for (var key in Object(object))
hasOwnProperty5.call(object, key) && key != "constructor" && result.push(key);
return result;
}
var baseKeys_default = baseKeys;
 
// node_modules/lodash-es/keys.js
function keys(object) {
return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
}
var keys_default = keys;
 
// node_modules/lodash-es/get.js
init_process();
 
// node_modules/lodash-es/_baseGet.js
init_process();
 
// node_modules/lodash-es/_castPath.js
init_process();
 
// node_modules/lodash-es/_isKey.js
init_process();
var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|(["'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/, reIsPlainProp = /^\\w*$/;
function isKey(value, object) {
if (isArray_default(value))
return !1;
var type = typeof value;
return type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value) ? !0 : reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
}
var isKey_default = isKey;
 
// node_modules/lodash-es/_stringToPath.js
init_process();
 
// node_modules/lodash-es/_memoizeCapped.js
init_process();
 
// node_modules/lodash-es/memoize.js
init_process();
 
// node_modules/lodash-es/_MapCache.js
init_process();
 
// node_modules/lodash-es/_mapCacheClear.js
init_process();
 
// node_modules/lodash-es/_Hash.js
init_process();
 
// node_modules/lodash-es/_hashClear.js
init_process();
 
// node_modules/lodash-es/_nativeCreate.js
init_process();
var nativeCreate = getNative_default(Object, "create"), nativeCreate_default = nativeCreate;
 
// node_modules/lodash-es/_hashClear.js
function hashClear() {
this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}, this.size = 0;
}
var hashClear_default = hashClear;
 
// node_modules/lodash-es/_hashDelete.js
init_process();
function hashDelete(key) {
var result = this.has(key) && delete this.__data__[key];
return this.size -= result ? 1 : 0, result;
}
var hashDelete_default = hashDelete;
 
// node_modules/lodash-es/_hashGet.js
init_process();
var HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto8 = Object.prototype, hasOwnProperty6 = objectProto8.hasOwnProperty;
function hashGet(key) {
var data = this.__data__;
if (nativeCreate_default) {
var result = data[key];
return result === HASH_UNDEFINED ? void 0 : result;
}
return hasOwnProperty6.call(data, key) ? data[key] : void 0;
}
var hashGet_default = hashGet;
 
// node_modules/lodash-es/_hashHas.js
init_process();
var objectProto9 = Object.prototype, hasOwnProperty7 = objectProto9.hasOwnProperty;
function hashHas(key) {
var data = this.__data__;
return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty7.call(data, key);
}
var hashHas_default = hashHas;
 
// node_modules/lodash-es/_hashSet.js
init_process();
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
function hashSet(key, value) {
var data = this.__data__;
return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value, this;
}
var hashSet_default = hashSet;
 
// node_modules/lodash-es/_Hash.js
function Hash(entries) {
var index = -1, length = entries == null ? 0 : entries.length;
for (this.clear(); ++index < length; ) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
Hash.prototype.clear = hashClear_default;
Hash.prototype.delete = hashDelete_default;
Hash.prototype.get = hashGet_default;
Hash.prototype.has = hashHas_default;
Hash.prototype.set = hashSet_default;
var Hash_default = Hash;
 
// node_modules/lodash-es/_ListCache.js
init_process();
 
// node_modules/lodash-es/_listCacheClear.js
init_process();
function listCacheClear() {
this.__data__ = [], this.size = 0;
}
var listCacheClear_default = listCacheClear;
 
// node_modules/lodash-es/_listCacheDelete.js
init_process();
 
// node_modules/lodash-es/_assocIndexOf.js
init_process();
function assocIndexOf(array, key) {
for (var length = array.length; length--; )
if (eq_default(array[length][0], key))
return length;
return -1;
}
var assocIndexOf_default = assocIndexOf;
 
// node_modules/lodash-es/_listCacheDelete.js
var arrayProto = Array.prototype, splice = arrayProto.splice;
function listCacheDelete(key) {
var data = this.__data__, index = assocIndexOf_default(data, key);
if (index < 0)
return !1;
var lastIndex = data.length - 1;
return index == lastIndex ? data.pop() : splice.call(data, index, 1), --this.size, !0;
}
var listCacheDelete_default = listCacheDelete;
 
// node_modules/lodash-es/_listCacheGet.js
init_process();
function listCacheGet(key) {
var data = this.__data__, index = assocIndexOf_default(data, key);
return index < 0 ? void 0 : data[index][1];
}
var listCacheGet_default = listCacheGet;
 
// node_modules/lodash-es/_listCacheHas.js
init_process();
function listCacheHas(key) {
return assocIndexOf_default(this.__data__, key) > -1;
}
var listCacheHas_default = listCacheHas;
 
// node_modules/lodash-es/_listCacheSet.js
init_process();
function listCacheSet(key, value) {
var data = this.__data__, index = assocIndexOf_default(data, key);
return index < 0 ? (++this.size, data.push([key, value])) : data[index][1] = value, this;
}
var listCacheSet_default = listCacheSet;
 
// node_modules/lodash-es/_ListCache.js
function ListCache(entries) {
var index = -1, length = entries == null ? 0 : entries.length;
for (this.clear(); ++index < length; ) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
ListCache.prototype.clear = listCacheClear_default;
ListCache.prototype.delete = listCacheDelete_default;
ListCache.prototype.get = listCacheGet_default;
ListCache.prototype.has = listCacheHas_default;
ListCache.prototype.set = listCacheSet_default;
var ListCache_default = ListCache;
 
// node_modules/lodash-es/_Map.js
init_process();
var Map2 = getNative_default(root_default, "Map"), Map_default = Map2;
 
// node_modules/lodash-es/_mapCacheClear.js
function mapCacheClear() {
this.size = 0, this.__data__ = {
hash: new Hash_default(),
map: new (Map_default || ListCache_default)(),
string: new Hash_default()
};
}
var mapCacheClear_default = mapCacheClear;
 
// node_modules/lodash-es/_mapCacheDelete.js
init_process();
 
// node_modules/lodash-es/_getMapData.js
init_process();
 
// node_modules/lodash-es/_isKeyable.js
init_process();
function isKeyable(value) {
var type = typeof value;
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
}
var isKeyable_default = isKeyable;
 
// node_modules/lodash-es/_getMapData.js
function getMapData(map, key) {
var data = map.__data__;
return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
}
var getMapData_default = getMapData;
 
// node_modules/lodash-es/_mapCacheDelete.js
function mapCacheDelete(key) {
var result = getMapData_default(this, key).delete(key);
return this.size -= result ? 1 : 0, result;
}
var mapCacheDelete_default = mapCacheDelete;
 
// node_modules/lodash-es/_mapCacheGet.js
init_process();
function mapCacheGet(key) {
return getMapData_default(this, key).get(key);
}
var mapCacheGet_default = mapCacheGet;
 
// node_modules/lodash-es/_mapCacheHas.js
init_process();
function mapCacheHas(key) {
return getMapData_default(this, key).has(key);
}
var mapCacheHas_default = mapCacheHas;
 
// node_modules/lodash-es/_mapCacheSet.js
init_process();
function mapCacheSet(key, value) {
var data = getMapData_default(this, key), size = data.size;
return data.set(key, value), this.size += data.size == size ? 0 : 1, this;
}
var mapCacheSet_default = mapCacheSet;
 
// node_modules/lodash-es/_MapCache.js
function MapCache(entries) {
var index = -1, length = entries == null ? 0 : entries.length;
for (this.clear(); ++index < length; ) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
MapCache.prototype.clear = mapCacheClear_default;
MapCache.prototype.delete = mapCacheDelete_default;
MapCache.prototype.get = mapCacheGet_default;
MapCache.prototype.has = mapCacheHas_default;
MapCache.prototype.set = mapCacheSet_default;
var MapCache_default = MapCache;
 
// node_modules/lodash-es/memoize.js
var FUNC_ERROR_TEXT = "Expected a function";
function memoize(func, resolver) {
if (typeof func != "function" || resolver != null && typeof resolver != "function")
throw new TypeError(FUNC_ERROR_TEXT);
var memoized = function() {
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
if (cache.has(key))
return cache.get(key);
var result = func.apply(this, args);
return memoized.cache = cache.set(key, result) || cache, result;
};
return memoized.cache = new (memoize.Cache || MapCache_default)(), memoized;
}
memoize.Cache = MapCache_default;
var memoize_default = memoize;
 
// node_modules/lodash-es/_memoizeCapped.js
var MAX_MEMOIZE_SIZE = 500;
function memoizeCapped(func) {
var result = memoize_default(func, function(key) {
return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key;
}), cache = result.cache;
return result;
}
var memoizeCapped_default = memoizeCapped;
 
// node_modules/lodash-es/_stringToPath.js
var rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g, reEscapeChar = /\\\\(\\\\)?/g, stringToPath = memoizeCapped_default(function(string) {
var result = [];
return string.charCodeAt(0) === 46 && result.push(""), string.replace(rePropName, function(match, number, quote, subString) {
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
}), result;
}), stringToPath_default = stringToPath;
 
// node_modules/lodash-es/toString.js
init_process();
function toString(value) {
return value == null ? "" : baseToString_default(value);
}
var toString_default = toString;
 
// node_modules/lodash-es/_castPath.js
function castPath(value, object) {
return isArray_default(value) ? value : isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
}
var castPath_default = castPath;
 
// node_modules/lodash-es/_toKey.js
init_process();
var INFINITY3 = 1 / 0;
function toKey(value) {
if (typeof value == "string" || isSymbol_default(value))
return value;
var result = value + "";
return result == "0" && 1 / value == -INFINITY3 ? "-0" : result;
}
var toKey_default = toKey;
 
// node_modules/lodash-es/_baseGet.js
function baseGet(object, path) {
path = castPath_default(path, object);
for (var index = 0, length = path.length; object != null && index < length; )
object = object[toKey_default(path[index++])];
return index && index == length ? object : void 0;
}
var baseGet_default = baseGet;
 
// node_modules/lodash-es/get.js
function get(object, path, defaultValue) {
var result = object == null ? void 0 : baseGet_default(object, path);
return result === void 0 ? defaultValue : result;
}
var get_default = get;
 
// node_modules/lodash-es/_arrayPush.js
init_process();
function arrayPush(array, values) {
for (var index = -1, length = values.length, offset = array.length; ++index < length; )
array[offset + index] = values[index];
return array;
}
var arrayPush_default = arrayPush;
 
// node_modules/lodash-es/capitalize.js
init_process();
 
// node_modules/lodash-es/upperFirst.js
init_process();
 
// node_modules/lodash-es/_createCaseFirst.js
init_process();
 
// node_modules/lodash-es/_castSlice.js
init_process();
 
// node_modules/lodash-es/_baseSlice.js
init_process();
function baseSlice(array, start, end) {
var index = -1, length = array.length;
start < 0 && (start = -start > length ? 0 : length + start), end = end > length ? length : end, end < 0 && (end += length), length = start > end ? 0 : end - start >>> 0, start >>>= 0;
for (var result = Array(length); ++index < length; )
result[index] = array[index + start];
return result;
}
var baseSlice_default = baseSlice;
 
// node_modules/lodash-es/_castSlice.js
function castSlice(array, start, end) {
var length = array.length;
return end = end === void 0 ? length : end, !start && end >= length ? array : baseSlice_default(array, start, end);
}
var castSlice_default = castSlice;
 
// node_modules/lodash-es/_hasUnicode.js
init_process();
var rsAstralRange = "\\\\ud800-\\\\udfff", rsComboMarksRange = "\\\\u0300-\\\\u036f", reComboHalfMarksRange = "\\\\ufe20-\\\\ufe2f", rsComboSymbolsRange = "\\\\u20d0-\\\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\\\ufe0e\\\\ufe0f", rsZWJ = "\\\\u200d", reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
function hasUnicode(string) {
return reHasUnicode.test(string);
}
var hasUnicode_default = hasUnicode;
 
// node_modules/lodash-es/_stringToArray.js
init_process();
 
// node_modules/lodash-es/_asciiToArray.js
init_process();
function asciiToArray(string) {
return string.split("");
}
var asciiToArray_default = asciiToArray;
 
// node_modules/lodash-es/_unicodeToArray.js
init_process();
var rsAstralRange2 = "\\\\ud800-\\\\udfff", rsComboMarksRange2 = "\\\\u0300-\\\\u036f", reComboHalfMarksRange2 = "\\\\ufe20-\\\\ufe2f", rsComboSymbolsRange2 = "\\\\u20d0-\\\\u20ff", rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2, rsVarRange2 = "\\\\ufe0e\\\\ufe0f", rsAstral = "[" + rsAstralRange2 + "]", rsCombo = "[" + rsComboRange2 + "]", rsFitz = "\\\\ud83c[\\\\udffb-\\\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange2 + "]", rsRegional = "(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}", rsSurrPair = "[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]", rsZWJ2 = "\\\\u200d", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange2 + "]?", rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")", reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
function unicodeToArray(string) {
return string.match(reUnicode) || [];
}
var unicodeToArray_default = unicodeToArray;
 
// node_modules/lodash-es/_stringToArray.js
function stringToArray(string) {
return hasUnicode_default(string) ? unicodeToArray_default(string) : asciiToArray_default(string);
}
var stringToArray_default = stringToArray;
 
// node_modules/lodash-es/_createCaseFirst.js
function createCaseFirst(methodName) {
return function(string) {
string = toString_default(string);
var strSymbols = hasUnicode_default(string) ? stringToArray_default(string) : void 0, chr = strSymbols ? strSymbols[0] : string.charAt(0), trailing = strSymbols ? castSlice_default(strSymbols, 1).join("") : string.slice(1);
return chr[methodName]() + trailing;
};
}
var createCaseFirst_default = createCaseFirst;
 
// node_modules/lodash-es/upperFirst.js
var upperFirst = createCaseFirst_default("toUpperCase"), upperFirst_default = upperFirst;
 
// node_modules/lodash-es/capitalize.js
function capitalize(string) {
return upperFirst_default(toString_default(string).toLowerCase());
}
var capitalize_default = capitalize;
 
// node_modules/lodash-es/_Stack.js
init_process();
 
// node_modules/lodash-es/_stackClear.js
init_process();
function stackClear() {
this.__data__ = new ListCache_default(), this.size = 0;
}
var stackClear_default = stackClear;
 
// node_modules/lodash-es/_stackDelete.js
init_process();
function stackDelete(key) {
var data = this.__data__, result = data.delete(key);
return this.size = data.size, result;
}
var stackDelete_default = stackDelete;
 
// node_modules/lodash-es/_stackGet.js
init_process();
function stackGet(key) {
return this.__data__.get(key);
}
var stackGet_default = stackGet;
 
// node_modules/lodash-es/_stackHas.js
init_process();
function stackHas(key) {
return this.__data__.has(key);
}
var stackHas_default = stackHas;
 
// node_modules/lodash-es/_stackSet.js
init_process();
var LARGE_ARRAY_SIZE = 200;
function stackSet(key, value) {
var data = this.__data__;
if (data instanceof ListCache_default) {
var pairs = data.__data__;
if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1)
return pairs.push([key, value]), this.size = ++data.size, this;
data = this.__data__ = new MapCache_default(pairs);
}
return data.set(key, value), this.size = data.size, this;
}
var stackSet_default = stackSet;
 
// node_modules/lodash-es/_Stack.js
function Stack(entries) {
var data = this.__data__ = new ListCache_default(entries);
this.size = data.size;
}
Stack.prototype.clear = stackClear_default;
Stack.prototype.delete = stackDelete_default;
Stack.prototype.get = stackGet_default;
Stack.prototype.has = stackHas_default;
Stack.prototype.set = stackSet_default;
var Stack_default = Stack;
 
// node_modules/lodash-es/_getSymbols.js
init_process();
 
// node_modules/lodash-es/_arrayFilter.js
init_process();
function arrayFilter(array, predicate) {
for (var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; ++index < length; ) {
var value = array[index];
predicate(value, index, array) && (result[resIndex++] = value);
}
return result;
}
var arrayFilter_default = arrayFilter;
 
// node_modules/lodash-es/stubArray.js
init_process();
function stubArray() {
return [];
}
var stubArray_default = stubArray;
 
// node_modules/lodash-es/_getSymbols.js
var objectProto10 = Object.prototype, propertyIsEnumerable2 = objectProto10.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols = nativeGetSymbols ? function(object) {
return object == null ? [] : (object = Object(object), arrayFilter_default(nativeGetSymbols(object), function(symbol) {
return propertyIsEnumerable2.call(object, symbol);
}));
} : stubArray_default, getSymbols_default = getSymbols;
 
// node_modules/lodash-es/_getAllKeys.js
init_process();
 
// node_modules/lodash-es/_baseGetAllKeys.js
init_process();
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
var result = keysFunc(object);
return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
}
var baseGetAllKeys_default = baseGetAllKeys;
 
// node_modules/lodash-es/_getAllKeys.js
function getAllKeys(object) {
return baseGetAllKeys_default(object, keys_default, getSymbols_default);
}
var getAllKeys_default = getAllKeys;
 
// node_modules/lodash-es/_getTag.js
init_process();
 
// node_modules/lodash-es/_DataView.js
init_process();
var DataView = getNative_default(root_default, "DataView"), DataView_default = DataView;
 
// node_modules/lodash-es/_Promise.js
init_process();
var Promise2 = getNative_default(root_default, "Promise"), Promise_default = Promise2;
 
// node_modules/lodash-es/_Set.js
init_process();
var Set = getNative_default(root_default, "Set"), Set_default = Set;
 
// node_modules/lodash-es/_getTag.js
var mapTag2 = "[object Map]", objectTag2 = "[object Object]", promiseTag = "[object Promise]", setTag2 = "[object Set]", weakMapTag2 = "[object WeakMap]", dataViewTag2 = "[object DataView]", dataViewCtorString = toSource_default(DataView_default), mapCtorString = toSource_default(Map_default), promiseCtorString = toSource_default(Promise_default), setCtorString = toSource_default(Set_default), weakMapCtorString = toSource_default(WeakMap_default), getTag = baseGetTag_default;
(DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) && (getTag = function(value) {
var result = baseGetTag_default(value), Ctor = result == objectTag2 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
if (ctorString)
switch (ctorString) {
case dataViewCtorString:
return dataViewTag2;
case mapCtorString:
return mapTag2;
case promiseCtorString:
return promiseTag;
case setCtorString:
return setTag2;
case weakMapCtorString:
return weakMapTag2;
}
return result;
});
var getTag_default = getTag;
 
// node_modules/lodash-es/_Uint8Array.js
init_process();
var Uint8Array2 = root_default.Uint8Array, Uint8Array_default = Uint8Array2;
 
// node_modules/lodash-es/_baseIteratee.js
init_process();
 
// node_modules/lodash-es/_baseMatches.js
init_process();
 
// node_modules/lodash-es/_baseIsMatch.js
init_process();
 
// node_modules/lodash-es/_baseIsEqual.js
init_process();
 
// node_modules/lodash-es/_baseIsEqualDeep.js
init_process();
 
// node_modules/lodash-es/_equalArrays.js
init_process();
 
// node_modules/lodash-es/_SetCache.js
init_process();
 
// node_modules/lodash-es/_setCacheAdd.js
init_process();
var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
function setCacheAdd(value) {
return this.__data__.set(value, HASH_UNDEFINED3), this;
}
var setCacheAdd_default = setCacheAdd;
 
// node_modules/lodash-es/_setCacheHas.js
init_process();
function setCacheHas(value) {
return this.__data__.has(value);
}
var setCacheHas_default = setCacheHas;
 
// node_modules/lodash-es/_SetCache.js
function SetCache(values) {
var index = -1, length = values == null ? 0 : values.length;
for (this.__data__ = new MapCache_default(); ++index < length; )
this.add(values[index]);
}
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
SetCache.prototype.has = setCacheHas_default;
var SetCache_default = SetCache;
 
// node_modules/lodash-es/_arraySome.js
init_process();
function arraySome(array, predicate) {
for (var index = -1, length = array == null ? 0 : array.length; ++index < length; )
if (predicate(array[index], index, array))
return !0;
return !1;
}
var arraySome_default = arraySome;
 
// node_modules/lodash-es/_cacheHas.js
init_process();
function cacheHas(cache, key) {
return cache.has(key);
}
var cacheHas_default = cacheHas;
 
// node_modules/lodash-es/_equalArrays.js
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
if (arrLength != othLength && !(isPartial && othLength > arrLength))
return !1;
var arrStacked = stack.get(array), othStacked = stack.get(other);
if (arrStacked && othStacked)
return arrStacked == other && othStacked == array;
var index = -1, result = !0, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) {
var arrValue = array[index], othValue = other[index];
if (customizer)
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
if (compared !== void 0) {
if (compared)
continue;
result = !1;
break;
}
if (seen) {
if (!arraySome_default(other, function(othValue2, othIndex) {
if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack)))
return seen.push(othIndex);
})) {
result = !1;
break;
}
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
result = !1;
break;
}
}
return stack.delete(array), stack.delete(other), result;
}
var equalArrays_default = equalArrays;
 
// node_modules/lodash-es/_equalByTag.js
init_process();
 
// node_modules/lodash-es/_mapToArray.js
init_process();
function mapToArray(map) {
var index = -1, result = Array(map.size);
return map.forEach(function(value, key) {
result[++index] = [key, value];
}), result;
}
var mapToArray_default = mapToArray;
 
// node_modules/lodash-es/_setToArray.js
init_process();
function setToArray(set) {
var index = -1, result = Array(set.size);
return set.forEach(function(value) {
result[++index] = value;
}), result;
}
var setToArray_default = setToArray;
 
// node_modules/lodash-es/_equalByTag.js
var COMPARE_PARTIAL_FLAG2 = 1, COMPARE_UNORDERED_FLAG2 = 2, boolTag2 = "[object Boolean]", dateTag2 = "[object Date]", errorTag2 = "[object Error]", mapTag3 = "[object Map]", numberTag2 = "[object Number]", regexpTag2 = "[object RegExp]", setTag3 = "[object Set]", stringTag2 = "[object String]", symbolTag2 = "[object Symbol]", arrayBufferTag2 = "[object ArrayBuffer]", dataViewTag3 = "[object DataView]", symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
switch (tag) {
case dataViewTag3:
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset)
return !1;
object = object.buffer, other = other.buffer;
case arrayBufferTag2:
return !(object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other)));
case boolTag2:
case dateTag2:
case numberTag2:
return eq_default(+object, +other);
case errorTag2:
return object.name == other.name && object.message == other.message;
case regexpTag2:
case stringTag2:
return object == other + "";
case mapTag3:
var convert2 = mapToArray_default;
case setTag3:
var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
if (convert2 || (convert2 = setToArray_default), object.size != other.size && !isPartial)
return !1;
var stacked = stack.get(object);
if (stacked)
return stacked == other;
bitmask |= COMPARE_UNORDERED_FLAG2, stack.set(object, other);
var result = equalArrays_default(convert2(object), convert2(other), bitmask, customizer, equalFunc, stack);
return stack.delete(object), result;
case symbolTag2:
if (symbolValueOf)
return symbolValueOf.call(object) == symbolValueOf.call(other);
}
return !1;
}
var equalByTag_default = equalByTag;
 
// node_modules/lodash-es/_equalObjects.js
init_process();
var COMPARE_PARTIAL_FLAG3 = 1, objectProto11 = Object.prototype, hasOwnProperty8 = objectProto11.hasOwnProperty;
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
if (objLength != othLength && !isPartial)
return !1;
for (var index = objLength; index--; ) {
var key = objProps[index];
if (!(isPartial ? key in other : hasOwnProperty8.call(other, key)))
return !1;
}
var objStacked = stack.get(object), othStacked = stack.get(other);
if (objStacked && othStacked)
return objStacked == other && othStacked == object;
var result = !0;
stack.set(object, other), stack.set(other, object);
for (var skipCtor = isPartial; ++index < objLength; ) {
key = objProps[index];
var objValue = object[key], othValue = other[key];
if (customizer)
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
result = !1;
break;
}
skipCtor || (skipCtor = key == "constructor");
}
if (result && !skipCtor) {
var objCtor = object.constructor, othCtor = other.constructor;
objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor) && (result = !1);
}
return stack.delete(object), stack.delete(other), result;
}
var equalObjects_default = equalObjects;
 
// node_modules/lodash-es/_baseIsEqualDeep.js
var COMPARE_PARTIAL_FLAG4 = 1, argsTag3 = "[object Arguments]", arrayTag2 = "[object Array]", objectTag3 = "[object Object]", objectProto12 = Object.prototype, hasOwnProperty9 = objectProto12.hasOwnProperty;
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag2 : getTag_default(object), othTag = othIsArr ? arrayTag2 : getTag_default(other);
objTag = objTag == argsTag3 ? objectTag3 : objTag, othTag = othTag == argsTag3 ? objectTag3 : othTag;
var objIsObj = objTag == objectTag3, othIsObj = othTag == objectTag3, isSameTag = objTag == othTag;
if (isSameTag && isBuffer_default(object)) {
if (!isBuffer_default(other))
return !1;
objIsArr = !0, objIsObj = !1;
}
if (isSameTag && !objIsObj)
return stack || (stack = new Stack_default()), objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
var objIsWrapped = objIsObj && hasOwnProperty9.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty9.call(other, "__wrapped__");
if (objIsWrapped || othIsWrapped) {
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
return stack || (stack = new Stack_default()), equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
}
}
return isSameTag ? (stack || (stack = new Stack_default()), equalObjects_default(object, other, bitmask, customizer, equalFunc, stack)) : !1;
}
var baseIsEqualDeep_default = baseIsEqualDeep;
 
// node_modules/lodash-es/_baseIsEqual.js
function baseIsEqual(value, other, bitmask, customizer, stack) {
return value === other ? !0 : value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other) ? value !== value && other !== other : baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
}
var baseIsEqual_default = baseIsEqual;
 
// node_modules/lodash-es/_baseIsMatch.js
var COMPARE_PARTIAL_FLAG5 = 1, COMPARE_UNORDERED_FLAG3 = 2;
function baseIsMatch(object, source, matchData, customizer) {
var index = matchData.length, length = index, noCustomizer = !customizer;
if (object == null)
return !length;
for (object = Object(object); index--; ) {
var data = matchData[index];
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object))
return !1;
}
for (; ++index < length; ) {
data = matchData[index];
var key = data[0], objValue = object[key], srcValue = data[1];
if (noCustomizer && data[2]) {
if (objValue === void 0 && !(key in object))
return !1;
} else {
var stack = new Stack_default();
if (customizer)
var result = customizer(objValue, srcValue, key, object, source, stack);
if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result))
return !1;
}
}
return !0;
}
var baseIsMatch_default = baseIsMatch;
 
// node_modules/lodash-es/_getMatchData.js
init_process();
 
// node_modules/lodash-es/_isStrictComparable.js
init_process();
function isStrictComparable(value) {
return value === value && !isObject_default(value);
}
var isStrictComparable_default = isStrictComparable;
 
// node_modules/lodash-es/_getMatchData.js
function getMatchData(object) {
for (var result = keys_default(object), length = result.length; length--; ) {
var key = result[length], value = object[key];
result[length] = [key, value, isStrictComparable_default(value)];
}
return result;
}
var getMatchData_default = getMatchData;
 
// node_modules/lodash-es/_matchesStrictComparable.js
init_process();
function matchesStrictComparable(key, srcValue) {
return function(object) {
return object == null ? !1 : object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
};
}
var matchesStrictComparable_default = matchesStrictComparable;
 
// node_modules/lodash-es/_baseMatches.js
function baseMatches(source) {
var matchData = getMatchData_default(source);
return matchData.length == 1 && matchData[0][2] ? matchesStrictComparable_default(matchData[0][0], matchData[0][1]) : function(object) {
return object === source || baseIsMatch_default(object, source, matchData);
};
}
var baseMatches_default = baseMatches;
 
// node_modules/lodash-es/_baseMatchesProperty.js
init_process();
 
// node_modules/lodash-es/hasIn.js
init_process();
 
// node_modules/lodash-es/_baseHasIn.js
init_process();
function baseHasIn(object, key) {
return object != null && key in Object(object);
}
var baseHasIn_default = baseHasIn;
 
// node_modules/lodash-es/_hasPath.js
init_process();
function hasPath(object, path, hasFunc) {
path = castPath_default(path, object);
for (var index = -1, length = path.length, result = !1; ++index < length; ) {
var key = toKey_default(path[index]);
if (!(result = object != null && hasFunc(object, key)))
break;
object = object[key];
}
return result || ++index != length ? result : (length = object == null ? 0 : object.length, !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object)));
}
var hasPath_default = hasPath;
 
// node_modules/lodash-es/hasIn.js
function hasIn(object, path) {
return object != null && hasPath_default(object, path, baseHasIn_default);
}
var hasIn_default = hasIn;
 
// node_modules/lodash-es/_baseMatchesProperty.js
var COMPARE_PARTIAL_FLAG6 = 1, COMPARE_UNORDERED_FLAG4 = 2;
function baseMatchesProperty(path, srcValue) {
return isKey_default(path) && isStrictComparable_default(srcValue) ? matchesStrictComparable_default(toKey_default(path), srcValue) : function(object) {
var objValue = get_default(object, path);
return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
};
}
var baseMatchesProperty_default = baseMatchesProperty;
 
// node_modules/lodash-es/property.js
init_process();
 
// node_modules/lodash-es/_baseProperty.js
init_process();
function baseProperty(key) {
return function(object) {
return object == null ? void 0 : object[key];
};
}
var baseProperty_default = baseProperty;
 
// node_modules/lodash-es/_basePropertyDeep.js
init_process();
function basePropertyDeep(path) {
return function(object) {
return baseGet_default(object, path);
};
}
var basePropertyDeep_default = basePropertyDeep;
 
// node_modules/lodash-es/property.js
function property(path) {
return isKey_default(path) ? baseProperty_default(toKey_default(path)) : basePropertyDeep_default(path);
}
var property_default = property;
 
// node_modules/lodash-es/_baseIteratee.js
function baseIteratee(value) {
return typeof value == "function" ? value : value == null ? identity_default : typeof value == "object" ? isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value) : property_default(value);
}
var baseIteratee_default = baseIteratee;
 
// node_modules/lodash-es/_arrayIncludesWith.js
init_process();
function arrayIncludesWith(array, value, comparator) {
for (var index = -1, length = array == null ? 0 : array.length; ++index < length; )
if (comparator(value, array[index]))
return !0;
return !1;
}
var arrayIncludesWith_default = arrayIncludesWith;
 
// node_modules/lodash-es/isRegExp.js
init_process();
 
// node_modules/lodash-es/_baseIsRegExp.js
init_process();
var regexpTag3 = "[object RegExp]";
function baseIsRegExp(value) {
return isObjectLike_default(value) && baseGetTag_default(value) == regexpTag3;
}
var baseIsRegExp_default = baseIsRegExp;
 
// node_modules/lodash-es/isRegExp.js
var nodeIsRegExp = nodeUtil_default && nodeUtil_default.isRegExp, isRegExp = nodeIsRegExp ? baseUnary_default(nodeIsRegExp) : baseIsRegExp_default, isRegExp_default = isRegExp;
 
// node_modules/lodash-es/_stringSize.js
init_process();
 
// node_modules/lodash-es/_asciiSize.js
init_process();
var asciiSize = baseProperty_default("length"), asciiSize_default = asciiSize;
 
// node_modules/lodash-es/_unicodeSize.js
init_process();
var rsAstralRange3 = "\\\\ud800-\\\\udfff", rsComboMarksRange3 = "\\\\u0300-\\\\u036f", reComboHalfMarksRange3 = "\\\\ufe20-\\\\ufe2f", rsComboSymbolsRange3 = "\\\\u20d0-\\\\u20ff", rsComboRange3 = rsComboMarksRange3 + reComboHalfMarksRange3 + rsComboSymbolsRange3, rsVarRange3 = "\\\\ufe0e\\\\ufe0f", rsAstral2 = "[" + rsAstralRange3 + "]", rsCombo2 = "[" + rsComboRange3 + "]", rsFitz2 = "\\\\ud83c[\\\\udffb-\\\\udfff]", rsModifier2 = "(?:" + rsCombo2 + "|" + rsFitz2 + ")", rsNonAstral2 = "[^" + rsAstralRange3 + "]", rsRegional2 = "(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}", rsSurrPair2 = "[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]", rsZWJ3 = "\\\\u200d", reOptMod2 = rsModifier2 + "?", rsOptVar2 = "[" + rsVarRange3 + "]?", rsOptJoin2 = "(?:" + rsZWJ3 + "(?:" + [rsNonAstral2, rsRegional2, rsSurrPair2].join("|") + ")" + rsOptVar2 + reOptMod2 + ")*", rsSeq2 = rsOptVar2 + reOptMod2 + rsOptJoin2, rsSymbol2 = "(?:" + [rsNonAstral2 + rsCombo2 + "?", rsCombo2, rsRegional2, rsSurrPair2, rsAstral2].join("|") + ")", reUnicode2 = RegExp(rsFitz2 + "(?=" + rsFitz2 + ")|" + rsSymbol2 + rsSeq2, "g");
function unicodeSize(string) {
for (var result = reUnicode2.lastIndex = 0; reUnicode2.test(string); )
++result;
return result;
}
var unicodeSize_default = unicodeSize;
 
// node_modules/lodash-es/_stringSize.js
function stringSize(string) {
return hasUnicode_default(string) ? unicodeSize_default(string) : asciiSize_default(string);
}
var stringSize_default = stringSize;
 
// node_modules/lodash-es/truncate.js
init_process();
var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "...", reFlags = /\\w*$/;
function truncate(string, options) {
var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
if (isObject_default(options)) {
var separator = "separator" in options ? options.separator : separator;
length = "length" in options ? toInteger_default(options.length) : length, omission = "omission" in options ? baseToString_default(options.omission) : omission;
}
string = toString_default(string);
var strLength = string.length;
if (hasUnicode_default(string)) {
var strSymbols = stringToArray_default(string);
strLength = strSymbols.length;
}
if (length >= strLength)
return string;
var end = length - stringSize_default(omission);
if (end < 1)
return omission;
var result = strSymbols ? castSlice_default(strSymbols, 0, end).join("") : string.slice(0, end);
if (separator === void 0)
return result + omission;
if (strSymbols && (end += result.length - end), isRegExp_default(separator)) {
if (string.slice(end).search(separator)) {
var match, substring = result;
for (separator.global || (separator = RegExp(separator.source, toString_default(reFlags.exec(separator)) + "g")), separator.lastIndex = 0; match = separator.exec(substring); )
var newEnd = match.index;
result = result.slice(0, newEnd === void 0 ? end : newEnd);
}
} else if (string.indexOf(baseToString_default(separator), end) != end) {
var index = result.lastIndexOf(separator);
index > -1 && (result = result.slice(0, index));
}
return result + omission;
}
var truncate_default = truncate;
 
// node_modules/lodash-es/_baseUniq.js
init_process();
 
// node_modules/lodash-es/_createSet.js
init_process();
var INFINITY4 = 1 / 0, createSet = Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY4 ? function(values) {
return new Set_default(values);
} : noop_default, createSet_default = createSet;
 
// node_modules/lodash-es/_baseUniq.js
var LARGE_ARRAY_SIZE2 = 200;
function baseUniq(array, iteratee, comparator) {
var index = -1, includes = arrayIncludes_default, length = array.length, isCommon = !0, result = [], seen = result;
if (comparator)
isCommon = !1, includes = arrayIncludesWith_default;
else if (length >= LARGE_ARRAY_SIZE2) {
var set = iteratee ? null : createSet_default(array);
if (set)
return setToArray_default(set);
isCommon = !1, includes = cacheHas_default, seen = new SetCache_default();
} else
seen = iteratee ? [] : result;
outer:
for (; ++index < length; ) {
var value = array[index], computed = iteratee ? iteratee(value) : value;
if (value = comparator || value !== 0 ? value : 0, isCommon && computed === computed) {
for (var seenIndex = seen.length; seenIndex--; )
if (seen[seenIndex] === computed)
continue outer;
iteratee && seen.push(computed), result.push(value);
} else includes(seen, computed, comparator) || (seen !== result && seen.push(computed), result.push(value));
}
return result;
}
var baseUniq_default = baseUniq;
 
// node_modules/lodash-es/uniqBy.js
init_process();
function uniqBy(array, iteratee) {