@dpuse/dpuse-tool-rust-csv-core-parser 1.0.117 → 1.0.119
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.
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
// node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
|
|
2
|
-
|
|
3
|
-
return new Map(Object.entries(e));
|
|
4
|
-
}
|
|
5
|
-
var t = {
|
|
2
|
+
var e = {
|
|
6
3
|
lang: void 0,
|
|
7
4
|
message: void 0,
|
|
8
5
|
abortEarly: void 0,
|
|
9
6
|
abortPipeEarly: void 0
|
|
10
7
|
};
|
|
11
8
|
/* @__NO_SIDE_EFFECTS__ */
|
|
12
|
-
function
|
|
13
|
-
return
|
|
14
|
-
lang:
|
|
15
|
-
message:
|
|
16
|
-
abortEarly:
|
|
17
|
-
abortPipeEarly:
|
|
18
|
-
} :
|
|
9
|
+
function t(t) {
|
|
10
|
+
return t ? {
|
|
11
|
+
lang: t?.lang ?? void 0,
|
|
12
|
+
message: t?.message,
|
|
13
|
+
abortEarly: t?.abortEarly ?? void 0,
|
|
14
|
+
abortPipeEarly: t?.abortPipeEarly ?? void 0
|
|
15
|
+
} : e;
|
|
19
16
|
}
|
|
20
17
|
/* @__NO_SIDE_EFFECTS__ */
|
|
21
|
-
function
|
|
18
|
+
function n(e) {
|
|
22
19
|
let t = typeof e;
|
|
23
20
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
24
21
|
}
|
|
25
|
-
function
|
|
26
|
-
let o = a && "input" in a ? a.input :
|
|
22
|
+
function r(e, t, r, i, a) {
|
|
23
|
+
let o = a && "input" in a ? a.input : r.value, s = a?.expected ?? e.expects ?? null, c = a?.received ?? /* @__PURE__ */ n(o), l = {
|
|
27
24
|
kind: e.kind,
|
|
28
25
|
type: e.type,
|
|
29
26
|
input: o,
|
|
@@ -37,97 +34,97 @@ function i(e, t, n, i, a) {
|
|
|
37
34
|
abortEarly: i.abortEarly,
|
|
38
35
|
abortPipeEarly: i.abortPipeEarly
|
|
39
36
|
}, u = e.kind === "schema", d = a?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? i.message ?? (l.lang, void 0);
|
|
40
|
-
d !== void 0 && (l.message = typeof d == "function" ? d(l) : d), u && (
|
|
37
|
+
d !== void 0 && (l.message = typeof d == "function" ? d(l) : d), u && (r.typed = !1), r.issues ? r.issues.push(l) : r.issues = [l];
|
|
41
38
|
}
|
|
42
39
|
/* @__NO_SIDE_EFFECTS__ */
|
|
43
|
-
function
|
|
40
|
+
function i(e, t) {
|
|
44
41
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
45
42
|
}
|
|
46
43
|
/* @__NO_SIDE_EFFECTS__ */
|
|
47
|
-
function
|
|
44
|
+
function a(e, t) {
|
|
48
45
|
let n = [...new Set(e)];
|
|
49
46
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
50
47
|
}
|
|
51
|
-
function
|
|
48
|
+
function o(e) {
|
|
52
49
|
return e["~standard"] = {
|
|
53
50
|
version: 1,
|
|
54
51
|
vendor: "valibot",
|
|
55
|
-
validate: (
|
|
52
|
+
validate: (n) => e["~run"]({ value: n }, /* @__PURE__ */ t())
|
|
56
53
|
}, e;
|
|
57
54
|
}
|
|
58
55
|
/* @__NO_SIDE_EFFECTS__ */
|
|
59
|
-
function
|
|
56
|
+
function s(e, t, n) {
|
|
60
57
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
61
58
|
}
|
|
62
59
|
/* @__NO_SIDE_EFFECTS__ */
|
|
63
|
-
function
|
|
60
|
+
function c(e, t, n) {
|
|
64
61
|
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
65
62
|
}
|
|
66
63
|
/* @__NO_SIDE_EFFECTS__ */
|
|
67
|
-
function
|
|
68
|
-
return
|
|
64
|
+
function l(e, t) {
|
|
65
|
+
return o({
|
|
69
66
|
kind: "schema",
|
|
70
67
|
type: "literal",
|
|
71
|
-
reference:
|
|
72
|
-
expects: /* @__PURE__ */
|
|
68
|
+
reference: l,
|
|
69
|
+
expects: /* @__PURE__ */ n(e),
|
|
73
70
|
async: !1,
|
|
74
71
|
literal: e,
|
|
75
72
|
message: t,
|
|
76
73
|
"~run"(e, t) {
|
|
77
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ i(e.value, this.literal) ? e.typed = !0 : r(this, "type", e, t), e;
|
|
78
75
|
}
|
|
79
76
|
});
|
|
80
77
|
}
|
|
81
78
|
/* @__NO_SIDE_EFFECTS__ */
|
|
82
|
-
function
|
|
83
|
-
return
|
|
79
|
+
function u(e, t) {
|
|
80
|
+
return o({
|
|
84
81
|
kind: "schema",
|
|
85
82
|
type: "nullable",
|
|
86
|
-
reference:
|
|
83
|
+
reference: u,
|
|
87
84
|
expects: `(${e.expects} | null)`,
|
|
88
85
|
async: !1,
|
|
89
86
|
wrapped: e,
|
|
90
87
|
default: t,
|
|
91
88
|
"~run"(e, t) {
|
|
92
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
89
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ c(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
93
90
|
}
|
|
94
91
|
});
|
|
95
92
|
}
|
|
96
93
|
/* @__NO_SIDE_EFFECTS__ */
|
|
97
|
-
function
|
|
98
|
-
return
|
|
94
|
+
function d(e) {
|
|
95
|
+
return o({
|
|
99
96
|
kind: "schema",
|
|
100
97
|
type: "number",
|
|
101
|
-
reference:
|
|
98
|
+
reference: d,
|
|
102
99
|
expects: "number",
|
|
103
100
|
async: !1,
|
|
104
101
|
message: e,
|
|
105
102
|
"~run"(e, t) {
|
|
106
|
-
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 :
|
|
103
|
+
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : r(this, "type", e, t), e;
|
|
107
104
|
}
|
|
108
105
|
});
|
|
109
106
|
}
|
|
110
107
|
/* @__NO_SIDE_EFFECTS__ */
|
|
111
|
-
function
|
|
112
|
-
return
|
|
108
|
+
function f(e, t) {
|
|
109
|
+
return o({
|
|
113
110
|
kind: "schema",
|
|
114
111
|
type: "optional",
|
|
115
|
-
reference:
|
|
112
|
+
reference: f,
|
|
116
113
|
expects: `(${e.expects} | undefined)`,
|
|
117
114
|
async: !1,
|
|
118
115
|
wrapped: e,
|
|
119
116
|
default: t,
|
|
120
117
|
"~run"(e, t) {
|
|
121
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
118
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ c(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
122
119
|
}
|
|
123
120
|
});
|
|
124
121
|
}
|
|
125
122
|
/* @__NO_SIDE_EFFECTS__ */
|
|
126
|
-
function
|
|
127
|
-
return
|
|
123
|
+
function p(e, t) {
|
|
124
|
+
return o({
|
|
128
125
|
kind: "schema",
|
|
129
126
|
type: "strict_object",
|
|
130
|
-
reference:
|
|
127
|
+
reference: p,
|
|
131
128
|
expects: "Object",
|
|
132
129
|
async: !1,
|
|
133
130
|
entries: e,
|
|
@@ -136,17 +133,17 @@ function m(e, t) {
|
|
|
136
133
|
let n = e.value;
|
|
137
134
|
if (n && typeof n == "object") {
|
|
138
135
|
e.typed = !0, e.value = {};
|
|
139
|
-
for (let
|
|
140
|
-
let a = this.entries[
|
|
141
|
-
if (
|
|
142
|
-
let
|
|
136
|
+
for (let i in this.entries) {
|
|
137
|
+
let a = this.entries[i];
|
|
138
|
+
if (i in n || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
|
|
139
|
+
let r = i in n ? n[i] : /* @__PURE__ */ c(a), o = a["~run"]({ value: r }, t);
|
|
143
140
|
if (o.issues) {
|
|
144
141
|
let a = {
|
|
145
142
|
type: "object",
|
|
146
143
|
origin: "value",
|
|
147
144
|
input: n,
|
|
148
|
-
key:
|
|
149
|
-
value:
|
|
145
|
+
key: i,
|
|
146
|
+
value: r
|
|
150
147
|
};
|
|
151
148
|
for (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);
|
|
152
149
|
if (e.issues ||= o.issues, t.abortEarly) {
|
|
@@ -154,78 +151,78 @@ function m(e, t) {
|
|
|
154
151
|
break;
|
|
155
152
|
}
|
|
156
153
|
}
|
|
157
|
-
o.typed || (e.typed = !1), e.value[
|
|
158
|
-
} else if (a.fallback !== void 0) e.value[
|
|
159
|
-
else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (
|
|
154
|
+
o.typed || (e.typed = !1), e.value[i] = o.value;
|
|
155
|
+
} else if (a.fallback !== void 0) e.value[i] = /* @__PURE__ */ s(a);
|
|
156
|
+
else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (r(this, "key", e, t, {
|
|
160
157
|
input: void 0,
|
|
161
|
-
expected: `"${
|
|
158
|
+
expected: `"${i}"`,
|
|
162
159
|
path: [{
|
|
163
160
|
type: "object",
|
|
164
161
|
origin: "key",
|
|
165
162
|
input: n,
|
|
166
|
-
key:
|
|
167
|
-
value: n[
|
|
163
|
+
key: i,
|
|
164
|
+
value: n[i]
|
|
168
165
|
}]
|
|
169
166
|
}), t.abortEarly)) break;
|
|
170
167
|
}
|
|
171
168
|
if (!e.issues || !t.abortEarly) {
|
|
172
|
-
for (let
|
|
173
|
-
|
|
174
|
-
input:
|
|
169
|
+
for (let i in n) if (!Object.prototype.hasOwnProperty.call(this.entries, i)) {
|
|
170
|
+
r(this, "key", e, t, {
|
|
171
|
+
input: i,
|
|
175
172
|
expected: "never",
|
|
176
173
|
path: [{
|
|
177
174
|
type: "object",
|
|
178
175
|
origin: "key",
|
|
179
176
|
input: n,
|
|
180
|
-
key:
|
|
181
|
-
value: n[
|
|
177
|
+
key: i,
|
|
178
|
+
value: n[i]
|
|
182
179
|
}]
|
|
183
180
|
});
|
|
184
181
|
break;
|
|
185
182
|
}
|
|
186
183
|
}
|
|
187
|
-
} else
|
|
184
|
+
} else r(this, "type", e, t);
|
|
188
185
|
return e;
|
|
189
186
|
}
|
|
190
187
|
});
|
|
191
188
|
}
|
|
192
189
|
/* @__NO_SIDE_EFFECTS__ */
|
|
193
|
-
function
|
|
194
|
-
return
|
|
190
|
+
function m(e) {
|
|
191
|
+
return o({
|
|
195
192
|
kind: "schema",
|
|
196
193
|
type: "string",
|
|
197
|
-
reference:
|
|
194
|
+
reference: m,
|
|
198
195
|
expects: "string",
|
|
199
196
|
async: !1,
|
|
200
197
|
message: e,
|
|
201
198
|
"~run"(e, t) {
|
|
202
|
-
return typeof e.value == "string" ? e.typed = !0 :
|
|
199
|
+
return typeof e.value == "string" ? e.typed = !0 : r(this, "type", e, t), e;
|
|
203
200
|
}
|
|
204
201
|
});
|
|
205
202
|
}
|
|
206
203
|
/* @__NO_SIDE_EFFECTS__ */
|
|
207
|
-
function
|
|
204
|
+
function h(e) {
|
|
208
205
|
let t;
|
|
209
206
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
210
207
|
else t = n.issues;
|
|
211
208
|
return t;
|
|
212
209
|
}
|
|
213
210
|
/* @__NO_SIDE_EFFECTS__ */
|
|
214
|
-
function
|
|
215
|
-
return
|
|
211
|
+
function g(e, t) {
|
|
212
|
+
return o({
|
|
216
213
|
kind: "schema",
|
|
217
214
|
type: "union",
|
|
218
|
-
reference:
|
|
219
|
-
expects: /* @__PURE__ */
|
|
215
|
+
reference: g,
|
|
216
|
+
expects: /* @__PURE__ */ a(e.map((e) => e.expects), "|"),
|
|
220
217
|
async: !1,
|
|
221
218
|
options: e,
|
|
222
219
|
message: t,
|
|
223
220
|
"~run"(e, t) {
|
|
224
|
-
let n,
|
|
225
|
-
for (let
|
|
226
|
-
let o =
|
|
221
|
+
let n, i, a;
|
|
222
|
+
for (let r of this.options) {
|
|
223
|
+
let o = r["~run"]({ value: e.value }, t);
|
|
227
224
|
if (o.typed) {
|
|
228
|
-
if (o.issues)
|
|
225
|
+
if (o.issues) i ? i.push(o) : i = [o];
|
|
229
226
|
else {
|
|
230
227
|
n = o;
|
|
231
228
|
break;
|
|
@@ -233,28 +230,28 @@ function _(e, t) {
|
|
|
233
230
|
} else a ? a.push(o) : a = [o];
|
|
234
231
|
}
|
|
235
232
|
if (n) return n;
|
|
236
|
-
if (
|
|
237
|
-
if (
|
|
238
|
-
|
|
233
|
+
if (i) {
|
|
234
|
+
if (i.length === 1) return i[0];
|
|
235
|
+
r(this, "type", e, t, { issues: /* @__PURE__ */ h(i) }), e.typed = !0;
|
|
239
236
|
} else if (a?.length === 1) return a[0];
|
|
240
|
-
else
|
|
237
|
+
else r(this, "type", e, t, { issues: /* @__PURE__ */ h(a) });
|
|
241
238
|
return e;
|
|
242
239
|
}
|
|
243
240
|
});
|
|
244
241
|
}
|
|
245
|
-
var
|
|
246
|
-
id: /* @__PURE__ */
|
|
247
|
-
label: /* @__PURE__ */
|
|
248
|
-
en: /* @__PURE__ */
|
|
249
|
-
es: /* @__PURE__ */
|
|
242
|
+
var _ = {
|
|
243
|
+
id: /* @__PURE__ */ m(),
|
|
244
|
+
label: /* @__PURE__ */ p({
|
|
245
|
+
en: /* @__PURE__ */ f(/* @__PURE__ */ m()),
|
|
246
|
+
es: /* @__PURE__ */ f(/* @__PURE__ */ m())
|
|
250
247
|
}),
|
|
251
|
-
description: /* @__PURE__ */
|
|
252
|
-
en: /* @__PURE__ */
|
|
253
|
-
es: /* @__PURE__ */
|
|
248
|
+
description: /* @__PURE__ */ p({
|
|
249
|
+
en: /* @__PURE__ */ f(/* @__PURE__ */ m()),
|
|
250
|
+
es: /* @__PURE__ */ f(/* @__PURE__ */ m())
|
|
254
251
|
}),
|
|
255
|
-
icon: /* @__PURE__ */
|
|
256
|
-
iconDark: /* @__PURE__ */
|
|
257
|
-
},
|
|
252
|
+
icon: /* @__PURE__ */ u(/* @__PURE__ */ m()),
|
|
253
|
+
iconDark: /* @__PURE__ */ u(/* @__PURE__ */ m())
|
|
254
|
+
}, v = (e) => /* @__PURE__ */ g(e.map((e) => /* @__PURE__ */ l(e))), y = v([
|
|
258
255
|
"app",
|
|
259
256
|
"connector",
|
|
260
257
|
"connectorConnection",
|
|
@@ -276,31 +273,77 @@ var v = {
|
|
|
276
273
|
"presenter",
|
|
277
274
|
"presenterPresentation",
|
|
278
275
|
"tool"
|
|
279
|
-
]),
|
|
276
|
+
]), b = v([
|
|
280
277
|
"danger",
|
|
281
278
|
"success",
|
|
282
279
|
"warning"
|
|
283
|
-
]),
|
|
280
|
+
]), x = v([
|
|
284
281
|
"alpha",
|
|
285
282
|
"beta",
|
|
286
283
|
"releaseCandidate",
|
|
287
284
|
"generalAvailability"
|
|
288
|
-
]),
|
|
289
|
-
color:
|
|
290
|
-
label: /* @__PURE__ */
|
|
291
|
-
}),
|
|
292
|
-
...
|
|
293
|
-
typeId:
|
|
285
|
+
]), S = /* @__PURE__ */ p({
|
|
286
|
+
color: b,
|
|
287
|
+
label: /* @__PURE__ */ m()
|
|
288
|
+
}), C = {
|
|
289
|
+
..._,
|
|
290
|
+
typeId: y
|
|
294
291
|
};
|
|
295
|
-
({ ...
|
|
296
|
-
var
|
|
297
|
-
...
|
|
298
|
-
firstCreatedAt: /* @__PURE__ */
|
|
299
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
300
|
-
status: /* @__PURE__ */
|
|
301
|
-
statusId: /* @__PURE__ */
|
|
292
|
+
({ ...C });
|
|
293
|
+
var w = {
|
|
294
|
+
...C,
|
|
295
|
+
firstCreatedAt: /* @__PURE__ */ u(/* @__PURE__ */ d()),
|
|
296
|
+
lastUpdatedAt: /* @__PURE__ */ u(/* @__PURE__ */ d()),
|
|
297
|
+
status: /* @__PURE__ */ u(S),
|
|
298
|
+
statusId: /* @__PURE__ */ u(x)
|
|
302
299
|
};
|
|
303
|
-
({ ...
|
|
300
|
+
({ ...w });
|
|
301
|
+
var T = [
|
|
302
|
+
{
|
|
303
|
+
id: ",",
|
|
304
|
+
character: ","
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
id: ";",
|
|
308
|
+
character: ";"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
id: " ",
|
|
312
|
+
character: " "
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
id: "|",
|
|
316
|
+
character: "|"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: " ",
|
|
320
|
+
character: " "
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
id: ":",
|
|
324
|
+
character: ":"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
id: "_",
|
|
328
|
+
character: "_"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
id: "!",
|
|
332
|
+
character: "!"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: "0x1F",
|
|
336
|
+
character: ""
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: "0x1E",
|
|
340
|
+
character: ""
|
|
341
|
+
}
|
|
342
|
+
];
|
|
343
|
+
function E(e) {
|
|
344
|
+
return T.find(({ id: t }) => t === e)?.character ?? e;
|
|
345
|
+
}
|
|
346
|
+
v([
|
|
304
347
|
"app",
|
|
305
348
|
"engine",
|
|
306
349
|
"connector",
|
|
@@ -308,14 +351,14 @@ var T = {
|
|
|
308
351
|
"presenter",
|
|
309
352
|
"tool"
|
|
310
353
|
]);
|
|
311
|
-
var
|
|
312
|
-
...
|
|
313
|
-
vendorAccountURL: /* @__PURE__ */
|
|
314
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
315
|
-
vendorHomeURL: /* @__PURE__ */
|
|
316
|
-
version: /* @__PURE__ */
|
|
354
|
+
var D = {
|
|
355
|
+
...w,
|
|
356
|
+
vendorAccountURL: /* @__PURE__ */ u(/* @__PURE__ */ m()),
|
|
357
|
+
vendorDocumentationURL: /* @__PURE__ */ u(/* @__PURE__ */ m()),
|
|
358
|
+
vendorHomeURL: /* @__PURE__ */ u(/* @__PURE__ */ m()),
|
|
359
|
+
version: /* @__PURE__ */ m()
|
|
317
360
|
};
|
|
318
|
-
({ ...
|
|
361
|
+
({ ...D }), v([
|
|
319
362
|
"abortOperation",
|
|
320
363
|
"auditObjectContent",
|
|
321
364
|
"closeStore",
|
|
@@ -332,484 +375,844 @@ var E = {
|
|
|
332
375
|
"previewObject",
|
|
333
376
|
"queryRecords",
|
|
334
377
|
"removeRecords",
|
|
335
|
-
"retrieveChunks",
|
|
336
378
|
"retrieveRecords",
|
|
337
379
|
"upsertRecords"
|
|
338
|
-
]),
|
|
380
|
+
]), v([
|
|
339
381
|
"application",
|
|
340
382
|
"curatedDataset",
|
|
341
383
|
"database",
|
|
342
384
|
"fileStore"
|
|
343
|
-
]),
|
|
385
|
+
]), v([
|
|
344
386
|
"apiEndpoint",
|
|
345
387
|
"file",
|
|
346
388
|
"table"
|
|
347
|
-
]),
|
|
389
|
+
]), v([
|
|
348
390
|
"bidirectional",
|
|
349
391
|
"destination",
|
|
350
392
|
"source",
|
|
351
393
|
"unknown"
|
|
352
|
-
]),
|
|
394
|
+
]), v([
|
|
353
395
|
"apiKey",
|
|
354
396
|
"disabled",
|
|
355
397
|
"oAuth2",
|
|
356
398
|
"none"
|
|
357
|
-
]), { ...
|
|
358
|
-
var
|
|
399
|
+
]), { ...D };
|
|
400
|
+
var O = {
|
|
401
|
+
"armscii-8": {
|
|
402
|
+
id: "armscii-8",
|
|
403
|
+
groupId: "armenian",
|
|
404
|
+
isDetectable: !1,
|
|
405
|
+
textDecoderId: null,
|
|
406
|
+
iconvLiteDecoderId: "armscii8"
|
|
407
|
+
},
|
|
359
408
|
ascii: {
|
|
360
409
|
id: "ascii",
|
|
361
410
|
groupId: null,
|
|
362
|
-
|
|
411
|
+
isDetectable: !0,
|
|
412
|
+
textDecoderId: "windows-1252",
|
|
413
|
+
iconvLiteDecoderId: "ascii"
|
|
363
414
|
},
|
|
364
415
|
big5: {
|
|
365
416
|
id: "big5",
|
|
366
417
|
groupId: "chineseTraditional",
|
|
367
|
-
|
|
418
|
+
isDetectable: !0,
|
|
419
|
+
textDecoderId: "big5",
|
|
420
|
+
iconvLiteDecoderId: "big5hkscs"
|
|
421
|
+
},
|
|
422
|
+
"cesu-8": {
|
|
423
|
+
id: "cesu-8",
|
|
424
|
+
groupId: "unicode",
|
|
425
|
+
isDetectable: !1,
|
|
426
|
+
textDecoderId: null,
|
|
427
|
+
iconvLiteDecoderId: "cesu8"
|
|
368
428
|
},
|
|
369
429
|
cp273: {
|
|
370
430
|
id: "cp273",
|
|
371
431
|
groupId: "western",
|
|
372
|
-
|
|
432
|
+
isDetectable: !0,
|
|
433
|
+
textDecoderId: null,
|
|
434
|
+
iconvLiteDecoderId: null
|
|
373
435
|
},
|
|
374
436
|
cp424: {
|
|
375
437
|
id: "cp424",
|
|
376
438
|
groupId: "hebrew",
|
|
377
|
-
|
|
439
|
+
isDetectable: !0,
|
|
440
|
+
textDecoderId: null,
|
|
441
|
+
iconvLiteDecoderId: null
|
|
378
442
|
},
|
|
379
443
|
cp437: {
|
|
380
444
|
id: "cp437",
|
|
381
445
|
groupId: "western",
|
|
382
|
-
|
|
446
|
+
isDetectable: !0,
|
|
447
|
+
textDecoderId: null,
|
|
448
|
+
iconvLiteDecoderId: "cp437"
|
|
383
449
|
},
|
|
384
450
|
cp500: {
|
|
385
451
|
id: "cp500",
|
|
386
452
|
groupId: "western",
|
|
387
|
-
|
|
453
|
+
isDetectable: !0,
|
|
454
|
+
textDecoderId: null,
|
|
455
|
+
iconvLiteDecoderId: null
|
|
388
456
|
},
|
|
389
457
|
cp720: {
|
|
390
458
|
id: "cp720",
|
|
391
459
|
groupId: "arabic",
|
|
392
|
-
|
|
460
|
+
isDetectable: !0,
|
|
461
|
+
textDecoderId: null,
|
|
462
|
+
iconvLiteDecoderId: "cp720"
|
|
393
463
|
},
|
|
394
464
|
cp737: {
|
|
395
465
|
id: "cp737",
|
|
396
466
|
groupId: "greek",
|
|
397
|
-
|
|
467
|
+
isDetectable: !0,
|
|
468
|
+
textDecoderId: null,
|
|
469
|
+
iconvLiteDecoderId: "cp737"
|
|
398
470
|
},
|
|
399
471
|
cp775: {
|
|
400
472
|
id: "cp775",
|
|
401
473
|
groupId: "baltic",
|
|
402
|
-
|
|
474
|
+
isDetectable: !0,
|
|
475
|
+
textDecoderId: null,
|
|
476
|
+
iconvLiteDecoderId: "cp775"
|
|
477
|
+
},
|
|
478
|
+
cp808: {
|
|
479
|
+
id: "cp808",
|
|
480
|
+
groupId: "cyrillic",
|
|
481
|
+
isDetectable: !1,
|
|
482
|
+
textDecoderId: null,
|
|
483
|
+
iconvLiteDecoderId: "cp808"
|
|
403
484
|
},
|
|
404
485
|
cp850: {
|
|
405
486
|
id: "cp850",
|
|
406
487
|
groupId: "western",
|
|
407
|
-
|
|
488
|
+
isDetectable: !0,
|
|
489
|
+
textDecoderId: null,
|
|
490
|
+
iconvLiteDecoderId: "cp850"
|
|
408
491
|
},
|
|
409
492
|
cp852: {
|
|
410
493
|
id: "cp852",
|
|
411
494
|
groupId: "centralEuropean",
|
|
412
|
-
|
|
495
|
+
isDetectable: !0,
|
|
496
|
+
textDecoderId: null,
|
|
497
|
+
iconvLiteDecoderId: "cp852"
|
|
413
498
|
},
|
|
414
499
|
cp856: {
|
|
415
500
|
id: "cp856",
|
|
416
501
|
groupId: "hebrew",
|
|
417
|
-
|
|
502
|
+
isDetectable: !0,
|
|
503
|
+
textDecoderId: null,
|
|
504
|
+
iconvLiteDecoderId: "cp856"
|
|
418
505
|
},
|
|
419
506
|
cp857: {
|
|
420
507
|
id: "cp857",
|
|
421
508
|
groupId: "turkish",
|
|
422
|
-
|
|
509
|
+
isDetectable: !0,
|
|
510
|
+
textDecoderId: null,
|
|
511
|
+
iconvLiteDecoderId: "cp857"
|
|
423
512
|
},
|
|
424
513
|
cp858: {
|
|
425
514
|
id: "cp858",
|
|
426
515
|
groupId: "western",
|
|
427
|
-
|
|
516
|
+
isDetectable: !0,
|
|
517
|
+
textDecoderId: null,
|
|
518
|
+
iconvLiteDecoderId: "cp858"
|
|
428
519
|
},
|
|
429
520
|
cp860: {
|
|
430
521
|
id: "cp860",
|
|
431
522
|
groupId: "western",
|
|
432
|
-
|
|
523
|
+
isDetectable: !0,
|
|
524
|
+
textDecoderId: null,
|
|
525
|
+
iconvLiteDecoderId: "cp860"
|
|
433
526
|
},
|
|
434
527
|
cp861: {
|
|
435
528
|
id: "cp861",
|
|
436
529
|
groupId: "nordic",
|
|
437
|
-
|
|
530
|
+
isDetectable: !0,
|
|
531
|
+
textDecoderId: null,
|
|
532
|
+
iconvLiteDecoderId: "cp861"
|
|
438
533
|
},
|
|
439
534
|
cp862: {
|
|
440
535
|
id: "cp862",
|
|
441
536
|
groupId: "hebrew",
|
|
442
|
-
|
|
537
|
+
isDetectable: !0,
|
|
538
|
+
textDecoderId: null,
|
|
539
|
+
iconvLiteDecoderId: "cp862"
|
|
443
540
|
},
|
|
444
541
|
cp863: {
|
|
445
542
|
id: "cp863",
|
|
446
543
|
groupId: "western",
|
|
447
|
-
|
|
544
|
+
isDetectable: !0,
|
|
545
|
+
textDecoderId: null,
|
|
546
|
+
iconvLiteDecoderId: "cp863"
|
|
448
547
|
},
|
|
449
548
|
cp864: {
|
|
450
549
|
id: "cp864",
|
|
451
550
|
groupId: "arabic",
|
|
452
|
-
|
|
551
|
+
isDetectable: !0,
|
|
552
|
+
textDecoderId: null,
|
|
553
|
+
iconvLiteDecoderId: "cp864"
|
|
453
554
|
},
|
|
454
555
|
cp865: {
|
|
455
556
|
id: "cp865",
|
|
456
557
|
groupId: "nordic",
|
|
457
|
-
|
|
558
|
+
isDetectable: !0,
|
|
559
|
+
textDecoderId: null,
|
|
560
|
+
iconvLiteDecoderId: "cp865"
|
|
458
561
|
},
|
|
459
562
|
cp869: {
|
|
460
563
|
id: "cp869",
|
|
461
564
|
groupId: "greek",
|
|
462
|
-
|
|
565
|
+
isDetectable: !0,
|
|
566
|
+
textDecoderId: null,
|
|
567
|
+
iconvLiteDecoderId: "cp869"
|
|
463
568
|
},
|
|
464
569
|
cp874: {
|
|
465
570
|
id: "cp874",
|
|
466
571
|
groupId: "thai",
|
|
467
|
-
|
|
572
|
+
isDetectable: !0,
|
|
573
|
+
textDecoderId: "windows-874",
|
|
574
|
+
iconvLiteDecoderId: "windows874"
|
|
468
575
|
},
|
|
469
576
|
cp875: {
|
|
470
577
|
id: "cp875",
|
|
471
578
|
groupId: "greek",
|
|
472
|
-
|
|
579
|
+
isDetectable: !0,
|
|
580
|
+
textDecoderId: null,
|
|
581
|
+
iconvLiteDecoderId: null
|
|
582
|
+
},
|
|
583
|
+
cp922: {
|
|
584
|
+
id: "cp922",
|
|
585
|
+
groupId: "baltic",
|
|
586
|
+
isDetectable: !1,
|
|
587
|
+
textDecoderId: null,
|
|
588
|
+
iconvLiteDecoderId: "cp922"
|
|
473
589
|
},
|
|
474
590
|
cp932: {
|
|
475
591
|
id: "cp932",
|
|
476
592
|
groupId: "japanese",
|
|
477
|
-
|
|
593
|
+
isDetectable: !0,
|
|
594
|
+
textDecoderId: "shift_jis",
|
|
595
|
+
iconvLiteDecoderId: "shiftjis"
|
|
596
|
+
},
|
|
597
|
+
cp936: {
|
|
598
|
+
id: "cp936",
|
|
599
|
+
groupId: "chineseSimplified",
|
|
600
|
+
isDetectable: !1,
|
|
601
|
+
textDecoderId: null,
|
|
602
|
+
iconvLiteDecoderId: "cp936"
|
|
478
603
|
},
|
|
479
604
|
cp949: {
|
|
480
605
|
id: "cp949",
|
|
481
606
|
groupId: "korean",
|
|
482
|
-
|
|
607
|
+
isDetectable: !0,
|
|
608
|
+
textDecoderId: "euc-kr",
|
|
609
|
+
iconvLiteDecoderId: "cp949"
|
|
610
|
+
},
|
|
611
|
+
cp950: {
|
|
612
|
+
id: "cp950",
|
|
613
|
+
groupId: "chineseTraditional",
|
|
614
|
+
isDetectable: !1,
|
|
615
|
+
textDecoderId: null,
|
|
616
|
+
iconvLiteDecoderId: "cp950"
|
|
483
617
|
},
|
|
484
618
|
cp1006: {
|
|
485
619
|
id: "cp1006",
|
|
486
620
|
groupId: "arabic",
|
|
487
|
-
|
|
621
|
+
isDetectable: !0,
|
|
622
|
+
textDecoderId: null,
|
|
623
|
+
iconvLiteDecoderId: null
|
|
488
624
|
},
|
|
489
625
|
cp1026: {
|
|
490
626
|
id: "cp1026",
|
|
491
627
|
groupId: "turkish",
|
|
492
|
-
|
|
628
|
+
isDetectable: !0,
|
|
629
|
+
textDecoderId: null,
|
|
630
|
+
iconvLiteDecoderId: null
|
|
631
|
+
},
|
|
632
|
+
cp1046: {
|
|
633
|
+
id: "cp1046",
|
|
634
|
+
groupId: "arabic",
|
|
635
|
+
isDetectable: !1,
|
|
636
|
+
textDecoderId: null,
|
|
637
|
+
iconvLiteDecoderId: "cp1046"
|
|
638
|
+
},
|
|
639
|
+
cp1124: {
|
|
640
|
+
id: "cp1124",
|
|
641
|
+
groupId: "cyrillic",
|
|
642
|
+
isDetectable: !1,
|
|
643
|
+
textDecoderId: null,
|
|
644
|
+
iconvLiteDecoderId: "cp1124"
|
|
493
645
|
},
|
|
494
646
|
cp1125: {
|
|
495
647
|
id: "cp1125",
|
|
496
648
|
groupId: "cyrillic",
|
|
497
|
-
|
|
649
|
+
isDetectable: !0,
|
|
650
|
+
textDecoderId: null,
|
|
651
|
+
iconvLiteDecoderId: "cp1125"
|
|
652
|
+
},
|
|
653
|
+
cp1129: {
|
|
654
|
+
id: "cp1129",
|
|
655
|
+
groupId: "vietnamese",
|
|
656
|
+
isDetectable: !1,
|
|
657
|
+
textDecoderId: null,
|
|
658
|
+
iconvLiteDecoderId: "cp1129"
|
|
659
|
+
},
|
|
660
|
+
cp1133: {
|
|
661
|
+
id: "cp1133",
|
|
662
|
+
groupId: "lao",
|
|
663
|
+
isDetectable: !1,
|
|
664
|
+
textDecoderId: null,
|
|
665
|
+
iconvLiteDecoderId: "cp1133"
|
|
498
666
|
},
|
|
499
667
|
cp1140: {
|
|
500
668
|
id: "cp1140",
|
|
501
669
|
groupId: "western",
|
|
502
|
-
|
|
670
|
+
isDetectable: !0,
|
|
671
|
+
textDecoderId: null,
|
|
672
|
+
iconvLiteDecoderId: null
|
|
673
|
+
},
|
|
674
|
+
cp1161: {
|
|
675
|
+
id: "cp1161",
|
|
676
|
+
groupId: "thai",
|
|
677
|
+
isDetectable: !1,
|
|
678
|
+
textDecoderId: null,
|
|
679
|
+
iconvLiteDecoderId: "cp1161"
|
|
680
|
+
},
|
|
681
|
+
cp1162: {
|
|
682
|
+
id: "cp1162",
|
|
683
|
+
groupId: "thai",
|
|
684
|
+
isDetectable: !1,
|
|
685
|
+
textDecoderId: null,
|
|
686
|
+
iconvLiteDecoderId: "cp1162"
|
|
687
|
+
},
|
|
688
|
+
cp1163: {
|
|
689
|
+
id: "cp1163",
|
|
690
|
+
groupId: "vietnamese",
|
|
691
|
+
isDetectable: !1,
|
|
692
|
+
textDecoderId: null,
|
|
693
|
+
iconvLiteDecoderId: "cp1163"
|
|
503
694
|
},
|
|
504
695
|
cp1258: {
|
|
505
696
|
id: "cp1258",
|
|
506
697
|
groupId: "vietnamese",
|
|
507
|
-
|
|
698
|
+
isDetectable: !0,
|
|
699
|
+
textDecoderId: "windows-1258",
|
|
700
|
+
iconvLiteDecoderId: "windows1258"
|
|
508
701
|
},
|
|
509
702
|
"euc-jp": {
|
|
510
703
|
id: "euc-jp",
|
|
511
704
|
groupId: "japanese",
|
|
512
|
-
|
|
705
|
+
isDetectable: !0,
|
|
706
|
+
textDecoderId: "euc-jp",
|
|
707
|
+
iconvLiteDecoderId: "eucjp"
|
|
513
708
|
},
|
|
514
709
|
"euc-kr": {
|
|
515
710
|
id: "euc-kr",
|
|
516
711
|
groupId: "korean",
|
|
517
|
-
|
|
712
|
+
isDetectable: !0,
|
|
713
|
+
textDecoderId: "euc-kr",
|
|
714
|
+
iconvLiteDecoderId: "cp949"
|
|
518
715
|
},
|
|
519
716
|
gb18030: {
|
|
520
717
|
id: "gb18030",
|
|
521
718
|
groupId: "chineseSimplified",
|
|
522
|
-
|
|
719
|
+
isDetectable: !0,
|
|
720
|
+
textDecoderId: "gb18030",
|
|
721
|
+
iconvLiteDecoderId: "gb18030"
|
|
722
|
+
},
|
|
723
|
+
gbk: {
|
|
724
|
+
id: "gbk",
|
|
725
|
+
groupId: "chineseSimplified",
|
|
726
|
+
isDetectable: !1,
|
|
727
|
+
textDecoderId: "gbk",
|
|
728
|
+
iconvLiteDecoderId: "gbk"
|
|
729
|
+
},
|
|
730
|
+
"georgian-academy": {
|
|
731
|
+
id: "georgian-academy",
|
|
732
|
+
groupId: "georgian",
|
|
733
|
+
isDetectable: !1,
|
|
734
|
+
textDecoderId: null,
|
|
735
|
+
iconvLiteDecoderId: "georgianacademy"
|
|
736
|
+
},
|
|
737
|
+
"georgian-ps": {
|
|
738
|
+
id: "georgian-ps",
|
|
739
|
+
groupId: "georgian",
|
|
740
|
+
isDetectable: !1,
|
|
741
|
+
textDecoderId: null,
|
|
742
|
+
iconvLiteDecoderId: "georgianps"
|
|
523
743
|
},
|
|
524
744
|
"hp-roman8": {
|
|
525
745
|
id: "hp-roman8",
|
|
526
746
|
groupId: "western",
|
|
527
|
-
|
|
747
|
+
isDetectable: !0,
|
|
748
|
+
textDecoderId: null,
|
|
749
|
+
iconvLiteDecoderId: "hproman8"
|
|
528
750
|
},
|
|
529
751
|
"hz-gb-2312": {
|
|
530
752
|
id: "hz-gb-2312",
|
|
531
753
|
groupId: "chineseSimplified",
|
|
532
|
-
|
|
754
|
+
isDetectable: !0,
|
|
755
|
+
textDecoderId: null,
|
|
756
|
+
iconvLiteDecoderId: null
|
|
533
757
|
},
|
|
534
758
|
ibm855: {
|
|
535
759
|
id: "ibm855",
|
|
536
760
|
groupId: "cyrillic",
|
|
537
|
-
|
|
761
|
+
isDetectable: !0,
|
|
762
|
+
textDecoderId: null,
|
|
763
|
+
iconvLiteDecoderId: "cp855"
|
|
538
764
|
},
|
|
539
765
|
ibm866: {
|
|
540
766
|
id: "ibm866",
|
|
541
767
|
groupId: "cyrillic",
|
|
542
|
-
|
|
768
|
+
isDetectable: !0,
|
|
769
|
+
textDecoderId: "ibm866",
|
|
770
|
+
iconvLiteDecoderId: "cp866"
|
|
543
771
|
},
|
|
544
772
|
"iso-2022-jp": {
|
|
545
773
|
id: "iso-2022-jp",
|
|
546
774
|
groupId: "japanese",
|
|
547
|
-
|
|
775
|
+
isDetectable: !0,
|
|
776
|
+
textDecoderId: "iso-2022-jp",
|
|
777
|
+
iconvLiteDecoderId: null
|
|
548
778
|
},
|
|
549
779
|
"iso-2022-kr": {
|
|
550
780
|
id: "iso-2022-kr",
|
|
551
781
|
groupId: "korean",
|
|
552
|
-
|
|
782
|
+
isDetectable: !0,
|
|
783
|
+
textDecoderId: null,
|
|
784
|
+
iconvLiteDecoderId: null
|
|
553
785
|
},
|
|
554
786
|
"iso-8859-1": {
|
|
555
787
|
id: "iso-8859-1",
|
|
556
788
|
groupId: "western",
|
|
557
|
-
|
|
789
|
+
isDetectable: !0,
|
|
790
|
+
textDecoderId: "windows-1252",
|
|
791
|
+
iconvLiteDecoderId: "iso88591"
|
|
558
792
|
},
|
|
559
793
|
"iso-8859-2": {
|
|
560
794
|
id: "iso-8859-2",
|
|
561
795
|
groupId: "centralEuropean",
|
|
562
|
-
|
|
796
|
+
isDetectable: !0,
|
|
797
|
+
textDecoderId: "iso-8859-2",
|
|
798
|
+
iconvLiteDecoderId: "iso88592"
|
|
563
799
|
},
|
|
564
800
|
"iso-8859-5": {
|
|
565
801
|
id: "iso-8859-5",
|
|
566
802
|
groupId: "cyrillic",
|
|
567
|
-
|
|
803
|
+
isDetectable: !0,
|
|
804
|
+
textDecoderId: "iso-8859-5",
|
|
805
|
+
iconvLiteDecoderId: "iso88595"
|
|
568
806
|
},
|
|
569
807
|
"iso-8859-6": {
|
|
570
808
|
id: "iso-8859-6",
|
|
571
809
|
groupId: "arabic",
|
|
572
|
-
|
|
810
|
+
isDetectable: !0,
|
|
811
|
+
textDecoderId: "iso-8859-6",
|
|
812
|
+
iconvLiteDecoderId: "iso88596"
|
|
573
813
|
},
|
|
574
814
|
"iso-8859-7": {
|
|
575
815
|
id: "iso-8859-7",
|
|
576
816
|
groupId: "greek",
|
|
577
|
-
|
|
817
|
+
isDetectable: !0,
|
|
818
|
+
textDecoderId: "iso-8859-7",
|
|
819
|
+
iconvLiteDecoderId: "iso88597"
|
|
578
820
|
},
|
|
579
821
|
"iso-8859-8": {
|
|
580
822
|
id: "iso-8859-8",
|
|
581
823
|
groupId: "hebrew",
|
|
582
|
-
|
|
824
|
+
isDetectable: !0,
|
|
825
|
+
textDecoderId: "iso-8859-8-i",
|
|
826
|
+
iconvLiteDecoderId: "iso88598"
|
|
583
827
|
},
|
|
584
828
|
"iso-8859-9": {
|
|
585
829
|
id: "iso-8859-9",
|
|
586
830
|
groupId: "turkish",
|
|
587
|
-
|
|
831
|
+
isDetectable: !0,
|
|
832
|
+
textDecoderId: "windows-1254",
|
|
833
|
+
iconvLiteDecoderId: "iso88599"
|
|
834
|
+
},
|
|
835
|
+
"iso-8859-11": {
|
|
836
|
+
id: "iso-8859-11",
|
|
837
|
+
groupId: "thai",
|
|
838
|
+
isDetectable: !1,
|
|
839
|
+
textDecoderId: "windows-874",
|
|
840
|
+
iconvLiteDecoderId: "iso885911"
|
|
588
841
|
},
|
|
589
842
|
"iso-8859-13": {
|
|
590
843
|
id: "iso-8859-13",
|
|
591
844
|
groupId: "baltic",
|
|
592
|
-
|
|
845
|
+
isDetectable: !0,
|
|
846
|
+
textDecoderId: "iso-8859-13",
|
|
847
|
+
iconvLiteDecoderId: "iso885913"
|
|
848
|
+
},
|
|
849
|
+
"iso646-cn": {
|
|
850
|
+
id: "iso646-cn",
|
|
851
|
+
groupId: "chineseSimplified",
|
|
852
|
+
isDetectable: !1,
|
|
853
|
+
textDecoderId: null,
|
|
854
|
+
iconvLiteDecoderId: "iso646cn"
|
|
855
|
+
},
|
|
856
|
+
"iso646-jp": {
|
|
857
|
+
id: "iso646-jp",
|
|
858
|
+
groupId: "japanese",
|
|
859
|
+
isDetectable: !1,
|
|
860
|
+
textDecoderId: null,
|
|
861
|
+
iconvLiteDecoderId: "iso646jp"
|
|
593
862
|
},
|
|
594
863
|
iso2022_jp_2004: {
|
|
595
864
|
id: "iso2022_jp_2004",
|
|
596
865
|
groupId: "japanese",
|
|
597
|
-
|
|
866
|
+
isDetectable: !0,
|
|
867
|
+
textDecoderId: null,
|
|
868
|
+
iconvLiteDecoderId: null
|
|
598
869
|
},
|
|
599
870
|
iso2022_jp_ext: {
|
|
600
871
|
id: "iso2022_jp_ext",
|
|
601
872
|
groupId: "japanese",
|
|
602
|
-
|
|
873
|
+
isDetectable: !0,
|
|
874
|
+
textDecoderId: null,
|
|
875
|
+
iconvLiteDecoderId: null
|
|
603
876
|
},
|
|
604
877
|
"iso8859-3": {
|
|
605
878
|
id: "iso8859-3",
|
|
606
879
|
groupId: "southernEuropean",
|
|
607
|
-
|
|
880
|
+
isDetectable: !0,
|
|
881
|
+
textDecoderId: "iso-8859-3",
|
|
882
|
+
iconvLiteDecoderId: "iso88593"
|
|
608
883
|
},
|
|
609
884
|
"iso8859-4": {
|
|
610
885
|
id: "iso8859-4",
|
|
611
886
|
groupId: "baltic",
|
|
612
|
-
|
|
887
|
+
isDetectable: !0,
|
|
888
|
+
textDecoderId: "iso-8859-4",
|
|
889
|
+
iconvLiteDecoderId: "iso88594"
|
|
613
890
|
},
|
|
614
891
|
"iso8859-10": {
|
|
615
892
|
id: "iso8859-10",
|
|
616
893
|
groupId: "nordic",
|
|
617
|
-
|
|
894
|
+
isDetectable: !0,
|
|
895
|
+
textDecoderId: "iso-8859-10",
|
|
896
|
+
iconvLiteDecoderId: "iso885910"
|
|
618
897
|
},
|
|
619
898
|
"iso8859-14": {
|
|
620
899
|
id: "iso8859-14",
|
|
621
900
|
groupId: "celtic",
|
|
622
|
-
|
|
901
|
+
isDetectable: !0,
|
|
902
|
+
textDecoderId: "iso-8859-14",
|
|
903
|
+
iconvLiteDecoderId: "iso885914"
|
|
623
904
|
},
|
|
624
905
|
"iso8859-15": {
|
|
625
906
|
id: "iso8859-15",
|
|
626
907
|
groupId: "western",
|
|
627
|
-
|
|
908
|
+
isDetectable: !0,
|
|
909
|
+
textDecoderId: "iso-8859-15",
|
|
910
|
+
iconvLiteDecoderId: "iso885915"
|
|
628
911
|
},
|
|
629
912
|
"iso8859-16": {
|
|
630
913
|
id: "iso8859-16",
|
|
631
|
-
groupId: "
|
|
632
|
-
|
|
914
|
+
groupId: "southEasternEuropean",
|
|
915
|
+
isDetectable: !0,
|
|
916
|
+
textDecoderId: "iso-8859-16",
|
|
917
|
+
iconvLiteDecoderId: "iso885916"
|
|
633
918
|
},
|
|
634
919
|
johab: {
|
|
635
920
|
id: "johab",
|
|
636
921
|
groupId: "korean",
|
|
637
|
-
|
|
922
|
+
isDetectable: !0,
|
|
923
|
+
textDecoderId: null,
|
|
924
|
+
iconvLiteDecoderId: null
|
|
638
925
|
},
|
|
639
926
|
"koi8-r": {
|
|
640
927
|
id: "koi8-r",
|
|
641
928
|
groupId: "cyrillic",
|
|
642
|
-
|
|
929
|
+
isDetectable: !0,
|
|
930
|
+
textDecoderId: "koi8-r",
|
|
931
|
+
iconvLiteDecoderId: "koi8r"
|
|
932
|
+
},
|
|
933
|
+
"koi8-ru": {
|
|
934
|
+
id: "koi8-ru",
|
|
935
|
+
groupId: "cyrillic",
|
|
936
|
+
isDetectable: !1,
|
|
937
|
+
textDecoderId: "koi8-u",
|
|
938
|
+
iconvLiteDecoderId: "koi8ru"
|
|
643
939
|
},
|
|
644
940
|
"koi8-t": {
|
|
645
941
|
id: "koi8-t",
|
|
646
942
|
groupId: "cyrillic",
|
|
647
|
-
|
|
943
|
+
isDetectable: !0,
|
|
944
|
+
textDecoderId: null,
|
|
945
|
+
iconvLiteDecoderId: "koi8t"
|
|
648
946
|
},
|
|
649
947
|
"koi8-u": {
|
|
650
948
|
id: "koi8-u",
|
|
651
949
|
groupId: "cyrillic",
|
|
652
|
-
|
|
950
|
+
isDetectable: !0,
|
|
951
|
+
textDecoderId: "koi8-u",
|
|
952
|
+
iconvLiteDecoderId: "koi8u"
|
|
653
953
|
},
|
|
654
954
|
kz1048: {
|
|
655
955
|
id: "kz1048",
|
|
656
956
|
groupId: "cyrillic",
|
|
657
|
-
|
|
957
|
+
isDetectable: !0,
|
|
958
|
+
textDecoderId: null,
|
|
959
|
+
iconvLiteDecoderId: "rk1048"
|
|
960
|
+
},
|
|
961
|
+
maccroatian: {
|
|
962
|
+
id: "maccroatian",
|
|
963
|
+
groupId: "centralEuropean",
|
|
964
|
+
isDetectable: !1,
|
|
965
|
+
textDecoderId: null,
|
|
966
|
+
iconvLiteDecoderId: "maccroatian"
|
|
658
967
|
},
|
|
659
968
|
maccyrillic: {
|
|
660
969
|
id: "maccyrillic",
|
|
661
970
|
groupId: "cyrillic",
|
|
662
|
-
|
|
971
|
+
isDetectable: !0,
|
|
972
|
+
textDecoderId: "x-mac-cyrillic",
|
|
973
|
+
iconvLiteDecoderId: "maccyrillic"
|
|
663
974
|
},
|
|
664
975
|
macgreek: {
|
|
665
976
|
id: "macgreek",
|
|
666
977
|
groupId: "greek",
|
|
667
|
-
|
|
978
|
+
isDetectable: !0,
|
|
979
|
+
textDecoderId: null,
|
|
980
|
+
iconvLiteDecoderId: "macgreek"
|
|
668
981
|
},
|
|
669
982
|
maciceland: {
|
|
670
983
|
id: "maciceland",
|
|
671
984
|
groupId: "nordic",
|
|
672
|
-
|
|
985
|
+
isDetectable: !0,
|
|
986
|
+
textDecoderId: null,
|
|
987
|
+
iconvLiteDecoderId: "maciceland"
|
|
673
988
|
},
|
|
674
989
|
maclatin2: {
|
|
675
990
|
id: "maclatin2",
|
|
676
991
|
groupId: "centralEuropean",
|
|
677
|
-
|
|
992
|
+
isDetectable: !0,
|
|
993
|
+
textDecoderId: null,
|
|
994
|
+
iconvLiteDecoderId: "maccenteuro"
|
|
678
995
|
},
|
|
679
996
|
macroman: {
|
|
680
997
|
id: "macroman",
|
|
681
998
|
groupId: "western",
|
|
682
|
-
|
|
999
|
+
isDetectable: !0,
|
|
1000
|
+
textDecoderId: "macintosh",
|
|
1001
|
+
iconvLiteDecoderId: "macroman"
|
|
1002
|
+
},
|
|
1003
|
+
macromania: {
|
|
1004
|
+
id: "macromania",
|
|
1005
|
+
groupId: "southEasternEuropean",
|
|
1006
|
+
isDetectable: !1,
|
|
1007
|
+
textDecoderId: null,
|
|
1008
|
+
iconvLiteDecoderId: "macromania"
|
|
1009
|
+
},
|
|
1010
|
+
macthai: {
|
|
1011
|
+
id: "macthai",
|
|
1012
|
+
groupId: "thai",
|
|
1013
|
+
isDetectable: !1,
|
|
1014
|
+
textDecoderId: null,
|
|
1015
|
+
iconvLiteDecoderId: "macthai"
|
|
683
1016
|
},
|
|
684
1017
|
macturkish: {
|
|
685
1018
|
id: "macturkish",
|
|
686
1019
|
groupId: "turkish",
|
|
687
|
-
|
|
1020
|
+
isDetectable: !0,
|
|
1021
|
+
textDecoderId: null,
|
|
1022
|
+
iconvLiteDecoderId: "macturkish"
|
|
1023
|
+
},
|
|
1024
|
+
macukraine: {
|
|
1025
|
+
id: "macukraine",
|
|
1026
|
+
groupId: "cyrillic",
|
|
1027
|
+
isDetectable: !1,
|
|
1028
|
+
textDecoderId: null,
|
|
1029
|
+
iconvLiteDecoderId: "macukraine"
|
|
1030
|
+
},
|
|
1031
|
+
mik: {
|
|
1032
|
+
id: "mik",
|
|
1033
|
+
groupId: "cyrillic",
|
|
1034
|
+
isDetectable: !1,
|
|
1035
|
+
textDecoderId: null,
|
|
1036
|
+
iconvLiteDecoderId: "mik"
|
|
688
1037
|
},
|
|
689
1038
|
ptcp154: {
|
|
690
1039
|
id: "ptcp154",
|
|
691
1040
|
groupId: "cyrillic",
|
|
692
|
-
|
|
1041
|
+
isDetectable: !0,
|
|
1042
|
+
textDecoderId: null,
|
|
1043
|
+
iconvLiteDecoderId: "pt154"
|
|
693
1044
|
},
|
|
694
1045
|
shift_jis: {
|
|
695
1046
|
id: "shift_jis",
|
|
696
1047
|
groupId: "japanese",
|
|
697
|
-
|
|
1048
|
+
isDetectable: !0,
|
|
1049
|
+
textDecoderId: "shift_jis",
|
|
1050
|
+
iconvLiteDecoderId: "shiftjis"
|
|
1051
|
+
},
|
|
1052
|
+
tcvn: {
|
|
1053
|
+
id: "tcvn",
|
|
1054
|
+
groupId: "vietnamese",
|
|
1055
|
+
isDetectable: !1,
|
|
1056
|
+
textDecoderId: null,
|
|
1057
|
+
iconvLiteDecoderId: "tcvn"
|
|
698
1058
|
},
|
|
699
1059
|
"tis-620": {
|
|
700
1060
|
id: "tis-620",
|
|
701
1061
|
groupId: "thai",
|
|
702
|
-
|
|
1062
|
+
isDetectable: !0,
|
|
1063
|
+
textDecoderId: "windows-874",
|
|
1064
|
+
iconvLiteDecoderId: "tis620"
|
|
703
1065
|
},
|
|
704
1066
|
"utf-7": {
|
|
705
1067
|
id: "utf-7",
|
|
706
|
-
groupId: "
|
|
707
|
-
|
|
1068
|
+
groupId: "unicode",
|
|
1069
|
+
isDetectable: !0,
|
|
1070
|
+
textDecoderId: null,
|
|
1071
|
+
iconvLiteDecoderId: "utf7"
|
|
708
1072
|
},
|
|
709
1073
|
"utf-8": {
|
|
710
1074
|
id: "utf-8",
|
|
711
|
-
groupId:
|
|
712
|
-
|
|
1075
|
+
groupId: "unicode",
|
|
1076
|
+
isDetectable: !0,
|
|
1077
|
+
textDecoderId: "utf-8",
|
|
1078
|
+
iconvLiteDecoderId: "utf-8"
|
|
713
1079
|
},
|
|
714
1080
|
"utf-8-sig": {
|
|
715
1081
|
id: "utf-8-sig",
|
|
716
|
-
groupId:
|
|
717
|
-
|
|
1082
|
+
groupId: "unicode",
|
|
1083
|
+
isDetectable: !0,
|
|
1084
|
+
textDecoderId: "utf-8",
|
|
1085
|
+
iconvLiteDecoderId: "utf-8"
|
|
718
1086
|
},
|
|
719
1087
|
"utf-16": {
|
|
720
1088
|
id: "utf-16",
|
|
721
|
-
groupId: "
|
|
722
|
-
|
|
1089
|
+
groupId: "unicode",
|
|
1090
|
+
isDetectable: !0,
|
|
1091
|
+
textDecoderId: null,
|
|
1092
|
+
iconvLiteDecoderId: "utf16"
|
|
723
1093
|
},
|
|
724
1094
|
"utf-16-be": {
|
|
725
1095
|
id: "utf-16-be",
|
|
726
|
-
groupId: "
|
|
727
|
-
|
|
1096
|
+
groupId: "unicode",
|
|
1097
|
+
isDetectable: !0,
|
|
1098
|
+
textDecoderId: "utf-16be",
|
|
1099
|
+
iconvLiteDecoderId: "utf16be"
|
|
728
1100
|
},
|
|
729
1101
|
"utf-16-le": {
|
|
730
1102
|
id: "utf-16-le",
|
|
731
|
-
groupId: "
|
|
732
|
-
|
|
1103
|
+
groupId: "unicode",
|
|
1104
|
+
isDetectable: !0,
|
|
1105
|
+
textDecoderId: "utf-16le",
|
|
1106
|
+
iconvLiteDecoderId: "utf16le"
|
|
733
1107
|
},
|
|
734
1108
|
"utf-32": {
|
|
735
1109
|
id: "utf-32",
|
|
736
|
-
groupId: "
|
|
737
|
-
|
|
1110
|
+
groupId: "unicode",
|
|
1111
|
+
isDetectable: !0,
|
|
1112
|
+
textDecoderId: null,
|
|
1113
|
+
iconvLiteDecoderId: "utf32"
|
|
738
1114
|
},
|
|
739
1115
|
"utf-32-be": {
|
|
740
1116
|
id: "utf-32-be",
|
|
741
|
-
groupId: "
|
|
742
|
-
|
|
1117
|
+
groupId: "unicode",
|
|
1118
|
+
isDetectable: !0,
|
|
1119
|
+
textDecoderId: null,
|
|
1120
|
+
iconvLiteDecoderId: "utf32be"
|
|
743
1121
|
},
|
|
744
1122
|
"utf-32-le": {
|
|
745
1123
|
id: "utf-32-le",
|
|
746
|
-
groupId: "
|
|
747
|
-
|
|
1124
|
+
groupId: "unicode",
|
|
1125
|
+
isDetectable: !0,
|
|
1126
|
+
textDecoderId: null,
|
|
1127
|
+
iconvLiteDecoderId: "utf32le"
|
|
1128
|
+
},
|
|
1129
|
+
viscii: {
|
|
1130
|
+
id: "viscii",
|
|
1131
|
+
groupId: "vietnamese",
|
|
1132
|
+
isDetectable: !1,
|
|
1133
|
+
textDecoderId: null,
|
|
1134
|
+
iconvLiteDecoderId: "viscii"
|
|
748
1135
|
},
|
|
749
1136
|
"windows-1250": {
|
|
750
1137
|
id: "windows-1250",
|
|
751
1138
|
groupId: "centralEuropean",
|
|
752
|
-
|
|
1139
|
+
isDetectable: !0,
|
|
1140
|
+
textDecoderId: "windows-1250",
|
|
1141
|
+
iconvLiteDecoderId: "windows1250"
|
|
753
1142
|
},
|
|
754
1143
|
"windows-1251": {
|
|
755
1144
|
id: "windows-1251",
|
|
756
1145
|
groupId: "cyrillic",
|
|
757
|
-
|
|
1146
|
+
isDetectable: !0,
|
|
1147
|
+
textDecoderId: "windows-1251",
|
|
1148
|
+
iconvLiteDecoderId: "windows1251"
|
|
758
1149
|
},
|
|
759
1150
|
"windows-1252": {
|
|
760
1151
|
id: "windows-1252",
|
|
761
1152
|
groupId: "western",
|
|
762
|
-
|
|
1153
|
+
isDetectable: !0,
|
|
1154
|
+
textDecoderId: "windows-1252",
|
|
1155
|
+
iconvLiteDecoderId: "windows1252"
|
|
763
1156
|
},
|
|
764
1157
|
"windows-1253": {
|
|
765
1158
|
id: "windows-1253",
|
|
766
1159
|
groupId: "greek",
|
|
767
|
-
|
|
1160
|
+
isDetectable: !0,
|
|
1161
|
+
textDecoderId: "windows-1253",
|
|
1162
|
+
iconvLiteDecoderId: "windows1253"
|
|
768
1163
|
},
|
|
769
1164
|
"windows-1254": {
|
|
770
1165
|
id: "windows-1254",
|
|
771
1166
|
groupId: "turkish",
|
|
772
|
-
|
|
1167
|
+
isDetectable: !0,
|
|
1168
|
+
textDecoderId: "windows-1254",
|
|
1169
|
+
iconvLiteDecoderId: "windows1254"
|
|
773
1170
|
},
|
|
774
1171
|
"windows-1255": {
|
|
775
1172
|
id: "windows-1255",
|
|
776
1173
|
groupId: "hebrew",
|
|
777
|
-
|
|
1174
|
+
isDetectable: !0,
|
|
1175
|
+
textDecoderId: "windows-1255",
|
|
1176
|
+
iconvLiteDecoderId: "windows1255"
|
|
778
1177
|
},
|
|
779
1178
|
"windows-1256": {
|
|
780
1179
|
id: "windows-1256",
|
|
781
1180
|
groupId: "arabic",
|
|
782
|
-
|
|
1181
|
+
isDetectable: !0,
|
|
1182
|
+
textDecoderId: "windows-1256",
|
|
1183
|
+
iconvLiteDecoderId: "windows1256"
|
|
783
1184
|
},
|
|
784
1185
|
"windows-1257": {
|
|
785
1186
|
id: "windows-1257",
|
|
786
1187
|
groupId: "baltic",
|
|
787
|
-
|
|
1188
|
+
isDetectable: !0,
|
|
1189
|
+
textDecoderId: "windows-1257",
|
|
1190
|
+
iconvLiteDecoderId: "windows1257"
|
|
788
1191
|
}
|
|
789
1192
|
};
|
|
790
|
-
function O(e) {
|
|
791
|
-
return Object.hasOwn(D, e);
|
|
792
|
-
}
|
|
793
1193
|
function k(e) {
|
|
794
|
-
return O
|
|
1194
|
+
return Object.hasOwn(O, e);
|
|
1195
|
+
}
|
|
1196
|
+
function A(e) {
|
|
1197
|
+
return k(e) ? O[e].textDecoderId ?? e : e;
|
|
795
1198
|
}
|
|
796
|
-
var
|
|
1199
|
+
var j = class extends Error {
|
|
797
1200
|
data;
|
|
798
1201
|
locator;
|
|
799
1202
|
constructor(e, t, n, r) {
|
|
800
1203
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
801
1204
|
}
|
|
802
|
-
},
|
|
1205
|
+
}, M = class extends j {
|
|
803
1206
|
constructor(e, t, n, r) {
|
|
804
1207
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
805
1208
|
}
|
|
806
1209
|
};
|
|
807
|
-
function
|
|
1210
|
+
function N(e) {
|
|
808
1211
|
try {
|
|
809
1212
|
e();
|
|
810
1213
|
} catch {}
|
|
811
1214
|
}
|
|
812
|
-
|
|
1215
|
+
v([
|
|
813
1216
|
"arrow",
|
|
814
1217
|
"avro",
|
|
815
1218
|
"dtv",
|
|
@@ -822,9 +1225,9 @@ y([
|
|
|
822
1225
|
"sqlite",
|
|
823
1226
|
"xlsx",
|
|
824
1227
|
"xml"
|
|
825
|
-
]), { ...
|
|
826
|
-
async function
|
|
827
|
-
let r =
|
|
1228
|
+
]), { ...D };
|
|
1229
|
+
async function P(e, t, n) {
|
|
1230
|
+
let r = F(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await I(e, t.valueDelimiterIds, t.isComplete, n);
|
|
828
1231
|
return {
|
|
829
1232
|
issues: i,
|
|
830
1233
|
parsedRecords: a,
|
|
@@ -832,16 +1235,16 @@ async function N(e, t, n) {
|
|
|
832
1235
|
valueDelimiterId: o
|
|
833
1236
|
};
|
|
834
1237
|
}
|
|
835
|
-
function
|
|
1238
|
+
function F(e) {
|
|
836
1239
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
837
1240
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
838
1241
|
}
|
|
839
|
-
async function
|
|
1242
|
+
async function I(e, t, n, r) {
|
|
840
1243
|
let i, a, o, s = [], c, l = !1;
|
|
841
1244
|
for (let u of t) {
|
|
842
1245
|
let { issues: t, records: d } = await r(e, u, n);
|
|
843
1246
|
if (t.length > 0) {
|
|
844
|
-
c =
|
|
1247
|
+
c = L(c, {
|
|
845
1248
|
delimiter: u,
|
|
846
1249
|
issues: t,
|
|
847
1250
|
records: d
|
|
@@ -849,7 +1252,7 @@ async function F(e, t, n, r) {
|
|
|
849
1252
|
continue;
|
|
850
1253
|
}
|
|
851
1254
|
if (l = !0, d.length === 0) continue;
|
|
852
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
1255
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = R(d);
|
|
853
1256
|
(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
|
|
854
1257
|
}
|
|
855
1258
|
if (!l && c != null) {
|
|
@@ -857,19 +1260,19 @@ async function F(e, t, n, r) {
|
|
|
857
1260
|
return {
|
|
858
1261
|
issues: t,
|
|
859
1262
|
parsedRecords: n,
|
|
860
|
-
valueDelimiterId:
|
|
1263
|
+
valueDelimiterId: z(n) ? e : void 0
|
|
861
1264
|
};
|
|
862
1265
|
}
|
|
863
1266
|
return {
|
|
864
1267
|
issues: [],
|
|
865
1268
|
parsedRecords: s,
|
|
866
|
-
valueDelimiterId: i != null &&
|
|
1269
|
+
valueDelimiterId: i != null && z(s) ? i : void 0
|
|
867
1270
|
};
|
|
868
1271
|
}
|
|
869
|
-
function
|
|
1272
|
+
function L(e, t) {
|
|
870
1273
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
871
1274
|
}
|
|
872
|
-
function
|
|
1275
|
+
function R(e) {
|
|
873
1276
|
let t = 0, n = 0, r;
|
|
874
1277
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
875
1278
|
return {
|
|
@@ -877,65 +1280,72 @@ function L(e) {
|
|
|
877
1280
|
sumOfValueCountDiffs: n
|
|
878
1281
|
};
|
|
879
1282
|
}
|
|
880
|
-
function
|
|
1283
|
+
function z(e) {
|
|
881
1284
|
let t = /* @__PURE__ */ new Map();
|
|
882
1285
|
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
883
1286
|
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
884
1287
|
return n > 1 && r * 2 > e.length;
|
|
885
1288
|
}
|
|
886
|
-
|
|
1289
|
+
v(["list"]), { ...D }, v([
|
|
887
1290
|
"list",
|
|
888
1291
|
"render",
|
|
889
1292
|
"setColorMode"
|
|
890
|
-
]), { ...
|
|
1293
|
+
]), { ...D };
|
|
891
1294
|
// src/index.ts
|
|
892
|
-
var
|
|
1295
|
+
var B = {
|
|
893
1296
|
id: "rust-csv-core",
|
|
894
1297
|
name: "Rust CSV Core",
|
|
895
1298
|
version: "0.1.0"
|
|
896
|
-
},
|
|
897
|
-
config =
|
|
898
|
-
async parseStream(e, t
|
|
899
|
-
let { RecordReader:
|
|
1299
|
+
}, V = 1e4, H = 1048576, U = { rustBindingsPromise: void 0 }, W = class {
|
|
1300
|
+
config = B;
|
|
1301
|
+
async *parseStream(e, t) {
|
|
1302
|
+
let { RecordReader: n } = await J();
|
|
900
1303
|
t.abortSignal.throwIfAborted();
|
|
901
|
-
let
|
|
902
|
-
|
|
1304
|
+
let r = new n(G(t.valueDelimiterId)), i = K(t.encodingId), a = Math.max(1, Math.floor(t.chunkSize ?? V)), o = e.getReader(), s = () => {
|
|
1305
|
+
N(() => void o.cancel(t.abortSignal.reason));
|
|
903
1306
|
};
|
|
904
|
-
t.abortSignal.addEventListener("abort",
|
|
905
|
-
let
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
1307
|
+
t.abortSignal.addEventListener("abort", s, { once: !0 });
|
|
1308
|
+
let c = [];
|
|
1309
|
+
function* l(e) {
|
|
1310
|
+
for (let t of q(e)) {
|
|
1311
|
+
if (c.push(t), c.length < a) continue;
|
|
1312
|
+
let e = c;
|
|
1313
|
+
c = [], yield {
|
|
1314
|
+
records: e,
|
|
1315
|
+
typeId: "parsingRecordArray"
|
|
1316
|
+
};
|
|
910
1317
|
}
|
|
911
|
-
}
|
|
1318
|
+
}
|
|
912
1319
|
try {
|
|
913
|
-
let e = await
|
|
1320
|
+
let e = await o.read();
|
|
914
1321
|
for (; !e.done;) {
|
|
915
1322
|
t.abortSignal.throwIfAborted();
|
|
916
|
-
let n =
|
|
917
|
-
for (let e = 0; e < n.length; e +=
|
|
918
|
-
e = await
|
|
1323
|
+
let n = i == null ? e.value : i.transcode(e.value);
|
|
1324
|
+
for (let e = 0; e < n.length; e += H) yield* l(r.pushChunk(n.subarray(e, e + H)));
|
|
1325
|
+
e = await o.read();
|
|
919
1326
|
}
|
|
920
|
-
return t.abortSignal.throwIfAborted(),
|
|
921
|
-
|
|
1327
|
+
return t.abortSignal.throwIfAborted(), i != null && (yield* l(r.pushChunk(i.finish()))), yield* l(r.finish()), c.length > 0 && (yield {
|
|
1328
|
+
records: c,
|
|
1329
|
+
typeId: "parsingRecordArray"
|
|
1330
|
+
}), {
|
|
1331
|
+
byteCount: r.byteCount,
|
|
922
1332
|
commentLineCount: 0,
|
|
923
|
-
emptyLineCount:
|
|
924
|
-
lineCount:
|
|
925
|
-
nonUniformRecordCount:
|
|
926
|
-
recordCount:
|
|
1333
|
+
emptyLineCount: r.emptyLineCount,
|
|
1334
|
+
lineCount: r.lineCount,
|
|
1335
|
+
nonUniformRecordCount: r.nonUniformRecordCount,
|
|
1336
|
+
recordCount: r.recordCount
|
|
927
1337
|
};
|
|
928
1338
|
} finally {
|
|
929
|
-
t.abortSignal.removeEventListener("abort",
|
|
1339
|
+
t.abortSignal.removeEventListener("abort", s), r.free(), o.releaseLock();
|
|
930
1340
|
}
|
|
931
1341
|
}
|
|
932
1342
|
async parseText(e, t) {
|
|
933
|
-
let { RecordReader: n } = await
|
|
934
|
-
return await
|
|
935
|
-
let r = new n(
|
|
1343
|
+
let { RecordReader: n } = await J();
|
|
1344
|
+
return await P(e, t, (e, t) => {
|
|
1345
|
+
let r = new n(G(t));
|
|
936
1346
|
try {
|
|
937
|
-
let t =
|
|
938
|
-
return t.push(...
|
|
1347
|
+
let t = q(r.pushChunk(new TextEncoder().encode(e)));
|
|
1348
|
+
return t.push(...q(r.finish())), Promise.resolve({
|
|
939
1349
|
issues: [],
|
|
940
1350
|
records: t
|
|
941
1351
|
});
|
|
@@ -945,7 +1355,7 @@ var z = {
|
|
|
945
1355
|
});
|
|
946
1356
|
}
|
|
947
1357
|
async processWithTransferableStream(e, t = {}, n) {
|
|
948
|
-
let r = await
|
|
1358
|
+
let r = await J(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = (e) => {
|
|
949
1359
|
s += e, n && n(e);
|
|
950
1360
|
};
|
|
951
1361
|
try {
|
|
@@ -955,11 +1365,11 @@ var z = {
|
|
|
955
1365
|
durationMs: performance.now() - o
|
|
956
1366
|
};
|
|
957
1367
|
} catch (e) {
|
|
958
|
-
throw new
|
|
1368
|
+
throw new M("Failed to process CSV stream.", "dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream", { cause: e });
|
|
959
1369
|
}
|
|
960
1370
|
}
|
|
961
1371
|
async processWithChunks(e, t = {}, n) {
|
|
962
|
-
let { CsvSession: r } = await
|
|
1372
|
+
let { CsvSession: r } = await J(), i = t.delimiter?.codePointAt(0) ?? 44, a = t.hasHeaders ?? !0, o = performance.now(), s = 0, c = new r(i, a);
|
|
963
1373
|
try {
|
|
964
1374
|
let t = e.getReader();
|
|
965
1375
|
try {
|
|
@@ -979,19 +1389,17 @@ var z = {
|
|
|
979
1389
|
t.releaseLock();
|
|
980
1390
|
}
|
|
981
1391
|
} catch (e) {
|
|
982
|
-
throw new
|
|
1392
|
+
throw new M("Failed to process CSV chunks.", "dpuse-tool-rust-csv-core-parser|Tool|processWithChunks", { cause: e });
|
|
983
1393
|
}
|
|
984
1394
|
}
|
|
985
1395
|
};
|
|
986
|
-
function
|
|
987
|
-
|
|
988
|
-
if (e === "0x1F") return 31;
|
|
989
|
-
let t = e.codePointAt(0);
|
|
1396
|
+
function G(e) {
|
|
1397
|
+
let t = E(e).codePointAt(0);
|
|
990
1398
|
if (t == null || t > 127) throw Error(`Delimiter '${e}' is not a single ASCII character.`);
|
|
991
1399
|
return t;
|
|
992
1400
|
}
|
|
993
|
-
function
|
|
994
|
-
let t = new TextDecoder(
|
|
1401
|
+
function K(e) {
|
|
1402
|
+
let t = new TextDecoder(A(e));
|
|
995
1403
|
if (t.encoding === "utf-8") return;
|
|
996
1404
|
let n = new TextEncoder();
|
|
997
1405
|
return {
|
|
@@ -999,7 +1407,7 @@ function G(e) {
|
|
|
999
1407
|
transcode: (e) => n.encode(t.decode(e, { stream: !0 }))
|
|
1000
1408
|
};
|
|
1001
1409
|
}
|
|
1002
|
-
function
|
|
1410
|
+
function q(e) {
|
|
1003
1411
|
let { recordValueCounts: t, text: n, valueEnds: r, valueQuoted: i } = e;
|
|
1004
1412
|
e.free();
|
|
1005
1413
|
let a = [], o = 0, s = 0;
|
|
@@ -1016,10 +1424,10 @@ function K(e) {
|
|
|
1016
1424
|
}
|
|
1017
1425
|
return a;
|
|
1018
1426
|
}
|
|
1019
|
-
async function
|
|
1020
|
-
return
|
|
1427
|
+
async function J() {
|
|
1428
|
+
return U.rustBindingsPromise ??= (async () => {
|
|
1021
1429
|
let e = await import("./dpuse_tool_rust_csv_core_parser-BZJW07sd.js");
|
|
1022
1430
|
return await e.default(), e;
|
|
1023
|
-
})(),
|
|
1431
|
+
})(), U.rustBindingsPromise;
|
|
1024
1432
|
}
|
|
1025
|
-
export {
|
|
1433
|
+
export { W as Tool, B as config };
|