@depup/miniflare 4.20260317.0-depup.0
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 +31 -0
- package/bootstrap.js +11 -0
- package/changes.json +10 -0
- package/dist/local-explorer-ui/assets/Breadcrumbs-7hjI0sYt.js +1 -0
- package/dist/local-explorer-ui/assets/TableSelect-_bi6l6Iv.js +25 -0
- package/dist/local-explorer-ui/assets/_className-gSkjniQn.js +1 -0
- package/dist/local-explorer-ui/assets/_databaseId-DWcfgBis.js +1 -0
- package/dist/local-explorer-ui/assets/_namespaceId-8ViM8VDL.js +1 -0
- package/dist/local-explorer-ui/assets/_objectId-X6x-JUph.js +1 -0
- package/dist/local-explorer-ui/assets/dropdown-DFeFcKfn-BCd_NRZS.js +1 -0
- package/dist/local-explorer-ui/assets/index-BFNDwiew.js +42 -0
- package/dist/local-explorer-ui/assets/index-CLSFsgi0.js +1 -0
- package/dist/local-explorer-ui/assets/index-KG4JeHCX.js +1 -0
- package/dist/local-explorer-ui/assets/index-mgoUmSld.css +1 -0
- package/dist/local-explorer-ui/assets/table-BUmvaBj8-v-EIZgOz.js +1 -0
- package/dist/local-explorer-ui/favicon.svg +3 -0
- package/dist/local-explorer-ui/index.html +14 -0
- package/dist/src/index.d.ts +8703 -0
- package/dist/src/index.js +83666 -0
- package/dist/src/index.js.map +6 -0
- package/dist/src/shared/dev-registry.worker.js +69801 -0
- package/dist/src/shared/dev-registry.worker.js.map +6 -0
- package/dist/src/workers/analytics-engine/analytics-engine.worker.js +15 -0
- package/dist/src/workers/analytics-engine/analytics-engine.worker.js.map +6 -0
- package/dist/src/workers/assets/assets-kv.worker.js +28 -0
- package/dist/src/workers/assets/assets-kv.worker.js.map +6 -0
- package/dist/src/workers/assets/assets.worker.js +9014 -0
- package/dist/src/workers/assets/assets.worker.js.map +6 -0
- package/dist/src/workers/assets/router.worker.js +9625 -0
- package/dist/src/workers/assets/router.worker.js.map +6 -0
- package/dist/src/workers/assets/rpc-proxy.worker.js +29 -0
- package/dist/src/workers/assets/rpc-proxy.worker.js.map +6 -0
- package/dist/src/workers/browser-rendering/binding.worker.js +129 -0
- package/dist/src/workers/browser-rendering/binding.worker.js.map +6 -0
- package/dist/src/workers/cache/cache-entry-noop.worker.js +19 -0
- package/dist/src/workers/cache/cache-entry-noop.worker.js.map +6 -0
- package/dist/src/workers/cache/cache-entry.worker.js +28 -0
- package/dist/src/workers/cache/cache-entry.worker.js.map +6 -0
- package/dist/src/workers/cache/cache.worker.js +653 -0
- package/dist/src/workers/cache/cache.worker.js.map +6 -0
- package/dist/src/workers/core/do-wrapper.worker.js +43 -0
- package/dist/src/workers/core/do-wrapper.worker.js.map +6 -0
- package/dist/src/workers/core/entry.worker.js +4633 -0
- package/dist/src/workers/core/entry.worker.js.map +6 -0
- package/dist/src/workers/core/strip-cf-connecting-ip.worker.js +11 -0
- package/dist/src/workers/core/strip-cf-connecting-ip.worker.js.map +6 -0
- package/dist/src/workers/d1/database.worker.js +219 -0
- package/dist/src/workers/d1/database.worker.js.map +6 -0
- package/dist/src/workers/dispatch-namespace/dispatch-namespace-proxy.worker.js +2271 -0
- package/dist/src/workers/dispatch-namespace/dispatch-namespace-proxy.worker.js.map +6 -0
- package/dist/src/workers/dispatch-namespace/dispatch-namespace.worker.js +12 -0
- package/dist/src/workers/dispatch-namespace/dispatch-namespace.worker.js.map +6 -0
- package/dist/src/workers/email/email.worker.js +23 -0
- package/dist/src/workers/email/email.worker.js.map +6 -0
- package/dist/src/workers/email/send_email.worker.js +3294 -0
- package/dist/src/workers/email/send_email.worker.js.map +6 -0
- package/dist/src/workers/hello-world/binding.worker.js +19 -0
- package/dist/src/workers/hello-world/binding.worker.js.map +6 -0
- package/dist/src/workers/hello-world/object.worker.js +14 -0
- package/dist/src/workers/hello-world/object.worker.js.map +6 -0
- package/dist/src/workers/images/images.worker.js +155 -0
- package/dist/src/workers/images/images.worker.js.map +6 -0
- package/dist/src/workers/kv/namespace.worker.js +322 -0
- package/dist/src/workers/kv/namespace.worker.js.map +6 -0
- package/dist/src/workers/kv/sites.worker.js +146 -0
- package/dist/src/workers/kv/sites.worker.js.map +6 -0
- package/dist/src/workers/local-explorer/explorer.worker.js +5245 -0
- package/dist/src/workers/local-explorer/explorer.worker.js.map +6 -0
- package/dist/src/workers/pipelines/pipeline.worker.js +10 -0
- package/dist/src/workers/pipelines/pipeline.worker.js.map +6 -0
- package/dist/src/workers/queues/broker.worker.js +289 -0
- package/dist/src/workers/queues/broker.worker.js.map +6 -0
- package/dist/src/workers/r2/bucket.worker.js +1134 -0
- package/dist/src/workers/r2/bucket.worker.js.map +6 -0
- package/dist/src/workers/ratelimit/ratelimit.worker.js +54 -0
- package/dist/src/workers/ratelimit/ratelimit.worker.js.map +6 -0
- package/dist/src/workers/secrets-store/secret.worker.js +65 -0
- package/dist/src/workers/secrets-store/secret.worker.js.map +6 -0
- package/dist/src/workers/shared/index.worker.js +693 -0
- package/dist/src/workers/shared/index.worker.js.map +6 -0
- package/dist/src/workers/shared/object-entry.worker.js +21 -0
- package/dist/src/workers/shared/object-entry.worker.js.map +6 -0
- package/dist/src/workers/shared/remote-proxy-client.worker.js +2271 -0
- package/dist/src/workers/shared/remote-proxy-client.worker.js.map +6 -0
- package/dist/src/workers/shared/zod.worker.js +2954 -0
- package/dist/src/workers/shared/zod.worker.js.map +6 -0
- package/dist/src/workers/workflows/binding.worker.js +2422 -0
- package/dist/src/workers/workflows/binding.worker.js.map +6 -0
- package/dist/src/workers/workflows/wrapped-binding.worker.js +71 -0
- package/dist/src/workers/workflows/wrapped-binding.worker.js.map +6 -0
- package/package.json +139 -0
|
@@ -0,0 +1,4633 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs
|
|
2
|
+
var FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY = !0;
|
|
3
|
+
typeof process < "u" && ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}, isTTY = process.stdout && process.stdout.isTTY);
|
|
4
|
+
var $ = {
|
|
5
|
+
enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
|
|
6
|
+
};
|
|
7
|
+
function init(x, y) {
|
|
8
|
+
let rgx = new RegExp(`\\x1b\\[${y}m`, "g"), open = `\x1B[${x}m`, close = `\x1B[${y}m`;
|
|
9
|
+
return function(txt) {
|
|
10
|
+
return !$.enabled || txt == null ? txt : open + (~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var reset = init(0, 0), bold = init(1, 22), dim = init(2, 22), italic = init(3, 23), underline = init(4, 24), inverse = init(7, 27), hidden = init(8, 28), strikethrough = init(9, 29), black = init(30, 39), red = init(31, 39), green = init(32, 39), yellow = init(33, 39), blue = init(34, 39), magenta = init(35, 39), cyan = init(36, 39), white = init(37, 39), gray = init(90, 39), grey = init(90, 39), bgBlack = init(40, 49), bgRed = init(41, 49), bgGreen = init(42, 49), bgYellow = init(43, 49), bgBlue = init(44, 49), bgMagenta = init(45, 49), bgCyan = init(46, 49), bgWhite = init(47, 49);
|
|
14
|
+
|
|
15
|
+
// src/workers/core/entry.worker.ts
|
|
16
|
+
import { HttpError, LogLevel as LogLevel2, SharedHeaders as SharedHeaders2 } from "miniflare:shared";
|
|
17
|
+
|
|
18
|
+
// src/plugins/core/constants.ts
|
|
19
|
+
var CORE_PLUGIN_NAME = "core", SERVICE_ENTRY = `${CORE_PLUGIN_NAME}:entry`, SERVICE_LOCAL_EXPLORER = `${CORE_PLUGIN_NAME}:local-explorer`, LOCAL_EXPLORER_DISK = `${CORE_PLUGIN_NAME}:local-explorer-disk`, LOCAL_EXPLORER_BASE_PATH = "/cdn-cgi/explorer", LOCAL_EXPLORER_API_PATH = `${LOCAL_EXPLORER_BASE_PATH}/api`, SERVICE_USER_PREFIX = `${CORE_PLUGIN_NAME}:user`, SERVICE_BUILTIN_PREFIX = `${CORE_PLUGIN_NAME}:builtin`, SERVICE_CUSTOM_FETCH_PREFIX = `${CORE_PLUGIN_NAME}:custom-fetch`, SERVICE_CUSTOM_NODE_PREFIX = `${CORE_PLUGIN_NAME}:custom-node`;
|
|
20
|
+
|
|
21
|
+
// src/shared/mime-types.ts
|
|
22
|
+
var compressedByCloudflareFL = /* @__PURE__ */ new Set([
|
|
23
|
+
// list copied from https://developers.cloudflare.com/speed/optimization/content/brotli/content-compression/#:~:text=If%20supported%20by%20visitors%E2%80%99%20web%20browsers%2C%20Cloudflare%20will%20return%20Gzip%20or%20Brotli%2Dencoded%20responses%20for%20the%20following%20content%20types%3A
|
|
24
|
+
"text/html",
|
|
25
|
+
"text/richtext",
|
|
26
|
+
"text/plain",
|
|
27
|
+
"text/css",
|
|
28
|
+
"text/x-script",
|
|
29
|
+
"text/x-component",
|
|
30
|
+
"text/x-java-source",
|
|
31
|
+
"text/x-markdown",
|
|
32
|
+
"application/javascript",
|
|
33
|
+
"application/x-javascript",
|
|
34
|
+
"text/javascript",
|
|
35
|
+
"text/js",
|
|
36
|
+
"image/x-icon",
|
|
37
|
+
"image/vnd.microsoft.icon",
|
|
38
|
+
"application/x-perl",
|
|
39
|
+
"application/x-httpd-cgi",
|
|
40
|
+
"text/xml",
|
|
41
|
+
"application/xml",
|
|
42
|
+
"application/rss+xml",
|
|
43
|
+
"application/vnd.api+json",
|
|
44
|
+
"application/x-protobuf",
|
|
45
|
+
"application/json",
|
|
46
|
+
"multipart/bag",
|
|
47
|
+
"multipart/mixed",
|
|
48
|
+
"application/xhtml+xml",
|
|
49
|
+
"font/ttf",
|
|
50
|
+
"font/otf",
|
|
51
|
+
"font/x-woff",
|
|
52
|
+
"image/svg+xml",
|
|
53
|
+
"application/vnd.ms-fontobject",
|
|
54
|
+
"application/ttf",
|
|
55
|
+
"application/x-ttf",
|
|
56
|
+
"application/otf",
|
|
57
|
+
"application/x-otf",
|
|
58
|
+
"application/truetype",
|
|
59
|
+
"application/opentype",
|
|
60
|
+
"application/x-opentype",
|
|
61
|
+
"application/font-woff",
|
|
62
|
+
"application/eot",
|
|
63
|
+
"application/font",
|
|
64
|
+
"application/font-sfnt",
|
|
65
|
+
"application/wasm",
|
|
66
|
+
"application/javascript-binast",
|
|
67
|
+
"application/manifest+json",
|
|
68
|
+
"application/ld+json",
|
|
69
|
+
"application/graphql+json",
|
|
70
|
+
"application/geo+json"
|
|
71
|
+
]);
|
|
72
|
+
function isCompressedByCloudflareFL(contentTypeHeader) {
|
|
73
|
+
if (!contentTypeHeader) return !0;
|
|
74
|
+
let [contentType] = contentTypeHeader.split(";");
|
|
75
|
+
return compressedByCloudflareFL.has(contentType);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// src/workers/core/constants.ts
|
|
79
|
+
var CoreHeaders = {
|
|
80
|
+
CUSTOM_FETCH_SERVICE: "MF-Custom-Fetch-Service",
|
|
81
|
+
CUSTOM_NODE_SERVICE: "MF-Custom-Node-Service",
|
|
82
|
+
ORIGINAL_URL: "MF-Original-URL",
|
|
83
|
+
/**
|
|
84
|
+
* Stores the original hostname when using the `upstream` option.
|
|
85
|
+
* When requests are proxied to an upstream, the `Host` header is rewritten
|
|
86
|
+
* to match the upstream. This header preserves the original hostname
|
|
87
|
+
* so Workers can access it if needed.
|
|
88
|
+
*/
|
|
89
|
+
ORIGINAL_HOSTNAME: "MF-Original-Hostname",
|
|
90
|
+
PROXY_SHARED_SECRET: "MF-Proxy-Shared-Secret",
|
|
91
|
+
DISABLE_PRETTY_ERROR: "MF-Disable-Pretty-Error",
|
|
92
|
+
ERROR_STACK: "MF-Experimental-Error-Stack",
|
|
93
|
+
ROUTE_OVERRIDE: "MF-Route-Override",
|
|
94
|
+
CF_BLOB: "MF-CF-Blob",
|
|
95
|
+
/** Used by the Vite plugin to pass through the original `sec-fetch-mode` header */
|
|
96
|
+
SEC_FETCH_MODE: "MF-Sec-Fetch-Mode",
|
|
97
|
+
// API Proxy
|
|
98
|
+
OP_SECRET: "MF-Op-Secret",
|
|
99
|
+
OP: "MF-Op",
|
|
100
|
+
OP_TARGET: "MF-Op-Target",
|
|
101
|
+
OP_KEY: "MF-Op-Key",
|
|
102
|
+
OP_SYNC: "MF-Op-Sync",
|
|
103
|
+
OP_STRINGIFIED_SIZE: "MF-Op-Stringified-Size",
|
|
104
|
+
OP_RESULT_TYPE: "MF-Op-Result-Type"
|
|
105
|
+
}, CoreBindings = {
|
|
106
|
+
SERVICE_LOOPBACK: "MINIFLARE_LOOPBACK",
|
|
107
|
+
SERVICE_USER_ROUTE_PREFIX: "MINIFLARE_USER_ROUTE_",
|
|
108
|
+
SERVICE_USER_FALLBACK: "MINIFLARE_USER_FALLBACK",
|
|
109
|
+
TEXT_CUSTOM_SERVICE: "MINIFLARE_CUSTOM_SERVICE",
|
|
110
|
+
IMAGES_SERVICE: "MINIFLARE_IMAGES_SERVICE",
|
|
111
|
+
TEXT_UPSTREAM_URL: "MINIFLARE_UPSTREAM_URL",
|
|
112
|
+
JSON_CF_BLOB: "CF_BLOB",
|
|
113
|
+
JSON_ROUTES: "MINIFLARE_ROUTES",
|
|
114
|
+
JSON_LOG_LEVEL: "MINIFLARE_LOG_LEVEL",
|
|
115
|
+
DATA_LIVE_RELOAD_SCRIPT: "MINIFLARE_LIVE_RELOAD_SCRIPT",
|
|
116
|
+
DURABLE_OBJECT_NAMESPACE_PROXY: "MINIFLARE_PROXY",
|
|
117
|
+
DATA_PROXY_SECRET: "MINIFLARE_PROXY_SECRET",
|
|
118
|
+
DATA_PROXY_SHARED_SECRET: "MINIFLARE_PROXY_SHARED_SECRET",
|
|
119
|
+
TRIGGER_HANDLERS: "TRIGGER_HANDLERS",
|
|
120
|
+
LOG_REQUESTS: "LOG_REQUESTS",
|
|
121
|
+
STRIP_DISABLE_PRETTY_ERROR: "STRIP_DISABLE_PRETTY_ERROR",
|
|
122
|
+
SERVICE_LOCAL_EXPLORER: "MINIFLARE_LOCAL_EXPLORER",
|
|
123
|
+
EXPLORER_DISK: "MINIFLARE_EXPLORER_DISK",
|
|
124
|
+
JSON_LOCAL_EXPLORER_BINDING_MAP: "LOCAL_EXPLORER_BINDING_MAP",
|
|
125
|
+
JSON_LOCAL_EXPLORER_WORKER_NAMES: "LOCAL_EXPLORER_WORKER_NAMES",
|
|
126
|
+
SERVICE_CACHE: "MINIFLARE_CACHE"
|
|
127
|
+
}, ProxyOps = {
|
|
128
|
+
// Get the target or a property of the target
|
|
129
|
+
GET: "GET",
|
|
130
|
+
// Get the descriptor for a property of the target
|
|
131
|
+
GET_OWN_DESCRIPTOR: "GET_OWN_DESCRIPTOR",
|
|
132
|
+
// Get the target's own property names
|
|
133
|
+
GET_OWN_KEYS: "GET_OWN_KEYS",
|
|
134
|
+
// Call a method on the target
|
|
135
|
+
CALL: "CALL",
|
|
136
|
+
// Remove the strong reference to the target on the "heap", allowing it to be
|
|
137
|
+
// garbage collected
|
|
138
|
+
FREE: "FREE"
|
|
139
|
+
}, ProxyAddresses = {
|
|
140
|
+
GLOBAL: 0,
|
|
141
|
+
// globalThis
|
|
142
|
+
ENV: 1,
|
|
143
|
+
// env
|
|
144
|
+
USER_START: 2
|
|
145
|
+
};
|
|
146
|
+
function isFetcherFetch(targetName, key) {
|
|
147
|
+
return (targetName === "Fetcher" || targetName === "DurableObject" || targetName === "WorkerRpc") && key === "fetch";
|
|
148
|
+
}
|
|
149
|
+
function isR2ObjectWriteHttpMetadata(targetName, key) {
|
|
150
|
+
return (targetName === "HeadResult" || targetName === "GetResult") && key === "writeHttpMetadata";
|
|
151
|
+
}
|
|
152
|
+
function isImagesInput(targetName, key) {
|
|
153
|
+
return targetName === "ImagesBindingImpl" && key === "input";
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// src/workers/core/email.ts
|
|
157
|
+
import assert from "node:assert";
|
|
158
|
+
import { LogLevel, SharedHeaders } from "miniflare:shared";
|
|
159
|
+
|
|
160
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/decode-strings.js
|
|
161
|
+
var textEncoder = new TextEncoder(), base64Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", base64Lookup = new Uint8Array(256);
|
|
162
|
+
for (i = 0; i < base64Chars.length; i++)
|
|
163
|
+
base64Lookup[base64Chars.charCodeAt(i)] = i;
|
|
164
|
+
var i;
|
|
165
|
+
function decodeBase64(base64) {
|
|
166
|
+
let bufferLength = Math.ceil(base64.length / 4) * 3, len = base64.length, p = 0;
|
|
167
|
+
base64.length % 4 === 3 ? bufferLength-- : base64.length % 4 === 2 ? bufferLength -= 2 : base64[base64.length - 1] === "=" && (bufferLength--, base64[base64.length - 2] === "=" && bufferLength--);
|
|
168
|
+
let arrayBuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arrayBuffer);
|
|
169
|
+
for (let i = 0; i < len; i += 4) {
|
|
170
|
+
let encoded1 = base64Lookup[base64.charCodeAt(i)], encoded2 = base64Lookup[base64.charCodeAt(i + 1)], encoded3 = base64Lookup[base64.charCodeAt(i + 2)], encoded4 = base64Lookup[base64.charCodeAt(i + 3)];
|
|
171
|
+
bytes[p++] = encoded1 << 2 | encoded2 >> 4, bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2, bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
172
|
+
}
|
|
173
|
+
return arrayBuffer;
|
|
174
|
+
}
|
|
175
|
+
function getDecoder(charset) {
|
|
176
|
+
return charset = charset || "utf8", new TextDecoder(charset);
|
|
177
|
+
}
|
|
178
|
+
async function blobToArrayBuffer(blob) {
|
|
179
|
+
if ("arrayBuffer" in blob)
|
|
180
|
+
return await blob.arrayBuffer();
|
|
181
|
+
let fr = new FileReader();
|
|
182
|
+
return new Promise((resolve, reject) => {
|
|
183
|
+
fr.onload = function(e) {
|
|
184
|
+
resolve(e.target.result);
|
|
185
|
+
}, fr.onerror = function(e) {
|
|
186
|
+
reject(fr.error);
|
|
187
|
+
}, fr.readAsArrayBuffer(blob);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function getHex(c) {
|
|
191
|
+
return c >= 48 && c <= 57 || c >= 97 && c <= 102 || c >= 65 && c <= 70 ? String.fromCharCode(c) : !1;
|
|
192
|
+
}
|
|
193
|
+
function decodeWord(charset, encoding, str) {
|
|
194
|
+
let splitPos = charset.indexOf("*");
|
|
195
|
+
splitPos >= 0 && (charset = charset.substr(0, splitPos)), encoding = encoding.toUpperCase();
|
|
196
|
+
let byteStr;
|
|
197
|
+
if (encoding === "Q") {
|
|
198
|
+
str = str.replace(/=\s+([0-9a-fA-F])/g, "=$1").replace(/[_\s]/g, " ");
|
|
199
|
+
let buf = textEncoder.encode(str), encodedBytes = [];
|
|
200
|
+
for (let i = 0, len = buf.length; i < len; i++) {
|
|
201
|
+
let c = buf[i];
|
|
202
|
+
if (i <= len - 2 && c === 61) {
|
|
203
|
+
let c1 = getHex(buf[i + 1]), c2 = getHex(buf[i + 2]);
|
|
204
|
+
if (c1 && c2) {
|
|
205
|
+
let c3 = parseInt(c1 + c2, 16);
|
|
206
|
+
encodedBytes.push(c3), i += 2;
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
encodedBytes.push(c);
|
|
211
|
+
}
|
|
212
|
+
byteStr = new ArrayBuffer(encodedBytes.length);
|
|
213
|
+
let dataView = new DataView(byteStr);
|
|
214
|
+
for (let i = 0, len = encodedBytes.length; i < len; i++)
|
|
215
|
+
dataView.setUint8(i, encodedBytes[i]);
|
|
216
|
+
} else encoding === "B" ? byteStr = decodeBase64(str.replace(/[^a-zA-Z0-9\+\/=]+/g, "")) : byteStr = textEncoder.encode(str);
|
|
217
|
+
return getDecoder(charset).decode(byteStr);
|
|
218
|
+
}
|
|
219
|
+
function decodeWords(str) {
|
|
220
|
+
let joinString = !0, done = !1;
|
|
221
|
+
for (; !done; ) {
|
|
222
|
+
let result = (str || "").toString().replace(/(=\?([^?]+)\?[Bb]\?([^?]*)\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g, (match, left, chLeft, encodedLeftStr, chRight) => joinString && chLeft === chRight && encodedLeftStr.length % 4 === 0 && !/=$/.test(encodedLeftStr) ? left + "__\0JOIN\0__" : match).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g, (match, left, chLeft, chRight) => joinString && chLeft === chRight ? left + "__\0JOIN\0__" : match).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g, "").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g, "$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g, (m, charset, encoding, text) => decodeWord(charset, encoding, text));
|
|
223
|
+
if (joinString && result.indexOf("\uFFFD") >= 0)
|
|
224
|
+
joinString = !1;
|
|
225
|
+
else
|
|
226
|
+
return result;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function decodeURIComponentWithCharset(encodedStr, charset) {
|
|
230
|
+
charset = charset || "utf-8";
|
|
231
|
+
let encodedBytes = [];
|
|
232
|
+
for (let i = 0; i < encodedStr.length; i++) {
|
|
233
|
+
let c = encodedStr.charAt(i);
|
|
234
|
+
if (c === "%" && /^[a-f0-9]{2}/i.test(encodedStr.substr(i + 1, 2))) {
|
|
235
|
+
let byte = encodedStr.substr(i + 1, 2);
|
|
236
|
+
i += 2, encodedBytes.push(parseInt(byte, 16));
|
|
237
|
+
} else if (c.charCodeAt(0) > 126) {
|
|
238
|
+
c = textEncoder.encode(c);
|
|
239
|
+
for (let j = 0; j < c.length; j++)
|
|
240
|
+
encodedBytes.push(c[j]);
|
|
241
|
+
} else
|
|
242
|
+
encodedBytes.push(c.charCodeAt(0));
|
|
243
|
+
}
|
|
244
|
+
let byteStr = new ArrayBuffer(encodedBytes.length), dataView = new DataView(byteStr);
|
|
245
|
+
for (let i = 0, len = encodedBytes.length; i < len; i++)
|
|
246
|
+
dataView.setUint8(i, encodedBytes[i]);
|
|
247
|
+
return getDecoder(charset).decode(byteStr);
|
|
248
|
+
}
|
|
249
|
+
function decodeParameterValueContinuations(header) {
|
|
250
|
+
let paramKeys = /* @__PURE__ */ new Map();
|
|
251
|
+
Object.keys(header.params).forEach((key) => {
|
|
252
|
+
let match = key.match(/\*((\d+)\*?)?$/);
|
|
253
|
+
if (!match)
|
|
254
|
+
return;
|
|
255
|
+
let actualKey = key.substr(0, match.index).toLowerCase(), nr = Number(match[2]) || 0, paramVal;
|
|
256
|
+
paramKeys.has(actualKey) ? paramVal = paramKeys.get(actualKey) : (paramVal = {
|
|
257
|
+
charset: !1,
|
|
258
|
+
values: []
|
|
259
|
+
}, paramKeys.set(actualKey, paramVal));
|
|
260
|
+
let value = header.params[key];
|
|
261
|
+
nr === 0 && match[0].charAt(match[0].length - 1) === "*" && (match = value.match(/^([^']*)'[^']*'(.*)$/)) && (paramVal.charset = match[1] || "utf-8", value = match[2]), paramVal.values.push({ nr, value }), delete header.params[key];
|
|
262
|
+
}), paramKeys.forEach((paramVal, key) => {
|
|
263
|
+
header.params[key] = decodeURIComponentWithCharset(
|
|
264
|
+
paramVal.values.sort((a, b) => a.nr - b.nr).map((a) => a.value).join(""),
|
|
265
|
+
paramVal.charset
|
|
266
|
+
);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/pass-through-decoder.js
|
|
271
|
+
var PassThroughDecoder = class {
|
|
272
|
+
constructor() {
|
|
273
|
+
this.chunks = [];
|
|
274
|
+
}
|
|
275
|
+
update(line) {
|
|
276
|
+
this.chunks.push(line), this.chunks.push(`
|
|
277
|
+
`);
|
|
278
|
+
}
|
|
279
|
+
finalize() {
|
|
280
|
+
return blobToArrayBuffer(new Blob(this.chunks, { type: "application/octet-stream" }));
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/base64-decoder.js
|
|
285
|
+
var Base64Decoder = class {
|
|
286
|
+
constructor(opts) {
|
|
287
|
+
opts = opts || {}, this.decoder = opts.decoder || new TextDecoder(), this.maxChunkSize = 100 * 1024, this.chunks = [], this.remainder = "";
|
|
288
|
+
}
|
|
289
|
+
update(buffer) {
|
|
290
|
+
let str = this.decoder.decode(buffer);
|
|
291
|
+
if (/[^a-zA-Z0-9+\/]/.test(str) && (str = str.replace(/[^a-zA-Z0-9+\/]+/g, "")), this.remainder += str, this.remainder.length >= this.maxChunkSize) {
|
|
292
|
+
let allowedBytes = Math.floor(this.remainder.length / 4) * 4, base64Str;
|
|
293
|
+
allowedBytes === this.remainder.length ? (base64Str = this.remainder, this.remainder = "") : (base64Str = this.remainder.substr(0, allowedBytes), this.remainder = this.remainder.substr(allowedBytes)), base64Str.length && this.chunks.push(decodeBase64(base64Str));
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
finalize() {
|
|
297
|
+
return this.remainder && !/^=+$/.test(this.remainder) && this.chunks.push(decodeBase64(this.remainder)), blobToArrayBuffer(new Blob(this.chunks, { type: "application/octet-stream" }));
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/qp-decoder.js
|
|
302
|
+
var QPDecoder = class {
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
opts = opts || {}, this.decoder = opts.decoder || new TextDecoder(), this.maxChunkSize = 100 * 1024, this.remainder = "", this.chunks = [];
|
|
305
|
+
}
|
|
306
|
+
decodeQPBytes(encodedBytes) {
|
|
307
|
+
let buf = new ArrayBuffer(encodedBytes.length), dataView = new DataView(buf);
|
|
308
|
+
for (let i = 0, len = encodedBytes.length; i < len; i++)
|
|
309
|
+
dataView.setUint8(i, parseInt(encodedBytes[i], 16));
|
|
310
|
+
return buf;
|
|
311
|
+
}
|
|
312
|
+
decodeChunks(str) {
|
|
313
|
+
str = str.replace(/=\r?\n/g, "");
|
|
314
|
+
let list = str.split(/(?==)/), encodedBytes = [];
|
|
315
|
+
for (let part of list) {
|
|
316
|
+
if (part.charAt(0) !== "=") {
|
|
317
|
+
encodedBytes.length && (this.chunks.push(this.decodeQPBytes(encodedBytes)), encodedBytes = []), this.chunks.push(part);
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
if (part.length === 3) {
|
|
321
|
+
encodedBytes.push(part.substr(1));
|
|
322
|
+
continue;
|
|
323
|
+
}
|
|
324
|
+
part.length > 3 && (encodedBytes.push(part.substr(1, 2)), this.chunks.push(this.decodeQPBytes(encodedBytes)), encodedBytes = [], part = part.substr(3), this.chunks.push(part));
|
|
325
|
+
}
|
|
326
|
+
encodedBytes.length && (this.chunks.push(this.decodeQPBytes(encodedBytes)), encodedBytes = []);
|
|
327
|
+
}
|
|
328
|
+
update(buffer) {
|
|
329
|
+
let str = this.decoder.decode(buffer) + `
|
|
330
|
+
`;
|
|
331
|
+
if (str = this.remainder + str, str.length < this.maxChunkSize) {
|
|
332
|
+
this.remainder = str;
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
this.remainder = "";
|
|
336
|
+
let partialEnding = str.match(/=[a-fA-F0-9]?$/);
|
|
337
|
+
if (partialEnding) {
|
|
338
|
+
if (partialEnding.index === 0) {
|
|
339
|
+
this.remainder = str;
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
this.remainder = str.substr(partialEnding.index), str = str.substr(0, partialEnding.index);
|
|
343
|
+
}
|
|
344
|
+
this.decodeChunks(str);
|
|
345
|
+
}
|
|
346
|
+
finalize() {
|
|
347
|
+
return this.remainder.length && (this.decodeChunks(this.remainder), this.remainder = ""), blobToArrayBuffer(new Blob(this.chunks, { type: "application/octet-stream" }));
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/mime-node.js
|
|
352
|
+
var MimeNode = class {
|
|
353
|
+
constructor(opts) {
|
|
354
|
+
opts = opts || {}, this.postalMime = opts.postalMime, this.root = !!opts.parentNode, this.childNodes = [], opts.parentNode && opts.parentNode.childNodes.push(this), this.state = "header", this.headerLines = [], this.contentType = {
|
|
355
|
+
value: "text/plain",
|
|
356
|
+
default: !0
|
|
357
|
+
}, this.contentTransferEncoding = {
|
|
358
|
+
value: "8bit"
|
|
359
|
+
}, this.contentDisposition = {
|
|
360
|
+
value: ""
|
|
361
|
+
}, this.headers = [], this.contentDecoder = !1;
|
|
362
|
+
}
|
|
363
|
+
setupContentDecoder(transferEncoding) {
|
|
364
|
+
/base64/i.test(transferEncoding) ? this.contentDecoder = new Base64Decoder() : /quoted-printable/i.test(transferEncoding) ? this.contentDecoder = new QPDecoder({ decoder: getDecoder(this.contentType.parsed.params.charset) }) : this.contentDecoder = new PassThroughDecoder();
|
|
365
|
+
}
|
|
366
|
+
async finalize() {
|
|
367
|
+
if (this.state === "finished")
|
|
368
|
+
return;
|
|
369
|
+
this.state === "header" && this.processHeaders();
|
|
370
|
+
let boundaries = this.postalMime.boundaries;
|
|
371
|
+
for (let i = boundaries.length - 1; i >= 0; i--)
|
|
372
|
+
if (boundaries[i].node === this) {
|
|
373
|
+
boundaries.splice(i, 1);
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
await this.finalizeChildNodes(), this.content = this.contentDecoder ? await this.contentDecoder.finalize() : null, this.state = "finished";
|
|
377
|
+
}
|
|
378
|
+
async finalizeChildNodes() {
|
|
379
|
+
for (let childNode of this.childNodes)
|
|
380
|
+
await childNode.finalize();
|
|
381
|
+
}
|
|
382
|
+
parseStructuredHeader(str) {
|
|
383
|
+
let response = {
|
|
384
|
+
value: !1,
|
|
385
|
+
params: {}
|
|
386
|
+
}, key = !1, value = "", stage = "value", quote = !1, escaped = !1, chr;
|
|
387
|
+
for (let i = 0, len = str.length; i < len; i++)
|
|
388
|
+
switch (chr = str.charAt(i), stage) {
|
|
389
|
+
case "key":
|
|
390
|
+
if (chr === "=") {
|
|
391
|
+
key = value.trim().toLowerCase(), stage = "value", value = "";
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
value += chr;
|
|
395
|
+
break;
|
|
396
|
+
case "value":
|
|
397
|
+
if (escaped)
|
|
398
|
+
value += chr;
|
|
399
|
+
else if (chr === "\\") {
|
|
400
|
+
escaped = !0;
|
|
401
|
+
continue;
|
|
402
|
+
} else quote && chr === quote ? quote = !1 : !quote && chr === '"' ? quote = chr : !quote && chr === ";" ? (key === !1 ? response.value = value.trim() : response.params[key] = value.trim(), stage = "key", value = "") : value += chr;
|
|
403
|
+
escaped = !1;
|
|
404
|
+
break;
|
|
405
|
+
}
|
|
406
|
+
return value = value.trim(), stage === "value" ? key === !1 ? response.value = value : response.params[key] = value : value && (response.params[value.toLowerCase()] = ""), response.value && (response.value = response.value.toLowerCase()), decodeParameterValueContinuations(response), response;
|
|
407
|
+
}
|
|
408
|
+
decodeFlowedText(str, delSp) {
|
|
409
|
+
return str.split(/\r?\n/).reduce((previousValue, currentValue) => / $/.test(previousValue) && !/(^|\n)-- $/.test(previousValue) ? delSp ? previousValue.slice(0, -1) + currentValue : previousValue + currentValue : previousValue + `
|
|
410
|
+
` + currentValue).replace(/^ /gm, "");
|
|
411
|
+
}
|
|
412
|
+
getTextContent() {
|
|
413
|
+
if (!this.content)
|
|
414
|
+
return "";
|
|
415
|
+
let str = getDecoder(this.contentType.parsed.params.charset).decode(this.content);
|
|
416
|
+
return /^flowed$/i.test(this.contentType.parsed.params.format) && (str = this.decodeFlowedText(str, /^yes$/i.test(this.contentType.parsed.params.delsp))), str;
|
|
417
|
+
}
|
|
418
|
+
processHeaders() {
|
|
419
|
+
for (let i = this.headerLines.length - 1; i >= 0; i--) {
|
|
420
|
+
let line = this.headerLines[i];
|
|
421
|
+
if (i && /^\s/.test(line))
|
|
422
|
+
this.headerLines[i - 1] += `
|
|
423
|
+
` + line, this.headerLines.splice(i, 1);
|
|
424
|
+
else {
|
|
425
|
+
line = line.replace(/\s+/g, " ");
|
|
426
|
+
let sep = line.indexOf(":"), key = sep < 0 ? line.trim() : line.substr(0, sep).trim(), value = sep < 0 ? "" : line.substr(sep + 1).trim();
|
|
427
|
+
switch (this.headers.push({ key: key.toLowerCase(), originalKey: key, value }), key.toLowerCase()) {
|
|
428
|
+
case "content-type":
|
|
429
|
+
this.contentType.default && (this.contentType = { value, parsed: {} });
|
|
430
|
+
break;
|
|
431
|
+
case "content-transfer-encoding":
|
|
432
|
+
this.contentTransferEncoding = { value, parsed: {} };
|
|
433
|
+
break;
|
|
434
|
+
case "content-disposition":
|
|
435
|
+
this.contentDisposition = { value, parsed: {} };
|
|
436
|
+
break;
|
|
437
|
+
case "content-id":
|
|
438
|
+
this.contentId = value;
|
|
439
|
+
break;
|
|
440
|
+
case "content-description":
|
|
441
|
+
this.contentDescription = value;
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
this.contentType.parsed = this.parseStructuredHeader(this.contentType.value), this.contentType.multipart = /^multipart\//i.test(this.contentType.parsed.value) ? this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/") + 1) : !1, this.contentType.multipart && this.contentType.parsed.params.boundary && this.postalMime.boundaries.push({
|
|
447
|
+
value: textEncoder.encode(this.contentType.parsed.params.boundary),
|
|
448
|
+
node: this
|
|
449
|
+
}), this.contentDisposition.parsed = this.parseStructuredHeader(this.contentDisposition.value), this.contentTransferEncoding.encoding = this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(), this.setupContentDecoder(this.contentTransferEncoding.encoding);
|
|
450
|
+
}
|
|
451
|
+
feed(line) {
|
|
452
|
+
switch (this.state) {
|
|
453
|
+
case "header":
|
|
454
|
+
if (!line.length)
|
|
455
|
+
return this.state = "body", this.processHeaders();
|
|
456
|
+
this.headerLines.push(getDecoder().decode(line));
|
|
457
|
+
break;
|
|
458
|
+
case "body":
|
|
459
|
+
this.contentDecoder.update(line);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/html-entities.js
|
|
465
|
+
var htmlEntities = {
|
|
466
|
+
"Æ": "\xC6",
|
|
467
|
+
"Æ": "\xC6",
|
|
468
|
+
"&": "&",
|
|
469
|
+
"&": "&",
|
|
470
|
+
"Á": "\xC1",
|
|
471
|
+
"Á": "\xC1",
|
|
472
|
+
"Ă": "\u0102",
|
|
473
|
+
"Â": "\xC2",
|
|
474
|
+
"Â": "\xC2",
|
|
475
|
+
"А": "\u0410",
|
|
476
|
+
"𝔄": "\u{1D504}",
|
|
477
|
+
"À": "\xC0",
|
|
478
|
+
"À": "\xC0",
|
|
479
|
+
"Α": "\u0391",
|
|
480
|
+
"Ā": "\u0100",
|
|
481
|
+
"⩓": "\u2A53",
|
|
482
|
+
"Ą": "\u0104",
|
|
483
|
+
"𝔸": "\u{1D538}",
|
|
484
|
+
"⁡": "\u2061",
|
|
485
|
+
"Å": "\xC5",
|
|
486
|
+
"Å": "\xC5",
|
|
487
|
+
"𝒜": "\u{1D49C}",
|
|
488
|
+
"≔": "\u2254",
|
|
489
|
+
"Ã": "\xC3",
|
|
490
|
+
"Ã": "\xC3",
|
|
491
|
+
"Ä": "\xC4",
|
|
492
|
+
"Ä": "\xC4",
|
|
493
|
+
"∖": "\u2216",
|
|
494
|
+
"⫧": "\u2AE7",
|
|
495
|
+
"⌆": "\u2306",
|
|
496
|
+
"Б": "\u0411",
|
|
497
|
+
"∵": "\u2235",
|
|
498
|
+
"ℬ": "\u212C",
|
|
499
|
+
"Β": "\u0392",
|
|
500
|
+
"𝔅": "\u{1D505}",
|
|
501
|
+
"𝔹": "\u{1D539}",
|
|
502
|
+
"˘": "\u02D8",
|
|
503
|
+
"ℬ": "\u212C",
|
|
504
|
+
"≎": "\u224E",
|
|
505
|
+
"Ч": "\u0427",
|
|
506
|
+
"©": "\xA9",
|
|
507
|
+
"©": "\xA9",
|
|
508
|
+
"Ć": "\u0106",
|
|
509
|
+
"⋒": "\u22D2",
|
|
510
|
+
"ⅅ": "\u2145",
|
|
511
|
+
"ℭ": "\u212D",
|
|
512
|
+
"Č": "\u010C",
|
|
513
|
+
"Ç": "\xC7",
|
|
514
|
+
"Ç": "\xC7",
|
|
515
|
+
"Ĉ": "\u0108",
|
|
516
|
+
"∰": "\u2230",
|
|
517
|
+
"Ċ": "\u010A",
|
|
518
|
+
"¸": "\xB8",
|
|
519
|
+
"·": "\xB7",
|
|
520
|
+
"ℭ": "\u212D",
|
|
521
|
+
"Χ": "\u03A7",
|
|
522
|
+
"⊙": "\u2299",
|
|
523
|
+
"⊖": "\u2296",
|
|
524
|
+
"⊕": "\u2295",
|
|
525
|
+
"⊗": "\u2297",
|
|
526
|
+
"∲": "\u2232",
|
|
527
|
+
"”": "\u201D",
|
|
528
|
+
"’": "\u2019",
|
|
529
|
+
"∷": "\u2237",
|
|
530
|
+
"⩴": "\u2A74",
|
|
531
|
+
"≡": "\u2261",
|
|
532
|
+
"∯": "\u222F",
|
|
533
|
+
"∮": "\u222E",
|
|
534
|
+
"ℂ": "\u2102",
|
|
535
|
+
"∐": "\u2210",
|
|
536
|
+
"∳": "\u2233",
|
|
537
|
+
"⨯": "\u2A2F",
|
|
538
|
+
"𝒞": "\u{1D49E}",
|
|
539
|
+
"⋓": "\u22D3",
|
|
540
|
+
"≍": "\u224D",
|
|
541
|
+
"ⅅ": "\u2145",
|
|
542
|
+
"⤑": "\u2911",
|
|
543
|
+
"Ђ": "\u0402",
|
|
544
|
+
"Ѕ": "\u0405",
|
|
545
|
+
"Џ": "\u040F",
|
|
546
|
+
"‡": "\u2021",
|
|
547
|
+
"↡": "\u21A1",
|
|
548
|
+
"⫤": "\u2AE4",
|
|
549
|
+
"Ď": "\u010E",
|
|
550
|
+
"Д": "\u0414",
|
|
551
|
+
"∇": "\u2207",
|
|
552
|
+
"Δ": "\u0394",
|
|
553
|
+
"𝔇": "\u{1D507}",
|
|
554
|
+
"´": "\xB4",
|
|
555
|
+
"˙": "\u02D9",
|
|
556
|
+
"˝": "\u02DD",
|
|
557
|
+
"`": "`",
|
|
558
|
+
"˜": "\u02DC",
|
|
559
|
+
"⋄": "\u22C4",
|
|
560
|
+
"ⅆ": "\u2146",
|
|
561
|
+
"𝔻": "\u{1D53B}",
|
|
562
|
+
"¨": "\xA8",
|
|
563
|
+
"⃜": "\u20DC",
|
|
564
|
+
"≐": "\u2250",
|
|
565
|
+
"∯": "\u222F",
|
|
566
|
+
"¨": "\xA8",
|
|
567
|
+
"⇓": "\u21D3",
|
|
568
|
+
"⇐": "\u21D0",
|
|
569
|
+
"⇔": "\u21D4",
|
|
570
|
+
"⫤": "\u2AE4",
|
|
571
|
+
"⟸": "\u27F8",
|
|
572
|
+
"⟺": "\u27FA",
|
|
573
|
+
"⟹": "\u27F9",
|
|
574
|
+
"⇒": "\u21D2",
|
|
575
|
+
"⊨": "\u22A8",
|
|
576
|
+
"⇑": "\u21D1",
|
|
577
|
+
"⇕": "\u21D5",
|
|
578
|
+
"∥": "\u2225",
|
|
579
|
+
"↓": "\u2193",
|
|
580
|
+
"⤓": "\u2913",
|
|
581
|
+
"⇵": "\u21F5",
|
|
582
|
+
"̑": "\u0311",
|
|
583
|
+
"⥐": "\u2950",
|
|
584
|
+
"⥞": "\u295E",
|
|
585
|
+
"↽": "\u21BD",
|
|
586
|
+
"⥖": "\u2956",
|
|
587
|
+
"⥟": "\u295F",
|
|
588
|
+
"⇁": "\u21C1",
|
|
589
|
+
"⥗": "\u2957",
|
|
590
|
+
"⊤": "\u22A4",
|
|
591
|
+
"↧": "\u21A7",
|
|
592
|
+
"⇓": "\u21D3",
|
|
593
|
+
"𝒟": "\u{1D49F}",
|
|
594
|
+
"Đ": "\u0110",
|
|
595
|
+
"Ŋ": "\u014A",
|
|
596
|
+
"Ð": "\xD0",
|
|
597
|
+
"Ð": "\xD0",
|
|
598
|
+
"É": "\xC9",
|
|
599
|
+
"É": "\xC9",
|
|
600
|
+
"Ě": "\u011A",
|
|
601
|
+
"Ê": "\xCA",
|
|
602
|
+
"Ê": "\xCA",
|
|
603
|
+
"Э": "\u042D",
|
|
604
|
+
"Ė": "\u0116",
|
|
605
|
+
"𝔈": "\u{1D508}",
|
|
606
|
+
"È": "\xC8",
|
|
607
|
+
"È": "\xC8",
|
|
608
|
+
"∈": "\u2208",
|
|
609
|
+
"Ē": "\u0112",
|
|
610
|
+
"◻": "\u25FB",
|
|
611
|
+
"▫": "\u25AB",
|
|
612
|
+
"Ę": "\u0118",
|
|
613
|
+
"𝔼": "\u{1D53C}",
|
|
614
|
+
"Ε": "\u0395",
|
|
615
|
+
"⩵": "\u2A75",
|
|
616
|
+
"≂": "\u2242",
|
|
617
|
+
"⇌": "\u21CC",
|
|
618
|
+
"ℰ": "\u2130",
|
|
619
|
+
"⩳": "\u2A73",
|
|
620
|
+
"Η": "\u0397",
|
|
621
|
+
"Ë": "\xCB",
|
|
622
|
+
"Ë": "\xCB",
|
|
623
|
+
"∃": "\u2203",
|
|
624
|
+
"ⅇ": "\u2147",
|
|
625
|
+
"Ф": "\u0424",
|
|
626
|
+
"𝔉": "\u{1D509}",
|
|
627
|
+
"◼": "\u25FC",
|
|
628
|
+
"▪": "\u25AA",
|
|
629
|
+
"𝔽": "\u{1D53D}",
|
|
630
|
+
"∀": "\u2200",
|
|
631
|
+
"ℱ": "\u2131",
|
|
632
|
+
"ℱ": "\u2131",
|
|
633
|
+
"Ѓ": "\u0403",
|
|
634
|
+
">": ">",
|
|
635
|
+
">": ">",
|
|
636
|
+
"Γ": "\u0393",
|
|
637
|
+
"Ϝ": "\u03DC",
|
|
638
|
+
"Ğ": "\u011E",
|
|
639
|
+
"Ģ": "\u0122",
|
|
640
|
+
"Ĝ": "\u011C",
|
|
641
|
+
"Г": "\u0413",
|
|
642
|
+
"Ġ": "\u0120",
|
|
643
|
+
"𝔊": "\u{1D50A}",
|
|
644
|
+
"⋙": "\u22D9",
|
|
645
|
+
"𝔾": "\u{1D53E}",
|
|
646
|
+
"≥": "\u2265",
|
|
647
|
+
"⋛": "\u22DB",
|
|
648
|
+
"≧": "\u2267",
|
|
649
|
+
"⪢": "\u2AA2",
|
|
650
|
+
"≷": "\u2277",
|
|
651
|
+
"⩾": "\u2A7E",
|
|
652
|
+
"≳": "\u2273",
|
|
653
|
+
"𝒢": "\u{1D4A2}",
|
|
654
|
+
"≫": "\u226B",
|
|
655
|
+
"Ъ": "\u042A",
|
|
656
|
+
"ˇ": "\u02C7",
|
|
657
|
+
"^": "^",
|
|
658
|
+
"Ĥ": "\u0124",
|
|
659
|
+
"ℌ": "\u210C",
|
|
660
|
+
"ℋ": "\u210B",
|
|
661
|
+
"ℍ": "\u210D",
|
|
662
|
+
"─": "\u2500",
|
|
663
|
+
"ℋ": "\u210B",
|
|
664
|
+
"Ħ": "\u0126",
|
|
665
|
+
"≎": "\u224E",
|
|
666
|
+
"≏": "\u224F",
|
|
667
|
+
"Е": "\u0415",
|
|
668
|
+
"IJ": "\u0132",
|
|
669
|
+
"Ё": "\u0401",
|
|
670
|
+
"Í": "\xCD",
|
|
671
|
+
"Í": "\xCD",
|
|
672
|
+
"Î": "\xCE",
|
|
673
|
+
"Î": "\xCE",
|
|
674
|
+
"И": "\u0418",
|
|
675
|
+
"İ": "\u0130",
|
|
676
|
+
"ℑ": "\u2111",
|
|
677
|
+
"Ì": "\xCC",
|
|
678
|
+
"Ì": "\xCC",
|
|
679
|
+
"ℑ": "\u2111",
|
|
680
|
+
"Ī": "\u012A",
|
|
681
|
+
"ⅈ": "\u2148",
|
|
682
|
+
"⇒": "\u21D2",
|
|
683
|
+
"∬": "\u222C",
|
|
684
|
+
"∫": "\u222B",
|
|
685
|
+
"⋂": "\u22C2",
|
|
686
|
+
"⁣": "\u2063",
|
|
687
|
+
"⁢": "\u2062",
|
|
688
|
+
"Į": "\u012E",
|
|
689
|
+
"𝕀": "\u{1D540}",
|
|
690
|
+
"Ι": "\u0399",
|
|
691
|
+
"ℐ": "\u2110",
|
|
692
|
+
"Ĩ": "\u0128",
|
|
693
|
+
"І": "\u0406",
|
|
694
|
+
"Ï": "\xCF",
|
|
695
|
+
"Ï": "\xCF",
|
|
696
|
+
"Ĵ": "\u0134",
|
|
697
|
+
"Й": "\u0419",
|
|
698
|
+
"𝔍": "\u{1D50D}",
|
|
699
|
+
"𝕁": "\u{1D541}",
|
|
700
|
+
"𝒥": "\u{1D4A5}",
|
|
701
|
+
"Ј": "\u0408",
|
|
702
|
+
"Є": "\u0404",
|
|
703
|
+
"Х": "\u0425",
|
|
704
|
+
"Ќ": "\u040C",
|
|
705
|
+
"Κ": "\u039A",
|
|
706
|
+
"Ķ": "\u0136",
|
|
707
|
+
"К": "\u041A",
|
|
708
|
+
"𝔎": "\u{1D50E}",
|
|
709
|
+
"𝕂": "\u{1D542}",
|
|
710
|
+
"𝒦": "\u{1D4A6}",
|
|
711
|
+
"Љ": "\u0409",
|
|
712
|
+
"<": "<",
|
|
713
|
+
"<": "<",
|
|
714
|
+
"Ĺ": "\u0139",
|
|
715
|
+
"Λ": "\u039B",
|
|
716
|
+
"⟪": "\u27EA",
|
|
717
|
+
"ℒ": "\u2112",
|
|
718
|
+
"↞": "\u219E",
|
|
719
|
+
"Ľ": "\u013D",
|
|
720
|
+
"Ļ": "\u013B",
|
|
721
|
+
"Л": "\u041B",
|
|
722
|
+
"⟨": "\u27E8",
|
|
723
|
+
"←": "\u2190",
|
|
724
|
+
"⇤": "\u21E4",
|
|
725
|
+
"⇆": "\u21C6",
|
|
726
|
+
"⌈": "\u2308",
|
|
727
|
+
"⟦": "\u27E6",
|
|
728
|
+
"⥡": "\u2961",
|
|
729
|
+
"⇃": "\u21C3",
|
|
730
|
+
"⥙": "\u2959",
|
|
731
|
+
"⌊": "\u230A",
|
|
732
|
+
"↔": "\u2194",
|
|
733
|
+
"⥎": "\u294E",
|
|
734
|
+
"⊣": "\u22A3",
|
|
735
|
+
"↤": "\u21A4",
|
|
736
|
+
"⥚": "\u295A",
|
|
737
|
+
"⊲": "\u22B2",
|
|
738
|
+
"⧏": "\u29CF",
|
|
739
|
+
"⊴": "\u22B4",
|
|
740
|
+
"⥑": "\u2951",
|
|
741
|
+
"⥠": "\u2960",
|
|
742
|
+
"↿": "\u21BF",
|
|
743
|
+
"⥘": "\u2958",
|
|
744
|
+
"↼": "\u21BC",
|
|
745
|
+
"⥒": "\u2952",
|
|
746
|
+
"⇐": "\u21D0",
|
|
747
|
+
"⇔": "\u21D4",
|
|
748
|
+
"⋚": "\u22DA",
|
|
749
|
+
"≦": "\u2266",
|
|
750
|
+
"≶": "\u2276",
|
|
751
|
+
"⪡": "\u2AA1",
|
|
752
|
+
"⩽": "\u2A7D",
|
|
753
|
+
"≲": "\u2272",
|
|
754
|
+
"𝔏": "\u{1D50F}",
|
|
755
|
+
"⋘": "\u22D8",
|
|
756
|
+
"⇚": "\u21DA",
|
|
757
|
+
"Ŀ": "\u013F",
|
|
758
|
+
"⟵": "\u27F5",
|
|
759
|
+
"⟷": "\u27F7",
|
|
760
|
+
"⟶": "\u27F6",
|
|
761
|
+
"⟸": "\u27F8",
|
|
762
|
+
"⟺": "\u27FA",
|
|
763
|
+
"⟹": "\u27F9",
|
|
764
|
+
"𝕃": "\u{1D543}",
|
|
765
|
+
"↙": "\u2199",
|
|
766
|
+
"↘": "\u2198",
|
|
767
|
+
"ℒ": "\u2112",
|
|
768
|
+
"↰": "\u21B0",
|
|
769
|
+
"Ł": "\u0141",
|
|
770
|
+
"≪": "\u226A",
|
|
771
|
+
"⤅": "\u2905",
|
|
772
|
+
"М": "\u041C",
|
|
773
|
+
" ": "\u205F",
|
|
774
|
+
"ℳ": "\u2133",
|
|
775
|
+
"𝔐": "\u{1D510}",
|
|
776
|
+
"∓": "\u2213",
|
|
777
|
+
"𝕄": "\u{1D544}",
|
|
778
|
+
"ℳ": "\u2133",
|
|
779
|
+
"Μ": "\u039C",
|
|
780
|
+
"Њ": "\u040A",
|
|
781
|
+
"Ń": "\u0143",
|
|
782
|
+
"Ň": "\u0147",
|
|
783
|
+
"Ņ": "\u0145",
|
|
784
|
+
"Н": "\u041D",
|
|
785
|
+
"​": "\u200B",
|
|
786
|
+
"​": "\u200B",
|
|
787
|
+
"​": "\u200B",
|
|
788
|
+
"​": "\u200B",
|
|
789
|
+
"≫": "\u226B",
|
|
790
|
+
"≪": "\u226A",
|
|
791
|
+
"
": `
|
|
792
|
+
`,
|
|
793
|
+
"𝔑": "\u{1D511}",
|
|
794
|
+
"⁠": "\u2060",
|
|
795
|
+
" ": "\xA0",
|
|
796
|
+
"ℕ": "\u2115",
|
|
797
|
+
"⫬": "\u2AEC",
|
|
798
|
+
"≢": "\u2262",
|
|
799
|
+
"≭": "\u226D",
|
|
800
|
+
"∦": "\u2226",
|
|
801
|
+
"∉": "\u2209",
|
|
802
|
+
"≠": "\u2260",
|
|
803
|
+
"≂̸": "\u2242\u0338",
|
|
804
|
+
"∄": "\u2204",
|
|
805
|
+
"≯": "\u226F",
|
|
806
|
+
"≱": "\u2271",
|
|
807
|
+
"≧̸": "\u2267\u0338",
|
|
808
|
+
"≫̸": "\u226B\u0338",
|
|
809
|
+
"≹": "\u2279",
|
|
810
|
+
"⩾̸": "\u2A7E\u0338",
|
|
811
|
+
"≵": "\u2275",
|
|
812
|
+
"≎̸": "\u224E\u0338",
|
|
813
|
+
"≏̸": "\u224F\u0338",
|
|
814
|
+
"⋪": "\u22EA",
|
|
815
|
+
"⧏̸": "\u29CF\u0338",
|
|
816
|
+
"⋬": "\u22EC",
|
|
817
|
+
"≮": "\u226E",
|
|
818
|
+
"≰": "\u2270",
|
|
819
|
+
"≸": "\u2278",
|
|
820
|
+
"≪̸": "\u226A\u0338",
|
|
821
|
+
"⩽̸": "\u2A7D\u0338",
|
|
822
|
+
"≴": "\u2274",
|
|
823
|
+
"⪢̸": "\u2AA2\u0338",
|
|
824
|
+
"⪡̸": "\u2AA1\u0338",
|
|
825
|
+
"⊀": "\u2280",
|
|
826
|
+
"⪯̸": "\u2AAF\u0338",
|
|
827
|
+
"⋠": "\u22E0",
|
|
828
|
+
"∌": "\u220C",
|
|
829
|
+
"⋫": "\u22EB",
|
|
830
|
+
"⧐̸": "\u29D0\u0338",
|
|
831
|
+
"⋭": "\u22ED",
|
|
832
|
+
"⊏̸": "\u228F\u0338",
|
|
833
|
+
"⋢": "\u22E2",
|
|
834
|
+
"⊐̸": "\u2290\u0338",
|
|
835
|
+
"⋣": "\u22E3",
|
|
836
|
+
"⊂⃒": "\u2282\u20D2",
|
|
837
|
+
"⊈": "\u2288",
|
|
838
|
+
"⊁": "\u2281",
|
|
839
|
+
"⪰̸": "\u2AB0\u0338",
|
|
840
|
+
"⋡": "\u22E1",
|
|
841
|
+
"≿̸": "\u227F\u0338",
|
|
842
|
+
"⊃⃒": "\u2283\u20D2",
|
|
843
|
+
"⊉": "\u2289",
|
|
844
|
+
"≁": "\u2241",
|
|
845
|
+
"≄": "\u2244",
|
|
846
|
+
"≇": "\u2247",
|
|
847
|
+
"≉": "\u2249",
|
|
848
|
+
"∤": "\u2224",
|
|
849
|
+
"𝒩": "\u{1D4A9}",
|
|
850
|
+
"Ñ": "\xD1",
|
|
851
|
+
"Ñ": "\xD1",
|
|
852
|
+
"Ν": "\u039D",
|
|
853
|
+
"Œ": "\u0152",
|
|
854
|
+
"Ó": "\xD3",
|
|
855
|
+
"Ó": "\xD3",
|
|
856
|
+
"Ô": "\xD4",
|
|
857
|
+
"Ô": "\xD4",
|
|
858
|
+
"О": "\u041E",
|
|
859
|
+
"Ő": "\u0150",
|
|
860
|
+
"𝔒": "\u{1D512}",
|
|
861
|
+
"Ò": "\xD2",
|
|
862
|
+
"Ò": "\xD2",
|
|
863
|
+
"Ō": "\u014C",
|
|
864
|
+
"Ω": "\u03A9",
|
|
865
|
+
"Ο": "\u039F",
|
|
866
|
+
"𝕆": "\u{1D546}",
|
|
867
|
+
"“": "\u201C",
|
|
868
|
+
"‘": "\u2018",
|
|
869
|
+
"⩔": "\u2A54",
|
|
870
|
+
"𝒪": "\u{1D4AA}",
|
|
871
|
+
"Ø": "\xD8",
|
|
872
|
+
"Ø": "\xD8",
|
|
873
|
+
"Õ": "\xD5",
|
|
874
|
+
"Õ": "\xD5",
|
|
875
|
+
"⨷": "\u2A37",
|
|
876
|
+
"Ö": "\xD6",
|
|
877
|
+
"Ö": "\xD6",
|
|
878
|
+
"‾": "\u203E",
|
|
879
|
+
"⏞": "\u23DE",
|
|
880
|
+
"⎴": "\u23B4",
|
|
881
|
+
"⏜": "\u23DC",
|
|
882
|
+
"∂": "\u2202",
|
|
883
|
+
"П": "\u041F",
|
|
884
|
+
"𝔓": "\u{1D513}",
|
|
885
|
+
"Φ": "\u03A6",
|
|
886
|
+
"Π": "\u03A0",
|
|
887
|
+
"±": "\xB1",
|
|
888
|
+
"ℌ": "\u210C",
|
|
889
|
+
"ℙ": "\u2119",
|
|
890
|
+
"⪻": "\u2ABB",
|
|
891
|
+
"≺": "\u227A",
|
|
892
|
+
"⪯": "\u2AAF",
|
|
893
|
+
"≼": "\u227C",
|
|
894
|
+
"≾": "\u227E",
|
|
895
|
+
"″": "\u2033",
|
|
896
|
+
"∏": "\u220F",
|
|
897
|
+
"∷": "\u2237",
|
|
898
|
+
"∝": "\u221D",
|
|
899
|
+
"𝒫": "\u{1D4AB}",
|
|
900
|
+
"Ψ": "\u03A8",
|
|
901
|
+
""": '"',
|
|
902
|
+
""": '"',
|
|
903
|
+
"𝔔": "\u{1D514}",
|
|
904
|
+
"ℚ": "\u211A",
|
|
905
|
+
"𝒬": "\u{1D4AC}",
|
|
906
|
+
"⤐": "\u2910",
|
|
907
|
+
"®": "\xAE",
|
|
908
|
+
"®": "\xAE",
|
|
909
|
+
"Ŕ": "\u0154",
|
|
910
|
+
"⟫": "\u27EB",
|
|
911
|
+
"↠": "\u21A0",
|
|
912
|
+
"⤖": "\u2916",
|
|
913
|
+
"Ř": "\u0158",
|
|
914
|
+
"Ŗ": "\u0156",
|
|
915
|
+
"Р": "\u0420",
|
|
916
|
+
"ℜ": "\u211C",
|
|
917
|
+
"∋": "\u220B",
|
|
918
|
+
"⇋": "\u21CB",
|
|
919
|
+
"⥯": "\u296F",
|
|
920
|
+
"ℜ": "\u211C",
|
|
921
|
+
"Ρ": "\u03A1",
|
|
922
|
+
"⟩": "\u27E9",
|
|
923
|
+
"→": "\u2192",
|
|
924
|
+
"⇥": "\u21E5",
|
|
925
|
+
"⇄": "\u21C4",
|
|
926
|
+
"⌉": "\u2309",
|
|
927
|
+
"⟧": "\u27E7",
|
|
928
|
+
"⥝": "\u295D",
|
|
929
|
+
"⇂": "\u21C2",
|
|
930
|
+
"⥕": "\u2955",
|
|
931
|
+
"⌋": "\u230B",
|
|
932
|
+
"⊢": "\u22A2",
|
|
933
|
+
"↦": "\u21A6",
|
|
934
|
+
"⥛": "\u295B",
|
|
935
|
+
"⊳": "\u22B3",
|
|
936
|
+
"⧐": "\u29D0",
|
|
937
|
+
"⊵": "\u22B5",
|
|
938
|
+
"⥏": "\u294F",
|
|
939
|
+
"⥜": "\u295C",
|
|
940
|
+
"↾": "\u21BE",
|
|
941
|
+
"⥔": "\u2954",
|
|
942
|
+
"⇀": "\u21C0",
|
|
943
|
+
"⥓": "\u2953",
|
|
944
|
+
"⇒": "\u21D2",
|
|
945
|
+
"ℝ": "\u211D",
|
|
946
|
+
"⥰": "\u2970",
|
|
947
|
+
"⇛": "\u21DB",
|
|
948
|
+
"ℛ": "\u211B",
|
|
949
|
+
"↱": "\u21B1",
|
|
950
|
+
"⧴": "\u29F4",
|
|
951
|
+
"Щ": "\u0429",
|
|
952
|
+
"Ш": "\u0428",
|
|
953
|
+
"Ь": "\u042C",
|
|
954
|
+
"Ś": "\u015A",
|
|
955
|
+
"⪼": "\u2ABC",
|
|
956
|
+
"Š": "\u0160",
|
|
957
|
+
"Ş": "\u015E",
|
|
958
|
+
"Ŝ": "\u015C",
|
|
959
|
+
"С": "\u0421",
|
|
960
|
+
"𝔖": "\u{1D516}",
|
|
961
|
+
"↓": "\u2193",
|
|
962
|
+
"←": "\u2190",
|
|
963
|
+
"→": "\u2192",
|
|
964
|
+
"↑": "\u2191",
|
|
965
|
+
"Σ": "\u03A3",
|
|
966
|
+
"∘": "\u2218",
|
|
967
|
+
"𝕊": "\u{1D54A}",
|
|
968
|
+
"√": "\u221A",
|
|
969
|
+
"□": "\u25A1",
|
|
970
|
+
"⊓": "\u2293",
|
|
971
|
+
"⊏": "\u228F",
|
|
972
|
+
"⊑": "\u2291",
|
|
973
|
+
"⊐": "\u2290",
|
|
974
|
+
"⊒": "\u2292",
|
|
975
|
+
"⊔": "\u2294",
|
|
976
|
+
"𝒮": "\u{1D4AE}",
|
|
977
|
+
"⋆": "\u22C6",
|
|
978
|
+
"⋐": "\u22D0",
|
|
979
|
+
"⋐": "\u22D0",
|
|
980
|
+
"⊆": "\u2286",
|
|
981
|
+
"≻": "\u227B",
|
|
982
|
+
"⪰": "\u2AB0",
|
|
983
|
+
"≽": "\u227D",
|
|
984
|
+
"≿": "\u227F",
|
|
985
|
+
"∋": "\u220B",
|
|
986
|
+
"∑": "\u2211",
|
|
987
|
+
"⋑": "\u22D1",
|
|
988
|
+
"⊃": "\u2283",
|
|
989
|
+
"⊇": "\u2287",
|
|
990
|
+
"⋑": "\u22D1",
|
|
991
|
+
"Þ": "\xDE",
|
|
992
|
+
"Þ": "\xDE",
|
|
993
|
+
"™": "\u2122",
|
|
994
|
+
"Ћ": "\u040B",
|
|
995
|
+
"Ц": "\u0426",
|
|
996
|
+
"	": " ",
|
|
997
|
+
"Τ": "\u03A4",
|
|
998
|
+
"Ť": "\u0164",
|
|
999
|
+
"Ţ": "\u0162",
|
|
1000
|
+
"Т": "\u0422",
|
|
1001
|
+
"𝔗": "\u{1D517}",
|
|
1002
|
+
"∴": "\u2234",
|
|
1003
|
+
"Θ": "\u0398",
|
|
1004
|
+
"  ": "\u205F\u200A",
|
|
1005
|
+
" ": "\u2009",
|
|
1006
|
+
"∼": "\u223C",
|
|
1007
|
+
"≃": "\u2243",
|
|
1008
|
+
"≅": "\u2245",
|
|
1009
|
+
"≈": "\u2248",
|
|
1010
|
+
"𝕋": "\u{1D54B}",
|
|
1011
|
+
"⃛": "\u20DB",
|
|
1012
|
+
"𝒯": "\u{1D4AF}",
|
|
1013
|
+
"Ŧ": "\u0166",
|
|
1014
|
+
"Ú": "\xDA",
|
|
1015
|
+
"Ú": "\xDA",
|
|
1016
|
+
"↟": "\u219F",
|
|
1017
|
+
"⥉": "\u2949",
|
|
1018
|
+
"Ў": "\u040E",
|
|
1019
|
+
"Ŭ": "\u016C",
|
|
1020
|
+
"Û": "\xDB",
|
|
1021
|
+
"Û": "\xDB",
|
|
1022
|
+
"У": "\u0423",
|
|
1023
|
+
"Ű": "\u0170",
|
|
1024
|
+
"𝔘": "\u{1D518}",
|
|
1025
|
+
"Ù": "\xD9",
|
|
1026
|
+
"Ù": "\xD9",
|
|
1027
|
+
"Ū": "\u016A",
|
|
1028
|
+
"_": "_",
|
|
1029
|
+
"⏟": "\u23DF",
|
|
1030
|
+
"⎵": "\u23B5",
|
|
1031
|
+
"⏝": "\u23DD",
|
|
1032
|
+
"⋃": "\u22C3",
|
|
1033
|
+
"⊎": "\u228E",
|
|
1034
|
+
"Ų": "\u0172",
|
|
1035
|
+
"𝕌": "\u{1D54C}",
|
|
1036
|
+
"↑": "\u2191",
|
|
1037
|
+
"⤒": "\u2912",
|
|
1038
|
+
"⇅": "\u21C5",
|
|
1039
|
+
"↕": "\u2195",
|
|
1040
|
+
"⥮": "\u296E",
|
|
1041
|
+
"⊥": "\u22A5",
|
|
1042
|
+
"↥": "\u21A5",
|
|
1043
|
+
"⇑": "\u21D1",
|
|
1044
|
+
"⇕": "\u21D5",
|
|
1045
|
+
"↖": "\u2196",
|
|
1046
|
+
"↗": "\u2197",
|
|
1047
|
+
"ϒ": "\u03D2",
|
|
1048
|
+
"Υ": "\u03A5",
|
|
1049
|
+
"Ů": "\u016E",
|
|
1050
|
+
"𝒰": "\u{1D4B0}",
|
|
1051
|
+
"Ũ": "\u0168",
|
|
1052
|
+
"Ü": "\xDC",
|
|
1053
|
+
"Ü": "\xDC",
|
|
1054
|
+
"⊫": "\u22AB",
|
|
1055
|
+
"⫫": "\u2AEB",
|
|
1056
|
+
"В": "\u0412",
|
|
1057
|
+
"⊩": "\u22A9",
|
|
1058
|
+
"⫦": "\u2AE6",
|
|
1059
|
+
"⋁": "\u22C1",
|
|
1060
|
+
"‖": "\u2016",
|
|
1061
|
+
"‖": "\u2016",
|
|
1062
|
+
"∣": "\u2223",
|
|
1063
|
+
"|": "|",
|
|
1064
|
+
"❘": "\u2758",
|
|
1065
|
+
"≀": "\u2240",
|
|
1066
|
+
" ": "\u200A",
|
|
1067
|
+
"𝔙": "\u{1D519}",
|
|
1068
|
+
"𝕍": "\u{1D54D}",
|
|
1069
|
+
"𝒱": "\u{1D4B1}",
|
|
1070
|
+
"⊪": "\u22AA",
|
|
1071
|
+
"Ŵ": "\u0174",
|
|
1072
|
+
"⋀": "\u22C0",
|
|
1073
|
+
"𝔚": "\u{1D51A}",
|
|
1074
|
+
"𝕎": "\u{1D54E}",
|
|
1075
|
+
"𝒲": "\u{1D4B2}",
|
|
1076
|
+
"𝔛": "\u{1D51B}",
|
|
1077
|
+
"Ξ": "\u039E",
|
|
1078
|
+
"𝕏": "\u{1D54F}",
|
|
1079
|
+
"𝒳": "\u{1D4B3}",
|
|
1080
|
+
"Я": "\u042F",
|
|
1081
|
+
"Ї": "\u0407",
|
|
1082
|
+
"Ю": "\u042E",
|
|
1083
|
+
"Ý": "\xDD",
|
|
1084
|
+
"Ý": "\xDD",
|
|
1085
|
+
"Ŷ": "\u0176",
|
|
1086
|
+
"Ы": "\u042B",
|
|
1087
|
+
"𝔜": "\u{1D51C}",
|
|
1088
|
+
"𝕐": "\u{1D550}",
|
|
1089
|
+
"𝒴": "\u{1D4B4}",
|
|
1090
|
+
"Ÿ": "\u0178",
|
|
1091
|
+
"Ж": "\u0416",
|
|
1092
|
+
"Ź": "\u0179",
|
|
1093
|
+
"Ž": "\u017D",
|
|
1094
|
+
"З": "\u0417",
|
|
1095
|
+
"Ż": "\u017B",
|
|
1096
|
+
"​": "\u200B",
|
|
1097
|
+
"Ζ": "\u0396",
|
|
1098
|
+
"ℨ": "\u2128",
|
|
1099
|
+
"ℤ": "\u2124",
|
|
1100
|
+
"𝒵": "\u{1D4B5}",
|
|
1101
|
+
"á": "\xE1",
|
|
1102
|
+
"á": "\xE1",
|
|
1103
|
+
"ă": "\u0103",
|
|
1104
|
+
"∾": "\u223E",
|
|
1105
|
+
"∾̳": "\u223E\u0333",
|
|
1106
|
+
"∿": "\u223F",
|
|
1107
|
+
"â": "\xE2",
|
|
1108
|
+
"â": "\xE2",
|
|
1109
|
+
"´": "\xB4",
|
|
1110
|
+
"´": "\xB4",
|
|
1111
|
+
"а": "\u0430",
|
|
1112
|
+
"æ": "\xE6",
|
|
1113
|
+
"æ": "\xE6",
|
|
1114
|
+
"⁡": "\u2061",
|
|
1115
|
+
"𝔞": "\u{1D51E}",
|
|
1116
|
+
"à": "\xE0",
|
|
1117
|
+
"à": "\xE0",
|
|
1118
|
+
"ℵ": "\u2135",
|
|
1119
|
+
"ℵ": "\u2135",
|
|
1120
|
+
"α": "\u03B1",
|
|
1121
|
+
"ā": "\u0101",
|
|
1122
|
+
"⨿": "\u2A3F",
|
|
1123
|
+
"&": "&",
|
|
1124
|
+
"&": "&",
|
|
1125
|
+
"∧": "\u2227",
|
|
1126
|
+
"⩕": "\u2A55",
|
|
1127
|
+
"⩜": "\u2A5C",
|
|
1128
|
+
"⩘": "\u2A58",
|
|
1129
|
+
"⩚": "\u2A5A",
|
|
1130
|
+
"∠": "\u2220",
|
|
1131
|
+
"⦤": "\u29A4",
|
|
1132
|
+
"∠": "\u2220",
|
|
1133
|
+
"∡": "\u2221",
|
|
1134
|
+
"⦨": "\u29A8",
|
|
1135
|
+
"⦩": "\u29A9",
|
|
1136
|
+
"⦪": "\u29AA",
|
|
1137
|
+
"⦫": "\u29AB",
|
|
1138
|
+
"⦬": "\u29AC",
|
|
1139
|
+
"⦭": "\u29AD",
|
|
1140
|
+
"⦮": "\u29AE",
|
|
1141
|
+
"⦯": "\u29AF",
|
|
1142
|
+
"∟": "\u221F",
|
|
1143
|
+
"⊾": "\u22BE",
|
|
1144
|
+
"⦝": "\u299D",
|
|
1145
|
+
"∢": "\u2222",
|
|
1146
|
+
"Å": "\xC5",
|
|
1147
|
+
"⍼": "\u237C",
|
|
1148
|
+
"ą": "\u0105",
|
|
1149
|
+
"𝕒": "\u{1D552}",
|
|
1150
|
+
"≈": "\u2248",
|
|
1151
|
+
"⩰": "\u2A70",
|
|
1152
|
+
"⩯": "\u2A6F",
|
|
1153
|
+
"≊": "\u224A",
|
|
1154
|
+
"≋": "\u224B",
|
|
1155
|
+
"'": "'",
|
|
1156
|
+
"≈": "\u2248",
|
|
1157
|
+
"≊": "\u224A",
|
|
1158
|
+
"å": "\xE5",
|
|
1159
|
+
"å": "\xE5",
|
|
1160
|
+
"𝒶": "\u{1D4B6}",
|
|
1161
|
+
"*": "*",
|
|
1162
|
+
"≈": "\u2248",
|
|
1163
|
+
"≍": "\u224D",
|
|
1164
|
+
"ã": "\xE3",
|
|
1165
|
+
"ã": "\xE3",
|
|
1166
|
+
"ä": "\xE4",
|
|
1167
|
+
"ä": "\xE4",
|
|
1168
|
+
"∳": "\u2233",
|
|
1169
|
+
"⨑": "\u2A11",
|
|
1170
|
+
"⫭": "\u2AED",
|
|
1171
|
+
"≌": "\u224C",
|
|
1172
|
+
"϶": "\u03F6",
|
|
1173
|
+
"‵": "\u2035",
|
|
1174
|
+
"∽": "\u223D",
|
|
1175
|
+
"⋍": "\u22CD",
|
|
1176
|
+
"⊽": "\u22BD",
|
|
1177
|
+
"⌅": "\u2305",
|
|
1178
|
+
"⌅": "\u2305",
|
|
1179
|
+
"⎵": "\u23B5",
|
|
1180
|
+
"⎶": "\u23B6",
|
|
1181
|
+
"≌": "\u224C",
|
|
1182
|
+
"б": "\u0431",
|
|
1183
|
+
"„": "\u201E",
|
|
1184
|
+
"∵": "\u2235",
|
|
1185
|
+
"∵": "\u2235",
|
|
1186
|
+
"⦰": "\u29B0",
|
|
1187
|
+
"϶": "\u03F6",
|
|
1188
|
+
"ℬ": "\u212C",
|
|
1189
|
+
"β": "\u03B2",
|
|
1190
|
+
"ℶ": "\u2136",
|
|
1191
|
+
"≬": "\u226C",
|
|
1192
|
+
"𝔟": "\u{1D51F}",
|
|
1193
|
+
"⋂": "\u22C2",
|
|
1194
|
+
"◯": "\u25EF",
|
|
1195
|
+
"⋃": "\u22C3",
|
|
1196
|
+
"⨀": "\u2A00",
|
|
1197
|
+
"⨁": "\u2A01",
|
|
1198
|
+
"⨂": "\u2A02",
|
|
1199
|
+
"⨆": "\u2A06",
|
|
1200
|
+
"★": "\u2605",
|
|
1201
|
+
"▽": "\u25BD",
|
|
1202
|
+
"△": "\u25B3",
|
|
1203
|
+
"⨄": "\u2A04",
|
|
1204
|
+
"⋁": "\u22C1",
|
|
1205
|
+
"⋀": "\u22C0",
|
|
1206
|
+
"⤍": "\u290D",
|
|
1207
|
+
"⧫": "\u29EB",
|
|
1208
|
+
"▪": "\u25AA",
|
|
1209
|
+
"▴": "\u25B4",
|
|
1210
|
+
"▾": "\u25BE",
|
|
1211
|
+
"◂": "\u25C2",
|
|
1212
|
+
"▸": "\u25B8",
|
|
1213
|
+
"␣": "\u2423",
|
|
1214
|
+
"▒": "\u2592",
|
|
1215
|
+
"░": "\u2591",
|
|
1216
|
+
"▓": "\u2593",
|
|
1217
|
+
"█": "\u2588",
|
|
1218
|
+
"=⃥": "=\u20E5",
|
|
1219
|
+
"≡⃥": "\u2261\u20E5",
|
|
1220
|
+
"⌐": "\u2310",
|
|
1221
|
+
"𝕓": "\u{1D553}",
|
|
1222
|
+
"⊥": "\u22A5",
|
|
1223
|
+
"⊥": "\u22A5",
|
|
1224
|
+
"⋈": "\u22C8",
|
|
1225
|
+
"╗": "\u2557",
|
|
1226
|
+
"╔": "\u2554",
|
|
1227
|
+
"╖": "\u2556",
|
|
1228
|
+
"╓": "\u2553",
|
|
1229
|
+
"═": "\u2550",
|
|
1230
|
+
"╦": "\u2566",
|
|
1231
|
+
"╩": "\u2569",
|
|
1232
|
+
"╤": "\u2564",
|
|
1233
|
+
"╧": "\u2567",
|
|
1234
|
+
"╝": "\u255D",
|
|
1235
|
+
"╚": "\u255A",
|
|
1236
|
+
"╜": "\u255C",
|
|
1237
|
+
"╙": "\u2559",
|
|
1238
|
+
"║": "\u2551",
|
|
1239
|
+
"╬": "\u256C",
|
|
1240
|
+
"╣": "\u2563",
|
|
1241
|
+
"╠": "\u2560",
|
|
1242
|
+
"╫": "\u256B",
|
|
1243
|
+
"╢": "\u2562",
|
|
1244
|
+
"╟": "\u255F",
|
|
1245
|
+
"⧉": "\u29C9",
|
|
1246
|
+
"╕": "\u2555",
|
|
1247
|
+
"╒": "\u2552",
|
|
1248
|
+
"┐": "\u2510",
|
|
1249
|
+
"┌": "\u250C",
|
|
1250
|
+
"─": "\u2500",
|
|
1251
|
+
"╥": "\u2565",
|
|
1252
|
+
"╨": "\u2568",
|
|
1253
|
+
"┬": "\u252C",
|
|
1254
|
+
"┴": "\u2534",
|
|
1255
|
+
"⊟": "\u229F",
|
|
1256
|
+
"⊞": "\u229E",
|
|
1257
|
+
"⊠": "\u22A0",
|
|
1258
|
+
"╛": "\u255B",
|
|
1259
|
+
"╘": "\u2558",
|
|
1260
|
+
"┘": "\u2518",
|
|
1261
|
+
"└": "\u2514",
|
|
1262
|
+
"│": "\u2502",
|
|
1263
|
+
"╪": "\u256A",
|
|
1264
|
+
"╡": "\u2561",
|
|
1265
|
+
"╞": "\u255E",
|
|
1266
|
+
"┼": "\u253C",
|
|
1267
|
+
"┤": "\u2524",
|
|
1268
|
+
"├": "\u251C",
|
|
1269
|
+
"‵": "\u2035",
|
|
1270
|
+
"˘": "\u02D8",
|
|
1271
|
+
"¦": "\xA6",
|
|
1272
|
+
"¦": "\xA6",
|
|
1273
|
+
"𝒷": "\u{1D4B7}",
|
|
1274
|
+
"⁏": "\u204F",
|
|
1275
|
+
"∽": "\u223D",
|
|
1276
|
+
"⋍": "\u22CD",
|
|
1277
|
+
"\": "\\",
|
|
1278
|
+
"⧅": "\u29C5",
|
|
1279
|
+
"⟈": "\u27C8",
|
|
1280
|
+
"•": "\u2022",
|
|
1281
|
+
"•": "\u2022",
|
|
1282
|
+
"≎": "\u224E",
|
|
1283
|
+
"⪮": "\u2AAE",
|
|
1284
|
+
"≏": "\u224F",
|
|
1285
|
+
"≏": "\u224F",
|
|
1286
|
+
"ć": "\u0107",
|
|
1287
|
+
"∩": "\u2229",
|
|
1288
|
+
"⩄": "\u2A44",
|
|
1289
|
+
"⩉": "\u2A49",
|
|
1290
|
+
"⩋": "\u2A4B",
|
|
1291
|
+
"⩇": "\u2A47",
|
|
1292
|
+
"⩀": "\u2A40",
|
|
1293
|
+
"∩︀": "\u2229\uFE00",
|
|
1294
|
+
"⁁": "\u2041",
|
|
1295
|
+
"ˇ": "\u02C7",
|
|
1296
|
+
"⩍": "\u2A4D",
|
|
1297
|
+
"č": "\u010D",
|
|
1298
|
+
"ç": "\xE7",
|
|
1299
|
+
"ç": "\xE7",
|
|
1300
|
+
"ĉ": "\u0109",
|
|
1301
|
+
"⩌": "\u2A4C",
|
|
1302
|
+
"⩐": "\u2A50",
|
|
1303
|
+
"ċ": "\u010B",
|
|
1304
|
+
"¸": "\xB8",
|
|
1305
|
+
"¸": "\xB8",
|
|
1306
|
+
"⦲": "\u29B2",
|
|
1307
|
+
"¢": "\xA2",
|
|
1308
|
+
"¢": "\xA2",
|
|
1309
|
+
"·": "\xB7",
|
|
1310
|
+
"𝔠": "\u{1D520}",
|
|
1311
|
+
"ч": "\u0447",
|
|
1312
|
+
"✓": "\u2713",
|
|
1313
|
+
"✓": "\u2713",
|
|
1314
|
+
"χ": "\u03C7",
|
|
1315
|
+
"○": "\u25CB",
|
|
1316
|
+
"⧃": "\u29C3",
|
|
1317
|
+
"ˆ": "\u02C6",
|
|
1318
|
+
"≗": "\u2257",
|
|
1319
|
+
"↺": "\u21BA",
|
|
1320
|
+
"↻": "\u21BB",
|
|
1321
|
+
"®": "\xAE",
|
|
1322
|
+
"Ⓢ": "\u24C8",
|
|
1323
|
+
"⊛": "\u229B",
|
|
1324
|
+
"⊚": "\u229A",
|
|
1325
|
+
"⊝": "\u229D",
|
|
1326
|
+
"≗": "\u2257",
|
|
1327
|
+
"⨐": "\u2A10",
|
|
1328
|
+
"⫯": "\u2AEF",
|
|
1329
|
+
"⧂": "\u29C2",
|
|
1330
|
+
"♣": "\u2663",
|
|
1331
|
+
"♣": "\u2663",
|
|
1332
|
+
":": ":",
|
|
1333
|
+
"≔": "\u2254",
|
|
1334
|
+
"≔": "\u2254",
|
|
1335
|
+
",": ",",
|
|
1336
|
+
"@": "@",
|
|
1337
|
+
"∁": "\u2201",
|
|
1338
|
+
"∘": "\u2218",
|
|
1339
|
+
"∁": "\u2201",
|
|
1340
|
+
"ℂ": "\u2102",
|
|
1341
|
+
"≅": "\u2245",
|
|
1342
|
+
"⩭": "\u2A6D",
|
|
1343
|
+
"∮": "\u222E",
|
|
1344
|
+
"𝕔": "\u{1D554}",
|
|
1345
|
+
"∐": "\u2210",
|
|
1346
|
+
"©": "\xA9",
|
|
1347
|
+
"©": "\xA9",
|
|
1348
|
+
"℗": "\u2117",
|
|
1349
|
+
"↵": "\u21B5",
|
|
1350
|
+
"✗": "\u2717",
|
|
1351
|
+
"𝒸": "\u{1D4B8}",
|
|
1352
|
+
"⫏": "\u2ACF",
|
|
1353
|
+
"⫑": "\u2AD1",
|
|
1354
|
+
"⫐": "\u2AD0",
|
|
1355
|
+
"⫒": "\u2AD2",
|
|
1356
|
+
"⋯": "\u22EF",
|
|
1357
|
+
"⤸": "\u2938",
|
|
1358
|
+
"⤵": "\u2935",
|
|
1359
|
+
"⋞": "\u22DE",
|
|
1360
|
+
"⋟": "\u22DF",
|
|
1361
|
+
"↶": "\u21B6",
|
|
1362
|
+
"⤽": "\u293D",
|
|
1363
|
+
"∪": "\u222A",
|
|
1364
|
+
"⩈": "\u2A48",
|
|
1365
|
+
"⩆": "\u2A46",
|
|
1366
|
+
"⩊": "\u2A4A",
|
|
1367
|
+
"⊍": "\u228D",
|
|
1368
|
+
"⩅": "\u2A45",
|
|
1369
|
+
"∪︀": "\u222A\uFE00",
|
|
1370
|
+
"↷": "\u21B7",
|
|
1371
|
+
"⤼": "\u293C",
|
|
1372
|
+
"⋞": "\u22DE",
|
|
1373
|
+
"⋟": "\u22DF",
|
|
1374
|
+
"⋎": "\u22CE",
|
|
1375
|
+
"⋏": "\u22CF",
|
|
1376
|
+
"¤": "\xA4",
|
|
1377
|
+
"¤": "\xA4",
|
|
1378
|
+
"↶": "\u21B6",
|
|
1379
|
+
"↷": "\u21B7",
|
|
1380
|
+
"⋎": "\u22CE",
|
|
1381
|
+
"⋏": "\u22CF",
|
|
1382
|
+
"∲": "\u2232",
|
|
1383
|
+
"∱": "\u2231",
|
|
1384
|
+
"⌭": "\u232D",
|
|
1385
|
+
"⇓": "\u21D3",
|
|
1386
|
+
"⥥": "\u2965",
|
|
1387
|
+
"†": "\u2020",
|
|
1388
|
+
"ℸ": "\u2138",
|
|
1389
|
+
"↓": "\u2193",
|
|
1390
|
+
"‐": "\u2010",
|
|
1391
|
+
"⊣": "\u22A3",
|
|
1392
|
+
"⤏": "\u290F",
|
|
1393
|
+
"˝": "\u02DD",
|
|
1394
|
+
"ď": "\u010F",
|
|
1395
|
+
"д": "\u0434",
|
|
1396
|
+
"ⅆ": "\u2146",
|
|
1397
|
+
"‡": "\u2021",
|
|
1398
|
+
"⇊": "\u21CA",
|
|
1399
|
+
"⩷": "\u2A77",
|
|
1400
|
+
"°": "\xB0",
|
|
1401
|
+
"°": "\xB0",
|
|
1402
|
+
"δ": "\u03B4",
|
|
1403
|
+
"⦱": "\u29B1",
|
|
1404
|
+
"⥿": "\u297F",
|
|
1405
|
+
"𝔡": "\u{1D521}",
|
|
1406
|
+
"⇃": "\u21C3",
|
|
1407
|
+
"⇂": "\u21C2",
|
|
1408
|
+
"⋄": "\u22C4",
|
|
1409
|
+
"⋄": "\u22C4",
|
|
1410
|
+
"♦": "\u2666",
|
|
1411
|
+
"♦": "\u2666",
|
|
1412
|
+
"¨": "\xA8",
|
|
1413
|
+
"ϝ": "\u03DD",
|
|
1414
|
+
"⋲": "\u22F2",
|
|
1415
|
+
"÷": "\xF7",
|
|
1416
|
+
"÷": "\xF7",
|
|
1417
|
+
"÷": "\xF7",
|
|
1418
|
+
"⋇": "\u22C7",
|
|
1419
|
+
"⋇": "\u22C7",
|
|
1420
|
+
"ђ": "\u0452",
|
|
1421
|
+
"⌞": "\u231E",
|
|
1422
|
+
"⌍": "\u230D",
|
|
1423
|
+
"$": "$",
|
|
1424
|
+
"𝕕": "\u{1D555}",
|
|
1425
|
+
"˙": "\u02D9",
|
|
1426
|
+
"≐": "\u2250",
|
|
1427
|
+
"≑": "\u2251",
|
|
1428
|
+
"∸": "\u2238",
|
|
1429
|
+
"∔": "\u2214",
|
|
1430
|
+
"⊡": "\u22A1",
|
|
1431
|
+
"⌆": "\u2306",
|
|
1432
|
+
"↓": "\u2193",
|
|
1433
|
+
"⇊": "\u21CA",
|
|
1434
|
+
"⇃": "\u21C3",
|
|
1435
|
+
"⇂": "\u21C2",
|
|
1436
|
+
"⤐": "\u2910",
|
|
1437
|
+
"⌟": "\u231F",
|
|
1438
|
+
"⌌": "\u230C",
|
|
1439
|
+
"𝒹": "\u{1D4B9}",
|
|
1440
|
+
"ѕ": "\u0455",
|
|
1441
|
+
"⧶": "\u29F6",
|
|
1442
|
+
"đ": "\u0111",
|
|
1443
|
+
"⋱": "\u22F1",
|
|
1444
|
+
"▿": "\u25BF",
|
|
1445
|
+
"▾": "\u25BE",
|
|
1446
|
+
"⇵": "\u21F5",
|
|
1447
|
+
"⥯": "\u296F",
|
|
1448
|
+
"⦦": "\u29A6",
|
|
1449
|
+
"џ": "\u045F",
|
|
1450
|
+
"⟿": "\u27FF",
|
|
1451
|
+
"⩷": "\u2A77",
|
|
1452
|
+
"≑": "\u2251",
|
|
1453
|
+
"é": "\xE9",
|
|
1454
|
+
"é": "\xE9",
|
|
1455
|
+
"⩮": "\u2A6E",
|
|
1456
|
+
"ě": "\u011B",
|
|
1457
|
+
"≖": "\u2256",
|
|
1458
|
+
"ê": "\xEA",
|
|
1459
|
+
"ê": "\xEA",
|
|
1460
|
+
"≕": "\u2255",
|
|
1461
|
+
"э": "\u044D",
|
|
1462
|
+
"ė": "\u0117",
|
|
1463
|
+
"ⅇ": "\u2147",
|
|
1464
|
+
"≒": "\u2252",
|
|
1465
|
+
"𝔢": "\u{1D522}",
|
|
1466
|
+
"⪚": "\u2A9A",
|
|
1467
|
+
"è": "\xE8",
|
|
1468
|
+
"è": "\xE8",
|
|
1469
|
+
"⪖": "\u2A96",
|
|
1470
|
+
"⪘": "\u2A98",
|
|
1471
|
+
"⪙": "\u2A99",
|
|
1472
|
+
"⏧": "\u23E7",
|
|
1473
|
+
"ℓ": "\u2113",
|
|
1474
|
+
"⪕": "\u2A95",
|
|
1475
|
+
"⪗": "\u2A97",
|
|
1476
|
+
"ē": "\u0113",
|
|
1477
|
+
"∅": "\u2205",
|
|
1478
|
+
"∅": "\u2205",
|
|
1479
|
+
"∅": "\u2205",
|
|
1480
|
+
" ": "\u2004",
|
|
1481
|
+
" ": "\u2005",
|
|
1482
|
+
" ": "\u2003",
|
|
1483
|
+
"ŋ": "\u014B",
|
|
1484
|
+
" ": "\u2002",
|
|
1485
|
+
"ę": "\u0119",
|
|
1486
|
+
"𝕖": "\u{1D556}",
|
|
1487
|
+
"⋕": "\u22D5",
|
|
1488
|
+
"⧣": "\u29E3",
|
|
1489
|
+
"⩱": "\u2A71",
|
|
1490
|
+
"ε": "\u03B5",
|
|
1491
|
+
"ε": "\u03B5",
|
|
1492
|
+
"ϵ": "\u03F5",
|
|
1493
|
+
"≖": "\u2256",
|
|
1494
|
+
"≕": "\u2255",
|
|
1495
|
+
"≂": "\u2242",
|
|
1496
|
+
"⪖": "\u2A96",
|
|
1497
|
+
"⪕": "\u2A95",
|
|
1498
|
+
"=": "=",
|
|
1499
|
+
"≟": "\u225F",
|
|
1500
|
+
"≡": "\u2261",
|
|
1501
|
+
"⩸": "\u2A78",
|
|
1502
|
+
"⧥": "\u29E5",
|
|
1503
|
+
"≓": "\u2253",
|
|
1504
|
+
"⥱": "\u2971",
|
|
1505
|
+
"ℯ": "\u212F",
|
|
1506
|
+
"≐": "\u2250",
|
|
1507
|
+
"≂": "\u2242",
|
|
1508
|
+
"η": "\u03B7",
|
|
1509
|
+
"ð": "\xF0",
|
|
1510
|
+
"ð": "\xF0",
|
|
1511
|
+
"ë": "\xEB",
|
|
1512
|
+
"ë": "\xEB",
|
|
1513
|
+
"€": "\u20AC",
|
|
1514
|
+
"!": "!",
|
|
1515
|
+
"∃": "\u2203",
|
|
1516
|
+
"ℰ": "\u2130",
|
|
1517
|
+
"ⅇ": "\u2147",
|
|
1518
|
+
"≒": "\u2252",
|
|
1519
|
+
"ф": "\u0444",
|
|
1520
|
+
"♀": "\u2640",
|
|
1521
|
+
"ffi": "\uFB03",
|
|
1522
|
+
"ff": "\uFB00",
|
|
1523
|
+
"ffl": "\uFB04",
|
|
1524
|
+
"𝔣": "\u{1D523}",
|
|
1525
|
+
"fi": "\uFB01",
|
|
1526
|
+
"fj": "fj",
|
|
1527
|
+
"♭": "\u266D",
|
|
1528
|
+
"fl": "\uFB02",
|
|
1529
|
+
"▱": "\u25B1",
|
|
1530
|
+
"ƒ": "\u0192",
|
|
1531
|
+
"𝕗": "\u{1D557}",
|
|
1532
|
+
"∀": "\u2200",
|
|
1533
|
+
"⋔": "\u22D4",
|
|
1534
|
+
"⫙": "\u2AD9",
|
|
1535
|
+
"⨍": "\u2A0D",
|
|
1536
|
+
"½": "\xBD",
|
|
1537
|
+
"½": "\xBD",
|
|
1538
|
+
"⅓": "\u2153",
|
|
1539
|
+
"¼": "\xBC",
|
|
1540
|
+
"¼": "\xBC",
|
|
1541
|
+
"⅕": "\u2155",
|
|
1542
|
+
"⅙": "\u2159",
|
|
1543
|
+
"⅛": "\u215B",
|
|
1544
|
+
"⅔": "\u2154",
|
|
1545
|
+
"⅖": "\u2156",
|
|
1546
|
+
"¾": "\xBE",
|
|
1547
|
+
"¾": "\xBE",
|
|
1548
|
+
"⅗": "\u2157",
|
|
1549
|
+
"⅜": "\u215C",
|
|
1550
|
+
"⅘": "\u2158",
|
|
1551
|
+
"⅚": "\u215A",
|
|
1552
|
+
"⅝": "\u215D",
|
|
1553
|
+
"⅞": "\u215E",
|
|
1554
|
+
"⁄": "\u2044",
|
|
1555
|
+
"⌢": "\u2322",
|
|
1556
|
+
"𝒻": "\u{1D4BB}",
|
|
1557
|
+
"≧": "\u2267",
|
|
1558
|
+
"⪌": "\u2A8C",
|
|
1559
|
+
"ǵ": "\u01F5",
|
|
1560
|
+
"γ": "\u03B3",
|
|
1561
|
+
"ϝ": "\u03DD",
|
|
1562
|
+
"⪆": "\u2A86",
|
|
1563
|
+
"ğ": "\u011F",
|
|
1564
|
+
"ĝ": "\u011D",
|
|
1565
|
+
"г": "\u0433",
|
|
1566
|
+
"ġ": "\u0121",
|
|
1567
|
+
"≥": "\u2265",
|
|
1568
|
+
"⋛": "\u22DB",
|
|
1569
|
+
"≥": "\u2265",
|
|
1570
|
+
"≧": "\u2267",
|
|
1571
|
+
"⩾": "\u2A7E",
|
|
1572
|
+
"⩾": "\u2A7E",
|
|
1573
|
+
"⪩": "\u2AA9",
|
|
1574
|
+
"⪀": "\u2A80",
|
|
1575
|
+
"⪂": "\u2A82",
|
|
1576
|
+
"⪄": "\u2A84",
|
|
1577
|
+
"⋛︀": "\u22DB\uFE00",
|
|
1578
|
+
"⪔": "\u2A94",
|
|
1579
|
+
"𝔤": "\u{1D524}",
|
|
1580
|
+
"≫": "\u226B",
|
|
1581
|
+
"⋙": "\u22D9",
|
|
1582
|
+
"ℷ": "\u2137",
|
|
1583
|
+
"ѓ": "\u0453",
|
|
1584
|
+
"≷": "\u2277",
|
|
1585
|
+
"⪒": "\u2A92",
|
|
1586
|
+
"⪥": "\u2AA5",
|
|
1587
|
+
"⪤": "\u2AA4",
|
|
1588
|
+
"≩": "\u2269",
|
|
1589
|
+
"⪊": "\u2A8A",
|
|
1590
|
+
"⪊": "\u2A8A",
|
|
1591
|
+
"⪈": "\u2A88",
|
|
1592
|
+
"⪈": "\u2A88",
|
|
1593
|
+
"≩": "\u2269",
|
|
1594
|
+
"⋧": "\u22E7",
|
|
1595
|
+
"𝕘": "\u{1D558}",
|
|
1596
|
+
"`": "`",
|
|
1597
|
+
"ℊ": "\u210A",
|
|
1598
|
+
"≳": "\u2273",
|
|
1599
|
+
"⪎": "\u2A8E",
|
|
1600
|
+
"⪐": "\u2A90",
|
|
1601
|
+
">": ">",
|
|
1602
|
+
">": ">",
|
|
1603
|
+
"⪧": "\u2AA7",
|
|
1604
|
+
"⩺": "\u2A7A",
|
|
1605
|
+
"⋗": "\u22D7",
|
|
1606
|
+
"⦕": "\u2995",
|
|
1607
|
+
"⩼": "\u2A7C",
|
|
1608
|
+
"⪆": "\u2A86",
|
|
1609
|
+
"⥸": "\u2978",
|
|
1610
|
+
"⋗": "\u22D7",
|
|
1611
|
+
"⋛": "\u22DB",
|
|
1612
|
+
"⪌": "\u2A8C",
|
|
1613
|
+
"≷": "\u2277",
|
|
1614
|
+
"≳": "\u2273",
|
|
1615
|
+
"≩︀": "\u2269\uFE00",
|
|
1616
|
+
"≩︀": "\u2269\uFE00",
|
|
1617
|
+
"⇔": "\u21D4",
|
|
1618
|
+
" ": "\u200A",
|
|
1619
|
+
"½": "\xBD",
|
|
1620
|
+
"ℋ": "\u210B",
|
|
1621
|
+
"ъ": "\u044A",
|
|
1622
|
+
"↔": "\u2194",
|
|
1623
|
+
"⥈": "\u2948",
|
|
1624
|
+
"↭": "\u21AD",
|
|
1625
|
+
"ℏ": "\u210F",
|
|
1626
|
+
"ĥ": "\u0125",
|
|
1627
|
+
"♥": "\u2665",
|
|
1628
|
+
"♥": "\u2665",
|
|
1629
|
+
"…": "\u2026",
|
|
1630
|
+
"⊹": "\u22B9",
|
|
1631
|
+
"𝔥": "\u{1D525}",
|
|
1632
|
+
"⤥": "\u2925",
|
|
1633
|
+
"⤦": "\u2926",
|
|
1634
|
+
"⇿": "\u21FF",
|
|
1635
|
+
"∻": "\u223B",
|
|
1636
|
+
"↩": "\u21A9",
|
|
1637
|
+
"↪": "\u21AA",
|
|
1638
|
+
"𝕙": "\u{1D559}",
|
|
1639
|
+
"―": "\u2015",
|
|
1640
|
+
"𝒽": "\u{1D4BD}",
|
|
1641
|
+
"ℏ": "\u210F",
|
|
1642
|
+
"ħ": "\u0127",
|
|
1643
|
+
"⁃": "\u2043",
|
|
1644
|
+
"‐": "\u2010",
|
|
1645
|
+
"í": "\xED",
|
|
1646
|
+
"í": "\xED",
|
|
1647
|
+
"⁣": "\u2063",
|
|
1648
|
+
"î": "\xEE",
|
|
1649
|
+
"î": "\xEE",
|
|
1650
|
+
"и": "\u0438",
|
|
1651
|
+
"е": "\u0435",
|
|
1652
|
+
"¡": "\xA1",
|
|
1653
|
+
"¡": "\xA1",
|
|
1654
|
+
"⇔": "\u21D4",
|
|
1655
|
+
"𝔦": "\u{1D526}",
|
|
1656
|
+
"ì": "\xEC",
|
|
1657
|
+
"ì": "\xEC",
|
|
1658
|
+
"ⅈ": "\u2148",
|
|
1659
|
+
"⨌": "\u2A0C",
|
|
1660
|
+
"∭": "\u222D",
|
|
1661
|
+
"⧜": "\u29DC",
|
|
1662
|
+
"℩": "\u2129",
|
|
1663
|
+
"ij": "\u0133",
|
|
1664
|
+
"ī": "\u012B",
|
|
1665
|
+
"ℑ": "\u2111",
|
|
1666
|
+
"ℐ": "\u2110",
|
|
1667
|
+
"ℑ": "\u2111",
|
|
1668
|
+
"ı": "\u0131",
|
|
1669
|
+
"⊷": "\u22B7",
|
|
1670
|
+
"Ƶ": "\u01B5",
|
|
1671
|
+
"∈": "\u2208",
|
|
1672
|
+
"℅": "\u2105",
|
|
1673
|
+
"∞": "\u221E",
|
|
1674
|
+
"⧝": "\u29DD",
|
|
1675
|
+
"ı": "\u0131",
|
|
1676
|
+
"∫": "\u222B",
|
|
1677
|
+
"⊺": "\u22BA",
|
|
1678
|
+
"ℤ": "\u2124",
|
|
1679
|
+
"⊺": "\u22BA",
|
|
1680
|
+
"⨗": "\u2A17",
|
|
1681
|
+
"⨼": "\u2A3C",
|
|
1682
|
+
"ё": "\u0451",
|
|
1683
|
+
"į": "\u012F",
|
|
1684
|
+
"𝕚": "\u{1D55A}",
|
|
1685
|
+
"ι": "\u03B9",
|
|
1686
|
+
"⨼": "\u2A3C",
|
|
1687
|
+
"¿": "\xBF",
|
|
1688
|
+
"¿": "\xBF",
|
|
1689
|
+
"𝒾": "\u{1D4BE}",
|
|
1690
|
+
"∈": "\u2208",
|
|
1691
|
+
"⋹": "\u22F9",
|
|
1692
|
+
"⋵": "\u22F5",
|
|
1693
|
+
"⋴": "\u22F4",
|
|
1694
|
+
"⋳": "\u22F3",
|
|
1695
|
+
"∈": "\u2208",
|
|
1696
|
+
"⁢": "\u2062",
|
|
1697
|
+
"ĩ": "\u0129",
|
|
1698
|
+
"і": "\u0456",
|
|
1699
|
+
"ï": "\xEF",
|
|
1700
|
+
"ï": "\xEF",
|
|
1701
|
+
"ĵ": "\u0135",
|
|
1702
|
+
"й": "\u0439",
|
|
1703
|
+
"𝔧": "\u{1D527}",
|
|
1704
|
+
"ȷ": "\u0237",
|
|
1705
|
+
"𝕛": "\u{1D55B}",
|
|
1706
|
+
"𝒿": "\u{1D4BF}",
|
|
1707
|
+
"ј": "\u0458",
|
|
1708
|
+
"є": "\u0454",
|
|
1709
|
+
"κ": "\u03BA",
|
|
1710
|
+
"ϰ": "\u03F0",
|
|
1711
|
+
"ķ": "\u0137",
|
|
1712
|
+
"к": "\u043A",
|
|
1713
|
+
"𝔨": "\u{1D528}",
|
|
1714
|
+
"ĸ": "\u0138",
|
|
1715
|
+
"х": "\u0445",
|
|
1716
|
+
"ќ": "\u045C",
|
|
1717
|
+
"𝕜": "\u{1D55C}",
|
|
1718
|
+
"𝓀": "\u{1D4C0}",
|
|
1719
|
+
"⇚": "\u21DA",
|
|
1720
|
+
"⇐": "\u21D0",
|
|
1721
|
+
"⤛": "\u291B",
|
|
1722
|
+
"⤎": "\u290E",
|
|
1723
|
+
"≦": "\u2266",
|
|
1724
|
+
"⪋": "\u2A8B",
|
|
1725
|
+
"⥢": "\u2962",
|
|
1726
|
+
"ĺ": "\u013A",
|
|
1727
|
+
"⦴": "\u29B4",
|
|
1728
|
+
"ℒ": "\u2112",
|
|
1729
|
+
"λ": "\u03BB",
|
|
1730
|
+
"⟨": "\u27E8",
|
|
1731
|
+
"⦑": "\u2991",
|
|
1732
|
+
"⟨": "\u27E8",
|
|
1733
|
+
"⪅": "\u2A85",
|
|
1734
|
+
"«": "\xAB",
|
|
1735
|
+
"«": "\xAB",
|
|
1736
|
+
"←": "\u2190",
|
|
1737
|
+
"⇤": "\u21E4",
|
|
1738
|
+
"⤟": "\u291F",
|
|
1739
|
+
"⤝": "\u291D",
|
|
1740
|
+
"↩": "\u21A9",
|
|
1741
|
+
"↫": "\u21AB",
|
|
1742
|
+
"⤹": "\u2939",
|
|
1743
|
+
"⥳": "\u2973",
|
|
1744
|
+
"↢": "\u21A2",
|
|
1745
|
+
"⪫": "\u2AAB",
|
|
1746
|
+
"⤙": "\u2919",
|
|
1747
|
+
"⪭": "\u2AAD",
|
|
1748
|
+
"⪭︀": "\u2AAD\uFE00",
|
|
1749
|
+
"⤌": "\u290C",
|
|
1750
|
+
"❲": "\u2772",
|
|
1751
|
+
"{": "{",
|
|
1752
|
+
"[": "[",
|
|
1753
|
+
"⦋": "\u298B",
|
|
1754
|
+
"⦏": "\u298F",
|
|
1755
|
+
"⦍": "\u298D",
|
|
1756
|
+
"ľ": "\u013E",
|
|
1757
|
+
"ļ": "\u013C",
|
|
1758
|
+
"⌈": "\u2308",
|
|
1759
|
+
"{": "{",
|
|
1760
|
+
"л": "\u043B",
|
|
1761
|
+
"⤶": "\u2936",
|
|
1762
|
+
"“": "\u201C",
|
|
1763
|
+
"„": "\u201E",
|
|
1764
|
+
"⥧": "\u2967",
|
|
1765
|
+
"⥋": "\u294B",
|
|
1766
|
+
"↲": "\u21B2",
|
|
1767
|
+
"≤": "\u2264",
|
|
1768
|
+
"←": "\u2190",
|
|
1769
|
+
"↢": "\u21A2",
|
|
1770
|
+
"↽": "\u21BD",
|
|
1771
|
+
"↼": "\u21BC",
|
|
1772
|
+
"⇇": "\u21C7",
|
|
1773
|
+
"↔": "\u2194",
|
|
1774
|
+
"⇆": "\u21C6",
|
|
1775
|
+
"⇋": "\u21CB",
|
|
1776
|
+
"↭": "\u21AD",
|
|
1777
|
+
"⋋": "\u22CB",
|
|
1778
|
+
"⋚": "\u22DA",
|
|
1779
|
+
"≤": "\u2264",
|
|
1780
|
+
"≦": "\u2266",
|
|
1781
|
+
"⩽": "\u2A7D",
|
|
1782
|
+
"⩽": "\u2A7D",
|
|
1783
|
+
"⪨": "\u2AA8",
|
|
1784
|
+
"⩿": "\u2A7F",
|
|
1785
|
+
"⪁": "\u2A81",
|
|
1786
|
+
"⪃": "\u2A83",
|
|
1787
|
+
"⋚︀": "\u22DA\uFE00",
|
|
1788
|
+
"⪓": "\u2A93",
|
|
1789
|
+
"⪅": "\u2A85",
|
|
1790
|
+
"⋖": "\u22D6",
|
|
1791
|
+
"⋚": "\u22DA",
|
|
1792
|
+
"⪋": "\u2A8B",
|
|
1793
|
+
"≶": "\u2276",
|
|
1794
|
+
"≲": "\u2272",
|
|
1795
|
+
"⥼": "\u297C",
|
|
1796
|
+
"⌊": "\u230A",
|
|
1797
|
+
"𝔩": "\u{1D529}",
|
|
1798
|
+
"≶": "\u2276",
|
|
1799
|
+
"⪑": "\u2A91",
|
|
1800
|
+
"↽": "\u21BD",
|
|
1801
|
+
"↼": "\u21BC",
|
|
1802
|
+
"⥪": "\u296A",
|
|
1803
|
+
"▄": "\u2584",
|
|
1804
|
+
"љ": "\u0459",
|
|
1805
|
+
"≪": "\u226A",
|
|
1806
|
+
"⇇": "\u21C7",
|
|
1807
|
+
"⌞": "\u231E",
|
|
1808
|
+
"⥫": "\u296B",
|
|
1809
|
+
"◺": "\u25FA",
|
|
1810
|
+
"ŀ": "\u0140",
|
|
1811
|
+
"⎰": "\u23B0",
|
|
1812
|
+
"⎰": "\u23B0",
|
|
1813
|
+
"≨": "\u2268",
|
|
1814
|
+
"⪉": "\u2A89",
|
|
1815
|
+
"⪉": "\u2A89",
|
|
1816
|
+
"⪇": "\u2A87",
|
|
1817
|
+
"⪇": "\u2A87",
|
|
1818
|
+
"≨": "\u2268",
|
|
1819
|
+
"⋦": "\u22E6",
|
|
1820
|
+
"⟬": "\u27EC",
|
|
1821
|
+
"⇽": "\u21FD",
|
|
1822
|
+
"⟦": "\u27E6",
|
|
1823
|
+
"⟵": "\u27F5",
|
|
1824
|
+
"⟷": "\u27F7",
|
|
1825
|
+
"⟼": "\u27FC",
|
|
1826
|
+
"⟶": "\u27F6",
|
|
1827
|
+
"↫": "\u21AB",
|
|
1828
|
+
"↬": "\u21AC",
|
|
1829
|
+
"⦅": "\u2985",
|
|
1830
|
+
"𝕝": "\u{1D55D}",
|
|
1831
|
+
"⨭": "\u2A2D",
|
|
1832
|
+
"⨴": "\u2A34",
|
|
1833
|
+
"∗": "\u2217",
|
|
1834
|
+
"_": "_",
|
|
1835
|
+
"◊": "\u25CA",
|
|
1836
|
+
"◊": "\u25CA",
|
|
1837
|
+
"⧫": "\u29EB",
|
|
1838
|
+
"(": "(",
|
|
1839
|
+
"⦓": "\u2993",
|
|
1840
|
+
"⇆": "\u21C6",
|
|
1841
|
+
"⌟": "\u231F",
|
|
1842
|
+
"⇋": "\u21CB",
|
|
1843
|
+
"⥭": "\u296D",
|
|
1844
|
+
"‎": "\u200E",
|
|
1845
|
+
"⊿": "\u22BF",
|
|
1846
|
+
"‹": "\u2039",
|
|
1847
|
+
"𝓁": "\u{1D4C1}",
|
|
1848
|
+
"↰": "\u21B0",
|
|
1849
|
+
"≲": "\u2272",
|
|
1850
|
+
"⪍": "\u2A8D",
|
|
1851
|
+
"⪏": "\u2A8F",
|
|
1852
|
+
"[": "[",
|
|
1853
|
+
"‘": "\u2018",
|
|
1854
|
+
"‚": "\u201A",
|
|
1855
|
+
"ł": "\u0142",
|
|
1856
|
+
"<": "<",
|
|
1857
|
+
"<": "<",
|
|
1858
|
+
"⪦": "\u2AA6",
|
|
1859
|
+
"⩹": "\u2A79",
|
|
1860
|
+
"⋖": "\u22D6",
|
|
1861
|
+
"⋋": "\u22CB",
|
|
1862
|
+
"⋉": "\u22C9",
|
|
1863
|
+
"⥶": "\u2976",
|
|
1864
|
+
"⩻": "\u2A7B",
|
|
1865
|
+
"⦖": "\u2996",
|
|
1866
|
+
"◃": "\u25C3",
|
|
1867
|
+
"⊴": "\u22B4",
|
|
1868
|
+
"◂": "\u25C2",
|
|
1869
|
+
"⥊": "\u294A",
|
|
1870
|
+
"⥦": "\u2966",
|
|
1871
|
+
"≨︀": "\u2268\uFE00",
|
|
1872
|
+
"≨︀": "\u2268\uFE00",
|
|
1873
|
+
"∺": "\u223A",
|
|
1874
|
+
"¯": "\xAF",
|
|
1875
|
+
"¯": "\xAF",
|
|
1876
|
+
"♂": "\u2642",
|
|
1877
|
+
"✠": "\u2720",
|
|
1878
|
+
"✠": "\u2720",
|
|
1879
|
+
"↦": "\u21A6",
|
|
1880
|
+
"↦": "\u21A6",
|
|
1881
|
+
"↧": "\u21A7",
|
|
1882
|
+
"↤": "\u21A4",
|
|
1883
|
+
"↥": "\u21A5",
|
|
1884
|
+
"▮": "\u25AE",
|
|
1885
|
+
"⨩": "\u2A29",
|
|
1886
|
+
"м": "\u043C",
|
|
1887
|
+
"—": "\u2014",
|
|
1888
|
+
"∡": "\u2221",
|
|
1889
|
+
"𝔪": "\u{1D52A}",
|
|
1890
|
+
"℧": "\u2127",
|
|
1891
|
+
"µ": "\xB5",
|
|
1892
|
+
"µ": "\xB5",
|
|
1893
|
+
"∣": "\u2223",
|
|
1894
|
+
"*": "*",
|
|
1895
|
+
"⫰": "\u2AF0",
|
|
1896
|
+
"·": "\xB7",
|
|
1897
|
+
"·": "\xB7",
|
|
1898
|
+
"−": "\u2212",
|
|
1899
|
+
"⊟": "\u229F",
|
|
1900
|
+
"∸": "\u2238",
|
|
1901
|
+
"⨪": "\u2A2A",
|
|
1902
|
+
"⫛": "\u2ADB",
|
|
1903
|
+
"…": "\u2026",
|
|
1904
|
+
"∓": "\u2213",
|
|
1905
|
+
"⊧": "\u22A7",
|
|
1906
|
+
"𝕞": "\u{1D55E}",
|
|
1907
|
+
"∓": "\u2213",
|
|
1908
|
+
"𝓂": "\u{1D4C2}",
|
|
1909
|
+
"∾": "\u223E",
|
|
1910
|
+
"μ": "\u03BC",
|
|
1911
|
+
"⊸": "\u22B8",
|
|
1912
|
+
"⊸": "\u22B8",
|
|
1913
|
+
"⋙̸": "\u22D9\u0338",
|
|
1914
|
+
"≫⃒": "\u226B\u20D2",
|
|
1915
|
+
"≫̸": "\u226B\u0338",
|
|
1916
|
+
"⇍": "\u21CD",
|
|
1917
|
+
"⇎": "\u21CE",
|
|
1918
|
+
"⋘̸": "\u22D8\u0338",
|
|
1919
|
+
"≪⃒": "\u226A\u20D2",
|
|
1920
|
+
"≪̸": "\u226A\u0338",
|
|
1921
|
+
"⇏": "\u21CF",
|
|
1922
|
+
"⊯": "\u22AF",
|
|
1923
|
+
"⊮": "\u22AE",
|
|
1924
|
+
"∇": "\u2207",
|
|
1925
|
+
"ń": "\u0144",
|
|
1926
|
+
"∠⃒": "\u2220\u20D2",
|
|
1927
|
+
"≉": "\u2249",
|
|
1928
|
+
"⩰̸": "\u2A70\u0338",
|
|
1929
|
+
"≋̸": "\u224B\u0338",
|
|
1930
|
+
"ʼn": "\u0149",
|
|
1931
|
+
"≉": "\u2249",
|
|
1932
|
+
"♮": "\u266E",
|
|
1933
|
+
"♮": "\u266E",
|
|
1934
|
+
"ℕ": "\u2115",
|
|
1935
|
+
" ": "\xA0",
|
|
1936
|
+
" ": "\xA0",
|
|
1937
|
+
"≎̸": "\u224E\u0338",
|
|
1938
|
+
"≏̸": "\u224F\u0338",
|
|
1939
|
+
"⩃": "\u2A43",
|
|
1940
|
+
"ň": "\u0148",
|
|
1941
|
+
"ņ": "\u0146",
|
|
1942
|
+
"≇": "\u2247",
|
|
1943
|
+
"⩭̸": "\u2A6D\u0338",
|
|
1944
|
+
"⩂": "\u2A42",
|
|
1945
|
+
"н": "\u043D",
|
|
1946
|
+
"–": "\u2013",
|
|
1947
|
+
"≠": "\u2260",
|
|
1948
|
+
"⇗": "\u21D7",
|
|
1949
|
+
"⤤": "\u2924",
|
|
1950
|
+
"↗": "\u2197",
|
|
1951
|
+
"↗": "\u2197",
|
|
1952
|
+
"≐̸": "\u2250\u0338",
|
|
1953
|
+
"≢": "\u2262",
|
|
1954
|
+
"⤨": "\u2928",
|
|
1955
|
+
"≂̸": "\u2242\u0338",
|
|
1956
|
+
"∄": "\u2204",
|
|
1957
|
+
"∄": "\u2204",
|
|
1958
|
+
"𝔫": "\u{1D52B}",
|
|
1959
|
+
"≧̸": "\u2267\u0338",
|
|
1960
|
+
"≱": "\u2271",
|
|
1961
|
+
"≱": "\u2271",
|
|
1962
|
+
"≧̸": "\u2267\u0338",
|
|
1963
|
+
"⩾̸": "\u2A7E\u0338",
|
|
1964
|
+
"⩾̸": "\u2A7E\u0338",
|
|
1965
|
+
"≵": "\u2275",
|
|
1966
|
+
"≯": "\u226F",
|
|
1967
|
+
"≯": "\u226F",
|
|
1968
|
+
"⇎": "\u21CE",
|
|
1969
|
+
"↮": "\u21AE",
|
|
1970
|
+
"⫲": "\u2AF2",
|
|
1971
|
+
"∋": "\u220B",
|
|
1972
|
+
"⋼": "\u22FC",
|
|
1973
|
+
"⋺": "\u22FA",
|
|
1974
|
+
"∋": "\u220B",
|
|
1975
|
+
"њ": "\u045A",
|
|
1976
|
+
"⇍": "\u21CD",
|
|
1977
|
+
"≦̸": "\u2266\u0338",
|
|
1978
|
+
"↚": "\u219A",
|
|
1979
|
+
"‥": "\u2025",
|
|
1980
|
+
"≰": "\u2270",
|
|
1981
|
+
"↚": "\u219A",
|
|
1982
|
+
"↮": "\u21AE",
|
|
1983
|
+
"≰": "\u2270",
|
|
1984
|
+
"≦̸": "\u2266\u0338",
|
|
1985
|
+
"⩽̸": "\u2A7D\u0338",
|
|
1986
|
+
"⩽̸": "\u2A7D\u0338",
|
|
1987
|
+
"≮": "\u226E",
|
|
1988
|
+
"≴": "\u2274",
|
|
1989
|
+
"≮": "\u226E",
|
|
1990
|
+
"⋪": "\u22EA",
|
|
1991
|
+
"⋬": "\u22EC",
|
|
1992
|
+
"∤": "\u2224",
|
|
1993
|
+
"𝕟": "\u{1D55F}",
|
|
1994
|
+
"¬": "\xAC",
|
|
1995
|
+
"¬": "\xAC",
|
|
1996
|
+
"∉": "\u2209",
|
|
1997
|
+
"⋹̸": "\u22F9\u0338",
|
|
1998
|
+
"⋵̸": "\u22F5\u0338",
|
|
1999
|
+
"∉": "\u2209",
|
|
2000
|
+
"⋷": "\u22F7",
|
|
2001
|
+
"⋶": "\u22F6",
|
|
2002
|
+
"∌": "\u220C",
|
|
2003
|
+
"∌": "\u220C",
|
|
2004
|
+
"⋾": "\u22FE",
|
|
2005
|
+
"⋽": "\u22FD",
|
|
2006
|
+
"∦": "\u2226",
|
|
2007
|
+
"∦": "\u2226",
|
|
2008
|
+
"⫽⃥": "\u2AFD\u20E5",
|
|
2009
|
+
"∂̸": "\u2202\u0338",
|
|
2010
|
+
"⨔": "\u2A14",
|
|
2011
|
+
"⊀": "\u2280",
|
|
2012
|
+
"⋠": "\u22E0",
|
|
2013
|
+
"⪯̸": "\u2AAF\u0338",
|
|
2014
|
+
"⊀": "\u2280",
|
|
2015
|
+
"⪯̸": "\u2AAF\u0338",
|
|
2016
|
+
"⇏": "\u21CF",
|
|
2017
|
+
"↛": "\u219B",
|
|
2018
|
+
"⤳̸": "\u2933\u0338",
|
|
2019
|
+
"↝̸": "\u219D\u0338",
|
|
2020
|
+
"↛": "\u219B",
|
|
2021
|
+
"⋫": "\u22EB",
|
|
2022
|
+
"⋭": "\u22ED",
|
|
2023
|
+
"⊁": "\u2281",
|
|
2024
|
+
"⋡": "\u22E1",
|
|
2025
|
+
"⪰̸": "\u2AB0\u0338",
|
|
2026
|
+
"𝓃": "\u{1D4C3}",
|
|
2027
|
+
"∤": "\u2224",
|
|
2028
|
+
"∦": "\u2226",
|
|
2029
|
+
"≁": "\u2241",
|
|
2030
|
+
"≄": "\u2244",
|
|
2031
|
+
"≄": "\u2244",
|
|
2032
|
+
"∤": "\u2224",
|
|
2033
|
+
"∦": "\u2226",
|
|
2034
|
+
"⋢": "\u22E2",
|
|
2035
|
+
"⋣": "\u22E3",
|
|
2036
|
+
"⊄": "\u2284",
|
|
2037
|
+
"⫅̸": "\u2AC5\u0338",
|
|
2038
|
+
"⊈": "\u2288",
|
|
2039
|
+
"⊂⃒": "\u2282\u20D2",
|
|
2040
|
+
"⊈": "\u2288",
|
|
2041
|
+
"⫅̸": "\u2AC5\u0338",
|
|
2042
|
+
"⊁": "\u2281",
|
|
2043
|
+
"⪰̸": "\u2AB0\u0338",
|
|
2044
|
+
"⊅": "\u2285",
|
|
2045
|
+
"⫆̸": "\u2AC6\u0338",
|
|
2046
|
+
"⊉": "\u2289",
|
|
2047
|
+
"⊃⃒": "\u2283\u20D2",
|
|
2048
|
+
"⊉": "\u2289",
|
|
2049
|
+
"⫆̸": "\u2AC6\u0338",
|
|
2050
|
+
"≹": "\u2279",
|
|
2051
|
+
"ñ": "\xF1",
|
|
2052
|
+
"ñ": "\xF1",
|
|
2053
|
+
"≸": "\u2278",
|
|
2054
|
+
"⋪": "\u22EA",
|
|
2055
|
+
"⋬": "\u22EC",
|
|
2056
|
+
"⋫": "\u22EB",
|
|
2057
|
+
"⋭": "\u22ED",
|
|
2058
|
+
"ν": "\u03BD",
|
|
2059
|
+
"#": "#",
|
|
2060
|
+
"№": "\u2116",
|
|
2061
|
+
" ": "\u2007",
|
|
2062
|
+
"⊭": "\u22AD",
|
|
2063
|
+
"⤄": "\u2904",
|
|
2064
|
+
"≍⃒": "\u224D\u20D2",
|
|
2065
|
+
"⊬": "\u22AC",
|
|
2066
|
+
"≥⃒": "\u2265\u20D2",
|
|
2067
|
+
">⃒": ">\u20D2",
|
|
2068
|
+
"⧞": "\u29DE",
|
|
2069
|
+
"⤂": "\u2902",
|
|
2070
|
+
"≤⃒": "\u2264\u20D2",
|
|
2071
|
+
"<⃒": "<\u20D2",
|
|
2072
|
+
"⊴⃒": "\u22B4\u20D2",
|
|
2073
|
+
"⤃": "\u2903",
|
|
2074
|
+
"⊵⃒": "\u22B5\u20D2",
|
|
2075
|
+
"∼⃒": "\u223C\u20D2",
|
|
2076
|
+
"⇖": "\u21D6",
|
|
2077
|
+
"⤣": "\u2923",
|
|
2078
|
+
"↖": "\u2196",
|
|
2079
|
+
"↖": "\u2196",
|
|
2080
|
+
"⤧": "\u2927",
|
|
2081
|
+
"Ⓢ": "\u24C8",
|
|
2082
|
+
"ó": "\xF3",
|
|
2083
|
+
"ó": "\xF3",
|
|
2084
|
+
"⊛": "\u229B",
|
|
2085
|
+
"⊚": "\u229A",
|
|
2086
|
+
"ô": "\xF4",
|
|
2087
|
+
"ô": "\xF4",
|
|
2088
|
+
"о": "\u043E",
|
|
2089
|
+
"⊝": "\u229D",
|
|
2090
|
+
"ő": "\u0151",
|
|
2091
|
+
"⨸": "\u2A38",
|
|
2092
|
+
"⊙": "\u2299",
|
|
2093
|
+
"⦼": "\u29BC",
|
|
2094
|
+
"œ": "\u0153",
|
|
2095
|
+
"⦿": "\u29BF",
|
|
2096
|
+
"𝔬": "\u{1D52C}",
|
|
2097
|
+
"˛": "\u02DB",
|
|
2098
|
+
"ò": "\xF2",
|
|
2099
|
+
"ò": "\xF2",
|
|
2100
|
+
"⧁": "\u29C1",
|
|
2101
|
+
"⦵": "\u29B5",
|
|
2102
|
+
"Ω": "\u03A9",
|
|
2103
|
+
"∮": "\u222E",
|
|
2104
|
+
"↺": "\u21BA",
|
|
2105
|
+
"⦾": "\u29BE",
|
|
2106
|
+
"⦻": "\u29BB",
|
|
2107
|
+
"‾": "\u203E",
|
|
2108
|
+
"⧀": "\u29C0",
|
|
2109
|
+
"ō": "\u014D",
|
|
2110
|
+
"ω": "\u03C9",
|
|
2111
|
+
"ο": "\u03BF",
|
|
2112
|
+
"⦶": "\u29B6",
|
|
2113
|
+
"⊖": "\u2296",
|
|
2114
|
+
"𝕠": "\u{1D560}",
|
|
2115
|
+
"⦷": "\u29B7",
|
|
2116
|
+
"⦹": "\u29B9",
|
|
2117
|
+
"⊕": "\u2295",
|
|
2118
|
+
"∨": "\u2228",
|
|
2119
|
+
"↻": "\u21BB",
|
|
2120
|
+
"⩝": "\u2A5D",
|
|
2121
|
+
"ℴ": "\u2134",
|
|
2122
|
+
"ℴ": "\u2134",
|
|
2123
|
+
"ª": "\xAA",
|
|
2124
|
+
"ª": "\xAA",
|
|
2125
|
+
"º": "\xBA",
|
|
2126
|
+
"º": "\xBA",
|
|
2127
|
+
"⊶": "\u22B6",
|
|
2128
|
+
"⩖": "\u2A56",
|
|
2129
|
+
"⩗": "\u2A57",
|
|
2130
|
+
"⩛": "\u2A5B",
|
|
2131
|
+
"ℴ": "\u2134",
|
|
2132
|
+
"ø": "\xF8",
|
|
2133
|
+
"ø": "\xF8",
|
|
2134
|
+
"⊘": "\u2298",
|
|
2135
|
+
"õ": "\xF5",
|
|
2136
|
+
"õ": "\xF5",
|
|
2137
|
+
"⊗": "\u2297",
|
|
2138
|
+
"⨶": "\u2A36",
|
|
2139
|
+
"ö": "\xF6",
|
|
2140
|
+
"ö": "\xF6",
|
|
2141
|
+
"⌽": "\u233D",
|
|
2142
|
+
"∥": "\u2225",
|
|
2143
|
+
"¶": "\xB6",
|
|
2144
|
+
"¶": "\xB6",
|
|
2145
|
+
"∥": "\u2225",
|
|
2146
|
+
"⫳": "\u2AF3",
|
|
2147
|
+
"⫽": "\u2AFD",
|
|
2148
|
+
"∂": "\u2202",
|
|
2149
|
+
"п": "\u043F",
|
|
2150
|
+
"%": "%",
|
|
2151
|
+
".": ".",
|
|
2152
|
+
"‰": "\u2030",
|
|
2153
|
+
"⊥": "\u22A5",
|
|
2154
|
+
"‱": "\u2031",
|
|
2155
|
+
"𝔭": "\u{1D52D}",
|
|
2156
|
+
"φ": "\u03C6",
|
|
2157
|
+
"ϕ": "\u03D5",
|
|
2158
|
+
"ℳ": "\u2133",
|
|
2159
|
+
"☎": "\u260E",
|
|
2160
|
+
"π": "\u03C0",
|
|
2161
|
+
"⋔": "\u22D4",
|
|
2162
|
+
"ϖ": "\u03D6",
|
|
2163
|
+
"ℏ": "\u210F",
|
|
2164
|
+
"ℎ": "\u210E",
|
|
2165
|
+
"ℏ": "\u210F",
|
|
2166
|
+
"+": "+",
|
|
2167
|
+
"⨣": "\u2A23",
|
|
2168
|
+
"⊞": "\u229E",
|
|
2169
|
+
"⨢": "\u2A22",
|
|
2170
|
+
"∔": "\u2214",
|
|
2171
|
+
"⨥": "\u2A25",
|
|
2172
|
+
"⩲": "\u2A72",
|
|
2173
|
+
"±": "\xB1",
|
|
2174
|
+
"±": "\xB1",
|
|
2175
|
+
"⨦": "\u2A26",
|
|
2176
|
+
"⨧": "\u2A27",
|
|
2177
|
+
"±": "\xB1",
|
|
2178
|
+
"⨕": "\u2A15",
|
|
2179
|
+
"𝕡": "\u{1D561}",
|
|
2180
|
+
"£": "\xA3",
|
|
2181
|
+
"£": "\xA3",
|
|
2182
|
+
"≺": "\u227A",
|
|
2183
|
+
"⪳": "\u2AB3",
|
|
2184
|
+
"⪷": "\u2AB7",
|
|
2185
|
+
"≼": "\u227C",
|
|
2186
|
+
"⪯": "\u2AAF",
|
|
2187
|
+
"≺": "\u227A",
|
|
2188
|
+
"⪷": "\u2AB7",
|
|
2189
|
+
"≼": "\u227C",
|
|
2190
|
+
"⪯": "\u2AAF",
|
|
2191
|
+
"⪹": "\u2AB9",
|
|
2192
|
+
"⪵": "\u2AB5",
|
|
2193
|
+
"⋨": "\u22E8",
|
|
2194
|
+
"≾": "\u227E",
|
|
2195
|
+
"′": "\u2032",
|
|
2196
|
+
"ℙ": "\u2119",
|
|
2197
|
+
"⪵": "\u2AB5",
|
|
2198
|
+
"⪹": "\u2AB9",
|
|
2199
|
+
"⋨": "\u22E8",
|
|
2200
|
+
"∏": "\u220F",
|
|
2201
|
+
"⌮": "\u232E",
|
|
2202
|
+
"⌒": "\u2312",
|
|
2203
|
+
"⌓": "\u2313",
|
|
2204
|
+
"∝": "\u221D",
|
|
2205
|
+
"∝": "\u221D",
|
|
2206
|
+
"≾": "\u227E",
|
|
2207
|
+
"⊰": "\u22B0",
|
|
2208
|
+
"𝓅": "\u{1D4C5}",
|
|
2209
|
+
"ψ": "\u03C8",
|
|
2210
|
+
" ": "\u2008",
|
|
2211
|
+
"𝔮": "\u{1D52E}",
|
|
2212
|
+
"⨌": "\u2A0C",
|
|
2213
|
+
"𝕢": "\u{1D562}",
|
|
2214
|
+
"⁗": "\u2057",
|
|
2215
|
+
"𝓆": "\u{1D4C6}",
|
|
2216
|
+
"ℍ": "\u210D",
|
|
2217
|
+
"⨖": "\u2A16",
|
|
2218
|
+
"?": "?",
|
|
2219
|
+
"≟": "\u225F",
|
|
2220
|
+
""": '"',
|
|
2221
|
+
""": '"',
|
|
2222
|
+
"⇛": "\u21DB",
|
|
2223
|
+
"⇒": "\u21D2",
|
|
2224
|
+
"⤜": "\u291C",
|
|
2225
|
+
"⤏": "\u290F",
|
|
2226
|
+
"⥤": "\u2964",
|
|
2227
|
+
"∽̱": "\u223D\u0331",
|
|
2228
|
+
"ŕ": "\u0155",
|
|
2229
|
+
"√": "\u221A",
|
|
2230
|
+
"⦳": "\u29B3",
|
|
2231
|
+
"⟩": "\u27E9",
|
|
2232
|
+
"⦒": "\u2992",
|
|
2233
|
+
"⦥": "\u29A5",
|
|
2234
|
+
"⟩": "\u27E9",
|
|
2235
|
+
"»": "\xBB",
|
|
2236
|
+
"»": "\xBB",
|
|
2237
|
+
"→": "\u2192",
|
|
2238
|
+
"⥵": "\u2975",
|
|
2239
|
+
"⇥": "\u21E5",
|
|
2240
|
+
"⤠": "\u2920",
|
|
2241
|
+
"⤳": "\u2933",
|
|
2242
|
+
"⤞": "\u291E",
|
|
2243
|
+
"↪": "\u21AA",
|
|
2244
|
+
"↬": "\u21AC",
|
|
2245
|
+
"⥅": "\u2945",
|
|
2246
|
+
"⥴": "\u2974",
|
|
2247
|
+
"↣": "\u21A3",
|
|
2248
|
+
"↝": "\u219D",
|
|
2249
|
+
"⤚": "\u291A",
|
|
2250
|
+
"∶": "\u2236",
|
|
2251
|
+
"ℚ": "\u211A",
|
|
2252
|
+
"⤍": "\u290D",
|
|
2253
|
+
"❳": "\u2773",
|
|
2254
|
+
"}": "}",
|
|
2255
|
+
"]": "]",
|
|
2256
|
+
"⦌": "\u298C",
|
|
2257
|
+
"⦎": "\u298E",
|
|
2258
|
+
"⦐": "\u2990",
|
|
2259
|
+
"ř": "\u0159",
|
|
2260
|
+
"ŗ": "\u0157",
|
|
2261
|
+
"⌉": "\u2309",
|
|
2262
|
+
"}": "}",
|
|
2263
|
+
"р": "\u0440",
|
|
2264
|
+
"⤷": "\u2937",
|
|
2265
|
+
"⥩": "\u2969",
|
|
2266
|
+
"”": "\u201D",
|
|
2267
|
+
"”": "\u201D",
|
|
2268
|
+
"↳": "\u21B3",
|
|
2269
|
+
"ℜ": "\u211C",
|
|
2270
|
+
"ℛ": "\u211B",
|
|
2271
|
+
"ℜ": "\u211C",
|
|
2272
|
+
"ℝ": "\u211D",
|
|
2273
|
+
"▭": "\u25AD",
|
|
2274
|
+
"®": "\xAE",
|
|
2275
|
+
"®": "\xAE",
|
|
2276
|
+
"⥽": "\u297D",
|
|
2277
|
+
"⌋": "\u230B",
|
|
2278
|
+
"𝔯": "\u{1D52F}",
|
|
2279
|
+
"⇁": "\u21C1",
|
|
2280
|
+
"⇀": "\u21C0",
|
|
2281
|
+
"⥬": "\u296C",
|
|
2282
|
+
"ρ": "\u03C1",
|
|
2283
|
+
"ϱ": "\u03F1",
|
|
2284
|
+
"→": "\u2192",
|
|
2285
|
+
"↣": "\u21A3",
|
|
2286
|
+
"⇁": "\u21C1",
|
|
2287
|
+
"⇀": "\u21C0",
|
|
2288
|
+
"⇄": "\u21C4",
|
|
2289
|
+
"⇌": "\u21CC",
|
|
2290
|
+
"⇉": "\u21C9",
|
|
2291
|
+
"↝": "\u219D",
|
|
2292
|
+
"⋌": "\u22CC",
|
|
2293
|
+
"˚": "\u02DA",
|
|
2294
|
+
"≓": "\u2253",
|
|
2295
|
+
"⇄": "\u21C4",
|
|
2296
|
+
"⇌": "\u21CC",
|
|
2297
|
+
"‏": "\u200F",
|
|
2298
|
+
"⎱": "\u23B1",
|
|
2299
|
+
"⎱": "\u23B1",
|
|
2300
|
+
"⫮": "\u2AEE",
|
|
2301
|
+
"⟭": "\u27ED",
|
|
2302
|
+
"⇾": "\u21FE",
|
|
2303
|
+
"⟧": "\u27E7",
|
|
2304
|
+
"⦆": "\u2986",
|
|
2305
|
+
"𝕣": "\u{1D563}",
|
|
2306
|
+
"⨮": "\u2A2E",
|
|
2307
|
+
"⨵": "\u2A35",
|
|
2308
|
+
")": ")",
|
|
2309
|
+
"⦔": "\u2994",
|
|
2310
|
+
"⨒": "\u2A12",
|
|
2311
|
+
"⇉": "\u21C9",
|
|
2312
|
+
"›": "\u203A",
|
|
2313
|
+
"𝓇": "\u{1D4C7}",
|
|
2314
|
+
"↱": "\u21B1",
|
|
2315
|
+
"]": "]",
|
|
2316
|
+
"’": "\u2019",
|
|
2317
|
+
"’": "\u2019",
|
|
2318
|
+
"⋌": "\u22CC",
|
|
2319
|
+
"⋊": "\u22CA",
|
|
2320
|
+
"▹": "\u25B9",
|
|
2321
|
+
"⊵": "\u22B5",
|
|
2322
|
+
"▸": "\u25B8",
|
|
2323
|
+
"⧎": "\u29CE",
|
|
2324
|
+
"⥨": "\u2968",
|
|
2325
|
+
"℞": "\u211E",
|
|
2326
|
+
"ś": "\u015B",
|
|
2327
|
+
"‚": "\u201A",
|
|
2328
|
+
"≻": "\u227B",
|
|
2329
|
+
"⪴": "\u2AB4",
|
|
2330
|
+
"⪸": "\u2AB8",
|
|
2331
|
+
"š": "\u0161",
|
|
2332
|
+
"≽": "\u227D",
|
|
2333
|
+
"⪰": "\u2AB0",
|
|
2334
|
+
"ş": "\u015F",
|
|
2335
|
+
"ŝ": "\u015D",
|
|
2336
|
+
"⪶": "\u2AB6",
|
|
2337
|
+
"⪺": "\u2ABA",
|
|
2338
|
+
"⋩": "\u22E9",
|
|
2339
|
+
"⨓": "\u2A13",
|
|
2340
|
+
"≿": "\u227F",
|
|
2341
|
+
"с": "\u0441",
|
|
2342
|
+
"⋅": "\u22C5",
|
|
2343
|
+
"⊡": "\u22A1",
|
|
2344
|
+
"⩦": "\u2A66",
|
|
2345
|
+
"⇘": "\u21D8",
|
|
2346
|
+
"⤥": "\u2925",
|
|
2347
|
+
"↘": "\u2198",
|
|
2348
|
+
"↘": "\u2198",
|
|
2349
|
+
"§": "\xA7",
|
|
2350
|
+
"§": "\xA7",
|
|
2351
|
+
";": ";",
|
|
2352
|
+
"⤩": "\u2929",
|
|
2353
|
+
"∖": "\u2216",
|
|
2354
|
+
"∖": "\u2216",
|
|
2355
|
+
"✶": "\u2736",
|
|
2356
|
+
"𝔰": "\u{1D530}",
|
|
2357
|
+
"⌢": "\u2322",
|
|
2358
|
+
"♯": "\u266F",
|
|
2359
|
+
"щ": "\u0449",
|
|
2360
|
+
"ш": "\u0448",
|
|
2361
|
+
"∣": "\u2223",
|
|
2362
|
+
"∥": "\u2225",
|
|
2363
|
+
"­": "\xAD",
|
|
2364
|
+
"­": "\xAD",
|
|
2365
|
+
"σ": "\u03C3",
|
|
2366
|
+
"ς": "\u03C2",
|
|
2367
|
+
"ς": "\u03C2",
|
|
2368
|
+
"∼": "\u223C",
|
|
2369
|
+
"⩪": "\u2A6A",
|
|
2370
|
+
"≃": "\u2243",
|
|
2371
|
+
"≃": "\u2243",
|
|
2372
|
+
"⪞": "\u2A9E",
|
|
2373
|
+
"⪠": "\u2AA0",
|
|
2374
|
+
"⪝": "\u2A9D",
|
|
2375
|
+
"⪟": "\u2A9F",
|
|
2376
|
+
"≆": "\u2246",
|
|
2377
|
+
"⨤": "\u2A24",
|
|
2378
|
+
"⥲": "\u2972",
|
|
2379
|
+
"←": "\u2190",
|
|
2380
|
+
"∖": "\u2216",
|
|
2381
|
+
"⨳": "\u2A33",
|
|
2382
|
+
"⧤": "\u29E4",
|
|
2383
|
+
"∣": "\u2223",
|
|
2384
|
+
"⌣": "\u2323",
|
|
2385
|
+
"⪪": "\u2AAA",
|
|
2386
|
+
"⪬": "\u2AAC",
|
|
2387
|
+
"⪬︀": "\u2AAC\uFE00",
|
|
2388
|
+
"ь": "\u044C",
|
|
2389
|
+
"/": "/",
|
|
2390
|
+
"⧄": "\u29C4",
|
|
2391
|
+
"⌿": "\u233F",
|
|
2392
|
+
"𝕤": "\u{1D564}",
|
|
2393
|
+
"♠": "\u2660",
|
|
2394
|
+
"♠": "\u2660",
|
|
2395
|
+
"∥": "\u2225",
|
|
2396
|
+
"⊓": "\u2293",
|
|
2397
|
+
"⊓︀": "\u2293\uFE00",
|
|
2398
|
+
"⊔": "\u2294",
|
|
2399
|
+
"⊔︀": "\u2294\uFE00",
|
|
2400
|
+
"⊏": "\u228F",
|
|
2401
|
+
"⊑": "\u2291",
|
|
2402
|
+
"⊏": "\u228F",
|
|
2403
|
+
"⊑": "\u2291",
|
|
2404
|
+
"⊐": "\u2290",
|
|
2405
|
+
"⊒": "\u2292",
|
|
2406
|
+
"⊐": "\u2290",
|
|
2407
|
+
"⊒": "\u2292",
|
|
2408
|
+
"□": "\u25A1",
|
|
2409
|
+
"□": "\u25A1",
|
|
2410
|
+
"▪": "\u25AA",
|
|
2411
|
+
"▪": "\u25AA",
|
|
2412
|
+
"→": "\u2192",
|
|
2413
|
+
"𝓈": "\u{1D4C8}",
|
|
2414
|
+
"∖": "\u2216",
|
|
2415
|
+
"⌣": "\u2323",
|
|
2416
|
+
"⋆": "\u22C6",
|
|
2417
|
+
"☆": "\u2606",
|
|
2418
|
+
"★": "\u2605",
|
|
2419
|
+
"ϵ": "\u03F5",
|
|
2420
|
+
"ϕ": "\u03D5",
|
|
2421
|
+
"¯": "\xAF",
|
|
2422
|
+
"⊂": "\u2282",
|
|
2423
|
+
"⫅": "\u2AC5",
|
|
2424
|
+
"⪽": "\u2ABD",
|
|
2425
|
+
"⊆": "\u2286",
|
|
2426
|
+
"⫃": "\u2AC3",
|
|
2427
|
+
"⫁": "\u2AC1",
|
|
2428
|
+
"⫋": "\u2ACB",
|
|
2429
|
+
"⊊": "\u228A",
|
|
2430
|
+
"⪿": "\u2ABF",
|
|
2431
|
+
"⥹": "\u2979",
|
|
2432
|
+
"⊂": "\u2282",
|
|
2433
|
+
"⊆": "\u2286",
|
|
2434
|
+
"⫅": "\u2AC5",
|
|
2435
|
+
"⊊": "\u228A",
|
|
2436
|
+
"⫋": "\u2ACB",
|
|
2437
|
+
"⫇": "\u2AC7",
|
|
2438
|
+
"⫕": "\u2AD5",
|
|
2439
|
+
"⫓": "\u2AD3",
|
|
2440
|
+
"≻": "\u227B",
|
|
2441
|
+
"⪸": "\u2AB8",
|
|
2442
|
+
"≽": "\u227D",
|
|
2443
|
+
"⪰": "\u2AB0",
|
|
2444
|
+
"⪺": "\u2ABA",
|
|
2445
|
+
"⪶": "\u2AB6",
|
|
2446
|
+
"⋩": "\u22E9",
|
|
2447
|
+
"≿": "\u227F",
|
|
2448
|
+
"∑": "\u2211",
|
|
2449
|
+
"♪": "\u266A",
|
|
2450
|
+
"¹": "\xB9",
|
|
2451
|
+
"¹": "\xB9",
|
|
2452
|
+
"²": "\xB2",
|
|
2453
|
+
"²": "\xB2",
|
|
2454
|
+
"³": "\xB3",
|
|
2455
|
+
"³": "\xB3",
|
|
2456
|
+
"⊃": "\u2283",
|
|
2457
|
+
"⫆": "\u2AC6",
|
|
2458
|
+
"⪾": "\u2ABE",
|
|
2459
|
+
"⫘": "\u2AD8",
|
|
2460
|
+
"⊇": "\u2287",
|
|
2461
|
+
"⫄": "\u2AC4",
|
|
2462
|
+
"⟉": "\u27C9",
|
|
2463
|
+
"⫗": "\u2AD7",
|
|
2464
|
+
"⥻": "\u297B",
|
|
2465
|
+
"⫂": "\u2AC2",
|
|
2466
|
+
"⫌": "\u2ACC",
|
|
2467
|
+
"⊋": "\u228B",
|
|
2468
|
+
"⫀": "\u2AC0",
|
|
2469
|
+
"⊃": "\u2283",
|
|
2470
|
+
"⊇": "\u2287",
|
|
2471
|
+
"⫆": "\u2AC6",
|
|
2472
|
+
"⊋": "\u228B",
|
|
2473
|
+
"⫌": "\u2ACC",
|
|
2474
|
+
"⫈": "\u2AC8",
|
|
2475
|
+
"⫔": "\u2AD4",
|
|
2476
|
+
"⫖": "\u2AD6",
|
|
2477
|
+
"⇙": "\u21D9",
|
|
2478
|
+
"⤦": "\u2926",
|
|
2479
|
+
"↙": "\u2199",
|
|
2480
|
+
"↙": "\u2199",
|
|
2481
|
+
"⤪": "\u292A",
|
|
2482
|
+
"ß": "\xDF",
|
|
2483
|
+
"ß": "\xDF",
|
|
2484
|
+
"⌖": "\u2316",
|
|
2485
|
+
"τ": "\u03C4",
|
|
2486
|
+
"⎴": "\u23B4",
|
|
2487
|
+
"ť": "\u0165",
|
|
2488
|
+
"ţ": "\u0163",
|
|
2489
|
+
"т": "\u0442",
|
|
2490
|
+
"⃛": "\u20DB",
|
|
2491
|
+
"⌕": "\u2315",
|
|
2492
|
+
"𝔱": "\u{1D531}",
|
|
2493
|
+
"∴": "\u2234",
|
|
2494
|
+
"∴": "\u2234",
|
|
2495
|
+
"θ": "\u03B8",
|
|
2496
|
+
"ϑ": "\u03D1",
|
|
2497
|
+
"ϑ": "\u03D1",
|
|
2498
|
+
"≈": "\u2248",
|
|
2499
|
+
"∼": "\u223C",
|
|
2500
|
+
" ": "\u2009",
|
|
2501
|
+
"≈": "\u2248",
|
|
2502
|
+
"∼": "\u223C",
|
|
2503
|
+
"þ": "\xFE",
|
|
2504
|
+
"þ": "\xFE",
|
|
2505
|
+
"˜": "\u02DC",
|
|
2506
|
+
"×": "\xD7",
|
|
2507
|
+
"×": "\xD7",
|
|
2508
|
+
"⊠": "\u22A0",
|
|
2509
|
+
"⨱": "\u2A31",
|
|
2510
|
+
"⨰": "\u2A30",
|
|
2511
|
+
"∭": "\u222D",
|
|
2512
|
+
"⤨": "\u2928",
|
|
2513
|
+
"⊤": "\u22A4",
|
|
2514
|
+
"⌶": "\u2336",
|
|
2515
|
+
"⫱": "\u2AF1",
|
|
2516
|
+
"𝕥": "\u{1D565}",
|
|
2517
|
+
"⫚": "\u2ADA",
|
|
2518
|
+
"⤩": "\u2929",
|
|
2519
|
+
"‴": "\u2034",
|
|
2520
|
+
"™": "\u2122",
|
|
2521
|
+
"▵": "\u25B5",
|
|
2522
|
+
"▿": "\u25BF",
|
|
2523
|
+
"◃": "\u25C3",
|
|
2524
|
+
"⊴": "\u22B4",
|
|
2525
|
+
"≜": "\u225C",
|
|
2526
|
+
"▹": "\u25B9",
|
|
2527
|
+
"⊵": "\u22B5",
|
|
2528
|
+
"◬": "\u25EC",
|
|
2529
|
+
"≜": "\u225C",
|
|
2530
|
+
"⨺": "\u2A3A",
|
|
2531
|
+
"⨹": "\u2A39",
|
|
2532
|
+
"⧍": "\u29CD",
|
|
2533
|
+
"⨻": "\u2A3B",
|
|
2534
|
+
"⏢": "\u23E2",
|
|
2535
|
+
"𝓉": "\u{1D4C9}",
|
|
2536
|
+
"ц": "\u0446",
|
|
2537
|
+
"ћ": "\u045B",
|
|
2538
|
+
"ŧ": "\u0167",
|
|
2539
|
+
"≬": "\u226C",
|
|
2540
|
+
"↞": "\u219E",
|
|
2541
|
+
"↠": "\u21A0",
|
|
2542
|
+
"⇑": "\u21D1",
|
|
2543
|
+
"⥣": "\u2963",
|
|
2544
|
+
"ú": "\xFA",
|
|
2545
|
+
"ú": "\xFA",
|
|
2546
|
+
"↑": "\u2191",
|
|
2547
|
+
"ў": "\u045E",
|
|
2548
|
+
"ŭ": "\u016D",
|
|
2549
|
+
"û": "\xFB",
|
|
2550
|
+
"û": "\xFB",
|
|
2551
|
+
"у": "\u0443",
|
|
2552
|
+
"⇅": "\u21C5",
|
|
2553
|
+
"ű": "\u0171",
|
|
2554
|
+
"⥮": "\u296E",
|
|
2555
|
+
"⥾": "\u297E",
|
|
2556
|
+
"𝔲": "\u{1D532}",
|
|
2557
|
+
"ù": "\xF9",
|
|
2558
|
+
"ù": "\xF9",
|
|
2559
|
+
"↿": "\u21BF",
|
|
2560
|
+
"↾": "\u21BE",
|
|
2561
|
+
"▀": "\u2580",
|
|
2562
|
+
"⌜": "\u231C",
|
|
2563
|
+
"⌜": "\u231C",
|
|
2564
|
+
"⌏": "\u230F",
|
|
2565
|
+
"◸": "\u25F8",
|
|
2566
|
+
"ū": "\u016B",
|
|
2567
|
+
"¨": "\xA8",
|
|
2568
|
+
"¨": "\xA8",
|
|
2569
|
+
"ų": "\u0173",
|
|
2570
|
+
"𝕦": "\u{1D566}",
|
|
2571
|
+
"↑": "\u2191",
|
|
2572
|
+
"↕": "\u2195",
|
|
2573
|
+
"↿": "\u21BF",
|
|
2574
|
+
"↾": "\u21BE",
|
|
2575
|
+
"⊎": "\u228E",
|
|
2576
|
+
"υ": "\u03C5",
|
|
2577
|
+
"ϒ": "\u03D2",
|
|
2578
|
+
"υ": "\u03C5",
|
|
2579
|
+
"⇈": "\u21C8",
|
|
2580
|
+
"⌝": "\u231D",
|
|
2581
|
+
"⌝": "\u231D",
|
|
2582
|
+
"⌎": "\u230E",
|
|
2583
|
+
"ů": "\u016F",
|
|
2584
|
+
"◹": "\u25F9",
|
|
2585
|
+
"𝓊": "\u{1D4CA}",
|
|
2586
|
+
"⋰": "\u22F0",
|
|
2587
|
+
"ũ": "\u0169",
|
|
2588
|
+
"▵": "\u25B5",
|
|
2589
|
+
"▴": "\u25B4",
|
|
2590
|
+
"⇈": "\u21C8",
|
|
2591
|
+
"ü": "\xFC",
|
|
2592
|
+
"ü": "\xFC",
|
|
2593
|
+
"⦧": "\u29A7",
|
|
2594
|
+
"⇕": "\u21D5",
|
|
2595
|
+
"⫨": "\u2AE8",
|
|
2596
|
+
"⫩": "\u2AE9",
|
|
2597
|
+
"⊨": "\u22A8",
|
|
2598
|
+
"⦜": "\u299C",
|
|
2599
|
+
"ϵ": "\u03F5",
|
|
2600
|
+
"ϰ": "\u03F0",
|
|
2601
|
+
"∅": "\u2205",
|
|
2602
|
+
"ϕ": "\u03D5",
|
|
2603
|
+
"ϖ": "\u03D6",
|
|
2604
|
+
"∝": "\u221D",
|
|
2605
|
+
"↕": "\u2195",
|
|
2606
|
+
"ϱ": "\u03F1",
|
|
2607
|
+
"ς": "\u03C2",
|
|
2608
|
+
"⊊︀": "\u228A\uFE00",
|
|
2609
|
+
"⫋︀": "\u2ACB\uFE00",
|
|
2610
|
+
"⊋︀": "\u228B\uFE00",
|
|
2611
|
+
"⫌︀": "\u2ACC\uFE00",
|
|
2612
|
+
"ϑ": "\u03D1",
|
|
2613
|
+
"⊲": "\u22B2",
|
|
2614
|
+
"⊳": "\u22B3",
|
|
2615
|
+
"в": "\u0432",
|
|
2616
|
+
"⊢": "\u22A2",
|
|
2617
|
+
"∨": "\u2228",
|
|
2618
|
+
"⊻": "\u22BB",
|
|
2619
|
+
"≚": "\u225A",
|
|
2620
|
+
"⋮": "\u22EE",
|
|
2621
|
+
"|": "|",
|
|
2622
|
+
"|": "|",
|
|
2623
|
+
"𝔳": "\u{1D533}",
|
|
2624
|
+
"⊲": "\u22B2",
|
|
2625
|
+
"⊂⃒": "\u2282\u20D2",
|
|
2626
|
+
"⊃⃒": "\u2283\u20D2",
|
|
2627
|
+
"𝕧": "\u{1D567}",
|
|
2628
|
+
"∝": "\u221D",
|
|
2629
|
+
"⊳": "\u22B3",
|
|
2630
|
+
"𝓋": "\u{1D4CB}",
|
|
2631
|
+
"⫋︀": "\u2ACB\uFE00",
|
|
2632
|
+
"⊊︀": "\u228A\uFE00",
|
|
2633
|
+
"⫌︀": "\u2ACC\uFE00",
|
|
2634
|
+
"⊋︀": "\u228B\uFE00",
|
|
2635
|
+
"⦚": "\u299A",
|
|
2636
|
+
"ŵ": "\u0175",
|
|
2637
|
+
"⩟": "\u2A5F",
|
|
2638
|
+
"∧": "\u2227",
|
|
2639
|
+
"≙": "\u2259",
|
|
2640
|
+
"℘": "\u2118",
|
|
2641
|
+
"𝔴": "\u{1D534}",
|
|
2642
|
+
"𝕨": "\u{1D568}",
|
|
2643
|
+
"℘": "\u2118",
|
|
2644
|
+
"≀": "\u2240",
|
|
2645
|
+
"≀": "\u2240",
|
|
2646
|
+
"𝓌": "\u{1D4CC}",
|
|
2647
|
+
"⋂": "\u22C2",
|
|
2648
|
+
"◯": "\u25EF",
|
|
2649
|
+
"⋃": "\u22C3",
|
|
2650
|
+
"▽": "\u25BD",
|
|
2651
|
+
"𝔵": "\u{1D535}",
|
|
2652
|
+
"⟺": "\u27FA",
|
|
2653
|
+
"⟷": "\u27F7",
|
|
2654
|
+
"ξ": "\u03BE",
|
|
2655
|
+
"⟸": "\u27F8",
|
|
2656
|
+
"⟵": "\u27F5",
|
|
2657
|
+
"⟼": "\u27FC",
|
|
2658
|
+
"⋻": "\u22FB",
|
|
2659
|
+
"⨀": "\u2A00",
|
|
2660
|
+
"𝕩": "\u{1D569}",
|
|
2661
|
+
"⨁": "\u2A01",
|
|
2662
|
+
"⨂": "\u2A02",
|
|
2663
|
+
"⟹": "\u27F9",
|
|
2664
|
+
"⟶": "\u27F6",
|
|
2665
|
+
"𝓍": "\u{1D4CD}",
|
|
2666
|
+
"⨆": "\u2A06",
|
|
2667
|
+
"⨄": "\u2A04",
|
|
2668
|
+
"△": "\u25B3",
|
|
2669
|
+
"⋁": "\u22C1",
|
|
2670
|
+
"⋀": "\u22C0",
|
|
2671
|
+
"ý": "\xFD",
|
|
2672
|
+
"ý": "\xFD",
|
|
2673
|
+
"я": "\u044F",
|
|
2674
|
+
"ŷ": "\u0177",
|
|
2675
|
+
"ы": "\u044B",
|
|
2676
|
+
"¥": "\xA5",
|
|
2677
|
+
"¥": "\xA5",
|
|
2678
|
+
"𝔶": "\u{1D536}",
|
|
2679
|
+
"ї": "\u0457",
|
|
2680
|
+
"𝕪": "\u{1D56A}",
|
|
2681
|
+
"𝓎": "\u{1D4CE}",
|
|
2682
|
+
"ю": "\u044E",
|
|
2683
|
+
"ÿ": "\xFF",
|
|
2684
|
+
"ÿ": "\xFF",
|
|
2685
|
+
"ź": "\u017A",
|
|
2686
|
+
"ž": "\u017E",
|
|
2687
|
+
"з": "\u0437",
|
|
2688
|
+
"ż": "\u017C",
|
|
2689
|
+
"ℨ": "\u2128",
|
|
2690
|
+
"ζ": "\u03B6",
|
|
2691
|
+
"𝔷": "\u{1D537}",
|
|
2692
|
+
"ж": "\u0436",
|
|
2693
|
+
"⇝": "\u21DD",
|
|
2694
|
+
"𝕫": "\u{1D56B}",
|
|
2695
|
+
"𝓏": "\u{1D4CF}",
|
|
2696
|
+
"‍": "\u200D",
|
|
2697
|
+
"‌": "\u200C"
|
|
2698
|
+
}, html_entities_default = htmlEntities;
|
|
2699
|
+
|
|
2700
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/text-format.js
|
|
2701
|
+
function decodeHTMLEntities(str) {
|
|
2702
|
+
return str.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi, (match, entity) => {
|
|
2703
|
+
if (typeof html_entities_default[match] == "string")
|
|
2704
|
+
return html_entities_default[match];
|
|
2705
|
+
if (entity.charAt(0) !== "#" || match.charAt(match.length - 1) !== ";")
|
|
2706
|
+
return match;
|
|
2707
|
+
let codePoint;
|
|
2708
|
+
entity.charAt(1) === "x" ? codePoint = parseInt(entity.substr(2), 16) : codePoint = parseInt(entity.substr(1), 10);
|
|
2709
|
+
var output = "";
|
|
2710
|
+
return codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111 ? "\uFFFD" : (codePoint > 65535 && (codePoint -= 65536, output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023), output += String.fromCharCode(codePoint), output);
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
function escapeHtml(str) {
|
|
2714
|
+
return str.trim().replace(/[<>"'?&]/g, (c) => {
|
|
2715
|
+
let hex = c.charCodeAt(0).toString(16);
|
|
2716
|
+
return hex.length < 2 && (hex = "0" + hex), "&#x" + hex.toUpperCase() + ";";
|
|
2717
|
+
});
|
|
2718
|
+
}
|
|
2719
|
+
function textToHtml(str) {
|
|
2720
|
+
return "<div>" + escapeHtml(str).replace(/\n/g, "<br />") + "</div>";
|
|
2721
|
+
}
|
|
2722
|
+
function htmlToText(str) {
|
|
2723
|
+
return str = str.replace(/\r?\n/g, "").replace(/<\!\-\-.*?\-\->/gi, " ").replace(/<br\b[^>]*>/gi, `
|
|
2724
|
+
`).replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi, `
|
|
2725
|
+
|
|
2726
|
+
`).replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi, " ").replace(/^.*<body\b[^>]*>/i, "").replace(/^.*<\/head\b[^>]*>/i, "").replace(/^.*<\!doctype\b[^>]*>/i, "").replace(/<\/body\b[^>]*>.*$/i, "").replace(/<\/html\b[^>]*>.*$/i, "").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi, " ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi, "").replace(/<li\b[^>]*>[\n\u0001\s]*/gi, "* ").replace(/<hr\b[^>]*>/g, `
|
|
2727
|
+
-------------
|
|
2728
|
+
`).replace(/<[^>]*>/g, " ").replace(/\u0001/g, `
|
|
2729
|
+
`).replace(/[ \t]+/g, " ").replace(/^\s+$/gm, "").replace(/\n\n+/g, `
|
|
2730
|
+
|
|
2731
|
+
`).replace(/^\n+/, `
|
|
2732
|
+
`).replace(/\n+$/, `
|
|
2733
|
+
`), str = decodeHTMLEntities(str), str;
|
|
2734
|
+
}
|
|
2735
|
+
function formatTextAddress(address) {
|
|
2736
|
+
return [].concat(address.name || []).concat(address.name ? `<${address.address}>` : address.address).join(" ");
|
|
2737
|
+
}
|
|
2738
|
+
function formatTextAddresses(addresses) {
|
|
2739
|
+
let parts = [], processAddress = (address, partCounter) => {
|
|
2740
|
+
if (partCounter && parts.push(", "), address.group) {
|
|
2741
|
+
let groupStart = `${address.name}:`, groupEnd = ";";
|
|
2742
|
+
parts.push(groupStart), address.group.forEach(processAddress), parts.push(groupEnd);
|
|
2743
|
+
} else
|
|
2744
|
+
parts.push(formatTextAddress(address));
|
|
2745
|
+
};
|
|
2746
|
+
return addresses.forEach(processAddress), parts.join("");
|
|
2747
|
+
}
|
|
2748
|
+
function formatHtmlAddress(address) {
|
|
2749
|
+
return `<a href="mailto:${escapeHtml(address.address)}" class="postal-email-address">${escapeHtml(address.name || `<${address.address}>`)}</a>`;
|
|
2750
|
+
}
|
|
2751
|
+
function formatHtmlAddresses(addresses) {
|
|
2752
|
+
let parts = [], processAddress = (address, partCounter) => {
|
|
2753
|
+
if (partCounter && parts.push('<span class="postal-email-address-separator">, </span>'), address.group) {
|
|
2754
|
+
let groupStart = `<span class="postal-email-address-group">${escapeHtml(address.name)}:</span>`, groupEnd = '<span class="postal-email-address-group">;</span>';
|
|
2755
|
+
parts.push(groupStart), address.group.forEach(processAddress), parts.push(groupEnd);
|
|
2756
|
+
} else
|
|
2757
|
+
parts.push(formatHtmlAddress(address));
|
|
2758
|
+
};
|
|
2759
|
+
return addresses.forEach(processAddress), parts.join(" ");
|
|
2760
|
+
}
|
|
2761
|
+
function foldLines(str, lineLength, afterSpace) {
|
|
2762
|
+
str = (str || "").toString(), lineLength = lineLength || 76;
|
|
2763
|
+
let pos = 0, len = str.length, result = "", line, match;
|
|
2764
|
+
for (; pos < len; ) {
|
|
2765
|
+
if (line = str.substr(pos, lineLength), line.length < lineLength) {
|
|
2766
|
+
result += line;
|
|
2767
|
+
break;
|
|
2768
|
+
}
|
|
2769
|
+
if (match = line.match(/^[^\n\r]*(\r?\n|\r)/)) {
|
|
2770
|
+
line = match[0], result += line, pos += line.length;
|
|
2771
|
+
continue;
|
|
2772
|
+
} else (match = line.match(/(\s+)[^\s]*$/)) && match[0].length - (afterSpace ? (match[1] || "").length : 0) < line.length ? line = line.substr(0, line.length - (match[0].length - (afterSpace ? (match[1] || "").length : 0))) : (match = str.substr(pos + line.length).match(/^[^\s]+(\s*)/)) && (line = line + match[0].substr(0, match[0].length - (afterSpace ? 0 : (match[1] || "").length)));
|
|
2773
|
+
result += line, pos += line.length, pos < len && (result += `\r
|
|
2774
|
+
`);
|
|
2775
|
+
}
|
|
2776
|
+
return result;
|
|
2777
|
+
}
|
|
2778
|
+
function formatTextHeader(message) {
|
|
2779
|
+
let rows = [];
|
|
2780
|
+
if (message.from && rows.push({ key: "From", val: formatTextAddress(message.from) }), message.subject && rows.push({ key: "Subject", val: message.subject }), message.date) {
|
|
2781
|
+
let dateOptions = {
|
|
2782
|
+
year: "numeric",
|
|
2783
|
+
month: "numeric",
|
|
2784
|
+
day: "numeric",
|
|
2785
|
+
hour: "numeric",
|
|
2786
|
+
minute: "numeric",
|
|
2787
|
+
second: "numeric",
|
|
2788
|
+
hour12: !1
|
|
2789
|
+
}, dateStr = typeof Intl > "u" ? message.date : new Intl.DateTimeFormat("default", dateOptions).format(new Date(message.date));
|
|
2790
|
+
rows.push({ key: "Date", val: dateStr });
|
|
2791
|
+
}
|
|
2792
|
+
message.to && message.to.length && rows.push({ key: "To", val: formatTextAddresses(message.to) }), message.cc && message.cc.length && rows.push({ key: "Cc", val: formatTextAddresses(message.cc) }), message.bcc && message.bcc.length && rows.push({ key: "Bcc", val: formatTextAddresses(message.bcc) });
|
|
2793
|
+
let maxKeyLength = rows.map((r) => r.key.length).reduce((acc, cur) => cur > acc ? cur : acc, 0);
|
|
2794
|
+
rows = rows.flatMap((row) => {
|
|
2795
|
+
let sepLen = maxKeyLength - row.key.length, prefix = `${row.key}: ${" ".repeat(sepLen)}`, emptyPrefix = `${" ".repeat(row.key.length + 1)} ${" ".repeat(sepLen)}`;
|
|
2796
|
+
return foldLines(row.val, 80, !0).split(/\r?\n/).map((line) => line.trim()).map((line, i) => `${i ? emptyPrefix : prefix}${line}`);
|
|
2797
|
+
});
|
|
2798
|
+
let maxLineLength = rows.map((r) => r.length).reduce((acc, cur) => cur > acc ? cur : acc, 0), lineMarker = "-".repeat(maxLineLength);
|
|
2799
|
+
return `
|
|
2800
|
+
${lineMarker}
|
|
2801
|
+
${rows.join(`
|
|
2802
|
+
`)}
|
|
2803
|
+
${lineMarker}
|
|
2804
|
+
`;
|
|
2805
|
+
}
|
|
2806
|
+
function formatHtmlHeader(message) {
|
|
2807
|
+
let rows = [];
|
|
2808
|
+
if (message.from && rows.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${formatHtmlAddress(message.from)}</div>`), message.subject && rows.push(
|
|
2809
|
+
`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${escapeHtml(
|
|
2810
|
+
message.subject
|
|
2811
|
+
)}</div>`
|
|
2812
|
+
), message.date) {
|
|
2813
|
+
let dateOptions = {
|
|
2814
|
+
year: "numeric",
|
|
2815
|
+
month: "numeric",
|
|
2816
|
+
day: "numeric",
|
|
2817
|
+
hour: "numeric",
|
|
2818
|
+
minute: "numeric",
|
|
2819
|
+
second: "numeric",
|
|
2820
|
+
hour12: !1
|
|
2821
|
+
}, dateStr = typeof Intl > "u" ? message.date : new Intl.DateTimeFormat("default", dateOptions).format(new Date(message.date));
|
|
2822
|
+
rows.push(
|
|
2823
|
+
`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${escapeHtml(
|
|
2824
|
+
message.date
|
|
2825
|
+
)}">${escapeHtml(dateStr)}</div>`
|
|
2826
|
+
);
|
|
2827
|
+
}
|
|
2828
|
+
return message.to && message.to.length && rows.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${formatHtmlAddresses(message.to)}</div>`), message.cc && message.cc.length && rows.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${formatHtmlAddresses(message.cc)}</div>`), message.bcc && message.bcc.length && rows.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${formatHtmlAddresses(message.bcc)}</div>`), `<div class="postal-email-header">${rows.length ? '<div class="postal-email-header-row">' : ""}${rows.join(
|
|
2829
|
+
`</div>
|
|
2830
|
+
<div class="postal-email-header-row">`
|
|
2831
|
+
)}${rows.length ? "</div>" : ""}</div>`;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/address-parser.js
|
|
2835
|
+
function _handleAddress(tokens) {
|
|
2836
|
+
let token, isGroup = !1, state = "text", address, addresses = [], data = {
|
|
2837
|
+
address: [],
|
|
2838
|
+
comment: [],
|
|
2839
|
+
group: [],
|
|
2840
|
+
text: []
|
|
2841
|
+
}, i, len;
|
|
2842
|
+
for (i = 0, len = tokens.length; i < len; i++)
|
|
2843
|
+
if (token = tokens[i], token.type === "operator")
|
|
2844
|
+
switch (token.value) {
|
|
2845
|
+
case "<":
|
|
2846
|
+
state = "address";
|
|
2847
|
+
break;
|
|
2848
|
+
case "(":
|
|
2849
|
+
state = "comment";
|
|
2850
|
+
break;
|
|
2851
|
+
case ":":
|
|
2852
|
+
state = "group", isGroup = !0;
|
|
2853
|
+
break;
|
|
2854
|
+
default:
|
|
2855
|
+
state = "text";
|
|
2856
|
+
}
|
|
2857
|
+
else token.value && (state === "address" && (token.value = token.value.replace(/^[^<]*<\s*/, "")), data[state].push(token.value));
|
|
2858
|
+
if (!data.text.length && data.comment.length && (data.text = data.comment, data.comment = []), isGroup)
|
|
2859
|
+
data.text = data.text.join(" "), addresses.push({
|
|
2860
|
+
name: decodeWords(data.text || address && address.name),
|
|
2861
|
+
group: data.group.length ? addressParser(data.group.join(",")) : []
|
|
2862
|
+
});
|
|
2863
|
+
else {
|
|
2864
|
+
if (!data.address.length && data.text.length) {
|
|
2865
|
+
for (i = data.text.length - 1; i >= 0; i--)
|
|
2866
|
+
if (data.text[i].match(/^[^@\s]+@[^@\s]+$/)) {
|
|
2867
|
+
data.address = data.text.splice(i, 1);
|
|
2868
|
+
break;
|
|
2869
|
+
}
|
|
2870
|
+
let _regexHandler = function(address2) {
|
|
2871
|
+
return data.address.length ? address2 : (data.address = [address2.trim()], " ");
|
|
2872
|
+
};
|
|
2873
|
+
if (!data.address.length)
|
|
2874
|
+
for (i = data.text.length - 1; i >= 0 && (data.text[i] = data.text[i].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/, _regexHandler).trim(), !data.address.length); i--)
|
|
2875
|
+
;
|
|
2876
|
+
}
|
|
2877
|
+
if (!data.text.length && data.comment.length && (data.text = data.comment, data.comment = []), data.address.length > 1 && (data.text = data.text.concat(data.address.splice(1))), data.text = data.text.join(" "), data.address = data.address.join(" "), !data.address && /^=\?[^=]+?=$/.test(data.text.trim())) {
|
|
2878
|
+
let parsedSubAddresses = addressParser(decodeWords(data.text));
|
|
2879
|
+
if (parsedSubAddresses && parsedSubAddresses.length)
|
|
2880
|
+
return parsedSubAddresses;
|
|
2881
|
+
}
|
|
2882
|
+
if (!data.address && isGroup)
|
|
2883
|
+
return [];
|
|
2884
|
+
address = {
|
|
2885
|
+
address: data.address || data.text || "",
|
|
2886
|
+
name: decodeWords(data.text || data.address || "")
|
|
2887
|
+
}, address.address === address.name && ((address.address || "").match(/@/) ? address.name = "" : address.address = ""), addresses.push(address);
|
|
2888
|
+
}
|
|
2889
|
+
return addresses;
|
|
2890
|
+
}
|
|
2891
|
+
var Tokenizer = class {
|
|
2892
|
+
constructor(str) {
|
|
2893
|
+
this.str = (str || "").toString(), this.operatorCurrent = "", this.operatorExpecting = "", this.node = null, this.escaped = !1, this.list = [], this.operators = {
|
|
2894
|
+
'"': '"',
|
|
2895
|
+
"(": ")",
|
|
2896
|
+
"<": ">",
|
|
2897
|
+
",": "",
|
|
2898
|
+
":": ";",
|
|
2899
|
+
// Semicolons are not a legal delimiter per the RFC2822 grammar other
|
|
2900
|
+
// than for terminating a group, but they are also not valid for any
|
|
2901
|
+
// other use in this context. Given that some mail clients have
|
|
2902
|
+
// historically allowed the semicolon as a delimiter equivalent to the
|
|
2903
|
+
// comma in their UI, it makes sense to treat them the same as a comma
|
|
2904
|
+
// when used outside of a group.
|
|
2905
|
+
";": ""
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2908
|
+
/**
|
|
2909
|
+
* Tokenizes the original input string
|
|
2910
|
+
*
|
|
2911
|
+
* @return {Array} An array of operator|text tokens
|
|
2912
|
+
*/
|
|
2913
|
+
tokenize() {
|
|
2914
|
+
let chr, list = [];
|
|
2915
|
+
for (let i = 0, len = this.str.length; i < len; i++)
|
|
2916
|
+
chr = this.str.charAt(i), this.checkChar(chr);
|
|
2917
|
+
return this.list.forEach((node) => {
|
|
2918
|
+
node.value = (node.value || "").toString().trim(), node.value && list.push(node);
|
|
2919
|
+
}), list;
|
|
2920
|
+
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Checks if a character is an operator or text and acts accordingly
|
|
2923
|
+
*
|
|
2924
|
+
* @param {String} chr Character from the address field
|
|
2925
|
+
*/
|
|
2926
|
+
checkChar(chr) {
|
|
2927
|
+
if (!this.escaped) {
|
|
2928
|
+
if (chr === this.operatorExpecting) {
|
|
2929
|
+
this.node = {
|
|
2930
|
+
type: "operator",
|
|
2931
|
+
value: chr
|
|
2932
|
+
}, this.list.push(this.node), this.node = null, this.operatorExpecting = "", this.escaped = !1;
|
|
2933
|
+
return;
|
|
2934
|
+
} else if (!this.operatorExpecting && chr in this.operators) {
|
|
2935
|
+
this.node = {
|
|
2936
|
+
type: "operator",
|
|
2937
|
+
value: chr
|
|
2938
|
+
}, this.list.push(this.node), this.node = null, this.operatorExpecting = this.operators[chr], this.escaped = !1;
|
|
2939
|
+
return;
|
|
2940
|
+
} else if (['"', "'"].includes(this.operatorExpecting) && chr === "\\") {
|
|
2941
|
+
this.escaped = !0;
|
|
2942
|
+
return;
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
this.node || (this.node = {
|
|
2946
|
+
type: "text",
|
|
2947
|
+
value: ""
|
|
2948
|
+
}, this.list.push(this.node)), chr === `
|
|
2949
|
+
` && (chr = " "), (chr.charCodeAt(0) >= 33 || [" ", " "].includes(chr)) && (this.node.value += chr), this.escaped = !1;
|
|
2950
|
+
}
|
|
2951
|
+
};
|
|
2952
|
+
function addressParser(str, options) {
|
|
2953
|
+
options = options || {};
|
|
2954
|
+
let tokens = new Tokenizer(str).tokenize(), addresses = [], address = [], parsedAddresses = [];
|
|
2955
|
+
if (tokens.forEach((token) => {
|
|
2956
|
+
token.type === "operator" && (token.value === "," || token.value === ";") ? (address.length && addresses.push(address), address = []) : address.push(token);
|
|
2957
|
+
}), address.length && addresses.push(address), addresses.forEach((address2) => {
|
|
2958
|
+
address2 = _handleAddress(address2), address2.length && (parsedAddresses = parsedAddresses.concat(address2));
|
|
2959
|
+
}), options.flatten) {
|
|
2960
|
+
let addresses2 = [], walkAddressList = (list) => {
|
|
2961
|
+
list.forEach((address2) => {
|
|
2962
|
+
if (address2.group)
|
|
2963
|
+
return walkAddressList(address2.group);
|
|
2964
|
+
addresses2.push(address2);
|
|
2965
|
+
});
|
|
2966
|
+
};
|
|
2967
|
+
return walkAddressList(parsedAddresses), addresses2;
|
|
2968
|
+
}
|
|
2969
|
+
return parsedAddresses;
|
|
2970
|
+
}
|
|
2971
|
+
var address_parser_default = addressParser;
|
|
2972
|
+
|
|
2973
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/base64-encoder.js
|
|
2974
|
+
function base64ArrayBuffer(arrayBuffer) {
|
|
2975
|
+
for (var base64 = "", encodings = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bytes = new Uint8Array(arrayBuffer), byteLength = bytes.byteLength, byteRemainder = byteLength % 3, mainLength = byteLength - byteRemainder, a, b, c, d, chunk, i = 0; i < mainLength; i = i + 3)
|
|
2976
|
+
chunk = bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2], a = (chunk & 16515072) >> 18, b = (chunk & 258048) >> 12, c = (chunk & 4032) >> 6, d = chunk & 63, base64 += encodings[a] + encodings[b] + encodings[c] + encodings[d];
|
|
2977
|
+
return byteRemainder == 1 ? (chunk = bytes[mainLength], a = (chunk & 252) >> 2, b = (chunk & 3) << 4, base64 += encodings[a] + encodings[b] + "==") : byteRemainder == 2 && (chunk = bytes[mainLength] << 8 | bytes[mainLength + 1], a = (chunk & 64512) >> 10, b = (chunk & 1008) >> 4, c = (chunk & 15) << 2, base64 += encodings[a] + encodings[b] + encodings[c] + "="), base64;
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2980
|
+
// ../../node_modules/.pnpm/postal-mime@2.4.3_patch_hash=ngwql2fj2dlex3jjynq4iizhk4/node_modules/postal-mime/src/postal-mime.js
|
|
2981
|
+
var PostalMime = class _PostalMime {
|
|
2982
|
+
static parse(buf, options) {
|
|
2983
|
+
return new _PostalMime(options).parse(buf);
|
|
2984
|
+
}
|
|
2985
|
+
constructor(options) {
|
|
2986
|
+
this.options = options || {}, this.root = this.currentNode = new MimeNode({
|
|
2987
|
+
postalMime: this
|
|
2988
|
+
}), this.boundaries = [], this.textContent = {}, this.attachments = [], this.attachmentEncoding = (this.options.attachmentEncoding || "").toString().replace(/[-_\s]/g, "").trim().toLowerCase() || "arraybuffer", this.started = !1;
|
|
2989
|
+
}
|
|
2990
|
+
async finalize() {
|
|
2991
|
+
await this.root.finalize();
|
|
2992
|
+
}
|
|
2993
|
+
async processLine(line, isFinal) {
|
|
2994
|
+
let boundaries = this.boundaries;
|
|
2995
|
+
if (boundaries.length && line.length > 2 && line[0] === 45 && line[1] === 45)
|
|
2996
|
+
for (let i = boundaries.length - 1; i >= 0; i--) {
|
|
2997
|
+
let boundary = boundaries[i];
|
|
2998
|
+
if (line.length !== boundary.value.length + 2 && line.length !== boundary.value.length + 4)
|
|
2999
|
+
continue;
|
|
3000
|
+
let isTerminator = line.length === boundary.value.length + 4;
|
|
3001
|
+
if (isTerminator && (line[line.length - 2] !== 45 || line[line.length - 1] !== 45))
|
|
3002
|
+
continue;
|
|
3003
|
+
let boudaryMatches = !0;
|
|
3004
|
+
for (let i2 = 0; i2 < boundary.value.length; i2++)
|
|
3005
|
+
if (line[i2 + 2] !== boundary.value[i2]) {
|
|
3006
|
+
boudaryMatches = !1;
|
|
3007
|
+
break;
|
|
3008
|
+
}
|
|
3009
|
+
if (boudaryMatches)
|
|
3010
|
+
return isTerminator ? (await boundary.node.finalize(), this.currentNode = boundary.node.parentNode || this.root) : (await boundary.node.finalizeChildNodes(), this.currentNode = new MimeNode({
|
|
3011
|
+
postalMime: this,
|
|
3012
|
+
parentNode: boundary.node
|
|
3013
|
+
})), isFinal ? this.finalize() : void 0;
|
|
3014
|
+
}
|
|
3015
|
+
if (this.currentNode.feed(line), isFinal)
|
|
3016
|
+
return this.finalize();
|
|
3017
|
+
}
|
|
3018
|
+
readLine() {
|
|
3019
|
+
let startPos = this.readPos, endPos = this.readPos, res = () => ({
|
|
3020
|
+
bytes: new Uint8Array(this.buf, startPos, endPos - startPos),
|
|
3021
|
+
done: this.readPos >= this.av.length
|
|
3022
|
+
});
|
|
3023
|
+
for (; this.readPos < this.av.length; ) {
|
|
3024
|
+
let c = this.av[this.readPos++];
|
|
3025
|
+
if (c !== 13 && c !== 10 && (endPos = this.readPos), c === 10)
|
|
3026
|
+
return res();
|
|
3027
|
+
}
|
|
3028
|
+
return res();
|
|
3029
|
+
}
|
|
3030
|
+
async processNodeTree() {
|
|
3031
|
+
let textContent = {}, textTypes = /* @__PURE__ */ new Set(), textMap = this.textMap = /* @__PURE__ */ new Map(), forceRfc822Attachments = this.forceRfc822Attachments(), walk = async (node, alternative, related) => {
|
|
3032
|
+
if (alternative = alternative || !1, related = related || !1, node.contentType.multipart)
|
|
3033
|
+
node.contentType.multipart === "alternative" ? alternative = node : node.contentType.multipart === "related" && (related = node);
|
|
3034
|
+
else if (this.isInlineMessageRfc822(node) && !forceRfc822Attachments) {
|
|
3035
|
+
let subParser = new _PostalMime();
|
|
3036
|
+
node.subMessage = await subParser.parse(node.content), textMap.has(node) || textMap.set(node, {});
|
|
3037
|
+
let textEntry = textMap.get(node);
|
|
3038
|
+
(node.subMessage.text || !node.subMessage.html) && (textEntry.plain = textEntry.plain || [], textEntry.plain.push({ type: "subMessage", value: node.subMessage }), textTypes.add("plain")), node.subMessage.html && (textEntry.html = textEntry.html || [], textEntry.html.push({ type: "subMessage", value: node.subMessage }), textTypes.add("html")), subParser.textMap && subParser.textMap.forEach((subTextEntry, subTextNode) => {
|
|
3039
|
+
textMap.set(subTextNode, subTextEntry);
|
|
3040
|
+
});
|
|
3041
|
+
for (let attachment of node.subMessage.attachments || [])
|
|
3042
|
+
this.attachments.push(attachment);
|
|
3043
|
+
} else if (this.isInlineTextNode(node)) {
|
|
3044
|
+
let textType = node.contentType.parsed.value.substr(node.contentType.parsed.value.indexOf("/") + 1), selectorNode = alternative || node;
|
|
3045
|
+
textMap.has(selectorNode) || textMap.set(selectorNode, {});
|
|
3046
|
+
let textEntry = textMap.get(selectorNode);
|
|
3047
|
+
textEntry[textType] = textEntry[textType] || [], textEntry[textType].push({ type: "text", value: node.getTextContent() }), textTypes.add(textType);
|
|
3048
|
+
} else if (node.content) {
|
|
3049
|
+
let filename = node.contentDisposition.parsed.params.filename || node.contentType.parsed.params.name || null, attachment = {
|
|
3050
|
+
filename: filename ? decodeWords(filename) : null,
|
|
3051
|
+
mimeType: node.contentType.parsed.value,
|
|
3052
|
+
disposition: node.contentDisposition.parsed.value || null
|
|
3053
|
+
};
|
|
3054
|
+
switch (related && node.contentId && (attachment.related = !0), node.contentDescription && (attachment.description = node.contentDescription), node.contentId && (attachment.contentId = node.contentId), node.contentType.parsed.value) {
|
|
3055
|
+
// Special handling for calendar events
|
|
3056
|
+
case "text/calendar":
|
|
3057
|
+
case "application/ics": {
|
|
3058
|
+
node.contentType.parsed.params.method && (attachment.method = node.contentType.parsed.params.method.toString().toUpperCase().trim());
|
|
3059
|
+
let decodedText = node.getTextContent().replace(/\r?\n/g, `
|
|
3060
|
+
`).replace(/\n*$/, `
|
|
3061
|
+
`);
|
|
3062
|
+
attachment.content = textEncoder.encode(decodedText);
|
|
3063
|
+
break;
|
|
3064
|
+
}
|
|
3065
|
+
// Regular attachments
|
|
3066
|
+
default:
|
|
3067
|
+
attachment.content = node.content;
|
|
3068
|
+
}
|
|
3069
|
+
this.attachments.push(attachment);
|
|
3070
|
+
}
|
|
3071
|
+
for (let childNode of node.childNodes)
|
|
3072
|
+
await walk(childNode, alternative, related);
|
|
3073
|
+
};
|
|
3074
|
+
await walk(this.root, !1, []), textMap.forEach((mapEntry) => {
|
|
3075
|
+
textTypes.forEach((textType) => {
|
|
3076
|
+
if (textContent[textType] || (textContent[textType] = []), mapEntry[textType])
|
|
3077
|
+
mapEntry[textType].forEach((textEntry) => {
|
|
3078
|
+
switch (textEntry.type) {
|
|
3079
|
+
case "text":
|
|
3080
|
+
textContent[textType].push(textEntry.value);
|
|
3081
|
+
break;
|
|
3082
|
+
case "subMessage":
|
|
3083
|
+
switch (textType) {
|
|
3084
|
+
case "html":
|
|
3085
|
+
textContent[textType].push(formatHtmlHeader(textEntry.value));
|
|
3086
|
+
break;
|
|
3087
|
+
case "plain":
|
|
3088
|
+
textContent[textType].push(formatTextHeader(textEntry.value));
|
|
3089
|
+
break;
|
|
3090
|
+
}
|
|
3091
|
+
break;
|
|
3092
|
+
}
|
|
3093
|
+
});
|
|
3094
|
+
else {
|
|
3095
|
+
let alternativeType;
|
|
3096
|
+
switch (textType) {
|
|
3097
|
+
case "html":
|
|
3098
|
+
alternativeType = "plain";
|
|
3099
|
+
break;
|
|
3100
|
+
case "plain":
|
|
3101
|
+
alternativeType = "html";
|
|
3102
|
+
break;
|
|
3103
|
+
}
|
|
3104
|
+
(mapEntry[alternativeType] || []).forEach((textEntry) => {
|
|
3105
|
+
switch (textEntry.type) {
|
|
3106
|
+
case "text":
|
|
3107
|
+
switch (textType) {
|
|
3108
|
+
case "html":
|
|
3109
|
+
textContent[textType].push(textToHtml(textEntry.value));
|
|
3110
|
+
break;
|
|
3111
|
+
case "plain":
|
|
3112
|
+
textContent[textType].push(htmlToText(textEntry.value));
|
|
3113
|
+
break;
|
|
3114
|
+
}
|
|
3115
|
+
break;
|
|
3116
|
+
case "subMessage":
|
|
3117
|
+
switch (textType) {
|
|
3118
|
+
case "html":
|
|
3119
|
+
textContent[textType].push(formatHtmlHeader(textEntry.value));
|
|
3120
|
+
break;
|
|
3121
|
+
case "plain":
|
|
3122
|
+
textContent[textType].push(formatTextHeader(textEntry.value));
|
|
3123
|
+
break;
|
|
3124
|
+
}
|
|
3125
|
+
break;
|
|
3126
|
+
}
|
|
3127
|
+
});
|
|
3128
|
+
}
|
|
3129
|
+
});
|
|
3130
|
+
}), Object.keys(textContent).forEach((textType) => {
|
|
3131
|
+
textContent[textType] = textContent[textType].join(`
|
|
3132
|
+
`);
|
|
3133
|
+
}), this.textContent = textContent;
|
|
3134
|
+
}
|
|
3135
|
+
isInlineTextNode(node) {
|
|
3136
|
+
if (node.contentDisposition.parsed.value === "attachment")
|
|
3137
|
+
return !1;
|
|
3138
|
+
switch (node.contentType.parsed.value) {
|
|
3139
|
+
case "text/html":
|
|
3140
|
+
case "text/plain":
|
|
3141
|
+
return !0;
|
|
3142
|
+
default:
|
|
3143
|
+
return !1;
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
isInlineMessageRfc822(node) {
|
|
3147
|
+
return node.contentType.parsed.value !== "message/rfc822" ? !1 : (node.contentDisposition.parsed.value || (this.options.rfc822Attachments ? "attachment" : "inline")) === "inline";
|
|
3148
|
+
}
|
|
3149
|
+
// Check if this is a specially crafted report email where message/rfc822 content should not be inlined
|
|
3150
|
+
forceRfc822Attachments() {
|
|
3151
|
+
if (this.options.forceRfc822Attachments)
|
|
3152
|
+
return !0;
|
|
3153
|
+
let forceRfc822Attachments = !1, walk = (node) => {
|
|
3154
|
+
node.contentType.multipart || ["message/delivery-status", "message/feedback-report"].includes(node.contentType.parsed.value) && (forceRfc822Attachments = !0);
|
|
3155
|
+
for (let childNode of node.childNodes)
|
|
3156
|
+
walk(childNode);
|
|
3157
|
+
};
|
|
3158
|
+
return walk(this.root), forceRfc822Attachments;
|
|
3159
|
+
}
|
|
3160
|
+
async resolveStream(stream) {
|
|
3161
|
+
let chunkLen = 0, chunks = [], reader = stream.getReader();
|
|
3162
|
+
for (; ; ) {
|
|
3163
|
+
let { done, value } = await reader.read();
|
|
3164
|
+
if (done)
|
|
3165
|
+
break;
|
|
3166
|
+
chunks.push(value), chunkLen += value.length;
|
|
3167
|
+
}
|
|
3168
|
+
let result = new Uint8Array(chunkLen), chunkPointer = 0;
|
|
3169
|
+
for (let chunk of chunks)
|
|
3170
|
+
result.set(chunk, chunkPointer), chunkPointer += chunk.length;
|
|
3171
|
+
return result;
|
|
3172
|
+
}
|
|
3173
|
+
async parse(buf) {
|
|
3174
|
+
if (this.started)
|
|
3175
|
+
throw new Error("Can not reuse parser, create a new PostalMime object");
|
|
3176
|
+
for (this.started = !0, buf && typeof buf.getReader == "function" && (buf = await this.resolveStream(buf)), buf = buf || new ArrayBuffer(0), typeof buf == "string" && (buf = textEncoder.encode(buf)), (buf instanceof Blob || Object.prototype.toString.call(buf) === "[object Blob]") && (buf = await blobToArrayBuffer(buf)), buf.buffer instanceof ArrayBuffer && (buf = new Uint8Array(buf).buffer), this.buf = buf, this.av = new Uint8Array(buf), this.readPos = 0; this.readPos < this.av.length; ) {
|
|
3177
|
+
let line = this.readLine();
|
|
3178
|
+
await this.processLine(line.bytes, line.done);
|
|
3179
|
+
}
|
|
3180
|
+
await this.processNodeTree();
|
|
3181
|
+
let message = {
|
|
3182
|
+
headers: this.root.headers.map((entry) => ({ key: entry.key, value: entry.value })).reverse()
|
|
3183
|
+
};
|
|
3184
|
+
for (let key of ["from", "sender"]) {
|
|
3185
|
+
let addressHeader = this.root.headers.find((line) => line.key === key);
|
|
3186
|
+
if (addressHeader && addressHeader.value) {
|
|
3187
|
+
let addresses = address_parser_default(addressHeader.value);
|
|
3188
|
+
addresses && addresses.length && (message[key] = addresses[0]);
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
for (let key of ["delivered-to", "return-path"]) {
|
|
3192
|
+
let addressHeader = this.root.headers.find((line) => line.key === key);
|
|
3193
|
+
if (addressHeader && addressHeader.value) {
|
|
3194
|
+
let addresses = address_parser_default(addressHeader.value);
|
|
3195
|
+
if (addresses && addresses.length && addresses[0].address) {
|
|
3196
|
+
let camelKey = key.replace(/\-(.)/g, (o, c) => c.toUpperCase());
|
|
3197
|
+
message[camelKey] = addresses[0].address;
|
|
3198
|
+
}
|
|
3199
|
+
}
|
|
3200
|
+
}
|
|
3201
|
+
for (let key of ["to", "cc", "bcc", "reply-to"]) {
|
|
3202
|
+
let addressHeaders = this.root.headers.filter((line) => line.key === key), addresses = [];
|
|
3203
|
+
if (addressHeaders.filter((entry) => entry && entry.value).map((entry) => address_parser_default(entry.value)).forEach((parsed) => addresses = addresses.concat(parsed || [])), addresses && addresses.length) {
|
|
3204
|
+
let camelKey = key.replace(/\-(.)/g, (o, c) => c.toUpperCase());
|
|
3205
|
+
message[camelKey] = addresses;
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
for (let key of ["subject", "message-id", "in-reply-to", "references"]) {
|
|
3209
|
+
let header = this.root.headers.find((line) => line.key === key);
|
|
3210
|
+
if (header && header.value) {
|
|
3211
|
+
let camelKey = key.replace(/\-(.)/g, (o, c) => c.toUpperCase());
|
|
3212
|
+
message[camelKey] = decodeWords(header.value);
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
let dateHeader = this.root.headers.find((line) => line.key === "date");
|
|
3216
|
+
if (dateHeader) {
|
|
3217
|
+
let date = new Date(dateHeader.value);
|
|
3218
|
+
!date || date.toString() === "Invalid Date" ? date = dateHeader.value : date = date.toISOString(), message.date = date;
|
|
3219
|
+
}
|
|
3220
|
+
switch (this.textContent?.html && (message.html = this.textContent.html), this.textContent?.plain && (message.text = this.textContent.plain), message.attachments = this.attachments, this.attachmentEncoding) {
|
|
3221
|
+
case "arraybuffer":
|
|
3222
|
+
break;
|
|
3223
|
+
case "base64":
|
|
3224
|
+
for (let attachment of message.attachments || [])
|
|
3225
|
+
attachment?.content && (attachment.content = base64ArrayBuffer(attachment.content), attachment.encoding = "base64");
|
|
3226
|
+
break;
|
|
3227
|
+
case "utf8":
|
|
3228
|
+
let attachmentDecoder = new TextDecoder("utf8");
|
|
3229
|
+
for (let attachment of message.attachments || [])
|
|
3230
|
+
attachment?.content && (attachment.content = attachmentDecoder.decode(attachment.content), attachment.encoding = "utf8");
|
|
3231
|
+
break;
|
|
3232
|
+
default:
|
|
3233
|
+
throw new Error("Unknwon attachment encoding");
|
|
3234
|
+
}
|
|
3235
|
+
return message;
|
|
3236
|
+
}
|
|
3237
|
+
};
|
|
3238
|
+
|
|
3239
|
+
// src/workers/email/constants.ts
|
|
3240
|
+
var RAW_EMAIL = "EmailMessage::raw";
|
|
3241
|
+
|
|
3242
|
+
// src/workers/email/validate.ts
|
|
3243
|
+
async function isEmailReplyable(email, incomingEmailHeaders, log) {
|
|
3244
|
+
let autoResponseSuppress = incomingEmailHeaders.get("x-auto-response-suppress")?.toLowerCase();
|
|
3245
|
+
if (autoResponseSuppress !== void 0 && autoResponseSuppress !== "none")
|
|
3246
|
+
return !1;
|
|
3247
|
+
let autoSubmittedValue = incomingEmailHeaders.get("auto-submitted")?.toLowerCase();
|
|
3248
|
+
return autoSubmittedValue !== void 0 && autoSubmittedValue !== "no" ? !1 : email.inReplyTo === void 0 && email.references === void 0 ? !0 : email.inReplyTo !== void 0 && email.references !== void 0 ? (email.references.match(/@/g)?.length ?? 0) >= 100 ? (await log(
|
|
3249
|
+
red(
|
|
3250
|
+
`The incoming email's "References" header has more than 100 entries. As such, your Worker cannot respond to this email. Refer to https://developers.cloudflare.com/email-routing/email-workers/reply-email-workers/.`
|
|
3251
|
+
)
|
|
3252
|
+
), !1) : !0 : !1;
|
|
3253
|
+
}
|
|
3254
|
+
async function validateReply(incomingMessage, replyMessage) {
|
|
3255
|
+
let rawEmail = replyMessage[RAW_EMAIL], rawEmailBuffer = new Uint8Array(
|
|
3256
|
+
await new Response(rawEmail).arrayBuffer()
|
|
3257
|
+
), parsedReply;
|
|
3258
|
+
try {
|
|
3259
|
+
parsedReply = await PostalMime.parse(rawEmailBuffer);
|
|
3260
|
+
} catch (e) {
|
|
3261
|
+
let error = e;
|
|
3262
|
+
throw new Error(`could not parse email: ${error.message}`);
|
|
3263
|
+
}
|
|
3264
|
+
if (parsedReply.from?.address !== replyMessage.from)
|
|
3265
|
+
throw new Error("From: header does not match mail from");
|
|
3266
|
+
if (parsedReply.messageId === void 0)
|
|
3267
|
+
throw new Error("invalid message-id");
|
|
3268
|
+
if (new Headers(
|
|
3269
|
+
parsedReply.headers.map((header) => [header.key, header.value])
|
|
3270
|
+
).get("received") !== null)
|
|
3271
|
+
throw new Error("invalid headers set");
|
|
3272
|
+
if (parsedReply.inReplyTo === void 0)
|
|
3273
|
+
throw new Error("no In-Reply-To header found in reply message");
|
|
3274
|
+
if (parsedReply.inReplyTo !== incomingMessage.messageId)
|
|
3275
|
+
throw new Error("In-Reply-To does not match original Message-ID");
|
|
3276
|
+
let incomingReferences = incomingMessage.references ?? "";
|
|
3277
|
+
if (parsedReply.references !== void 0) {
|
|
3278
|
+
if (!(parsedReply.references.includes(incomingMessage.messageId) && parsedReply.references.includes(incomingReferences)))
|
|
3279
|
+
throw new Error("provided References header is invalid");
|
|
3280
|
+
} else {
|
|
3281
|
+
let replyReferences = `References: ${incomingMessage.messageId}${incomingReferences.length > 0 ? " " : ""}${incomingReferences}\r
|
|
3282
|
+
`, encodedReferences = new TextEncoder().encode(replyReferences), finalReplyEmail = new Uint8Array(
|
|
3283
|
+
encodedReferences.byteLength + rawEmailBuffer.byteLength
|
|
3284
|
+
);
|
|
3285
|
+
return finalReplyEmail.set(encodedReferences, 0), finalReplyEmail.set(rawEmailBuffer, encodedReferences.byteLength), finalReplyEmail;
|
|
3286
|
+
}
|
|
3287
|
+
return rawEmailBuffer;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
// src/workers/core/email.ts
|
|
3291
|
+
$.enabled = !0;
|
|
3292
|
+
function renderEmailHeaders(headers) {
|
|
3293
|
+
return headers ? `
|
|
3294
|
+
headers:
|
|
3295
|
+
${[...headers.entries()].map(([k, v]) => ` ${k}: ${v}`).join(`
|
|
3296
|
+
`)}` : "";
|
|
3297
|
+
}
|
|
3298
|
+
async function handleEmail(params, request, service, env, ctx) {
|
|
3299
|
+
let from = params.get("from"), to = params.get("to");
|
|
3300
|
+
if (!request.body || !from || !to)
|
|
3301
|
+
return new Response(
|
|
3302
|
+
"Invalid email. Your request must include URL parameters specifying the `from` and `to` addresses, as well as an email in the body",
|
|
3303
|
+
{
|
|
3304
|
+
status: 400
|
|
3305
|
+
}
|
|
3306
|
+
);
|
|
3307
|
+
let clonedRequest = request.clone();
|
|
3308
|
+
assert(clonedRequest.body !== null, "Cloned request body is null");
|
|
3309
|
+
let incomingEmailRaw = new Uint8Array(await request.arrayBuffer());
|
|
3310
|
+
if (incomingEmailRaw.byteLength > 25 * 1024 * 1024)
|
|
3311
|
+
return new Response(
|
|
3312
|
+
"Email message size is bigger than the production size limit of 25MiB. Local development has a lower limit of 1Mib.",
|
|
3313
|
+
{
|
|
3314
|
+
status: 400
|
|
3315
|
+
}
|
|
3316
|
+
);
|
|
3317
|
+
if (incomingEmailRaw.byteLength > 1024 * 1024)
|
|
3318
|
+
return new Response(
|
|
3319
|
+
"Email message size is within the production size limit of 25MiB, but exceeds the lower 1Mib limit for testing locally.",
|
|
3320
|
+
{
|
|
3321
|
+
status: 400
|
|
3322
|
+
}
|
|
3323
|
+
);
|
|
3324
|
+
let parsedIncomingEmail;
|
|
3325
|
+
try {
|
|
3326
|
+
parsedIncomingEmail = await PostalMime.parse(incomingEmailRaw);
|
|
3327
|
+
} catch (e) {
|
|
3328
|
+
let error = e;
|
|
3329
|
+
return new Response(
|
|
3330
|
+
`Email could not be parsed: ${error.name}: ${error.message}`,
|
|
3331
|
+
{ status: 400 }
|
|
3332
|
+
);
|
|
3333
|
+
}
|
|
3334
|
+
if (parsedIncomingEmail.messageId === void 0)
|
|
3335
|
+
return new Response(
|
|
3336
|
+
"Email could not be parsed: invalid or no message id provided",
|
|
3337
|
+
{ status: 400 }
|
|
3338
|
+
);
|
|
3339
|
+
from !== parsedIncomingEmail.from.address && await env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3340
|
+
"http://localhost/core/log",
|
|
3341
|
+
{
|
|
3342
|
+
method: "POST",
|
|
3343
|
+
headers: { [SharedHeaders.LOG_LEVEL]: LogLevel.WARN.toString() },
|
|
3344
|
+
body: `${yellow(`Provided MAIL FROM address doesn't match the email message's "From" header`)}:
|
|
3345
|
+
MAIL FROM: ${from}
|
|
3346
|
+
"From" header: ${parsedIncomingEmail.from.address}`
|
|
3347
|
+
}
|
|
3348
|
+
), parsedIncomingEmail.to?.map((addr) => addr.address).includes(to) || await env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3349
|
+
"http://localhost/core/log",
|
|
3350
|
+
{
|
|
3351
|
+
method: "POST",
|
|
3352
|
+
headers: { [SharedHeaders.LOG_LEVEL]: LogLevel.WARN.toString() },
|
|
3353
|
+
body: `${yellow(`Provided RCPT TO address doesn't match any "To" header in the email message`)}:
|
|
3354
|
+
RCPT TO: ${to}
|
|
3355
|
+
"To" header: ${parsedIncomingEmail.to?.map((addr) => addr.address).join(", ")}`
|
|
3356
|
+
}
|
|
3357
|
+
);
|
|
3358
|
+
let incomingEmailHeaders = new Headers(
|
|
3359
|
+
parsedIncomingEmail.headers.map((header) => [header.key, header.value])
|
|
3360
|
+
), maybeClientError;
|
|
3361
|
+
return await service.email(
|
|
3362
|
+
// Construct a ForwardableEmailMessage-like object. We need
|
|
3363
|
+
// - ForwardableEmailMessage to be able to be passed across JSRPC (to support e.g. userWorker.email(ForwardableEmailMessage))
|
|
3364
|
+
// - ForwardableEmailMessage properties to be synchronously available (to match production). This rules out a class extending `RpcStub`
|
|
3365
|
+
// However, unlike EmailMessage (see email.worker.ts) it doesn't need to be user-constructable, and so we can just use an object with `satisfies`
|
|
3366
|
+
{
|
|
3367
|
+
from,
|
|
3368
|
+
to,
|
|
3369
|
+
raw: clonedRequest.body,
|
|
3370
|
+
rawSize: incomingEmailRaw.byteLength,
|
|
3371
|
+
headers: incomingEmailHeaders,
|
|
3372
|
+
setReject: (reason) => {
|
|
3373
|
+
ctx.waitUntil(
|
|
3374
|
+
env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3375
|
+
"http://localhost/core/log",
|
|
3376
|
+
{
|
|
3377
|
+
method: "POST",
|
|
3378
|
+
headers: { [SharedHeaders.LOG_LEVEL]: LogLevel.ERROR.toString() },
|
|
3379
|
+
body: `${red("Email handler rejected message")}${reset(` with the following reason: "${reason}"`)}`
|
|
3380
|
+
}
|
|
3381
|
+
)
|
|
3382
|
+
), maybeClientError = reason;
|
|
3383
|
+
},
|
|
3384
|
+
forward: async (rcptTo, headers) => (await env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3385
|
+
"http://localhost/core/log",
|
|
3386
|
+
{
|
|
3387
|
+
method: "POST",
|
|
3388
|
+
headers: { [SharedHeaders.LOG_LEVEL]: LogLevel.INFO.toString() },
|
|
3389
|
+
body: `${blue("Email handler forwarded message")}${reset(` with
|
|
3390
|
+
rcptTo: ${rcptTo}${renderEmailHeaders(headers)}`)}`
|
|
3391
|
+
}
|
|
3392
|
+
), { messageId: `${crypto.randomUUID().replaceAll("-", "")}@example.com` }),
|
|
3393
|
+
reply: async (replyMessage) => {
|
|
3394
|
+
if (!await isEmailReplyable(
|
|
3395
|
+
parsedIncomingEmail,
|
|
3396
|
+
incomingEmailHeaders,
|
|
3397
|
+
async (msg) => {
|
|
3398
|
+
await env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3399
|
+
"http://localhost/core/log",
|
|
3400
|
+
{
|
|
3401
|
+
method: "POST",
|
|
3402
|
+
headers: {
|
|
3403
|
+
[SharedHeaders.LOG_LEVEL]: LogLevel.ERROR.toString()
|
|
3404
|
+
},
|
|
3405
|
+
body: msg
|
|
3406
|
+
}
|
|
3407
|
+
);
|
|
3408
|
+
}
|
|
3409
|
+
))
|
|
3410
|
+
throw new Error("Original email is not replyable");
|
|
3411
|
+
let finalReply = await validateReply(
|
|
3412
|
+
parsedIncomingEmail,
|
|
3413
|
+
replyMessage
|
|
3414
|
+
), file = await (await env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3415
|
+
"http://localhost/core/store-temp-file?extension=eml&prefix=email",
|
|
3416
|
+
{
|
|
3417
|
+
method: "POST",
|
|
3418
|
+
body: finalReply
|
|
3419
|
+
}
|
|
3420
|
+
)).text();
|
|
3421
|
+
return await env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
3422
|
+
"http://localhost/core/log",
|
|
3423
|
+
{
|
|
3424
|
+
method: "POST",
|
|
3425
|
+
headers: { [SharedHeaders.LOG_LEVEL]: LogLevel.INFO.toString() },
|
|
3426
|
+
body: `${blue("Email handler replied to sender")}${reset(` with the following message:
|
|
3427
|
+
${file}`)}`
|
|
3428
|
+
}
|
|
3429
|
+
), { messageId: `${crypto.randomUUID().replaceAll("-", "")}@example.com` };
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
), maybeClientError !== void 0 ? new Response(
|
|
3433
|
+
`Worker rejected email with the following reason: ${maybeClientError}`,
|
|
3434
|
+
{ status: 400 }
|
|
3435
|
+
) : new Response("Worker successfully processed email", {
|
|
3436
|
+
status: 200
|
|
3437
|
+
});
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
// src/workers/core/http.ts
|
|
3441
|
+
var STATUS_CODES = {
|
|
3442
|
+
100: "Continue",
|
|
3443
|
+
101: "Switching Protocols",
|
|
3444
|
+
102: "Processing",
|
|
3445
|
+
103: "Early Hints",
|
|
3446
|
+
200: "OK",
|
|
3447
|
+
201: "Created",
|
|
3448
|
+
202: "Accepted",
|
|
3449
|
+
203: "Non-Authoritative Information",
|
|
3450
|
+
204: "No Content",
|
|
3451
|
+
205: "Reset Content",
|
|
3452
|
+
206: "Partial Content",
|
|
3453
|
+
207: "Multi-Status",
|
|
3454
|
+
208: "Already Reported",
|
|
3455
|
+
226: "IM Used",
|
|
3456
|
+
300: "Multiple Choices",
|
|
3457
|
+
301: "Moved Permanently",
|
|
3458
|
+
302: "Found",
|
|
3459
|
+
303: "See Other",
|
|
3460
|
+
304: "Not Modified",
|
|
3461
|
+
305: "Use Proxy",
|
|
3462
|
+
307: "Temporary Redirect",
|
|
3463
|
+
308: "Permanent Redirect",
|
|
3464
|
+
400: "Bad Request",
|
|
3465
|
+
401: "Unauthorized",
|
|
3466
|
+
402: "Payment Required",
|
|
3467
|
+
403: "Forbidden",
|
|
3468
|
+
404: "Not Found",
|
|
3469
|
+
405: "Method Not Allowed",
|
|
3470
|
+
406: "Not Acceptable",
|
|
3471
|
+
407: "Proxy Authentication Required",
|
|
3472
|
+
408: "Request Timeout",
|
|
3473
|
+
409: "Conflict",
|
|
3474
|
+
410: "Gone",
|
|
3475
|
+
411: "Length Required",
|
|
3476
|
+
412: "Precondition Failed",
|
|
3477
|
+
413: "Payload Too Large",
|
|
3478
|
+
414: "URI Too Long",
|
|
3479
|
+
415: "Unsupported Media Type",
|
|
3480
|
+
416: "Range Not Satisfiable",
|
|
3481
|
+
417: "Expectation Failed",
|
|
3482
|
+
418: "I'm a Teapot",
|
|
3483
|
+
421: "Misdirected Request",
|
|
3484
|
+
422: "Unprocessable Entity",
|
|
3485
|
+
423: "Locked",
|
|
3486
|
+
424: "Failed Dependency",
|
|
3487
|
+
425: "Too Early",
|
|
3488
|
+
426: "Upgrade Required",
|
|
3489
|
+
428: "Precondition Required",
|
|
3490
|
+
429: "Too Many Requests",
|
|
3491
|
+
431: "Request Header Fields Too Large",
|
|
3492
|
+
451: "Unavailable For Legal Reasons",
|
|
3493
|
+
500: "Internal Server Error",
|
|
3494
|
+
501: "Not Implemented",
|
|
3495
|
+
502: "Bad Gateway",
|
|
3496
|
+
503: "Service Unavailable",
|
|
3497
|
+
504: "Gateway Timeout",
|
|
3498
|
+
505: "HTTP Version Not Supported",
|
|
3499
|
+
506: "Variant Also Negotiates",
|
|
3500
|
+
507: "Insufficient Storage",
|
|
3501
|
+
508: "Loop Detected",
|
|
3502
|
+
509: "Bandwidth Limit Exceeded",
|
|
3503
|
+
510: "Not Extended",
|
|
3504
|
+
511: "Network Authentication Required"
|
|
3505
|
+
};
|
|
3506
|
+
|
|
3507
|
+
// src/workers/core/routing.ts
|
|
3508
|
+
function matchRoutes(routes, url) {
|
|
3509
|
+
for (let route of routes) {
|
|
3510
|
+
if (route.protocol && route.protocol !== url.protocol) continue;
|
|
3511
|
+
if (route.allowHostnamePrefix) {
|
|
3512
|
+
if (!url.hostname.endsWith(route.hostname)) continue;
|
|
3513
|
+
} else if (url.hostname !== route.hostname) continue;
|
|
3514
|
+
let path = url.pathname + url.search;
|
|
3515
|
+
if (route.allowPathSuffix) {
|
|
3516
|
+
if (!path.startsWith(route.path)) continue;
|
|
3517
|
+
} else if (path !== route.path) continue;
|
|
3518
|
+
return route.target;
|
|
3519
|
+
}
|
|
3520
|
+
return null;
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
// src/workers/core/scheduled.ts
|
|
3524
|
+
async function handleScheduled(params, service) {
|
|
3525
|
+
let time = params.get("time"), scheduledTime = time ? new Date(parseInt(time)) : void 0, cron = params.get("cron") ?? void 0, result = await service.scheduled({
|
|
3526
|
+
scheduledTime,
|
|
3527
|
+
cron
|
|
3528
|
+
});
|
|
3529
|
+
return new Response(result.outcome, {
|
|
3530
|
+
status: result.outcome === "ok" ? 200 : 500
|
|
3531
|
+
});
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
// src/workers/core/proxy.worker.ts
|
|
3535
|
+
import assert3 from "node:assert";
|
|
3536
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
3537
|
+
|
|
3538
|
+
// ../../node_modules/.pnpm/devalue@5.6.3/node_modules/devalue/src/utils.js
|
|
3539
|
+
var DevalueError = class extends Error {
|
|
3540
|
+
/**
|
|
3541
|
+
* @param {string} message
|
|
3542
|
+
* @param {string[]} keys
|
|
3543
|
+
* @param {any} [value] - The value that failed to be serialized
|
|
3544
|
+
* @param {any} [root] - The root value being serialized
|
|
3545
|
+
*/
|
|
3546
|
+
constructor(message, keys, value, root) {
|
|
3547
|
+
super(message), this.name = "DevalueError", this.path = keys.join(""), this.value = value, this.root = root;
|
|
3548
|
+
}
|
|
3549
|
+
};
|
|
3550
|
+
function is_primitive(thing) {
|
|
3551
|
+
return Object(thing) !== thing;
|
|
3552
|
+
}
|
|
3553
|
+
var object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(
|
|
3554
|
+
Object.prototype
|
|
3555
|
+
).sort().join("\0");
|
|
3556
|
+
function is_plain_object(thing) {
|
|
3557
|
+
let proto = Object.getPrototypeOf(thing);
|
|
3558
|
+
return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null || Object.getOwnPropertyNames(proto).sort().join("\0") === object_proto_names;
|
|
3559
|
+
}
|
|
3560
|
+
function get_type(thing) {
|
|
3561
|
+
return Object.prototype.toString.call(thing).slice(8, -1);
|
|
3562
|
+
}
|
|
3563
|
+
function get_escaped_char(char) {
|
|
3564
|
+
switch (char) {
|
|
3565
|
+
case '"':
|
|
3566
|
+
return '\\"';
|
|
3567
|
+
case "<":
|
|
3568
|
+
return "\\u003C";
|
|
3569
|
+
case "\\":
|
|
3570
|
+
return "\\\\";
|
|
3571
|
+
case `
|
|
3572
|
+
`:
|
|
3573
|
+
return "\\n";
|
|
3574
|
+
case "\r":
|
|
3575
|
+
return "\\r";
|
|
3576
|
+
case " ":
|
|
3577
|
+
return "\\t";
|
|
3578
|
+
case "\b":
|
|
3579
|
+
return "\\b";
|
|
3580
|
+
case "\f":
|
|
3581
|
+
return "\\f";
|
|
3582
|
+
case "\u2028":
|
|
3583
|
+
return "\\u2028";
|
|
3584
|
+
case "\u2029":
|
|
3585
|
+
return "\\u2029";
|
|
3586
|
+
default:
|
|
3587
|
+
return char < " " ? `\\u${char.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
function stringify_string(str) {
|
|
3591
|
+
let result = "", last_pos = 0, len = str.length;
|
|
3592
|
+
for (let i = 0; i < len; i += 1) {
|
|
3593
|
+
let char = str[i], replacement = get_escaped_char(char);
|
|
3594
|
+
replacement && (result += str.slice(last_pos, i) + replacement, last_pos = i + 1);
|
|
3595
|
+
}
|
|
3596
|
+
return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
|
|
3597
|
+
}
|
|
3598
|
+
function enumerable_symbols(object) {
|
|
3599
|
+
return Object.getOwnPropertySymbols(object).filter(
|
|
3600
|
+
(symbol) => Object.getOwnPropertyDescriptor(object, symbol).enumerable
|
|
3601
|
+
);
|
|
3602
|
+
}
|
|
3603
|
+
var is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
3604
|
+
function stringify_key(key) {
|
|
3605
|
+
return is_identifier.test(key) ? "." + key : "[" + JSON.stringify(key) + "]";
|
|
3606
|
+
}
|
|
3607
|
+
function is_valid_array_index(s) {
|
|
3608
|
+
if (s.length === 0 || s.length > 1 && s.charCodeAt(0) === 48) return !1;
|
|
3609
|
+
for (let i = 0; i < s.length; i++) {
|
|
3610
|
+
let c = s.charCodeAt(i);
|
|
3611
|
+
if (c < 48 || c > 57) return !1;
|
|
3612
|
+
}
|
|
3613
|
+
let n = +s;
|
|
3614
|
+
return !(n >= 2 ** 32 - 1 || n < 0);
|
|
3615
|
+
}
|
|
3616
|
+
function valid_array_indices(array) {
|
|
3617
|
+
let keys = Object.keys(array);
|
|
3618
|
+
for (var i = keys.length - 1; i >= 0 && !is_valid_array_index(keys[i]); i--)
|
|
3619
|
+
;
|
|
3620
|
+
return keys.length = i + 1, keys;
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
// ../../node_modules/.pnpm/devalue@5.6.3/node_modules/devalue/src/base64.js
|
|
3624
|
+
function encode64(arraybuffer) {
|
|
3625
|
+
let dv = new DataView(arraybuffer), binaryString = "";
|
|
3626
|
+
for (let i = 0; i < arraybuffer.byteLength; i++)
|
|
3627
|
+
binaryString += String.fromCharCode(dv.getUint8(i));
|
|
3628
|
+
return binaryToAscii(binaryString);
|
|
3629
|
+
}
|
|
3630
|
+
function decode64(string) {
|
|
3631
|
+
let binaryString = asciiToBinary(string), arraybuffer = new ArrayBuffer(binaryString.length), dv = new DataView(arraybuffer);
|
|
3632
|
+
for (let i = 0; i < arraybuffer.byteLength; i++)
|
|
3633
|
+
dv.setUint8(i, binaryString.charCodeAt(i));
|
|
3634
|
+
return arraybuffer;
|
|
3635
|
+
}
|
|
3636
|
+
var KEY_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
3637
|
+
function asciiToBinary(data) {
|
|
3638
|
+
data.length % 4 === 0 && (data = data.replace(/==?$/, ""));
|
|
3639
|
+
let output = "", buffer = 0, accumulatedBits = 0;
|
|
3640
|
+
for (let i = 0; i < data.length; i++)
|
|
3641
|
+
buffer <<= 6, buffer |= KEY_STRING.indexOf(data[i]), accumulatedBits += 6, accumulatedBits === 24 && (output += String.fromCharCode((buffer & 16711680) >> 16), output += String.fromCharCode((buffer & 65280) >> 8), output += String.fromCharCode(buffer & 255), buffer = accumulatedBits = 0);
|
|
3642
|
+
return accumulatedBits === 12 ? (buffer >>= 4, output += String.fromCharCode(buffer)) : accumulatedBits === 18 && (buffer >>= 2, output += String.fromCharCode((buffer & 65280) >> 8), output += String.fromCharCode(buffer & 255)), output;
|
|
3643
|
+
}
|
|
3644
|
+
function binaryToAscii(str) {
|
|
3645
|
+
let out = "";
|
|
3646
|
+
for (let i = 0; i < str.length; i += 3) {
|
|
3647
|
+
let groupsOfSix = [void 0, void 0, void 0, void 0];
|
|
3648
|
+
groupsOfSix[0] = str.charCodeAt(i) >> 2, groupsOfSix[1] = (str.charCodeAt(i) & 3) << 4, str.length > i + 1 && (groupsOfSix[1] |= str.charCodeAt(i + 1) >> 4, groupsOfSix[2] = (str.charCodeAt(i + 1) & 15) << 2), str.length > i + 2 && (groupsOfSix[2] |= str.charCodeAt(i + 2) >> 6, groupsOfSix[3] = str.charCodeAt(i + 2) & 63);
|
|
3649
|
+
for (let j = 0; j < groupsOfSix.length; j++)
|
|
3650
|
+
typeof groupsOfSix[j] > "u" ? out += "=" : out += KEY_STRING[groupsOfSix[j]];
|
|
3651
|
+
}
|
|
3652
|
+
return out;
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
// ../../node_modules/.pnpm/devalue@5.6.3/node_modules/devalue/src/parse.js
|
|
3656
|
+
function parse(serialized, revivers) {
|
|
3657
|
+
return unflatten(JSON.parse(serialized), revivers);
|
|
3658
|
+
}
|
|
3659
|
+
function unflatten(parsed, revivers) {
|
|
3660
|
+
if (typeof parsed == "number") return hydrate(parsed, !0);
|
|
3661
|
+
if (!Array.isArray(parsed) || parsed.length === 0)
|
|
3662
|
+
throw new Error("Invalid input");
|
|
3663
|
+
let values = (
|
|
3664
|
+
/** @type {any[]} */
|
|
3665
|
+
parsed
|
|
3666
|
+
), hydrated = Array(values.length), hydrating = null;
|
|
3667
|
+
function hydrate(index, standalone = !1) {
|
|
3668
|
+
if (index === -1) return;
|
|
3669
|
+
if (index === -3) return NaN;
|
|
3670
|
+
if (index === -4) return 1 / 0;
|
|
3671
|
+
if (index === -5) return -1 / 0;
|
|
3672
|
+
if (index === -6) return -0;
|
|
3673
|
+
if (standalone || typeof index != "number")
|
|
3674
|
+
throw new Error("Invalid input");
|
|
3675
|
+
if (index in hydrated) return hydrated[index];
|
|
3676
|
+
let value = values[index];
|
|
3677
|
+
if (!value || typeof value != "object")
|
|
3678
|
+
hydrated[index] = value;
|
|
3679
|
+
else if (Array.isArray(value))
|
|
3680
|
+
if (typeof value[0] == "string") {
|
|
3681
|
+
let type = value[0], reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : void 0;
|
|
3682
|
+
if (reviver) {
|
|
3683
|
+
let i = value[1];
|
|
3684
|
+
if (typeof i != "number" && (i = values.push(value[1]) - 1), hydrating ??= /* @__PURE__ */ new Set(), hydrating.has(i))
|
|
3685
|
+
throw new Error("Invalid circular reference");
|
|
3686
|
+
return hydrating.add(i), hydrated[index] = reviver(hydrate(i)), hydrating.delete(i), hydrated[index];
|
|
3687
|
+
}
|
|
3688
|
+
switch (type) {
|
|
3689
|
+
case "Date":
|
|
3690
|
+
hydrated[index] = new Date(value[1]);
|
|
3691
|
+
break;
|
|
3692
|
+
case "Set":
|
|
3693
|
+
let set = /* @__PURE__ */ new Set();
|
|
3694
|
+
hydrated[index] = set;
|
|
3695
|
+
for (let i = 1; i < value.length; i += 1)
|
|
3696
|
+
set.add(hydrate(value[i]));
|
|
3697
|
+
break;
|
|
3698
|
+
case "Map":
|
|
3699
|
+
let map = /* @__PURE__ */ new Map();
|
|
3700
|
+
hydrated[index] = map;
|
|
3701
|
+
for (let i = 1; i < value.length; i += 2)
|
|
3702
|
+
map.set(hydrate(value[i]), hydrate(value[i + 1]));
|
|
3703
|
+
break;
|
|
3704
|
+
case "RegExp":
|
|
3705
|
+
hydrated[index] = new RegExp(value[1], value[2]);
|
|
3706
|
+
break;
|
|
3707
|
+
case "Object":
|
|
3708
|
+
hydrated[index] = Object(value[1]);
|
|
3709
|
+
break;
|
|
3710
|
+
case "BigInt":
|
|
3711
|
+
hydrated[index] = BigInt(value[1]);
|
|
3712
|
+
break;
|
|
3713
|
+
case "null":
|
|
3714
|
+
let obj = /* @__PURE__ */ Object.create(null);
|
|
3715
|
+
hydrated[index] = obj;
|
|
3716
|
+
for (let i = 1; i < value.length; i += 2)
|
|
3717
|
+
obj[value[i]] = hydrate(value[i + 1]);
|
|
3718
|
+
break;
|
|
3719
|
+
case "Int8Array":
|
|
3720
|
+
case "Uint8Array":
|
|
3721
|
+
case "Uint8ClampedArray":
|
|
3722
|
+
case "Int16Array":
|
|
3723
|
+
case "Uint16Array":
|
|
3724
|
+
case "Int32Array":
|
|
3725
|
+
case "Uint32Array":
|
|
3726
|
+
case "Float32Array":
|
|
3727
|
+
case "Float64Array":
|
|
3728
|
+
case "BigInt64Array":
|
|
3729
|
+
case "BigUint64Array": {
|
|
3730
|
+
if (values[value[1]][0] !== "ArrayBuffer")
|
|
3731
|
+
throw new Error("Invalid data");
|
|
3732
|
+
let TypedArrayConstructor = globalThis[type], buffer = hydrate(value[1]), typedArray = new TypedArrayConstructor(buffer);
|
|
3733
|
+
hydrated[index] = value[2] !== void 0 ? typedArray.subarray(value[2], value[3]) : typedArray;
|
|
3734
|
+
break;
|
|
3735
|
+
}
|
|
3736
|
+
case "ArrayBuffer": {
|
|
3737
|
+
let base64 = value[1];
|
|
3738
|
+
if (typeof base64 != "string")
|
|
3739
|
+
throw new Error("Invalid ArrayBuffer encoding");
|
|
3740
|
+
let arraybuffer = decode64(base64);
|
|
3741
|
+
hydrated[index] = arraybuffer;
|
|
3742
|
+
break;
|
|
3743
|
+
}
|
|
3744
|
+
case "Temporal.Duration":
|
|
3745
|
+
case "Temporal.Instant":
|
|
3746
|
+
case "Temporal.PlainDate":
|
|
3747
|
+
case "Temporal.PlainTime":
|
|
3748
|
+
case "Temporal.PlainDateTime":
|
|
3749
|
+
case "Temporal.PlainMonthDay":
|
|
3750
|
+
case "Temporal.PlainYearMonth":
|
|
3751
|
+
case "Temporal.ZonedDateTime": {
|
|
3752
|
+
let temporalName = type.slice(9);
|
|
3753
|
+
hydrated[index] = Temporal[temporalName].from(value[1]);
|
|
3754
|
+
break;
|
|
3755
|
+
}
|
|
3756
|
+
case "URL": {
|
|
3757
|
+
let url = new URL(value[1]);
|
|
3758
|
+
hydrated[index] = url;
|
|
3759
|
+
break;
|
|
3760
|
+
}
|
|
3761
|
+
case "URLSearchParams": {
|
|
3762
|
+
let url = new URLSearchParams(value[1]);
|
|
3763
|
+
hydrated[index] = url;
|
|
3764
|
+
break;
|
|
3765
|
+
}
|
|
3766
|
+
default:
|
|
3767
|
+
throw new Error(`Unknown type ${type}`);
|
|
3768
|
+
}
|
|
3769
|
+
} else if (value[0] === -7) {
|
|
3770
|
+
let len = value[1], array = new Array(len);
|
|
3771
|
+
hydrated[index] = array;
|
|
3772
|
+
for (let i = 2; i < value.length; i += 2) {
|
|
3773
|
+
let idx = value[i];
|
|
3774
|
+
array[idx] = hydrate(value[i + 1]);
|
|
3775
|
+
}
|
|
3776
|
+
} else {
|
|
3777
|
+
let array = new Array(value.length);
|
|
3778
|
+
hydrated[index] = array;
|
|
3779
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
3780
|
+
let n = value[i];
|
|
3781
|
+
n !== -2 && (array[i] = hydrate(n));
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
else {
|
|
3785
|
+
let object = {};
|
|
3786
|
+
hydrated[index] = object;
|
|
3787
|
+
for (let key of Object.keys(value)) {
|
|
3788
|
+
if (key === "__proto__")
|
|
3789
|
+
throw new Error("Cannot parse an object with a `__proto__` property");
|
|
3790
|
+
let n = value[key];
|
|
3791
|
+
object[key] = hydrate(n);
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
return hydrated[index];
|
|
3795
|
+
}
|
|
3796
|
+
return hydrate(0);
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
// ../../node_modules/.pnpm/devalue@5.6.3/node_modules/devalue/src/stringify.js
|
|
3800
|
+
function stringify(value, reducers) {
|
|
3801
|
+
let stringified = [], indexes = /* @__PURE__ */ new Map(), custom = [];
|
|
3802
|
+
if (reducers)
|
|
3803
|
+
for (let key of Object.getOwnPropertyNames(reducers))
|
|
3804
|
+
custom.push({ key, fn: reducers[key] });
|
|
3805
|
+
let keys = [], p = 0;
|
|
3806
|
+
function flatten(thing) {
|
|
3807
|
+
if (thing === void 0) return -1;
|
|
3808
|
+
if (Number.isNaN(thing)) return -3;
|
|
3809
|
+
if (thing === 1 / 0) return -4;
|
|
3810
|
+
if (thing === -1 / 0) return -5;
|
|
3811
|
+
if (thing === 0 && 1 / thing < 0) return -6;
|
|
3812
|
+
if (indexes.has(thing)) return indexes.get(thing);
|
|
3813
|
+
let index2 = p++;
|
|
3814
|
+
indexes.set(thing, index2);
|
|
3815
|
+
for (let { key, fn } of custom) {
|
|
3816
|
+
let value2 = fn(thing);
|
|
3817
|
+
if (value2)
|
|
3818
|
+
return stringified[index2] = `["${key}",${flatten(value2)}]`, index2;
|
|
3819
|
+
}
|
|
3820
|
+
if (typeof thing == "function")
|
|
3821
|
+
throw new DevalueError("Cannot stringify a function", keys, thing, value);
|
|
3822
|
+
let str = "";
|
|
3823
|
+
if (is_primitive(thing))
|
|
3824
|
+
str = stringify_primitive(thing);
|
|
3825
|
+
else {
|
|
3826
|
+
let type = get_type(thing);
|
|
3827
|
+
switch (type) {
|
|
3828
|
+
case "Number":
|
|
3829
|
+
case "String":
|
|
3830
|
+
case "Boolean":
|
|
3831
|
+
str = `["Object",${stringify_primitive(thing)}]`;
|
|
3832
|
+
break;
|
|
3833
|
+
case "BigInt":
|
|
3834
|
+
str = `["BigInt",${thing}]`;
|
|
3835
|
+
break;
|
|
3836
|
+
case "Date":
|
|
3837
|
+
str = `["Date","${!isNaN(thing.getDate()) ? thing.toISOString() : ""}"]`;
|
|
3838
|
+
break;
|
|
3839
|
+
case "URL":
|
|
3840
|
+
str = `["URL",${stringify_string(thing.toString())}]`;
|
|
3841
|
+
break;
|
|
3842
|
+
case "URLSearchParams":
|
|
3843
|
+
str = `["URLSearchParams",${stringify_string(thing.toString())}]`;
|
|
3844
|
+
break;
|
|
3845
|
+
case "RegExp":
|
|
3846
|
+
let { source, flags } = thing;
|
|
3847
|
+
str = flags ? `["RegExp",${stringify_string(source)},"${flags}"]` : `["RegExp",${stringify_string(source)}]`;
|
|
3848
|
+
break;
|
|
3849
|
+
case "Array": {
|
|
3850
|
+
let mostly_dense = !1;
|
|
3851
|
+
str = "[";
|
|
3852
|
+
for (let i = 0; i < thing.length; i += 1)
|
|
3853
|
+
if (i > 0 && (str += ","), Object.hasOwn(thing, i))
|
|
3854
|
+
keys.push(`[${i}]`), str += flatten(thing[i]), keys.pop();
|
|
3855
|
+
else if (mostly_dense)
|
|
3856
|
+
str += -2;
|
|
3857
|
+
else {
|
|
3858
|
+
let populated_keys = valid_array_indices(
|
|
3859
|
+
/** @type {any[]} */
|
|
3860
|
+
thing
|
|
3861
|
+
), population = populated_keys.length, d = String(thing.length).length, hole_cost = (thing.length - population) * 3, sparse_cost = 4 + d + population * (d + 1);
|
|
3862
|
+
if (hole_cost > sparse_cost) {
|
|
3863
|
+
str = "[" + -7 + "," + thing.length;
|
|
3864
|
+
for (let j = 0; j < populated_keys.length; j++) {
|
|
3865
|
+
let key = populated_keys[j];
|
|
3866
|
+
keys.push(`[${key}]`), str += "," + key + "," + flatten(thing[key]), keys.pop();
|
|
3867
|
+
}
|
|
3868
|
+
break;
|
|
3869
|
+
} else
|
|
3870
|
+
mostly_dense = !0, str += -2;
|
|
3871
|
+
}
|
|
3872
|
+
str += "]";
|
|
3873
|
+
break;
|
|
3874
|
+
}
|
|
3875
|
+
case "Set":
|
|
3876
|
+
str = '["Set"';
|
|
3877
|
+
for (let value2 of thing)
|
|
3878
|
+
str += `,${flatten(value2)}`;
|
|
3879
|
+
str += "]";
|
|
3880
|
+
break;
|
|
3881
|
+
case "Map":
|
|
3882
|
+
str = '["Map"';
|
|
3883
|
+
for (let [key, value2] of thing)
|
|
3884
|
+
keys.push(
|
|
3885
|
+
`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`
|
|
3886
|
+
), str += `,${flatten(key)},${flatten(value2)}`, keys.pop();
|
|
3887
|
+
str += "]";
|
|
3888
|
+
break;
|
|
3889
|
+
case "Int8Array":
|
|
3890
|
+
case "Uint8Array":
|
|
3891
|
+
case "Uint8ClampedArray":
|
|
3892
|
+
case "Int16Array":
|
|
3893
|
+
case "Uint16Array":
|
|
3894
|
+
case "Int32Array":
|
|
3895
|
+
case "Uint32Array":
|
|
3896
|
+
case "Float32Array":
|
|
3897
|
+
case "Float64Array":
|
|
3898
|
+
case "BigInt64Array":
|
|
3899
|
+
case "BigUint64Array": {
|
|
3900
|
+
let typedArray = thing;
|
|
3901
|
+
str = '["' + type + '",' + flatten(typedArray.buffer);
|
|
3902
|
+
let a = thing.byteOffset, b = a + thing.byteLength;
|
|
3903
|
+
if (a > 0 || b !== typedArray.buffer.byteLength) {
|
|
3904
|
+
let m = +/(\d+)/.exec(type)[1] / 8;
|
|
3905
|
+
str += `,${a / m},${b / m}`;
|
|
3906
|
+
}
|
|
3907
|
+
str += "]";
|
|
3908
|
+
break;
|
|
3909
|
+
}
|
|
3910
|
+
case "ArrayBuffer": {
|
|
3911
|
+
str = `["ArrayBuffer","${encode64(thing)}"]`;
|
|
3912
|
+
break;
|
|
3913
|
+
}
|
|
3914
|
+
case "Temporal.Duration":
|
|
3915
|
+
case "Temporal.Instant":
|
|
3916
|
+
case "Temporal.PlainDate":
|
|
3917
|
+
case "Temporal.PlainTime":
|
|
3918
|
+
case "Temporal.PlainDateTime":
|
|
3919
|
+
case "Temporal.PlainMonthDay":
|
|
3920
|
+
case "Temporal.PlainYearMonth":
|
|
3921
|
+
case "Temporal.ZonedDateTime":
|
|
3922
|
+
str = `["${type}",${stringify_string(thing.toString())}]`;
|
|
3923
|
+
break;
|
|
3924
|
+
default:
|
|
3925
|
+
if (!is_plain_object(thing))
|
|
3926
|
+
throw new DevalueError(
|
|
3927
|
+
"Cannot stringify arbitrary non-POJOs",
|
|
3928
|
+
keys,
|
|
3929
|
+
thing,
|
|
3930
|
+
value
|
|
3931
|
+
);
|
|
3932
|
+
if (enumerable_symbols(thing).length > 0)
|
|
3933
|
+
throw new DevalueError(
|
|
3934
|
+
"Cannot stringify POJOs with symbolic keys",
|
|
3935
|
+
keys,
|
|
3936
|
+
thing,
|
|
3937
|
+
value
|
|
3938
|
+
);
|
|
3939
|
+
if (Object.getPrototypeOf(thing) === null) {
|
|
3940
|
+
str = '["null"';
|
|
3941
|
+
for (let key of Object.keys(thing)) {
|
|
3942
|
+
if (key === "__proto__")
|
|
3943
|
+
throw new DevalueError(
|
|
3944
|
+
"Cannot stringify objects with __proto__ keys",
|
|
3945
|
+
keys,
|
|
3946
|
+
thing,
|
|
3947
|
+
value
|
|
3948
|
+
);
|
|
3949
|
+
keys.push(stringify_key(key)), str += `,${stringify_string(key)},${flatten(thing[key])}`, keys.pop();
|
|
3950
|
+
}
|
|
3951
|
+
str += "]";
|
|
3952
|
+
} else {
|
|
3953
|
+
str = "{";
|
|
3954
|
+
let started = !1;
|
|
3955
|
+
for (let key of Object.keys(thing)) {
|
|
3956
|
+
if (key === "__proto__")
|
|
3957
|
+
throw new DevalueError(
|
|
3958
|
+
"Cannot stringify objects with __proto__ keys",
|
|
3959
|
+
keys,
|
|
3960
|
+
thing,
|
|
3961
|
+
value
|
|
3962
|
+
);
|
|
3963
|
+
started && (str += ","), started = !0, keys.push(stringify_key(key)), str += `${stringify_string(key)}:${flatten(thing[key])}`, keys.pop();
|
|
3964
|
+
}
|
|
3965
|
+
str += "}";
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
return stringified[index2] = str, index2;
|
|
3970
|
+
}
|
|
3971
|
+
let index = flatten(value);
|
|
3972
|
+
return index < 0 ? `${index}` : `[${stringified.join(",")}]`;
|
|
3973
|
+
}
|
|
3974
|
+
function stringify_primitive(thing) {
|
|
3975
|
+
let type = typeof thing;
|
|
3976
|
+
return type === "string" ? stringify_string(thing) : thing instanceof String ? stringify_string(thing.toString()) : thing === void 0 ? (-1).toString() : thing === 0 && 1 / thing < 0 ? (-6).toString() : type === "bigint" ? `["BigInt","${thing}"]` : String(thing);
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
// src/workers/core/proxy.worker.ts
|
|
3980
|
+
import { readPrefix, reduceError } from "miniflare:shared";
|
|
3981
|
+
|
|
3982
|
+
// src/workers/core/devalue.ts
|
|
3983
|
+
import assert2 from "node:assert";
|
|
3984
|
+
import { Buffer } from "node:buffer";
|
|
3985
|
+
var ALLOWED_ARRAY_BUFFER_VIEW_CONSTRUCTORS = [
|
|
3986
|
+
DataView,
|
|
3987
|
+
Int8Array,
|
|
3988
|
+
Uint8Array,
|
|
3989
|
+
Uint8ClampedArray,
|
|
3990
|
+
Int16Array,
|
|
3991
|
+
Uint16Array,
|
|
3992
|
+
Int32Array,
|
|
3993
|
+
Uint32Array,
|
|
3994
|
+
Float32Array,
|
|
3995
|
+
Float64Array,
|
|
3996
|
+
BigInt64Array,
|
|
3997
|
+
BigUint64Array
|
|
3998
|
+
], ALLOWED_ERROR_CONSTRUCTORS = [
|
|
3999
|
+
EvalError,
|
|
4000
|
+
RangeError,
|
|
4001
|
+
ReferenceError,
|
|
4002
|
+
SyntaxError,
|
|
4003
|
+
TypeError,
|
|
4004
|
+
URIError,
|
|
4005
|
+
Error
|
|
4006
|
+
// `Error` last so more specific error subclasses preferred
|
|
4007
|
+
], structuredSerializableReducers = {
|
|
4008
|
+
ArrayBuffer(value) {
|
|
4009
|
+
if (value instanceof ArrayBuffer)
|
|
4010
|
+
return [Buffer.from(value).toString("base64")];
|
|
4011
|
+
},
|
|
4012
|
+
ArrayBufferView(value) {
|
|
4013
|
+
if (ArrayBuffer.isView(value))
|
|
4014
|
+
return [
|
|
4015
|
+
value.constructor.name,
|
|
4016
|
+
value.buffer,
|
|
4017
|
+
value.byteOffset,
|
|
4018
|
+
value.byteLength
|
|
4019
|
+
];
|
|
4020
|
+
},
|
|
4021
|
+
RegExp(value) {
|
|
4022
|
+
if (value instanceof RegExp) {
|
|
4023
|
+
let { source, flags } = value, encoded = Buffer.from(source).toString("base64");
|
|
4024
|
+
return flags ? ["RegExp", encoded, flags] : ["RegExp", encoded];
|
|
4025
|
+
}
|
|
4026
|
+
},
|
|
4027
|
+
Error(value) {
|
|
4028
|
+
for (let ctor of ALLOWED_ERROR_CONSTRUCTORS)
|
|
4029
|
+
if (value instanceof ctor && value.name === ctor.name)
|
|
4030
|
+
return [value.name, value.message, value.stack, value.cause];
|
|
4031
|
+
if (value instanceof Error)
|
|
4032
|
+
return ["Error", value.message, value.stack, value.cause];
|
|
4033
|
+
}
|
|
4034
|
+
}, structuredSerializableRevivers = {
|
|
4035
|
+
ArrayBuffer(value) {
|
|
4036
|
+
assert2(Array.isArray(value));
|
|
4037
|
+
let [encoded] = value;
|
|
4038
|
+
assert2(typeof encoded == "string");
|
|
4039
|
+
let view = Buffer.from(encoded, "base64");
|
|
4040
|
+
return view.buffer.slice(
|
|
4041
|
+
view.byteOffset,
|
|
4042
|
+
view.byteOffset + view.byteLength
|
|
4043
|
+
);
|
|
4044
|
+
},
|
|
4045
|
+
ArrayBufferView(value) {
|
|
4046
|
+
assert2(Array.isArray(value));
|
|
4047
|
+
let [name, buffer, byteOffset, byteLength] = value;
|
|
4048
|
+
assert2(typeof name == "string"), assert2(buffer instanceof ArrayBuffer), assert2(typeof byteOffset == "number"), assert2(typeof byteLength == "number");
|
|
4049
|
+
let ctor = globalThis[name];
|
|
4050
|
+
assert2(ALLOWED_ARRAY_BUFFER_VIEW_CONSTRUCTORS.includes(ctor));
|
|
4051
|
+
let length = byteLength;
|
|
4052
|
+
return "BYTES_PER_ELEMENT" in ctor && (length /= ctor.BYTES_PER_ELEMENT), new ctor(buffer, byteOffset, length);
|
|
4053
|
+
},
|
|
4054
|
+
RegExp(value) {
|
|
4055
|
+
assert2(Array.isArray(value));
|
|
4056
|
+
let [name, encoded, flags] = value;
|
|
4057
|
+
assert2(typeof name == "string"), assert2(typeof encoded == "string");
|
|
4058
|
+
let source = Buffer.from(encoded, "base64").toString("utf-8");
|
|
4059
|
+
return new RegExp(source, flags);
|
|
4060
|
+
},
|
|
4061
|
+
Error(value) {
|
|
4062
|
+
assert2(Array.isArray(value));
|
|
4063
|
+
let [name, message, stack, cause] = value;
|
|
4064
|
+
assert2(typeof name == "string"), assert2(typeof message == "string"), assert2(stack === void 0 || typeof stack == "string");
|
|
4065
|
+
let ctor = globalThis[name];
|
|
4066
|
+
assert2(ALLOWED_ERROR_CONSTRUCTORS.includes(ctor));
|
|
4067
|
+
let error = new ctor(message, { cause });
|
|
4068
|
+
return error.stack = stack, error;
|
|
4069
|
+
}
|
|
4070
|
+
};
|
|
4071
|
+
function createHTTPReducers(impl) {
|
|
4072
|
+
return {
|
|
4073
|
+
Headers(val) {
|
|
4074
|
+
if (val instanceof impl.Headers) return [...val.entries()];
|
|
4075
|
+
},
|
|
4076
|
+
Request(val) {
|
|
4077
|
+
if (val instanceof impl.Request)
|
|
4078
|
+
return [val.method, val.url, val.headers, val.cf, val.body];
|
|
4079
|
+
},
|
|
4080
|
+
Response(val) {
|
|
4081
|
+
if (val instanceof impl.Response)
|
|
4082
|
+
return [val.status, val.statusText, val.headers, val.cf, val.body];
|
|
4083
|
+
}
|
|
4084
|
+
};
|
|
4085
|
+
}
|
|
4086
|
+
function createHTTPRevivers(impl) {
|
|
4087
|
+
return {
|
|
4088
|
+
Headers(value) {
|
|
4089
|
+
return assert2(typeof value == "object" && value !== null), new impl.Headers(value);
|
|
4090
|
+
},
|
|
4091
|
+
Request(value) {
|
|
4092
|
+
assert2(Array.isArray(value));
|
|
4093
|
+
let [method, url, headers, cf, body] = value;
|
|
4094
|
+
return assert2(typeof method == "string"), assert2(typeof url == "string"), assert2(headers instanceof impl.Headers), assert2(body === null || impl.isReadableStream(body)), new impl.Request(url, {
|
|
4095
|
+
method,
|
|
4096
|
+
headers,
|
|
4097
|
+
cf,
|
|
4098
|
+
// @ts-expect-error `duplex` is not required by `workerd` yet
|
|
4099
|
+
duplex: body === null ? void 0 : "half",
|
|
4100
|
+
body
|
|
4101
|
+
});
|
|
4102
|
+
},
|
|
4103
|
+
Response(value) {
|
|
4104
|
+
assert2(Array.isArray(value));
|
|
4105
|
+
let [status, statusText, headers, cf, body] = value;
|
|
4106
|
+
return assert2(typeof status == "number"), assert2(typeof statusText == "string"), assert2(headers instanceof impl.Headers), assert2(body === null || impl.isReadableStream(body)), new impl.Response(body, {
|
|
4107
|
+
status,
|
|
4108
|
+
statusText,
|
|
4109
|
+
headers,
|
|
4110
|
+
cf
|
|
4111
|
+
});
|
|
4112
|
+
}
|
|
4113
|
+
};
|
|
4114
|
+
}
|
|
4115
|
+
function stringifyWithStreams(impl, value, reducers, allowUnbufferedStream) {
|
|
4116
|
+
let unbufferedStream, bufferPromises = [], streamReducers = {
|
|
4117
|
+
ReadableStream(value2) {
|
|
4118
|
+
if (impl.isReadableStream(value2))
|
|
4119
|
+
return allowUnbufferedStream && unbufferedStream === void 0 ? unbufferedStream = value2 : bufferPromises.push(impl.bufferReadableStream(value2)), !0;
|
|
4120
|
+
},
|
|
4121
|
+
Blob(value2) {
|
|
4122
|
+
if (value2 instanceof impl.Blob)
|
|
4123
|
+
return bufferPromises.push(value2.arrayBuffer()), !0;
|
|
4124
|
+
},
|
|
4125
|
+
...reducers
|
|
4126
|
+
};
|
|
4127
|
+
typeof value == "function" && (value = new __MiniflareFunctionWrapper(
|
|
4128
|
+
value
|
|
4129
|
+
));
|
|
4130
|
+
let stringifiedValue = stringify(value, streamReducers);
|
|
4131
|
+
return bufferPromises.length === 0 ? { value: stringifiedValue, unbufferedStream } : Promise.all(bufferPromises).then((streamBuffers) => (streamReducers.ReadableStream = function(value2) {
|
|
4132
|
+
if (impl.isReadableStream(value2))
|
|
4133
|
+
return value2 === unbufferedStream ? !0 : streamBuffers.shift();
|
|
4134
|
+
}, streamReducers.Blob = function(value2) {
|
|
4135
|
+
if (value2 instanceof impl.Blob) {
|
|
4136
|
+
let array = [streamBuffers.shift(), value2.type];
|
|
4137
|
+
return value2 instanceof impl.File && array.push(value2.name, value2.lastModified), array;
|
|
4138
|
+
}
|
|
4139
|
+
}, { value: stringify(value, streamReducers), unbufferedStream }));
|
|
4140
|
+
}
|
|
4141
|
+
var __MiniflareFunctionWrapper = class {
|
|
4142
|
+
constructor(fnWithProps) {
|
|
4143
|
+
return new Proxy(this, {
|
|
4144
|
+
get: (_, key) => key === "__miniflareWrappedFunction" ? fnWithProps : fnWithProps[key]
|
|
4145
|
+
});
|
|
4146
|
+
}
|
|
4147
|
+
};
|
|
4148
|
+
function parseWithReadableStreams(impl, stringified, revivers) {
|
|
4149
|
+
let streamRevivers = {
|
|
4150
|
+
ReadableStream(value) {
|
|
4151
|
+
return value === !0 ? (assert2(stringified.unbufferedStream !== void 0), stringified.unbufferedStream) : (assert2(value instanceof ArrayBuffer), impl.unbufferReadableStream(value));
|
|
4152
|
+
},
|
|
4153
|
+
Blob(value) {
|
|
4154
|
+
if (assert2(Array.isArray(value)), value.length === 2) {
|
|
4155
|
+
let [buffer, type] = value;
|
|
4156
|
+
assert2(buffer instanceof ArrayBuffer), assert2(typeof type == "string");
|
|
4157
|
+
let opts = {};
|
|
4158
|
+
return type !== "" && (opts.type = type), new impl.Blob([buffer], opts);
|
|
4159
|
+
} else {
|
|
4160
|
+
assert2(value.length === 4);
|
|
4161
|
+
let [buffer, type, name, lastModified] = value;
|
|
4162
|
+
assert2(buffer instanceof ArrayBuffer), assert2(typeof type == "string"), assert2(typeof name == "string"), assert2(typeof lastModified == "number");
|
|
4163
|
+
let opts = { lastModified };
|
|
4164
|
+
return type !== "" && (opts.type = type), new impl.File([buffer], name, opts);
|
|
4165
|
+
}
|
|
4166
|
+
},
|
|
4167
|
+
...revivers
|
|
4168
|
+
};
|
|
4169
|
+
return parse(stringified.value, streamRevivers);
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
// src/workers/core/proxy.worker.ts
|
|
4173
|
+
var ENCODER = new TextEncoder(), DECODER = new TextDecoder(), ALLOWED_HOSTNAMES = ["127.0.0.1", "[::1]", "localhost"], WORKERS_PLATFORM_IMPL = {
|
|
4174
|
+
Blob,
|
|
4175
|
+
File,
|
|
4176
|
+
Headers,
|
|
4177
|
+
Request,
|
|
4178
|
+
Response,
|
|
4179
|
+
isReadableStream(value) {
|
|
4180
|
+
return value instanceof ReadableStream;
|
|
4181
|
+
},
|
|
4182
|
+
bufferReadableStream(stream) {
|
|
4183
|
+
return new Response(stream).arrayBuffer();
|
|
4184
|
+
},
|
|
4185
|
+
unbufferReadableStream(buffer) {
|
|
4186
|
+
let body = new Response(buffer).body;
|
|
4187
|
+
return assert3(body !== null), body;
|
|
4188
|
+
}
|
|
4189
|
+
}, objectProtoNames = Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
4190
|
+
function isPlainObject(value) {
|
|
4191
|
+
let proto = Object.getPrototypeOf(value);
|
|
4192
|
+
return value?.constructor?.name === "RpcStub" || isObject(value) && objectContainsFunctions(value) ? !1 : proto === Object.prototype || proto === null || Object.getOwnPropertyNames(proto).sort().join("\0") === objectProtoNames;
|
|
4193
|
+
}
|
|
4194
|
+
function objectContainsFunctions(obj) {
|
|
4195
|
+
let propertyNames = Object.getOwnPropertyNames(obj), propertySymbols = Object.getOwnPropertySymbols(obj), properties = [...propertyNames, ...propertySymbols];
|
|
4196
|
+
for (let property of properties) {
|
|
4197
|
+
let entry = obj[property];
|
|
4198
|
+
if (typeof entry == "function" || isObject(entry) && objectContainsFunctions(entry))
|
|
4199
|
+
return !0;
|
|
4200
|
+
}
|
|
4201
|
+
return !1;
|
|
4202
|
+
}
|
|
4203
|
+
function isObject(value) {
|
|
4204
|
+
return !!value && typeof value == "object";
|
|
4205
|
+
}
|
|
4206
|
+
function getType(value) {
|
|
4207
|
+
return Object.prototype.toString.call(value).slice(8, -1);
|
|
4208
|
+
}
|
|
4209
|
+
function isInternal(value) {
|
|
4210
|
+
return isObject(value) && value[/* @__PURE__ */ Symbol.for("cloudflare:internal-class")];
|
|
4211
|
+
}
|
|
4212
|
+
var ProxyServer = class {
|
|
4213
|
+
constructor(_state, env) {
|
|
4214
|
+
this.env = env;
|
|
4215
|
+
this.heap.set(ProxyAddresses.GLOBAL, globalThis), this.heap.set(ProxyAddresses.ENV, env);
|
|
4216
|
+
}
|
|
4217
|
+
nextHeapAddress = ProxyAddresses.USER_START;
|
|
4218
|
+
heap = /* @__PURE__ */ new Map();
|
|
4219
|
+
reducers = {
|
|
4220
|
+
...structuredSerializableReducers,
|
|
4221
|
+
...createHTTPReducers(WORKERS_PLATFORM_IMPL),
|
|
4222
|
+
// Corresponding revivers in `ProxyClient`
|
|
4223
|
+
// `Native` reducer *MUST* be applied last
|
|
4224
|
+
Native: (value) => {
|
|
4225
|
+
let type = getType(value);
|
|
4226
|
+
if ((type === "Object" || isInternal(value)) && !isPlainObject(value) || type === "Promise") {
|
|
4227
|
+
let address = this.nextHeapAddress++;
|
|
4228
|
+
this.heap.set(address, value), assert3(value !== null);
|
|
4229
|
+
let name = value?.constructor.name, isFunction = value instanceof __MiniflareFunctionWrapper;
|
|
4230
|
+
return [address, name, isFunction];
|
|
4231
|
+
}
|
|
4232
|
+
}
|
|
4233
|
+
};
|
|
4234
|
+
revivers = {
|
|
4235
|
+
...structuredSerializableRevivers,
|
|
4236
|
+
...createHTTPRevivers(WORKERS_PLATFORM_IMPL),
|
|
4237
|
+
// Corresponding reducers in `ProxyClient`
|
|
4238
|
+
Native: (value) => {
|
|
4239
|
+
assert3(Array.isArray(value));
|
|
4240
|
+
let [address] = value;
|
|
4241
|
+
assert3(typeof address == "number");
|
|
4242
|
+
let heapValue = this.heap.get(address);
|
|
4243
|
+
return assert3(heapValue !== void 0), heapValue instanceof Promise && this.heap.delete(address), heapValue;
|
|
4244
|
+
}
|
|
4245
|
+
};
|
|
4246
|
+
nativeReviver = { Native: this.revivers.Native };
|
|
4247
|
+
async fetch(request) {
|
|
4248
|
+
try {
|
|
4249
|
+
return await this.#fetch(request);
|
|
4250
|
+
} catch (e) {
|
|
4251
|
+
let error = reduceError(e);
|
|
4252
|
+
return Response.json(error, {
|
|
4253
|
+
status: 500,
|
|
4254
|
+
headers: { [CoreHeaders.ERROR_STACK]: "true" }
|
|
4255
|
+
});
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
async #fetch(request) {
|
|
4259
|
+
let hostHeader = request.headers.get("Host");
|
|
4260
|
+
if (hostHeader == null) return new Response(null, { status: 400 });
|
|
4261
|
+
try {
|
|
4262
|
+
let host = new URL(`http://${hostHeader}`);
|
|
4263
|
+
if (!ALLOWED_HOSTNAMES.includes(host.hostname))
|
|
4264
|
+
return new Response(null, { status: 401 });
|
|
4265
|
+
} catch {
|
|
4266
|
+
return new Response(null, { status: 400 });
|
|
4267
|
+
}
|
|
4268
|
+
let secretHex = request.headers.get(CoreHeaders.OP_SECRET);
|
|
4269
|
+
if (secretHex == null) return new Response(null, { status: 401 });
|
|
4270
|
+
let expectedSecret = this.env[CoreBindings.DATA_PROXY_SECRET], secretBuffer = Buffer2.from(secretHex, "hex");
|
|
4271
|
+
if (secretBuffer.byteLength !== expectedSecret.byteLength || !crypto.subtle.timingSafeEqual(secretBuffer, expectedSecret))
|
|
4272
|
+
return new Response(null, { status: 401 });
|
|
4273
|
+
let opHeader = request.headers.get(CoreHeaders.OP), targetHeader = request.headers.get(CoreHeaders.OP_TARGET), keyHeader = request.headers.get(CoreHeaders.OP_KEY), allowAsync = request.headers.get(CoreHeaders.OP_SYNC) === null, argsSizeHeader = request.headers.get(CoreHeaders.OP_STRINGIFIED_SIZE), contentLengthHeader = request.headers.get("Content-Length");
|
|
4274
|
+
if (targetHeader === null) return new Response(null, { status: 400 });
|
|
4275
|
+
if (opHeader === ProxyOps.FREE) {
|
|
4276
|
+
for (let targetValue of targetHeader.split(",")) {
|
|
4277
|
+
let targetAddress = parseInt(targetValue);
|
|
4278
|
+
assert3(!Number.isNaN(targetAddress)), this.heap.delete(targetAddress);
|
|
4279
|
+
}
|
|
4280
|
+
return new Response(null, { status: 204 });
|
|
4281
|
+
}
|
|
4282
|
+
let target = parse(
|
|
4283
|
+
targetHeader,
|
|
4284
|
+
this.nativeReviver
|
|
4285
|
+
), targetName = target.constructor.name, status = 200, result, unbufferedRest, rpcAwaited = !1;
|
|
4286
|
+
if (opHeader === ProxyOps.GET) {
|
|
4287
|
+
if (result = keyHeader === null ? target : target[keyHeader], result?.constructor.name === "RpcProperty" && (result = await result), typeof result == "function")
|
|
4288
|
+
return new Response(null, {
|
|
4289
|
+
status: 204,
|
|
4290
|
+
headers: { [CoreHeaders.OP_RESULT_TYPE]: "Function" }
|
|
4291
|
+
});
|
|
4292
|
+
} else if (opHeader === ProxyOps.GET_OWN_DESCRIPTOR) {
|
|
4293
|
+
if (keyHeader === null) return new Response(null, { status: 400 });
|
|
4294
|
+
let descriptor = Object.getOwnPropertyDescriptor(target, keyHeader);
|
|
4295
|
+
descriptor !== void 0 && (result = {
|
|
4296
|
+
configurable: descriptor.configurable,
|
|
4297
|
+
enumerable: descriptor.enumerable,
|
|
4298
|
+
writable: descriptor.writable
|
|
4299
|
+
});
|
|
4300
|
+
} else if (opHeader === ProxyOps.GET_OWN_KEYS)
|
|
4301
|
+
result = Object.getOwnPropertyNames(target);
|
|
4302
|
+
else if (opHeader === ProxyOps.CALL) {
|
|
4303
|
+
assert3(keyHeader !== null);
|
|
4304
|
+
let func = target[keyHeader];
|
|
4305
|
+
if (assert3(typeof func == "function"), isFetcherFetch(targetName, keyHeader)) {
|
|
4306
|
+
let originalUrl = request.headers.get(CoreHeaders.ORIGINAL_URL), url = new URL(originalUrl ?? request.url);
|
|
4307
|
+
return request = new Request(url, request), request.headers.delete(CoreHeaders.OP_SECRET), request.headers.delete(CoreHeaders.OP), request.headers.delete(CoreHeaders.OP_TARGET), request.headers.delete(CoreHeaders.OP_KEY), request.headers.delete(CoreHeaders.ORIGINAL_URL), request.headers.delete(CoreHeaders.DISABLE_PRETTY_ERROR), func.call(target, request);
|
|
4308
|
+
}
|
|
4309
|
+
let args;
|
|
4310
|
+
if (argsSizeHeader === null || argsSizeHeader === contentLengthHeader)
|
|
4311
|
+
args = parseWithReadableStreams(
|
|
4312
|
+
WORKERS_PLATFORM_IMPL,
|
|
4313
|
+
{ value: await request.text() },
|
|
4314
|
+
this.revivers
|
|
4315
|
+
);
|
|
4316
|
+
else {
|
|
4317
|
+
let argsSize = parseInt(argsSizeHeader);
|
|
4318
|
+
assert3(!Number.isNaN(argsSize)), assert3(request.body !== null);
|
|
4319
|
+
let [encodedArgs, rest] = await readPrefix(request.body, argsSize);
|
|
4320
|
+
unbufferedRest = rest;
|
|
4321
|
+
let stringifiedArgs = DECODER.decode(encodedArgs);
|
|
4322
|
+
args = parseWithReadableStreams(
|
|
4323
|
+
WORKERS_PLATFORM_IMPL,
|
|
4324
|
+
{ value: stringifiedArgs, unbufferedStream: rest },
|
|
4325
|
+
this.revivers
|
|
4326
|
+
);
|
|
4327
|
+
}
|
|
4328
|
+
assert3(Array.isArray(args));
|
|
4329
|
+
try {
|
|
4330
|
+
if (isImagesInput(targetName, keyHeader)) {
|
|
4331
|
+
let transform = func.apply(target, [args[0]]);
|
|
4332
|
+
for (let operation of args[1])
|
|
4333
|
+
transform = transform[operation.type](...operation.arguments);
|
|
4334
|
+
result = transform.output(args[2]);
|
|
4335
|
+
} else ["RpcProperty", "RpcStub"].includes(func.constructor.name) ? (result = await func(...args), rpcAwaited = !0) : result = func.apply(target, args);
|
|
4336
|
+
isR2ObjectWriteHttpMetadata(targetName, keyHeader) && (result = args[0]);
|
|
4337
|
+
} catch (e) {
|
|
4338
|
+
status = 500, result = e;
|
|
4339
|
+
}
|
|
4340
|
+
} else
|
|
4341
|
+
return new Response(null, { status: 404 });
|
|
4342
|
+
let headers = new Headers();
|
|
4343
|
+
if (allowAsync && (result instanceof Promise || rpcAwaited)) {
|
|
4344
|
+
try {
|
|
4345
|
+
result = await result;
|
|
4346
|
+
} catch (e) {
|
|
4347
|
+
status = 500, result = e;
|
|
4348
|
+
}
|
|
4349
|
+
headers.append(CoreHeaders.OP_RESULT_TYPE, "Promise");
|
|
4350
|
+
}
|
|
4351
|
+
if (unbufferedRest !== void 0 && !unbufferedRest.locked)
|
|
4352
|
+
try {
|
|
4353
|
+
await unbufferedRest.pipeTo(new WritableStream());
|
|
4354
|
+
} catch {
|
|
4355
|
+
}
|
|
4356
|
+
if (result instanceof ReadableStream)
|
|
4357
|
+
return headers.append(CoreHeaders.OP_RESULT_TYPE, "ReadableStream"), new Response(result, { status, headers });
|
|
4358
|
+
{
|
|
4359
|
+
let stringified = await stringifyWithStreams(
|
|
4360
|
+
WORKERS_PLATFORM_IMPL,
|
|
4361
|
+
result,
|
|
4362
|
+
this.reducers,
|
|
4363
|
+
/* allowUnbufferedStream */
|
|
4364
|
+
allowAsync
|
|
4365
|
+
);
|
|
4366
|
+
if (stringified.unbufferedStream === void 0)
|
|
4367
|
+
return new Response(stringified.value, { status, headers });
|
|
4368
|
+
{
|
|
4369
|
+
let body = new IdentityTransformStream(), encodedValue = ENCODER.encode(stringified.value), encodedSize = encodedValue.byteLength.toString();
|
|
4370
|
+
return headers.set(CoreHeaders.OP_STRINGIFIED_SIZE, encodedSize), this.#writeWithUnbufferedStream(
|
|
4371
|
+
body.writable,
|
|
4372
|
+
encodedValue,
|
|
4373
|
+
stringified.unbufferedStream
|
|
4374
|
+
), new Response(body.readable, { status, headers });
|
|
4375
|
+
}
|
|
4376
|
+
}
|
|
4377
|
+
}
|
|
4378
|
+
async #writeWithUnbufferedStream(writable, encodedValue, unbufferedStream) {
|
|
4379
|
+
let writer = writable.getWriter();
|
|
4380
|
+
await writer.write(encodedValue), writer.releaseLock(), await unbufferedStream.pipeTo(writable);
|
|
4381
|
+
}
|
|
4382
|
+
};
|
|
4383
|
+
|
|
4384
|
+
// src/workers/core/entry.worker.ts
|
|
4385
|
+
var encoder = new TextEncoder();
|
|
4386
|
+
function getUserRequest(request, env, clientIp) {
|
|
4387
|
+
let originalUrl = request.headers.get(CoreHeaders.ORIGINAL_URL), url = new URL(originalUrl ?? request.url), rewriteHeadersFromOriginalUrl = !1, proxySharedSecret = request.headers.get(
|
|
4388
|
+
CoreHeaders.PROXY_SHARED_SECRET
|
|
4389
|
+
);
|
|
4390
|
+
if (proxySharedSecret) {
|
|
4391
|
+
let secretFromHeader = encoder.encode(proxySharedSecret), configuredSecret = env[CoreBindings.DATA_PROXY_SHARED_SECRET];
|
|
4392
|
+
if (secretFromHeader.byteLength === configuredSecret?.byteLength && crypto.subtle.timingSafeEqual(secretFromHeader, configuredSecret))
|
|
4393
|
+
rewriteHeadersFromOriginalUrl = !0;
|
|
4394
|
+
else
|
|
4395
|
+
throw new HttpError(
|
|
4396
|
+
400,
|
|
4397
|
+
`Disallowed header in request: ${CoreHeaders.PROXY_SHARED_SECRET}=${proxySharedSecret}`
|
|
4398
|
+
);
|
|
4399
|
+
}
|
|
4400
|
+
let upstreamUrl = env[CoreBindings.TEXT_UPSTREAM_URL], originalHostname = upstreamUrl !== void 0 ? url.host : void 0;
|
|
4401
|
+
if (upstreamUrl !== void 0) {
|
|
4402
|
+
let path = url.pathname + url.search;
|
|
4403
|
+
path.startsWith("/") && (path = `./${path.substring(1)}`), url = new URL(path, upstreamUrl), rewriteHeadersFromOriginalUrl = !0;
|
|
4404
|
+
}
|
|
4405
|
+
request = new Request(url, request), request.headers.set("Accept-Encoding", "br, gzip");
|
|
4406
|
+
let secFetchMode = request.headers.get(CoreHeaders.SEC_FETCH_MODE);
|
|
4407
|
+
if (secFetchMode && request.headers.set("Sec-Fetch-Mode", secFetchMode), request.headers.delete(CoreHeaders.SEC_FETCH_MODE), rewriteHeadersFromOriginalUrl && request.headers.set("Host", url.host), originalHostname !== void 0 && request.headers.set(CoreHeaders.ORIGINAL_HOSTNAME, originalHostname), clientIp && !request.headers.get("CF-Connecting-IP")) {
|
|
4408
|
+
let ipv4Regex = /(?<ip>.*?):\d+/, ipv6Regex = /\[(?<ip>.*?)\]:\d+/, ip = clientIp.match(ipv6Regex)?.groups?.ip ?? clientIp.match(ipv4Regex)?.groups?.ip;
|
|
4409
|
+
ip && request.headers.set("CF-Connecting-IP", ip);
|
|
4410
|
+
}
|
|
4411
|
+
return request.headers.delete(CoreHeaders.PROXY_SHARED_SECRET), request.headers.delete(CoreHeaders.ORIGINAL_URL), env[CoreBindings.STRIP_DISABLE_PRETTY_ERROR] && request.headers.delete(CoreHeaders.DISABLE_PRETTY_ERROR), request;
|
|
4412
|
+
}
|
|
4413
|
+
function getTargetService(request, url, env) {
|
|
4414
|
+
let service = env[CoreBindings.SERVICE_USER_FALLBACK], override = request.headers.get(CoreHeaders.ROUTE_OVERRIDE);
|
|
4415
|
+
request.headers.delete(CoreHeaders.ROUTE_OVERRIDE);
|
|
4416
|
+
let route = override ?? matchRoutes(env[CoreBindings.JSON_ROUTES], url);
|
|
4417
|
+
return route !== null && (service = env[`${CoreBindings.SERVICE_USER_ROUTE_PREFIX}${route}`]), service;
|
|
4418
|
+
}
|
|
4419
|
+
var LOCALHOST_HOSTNAMES = ["localhost", "127.0.0.1", "[::1]"];
|
|
4420
|
+
function validateLocalExplorerRequest(request, routes, upstreamUrl) {
|
|
4421
|
+
let allowedHostnames = /* @__PURE__ */ new Set();
|
|
4422
|
+
for (let route of routes) {
|
|
4423
|
+
let hostname = route.hostname.replace(/^\./, "");
|
|
4424
|
+
hostname && allowedHostnames.add(hostname);
|
|
4425
|
+
}
|
|
4426
|
+
if (upstreamUrl)
|
|
4427
|
+
try {
|
|
4428
|
+
let upstreamHostname = new URL(upstreamUrl).hostname;
|
|
4429
|
+
upstreamHostname && allowedHostnames.add(upstreamHostname);
|
|
4430
|
+
} catch {
|
|
4431
|
+
}
|
|
4432
|
+
let hostHeader = request.headers.get("Host"), hostHostname;
|
|
4433
|
+
if (hostHeader) {
|
|
4434
|
+
try {
|
|
4435
|
+
hostHostname = new URL(`http://${hostHeader}`).hostname;
|
|
4436
|
+
} catch {
|
|
4437
|
+
throw new HttpError(403, "Invalid Host header");
|
|
4438
|
+
}
|
|
4439
|
+
if (!isHostnameAllowed(hostHostname, allowedHostnames))
|
|
4440
|
+
throw new HttpError(403, "Invalid Host header");
|
|
4441
|
+
}
|
|
4442
|
+
let origin = request.headers.get("Origin");
|
|
4443
|
+
if (origin) {
|
|
4444
|
+
let originHostname;
|
|
4445
|
+
try {
|
|
4446
|
+
originHostname = new URL(origin).hostname;
|
|
4447
|
+
} catch {
|
|
4448
|
+
throw new HttpError(403, "Invalid Origin header");
|
|
4449
|
+
}
|
|
4450
|
+
if (!isHostnameAllowed(originHostname, allowedHostnames))
|
|
4451
|
+
throw new HttpError(403, "Invalid Origin header");
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
function isHostnameAllowed(hostname, allowedHostnames) {
|
|
4455
|
+
if (LOCALHOST_HOSTNAMES.includes(hostname))
|
|
4456
|
+
return !0;
|
|
4457
|
+
for (let allowed of allowedHostnames)
|
|
4458
|
+
if (hostname === allowed || hostname.endsWith(`.${allowed}`))
|
|
4459
|
+
return !0;
|
|
4460
|
+
return !1;
|
|
4461
|
+
}
|
|
4462
|
+
function maybePrettifyError(request, response, env) {
|
|
4463
|
+
return response.status !== 500 || response.headers.get(CoreHeaders.ERROR_STACK) === null ? response : env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
4464
|
+
"http://localhost/core/error",
|
|
4465
|
+
{
|
|
4466
|
+
method: "POST",
|
|
4467
|
+
headers: request.headers,
|
|
4468
|
+
body: response.body,
|
|
4469
|
+
cf: { prettyErrorOriginalUrl: request.url }
|
|
4470
|
+
}
|
|
4471
|
+
);
|
|
4472
|
+
}
|
|
4473
|
+
function maybeInjectLiveReload(response, env, ctx) {
|
|
4474
|
+
let liveReloadScript = env[CoreBindings.DATA_LIVE_RELOAD_SCRIPT];
|
|
4475
|
+
if (liveReloadScript === void 0 || !response.headers.get("Content-Type")?.toLowerCase().includes("text/html"))
|
|
4476
|
+
return response;
|
|
4477
|
+
let headers = new Headers(response.headers), contentLength = parseInt(headers.get("content-length"));
|
|
4478
|
+
isNaN(contentLength) || headers.set(
|
|
4479
|
+
"content-length",
|
|
4480
|
+
String(contentLength + liveReloadScript.byteLength)
|
|
4481
|
+
);
|
|
4482
|
+
let { readable, writable } = new IdentityTransformStream();
|
|
4483
|
+
return ctx.waitUntil(
|
|
4484
|
+
(async () => {
|
|
4485
|
+
await response.body?.pipeTo(writable, { preventClose: !0 });
|
|
4486
|
+
let writer = writable.getWriter();
|
|
4487
|
+
await writer.write(liveReloadScript), await writer.close();
|
|
4488
|
+
})()
|
|
4489
|
+
), new Response(readable, {
|
|
4490
|
+
status: response.status,
|
|
4491
|
+
statusText: response.statusText,
|
|
4492
|
+
headers
|
|
4493
|
+
});
|
|
4494
|
+
}
|
|
4495
|
+
var acceptEncodingElement = /^(?<coding>[a-z]+|\*)(?:\s*;\s*q=(?<weight>\d+(?:.\d+)?))?$/;
|
|
4496
|
+
function maybeParseAcceptEncodingElement(element) {
|
|
4497
|
+
let match = acceptEncodingElement.exec(element);
|
|
4498
|
+
if (match?.groups != null)
|
|
4499
|
+
return {
|
|
4500
|
+
coding: match.groups.coding,
|
|
4501
|
+
weight: match.groups.weight === void 0 ? 1 : parseFloat(match.groups.weight)
|
|
4502
|
+
};
|
|
4503
|
+
}
|
|
4504
|
+
function parseAcceptEncoding(header) {
|
|
4505
|
+
let encodings = [];
|
|
4506
|
+
for (let element of header.split(",")) {
|
|
4507
|
+
let maybeEncoding = maybeParseAcceptEncodingElement(element.trim());
|
|
4508
|
+
maybeEncoding !== void 0 && encodings.push(maybeEncoding);
|
|
4509
|
+
}
|
|
4510
|
+
return encodings.sort((a, b) => b.weight - a.weight);
|
|
4511
|
+
}
|
|
4512
|
+
function ensureAcceptableEncoding(clientAcceptEncoding, response) {
|
|
4513
|
+
if (clientAcceptEncoding === null) return response;
|
|
4514
|
+
let encodings = parseAcceptEncoding(clientAcceptEncoding);
|
|
4515
|
+
if (encodings.length === 0) return response;
|
|
4516
|
+
let contentEncoding = response.headers.get("Content-Encoding"), contentType = response.headers.get("Content-Type");
|
|
4517
|
+
if (!isCompressedByCloudflareFL(contentType) || contentEncoding !== null && contentEncoding !== "gzip" && contentEncoding !== "br")
|
|
4518
|
+
return response;
|
|
4519
|
+
let desiredEncoding, identityDisallowed = !1;
|
|
4520
|
+
for (let encoding of encodings)
|
|
4521
|
+
if (encoding.weight === 0)
|
|
4522
|
+
(encoding.coding === "identity" || encoding.coding === "*") && (identityDisallowed = !0);
|
|
4523
|
+
else if (encoding.coding === "gzip" || encoding.coding === "br") {
|
|
4524
|
+
desiredEncoding = encoding.coding;
|
|
4525
|
+
break;
|
|
4526
|
+
} else if (encoding.coding === "identity")
|
|
4527
|
+
break;
|
|
4528
|
+
return desiredEncoding === void 0 ? identityDisallowed ? new Response("Unsupported Media Type", {
|
|
4529
|
+
status: 415,
|
|
4530
|
+
headers: { "Accept-Encoding": "br, gzip" }
|
|
4531
|
+
}) : (contentEncoding === null || (response = new Response(response.body, response), response.headers.delete("Content-Encoding")), response) : (contentEncoding === desiredEncoding || (response = new Response(response.body, response), response.headers.set("Content-Encoding", desiredEncoding)), response);
|
|
4532
|
+
}
|
|
4533
|
+
function colourFromHTTPStatus(status) {
|
|
4534
|
+
return 200 <= status && status < 300 ? green : 400 <= status && status < 500 ? yellow : 500 <= status ? red : blue;
|
|
4535
|
+
}
|
|
4536
|
+
var ADDITIONAL_RESPONSE_LOG_HEADER_NAME = "X-Mf-Additional-Response-Log";
|
|
4537
|
+
function maybeLogRequest(req, res, env, ctx, startTime) {
|
|
4538
|
+
res = new Response(res.body, res);
|
|
4539
|
+
let additionalResponseLog = res.headers.get(
|
|
4540
|
+
ADDITIONAL_RESPONSE_LOG_HEADER_NAME
|
|
4541
|
+
);
|
|
4542
|
+
if (res.headers.delete(ADDITIONAL_RESPONSE_LOG_HEADER_NAME), env[CoreBindings.JSON_LOG_LEVEL] < LogLevel2.INFO) return res;
|
|
4543
|
+
let url = new URL(req.url), statusText = (res.statusText.trim() || STATUS_CODES[res.status]) ?? "", lines = [
|
|
4544
|
+
`${bold(req.method)} ${url.pathname} `,
|
|
4545
|
+
colourFromHTTPStatus(res.status)(`${bold(res.status)} ${statusText} `),
|
|
4546
|
+
grey(`(${Date.now() - startTime}ms)`)
|
|
4547
|
+
];
|
|
4548
|
+
additionalResponseLog && lines.push(` ${grey(additionalResponseLog)}`);
|
|
4549
|
+
let message = reset(lines.join(""));
|
|
4550
|
+
return ctx.waitUntil(
|
|
4551
|
+
env[CoreBindings.SERVICE_LOOPBACK].fetch("http://localhost/core/log", {
|
|
4552
|
+
method: "POST",
|
|
4553
|
+
headers: { [SharedHeaders2.LOG_LEVEL]: LogLevel2.INFO.toString() },
|
|
4554
|
+
body: message
|
|
4555
|
+
})
|
|
4556
|
+
), res;
|
|
4557
|
+
}
|
|
4558
|
+
function handleProxy(request, env) {
|
|
4559
|
+
let ns = env[CoreBindings.DURABLE_OBJECT_NAMESPACE_PROXY], id = ns.idFromName("");
|
|
4560
|
+
return ns.get(id).fetch(request);
|
|
4561
|
+
}
|
|
4562
|
+
var entry_worker_default = {
|
|
4563
|
+
async fetch(request, env, ctx) {
|
|
4564
|
+
let startTime = Date.now(), clientIp = request.cf?.clientIp, clientCfBlobHeader = request.headers.get(CoreHeaders.CF_BLOB), cf = clientCfBlobHeader ? JSON.parse(clientCfBlobHeader) : {
|
|
4565
|
+
...env[CoreBindings.JSON_CF_BLOB],
|
|
4566
|
+
// Defaulting to empty string to preserve undefined `Accept-Encoding`
|
|
4567
|
+
// through Wrangler's proxy worker.
|
|
4568
|
+
clientAcceptEncoding: request.headers.get("Accept-Encoding") ?? ""
|
|
4569
|
+
};
|
|
4570
|
+
if (request = new Request(request, { cf }), request.headers.get(CoreHeaders.OP) !== null) return handleProxy(request, env);
|
|
4571
|
+
let disablePrettyErrorPage = request.headers.get(CoreHeaders.DISABLE_PRETTY_ERROR) !== null, clientAcceptEncoding = request.headers.get("Accept-Encoding");
|
|
4572
|
+
try {
|
|
4573
|
+
if (env[CoreBindings.SERVICE_LOCAL_EXPLORER]) {
|
|
4574
|
+
let preRewriteUrl = new URL(request.url);
|
|
4575
|
+
(preRewriteUrl.pathname === LOCAL_EXPLORER_BASE_PATH || preRewriteUrl.pathname.startsWith(`${LOCAL_EXPLORER_BASE_PATH}/`)) && validateLocalExplorerRequest(
|
|
4576
|
+
request,
|
|
4577
|
+
env[CoreBindings.JSON_ROUTES],
|
|
4578
|
+
env[CoreBindings.TEXT_UPSTREAM_URL]
|
|
4579
|
+
);
|
|
4580
|
+
}
|
|
4581
|
+
request = getUserRequest(request, env, clientIp);
|
|
4582
|
+
} catch (e) {
|
|
4583
|
+
if (e instanceof HttpError)
|
|
4584
|
+
return e.toResponse();
|
|
4585
|
+
throw e;
|
|
4586
|
+
}
|
|
4587
|
+
let url = new URL(request.url), service = getTargetService(request, url, env);
|
|
4588
|
+
if (service === void 0)
|
|
4589
|
+
return new Response("No entrypoint worker found", { status: 404 });
|
|
4590
|
+
try {
|
|
4591
|
+
if (env[CoreBindings.SERVICE_LOCAL_EXPLORER] && (url.pathname === LOCAL_EXPLORER_BASE_PATH || url.pathname.startsWith(`${LOCAL_EXPLORER_BASE_PATH}/`)))
|
|
4592
|
+
return await env[CoreBindings.SERVICE_LOCAL_EXPLORER].fetch(request);
|
|
4593
|
+
if (env[CoreBindings.TRIGGER_HANDLERS]) {
|
|
4594
|
+
if (url.pathname === "/cdn-cgi/handler/scheduled" || /* legacy URL path */
|
|
4595
|
+
url.pathname === "/cdn-cgi/mf/scheduled")
|
|
4596
|
+
return url.pathname === "/cdn-cgi/mf/scheduled" && ctx.waitUntil(
|
|
4597
|
+
env[CoreBindings.SERVICE_LOOPBACK].fetch(
|
|
4598
|
+
"http://localhost/core/log",
|
|
4599
|
+
{
|
|
4600
|
+
method: "POST",
|
|
4601
|
+
headers: {
|
|
4602
|
+
[SharedHeaders2.LOG_LEVEL]: LogLevel2.WARN.toString()
|
|
4603
|
+
},
|
|
4604
|
+
body: "Triggering scheduled handlers via a request to `/cdn-cgi/mf/scheduled` is deprecated, and will be removed in a future version of Miniflare. Instead, send a request to `/cdn-cgi/handler/scheduled`"
|
|
4605
|
+
}
|
|
4606
|
+
)
|
|
4607
|
+
), await handleScheduled(url.searchParams, service);
|
|
4608
|
+
if (url.pathname === "/cdn-cgi/handler/email")
|
|
4609
|
+
return await handleEmail(
|
|
4610
|
+
url.searchParams,
|
|
4611
|
+
request,
|
|
4612
|
+
service,
|
|
4613
|
+
env,
|
|
4614
|
+
ctx
|
|
4615
|
+
);
|
|
4616
|
+
if (url.pathname.startsWith("/cdn-cgi/handler/"))
|
|
4617
|
+
return new Response(
|
|
4618
|
+
`"${url.pathname}" is not a valid handler. Did you mean to use "/cdn-cgi/handler/scheduled" or "/cdn-cgi/handler/email"?`,
|
|
4619
|
+
{ status: 404 }
|
|
4620
|
+
);
|
|
4621
|
+
}
|
|
4622
|
+
let response = await service.fetch(request);
|
|
4623
|
+
return disablePrettyErrorPage || (response = await maybePrettifyError(request, response, env)), response = maybeInjectLiveReload(response, env, ctx), response = ensureAcceptableEncoding(clientAcceptEncoding, response), env[CoreBindings.LOG_REQUESTS] && (response = maybeLogRequest(request, response, env, ctx, startTime)), response;
|
|
4624
|
+
} catch (e) {
|
|
4625
|
+
return new Response(e?.stack ?? String(e), { status: 500 });
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
};
|
|
4629
|
+
export {
|
|
4630
|
+
ProxyServer,
|
|
4631
|
+
entry_worker_default as default
|
|
4632
|
+
};
|
|
4633
|
+
//# sourceMappingURL=entry.worker.js.map
|