tsviewer 1.0.28 → 1.0.30
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/{BFButton-V2zgKAQA.mjs → BFButton-CI70UW6L.mjs} +2 -2
- package/dist/{IconSelection-BGj1-2Pf.mjs → IconSelection-CFPXCYRf.mjs} +1 -1
- package/dist/TSAnnotationCanvas-CvgQNy_8.mjs +730 -0
- package/dist/{TSAnnotationModal-BKwEWORY.mjs → TSAnnotationModal-EjnPa9Zo.mjs} +3 -3
- package/dist/{TSFilterModal-DjKgP7Y2.mjs → TSFilterModal-CJH8zXyp.mjs} +3 -3
- package/dist/{TSScrubber-BZo4SyGm.mjs → TSScrubber-BHyiFEEN.mjs} +46 -49
- package/dist/{TSViewerCanvas-CeGKq-zQ.mjs → TSViewerCanvas-bkWRtQiL.mjs} +2198 -2202
- package/dist/{TSViewerLayerWindow-laXtlKCp.mjs → TSViewerLayerWindow-BQ94kN9H.mjs} +2 -2
- package/dist/{TSViewerToolbar-CQ4uNXil.mjs → TSViewerToolbar-Difc8d0T.mjs} +1 -1
- package/dist/{TsAnnotationDeleteDialog-CoPkyAmW.mjs → TsAnnotationDeleteDialog-DxKI_m1a.mjs} +3 -3
- package/dist/index-knEI45_O.mjs +1308 -0
- package/dist/pathOr-DBQF4FRd.mjs +18 -0
- package/dist/tsviewer.css +1 -1
- package/dist/tsviewer.es.js +3 -3
- package/dist/tsviewer.umd.js +13 -13
- package/package.json +1 -1
- package/dist/TSAnnotationCanvas-DS-_o3gh.mjs +0 -732
- package/dist/index-BtnXpu3W.mjs +0 -902
- package/dist/pathOr-DE7WGRqe.mjs +0 -18
- package/dist/request_composable-DV-ftNZG.mjs +0 -212
- package/dist/useToken-CJWB6KGF.mjs +0 -16
package/dist/pathOr-DE7WGRqe.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { a as h, n as i, o, l as s, h as f } from "./index-BtnXpu3W.mjs";
|
|
2
|
-
var l = /* @__PURE__ */ h(function(r, a) {
|
|
3
|
-
return r.map(function(n) {
|
|
4
|
-
for (var t = a, e = 0, u; e < n.length; ) {
|
|
5
|
-
if (t == null)
|
|
6
|
-
return;
|
|
7
|
-
u = n[e], t = o(u) ? i(u, t) : t[u], e += 1;
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
});
|
|
11
|
-
}), v = /* @__PURE__ */ h(function(r, a) {
|
|
12
|
-
return l([r], a)[0];
|
|
13
|
-
}), m = /* @__PURE__ */ s(function(r, a, n) {
|
|
14
|
-
return f(r, v(a, n));
|
|
15
|
-
});
|
|
16
|
-
export {
|
|
17
|
-
m as p
|
|
18
|
-
};
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { b as p, i as b, j as _, a as w, l as S, h as l, m as i, p as d } from "./index-BtnXpu3W.mjs";
|
|
2
|
-
function E(t, r) {
|
|
3
|
-
t = t || [], r = r || [];
|
|
4
|
-
var e, n = t.length, u = r.length, a = [];
|
|
5
|
-
for (e = 0; e < n; )
|
|
6
|
-
a[a.length] = t[e], e += 1;
|
|
7
|
-
for (e = 0; e < u; )
|
|
8
|
-
a[a.length] = r[e], e += 1;
|
|
9
|
-
return a;
|
|
10
|
-
}
|
|
11
|
-
function f(t, r) {
|
|
12
|
-
switch (t) {
|
|
13
|
-
case 0:
|
|
14
|
-
return function() {
|
|
15
|
-
return r.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
case 1:
|
|
18
|
-
return function(e) {
|
|
19
|
-
return r.apply(this, arguments);
|
|
20
|
-
};
|
|
21
|
-
case 2:
|
|
22
|
-
return function(e, n) {
|
|
23
|
-
return r.apply(this, arguments);
|
|
24
|
-
};
|
|
25
|
-
case 3:
|
|
26
|
-
return function(e, n, u) {
|
|
27
|
-
return r.apply(this, arguments);
|
|
28
|
-
};
|
|
29
|
-
case 4:
|
|
30
|
-
return function(e, n, u, a) {
|
|
31
|
-
return r.apply(this, arguments);
|
|
32
|
-
};
|
|
33
|
-
case 5:
|
|
34
|
-
return function(e, n, u, a, o) {
|
|
35
|
-
return r.apply(this, arguments);
|
|
36
|
-
};
|
|
37
|
-
case 6:
|
|
38
|
-
return function(e, n, u, a, o, s) {
|
|
39
|
-
return r.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
case 7:
|
|
42
|
-
return function(e, n, u, a, o, s, c) {
|
|
43
|
-
return r.apply(this, arguments);
|
|
44
|
-
};
|
|
45
|
-
case 8:
|
|
46
|
-
return function(e, n, u, a, o, s, c, h) {
|
|
47
|
-
return r.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
case 9:
|
|
50
|
-
return function(e, n, u, a, o, s, c, h, O) {
|
|
51
|
-
return r.apply(this, arguments);
|
|
52
|
-
};
|
|
53
|
-
case 10:
|
|
54
|
-
return function(e, n, u, a, o, s, c, h, O, $) {
|
|
55
|
-
return r.apply(this, arguments);
|
|
56
|
-
};
|
|
57
|
-
default:
|
|
58
|
-
throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
var A = /* @__PURE__ */ p(function(r) {
|
|
62
|
-
return b(r) ? !0 : !r || typeof r != "object" || _(r) ? !1 : r.length === 0 ? !0 : r.length > 0 ? r.hasOwnProperty(0) && r.hasOwnProperty(r.length - 1) : !1;
|
|
63
|
-
}), R = /* @__PURE__ */ function() {
|
|
64
|
-
function t(r) {
|
|
65
|
-
this.f = r;
|
|
66
|
-
}
|
|
67
|
-
return t.prototype["@@transducer/init"] = function() {
|
|
68
|
-
throw new Error("init not implemented on XWrap");
|
|
69
|
-
}, t.prototype["@@transducer/result"] = function(r) {
|
|
70
|
-
return r;
|
|
71
|
-
}, t.prototype["@@transducer/step"] = function(r, e) {
|
|
72
|
-
return this.f(r, e);
|
|
73
|
-
}, t;
|
|
74
|
-
}();
|
|
75
|
-
function C(t) {
|
|
76
|
-
return new R(t);
|
|
77
|
-
}
|
|
78
|
-
var P = /* @__PURE__ */ w(function(r, e) {
|
|
79
|
-
return f(r.length, function() {
|
|
80
|
-
return r.apply(e, arguments);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
function T(t, r, e) {
|
|
84
|
-
for (var n = 0, u = e.length; n < u; ) {
|
|
85
|
-
if (r = t["@@transducer/step"](r, e[n]), r && r["@@transducer/reduced"]) {
|
|
86
|
-
r = r["@@transducer/value"];
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
n += 1;
|
|
90
|
-
}
|
|
91
|
-
return t["@@transducer/result"](r);
|
|
92
|
-
}
|
|
93
|
-
function y(t, r, e) {
|
|
94
|
-
for (var n = e.next(); !n.done; ) {
|
|
95
|
-
if (r = t["@@transducer/step"](r, n.value), r && r["@@transducer/reduced"]) {
|
|
96
|
-
r = r["@@transducer/value"];
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
n = e.next();
|
|
100
|
-
}
|
|
101
|
-
return t["@@transducer/result"](r);
|
|
102
|
-
}
|
|
103
|
-
function g(t, r, e, n) {
|
|
104
|
-
return t["@@transducer/result"](e[n](P(t["@@transducer/step"], t), r));
|
|
105
|
-
}
|
|
106
|
-
var m = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
107
|
-
function X(t, r, e) {
|
|
108
|
-
if (typeof t == "function" && (t = C(t)), A(e))
|
|
109
|
-
return T(t, r, e);
|
|
110
|
-
if (typeof e["fantasy-land/reduce"] == "function")
|
|
111
|
-
return g(t, r, e, "fantasy-land/reduce");
|
|
112
|
-
if (e[m] != null)
|
|
113
|
-
return y(t, r, e[m]());
|
|
114
|
-
if (typeof e.next == "function")
|
|
115
|
-
return y(t, r, e);
|
|
116
|
-
if (typeof e.reduce == "function")
|
|
117
|
-
return g(t, r, e, "reduce");
|
|
118
|
-
throw new TypeError("reduce: list must be array or iterable");
|
|
119
|
-
}
|
|
120
|
-
var k = /* @__PURE__ */ S(X);
|
|
121
|
-
function q(t, r) {
|
|
122
|
-
return function() {
|
|
123
|
-
return r.call(this, t.apply(this, arguments));
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function j(t, r) {
|
|
127
|
-
return function() {
|
|
128
|
-
var e = arguments.length;
|
|
129
|
-
if (e === 0)
|
|
130
|
-
return r();
|
|
131
|
-
var n = arguments[e - 1];
|
|
132
|
-
return b(n) || typeof n[t] != "function" ? r.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, e - 1));
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
var H = /* @__PURE__ */ S(
|
|
136
|
-
/* @__PURE__ */ j("slice", function(r, e, n) {
|
|
137
|
-
return Array.prototype.slice.call(n, r, e);
|
|
138
|
-
})
|
|
139
|
-
), L = /* @__PURE__ */ p(
|
|
140
|
-
/* @__PURE__ */ j(
|
|
141
|
-
"tail",
|
|
142
|
-
/* @__PURE__ */ H(1, 1 / 0)
|
|
143
|
-
)
|
|
144
|
-
);
|
|
145
|
-
function W() {
|
|
146
|
-
if (arguments.length === 0)
|
|
147
|
-
throw new Error("pipe requires at least one argument");
|
|
148
|
-
return f(arguments[0].length, k(q, arguments[0], L(arguments)));
|
|
149
|
-
}
|
|
150
|
-
var F = /* @__PURE__ */ p(function(r) {
|
|
151
|
-
return _(r) ? r.split("").reverse().join("") : Array.prototype.slice.call(r, 0).reverse();
|
|
152
|
-
});
|
|
153
|
-
function v() {
|
|
154
|
-
if (arguments.length === 0)
|
|
155
|
-
throw new Error("compose requires at least one argument");
|
|
156
|
-
return W.apply(this, F(arguments));
|
|
157
|
-
}
|
|
158
|
-
var I = /* @__PURE__ */ w(function(r, e) {
|
|
159
|
-
return f(r.length, function() {
|
|
160
|
-
try {
|
|
161
|
-
return r.apply(this, arguments);
|
|
162
|
-
} catch (n) {
|
|
163
|
-
return e.apply(this, E([n], arguments));
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
function J(t) {
|
|
168
|
-
if (useRoute().name === "docs-login")
|
|
169
|
-
return;
|
|
170
|
-
l(!1, i("shouldShowToast", t));
|
|
171
|
-
const e = l(!1, i("shouldRedirect", t));
|
|
172
|
-
this.clearState(), e && this.$route.fullPath;
|
|
173
|
-
}
|
|
174
|
-
const N = (t) => Object.prototype.toString.call(t) === "[object String]", U = (t) => {
|
|
175
|
-
Object.keys(t).forEach((r) => {
|
|
176
|
-
N(t[r]) && (t[r] = t[r].trim());
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
function D(t, r) {
|
|
180
|
-
if (!t)
|
|
181
|
-
return Promise.reject({ status: 400, message: "Url is missing!" });
|
|
182
|
-
const e = d("GET", "method", r), n = d({}, "header", r), u = Object.assign({}, { "Content-type": "application/json" }, n), a = i("body", r);
|
|
183
|
-
let o = { headers: u, method: e };
|
|
184
|
-
if (a) {
|
|
185
|
-
typeof a == "object" && U(a);
|
|
186
|
-
const s = JSON.stringify(a);
|
|
187
|
-
o = Object.assign({}, o, { body: s });
|
|
188
|
-
}
|
|
189
|
-
return fetch(t, o).then((s) => s.status >= 400 ? Promise.reject(s) : s.json().catch(() => s));
|
|
190
|
-
}
|
|
191
|
-
function G(t) {
|
|
192
|
-
const r = i("status", t);
|
|
193
|
-
let e;
|
|
194
|
-
if (r === void 0) {
|
|
195
|
-
console.log(t);
|
|
196
|
-
return;
|
|
197
|
-
} else
|
|
198
|
-
e = t.status;
|
|
199
|
-
if (e === 400 && t.body)
|
|
200
|
-
t.body.getReader().read().then(({ done: n, value: u }) => {
|
|
201
|
-
const a = u instanceof Uint8Array ? String.fromCharCode.apply(null, u) : u;
|
|
202
|
-
v(l(a), I(v(i("message"), JSON.parse), (o, s) => s))(a);
|
|
203
|
-
});
|
|
204
|
-
else if (e === 401)
|
|
205
|
-
return J();
|
|
206
|
-
}
|
|
207
|
-
export {
|
|
208
|
-
f as _,
|
|
209
|
-
X as a,
|
|
210
|
-
G as b,
|
|
211
|
-
D as u
|
|
212
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { fetchAuthSession as e } from "aws-amplify/auth";
|
|
2
|
-
async function c() {
|
|
3
|
-
try {
|
|
4
|
-
return e().then(
|
|
5
|
-
(r) => {
|
|
6
|
-
var t;
|
|
7
|
-
return (t = r == null ? void 0 : r.tokens) == null ? void 0 : t.accessToken.toString();
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
} catch (r) {
|
|
11
|
-
console.error(r);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
c as u
|
|
16
|
-
};
|