@sfgrp/distinguish 0.4.3 → 0.4.5
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/dist/distinguish.es.js +425 -396
- package/dist/distinguish.umd.js +5 -5
- package/package.json +1 -1
package/dist/distinguish.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as S, computed as
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { defineComponent as S, computed as I, createElementBlock as y, openBlock as p, withDirectives as q, createTextVNode as D, createElementVNode as f, vModelCheckbox as se, Fragment as L, renderList as M, toDisplayString as R, vModelSelect as ue, unref as k, normalizeClass as ve, renderSlot as U, onMounted as ct, onUnmounted as ut, createBlock as T, Transition as dt, withCtx as w, withModifiers as Vt, normalizeStyle as qt, ref as X, createVNode as v, createCommentVNode as j, watch as Ht, normalizeProps as he, guardReactiveProps as ge, withKeys as pt, vModelText as ft, resolveDynamicComponent as zt, createApp as Kt } from "vue";
|
|
2
|
+
import { defineStore as Me, createPinia as Jt } from "pinia";
|
|
3
3
|
function mt(e, t) {
|
|
4
4
|
return function() {
|
|
5
5
|
return e.apply(t, arguments);
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
const { toString: Wt } = Object.prototype, { getPrototypeOf:
|
|
8
|
+
const { toString: Wt } = Object.prototype, { getPrototypeOf: Ve } = Object, Re = /* @__PURE__ */ ((e) => (t) => {
|
|
9
9
|
const n = Wt.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
-
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) =>
|
|
11
|
+
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Re(t) === e), Ee = (e) => (t) => typeof t === e, { isArray: re } = Array, ce = Ee("undefined");
|
|
12
12
|
function Xt(e) {
|
|
13
13
|
return e !== null && !ce(e) && e.constructor !== null && !ce(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
14
|
}
|
|
@@ -17,14 +17,14 @@ function Qt(e) {
|
|
|
17
17
|
let t;
|
|
18
18
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ht(e.buffer), t;
|
|
19
19
|
}
|
|
20
|
-
const Gt =
|
|
21
|
-
if (
|
|
20
|
+
const Gt = Ee("string"), V = Ee("function"), gt = Ee("number"), Te = (e) => e !== null && typeof e == "object", Yt = (e) => e === !0 || e === !1, ye = (e) => {
|
|
21
|
+
if (Re(e) !== "object")
|
|
22
22
|
return !1;
|
|
23
|
-
const t =
|
|
23
|
+
const t = Ve(e);
|
|
24
24
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
-
}, Zt = H("Date"), en = H("File"), tn = H("Blob"), nn = H("FileList"), sn = (e) =>
|
|
25
|
+
}, Zt = H("Date"), en = H("File"), tn = H("Blob"), nn = H("FileList"), sn = (e) => Te(e) && V(e.pipe), rn = (e) => {
|
|
26
26
|
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t =
|
|
27
|
+
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Re(e)) === "formdata" || // detect form-data instance
|
|
28
28
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
29
29
|
}, on = H("URLSearchParams"), [an, ln, cn, un] = ["ReadableStream", "Request", "Response", "Headers"].map(H), dn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
30
|
function de(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
@@ -50,11 +50,11 @@ function yt(e, t) {
|
|
|
50
50
|
return r;
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
54
|
-
function
|
|
53
|
+
const Z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, bt = (e) => !ce(e) && e !== Z;
|
|
54
|
+
function Le() {
|
|
55
55
|
const { caseless: e } = bt(this) && this || {}, t = {}, n = (s, r) => {
|
|
56
56
|
const o = e && yt(t, r) || r;
|
|
57
|
-
|
|
57
|
+
ye(t[o]) && ye(s) ? t[o] = Le(t[o], s) : ye(s) ? t[o] = Le({}, s) : re(s) ? t[o] = s.slice() : t[o] = s;
|
|
58
58
|
};
|
|
59
59
|
for (let s = 0, r = arguments.length; s < r; s++)
|
|
60
60
|
arguments[s] && de(arguments[s], n);
|
|
@@ -73,7 +73,7 @@ const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
|
73
73
|
do {
|
|
74
74
|
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
75
75
|
i = r[o], (!s || s(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
76
|
-
e = n !== !1 &&
|
|
76
|
+
e = n !== !1 && Ve(e);
|
|
77
77
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
79
|
}, gn = (e, t, n) => {
|
|
@@ -89,7 +89,7 @@ const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
|
89
89
|
for (; t-- > 0; )
|
|
90
90
|
n[t] = e[t];
|
|
91
91
|
return n;
|
|
92
|
-
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
92
|
+
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ve(Uint8Array)), _n = (e, t) => {
|
|
93
93
|
const s = (e && e[Symbol.iterator]).call(e);
|
|
94
94
|
let r;
|
|
95
95
|
for (; (r = s.next()) && !r.done; ) {
|
|
@@ -107,13 +107,13 @@ const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
|
107
107
|
function(n, s, r) {
|
|
108
108
|
return s.toUpperCase() + r;
|
|
109
109
|
}
|
|
110
|
-
), We = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
110
|
+
), We = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Rn = H("RegExp"), _t = (e, t) => {
|
|
111
111
|
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
112
112
|
de(n, (r, o) => {
|
|
113
113
|
let i;
|
|
114
114
|
(i = t(r, o, e)) !== !1 && (s[o] = i || r);
|
|
115
115
|
}), Object.defineProperties(e, s);
|
|
116
|
-
},
|
|
116
|
+
}, En = (e) => {
|
|
117
117
|
_t(e, (t, n) => {
|
|
118
118
|
if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
119
119
|
return !1;
|
|
@@ -140,9 +140,9 @@ const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
|
140
140
|
function xn(e) {
|
|
141
141
|
return !!(e && V(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const In = (e) => {
|
|
144
144
|
const t = new Array(10), n = (s, r) => {
|
|
145
|
-
if (
|
|
145
|
+
if (Te(s)) {
|
|
146
146
|
if (t.indexOf(s) >= 0)
|
|
147
147
|
return;
|
|
148
148
|
if (!("toJSON" in s)) {
|
|
@@ -157,14 +157,14 @@ const An = (e) => {
|
|
|
157
157
|
return s;
|
|
158
158
|
};
|
|
159
159
|
return n(e, 0);
|
|
160
|
-
},
|
|
161
|
-
r ===
|
|
160
|
+
}, An = H("AsyncFunction"), Cn = (e) => e && (Te(e) || V(e)) && V(e.then) && V(e.catch), wt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Z.addEventListener("message", ({ source: r, data: o }) => {
|
|
161
|
+
r === Z && o === n && s.length && s.shift()();
|
|
162
162
|
}, !1), (r) => {
|
|
163
|
-
s.push(r),
|
|
163
|
+
s.push(r), Z.postMessage(n, "*");
|
|
164
164
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
165
165
|
typeof setImmediate == "function",
|
|
166
|
-
V(
|
|
167
|
-
),
|
|
166
|
+
V(Z.postMessage)
|
|
167
|
+
), $n = typeof queueMicrotask < "u" ? queueMicrotask.bind(Z) : typeof process < "u" && process.nextTick || wt, l = {
|
|
168
168
|
isArray: re,
|
|
169
169
|
isArrayBuffer: ht,
|
|
170
170
|
isBuffer: Xt,
|
|
@@ -173,8 +173,8 @@ const An = (e) => {
|
|
|
173
173
|
isString: Gt,
|
|
174
174
|
isNumber: gt,
|
|
175
175
|
isBoolean: Yt,
|
|
176
|
-
isObject:
|
|
177
|
-
isPlainObject:
|
|
176
|
+
isObject: Te,
|
|
177
|
+
isPlainObject: ye,
|
|
178
178
|
isReadableStream: an,
|
|
179
179
|
isRequest: ln,
|
|
180
180
|
isResponse: cn,
|
|
@@ -183,20 +183,20 @@ const An = (e) => {
|
|
|
183
183
|
isDate: Zt,
|
|
184
184
|
isFile: en,
|
|
185
185
|
isBlob: tn,
|
|
186
|
-
isRegExp:
|
|
186
|
+
isRegExp: Rn,
|
|
187
187
|
isFunction: V,
|
|
188
188
|
isStream: sn,
|
|
189
189
|
isURLSearchParams: on,
|
|
190
190
|
isTypedArray: bn,
|
|
191
191
|
isFileList: nn,
|
|
192
192
|
forEach: de,
|
|
193
|
-
merge:
|
|
193
|
+
merge: Le,
|
|
194
194
|
extend: pn,
|
|
195
195
|
trim: dn,
|
|
196
196
|
stripBOM: fn,
|
|
197
197
|
inherits: mn,
|
|
198
198
|
toFlatObject: hn,
|
|
199
|
-
kindOf:
|
|
199
|
+
kindOf: Re,
|
|
200
200
|
kindOfTest: H,
|
|
201
201
|
endsWith: gn,
|
|
202
202
|
toArray: yn,
|
|
@@ -207,20 +207,20 @@ const An = (e) => {
|
|
|
207
207
|
hasOwnProp: We,
|
|
208
208
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
209
209
|
reduceDescriptors: _t,
|
|
210
|
-
freezeMethods:
|
|
210
|
+
freezeMethods: En,
|
|
211
211
|
toObjectSet: Tn,
|
|
212
212
|
toCamelCase: vn,
|
|
213
213
|
noop: kn,
|
|
214
214
|
toFiniteNumber: On,
|
|
215
215
|
findKey: yt,
|
|
216
|
-
global:
|
|
216
|
+
global: Z,
|
|
217
217
|
isContextDefined: bt,
|
|
218
218
|
isSpecCompliantForm: xn,
|
|
219
|
-
toJSONObject:
|
|
220
|
-
isAsyncFn:
|
|
221
|
-
isThenable:
|
|
219
|
+
toJSONObject: In,
|
|
220
|
+
isAsyncFn: An,
|
|
221
|
+
isThenable: Cn,
|
|
222
222
|
setImmediate: wt,
|
|
223
|
-
asap:
|
|
223
|
+
asap: $n
|
|
224
224
|
};
|
|
225
225
|
function b(e, t, n, s, r) {
|
|
226
226
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
@@ -272,25 +272,25 @@ b.from = (e, t, n, s, r, o) => {
|
|
|
272
272
|
return d !== Error.prototype;
|
|
273
273
|
}, (a) => a !== "isAxiosError"), b.call(i, e.message, t, n, s, r), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
274
274
|
};
|
|
275
|
-
const
|
|
276
|
-
function
|
|
275
|
+
const Un = null;
|
|
276
|
+
function Pe(e) {
|
|
277
277
|
return l.isPlainObject(e) || l.isArray(e);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Rt(e) {
|
|
280
280
|
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
281
281
|
}
|
|
282
282
|
function Xe(e, t, n) {
|
|
283
283
|
return e ? e.concat(t).map(function(r, o) {
|
|
284
|
-
return r =
|
|
284
|
+
return r = Rt(r), !n && o ? "[" + r + "]" : r;
|
|
285
285
|
}).join(n ? "." : "") : t;
|
|
286
286
|
}
|
|
287
287
|
function Dn(e) {
|
|
288
|
-
return l.isArray(e) && !e.some(
|
|
288
|
+
return l.isArray(e) && !e.some(Pe);
|
|
289
289
|
}
|
|
290
290
|
const Ln = l.toFlatObject(l, {}, null, function(t) {
|
|
291
291
|
return /^is[A-Z]/.test(t);
|
|
292
292
|
});
|
|
293
|
-
function
|
|
293
|
+
function ke(e, t, n) {
|
|
294
294
|
if (!l.isObject(e))
|
|
295
295
|
throw new TypeError("target must be an object");
|
|
296
296
|
t = t || new FormData(), n = l.toFlatObject(n, {
|
|
@@ -317,39 +317,39 @@ function Re(e, t, n) {
|
|
|
317
317
|
if (l.endsWith(_, "{}"))
|
|
318
318
|
_ = s ? _ : _.slice(0, -2), h = JSON.stringify(h);
|
|
319
319
|
else if (l.isArray(h) && Dn(h) || (l.isFileList(h) || l.endsWith(_, "[]")) && (O = l.toArray(h)))
|
|
320
|
-
return _ =
|
|
321
|
-
!(l.isUndefined(
|
|
320
|
+
return _ = Rt(_), O.forEach(function($, K) {
|
|
321
|
+
!(l.isUndefined($) || $ === null) && t.append(
|
|
322
322
|
// eslint-disable-next-line no-nested-ternary
|
|
323
323
|
i === !0 ? Xe([_], K, o) : i === null ? _ : _ + "[]",
|
|
324
|
-
c(
|
|
324
|
+
c($)
|
|
325
325
|
);
|
|
326
326
|
}), !1;
|
|
327
327
|
}
|
|
328
|
-
return
|
|
328
|
+
return Pe(h) ? !0 : (t.append(Xe(g, _, o), c(h)), !1);
|
|
329
329
|
}
|
|
330
|
-
const m = [],
|
|
330
|
+
const m = [], E = Object.assign(Ln, {
|
|
331
331
|
defaultVisitor: u,
|
|
332
332
|
convertValue: c,
|
|
333
|
-
isVisitable:
|
|
333
|
+
isVisitable: Pe
|
|
334
334
|
});
|
|
335
|
-
function
|
|
335
|
+
function A(h, _) {
|
|
336
336
|
if (!l.isUndefined(h)) {
|
|
337
337
|
if (m.indexOf(h) !== -1)
|
|
338
338
|
throw Error("Circular reference detected in " + _.join("."));
|
|
339
|
-
m.push(h), l.forEach(h, function(O,
|
|
339
|
+
m.push(h), l.forEach(h, function(O, C) {
|
|
340
340
|
(!(l.isUndefined(O) || O === null) && r.call(
|
|
341
341
|
t,
|
|
342
342
|
O,
|
|
343
|
-
l.isString(
|
|
343
|
+
l.isString(C) ? C.trim() : C,
|
|
344
344
|
_,
|
|
345
|
-
|
|
346
|
-
)) === !0 &&
|
|
345
|
+
E
|
|
346
|
+
)) === !0 && A(O, _ ? _.concat(C) : [C]);
|
|
347
347
|
}), m.pop();
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
if (!l.isObject(e))
|
|
351
351
|
throw new TypeError("data must be an object");
|
|
352
|
-
return
|
|
352
|
+
return A(e), t;
|
|
353
353
|
}
|
|
354
354
|
function Qe(e) {
|
|
355
355
|
const t = {
|
|
@@ -365,14 +365,14 @@ function Qe(e) {
|
|
|
365
365
|
return t[s];
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
this._pairs = [], e &&
|
|
368
|
+
function qe(e, t) {
|
|
369
|
+
this._pairs = [], e && ke(e, this, t);
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
|
|
371
|
+
const Et = qe.prototype;
|
|
372
|
+
Et.append = function(t, n) {
|
|
373
373
|
this._pairs.push([t, n]);
|
|
374
374
|
};
|
|
375
|
-
|
|
375
|
+
Et.toString = function(t) {
|
|
376
376
|
const n = t ? function(s) {
|
|
377
377
|
return t.call(this, s, Qe);
|
|
378
378
|
} : Qe;
|
|
@@ -392,7 +392,7 @@ function Tt(e, t, n) {
|
|
|
392
392
|
});
|
|
393
393
|
const r = n && n.serialize;
|
|
394
394
|
let o;
|
|
395
|
-
if (r ? o = r(t, n) : o = l.isURLSearchParams(t) ? t.toString() : new
|
|
395
|
+
if (r ? o = r(t, n) : o = l.isURLSearchParams(t) ? t.toString() : new qe(t, n).toString(s), o) {
|
|
396
396
|
const i = e.indexOf("#");
|
|
397
397
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
398
398
|
}
|
|
@@ -456,30 +456,30 @@ const kt = {
|
|
|
456
456
|
silentJSONParsing: !0,
|
|
457
457
|
forcedJSONParsing: !0,
|
|
458
458
|
clarifyTimeoutError: !1
|
|
459
|
-
},
|
|
459
|
+
}, Nn = typeof URLSearchParams < "u" ? URLSearchParams : qe, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Bn = {
|
|
460
460
|
isBrowser: !0,
|
|
461
461
|
classes: {
|
|
462
|
-
URLSearchParams:
|
|
463
|
-
FormData:
|
|
462
|
+
URLSearchParams: Nn,
|
|
463
|
+
FormData: Fn,
|
|
464
464
|
Blob: jn
|
|
465
465
|
},
|
|
466
466
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
467
|
-
},
|
|
468
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qn =
|
|
467
|
+
}, He = typeof window < "u" && typeof document < "u", Ne = typeof navigator == "object" && navigator || void 0, Mn = He && (!Ne || ["ReactNative", "NativeScript", "NS"].indexOf(Ne.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
468
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qn = He && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
469
469
|
__proto__: null,
|
|
470
|
-
hasBrowserEnv:
|
|
470
|
+
hasBrowserEnv: He,
|
|
471
471
|
hasStandardBrowserEnv: Mn,
|
|
472
472
|
hasStandardBrowserWebWorkerEnv: Vn,
|
|
473
|
-
navigator:
|
|
473
|
+
navigator: Ne,
|
|
474
474
|
origin: qn
|
|
475
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
475
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
476
476
|
...Hn,
|
|
477
477
|
...Bn
|
|
478
478
|
};
|
|
479
479
|
function zn(e, t) {
|
|
480
|
-
return
|
|
480
|
+
return ke(e, new N.classes.URLSearchParams(), Object.assign({
|
|
481
481
|
visitor: function(n, s, r, o) {
|
|
482
|
-
return
|
|
482
|
+
return N.isNode && l.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
483
483
|
}
|
|
484
484
|
}, t));
|
|
485
485
|
}
|
|
@@ -539,7 +539,7 @@ const pe = {
|
|
|
539
539
|
return zn(t, this.formSerializer).toString();
|
|
540
540
|
if ((a = l.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
541
541
|
const d = this.env && this.env.FormData;
|
|
542
|
-
return
|
|
542
|
+
return ke(
|
|
543
543
|
a ? { "files[]": t } : t,
|
|
544
544
|
d && new d(),
|
|
545
545
|
this.formSerializer
|
|
@@ -573,8 +573,8 @@ const pe = {
|
|
|
573
573
|
maxContentLength: -1,
|
|
574
574
|
maxBodyLength: -1,
|
|
575
575
|
env: {
|
|
576
|
-
FormData:
|
|
577
|
-
Blob:
|
|
576
|
+
FormData: N.classes.FormData,
|
|
577
|
+
Blob: N.classes.Blob
|
|
578
578
|
},
|
|
579
579
|
validateStatus: function(t) {
|
|
580
580
|
return t >= 200 && t < 300;
|
|
@@ -618,8 +618,8 @@ const Xn = l.toObjectSet([
|
|
|
618
618
|
function ie(e) {
|
|
619
619
|
return e && String(e).trim().toLowerCase();
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(
|
|
621
|
+
function be(e) {
|
|
622
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(be) : String(e);
|
|
623
623
|
}
|
|
624
624
|
function Gn(e) {
|
|
625
625
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -629,7 +629,7 @@ function Gn(e) {
|
|
|
629
629
|
return t;
|
|
630
630
|
}
|
|
631
631
|
const Yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
632
|
-
function
|
|
632
|
+
function Ce(e, t, n, s, r) {
|
|
633
633
|
if (l.isFunction(s))
|
|
634
634
|
return s.call(this, t, n);
|
|
635
635
|
if (r && (t = n), !!l.isString(t)) {
|
|
@@ -664,7 +664,7 @@ let B = class {
|
|
|
664
664
|
if (!u)
|
|
665
665
|
throw new Error("header name must be a non-empty string");
|
|
666
666
|
const m = l.findKey(r, u);
|
|
667
|
-
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || d] =
|
|
667
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || d] = be(a));
|
|
668
668
|
}
|
|
669
669
|
const i = (a, d) => l.forEach(a, (c, u) => o(c, u, d));
|
|
670
670
|
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -698,7 +698,7 @@ let B = class {
|
|
|
698
698
|
has(t, n) {
|
|
699
699
|
if (t = ie(t), t) {
|
|
700
700
|
const s = l.findKey(this, t);
|
|
701
|
-
return !!(s && this[s] !== void 0 && (!n ||
|
|
701
|
+
return !!(s && this[s] !== void 0 && (!n || Ce(this, this[s], s, n)));
|
|
702
702
|
}
|
|
703
703
|
return !1;
|
|
704
704
|
}
|
|
@@ -708,7 +708,7 @@ let B = class {
|
|
|
708
708
|
function o(i) {
|
|
709
709
|
if (i = ie(i), i) {
|
|
710
710
|
const a = l.findKey(s, i);
|
|
711
|
-
a && (!n ||
|
|
711
|
+
a && (!n || Ce(s, s[a], a, n)) && (delete s[a], r = !0);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
return l.isArray(t) ? t.forEach(o) : o(t), r;
|
|
@@ -718,7 +718,7 @@ let B = class {
|
|
|
718
718
|
let s = n.length, r = !1;
|
|
719
719
|
for (; s--; ) {
|
|
720
720
|
const o = n[s];
|
|
721
|
-
(!t ||
|
|
721
|
+
(!t || Ce(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
|
722
722
|
}
|
|
723
723
|
return r;
|
|
724
724
|
}
|
|
@@ -727,11 +727,11 @@ let B = class {
|
|
|
727
727
|
return l.forEach(this, (r, o) => {
|
|
728
728
|
const i = l.findKey(s, o);
|
|
729
729
|
if (i) {
|
|
730
|
-
n[i] =
|
|
730
|
+
n[i] = be(r), delete n[o];
|
|
731
731
|
return;
|
|
732
732
|
}
|
|
733
733
|
const a = t ? Zn(o) : String(o).trim();
|
|
734
|
-
a !== o && delete n[o], n[a] =
|
|
734
|
+
a !== o && delete n[o], n[a] = be(r), s[a] = !0;
|
|
735
735
|
}), this;
|
|
736
736
|
}
|
|
737
737
|
concat(...t) {
|
|
@@ -782,7 +782,7 @@ l.reduceDescriptors(B.prototype, ({ value: e }, t) => {
|
|
|
782
782
|
};
|
|
783
783
|
});
|
|
784
784
|
l.freezeMethods(B);
|
|
785
|
-
function
|
|
785
|
+
function $e(e, t) {
|
|
786
786
|
const n = this || pe, s = t || n, r = B.from(s.headers);
|
|
787
787
|
let o = s.data;
|
|
788
788
|
return l.forEach(e, function(a) {
|
|
@@ -798,7 +798,7 @@ function oe(e, t, n) {
|
|
|
798
798
|
l.inherits(oe, b, {
|
|
799
799
|
__CANCEL__: !0
|
|
800
800
|
});
|
|
801
|
-
function
|
|
801
|
+
function It(e, t, n) {
|
|
802
802
|
const s = n.config.validateStatus;
|
|
803
803
|
!n.status || !s || s(n.status) ? e(n) : t(new b(
|
|
804
804
|
"Request failed with status code " + n.status,
|
|
@@ -819,13 +819,13 @@ function ns(e, t) {
|
|
|
819
819
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
820
820
|
const c = Date.now(), u = s[o];
|
|
821
821
|
i || (i = c), n[r] = d, s[r] = c;
|
|
822
|
-
let m = o,
|
|
822
|
+
let m = o, E = 0;
|
|
823
823
|
for (; m !== r; )
|
|
824
|
-
|
|
824
|
+
E += n[m++], m = m % e;
|
|
825
825
|
if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - i < t)
|
|
826
826
|
return;
|
|
827
|
-
const
|
|
828
|
-
return
|
|
827
|
+
const A = u && c - u;
|
|
828
|
+
return A ? Math.round(E * 1e3 / A) : void 0;
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
831
|
function ss(e, t) {
|
|
@@ -840,7 +840,7 @@ function ss(e, t) {
|
|
|
840
840
|
}, s - m)));
|
|
841
841
|
}, () => r && i(r)];
|
|
842
842
|
}
|
|
843
|
-
const
|
|
843
|
+
const we = (e, t, n = 3) => {
|
|
844
844
|
let s = 0;
|
|
845
845
|
const r = ns(50, 250);
|
|
846
846
|
return ss((o) => {
|
|
@@ -866,10 +866,10 @@ const be = (e, t, n = 3) => {
|
|
|
866
866
|
total: e,
|
|
867
867
|
loaded: s
|
|
868
868
|
}), t[1]];
|
|
869
|
-
}, et = (e) => (...t) => l.asap(() => e(...t)), rs =
|
|
870
|
-
new URL(
|
|
871
|
-
|
|
872
|
-
) : () => !0, os =
|
|
869
|
+
}, et = (e) => (...t) => l.asap(() => e(...t)), rs = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
870
|
+
new URL(N.origin),
|
|
871
|
+
N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
|
|
872
|
+
) : () => !0, os = N.hasStandardBrowserEnv ? (
|
|
873
873
|
// Standard browser envs support document.cookie
|
|
874
874
|
{
|
|
875
875
|
write(e, t, n, s, r, o) {
|
|
@@ -902,22 +902,22 @@ function is(e) {
|
|
|
902
902
|
function as(e, t) {
|
|
903
903
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function At(e, t, n) {
|
|
906
906
|
let s = !is(t);
|
|
907
907
|
return e && (s || n == !1) ? as(e, t) : t;
|
|
908
908
|
}
|
|
909
909
|
const tt = (e) => e instanceof B ? { ...e } : e;
|
|
910
|
-
function
|
|
910
|
+
function te(e, t) {
|
|
911
911
|
t = t || {};
|
|
912
912
|
const n = {};
|
|
913
|
-
function s(c, u, m,
|
|
914
|
-
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless:
|
|
913
|
+
function s(c, u, m, E) {
|
|
914
|
+
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless: E }, c, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
915
915
|
}
|
|
916
|
-
function r(c, u, m,
|
|
916
|
+
function r(c, u, m, E) {
|
|
917
917
|
if (l.isUndefined(u)) {
|
|
918
918
|
if (!l.isUndefined(c))
|
|
919
|
-
return s(void 0, c, m,
|
|
920
|
-
} else return s(c, u, m,
|
|
919
|
+
return s(void 0, c, m, E);
|
|
920
|
+
} else return s(c, u, m, E);
|
|
921
921
|
}
|
|
922
922
|
function o(c, u) {
|
|
923
923
|
if (!l.isUndefined(u))
|
|
@@ -967,60 +967,60 @@ function ee(e, t) {
|
|
|
967
967
|
headers: (c, u, m) => r(tt(c), tt(u), m, !0)
|
|
968
968
|
};
|
|
969
969
|
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
970
|
-
const m = d[u] || r,
|
|
971
|
-
l.isUndefined(
|
|
970
|
+
const m = d[u] || r, E = m(e[u], t[u], u);
|
|
971
|
+
l.isUndefined(E) && m !== a || (n[u] = E);
|
|
972
972
|
}), n;
|
|
973
973
|
}
|
|
974
|
-
const
|
|
975
|
-
const t =
|
|
974
|
+
const Ct = (e) => {
|
|
975
|
+
const t = te({}, e);
|
|
976
976
|
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
977
|
-
t.headers = i = B.from(i), t.url = Tt(
|
|
977
|
+
t.headers = i = B.from(i), t.url = Tt(At(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
978
978
|
"Authorization",
|
|
979
979
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
980
980
|
);
|
|
981
981
|
let d;
|
|
982
982
|
if (l.isFormData(n)) {
|
|
983
|
-
if (
|
|
983
|
+
if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
|
|
984
984
|
i.setContentType(void 0);
|
|
985
985
|
else if ((d = i.getContentType()) !== !1) {
|
|
986
986
|
const [c, ...u] = d ? d.split(";").map((m) => m.trim()).filter(Boolean) : [];
|
|
987
987
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
if (
|
|
990
|
+
if (N.hasStandardBrowserEnv && (s && l.isFunction(s) && (s = s(t)), s || s !== !1 && rs(t.url))) {
|
|
991
991
|
const c = r && o && os.read(o);
|
|
992
992
|
c && i.set(r, c);
|
|
993
993
|
}
|
|
994
994
|
return t;
|
|
995
995
|
}, ls = typeof XMLHttpRequest < "u", cs = ls && function(e) {
|
|
996
996
|
return new Promise(function(n, s) {
|
|
997
|
-
const r =
|
|
997
|
+
const r = Ct(e);
|
|
998
998
|
let o = r.data;
|
|
999
999
|
const i = B.from(r.headers).normalize();
|
|
1000
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = r, u, m,
|
|
1000
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = r, u, m, E, A, h;
|
|
1001
1001
|
function _() {
|
|
1002
|
-
|
|
1002
|
+
A && A(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
1003
1003
|
}
|
|
1004
1004
|
let g = new XMLHttpRequest();
|
|
1005
1005
|
g.open(r.method.toUpperCase(), r.url, !0), g.timeout = r.timeout;
|
|
1006
1006
|
function O() {
|
|
1007
1007
|
if (!g)
|
|
1008
1008
|
return;
|
|
1009
|
-
const
|
|
1009
|
+
const $ = B.from(
|
|
1010
1010
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
1011
|
-
),
|
|
1011
|
+
), F = {
|
|
1012
1012
|
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
1013
1013
|
status: g.status,
|
|
1014
1014
|
statusText: g.statusText,
|
|
1015
|
-
headers:
|
|
1015
|
+
headers: $,
|
|
1016
1016
|
config: e,
|
|
1017
1017
|
request: g
|
|
1018
1018
|
};
|
|
1019
|
-
|
|
1020
|
-
n(
|
|
1021
|
-
}, function(
|
|
1022
|
-
s(
|
|
1023
|
-
},
|
|
1019
|
+
It(function(G) {
|
|
1020
|
+
n(G), _();
|
|
1021
|
+
}, function(G) {
|
|
1022
|
+
s(G), _();
|
|
1023
|
+
}, F), g = null;
|
|
1024
1024
|
}
|
|
1025
1025
|
"onloadend" in g ? g.onloadend = O : g.onreadystatechange = function() {
|
|
1026
1026
|
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(O);
|
|
@@ -1030,21 +1030,21 @@ const It = (e) => {
|
|
|
1030
1030
|
s(new b("Network Error", b.ERR_NETWORK, e, g)), g = null;
|
|
1031
1031
|
}, g.ontimeout = function() {
|
|
1032
1032
|
let K = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1033
|
-
const
|
|
1033
|
+
const F = r.transitional || kt;
|
|
1034
1034
|
r.timeoutErrorMessage && (K = r.timeoutErrorMessage), s(new b(
|
|
1035
1035
|
K,
|
|
1036
|
-
|
|
1036
|
+
F.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1037
1037
|
e,
|
|
1038
1038
|
g
|
|
1039
1039
|
)), g = null;
|
|
1040
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(K,
|
|
1041
|
-
g.setRequestHeader(
|
|
1042
|
-
}), l.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), a && a !== "json" && (g.responseType = r.responseType), c && ([
|
|
1043
|
-
g && (s(
|
|
1040
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(K, F) {
|
|
1041
|
+
g.setRequestHeader(F, K);
|
|
1042
|
+
}), l.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), a && a !== "json" && (g.responseType = r.responseType), c && ([E, h] = we(c, !0), g.addEventListener("progress", E)), d && g.upload && ([m, A] = we(d), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", A)), (r.cancelToken || r.signal) && (u = ($) => {
|
|
1043
|
+
g && (s(!$ || $.type ? new oe(null, e, g) : $), g.abort(), g = null);
|
|
1044
1044
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1045
|
-
const
|
|
1046
|
-
if (
|
|
1047
|
-
s(new b("Unsupported protocol " +
|
|
1045
|
+
const C = ts(r.url);
|
|
1046
|
+
if (C && N.protocols.indexOf(C) === -1) {
|
|
1047
|
+
s(new b("Unsupported protocol " + C + ":", b.ERR_BAD_REQUEST, e));
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
1050
|
g.send(o || null);
|
|
@@ -1115,8 +1115,8 @@ const It = (e) => {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
let m = u.byteLength;
|
|
1117
1117
|
if (n) {
|
|
1118
|
-
let
|
|
1119
|
-
n(
|
|
1118
|
+
let E = o += m;
|
|
1119
|
+
n(E);
|
|
1120
1120
|
}
|
|
1121
1121
|
d.enqueue(new Uint8Array(u));
|
|
1122
1122
|
} catch (c) {
|
|
@@ -1129,15 +1129,15 @@ const It = (e) => {
|
|
|
1129
1129
|
}, {
|
|
1130
1130
|
highWaterMark: 2
|
|
1131
1131
|
});
|
|
1132
|
-
},
|
|
1132
|
+
}, Oe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", $t = Oe && typeof ReadableStream == "function", ms = Oe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ut = (e, ...t) => {
|
|
1133
1133
|
try {
|
|
1134
1134
|
return !!e(...t);
|
|
1135
1135
|
} catch {
|
|
1136
1136
|
return !1;
|
|
1137
1137
|
}
|
|
1138
|
-
}, hs =
|
|
1138
|
+
}, hs = $t && Ut(() => {
|
|
1139
1139
|
let e = !1;
|
|
1140
|
-
const t = new Request(
|
|
1140
|
+
const t = new Request(N.origin, {
|
|
1141
1141
|
body: new ReadableStream(),
|
|
1142
1142
|
method: "POST",
|
|
1143
1143
|
get duplex() {
|
|
@@ -1145,12 +1145,12 @@ const It = (e) => {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}).headers.has("Content-Type");
|
|
1147
1147
|
return e && !t;
|
|
1148
|
-
}), st = 64 * 1024,
|
|
1149
|
-
stream:
|
|
1148
|
+
}), st = 64 * 1024, Fe = $t && Ut(() => l.isReadableStream(new Response("").body)), Se = {
|
|
1149
|
+
stream: Fe && ((e) => e.body)
|
|
1150
1150
|
};
|
|
1151
|
-
|
|
1151
|
+
Oe && ((e) => {
|
|
1152
1152
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1153
|
-
!
|
|
1153
|
+
!Se[t] && (Se[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, s) => {
|
|
1154
1154
|
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, s);
|
|
1155
1155
|
});
|
|
1156
1156
|
});
|
|
@@ -1161,7 +1161,7 @@ const gs = async (e) => {
|
|
|
1161
1161
|
if (l.isBlob(e))
|
|
1162
1162
|
return e.size;
|
|
1163
1163
|
if (l.isSpecCompliantForm(e))
|
|
1164
|
-
return (await new Request(
|
|
1164
|
+
return (await new Request(N.origin, {
|
|
1165
1165
|
method: "POST",
|
|
1166
1166
|
body: e
|
|
1167
1167
|
}).arrayBuffer()).byteLength;
|
|
@@ -1172,7 +1172,7 @@ const gs = async (e) => {
|
|
|
1172
1172
|
}, ys = async (e, t) => {
|
|
1173
1173
|
const n = l.toFiniteNumber(e.getContentLength());
|
|
1174
1174
|
return n ?? gs(t);
|
|
1175
|
-
}, bs =
|
|
1175
|
+
}, bs = Oe && (async (e) => {
|
|
1176
1176
|
let {
|
|
1177
1177
|
url: t,
|
|
1178
1178
|
method: n,
|
|
@@ -1185,66 +1185,66 @@ const gs = async (e) => {
|
|
|
1185
1185
|
responseType: c,
|
|
1186
1186
|
headers: u,
|
|
1187
1187
|
withCredentials: m = "same-origin",
|
|
1188
|
-
fetchOptions:
|
|
1189
|
-
} =
|
|
1188
|
+
fetchOptions: E
|
|
1189
|
+
} = Ct(e);
|
|
1190
1190
|
c = c ? (c + "").toLowerCase() : "text";
|
|
1191
|
-
let
|
|
1192
|
-
const _ =
|
|
1193
|
-
|
|
1191
|
+
let A = us([r, o && o.toAbortSignal()], i), h;
|
|
1192
|
+
const _ = A && A.unsubscribe && (() => {
|
|
1193
|
+
A.unsubscribe();
|
|
1194
1194
|
});
|
|
1195
1195
|
let g;
|
|
1196
1196
|
try {
|
|
1197
1197
|
if (d && hs && n !== "get" && n !== "head" && (g = await ys(u, s)) !== 0) {
|
|
1198
|
-
let
|
|
1198
|
+
let F = new Request(t, {
|
|
1199
1199
|
method: "POST",
|
|
1200
1200
|
body: s,
|
|
1201
1201
|
duplex: "half"
|
|
1202
1202
|
}), W;
|
|
1203
|
-
if (l.isFormData(s) && (W =
|
|
1204
|
-
const [
|
|
1203
|
+
if (l.isFormData(s) && (W = F.headers.get("content-type")) && u.setContentType(W), F.body) {
|
|
1204
|
+
const [G, me] = Ze(
|
|
1205
1205
|
g,
|
|
1206
|
-
|
|
1206
|
+
we(et(d))
|
|
1207
1207
|
);
|
|
1208
|
-
s = nt(
|
|
1208
|
+
s = nt(F.body, st, G, me);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
l.isString(m) || (m = m ? "include" : "omit");
|
|
1212
1212
|
const O = "credentials" in Request.prototype;
|
|
1213
1213
|
h = new Request(t, {
|
|
1214
|
-
...
|
|
1215
|
-
signal:
|
|
1214
|
+
...E,
|
|
1215
|
+
signal: A,
|
|
1216
1216
|
method: n.toUpperCase(),
|
|
1217
1217
|
headers: u.normalize().toJSON(),
|
|
1218
1218
|
body: s,
|
|
1219
1219
|
duplex: "half",
|
|
1220
1220
|
credentials: O ? m : void 0
|
|
1221
1221
|
});
|
|
1222
|
-
let
|
|
1223
|
-
const
|
|
1224
|
-
if (
|
|
1225
|
-
const
|
|
1226
|
-
["status", "statusText", "headers"].forEach((
|
|
1227
|
-
|
|
1222
|
+
let C = await fetch(h);
|
|
1223
|
+
const $ = Fe && (c === "stream" || c === "response");
|
|
1224
|
+
if (Fe && (a || $ && _)) {
|
|
1225
|
+
const F = {};
|
|
1226
|
+
["status", "statusText", "headers"].forEach((Je) => {
|
|
1227
|
+
F[Je] = C[Je];
|
|
1228
1228
|
});
|
|
1229
|
-
const W = l.toFiniteNumber(
|
|
1229
|
+
const W = l.toFiniteNumber(C.headers.get("content-length")), [G, me] = a && Ze(
|
|
1230
1230
|
W,
|
|
1231
|
-
|
|
1231
|
+
we(et(a), !0)
|
|
1232
1232
|
) || [];
|
|
1233
|
-
|
|
1234
|
-
nt(
|
|
1233
|
+
C = new Response(
|
|
1234
|
+
nt(C.body, st, G, () => {
|
|
1235
1235
|
me && me(), _ && _();
|
|
1236
1236
|
}),
|
|
1237
|
-
|
|
1237
|
+
F
|
|
1238
1238
|
);
|
|
1239
1239
|
}
|
|
1240
1240
|
c = c || "text";
|
|
1241
|
-
let K = await
|
|
1242
|
-
return
|
|
1243
|
-
|
|
1241
|
+
let K = await Se[l.findKey(Se, c) || "text"](C, e);
|
|
1242
|
+
return !$ && _ && _(), await new Promise((F, W) => {
|
|
1243
|
+
It(F, W, {
|
|
1244
1244
|
data: K,
|
|
1245
|
-
headers: B.from(
|
|
1246
|
-
status:
|
|
1247
|
-
statusText:
|
|
1245
|
+
headers: B.from(C.headers),
|
|
1246
|
+
status: C.status,
|
|
1247
|
+
statusText: C.statusText,
|
|
1248
1248
|
config: e,
|
|
1249
1249
|
request: h
|
|
1250
1250
|
});
|
|
@@ -1257,12 +1257,12 @@ const gs = async (e) => {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
) : b.from(O, O && O.code, e, h);
|
|
1259
1259
|
}
|
|
1260
|
-
}),
|
|
1261
|
-
http:
|
|
1260
|
+
}), je = {
|
|
1261
|
+
http: Un,
|
|
1262
1262
|
xhr: cs,
|
|
1263
1263
|
fetch: bs
|
|
1264
1264
|
};
|
|
1265
|
-
l.forEach(
|
|
1265
|
+
l.forEach(je, (e, t) => {
|
|
1266
1266
|
if (e) {
|
|
1267
1267
|
try {
|
|
1268
1268
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1280,7 +1280,7 @@ const rt = (e) => `- ${e}`, _s = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1280
1280
|
for (let o = 0; o < t; o++) {
|
|
1281
1281
|
n = e[o];
|
|
1282
1282
|
let i;
|
|
1283
|
-
if (s = n, !_s(n) && (s =
|
|
1283
|
+
if (s = n, !_s(n) && (s = je[(i = String(n)).toLowerCase()], s === void 0))
|
|
1284
1284
|
throw new b(`Unknown adapter '${i}'`);
|
|
1285
1285
|
if (s)
|
|
1286
1286
|
break;
|
|
@@ -1300,38 +1300,38 @@ const rt = (e) => `- ${e}`, _s = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return s;
|
|
1302
1302
|
},
|
|
1303
|
-
adapters:
|
|
1303
|
+
adapters: je
|
|
1304
1304
|
};
|
|
1305
|
-
function
|
|
1305
|
+
function Ue(e) {
|
|
1306
1306
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1307
1307
|
throw new oe(null, e);
|
|
1308
1308
|
}
|
|
1309
1309
|
function ot(e) {
|
|
1310
|
-
return
|
|
1310
|
+
return Ue(e), e.headers = B.from(e.headers), e.data = $e.call(
|
|
1311
1311
|
e,
|
|
1312
1312
|
e.transformRequest
|
|
1313
1313
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Dt.getAdapter(e.adapter || pe.adapter)(e).then(function(s) {
|
|
1314
|
-
return
|
|
1314
|
+
return Ue(e), s.data = $e.call(
|
|
1315
1315
|
e,
|
|
1316
1316
|
e.transformResponse,
|
|
1317
1317
|
s
|
|
1318
1318
|
), s.headers = B.from(s.headers), s;
|
|
1319
1319
|
}, function(s) {
|
|
1320
|
-
return xt(s) || (
|
|
1320
|
+
return xt(s) || (Ue(e), s && s.response && (s.response.data = $e.call(
|
|
1321
1321
|
e,
|
|
1322
1322
|
e.transformResponse,
|
|
1323
1323
|
s.response
|
|
1324
1324
|
), s.response.headers = B.from(s.response.headers))), Promise.reject(s);
|
|
1325
1325
|
});
|
|
1326
1326
|
}
|
|
1327
|
-
const Lt = "1.8.4",
|
|
1327
|
+
const Lt = "1.8.4", xe = {};
|
|
1328
1328
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1329
|
-
|
|
1329
|
+
xe[e] = function(s) {
|
|
1330
1330
|
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1331
1331
|
};
|
|
1332
1332
|
});
|
|
1333
1333
|
const it = {};
|
|
1334
|
-
|
|
1334
|
+
xe.transitional = function(t, n, s) {
|
|
1335
1335
|
function r(o, i) {
|
|
1336
1336
|
return "[Axios v" + Lt + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
|
|
1337
1337
|
}
|
|
@@ -1349,7 +1349,7 @@ ke.transitional = function(t, n, s) {
|
|
|
1349
1349
|
)), t ? t(o, i, a) : !0;
|
|
1350
1350
|
};
|
|
1351
1351
|
};
|
|
1352
|
-
|
|
1352
|
+
xe.spelling = function(t) {
|
|
1353
1353
|
return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
1354
1354
|
};
|
|
1355
1355
|
function ws(e, t, n) {
|
|
@@ -1369,11 +1369,11 @@ function ws(e, t, n) {
|
|
|
1369
1369
|
throw new b("Unknown option " + o, b.ERR_BAD_OPTION);
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const _e = {
|
|
1373
1373
|
assertOptions: ws,
|
|
1374
|
-
validators:
|
|
1375
|
-
}, z =
|
|
1376
|
-
let
|
|
1374
|
+
validators: xe
|
|
1375
|
+
}, z = _e.validators;
|
|
1376
|
+
let ee = class {
|
|
1377
1377
|
constructor(t) {
|
|
1378
1378
|
this.defaults = t, this.interceptors = {
|
|
1379
1379
|
request: new Ge(),
|
|
@@ -1406,18 +1406,18 @@ let Z = class {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
_request(t, n) {
|
|
1409
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1409
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
|
|
1410
1410
|
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
1411
|
-
s !== void 0 &&
|
|
1411
|
+
s !== void 0 && _e.assertOptions(s, {
|
|
1412
1412
|
silentJSONParsing: z.transitional(z.boolean),
|
|
1413
1413
|
forcedJSONParsing: z.transitional(z.boolean),
|
|
1414
1414
|
clarifyTimeoutError: z.transitional(z.boolean)
|
|
1415
1415
|
}, !1), r != null && (l.isFunction(r) ? n.paramsSerializer = {
|
|
1416
1416
|
serialize: r
|
|
1417
|
-
} :
|
|
1417
|
+
} : _e.assertOptions(r, {
|
|
1418
1418
|
encode: z.function,
|
|
1419
1419
|
serialize: z.function
|
|
1420
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1420
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), _e.assertOptions(n, {
|
|
1421
1421
|
baseUrl: z.spelling("baseURL"),
|
|
1422
1422
|
withXsrfToken: z.spelling("withXSRFToken")
|
|
1423
1423
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1440,42 +1440,42 @@ let Z = class {
|
|
|
1440
1440
|
this.interceptors.response.forEach(function(_) {
|
|
1441
1441
|
c.push(_.fulfilled, _.rejected);
|
|
1442
1442
|
});
|
|
1443
|
-
let u, m = 0,
|
|
1443
|
+
let u, m = 0, E;
|
|
1444
1444
|
if (!d) {
|
|
1445
1445
|
const h = [ot.bind(this), void 0];
|
|
1446
|
-
for (h.unshift.apply(h, a), h.push.apply(h, c),
|
|
1446
|
+
for (h.unshift.apply(h, a), h.push.apply(h, c), E = h.length, u = Promise.resolve(n); m < E; )
|
|
1447
1447
|
u = u.then(h[m++], h[m++]);
|
|
1448
1448
|
return u;
|
|
1449
1449
|
}
|
|
1450
|
-
|
|
1451
|
-
let
|
|
1452
|
-
for (m = 0; m <
|
|
1450
|
+
E = a.length;
|
|
1451
|
+
let A = n;
|
|
1452
|
+
for (m = 0; m < E; ) {
|
|
1453
1453
|
const h = a[m++], _ = a[m++];
|
|
1454
1454
|
try {
|
|
1455
|
-
|
|
1455
|
+
A = h(A);
|
|
1456
1456
|
} catch (g) {
|
|
1457
1457
|
_.call(this, g);
|
|
1458
1458
|
break;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
try {
|
|
1462
|
-
u = ot.call(this,
|
|
1462
|
+
u = ot.call(this, A);
|
|
1463
1463
|
} catch (h) {
|
|
1464
1464
|
return Promise.reject(h);
|
|
1465
1465
|
}
|
|
1466
|
-
for (m = 0,
|
|
1466
|
+
for (m = 0, E = c.length; m < E; )
|
|
1467
1467
|
u = u.then(c[m++], c[m++]);
|
|
1468
1468
|
return u;
|
|
1469
1469
|
}
|
|
1470
1470
|
getUri(t) {
|
|
1471
|
-
t =
|
|
1472
|
-
const n =
|
|
1471
|
+
t = te(this.defaults, t);
|
|
1472
|
+
const n = At(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1473
1473
|
return Tt(n, t.params, t.paramsSerializer);
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
1476
|
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1477
|
-
|
|
1478
|
-
return this.request(
|
|
1477
|
+
ee.prototype[t] = function(n, s) {
|
|
1478
|
+
return this.request(te(s || {}, {
|
|
1479
1479
|
method: t,
|
|
1480
1480
|
url: n,
|
|
1481
1481
|
data: (s || {}).data
|
|
@@ -1485,7 +1485,7 @@ l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1485
1485
|
l.forEach(["post", "put", "patch"], function(t) {
|
|
1486
1486
|
function n(s) {
|
|
1487
1487
|
return function(o, i, a) {
|
|
1488
|
-
return this.request(
|
|
1488
|
+
return this.request(te(a || {}, {
|
|
1489
1489
|
method: t,
|
|
1490
1490
|
headers: s ? {
|
|
1491
1491
|
"Content-Type": "multipart/form-data"
|
|
@@ -1495,7 +1495,7 @@ l.forEach(["post", "put", "patch"], function(t) {
|
|
|
1495
1495
|
}));
|
|
1496
1496
|
};
|
|
1497
1497
|
}
|
|
1498
|
-
|
|
1498
|
+
ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
|
|
1499
1499
|
});
|
|
1500
1500
|
let Ss = class Pt {
|
|
1501
1501
|
constructor(t) {
|
|
@@ -1575,10 +1575,10 @@ function vs(e) {
|
|
|
1575
1575
|
return e.apply(null, n);
|
|
1576
1576
|
};
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function Rs(e) {
|
|
1579
1579
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1580
1580
|
}
|
|
1581
|
-
const
|
|
1581
|
+
const Be = {
|
|
1582
1582
|
Continue: 100,
|
|
1583
1583
|
SwitchingProtocols: 101,
|
|
1584
1584
|
Processing: 102,
|
|
@@ -1643,54 +1643,54 @@ const Ne = {
|
|
|
1643
1643
|
NotExtended: 510,
|
|
1644
1644
|
NetworkAuthenticationRequired: 511
|
|
1645
1645
|
};
|
|
1646
|
-
Object.entries(
|
|
1647
|
-
|
|
1646
|
+
Object.entries(Be).forEach(([e, t]) => {
|
|
1647
|
+
Be[t] = e;
|
|
1648
1648
|
});
|
|
1649
|
-
function
|
|
1650
|
-
const t = new
|
|
1651
|
-
return l.extend(n,
|
|
1652
|
-
return
|
|
1649
|
+
function Nt(e) {
|
|
1650
|
+
const t = new ee(e), n = mt(ee.prototype.request, t);
|
|
1651
|
+
return l.extend(n, ee.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
1652
|
+
return Nt(te(e, r));
|
|
1653
1653
|
}, n;
|
|
1654
1654
|
}
|
|
1655
|
-
const x =
|
|
1656
|
-
x.Axios =
|
|
1655
|
+
const x = Nt(pe);
|
|
1656
|
+
x.Axios = ee;
|
|
1657
1657
|
x.CanceledError = oe;
|
|
1658
1658
|
x.CancelToken = Ss;
|
|
1659
1659
|
x.isCancel = xt;
|
|
1660
1660
|
x.VERSION = Lt;
|
|
1661
|
-
x.toFormData =
|
|
1661
|
+
x.toFormData = ke;
|
|
1662
1662
|
x.AxiosError = b;
|
|
1663
1663
|
x.Cancel = x.CanceledError;
|
|
1664
1664
|
x.all = function(t) {
|
|
1665
1665
|
return Promise.all(t);
|
|
1666
1666
|
};
|
|
1667
1667
|
x.spread = vs;
|
|
1668
|
-
x.isAxiosError =
|
|
1669
|
-
x.mergeConfig =
|
|
1668
|
+
x.isAxiosError = Rs;
|
|
1669
|
+
x.mergeConfig = te;
|
|
1670
1670
|
x.AxiosHeaders = B;
|
|
1671
1671
|
x.formToJSON = (e) => Ot(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1672
1672
|
x.getAdapter = Dt.getAdapter;
|
|
1673
|
-
x.HttpStatusCode =
|
|
1673
|
+
x.HttpStatusCode = Be;
|
|
1674
1674
|
x.default = x;
|
|
1675
1675
|
const {
|
|
1676
|
-
Axios:
|
|
1677
|
-
AxiosError:
|
|
1676
|
+
Axios: vo,
|
|
1677
|
+
AxiosError: Ro,
|
|
1678
1678
|
CanceledError: Eo,
|
|
1679
|
-
isCancel:
|
|
1680
|
-
CancelToken:
|
|
1681
|
-
VERSION:
|
|
1682
|
-
all:
|
|
1683
|
-
Cancel:
|
|
1679
|
+
isCancel: To,
|
|
1680
|
+
CancelToken: ko,
|
|
1681
|
+
VERSION: Oo,
|
|
1682
|
+
all: xo,
|
|
1683
|
+
Cancel: Io,
|
|
1684
1684
|
isAxiosError: Ao,
|
|
1685
1685
|
spread: Co,
|
|
1686
|
-
toFormData:
|
|
1686
|
+
toFormData: $o,
|
|
1687
1687
|
AxiosHeaders: Uo,
|
|
1688
|
-
HttpStatusCode:
|
|
1689
|
-
formToJSON:
|
|
1690
|
-
getAdapter:
|
|
1691
|
-
mergeConfig:
|
|
1692
|
-
} = x,
|
|
1693
|
-
const t =
|
|
1688
|
+
HttpStatusCode: Do,
|
|
1689
|
+
formToJSON: Lo,
|
|
1690
|
+
getAdapter: Po,
|
|
1691
|
+
mergeConfig: No
|
|
1692
|
+
} = x, Ft = (e = {}) => {
|
|
1693
|
+
const t = Q(), {
|
|
1694
1694
|
baseURL: n,
|
|
1695
1695
|
projectId: s,
|
|
1696
1696
|
projectToken: r,
|
|
@@ -1709,9 +1709,9 @@ const {
|
|
|
1709
1709
|
...a
|
|
1710
1710
|
});
|
|
1711
1711
|
};
|
|
1712
|
-
class
|
|
1712
|
+
class Es {
|
|
1713
1713
|
static key(t, n) {
|
|
1714
|
-
return
|
|
1714
|
+
return Ft().get(`/observation_matrices/${t}/key`, n);
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
1717
|
const le = {
|
|
@@ -1754,26 +1754,26 @@ const le = {
|
|
|
1754
1754
|
defaultUnit: e.default_unit,
|
|
1755
1755
|
max: e.max,
|
|
1756
1756
|
min: e.min
|
|
1757
|
-
}),
|
|
1757
|
+
}), Is = (e) => ({
|
|
1758
1758
|
...fe(e),
|
|
1759
1759
|
states: e.states.map((t) => jt(t))
|
|
1760
|
-
}),
|
|
1760
|
+
}), As = (e) => ({
|
|
1761
1761
|
...fe(e),
|
|
1762
1762
|
characterStates: e.states.map((t) => Ts(t))
|
|
1763
|
-
}),
|
|
1763
|
+
}), Cs = (e) => {
|
|
1764
1764
|
switch (e.type) {
|
|
1765
1765
|
case ae.Continuous:
|
|
1766
1766
|
return Os(e);
|
|
1767
1767
|
case ae.Sample:
|
|
1768
1768
|
return xs(e);
|
|
1769
1769
|
case ae.PresenceAbsence:
|
|
1770
|
-
return
|
|
1770
|
+
return Is(e);
|
|
1771
1771
|
case ae.Qualitative:
|
|
1772
|
-
return
|
|
1772
|
+
return As(e);
|
|
1773
1773
|
default:
|
|
1774
1774
|
return fe(e);
|
|
1775
1775
|
}
|
|
1776
|
-
},
|
|
1776
|
+
}, $s = (e) => ({
|
|
1777
1777
|
observationMatrixId: e.observation_matrix_id,
|
|
1778
1778
|
name: e.observation_matrix.name,
|
|
1779
1779
|
globalId: e.observation_matrix.global_id
|
|
@@ -1789,14 +1789,14 @@ const le = {
|
|
|
1789
1789
|
observationObjectId: e.object.observation_object_id,
|
|
1790
1790
|
observationObjectType: e.object.observation_object_type,
|
|
1791
1791
|
rowId: e.object.id
|
|
1792
|
-
}),
|
|
1792
|
+
}), Us = (e) => ({
|
|
1793
1793
|
keywordId: e.id,
|
|
1794
1794
|
definition: e.description,
|
|
1795
1795
|
name: e.name
|
|
1796
1796
|
}), Ds = (e) => ({
|
|
1797
1797
|
languageId: e.id,
|
|
1798
1798
|
name: e.english_name
|
|
1799
|
-
}), J =
|
|
1799
|
+
}), J = Me("observationMatrix", {
|
|
1800
1800
|
state: () => ({
|
|
1801
1801
|
observationMatrix: void 0,
|
|
1802
1802
|
citation: void 0,
|
|
@@ -1839,11 +1839,11 @@ const le = {
|
|
|
1839
1839
|
this.observationMatrix = e;
|
|
1840
1840
|
},
|
|
1841
1841
|
async requestInteractiveKey({ observationMatrixId: e, params: t = {}, opt: n = {} }) {
|
|
1842
|
-
const s = await
|
|
1843
|
-
return n.refreshOnlyTaxa || (this.setObservationMatrix(
|
|
1842
|
+
const s = await Es.key(e, { params: t }), { data: r } = s;
|
|
1843
|
+
return n.refreshOnlyTaxa || (this.setObservationMatrix($s(r)), this.setDescriptors(r.list_of_descriptors.map((o) => Cs(o))), this.setKeywords(r.descriptor_available_keywords.map((o) => Us(o))), this.setLanguages(r.descriptor_available_languages.map((o) => Ds(o)))), this.setEliminated(r.eliminated.map((o) => at(o))), this.setRemaining(r.remaining.map((o) => at(o))), s;
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
|
-
}),
|
|
1846
|
+
}), P = Me("filter", {
|
|
1847
1847
|
state: () => ({
|
|
1848
1848
|
descriptors: {},
|
|
1849
1849
|
eliminateUnknown: void 0,
|
|
@@ -1869,18 +1869,22 @@ const le = {
|
|
|
1869
1869
|
const n = e.descriptors[t];
|
|
1870
1870
|
return typeof n == "boolean" ? n : n || "";
|
|
1871
1871
|
},
|
|
1872
|
-
getFilterParams: (e) =>
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1872
|
+
getFilterParams: (e) => {
|
|
1873
|
+
const t = Q();
|
|
1874
|
+
return {
|
|
1875
|
+
selected_descriptors: Object.entries(e.descriptors).map(
|
|
1876
|
+
([s, r]) => Array.isArray(r) ? `${s}:${r.join("|")}` : `${s}:${r}`
|
|
1877
|
+
).join("||"),
|
|
1878
|
+
language_id: e.languageId,
|
|
1879
|
+
keyword_ids: e.keywordIds,
|
|
1880
|
+
sorting: e.sorting,
|
|
1881
|
+
identified_to_rank: e.identifiedToRank,
|
|
1882
|
+
error_tolerance: e.errorTolerance,
|
|
1883
|
+
eliminate_unknown: e.eliminateUnknown,
|
|
1884
|
+
row_filter: e.rowFilter ? e.rowIds.join("|") : [],
|
|
1885
|
+
otu_filter: t.getOtuId
|
|
1886
|
+
};
|
|
1887
|
+
}
|
|
1884
1888
|
},
|
|
1885
1889
|
actions: {
|
|
1886
1890
|
setDescriptor({
|
|
@@ -1911,7 +1915,7 @@ const le = {
|
|
|
1911
1915
|
this.eliminateUnknown = e;
|
|
1912
1916
|
}
|
|
1913
1917
|
}
|
|
1914
|
-
}),
|
|
1918
|
+
}), Q = Me("settings", {
|
|
1915
1919
|
state: () => ({
|
|
1916
1920
|
gridLayout: "distinguish-layout-mode-1",
|
|
1917
1921
|
isLoading: !1,
|
|
@@ -1919,6 +1923,7 @@ const le = {
|
|
|
1919
1923
|
refreshOnlyTaxa: !1,
|
|
1920
1924
|
shouldUpdate: !0,
|
|
1921
1925
|
observationMatrixId: void 0,
|
|
1926
|
+
otuId: [],
|
|
1922
1927
|
errorMessage: "",
|
|
1923
1928
|
apiConfig: {
|
|
1924
1929
|
baseURL: "",
|
|
@@ -1934,6 +1939,10 @@ const le = {
|
|
|
1934
1939
|
getRefreshOnlyTaxa: (e) => e.refreshOnlyTaxa,
|
|
1935
1940
|
getShouldUpdate: (e) => e.shouldUpdate,
|
|
1936
1941
|
getObservationMatrixId: (e) => e.observationMatrixId,
|
|
1942
|
+
getOtuId: (e) => {
|
|
1943
|
+
var t;
|
|
1944
|
+
return ((t = e.otuId) == null ? void 0 : t.join("|")) || "";
|
|
1945
|
+
},
|
|
1937
1946
|
getAPIConfig: (e) => e.apiConfig
|
|
1938
1947
|
},
|
|
1939
1948
|
actions: {
|
|
@@ -1949,9 +1958,12 @@ const le = {
|
|
|
1949
1958
|
setAPIConfig(e) {
|
|
1950
1959
|
this.apiConfig = e;
|
|
1951
1960
|
},
|
|
1961
|
+
setOtuId(e) {
|
|
1962
|
+
this.otuId = [e].flat();
|
|
1963
|
+
},
|
|
1952
1964
|
checkUpdate() {
|
|
1953
|
-
const e =
|
|
1954
|
-
this.shouldUpdate && n && (this.isLoading = !0, t.requestInteractiveKey({
|
|
1965
|
+
const e = P(), t = J(), n = this.observationMatrixId;
|
|
1966
|
+
this.shouldUpdate && typeof n == "number" && (this.isLoading = !0, t.requestInteractiveKey({
|
|
1955
1967
|
observationMatrixId: n,
|
|
1956
1968
|
params: e.getFilterParams,
|
|
1957
1969
|
opt: {
|
|
@@ -1963,7 +1975,7 @@ const le = {
|
|
|
1963
1975
|
}), Ls = /* @__PURE__ */ S({
|
|
1964
1976
|
__name: "FilterEliminateUnknowns",
|
|
1965
1977
|
setup(e) {
|
|
1966
|
-
const t =
|
|
1978
|
+
const t = P(), n = I({
|
|
1967
1979
|
get: () => !!t.getEliminateUknown,
|
|
1968
1980
|
set: (s) => {
|
|
1969
1981
|
t.setEliminateUnknown(s);
|
|
@@ -1976,13 +1988,13 @@ const le = {
|
|
|
1976
1988
|
}, null, 512), [
|
|
1977
1989
|
[se, n.value]
|
|
1978
1990
|
]),
|
|
1979
|
-
r[1] || (r[1] =
|
|
1991
|
+
r[1] || (r[1] = D(" Eliminate unknowns "))
|
|
1980
1992
|
]));
|
|
1981
1993
|
}
|
|
1982
|
-
}), Ps = ["value"],
|
|
1994
|
+
}), Ps = ["value"], Ns = /* @__PURE__ */ S({
|
|
1983
1995
|
__name: "FilterErrorTolerance",
|
|
1984
1996
|
setup(e) {
|
|
1985
|
-
const t = [0, 1, 2], n =
|
|
1997
|
+
const t = [0, 1, 2], n = P(), s = I({
|
|
1986
1998
|
get: () => n.getErrorTolerance,
|
|
1987
1999
|
set: (r) => {
|
|
1988
2000
|
n.setErrorTolerance(r);
|
|
@@ -1999,16 +2011,16 @@ const le = {
|
|
|
1999
2011
|
role: "listbox"
|
|
2000
2012
|
}, [
|
|
2001
2013
|
o[1] || (o[1] = f("option", { value: "" }, null, -1)),
|
|
2002
|
-
(p(), y(
|
|
2014
|
+
(p(), y(L, null, M(t, (i) => f("option", {
|
|
2003
2015
|
key: i,
|
|
2004
2016
|
value: i
|
|
2005
|
-
},
|
|
2017
|
+
}, R(i), 9, Ps)), 64))
|
|
2006
2018
|
], 512), [
|
|
2007
2019
|
[ue, s.value]
|
|
2008
2020
|
])
|
|
2009
2021
|
]));
|
|
2010
2022
|
}
|
|
2011
|
-
}),
|
|
2023
|
+
}), Fs = [
|
|
2012
2024
|
"otu",
|
|
2013
2025
|
"subspecies",
|
|
2014
2026
|
"species",
|
|
@@ -2021,7 +2033,7 @@ const le = {
|
|
|
2021
2033
|
], js = /* @__PURE__ */ S({
|
|
2022
2034
|
__name: "FilterRank",
|
|
2023
2035
|
setup(e) {
|
|
2024
|
-
const t =
|
|
2036
|
+
const t = P(), n = I({
|
|
2025
2037
|
get() {
|
|
2026
2038
|
return t.getIdentifiedToRank;
|
|
2027
2039
|
},
|
|
@@ -2035,7 +2047,7 @@ const le = {
|
|
|
2035
2047
|
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o)
|
|
2036
2048
|
}, [
|
|
2037
2049
|
r[1] || (r[1] = f("option", { value: void 0 }, null, -1)),
|
|
2038
|
-
(p(!0), y(
|
|
2050
|
+
(p(!0), y(L, null, M(k(Fs), (o) => (p(), y("option", { key: o }, R(o), 1))), 128))
|
|
2039
2051
|
], 512), [
|
|
2040
2052
|
[ue, n.value]
|
|
2041
2053
|
])
|
|
@@ -2044,7 +2056,7 @@ const le = {
|
|
|
2044
2056
|
}), Bs = /* @__PURE__ */ S({
|
|
2045
2057
|
__name: "FilterSort",
|
|
2046
2058
|
setup(e) {
|
|
2047
|
-
const t = ["ordered", "weighted", "optimized"], n =
|
|
2059
|
+
const t = ["ordered", "weighted", "optimized"], n = P(), s = I({
|
|
2048
2060
|
get() {
|
|
2049
2061
|
return n.getSorting;
|
|
2050
2062
|
},
|
|
@@ -2058,7 +2070,7 @@ const le = {
|
|
|
2058
2070
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
|
|
2059
2071
|
}, [
|
|
2060
2072
|
o[1] || (o[1] = f("option", { value: void 0 }, null, -1)),
|
|
2061
|
-
(p(), y(
|
|
2073
|
+
(p(), y(L, null, M(t, (i) => f("option", { key: i }, R(i), 1)), 64))
|
|
2062
2074
|
], 512), [
|
|
2063
2075
|
[ue, s.value]
|
|
2064
2076
|
])
|
|
@@ -2067,7 +2079,7 @@ const le = {
|
|
|
2067
2079
|
}), Ms = ["value"], Vs = /* @__PURE__ */ S({
|
|
2068
2080
|
__name: "FilterLanguage",
|
|
2069
2081
|
setup(e) {
|
|
2070
|
-
const t =
|
|
2082
|
+
const t = P(), n = J(), s = I({
|
|
2071
2083
|
get: () => t.getLanguageId,
|
|
2072
2084
|
set: (r) => {
|
|
2073
2085
|
t.setLanguageId(Number(r));
|
|
@@ -2083,10 +2095,10 @@ const le = {
|
|
|
2083
2095
|
name: "languages",
|
|
2084
2096
|
role: "listbox"
|
|
2085
2097
|
}, [
|
|
2086
|
-
(p(!0), y(
|
|
2098
|
+
(p(!0), y(L, null, M(k(n).getLanguages, ({ languageId: i, name: a }) => (p(), y("option", {
|
|
2087
2099
|
key: i,
|
|
2088
2100
|
value: i
|
|
2089
|
-
},
|
|
2101
|
+
}, R(a), 9, Ms))), 128))
|
|
2090
2102
|
], 512), [
|
|
2091
2103
|
[ue, s.value]
|
|
2092
2104
|
])
|
|
@@ -2100,19 +2112,19 @@ const le = {
|
|
|
2100
2112
|
disabled: { type: Boolean }
|
|
2101
2113
|
},
|
|
2102
2114
|
setup(e) {
|
|
2103
|
-
const t = e, n =
|
|
2115
|
+
const t = e, n = I(() => [
|
|
2104
2116
|
`distinguish-btn-${t.color}-color`,
|
|
2105
2117
|
`distinguish-btn-${t.size}-size`
|
|
2106
2118
|
]);
|
|
2107
2119
|
return (s, r) => (p(), y("button", {
|
|
2108
2120
|
type: "button",
|
|
2109
|
-
class:
|
|
2121
|
+
class: ve(["distinguish-btn", n.value]),
|
|
2110
2122
|
disabled: s.disabled
|
|
2111
2123
|
}, [
|
|
2112
|
-
|
|
2124
|
+
U(s.$slots, "default")
|
|
2113
2125
|
], 10, qs));
|
|
2114
2126
|
}
|
|
2115
|
-
}), Hs = { class: "distinguish-modal-wrapper" }, zs = { class: "distinguish-modal-header" }, Ks = { class: "distinguish-modal-body" }, Js = { class: "distinguish-modal-footer" },
|
|
2127
|
+
}), Hs = { class: "distinguish-modal-wrapper" }, zs = { class: "distinguish-modal-header" }, Ks = { class: "distinguish-modal-body" }, Js = { class: "distinguish-modal-footer" }, ze = /* @__PURE__ */ S({
|
|
2116
2128
|
__name: "VModal",
|
|
2117
2129
|
props: {
|
|
2118
2130
|
containerClass: {},
|
|
@@ -2132,7 +2144,7 @@ const le = {
|
|
|
2132
2144
|
}, [
|
|
2133
2145
|
f("div", Hs, [
|
|
2134
2146
|
f("div", {
|
|
2135
|
-
class:
|
|
2147
|
+
class: ve(["distinguish-modal-container", r.containerClass]),
|
|
2136
2148
|
style: qt({ ...r.containerStyle }),
|
|
2137
2149
|
onClick: o[1] || (o[1] = Vt(() => {
|
|
2138
2150
|
}, ["stop"]))
|
|
@@ -2142,13 +2154,13 @@ const le = {
|
|
|
2142
2154
|
class: "distinguish-modal-close",
|
|
2143
2155
|
onClick: o[0] || (o[0] = (i) => n("close"))
|
|
2144
2156
|
}),
|
|
2145
|
-
|
|
2157
|
+
U(r.$slots, "header")
|
|
2146
2158
|
]),
|
|
2147
2159
|
f("div", Ks, [
|
|
2148
|
-
|
|
2160
|
+
U(r.$slots, "body")
|
|
2149
2161
|
]),
|
|
2150
2162
|
f("div", Js, [
|
|
2151
|
-
|
|
2163
|
+
U(r.$slots, "footer")
|
|
2152
2164
|
])
|
|
2153
2165
|
], 6)
|
|
2154
2166
|
])
|
|
@@ -2160,13 +2172,13 @@ const le = {
|
|
|
2160
2172
|
}), Ws = { class: "distinguish-list-checkboxes" }, Xs = ["value"], Qs = /* @__PURE__ */ S({
|
|
2161
2173
|
__name: "FilterKeywords",
|
|
2162
2174
|
setup(e) {
|
|
2163
|
-
const t = J(), n =
|
|
2175
|
+
const t = J(), n = P(), s = X(!1), r = I({
|
|
2164
2176
|
get: () => n.getKeywordIds,
|
|
2165
2177
|
set: (o) => {
|
|
2166
2178
|
n.$patch({ keywordIds: o });
|
|
2167
2179
|
}
|
|
2168
2180
|
});
|
|
2169
|
-
return (o, i) => (p(), y(
|
|
2181
|
+
return (o, i) => (p(), y(L, null, [
|
|
2170
2182
|
v(ne, {
|
|
2171
2183
|
color: "primary",
|
|
2172
2184
|
size: "medium",
|
|
@@ -2175,11 +2187,11 @@ const le = {
|
|
|
2175
2187
|
onClick: i[0] || (i[0] = (a) => s.value = !0)
|
|
2176
2188
|
}, {
|
|
2177
2189
|
default: w(() => i[3] || (i[3] = [
|
|
2178
|
-
|
|
2190
|
+
D(" Keyword ")
|
|
2179
2191
|
])),
|
|
2180
2192
|
_: 1
|
|
2181
2193
|
}, 8, ["disabled", "title"]),
|
|
2182
|
-
s.value ? (p(), T(
|
|
2194
|
+
s.value ? (p(), T(ze, {
|
|
2183
2195
|
key: 0,
|
|
2184
2196
|
onClose: i[2] || (i[2] = (a) => s.value = !1)
|
|
2185
2197
|
}, {
|
|
@@ -2188,7 +2200,7 @@ const le = {
|
|
|
2188
2200
|
])),
|
|
2189
2201
|
body: w(() => [
|
|
2190
2202
|
f("ul", Ws, [
|
|
2191
|
-
(p(!0), y(
|
|
2203
|
+
(p(!0), y(L, null, M(k(t).getKeywords, ({ keywordId: a, name: d }) => (p(), y("li", { key: a }, [
|
|
2192
2204
|
f("label", null, [
|
|
2193
2205
|
q(f("input", {
|
|
2194
2206
|
"onUpdate:modelValue": i[1] || (i[1] = (c) => r.value = c),
|
|
@@ -2197,7 +2209,7 @@ const le = {
|
|
|
2197
2209
|
}, null, 8, Xs), [
|
|
2198
2210
|
[se, r.value]
|
|
2199
2211
|
]),
|
|
2200
|
-
|
|
2212
|
+
D(" " + R(d), 1)
|
|
2201
2213
|
])
|
|
2202
2214
|
]))), 128))
|
|
2203
2215
|
])
|
|
@@ -2209,7 +2221,7 @@ const le = {
|
|
|
2209
2221
|
}), Gs = /* @__PURE__ */ S({
|
|
2210
2222
|
__name: "SettingRefresh",
|
|
2211
2223
|
setup(e) {
|
|
2212
|
-
const t =
|
|
2224
|
+
const t = Q(), n = I({
|
|
2213
2225
|
get: () => t.getRefreshOnlyTaxa,
|
|
2214
2226
|
set: (s) => {
|
|
2215
2227
|
t.setRefreshOnlyTaxa(s);
|
|
@@ -2222,10 +2234,10 @@ const le = {
|
|
|
2222
2234
|
}, null, 512), [
|
|
2223
2235
|
[se, n.value]
|
|
2224
2236
|
]),
|
|
2225
|
-
r[1] || (r[1] =
|
|
2237
|
+
r[1] || (r[1] = D(" Refresh only taxa "))
|
|
2226
2238
|
]));
|
|
2227
2239
|
}
|
|
2228
|
-
}),
|
|
2240
|
+
}), Ie = (e, t) => {
|
|
2229
2241
|
const n = e.__vccOpts || e;
|
|
2230
2242
|
for (const [s, r] of t)
|
|
2231
2243
|
n[s] = r;
|
|
@@ -2233,34 +2245,34 @@ const le = {
|
|
|
2233
2245
|
}, Ys = {}, Zs = { class: "distinguish-menu-list" };
|
|
2234
2246
|
function er(e, t) {
|
|
2235
2247
|
return p(), y("ul", Zs, [
|
|
2236
|
-
|
|
2248
|
+
U(e.$slots, "default")
|
|
2237
2249
|
]);
|
|
2238
2250
|
}
|
|
2239
|
-
const tr = /* @__PURE__ */
|
|
2251
|
+
const tr = /* @__PURE__ */ Ie(Ys, [["render", er]]), nr = {}, sr = { class: "distinguish-list-item" };
|
|
2240
2252
|
function rr(e, t) {
|
|
2241
2253
|
return p(), y("li", sr, [
|
|
2242
|
-
|
|
2254
|
+
U(e.$slots, "default")
|
|
2243
2255
|
]);
|
|
2244
2256
|
}
|
|
2245
|
-
const
|
|
2257
|
+
const Y = /* @__PURE__ */ Ie(nr, [["render", rr]]), lt = {
|
|
2246
2258
|
"distinguish-layout-mode-1": "distinguish-layout-mode-2",
|
|
2247
2259
|
"distinguish-layout-mode-2": "distinguish-layout-mode-1"
|
|
2248
2260
|
}, or = {}, ir = { class: "distinguish-grid" };
|
|
2249
2261
|
function ar(e, t) {
|
|
2250
2262
|
return p(), y("div", ir, [
|
|
2251
|
-
|
|
2263
|
+
U(e.$slots, "default")
|
|
2252
2264
|
]);
|
|
2253
2265
|
}
|
|
2254
|
-
const Bt = /* @__PURE__ */
|
|
2266
|
+
const Bt = /* @__PURE__ */ Ie(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
2255
2267
|
__name: "GridToggle",
|
|
2256
2268
|
setup(e) {
|
|
2257
|
-
const t =
|
|
2269
|
+
const t = Q(), n = I(() => t.getLayout), s = () => {
|
|
2258
2270
|
t.$patch({
|
|
2259
2271
|
gridLayout: lt[n.value]
|
|
2260
2272
|
});
|
|
2261
2273
|
};
|
|
2262
2274
|
return (r, o) => (p(), T(ne, {
|
|
2263
|
-
class:
|
|
2275
|
+
class: ve(k(lt)[n.value]),
|
|
2264
2276
|
onClick: s
|
|
2265
2277
|
}, {
|
|
2266
2278
|
default: w(() => [
|
|
@@ -2279,14 +2291,14 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2279
2291
|
}), cr = /* @__PURE__ */ S({
|
|
2280
2292
|
__name: "ResetButton",
|
|
2281
2293
|
setup(e) {
|
|
2282
|
-
const t =
|
|
2294
|
+
const t = P();
|
|
2283
2295
|
return (n, s) => (p(), T(ne, {
|
|
2284
2296
|
color: "primary",
|
|
2285
2297
|
size: "medium",
|
|
2286
2298
|
onClick: s[0] || (s[0] = (r) => k(t).$reset())
|
|
2287
2299
|
}, {
|
|
2288
2300
|
default: w(() => s[1] || (s[1] = [
|
|
2289
|
-
|
|
2301
|
+
D(" Reset ")
|
|
2290
2302
|
])),
|
|
2291
2303
|
_: 1
|
|
2292
2304
|
}));
|
|
@@ -2294,8 +2306,8 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2294
2306
|
}), ur = { class: "distinguish-header-error-message" }, dr = /* @__PURE__ */ S({
|
|
2295
2307
|
__name: "ErrorMessage",
|
|
2296
2308
|
setup(e) {
|
|
2297
|
-
const t =
|
|
2298
|
-
return (n, s) => (p(), y("span", ur,
|
|
2309
|
+
const t = Q();
|
|
2310
|
+
return (n, s) => (p(), y("span", ur, R(k(t).getErrorMessage), 1));
|
|
2299
2311
|
}
|
|
2300
2312
|
}), pr = { class: "distinguish-header-bar" }, fr = { class: "distinguish-header-bar__buttons" }, mr = /* @__PURE__ */ S({
|
|
2301
2313
|
__name: "HeaderBar",
|
|
@@ -2304,43 +2316,43 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2304
2316
|
v(dr),
|
|
2305
2317
|
v(tr, null, {
|
|
2306
2318
|
default: w(() => [
|
|
2307
|
-
v(
|
|
2319
|
+
v(Y, null, {
|
|
2308
2320
|
default: w(() => [
|
|
2309
2321
|
v(Gs)
|
|
2310
2322
|
]),
|
|
2311
2323
|
_: 1
|
|
2312
2324
|
}),
|
|
2313
|
-
v(
|
|
2325
|
+
v(Y, null, {
|
|
2314
2326
|
default: w(() => [
|
|
2315
2327
|
v(Ls)
|
|
2316
2328
|
]),
|
|
2317
2329
|
_: 1
|
|
2318
2330
|
}),
|
|
2319
|
-
v(
|
|
2331
|
+
v(Y, null, {
|
|
2320
2332
|
default: w(() => [
|
|
2321
|
-
v(
|
|
2333
|
+
v(Ns)
|
|
2322
2334
|
]),
|
|
2323
2335
|
_: 1
|
|
2324
2336
|
}),
|
|
2325
|
-
v(
|
|
2337
|
+
v(Y, null, {
|
|
2326
2338
|
default: w(() => [
|
|
2327
2339
|
v(js)
|
|
2328
2340
|
]),
|
|
2329
2341
|
_: 1
|
|
2330
2342
|
}),
|
|
2331
|
-
v(
|
|
2343
|
+
v(Y, null, {
|
|
2332
2344
|
default: w(() => [
|
|
2333
2345
|
v(Vs)
|
|
2334
2346
|
]),
|
|
2335
2347
|
_: 1
|
|
2336
2348
|
}),
|
|
2337
|
-
v(
|
|
2349
|
+
v(Y, null, {
|
|
2338
2350
|
default: w(() => [
|
|
2339
2351
|
v(Bs)
|
|
2340
2352
|
]),
|
|
2341
2353
|
_: 1
|
|
2342
2354
|
}),
|
|
2343
|
-
v(
|
|
2355
|
+
v(Y, null, {
|
|
2344
2356
|
default: w(() => [
|
|
2345
2357
|
v(Qs)
|
|
2346
2358
|
]),
|
|
@@ -2358,25 +2370,25 @@ const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
|
2358
2370
|
}), hr = {}, gr = { class: "distinguish-panel" };
|
|
2359
2371
|
function yr(e, t) {
|
|
2360
2372
|
return p(), y("div", gr, [
|
|
2361
|
-
|
|
2373
|
+
U(e.$slots, "default")
|
|
2362
2374
|
]);
|
|
2363
2375
|
}
|
|
2364
|
-
const
|
|
2376
|
+
const Ke = /* @__PURE__ */ Ie(hr, [["render", yr]]), br = ["innerHTML"], _r = /* @__PURE__ */ S({
|
|
2365
2377
|
__name: "PanelEliminated",
|
|
2366
2378
|
props: {
|
|
2367
2379
|
render: { type: Function }
|
|
2368
2380
|
},
|
|
2369
2381
|
setup(e) {
|
|
2370
|
-
const t = J(), n =
|
|
2371
|
-
return (s, r) => (p(), T(
|
|
2382
|
+
const t = J(), n = I(() => t.getEliminated);
|
|
2383
|
+
return (s, r) => (p(), T(Ke, { class: "distinguish-panel-eliminated" }, {
|
|
2372
2384
|
default: w(() => [
|
|
2373
|
-
f("h2", null, "Eliminated (" +
|
|
2385
|
+
f("h2", null, "Eliminated (" + R(n.value.length) + ")", 1),
|
|
2374
2386
|
f("ul", null, [
|
|
2375
|
-
(p(!0), y(
|
|
2387
|
+
(p(!0), y(L, null, M(n.value, (o) => (p(), y("li", {
|
|
2376
2388
|
key: o.rowId,
|
|
2377
2389
|
class: "distinguish-row-item"
|
|
2378
2390
|
}, [
|
|
2379
|
-
|
|
2391
|
+
U(s.$slots, "default", { item: o }, () => [
|
|
2380
2392
|
f("span", {
|
|
2381
2393
|
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2382
2394
|
}, null, 8, br)
|
|
@@ -2387,13 +2399,13 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2387
2399
|
_: 3
|
|
2388
2400
|
}));
|
|
2389
2401
|
}
|
|
2390
|
-
}), wr = { class: "distinguish-row-filter-buttons" }, Sr = { class: "distinguish-list-checkboxes" }, vr = ["value"],
|
|
2402
|
+
}), wr = { class: "distinguish-row-filter-buttons" }, Sr = { class: "distinguish-list-checkboxes" }, vr = ["value"], Rr = /* @__PURE__ */ S({
|
|
2391
2403
|
__name: "FilterRow",
|
|
2392
2404
|
setup(e) {
|
|
2393
|
-
const t = J(), n =
|
|
2405
|
+
const t = J(), n = Q(), s = P(), r = X(!1), o = X([]), i = I(() => {
|
|
2394
2406
|
const d = s.getRowIds, c = o.value;
|
|
2395
2407
|
return d.length !== c.length || !d.every((u) => c.includes(u));
|
|
2396
|
-
}), a =
|
|
2408
|
+
}), a = I({
|
|
2397
2409
|
get: () => s.getRowIds,
|
|
2398
2410
|
set: (d) => {
|
|
2399
2411
|
s.$patch({ rowIds: d });
|
|
@@ -2401,18 +2413,18 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2401
2413
|
});
|
|
2402
2414
|
return Ht(r, (d) => {
|
|
2403
2415
|
n.setShouldUpdate(!d), !d && i.value && (s.rowFilter = !0, n.checkUpdate()), o.value = s.getRowIds;
|
|
2404
|
-
}), (d, c) => (p(), y(
|
|
2416
|
+
}), (d, c) => (p(), y(L, null, [
|
|
2405
2417
|
v(ne, {
|
|
2406
2418
|
color: "primary",
|
|
2407
2419
|
size: "medium",
|
|
2408
2420
|
onClick: c[0] || (c[0] = (u) => r.value = !0)
|
|
2409
2421
|
}, {
|
|
2410
2422
|
default: w(() => c[5] || (c[5] = [
|
|
2411
|
-
|
|
2423
|
+
D(" Select ")
|
|
2412
2424
|
])),
|
|
2413
2425
|
_: 1
|
|
2414
2426
|
}),
|
|
2415
|
-
r.value ? (p(), T(
|
|
2427
|
+
r.value ? (p(), T(ze, {
|
|
2416
2428
|
key: 0,
|
|
2417
2429
|
onClose: c[4] || (c[4] = (u) => r.value = !1)
|
|
2418
2430
|
}, {
|
|
@@ -2429,7 +2441,7 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2429
2441
|
onClick: c[1] || (c[1] = () => a.value = k(t).getRemaining.map((u) => u.rowId))
|
|
2430
2442
|
}, {
|
|
2431
2443
|
default: w(() => c[7] || (c[7] = [
|
|
2432
|
-
|
|
2444
|
+
D(" Select all ")
|
|
2433
2445
|
])),
|
|
2434
2446
|
_: 1
|
|
2435
2447
|
})) : (p(), T(ne, {
|
|
@@ -2439,13 +2451,17 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2439
2451
|
onClick: c[2] || (c[2] = () => a.value = [])
|
|
2440
2452
|
}, {
|
|
2441
2453
|
default: w(() => c[8] || (c[8] = [
|
|
2442
|
-
|
|
2454
|
+
D(" Unselect all ")
|
|
2443
2455
|
])),
|
|
2444
2456
|
_: 1
|
|
2445
|
-
}))
|
|
2457
|
+
})),
|
|
2458
|
+
U(d.$slots, "row-filter", {
|
|
2459
|
+
selectedIds: a.value,
|
|
2460
|
+
rows: k(t).getRemaining
|
|
2461
|
+
})
|
|
2446
2462
|
]),
|
|
2447
2463
|
f("ul", Sr, [
|
|
2448
|
-
(p(!0), y(
|
|
2464
|
+
(p(!0), y(L, null, M(k(t).getRemaining, (u) => (p(), y("li", {
|
|
2449
2465
|
key: u.rowId
|
|
2450
2466
|
}, [
|
|
2451
2467
|
f("label", null, [
|
|
@@ -2456,35 +2472,40 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2456
2472
|
}, null, 8, vr), [
|
|
2457
2473
|
[se, a.value]
|
|
2458
2474
|
]),
|
|
2459
|
-
|
|
2475
|
+
D(" " + R(u.objectLabel), 1)
|
|
2460
2476
|
])
|
|
2461
2477
|
]))), 128))
|
|
2462
2478
|
])
|
|
2463
2479
|
])
|
|
2464
2480
|
]),
|
|
2465
|
-
_:
|
|
2481
|
+
_: 3
|
|
2466
2482
|
})) : j("", !0)
|
|
2467
2483
|
], 64));
|
|
2468
2484
|
}
|
|
2469
|
-
}),
|
|
2485
|
+
}), Er = { class: "distinguish-title-section" }, Tr = ["innerHTML"], kr = /* @__PURE__ */ S({
|
|
2470
2486
|
__name: "PanelRemaining",
|
|
2471
2487
|
props: {
|
|
2472
2488
|
render: { type: Function }
|
|
2473
2489
|
},
|
|
2474
2490
|
setup(e) {
|
|
2475
|
-
const t = J(), n =
|
|
2476
|
-
return (s, r) => (p(), T(
|
|
2491
|
+
const t = J(), n = I(() => t.getRemaining);
|
|
2492
|
+
return (s, r) => (p(), T(Ke, { class: "distinguish-panel-remaining" }, {
|
|
2477
2493
|
default: w(() => [
|
|
2478
|
-
f("div",
|
|
2479
|
-
f("h2", null, "Remaining (" +
|
|
2480
|
-
v(
|
|
2494
|
+
f("div", Er, [
|
|
2495
|
+
f("h2", null, "Remaining (" + R(n.value.length) + ")", 1),
|
|
2496
|
+
v(Rr, null, {
|
|
2497
|
+
"row-filter": w((o) => [
|
|
2498
|
+
U(s.$slots, "remaining-row-filter", he(ge(o)))
|
|
2499
|
+
]),
|
|
2500
|
+
_: 3
|
|
2501
|
+
})
|
|
2481
2502
|
]),
|
|
2482
2503
|
f("ul", null, [
|
|
2483
|
-
(p(!0), y(
|
|
2504
|
+
(p(!0), y(L, null, M(n.value, (o) => (p(), y("li", {
|
|
2484
2505
|
key: o.rowId,
|
|
2485
2506
|
class: "distinguish-row-item"
|
|
2486
2507
|
}, [
|
|
2487
|
-
|
|
2508
|
+
U(s.$slots, "default", { item: o }, () => [
|
|
2488
2509
|
f("span", {
|
|
2489
2510
|
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2490
2511
|
}, null, 8, Tr)
|
|
@@ -2498,13 +2519,13 @@ const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /*
|
|
|
2498
2519
|
});
|
|
2499
2520
|
class Or {
|
|
2500
2521
|
static find(t) {
|
|
2501
|
-
return
|
|
2522
|
+
return Ft().get(`/depictions/${t}.json`, { params: { extend: ["image"] } });
|
|
2502
2523
|
}
|
|
2503
2524
|
}
|
|
2504
2525
|
const xr = {
|
|
2505
2526
|
key: 0,
|
|
2506
2527
|
class: "distinguish-depiction-box"
|
|
2507
|
-
},
|
|
2528
|
+
}, Ir = ["src"], Mt = /* @__PURE__ */ S({
|
|
2508
2529
|
__name: "VDepiction",
|
|
2509
2530
|
props: {
|
|
2510
2531
|
depictionId: {}
|
|
@@ -2516,17 +2537,17 @@ const xr = {
|
|
|
2516
2537
|
}), (s, r) => n.value ? (p(), y("div", xr, [
|
|
2517
2538
|
f("img", {
|
|
2518
2539
|
src: n.value.imageUrl
|
|
2519
|
-
}, null, 8,
|
|
2540
|
+
}, null, 8, Ir)
|
|
2520
2541
|
])) : j("", !0);
|
|
2521
2542
|
}
|
|
2522
|
-
}),
|
|
2543
|
+
}), Ar = { class: "distinguish-character-descriptor__cell" }, Cr = ["value"], $r = /* @__PURE__ */ S({
|
|
2523
2544
|
__name: "CharacterStateCell",
|
|
2524
2545
|
props: {
|
|
2525
2546
|
characterState: {},
|
|
2526
2547
|
descriptorId: {}
|
|
2527
2548
|
},
|
|
2528
2549
|
setup(e) {
|
|
2529
|
-
const t = e, n =
|
|
2550
|
+
const t = e, n = P(), s = I({
|
|
2530
2551
|
get: () => n.getDescriptorValueById(t.descriptorId) || [],
|
|
2531
2552
|
set: (r) => {
|
|
2532
2553
|
r.length ? n.setDescriptor({
|
|
@@ -2535,9 +2556,9 @@ const xr = {
|
|
|
2535
2556
|
}) : n.removeDescriptor(t.descriptorId);
|
|
2536
2557
|
}
|
|
2537
2558
|
});
|
|
2538
|
-
return (r, o) => (p(), y("div",
|
|
2559
|
+
return (r, o) => (p(), y("div", Ar, [
|
|
2539
2560
|
f("label", null, [
|
|
2540
|
-
(p(!0), y(
|
|
2561
|
+
(p(!0), y(L, null, M(r.characterState.depictionIds, (i) => (p(), T(Mt, {
|
|
2541
2562
|
key: i,
|
|
2542
2563
|
"depiction-id": i
|
|
2543
2564
|
}, null, 8, ["depiction-id"]))), 128)),
|
|
@@ -2545,20 +2566,20 @@ const xr = {
|
|
|
2545
2566
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2546
2567
|
value: r.characterState.characterStateId,
|
|
2547
2568
|
type: "checkbox"
|
|
2548
|
-
}, null, 8,
|
|
2569
|
+
}, null, 8, Cr), [
|
|
2549
2570
|
[se, s.value]
|
|
2550
2571
|
]),
|
|
2551
|
-
|
|
2572
|
+
D(" " + R(r.characterState.name), 1)
|
|
2552
2573
|
])
|
|
2553
2574
|
]));
|
|
2554
2575
|
}
|
|
2555
|
-
}),
|
|
2576
|
+
}), Ur = { class: "distinguish-character-states-grid" }, Dr = /* @__PURE__ */ S({
|
|
2556
2577
|
__name: "CharacterStateGrid",
|
|
2557
2578
|
props: {
|
|
2558
2579
|
descriptor: {}
|
|
2559
2580
|
},
|
|
2560
2581
|
setup(e) {
|
|
2561
|
-
const t = e, n =
|
|
2582
|
+
const t = e, n = P(), s = Q(), r = X(), o = I(() => {
|
|
2562
2583
|
const i = n.getDescriptorValueById(t.descriptor.descriptorId) || [], a = r.value || [];
|
|
2563
2584
|
return i.length !== a.length || !i.every((d) => a.includes(d));
|
|
2564
2585
|
});
|
|
@@ -2566,28 +2587,28 @@ const xr = {
|
|
|
2566
2587
|
s.setShouldUpdate(!1), r.value = n.getDescriptorValueById(t.descriptor.descriptorId);
|
|
2567
2588
|
}), ut(() => {
|
|
2568
2589
|
s.setShouldUpdate(!0), o.value && s.checkUpdate();
|
|
2569
|
-
}), (i, a) => (p(), y("div",
|
|
2570
|
-
(p(!0), y(
|
|
2590
|
+
}), (i, a) => (p(), y("div", Ur, [
|
|
2591
|
+
(p(!0), y(L, null, M(i.descriptor.characterStates, (d) => (p(), T($r, {
|
|
2571
2592
|
key: d.characterStateId,
|
|
2572
2593
|
"descriptor-id": i.descriptor.descriptorId,
|
|
2573
2594
|
"character-state": d
|
|
2574
2595
|
}, null, 8, ["descriptor-id", "character-state"]))), 128))
|
|
2575
2596
|
]));
|
|
2576
2597
|
}
|
|
2577
|
-
}), Lr = { key: 0 }, Pr = { key: 1 },
|
|
2598
|
+
}), Lr = { key: 0 }, Pr = { key: 1 }, Nr = { class: "descriptor-modal__depiction" }, Fr = /* @__PURE__ */ S({
|
|
2578
2599
|
__name: "DescriptorModal",
|
|
2579
2600
|
props: {
|
|
2580
2601
|
descriptor: {}
|
|
2581
2602
|
},
|
|
2582
2603
|
setup(e) {
|
|
2583
|
-
return (t, n) => (p(), T(
|
|
2604
|
+
return (t, n) => (p(), T(ze, { "container-class": "distinguish-descriptor-modal" }, {
|
|
2584
2605
|
header: w(() => [
|
|
2585
|
-
f("h3", null,
|
|
2586
|
-
t.descriptor.description ? (p(), y("span", Lr,
|
|
2606
|
+
f("h3", null, R(t.descriptor.name), 1),
|
|
2607
|
+
t.descriptor.description ? (p(), y("span", Lr, R(t.descriptor.description), 1)) : (p(), y("i", Pr, " No further description available. "))
|
|
2587
2608
|
]),
|
|
2588
2609
|
body: w(() => [
|
|
2589
|
-
f("div",
|
|
2590
|
-
(p(!0), y(
|
|
2610
|
+
f("div", Nr, [
|
|
2611
|
+
(p(!0), y(L, null, M(t.descriptor.depictionIds, (s) => (p(), T(Mt, {
|
|
2591
2612
|
key: s,
|
|
2592
2613
|
"depiction-id": s
|
|
2593
2614
|
}, null, 8, ["depiction-id"]))), 128))
|
|
@@ -2601,7 +2622,7 @@ const xr = {
|
|
|
2601
2622
|
_: 1
|
|
2602
2623
|
}));
|
|
2603
2624
|
}
|
|
2604
|
-
}), jr = ["id"], Br = { class: "distinguish-input-label" },
|
|
2625
|
+
}), jr = ["id"], Br = { class: "distinguish-input-label" }, Ae = /* @__PURE__ */ S({
|
|
2605
2626
|
__name: "DescriptorContainer",
|
|
2606
2627
|
props: {
|
|
2607
2628
|
descriptor: {}
|
|
@@ -2617,13 +2638,13 @@ const xr = {
|
|
|
2617
2638
|
class: "distinguish-link",
|
|
2618
2639
|
onClick: s[0] || (s[0] = (r) => t.value = !0)
|
|
2619
2640
|
}, [
|
|
2620
|
-
|
|
2621
|
-
|
|
2641
|
+
U(n.$slots, "title", {}, () => [
|
|
2642
|
+
D(R(n.descriptor.name), 1)
|
|
2622
2643
|
])
|
|
2623
2644
|
])
|
|
2624
2645
|
]),
|
|
2625
|
-
|
|
2626
|
-
t.value ? (p(), T(
|
|
2646
|
+
U(n.$slots, "default"),
|
|
2647
|
+
t.value ? (p(), T(Fr, {
|
|
2627
2648
|
key: 0,
|
|
2628
2649
|
descriptor: n.descriptor,
|
|
2629
2650
|
onClose: s[1] || (s[1] = (r) => t.value = !1)
|
|
@@ -2636,7 +2657,7 @@ const xr = {
|
|
|
2636
2657
|
descriptor: {}
|
|
2637
2658
|
},
|
|
2638
2659
|
setup(e) {
|
|
2639
|
-
const t = e, n =
|
|
2660
|
+
const t = e, n = P(), s = X(
|
|
2640
2661
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2641
2662
|
), r = () => {
|
|
2642
2663
|
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
@@ -2645,12 +2666,12 @@ const xr = {
|
|
|
2645
2666
|
value: i
|
|
2646
2667
|
}) : n.removeDescriptor(o);
|
|
2647
2668
|
};
|
|
2648
|
-
return (o, i) => (p(), T(
|
|
2669
|
+
return (o, i) => (p(), T(Ae, {
|
|
2649
2670
|
class: "distinguish-descriptor-continuous",
|
|
2650
2671
|
descriptor: o.descriptor
|
|
2651
2672
|
}, {
|
|
2652
2673
|
title: w(() => [
|
|
2653
|
-
|
|
2674
|
+
D(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
|
|
2654
2675
|
]),
|
|
2655
2676
|
default: w(() => [
|
|
2656
2677
|
q(f("input", {
|
|
@@ -2674,7 +2695,7 @@ const xr = {
|
|
|
2674
2695
|
const t = {
|
|
2675
2696
|
Presence: !0,
|
|
2676
2697
|
Absent: !1
|
|
2677
|
-
}, n = e, s =
|
|
2698
|
+
}, n = e, s = P(), r = I({
|
|
2678
2699
|
get: () => s.getDescriptorValueById(
|
|
2679
2700
|
n.descriptor.descriptorId
|
|
2680
2701
|
),
|
|
@@ -2690,7 +2711,7 @@ const xr = {
|
|
|
2690
2711
|
const { states: a } = n.descriptor;
|
|
2691
2712
|
return ((d = a.find((c) => c.name === String(i))) == null ? void 0 : d.numberOfObjects) || 0;
|
|
2692
2713
|
};
|
|
2693
|
-
return (i, a) => (p(), T(
|
|
2714
|
+
return (i, a) => (p(), T(Ae, {
|
|
2694
2715
|
class: "distinguish-descriptor-presence-absence",
|
|
2695
2716
|
descriptor: i.descriptor
|
|
2696
2717
|
}, {
|
|
@@ -2699,12 +2720,12 @@ const xr = {
|
|
|
2699
2720
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d)
|
|
2700
2721
|
}, [
|
|
2701
2722
|
a[1] || (a[1] = f("option", null, null, -1)),
|
|
2702
|
-
(p(), y(
|
|
2723
|
+
(p(), y(L, null, M(t, (d, c) => f("option", {
|
|
2703
2724
|
key: c,
|
|
2704
2725
|
value: d
|
|
2705
2726
|
}, [
|
|
2706
2727
|
i.descriptor.status === k(le).Useless ? (p(), y("span", qr, "-")) : j("", !0),
|
|
2707
|
-
|
|
2728
|
+
D(" " + R(c) + " (" + R(o(d)) + ") ", 1)
|
|
2708
2729
|
], 8, Vr)), 64))
|
|
2709
2730
|
], 512), [
|
|
2710
2731
|
[ue, r.value]
|
|
@@ -2719,7 +2740,7 @@ const xr = {
|
|
|
2719
2740
|
descriptor: {}
|
|
2720
2741
|
},
|
|
2721
2742
|
setup(e) {
|
|
2722
|
-
const t = e, n =
|
|
2743
|
+
const t = e, n = P(), s = (o) => {
|
|
2723
2744
|
const i = o.target, { descriptorId: a } = t.descriptor;
|
|
2724
2745
|
i.value ? n.setDescriptor({
|
|
2725
2746
|
descriptorId: a,
|
|
@@ -2728,7 +2749,7 @@ const xr = {
|
|
|
2728
2749
|
}, r = (o) => n.getDescriptorValueById(
|
|
2729
2750
|
t.descriptor.descriptorId
|
|
2730
2751
|
).includes(o.characterStateId);
|
|
2731
|
-
return (o, i) => (p(), T(
|
|
2752
|
+
return (o, i) => (p(), T(Ae, {
|
|
2732
2753
|
class: "distinguish-descriptor-qualitative",
|
|
2733
2754
|
descriptor: o.descriptor
|
|
2734
2755
|
}, {
|
|
@@ -2738,14 +2759,14 @@ const xr = {
|
|
|
2738
2759
|
onChange: s
|
|
2739
2760
|
}, [
|
|
2740
2761
|
i[0] || (i[0] = f("option", { value: "" }, null, -1)),
|
|
2741
|
-
(p(!0), y(
|
|
2762
|
+
(p(!0), y(L, null, M(o.descriptor.characterStates, (a) => (p(), y("option", {
|
|
2742
2763
|
key: a.characterStateId,
|
|
2743
2764
|
value: a.characterStateId,
|
|
2744
2765
|
selected: r(a)
|
|
2745
2766
|
}, [
|
|
2746
2767
|
r(a) ? (p(), y("span", Kr, ">")) : j("", !0),
|
|
2747
2768
|
a.status === k(le).Useless ? (p(), y("span", Jr, "-")) : j("", !0),
|
|
2748
|
-
|
|
2769
|
+
D(" " + R(a.name) + " (" + R(a.numberOfObjects) + ") ", 1)
|
|
2749
2770
|
], 8, zr))), 128))
|
|
2750
2771
|
], 32)
|
|
2751
2772
|
]),
|
|
@@ -2758,7 +2779,7 @@ const xr = {
|
|
|
2758
2779
|
descriptor: {}
|
|
2759
2780
|
},
|
|
2760
2781
|
setup(e) {
|
|
2761
|
-
const t = e, n =
|
|
2782
|
+
const t = e, n = P(), s = X(
|
|
2762
2783
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2763
2784
|
), r = () => {
|
|
2764
2785
|
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
@@ -2767,12 +2788,12 @@ const xr = {
|
|
|
2767
2788
|
value: i
|
|
2768
2789
|
}) : n.removeDescriptor(o);
|
|
2769
2790
|
};
|
|
2770
|
-
return (o, i) => (p(), T(
|
|
2791
|
+
return (o, i) => (p(), T(Ae, {
|
|
2771
2792
|
class: "distinguish-descriptor-sample",
|
|
2772
2793
|
descriptor: o.descriptor
|
|
2773
2794
|
}, {
|
|
2774
2795
|
title: w(() => [
|
|
2775
|
-
|
|
2796
|
+
D(R(o.descriptor.name) + " (" + R(o.descriptor.min) + "-" + R(o.descriptor.max) + " " + R(o.descriptor.defaultUnit) + ") ", 1)
|
|
2776
2797
|
]),
|
|
2777
2798
|
default: w(() => [
|
|
2778
2799
|
q(f("input", {
|
|
@@ -2787,7 +2808,7 @@ const xr = {
|
|
|
2787
2808
|
_: 1
|
|
2788
2809
|
}, 8, ["descriptor"]));
|
|
2789
2810
|
}
|
|
2790
|
-
}),
|
|
2811
|
+
}), De = /* @__PURE__ */ S({
|
|
2791
2812
|
__name: "DescriptorsList",
|
|
2792
2813
|
props: {
|
|
2793
2814
|
title: {},
|
|
@@ -2803,10 +2824,10 @@ const xr = {
|
|
|
2803
2824
|
const r = s.replace("::", "");
|
|
2804
2825
|
return t[r];
|
|
2805
2826
|
};
|
|
2806
|
-
return (s, r) => (p(), y(
|
|
2807
|
-
f("h2", null,
|
|
2827
|
+
return (s, r) => (p(), y(L, null, [
|
|
2828
|
+
f("h2", null, R(s.title), 1),
|
|
2808
2829
|
f("ol", null, [
|
|
2809
|
-
(p(!0), y(
|
|
2830
|
+
(p(!0), y(L, null, M(s.descriptors, (o) => (p(), y("li", {
|
|
2810
2831
|
key: o.descriptorId
|
|
2811
2832
|
}, [
|
|
2812
2833
|
(p(), T(zt(n(o.type)), { descriptor: o }, null, 8, ["descriptor"]))
|
|
@@ -2817,7 +2838,7 @@ const xr = {
|
|
|
2817
2838
|
}), Qr = { key: 0 }, Gr = /* @__PURE__ */ S({
|
|
2818
2839
|
__name: "FilterRowCheckbox",
|
|
2819
2840
|
setup(e) {
|
|
2820
|
-
const t =
|
|
2841
|
+
const t = P(), n = I({
|
|
2821
2842
|
get: () => t.getRowFilter,
|
|
2822
2843
|
set: (s) => t.$patch({ rowFilter: s })
|
|
2823
2844
|
});
|
|
@@ -2828,27 +2849,27 @@ const xr = {
|
|
|
2828
2849
|
}, null, 512), [
|
|
2829
2850
|
[se, n.value]
|
|
2830
2851
|
]),
|
|
2831
|
-
r[1] || (r[1] =
|
|
2852
|
+
r[1] || (r[1] = D(" Filter "))
|
|
2832
2853
|
])) : j("", !0);
|
|
2833
2854
|
}
|
|
2834
2855
|
}), Yr = /* @__PURE__ */ S({
|
|
2835
2856
|
__name: "PanelDescriptors",
|
|
2836
2857
|
setup(e) {
|
|
2837
2858
|
const t = J();
|
|
2838
|
-
return (n, s) => (p(), T(
|
|
2859
|
+
return (n, s) => (p(), T(Ke, { class: "distinguish-panel-descriptors" }, {
|
|
2839
2860
|
default: w(() => [
|
|
2840
2861
|
v(Gr),
|
|
2841
|
-
k(t).getDescriptorsUsed.length ? (p(), T(
|
|
2862
|
+
k(t).getDescriptorsUsed.length ? (p(), T(De, {
|
|
2842
2863
|
key: 0,
|
|
2843
2864
|
descriptors: k(t).getDescriptorsUsed,
|
|
2844
2865
|
title: "Used Descriptors"
|
|
2845
2866
|
}, null, 8, ["descriptors"])) : j("", !0),
|
|
2846
|
-
k(t).getDescriptorsUseful.length ? (p(), T(
|
|
2867
|
+
k(t).getDescriptorsUseful.length ? (p(), T(De, {
|
|
2847
2868
|
key: 1,
|
|
2848
2869
|
descriptors: k(t).getDescriptorsUseful,
|
|
2849
2870
|
title: "Descriptors Useful for Identification"
|
|
2850
2871
|
}, null, 8, ["descriptors"])) : j("", !0),
|
|
2851
|
-
k(t).getDescriptorsUseless.length ? (p(), T(
|
|
2872
|
+
k(t).getDescriptorsUseless.length ? (p(), T(De, {
|
|
2852
2873
|
key: 2,
|
|
2853
2874
|
descriptors: k(t).getDescriptorsUseless,
|
|
2854
2875
|
title: "Descriptors no longer relevant for identification"
|
|
@@ -2873,7 +2894,7 @@ const xr = {
|
|
|
2873
2894
|
n[0] || (n[0] = f("div", { class: "distinguish-spinner" }, null, -1)),
|
|
2874
2895
|
f("div", eo, [
|
|
2875
2896
|
f("span", { innerHTML: e.legend }, null, 8, to),
|
|
2876
|
-
|
|
2897
|
+
U(t.$slots, "default")
|
|
2877
2898
|
])
|
|
2878
2899
|
])
|
|
2879
2900
|
])
|
|
@@ -2886,21 +2907,21 @@ const xr = {
|
|
|
2886
2907
|
setup(e) {
|
|
2887
2908
|
const t = J();
|
|
2888
2909
|
return (n, s) => (p(), y("h1", so, [
|
|
2889
|
-
s[0] || (s[0] =
|
|
2890
|
-
k(t).getObservationMatrix ? (p(), y("span", ro, "| " +
|
|
2910
|
+
s[0] || (s[0] = D(" Interactive key ")),
|
|
2911
|
+
k(t).getObservationMatrix ? (p(), y("span", ro, "| " + R(k(t).getObservationMatrix.name), 1)) : j("", !0)
|
|
2891
2912
|
]));
|
|
2892
2913
|
}
|
|
2893
2914
|
}), io = ["title"], ao = /* @__PURE__ */ S({
|
|
2894
2915
|
__name: "TitleMatrixCitation",
|
|
2895
2916
|
setup(e) {
|
|
2896
|
-
const t = J(), n =
|
|
2917
|
+
const t = J(), n = I(() => {
|
|
2897
2918
|
const s = t.getCitation;
|
|
2898
2919
|
return Object.values(s || {}).filter(Boolean).join(", ");
|
|
2899
2920
|
});
|
|
2900
2921
|
return (s, r) => (p(), y("span", {
|
|
2901
2922
|
class: "distinguish-title-citation",
|
|
2902
2923
|
title: n.value
|
|
2903
|
-
},
|
|
2924
|
+
}, R(n.value), 9, io));
|
|
2904
2925
|
}
|
|
2905
2926
|
}), lo = { class: "distinguish-title-section" }, co = /* @__PURE__ */ S({
|
|
2906
2927
|
__name: "TitleKey",
|
|
@@ -2916,27 +2937,31 @@ const xr = {
|
|
|
2916
2937
|
props: {
|
|
2917
2938
|
observationMatrixId: {},
|
|
2918
2939
|
apiConfig: {},
|
|
2919
|
-
renderItem: { type: Function }
|
|
2940
|
+
renderItem: { type: Function },
|
|
2941
|
+
otuId: {}
|
|
2920
2942
|
},
|
|
2921
2943
|
setup(e) {
|
|
2922
|
-
const t = e, n =
|
|
2944
|
+
const t = e, n = Q(), s = P(), r = I(() => n.getIsLoading), o = I(() => n.getLayout);
|
|
2923
2945
|
return (() => {
|
|
2924
|
-
n.setAPIConfig(t.apiConfig), n.setObservationMatrixId(t.observationMatrixId), n.checkUpdate();
|
|
2946
|
+
n.setAPIConfig(t.apiConfig), n.setObservationMatrixId(t.observationMatrixId), t.otuId && n.setOtuId(t.otuId), n.checkUpdate();
|
|
2925
2947
|
})(), s.$subscribe((a) => {
|
|
2926
2948
|
n.shouldUpdate && n.checkUpdate();
|
|
2927
2949
|
}), (a, d) => (p(), y("div", uo, [
|
|
2928
2950
|
v(co),
|
|
2929
2951
|
v(mr),
|
|
2930
2952
|
v(Bt, {
|
|
2931
|
-
class:
|
|
2953
|
+
class: ve(o.value)
|
|
2932
2954
|
}, {
|
|
2933
2955
|
default: w(() => [
|
|
2934
2956
|
v(Yr),
|
|
2935
2957
|
v(kr, {
|
|
2936
2958
|
render: t.renderItem
|
|
2937
2959
|
}, {
|
|
2960
|
+
"remaining-row-filter": w((c) => [
|
|
2961
|
+
U(a.$slots, "remaining-row-filter", he(ge(c)))
|
|
2962
|
+
]),
|
|
2938
2963
|
default: w((c) => [
|
|
2939
|
-
|
|
2964
|
+
U(a.$slots, "remaining-item", he(ge(c)))
|
|
2940
2965
|
]),
|
|
2941
2966
|
_: 3
|
|
2942
2967
|
}, 8, ["render"]),
|
|
@@ -2944,7 +2969,7 @@ const xr = {
|
|
|
2944
2969
|
render: t.renderItem
|
|
2945
2970
|
}, {
|
|
2946
2971
|
default: w((c) => [
|
|
2947
|
-
|
|
2972
|
+
U(a.$slots, "eliminated-item", he(ge(c)))
|
|
2948
2973
|
]),
|
|
2949
2974
|
_: 3
|
|
2950
2975
|
}, 8, ["render"])
|
|
@@ -2961,17 +2986,21 @@ const xr = {
|
|
|
2961
2986
|
function fo(e) {
|
|
2962
2987
|
const t = e || '[data-interactive-key="true"]';
|
|
2963
2988
|
return [...document.querySelectorAll(t)].map(
|
|
2964
|
-
(r) =>
|
|
2989
|
+
(r) => yo(r, go(r))
|
|
2965
2990
|
);
|
|
2966
2991
|
}
|
|
2967
2992
|
function mo() {
|
|
2968
2993
|
fo();
|
|
2969
2994
|
}
|
|
2970
2995
|
function ho(e) {
|
|
2996
|
+
return e ? e.split(",").map((t) => Number(t.trim())).filter((t) => !isNaN(t)) : [];
|
|
2997
|
+
}
|
|
2998
|
+
function go(e) {
|
|
2971
2999
|
return {
|
|
2972
3000
|
observationMatrixId: Number(
|
|
2973
3001
|
e.getAttribute("data-observation-matrix-id")
|
|
2974
3002
|
),
|
|
3003
|
+
otuId: ho(e.getAttribute("data-otu-id")),
|
|
2975
3004
|
apiConfig: {
|
|
2976
3005
|
baseURL: e.getAttribute("data-base-url") || "",
|
|
2977
3006
|
projectToken: e.getAttribute("data-project-token") || void 0,
|
|
@@ -2981,7 +3010,7 @@ function ho(e) {
|
|
|
2981
3010
|
}
|
|
2982
3011
|
};
|
|
2983
3012
|
}
|
|
2984
|
-
function
|
|
3013
|
+
function yo(e, t) {
|
|
2985
3014
|
const { apiConfig: n, observationMatrixId: s } = t;
|
|
2986
3015
|
if (!s)
|
|
2987
3016
|
throw "Missing observation matrix ID";
|
|
@@ -2996,6 +3025,6 @@ function go(e, t) {
|
|
|
2996
3025
|
typeof window < "u" && window.addEventListener("DOMContentLoaded", mo);
|
|
2997
3026
|
export {
|
|
2998
3027
|
po as VueInteractiveKey,
|
|
2999
|
-
|
|
3028
|
+
yo as createInteractiveKey,
|
|
3000
3029
|
fo as discoverInteractiveKey
|
|
3001
3030
|
};
|