@nlabs/gothamjs
Version:
Platform
1,629 lines (1,606 loc) • 439 kB
JavaScript
var cf = Object.create;
var Uo = Object.defineProperty;
var pf = Object.getOwnPropertyDescriptor;
var df = Object.getOwnPropertyNames;
var ff = Object.getPrototypeOf, mf = Object.prototype.hasOwnProperty;
var a = (e, t) => Uo(e, "name", { value: t, configurable: !0 }), mo = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
"u" ? new Proxy(e, {
get: (t, o) => (typeof require < "u" ? require : t)[o]
}) : e)(function(e) {
if (typeof require < "u") return require.apply(this, arguments);
throw Error('Dynamic require of "' + e + '" is not supported');
});
var we = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), hf = (e, t) => {
for (var o in t)
Uo(e, o, { get: t[o], enumerable: !0 });
}, gf = (e, t, o, i) => {
if (t && typeof t == "object" || typeof t == "function")
for (let r of df(t))
!mf.call(e, r) && r !== o && Uo(e, r, { get: () => t[r], enumerable: !(i = pf(t, r)) || i.enumerable });
return e;
};
var Ve = (e, t, o) => (o = e != null ? cf(ff(e)) : {}, gf(
// 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.
t || !e || !e.__esModule ? Uo(o, "default", { value: e, enumerable: !0 }) : o,
e
));
// ../node_modules/prop-types/lib/ReactPropTypesSecret.js
var Ga = we((v_, Ua) => {
"use strict";
var ay = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
Ua.exports = ay;
});
// ../node_modules/prop-types/factoryWithThrowingShims.js
var Xa = we((x_, Qa) => {
"use strict";
var ly = Ga();
function qa() {
}
a(qa, "emptyFunction");
function Ya() {
}
a(Ya, "emptyFunctionWithReset");
Ya.resetWarningCache = qa;
Qa.exports = function() {
function e(i, r, n, l, u, c) {
if (c !== ly) {
var d = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. \
Read more at http://fb.me/use-check-prop-types"
);
throw d.name = "Invariant Violation", d;
}
}
a(e, "shim"), e.isRequired = e;
function t() {
return e;
}
a(t, "getShim");
var o = {
array: e,
bigint: e,
bool: e,
func: e,
number: e,
object: e,
string: e,
symbol: e,
any: e,
arrayOf: t,
element: e,
elementType: e,
instanceOf: t,
node: e,
objectOf: t,
oneOf: t,
oneOfType: t,
shape: t,
exact: t,
checkPropTypes: Ya,
resetWarningCache: qa
};
return o.PropTypes = o, o;
};
});
// ../node_modules/prop-types/index.js
var ni = we((E_, Za) => {
Za.exports = Xa()();
var S_, w_;
});
// ../node_modules/react-fast-compare/index.js
var el = we((T_, Ja) => {
var uy = typeof Element < "u", cy = typeof Map == "function", py = typeof Set == "function", dy = typeof ArrayBuffer == "function" && !!ArrayBuffer.
isView;
function dr(e, t) {
if (e === t) return !0;
if (e && t && typeof e == "object" && typeof t == "object") {
if (e.constructor !== t.constructor) return !1;
var o, i, r;
if (Array.isArray(e)) {
if (o = e.length, o != t.length) return !1;
for (i = o; i-- !== 0; )
if (!dr(e[i], t[i])) return !1;
return !0;
}
var n;
if (cy && e instanceof Map && t instanceof Map) {
if (e.size !== t.size) return !1;
for (n = e.entries(); !(i = n.next()).done; )
if (!t.has(i.value[0])) return !1;
for (n = e.entries(); !(i = n.next()).done; )
if (!dr(i.value[1], t.get(i.value[0]))) return !1;
return !0;
}
if (py && e instanceof Set && t instanceof Set) {
if (e.size !== t.size) return !1;
for (n = e.entries(); !(i = n.next()).done; )
if (!t.has(i.value[0])) return !1;
return !0;
}
if (dy && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
if (o = e.length, o != t.length) return !1;
for (i = o; i-- !== 0; )
if (e[i] !== t[i]) return !1;
return !0;
}
if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() ===
t.valueOf();
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() ===
t.toString();
if (r = Object.keys(e), o = r.length, o !== Object.keys(t).length) return !1;
for (i = o; i-- !== 0; )
if (!Object.prototype.hasOwnProperty.call(t, r[i])) return !1;
if (uy && e instanceof Element) return !1;
for (i = o; i-- !== 0; )
if (!((r[i] === "_owner" || r[i] === "__v" || r[i] === "__o") && e.$$typeof) && !dr(e[r[i]], t[r[i]]))
return !1;
return !0;
}
return e !== e && t !== t;
}
a(dr, "equal");
Ja.exports = /* @__PURE__ */ a(function(t, o) {
try {
return dr(t, o);
} catch (i) {
if ((i.message || "").match(/stack|recursion/i))
return console.warn("react-fast-compare cannot handle circular refs"), !1;
throw i;
}
}, "isEqual");
});
// ../node_modules/invariant/browser.js
var ol = we((__, tl) => {
"use strict";
var fy = /* @__PURE__ */ a(function(e, t, o, i, r, n, l, u) {
if (!e) {
var c;
if (t === void 0)
c = new Error(
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
);
else {
var d = [o, i, r, n, l, u], p = 0;
c = new Error(
t.replace(/%s/g, function() {
return d[p++];
})
), c.name = "Invariant Violation";
}
throw c.framesToPop = 1, c;
}
}, "invariant");
tl.exports = fy;
});
// ../node_modules/shallowequal/index.js
var nl = we((O_, rl) => {
rl.exports = /* @__PURE__ */ a(function(t, o, i, r) {
var n = i ? i.call(r, t, o) : void 0;
if (n !== void 0)
return !!n;
if (t === o)
return !0;
if (typeof t != "object" || !t || typeof o != "object" || !o)
return !1;
var l = Object.keys(t), u = Object.keys(o);
if (l.length !== u.length)
return !1;
for (var c = Object.prototype.hasOwnProperty.bind(o), d = 0; d < l.length; d++) {
var p = l[d];
if (!c(p))
return !1;
var m = t[p], h = o[p];
if (n = i ? i.call(r, m, h, p) : void 0, n === !1 || n === void 0 && m !== h)
return !1;
}
return !0;
}, "shallowEqual");
});
// ../node_modules/memoizerific/memoizerific.js
var Pi = we((Ql, Oi) => {
(function(e) {
if (typeof Ql == "object" && typeof Oi < "u")
Oi.exports = e();
else if (typeof define == "function" && define.amd)
define([], e);
else {
var t;
typeof window < "u" ? t = window : typeof global < "u" ? t = global : typeof self < "u" ? t = self : t = this, t.memoizerific = e();
}
})(function() {
var e, t, o;
return (/* @__PURE__ */ a(function i(r, n, l) {
function u(p, m) {
if (!n[p]) {
if (!r[p]) {
var h = typeof mo == "function" && mo;
if (!m && h) return h(p, !0);
if (c) return c(p, !0);
var b = new Error("Cannot find module '" + p + "'");
throw b.code = "MODULE_NOT_FOUND", b;
}
var f = n[p] = { exports: {} };
r[p][0].call(f.exports, function(y) {
var S = r[p][1][y];
return u(S || y);
}, f, f.exports, i, r, n, l);
}
return n[p].exports;
}
a(u, "s");
for (var c = typeof mo == "function" && mo, d = 0; d < l.length; d++) u(l[d]);
return u;
}, "e"))({ 1: [function(i, r, n) {
r.exports = function(l) {
if (typeof Map != "function" || l) {
var u = i("./similar");
return new u();
} else
return /* @__PURE__ */ new Map();
};
}, { "./similar": 2 }], 2: [function(i, r, n) {
function l() {
return this.list = [], this.lastItem = void 0, this.size = 0, this;
}
a(l, "Similar"), l.prototype.get = function(u) {
var c;
if (this.lastItem && this.isEqual(this.lastItem.key, u))
return this.lastItem.val;
if (c = this.indexOf(u), c >= 0)
return this.lastItem = this.list[c], this.list[c].val;
}, l.prototype.set = function(u, c) {
var d;
return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = c, this) : (d = this.indexOf(u), d >= 0 ? (this.lastItem =
this.list[d], this.list[d].val = c, this) : (this.lastItem = { key: u, val: c }, this.list.push(this.lastItem), this.size++, this));
}, l.prototype.delete = function(u) {
var c;
if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), c = this.indexOf(u), c >= 0)
return this.size--, this.list.splice(c, 1)[0];
}, l.prototype.has = function(u) {
var c;
return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (c = this.indexOf(u), c >= 0 ? (this.lastItem = this.list[c], !0) :
!1);
}, l.prototype.forEach = function(u, c) {
var d;
for (d = 0; d < this.size; d++)
u.call(c || this, this.list[d].val, this.list[d].key, this);
}, l.prototype.indexOf = function(u) {
var c;
for (c = 0; c < this.size; c++)
if (this.isEqual(this.list[c].key, u))
return c;
return -1;
}, l.prototype.isEqual = function(u, c) {
return u === c || u !== u && c !== c;
}, r.exports = l;
}, {}], 3: [function(i, r, n) {
var l = i("map-or-similar");
r.exports = function(p) {
var m = new l(!1), h = [];
return function(b) {
var f = /* @__PURE__ */ a(function() {
var y = m, S, E, g = arguments.length - 1, v = Array(g + 1), I = !0, w;
if ((f.numArgs || f.numArgs === 0) && f.numArgs !== g + 1)
throw new Error("Memoizerific functions should always be called with the same number of arguments");
for (w = 0; w < g; w++) {
if (v[w] = {
cacheItem: y,
arg: arguments[w]
}, y.has(arguments[w])) {
y = y.get(arguments[w]);
continue;
}
I = !1, S = new l(!1), y.set(arguments[w], S), y = S;
}
return I && (y.has(arguments[g]) ? E = y.get(arguments[g]) : I = !1), I || (E = b.apply(null, arguments), y.set(arguments[g], E)),
p > 0 && (v[g] = {
cacheItem: y,
arg: arguments[g]
}, I ? u(h, v) : h.push(v), h.length > p && c(h.shift())), f.wasMemoized = I, f.numArgs = g + 1, E;
}, "memoizerific");
return f.limit = p, f.wasMemoized = !1, f.cache = m, f.lru = h, f;
};
};
function u(p, m) {
var h = p.length, b = m.length, f, y, S;
for (y = 0; y < h; y++) {
for (f = !0, S = 0; S < b; S++)
if (!d(p[y][S].arg, m[S].arg)) {
f = !1;
break;
}
if (f)
break;
}
p.push(p.splice(y, 1)[0]);
}
a(u, "moveToMostRecentLru");
function c(p) {
var m = p.length, h = p[m - 1], b, f;
for (h.cacheItem.delete(h.arg), f = m - 2; f >= 0 && (h = p[f], b = h.cacheItem.get(h.arg), !b || !b.size); f--)
h.cacheItem.delete(h.arg);
}
a(c, "removeCachedResult");
function d(p, m) {
return p === m || p !== p && m !== m;
}
a(d, "isEqual");
}, { "map-or-similar": 1 }] }, {}, [3])(3);
});
});
// ../node_modules/picoquery/lib/string-util.js
var Di = we((Ai) => {
"use strict";
Object.defineProperty(Ai, "__esModule", { value: !0 });
Ai.encodeString = Xb;
var nt = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Qb = new Int8Array([
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
0
]);
function Xb(e) {
let t = e.length;
if (t === 0)
return "";
let o = "", i = 0, r = 0;
e: for (; r < t; r++) {
let n = e.charCodeAt(r);
for (; n < 128; ) {
if (Qb[n] !== 1 && (i < r && (o += e.slice(i, r)), i = r + 1, o += nt[n]), ++r === t)
break e;
n = e.charCodeAt(r);
}
if (i < r && (o += e.slice(i, r)), n < 2048) {
i = r + 1, o += nt[192 | n >> 6] + nt[128 | n & 63];
continue;
}
if (n < 55296 || n >= 57344) {
i = r + 1, o += nt[224 | n >> 12] + nt[128 | n >> 6 & 63] + nt[128 | n & 63];
continue;
}
if (++r, r >= t)
throw new Error("URI malformed");
let l = e.charCodeAt(r) & 1023;
i = r + 1, n = 65536 + ((n & 1023) << 10 | l), o += nt[240 | n >> 18] + nt[128 | n >> 12 & 63] + nt[128 | n >> 6 & 63] + nt[128 | n & 63];
}
return i === 0 ? e : i < t ? o + e.slice(i) : o;
}
a(Xb, "encodeString");
});
// ../node_modules/picoquery/lib/shared.js
var Tr = we((it) => {
"use strict";
Object.defineProperty(it, "__esModule", { value: !0 });
it.defaultOptions = it.defaultShouldSerializeObject = it.defaultValueSerializer = void 0;
var Mi = Di(), Zb = /* @__PURE__ */ a((e) => {
switch (typeof e) {
case "string":
return (0, Mi.encodeString)(e);
case "bigint":
case "boolean":
return "" + e;
case "number":
if (Number.isFinite(e))
return e < 1e21 ? "" + e : (0, Mi.encodeString)("" + e);
break;
}
return e instanceof Date ? (0, Mi.encodeString)(e.toISOString()) : "";
}, "defaultValueSerializer");
it.defaultValueSerializer = Zb;
var Jb = /* @__PURE__ */ a((e) => e instanceof Date, "defaultShouldSerializeObject");
it.defaultShouldSerializeObject = Jb;
var Zl = /* @__PURE__ */ a((e) => e, "identityFunc");
it.defaultOptions = {
nesting: !0,
nestingSyntax: "dot",
arrayRepeat: !1,
arrayRepeatSyntax: "repeat",
delimiter: 38,
valueDeserializer: Zl,
valueSerializer: it.defaultValueSerializer,
keyDeserializer: Zl,
shouldSerializeObject: it.defaultShouldSerializeObject
};
});
// ../node_modules/picoquery/lib/object-util.js
var Li = we((Cr) => {
"use strict";
Object.defineProperty(Cr, "__esModule", { value: !0 });
Cr.getDeepObject = ov;
Cr.stringifyObject = Jl;
var Rt = Tr(), ev = Di();
function tv(e) {
return e === "__proto__" || e === "constructor" || e === "prototype";
}
a(tv, "isPrototypeKey");
function ov(e, t, o, i, r) {
if (tv(t))
return e;
let n = e[t];
return typeof n == "object" && n !== null ? n : !i && (r || typeof o == "number" || typeof o == "string" && o * 0 === 0 && o.indexOf(".") ===
-1) ? e[t] = [] : e[t] = {};
}
a(ov, "getDeepObject");
var rv = 20, nv = "[]", iv = "[", sv = "]", av = ".";
function Jl(e, t, o = 0, i, r) {
let { nestingSyntax: n = Rt.defaultOptions.nestingSyntax, arrayRepeat: l = Rt.defaultOptions.arrayRepeat, arrayRepeatSyntax: u = Rt.defaultOptions.
arrayRepeatSyntax, nesting: c = Rt.defaultOptions.nesting, delimiter: d = Rt.defaultOptions.delimiter, valueSerializer: p = Rt.defaultOptions.
valueSerializer, shouldSerializeObject: m = Rt.defaultOptions.shouldSerializeObject } = t, h = typeof d == "number" ? String.fromCharCode(
d) : d, b = r === !0 && l, f = n === "dot" || n === "js" && !r;
if (o > rv)
return "";
let y = "", S = !0, E = !1;
for (let g in e) {
let v = e[g], I;
i ? (I = i, b ? u === "bracket" && (I += nv) : f ? (I += av, I += g) : (I += iv, I += g, I += sv)) : I = g, S || (y += h), typeof v ==
"object" && v !== null && !m(v) ? (E = v.pop !== void 0, (c || l && E) && (y += Jl(v, t, o + 1, I, E))) : (y += (0, ev.encodeString)(I),
y += "=", y += p(v, g)), S && (S = !1);
}
return y;
}
a(Jl, "stringifyObject");
});
// ../node_modules/fast-decode-uri-component/index.js
var ru = we((mA, ou) => {
"use strict";
var eu = 12, lv = 0, Ni = [
// The first part of the table maps bytes to character to a transition.
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
4,
4,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
6,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
8,
7,
7,
10,
9,
9,
9,
11,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
// The second part of the table maps a state to a new state when adding a
// transition.
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
12,
0,
0,
0,
0,
24,
36,
48,
60,
72,
84,
96,
0,
12,
12,
12,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
24,
0,
0,
0,
0,
0,
0,
0,
0,
0,
24,
24,
24,
0,
0,
0,
0,
0,
0,
0,
0,
0,
24,
24,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
48,
48,
48,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
48,
48,
0,
0,
0,
0,
0,
0,
0,
0,
0,
48,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
// The third part maps the current transition to a mask that needs to apply
// to the byte.
127,
63,
63,
63,
0,
31,
15,
15,
15,
7,
7,
7
];
function uv(e) {
var t = e.indexOf("%");
if (t === -1) return e;
for (var o = e.length, i = "", r = 0, n = 0, l = t, u = eu; t > -1 && t < o; ) {
var c = tu(e[t + 1], 4), d = tu(e[t + 2], 0), p = c | d, m = Ni[p];
if (u = Ni[256 + u + m], n = n << 6 | p & Ni[364 + m], u === eu)
i += e.slice(r, l), i += n <= 65535 ? String.fromCharCode(n) : String.fromCharCode(
55232 + (n >> 10),
56320 + (n & 1023)
), n = 0, r = t + 3, t = l = e.indexOf("%", r);
else {
if (u === lv)
return null;
if (t += 3, t < o && e.charCodeAt(t) === 37) continue;
return null;
}
}
return i + e.slice(r);
}
a(uv, "decodeURIComponent");
var cv = {
0: 0,
1: 1,
2: 2,
3: 3,
4: 4,
5: 5,
6: 6,
7: 7,
8: 8,
9: 9,
a: 10,
A: 10,
b: 11,
B: 11,
c: 12,
C: 12,
d: 13,
D: 13,
e: 14,
E: 14,
f: 15,
F: 15
};
function tu(e, t) {
var o = cv[e];
return o === void 0 ? 255 : o << t;
}
a(tu, "hexCodeToInt");
ou.exports = uv;
});
// ../node_modules/picoquery/lib/parse.js
var au = we((dt) => {
"use strict";
var pv = dt && dt.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(dt, "__esModule", { value: !0 });
dt.numberValueDeserializer = dt.numberKeyDeserializer = void 0;
dt.parse = mv;
var _r = Li(), Bt = Tr(), nu = pv(ru()), dv = /* @__PURE__ */ a((e) => {
let t = Number(e);
return Number.isNaN(t) ? e : t;
}, "numberKeyDeserializer");
dt.numberKeyDeserializer = dv;
var fv = /* @__PURE__ */ a((e) => {
let t = Number(e);
return Number.isNaN(t) ? e : t;
}, "numberValueDeserializer");
dt.numberValueDeserializer = fv;
var iu = /\+/g, su = /* @__PURE__ */ a(function() {
}, "Empty");
su.prototype = /* @__PURE__ */ Object.create(null);
function kr(e, t, o, i, r) {
let n = e.substring(t, o);
return i && (n = n.replace(iu, " ")), r && (n = (0, nu.default)(n) || n), n;
}
a(kr, "computeKeySlice");
function mv(e, t) {
let { valueDeserializer: o = Bt.defaultOptions.valueDeserializer, keyDeserializer: i = Bt.defaultOptions.keyDeserializer, arrayRepeatSyntax: r = Bt.
defaultOptions.arrayRepeatSyntax, nesting: n = Bt.defaultOptions.nesting, arrayRepeat: l = Bt.defaultOptions.arrayRepeat, nestingSyntax: u = Bt.
defaultOptions.nestingSyntax, delimiter: c = Bt.defaultOptions.delimiter } = t ?? {}, d = typeof c == "string" ? c.charCodeAt(0) : c, p = u ===
"js", m = new su();
if (typeof e != "string")
return m;
let h = e.length, b = "", f = -1, y = -1, S = -1, E = m, g, v = "", I = "", w = !1, O = !1, _ = !1, k = !1, T = !1, C = !1, P = !1, D = 0,
M = -1, F = -1, Z = -1;
for (let W = 0; W < h + 1; W++) {
if (D = W !== h ? e.charCodeAt(W) : d, D === d) {
if (P = y > f, P || (y = W), S !== y - 1 && (I = kr(e, S + 1, M > -1 ? M : y, _, w), v = i(I), g !== void 0 && (E = (0, _r.getDeepObject)(
E, g, v, p && T, p && C))), P || v !== "") {
P && (b = e.slice(y + 1, W), k && (b = b.replace(iu, " ")), O && (b = (0, nu.default)(b) || b));
let Q = o(b, v);
if (l) {
let H = E[v];
H === void 0 ? M > -1 ? E[v] = [Q] : E[v] = Q : H.pop ? H.push(Q) : E[v] = [H, Q];
} else
E[v] = Q;
}
b = "", f = W, y = W, w = !1, O = !1, _ = !1, k = !1, T = !1, C = !1, M = -1, S = W, E = m, g = void 0, v = "";
} else D === 93 ? (l && r === "bracket" && Z === 91 && (M = F), n && (u === "index" || p) && y <= f && (S !== F && (I = kr(e, S + 1, W,
_, w), v = i(I), g !== void 0 && (E = (0, _r.getDeepObject)(E, g, v, void 0, p)), g = v, _ = !1, w = !1), S = W, C = !0, T = !1)) : D ===
46 ? n && (u === "dot" || p) && y <= f && (S !== F && (I = kr(e, S + 1, W, _, w), v = i(I), g !== void 0 && (E = (0, _r.getDeepObject)(
E, g, v, p)), g = v, _ = !1, w = !1), T = !0, C = !1, S = W) : D === 91 ? n && (u === "index" || p) && y <= f && (S !== F && (I = kr(e,
S + 1, W, _, w), v = i(I), p && g !== void 0 && (E = (0, _r.getDeepObject)(E, g, v, p)), g = v, _ = !1, w = !1, T = !1, C = !0), S = W) :
D === 61 ? y <= f ? y = W : O = !0 : D === 43 ? y > f ? k = !0 : _ = !0 : D === 37 && (y > f ? O = !0 : w = !0);
F = W, Z = D;
}
return m;
}
a(mv, "parse");
});
// ../node_modules/picoquery/lib/stringify.js
var lu = we((Fi) => {
"use strict";
Object.defineProperty(Fi, "__esModule", { value: !0 });
Fi.stringify = gv;
var hv = Li();
function gv(e, t) {
if (e === null || typeof e != "object")
return "";
let o = t ?? {};
return (0, hv.stringifyObject)(e, o);
}
a(gv, "stringify");
});
// ../node_modules/picoquery/lib/main.js
var uu = we((Xe) => {
"use strict";
var yv = Xe && Xe.__createBinding || (Object.create ? function(e, t, o, i) {
i === void 0 && (i = o);
var r = Object.getOwnPropertyDescriptor(t, o);
(!r || ("get" in r ? !t.__esModule : r.writable || r.configurable)) && (r = { enumerable: !0, get: /* @__PURE__ */ a(function() {
return t[o];
}, "get") }), Object.defineProperty(e, i, r);
} : function(e, t, o, i) {
i === void 0 && (i = o), e[i] = t[o];
}), bv = Xe && Xe.__exportStar || function(e, t) {
for (var o in e) o !== "default" && !Object.prototype.hasOwnProperty.call(t, o) && yv(t, e, o);
};
Object.defineProperty(Xe, "__esModule", { value: !0 });
Xe.stringify = Xe.parse = void 0;
var vv = au();
Object.defineProperty(Xe, "parse", { enumerable: !0, get: /* @__PURE__ */ a(function() {
return vv.parse;
}, "get") });
var xv = lu();
Object.defineProperty(Xe, "stringify", { enumerable: !0, get: /* @__PURE__ */ a(function() {
return xv.stringify;
}, "get") });
bv(Tr(), Xe);
});
// ../node_modules/toggle-selection/index.js
var hu = we((BA, mu) => {
mu.exports = function() {
var e = document.getSelection();
if (!e.rangeCount)
return function() {
};
for (var t = document.activeElement, o = [], i = 0; i < e.rangeCount; i++)
o.push(e.getRangeAt(i));
switch (t.tagName.toUpperCase()) {
// .toUpperCase handles XHTML
case "INPUT":
case "TEXTAREA":
t.blur();
break;
default:
t = null;
break;
}
return e.removeAllRanges(), function() {
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(r) {
e.addRange(r);
}), t && t.focus();
};
};
});
// ../node_modules/copy-to-clipboard/index.js
var bu = we((HA, yu) => {
"use strict";
var Cv = hu(), gu = {
"text/plain": "Text",
"text/html": "Url",
default: "Text"
}, _v = "Copy to clipboard: #{key}, Enter";
function kv(e) {
var t = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
return e.replace(/#{\s*key\s*}/g, t);
}
a(kv, "format");
function Ov(e, t) {
var o, i, r, n, l, u, c = !1;
t || (t = {}), o = t.debug || !1;
try {
r = Cv(), n = document.createRange(), l = document.getSelection(), u = document.createElement("span"), u.textContent = e, u.ariaHidden =
"true", u.style.all = "unset", u.style.position = "fixed", u.style.top = 0, u.style.clip = "rect(0, 0, 0, 0)", u.style.whiteSpace = "p\
re", u.style.webkitUserSelect = "text", u.style.MozUserSelect = "text", u.style.msUserSelect = "text", u.style.userSelect = "text", u.addEventListener(
"copy", function(p) {
if (p.stopPropagation(), t.format)
if (p.preventDefault(), typeof p.clipboardData > "u") {
o && console.warn("unable to use e.clipboardData"), o && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
var m = gu[t.format] || gu.default;
window.clipboardData.setData(m, e);
} else
p.clipboardData.clearData(), p.clipboardData.setData(t.format, e);
t.onCopy && (p.preventDefault(), t.onCopy(p.clipboardData));
}), document.body.appendChild(u), n.selectNodeContents(u), l.addRange(n);
var d = document.execCommand("copy");
if (!d)
throw new Error("copy command was unsuccessful");
c = !0;
} catch (p) {
o && console.error("unable to copy using execCommand: ", p), o && console.warn("trying IE specific stuff");
try {
window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), c = !0;
} catch (m) {
o && console.error("unable to copy using clipboardData: ", m), o && console.error("falling back to prompt"), i = kv("message" in t ?
t.message : _v), window.prompt(i, e);
}
} finally {
l && (typeof l.removeRange == "function" ? l.removeRange(n) : l.removeAllRanges()), u && document.body.removeChild(u), r();
}
return c;
}
a(Ov, "copy");
yu.exports = Ov;
});
// ../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js
var Ip = we((pe) => {
"use strict";
var Qi = Symbol.for("react.element"), Xi = Symbol.for("react.portal"), Vr = Symbol.for("react.fragment"), jr = Symbol.for("react.strict_mo\
de"), Kr = Symbol.for("react.profiler"), $r = Symbol.for("react.provider"), Ur = Symbol.for("react.context"), _x = Symbol.for("react.server_\
context"), Gr = Symbol.for("react.forward_ref"), qr = Symbol.for("react.suspense"), Yr = Symbol.for("react.suspense_list"), Qr = Symbol.for(
"react.memo"), Xr = Symbol.for("react.lazy"), kx = Symbol.for("react.offscreen"), xp;
xp = Symbol.for("react.module.reference");
function Ue(e) {
if (typeof e == "object" && e !== null) {
var t = e.$$typeof;
switch (t) {
case Qi:
switch (e = e.type, e) {
case Vr:
case Kr:
case jr:
case qr:
case Yr:
return e;
default:
switch (e = e && e.$$typeof, e) {
case _x:
case Ur:
case Gr:
case Xr:
case Qr:
case $r:
return e;
default:
return t;
}
}
case Xi:
return t;
}
}
}
a(Ue, "v");
pe.ContextConsumer = Ur;
pe.ContextProvider = $r;
pe.Element = Qi;
pe.ForwardRef = Gr;
pe.Fragment = Vr;
pe.Lazy = Xr;
pe.Memo = Qr;
pe.Portal = Xi;
pe.Profiler = Kr;
pe.StrictMode = jr;
pe.Suspense = qr;
pe.SuspenseList = Yr;
pe.isAsyncMode = function() {
return !1;
};
pe.isConcurrentMode = function() {
return !1;
};
pe.isContextConsumer = function(e) {
return Ue(e) === Ur;
};
pe.isContextProvider = function(e) {
return Ue(e) === $r;
};
pe.isElement = function(e) {
return typeof e == "object" && e !== null && e.$$typeof === Qi;
};
pe.isForwardRef = function(e) {
return Ue(e) === Gr;
};
pe.isFragment = function(e) {
return Ue(e) === Vr;
};
pe.isLazy = function(e) {
return Ue(e) === Xr;
};
pe.isMemo = function(e) {
return Ue(e) === Qr;
};
pe.isPortal = function(e) {
return Ue(e) === Xi;
};
pe.isProfiler = function(e) {
return Ue(e) === Kr;
};
pe.isStrictMode = function(e) {
return Ue(e) === jr;
};
pe.isSuspense = function(e) {
return Ue(e) === qr;
};
pe.isSuspenseList = function(e) {
return Ue(e) === Yr;
};
pe.isValidElementType = function(e) {
return typeof e == "string" || typeof e == "function" || e === Vr || e === Kr || e === jr || e === qr || e === Yr || e === kx || typeof e ==
"object" && e !== null && (e.$$typeof === Xr || e.$$typeof === Qr || e.$$typeof === $r || e.$$typeof === Ur || e.$$typeof === Gr || e.$$typeof ===
xp || e.getModuleId !== void 0);
};
pe.typeOf = Ue;
});
// ../node_modules/downshift/node_modules/react-is/index.js
var wp = we((bR, Sp) => {
"use strict";
Sp.exports = Ip();
});
// ../node_modules/fuse.js/dist/fuse.js
var Ad = we((jo, Ws) => {
(function(e, t) {
typeof jo == "object" && typeof Ws == "object" ? Ws.exports = t() : typeof define == "function" && define.amd ? define("Fuse", [], t) : typeof jo ==
"object" ? jo.Fuse = t() : e.Fuse = t();
})(jo, function() {
return function(e) {
var t = {};
function o(i) {
if (t[i]) return t[i].exports;
var r = t[i] = { i, l: !1, exports: {} };
return e[i].call(r.exports, r, r.exports, o), r.l = !0, r.exports;
}
return a(o, "r"), o.m = e, o.c = t, o.d = function(i, r, n) {
o.o(i, r) || Object.defineProperty(i, r, { enumerable: !0, get: n });
}, o.r = function(i) {
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(
i, "__esModule", { value: !0 });
}, o.t = function(i, r) {
if (1 & r && (i = o(i)), 8 & r || 4 & r && typeof i == "object" && i && i.__esModule) return i;
var n = /* @__PURE__ */ Object.create(null);
if (o.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: i }), 2 & r && typeof i != "string") for (var l in i) o.d(n,
l, function(u) {
return i[u];
}.bind(null, l));
return n;
}, o.n = function(i) {
var r = i && i.__esModule ? function() {
return i.default;
} : function() {
return i;
};
return o.d(r, "a", r), r;
}, o.o = function(i, r) {
return Object.prototype.hasOwnProperty.call(i, r);
}, o.p = "", o(o.s = 0);
}([function(e, t, o) {
function i(p) {
return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
return typeof m;
} : function(m) {
return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
})(p);
}
a(i, "n");
function r(p, m) {
for (var h = 0; h < m.length; h++) {
var b = m[h];
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(p, b.key, b);
}
}
a(r, "o");
var n = o(1), l = o(7), u = l.get, c = (l.deepValue, l.isArray), d = function() {
function p(f, y) {
var S = y.location, E = S === void 0 ? 0 : S, g = y.distance, v = g === void 0 ? 100 : g, I = y.threshold, w = I === void 0 ? 0.6 :
I, O = y.maxPatternLength, _ = O === void 0 ? 32 : O, k = y.caseSensitive, T = k !== void 0 && k, C = y.tokenSeparator, P = C === void 0 ?
/ +/g : C, D = y.findAllMatches, M = D !== void 0 && D, F = y.minMatchCharLength, Z = F === void 0 ? 1 : F, W = y.id, Q = W === void 0 ?
null : W, H = y.keys, G = H === void 0 ? [] : H, z = y.shouldSort, re = z === void 0 || z, R = y.getFn, B = R === void 0 ? u : R, L = y.
sortFn, $ = L === void 0 ? function(fe, Se) {
return fe.score - Se.score;
} : L, J = y.tokenize, ie = J !== void 0 && J, te = y.matchAllTokens, de = te !== void 0 && te, ae = y.includeMatches, ce = ae !==
void 0 && ae, ue = y.includeScore, Ie = ue !== void 0 && ue, ye = y.verbose, Oe = ye !== void 0 && ye;
(function(fe, Se) {
if (!(fe instanceof Se)) throw new TypeError("Cannot call a class as a function");
})(this, p), this.options = { location: E, distance: v, threshold: w, maxPatternLength: _, isCaseSensitive: T, tokenSeparator: P, findAllMatches: M,
minMatchCharLength: Z, id: Q, keys: G, includeMatches: ce, includeScore: Ie, shouldSort: re, getFn: B, sortFn: $, verbose: Oe, tokenize: ie,
matchAllTokens: de }, this.setCollection(f), this._processKeys(G);
}
a(p, "e");
var m, h, b;
return m = p, (h = [{ key: "setCollection", value: /* @__PURE__ */ a(function(f) {
return this.list = f, f;
}, "value") }, { key: "_processKeys", value: /* @__PURE__ */ a(function(f) {
if (this._keyWeights = {}, this._keyNames = [], f.length && typeof f[0] == "string") for (var y = 0, S = f.length; y < S; y += 1) {
var E = f[y];
this._keyWeights[E] = 1, this._keyNames.push(E);
}
else {
for (var g = null, v = null, I = 0, w = 0, O = f.length; w < O; w += 1) {
var _ = f[w];
if (!_.hasOwnProperty("name")) throw new Error('Missing "name" property in key object');
var k = _.name;
if (this._keyNames.push(k), !_.hasOwnProperty("weight")) throw new Error('Missing "weight" property in key object');
var T = _.weight;
if (T < 0 || T > 1) throw new Error('"weight" property in key must bein the range of [0, 1)');
v = v == null ? T : Math.max(v, T), g = g == null ? T : Math.min(g, T), this._keyWeights[k] = T, I += T;
}
if (I > 1) throw new Error("Total of weights cannot exceed 1");
}
}, "value") }, { key: "search", value: /* @__PURE__ */ a(function(f) {
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { limit: !1 };
this._log(`---------
Search pattern: "`.concat(f, '"'));
var S = this._prepareSearchers(f), E = S.tokenSearchers, g = S.fullSearcher, v = this._search(E, g);
return this._computeScore(v), this.options.shouldSort && this._sort(v), y.limit && typeof y.limit == "number" && (v = v.slice(0, y.
limit)), this._format(v);
}, "value") }, { key: "_prepareSearchers", value: /* @__PURE__ */ a(function() {
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", y = [];
if (this.options.tokenize) for (var S = f.split(this.options.tokenSeparator), E = 0, g = S.length; E < g; E += 1) y.push(new n(S[E],
this.options));
return { tokenSearchers: y, fullSearcher: new n(f, this.options) };
}, "value") }, { key: "_search", value: /* @__PURE__ */ a(function() {
var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], y = arguments.length > 1 ? arguments[1] : void 0, S = this.
list, E = {}, g = [];
if (typeof S[0] == "string") {
for (var v = 0, I = S.length; v < I; v += 1) this._analyze({ key: "", value: S[v], record: v, index: v }, { resultMap: E, results: g,
tokenSearchers: f, fullSearcher: y });
return g;
}
for (var w = 0, O = S.length; w < O; w += 1) for (var _ = S[w], k = 0, T = this._keyNames.length; k < T; k += 1) {
var C = this._keyNames[k];
this._analyze({ key: C, value: this.options.getFn(_, C), record: _, index: w }, { resultMap: E, results: g, tokenSearchers: f, fullSearcher: y });
}
return g;
}, "value") }, { key: "_analyze", value: /* @__PURE__ */ a(function(f, y) {
var S = this, E = f.key, g = f.arrayIndex, v = g === void 0 ? -1 : g, I = f.value, w = f.record, O = f.index, _ = y.tokenSearchers,
k = _ === void 0 ? [] : _, T = y.fullSearcher, C = y.resultMap, P = C === void 0 ? {} : C, D = y.results, M = D === void 0 ? [] : D;
(/* @__PURE__ */ a(function F(Z, W, Q, H) {
if (W != null) {
if (typeof W == "string") {
var G = !1, z = -1, re = 0;
S._log(`
Key: `.concat(E === "" ? "--" : E));
var R = T.search(W);
if (S._log('Full text: "'.concat(W, '", score: ').concat(R.score)), S.options.tokenize) {
for (var B = W.split(S.options.tokenSeparator), L = B.length, $ = [], J = 0, ie = k.length; J < ie; J += 1) {
var te = k[J];
S._log(`
Pattern: "`.concat(te.pattern, '"'));
for (var de = !1, ae = 0; ae < L; ae += 1) {
var ce = B[ae], ue = te.search(ce), Ie = {};
ue.isMatch ? (Ie[ce] = ue.score, G = !0, de = !0, $.push(ue.score)) : (Ie[ce] = 1, S.options.matchAllTokens || $.push(
1)), S._log('Token: "'.concat(ce, '", score: ').concat(Ie[ce]));
}
de && (re += 1);
}
z = $[0];
for (var ye = $.length, Oe = 1; Oe < ye; Oe += 1) z += $[Oe];
z /= ye, S._log("Token score average:", z);
}
var fe = R.score;
z > -1 && (fe = (fe + z) / 2), S._log("Score average:", fe);
var Se = !S.options.tokenize || !S.options.matchAllTokens || re >= k.length;
if (S._log(`
Check Matches: `.concat(Se)), (G || R.isMatch) && Se) {
var _e = { key: E, arrayIndex: Z, value: W, score: fe };
S.options.includeMatches && (_e.matchedIndices = R.matchedIndices);
var Ae = P[H];
Ae ? Ae.output.push(_e) : (P[H] = { item: Q, output: [_e] }, M.push(P[H]));
}
} else if (c(W)) for (var et = 0, N = W.length; et < N; et += 1) F(et, W[et], Q, H);
}
}, "e"))(v, I, w, O);
}, "value") }, { key: "_computeScore", value: /* @__PURE__ */ a(function(f) {
this._log(`
Computing score:
`);
for (var y = this._keyWeights, S = !!Object.keys(y).length, E = 0, g = f.length; E < g; E += 1) {
for (var v = f[E], I = v.output, w = I.length, O = 1, _ = 0; _ < w; _ += 1) {
var k = I[_], T = k.key, C = S ? y[T] : 1, P = k.score === 0 && y && y[T] > 0 ? Number.EPSILON : k.score;
O *= Math.pow(P, C);
}
v.score = O, this._log(v);
}
}, "value") }, { key: "_sort", value: /* @__PURE__ */ a(function(f) {
this._log(`
Sorting....`), f.sort(this.options.sortFn);
}, "value") }, { key: "_format", value: /* @__PURE__ */ a(function(f) {
var y = [];
if (this.options.verbose) {
var S = [];
this._log(`
Output:
`, JSON.stringify(f, function(k, T) {
if (i(T) === "object" && T !== null) {
if (S.indexOf(T) !== -1) return;
S.push(T);
}
return T;
}, 2)), S = null;
}
var E = [];
this.options.includeMatches && E.push(function(k, T) {
var C = k.output;
T.matches = [];
for (var P = 0, D = C.length; P < D; P += 1) {
var M = C[P];
if (M.matchedIndices.length !== 0) {
var F = { indices: M.matchedIndices, value: M.value };
M.key && (F.key = M.key), M.hasOwnProperty("arrayIndex") && M.arrayIndex > -1 && (F.arrayIndex = M.arrayIndex), T.matches.push(
F);
}
}
}), this.options.includeScore && E.push(function(k, T) {
T.score = k.score;
});
for (var g = 0, v = f.length; g < v; g += 1) {
var I = f[g];
if (this.options.id && (I.item = this.options.getFn(I.item, this.options.id)[0]), E.length) {
for (var w = { item: I.item }, O = 0, _ = E.length; O < _; O += 1) E[O](I, w);
y.push(w);
} else y.push(I.item);
}
return y;
}, "value") }, { key: "_log", value: /* @__PURE__ */ a(function() {
var f;
this.options.verbose && (f = console).log.apply(f, arguments);
}, "value") }]) && r(m.prototype, h), b && r(m, b), p;
}();
e.exports = d;
}, function(e, t, o) {
function i(c, d) {
for (var p = 0; p < d.length; p++) {
var m = d[p];
m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(c, m.key, m);
}
}
a(i, "n");
var r = o(2), n = o(3), l = o(6), u = function() {
function c(h, b) {
var f = b.location, y = f === void 0 ? 0 : f, S = b.distance, E = S === void 0 ? 100 : S, g = b.threshold, v = g === void 0 ? 0.6 :
g, I = b.maxPatternLength, w = I === void 0 ? 32 : I, O = b.isCaseSensitive, _ = O !== void 0 && O, k = b.tokenSeparator, T = k ===
void 0 ? / +/g : k, C = b.findAllMatches, P = C !== void 0 && C, D = b.minMatchCharLength, M = D === void 0 ? 1 : D, F = b.includeMatches,
Z = F !== void 0 && F;
(function(W, Q) {
if (!(W instanceof Q)) throw new TypeError("Cannot call a class as a function");
})(this, c), this.options = { location: y, distance: E, threshold: v, maxPatternLength: w, isCaseSensitive: _, tokenSeparator: T, findAllMatches: P,
includeMatches: Z, minMatchCharLength: M }, this.pattern = _ ? h : h.toLowerCase(), this.pattern.length <= w && (this.patternAlphabet =
l(this.pattern));
}
a(c, "e");
var d, p, m;
return d = c, (p = [{ key: "search", value: /* @__PURE__ */ a(function(h) {
var b = this.options, f = b.isCaseSensitive, y = b.includeMatches;
if (f || (h = h.toLowerCase()), this.pattern === h) {
var S = { isMatch: !0, score: 0 };
return y && (S.matchedIndices = [[0, h.length - 1]]), S;
}
var E = this.options, g = E.maxPatternLength, v = E.tokenSeparator;
if (this.pattern.length > g) return r(h, this.pattern, v);
var I = this.options, w = I.location, O = I.distance, _ = I.threshold, k = I.findAllMatches, T = I.minMatchCharLength;
return n(h, this.pattern, this.patternAlphabet, { location: w, distance: O, threshold: _, findAllMatches: k, minMatchCharLength: T,
includeMatches: y });
}, "value") }]) && i(d.prototype, p), m && i(d, m), c;
}();
e.exports = u;
}, function(e, t) {
var o = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;
e.exports = function(i, r) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : / +/g, l = new RegExp(r.replace(o, "\\$&").replace(n, "|")),
u = i.match(l), c = !!u, d = [];
if (c) for (var p = 0, m = u.length; p < m; p += 1) {
var h = u[p];
d.push([i.indexOf(h), h.length - 1]);
}
return { score: c ? 0.5 : 1, isMatch: c, matchedIndices: d };
};
}, function(e, t, o) {
var i = o(4), r = o(5);
e.exports = function(n, l, u, c) {
for (var d = c.location, p = d === void 0 ? 0 : d, m = c.distance, h = m === void 0 ? 100 : m, b = c.threshold, f = b === void 0 ? 0.6 :
b, y = c.findAllMatches, S = y !== void 0 && y, E = c.minMatchCharLength, g = E === void 0 ? 1 : E, v = c.includeMatches, I = v !== void 0 &&
v, w = p, O = n.length, _ = f, k = n.indexOf(l, w), T = l.length, C = [], P = 0; P < O; P += 1) C[P] = 0;
if (k !== -1) {
var D = i(l, { errors: 0, currentLocation: k, expectedLocation: w, distance: h });
if (_ = Math.min(D, _), (k = n.lastIndexOf(l, w + T)) !== -1) {
var M = i(l, { errors: 0, currentLocation: k, expectedLocation: w, distance: h });
_ = Math.min(M, _);
}
}
k = -1;
for (var F = [], Z = 1, W = T + O, Q = 1 << (T <= 31 ? T - 1 : 30), H = 0; H < T; H += 1) {
for (var G = 0, z = W; G < z; )
i(l, { errors: H, currentLocation: w + z, expectedLocation: w, distance: h }) <= _ ? G = z : W = z, z = Math.floor((W - G) / 2 +
G);
W = z;
var re = Math.max(1, w - z + 1), R = S ? O : Math.min(w + z, O) + T, B = Array(R + 2);
B[R + 1] = (1 << H) - 1;
for (var L = R; L >= re; L -= 1) {
var $ = L - 1, J = u[n.charAt($)];
if (J && (C[$] = 1), B[L] = (B[L + 1] << 1 | 1) & J, H !== 0 && (B[L] |= (F[L + 1] | F[L]) << 1 | 1 | F[L + 1]), B[L] & Q && (Z =
i(l, { errors: H, currentLocation: $, expectedLocation: w, distance: h })) <= _) {
if (_ = Z, (k = $) <= w) break;
re = Math.max(1, 2 * w - k);
}
}
if (i(l, { errors: H + 1, currentLocation: w, expectedLocation: w, distance: h }) > _) break;
F = B;
}
var ie = { isMatch: k >= 0, score: Z === 0 ? 1e-3 : Z };
return I && (ie.matchedIndices = r(C, g)), ie;
};
}, function(e, t) {
e.exports = function(o, i) {
var r = i.errors, n = r === void 0 ? 0 : r, l = i.currentLocation, u = l === void 0 ? 0 : l, c = i.expectedLocation, d = c === void 0 ?
0 : c, p = i.distance, m = p === void 0 ? 100 : p, h = n / o.length, b = Math.abs(d - u);
return m ? h + b / m : b ? 1 : h;
};
}, function(e, t) {
e.exports = function() {
for (var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], i = arguments.length > 1 && arguments[1] !== void 0 ?
arguments[1] : 1, r = [], n = -1, l = -1, u = 0, c = o.length; u < c; u += 1) {
var d = o[u];
d && n === -1 ? n = u : d || n === -1 || ((l = u - 1) - n + 1 >= i && r.push([n, l]), n = -1);
}
return o[u - 1] && u - n >= i && r.push([n, u - 1]), r;
};
}, function(e, t) {
e.exports = function(o) {
for (var i = {}, r = o.length, n = 0; n < r; n += 1) i[o.charAt(n)] = 0;
for (var l = 0; l < r; l += 1) i[o.charAt(l)] |= 1 << r - l - 1;
return i;
};
}, function(e, t) {
var o = /* @__PURE__ */ a(function(l) {
return Array.isArray ? Array.isArray(l) :