@tidbcloud/uikit 2.0.0-beta.103 → 2.0.0-beta.104
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/CHANGELOG.md +6 -0
- package/dist/_virtual/BufferList.cjs +4 -0
- package/dist/_virtual/BufferList.js +4 -0
- package/dist/_virtual/___vite-browser-external.cjs +6 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.cjs +4 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjsHelpers.cjs +25 -0
- package/dist/_virtual/_commonjsHelpers.js +25 -0
- package/dist/_virtual/index.cjs +2 -2
- package/dist/_virtual/index.js +2 -2
- package/dist/_virtual/index2.cjs +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.cjs +4 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index4.cjs +4 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index5.cjs +4 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index6.cjs +4 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index7.cjs +4 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/inherits_browser.cjs +4 -0
- package/dist/_virtual/inherits_browser.js +4 -0
- package/dist/_virtual/readable-browser.cjs +4 -0
- package/dist/_virtual/readable-browser.js +4 -0
- package/dist/_virtual/readable.cjs +4 -0
- package/dist/_virtual/readable.js +4 -0
- package/dist/_virtual/string_decoder.cjs +4 -0
- package/dist/_virtual/string_decoder.js +4 -0
- package/dist/_virtual/util.cjs +4 -0
- package/dist/_virtual/util.js +4 -0
- package/dist/node_modules/.pnpm/@emotion_server@11.11.0/node_modules/@emotion/server/create-instance/dist/emotion-server-create-instance.browser.esm.cjs +176 -0
- package/dist/node_modules/.pnpm/@emotion_server@11.11.0/node_modules/@emotion/server/create-instance/dist/emotion-server-create-instance.browser.esm.js +176 -0
- package/dist/node_modules/.pnpm/buffer-from@0.1.2/node_modules/buffer-from/index.cjs +46 -0
- package/dist/node_modules/.pnpm/buffer-from@0.1.2/node_modules/buffer-from/index.js +46 -0
- package/dist/node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.cjs +69 -0
- package/dist/node_modules/.pnpm/core-util-is@1.0.3/node_modules/core-util-is/lib/util.js +69 -0
- package/dist/node_modules/.pnpm/duplexer2@0.1.4/node_modules/duplexer2/index.cjs +64 -0
- package/dist/node_modules/.pnpm/duplexer2@0.1.4/node_modules/duplexer2/index.js +64 -0
- package/dist/node_modules/.pnpm/html-tokenize@2.0.1/node_modules/html-tokenize/index.cjs +199 -0
- package/dist/node_modules/.pnpm/html-tokenize@2.0.1/node_modules/html-tokenize/index.js +199 -0
- package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.cjs +31 -0
- package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +31 -0
- package/dist/node_modules/.pnpm/isarray@0.0.1/node_modules/isarray/index.cjs +6 -0
- package/dist/node_modules/.pnpm/isarray@0.0.1/node_modules/isarray/index.js +6 -0
- package/dist/node_modules/.pnpm/isarray@1.0.0/node_modules/isarray/index.cjs +7 -0
- package/dist/node_modules/.pnpm/isarray@1.0.0/node_modules/isarray/index.js +7 -0
- package/dist/node_modules/.pnpm/multipipe@1.0.2/node_modules/multipipe/index.cjs +67 -0
- package/dist/node_modules/.pnpm/multipipe@1.0.2/node_modules/multipipe/index.js +67 -0
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.cjs +56 -63
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +56 -63
- package/dist/node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.cjs +43 -0
- package/dist/node_modules/.pnpm/process-nextick-args@2.0.1/node_modules/process-nextick-args/index.js +43 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.cjs +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +2 -2
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.cjs +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.cjs +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_duplex.cjs +54 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_duplex.js +54 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_passthrough.cjs +20 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_passthrough.js +20 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_readable.cjs +607 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_readable.js +607 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_transform.cjs +95 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_transform.js +95 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_writable.cjs +240 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/lib/_stream_writable.js +240 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/readable.cjs +24 -0
- package/dist/node_modules/.pnpm/readable-stream@1.0.34/node_modules/readable-stream/readable.js +24 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_duplex.cjs +83 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_duplex.js +83 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_passthrough.cjs +19 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_passthrough.js +19 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_readable.cjs +702 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_readable.js +702 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_transform.cjs +100 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_transform.js +100 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_writable.cjs +453 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_writable.js +453 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/BufferList.cjs +85 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/BufferList.js +85 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/destroy.cjs +66 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/destroy.js +66 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/stream-browser.cjs +5 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/internal/streams/stream-browser.js +5 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/readable-browser.cjs +19 -0
- package/dist/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/readable-browser.js +19 -0
- package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.cjs +59 -0
- package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +59 -0
- package/dist/node_modules/.pnpm/string_decoder@0.10.31/node_modules/string_decoder/index.cjs +143 -0
- package/dist/node_modules/.pnpm/string_decoder@0.10.31/node_modules/string_decoder/index.js +143 -0
- package/dist/node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.cjs +242 -0
- package/dist/node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js +242 -0
- package/dist/node_modules/.pnpm/through@2.3.8/node_modules/through/index.cjs +91 -0
- package/dist/node_modules/.pnpm/through@2.3.8/node_modules/through/index.js +91 -0
- package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.cjs +35 -0
- package/dist/node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js +35 -0
- package/dist/utils/emotion.d.cts +1 -0
- package/dist/utils/emotion.d.ts +1 -0
- package/dist/utils/index.cjs +2 -0
- package/dist/utils/index.js +4 -2
- package/package.json +2 -1
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const string_decoder = require("../../../../../../_virtual/string_decoder.cjs");
|
|
4
|
+
const index = require("../../../../safe-buffer@5.1.2/node_modules/safe-buffer/index.cjs");
|
|
5
|
+
var hasRequiredString_decoder;
|
|
6
|
+
function requireString_decoder() {
|
|
7
|
+
if (hasRequiredString_decoder) return string_decoder.__exports;
|
|
8
|
+
hasRequiredString_decoder = 1;
|
|
9
|
+
var Buffer = index.safeBufferExports.Buffer;
|
|
10
|
+
var isEncoding = Buffer.isEncoding || function(encoding) {
|
|
11
|
+
encoding = "" + encoding;
|
|
12
|
+
switch (encoding && encoding.toLowerCase()) {
|
|
13
|
+
case "hex":
|
|
14
|
+
case "utf8":
|
|
15
|
+
case "utf-8":
|
|
16
|
+
case "ascii":
|
|
17
|
+
case "binary":
|
|
18
|
+
case "base64":
|
|
19
|
+
case "ucs2":
|
|
20
|
+
case "ucs-2":
|
|
21
|
+
case "utf16le":
|
|
22
|
+
case "utf-16le":
|
|
23
|
+
case "raw":
|
|
24
|
+
return true;
|
|
25
|
+
default:
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function _normalizeEncoding(enc) {
|
|
30
|
+
if (!enc) return "utf8";
|
|
31
|
+
var retried;
|
|
32
|
+
while (true) {
|
|
33
|
+
switch (enc) {
|
|
34
|
+
case "utf8":
|
|
35
|
+
case "utf-8":
|
|
36
|
+
return "utf8";
|
|
37
|
+
case "ucs2":
|
|
38
|
+
case "ucs-2":
|
|
39
|
+
case "utf16le":
|
|
40
|
+
case "utf-16le":
|
|
41
|
+
return "utf16le";
|
|
42
|
+
case "latin1":
|
|
43
|
+
case "binary":
|
|
44
|
+
return "latin1";
|
|
45
|
+
case "base64":
|
|
46
|
+
case "ascii":
|
|
47
|
+
case "hex":
|
|
48
|
+
return enc;
|
|
49
|
+
default:
|
|
50
|
+
if (retried) return;
|
|
51
|
+
enc = ("" + enc).toLowerCase();
|
|
52
|
+
retried = true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function normalizeEncoding(enc) {
|
|
57
|
+
var nenc = _normalizeEncoding(enc);
|
|
58
|
+
if (typeof nenc !== "string" && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
|
|
59
|
+
return nenc || enc;
|
|
60
|
+
}
|
|
61
|
+
string_decoder.__exports.StringDecoder = StringDecoder;
|
|
62
|
+
function StringDecoder(encoding) {
|
|
63
|
+
this.encoding = normalizeEncoding(encoding);
|
|
64
|
+
var nb;
|
|
65
|
+
switch (this.encoding) {
|
|
66
|
+
case "utf16le":
|
|
67
|
+
this.text = utf16Text;
|
|
68
|
+
this.end = utf16End;
|
|
69
|
+
nb = 4;
|
|
70
|
+
break;
|
|
71
|
+
case "utf8":
|
|
72
|
+
this.fillLast = utf8FillLast;
|
|
73
|
+
nb = 4;
|
|
74
|
+
break;
|
|
75
|
+
case "base64":
|
|
76
|
+
this.text = base64Text;
|
|
77
|
+
this.end = base64End;
|
|
78
|
+
nb = 3;
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
this.write = simpleWrite;
|
|
82
|
+
this.end = simpleEnd;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this.lastNeed = 0;
|
|
86
|
+
this.lastTotal = 0;
|
|
87
|
+
this.lastChar = Buffer.allocUnsafe(nb);
|
|
88
|
+
}
|
|
89
|
+
StringDecoder.prototype.write = function(buf) {
|
|
90
|
+
if (buf.length === 0) return "";
|
|
91
|
+
var r;
|
|
92
|
+
var i;
|
|
93
|
+
if (this.lastNeed) {
|
|
94
|
+
r = this.fillLast(buf);
|
|
95
|
+
if (r === void 0) return "";
|
|
96
|
+
i = this.lastNeed;
|
|
97
|
+
this.lastNeed = 0;
|
|
98
|
+
} else {
|
|
99
|
+
i = 0;
|
|
100
|
+
}
|
|
101
|
+
if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
|
|
102
|
+
return r || "";
|
|
103
|
+
};
|
|
104
|
+
StringDecoder.prototype.end = utf8End;
|
|
105
|
+
StringDecoder.prototype.text = utf8Text;
|
|
106
|
+
StringDecoder.prototype.fillLast = function(buf) {
|
|
107
|
+
if (this.lastNeed <= buf.length) {
|
|
108
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
109
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
110
|
+
}
|
|
111
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
|
112
|
+
this.lastNeed -= buf.length;
|
|
113
|
+
};
|
|
114
|
+
function utf8CheckByte(byte) {
|
|
115
|
+
if (byte <= 127) return 0;
|
|
116
|
+
else if (byte >> 5 === 6) return 2;
|
|
117
|
+
else if (byte >> 4 === 14) return 3;
|
|
118
|
+
else if (byte >> 3 === 30) return 4;
|
|
119
|
+
return byte >> 6 === 2 ? -1 : -2;
|
|
120
|
+
}
|
|
121
|
+
function utf8CheckIncomplete(self, buf, i) {
|
|
122
|
+
var j = buf.length - 1;
|
|
123
|
+
if (j < i) return 0;
|
|
124
|
+
var nb = utf8CheckByte(buf[j]);
|
|
125
|
+
if (nb >= 0) {
|
|
126
|
+
if (nb > 0) self.lastNeed = nb - 1;
|
|
127
|
+
return nb;
|
|
128
|
+
}
|
|
129
|
+
if (--j < i || nb === -2) return 0;
|
|
130
|
+
nb = utf8CheckByte(buf[j]);
|
|
131
|
+
if (nb >= 0) {
|
|
132
|
+
if (nb > 0) self.lastNeed = nb - 2;
|
|
133
|
+
return nb;
|
|
134
|
+
}
|
|
135
|
+
if (--j < i || nb === -2) return 0;
|
|
136
|
+
nb = utf8CheckByte(buf[j]);
|
|
137
|
+
if (nb >= 0) {
|
|
138
|
+
if (nb > 0) {
|
|
139
|
+
if (nb === 2) nb = 0;
|
|
140
|
+
else self.lastNeed = nb - 3;
|
|
141
|
+
}
|
|
142
|
+
return nb;
|
|
143
|
+
}
|
|
144
|
+
return 0;
|
|
145
|
+
}
|
|
146
|
+
function utf8CheckExtraBytes(self, buf, p) {
|
|
147
|
+
if ((buf[0] & 192) !== 128) {
|
|
148
|
+
self.lastNeed = 0;
|
|
149
|
+
return "�";
|
|
150
|
+
}
|
|
151
|
+
if (self.lastNeed > 1 && buf.length > 1) {
|
|
152
|
+
if ((buf[1] & 192) !== 128) {
|
|
153
|
+
self.lastNeed = 1;
|
|
154
|
+
return "�";
|
|
155
|
+
}
|
|
156
|
+
if (self.lastNeed > 2 && buf.length > 2) {
|
|
157
|
+
if ((buf[2] & 192) !== 128) {
|
|
158
|
+
self.lastNeed = 2;
|
|
159
|
+
return "�";
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function utf8FillLast(buf) {
|
|
165
|
+
var p = this.lastTotal - this.lastNeed;
|
|
166
|
+
var r = utf8CheckExtraBytes(this, buf);
|
|
167
|
+
if (r !== void 0) return r;
|
|
168
|
+
if (this.lastNeed <= buf.length) {
|
|
169
|
+
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
170
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
171
|
+
}
|
|
172
|
+
buf.copy(this.lastChar, p, 0, buf.length);
|
|
173
|
+
this.lastNeed -= buf.length;
|
|
174
|
+
}
|
|
175
|
+
function utf8Text(buf, i) {
|
|
176
|
+
var total = utf8CheckIncomplete(this, buf, i);
|
|
177
|
+
if (!this.lastNeed) return buf.toString("utf8", i);
|
|
178
|
+
this.lastTotal = total;
|
|
179
|
+
var end = buf.length - (total - this.lastNeed);
|
|
180
|
+
buf.copy(this.lastChar, 0, end);
|
|
181
|
+
return buf.toString("utf8", i, end);
|
|
182
|
+
}
|
|
183
|
+
function utf8End(buf) {
|
|
184
|
+
var r = buf && buf.length ? this.write(buf) : "";
|
|
185
|
+
if (this.lastNeed) return r + "�";
|
|
186
|
+
return r;
|
|
187
|
+
}
|
|
188
|
+
function utf16Text(buf, i) {
|
|
189
|
+
if ((buf.length - i) % 2 === 0) {
|
|
190
|
+
var r = buf.toString("utf16le", i);
|
|
191
|
+
if (r) {
|
|
192
|
+
var c = r.charCodeAt(r.length - 1);
|
|
193
|
+
if (c >= 55296 && c <= 56319) {
|
|
194
|
+
this.lastNeed = 2;
|
|
195
|
+
this.lastTotal = 4;
|
|
196
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
197
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
198
|
+
return r.slice(0, -1);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return r;
|
|
202
|
+
}
|
|
203
|
+
this.lastNeed = 1;
|
|
204
|
+
this.lastTotal = 2;
|
|
205
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
206
|
+
return buf.toString("utf16le", i, buf.length - 1);
|
|
207
|
+
}
|
|
208
|
+
function utf16End(buf) {
|
|
209
|
+
var r = buf && buf.length ? this.write(buf) : "";
|
|
210
|
+
if (this.lastNeed) {
|
|
211
|
+
var end = this.lastTotal - this.lastNeed;
|
|
212
|
+
return r + this.lastChar.toString("utf16le", 0, end);
|
|
213
|
+
}
|
|
214
|
+
return r;
|
|
215
|
+
}
|
|
216
|
+
function base64Text(buf, i) {
|
|
217
|
+
var n = (buf.length - i) % 3;
|
|
218
|
+
if (n === 0) return buf.toString("base64", i);
|
|
219
|
+
this.lastNeed = 3 - n;
|
|
220
|
+
this.lastTotal = 3;
|
|
221
|
+
if (n === 1) {
|
|
222
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
223
|
+
} else {
|
|
224
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
225
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
226
|
+
}
|
|
227
|
+
return buf.toString("base64", i, buf.length - n);
|
|
228
|
+
}
|
|
229
|
+
function base64End(buf) {
|
|
230
|
+
var r = buf && buf.length ? this.write(buf) : "";
|
|
231
|
+
if (this.lastNeed) return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
|
|
232
|
+
return r;
|
|
233
|
+
}
|
|
234
|
+
function simpleWrite(buf) {
|
|
235
|
+
return buf.toString(this.encoding);
|
|
236
|
+
}
|
|
237
|
+
function simpleEnd(buf) {
|
|
238
|
+
return buf && buf.length ? this.write(buf) : "";
|
|
239
|
+
}
|
|
240
|
+
return string_decoder.__exports;
|
|
241
|
+
}
|
|
242
|
+
exports.__require = requireString_decoder;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { __exports as string_decoder } from "../../../../../../_virtual/string_decoder.js";
|
|
2
|
+
import { s as safeBufferExports } from "../../../../safe-buffer@5.1.2/node_modules/safe-buffer/index.js";
|
|
3
|
+
var hasRequiredString_decoder;
|
|
4
|
+
function requireString_decoder() {
|
|
5
|
+
if (hasRequiredString_decoder) return string_decoder;
|
|
6
|
+
hasRequiredString_decoder = 1;
|
|
7
|
+
var Buffer = safeBufferExports.Buffer;
|
|
8
|
+
var isEncoding = Buffer.isEncoding || function(encoding) {
|
|
9
|
+
encoding = "" + encoding;
|
|
10
|
+
switch (encoding && encoding.toLowerCase()) {
|
|
11
|
+
case "hex":
|
|
12
|
+
case "utf8":
|
|
13
|
+
case "utf-8":
|
|
14
|
+
case "ascii":
|
|
15
|
+
case "binary":
|
|
16
|
+
case "base64":
|
|
17
|
+
case "ucs2":
|
|
18
|
+
case "ucs-2":
|
|
19
|
+
case "utf16le":
|
|
20
|
+
case "utf-16le":
|
|
21
|
+
case "raw":
|
|
22
|
+
return true;
|
|
23
|
+
default:
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function _normalizeEncoding(enc) {
|
|
28
|
+
if (!enc) return "utf8";
|
|
29
|
+
var retried;
|
|
30
|
+
while (true) {
|
|
31
|
+
switch (enc) {
|
|
32
|
+
case "utf8":
|
|
33
|
+
case "utf-8":
|
|
34
|
+
return "utf8";
|
|
35
|
+
case "ucs2":
|
|
36
|
+
case "ucs-2":
|
|
37
|
+
case "utf16le":
|
|
38
|
+
case "utf-16le":
|
|
39
|
+
return "utf16le";
|
|
40
|
+
case "latin1":
|
|
41
|
+
case "binary":
|
|
42
|
+
return "latin1";
|
|
43
|
+
case "base64":
|
|
44
|
+
case "ascii":
|
|
45
|
+
case "hex":
|
|
46
|
+
return enc;
|
|
47
|
+
default:
|
|
48
|
+
if (retried) return;
|
|
49
|
+
enc = ("" + enc).toLowerCase();
|
|
50
|
+
retried = true;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function normalizeEncoding(enc) {
|
|
55
|
+
var nenc = _normalizeEncoding(enc);
|
|
56
|
+
if (typeof nenc !== "string" && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
|
|
57
|
+
return nenc || enc;
|
|
58
|
+
}
|
|
59
|
+
string_decoder.StringDecoder = StringDecoder;
|
|
60
|
+
function StringDecoder(encoding) {
|
|
61
|
+
this.encoding = normalizeEncoding(encoding);
|
|
62
|
+
var nb;
|
|
63
|
+
switch (this.encoding) {
|
|
64
|
+
case "utf16le":
|
|
65
|
+
this.text = utf16Text;
|
|
66
|
+
this.end = utf16End;
|
|
67
|
+
nb = 4;
|
|
68
|
+
break;
|
|
69
|
+
case "utf8":
|
|
70
|
+
this.fillLast = utf8FillLast;
|
|
71
|
+
nb = 4;
|
|
72
|
+
break;
|
|
73
|
+
case "base64":
|
|
74
|
+
this.text = base64Text;
|
|
75
|
+
this.end = base64End;
|
|
76
|
+
nb = 3;
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
this.write = simpleWrite;
|
|
80
|
+
this.end = simpleEnd;
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.lastNeed = 0;
|
|
84
|
+
this.lastTotal = 0;
|
|
85
|
+
this.lastChar = Buffer.allocUnsafe(nb);
|
|
86
|
+
}
|
|
87
|
+
StringDecoder.prototype.write = function(buf) {
|
|
88
|
+
if (buf.length === 0) return "";
|
|
89
|
+
var r;
|
|
90
|
+
var i;
|
|
91
|
+
if (this.lastNeed) {
|
|
92
|
+
r = this.fillLast(buf);
|
|
93
|
+
if (r === void 0) return "";
|
|
94
|
+
i = this.lastNeed;
|
|
95
|
+
this.lastNeed = 0;
|
|
96
|
+
} else {
|
|
97
|
+
i = 0;
|
|
98
|
+
}
|
|
99
|
+
if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
|
|
100
|
+
return r || "";
|
|
101
|
+
};
|
|
102
|
+
StringDecoder.prototype.end = utf8End;
|
|
103
|
+
StringDecoder.prototype.text = utf8Text;
|
|
104
|
+
StringDecoder.prototype.fillLast = function(buf) {
|
|
105
|
+
if (this.lastNeed <= buf.length) {
|
|
106
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
107
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
108
|
+
}
|
|
109
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
|
110
|
+
this.lastNeed -= buf.length;
|
|
111
|
+
};
|
|
112
|
+
function utf8CheckByte(byte) {
|
|
113
|
+
if (byte <= 127) return 0;
|
|
114
|
+
else if (byte >> 5 === 6) return 2;
|
|
115
|
+
else if (byte >> 4 === 14) return 3;
|
|
116
|
+
else if (byte >> 3 === 30) return 4;
|
|
117
|
+
return byte >> 6 === 2 ? -1 : -2;
|
|
118
|
+
}
|
|
119
|
+
function utf8CheckIncomplete(self, buf, i) {
|
|
120
|
+
var j = buf.length - 1;
|
|
121
|
+
if (j < i) return 0;
|
|
122
|
+
var nb = utf8CheckByte(buf[j]);
|
|
123
|
+
if (nb >= 0) {
|
|
124
|
+
if (nb > 0) self.lastNeed = nb - 1;
|
|
125
|
+
return nb;
|
|
126
|
+
}
|
|
127
|
+
if (--j < i || nb === -2) return 0;
|
|
128
|
+
nb = utf8CheckByte(buf[j]);
|
|
129
|
+
if (nb >= 0) {
|
|
130
|
+
if (nb > 0) self.lastNeed = nb - 2;
|
|
131
|
+
return nb;
|
|
132
|
+
}
|
|
133
|
+
if (--j < i || nb === -2) return 0;
|
|
134
|
+
nb = utf8CheckByte(buf[j]);
|
|
135
|
+
if (nb >= 0) {
|
|
136
|
+
if (nb > 0) {
|
|
137
|
+
if (nb === 2) nb = 0;
|
|
138
|
+
else self.lastNeed = nb - 3;
|
|
139
|
+
}
|
|
140
|
+
return nb;
|
|
141
|
+
}
|
|
142
|
+
return 0;
|
|
143
|
+
}
|
|
144
|
+
function utf8CheckExtraBytes(self, buf, p) {
|
|
145
|
+
if ((buf[0] & 192) !== 128) {
|
|
146
|
+
self.lastNeed = 0;
|
|
147
|
+
return "�";
|
|
148
|
+
}
|
|
149
|
+
if (self.lastNeed > 1 && buf.length > 1) {
|
|
150
|
+
if ((buf[1] & 192) !== 128) {
|
|
151
|
+
self.lastNeed = 1;
|
|
152
|
+
return "�";
|
|
153
|
+
}
|
|
154
|
+
if (self.lastNeed > 2 && buf.length > 2) {
|
|
155
|
+
if ((buf[2] & 192) !== 128) {
|
|
156
|
+
self.lastNeed = 2;
|
|
157
|
+
return "�";
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function utf8FillLast(buf) {
|
|
163
|
+
var p = this.lastTotal - this.lastNeed;
|
|
164
|
+
var r = utf8CheckExtraBytes(this, buf);
|
|
165
|
+
if (r !== void 0) return r;
|
|
166
|
+
if (this.lastNeed <= buf.length) {
|
|
167
|
+
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
168
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
169
|
+
}
|
|
170
|
+
buf.copy(this.lastChar, p, 0, buf.length);
|
|
171
|
+
this.lastNeed -= buf.length;
|
|
172
|
+
}
|
|
173
|
+
function utf8Text(buf, i) {
|
|
174
|
+
var total = utf8CheckIncomplete(this, buf, i);
|
|
175
|
+
if (!this.lastNeed) return buf.toString("utf8", i);
|
|
176
|
+
this.lastTotal = total;
|
|
177
|
+
var end = buf.length - (total - this.lastNeed);
|
|
178
|
+
buf.copy(this.lastChar, 0, end);
|
|
179
|
+
return buf.toString("utf8", i, end);
|
|
180
|
+
}
|
|
181
|
+
function utf8End(buf) {
|
|
182
|
+
var r = buf && buf.length ? this.write(buf) : "";
|
|
183
|
+
if (this.lastNeed) return r + "�";
|
|
184
|
+
return r;
|
|
185
|
+
}
|
|
186
|
+
function utf16Text(buf, i) {
|
|
187
|
+
if ((buf.length - i) % 2 === 0) {
|
|
188
|
+
var r = buf.toString("utf16le", i);
|
|
189
|
+
if (r) {
|
|
190
|
+
var c = r.charCodeAt(r.length - 1);
|
|
191
|
+
if (c >= 55296 && c <= 56319) {
|
|
192
|
+
this.lastNeed = 2;
|
|
193
|
+
this.lastTotal = 4;
|
|
194
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
195
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
196
|
+
return r.slice(0, -1);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return r;
|
|
200
|
+
}
|
|
201
|
+
this.lastNeed = 1;
|
|
202
|
+
this.lastTotal = 2;
|
|
203
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
204
|
+
return buf.toString("utf16le", i, buf.length - 1);
|
|
205
|
+
}
|
|
206
|
+
function utf16End(buf) {
|
|
207
|
+
var r = buf && buf.length ? this.write(buf) : "";
|
|
208
|
+
if (this.lastNeed) {
|
|
209
|
+
var end = this.lastTotal - this.lastNeed;
|
|
210
|
+
return r + this.lastChar.toString("utf16le", 0, end);
|
|
211
|
+
}
|
|
212
|
+
return r;
|
|
213
|
+
}
|
|
214
|
+
function base64Text(buf, i) {
|
|
215
|
+
var n = (buf.length - i) % 3;
|
|
216
|
+
if (n === 0) return buf.toString("base64", i);
|
|
217
|
+
this.lastNeed = 3 - n;
|
|
218
|
+
this.lastTotal = 3;
|
|
219
|
+
if (n === 1) {
|
|
220
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
221
|
+
} else {
|
|
222
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
223
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
224
|
+
}
|
|
225
|
+
return buf.toString("base64", i, buf.length - n);
|
|
226
|
+
}
|
|
227
|
+
function base64End(buf) {
|
|
228
|
+
var r = buf && buf.length ? this.write(buf) : "";
|
|
229
|
+
if (this.lastNeed) return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed);
|
|
230
|
+
return r;
|
|
231
|
+
}
|
|
232
|
+
function simpleWrite(buf) {
|
|
233
|
+
return buf.toString(this.encoding);
|
|
234
|
+
}
|
|
235
|
+
function simpleEnd(buf) {
|
|
236
|
+
return buf && buf.length ? this.write(buf) : "";
|
|
237
|
+
}
|
|
238
|
+
return string_decoder;
|
|
239
|
+
}
|
|
240
|
+
export {
|
|
241
|
+
requireString_decoder as __require
|
|
242
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const _commonjsHelpers = require("../../../../../_virtual/_commonjsHelpers.cjs");
|
|
4
|
+
const index = require("../../../../../_virtual/index.cjs");
|
|
5
|
+
const ___viteBrowserExternal_commonjsProxy = require("../../../../../_virtual/___vite-browser-external.cjs");
|
|
6
|
+
(function(module2, exports2) {
|
|
7
|
+
var Stream = ___viteBrowserExternal_commonjsProxy.default;
|
|
8
|
+
module2.exports = through2;
|
|
9
|
+
through2.through = through2;
|
|
10
|
+
function through2(write, end, opts) {
|
|
11
|
+
write = write || function(data) {
|
|
12
|
+
this.queue(data);
|
|
13
|
+
};
|
|
14
|
+
end = end || function() {
|
|
15
|
+
this.queue(null);
|
|
16
|
+
};
|
|
17
|
+
var ended = false, destroyed = false, buffer = [], _ended = false;
|
|
18
|
+
var stream = new Stream();
|
|
19
|
+
stream.readable = stream.writable = true;
|
|
20
|
+
stream.paused = false;
|
|
21
|
+
stream.autoDestroy = !(opts && opts.autoDestroy === false);
|
|
22
|
+
stream.write = function(data) {
|
|
23
|
+
write.call(this, data);
|
|
24
|
+
return !stream.paused;
|
|
25
|
+
};
|
|
26
|
+
function drain() {
|
|
27
|
+
while (buffer.length && !stream.paused) {
|
|
28
|
+
var data = buffer.shift();
|
|
29
|
+
if (null === data)
|
|
30
|
+
return stream.emit("end");
|
|
31
|
+
else
|
|
32
|
+
stream.emit("data", data);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
stream.queue = stream.push = function(data) {
|
|
36
|
+
if (_ended) return stream;
|
|
37
|
+
if (data === null) _ended = true;
|
|
38
|
+
buffer.push(data);
|
|
39
|
+
drain();
|
|
40
|
+
return stream;
|
|
41
|
+
};
|
|
42
|
+
stream.on("end", function() {
|
|
43
|
+
stream.readable = false;
|
|
44
|
+
if (!stream.writable && stream.autoDestroy)
|
|
45
|
+
process.nextTick(function() {
|
|
46
|
+
stream.destroy();
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
function _end() {
|
|
50
|
+
stream.writable = false;
|
|
51
|
+
end.call(stream);
|
|
52
|
+
if (!stream.readable && stream.autoDestroy)
|
|
53
|
+
stream.destroy();
|
|
54
|
+
}
|
|
55
|
+
stream.end = function(data) {
|
|
56
|
+
if (ended) return;
|
|
57
|
+
ended = true;
|
|
58
|
+
if (arguments.length) stream.write(data);
|
|
59
|
+
_end();
|
|
60
|
+
return stream;
|
|
61
|
+
};
|
|
62
|
+
stream.destroy = function() {
|
|
63
|
+
if (destroyed) return;
|
|
64
|
+
destroyed = true;
|
|
65
|
+
ended = true;
|
|
66
|
+
buffer.length = 0;
|
|
67
|
+
stream.writable = stream.readable = false;
|
|
68
|
+
stream.emit("close");
|
|
69
|
+
return stream;
|
|
70
|
+
};
|
|
71
|
+
stream.pause = function() {
|
|
72
|
+
if (stream.paused) return;
|
|
73
|
+
stream.paused = true;
|
|
74
|
+
return stream;
|
|
75
|
+
};
|
|
76
|
+
stream.resume = function() {
|
|
77
|
+
if (stream.paused) {
|
|
78
|
+
stream.paused = false;
|
|
79
|
+
stream.emit("resume");
|
|
80
|
+
}
|
|
81
|
+
drain();
|
|
82
|
+
if (!stream.paused)
|
|
83
|
+
stream.emit("drain");
|
|
84
|
+
return stream;
|
|
85
|
+
};
|
|
86
|
+
return stream;
|
|
87
|
+
}
|
|
88
|
+
})(index.__module);
|
|
89
|
+
var throughExports = index.__module.exports;
|
|
90
|
+
const through = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throughExports);
|
|
91
|
+
exports.default = through;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs } from "../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as through$1 } from "../../../../../_virtual/index.js";
|
|
3
|
+
import require$$1 from "../../../../../_virtual/___vite-browser-external.js";
|
|
4
|
+
(function(module, exports) {
|
|
5
|
+
var Stream = require$$1;
|
|
6
|
+
module.exports = through2;
|
|
7
|
+
through2.through = through2;
|
|
8
|
+
function through2(write, end, opts) {
|
|
9
|
+
write = write || function(data) {
|
|
10
|
+
this.queue(data);
|
|
11
|
+
};
|
|
12
|
+
end = end || function() {
|
|
13
|
+
this.queue(null);
|
|
14
|
+
};
|
|
15
|
+
var ended = false, destroyed = false, buffer = [], _ended = false;
|
|
16
|
+
var stream = new Stream();
|
|
17
|
+
stream.readable = stream.writable = true;
|
|
18
|
+
stream.paused = false;
|
|
19
|
+
stream.autoDestroy = !(opts && opts.autoDestroy === false);
|
|
20
|
+
stream.write = function(data) {
|
|
21
|
+
write.call(this, data);
|
|
22
|
+
return !stream.paused;
|
|
23
|
+
};
|
|
24
|
+
function drain() {
|
|
25
|
+
while (buffer.length && !stream.paused) {
|
|
26
|
+
var data = buffer.shift();
|
|
27
|
+
if (null === data)
|
|
28
|
+
return stream.emit("end");
|
|
29
|
+
else
|
|
30
|
+
stream.emit("data", data);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
stream.queue = stream.push = function(data) {
|
|
34
|
+
if (_ended) return stream;
|
|
35
|
+
if (data === null) _ended = true;
|
|
36
|
+
buffer.push(data);
|
|
37
|
+
drain();
|
|
38
|
+
return stream;
|
|
39
|
+
};
|
|
40
|
+
stream.on("end", function() {
|
|
41
|
+
stream.readable = false;
|
|
42
|
+
if (!stream.writable && stream.autoDestroy)
|
|
43
|
+
process.nextTick(function() {
|
|
44
|
+
stream.destroy();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function _end() {
|
|
48
|
+
stream.writable = false;
|
|
49
|
+
end.call(stream);
|
|
50
|
+
if (!stream.readable && stream.autoDestroy)
|
|
51
|
+
stream.destroy();
|
|
52
|
+
}
|
|
53
|
+
stream.end = function(data) {
|
|
54
|
+
if (ended) return;
|
|
55
|
+
ended = true;
|
|
56
|
+
if (arguments.length) stream.write(data);
|
|
57
|
+
_end();
|
|
58
|
+
return stream;
|
|
59
|
+
};
|
|
60
|
+
stream.destroy = function() {
|
|
61
|
+
if (destroyed) return;
|
|
62
|
+
destroyed = true;
|
|
63
|
+
ended = true;
|
|
64
|
+
buffer.length = 0;
|
|
65
|
+
stream.writable = stream.readable = false;
|
|
66
|
+
stream.emit("close");
|
|
67
|
+
return stream;
|
|
68
|
+
};
|
|
69
|
+
stream.pause = function() {
|
|
70
|
+
if (stream.paused) return;
|
|
71
|
+
stream.paused = true;
|
|
72
|
+
return stream;
|
|
73
|
+
};
|
|
74
|
+
stream.resume = function() {
|
|
75
|
+
if (stream.paused) {
|
|
76
|
+
stream.paused = false;
|
|
77
|
+
stream.emit("resume");
|
|
78
|
+
}
|
|
79
|
+
drain();
|
|
80
|
+
if (!stream.paused)
|
|
81
|
+
stream.emit("drain");
|
|
82
|
+
return stream;
|
|
83
|
+
};
|
|
84
|
+
return stream;
|
|
85
|
+
}
|
|
86
|
+
})(through$1);
|
|
87
|
+
var throughExports = through$1.exports;
|
|
88
|
+
const through = /* @__PURE__ */ getDefaultExportFromCjs(throughExports);
|
|
89
|
+
export {
|
|
90
|
+
through as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const _commonjsHelpers = require("../../../../../_virtual/_commonjsHelpers.cjs");
|
|
4
|
+
var browser = deprecate;
|
|
5
|
+
function deprecate(fn, msg) {
|
|
6
|
+
if (config("noDeprecation")) {
|
|
7
|
+
return fn;
|
|
8
|
+
}
|
|
9
|
+
var warned = false;
|
|
10
|
+
function deprecated() {
|
|
11
|
+
if (!warned) {
|
|
12
|
+
if (config("throwDeprecation")) {
|
|
13
|
+
throw new Error(msg);
|
|
14
|
+
} else if (config("traceDeprecation")) {
|
|
15
|
+
console.trace(msg);
|
|
16
|
+
} else {
|
|
17
|
+
console.warn(msg);
|
|
18
|
+
}
|
|
19
|
+
warned = true;
|
|
20
|
+
}
|
|
21
|
+
return fn.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
return deprecated;
|
|
24
|
+
}
|
|
25
|
+
function config(name) {
|
|
26
|
+
try {
|
|
27
|
+
if (!_commonjsHelpers.commonjsGlobal.localStorage) return false;
|
|
28
|
+
} catch (_) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
var val = _commonjsHelpers.commonjsGlobal.localStorage[name];
|
|
32
|
+
if (null == val) return false;
|
|
33
|
+
return String(val).toLowerCase() === "true";
|
|
34
|
+
}
|
|
35
|
+
exports.browser = browser;
|