@dpuse/dpuse-tool-file-previewer 1.0.120 → 1.0.122
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/README.md
CHANGED
|
@@ -65,7 +65,7 @@ License data is updated each time `npm run document` is run, using [license-chec
|
|
|
65
65
|
| Dependency | Version | License(s) | Document |
|
|
66
66
|
| :--------------------------------------------------------------------- | :-----: | :--------- | :-------------------------------------------------------------------- |
|
|
67
67
|
| [@borewit/text-codec](https://github.com/Borewit/text-codec) | 0.2.2 | MIT | [LICENSE](licenses/downloads/@borewit/text-codec@0.2.2-LICENSE.txt) |
|
|
68
|
-
| [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.
|
|
68
|
+
| [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.136 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@1.0.136-LICENSE.txt) |
|
|
69
69
|
| [@tokenizer/inflate](https://github.com/Borewit/tokenizer-inflate) | 0.5.1 | MIT | [LICENSE](licenses/downloads/@tokenizer/inflate@0.5.1-LICENSE.txt) |
|
|
70
70
|
| [debug](https://github.com/debug-js/debug) | 4.4.3 | MIT | [LICENSE](licenses/downloads/debug@4.4.3-LICENSE.txt) |
|
|
71
71
|
| [file-type](https://github.com/sindresorhus/file-type) | 22.2.0 | MIT | [LICENSE](licenses/downloads/file-type@22.2.0-LICENSE.txt) |
|
|
@@ -80,7 +80,7 @@ License data is updated each time `npm run document` is run, using [license-chec
|
|
|
80
80
|
|
|
81
81
|
The dependency tree below shows how each package in the table above is reached — direct and transitive — along with its installed version, release date, and update status. A package that does not ship itself, such as one whose parts are bundled separately, is left out and what ships beneath it is shown in its place. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.
|
|
82
82
|
|
|
83
|
-
- **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.
|
|
83
|
+
- **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.136 — this month: 2026-10-25
|
|
84
84
|
- **[file-type](https://github.com/sindresorhus/file-type)** 22.2.0 — this month: 2026-10-14
|
|
85
85
|
- **[valibot](https://github.com/open-circle/valibot)** 1.5.0 — 1 mth ago: 2026-09-09
|
|
86
86
|
- **[file-type](https://github.com/sindresorhus/file-type)** 22.2.0 — this month: 2026-10-14
|
|
@@ -105,23 +105,23 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
105
105
|
|
|
106
106
|
| Chunk/Module/File | Composition |
|
|
107
107
|
| :---------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------ |
|
|
108
|
-
| **dist/dpuse-tool-file-previewer.es.js** |
|
|
108
|
+
| **dist/dpuse-tool-file-previewer.es.js** | 1239.0 kB · gzip 718.2 kB · 100.0% of the build |
|
|
109
109
|
| jschardet → dist/jschardet.esm.min.js | `██████████████████░░` 90.6% · 1122.3 kB |
|
|
110
110
|
| file-type → source/index.js + 7 more | `█░░░░░░░░░░░░░░░░░░░` 3.7% · 45.3 kB |
|
|
111
111
|
| ↳ 8 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.7% · 45.3 kB |
|
|
112
|
-
| @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `░░░░░░░░░░░░░░░░░░░░` 1.2% · 15.
|
|
112
|
+
| @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `░░░░░░░░░░░░░░░░░░░░` 1.2% · 15.4 kB |
|
|
113
113
|
| strtok3 → lib/AbstractTokenizer.js + 12 more | `░░░░░░░░░░░░░░░░░░░░` 0.8% · 9.4 kB |
|
|
114
114
|
| ↳ 13 smaller files | `░░░░░░░░░░░░░░░░░░░░` 0.8% · 9.4 kB |
|
|
115
115
|
| @tokenizer/inflate → lib/ZipHandler.js + 3 more | `░░░░░░░░░░░░░░░░░░░░` 0.7% · 8.4 kB |
|
|
116
116
|
| ↳ 4 smaller files | `░░░░░░░░░░░░░░░░░░░░` 0.7% · 8.4 kB |
|
|
117
|
-
| src → index.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% · 6.
|
|
117
|
+
| src → index.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% · 6.9 kB |
|
|
118
118
|
| debug → src/browser.js + 1 more | `░░░░░░░░░░░░░░░░░░░░` 0.4% · 5.1 kB |
|
|
119
119
|
| ↳ 2 smaller files | `░░░░░░░░░░░░░░░░░░░░` 0.4% · 5.1 kB |
|
|
120
120
|
| @borewit/text-codec → lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 0.3% · 3.3 kB |
|
|
121
121
|
| ms → index.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% · 1.6 kB |
|
|
122
122
|
| uint8array-extras → index.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% · 1.2 kB |
|
|
123
123
|
| token-types → lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% · 1018 B |
|
|
124
|
-
| (bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 1.
|
|
124
|
+
| (bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 1.5% · 19.2 kB |
|
|
125
125
|
|
|
126
126
|
Bars show each row's share of its output file. ↳ rows are part of the row above.
|
|
127
127
|
|
|
@@ -8399,7 +8399,7 @@ var bc = {
|
|
|
8399
8399
|
status: /* @__PURE__ */ Z(vc),
|
|
8400
8400
|
statusId: /* @__PURE__ */ Z(_c)
|
|
8401
8401
|
};
|
|
8402
|
-
({ ...bc }), Y({ en: "Data Positioning Events" }), Y({ en: "Delimited Text" }), Y({ en: "JSON" }), Y({ en: "JSON Lines" }), Y({ en: "Markdown" }), Y({ en: "SPSS" }), Y({ en: "Plain Text" }), Y({ en: "XLSX" }), Y({ en: "XML" }), Y({ en: "Newline" }), Y({ en: "Carriage Return" }), Y({ en: "Carriage Return/Newline" }), Y({ en: "Colon" }), Y({ en: "Comma" }), Y({ en: "Exclamation Mark" }), Y({ en: "Record Separator" }), Y({ en: "Semicolon" }), Y({ en: "Space" }), Y({ en: "Tab" }), Y({ en: "Underscore" }), Y({ en: "Unit Separator" }), Y({ en: "Vertical Bar" }), $([
|
|
8402
|
+
({ ...bc }), Y({ en: "Apache Arrow" }), Y({ en: "Apache Avro" }), Y({ en: "Data Positioning Events" }), Y({ en: "Delimited Text" }), Y({ en: "JSON" }), Y({ en: "JSON Lines" }), Y({ en: "Markdown" }), Y({ en: "OpenDocument Spreadsheet" }), Y({ en: "Apache Parquet" }), Y({ en: "SPSS" }), Y({ en: "SQLite" }), Y({ en: "Plain Text" }), Y({ en: "XLSM" }), Y({ en: "XLSX" }), Y({ en: "XML" }), Y({ en: "Newline" }), Y({ en: "Carriage Return" }), Y({ en: "Carriage Return/Newline" }), Y({ en: "Colon" }), Y({ en: "Comma" }), Y({ en: "Exclamation Mark" }), Y({ en: "Record Separator" }), Y({ en: "Semicolon" }), Y({ en: "Space" }), Y({ en: "Tab" }), Y({ en: "Underscore" }), Y({ en: "Unit Separator" }), Y({ en: "Vertical Bar" }), $([
|
|
8403
8403
|
"app",
|
|
8404
8404
|
"engine",
|
|
8405
8405
|
"connector",
|
|
@@ -8954,72 +8954,63 @@ var Nc = .2, Pc = 4096, Fc = 65536, Ic = {
|
|
|
8954
8954
|
arrow: {
|
|
8955
8955
|
label: "Columnar format for tables of data.",
|
|
8956
8956
|
structure: "table",
|
|
8957
|
-
isAutoDetectable: !0
|
|
8958
|
-
isSupported: !1
|
|
8957
|
+
isAutoDetectable: !0
|
|
8959
8958
|
},
|
|
8960
8959
|
avro: {
|
|
8961
8960
|
label: "Object container file developed by Apache Avro.",
|
|
8962
8961
|
structure: "records",
|
|
8963
|
-
isAutoDetectable: !0
|
|
8964
|
-
isSupported: !1
|
|
8962
|
+
isAutoDetectable: !0
|
|
8965
8963
|
},
|
|
8966
8964
|
ods: {
|
|
8967
8965
|
label: "OpenDocument for spreadsheets.",
|
|
8968
8966
|
structure: "workbook",
|
|
8969
|
-
isAutoDetectable: !0
|
|
8970
|
-
isSupported: !1
|
|
8967
|
+
isAutoDetectable: !0
|
|
8971
8968
|
},
|
|
8972
8969
|
parquet: {
|
|
8973
8970
|
label: "Apache Parquet.",
|
|
8974
8971
|
structure: "table",
|
|
8975
|
-
isAutoDetectable: !0
|
|
8976
|
-
isSupported: !1
|
|
8972
|
+
isAutoDetectable: !0
|
|
8977
8973
|
},
|
|
8978
8974
|
sav: {
|
|
8979
8975
|
label: "SPSS statistical data file.",
|
|
8980
8976
|
structure: "table",
|
|
8981
|
-
isAutoDetectable: !0
|
|
8982
|
-
isSupported: !1
|
|
8977
|
+
isAutoDetectable: !0
|
|
8983
8978
|
},
|
|
8984
8979
|
sqlite: {
|
|
8985
8980
|
label: "SQLite file.",
|
|
8986
8981
|
structure: "database",
|
|
8987
|
-
isAutoDetectable: !0
|
|
8988
|
-
isSupported: !1
|
|
8982
|
+
isAutoDetectable: !0
|
|
8989
8983
|
},
|
|
8990
8984
|
xlsx: {
|
|
8991
8985
|
label: "Microsoft Excel document.",
|
|
8992
8986
|
structure: "workbook",
|
|
8993
|
-
isAutoDetectable: !0
|
|
8994
|
-
isSupported: !1
|
|
8987
|
+
isAutoDetectable: !0
|
|
8995
8988
|
},
|
|
8996
8989
|
xlsm: {
|
|
8997
8990
|
label: "Microsoft Excel macro-enabled document.",
|
|
8998
8991
|
structure: "workbook",
|
|
8999
|
-
isAutoDetectable: !0
|
|
9000
|
-
isSupported: !1
|
|
8992
|
+
isAutoDetectable: !0
|
|
9001
8993
|
},
|
|
9002
8994
|
xml: {
|
|
9003
8995
|
label: "eXtensible markup language.",
|
|
9004
8996
|
structure: "tree",
|
|
9005
|
-
isAutoDetectable: !0
|
|
9006
|
-
isSupported: !1
|
|
8997
|
+
isAutoDetectable: !0
|
|
9007
8998
|
}
|
|
9008
8999
|
}, Gc = class {
|
|
9009
|
-
async previewFile(e, t, n, r, i = Nc) {
|
|
9010
|
-
let
|
|
9011
|
-
headers: { Range: `bytes=0-${String(
|
|
9000
|
+
async previewFile(e, t, n, r, i = Nc, a) {
|
|
9001
|
+
let o = tl(r, jc(new URL(e).pathname)?.toLowerCase()), s = n ?? (o ? Fc : Pc), c = await fetch(encodeURI(e), {
|
|
9002
|
+
headers: { Range: `bytes=0-${String(s - 1)}` },
|
|
9012
9003
|
signal: t
|
|
9013
9004
|
});
|
|
9014
|
-
if (
|
|
9015
|
-
...await qc(/* @__PURE__ */ new Uint8Array(),
|
|
9005
|
+
if (c.status === 416) return {
|
|
9006
|
+
...await qc(/* @__PURE__ */ new Uint8Array(), o, i, !0),
|
|
9016
9007
|
isComplete: !0
|
|
9017
9008
|
};
|
|
9018
|
-
if (!
|
|
9019
|
-
let
|
|
9009
|
+
if (!c.ok) throw await Tc(c, `Failed to fetch '${e}' file.`, "dpuse-tool-file-previewer.previewRemoteFile");
|
|
9010
|
+
let l = new Uint8Array(await c.arrayBuffer()), u = Kc(c, l.length, s);
|
|
9020
9011
|
return {
|
|
9021
|
-
...await qc(
|
|
9022
|
-
isComplete:
|
|
9012
|
+
...await qc(l, o, i, u, a),
|
|
9013
|
+
isComplete: u
|
|
9023
9014
|
};
|
|
9024
9015
|
}
|
|
9025
9016
|
};
|
|
@@ -9027,7 +9018,7 @@ function Kc(e, t, n) {
|
|
|
9027
9018
|
let r = /\/(\d+)$/.exec(e.headers.get("content-range") ?? "")?.[1];
|
|
9028
9019
|
return r == null ? e.status !== 206 || t < n : t >= Number(r);
|
|
9029
9020
|
}
|
|
9030
|
-
async function qc(e, t, n, r) {
|
|
9021
|
+
async function qc(e, t, n, r, i) {
|
|
9031
9022
|
if (e.length === 0) return {
|
|
9032
9023
|
bytes: e,
|
|
9033
9024
|
dataFormatId: void 0,
|
|
@@ -9037,29 +9028,29 @@ async function qc(e, t, n, r) {
|
|
|
9037
9028
|
fileTypeConfig: void 0,
|
|
9038
9029
|
text: void 0
|
|
9039
9030
|
};
|
|
9040
|
-
let
|
|
9041
|
-
if (
|
|
9042
|
-
let
|
|
9031
|
+
let a = await Qs(e);
|
|
9032
|
+
if (a != null) return Jc(e, a, r, i);
|
|
9033
|
+
let o = Xc(e, n), s = el(e, $c(i) ?? o[0] ?? Ic, r);
|
|
9043
9034
|
return {
|
|
9044
9035
|
bytes: e,
|
|
9045
|
-
dataFormatId:
|
|
9046
|
-
encodingId:
|
|
9047
|
-
encodingConfidenceLevel:
|
|
9048
|
-
encodingCandidates:
|
|
9049
|
-
fileTypeConfig:
|
|
9050
|
-
text:
|
|
9036
|
+
dataFormatId: i?.dataFormatId ?? nl(s.text, t),
|
|
9037
|
+
encodingId: s.encoding.id,
|
|
9038
|
+
encodingConfidenceLevel: s.encoding.confidenceLevel,
|
|
9039
|
+
encodingCandidates: o,
|
|
9040
|
+
fileTypeConfig: a,
|
|
9041
|
+
text: s.text
|
|
9051
9042
|
};
|
|
9052
9043
|
}
|
|
9053
|
-
function Jc(e, t, n) {
|
|
9054
|
-
let
|
|
9044
|
+
function Jc(e, t, n, r) {
|
|
9045
|
+
let i = Object.hasOwn(Wc, t.ext) ? t.ext : void 0, a = r?.dataFormatId ?? i;
|
|
9055
9046
|
if (t.ext === "xml") {
|
|
9056
|
-
let i =
|
|
9047
|
+
let i = el(e, $c(r) ?? {
|
|
9057
9048
|
id: Qc(e),
|
|
9058
9049
|
confidenceLevel: 1
|
|
9059
9050
|
}, n);
|
|
9060
9051
|
return {
|
|
9061
9052
|
bytes: e,
|
|
9062
|
-
dataFormatId:
|
|
9053
|
+
dataFormatId: a,
|
|
9063
9054
|
encodingId: i.encoding.id,
|
|
9064
9055
|
encodingConfidenceLevel: i.encoding.confidenceLevel,
|
|
9065
9056
|
encodingCandidates: void 0,
|
|
@@ -9069,7 +9060,7 @@ function Jc(e, t, n) {
|
|
|
9069
9060
|
}
|
|
9070
9061
|
return {
|
|
9071
9062
|
bytes: e,
|
|
9072
|
-
dataFormatId:
|
|
9063
|
+
dataFormatId: a,
|
|
9073
9064
|
encodingId: void 0,
|
|
9074
9065
|
encodingConfidenceLevel: void 0,
|
|
9075
9066
|
encodingCandidates: void 0,
|
|
@@ -9109,8 +9100,14 @@ function Qc(e) {
|
|
|
9109
9100
|
let t = new TextDecoder("ascii").decode(e.subarray(0, Lc));
|
|
9110
9101
|
return Zc(e)?.id ?? Rc.exec(t)?.[2] ?? "utf-8";
|
|
9111
9102
|
}
|
|
9112
|
-
function $c(e
|
|
9113
|
-
|
|
9103
|
+
function $c(e) {
|
|
9104
|
+
return e?.encodingId == null ? void 0 : {
|
|
9105
|
+
id: e.encodingId,
|
|
9106
|
+
confidenceLevel: 1
|
|
9107
|
+
};
|
|
9108
|
+
}
|
|
9109
|
+
function el(e, t, n) {
|
|
9110
|
+
let r = n ? e : ml(e);
|
|
9114
9111
|
try {
|
|
9115
9112
|
return {
|
|
9116
9113
|
encoding: t,
|
|
@@ -9123,28 +9120,28 @@ function $c(e, t, n) {
|
|
|
9123
9120
|
};
|
|
9124
9121
|
}
|
|
9125
9122
|
}
|
|
9126
|
-
function
|
|
9123
|
+
function tl(e, t) {
|
|
9127
9124
|
let n = e?.split(";", 1)[0]?.trim().toLowerCase();
|
|
9128
9125
|
return n != null && n !== "" && n !== Uc ? n === Hc : t != null && Vc.has(t);
|
|
9129
9126
|
}
|
|
9130
|
-
function
|
|
9131
|
-
return
|
|
9127
|
+
function nl(e, t) {
|
|
9128
|
+
return rl(e) ? "json" : il(e) ? "jsonl" : t ? "markdown" : "dtv";
|
|
9132
9129
|
}
|
|
9133
|
-
function
|
|
9130
|
+
function rl(e) {
|
|
9134
9131
|
let t = [], n = e.search(/\S/);
|
|
9135
9132
|
if (e[n] !== "{" && e[n] !== "[") return !1;
|
|
9136
9133
|
let r = {
|
|
9137
9134
|
expectation: "value",
|
|
9138
9135
|
index: n
|
|
9139
9136
|
};
|
|
9140
|
-
for (; r != null && r.index < e.length;) r =
|
|
9137
|
+
for (; r != null && r.index < e.length;) r = ol(e, r, t);
|
|
9141
9138
|
return r != null;
|
|
9142
9139
|
}
|
|
9143
|
-
function
|
|
9140
|
+
function il(e) {
|
|
9144
9141
|
let t = e.split(/\r\n|\n|\r/).filter((e) => e.trim() !== "");
|
|
9145
|
-
return t.length > 1 && t.every((e) =>
|
|
9142
|
+
return t.length > 1 && t.every((e) => al(e));
|
|
9146
9143
|
}
|
|
9147
|
-
function
|
|
9144
|
+
function al(e) {
|
|
9148
9145
|
try {
|
|
9149
9146
|
let t = JSON.parse(e);
|
|
9150
9147
|
return typeof t == "object" && !!t;
|
|
@@ -9152,15 +9149,15 @@ function il(e) {
|
|
|
9152
9149
|
return !1;
|
|
9153
9150
|
}
|
|
9154
9151
|
}
|
|
9155
|
-
function
|
|
9152
|
+
function ol(e, { expectation: t, index: n }, r) {
|
|
9156
9153
|
let i = e.charAt(n);
|
|
9157
9154
|
if (Bc.has(i)) return {
|
|
9158
9155
|
expectation: t,
|
|
9159
9156
|
index: n + 1
|
|
9160
9157
|
};
|
|
9161
9158
|
switch (t) {
|
|
9162
|
-
case "closeOrKey": return i === "}" ?
|
|
9163
|
-
case "closeOrValue": return i === "]" ?
|
|
9159
|
+
case "closeOrKey": return i === "}" ? sl(i, n, r) : cl(e, n);
|
|
9160
|
+
case "closeOrValue": return i === "]" ? sl(i, n, r) : ll(e, n, r);
|
|
9164
9161
|
case "colon": return i === ":" ? {
|
|
9165
9162
|
expectation: "value",
|
|
9166
9163
|
index: n + 1
|
|
@@ -9168,69 +9165,69 @@ function al(e, { expectation: t, index: n }, r) {
|
|
|
9168
9165
|
case "commaOrClose": return i === "," ? {
|
|
9169
9166
|
expectation: r.at(-1) === "{" ? "key" : "value",
|
|
9170
9167
|
index: n + 1
|
|
9171
|
-
} :
|
|
9168
|
+
} : sl(i, n, r);
|
|
9172
9169
|
case "end": return;
|
|
9173
|
-
case "key": return
|
|
9174
|
-
case "value": return
|
|
9170
|
+
case "key": return cl(e, n);
|
|
9171
|
+
case "value": return ll(e, n, r);
|
|
9175
9172
|
}
|
|
9176
9173
|
}
|
|
9177
|
-
function
|
|
9174
|
+
function sl(e, t, n) {
|
|
9178
9175
|
if (e === (n.at(-1) === "{" ? "}" : "]")) return n.pop(), {
|
|
9179
9176
|
expectation: n.length === 0 ? "end" : "commaOrClose",
|
|
9180
9177
|
index: t + 1
|
|
9181
9178
|
};
|
|
9182
9179
|
}
|
|
9183
|
-
function
|
|
9184
|
-
let n = e.charAt(t) === "\"" ?
|
|
9180
|
+
function cl(e, t) {
|
|
9181
|
+
let n = e.charAt(t) === "\"" ? ul(e, t) : void 0;
|
|
9185
9182
|
return n == null ? void 0 : {
|
|
9186
9183
|
expectation: "colon",
|
|
9187
9184
|
index: n
|
|
9188
9185
|
};
|
|
9189
9186
|
}
|
|
9190
|
-
function
|
|
9187
|
+
function ll(e, t, n) {
|
|
9191
9188
|
let r = e.charAt(t);
|
|
9192
9189
|
if (r === "{" || r === "[") return n.push(r), {
|
|
9193
9190
|
expectation: r === "{" ? "closeOrKey" : "closeOrValue",
|
|
9194
9191
|
index: t + 1
|
|
9195
9192
|
};
|
|
9196
|
-
let i = r === "\"" ?
|
|
9193
|
+
let i = r === "\"" ? ul(e, t) : fl(e, t);
|
|
9197
9194
|
return i == null ? void 0 : {
|
|
9198
9195
|
expectation: "commaOrClose",
|
|
9199
9196
|
index: i
|
|
9200
9197
|
};
|
|
9201
9198
|
}
|
|
9202
|
-
function
|
|
9199
|
+
function ul(e, t) {
|
|
9203
9200
|
let n = t + 1;
|
|
9204
9201
|
for (; n < e.length;) {
|
|
9205
9202
|
let t = e.charAt(n);
|
|
9206
9203
|
if (t === "\"") return n + 1;
|
|
9207
9204
|
if (t < " ") return;
|
|
9208
9205
|
if (t === "\\") {
|
|
9209
|
-
let t =
|
|
9206
|
+
let t = dl(e, n);
|
|
9210
9207
|
if (t == null) return;
|
|
9211
9208
|
n = t;
|
|
9212
9209
|
} else n++;
|
|
9213
9210
|
}
|
|
9214
9211
|
return e.length;
|
|
9215
9212
|
}
|
|
9216
|
-
function
|
|
9213
|
+
function dl(e, t) {
|
|
9217
9214
|
let n = e.charAt(t + 1);
|
|
9218
9215
|
return n === "u" ? /^[\da-f]*$/i.test(e.slice(t + 2, t + 6)) ? t + 6 : void 0 : n === "" || String.raw`"\/bfnrt`.includes(n) ? t + 2 : void 0;
|
|
9219
9216
|
}
|
|
9220
|
-
function
|
|
9217
|
+
function fl(e, t) {
|
|
9221
9218
|
let n = /^[\w.+-]+/.exec(e.slice(t))?.[0];
|
|
9222
9219
|
if (n == null) return;
|
|
9223
9220
|
let r = t + n.length;
|
|
9224
|
-
return r === e.length ? zc.some((e) => e.startsWith(n)) || /^[\d.e+-]*$/i.test(n) ? r : void 0 : zc.includes(n) ||
|
|
9221
|
+
return r === e.length ? zc.some((e) => e.startsWith(n)) || /^[\d.e+-]*$/i.test(n) ? r : void 0 : zc.includes(n) || pl(n) ? r : void 0;
|
|
9225
9222
|
}
|
|
9226
|
-
function
|
|
9223
|
+
function pl(e) {
|
|
9227
9224
|
try {
|
|
9228
9225
|
return typeof JSON.parse(e) == "number";
|
|
9229
9226
|
} catch {
|
|
9230
9227
|
return !1;
|
|
9231
9228
|
}
|
|
9232
9229
|
}
|
|
9233
|
-
function
|
|
9230
|
+
function ml(e) {
|
|
9234
9231
|
let t = e, n = t.length;
|
|
9235
9232
|
for (let e = n - 1; e >= 0; e--) {
|
|
9236
9233
|
let n = t[e];
|