@genspectrum/dashboard-components 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +7 -7
- package/dist/{LineageFilterChangedEvent-DkvWdq_G.js → LineageFilterChangedEvent-ixHQkq8y.js} +2 -2
- package/dist/{LineageFilterChangedEvent-DkvWdq_G.js.map → LineageFilterChangedEvent-ixHQkq8y.js.map} +1 -1
- package/dist/components.d.ts +52 -50
- package/dist/components.js +106 -85
- package/dist/components.js.map +1 -1
- package/dist/util.d.ts +47 -47
- package/dist/util.js +1 -1
- package/package.json +1 -1
- package/src/preact/dateRangeFilter/computeInitialValues.spec.ts +2 -2
- package/src/preact/dateRangeFilter/computeInitialValues.ts +1 -1
- package/src/preact/dateRangeFilter/date-range-filter.stories.tsx +3 -5
- package/src/preact/dateRangeFilter/date-range-filter.tsx +12 -7
- package/src/preact/dateRangeFilter/dateRangeOption.ts +1 -1
- package/src/preact/mutationsOverTime/mutations-over-time-grid-tooltip.stories.tsx +108 -0
- package/src/preact/mutationsOverTime/mutations-over-time-grid-tooltip.tsx +93 -0
- package/src/preact/mutationsOverTime/mutations-over-time-grid.tsx +7 -78
- package/src/web-components/input/gs-date-range-filter.stories.ts +1 -1
- package/src/web-components/input/gs-date-range-filter.tsx +7 -5
- package/standalone-bundle/dashboard-components.js +539 -524
- package/standalone-bundle/dashboard-components.js.map +1 -1
|
@@ -2992,7 +2992,7 @@ const tr = (n) => {
|
|
|
2992
2992
|
dateFrom: A.string().date().optional(),
|
|
2993
2993
|
dateTo: A.string().date().optional()
|
|
2994
2994
|
})
|
|
2995
|
-
]).
|
|
2995
|
+
]).nullable();
|
|
2996
2996
|
class PM extends CustomEvent {
|
|
2997
2997
|
constructor(e) {
|
|
2998
2998
|
super("gs-date-range-option-changed", {
|
|
@@ -3014,7 +3014,7 @@ const s0 = new Date(Gi);
|
|
|
3014
3014
|
s0.setMonth(Gi.getMonth() - 6);
|
|
3015
3015
|
const a0 = new Date(Gi);
|
|
3016
3016
|
a0.setFullYear(Gi.getFullYear() - 1);
|
|
3017
|
-
const
|
|
3017
|
+
const C5 = {
|
|
3018
3018
|
last2Weeks: {
|
|
3019
3019
|
label: "Last 2 weeks",
|
|
3020
3020
|
dateFrom: tr(n0)
|
|
@@ -25190,7 +25190,69 @@ function yz({
|
|
|
25190
25190
|
s.deleteRow(u.mutation);
|
|
25191
25191
|
}), s;
|
|
25192
25192
|
}
|
|
25193
|
-
const bz = ({
|
|
25193
|
+
const bz = ({
|
|
25194
|
+
mutation: n,
|
|
25195
|
+
date: e,
|
|
25196
|
+
value: t
|
|
25197
|
+
}) => {
|
|
25198
|
+
const i = Ym(e);
|
|
25199
|
+
return /* @__PURE__ */ v("div", { children: [
|
|
25200
|
+
/* @__PURE__ */ v("p", { children: /* @__PURE__ */ v("span", { className: "font-bold", children: i.englishName() }) }),
|
|
25201
|
+
/* @__PURE__ */ v("p", { children: [
|
|
25202
|
+
"(",
|
|
25203
|
+
kz(i),
|
|
25204
|
+
")"
|
|
25205
|
+
] }),
|
|
25206
|
+
/* @__PURE__ */ v("p", { children: n.code }),
|
|
25207
|
+
/* @__PURE__ */ v(xz, { value: t })
|
|
25208
|
+
] });
|
|
25209
|
+
}, xz = ({ value: n }) => {
|
|
25210
|
+
if (n === null)
|
|
25211
|
+
return /* @__PURE__ */ v("p", { children: "No data" });
|
|
25212
|
+
const e = n.type === "belowThreshold" ? `<${Kt(M1)}` : Kt(n.proportion);
|
|
25213
|
+
return /* @__PURE__ */ v(Ae, { children: [
|
|
25214
|
+
/* @__PURE__ */ v("p", { children: [
|
|
25215
|
+
"Proportion: ",
|
|
25216
|
+
e
|
|
25217
|
+
] }),
|
|
25218
|
+
/* @__PURE__ */ v(wz, { value: n })
|
|
25219
|
+
] });
|
|
25220
|
+
}, wz = ({ value: n }) => {
|
|
25221
|
+
switch (n.type) {
|
|
25222
|
+
case "wastewaterValue":
|
|
25223
|
+
return;
|
|
25224
|
+
case "belowThreshold":
|
|
25225
|
+
return /* @__PURE__ */ v(Ae, { children: [
|
|
25226
|
+
/* @__PURE__ */ v("p", { children: [
|
|
25227
|
+
n.totalCount,
|
|
25228
|
+
" samples are in the timeframe"
|
|
25229
|
+
] }),
|
|
25230
|
+
/* @__PURE__ */ v("p", { children: [
|
|
25231
|
+
"none or less than ",
|
|
25232
|
+
Kt(M1),
|
|
25233
|
+
" have the mutation"
|
|
25234
|
+
] })
|
|
25235
|
+
] });
|
|
25236
|
+
case "value":
|
|
25237
|
+
return /* @__PURE__ */ v(Ae, { children: [
|
|
25238
|
+
/* @__PURE__ */ v("p", { children: [
|
|
25239
|
+
n.totalCount,
|
|
25240
|
+
" samples are in the timeframe"
|
|
25241
|
+
] }),
|
|
25242
|
+
/* @__PURE__ */ v("p", { children: [
|
|
25243
|
+
Sz(n.count, n.proportion),
|
|
25244
|
+
" have coverage, of those ",
|
|
25245
|
+
n.count,
|
|
25246
|
+
" ",
|
|
25247
|
+
"have the mutation"
|
|
25248
|
+
] })
|
|
25249
|
+
] });
|
|
25250
|
+
}
|
|
25251
|
+
};
|
|
25252
|
+
function Sz(n, e) {
|
|
25253
|
+
return n === 0 ? 0 : Math.round(n / e);
|
|
25254
|
+
}
|
|
25255
|
+
const kz = (n) => n instanceof fr ? n.toString() : `${n.firstDay.toString()} - ${n.lastDay.toString()}`, Mz = ({ colorScale: n, setColorScale: e }) => {
|
|
25194
25256
|
const t = "w-10 h-8 border border-gray-200 mx-2 text-xs flex items-center justify-center";
|
|
25195
25257
|
return /* @__PURE__ */ v("div", { className: "flex items-center", children: [
|
|
25196
25258
|
/* @__PURE__ */ v(
|
|
@@ -25229,20 +25291,20 @@ const bz = ({ colorScale: n, setColorScale: e }) => {
|
|
|
25229
25291
|
}
|
|
25230
25292
|
)
|
|
25231
25293
|
] });
|
|
25232
|
-
},
|
|
25294
|
+
}, Cz = (n, e) => {
|
|
25233
25295
|
if (n === void 0)
|
|
25234
25296
|
return "lightgrey";
|
|
25235
25297
|
if (e.min === e.max)
|
|
25236
25298
|
return Un(e.color, 0);
|
|
25237
25299
|
const t = e.max - e.min, i = (n - e.min) / t;
|
|
25238
25300
|
return Un(e.color, i);
|
|
25239
|
-
},
|
|
25301
|
+
}, Tz = (n, e) => {
|
|
25240
25302
|
if (n === void 0 || e.min === e.max)
|
|
25241
25303
|
return "black";
|
|
25242
25304
|
const t = e.max - e.min;
|
|
25243
25305
|
return (n - e.min) / t <= 0.5 ? "black" : "white";
|
|
25244
25306
|
};
|
|
25245
|
-
function
|
|
25307
|
+
function Ez(n) {
|
|
25246
25308
|
switch (n) {
|
|
25247
25309
|
case "top":
|
|
25248
25310
|
return "bottom-full translate-x-[-50%] left-1/2 mb-1";
|
|
@@ -25264,28 +25326,28 @@ function Sz(n) {
|
|
|
25264
25326
|
return "";
|
|
25265
25327
|
}
|
|
25266
25328
|
}
|
|
25267
|
-
const
|
|
25329
|
+
const Dz = ({ children: n, content: e, position: t = "bottom" }) => /* @__PURE__ */ v("div", { className: "relative w-full h-full", children: [
|
|
25268
25330
|
/* @__PURE__ */ v("div", { className: "peer w-full h-full", children: n }),
|
|
25269
25331
|
/* @__PURE__ */ v(
|
|
25270
25332
|
"div",
|
|
25271
25333
|
{
|
|
25272
|
-
className: `absolute z-10 w-max bg-white p-4 border border-gray-200 rounded-md invisible peer-hover:visible ${
|
|
25334
|
+
className: `absolute z-10 w-max bg-white p-4 border border-gray-200 rounded-md invisible peer-hover:visible ${Ez(t)}`,
|
|
25273
25335
|
children: e
|
|
25274
25336
|
}
|
|
25275
25337
|
)
|
|
25276
25338
|
] }), E1 = A.union([A.array(A.number()), A.number()]);
|
|
25277
|
-
function
|
|
25339
|
+
function Pz({
|
|
25278
25340
|
table: n,
|
|
25279
25341
|
pageSizes: e
|
|
25280
25342
|
}) {
|
|
25281
25343
|
return /* @__PURE__ */ v("div", { className: "flex items-center gap-4 justify-end flex-wrap", children: [
|
|
25282
|
-
/* @__PURE__ */ v(
|
|
25283
|
-
/* @__PURE__ */ v(
|
|
25284
|
-
/* @__PURE__ */ v(
|
|
25285
|
-
/* @__PURE__ */ v(
|
|
25344
|
+
/* @__PURE__ */ v(Oz, { table: n, pageSizes: e }),
|
|
25345
|
+
/* @__PURE__ */ v(Az, { table: n }),
|
|
25346
|
+
/* @__PURE__ */ v(Iz, { table: n }),
|
|
25347
|
+
/* @__PURE__ */ v(Lz, { table: n })
|
|
25286
25348
|
] });
|
|
25287
25349
|
}
|
|
25288
|
-
function
|
|
25350
|
+
function Az({ table: n }) {
|
|
25289
25351
|
return n.getRowModel().rows.length <= 1 ? null : /* @__PURE__ */ v("span", { className: "flex items-center gap-1", children: [
|
|
25290
25352
|
/* @__PURE__ */ v("div", { children: "Page" }),
|
|
25291
25353
|
/* @__PURE__ */ v("strong", { children: [
|
|
@@ -25295,7 +25357,7 @@ function Cz({ table: n }) {
|
|
|
25295
25357
|
] })
|
|
25296
25358
|
] });
|
|
25297
25359
|
}
|
|
25298
|
-
function
|
|
25360
|
+
function Oz({
|
|
25299
25361
|
table: n,
|
|
25300
25362
|
pageSizes: e
|
|
25301
25363
|
}) {
|
|
@@ -25316,7 +25378,7 @@ function Tz({
|
|
|
25316
25378
|
)
|
|
25317
25379
|
] });
|
|
25318
25380
|
}
|
|
25319
|
-
function
|
|
25381
|
+
function Iz({ table: n }) {
|
|
25320
25382
|
return n.getRowModel().rows.length === 0 ? null : /* @__PURE__ */ v("label", { className: "flex items-center", children: [
|
|
25321
25383
|
"Go to page:",
|
|
25322
25384
|
/* @__PURE__ */ v(
|
|
@@ -25336,7 +25398,7 @@ function Ez({ table: n }) {
|
|
|
25336
25398
|
)
|
|
25337
25399
|
] });
|
|
25338
25400
|
}
|
|
25339
|
-
function
|
|
25401
|
+
function Lz({ table: n }) {
|
|
25340
25402
|
return /* @__PURE__ */ v("div", { className: "join", role: "group", "aria-label": "Pagination controls", children: [
|
|
25341
25403
|
/* @__PURE__ */ v(
|
|
25342
25404
|
"button",
|
|
@@ -25390,7 +25452,7 @@ function Dz({ table: n }) {
|
|
|
25390
25452
|
*
|
|
25391
25453
|
* @license MIT
|
|
25392
25454
|
*/
|
|
25393
|
-
function
|
|
25455
|
+
function Rz() {
|
|
25394
25456
|
return {
|
|
25395
25457
|
accessor: (n, e) => typeof n == "function" ? {
|
|
25396
25458
|
...e,
|
|
@@ -25417,10 +25479,10 @@ function ci(n, e) {
|
|
|
25417
25479
|
function ph(n) {
|
|
25418
25480
|
return n instanceof Function;
|
|
25419
25481
|
}
|
|
25420
|
-
function
|
|
25482
|
+
function Nz(n) {
|
|
25421
25483
|
return Array.isArray(n) && n.every((e) => typeof e == "number");
|
|
25422
25484
|
}
|
|
25423
|
-
function
|
|
25485
|
+
function zz(n, e) {
|
|
25424
25486
|
const t = [], i = (r) => {
|
|
25425
25487
|
r.forEach((o) => {
|
|
25426
25488
|
t.push(o);
|
|
@@ -25464,7 +25526,7 @@ function Re(n, e, t, i) {
|
|
|
25464
25526
|
onChange: i
|
|
25465
25527
|
};
|
|
25466
25528
|
}
|
|
25467
|
-
function
|
|
25529
|
+
function Fz(n, e, t, i) {
|
|
25468
25530
|
const r = () => {
|
|
25469
25531
|
var s;
|
|
25470
25532
|
return (s = o.getValue()) != null ? s : n.options.renderFallbackValue;
|
|
@@ -25487,7 +25549,7 @@ function Iz(n, e, t, i) {
|
|
|
25487
25549
|
s.createCell == null || s.createCell(o, t, e, n);
|
|
25488
25550
|
}, {}), o;
|
|
25489
25551
|
}
|
|
25490
|
-
function
|
|
25552
|
+
function $z(n, e, t, i) {
|
|
25491
25553
|
var r, o;
|
|
25492
25554
|
const l = {
|
|
25493
25555
|
...n._getDefaultColumnDef(),
|
|
@@ -25557,7 +25619,7 @@ function sb(n, e, t) {
|
|
|
25557
25619
|
s.createHeader == null || s.createHeader(o, n);
|
|
25558
25620
|
}), o;
|
|
25559
25621
|
}
|
|
25560
|
-
const
|
|
25622
|
+
const jz = {
|
|
25561
25623
|
createTable: (n) => {
|
|
25562
25624
|
n.getHeaderGroups = Le(() => [n.getAllColumns(), n.getVisibleLeafColumns(), n.getState().columnPinning.left, n.getState().columnPinning.right], (e, t, i, r) => {
|
|
25563
25625
|
var o, s;
|
|
@@ -25642,7 +25704,7 @@ function _u(n, e, t, i) {
|
|
|
25642
25704
|
});
|
|
25643
25705
|
return f((r = (o = c[0]) == null ? void 0 : o.headers) != null ? r : []), c;
|
|
25644
25706
|
}
|
|
25645
|
-
const
|
|
25707
|
+
const Bz = (n, e, t, i, r, o, s) => {
|
|
25646
25708
|
let l = {
|
|
25647
25709
|
id: e,
|
|
25648
25710
|
index: i,
|
|
@@ -25670,7 +25732,7 @@ const Nz = (n, e, t, i, r, o, s) => {
|
|
|
25670
25732
|
return (u = l.getValue(c)) != null ? u : n.options.renderFallbackValue;
|
|
25671
25733
|
},
|
|
25672
25734
|
subRows: [],
|
|
25673
|
-
getLeafRows: () =>
|
|
25735
|
+
getLeafRows: () => zz(l.subRows, (c) => c.subRows),
|
|
25674
25736
|
getParentRow: () => l.parentId ? n.getRow(l.parentId, !0) : void 0,
|
|
25675
25737
|
getParentRows: () => {
|
|
25676
25738
|
let c = [], u = l;
|
|
@@ -25681,7 +25743,7 @@ const Nz = (n, e, t, i, r, o, s) => {
|
|
|
25681
25743
|
}
|
|
25682
25744
|
return c.reverse();
|
|
25683
25745
|
},
|
|
25684
|
-
getAllCells: Le(() => [n.getAllLeafColumns()], (c) => c.map((u) =>
|
|
25746
|
+
getAllCells: Le(() => [n.getAllLeafColumns()], (c) => c.map((u) => Fz(n, l, u, u.id)), Re(n.options, "debugRows", "getAllCells")),
|
|
25685
25747
|
_getAllCellsByColumnId: Le(() => [l.getAllCells()], (c) => c.reduce((u, h) => (u[h.column.id] = h, u), {}), Re(n.options, "debugRows", "getAllCellsByColumnId"))
|
|
25686
25748
|
};
|
|
25687
25749
|
for (let c = 0; c < n._features.length; c++) {
|
|
@@ -25689,7 +25751,7 @@ const Nz = (n, e, t, i, r, o, s) => {
|
|
|
25689
25751
|
u == null || u.createRow == null || u.createRow(l, n);
|
|
25690
25752
|
}
|
|
25691
25753
|
return l;
|
|
25692
|
-
},
|
|
25754
|
+
}, Vz = {
|
|
25693
25755
|
createColumn: (n, e) => {
|
|
25694
25756
|
n._getFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, n.id), n.getFacetedRowModel = () => n._getFacetedRowModel ? n._getFacetedRowModel() : e.getPreFilteredRowModel(), n._getFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, n.id), n.getFacetedUniqueValues = () => n._getFacetedUniqueValues ? n._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), n._getFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, n.id), n.getFacetedMinMaxValues = () => {
|
|
25695
25757
|
if (n._getFacetedMinMaxValues)
|
|
@@ -25759,7 +25821,7 @@ const zr = {
|
|
|
25759
25821
|
function Hi(n) {
|
|
25760
25822
|
return n == null || n === "";
|
|
25761
25823
|
}
|
|
25762
|
-
const
|
|
25824
|
+
const Hz = {
|
|
25763
25825
|
getDefaultColumnDef: () => ({
|
|
25764
25826
|
filterFn: "auto"
|
|
25765
25827
|
}),
|
|
@@ -25837,54 +25899,54 @@ const Fz = {
|
|
|
25837
25899
|
function ab(n, e, t) {
|
|
25838
25900
|
return (n && n.autoRemove ? n.autoRemove(e, t) : !1) || typeof e > "u" || typeof e == "string" && !e;
|
|
25839
25901
|
}
|
|
25840
|
-
const
|
|
25902
|
+
const Wz = (n, e, t) => t.reduce((i, r) => {
|
|
25841
25903
|
const o = r.getValue(n);
|
|
25842
25904
|
return i + (typeof o == "number" ? o : 0);
|
|
25843
|
-
}, 0),
|
|
25905
|
+
}, 0), Zz = (n, e, t) => {
|
|
25844
25906
|
let i;
|
|
25845
25907
|
return t.forEach((r) => {
|
|
25846
25908
|
const o = r.getValue(n);
|
|
25847
25909
|
o != null && (i > o || i === void 0 && o >= o) && (i = o);
|
|
25848
25910
|
}), i;
|
|
25849
|
-
},
|
|
25911
|
+
}, Yz = (n, e, t) => {
|
|
25850
25912
|
let i;
|
|
25851
25913
|
return t.forEach((r) => {
|
|
25852
25914
|
const o = r.getValue(n);
|
|
25853
25915
|
o != null && (i < o || i === void 0 && o >= o) && (i = o);
|
|
25854
25916
|
}), i;
|
|
25855
|
-
},
|
|
25917
|
+
}, Uz = (n, e, t) => {
|
|
25856
25918
|
let i, r;
|
|
25857
25919
|
return t.forEach((o) => {
|
|
25858
25920
|
const s = o.getValue(n);
|
|
25859
25921
|
s != null && (i === void 0 ? s >= s && (i = r = s) : (i > s && (i = s), r < s && (r = s)));
|
|
25860
25922
|
}), [i, r];
|
|
25861
|
-
},
|
|
25923
|
+
}, qz = (n, e) => {
|
|
25862
25924
|
let t = 0, i = 0;
|
|
25863
25925
|
if (e.forEach((r) => {
|
|
25864
25926
|
let o = r.getValue(n);
|
|
25865
25927
|
o != null && (o = +o) >= o && (++t, i += o);
|
|
25866
25928
|
}), t) return i / t;
|
|
25867
|
-
},
|
|
25929
|
+
}, Gz = (n, e) => {
|
|
25868
25930
|
if (!e.length)
|
|
25869
25931
|
return;
|
|
25870
25932
|
const t = e.map((o) => o.getValue(n));
|
|
25871
|
-
if (!
|
|
25933
|
+
if (!Nz(t))
|
|
25872
25934
|
return;
|
|
25873
25935
|
if (t.length === 1)
|
|
25874
25936
|
return t[0];
|
|
25875
25937
|
const i = Math.floor(t.length / 2), r = t.sort((o, s) => o - s);
|
|
25876
25938
|
return t.length % 2 !== 0 ? r[i] : (r[i - 1] + r[i]) / 2;
|
|
25877
|
-
},
|
|
25878
|
-
sum:
|
|
25879
|
-
min:
|
|
25880
|
-
max:
|
|
25881
|
-
extent:
|
|
25882
|
-
mean:
|
|
25883
|
-
median:
|
|
25884
|
-
unique:
|
|
25885
|
-
uniqueCount:
|
|
25886
|
-
count:
|
|
25887
|
-
},
|
|
25939
|
+
}, Kz = (n, e) => Array.from(new Set(e.map((t) => t.getValue(n))).values()), Xz = (n, e) => new Set(e.map((t) => t.getValue(n))).size, Jz = (n, e) => e.length, yf = {
|
|
25940
|
+
sum: Wz,
|
|
25941
|
+
min: Zz,
|
|
25942
|
+
max: Yz,
|
|
25943
|
+
extent: Uz,
|
|
25944
|
+
mean: qz,
|
|
25945
|
+
median: Gz,
|
|
25946
|
+
unique: Kz,
|
|
25947
|
+
uniqueCount: Xz,
|
|
25948
|
+
count: Jz
|
|
25949
|
+
}, Qz = {
|
|
25888
25950
|
getDefaultColumnDef: () => ({
|
|
25889
25951
|
aggregatedCell: (n) => {
|
|
25890
25952
|
var e, t;
|
|
@@ -25951,13 +26013,13 @@ const $z = (n, e, t) => t.reduce((i, r) => {
|
|
|
25951
26013
|
};
|
|
25952
26014
|
}
|
|
25953
26015
|
};
|
|
25954
|
-
function
|
|
26016
|
+
function eF(n, e, t) {
|
|
25955
26017
|
if (!(e != null && e.length) || !t)
|
|
25956
26018
|
return n;
|
|
25957
26019
|
const i = n.filter((o) => !e.includes(o.id));
|
|
25958
26020
|
return t === "remove" ? i : [...e.map((o) => n.find((s) => s.id === o)).filter(Boolean), ...i];
|
|
25959
26021
|
}
|
|
25960
|
-
const
|
|
26022
|
+
const tF = {
|
|
25961
26023
|
getInitialState: (n) => ({
|
|
25962
26024
|
columnOrder: [],
|
|
25963
26025
|
...n
|
|
@@ -25991,13 +26053,13 @@ const Kz = {
|
|
|
25991
26053
|
}
|
|
25992
26054
|
o = [...o, ...l];
|
|
25993
26055
|
}
|
|
25994
|
-
return
|
|
26056
|
+
return eF(o, t, i);
|
|
25995
26057
|
}, Re(n.options, "debugTable", "_getOrderColumnsFn"));
|
|
25996
26058
|
}
|
|
25997
26059
|
}, bf = () => ({
|
|
25998
26060
|
left: [],
|
|
25999
26061
|
right: []
|
|
26000
|
-
}),
|
|
26062
|
+
}), nF = {
|
|
26001
26063
|
getInitialState: (n) => ({
|
|
26002
26064
|
columnPinning: bf(),
|
|
26003
26065
|
...n
|
|
@@ -26084,7 +26146,7 @@ const Kz = {
|
|
|
26084
26146
|
deltaPercentage: null,
|
|
26085
26147
|
isResizingColumn: !1,
|
|
26086
26148
|
columnSizingStart: []
|
|
26087
|
-
}),
|
|
26149
|
+
}), iF = {
|
|
26088
26150
|
getDefaultColumnDef: () => vu,
|
|
26089
26151
|
getInitialState: (n) => ({
|
|
26090
26152
|
columnSizing: {},
|
|
@@ -26175,7 +26237,7 @@ const Kz = {
|
|
|
26175
26237
|
var M;
|
|
26176
26238
|
g == null || g.removeEventListener("touchmove", b.moveHandler), g == null || g.removeEventListener("touchend", b.upHandler), S.cancelable && (S.preventDefault(), S.stopPropagation()), m((M = S.touches[0]) == null ? void 0 : M.clientX);
|
|
26177
26239
|
}
|
|
26178
|
-
}, w =
|
|
26240
|
+
}, w = rF() ? {
|
|
26179
26241
|
passive: !1
|
|
26180
26242
|
} : !1;
|
|
26181
26243
|
wf(o) ? (g == null || g.addEventListener("touchmove", b.moveHandler, w), g == null || g.addEventListener("touchend", b.upHandler, w)) : (g == null || g.addEventListener("mousemove", y.moveHandler, w), g == null || g.addEventListener("mouseup", y.upHandler, w)), e.setColumnSizingInfo((S) => ({
|
|
@@ -26213,7 +26275,7 @@ const Kz = {
|
|
|
26213
26275
|
}
|
|
26214
26276
|
};
|
|
26215
26277
|
let yu = null;
|
|
26216
|
-
function
|
|
26278
|
+
function rF() {
|
|
26217
26279
|
if (typeof yu == "boolean") return yu;
|
|
26218
26280
|
let n = !1;
|
|
26219
26281
|
try {
|
|
@@ -26232,7 +26294,7 @@ function Qz() {
|
|
|
26232
26294
|
function wf(n) {
|
|
26233
26295
|
return n.type === "touchstart";
|
|
26234
26296
|
}
|
|
26235
|
-
const
|
|
26297
|
+
const oF = {
|
|
26236
26298
|
getInitialState: (n) => ({
|
|
26237
26299
|
columnVisibility: {},
|
|
26238
26300
|
...n
|
|
@@ -26280,14 +26342,14 @@ const eF = {
|
|
|
26280
26342
|
function Hl(n, e) {
|
|
26281
26343
|
return e ? e === "center" ? n.getCenterVisibleLeafColumns() : e === "left" ? n.getLeftVisibleLeafColumns() : n.getRightVisibleLeafColumns() : n.getVisibleLeafColumns();
|
|
26282
26344
|
}
|
|
26283
|
-
const
|
|
26345
|
+
const sF = {
|
|
26284
26346
|
createTable: (n) => {
|
|
26285
26347
|
n._getGlobalFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, "__global__"), n.getGlobalFacetedRowModel = () => n.options.manualFiltering || !n._getGlobalFacetedRowModel ? n.getPreFilteredRowModel() : n._getGlobalFacetedRowModel(), n._getGlobalFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, "__global__"), n.getGlobalFacetedUniqueValues = () => n._getGlobalFacetedUniqueValues ? n._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), n._getGlobalFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, "__global__"), n.getGlobalFacetedMinMaxValues = () => {
|
|
26286
26348
|
if (n._getGlobalFacetedMinMaxValues)
|
|
26287
26349
|
return n._getGlobalFacetedMinMaxValues();
|
|
26288
26350
|
};
|
|
26289
26351
|
}
|
|
26290
|
-
},
|
|
26352
|
+
}, aF = {
|
|
26291
26353
|
getInitialState: (n) => ({
|
|
26292
26354
|
globalFilter: void 0,
|
|
26293
26355
|
...n
|
|
@@ -26320,7 +26382,7 @@ const tF = {
|
|
|
26320
26382
|
n.setGlobalFilter(e ? void 0 : n.initialState.globalFilter);
|
|
26321
26383
|
};
|
|
26322
26384
|
}
|
|
26323
|
-
},
|
|
26385
|
+
}, lF = {
|
|
26324
26386
|
getInitialState: (n) => ({
|
|
26325
26387
|
expanded: {},
|
|
26326
26388
|
...n
|
|
@@ -26410,7 +26472,7 @@ const tF = {
|
|
|
26410
26472
|
}, Lp = 0, Rp = 10, Sf = () => ({
|
|
26411
26473
|
pageIndex: Lp,
|
|
26412
26474
|
pageSize: Rp
|
|
26413
|
-
}),
|
|
26475
|
+
}), cF = {
|
|
26414
26476
|
getInitialState: (n) => ({
|
|
26415
26477
|
...n,
|
|
26416
26478
|
pagination: {
|
|
@@ -26493,7 +26555,7 @@ const tF = {
|
|
|
26493
26555
|
}, kf = () => ({
|
|
26494
26556
|
top: [],
|
|
26495
26557
|
bottom: []
|
|
26496
|
-
}),
|
|
26558
|
+
}), uF = {
|
|
26497
26559
|
getInitialState: (n) => ({
|
|
26498
26560
|
rowPinning: kf(),
|
|
26499
26561
|
...n
|
|
@@ -26594,7 +26656,7 @@ const tF = {
|
|
|
26594
26656
|
return e.filter((o) => !r.has(o.id));
|
|
26595
26657
|
}, Re(n.options, "debugRows", "getCenterRows"));
|
|
26596
26658
|
}
|
|
26597
|
-
},
|
|
26659
|
+
}, dF = {
|
|
26598
26660
|
getInitialState: (n) => ({
|
|
26599
26661
|
rowSelection: {},
|
|
26600
26662
|
...n
|
|
@@ -26750,10 +26812,10 @@ function zp(n, e, t) {
|
|
|
26750
26812
|
}
|
|
26751
26813
|
}), r ? "all" : o ? "some" : !1;
|
|
26752
26814
|
}
|
|
26753
|
-
const Fp = /([0-9]+)/gm,
|
|
26815
|
+
const Fp = /([0-9]+)/gm, hF = (n, e, t) => z1(zo(n.getValue(t)).toLowerCase(), zo(e.getValue(t)).toLowerCase()), fF = (n, e, t) => z1(zo(n.getValue(t)), zo(e.getValue(t))), pF = (n, e, t) => Qm(zo(n.getValue(t)).toLowerCase(), zo(e.getValue(t)).toLowerCase()), mF = (n, e, t) => Qm(zo(n.getValue(t)), zo(e.getValue(t))), gF = (n, e, t) => {
|
|
26754
26816
|
const i = n.getValue(t), r = e.getValue(t);
|
|
26755
26817
|
return i > r ? 1 : i < r ? -1 : 0;
|
|
26756
|
-
},
|
|
26818
|
+
}, _F = (n, e, t) => Qm(n.getValue(t), e.getValue(t));
|
|
26757
26819
|
function Qm(n, e) {
|
|
26758
26820
|
return n === e ? 0 : n > e ? 1 : -1;
|
|
26759
26821
|
}
|
|
@@ -26781,13 +26843,13 @@ function z1(n, e) {
|
|
|
26781
26843
|
return t.length - i.length;
|
|
26782
26844
|
}
|
|
26783
26845
|
const bl = {
|
|
26784
|
-
alphanumeric:
|
|
26785
|
-
alphanumericCaseSensitive:
|
|
26786
|
-
text:
|
|
26787
|
-
textCaseSensitive:
|
|
26788
|
-
datetime:
|
|
26789
|
-
basic:
|
|
26790
|
-
},
|
|
26846
|
+
alphanumeric: hF,
|
|
26847
|
+
alphanumericCaseSensitive: fF,
|
|
26848
|
+
text: pF,
|
|
26849
|
+
textCaseSensitive: mF,
|
|
26850
|
+
datetime: gF,
|
|
26851
|
+
basic: _F
|
|
26852
|
+
}, vF = {
|
|
26791
26853
|
getInitialState: (n) => ({
|
|
26792
26854
|
sorting: [],
|
|
26793
26855
|
...n
|
|
@@ -26876,30 +26938,30 @@ const bl = {
|
|
|
26876
26938
|
n.setSorting(e ? [] : (t = (i = n.initialState) == null ? void 0 : i.sorting) != null ? t : []);
|
|
26877
26939
|
}, n.getPreSortedRowModel = () => n.getGroupedRowModel(), n.getSortedRowModel = () => (!n._getSortedRowModel && n.options.getSortedRowModel && (n._getSortedRowModel = n.options.getSortedRowModel(n)), n.options.manualSorting || !n._getSortedRowModel ? n.getPreSortedRowModel() : n._getSortedRowModel());
|
|
26878
26940
|
}
|
|
26879
|
-
},
|
|
26880
|
-
|
|
26881
|
-
|
|
26882
|
-
Kz,
|
|
26883
|
-
Xz,
|
|
26884
|
-
zz,
|
|
26885
|
-
Fz,
|
|
26941
|
+
}, yF = [
|
|
26942
|
+
jz,
|
|
26943
|
+
oF,
|
|
26886
26944
|
tF,
|
|
26887
|
-
//depends on ColumnFaceting
|
|
26888
26945
|
nF,
|
|
26946
|
+
Vz,
|
|
26947
|
+
Hz,
|
|
26948
|
+
sF,
|
|
26949
|
+
//depends on ColumnFaceting
|
|
26950
|
+
aF,
|
|
26889
26951
|
//depends on ColumnFiltering
|
|
26890
|
-
|
|
26891
|
-
|
|
26952
|
+
vF,
|
|
26953
|
+
Qz,
|
|
26892
26954
|
//depends on RowSorting
|
|
26893
|
-
|
|
26894
|
-
|
|
26895
|
-
|
|
26896
|
-
|
|
26897
|
-
|
|
26955
|
+
lF,
|
|
26956
|
+
cF,
|
|
26957
|
+
uF,
|
|
26958
|
+
dF,
|
|
26959
|
+
iF
|
|
26898
26960
|
];
|
|
26899
|
-
function
|
|
26961
|
+
function bF(n) {
|
|
26900
26962
|
var e, t;
|
|
26901
26963
|
process.env.NODE_ENV !== "production" && (n.debugAll || n.debugTable) && console.info("Creating Table Instance...");
|
|
26902
|
-
const i = [...
|
|
26964
|
+
const i = [...yF, ...(e = n._features) != null ? e : []];
|
|
26903
26965
|
let r = {
|
|
26904
26966
|
_features: i
|
|
26905
26967
|
};
|
|
@@ -26979,7 +27041,7 @@ function mF(n) {
|
|
|
26979
27041
|
getAllColumns: Le(() => [r._getColumnDefs()], (m) => {
|
|
26980
27042
|
const g = function(y, b, w) {
|
|
26981
27043
|
return w === void 0 && (w = 0), y.map((S) => {
|
|
26982
|
-
const M =
|
|
27044
|
+
const M = $z(r, S, w, b), E = S;
|
|
26983
27045
|
return M.columns = E.columns ? g(E.columns, M, w + 1) : [], M;
|
|
26984
27046
|
});
|
|
26985
27047
|
};
|
|
@@ -27003,7 +27065,7 @@ function mF(n) {
|
|
|
27003
27065
|
}
|
|
27004
27066
|
return r;
|
|
27005
27067
|
}
|
|
27006
|
-
function
|
|
27068
|
+
function xF() {
|
|
27007
27069
|
return (n) => Le(() => [n.options.data], (e) => {
|
|
27008
27070
|
const t = {
|
|
27009
27071
|
rows: [],
|
|
@@ -27013,7 +27075,7 @@ function gF() {
|
|
|
27013
27075
|
o === void 0 && (o = 0);
|
|
27014
27076
|
const l = [];
|
|
27015
27077
|
for (let u = 0; u < r.length; u++) {
|
|
27016
|
-
const h =
|
|
27078
|
+
const h = Bz(n, n._getRowId(r[u], u, s), r[u], u, o, void 0, s == null ? void 0 : s.id);
|
|
27017
27079
|
if (t.flatRows.push(h), t.rowsById[h.id] = h, l.push(h), n.options.getSubRows) {
|
|
27018
27080
|
var c;
|
|
27019
27081
|
h.originalSubRows = n.options.getSubRows(r[u], u), (c = h.originalSubRows) != null && c.length && (h.subRows = i(h.originalSubRows, o + 1, h));
|
|
@@ -27024,7 +27086,7 @@ function gF() {
|
|
|
27024
27086
|
return t.rows = i(e), t;
|
|
27025
27087
|
}, Re(n.options, "debugTable", "getRowModel", () => n._autoResetPageIndex()));
|
|
27026
27088
|
}
|
|
27027
|
-
function
|
|
27089
|
+
function wF(n) {
|
|
27028
27090
|
const e = [], t = (i) => {
|
|
27029
27091
|
var r;
|
|
27030
27092
|
e.push(i), (r = i.subRows) != null && r.length && i.getIsExpanded() && i.subRows.forEach(t);
|
|
@@ -27035,7 +27097,7 @@ function _F(n) {
|
|
|
27035
27097
|
rowsById: n.rowsById
|
|
27036
27098
|
};
|
|
27037
27099
|
}
|
|
27038
|
-
function
|
|
27100
|
+
function SF(n) {
|
|
27039
27101
|
return (e) => Le(() => [e.getState().pagination, e.getPrePaginationRowModel(), e.options.paginateExpandedRows ? void 0 : e.getState().expanded], (t, i) => {
|
|
27040
27102
|
if (!i.rows.length)
|
|
27041
27103
|
return i;
|
|
@@ -27055,7 +27117,7 @@ function vF(n) {
|
|
|
27055
27117
|
rows: s,
|
|
27056
27118
|
flatRows: l,
|
|
27057
27119
|
rowsById: c
|
|
27058
|
-
} : f =
|
|
27120
|
+
} : f = wF({
|
|
27059
27121
|
rows: s,
|
|
27060
27122
|
flatRows: l,
|
|
27061
27123
|
rowsById: c
|
|
@@ -27069,7 +27131,7 @@ function vF(n) {
|
|
|
27069
27131
|
function lb(n, e) {
|
|
27070
27132
|
return n ? typeof n == "function" ? /* @__PURE__ */ v(n, { ...e }) : n : null;
|
|
27071
27133
|
}
|
|
27072
|
-
function
|
|
27134
|
+
function kF(n) {
|
|
27073
27135
|
const e = {
|
|
27074
27136
|
state: {},
|
|
27075
27137
|
onStateChange: () => {
|
|
@@ -27077,7 +27139,7 @@ function yF(n) {
|
|
|
27077
27139
|
renderFallbackValue: null,
|
|
27078
27140
|
...n
|
|
27079
27141
|
}, [t] = We(() => ({
|
|
27080
|
-
current:
|
|
27142
|
+
current: bF(e)
|
|
27081
27143
|
})), [i, r] = We(() => t.current.initialState);
|
|
27082
27144
|
return t.current.setOptions((o) => ({
|
|
27083
27145
|
...o,
|
|
@@ -27105,7 +27167,7 @@ const F1 = ({
|
|
|
27105
27167
|
pageIndex: 0,
|
|
27106
27168
|
pageSize: typeof i == "number" ? i : i.at(0) ?? 10
|
|
27107
27169
|
}), l = ut(() => {
|
|
27108
|
-
const u =
|
|
27170
|
+
const u = Rz(), h = n.getSecondAxisKeys(), f = u.accessor((g) => g.mutation, {
|
|
27109
27171
|
id: "mutation",
|
|
27110
27172
|
header: () => /* @__PURE__ */ v("span", { children: "Mutation" }),
|
|
27111
27173
|
cell: ({ getValue: g }) => {
|
|
@@ -27114,16 +27176,16 @@ const F1 = ({
|
|
|
27114
27176
|
}
|
|
27115
27177
|
}), m = h.map((g, y) => u.accessor((b) => b.values[y], {
|
|
27116
27178
|
id: `date-${y}`,
|
|
27117
|
-
header: () => /* @__PURE__ */ v("div", { className: "@container min-w-[0.05rem]", children: /* @__PURE__ */ v("p", { ...
|
|
27179
|
+
header: () => /* @__PURE__ */ v("div", { className: "@container min-w-[0.05rem]", children: /* @__PURE__ */ v("p", { ...MF(y, h.length), children: g.dateString }) }),
|
|
27118
27180
|
cell: ({ getValue: b, row: w, column: S, table: M }) => {
|
|
27119
27181
|
const E = b(), D = w.index, C = S.getIndex(), O = M.getRowModel().rows.length, F = M.getAllColumns().length;
|
|
27120
27182
|
return /* @__PURE__ */ v("div", { className: "text-center", children: /* @__PURE__ */ v(
|
|
27121
|
-
|
|
27183
|
+
TF,
|
|
27122
27184
|
{
|
|
27123
27185
|
value: E ?? null,
|
|
27124
27186
|
date: g,
|
|
27125
27187
|
mutation: w.original.mutation,
|
|
27126
|
-
tooltipPosition:
|
|
27188
|
+
tooltipPosition: CF(
|
|
27127
27189
|
D - M.getState().pagination.pageIndex * M.getState().pagination.pageSize,
|
|
27128
27190
|
O,
|
|
27129
27191
|
C,
|
|
@@ -27135,11 +27197,11 @@ const F1 = ({
|
|
|
27135
27197
|
}
|
|
27136
27198
|
}));
|
|
27137
27199
|
return [f, ...m];
|
|
27138
|
-
}, [e, n, t]), c =
|
|
27200
|
+
}, [e, n, t]), c = kF({
|
|
27139
27201
|
data: r,
|
|
27140
27202
|
columns: l,
|
|
27141
|
-
getCoreRowModel:
|
|
27142
|
-
getPaginationRowModel:
|
|
27203
|
+
getCoreRowModel: xF(),
|
|
27204
|
+
getPaginationRowModel: SF(),
|
|
27143
27205
|
debugTable: !0,
|
|
27144
27206
|
onPaginationChange: s,
|
|
27145
27207
|
state: {
|
|
@@ -27154,89 +27216,41 @@ const F1 = ({
|
|
|
27154
27216
|
c.getRowModel().rows.length === 0 && /* @__PURE__ */ v("td", { colSpan: c.getFlatHeaders().length, children: /* @__PURE__ */ v("div", { className: "text-center", children: "No data available for your filters." }) })
|
|
27155
27217
|
] })
|
|
27156
27218
|
] }),
|
|
27157
|
-
/* @__PURE__ */ v("div", { className: "mt-2", children: /* @__PURE__ */ v(
|
|
27219
|
+
/* @__PURE__ */ v("div", { className: "mt-2", children: /* @__PURE__ */ v(Pz, { table: c, pageSizes: i }) })
|
|
27158
27220
|
] });
|
|
27159
27221
|
};
|
|
27160
|
-
function
|
|
27222
|
+
function MF(n, e) {
|
|
27161
27223
|
return n === 0 ? { className: "overflow-visible text-nowrap" } : n === e - 1 ? { className: "overflow-visible text-nowrap", style: { direction: "rtl" } } : { className: "invisible @[6rem]:visible" };
|
|
27162
27224
|
}
|
|
27163
|
-
function
|
|
27225
|
+
function CF(n, e, t, i) {
|
|
27164
27226
|
const r = n < e / 2 || n < 6 ? "bottom" : "top", o = t < i / 2 ? "start" : "end";
|
|
27165
27227
|
return `${r}-${o}`;
|
|
27166
27228
|
}
|
|
27167
|
-
const
|
|
27168
|
-
const o =
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
"(",
|
|
27172
|
-
CF(o),
|
|
27173
|
-
")"
|
|
27174
|
-
] }),
|
|
27175
|
-
/* @__PURE__ */ v("p", { children: e.code }),
|
|
27176
|
-
/* @__PURE__ */ v(SF, { value: n })
|
|
27177
|
-
] }), l = (n == null ? void 0 : n.type) === "belowThreshold" ? 0 : n == null ? void 0 : n.proportion;
|
|
27178
|
-
return /* @__PURE__ */ v("div", { className: "py-1 w-full h-full", children: /* @__PURE__ */ v(kz, { content: s, position: i, children: /* @__PURE__ */ v(
|
|
27179
|
-
"div",
|
|
27229
|
+
const TF = ({ value: n, mutation: e, date: t, tooltipPosition: i, colorScale: r }) => {
|
|
27230
|
+
const o = (n == null ? void 0 : n.type) === "belowThreshold" ? 0 : n == null ? void 0 : n.proportion;
|
|
27231
|
+
return /* @__PURE__ */ v("div", { className: "py-1 w-full h-full", children: /* @__PURE__ */ v(
|
|
27232
|
+
Dz,
|
|
27180
27233
|
{
|
|
27181
|
-
|
|
27182
|
-
|
|
27183
|
-
|
|
27184
|
-
|
|
27185
|
-
|
|
27186
|
-
|
|
27234
|
+
content: /* @__PURE__ */ v(bz, { mutation: e, date: t, value: n }),
|
|
27235
|
+
position: i,
|
|
27236
|
+
children: /* @__PURE__ */ v(
|
|
27237
|
+
"div",
|
|
27238
|
+
{
|
|
27239
|
+
style: {
|
|
27240
|
+
backgroundColor: Cz(o, r),
|
|
27241
|
+
color: Tz(o, r)
|
|
27242
|
+
},
|
|
27243
|
+
className: "w-full h-full hover:font-bold text-xs group @container",
|
|
27244
|
+
children: n === null ? /* @__PURE__ */ v("span", { className: "invisible", children: "No data" }) : /* @__PURE__ */ v("span", { className: "invisible @[2rem]:visible", children: Kt(o ?? 0, 0) })
|
|
27245
|
+
}
|
|
27246
|
+
)
|
|
27187
27247
|
}
|
|
27188
|
-
) })
|
|
27189
|
-
},
|
|
27190
|
-
if (n === null)
|
|
27191
|
-
return /* @__PURE__ */ v("p", { children: "No data" });
|
|
27192
|
-
const e = n.type === "belowThreshold" ? `<${Kt(M1)}` : Kt(n.proportion);
|
|
27193
|
-
return /* @__PURE__ */ v(Ae, { children: [
|
|
27194
|
-
/* @__PURE__ */ v("p", { children: [
|
|
27195
|
-
"Proportion: ",
|
|
27196
|
-
e
|
|
27197
|
-
] }),
|
|
27198
|
-
/* @__PURE__ */ v(kF, { value: n })
|
|
27199
|
-
] });
|
|
27200
|
-
}, kF = ({ value: n }) => {
|
|
27201
|
-
switch (n.type) {
|
|
27202
|
-
case "wastewaterValue":
|
|
27203
|
-
return;
|
|
27204
|
-
case "belowThreshold":
|
|
27205
|
-
return /* @__PURE__ */ v(Ae, { children: [
|
|
27206
|
-
/* @__PURE__ */ v("p", { children: [
|
|
27207
|
-
n.totalCount,
|
|
27208
|
-
" samples are in the timeframe"
|
|
27209
|
-
] }),
|
|
27210
|
-
/* @__PURE__ */ v("p", { children: [
|
|
27211
|
-
"none or less than ",
|
|
27212
|
-
Kt(M1),
|
|
27213
|
-
" have the mutation"
|
|
27214
|
-
] })
|
|
27215
|
-
] });
|
|
27216
|
-
case "value":
|
|
27217
|
-
return /* @__PURE__ */ v(Ae, { children: [
|
|
27218
|
-
/* @__PURE__ */ v("p", { children: [
|
|
27219
|
-
n.totalCount,
|
|
27220
|
-
" samples are in the timeframe"
|
|
27221
|
-
] }),
|
|
27222
|
-
/* @__PURE__ */ v("p", { children: [
|
|
27223
|
-
MF(n.count, n.proportion),
|
|
27224
|
-
" have coverage, of those ",
|
|
27225
|
-
n.count,
|
|
27226
|
-
" ",
|
|
27227
|
-
"have the mutation"
|
|
27228
|
-
] })
|
|
27229
|
-
] });
|
|
27230
|
-
}
|
|
27231
|
-
};
|
|
27232
|
-
function MF(n, e) {
|
|
27233
|
-
return n === 0 ? 0 : Math.round(n / e);
|
|
27234
|
-
}
|
|
27235
|
-
const CF = (n) => n instanceof fr ? n.toString() : `${n.firstDay.toString()} - ${n.lastDay.toString()}`, $1 = ({
|
|
27248
|
+
) });
|
|
27249
|
+
}, $1 = ({
|
|
27236
27250
|
colorScale: n,
|
|
27237
27251
|
setColorScale: e
|
|
27238
|
-
}) => /* @__PURE__ */ v("div", { className: "w-20 inline-flex", children: /* @__PURE__ */ v(Rm, { buttonTitle: "Color scale", placement: "bottom-start", children: /* @__PURE__ */ v(
|
|
27239
|
-
function
|
|
27252
|
+
}) => /* @__PURE__ */ v("div", { className: "w-20 inline-flex", children: /* @__PURE__ */ v(Rm, { buttonTitle: "Color scale", placement: "bottom-start", children: /* @__PURE__ */ v(Mz, { colorScale: n, setColorScale: e }) }) });
|
|
27253
|
+
function EF(n, e) {
|
|
27240
27254
|
const [t, i] = We(void 0), [r, o] = We(void 0), [s, l] = We(!0), c = ut(() => {
|
|
27241
27255
|
const u = new e();
|
|
27242
27256
|
return u.onmessage = (h) => {
|
|
@@ -27264,10 +27278,10 @@ function TF(n, e) {
|
|
|
27264
27278
|
c.postMessage(n);
|
|
27265
27279
|
}, [n, c]), { data: t, error: r, isLoading: s };
|
|
27266
27280
|
}
|
|
27267
|
-
const
|
|
27281
|
+
const DF = A.literal(wt.grid), PF = A.object({
|
|
27268
27282
|
lapisFilter: Ln,
|
|
27269
27283
|
sequenceType: Dd,
|
|
27270
|
-
views: A.array(
|
|
27284
|
+
views: A.array(DF),
|
|
27271
27285
|
granularity: Gp,
|
|
27272
27286
|
lapisDateField: A.string().min(1),
|
|
27273
27287
|
displayMutations: vz.optional(),
|
|
@@ -27278,17 +27292,17 @@ const EF = A.literal(wt.grid), DF = A.object({
|
|
|
27278
27292
|
width: A.string(),
|
|
27279
27293
|
height: A.string().optional(),
|
|
27280
27294
|
pageSizes: E1
|
|
27281
|
-
}),
|
|
27295
|
+
}), AF = (n) => {
|
|
27282
27296
|
const { width: e, height: t } = n, i = { height: t, width: e };
|
|
27283
|
-
return /* @__PURE__ */ v($n, { size: i, schema:
|
|
27284
|
-
},
|
|
27297
|
+
return /* @__PURE__ */ v($n, { size: i, schema: PF, componentProps: n, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(OF, { ...n }) }) });
|
|
27298
|
+
}, OF = (n) => {
|
|
27285
27299
|
const e = Nt(), { lapisFilter: t, sequenceType: i, granularity: r, lapisDateField: o } = n, s = ut(() => ({
|
|
27286
27300
|
lapisFilter: t,
|
|
27287
27301
|
sequenceType: i,
|
|
27288
27302
|
granularity: r,
|
|
27289
27303
|
lapisDateField: o,
|
|
27290
27304
|
lapis: e
|
|
27291
|
-
}), [r, e, o, t, i]), { data: l, error: c, isLoading: u } =
|
|
27305
|
+
}), [r, e, o, t, i]), { data: l, error: c, isLoading: u } = EF(
|
|
27292
27306
|
s,
|
|
27293
27307
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
27294
27308
|
pz
|
|
@@ -27301,14 +27315,14 @@ const EF = A.literal(wt.grid), DF = A.object({
|
|
|
27301
27315
|
return /* @__PURE__ */ v(Sn, {});
|
|
27302
27316
|
const { overallMutationData: h, mutationOverTimeSerialized: f } = l, m = new T1(f);
|
|
27303
27317
|
return /* @__PURE__ */ v(
|
|
27304
|
-
|
|
27318
|
+
IF,
|
|
27305
27319
|
{
|
|
27306
27320
|
overallMutationData: h,
|
|
27307
27321
|
mutationOverTimeData: m,
|
|
27308
27322
|
originalComponentProps: n
|
|
27309
27323
|
}
|
|
27310
27324
|
);
|
|
27311
|
-
},
|
|
27325
|
+
}, IF = ({
|
|
27312
27326
|
mutationOverTimeData: n,
|
|
27313
27327
|
originalComponentProps: e,
|
|
27314
27328
|
overallMutationData: t
|
|
@@ -27353,7 +27367,7 @@ const EF = A.literal(wt.grid), DF = A.object({
|
|
|
27353
27367
|
}
|
|
27354
27368
|
}, y = e.views.map((w) => g(w));
|
|
27355
27369
|
return /* @__PURE__ */ v(ro, { tabs: y, toolbar: (w) => /* @__PURE__ */ v(
|
|
27356
|
-
|
|
27370
|
+
LF,
|
|
27357
27371
|
{
|
|
27358
27372
|
activeTab: w,
|
|
27359
27373
|
displayedSegments: l,
|
|
@@ -27368,7 +27382,7 @@ const EF = A.literal(wt.grid), DF = A.object({
|
|
|
27368
27382
|
originalComponentProps: e
|
|
27369
27383
|
}
|
|
27370
27384
|
) });
|
|
27371
|
-
},
|
|
27385
|
+
}, LF = ({
|
|
27372
27386
|
activeTab: n,
|
|
27373
27387
|
displayedSegments: e,
|
|
27374
27388
|
setDisplayedSegments: t,
|
|
@@ -27403,13 +27417,13 @@ const EF = A.literal(wt.grid), DF = A.object({
|
|
|
27403
27417
|
Lo,
|
|
27404
27418
|
{
|
|
27405
27419
|
className: "btn btn-xs",
|
|
27406
|
-
getData: () =>
|
|
27420
|
+
getData: () => NF(l),
|
|
27407
27421
|
filename: "mutations_over_time.csv"
|
|
27408
27422
|
}
|
|
27409
27423
|
),
|
|
27410
|
-
/* @__PURE__ */ v(
|
|
27424
|
+
/* @__PURE__ */ v(RF, { originalComponentProps: h }),
|
|
27411
27425
|
/* @__PURE__ */ v(io, {})
|
|
27412
|
-
] }),
|
|
27426
|
+
] }), RF = ({ originalComponentProps: n }) => {
|
|
27413
27427
|
const e = Nt();
|
|
27414
27428
|
return /* @__PURE__ */ v(gr, { children: [
|
|
27415
27429
|
/* @__PURE__ */ v(hi, { children: "Mutations over time" }),
|
|
@@ -27425,7 +27439,7 @@ const EF = A.literal(wt.grid), DF = A.object({
|
|
|
27425
27439
|
/* @__PURE__ */ v(no, { componentName: "mutations-over-time", params: n, lapisUrl: e })
|
|
27426
27440
|
] });
|
|
27427
27441
|
};
|
|
27428
|
-
function
|
|
27442
|
+
function NF(n) {
|
|
27429
27443
|
const e = n.getSecondAxisKeys().map((t) => Ym(t));
|
|
27430
27444
|
return n.getFirstAxisKeys().map((t) => e.reduce(
|
|
27431
27445
|
(i, r) => {
|
|
@@ -27438,10 +27452,10 @@ function RF(n) {
|
|
|
27438
27452
|
{ mutation: t.code }
|
|
27439
27453
|
));
|
|
27440
27454
|
}
|
|
27441
|
-
var
|
|
27442
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
27455
|
+
var zF = Object.defineProperty, FF = Object.getOwnPropertyDescriptor, Ei = (n, e, t, i) => {
|
|
27456
|
+
for (var r = i > 1 ? void 0 : i ? FF(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
27443
27457
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
27444
|
-
return i && r &&
|
|
27458
|
+
return i && r && zF(e, t, r), r;
|
|
27445
27459
|
};
|
|
27446
27460
|
let ui = class extends Mi {
|
|
27447
27461
|
constructor() {
|
|
@@ -27449,7 +27463,7 @@ let ui = class extends Mi {
|
|
|
27449
27463
|
}
|
|
27450
27464
|
render() {
|
|
27451
27465
|
return /* @__PURE__ */ v(Fd, { value: this.mutationAnnotations, children: /* @__PURE__ */ v(
|
|
27452
|
-
|
|
27466
|
+
AF,
|
|
27453
27467
|
{
|
|
27454
27468
|
lapisFilter: this.lapisFilter,
|
|
27455
27469
|
sequenceType: this.sequenceType,
|
|
@@ -27501,8 +27515,8 @@ Ei([
|
|
|
27501
27515
|
ui = Ei([
|
|
27502
27516
|
kn("gs-mutations-over-time")
|
|
27503
27517
|
], ui);
|
|
27504
|
-
const FF = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}', $F = ".leaflet-container{background:transparent}";
|
|
27505
|
-
function
|
|
27518
|
+
const $F = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}', jF = ".leaflet-container{background:transparent}";
|
|
27519
|
+
function BF(n) {
|
|
27506
27520
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
27507
27521
|
}
|
|
27508
27522
|
var Tl = { exports: {} };
|
|
@@ -27510,12 +27524,12 @@ var Tl = { exports: {} };
|
|
|
27510
27524
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
27511
27525
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
27512
27526
|
*/
|
|
27513
|
-
var
|
|
27514
|
-
function
|
|
27527
|
+
var VF = Tl.exports, cb;
|
|
27528
|
+
function HF() {
|
|
27515
27529
|
return cb || (cb = 1, function(n, e) {
|
|
27516
27530
|
(function(t, i) {
|
|
27517
27531
|
i(e);
|
|
27518
|
-
})(
|
|
27532
|
+
})(VF, function(t) {
|
|
27519
27533
|
var i = "1.9.4";
|
|
27520
27534
|
function r(a) {
|
|
27521
27535
|
var d, p, _, x;
|
|
@@ -33820,11 +33834,11 @@ function VF() {
|
|
|
33820
33834
|
});
|
|
33821
33835
|
}(Tl, Tl.exports)), Tl.exports;
|
|
33822
33836
|
}
|
|
33823
|
-
var ub =
|
|
33824
|
-
function
|
|
33837
|
+
var ub = HF();
|
|
33838
|
+
function WF({ children: n, aspectRatio: e }) {
|
|
33825
33839
|
return e === void 0 ? n : /* @__PURE__ */ v("div", { class: "w-full relative", style: { paddingTop: `${e}%` }, children: /* @__PURE__ */ v("div", { className: "absolute inset-0", children: n }) });
|
|
33826
33840
|
}
|
|
33827
|
-
const
|
|
33841
|
+
const ZF = ({
|
|
33828
33842
|
locations: n,
|
|
33829
33843
|
totalCount: e,
|
|
33830
33844
|
countOfMatchedLocationData: t,
|
|
@@ -33855,19 +33869,19 @@ const WF = ({
|
|
|
33855
33869
|
style: (y) => {
|
|
33856
33870
|
var b;
|
|
33857
33871
|
return {
|
|
33858
|
-
fillColor:
|
|
33872
|
+
fillColor: UF((b = y == null ? void 0 : y.properties.data) == null ? void 0 : b.proportion),
|
|
33859
33873
|
fillOpacity: 1,
|
|
33860
33874
|
color: "#666666",
|
|
33861
33875
|
weight: 1
|
|
33862
33876
|
};
|
|
33863
33877
|
}
|
|
33864
|
-
}).bindTooltip(
|
|
33878
|
+
}).bindTooltip(qF).addTo(g), () => {
|
|
33865
33879
|
g.remove();
|
|
33866
33880
|
};
|
|
33867
|
-
}, [m, n, o, s, l, c, u]), /* @__PURE__ */ v(
|
|
33881
|
+
}, [m, n, o, s, l, c, u]), /* @__PURE__ */ v(WF, { aspectRatio: f ? 50 : void 0, children: [
|
|
33868
33882
|
/* @__PURE__ */ v("div", { className: "h-full", ref: m }),
|
|
33869
33883
|
/* @__PURE__ */ v("div", { className: "relative", children: /* @__PURE__ */ v(
|
|
33870
|
-
|
|
33884
|
+
YF,
|
|
33871
33885
|
{
|
|
33872
33886
|
totalCount: e,
|
|
33873
33887
|
countOfMatchedLocationData: t,
|
|
@@ -33877,7 +33891,7 @@ const WF = ({
|
|
|
33877
33891
|
}
|
|
33878
33892
|
) })
|
|
33879
33893
|
] });
|
|
33880
|
-
},
|
|
33894
|
+
}, YF = ({
|
|
33881
33895
|
totalCount: n,
|
|
33882
33896
|
countOfMatchedLocationData: e,
|
|
33883
33897
|
unmatchedLocations: t,
|
|
@@ -33920,7 +33934,7 @@ const WF = ({
|
|
|
33920
33934
|
}
|
|
33921
33935
|
);
|
|
33922
33936
|
};
|
|
33923
|
-
function
|
|
33937
|
+
function UF(n) {
|
|
33924
33938
|
if (n === void 0)
|
|
33925
33939
|
return "#DDDDDD";
|
|
33926
33940
|
const e = [
|
|
@@ -33939,7 +33953,7 @@ function YF(n) {
|
|
|
33939
33953
|
return i;
|
|
33940
33954
|
return "#FFFFE5";
|
|
33941
33955
|
}
|
|
33942
|
-
function
|
|
33956
|
+
function qF(n) {
|
|
33943
33957
|
const e = n.feature;
|
|
33944
33958
|
if (e === void 0 || e.type !== "Feature")
|
|
33945
33959
|
return "";
|
|
@@ -33958,7 +33972,7 @@ function bu({ innerText: n, className: e = "" }) {
|
|
|
33958
33972
|
const t = document.createElement("p");
|
|
33959
33973
|
return t.innerText = n, t.className = e, t;
|
|
33960
33974
|
}
|
|
33961
|
-
const
|
|
33975
|
+
const GF = ({
|
|
33962
33976
|
tableData: n,
|
|
33963
33977
|
lapisLocationField: e,
|
|
33964
33978
|
pageSize: t
|
|
@@ -33986,18 +34000,18 @@ const qF = ({
|
|
|
33986
34000
|
tableDataOnly: "tableDataOnly",
|
|
33987
34001
|
tableAndMapData: "tableAndMapData"
|
|
33988
34002
|
};
|
|
33989
|
-
function
|
|
34003
|
+
function KF(n, e, t) {
|
|
33990
34004
|
var h;
|
|
33991
34005
|
if (e === void 0)
|
|
33992
34006
|
return { type: $p.tableDataOnly, tableData: n };
|
|
33993
|
-
const i =
|
|
34007
|
+
const i = XF(n, t), { locations: r, unmatchedLocations: o } = JF(
|
|
33994
34008
|
e,
|
|
33995
34009
|
i,
|
|
33996
34010
|
t
|
|
33997
34011
|
), s = n.map((f) => f.count).reduce((f, m) => f + m, 0), l = r.map((f) => {
|
|
33998
34012
|
var m;
|
|
33999
34013
|
return ((m = f.properties.data) == null ? void 0 : m.count) ?? 0;
|
|
34000
|
-
}).reduce((f, m) => f + m, 0), c = ((h = n.find((f) => f[t] === null)) == null ? void 0 : h.count) ?? 0, u =
|
|
34014
|
+
}).reduce((f, m) => f + m, 0), c = ((h = n.find((f) => f[t] === null)) == null ? void 0 : h.count) ?? 0, u = QF(n, o, t);
|
|
34001
34015
|
return {
|
|
34002
34016
|
type: $p.tableAndMapData,
|
|
34003
34017
|
locations: r,
|
|
@@ -34008,12 +34022,12 @@ function GF(n, e, t) {
|
|
|
34008
34022
|
nullCount: c
|
|
34009
34023
|
};
|
|
34010
34024
|
}
|
|
34011
|
-
function
|
|
34025
|
+
function XF(n, e) {
|
|
34012
34026
|
return new Map(
|
|
34013
34027
|
n.filter((t) => typeof t[e] == "string").map((t) => [t[e], t])
|
|
34014
34028
|
);
|
|
34015
34029
|
}
|
|
34016
|
-
function
|
|
34030
|
+
function JF(n, e, t) {
|
|
34017
34031
|
const i = [], r = n.features.map(
|
|
34018
34032
|
(s) => {
|
|
34019
34033
|
var u;
|
|
@@ -34040,21 +34054,21 @@ function XF(n, e, t) {
|
|
|
34040
34054
|
}
|
|
34041
34055
|
return { locations: r, unmatchedLocations: o };
|
|
34042
34056
|
}
|
|
34043
|
-
function
|
|
34057
|
+
function QF(n, e, t) {
|
|
34044
34058
|
return n.map((i) => ({
|
|
34045
34059
|
...i,
|
|
34046
|
-
isShownOnMap: `${
|
|
34060
|
+
isShownOnMap: `${e$(i, e, t)}`
|
|
34047
34061
|
}));
|
|
34048
34062
|
}
|
|
34049
|
-
function
|
|
34063
|
+
function e$(n, e, t) {
|
|
34050
34064
|
const i = n[t];
|
|
34051
34065
|
return i === null ? !1 : !e.includes(i);
|
|
34052
34066
|
}
|
|
34053
|
-
function
|
|
34067
|
+
function t$(n) {
|
|
34054
34068
|
return n;
|
|
34055
34069
|
}
|
|
34056
|
-
function
|
|
34057
|
-
if (n == null) return
|
|
34070
|
+
function n$(n) {
|
|
34071
|
+
if (n == null) return t$;
|
|
34058
34072
|
var e, t, i = n.scale[0], r = n.scale[1], o = n.translate[0], s = n.translate[1];
|
|
34059
34073
|
return function(l, c) {
|
|
34060
34074
|
c || (e = t = 0);
|
|
@@ -34063,25 +34077,25 @@ function t$(n) {
|
|
|
34063
34077
|
return f;
|
|
34064
34078
|
};
|
|
34065
34079
|
}
|
|
34066
|
-
function
|
|
34080
|
+
function i$(n, e) {
|
|
34067
34081
|
for (var t, i = n.length, r = i - e; r < --i; ) t = n[r], n[r++] = n[i], n[i] = t;
|
|
34068
34082
|
}
|
|
34069
|
-
function
|
|
34083
|
+
function r$(n, e) {
|
|
34070
34084
|
return typeof e == "string" && (e = n.objects[e]), e.type === "GeometryCollection" ? { type: "FeatureCollection", features: e.geometries.map(function(t) {
|
|
34071
34085
|
return db(n, t);
|
|
34072
34086
|
}) } : db(n, e);
|
|
34073
34087
|
}
|
|
34074
34088
|
function db(n, e) {
|
|
34075
|
-
var t = e.id, i = e.bbox, r = e.properties == null ? {} : e.properties, o =
|
|
34089
|
+
var t = e.id, i = e.bbox, r = e.properties == null ? {} : e.properties, o = o$(n, e);
|
|
34076
34090
|
return t == null && i == null ? { type: "Feature", properties: r, geometry: o } : i == null ? { type: "Feature", id: t, properties: r, geometry: o } : { type: "Feature", id: t, bbox: i, properties: r, geometry: o };
|
|
34077
34091
|
}
|
|
34078
|
-
function
|
|
34079
|
-
var t =
|
|
34092
|
+
function o$(n, e) {
|
|
34093
|
+
var t = n$(n.transform), i = n.arcs;
|
|
34080
34094
|
function r(h, f) {
|
|
34081
34095
|
f.length && f.pop();
|
|
34082
34096
|
for (var m = i[h < 0 ? ~h : h], g = 0, y = m.length; g < y; ++g)
|
|
34083
34097
|
f.push(t(m[g], g));
|
|
34084
|
-
h < 0 &&
|
|
34098
|
+
h < 0 && i$(f, y);
|
|
34085
34099
|
}
|
|
34086
34100
|
function o(h) {
|
|
34087
34101
|
return t(h);
|
|
@@ -34127,18 +34141,18 @@ function r$(n, e) {
|
|
|
34127
34141
|
}
|
|
34128
34142
|
return u(e);
|
|
34129
34143
|
}
|
|
34130
|
-
const
|
|
34144
|
+
const s$ = A.object({
|
|
34131
34145
|
type: A.literal("topojson"),
|
|
34132
34146
|
url: A.string().min(1),
|
|
34133
34147
|
topologyObjectsKey: A.string().min(1)
|
|
34134
34148
|
});
|
|
34135
|
-
async function
|
|
34149
|
+
async function a$(n) {
|
|
34136
34150
|
switch (n.type) {
|
|
34137
34151
|
case "topojson":
|
|
34138
|
-
return await
|
|
34152
|
+
return await l$(n);
|
|
34139
34153
|
}
|
|
34140
34154
|
}
|
|
34141
|
-
async function
|
|
34155
|
+
async function l$(n) {
|
|
34142
34156
|
var r;
|
|
34143
34157
|
const t = await (await fetch(n.url)).json();
|
|
34144
34158
|
if ((t == null ? void 0 : t.type) !== "Topology")
|
|
@@ -34152,45 +34166,45 @@ async function a$(n) {
|
|
|
34152
34166
|
"Invalid map source",
|
|
34153
34167
|
`JSON downloaded from ${n.url} does not have a GeometryCollection at key objects.${n.topologyObjectsKey}, got '${(r = JSON.stringify(t)) == null ? void 0 : r.substring(0, 100)}'`
|
|
34154
34168
|
);
|
|
34155
|
-
return
|
|
34169
|
+
return r$(t, i);
|
|
34156
34170
|
}
|
|
34157
|
-
async function
|
|
34171
|
+
async function c$(n, e, t, i) {
|
|
34158
34172
|
const [r, o] = await Promise.all([
|
|
34159
34173
|
xd(n, [e], t),
|
|
34160
|
-
i !== void 0 ?
|
|
34174
|
+
i !== void 0 ? a$(i) : void 0
|
|
34161
34175
|
]);
|
|
34162
|
-
return
|
|
34176
|
+
return KF(r, o, e);
|
|
34163
34177
|
}
|
|
34164
|
-
const
|
|
34178
|
+
const u$ = A.union([A.literal(wt.map), A.literal(wt.table)]), d$ = A.object({
|
|
34165
34179
|
lapisFilter: Ln,
|
|
34166
34180
|
lapisLocationField: A.string().min(1),
|
|
34167
|
-
mapSource:
|
|
34181
|
+
mapSource: s$.optional(),
|
|
34168
34182
|
enableMapNavigation: A.boolean(),
|
|
34169
34183
|
width: A.string(),
|
|
34170
34184
|
height: A.string().optional(),
|
|
34171
|
-
views: A.array(
|
|
34185
|
+
views: A.array(u$),
|
|
34172
34186
|
zoom: A.number(),
|
|
34173
34187
|
offsetX: A.number(),
|
|
34174
34188
|
offsetY: A.number(),
|
|
34175
34189
|
pageSize: A.union([A.boolean(), A.number()])
|
|
34176
|
-
}),
|
|
34190
|
+
}), h$ = (n) => {
|
|
34177
34191
|
const { width: e, height: t } = n, i = { height: t, width: e };
|
|
34178
|
-
return /* @__PURE__ */ v($n, { size: i, componentProps: n, schema:
|
|
34179
|
-
},
|
|
34192
|
+
return /* @__PURE__ */ v($n, { size: i, componentProps: n, schema: d$, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(f$, { ...n }) }) });
|
|
34193
|
+
}, f$ = (n) => {
|
|
34180
34194
|
const { lapisFilter: e, lapisLocationField: t, mapSource: i } = n, r = Nt(), {
|
|
34181
34195
|
data: o,
|
|
34182
34196
|
error: s,
|
|
34183
34197
|
isLoading: l
|
|
34184
34198
|
} = Ti(
|
|
34185
|
-
async () =>
|
|
34199
|
+
async () => c$(e, t, r, i),
|
|
34186
34200
|
[e, t, r, i]
|
|
34187
34201
|
);
|
|
34188
34202
|
if (l)
|
|
34189
34203
|
return /* @__PURE__ */ v(Qn, {});
|
|
34190
34204
|
if (s)
|
|
34191
34205
|
throw s;
|
|
34192
|
-
return o.tableData.length === 0 ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(
|
|
34193
|
-
},
|
|
34206
|
+
return o.tableData.length === 0 ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(p$, { data: o, originalComponentProps: n });
|
|
34207
|
+
}, p$ = ({
|
|
34194
34208
|
originalComponentProps: n,
|
|
34195
34209
|
data: e
|
|
34196
34210
|
}) => {
|
|
@@ -34203,7 +34217,7 @@ const c$ = A.union([A.literal(wt.map), A.literal(wt.table)]), u$ = A.object({
|
|
|
34203
34217
|
return {
|
|
34204
34218
|
title: "Map",
|
|
34205
34219
|
content: /* @__PURE__ */ v(
|
|
34206
|
-
|
|
34220
|
+
ZF,
|
|
34207
34221
|
{
|
|
34208
34222
|
...c,
|
|
34209
34223
|
enableMapNavigation: n.enableMapNavigation,
|
|
@@ -34221,7 +34235,7 @@ const c$ = A.union([A.literal(wt.map), A.literal(wt.table)]), u$ = A.object({
|
|
|
34221
34235
|
return {
|
|
34222
34236
|
title: "Table",
|
|
34223
34237
|
content: /* @__PURE__ */ v(
|
|
34224
|
-
|
|
34238
|
+
GF,
|
|
34225
34239
|
{
|
|
34226
34240
|
tableData: e.tableData,
|
|
34227
34241
|
lapisLocationField: n.lapisLocationField,
|
|
@@ -34235,14 +34249,14 @@ const c$ = A.union([A.literal(wt.map), A.literal(wt.table)]), u$ = A.object({
|
|
|
34235
34249
|
ro,
|
|
34236
34250
|
{
|
|
34237
34251
|
tabs: r,
|
|
34238
|
-
toolbar: /* @__PURE__ */ v(
|
|
34252
|
+
toolbar: /* @__PURE__ */ v(m$, { originalComponentProps: n, tableData: e.tableData })
|
|
34239
34253
|
}
|
|
34240
34254
|
);
|
|
34241
|
-
},
|
|
34255
|
+
}, m$ = ({ originalComponentProps: n, tableData: e }) => /* @__PURE__ */ v(Ae, { children: [
|
|
34242
34256
|
/* @__PURE__ */ v(Lo, { className: "btn btn-xs", getData: () => e, filename: "sequences_by_location.csv" }),
|
|
34243
|
-
/* @__PURE__ */ v(
|
|
34257
|
+
/* @__PURE__ */ v(g$, { originalComponentProps: n }),
|
|
34244
34258
|
/* @__PURE__ */ v(io, {})
|
|
34245
|
-
] }),
|
|
34259
|
+
] }), g$ = ({ originalComponentProps: n }) => {
|
|
34246
34260
|
const e = Nt();
|
|
34247
34261
|
return /* @__PURE__ */ v(gr, { children: [
|
|
34248
34262
|
/* @__PURE__ */ v(hi, { children: "Prevalence by location" }),
|
|
@@ -34250,19 +34264,19 @@ const c$ = A.union([A.literal(wt.map), A.literal(wt.table)]), u$ = A.object({
|
|
|
34250
34264
|
/* @__PURE__ */ v(no, { componentName: "sequences-by-location", params: n, lapisUrl: e })
|
|
34251
34265
|
] });
|
|
34252
34266
|
};
|
|
34253
|
-
var
|
|
34254
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
34267
|
+
var _$ = Object.defineProperty, v$ = Object.getOwnPropertyDescriptor, Di = (n, e, t, i) => {
|
|
34268
|
+
for (var r = i > 1 ? void 0 : i ? v$(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
34255
34269
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
34256
|
-
return i && r &&
|
|
34270
|
+
return i && r && _$(e, t, r), r;
|
|
34257
34271
|
};
|
|
34258
|
-
const
|
|
34272
|
+
const y$ = Ra($F), b$ = Ra(jF);
|
|
34259
34273
|
let Jn = class extends Mi {
|
|
34260
34274
|
constructor() {
|
|
34261
34275
|
super(...arguments), this.lapisFilter = {}, this.lapisLocationField = "", this.mapSource = void 0, this.enableMapNavigation = !1, this.width = "100%", this.height = void 0, this.views = ["map", "table"], this.zoom = 1, this.offsetX = 0, this.offsetY = 0, this.pageSize = !1;
|
|
34262
34276
|
}
|
|
34263
34277
|
render() {
|
|
34264
34278
|
return /* @__PURE__ */ v(
|
|
34265
|
-
|
|
34279
|
+
h$,
|
|
34266
34280
|
{
|
|
34267
34281
|
lapisFilter: this.lapisFilter,
|
|
34268
34282
|
lapisLocationField: this.lapisLocationField,
|
|
@@ -34279,7 +34293,7 @@ let Jn = class extends Mi {
|
|
|
34279
34293
|
);
|
|
34280
34294
|
}
|
|
34281
34295
|
};
|
|
34282
|
-
Jn.styles = [...Mi.styles,
|
|
34296
|
+
Jn.styles = [...Mi.styles, y$, b$];
|
|
34283
34297
|
Di([
|
|
34284
34298
|
X({ type: Object })
|
|
34285
34299
|
], Jn.prototype, "lapisFilter", 2);
|
|
@@ -34316,28 +34330,28 @@ Di([
|
|
|
34316
34330
|
Jn = Di([
|
|
34317
34331
|
kn("gs-sequences-by-location")
|
|
34318
34332
|
], Jn);
|
|
34319
|
-
async function
|
|
34333
|
+
async function x$(n, e, t, i) {
|
|
34320
34334
|
const r = await xd(n, [], t, i), o = await xd(e, [], t, i);
|
|
34321
34335
|
if (r.length === 0 || o.length === 0)
|
|
34322
34336
|
throw new Error("No data found for the given filters");
|
|
34323
34337
|
return { proportion: r[0].count / o[0].count, count: r[0].count };
|
|
34324
34338
|
}
|
|
34325
|
-
const
|
|
34339
|
+
const w$ = A.object({
|
|
34326
34340
|
width: A.string(),
|
|
34327
34341
|
height: A.string().optional(),
|
|
34328
34342
|
numeratorFilter: Ln,
|
|
34329
34343
|
denominatorFilter: Ln
|
|
34330
|
-
}),
|
|
34344
|
+
}), S$ = (n) => {
|
|
34331
34345
|
const { width: e, height: t } = n, i = { height: t, width: e };
|
|
34332
|
-
return /* @__PURE__ */ v($n, { size: i, schema:
|
|
34333
|
-
},
|
|
34334
|
-
const { numeratorFilter: e, denominatorFilter: t } = n, i = Nt(), { data: r, error: o, isLoading: s } = Ti(async () =>
|
|
34346
|
+
return /* @__PURE__ */ v($n, { size: i, schema: w$, componentProps: n, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(k$, { ...n }) }) });
|
|
34347
|
+
}, k$ = (n) => {
|
|
34348
|
+
const { numeratorFilter: e, denominatorFilter: t } = n, i = Nt(), { data: r, error: o, isLoading: s } = Ti(async () => x$(e, t, i), [e, t, i]);
|
|
34335
34349
|
if (s)
|
|
34336
34350
|
return /* @__PURE__ */ v(Qn, {});
|
|
34337
34351
|
if (o !== null)
|
|
34338
34352
|
throw o;
|
|
34339
|
-
return r === null ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(
|
|
34340
|
-
},
|
|
34353
|
+
return r === null ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(M$, { data: r });
|
|
34354
|
+
}, M$ = ({ data: n }) => {
|
|
34341
34355
|
const { count: e, proportion: t } = n;
|
|
34342
34356
|
return /* @__PURE__ */ v("div", { className: "flex flex-col sm:flex-row rounded-md border-2 border-gray-100 min-w-[180px]", children: [
|
|
34343
34357
|
/* @__PURE__ */ v("div", { className: "stat", children: [
|
|
@@ -34352,10 +34366,10 @@ const x$ = A.object({
|
|
|
34352
34366
|
] })
|
|
34353
34367
|
] });
|
|
34354
34368
|
};
|
|
34355
|
-
var
|
|
34356
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
34369
|
+
var C$ = Object.defineProperty, T$ = Object.getOwnPropertyDescriptor, Ic = (n, e, t, i) => {
|
|
34370
|
+
for (var r = i > 1 ? void 0 : i ? T$(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
34357
34371
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
34358
|
-
return i && r &&
|
|
34372
|
+
return i && r && C$(e, t, r), r;
|
|
34359
34373
|
};
|
|
34360
34374
|
let Oa = class extends Mi {
|
|
34361
34375
|
constructor() {
|
|
@@ -34363,7 +34377,7 @@ let Oa = class extends Mi {
|
|
|
34363
34377
|
}
|
|
34364
34378
|
render() {
|
|
34365
34379
|
return /* @__PURE__ */ v(
|
|
34366
|
-
|
|
34380
|
+
S$,
|
|
34367
34381
|
{
|
|
34368
34382
|
numeratorFilter: this.numeratorFilter,
|
|
34369
34383
|
denominatorFilter: this.denominatorFilter,
|
|
@@ -34388,7 +34402,7 @@ Ic([
|
|
|
34388
34402
|
Oa = Ic([
|
|
34389
34403
|
kn("gs-statistics")
|
|
34390
34404
|
], Oa);
|
|
34391
|
-
class
|
|
34405
|
+
class E$ {
|
|
34392
34406
|
constructor(e, t = []) {
|
|
34393
34407
|
this.filter = e, this.fields = t;
|
|
34394
34408
|
}
|
|
@@ -34403,8 +34417,8 @@ class T$ {
|
|
|
34403
34417
|
)).data };
|
|
34404
34418
|
}
|
|
34405
34419
|
}
|
|
34406
|
-
async function
|
|
34407
|
-
return (await new
|
|
34420
|
+
async function D$(n, e, t) {
|
|
34421
|
+
return (await new E$(e, [
|
|
34408
34422
|
"date",
|
|
34409
34423
|
"location",
|
|
34410
34424
|
"nucleotideMutationFrequency",
|
|
@@ -34424,9 +34438,9 @@ async function E$(n, e, t) {
|
|
|
34424
34438
|
}
|
|
34425
34439
|
});
|
|
34426
34440
|
}
|
|
34427
|
-
const
|
|
34441
|
+
const P$ = A.record(A.number().nullable());
|
|
34428
34442
|
function hb(n) {
|
|
34429
|
-
const e =
|
|
34443
|
+
const e = P$.safeParse(n);
|
|
34430
34444
|
if (!e.success)
|
|
34431
34445
|
throw new Error(`Failed to parse mutation frequency: ${e.error.message}`);
|
|
34432
34446
|
return Object.entries(e.data).map(([t, i]) => {
|
|
@@ -34439,11 +34453,11 @@ function hb(n) {
|
|
|
34439
34453
|
};
|
|
34440
34454
|
});
|
|
34441
34455
|
}
|
|
34442
|
-
async function
|
|
34443
|
-
const r = await
|
|
34444
|
-
return
|
|
34456
|
+
async function A$(n, e, t, i) {
|
|
34457
|
+
const r = await D$(n, e, i);
|
|
34458
|
+
return O$(r, t);
|
|
34445
34459
|
}
|
|
34446
|
-
function
|
|
34460
|
+
function O$(n, e) {
|
|
34447
34461
|
const t = /* @__PURE__ */ new Map();
|
|
34448
34462
|
for (const i of n) {
|
|
34449
34463
|
t.has(i.location) || t.set(i.location, new T1());
|
|
@@ -34464,22 +34478,22 @@ function A$(n, e) {
|
|
|
34464
34478
|
)
|
|
34465
34479
|
}));
|
|
34466
34480
|
}
|
|
34467
|
-
const
|
|
34481
|
+
const I$ = A.object({
|
|
34468
34482
|
lapisFilter: Ln,
|
|
34469
34483
|
sequenceType: Dd,
|
|
34470
34484
|
width: A.string(),
|
|
34471
34485
|
height: A.string().optional(),
|
|
34472
34486
|
pageSizes: E1
|
|
34473
|
-
}),
|
|
34487
|
+
}), L$ = (n) => {
|
|
34474
34488
|
const { width: e, height: t } = n, i = { height: t, width: e };
|
|
34475
|
-
return /* @__PURE__ */ v($n, { size: i, schema:
|
|
34476
|
-
},
|
|
34489
|
+
return /* @__PURE__ */ v($n, { size: i, schema: I$, componentProps: n, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(R$, { ...n }) }) });
|
|
34490
|
+
}, R$ = (n) => {
|
|
34477
34491
|
const e = Nt(), {
|
|
34478
34492
|
data: t,
|
|
34479
34493
|
error: i,
|
|
34480
34494
|
isLoading: r
|
|
34481
34495
|
} = Ti(
|
|
34482
|
-
() =>
|
|
34496
|
+
() => A$(
|
|
34483
34497
|
e,
|
|
34484
34498
|
n.lapisFilter,
|
|
34485
34499
|
n.sequenceType
|
|
@@ -34491,13 +34505,13 @@ const O$ = A.object({
|
|
|
34491
34505
|
if (i !== null)
|
|
34492
34506
|
throw i;
|
|
34493
34507
|
return t.length === 0 ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(
|
|
34494
|
-
|
|
34508
|
+
N$,
|
|
34495
34509
|
{
|
|
34496
34510
|
mutationOverTimeDataPerLocation: t,
|
|
34497
34511
|
originalComponentProps: n
|
|
34498
34512
|
}
|
|
34499
34513
|
);
|
|
34500
|
-
},
|
|
34514
|
+
}, N$ = ({
|
|
34501
34515
|
mutationOverTimeDataPerLocation: n,
|
|
34502
34516
|
originalComponentProps: e
|
|
34503
34517
|
}) => {
|
|
@@ -34514,7 +34528,7 @@ const O$ = A.object({
|
|
|
34514
34528
|
)
|
|
34515
34529
|
}));
|
|
34516
34530
|
return /* @__PURE__ */ v(ro, { tabs: r, toolbar: /* @__PURE__ */ v(
|
|
34517
|
-
|
|
34531
|
+
z$,
|
|
34518
34532
|
{
|
|
34519
34533
|
colorScale: t,
|
|
34520
34534
|
setColorScale: i,
|
|
@@ -34522,11 +34536,11 @@ const O$ = A.object({
|
|
|
34522
34536
|
data: n
|
|
34523
34537
|
}
|
|
34524
34538
|
) });
|
|
34525
|
-
},
|
|
34539
|
+
}, z$ = ({ colorScale: n, setColorScale: e, originalComponentProps: t }) => /* @__PURE__ */ v(Ae, { children: [
|
|
34526
34540
|
/* @__PURE__ */ v($1, { colorScale: n, setColorScale: e }),
|
|
34527
|
-
/* @__PURE__ */ v(
|
|
34541
|
+
/* @__PURE__ */ v(F$, { originalComponentProps: t }),
|
|
34528
34542
|
/* @__PURE__ */ v(io, {})
|
|
34529
|
-
] }),
|
|
34543
|
+
] }), F$ = ({
|
|
34530
34544
|
originalComponentProps: n
|
|
34531
34545
|
}) => {
|
|
34532
34546
|
const e = Nt();
|
|
@@ -34543,10 +34557,10 @@ const O$ = A.object({
|
|
|
34543
34557
|
)
|
|
34544
34558
|
] });
|
|
34545
34559
|
};
|
|
34546
|
-
var
|
|
34547
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
34560
|
+
var $$ = Object.defineProperty, j$ = Object.getOwnPropertyDescriptor, js = (n, e, t, i) => {
|
|
34561
|
+
for (var r = i > 1 ? void 0 : i ? j$(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
34548
34562
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
34549
|
-
return i && r &&
|
|
34563
|
+
return i && r && $$(e, t, r), r;
|
|
34550
34564
|
};
|
|
34551
34565
|
let Fo = class extends Mi {
|
|
34552
34566
|
constructor() {
|
|
@@ -34554,7 +34568,7 @@ let Fo = class extends Mi {
|
|
|
34554
34568
|
}
|
|
34555
34569
|
render() {
|
|
34556
34570
|
return /* @__PURE__ */ v(Fd, { value: this.mutationAnnotations, children: /* @__PURE__ */ v(
|
|
34557
|
-
|
|
34571
|
+
L$,
|
|
34558
34572
|
{
|
|
34559
34573
|
lapisFilter: this.lapisFilter,
|
|
34560
34574
|
sequenceType: this.sequenceType,
|
|
@@ -34586,7 +34600,7 @@ js([
|
|
|
34586
34600
|
Fo = js([
|
|
34587
34601
|
kn("gs-wastewater-mutations-over-time")
|
|
34588
34602
|
], Fo);
|
|
34589
|
-
const
|
|
34603
|
+
const B$ = (n) => n.map((e) => ({ label: e.label, value: e.label })), V$ = (n, e, t) => {
|
|
34590
34604
|
const i = /* @__PURE__ */ new Date(), r = { dateFrom: new Date(t), dateTo: i };
|
|
34591
34605
|
if (n === void 0)
|
|
34592
34606
|
return r;
|
|
@@ -34596,18 +34610,18 @@ const j$ = (n) => n.map((e) => ({ label: e.label, value: e.label })), B$ = (n, e
|
|
|
34596
34610
|
dateTo: new Date(o.dateTo ?? i)
|
|
34597
34611
|
} : r;
|
|
34598
34612
|
};
|
|
34599
|
-
function
|
|
34613
|
+
function H$(n, e, t) {
|
|
34600
34614
|
var l;
|
|
34601
|
-
if (n ===
|
|
34615
|
+
if (n === null)
|
|
34602
34616
|
return;
|
|
34603
34617
|
if (typeof n == "string") {
|
|
34604
|
-
const c =
|
|
34618
|
+
const c = B$(t), u = (l = c.find((m) => m.value === n)) == null ? void 0 : l.value;
|
|
34605
34619
|
if (u === void 0)
|
|
34606
34620
|
throw c.length === 0 ? new bi("Invalid value", "There are no selectable options, but value is set.") : new bi(
|
|
34607
34621
|
"Invalid value",
|
|
34608
34622
|
`Invalid value "${n}", It must be one of ${c.map((m) => `'${m.value}'`).join(", ")}`
|
|
34609
34623
|
);
|
|
34610
|
-
const { dateFrom: h, dateTo: f } =
|
|
34624
|
+
const { dateFrom: h, dateTo: f } = V$(u, t, e);
|
|
34611
34625
|
return {
|
|
34612
34626
|
initialSelectedDateRange: u,
|
|
34613
34627
|
initialSelectedDateFrom: h,
|
|
@@ -34837,7 +34851,7 @@ function ni(n) {
|
|
|
34837
34851
|
var Ef = function() {
|
|
34838
34852
|
}, wd = function(n, e, t) {
|
|
34839
34853
|
return t.months[e ? "shorthand" : "longhand"][n];
|
|
34840
|
-
},
|
|
34854
|
+
}, W$ = {
|
|
34841
34855
|
D: Ef,
|
|
34842
34856
|
F: function(n, e, t) {
|
|
34843
34857
|
n.setMonth(t.months.longhand.indexOf(e));
|
|
@@ -35028,7 +35042,7 @@ var Ef = function() {
|
|
|
35028
35042
|
M += hs[E];
|
|
35029
35043
|
var O = new RegExp(M).exec(o);
|
|
35030
35044
|
O && (y = !0) && b[E !== "Y" ? "push" : "unshift"]({
|
|
35031
|
-
fn:
|
|
35045
|
+
fn: W$[E],
|
|
35032
35046
|
val: O[++S]
|
|
35033
35047
|
});
|
|
35034
35048
|
} else D || (M += ".");
|
|
@@ -35050,14 +35064,14 @@ var Ef = function() {
|
|
|
35050
35064
|
function ii(n, e, t) {
|
|
35051
35065
|
return t === void 0 && (t = !0), t !== !1 ? new Date(n.getTime()).setHours(0, 0, 0, 0) - new Date(e.getTime()).setHours(0, 0, 0, 0) : n.getTime() - e.getTime();
|
|
35052
35066
|
}
|
|
35053
|
-
var
|
|
35067
|
+
var Z$ = function(n, e, t) {
|
|
35054
35068
|
return n > Math.min(e, t) && n < Math.max(e, t);
|
|
35055
35069
|
}, Df = function(n, e, t) {
|
|
35056
35070
|
return n * 3600 + e * 60 + t;
|
|
35057
|
-
},
|
|
35071
|
+
}, Y$ = function(n) {
|
|
35058
35072
|
var e = Math.floor(n / 3600), t = (n - e * 3600) / 60;
|
|
35059
35073
|
return [e, t, n - e * 3600 - t * 60];
|
|
35060
|
-
},
|
|
35074
|
+
}, U$ = {
|
|
35061
35075
|
DAY: 864e5
|
|
35062
35076
|
};
|
|
35063
35077
|
function Pf(n) {
|
|
@@ -35101,8 +35115,8 @@ var gn = function() {
|
|
|
35101
35115
|
for (var o = arguments[e], s = 0, l = o.length; s < l; s++, r++)
|
|
35102
35116
|
i[r] = o[s];
|
|
35103
35117
|
return i;
|
|
35104
|
-
},
|
|
35105
|
-
function
|
|
35118
|
+
}, q$ = 300;
|
|
35119
|
+
function G$(n, e) {
|
|
35106
35120
|
var t = {
|
|
35107
35121
|
config: gn(gn({}, fa), Gt.defaultConfig),
|
|
35108
35122
|
l10n: kc
|
|
@@ -35165,7 +35179,7 @@ function q$(n, e) {
|
|
|
35165
35179
|
if (t.config.maxTime !== void 0 && t.config.minTime !== void 0 && t.config.minTime > t.config.maxTime) {
|
|
35166
35180
|
var ue = Df(t.config.minTime.getHours(), t.config.minTime.getMinutes(), t.config.minTime.getSeconds()), ze = Df(t.config.maxTime.getHours(), t.config.maxTime.getMinutes(), t.config.maxTime.getSeconds()), ye = Df(T, P, z);
|
|
35167
35181
|
if (ye > ze && ye < ue) {
|
|
35168
|
-
var $e =
|
|
35182
|
+
var $e = Y$(ue);
|
|
35169
35183
|
T = $e[0], P = $e[1], z = $e[2];
|
|
35170
35184
|
}
|
|
35171
35185
|
} else {
|
|
@@ -35220,7 +35234,7 @@ function q$(n, e) {
|
|
|
35220
35234
|
return;
|
|
35221
35235
|
}
|
|
35222
35236
|
var T = pb(lt, 50);
|
|
35223
|
-
if (t._debouncedChange = pb(w,
|
|
35237
|
+
if (t._debouncedChange = pb(w, q$), t.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && b(t.daysContainer, "mouseover", function(z) {
|
|
35224
35238
|
t.config.mode === "range" && te(ni(z));
|
|
35225
35239
|
}), b(t._input, "keydown", Ge), t.calendarContainer !== void 0 && b(t.calendarContainer, "keydown", Ge), !t.config.inline && !t.config.static && b(window, "resize", T), window.ontouchstart !== void 0 ? b(window.document, "touchstart", q) : b(window.document, "mousedown", q), b(window.document, "focus", q, { capture: !0 }), t.config.clickOpens === !0 && (b(t._input, "focus", t.open), b(t._input, "click", t.open)), t.daysContainer !== void 0 && (b(t.monthNav, "click", Ki), b(t.monthNav, ["keyup", "increment"], y), b(t.daysContainer, "click", Cn)), t.timeContainer !== void 0 && t.minuteElement !== void 0 && t.hourElement !== void 0) {
|
|
35226
35240
|
var P = function(z) {
|
|
@@ -35601,7 +35615,7 @@ function q$(n, e) {
|
|
|
35601
35615
|
}
|
|
35602
35616
|
function te(T, P) {
|
|
35603
35617
|
if (P === void 0 && (P = "flatpickr-day"), !(t.selectedDates.length !== 1 || T && (!T.classList.contains(P) || T.classList.contains("flatpickr-disabled")))) {
|
|
35604
|
-
for (var z = T ? T.dateObj.getTime() : t.days.firstElementChild.dateObj.getTime(), V = t.parseDate(t.selectedDates[0], void 0, !0).getTime(), oe = Math.min(z, t.selectedDates[0].getTime()), ue = Math.max(z, t.selectedDates[0].getTime()), ze = !1, ye = 0, $e = 0, fe = oe; fe < ue; fe +=
|
|
35618
|
+
for (var z = T ? T.dateObj.getTime() : t.days.firstElementChild.dateObj.getTime(), V = t.parseDate(t.selectedDates[0], void 0, !0).getTime(), oe = Math.min(z, t.selectedDates[0].getTime()), ue = Math.max(z, t.selectedDates[0].getTime()), ze = !1, ye = 0, $e = 0, fe = oe; fe < ue; fe += U$.DAY)
|
|
35605
35619
|
ge(new Date(fe), !0) || (ze = ze || fe > oe && fe < ue, fe < V && (!ye || fe > ye) ? ye = fe : fe > V && (!$e || fe < $e) && ($e = fe));
|
|
35606
35620
|
var we = Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+" + t.config.showMonths + ") > ." + P));
|
|
35607
35621
|
we.forEach(function(se) {
|
|
@@ -35615,7 +35629,7 @@ function q$(n, e) {
|
|
|
35615
35629
|
return;
|
|
35616
35630
|
["startRange", "inRange", "endRange", "notAllowed"].forEach(function(Qt) {
|
|
35617
35631
|
se.classList.remove(Qt);
|
|
35618
|
-
}), T !== void 0 && (T.classList.add(z <= t.selectedDates[0].getTime() ? "startRange" : "endRange"), V < z && Wt === V ? se.classList.add("startRange") : V > z && Wt === V && se.classList.add("endRange"), Wt >= ye && ($e === 0 || Wt <= $e) &&
|
|
35632
|
+
}), T !== void 0 && (T.classList.add(z <= t.selectedDates[0].getTime() ? "startRange" : "endRange"), V < z && Wt === V ? se.classList.add("startRange") : V > z && Wt === V && se.classList.add("endRange"), Wt >= ye && ($e === 0 || Wt <= $e) && Z$(Wt, V, z) && se.classList.add("inRange"));
|
|
35619
35633
|
});
|
|
35620
35634
|
}
|
|
35621
35635
|
}
|
|
@@ -35983,7 +35997,7 @@ function pa(n, e) {
|
|
|
35983
35997
|
try {
|
|
35984
35998
|
if (o.getAttribute("data-fp-omit") !== null)
|
|
35985
35999
|
continue;
|
|
35986
|
-
o._flatpickr !== void 0 && (o._flatpickr.destroy(), o._flatpickr = void 0), o._flatpickr =
|
|
36000
|
+
o._flatpickr !== void 0 && (o._flatpickr.destroy(), o._flatpickr = void 0), o._flatpickr = G$(o, e || {}), i.push(o._flatpickr);
|
|
35987
36001
|
} catch (s) {
|
|
35988
36002
|
console.error(s);
|
|
35989
36003
|
}
|
|
@@ -36062,7 +36076,7 @@ function V1() {
|
|
|
36062
36076
|
return /* @__PURE__ */ v(Ae, { children: "×" });
|
|
36063
36077
|
}
|
|
36064
36078
|
const _b = "__undefined__";
|
|
36065
|
-
function
|
|
36079
|
+
function K$({
|
|
36066
36080
|
items: n,
|
|
36067
36081
|
initiallySelectedItem: e,
|
|
36068
36082
|
onChange: t,
|
|
@@ -36104,18 +36118,18 @@ function G$({
|
|
|
36104
36118
|
)
|
|
36105
36119
|
] });
|
|
36106
36120
|
}
|
|
36107
|
-
const Or = "Custom",
|
|
36121
|
+
const Or = "Custom", X$ = A.object({
|
|
36108
36122
|
dateRangeOptions: A.array(EM),
|
|
36109
36123
|
earliestDate: A.string().date(),
|
|
36110
36124
|
value: DM,
|
|
36111
36125
|
lapisDateField: A.string().min(1),
|
|
36112
36126
|
placeholder: A.string().optional()
|
|
36113
|
-
}),
|
|
36127
|
+
}), J$ = X$.extend({
|
|
36114
36128
|
width: A.string()
|
|
36115
|
-
}),
|
|
36129
|
+
}), Q$ = (n) => {
|
|
36116
36130
|
const { width: e, ...t } = n;
|
|
36117
|
-
return /* @__PURE__ */ v($n, { size: { width: e, height: "3rem" }, layout: "horizontal", componentProps: n, schema:
|
|
36118
|
-
},
|
|
36131
|
+
return /* @__PURE__ */ v($n, { size: { width: e, height: "3rem" }, layout: "horizontal", componentProps: n, schema: J$, children: /* @__PURE__ */ v("div", { style: { width: e }, children: /* @__PURE__ */ v(ej, { ...t }) }) });
|
|
36132
|
+
}, ej = ({
|
|
36119
36133
|
dateRangeOptions: n,
|
|
36120
36134
|
earliestDate: e = "1900-01-01",
|
|
36121
36135
|
value: t,
|
|
@@ -36124,7 +36138,7 @@ const Or = "Custom", K$ = A.object({
|
|
|
36124
36138
|
}) => {
|
|
36125
36139
|
var C;
|
|
36126
36140
|
const o = ut(
|
|
36127
|
-
() =>
|
|
36141
|
+
() => H$(t, e, n),
|
|
36128
36142
|
[t, e, n]
|
|
36129
36143
|
), s = it(null), l = Ut(() => o ? o.initialSelectedDateRange ? {
|
|
36130
36144
|
label: o.initialSelectedDateRange,
|
|
@@ -36193,15 +36207,15 @@ const Or = "Custom", K$ = A.object({
|
|
|
36193
36207
|
);
|
|
36194
36208
|
}, D = (O) => {
|
|
36195
36209
|
var N;
|
|
36196
|
-
const F =
|
|
36210
|
+
const F = O === null ? null : O.label === Or ? {
|
|
36197
36211
|
dateFrom: O.dateFrom !== void 0 ? tr(O.dateFrom) : void 0,
|
|
36198
36212
|
dateTo: O.dateTo !== void 0 ? tr(O.dateTo) : void 0
|
|
36199
|
-
} : O
|
|
36213
|
+
} : O.label;
|
|
36200
36214
|
(N = s.current) == null || N.dispatchEvent(new PM(F));
|
|
36201
36215
|
};
|
|
36202
36216
|
return /* @__PURE__ */ v("div", { className: "@container", ref: s, children: /* @__PURE__ */ v("div", { className: "flex min-w-[7.5rem] flex-col @md:flex-row", children: [
|
|
36203
36217
|
/* @__PURE__ */ v("div", { className: "grow", children: /* @__PURE__ */ v(
|
|
36204
|
-
|
|
36218
|
+
K$,
|
|
36205
36219
|
{
|
|
36206
36220
|
items: u.map((O) => O.label),
|
|
36207
36221
|
placeholderText: r,
|
|
@@ -36237,18 +36251,18 @@ const Or = "Custom", K$ = A.object({
|
|
|
36237
36251
|
] })
|
|
36238
36252
|
] }) });
|
|
36239
36253
|
};
|
|
36240
|
-
var
|
|
36241
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
36254
|
+
var tj = Object.defineProperty, nj = Object.getOwnPropertyDescriptor, Bs = (n, e, t, i) => {
|
|
36255
|
+
for (var r = i > 1 ? void 0 : i ? nj(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
36242
36256
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
36243
|
-
return i && r &&
|
|
36257
|
+
return i && r && tj(e, t, r), r;
|
|
36244
36258
|
};
|
|
36245
36259
|
let $o = class extends ki {
|
|
36246
36260
|
constructor() {
|
|
36247
|
-
super(...arguments), this.dateRangeOptions = [], this.earliestDate = "1900-01-01", this.value =
|
|
36261
|
+
super(...arguments), this.dateRangeOptions = [], this.earliestDate = "1900-01-01", this.value = null, this.width = "100%", this.placeholder = void 0, this.lapisDateField = "";
|
|
36248
36262
|
}
|
|
36249
36263
|
render() {
|
|
36250
36264
|
return /* @__PURE__ */ v(
|
|
36251
|
-
|
|
36265
|
+
Q$,
|
|
36252
36266
|
{
|
|
36253
36267
|
dateRangeOptions: this.dateRangeOptions,
|
|
36254
36268
|
earliestDate: this.earliestDate,
|
|
@@ -36269,13 +36283,14 @@ Bs([
|
|
|
36269
36283
|
Bs([
|
|
36270
36284
|
X({
|
|
36271
36285
|
converter: (n) => {
|
|
36272
|
-
if (n
|
|
36273
|
-
|
|
36274
|
-
|
|
36275
|
-
|
|
36276
|
-
|
|
36277
|
-
|
|
36278
|
-
|
|
36286
|
+
if (n === null)
|
|
36287
|
+
return null;
|
|
36288
|
+
try {
|
|
36289
|
+
const e = JSON.parse(n);
|
|
36290
|
+
return typeof e != "object" && typeof e != "string" ? n : e;
|
|
36291
|
+
} catch {
|
|
36292
|
+
return n;
|
|
36293
|
+
}
|
|
36279
36294
|
}
|
|
36280
36295
|
})
|
|
36281
36296
|
], $o.prototype, "value", 2);
|
|
@@ -36291,7 +36306,7 @@ Bs([
|
|
|
36291
36306
|
$o = Bs([
|
|
36292
36307
|
kn("gs-date-range-filter")
|
|
36293
36308
|
], $o);
|
|
36294
|
-
async function
|
|
36309
|
+
async function ij({
|
|
36295
36310
|
fields: n,
|
|
36296
36311
|
lapis: e,
|
|
36297
36312
|
signal: t,
|
|
@@ -36306,19 +36321,19 @@ async function nj({
|
|
|
36306
36321
|
).evaluate(e, t)).content.map((c) => ({
|
|
36307
36322
|
value: n.reduce((u, h) => ({ ...u, [h]: c[h] }), {}),
|
|
36308
36323
|
count: c.count
|
|
36309
|
-
})).reduce((c, u) =>
|
|
36324
|
+
})).reduce((c, u) => rj(
|
|
36310
36325
|
u,
|
|
36311
36326
|
r,
|
|
36312
36327
|
c
|
|
36313
36328
|
), /* @__PURE__ */ new Map())].map(([c, u]) => ({
|
|
36314
36329
|
value: JSON.parse(c),
|
|
36315
36330
|
count: u
|
|
36316
|
-
})).sort(
|
|
36331
|
+
})).sort(oj(n)).map(({ value: c, count: u }) => ({
|
|
36317
36332
|
value: n.reduce((h, f) => ({ ...h, [f]: c[f] ?? void 0 }), {}),
|
|
36318
36333
|
count: u
|
|
36319
36334
|
}));
|
|
36320
36335
|
}
|
|
36321
|
-
function
|
|
36336
|
+
function rj({ value: n, count: e }, t, i) {
|
|
36322
36337
|
const r = new Set(
|
|
36323
36338
|
t.map((o) => ({ ...n, ...o })).map((o) => JSON.stringify(o))
|
|
36324
36339
|
);
|
|
@@ -36326,7 +36341,7 @@ function ij({ value: n, count: e }, t, i) {
|
|
|
36326
36341
|
i.set(o, (i.get(o) ?? 0) + e);
|
|
36327
36342
|
return i;
|
|
36328
36343
|
}
|
|
36329
|
-
function
|
|
36344
|
+
function oj(n) {
|
|
36330
36345
|
return (e, t) => {
|
|
36331
36346
|
for (const i of n) {
|
|
36332
36347
|
const r = e.value[i], o = t.value[i];
|
|
@@ -36395,7 +36410,7 @@ var q1 = Na;
|
|
|
36395
36410
|
function Vp(n, e) {
|
|
36396
36411
|
this.props = n, this.context = e;
|
|
36397
36412
|
}
|
|
36398
|
-
function
|
|
36413
|
+
function sj(n, e) {
|
|
36399
36414
|
function t(r) {
|
|
36400
36415
|
var o = this.props.ref, s = o == r.ref;
|
|
36401
36416
|
return !s && o && (o.call ? o(null) : o.current = null), e ? !e(this.props, r) || !s : Bp(this.props, r);
|
|
@@ -36412,28 +36427,28 @@ var vb = Ze.__b;
|
|
|
36412
36427
|
Ze.__b = function(n) {
|
|
36413
36428
|
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), vb && vb(n);
|
|
36414
36429
|
};
|
|
36415
|
-
var
|
|
36416
|
-
function
|
|
36430
|
+
var aj = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
36431
|
+
function lj(n) {
|
|
36417
36432
|
function e(t) {
|
|
36418
36433
|
var i = H1({}, t);
|
|
36419
36434
|
return delete i.ref, n(i, t.ref || null);
|
|
36420
36435
|
}
|
|
36421
|
-
return e.$$typeof =
|
|
36436
|
+
return e.$$typeof = aj, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", e;
|
|
36422
36437
|
}
|
|
36423
36438
|
var yb = function(n, e) {
|
|
36424
36439
|
return n == null ? null : Yr(Yr(n).map(e));
|
|
36425
|
-
},
|
|
36440
|
+
}, cj = { map: yb, forEach: yb, count: function(n) {
|
|
36426
36441
|
return n ? Yr(n).length : 0;
|
|
36427
36442
|
}, only: function(n) {
|
|
36428
36443
|
var e = Yr(n);
|
|
36429
36444
|
if (e.length !== 1) throw "Children.only";
|
|
36430
36445
|
return e[0];
|
|
36431
|
-
}, toArray: Yr },
|
|
36446
|
+
}, toArray: Yr }, uj = Ze.__e;
|
|
36432
36447
|
Ze.__e = function(n, e, t, i) {
|
|
36433
36448
|
if (n.then) {
|
|
36434
36449
|
for (var r, o = e; o = o.__; ) if ((r = o.__c) && r.__c) return e.__e == null && (e.__e = t.__e, e.__k = t.__k), r.__c(n, e);
|
|
36435
36450
|
}
|
|
36436
|
-
|
|
36451
|
+
uj(n, e, t, i);
|
|
36437
36452
|
};
|
|
36438
36453
|
var bb = Ze.unmount;
|
|
36439
36454
|
function G1(n, e, t) {
|
|
@@ -36455,7 +36470,7 @@ function X1(n) {
|
|
|
36455
36470
|
var e = n.__.__c;
|
|
36456
36471
|
return e && e.__a && e.__a(n);
|
|
36457
36472
|
}
|
|
36458
|
-
function
|
|
36473
|
+
function dj(n) {
|
|
36459
36474
|
var e, t, i;
|
|
36460
36475
|
function r(o) {
|
|
36461
36476
|
if (e || (e = n()).then(function(s) {
|
|
@@ -36512,12 +36527,12 @@ var xb = function(n, e, t) {
|
|
|
36512
36527
|
n.i = t = t[2];
|
|
36513
36528
|
}
|
|
36514
36529
|
};
|
|
36515
|
-
function
|
|
36530
|
+
function hj(n) {
|
|
36516
36531
|
return this.getChildContext = function() {
|
|
36517
36532
|
return n.context;
|
|
36518
36533
|
}, n.children;
|
|
36519
36534
|
}
|
|
36520
|
-
function
|
|
36535
|
+
function fj(n) {
|
|
36521
36536
|
var e = this, t = n.h;
|
|
36522
36537
|
e.componentWillUnmount = function() {
|
|
36523
36538
|
xa(null, e.v), e.v = null, e.h = null;
|
|
@@ -36529,10 +36544,10 @@ function hj(n) {
|
|
|
36529
36544
|
this.childNodes.push(i), e.h.insertBefore(i, r);
|
|
36530
36545
|
}, removeChild: function(i) {
|
|
36531
36546
|
this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), e.h.removeChild(i);
|
|
36532
|
-
} }), xa(Kr(
|
|
36547
|
+
} }), xa(Kr(hj, { context: e.context }, n.__v), e.v);
|
|
36533
36548
|
}
|
|
36534
|
-
function
|
|
36535
|
-
var t = Kr(
|
|
36549
|
+
function pj(n, e) {
|
|
36550
|
+
var t = Kr(fj, { __v: n, h: e });
|
|
36536
36551
|
return t.containerInfo = e, t;
|
|
36537
36552
|
}
|
|
36538
36553
|
(El.prototype = new rr()).__a = function(n) {
|
|
@@ -36555,13 +36570,13 @@ function fj(n, e) {
|
|
|
36555
36570
|
xb(n, t, e);
|
|
36556
36571
|
});
|
|
36557
36572
|
};
|
|
36558
|
-
var J1 = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
36573
|
+
var J1 = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, mj = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, gj = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, _j = /[A-Z0-9]/g, vj = typeof document < "u", yj = function(n) {
|
|
36559
36574
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n);
|
|
36560
36575
|
};
|
|
36561
|
-
function
|
|
36576
|
+
function bj(n, e, t) {
|
|
36562
36577
|
return e.__k == null && (e.textContent = ""), xa(n, e), typeof t == "function" && t(), n ? n.__c : null;
|
|
36563
36578
|
}
|
|
36564
|
-
function
|
|
36579
|
+
function xj(n, e, t) {
|
|
36565
36580
|
return R0(n, e), typeof t == "function" && t(), n ? n.__c : null;
|
|
36566
36581
|
}
|
|
36567
36582
|
rr.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) {
|
|
@@ -36572,18 +36587,18 @@ rr.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
36572
36587
|
} });
|
|
36573
36588
|
});
|
|
36574
36589
|
var wb = Ze.event;
|
|
36575
|
-
function xj() {
|
|
36576
|
-
}
|
|
36577
36590
|
function wj() {
|
|
36578
|
-
return this.cancelBubble;
|
|
36579
36591
|
}
|
|
36580
36592
|
function Sj() {
|
|
36593
|
+
return this.cancelBubble;
|
|
36594
|
+
}
|
|
36595
|
+
function kj() {
|
|
36581
36596
|
return this.defaultPrevented;
|
|
36582
36597
|
}
|
|
36583
36598
|
Ze.event = function(n) {
|
|
36584
|
-
return wb && (n = wb(n)), n.persist =
|
|
36599
|
+
return wb && (n = wb(n)), n.persist = wj, n.isPropagationStopped = Sj, n.isDefaultPrevented = kj, n.nativeEvent = n;
|
|
36585
36600
|
};
|
|
36586
|
-
var eg,
|
|
36601
|
+
var eg, Mj = { enumerable: !1, configurable: !0, get: function() {
|
|
36587
36602
|
return this.class;
|
|
36588
36603
|
} }, Sb = Ze.vnode;
|
|
36589
36604
|
Ze.vnode = function(n) {
|
|
@@ -36591,16 +36606,16 @@ Ze.vnode = function(n) {
|
|
|
36591
36606
|
var t = e.props, i = e.type, r = {}, o = i.indexOf("-") === -1;
|
|
36592
36607
|
for (var s in t) {
|
|
36593
36608
|
var l = t[s];
|
|
36594
|
-
if (!(s === "value" && "defaultValue" in t && l == null ||
|
|
36609
|
+
if (!(s === "value" && "defaultValue" in t && l == null || vj && s === "children" && i === "noscript" || s === "class" || s === "className")) {
|
|
36595
36610
|
var c = s.toLowerCase();
|
|
36596
|
-
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? s = "ondblclick" : c !== "onchange" || i !== "input" && i !== "textarea" ||
|
|
36611
|
+
s === "defaultValue" && "value" in t && t.value == null ? s = "value" : s === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? s = "ondblclick" : c !== "onchange" || i !== "input" && i !== "textarea" || yj(t.type) ? c === "onfocus" ? s = "onfocusin" : c === "onblur" ? s = "onfocusout" : gj.test(s) && (s = c) : c = s = "oninput" : o && mj.test(s) ? s = s.replace(_j, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && r[s = c] && (s = "oninputCapture"), r[s] = l;
|
|
36597
36612
|
}
|
|
36598
36613
|
}
|
|
36599
36614
|
i == "select" && r.multiple && Array.isArray(r.value) && (r.value = Yr(t.children).forEach(function(u) {
|
|
36600
36615
|
u.props.selected = r.value.indexOf(u.props.value) != -1;
|
|
36601
36616
|
})), i == "select" && r.defaultValue != null && (r.value = Yr(t.children).forEach(function(u) {
|
|
36602
36617
|
u.props.selected = r.multiple ? r.defaultValue.indexOf(u.props.value) != -1 : r.defaultValue == u.props.value;
|
|
36603
|
-
})), t.class && !t.className ? (r.class = t.class, Object.defineProperty(r, "className",
|
|
36618
|
+
})), t.class && !t.className ? (r.class = t.class, Object.defineProperty(r, "className", Mj)) : (t.className && !t.class || t.class && t.className) && (r.class = r.className = t.className), e.props = r;
|
|
36604
36619
|
}(n), n.$$typeof = J1, Sb && Sb(n);
|
|
36605
36620
|
};
|
|
36606
36621
|
var kb = Ze.__r;
|
|
@@ -36613,35 +36628,35 @@ Ze.diffed = function(n) {
|
|
|
36613
36628
|
var e = n.props, t = n.__e;
|
|
36614
36629
|
t != null && n.type === "textarea" && "value" in e && e.value !== t.value && (t.value = e.value == null ? "" : e.value), eg = null;
|
|
36615
36630
|
};
|
|
36616
|
-
var
|
|
36631
|
+
var Cj = { ReactCurrentDispatcher: { current: { readContext: function(n) {
|
|
36617
36632
|
return eg.__n[n.__c].props.value;
|
|
36618
36633
|
}, useCallback: Ut, useContext: di, useDebugValue: $0, useDeferredValue: Y1, useEffect: at, useId: j0, useImperativeHandle: F0, useInsertionEffect: q1, useLayoutEffect: Na, useMemo: ut, useReducer: zd, useRef: it, useState: We, useSyncExternalStore: W1, useTransition: U1 } } };
|
|
36619
|
-
function
|
|
36634
|
+
function Tj(n) {
|
|
36620
36635
|
return Kr.bind(null, n);
|
|
36621
36636
|
}
|
|
36622
36637
|
function mh(n) {
|
|
36623
36638
|
return !!n && n.$$typeof === J1;
|
|
36624
36639
|
}
|
|
36625
|
-
function
|
|
36640
|
+
function Ej(n) {
|
|
36626
36641
|
return mh(n) && n.type === Ae;
|
|
36627
36642
|
}
|
|
36628
|
-
function
|
|
36643
|
+
function Dj(n) {
|
|
36629
36644
|
return !!n && !!n.displayName && (typeof n.displayName == "string" || n.displayName instanceof String) && n.displayName.startsWith("Memo(");
|
|
36630
36645
|
}
|
|
36631
|
-
function
|
|
36646
|
+
function Pj(n) {
|
|
36632
36647
|
return mh(n) ? $C.apply(null, arguments) : n;
|
|
36633
36648
|
}
|
|
36634
|
-
function
|
|
36649
|
+
function Aj(n) {
|
|
36635
36650
|
return !!n.__k && (xa(null, n), !0);
|
|
36636
36651
|
}
|
|
36637
|
-
function
|
|
36652
|
+
function Oj(n) {
|
|
36638
36653
|
return n && (n.base || n.nodeType === 1 && n) || null;
|
|
36639
36654
|
}
|
|
36640
|
-
var
|
|
36655
|
+
var Ij = function(n, e) {
|
|
36641
36656
|
return n(e);
|
|
36642
|
-
},
|
|
36657
|
+
}, Lj = function(n, e) {
|
|
36643
36658
|
return n(e);
|
|
36644
|
-
},
|
|
36659
|
+
}, Rj = Ae, Nj = mh, Sd = { useState: We, useId: j0, useReducer: zd, useEffect: at, useLayoutEffect: Na, useInsertionEffect: q1, useTransition: U1, useDeferredValue: Y1, useSyncExternalStore: W1, startTransition: Z1, useRef: it, useImperativeHandle: F0, useMemo: ut, useCallback: Ut, useContext: di, useDebugValue: $0, version: "18.3.1", Children: cj, render: bj, hydrate: xj, unmountComponentAtNode: Aj, createPortal: pj, createElement: Kr, createContext: Rd, createFactory: Tj, cloneElement: Pj, createRef: LC, Fragment: Ae, isValidElement: mh, isElement: Nj, isFragment: Ej, isMemo: Dj, findDOMNode: Oj, Component: rr, PureComponent: Vp, memo: sj, forwardRef: lj, flushSync: Lj, unstable_batchedUpdates: Ij, StrictMode: Rj, Suspense: Wu, SuspenseList: El, lazy: dj, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Cj }, ku = { exports: {} }, dt = {};
|
|
36645
36660
|
/**
|
|
36646
36661
|
* @license React
|
|
36647
36662
|
* react-is.production.min.js
|
|
@@ -36652,7 +36667,7 @@ var Oj = function(n, e) {
|
|
|
36652
36667
|
* LICENSE file in the root directory of this source tree.
|
|
36653
36668
|
*/
|
|
36654
36669
|
var Cb;
|
|
36655
|
-
function
|
|
36670
|
+
function zj() {
|
|
36656
36671
|
if (Cb) return dt;
|
|
36657
36672
|
Cb = 1;
|
|
36658
36673
|
var n = Symbol.for("react.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y;
|
|
@@ -36730,7 +36745,7 @@ var ht = {};
|
|
|
36730
36745
|
* LICENSE file in the root directory of this source tree.
|
|
36731
36746
|
*/
|
|
36732
36747
|
var Tb;
|
|
36733
|
-
function
|
|
36748
|
+
function Fj() {
|
|
36734
36749
|
return Tb || (Tb = 1, process.env.NODE_ENV !== "production" && function() {
|
|
36735
36750
|
var n = Symbol.for("react.element"), e = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = !1, b = !1, w = !1, S = !1, M = !1, E;
|
|
36736
36751
|
E = Symbol.for("react.module.reference");
|
|
@@ -36820,10 +36835,10 @@ function zj() {
|
|
|
36820
36835
|
}()), ht;
|
|
36821
36836
|
}
|
|
36822
36837
|
var Eb;
|
|
36823
|
-
function
|
|
36824
|
-
return Eb || (Eb = 1, process.env.NODE_ENV === "production" ? ku.exports =
|
|
36838
|
+
function $j() {
|
|
36839
|
+
return Eb || (Eb = 1, process.env.NODE_ENV === "production" ? ku.exports = zj() : ku.exports = Fj()), ku.exports;
|
|
36825
36840
|
}
|
|
36826
|
-
|
|
36841
|
+
$j();
|
|
36827
36842
|
const Db = (n) => typeof n == "object" && n != null && n.nodeType === 1, Pb = (n, e) => (!e || n !== "hidden") && n !== "visible" && n !== "clip", Of = (n, e) => {
|
|
36828
36843
|
if (n.clientHeight < n.scrollHeight || n.clientWidth < n.scrollWidth) {
|
|
36829
36844
|
const t = getComputedStyle(n, null);
|
|
@@ -36840,10 +36855,10 @@ const Db = (n) => typeof n == "object" && n != null && n.nodeType === 1, Pb = (n
|
|
|
36840
36855
|
})(n);
|
|
36841
36856
|
}
|
|
36842
36857
|
return !1;
|
|
36843
|
-
}, Mu = (n, e, t, i, r, o, s, l) => o < n && s > e || o > n && s < e ? 0 : o <= n && l <= t || s >= e && l >= t ? o - n - i : s > e && l < t || o < n && l > t ? s - e + r : 0,
|
|
36858
|
+
}, Mu = (n, e, t, i, r, o, s, l) => o < n && s > e || o > n && s < e ? 0 : o <= n && l <= t || s >= e && l >= t ? o - n - i : s > e && l < t || o < n && l > t ? s - e + r : 0, jj = (n) => {
|
|
36844
36859
|
const e = n.parentElement;
|
|
36845
36860
|
return e ?? (n.getRootNode().host || null);
|
|
36846
|
-
},
|
|
36861
|
+
}, Bj = (n, e) => {
|
|
36847
36862
|
var t, i, r, o;
|
|
36848
36863
|
if (typeof document > "u") return [];
|
|
36849
36864
|
const { inline: s, boundary: l, skipOverflowHiddenElements: c } = e, u = typeof l == "function" ? l : (ae) => ae !== l;
|
|
@@ -36851,7 +36866,7 @@ const Db = (n) => typeof n == "object" && n != null && n.nodeType === 1, Pb = (n
|
|
|
36851
36866
|
const h = document.scrollingElement || document.documentElement, f = [];
|
|
36852
36867
|
let m = n;
|
|
36853
36868
|
for (; Db(m) && u(m); ) {
|
|
36854
|
-
if (m =
|
|
36869
|
+
if (m = jj(m), m === h) {
|
|
36855
36870
|
f.push(m);
|
|
36856
36871
|
break;
|
|
36857
36872
|
}
|
|
@@ -36889,7 +36904,7 @@ var Cu = { exports: {} }, Tu = { exports: {} }, ft = {};
|
|
|
36889
36904
|
* LICENSE file in the root directory of this source tree.
|
|
36890
36905
|
*/
|
|
36891
36906
|
var Ab;
|
|
36892
|
-
function
|
|
36907
|
+
function Vj() {
|
|
36893
36908
|
if (Ab) return ft;
|
|
36894
36909
|
Ab = 1;
|
|
36895
36910
|
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, s = n ? Symbol.for("react.provider") : 60109, l = n ? Symbol.for("react.context") : 60110, c = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, h = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, m = n ? Symbol.for("react.suspense_list") : 60120, g = n ? Symbol.for("react.memo") : 60115, y = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, w = n ? Symbol.for("react.fundamental") : 60117, S = n ? Symbol.for("react.responder") : 60118, M = n ? Symbol.for("react.scope") : 60119;
|
|
@@ -36964,7 +36979,7 @@ var pt = {};
|
|
|
36964
36979
|
* LICENSE file in the root directory of this source tree.
|
|
36965
36980
|
*/
|
|
36966
36981
|
var Ob;
|
|
36967
|
-
function
|
|
36982
|
+
function Hj() {
|
|
36968
36983
|
return Ob || (Ob = 1, process.env.NODE_ENV !== "production" && function() {
|
|
36969
36984
|
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, i = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, o = n ? Symbol.for("react.profiler") : 60114, s = n ? Symbol.for("react.provider") : 60109, l = n ? Symbol.for("react.context") : 60110, c = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, h = n ? Symbol.for("react.forward_ref") : 60112, f = n ? Symbol.for("react.suspense") : 60113, m = n ? Symbol.for("react.suspense_list") : 60120, g = n ? Symbol.for("react.memo") : 60115, y = n ? Symbol.for("react.lazy") : 60116, b = n ? Symbol.for("react.block") : 60121, w = n ? Symbol.for("react.fundamental") : 60117, S = n ? Symbol.for("react.responder") : 60118, M = n ? Symbol.for("react.scope") : 60119;
|
|
36970
36985
|
function E(te) {
|
|
@@ -37048,7 +37063,7 @@ function Vj() {
|
|
|
37048
37063
|
}
|
|
37049
37064
|
var Ib;
|
|
37050
37065
|
function Q1() {
|
|
37051
|
-
return Ib || (Ib = 1, process.env.NODE_ENV === "production" ? Tu.exports =
|
|
37066
|
+
return Ib || (Ib = 1, process.env.NODE_ENV === "production" ? Tu.exports = Vj() : Tu.exports = Hj()), Tu.exports;
|
|
37052
37067
|
}
|
|
37053
37068
|
/*
|
|
37054
37069
|
object-assign
|
|
@@ -37056,7 +37071,7 @@ object-assign
|
|
|
37056
37071
|
@license MIT
|
|
37057
37072
|
*/
|
|
37058
37073
|
var If, Lb;
|
|
37059
|
-
function
|
|
37074
|
+
function Wj() {
|
|
37060
37075
|
if (Lb) return If;
|
|
37061
37076
|
Lb = 1;
|
|
37062
37077
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
@@ -37113,7 +37128,7 @@ function eS() {
|
|
|
37113
37128
|
return Nb || (Nb = 1, Rf = Function.call.bind(Object.prototype.hasOwnProperty)), Rf;
|
|
37114
37129
|
}
|
|
37115
37130
|
var Nf, zb;
|
|
37116
|
-
function
|
|
37131
|
+
function Zj() {
|
|
37117
37132
|
if (zb) return Nf;
|
|
37118
37133
|
zb = 1;
|
|
37119
37134
|
var n = function() {
|
|
@@ -37162,10 +37177,10 @@ function Wj() {
|
|
|
37162
37177
|
}, Nf = r, Nf;
|
|
37163
37178
|
}
|
|
37164
37179
|
var zf, Fb;
|
|
37165
|
-
function
|
|
37180
|
+
function Yj() {
|
|
37166
37181
|
if (Fb) return zf;
|
|
37167
37182
|
Fb = 1;
|
|
37168
|
-
var n = Q1(), e =
|
|
37183
|
+
var n = Q1(), e = Wj(), t = /* @__PURE__ */ tg(), i = /* @__PURE__ */ eS(), r = /* @__PURE__ */ Zj(), o = function() {
|
|
37169
37184
|
};
|
|
37170
37185
|
process.env.NODE_ENV !== "production" && (o = function(l) {
|
|
37171
37186
|
var c = "Warning: " + l;
|
|
@@ -37483,7 +37498,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
37483
37498
|
}, zf;
|
|
37484
37499
|
}
|
|
37485
37500
|
var Ff, $b;
|
|
37486
|
-
function
|
|
37501
|
+
function Uj() {
|
|
37487
37502
|
if ($b) return Ff;
|
|
37488
37503
|
$b = 1;
|
|
37489
37504
|
var n = /* @__PURE__ */ tg();
|
|
@@ -37531,17 +37546,17 @@ function Yj() {
|
|
|
37531
37546
|
}, Ff;
|
|
37532
37547
|
}
|
|
37533
37548
|
var jb;
|
|
37534
|
-
function
|
|
37549
|
+
function qj() {
|
|
37535
37550
|
if (jb) return Cu.exports;
|
|
37536
37551
|
if (jb = 1, process.env.NODE_ENV !== "production") {
|
|
37537
37552
|
var n = Q1(), e = !0;
|
|
37538
|
-
Cu.exports = /* @__PURE__ */
|
|
37553
|
+
Cu.exports = /* @__PURE__ */ Yj()(n.isElement, e);
|
|
37539
37554
|
} else
|
|
37540
|
-
Cu.exports = /* @__PURE__ */
|
|
37555
|
+
Cu.exports = /* @__PURE__ */ Uj()();
|
|
37541
37556
|
return Cu.exports;
|
|
37542
37557
|
}
|
|
37543
|
-
var
|
|
37544
|
-
const De = /* @__PURE__ */
|
|
37558
|
+
var Gj = /* @__PURE__ */ qj();
|
|
37559
|
+
const De = /* @__PURE__ */ BF(Gj);
|
|
37545
37560
|
var Ia = function() {
|
|
37546
37561
|
return Ia = Object.assign || function(e) {
|
|
37547
37562
|
for (var t, i = 1, r = arguments.length; i < r; i++) {
|
|
@@ -37551,12 +37566,12 @@ var Ia = function() {
|
|
|
37551
37566
|
return e;
|
|
37552
37567
|
}, Ia.apply(this, arguments);
|
|
37553
37568
|
};
|
|
37554
|
-
var
|
|
37569
|
+
var Kj = 0;
|
|
37555
37570
|
function Lc() {
|
|
37556
37571
|
}
|
|
37557
|
-
function
|
|
37572
|
+
function Xj(n, e) {
|
|
37558
37573
|
if (n) {
|
|
37559
|
-
var t =
|
|
37574
|
+
var t = Bj(n, {
|
|
37560
37575
|
boundary: e
|
|
37561
37576
|
});
|
|
37562
37577
|
t.forEach(function(i) {
|
|
@@ -37603,8 +37618,8 @@ function Eu() {
|
|
|
37603
37618
|
});
|
|
37604
37619
|
};
|
|
37605
37620
|
}
|
|
37606
|
-
function
|
|
37607
|
-
return String(
|
|
37621
|
+
function Jj() {
|
|
37622
|
+
return String(Kj++);
|
|
37608
37623
|
}
|
|
37609
37624
|
function Hp(n, e) {
|
|
37610
37625
|
return !n || !e ? n : Object.keys(n).reduce(function(t, i) {
|
|
@@ -37614,7 +37629,7 @@ function Hp(n, e) {
|
|
|
37614
37629
|
function nS(n, e) {
|
|
37615
37630
|
return n[e] !== void 0;
|
|
37616
37631
|
}
|
|
37617
|
-
function
|
|
37632
|
+
function Qj(n) {
|
|
37618
37633
|
var e = n.key, t = n.keyCode;
|
|
37619
37634
|
return t >= 37 && t <= 40 && e.indexOf("Arrow") !== 0 ? "Arrow" + e : e;
|
|
37620
37635
|
}
|
|
@@ -37654,7 +37669,7 @@ process.env.NODE_ENV !== "production" && (iS = function(e, t, i) {
|
|
|
37654
37669
|
t[o] !== void 0 && i[o] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + o + '" to be uncontrolled. ' + r) : t[o] === void 0 && i[o] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + o + '" to be controlled. ' + r);
|
|
37655
37670
|
});
|
|
37656
37671
|
});
|
|
37657
|
-
var
|
|
37672
|
+
var e3 = tS(function(n) {
|
|
37658
37673
|
rS(n).textContent = "";
|
|
37659
37674
|
}, 500);
|
|
37660
37675
|
function rS(n) {
|
|
@@ -37670,13 +37685,13 @@ function rS(n) {
|
|
|
37670
37685
|
width: "1px"
|
|
37671
37686
|
}), n.body.appendChild(e), e);
|
|
37672
37687
|
}
|
|
37673
|
-
function
|
|
37688
|
+
function t3(n, e) {
|
|
37674
37689
|
if (!(!n || !e)) {
|
|
37675
37690
|
var t = rS(e);
|
|
37676
|
-
t.textContent = n,
|
|
37691
|
+
t.textContent = n, e3(e);
|
|
37677
37692
|
}
|
|
37678
37693
|
}
|
|
37679
|
-
function
|
|
37694
|
+
function n3(n) {
|
|
37680
37695
|
var e = n == null ? void 0 : n.getElementById("a11y-status-message");
|
|
37681
37696
|
e && e.remove();
|
|
37682
37697
|
}
|
|
@@ -37703,26 +37718,26 @@ var oS = {
|
|
|
37703
37718
|
selectedItem: null,
|
|
37704
37719
|
inputValue: ""
|
|
37705
37720
|
};
|
|
37706
|
-
function
|
|
37721
|
+
function i3(n, e, t) {
|
|
37707
37722
|
var i = n.props, r = n.type, o = {};
|
|
37708
37723
|
Object.keys(e).forEach(function(s) {
|
|
37709
|
-
|
|
37724
|
+
r3(s, n, e, t), t[s] !== e[s] && (o[s] = t[s]);
|
|
37710
37725
|
}), i.onStateChange && Object.keys(o).length && i.onStateChange(At({
|
|
37711
37726
|
type: r
|
|
37712
37727
|
}, o));
|
|
37713
37728
|
}
|
|
37714
|
-
function
|
|
37729
|
+
function r3(n, e, t, i) {
|
|
37715
37730
|
var r = e.props, o = e.type, s = "on" + ng(n) + "Change";
|
|
37716
37731
|
r[s] && i[n] !== void 0 && i[n] !== t[n] && r[s](At({
|
|
37717
37732
|
type: o
|
|
37718
37733
|
}, i));
|
|
37719
37734
|
}
|
|
37720
|
-
function
|
|
37735
|
+
function o3(n, e) {
|
|
37721
37736
|
return e.changes;
|
|
37722
37737
|
}
|
|
37723
37738
|
var Hb = tS(function(n, e) {
|
|
37724
|
-
|
|
37725
|
-
}, 200),
|
|
37739
|
+
t3(n, e);
|
|
37740
|
+
}, 200), s3 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Na : at, a3 = "useId" in Sd ? function(e) {
|
|
37726
37741
|
var t = e.id, i = e.labelId, r = e.menuId, o = e.getItemId, s = e.toggleButtonId, l = e.inputId, c = "downshift-" + Sd.useId();
|
|
37727
37742
|
t || (t = c);
|
|
37728
37743
|
var u = it({
|
|
@@ -37736,7 +37751,7 @@ var Hb = tS(function(n, e) {
|
|
|
37736
37751
|
});
|
|
37737
37752
|
return u.current;
|
|
37738
37753
|
} : function(e) {
|
|
37739
|
-
var t = e.id, i = t === void 0 ? "downshift-" +
|
|
37754
|
+
var t = e.id, i = t === void 0 ? "downshift-" + Jj() : t, r = e.labelId, o = e.menuId, s = e.getItemId, l = e.toggleButtonId, c = e.inputId, u = it({
|
|
37740
37755
|
labelId: r || i + "-label",
|
|
37741
37756
|
menuId: o || i + "-menu",
|
|
37742
37757
|
getItemId: s || function(h) {
|
|
@@ -37747,7 +37762,7 @@ var Hb = tS(function(n, e) {
|
|
|
37747
37762
|
});
|
|
37748
37763
|
return u.current;
|
|
37749
37764
|
};
|
|
37750
|
-
function
|
|
37765
|
+
function l3(n, e, t, i) {
|
|
37751
37766
|
var r, o;
|
|
37752
37767
|
if (n === void 0) {
|
|
37753
37768
|
if (e === void 0)
|
|
@@ -37764,7 +37779,7 @@ function sS(n) {
|
|
|
37764
37779
|
var e = it(n);
|
|
37765
37780
|
return e.current = n, e;
|
|
37766
37781
|
}
|
|
37767
|
-
function
|
|
37782
|
+
function c3(n, e, t, i) {
|
|
37768
37783
|
var r = it(), o = it(), s = Ut(function(g, y) {
|
|
37769
37784
|
o.current = y, g = Hp(g, y.props);
|
|
37770
37785
|
var b = n(g, y), w = y.props.stateReducer(g, At({}, y, {
|
|
@@ -37778,7 +37793,7 @@ function l3(n, e, t, i) {
|
|
|
37778
37793
|
}, [h]), m = o.current;
|
|
37779
37794
|
return at(function() {
|
|
37780
37795
|
var g = Hp(r.current, m == null ? void 0 : m.props), y = m && r.current && !i(g, c);
|
|
37781
|
-
y &&
|
|
37796
|
+
y && i3(m, g, c), r.current = c;
|
|
37782
37797
|
}, [c, m, i]), [c, f];
|
|
37783
37798
|
}
|
|
37784
37799
|
var Zl = {
|
|
@@ -37788,8 +37803,8 @@ var Zl = {
|
|
|
37788
37803
|
itemToKey: function(e) {
|
|
37789
37804
|
return e;
|
|
37790
37805
|
},
|
|
37791
|
-
stateReducer:
|
|
37792
|
-
scrollIntoView:
|
|
37806
|
+
stateReducer: o3,
|
|
37807
|
+
scrollIntoView: Xj,
|
|
37793
37808
|
environment: (
|
|
37794
37809
|
/* istanbul ignore next (ssr) */
|
|
37795
37810
|
typeof window > "u" ? void 0 : window
|
|
@@ -37808,8 +37823,8 @@ function Yl(n, e, t) {
|
|
|
37808
37823
|
var r = n["initial" + ng(e)];
|
|
37809
37824
|
return r !== void 0 ? r : Co(n, e, t);
|
|
37810
37825
|
}
|
|
37811
|
-
function
|
|
37812
|
-
var e = Yl(n, "selectedItem"), t = Yl(n, "isOpen"), i =
|
|
37826
|
+
function u3(n) {
|
|
37827
|
+
var e = Yl(n, "selectedItem"), t = Yl(n, "isOpen"), i = m3(n), r = Yl(n, "inputValue");
|
|
37813
37828
|
return {
|
|
37814
37829
|
highlightedIndex: i < 0 && e && t ? n.items.findIndex(function(o) {
|
|
37815
37830
|
return n.itemToKey(o) === n.itemToKey(e);
|
|
@@ -37825,7 +37840,7 @@ function Ul(n, e, t) {
|
|
|
37825
37840
|
return l(c) === l(h);
|
|
37826
37841
|
}) : t < 0 && !s(i[i.length - 1], i.length - 1) ? i.length - 1 : t > 0 && !s(i[0], 0) ? 0 : -1;
|
|
37827
37842
|
}
|
|
37828
|
-
function
|
|
37843
|
+
function d3(n, e, t) {
|
|
37829
37844
|
var i = it({
|
|
37830
37845
|
isMouseDown: !1,
|
|
37831
37846
|
isTouchMove: !1,
|
|
@@ -37886,7 +37901,7 @@ process.env.NODE_ENV !== "production" && (aS = function() {
|
|
|
37886
37901
|
}, []);
|
|
37887
37902
|
return o;
|
|
37888
37903
|
});
|
|
37889
|
-
function
|
|
37904
|
+
function h3(n, e, t, i) {
|
|
37890
37905
|
i === void 0 && (i = {});
|
|
37891
37906
|
var r = i.document, o = gh();
|
|
37892
37907
|
at(function() {
|
|
@@ -37896,13 +37911,13 @@ function d3(n, e, t, i) {
|
|
|
37896
37911
|
}
|
|
37897
37912
|
}, t), at(function() {
|
|
37898
37913
|
return function() {
|
|
37899
|
-
Hb.cancel(),
|
|
37914
|
+
Hb.cancel(), n3(r);
|
|
37900
37915
|
};
|
|
37901
37916
|
}, [r]);
|
|
37902
37917
|
}
|
|
37903
|
-
function
|
|
37918
|
+
function f3(n) {
|
|
37904
37919
|
var e = n.highlightedIndex, t = n.isOpen, i = n.itemRefs, r = n.getItemNodeFromIndex, o = n.menuElement, s = n.scrollIntoView, l = it(!0);
|
|
37905
|
-
return
|
|
37920
|
+
return s3(function() {
|
|
37906
37921
|
e < 0 || !t || !Object.keys(i.current).length || (l.current === !1 ? l.current = !0 : s(r(e), o));
|
|
37907
37922
|
}, [e]), l;
|
|
37908
37923
|
}
|
|
@@ -37928,7 +37943,7 @@ function Wb(n, e, t) {
|
|
|
37928
37943
|
inputValue: n.itemToString(n.items[e])
|
|
37929
37944
|
}));
|
|
37930
37945
|
}
|
|
37931
|
-
function
|
|
37946
|
+
function p3(n, e) {
|
|
37932
37947
|
return n.isOpen === e.isOpen && n.inputValue === e.inputValue && n.highlightedIndex === e.highlightedIndex && n.selectedItem === e.selectedItem;
|
|
37933
37948
|
}
|
|
37934
37949
|
function gh() {
|
|
@@ -37943,7 +37958,7 @@ function Wp(n) {
|
|
|
37943
37958
|
var e = Co(n, "highlightedIndex");
|
|
37944
37959
|
return e > -1 && n.isItemDisabled(n.items[e], e) ? -1 : e;
|
|
37945
37960
|
}
|
|
37946
|
-
function
|
|
37961
|
+
function m3(n) {
|
|
37947
37962
|
var e = Yl(n, "highlightedIndex");
|
|
37948
37963
|
return e > -1 && n.isItemDisabled(n.items[e], e) ? -1 : e;
|
|
37949
37964
|
}
|
|
@@ -37984,7 +37999,7 @@ var Zu = {
|
|
|
37984
37999
|
onIsOpenChange: De.func,
|
|
37985
38000
|
scrollIntoView: De.func
|
|
37986
38001
|
});
|
|
37987
|
-
function
|
|
38002
|
+
function g3(n, e, t) {
|
|
37988
38003
|
var i = e.type, r = e.props, o;
|
|
37989
38004
|
switch (i) {
|
|
37990
38005
|
case t.ItemMouseMove:
|
|
@@ -38091,13 +38106,13 @@ var ig = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__"
|
|
|
38091
38106
|
MenuMouseLeave: uS,
|
|
38092
38107
|
ToggleButtonClick: hS
|
|
38093
38108
|
});
|
|
38094
|
-
function
|
|
38095
|
-
var e =
|
|
38109
|
+
function _3(n) {
|
|
38110
|
+
var e = u3(n), t = e.selectedItem, i = e.inputValue;
|
|
38096
38111
|
return i === "" && t && n.defaultInputValue === void 0 && n.initialInputValue === void 0 && n.inputValue === void 0 && (i = n.itemToString(t)), At({}, e, {
|
|
38097
38112
|
inputValue: i
|
|
38098
38113
|
});
|
|
38099
38114
|
}
|
|
38100
|
-
var
|
|
38115
|
+
var v3 = At({}, cS, {
|
|
38101
38116
|
items: De.array.isRequired,
|
|
38102
38117
|
isItemDisabled: De.func,
|
|
38103
38118
|
inputValue: De.string,
|
|
@@ -38106,8 +38121,8 @@ var _3 = At({}, cS, {
|
|
|
38106
38121
|
inputId: De.string,
|
|
38107
38122
|
onInputValueChange: De.func
|
|
38108
38123
|
});
|
|
38109
|
-
function
|
|
38110
|
-
var r = it(), o =
|
|
38124
|
+
function y3(n, e, t, i) {
|
|
38125
|
+
var r = it(), o = c3(n, e, t, i), s = o[0], l = o[1], c = gh();
|
|
38111
38126
|
return at(function() {
|
|
38112
38127
|
if (nS(e, "selectedItem")) {
|
|
38113
38128
|
if (!c) {
|
|
@@ -38123,14 +38138,14 @@ function v3(n, e, t, i) {
|
|
|
38123
38138
|
}
|
|
38124
38139
|
var bS = Lc;
|
|
38125
38140
|
process.env.NODE_ENV !== "production" && (bS = function(e, t) {
|
|
38126
|
-
De.checkPropTypes(
|
|
38141
|
+
De.checkPropTypes(v3, e, "prop", t.name);
|
|
38127
38142
|
});
|
|
38128
|
-
var
|
|
38143
|
+
var b3 = At({}, Zl, {
|
|
38129
38144
|
isItemDisabled: function() {
|
|
38130
38145
|
return !1;
|
|
38131
38146
|
}
|
|
38132
38147
|
});
|
|
38133
|
-
function
|
|
38148
|
+
function x3(n, e) {
|
|
38134
38149
|
var t, i = e.type, r = e.props, o = e.altKey, s;
|
|
38135
38150
|
switch (i) {
|
|
38136
38151
|
case fg:
|
|
@@ -38223,22 +38238,22 @@ function b3(n, e) {
|
|
|
38223
38238
|
};
|
|
38224
38239
|
break;
|
|
38225
38240
|
default:
|
|
38226
|
-
return
|
|
38241
|
+
return g3(n, e, yS);
|
|
38227
38242
|
}
|
|
38228
38243
|
return At({}, n, s);
|
|
38229
38244
|
}
|
|
38230
|
-
var
|
|
38245
|
+
var w3 = ["onMouseLeave", "refKey", "ref"], S3 = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], k3 = ["onClick", "onPress", "refKey", "ref"], M3 = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
|
|
38231
38246
|
gg.stateChangeTypes = yS;
|
|
38232
38247
|
function gg(n) {
|
|
38233
38248
|
n === void 0 && (n = {}), bS(n, gg);
|
|
38234
|
-
var e = At({},
|
|
38249
|
+
var e = At({}, b3, n), t = e.items, i = e.scrollIntoView, r = e.environment, o = e.getA11yStatusMessage, s = y3(x3, e, _3, p3), l = s[0], c = s[1], u = l.isOpen, h = l.highlightedIndex, f = l.selectedItem, m = l.inputValue, g = it(null), y = it({}), b = it(null), w = it(null), S = gh(), M = a3(e), E = it(), D = sS({
|
|
38235
38250
|
state: l,
|
|
38236
38251
|
props: e
|
|
38237
38252
|
}), C = Ut(function(Q) {
|
|
38238
38253
|
return y.current[M.getItemId(Q)];
|
|
38239
38254
|
}, [M]);
|
|
38240
|
-
|
|
38241
|
-
var O =
|
|
38255
|
+
h3(o, l, [u, h, f, m], r);
|
|
38256
|
+
var O = f3({
|
|
38242
38257
|
menuElement: g.current,
|
|
38243
38258
|
highlightedIndex: h,
|
|
38244
38259
|
isOpen: u,
|
|
@@ -38255,7 +38270,7 @@ function gg(n) {
|
|
|
38255
38270
|
}, []), at(function() {
|
|
38256
38271
|
S || (E.current = t.length);
|
|
38257
38272
|
});
|
|
38258
|
-
var F =
|
|
38273
|
+
var F = d3(r, Ut(function() {
|
|
38259
38274
|
D.current.state.isOpen && c({
|
|
38260
38275
|
type: Md,
|
|
38261
38276
|
selectItem: !1
|
|
@@ -38322,7 +38337,7 @@ function gg(n) {
|
|
|
38322
38337
|
htmlFor: M.inputId
|
|
38323
38338
|
}, Q);
|
|
38324
38339
|
}, [M]), U = Ut(function(Q, W) {
|
|
38325
|
-
var Y, H = Q === void 0 ? {} : Q, q = H.onMouseLeave, he = H.refKey, ge = he === void 0 ? "ref" : he, Te = H.ref, Me = Su(H,
|
|
38340
|
+
var Y, H = Q === void 0 ? {} : Q, q = H.onMouseLeave, he = H.refKey, ge = he === void 0 ? "ref" : he, Te = H.ref, Me = Su(H, w3), Ge = W === void 0 ? {} : W, te = Ge.suppressRefError, lt = te === void 0 ? !1 : te;
|
|
38326
38341
|
return N("getMenuProps", lt, ge, g), At((Y = {}, Y[ge] = Eu(Te, function(de) {
|
|
38327
38342
|
g.current = de;
|
|
38328
38343
|
}), Y.id = M.menuId, Y.role = "listbox", Y["aria-labelledby"] = Me && Me["aria-label"] ? void 0 : "" + M.labelId, Y.onMouseLeave = Ir(q, function() {
|
|
@@ -38333,9 +38348,9 @@ function gg(n) {
|
|
|
38333
38348
|
}, [c, N, M]), G = Ut(function(Q) {
|
|
38334
38349
|
var W, Y, H = Q === void 0 ? {} : Q, q = H.item, he = H.index, ge = H.refKey, Te = ge === void 0 ? "ref" : ge, Me = H.ref, Ge = H.onMouseMove, te = H.onMouseDown, lt = H.onClick;
|
|
38335
38350
|
H.onPress;
|
|
38336
|
-
var de = H.disabled, Vt = Su(H,
|
|
38351
|
+
var de = H.disabled, Vt = Su(H, S3);
|
|
38337
38352
|
de !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
38338
|
-
var Xt = D.current, zt = Xt.props, It = Xt.state, dn =
|
|
38353
|
+
var Xt = D.current, zt = Xt.props, It = Xt.state, dn = l3(q, he, zt.items, "Pass either item or index to getItemProps!"), Pi = dn[0], rn = dn[1], ei = zt.isItemDisabled(Pi, rn), jn = "onClick", Cn = lt, Lt = function() {
|
|
38339
38354
|
F.isTouchEnd || rn === It.highlightedIndex || (O.current = !1, c({
|
|
38340
38355
|
type: dS,
|
|
38341
38356
|
index: rn,
|
|
@@ -38358,7 +38373,7 @@ function gg(n) {
|
|
|
38358
38373
|
}, [c, M, D, F, O]), ae = Ut(function(Q) {
|
|
38359
38374
|
var W, Y = Q === void 0 ? {} : Q, H = Y.onClick;
|
|
38360
38375
|
Y.onPress;
|
|
38361
|
-
var q = Y.refKey, he = q === void 0 ? "ref" : q, ge = Y.ref, Te = Su(Y,
|
|
38376
|
+
var q = Y.refKey, he = q === void 0 ? "ref" : q, ge = Y.ref, Te = Su(Y, k3), Me = D.current.state, Ge = function() {
|
|
38362
38377
|
c({
|
|
38363
38378
|
type: hS
|
|
38364
38379
|
});
|
|
@@ -38371,10 +38386,10 @@ function gg(n) {
|
|
|
38371
38386
|
}, [c, D, M]), ne = Ut(function(Q, W) {
|
|
38372
38387
|
var Y, H = Q === void 0 ? {} : Q, q = H.onKeyDown, he = H.onChange, ge = H.onInput, Te = H.onBlur;
|
|
38373
38388
|
H.onChangeText;
|
|
38374
|
-
var Me = H.onClick, Ge = H.refKey, te = Ge === void 0 ? "ref" : Ge, lt = H.ref, de = Su(H,
|
|
38389
|
+
var Me = H.onClick, Ge = H.refKey, te = Ge === void 0 ? "ref" : Ge, lt = H.ref, de = Su(H, M3), Vt = W === void 0 ? {} : W, Xt = Vt.suppressRefError, zt = Xt === void 0 ? !1 : Xt;
|
|
38375
38390
|
N("getInputProps", zt, te, b);
|
|
38376
38391
|
var It = D.current.state, dn = function(ln) {
|
|
38377
|
-
var Jt =
|
|
38392
|
+
var Jt = Qj(ln);
|
|
38378
38393
|
Jt && K[Jt] && K[Jt](ln);
|
|
38379
38394
|
}, Pi = function(ln) {
|
|
38380
38395
|
c({
|
|
@@ -38584,39 +38599,39 @@ function _g({
|
|
|
38584
38599
|
)
|
|
38585
38600
|
] });
|
|
38586
38601
|
}
|
|
38587
|
-
const
|
|
38602
|
+
const C3 = A.object({
|
|
38588
38603
|
value: AM.optional(),
|
|
38589
38604
|
placeholderText: A.string().optional(),
|
|
38590
38605
|
fields: A.array(A.string()).min(1)
|
|
38591
|
-
}),
|
|
38606
|
+
}), T3 = C3.extend({ lapisFilter: Ln }), E3 = T3.extend({
|
|
38592
38607
|
width: A.string()
|
|
38593
|
-
}),
|
|
38608
|
+
}), D3 = (n) => {
|
|
38594
38609
|
const { width: e, ...t } = n, i = { width: e, height: "3rem" };
|
|
38595
|
-
return /* @__PURE__ */ v($n, { size: i, layout: "horizontal", componentProps: n, schema:
|
|
38596
|
-
},
|
|
38610
|
+
return /* @__PURE__ */ v($n, { size: i, layout: "horizontal", componentProps: n, schema: E3, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(P3, { ...t }) }) });
|
|
38611
|
+
}, P3 = ({ value: n, fields: e, placeholderText: t, lapisFilter: i }) => {
|
|
38597
38612
|
const r = Nt(), { data: o, error: s, isLoading: l } = Ti(
|
|
38598
|
-
() =>
|
|
38613
|
+
() => ij({ fields: e, lapis: r, lapisFilter: i }),
|
|
38599
38614
|
[e, r, i]
|
|
38600
38615
|
);
|
|
38601
38616
|
if (l)
|
|
38602
38617
|
return /* @__PURE__ */ v(Qn, {});
|
|
38603
38618
|
if (s)
|
|
38604
38619
|
throw s;
|
|
38605
|
-
return /* @__PURE__ */ v(
|
|
38606
|
-
},
|
|
38620
|
+
return /* @__PURE__ */ v(A3, { fields: e, value: n, placeholderText: t, locationData: o });
|
|
38621
|
+
}, A3 = ({
|
|
38607
38622
|
fields: n,
|
|
38608
38623
|
value: e,
|
|
38609
38624
|
placeholderText: t,
|
|
38610
38625
|
locationData: i
|
|
38611
38626
|
}) => {
|
|
38612
|
-
const r = ut(() => i.map((s) =>
|
|
38627
|
+
const r = ut(() => i.map((s) => I3(s, n)).filter((s) => s !== void 0), [n, i]), o = ut(() => e !== void 0 ? r.find((s) => s.description == xS(e, n)) : void 0, [n, e, r]);
|
|
38613
38628
|
return /* @__PURE__ */ v(
|
|
38614
38629
|
_g,
|
|
38615
38630
|
{
|
|
38616
38631
|
allItems: r,
|
|
38617
38632
|
value: o,
|
|
38618
|
-
filterItemsByInputValue:
|
|
38619
|
-
createEvent: (s) => new OM((s == null ? void 0 : s.lapisFilter) ??
|
|
38633
|
+
filterItemsByInputValue: O3,
|
|
38634
|
+
createEvent: (s) => new OM((s == null ? void 0 : s.lapisFilter) ?? L3(n)),
|
|
38620
38635
|
itemToString: (s) => (s == null ? void 0 : s.label) ?? "",
|
|
38621
38636
|
placeholderText: t,
|
|
38622
38637
|
formatItemInList: (s) => /* @__PURE__ */ v(Ae, { children: [
|
|
@@ -38633,11 +38648,11 @@ const M3 = A.object({
|
|
|
38633
38648
|
}
|
|
38634
38649
|
);
|
|
38635
38650
|
};
|
|
38636
|
-
function
|
|
38651
|
+
function O3(n, e) {
|
|
38637
38652
|
var t;
|
|
38638
38653
|
return e == null ? !0 : ((t = n == null ? void 0 : n.label) == null ? void 0 : t.toLowerCase().includes(e.toLowerCase())) || (n == null ? void 0 : n.description.toLowerCase().includes(e.toLowerCase()));
|
|
38639
38654
|
}
|
|
38640
|
-
function
|
|
38655
|
+
function I3(n, e) {
|
|
38641
38656
|
const t = n.value, i = xS(t, e), r = [...e].reverse().find((o) => t[o] !== void 0 && t[o] !== null);
|
|
38642
38657
|
if (r !== void 0)
|
|
38643
38658
|
return {
|
|
@@ -38650,13 +38665,13 @@ function O3(n, e) {
|
|
|
38650
38665
|
function xS(n, e) {
|
|
38651
38666
|
return e.map((t) => n[t]).filter((t) => t != null).join(" / ");
|
|
38652
38667
|
}
|
|
38653
|
-
function
|
|
38668
|
+
function L3(n) {
|
|
38654
38669
|
return n.reduce((e, t) => (e[t] = void 0, e), {});
|
|
38655
38670
|
}
|
|
38656
|
-
var
|
|
38657
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
38671
|
+
var R3 = Object.defineProperty, N3 = Object.getOwnPropertyDescriptor, Ya = (n, e, t, i) => {
|
|
38672
|
+
for (var r = i > 1 ? void 0 : i ? N3(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
38658
38673
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
38659
|
-
return i && r &&
|
|
38674
|
+
return i && r && R3(e, t, r), r;
|
|
38660
38675
|
};
|
|
38661
38676
|
let Ls = class extends ki {
|
|
38662
38677
|
constructor() {
|
|
@@ -38664,7 +38679,7 @@ let Ls = class extends ki {
|
|
|
38664
38679
|
}
|
|
38665
38680
|
render() {
|
|
38666
38681
|
return /* @__PURE__ */ v(
|
|
38667
|
-
|
|
38682
|
+
D3,
|
|
38668
38683
|
{
|
|
38669
38684
|
value: this.value,
|
|
38670
38685
|
fields: this.fields,
|
|
@@ -38693,7 +38708,7 @@ Ya([
|
|
|
38693
38708
|
Ls = Ya([
|
|
38694
38709
|
kn("gs-location-filter")
|
|
38695
38710
|
], Ls);
|
|
38696
|
-
async function
|
|
38711
|
+
async function z3({
|
|
38697
38712
|
lapis: n,
|
|
38698
38713
|
field: e,
|
|
38699
38714
|
lapisFilter: t,
|
|
@@ -38703,31 +38718,31 @@ async function N3({
|
|
|
38703
38718
|
e
|
|
38704
38719
|
]).evaluate(n, i)).content.map((s) => ({ count: s.count, value: s[e] })).filter((s) => s.value !== null).sort((s, l) => s.value === null ? 1 : l.value === null ? -1 : s.value.localeCompare(l.value));
|
|
38705
38720
|
}
|
|
38706
|
-
const
|
|
38721
|
+
const F3 = A.object({
|
|
38707
38722
|
lapisField: A.string().min(1),
|
|
38708
38723
|
placeholderText: A.string().optional(),
|
|
38709
38724
|
value: A.string().optional()
|
|
38710
|
-
}),
|
|
38725
|
+
}), $3 = F3.extend({ lapisFilter: Ln }), j3 = $3.extend({
|
|
38711
38726
|
width: A.string()
|
|
38712
|
-
}),
|
|
38727
|
+
}), B3 = (n) => {
|
|
38713
38728
|
const { width: e, ...t } = n, i = { width: e, height: "3rem" };
|
|
38714
|
-
return /* @__PURE__ */ v($n, { size: i, layout: "horizontal", componentProps: n, schema:
|
|
38715
|
-
},
|
|
38729
|
+
return /* @__PURE__ */ v($n, { size: i, layout: "horizontal", componentProps: n, schema: j3, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(V3, { ...t }) }) });
|
|
38730
|
+
}, V3 = ({
|
|
38716
38731
|
value: n,
|
|
38717
38732
|
lapisField: e,
|
|
38718
38733
|
placeholderText: t,
|
|
38719
38734
|
lapisFilter: i
|
|
38720
38735
|
}) => {
|
|
38721
38736
|
const r = Nt(), { data: o, error: s, isLoading: l } = Ti(
|
|
38722
|
-
() =>
|
|
38737
|
+
() => z3({ lapis: r, field: e, lapisFilter: i }),
|
|
38723
38738
|
[e, r, i]
|
|
38724
38739
|
);
|
|
38725
38740
|
if (l)
|
|
38726
38741
|
return /* @__PURE__ */ v(Qn, {});
|
|
38727
38742
|
if (s !== null)
|
|
38728
38743
|
throw s;
|
|
38729
|
-
return o === null ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(
|
|
38730
|
-
},
|
|
38744
|
+
return o === null ? /* @__PURE__ */ v(Sn, {}) : /* @__PURE__ */ v(H3, { lapisField: e, value: n, placeholderText: t, data: o });
|
|
38745
|
+
}, H3 = ({
|
|
38731
38746
|
lapisField: n,
|
|
38732
38747
|
value: e,
|
|
38733
38748
|
placeholderText: t,
|
|
@@ -38739,7 +38754,7 @@ const z3 = A.object({
|
|
|
38739
38754
|
{
|
|
38740
38755
|
allItems: i,
|
|
38741
38756
|
value: r,
|
|
38742
|
-
filterItemsByInputValue:
|
|
38757
|
+
filterItemsByInputValue: W3,
|
|
38743
38758
|
createEvent: (o) => new LM({ [n]: (o == null ? void 0 : o.value) ?? void 0 }),
|
|
38744
38759
|
itemToString: (o) => (o == null ? void 0 : o.value) ?? "",
|
|
38745
38760
|
placeholderText: t,
|
|
@@ -38754,14 +38769,14 @@ const z3 = A.object({
|
|
|
38754
38769
|
}
|
|
38755
38770
|
);
|
|
38756
38771
|
};
|
|
38757
|
-
function
|
|
38772
|
+
function W3(n, e) {
|
|
38758
38773
|
var t;
|
|
38759
38774
|
return e == null || e === "" ? !0 : (t = n.value) == null ? void 0 : t.toLowerCase().includes((e == null ? void 0 : e.toLowerCase()) || "");
|
|
38760
38775
|
}
|
|
38761
|
-
var
|
|
38762
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
38776
|
+
var Z3 = Object.defineProperty, Y3 = Object.getOwnPropertyDescriptor, Ua = (n, e, t, i) => {
|
|
38777
|
+
for (var r = i > 1 ? void 0 : i ? Y3(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
38763
38778
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
38764
|
-
return i && r &&
|
|
38779
|
+
return i && r && Z3(e, t, r), r;
|
|
38765
38780
|
};
|
|
38766
38781
|
let Rs = class extends ki {
|
|
38767
38782
|
constructor() {
|
|
@@ -38769,7 +38784,7 @@ let Rs = class extends ki {
|
|
|
38769
38784
|
}
|
|
38770
38785
|
render() {
|
|
38771
38786
|
return /* @__PURE__ */ v(
|
|
38772
|
-
|
|
38787
|
+
B3,
|
|
38773
38788
|
{
|
|
38774
38789
|
lapisField: this.lapisField,
|
|
38775
38790
|
lapisFilter: this.lapisFilter,
|
|
@@ -38798,7 +38813,7 @@ Ua([
|
|
|
38798
38813
|
Rs = Ua([
|
|
38799
38814
|
kn("gs-text-filter")
|
|
38800
38815
|
], Rs);
|
|
38801
|
-
const
|
|
38816
|
+
const U3 = ({ children: n }) => {
|
|
38802
38817
|
const e = di(mr);
|
|
38803
38818
|
return jC(e) ? /* @__PURE__ */ v("div", { className: "laoding loading-spinner loading-md", children: "Loading..." }) : /* @__PURE__ */ v(Ae, { children: n });
|
|
38804
38819
|
}, aa = ({ sequenceType: n, mutationType: e }) => {
|
|
@@ -38845,17 +38860,17 @@ function Dl(n, e, t) {
|
|
|
38845
38860
|
}
|
|
38846
38861
|
}
|
|
38847
38862
|
}
|
|
38848
|
-
const
|
|
38863
|
+
const q3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
38849
38864
|
/* @__PURE__ */ v(hi, { children: " Mutation Filter" }),
|
|
38850
38865
|
/* @__PURE__ */ v(Ve, { children: "This component allows you to filter for mutations at specific positions." }),
|
|
38851
|
-
/* @__PURE__ */ v(q3, {}),
|
|
38852
38866
|
/* @__PURE__ */ v(G3, {}),
|
|
38853
38867
|
/* @__PURE__ */ v(K3, {}),
|
|
38854
38868
|
/* @__PURE__ */ v(X3, {}),
|
|
38855
38869
|
/* @__PURE__ */ v(J3, {}),
|
|
38856
38870
|
/* @__PURE__ */ v(Q3, {}),
|
|
38857
|
-
/* @__PURE__ */ v(e5, {})
|
|
38858
|
-
|
|
38871
|
+
/* @__PURE__ */ v(e5, {}),
|
|
38872
|
+
/* @__PURE__ */ v(t5, {})
|
|
38873
|
+
] }), G3 = () => {
|
|
38859
38874
|
const n = di(mr);
|
|
38860
38875
|
return /* @__PURE__ */ v(Ae, { children: [
|
|
38861
38876
|
/* @__PURE__ */ v(Rn, { children: "Quickstart" }),
|
|
@@ -38894,7 +38909,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
38894
38909
|
"."
|
|
38895
38910
|
] }) : /* @__PURE__ */ v(Ve, { children: "This organism doesn't support amino acid sequences." })
|
|
38896
38911
|
] });
|
|
38897
|
-
},
|
|
38912
|
+
}, K3 = () => {
|
|
38898
38913
|
const n = di(mr);
|
|
38899
38914
|
if (n.nucleotideSequences.length === 0)
|
|
38900
38915
|
return null;
|
|
@@ -38996,7 +39011,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
38996
39011
|
"."
|
|
38997
39012
|
] })
|
|
38998
39013
|
] });
|
|
38999
|
-
},
|
|
39014
|
+
}, X3 = () => {
|
|
39000
39015
|
const n = di(mr);
|
|
39001
39016
|
if (n.genes.length === 0)
|
|
39002
39017
|
return null;
|
|
@@ -39033,7 +39048,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39033
39048
|
"."
|
|
39034
39049
|
] })
|
|
39035
39050
|
] });
|
|
39036
|
-
},
|
|
39051
|
+
}, J3 = () => {
|
|
39037
39052
|
const n = di(mr);
|
|
39038
39053
|
return n.nucleotideSequences.length === 0 && n.genes.length === 0 ? null : /* @__PURE__ */ v(Ae, { children: [
|
|
39039
39054
|
/* @__PURE__ */ v(Rn, { children: "Insertion Wildcards" }),
|
|
@@ -39083,10 +39098,10 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39083
39098
|
}, Zp = (n) => {
|
|
39084
39099
|
const e = wS(n);
|
|
39085
39100
|
return e === "" ? "" : `${e}:`;
|
|
39086
|
-
}, wS = (n) => n.genes.length > 0 ? `${n.genes[0].name}` : n.nucleotideSequences.length > 1 ? `${n.nucleotideSequences[0].name}` : "", $f = (n) => n.genes.length > 0 ? "EP" : n.nucleotideSequences.length > 0 ? "CG" : "",
|
|
39101
|
+
}, wS = (n) => n.genes.length > 0 ? `${n.genes[0].name}` : n.nucleotideSequences.length > 1 ? `${n.nucleotideSequences[0].name}` : "", $f = (n) => n.genes.length > 0 ? "EP" : n.nucleotideSequences.length > 0 ? "CG" : "", Q3 = () => /* @__PURE__ */ v(Ae, { children: [
|
|
39087
39102
|
/* @__PURE__ */ v(Rn, { children: "Multiple Mutations" }),
|
|
39088
39103
|
/* @__PURE__ */ v(Ve, { children: "Multiple mutation filters can be provided by adding one mutation after the other." })
|
|
39089
|
-
] }),
|
|
39104
|
+
] }), e5 = () => {
|
|
39090
39105
|
const n = di(mr);
|
|
39091
39106
|
return /* @__PURE__ */ v(Ae, { children: [
|
|
39092
39107
|
/* @__PURE__ */ v(Rn, { children: "Any Mutation" }),
|
|
@@ -39102,7 +39117,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39102
39117
|
"."
|
|
39103
39118
|
] })
|
|
39104
39119
|
] });
|
|
39105
|
-
},
|
|
39120
|
+
}, t5 = () => /* @__PURE__ */ v(Ae, { children: [
|
|
39106
39121
|
/* @__PURE__ */ v(Rn, { children: "No Mutation" }),
|
|
39107
39122
|
/* @__PURE__ */ v(Ve, { children: [
|
|
39108
39123
|
"You can write a ",
|
|
@@ -39151,25 +39166,25 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39151
39166
|
return null;
|
|
39152
39167
|
}
|
|
39153
39168
|
return null;
|
|
39154
|
-
},
|
|
39169
|
+
}, n5 = A.object({
|
|
39155
39170
|
initialValue: A.union([l0.optional(), A.array(A.string()), A.undefined()])
|
|
39156
|
-
}),
|
|
39171
|
+
}), i5 = n5.extend({
|
|
39157
39172
|
width: A.string()
|
|
39158
|
-
}),
|
|
39173
|
+
}), r5 = (n) => {
|
|
39159
39174
|
const { width: e, initialValue: t } = n;
|
|
39160
39175
|
return /* @__PURE__ */ v(
|
|
39161
39176
|
$n,
|
|
39162
39177
|
{
|
|
39163
39178
|
size: { height: "3.375rem", width: e },
|
|
39164
39179
|
layout: "horizontal",
|
|
39165
|
-
schema:
|
|
39180
|
+
schema: i5,
|
|
39166
39181
|
componentProps: n,
|
|
39167
|
-
children: /* @__PURE__ */ v("div", { style: e, children: /* @__PURE__ */ v(
|
|
39182
|
+
children: /* @__PURE__ */ v("div", { style: e, children: /* @__PURE__ */ v(o5, { initialValue: t }) })
|
|
39168
39183
|
}
|
|
39169
39184
|
);
|
|
39170
|
-
},
|
|
39185
|
+
}, o5 = ({ initialValue: n }) => {
|
|
39171
39186
|
const e = di(mr), [t, i] = We(
|
|
39172
|
-
|
|
39187
|
+
s5(n, e)
|
|
39173
39188
|
), r = it(null);
|
|
39174
39189
|
if (e.nucleotideSequences.length === 0 && e.genes.length === 0)
|
|
39175
39190
|
throw new bi(
|
|
@@ -39184,7 +39199,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39184
39199
|
i(c), s(c);
|
|
39185
39200
|
}, s = (l) => {
|
|
39186
39201
|
var u;
|
|
39187
|
-
const c =
|
|
39202
|
+
const c = h5(l);
|
|
39188
39203
|
(u = r.current) == null || u.dispatchEvent(
|
|
39189
39204
|
new CustomEvent("gs-mutation-filter-changed", {
|
|
39190
39205
|
detail: c,
|
|
@@ -39194,10 +39209,10 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39194
39209
|
);
|
|
39195
39210
|
};
|
|
39196
39211
|
return /* @__PURE__ */ v("div", { className: "w-full border border-gray-300 rounded-md relative", ref: r, children: [
|
|
39197
|
-
/* @__PURE__ */ v("div", { className: "absolute -top-3 -right-3 z-10", children: /* @__PURE__ */ v(
|
|
39212
|
+
/* @__PURE__ */ v("div", { className: "absolute -top-3 -right-3 z-10", children: /* @__PURE__ */ v(q3, {}) }),
|
|
39198
39213
|
/* @__PURE__ */ v("div", { className: "relative w-full p-1", children: [
|
|
39199
39214
|
/* @__PURE__ */ v(
|
|
39200
|
-
|
|
39215
|
+
a5,
|
|
39201
39216
|
{
|
|
39202
39217
|
referenceGenome: e,
|
|
39203
39218
|
setSelectedFilters: (l) => {
|
|
@@ -39207,7 +39222,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39207
39222
|
}
|
|
39208
39223
|
),
|
|
39209
39224
|
/* @__PURE__ */ v(
|
|
39210
|
-
|
|
39225
|
+
d5,
|
|
39211
39226
|
{
|
|
39212
39227
|
selectedFilters: t,
|
|
39213
39228
|
handleRemoveValue: o
|
|
@@ -39216,7 +39231,7 @@ const U3 = () => /* @__PURE__ */ v(gr, { children: [
|
|
|
39216
39231
|
] })
|
|
39217
39232
|
] });
|
|
39218
39233
|
};
|
|
39219
|
-
function
|
|
39234
|
+
function s5(n, e) {
|
|
39220
39235
|
return n === void 0 ? {
|
|
39221
39236
|
nucleotideMutations: [],
|
|
39222
39237
|
aminoAcidMutations: [],
|
|
@@ -39238,7 +39253,7 @@ function o5(n, e) {
|
|
|
39238
39253
|
}
|
|
39239
39254
|
);
|
|
39240
39255
|
}
|
|
39241
|
-
const
|
|
39256
|
+
const a5 = ({ referenceGenome: n, setSelectedFilters: e, selectedFilters: t }) => {
|
|
39242
39257
|
const [i, r] = We(null), [o, s] = We(""), l = it(null), c = (g) => {
|
|
39243
39258
|
if (g.includes(",") || g.includes(";"))
|
|
39244
39259
|
u(g);
|
|
@@ -39287,7 +39302,7 @@ const s5 = ({ referenceGenome: n, setSelectedFilters: e, selectedFilters: t }) =
|
|
|
39287
39302
|
{
|
|
39288
39303
|
type: "text",
|
|
39289
39304
|
className: "w-full p-2 border-gray-300 border rounded-md",
|
|
39290
|
-
placeholder:
|
|
39305
|
+
placeholder: l5(n),
|
|
39291
39306
|
value: o,
|
|
39292
39307
|
onInput: (g) => {
|
|
39293
39308
|
c(g.target.value);
|
|
@@ -39308,16 +39323,16 @@ const s5 = ({ referenceGenome: n, setSelectedFilters: e, selectedFilters: t }) =
|
|
|
39308
39323
|
)
|
|
39309
39324
|
] });
|
|
39310
39325
|
};
|
|
39311
|
-
function
|
|
39326
|
+
function l5(n) {
|
|
39312
39327
|
const e = Dl(n, "nucleotide", "substitution"), t = Dl(n, "nucleotide", "insertion"), i = Dl(n, "amino acid", "substitution"), r = Dl(n, "amino acid", "insertion");
|
|
39313
39328
|
return `Enter a mutation (e.g. ${[e, t, i, r].filter((s) => s !== "").join(", ")})`;
|
|
39314
39329
|
}
|
|
39315
|
-
const
|
|
39330
|
+
const c5 = {
|
|
39316
39331
|
aminoAcidMutations: Un("teal", 0.4),
|
|
39317
39332
|
nucleotideMutations: Un("green", 0.4),
|
|
39318
39333
|
aminoAcidInsertions: Un("purple", 0.4),
|
|
39319
39334
|
nucleotideInsertions: Un("indigo", 0.4)
|
|
39320
|
-
},
|
|
39335
|
+
}, u5 = (n) => c5[n.type] || "lightgray", d5 = ({ selectedFilters: n, handleRemoveValue: e }) => /* @__PURE__ */ v("div", { className: "flex flex-wrap", children: [
|
|
39321
39336
|
n.nucleotideMutations.map((t) => /* @__PURE__ */ v(
|
|
39322
39337
|
Pu,
|
|
39323
39338
|
{
|
|
@@ -39355,7 +39370,7 @@ const l5 = {
|
|
|
39355
39370
|
{
|
|
39356
39371
|
className: "center p-2 m-1 inline-flex text-black rounded-md",
|
|
39357
39372
|
style: {
|
|
39358
|
-
backgroundColor:
|
|
39373
|
+
backgroundColor: u5(e)
|
|
39359
39374
|
},
|
|
39360
39375
|
children: [
|
|
39361
39376
|
e.value.toString(),
|
|
@@ -39364,7 +39379,7 @@ const l5 = {
|
|
|
39364
39379
|
},
|
|
39365
39380
|
e.value.toString()
|
|
39366
39381
|
);
|
|
39367
|
-
function
|
|
39382
|
+
function h5(n) {
|
|
39368
39383
|
return {
|
|
39369
39384
|
aminoAcidMutations: n.aminoAcidMutations.map((e) => e.toString()),
|
|
39370
39385
|
nucleotideMutations: n.nucleotideMutations.map((e) => e.toString()),
|
|
@@ -39372,17 +39387,17 @@ function d5(n) {
|
|
|
39372
39387
|
nucleotideInsertions: n.nucleotideInsertions.map((e) => e.toString())
|
|
39373
39388
|
};
|
|
39374
39389
|
}
|
|
39375
|
-
var
|
|
39376
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
39390
|
+
var f5 = Object.defineProperty, p5 = Object.getOwnPropertyDescriptor, vg = (n, e, t, i) => {
|
|
39391
|
+
for (var r = i > 1 ? void 0 : i ? p5(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
39377
39392
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
39378
|
-
return i && r &&
|
|
39393
|
+
return i && r && f5(e, t, r), r;
|
|
39379
39394
|
};
|
|
39380
39395
|
let Cd = class extends ki {
|
|
39381
39396
|
constructor() {
|
|
39382
39397
|
super(...arguments), this.initialValue = void 0, this.width = "100%";
|
|
39383
39398
|
}
|
|
39384
39399
|
render() {
|
|
39385
|
-
return /* @__PURE__ */ v(
|
|
39400
|
+
return /* @__PURE__ */ v(U3, { children: /* @__PURE__ */ v(r5, { initialValue: this.initialValue, width: this.width }) });
|
|
39386
39401
|
}
|
|
39387
39402
|
};
|
|
39388
39403
|
vg([
|
|
@@ -39394,7 +39409,7 @@ vg([
|
|
|
39394
39409
|
Cd = vg([
|
|
39395
39410
|
kn("gs-mutation-filter")
|
|
39396
39411
|
], Cd);
|
|
39397
|
-
async function
|
|
39412
|
+
async function m5({
|
|
39398
39413
|
lapis: n,
|
|
39399
39414
|
field: e,
|
|
39400
39415
|
signal: t,
|
|
@@ -39402,33 +39417,33 @@ async function p5({
|
|
|
39402
39417
|
}) {
|
|
39403
39418
|
return (await new No(i ?? {}, [e]).evaluate(n, t)).content.flatMap((s) => [s[e], `${s[e]}*`]).sort();
|
|
39404
39419
|
}
|
|
39405
|
-
const
|
|
39420
|
+
const g5 = A.object({
|
|
39406
39421
|
lapisField: A.string().min(1),
|
|
39407
39422
|
placeholderText: A.string().optional(),
|
|
39408
39423
|
value: A.string()
|
|
39409
|
-
}), g5 = m5.extend({
|
|
39410
|
-
lapisFilter: Ln
|
|
39411
39424
|
}), _5 = g5.extend({
|
|
39425
|
+
lapisFilter: Ln
|
|
39426
|
+
}), v5 = _5.extend({
|
|
39412
39427
|
width: A.string()
|
|
39413
|
-
}),
|
|
39428
|
+
}), y5 = (n) => {
|
|
39414
39429
|
const { width: e, ...t } = n, i = { width: e, height: "3rem" };
|
|
39415
|
-
return /* @__PURE__ */ v($n, { size: i, layout: "horizontal", componentProps: n, schema:
|
|
39416
|
-
},
|
|
39430
|
+
return /* @__PURE__ */ v($n, { size: i, layout: "horizontal", componentProps: n, schema: v5, children: /* @__PURE__ */ v(xn, { size: i, children: /* @__PURE__ */ v(b5, { ...t }) }) });
|
|
39431
|
+
}, b5 = ({
|
|
39417
39432
|
lapisField: n,
|
|
39418
39433
|
placeholderText: e,
|
|
39419
39434
|
value: t,
|
|
39420
39435
|
lapisFilter: i
|
|
39421
39436
|
}) => {
|
|
39422
39437
|
const r = Nt(), { data: o, error: s, isLoading: l } = Ti(
|
|
39423
|
-
() =>
|
|
39438
|
+
() => m5({ lapis: r, field: n, lapisFilter: i }),
|
|
39424
39439
|
[n, r, i]
|
|
39425
39440
|
);
|
|
39426
39441
|
if (l)
|
|
39427
39442
|
return /* @__PURE__ */ v(Qn, {});
|
|
39428
39443
|
if (s !== null)
|
|
39429
39444
|
throw s;
|
|
39430
|
-
return /* @__PURE__ */ v(
|
|
39431
|
-
},
|
|
39445
|
+
return /* @__PURE__ */ v(x5, { lapisField: n, value: t, placeholderText: e, data: o });
|
|
39446
|
+
}, x5 = ({
|
|
39432
39447
|
lapisField: n,
|
|
39433
39448
|
value: e,
|
|
39434
39449
|
placeholderText: t,
|
|
@@ -39438,20 +39453,20 @@ const m5 = A.object({
|
|
|
39438
39453
|
{
|
|
39439
39454
|
allItems: i,
|
|
39440
39455
|
value: e,
|
|
39441
|
-
filterItemsByInputValue:
|
|
39456
|
+
filterItemsByInputValue: w5,
|
|
39442
39457
|
createEvent: (r) => new IM({ [n]: r ?? void 0 }),
|
|
39443
39458
|
itemToString: (r) => r ?? "",
|
|
39444
39459
|
placeholderText: t,
|
|
39445
39460
|
formatItemInList: (r) => r
|
|
39446
39461
|
}
|
|
39447
39462
|
);
|
|
39448
|
-
function
|
|
39463
|
+
function w5(n, e) {
|
|
39449
39464
|
return e == null || e === "" ? !0 : n == null ? void 0 : n.toLowerCase().includes((e == null ? void 0 : e.toLowerCase()) || "");
|
|
39450
39465
|
}
|
|
39451
|
-
var
|
|
39452
|
-
for (var r = i > 1 ? void 0 : i ?
|
|
39466
|
+
var S5 = Object.defineProperty, k5 = Object.getOwnPropertyDescriptor, qa = (n, e, t, i) => {
|
|
39467
|
+
for (var r = i > 1 ? void 0 : i ? k5(e, t) : e, o = n.length - 1, s; o >= 0; o--)
|
|
39453
39468
|
(s = n[o]) && (r = (i ? s(e, t, r) : s(r)) || r);
|
|
39454
|
-
return i && r &&
|
|
39469
|
+
return i && r && S5(e, t, r), r;
|
|
39455
39470
|
};
|
|
39456
39471
|
let Ns = class extends ki {
|
|
39457
39472
|
constructor() {
|
|
@@ -39459,7 +39474,7 @@ let Ns = class extends ki {
|
|
|
39459
39474
|
}
|
|
39460
39475
|
render() {
|
|
39461
39476
|
return /* @__PURE__ */ v(
|
|
39462
|
-
|
|
39477
|
+
y5,
|
|
39463
39478
|
{
|
|
39464
39479
|
lapisField: this.lapisField,
|
|
39465
39480
|
lapisFilter: this.lapisFilter,
|
|
@@ -39510,7 +39525,7 @@ export {
|
|
|
39510
39525
|
Rs as TextFilterComponent,
|
|
39511
39526
|
bi as UserFacingError,
|
|
39512
39527
|
Fo as WastewaterMutationsOverTimeComponent,
|
|
39513
|
-
|
|
39528
|
+
C5 as dateRangeOptionPresets,
|
|
39514
39529
|
wt as views
|
|
39515
39530
|
};
|
|
39516
39531
|
//# sourceMappingURL=dashboard-components.js.map
|