parse-tmx 2.32.1 → 2.34.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/dist/index.d.ts +0 -128
- package/dist/index.js +12 -155
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,22 @@
|
|
|
1
|
-
//#region src/models/tmx/parsed/TMXEditorSettingsParsed.d.ts
|
|
2
1
|
interface TMXEditorSettingsParsed extends Record<string, unknown> {}
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region src/models/tmx/parsed/TMXFlipsParsed.d.ts
|
|
5
2
|
interface TMXFlipsParsed {
|
|
6
3
|
Diagonal: boolean;
|
|
7
4
|
Horizontal: boolean;
|
|
8
5
|
Vertical: boolean;
|
|
9
6
|
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/models/tmx/shared/TMXImageShared.d.ts
|
|
12
7
|
interface TMXImageShared {
|
|
13
8
|
height: number;
|
|
14
9
|
source: string;
|
|
15
10
|
width: number;
|
|
16
11
|
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/models/tmx/parsed/TMXImageParsed.d.ts
|
|
19
12
|
interface TMXImageParsed extends TMXImageShared {}
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/models/Shape.d.ts
|
|
22
13
|
declare enum Shape {
|
|
23
14
|
Ellipse = "ellipse",
|
|
24
15
|
Point = "point",
|
|
25
16
|
Polygon = "polygon",
|
|
26
17
|
Rectangle = "rectangle"
|
|
27
18
|
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/models/tmx/parsed/TMXPropertiesParsed.d.ts
|
|
30
19
|
type TMXPropertiesParsed = Record<string, unknown>[];
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/models/tmx/shared/TMXObjectShared.d.ts
|
|
33
20
|
interface TMXObjectShared {
|
|
34
21
|
gid: number;
|
|
35
22
|
height: number;
|
|
@@ -39,8 +26,6 @@ interface TMXObjectShared {
|
|
|
39
26
|
x: number;
|
|
40
27
|
y: number;
|
|
41
28
|
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/models/tmx/parsed/TMXObjectParsed.d.ts
|
|
44
29
|
interface TMXObjectParsed extends TMXObjectShared {
|
|
45
30
|
flips?: TMXFlipsParsed;
|
|
46
31
|
name: string;
|
|
@@ -50,8 +35,6 @@ interface TMXObjectParsed extends TMXObjectShared {
|
|
|
50
35
|
text?: string;
|
|
51
36
|
value: string;
|
|
52
37
|
}
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/models/tmx/shared/TMXLayerShared.d.ts
|
|
55
38
|
interface TMXLayerShared {
|
|
56
39
|
height: number;
|
|
57
40
|
id: number;
|
|
@@ -69,8 +52,6 @@ interface TMXLayerShared {
|
|
|
69
52
|
x?: number;
|
|
70
53
|
y?: number;
|
|
71
54
|
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/models/tmx/parsed/TMXLayerParsed.d.ts
|
|
74
55
|
interface TMXLayerParsed extends TMXLayerShared {
|
|
75
56
|
data?: number[];
|
|
76
57
|
flips?: TMXFlipsParsed[];
|
|
@@ -78,28 +59,20 @@ interface TMXLayerParsed extends TMXLayerShared {
|
|
|
78
59
|
objects?: TMXObjectParsed[];
|
|
79
60
|
properties?: TMXPropertiesParsed;
|
|
80
61
|
}
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/models/tmx/shared/TMXGroupLayerShared.d.ts
|
|
83
62
|
interface TMXGroupLayerShared {
|
|
84
63
|
id: number;
|
|
85
64
|
name: string;
|
|
86
65
|
type: string;
|
|
87
66
|
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/models/tmx/parsed/TMXGroupLayerParsed.d.ts
|
|
90
67
|
interface TMXGroupLayerParsed extends TMXGroupLayerShared {
|
|
91
68
|
layers: TMXLayerParsed[];
|
|
92
69
|
properties?: TMXPropertiesParsed;
|
|
93
70
|
}
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region src/models/tmx/shared/TMXTileShared.d.ts
|
|
96
71
|
interface TMXTileShared {
|
|
97
72
|
gid?: number;
|
|
98
73
|
id: number;
|
|
99
74
|
probability?: number;
|
|
100
75
|
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/models/tmx/parsed/TMXTileParsed.d.ts
|
|
103
76
|
interface TMXTileParsed extends TMXTileShared {
|
|
104
77
|
animation?: {
|
|
105
78
|
frames: number[];
|
|
@@ -109,13 +82,9 @@ interface TMXTileParsed extends TMXTileShared {
|
|
|
109
82
|
properties?: TMXPropertiesParsed;
|
|
110
83
|
type: string;
|
|
111
84
|
}
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region src/models/tmx/shared/TMXBaseTilesetShared.d.ts
|
|
114
85
|
interface TMXBaseTilesetShared {
|
|
115
86
|
firstgid: number;
|
|
116
87
|
}
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/models/tmx/shared/TMXEmbeddedTilesetShared.d.ts
|
|
119
88
|
interface TMXEmbeddedTilesetShared extends TMXBaseTilesetShared {
|
|
120
89
|
columns: number;
|
|
121
90
|
imageheight: number;
|
|
@@ -127,25 +96,15 @@ interface TMXEmbeddedTilesetShared extends TMXBaseTilesetShared {
|
|
|
127
96
|
tileheight: number;
|
|
128
97
|
tilewidth: number;
|
|
129
98
|
}
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region src/models/tmx/parsed/TMXEmbeddedTilesetParsed.d.ts
|
|
132
99
|
interface TMXEmbeddedTilesetParsed extends TMXEmbeddedTilesetShared {
|
|
133
100
|
image: TMXImageParsed;
|
|
134
101
|
tiles: TMXTileParsed[];
|
|
135
102
|
}
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/models/tmx/shared/TMXExternalTilesetShared.d.ts
|
|
138
103
|
interface TMXExternalTilesetShared extends TMXBaseTilesetShared {
|
|
139
104
|
source: string;
|
|
140
105
|
}
|
|
141
|
-
//#endregion
|
|
142
|
-
//#region src/models/tmx/parsed/TMXExternalTilesetParsed.d.ts
|
|
143
106
|
interface TMXExternalTilesetParsed extends TMXExternalTilesetShared {}
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region src/models/tmx/parsed/TMXTilesetParsed.d.ts
|
|
146
107
|
type TMXTilesetParsed = TMXEmbeddedTilesetParsed | TMXExternalTilesetParsed;
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/models/tmx/shared/TMXMapShared.d.ts
|
|
149
108
|
declare class TMXMapShared {
|
|
150
109
|
height: number;
|
|
151
110
|
infinite: number;
|
|
@@ -159,8 +118,6 @@ declare class TMXMapShared {
|
|
|
159
118
|
version: number;
|
|
160
119
|
width: number;
|
|
161
120
|
}
|
|
162
|
-
//#endregion
|
|
163
|
-
//#region src/models/tmx/parsed/TMXMapParsed.d.ts
|
|
164
121
|
declare class TMXMapParsed extends TMXMapShared {
|
|
165
122
|
editorsettings: TMXEditorSettingsParsed;
|
|
166
123
|
layers: (TMXGroupLayerParsed | TMXLayerParsed)[];
|
|
@@ -168,77 +125,49 @@ declare class TMXMapParsed extends TMXMapShared {
|
|
|
168
125
|
tilesets: TMXTilesetParsed[];
|
|
169
126
|
constructor(init?: Partial<TMXMapParsed>);
|
|
170
127
|
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region src/models/tmx/parsed/TMXParsed.d.ts
|
|
173
128
|
declare class TMXParsed {
|
|
174
129
|
map: TMXMapParsed;
|
|
175
130
|
constructor(map?: TMXMapParsed);
|
|
176
131
|
}
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/parseTmx.d.ts
|
|
179
132
|
declare const parseTmx: (xmlString: string, translateFlips?: boolean) => Promise<TMXParsed>;
|
|
180
|
-
//#endregion
|
|
181
|
-
//#region src/models/Compression.d.ts
|
|
182
133
|
declare enum Compression {
|
|
183
134
|
Gzip = "gzip",
|
|
184
135
|
Zlib = "zlib"
|
|
185
136
|
}
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/models/Encoding.d.ts
|
|
188
137
|
declare enum Encoding {
|
|
189
138
|
Base64 = "base64",
|
|
190
139
|
Csv = "csv"
|
|
191
140
|
}
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/models/Flipped.d.ts
|
|
194
141
|
declare enum Flipped {
|
|
195
142
|
Diagonally = 536870912,
|
|
196
143
|
Vertically = 1073741824,
|
|
197
144
|
Horizontally = 2147483648
|
|
198
145
|
}
|
|
199
146
|
declare const Flippeds: ReadonlySet<Flipped>;
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region src/util/getDecompressedBytes.d.ts
|
|
202
147
|
declare const getDecompressedBytes: (bytes: Uint8Array, compression: Compression.Gzip | Compression.Zlib) => Promise<Uint8Array>;
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/util/isExternalTileset.d.ts
|
|
205
148
|
declare const isExternalTileset: (tileset: TMXEmbeddedTilesetShared | TMXExternalTilesetShared) => tileset is TMXExternalTilesetShared;
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region src/models/tmx/node/BaseTMXNode.d.ts
|
|
208
149
|
declare class BaseTMXNode<T> {
|
|
209
150
|
#private;
|
|
210
151
|
[key: string]: unknown;
|
|
211
152
|
$: T;
|
|
212
153
|
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region src/models/tmx/node/TMXNode.d.ts
|
|
215
154
|
type TMXNode<T, TChildNode extends BaseTMXNode<unknown> | undefined = undefined> = BaseTMXNode<T> & {
|
|
216
155
|
$$: TChildNode extends undefined ? undefined : TChildNode[];
|
|
217
156
|
};
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region src/models/tmx/node/TMXDataNode.d.ts
|
|
220
157
|
interface TMXDataNode extends TMXNode<{
|
|
221
158
|
compression?: Compression;
|
|
222
159
|
encoding: Encoding;
|
|
223
160
|
}> {
|
|
224
161
|
_: string;
|
|
225
162
|
}
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region src/models/tmx/node/TMXImageNode.d.ts
|
|
228
163
|
interface TMXImageNode extends TMXNode<TMXImageShared> {}
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/models/tmx/node/TMXPropertyNode.d.ts
|
|
231
164
|
interface TMXPropertyNode extends TMXNode<{
|
|
232
165
|
name: string;
|
|
233
166
|
value?: string;
|
|
234
167
|
}> {
|
|
235
168
|
_: string;
|
|
236
169
|
}
|
|
237
|
-
//#endregion
|
|
238
|
-
//#region src/models/tmx/node/TMXPropertiesNode.d.ts
|
|
239
170
|
interface TMXPropertiesNode extends TMXNode<Record<string, never>, TMXPropertyNode> {}
|
|
240
|
-
//#endregion
|
|
241
|
-
//#region src/models/tmx/node/TMXObjectNode.d.ts
|
|
242
171
|
interface TMXObjectNode extends TMXNode<TMXObjectShared, TMXDataNode | TMXPropertiesNode> {
|
|
243
172
|
polygon?: TMXNode<{
|
|
244
173
|
points: string;
|
|
@@ -248,8 +177,6 @@ interface TMXObjectNode extends TMXNode<TMXObjectShared, TMXDataNode | TMXProper
|
|
|
248
177
|
}[];
|
|
249
178
|
text?: TMXDataNode[];
|
|
250
179
|
}
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region src/models/tmx/node/TMXTileNode.d.ts
|
|
253
180
|
interface TMXTileNode extends TMXNode<TMXTileShared, TMXPropertiesNode> {
|
|
254
181
|
animation?: Record<string, TMXNode<number>[]>[];
|
|
255
182
|
objectgroup?: Record<string, TMXObjectNode[]>[];
|
|
@@ -257,19 +184,11 @@ interface TMXTileNode extends TMXNode<TMXTileShared, TMXPropertiesNode> {
|
|
|
257
184
|
property: TMXPropertyNode[];
|
|
258
185
|
}[];
|
|
259
186
|
}
|
|
260
|
-
//#endregion
|
|
261
|
-
//#region src/models/tmx/node/TMXEmbeddedTilesetNode.d.ts
|
|
262
187
|
interface TMXEmbeddedTilesetNode extends TMXNode<TMXEmbeddedTilesetShared, TMXImageNode | TMXTileNode> {
|
|
263
188
|
tile?: TMXTileNode[];
|
|
264
189
|
}
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/util/isTMXEmbeddedTilesetNode.d.ts
|
|
267
190
|
declare const isTMXEmbeddedTilesetNode: (node: TMXDataNode | TMXEmbeddedTilesetNode) => node is TMXEmbeddedTilesetNode;
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region src/util/parseFlips.d.ts
|
|
270
191
|
declare const parseFlips: (gid: number) => TMXFlipsParsed;
|
|
271
|
-
//#endregion
|
|
272
|
-
//#region src/models/tmx/node/TMXLayerNode.d.ts
|
|
273
192
|
interface TMXLayerNode extends TMXNode<TMXLayerShared, TMXDataNode | TMXEmbeddedTilesetNode | TMXPropertiesNode> {
|
|
274
193
|
data?: TMXDataNode[] | TMXEmbeddedTilesetNode[];
|
|
275
194
|
image?: TMXImageNode[];
|
|
@@ -278,82 +197,38 @@ interface TMXLayerNode extends TMXNode<TMXLayerShared, TMXDataNode | TMXEmbedded
|
|
|
278
197
|
property: TMXPropertyNode[];
|
|
279
198
|
}[];
|
|
280
199
|
}
|
|
281
|
-
//#endregion
|
|
282
|
-
//#region src/models/tmx/node/TMXGroupLayerNode.d.ts
|
|
283
200
|
interface TMXGroupLayerNode extends TMXNode<TMXGroupLayerShared, TMXLayerNode> {
|
|
284
201
|
properties?: {
|
|
285
202
|
property: TMXPropertyNode[];
|
|
286
203
|
}[];
|
|
287
204
|
}
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/util/parseGroup.d.ts
|
|
290
205
|
declare const parseGroup: (node: TMXGroupLayerNode, expectedCount: number, translateFlips: boolean) => Promise<TMXGroupLayerParsed>;
|
|
291
|
-
//#endregion
|
|
292
|
-
//#region src/util/parseLayer.d.ts
|
|
293
206
|
declare const parseLayer: (node: TMXLayerNode) => TMXLayerParsed;
|
|
294
|
-
//#endregion
|
|
295
|
-
//#region src/util/parseNode.d.ts
|
|
296
207
|
declare const parseNode: <TNode extends TMXGroupLayerNode | TMXLayerNode, TParsedNode = (TNode extends TMXLayerNode ? TMXLayerParsed : TMXGroupLayerParsed)>(node: TNode, expectedCount: number, translateFlips: boolean) => Promise<TParsedNode>;
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region src/util/parseObject.d.ts
|
|
299
208
|
declare const parseObject: (node: TMXObjectNode) => TMXObjectParsed;
|
|
300
|
-
//#endregion
|
|
301
|
-
//#region src/util/parseObjectShape.d.ts
|
|
302
209
|
declare const parseObjectShape: (node: TMXObjectNode) => Shape;
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/util/parseProperties.d.ts
|
|
305
210
|
declare const parseProperties: (properties: {
|
|
306
211
|
property: TMXPropertyNode[];
|
|
307
212
|
}[]) => TMXPropertiesParsed;
|
|
308
|
-
//#endregion
|
|
309
|
-
//#region src/util/parseTile.d.ts
|
|
310
213
|
declare const parseTile: (node: TMXTileNode) => TMXTileParsed;
|
|
311
|
-
//#endregion
|
|
312
|
-
//#region src/util/parseTileId.d.ts
|
|
313
214
|
declare const parseTileId: (gid: number) => number;
|
|
314
|
-
//#endregion
|
|
315
|
-
//#region src/util/parseTileLayer.d.ts
|
|
316
215
|
declare const parseTileLayer: (node: TMXLayerNode, expectedCount: number, translateFlips: boolean) => Promise<TMXLayerParsed>;
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/models/tmx/node/TMXExternalTilesetNode.d.ts
|
|
319
216
|
interface TMXExternalTilesetNode extends TMXNode<TMXExternalTilesetShared> {}
|
|
320
|
-
//#endregion
|
|
321
|
-
//#region src/models/tmx/node/TMXTilesetNode.d.ts
|
|
322
217
|
type TMXTilesetNode = TMXEmbeddedTilesetNode | TMXExternalTilesetNode;
|
|
323
|
-
//#endregion
|
|
324
|
-
//#region src/util/parseTileset.d.ts
|
|
325
218
|
declare const parseTileset: (node: TMXTilesetNode) => TMXTilesetParsed;
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region src/util/parseXmlString.d.ts
|
|
328
219
|
declare const parseXmlString: <T extends object>(xmlString: string) => Promise<T>;
|
|
329
|
-
//#endregion
|
|
330
|
-
//#region src/util/parseXmlValue.d.ts
|
|
331
220
|
declare const parseXmlValue: (value: string) => boolean | number | string;
|
|
332
|
-
//#endregion
|
|
333
|
-
//#region src/util/unpackTileBytes.d.ts
|
|
334
221
|
declare const unpackTileBytes: (bytes: Uint8Array, expectedCount: number) => number[];
|
|
335
|
-
//#endregion
|
|
336
|
-
//#region src/models/tmx/shared/TMXExportShared.d.ts
|
|
337
222
|
interface TMXExportShared {
|
|
338
223
|
format: string;
|
|
339
224
|
target: string;
|
|
340
225
|
}
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region src/models/tmx/node/TMXExportNode.d.ts
|
|
343
226
|
interface TMXExportNode extends TMXNode<TMXExportShared> {}
|
|
344
|
-
//#endregion
|
|
345
|
-
//#region src/models/tmx/node/TMXEditorSettingsNode.d.ts
|
|
346
227
|
interface TMXEditorSettingsNode extends TMXNode<Record<string, never>, TMXExportNode> {}
|
|
347
|
-
//#endregion
|
|
348
|
-
//#region src/models/tmx/node/TMXMapNode.d.ts
|
|
349
228
|
interface TMXMapNode extends TMXNode<TMXMapShared, TMXEditorSettingsNode | TMXGroupLayerNode | TMXPropertiesNode | TMXTilesetNode> {}
|
|
350
|
-
//#endregion
|
|
351
|
-
//#region src/models/tmx/node/TMX.d.ts
|
|
352
229
|
interface TMX {
|
|
353
230
|
map: TMXMapNode;
|
|
354
231
|
}
|
|
355
|
-
//#endregion
|
|
356
|
-
//#region src/models/tmx/node/TMXNodeType.d.ts
|
|
357
232
|
declare enum TMXNodeType {
|
|
358
233
|
Data = "data",
|
|
359
234
|
EditorSettings = "editorsettings",
|
|
@@ -368,8 +243,5 @@ declare enum TMXNodeType {
|
|
|
368
243
|
Property = "property",
|
|
369
244
|
Tileset = "tileset"
|
|
370
245
|
}
|
|
371
|
-
//#endregion
|
|
372
|
-
//#region src/models/tmx/parsed/TMXExportParsed.d.ts
|
|
373
246
|
interface TMXExportParsed extends TMXExportShared {}
|
|
374
|
-
//#endregion
|
|
375
247
|
export { BaseTMXNode, Compression, Encoding, Flipped, Flippeds, Shape, TMX, TMXBaseTilesetShared, TMXDataNode, TMXEditorSettingsNode, TMXEditorSettingsParsed, TMXEmbeddedTilesetNode, TMXEmbeddedTilesetParsed, TMXEmbeddedTilesetShared, TMXExportNode, TMXExportParsed, TMXExportShared, TMXExternalTilesetNode, TMXExternalTilesetParsed, TMXExternalTilesetShared, TMXFlipsParsed, TMXGroupLayerNode, TMXGroupLayerParsed, TMXGroupLayerShared, TMXImageNode, TMXImageParsed, TMXImageShared, TMXLayerNode, TMXLayerParsed, TMXLayerShared, TMXMapNode, TMXMapParsed, TMXMapShared, TMXNode, TMXNodeType, TMXObjectNode, TMXObjectParsed, TMXObjectShared, TMXParsed, TMXPropertiesNode, TMXPropertiesParsed, TMXPropertyNode, TMXTileNode, TMXTileParsed, TMXTileShared, TMXTilesetNode, TMXTilesetParsed, getDecompressedBytes, isExternalTileset, isTMXEmbeddedTilesetNode, parseFlips, parseGroup, parseLayer, parseNode, parseObject, parseObjectShape, parseProperties, parseTile, parseTileId, parseTileLayer, parseTileset, parseTmx, parseXmlString, parseXmlValue, unpackTileBytes };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InvalidOperationError, Operation, exhaustiveGuard, normalizeString, takeOne } from "@esposter/shared";
|
|
2
2
|
import { parseStringPromise } from "@esposter/xml2js";
|
|
3
|
-
//#region \0rolldown/runtime.js
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
6
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -40,8 +39,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
39
|
enumerable: true
|
|
41
40
|
}) : target, mod));
|
|
42
41
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/models/tmx/node/TMXNodeType.ts
|
|
45
42
|
let TMXNodeType = /* @__PURE__ */ function(TMXNodeType) {
|
|
46
43
|
TMXNodeType["Data"] = "data";
|
|
47
44
|
TMXNodeType["EditorSettings"] = "editorsettings";
|
|
@@ -57,8 +54,6 @@ let TMXNodeType = /* @__PURE__ */ function(TMXNodeType) {
|
|
|
57
54
|
TMXNodeType["Tileset"] = "tileset";
|
|
58
55
|
return TMXNodeType;
|
|
59
56
|
}({});
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/models/tmx/shared/TMXMapShared.ts
|
|
62
57
|
var TMXMapShared = class {
|
|
63
58
|
height = 0;
|
|
64
59
|
infinite = 0;
|
|
@@ -72,8 +67,6 @@ var TMXMapShared = class {
|
|
|
72
67
|
version = 0;
|
|
73
68
|
width = 0;
|
|
74
69
|
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/models/tmx/parsed/TMXMapParsed.ts
|
|
77
70
|
var TMXMapParsed = class extends TMXMapShared {
|
|
78
71
|
editorsettings = {};
|
|
79
72
|
layers = [];
|
|
@@ -84,16 +77,12 @@ var TMXMapParsed = class extends TMXMapShared {
|
|
|
84
77
|
Object.assign(this, init);
|
|
85
78
|
}
|
|
86
79
|
};
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region src/models/tmx/parsed/TMXParsed.ts
|
|
89
80
|
var TMXParsed = class {
|
|
90
81
|
map = new TMXMapParsed();
|
|
91
82
|
constructor(map) {
|
|
92
83
|
if (map) this.map = map;
|
|
93
84
|
}
|
|
94
85
|
};
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/util/parseGroup.ts
|
|
97
86
|
const parseGroup = async (node, expectedCount, translateFlips) => {
|
|
98
87
|
const { $, $$ } = node;
|
|
99
88
|
const group = structuredClone($);
|
|
@@ -101,8 +90,6 @@ const parseGroup = async (node, expectedCount, translateFlips) => {
|
|
|
101
90
|
group.layers = await Promise.all($$.map((l) => parseNode(l, expectedCount, translateFlips)));
|
|
102
91
|
return group;
|
|
103
92
|
};
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region src/models/Flipped.ts
|
|
106
93
|
let Flipped = /* @__PURE__ */ function(Flipped) {
|
|
107
94
|
Flipped[Flipped["Diagonally"] = 536870912] = "Diagonally";
|
|
108
95
|
Flipped[Flipped["Vertically"] = 1073741824] = "Vertically";
|
|
@@ -110,15 +97,11 @@ let Flipped = /* @__PURE__ */ function(Flipped) {
|
|
|
110
97
|
return Flipped;
|
|
111
98
|
}({});
|
|
112
99
|
const Flippeds = new Set(Object.values(Flipped).filter((value) => typeof value === "number"));
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region src/util/parseFlips.ts
|
|
115
100
|
const parseFlips = (gid) => ({
|
|
116
101
|
Diagonal: Boolean(gid & 536870912),
|
|
117
102
|
Horizontal: Boolean(gid & 2147483648),
|
|
118
103
|
Vertical: Boolean(gid & 1073741824)
|
|
119
104
|
});
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/models/Shape.ts
|
|
122
105
|
let Shape = /* @__PURE__ */ function(Shape) {
|
|
123
106
|
Shape["Ellipse"] = "ellipse";
|
|
124
107
|
Shape["Point"] = "point";
|
|
@@ -126,16 +109,12 @@ let Shape = /* @__PURE__ */ function(Shape) {
|
|
|
126
109
|
Shape["Rectangle"] = "rectangle";
|
|
127
110
|
return Shape;
|
|
128
111
|
}({});
|
|
129
|
-
//#endregion
|
|
130
|
-
//#region src/util/parseObjectShape.ts
|
|
131
112
|
const parseObjectShape = (node) => {
|
|
132
113
|
if ("point" in node) return "point";
|
|
133
114
|
else if ("ellipse" in node) return "ellipse";
|
|
134
115
|
else if ("polygon" in node) return "polygon";
|
|
135
116
|
else return "rectangle";
|
|
136
117
|
};
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region src/util/parseProperties.ts
|
|
139
118
|
const parseProperties = (properties) => properties.map(({ property }) => {
|
|
140
119
|
const { $, _ } = takeOne(property);
|
|
141
120
|
const { name, value } = $;
|
|
@@ -144,12 +123,8 @@ const parseProperties = (properties) => properties.map(({ property }) => {
|
|
|
144
123
|
value: value ?? _
|
|
145
124
|
};
|
|
146
125
|
});
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/util/parseTileId.ts
|
|
149
126
|
const FLIPPED_MASK = ~[...Flippeds].reduce((acc, curr) => acc | curr, 0);
|
|
150
127
|
const parseTileId = (gid) => gid & FLIPPED_MASK;
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region src/util/parseObject.ts
|
|
153
128
|
const parseObject = (node) => {
|
|
154
129
|
const { $, polygon, properties, text } = node;
|
|
155
130
|
const object = structuredClone($);
|
|
@@ -172,8 +147,6 @@ const parseObject = (node) => {
|
|
|
172
147
|
}
|
|
173
148
|
return object;
|
|
174
149
|
};
|
|
175
|
-
//#endregion
|
|
176
|
-
//#region src/util/parseLayer.ts
|
|
177
150
|
const parseLayer = (node) => {
|
|
178
151
|
const { $, image, object, properties } = node;
|
|
179
152
|
const layer = structuredClone($);
|
|
@@ -184,22 +157,16 @@ const parseLayer = (node) => {
|
|
|
184
157
|
if (properties) layer.properties = parseProperties(properties);
|
|
185
158
|
return layer;
|
|
186
159
|
};
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/models/Compression.ts
|
|
189
160
|
let Compression = /* @__PURE__ */ function(Compression) {
|
|
190
161
|
Compression["Gzip"] = "gzip";
|
|
191
162
|
Compression["Zlib"] = "zlib";
|
|
192
163
|
return Compression;
|
|
193
164
|
}({});
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/models/Encoding.ts
|
|
196
165
|
let Encoding = /* @__PURE__ */ function(Encoding) {
|
|
197
166
|
Encoding["Base64"] = "base64";
|
|
198
167
|
Encoding["Csv"] = "csv";
|
|
199
168
|
return Encoding;
|
|
200
169
|
}({});
|
|
201
|
-
//#endregion
|
|
202
|
-
//#region src/util/getDecompressedBytes.ts
|
|
203
170
|
const getDecompressedBytes = async (bytes, compression) => {
|
|
204
171
|
const format = compression === "gzip" ? "gzip" : "deflate";
|
|
205
172
|
const compressedTileStream = new Response(bytes).body;
|
|
@@ -207,11 +174,7 @@ const getDecompressedBytes = async (bytes, compression) => {
|
|
|
207
174
|
const decompressedTileStream = compressedTileStream.pipeThrough(new DecompressionStream(format));
|
|
208
175
|
return new Uint8Array(await new Response(decompressedTileStream).arrayBuffer());
|
|
209
176
|
};
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/util/isTMXEmbeddedTilesetNode.ts
|
|
212
177
|
const isTMXEmbeddedTilesetNode = (node) => "tile" in node;
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region src/util/unpackTileBytes.ts
|
|
215
178
|
const unpackTileBytes = (bytes, expectedCount) => {
|
|
216
179
|
const unpackedTiles = [];
|
|
217
180
|
if (bytes.byteLength !== expectedCount) throw new Error(`Expected ${expectedCount} bytes of tile data; received ${bytes.byteLength}`);
|
|
@@ -219,8 +182,6 @@ const unpackTileBytes = (bytes, expectedCount) => {
|
|
|
219
182
|
for (let i = 0; i < expectedCount; i += 4) unpackedTiles.push(dataView.getUint32(i, true));
|
|
220
183
|
return unpackedTiles;
|
|
221
184
|
};
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/util/parseTileLayer.ts
|
|
224
185
|
const parseTileLayer = async (node, expectedCount, translateFlips) => {
|
|
225
186
|
const { data, properties } = node;
|
|
226
187
|
if (!data) throw new Error("TMXLayer data corrupted!");
|
|
@@ -264,8 +225,6 @@ const parseTileLayer = async (node, expectedCount, translateFlips) => {
|
|
|
264
225
|
}
|
|
265
226
|
return layer;
|
|
266
227
|
};
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region src/util/parseNode.ts
|
|
269
228
|
const parseNode = (node, expectedCount, translateFlips) => {
|
|
270
229
|
const tmxNodeType = node["#name"];
|
|
271
230
|
switch (tmxNodeType) {
|
|
@@ -276,11 +235,7 @@ const parseNode = (node, expectedCount, translateFlips) => {
|
|
|
276
235
|
default: throw new InvalidOperationError(Operation.Read, parseNode.name, tmxNodeType);
|
|
277
236
|
}
|
|
278
237
|
};
|
|
279
|
-
//#endregion
|
|
280
|
-
//#region src/util/isExternalTileset.ts
|
|
281
238
|
const isExternalTileset = (tileset) => "source" in tileset;
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/util/parseTile.ts
|
|
284
239
|
const parseTile = (node) => {
|
|
285
240
|
const { $, animation, objectgroup, properties } = node;
|
|
286
241
|
const tile = structuredClone($);
|
|
@@ -289,8 +244,6 @@ const parseTile = (node) => {
|
|
|
289
244
|
if (properties) tile.properties = parseProperties(properties);
|
|
290
245
|
return tile;
|
|
291
246
|
};
|
|
292
|
-
//#endregion
|
|
293
|
-
//#region src/util/parseTileset.ts
|
|
294
247
|
const parseTileset = (node) => {
|
|
295
248
|
if (isExternalTileset(node.$)) return structuredClone(node.$);
|
|
296
249
|
const { $, $$, tile } = node;
|
|
@@ -306,8 +259,6 @@ const parseTileset = (node) => {
|
|
|
306
259
|
}
|
|
307
260
|
throw new InvalidOperationError(Operation.Read, parseTileset.name, $.name);
|
|
308
261
|
};
|
|
309
|
-
//#endregion
|
|
310
|
-
//#region src/util/parseXmlValue.ts
|
|
311
262
|
const NUMBER_REGEX = /^[+-]?\d+(?<decimal>\.\d+)?$/u;
|
|
312
263
|
const parseXmlValue = (value) => {
|
|
313
264
|
if (value === "true") return true;
|
|
@@ -317,8 +268,6 @@ const parseXmlValue = (value) => {
|
|
|
317
268
|
return isNaN(parsedValue) ? value : parsedValue;
|
|
318
269
|
} else return value;
|
|
319
270
|
};
|
|
320
|
-
//#endregion
|
|
321
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/utils.js
|
|
322
271
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
323
272
|
exports.removeLeadingAndTrailingHTTPWhitespace = (string) => {
|
|
324
273
|
return string.replace(/^[ \t\n\r]+/u, "").replace(/[ \t\n\r]+$/u, "");
|
|
@@ -361,8 +310,6 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
361
310
|
return [value, position];
|
|
362
311
|
};
|
|
363
312
|
}));
|
|
364
|
-
//#endregion
|
|
365
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.js
|
|
366
313
|
var require_mime_type_parameters = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
367
314
|
const { asciiLowercase, solelyContainsHTTPTokenCodePoints, soleyContainsHTTPQuotedStringTokenCodePoints } = require_utils$2();
|
|
368
315
|
module.exports = class MIMETypeParameters {
|
|
@@ -411,8 +358,6 @@ var require_mime_type_parameters = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
411
358
|
}
|
|
412
359
|
};
|
|
413
360
|
}));
|
|
414
|
-
//#endregion
|
|
415
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/parser.js
|
|
416
361
|
var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
417
362
|
const { removeLeadingAndTrailingHTTPWhitespace, removeTrailingHTTPWhitespace, isHTTPWhitespaceChar, solelyContainsHTTPTokenCodePoints, soleyContainsHTTPQuotedStringTokenCodePoints, asciiLowercase, collectAnHTTPQuotedString } = require_utils$2();
|
|
418
363
|
module.exports = (input) => {
|
|
@@ -469,8 +414,6 @@ var require_parser$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
469
414
|
return mimeType;
|
|
470
415
|
};
|
|
471
416
|
}));
|
|
472
|
-
//#endregion
|
|
473
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/serializer.js
|
|
474
417
|
var require_serializer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
475
418
|
const { solelyContainsHTTPTokenCodePoints } = require_utils$2();
|
|
476
419
|
module.exports = (mimeType) => {
|
|
@@ -489,8 +432,6 @@ var require_serializer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
489
432
|
return serialization;
|
|
490
433
|
};
|
|
491
434
|
}));
|
|
492
|
-
//#endregion
|
|
493
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/mime-type.js
|
|
494
435
|
var require_mime_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
495
436
|
const MIMETypeParameters = require_mime_type_parameters();
|
|
496
437
|
const parse = require_parser$1();
|
|
@@ -574,8 +515,6 @@ var require_mime_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
574
515
|
}
|
|
575
516
|
};
|
|
576
517
|
}));
|
|
577
|
-
//#endregion
|
|
578
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/sniff.js
|
|
579
518
|
var require_sniff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
580
519
|
const MIMEType = require_mime_type();
|
|
581
520
|
function normalizeMIMEType(input) {
|
|
@@ -1481,10 +1420,12 @@ var require_sniff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1481
1420
|
function parseMP3Frame(sequence, s) {
|
|
1482
1421
|
const version = (sequence[s + 1] & 24) >> 3;
|
|
1483
1422
|
const bitrateIndex = (sequence[s + 2] & 240) >> 4;
|
|
1423
|
+
const bitrate = (version & 1) !== 0 ? mp3Rates[bitrateIndex] : mp25Rates[bitrateIndex];
|
|
1424
|
+
const samplerateIndex = (sequence[s + 2] & 12) >> 2;
|
|
1484
1425
|
return {
|
|
1485
1426
|
version,
|
|
1486
|
-
bitrate
|
|
1487
|
-
samplerate: sampleRates[
|
|
1427
|
+
bitrate,
|
|
1428
|
+
samplerate: sampleRates[samplerateIndex],
|
|
1488
1429
|
pad: (sequence[s + 2] & 2) >> 1
|
|
1489
1430
|
};
|
|
1490
1431
|
}
|
|
@@ -1669,14 +1610,10 @@ var require_sniff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1669
1610
|
return suppliedMIMEType;
|
|
1670
1611
|
};
|
|
1671
1612
|
}));
|
|
1672
|
-
//#endregion
|
|
1673
|
-
//#region ../../node_modules/.pnpm/whatwg-mimetype@5.0.0/node_modules/whatwg-mimetype/lib/index.js
|
|
1674
1613
|
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1675
1614
|
exports.MIMEType = require_mime_type();
|
|
1676
1615
|
exports.computedMIMEType = require_sniff();
|
|
1677
1616
|
}));
|
|
1678
|
-
//#endregion
|
|
1679
|
-
//#region ../../node_modules/.pnpm/webidl-conversions@8.0.1/node_modules/webidl-conversions/lib/index.js
|
|
1680
1617
|
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1681
1618
|
function makeException(ErrorType, message, options) {
|
|
1682
1619
|
if (options.globals) ErrorType = options.globals[ErrorType.name];
|
|
@@ -1916,8 +1853,6 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1916
1853
|
};
|
|
1917
1854
|
exports.DOMTimeStamp = exports["unsigned long long"];
|
|
1918
1855
|
}));
|
|
1919
|
-
//#endregion
|
|
1920
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/utils.js
|
|
1921
1856
|
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1922
1857
|
function isObject(value) {
|
|
1923
1858
|
return typeof value === "object" && value !== null || typeof value === "function";
|
|
@@ -2089,8 +2024,6 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2089
2024
|
ordinarySetWithOwnDescriptor
|
|
2090
2025
|
};
|
|
2091
2026
|
}));
|
|
2092
|
-
//#endregion
|
|
2093
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/platform.native.js
|
|
2094
2027
|
function decodePartAddition(a, start, end, m) {
|
|
2095
2028
|
let o = "";
|
|
2096
2029
|
let i = start;
|
|
@@ -2120,8 +2053,6 @@ var init_platform_native = __esmMin((() => {
|
|
|
2120
2053
|
isNative = (x) => x && (haveNativeBuffer$1 || `${x}`.includes("[native code]"));
|
|
2121
2054
|
if (!haveNativeBuffer$1 && isNative(() => {})) isNative = () => false;
|
|
2122
2055
|
}));
|
|
2123
|
-
//#endregion
|
|
2124
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/platform.browser.js
|
|
2125
2056
|
function decode2string(arr, start, end, m) {
|
|
2126
2057
|
if (end - start > 3e4) {
|
|
2127
2058
|
const concat = [];
|
|
@@ -2144,8 +2075,6 @@ var init_platform_browser = __esmMin((() => {
|
|
|
2144
2075
|
nativeDecoder = /* @__PURE__ */ (() => new TextDecoder("utf-8", { ignoreBOM: true }))();
|
|
2145
2076
|
nativeDecoderLatin1 = /* @__PURE__ */ (() => new TextDecoder("latin1", { ignoreBOM: true }))();
|
|
2146
2077
|
}));
|
|
2147
|
-
//#endregion
|
|
2148
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/_utils.js
|
|
2149
2078
|
function assertU8(arg) {
|
|
2150
2079
|
if (arg && arg instanceof Uint8Array) return;
|
|
2151
2080
|
throw new TypeError("Expected an Uint8Array");
|
|
@@ -2183,8 +2112,6 @@ var init__utils = __esmMin((() => {
|
|
|
2183
2112
|
E_STRING = "Input is not a string";
|
|
2184
2113
|
E_STRICT_UNICODE = "Input is not well-formed Unicode";
|
|
2185
2114
|
}));
|
|
2186
|
-
//#endregion
|
|
2187
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/latin1.js
|
|
2188
2115
|
function asciiPrefix(arr) {
|
|
2189
2116
|
let p = 0;
|
|
2190
2117
|
const length = arr.length;
|
|
@@ -2212,7 +2139,10 @@ function decodeLatin1(arr, start = 0, stop = arr.length) {
|
|
|
2212
2139
|
stop |= 0;
|
|
2213
2140
|
const total = stop - start;
|
|
2214
2141
|
if (total === 0) return "";
|
|
2215
|
-
if (useLatin1atob && total >= 256 && total < 1e8 && arr.toBase64 === web64$1 && arr.BYTES_PER_ELEMENT === 1)
|
|
2142
|
+
if (useLatin1atob && total >= 256 && total < 1e8 && arr.toBase64 === web64$1 && arr.BYTES_PER_ELEMENT === 1) {
|
|
2143
|
+
const sliced = start === 0 && stop === arr.length ? arr : arr.subarray(start, stop);
|
|
2144
|
+
return atob$2(sliced.toBase64());
|
|
2145
|
+
}
|
|
2216
2146
|
if (total > maxFunctionArgs) {
|
|
2217
2147
|
let prefix = "";
|
|
2218
2148
|
for (let i = start; i < stop;) {
|
|
@@ -2259,16 +2189,12 @@ var init_latin1 = __esmMin((() => {
|
|
|
2259
2189
|
return codes;
|
|
2260
2190
|
};
|
|
2261
2191
|
}));
|
|
2262
|
-
//#endregion
|
|
2263
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/assert.js
|
|
2264
2192
|
function assertEmptyRest(rest) {
|
|
2265
2193
|
if (Object.keys(rest).length > 0) throw new TypeError("Unexpected extra options");
|
|
2266
2194
|
}
|
|
2267
2195
|
var init_assert = __esmMin((() => {
|
|
2268
2196
|
Object.getPrototypeOf(Uint8Array);
|
|
2269
2197
|
}));
|
|
2270
|
-
//#endregion
|
|
2271
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/base64.js
|
|
2272
2198
|
var base64_exports = /* @__PURE__ */ __exportAll({
|
|
2273
2199
|
E_CHAR: () => E_CHAR$1,
|
|
2274
2200
|
E_LAST: () => E_LAST$1,
|
|
@@ -2433,8 +2359,6 @@ var init_base64$1 = __esmMin((() => {
|
|
|
2433
2359
|
E_LAST$1 = "Invalid last chunk";
|
|
2434
2360
|
mapSize = nativeEncoder ? 128 : 65536;
|
|
2435
2361
|
}));
|
|
2436
|
-
//#endregion
|
|
2437
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/base64.js
|
|
2438
2362
|
function maybeUnpad(res, padding) {
|
|
2439
2363
|
if (padding) return res;
|
|
2440
2364
|
const at = res.indexOf("=", res.length - 3);
|
|
@@ -2538,8 +2462,6 @@ var init_base64 = __esmMin((() => {
|
|
|
2538
2462
|
};
|
|
2539
2463
|
else fromBase64impl = (str, isBase64url, padding, format) => fromUint8(fromBase64(str, isBase64url), format);
|
|
2540
2464
|
}));
|
|
2541
|
-
//#endregion
|
|
2542
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/utf16.js
|
|
2543
2465
|
function decodeApiDecoders(input, loose, format) {
|
|
2544
2466
|
if (format === "uint16") {
|
|
2545
2467
|
if (!(input instanceof Uint16Array)) throw new TypeError("Expected an Uint16Array");
|
|
@@ -2568,8 +2490,6 @@ var init_utf16_browser = __esmMin((() => {
|
|
|
2568
2490
|
init_utf16();
|
|
2569
2491
|
utf16toString = (arr, format = "uint16") => decodeApiDecoders(arr, false, format);
|
|
2570
2492
|
}));
|
|
2571
|
-
//#endregion
|
|
2572
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.encodings.json
|
|
2573
2493
|
var require_multi_byte_encodings$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2574
2494
|
module.exports = {
|
|
2575
2495
|
"$C": [
|
|
@@ -23209,13 +23129,9 @@ var require_multi_byte_encodings$1 = /* @__PURE__ */ __commonJSMin(((exports, mo
|
|
|
23209
23129
|
]
|
|
23210
23130
|
};
|
|
23211
23131
|
}));
|
|
23212
|
-
//#endregion
|
|
23213
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.encodings.cjs
|
|
23214
23132
|
var require_multi_byte_encodings = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23215
23133
|
module.exports = () => require_multi_byte_encodings$1();
|
|
23216
23134
|
}));
|
|
23217
|
-
//#endregion
|
|
23218
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.table.js
|
|
23219
23135
|
function loadBase64(str) {
|
|
23220
23136
|
const x = fromBase64url(str);
|
|
23221
23137
|
const len = x.length;
|
|
@@ -23303,8 +23219,6 @@ var init_multi_byte_table = __esmMin((() => {
|
|
|
23303
23219
|
};
|
|
23304
23220
|
tables = /* @__PURE__ */ new Map();
|
|
23305
23221
|
}));
|
|
23306
|
-
//#endregion
|
|
23307
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/multi-byte.js
|
|
23308
23222
|
function multibyteDecoder(enc, loose = false) {
|
|
23309
23223
|
if (typeof loose !== "boolean") throw new TypeError("loose option should be boolean");
|
|
23310
23224
|
if (!Object.hasOwn(mappers, enc)) throw new RangeError("Unsupported encoding");
|
|
@@ -24065,8 +23979,6 @@ var init_multi_byte$1 = __esmMin((() => {
|
|
|
24065
23979
|
preencoders.gbk = preencoders.gb18030;
|
|
24066
23980
|
NON_LATIN$1 = /[^\x00-\xFF]/;
|
|
24067
23981
|
}));
|
|
24068
|
-
//#endregion
|
|
24069
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/multi-byte.js
|
|
24070
23982
|
function createMultibyteDecoder$1(encoding, loose = false) {
|
|
24071
23983
|
const jsDecoder = multibyteDecoder(encoding, loose);
|
|
24072
23984
|
let streaming = false;
|
|
@@ -24082,8 +23994,6 @@ var init_multi_byte = __esmMin((() => {
|
|
|
24082
23994
|
init_multi_byte$1();
|
|
24083
23995
|
}));
|
|
24084
23996
|
var init_utf8_auto_browser = __esmMin((() => {}));
|
|
24085
|
-
//#endregion
|
|
24086
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/utf8.js
|
|
24087
23997
|
function deLoose(str, loose, res) {
|
|
24088
23998
|
if (loose || str.length === res.length) return res;
|
|
24089
23999
|
if (isWellFormed) {
|
|
@@ -24126,8 +24036,6 @@ var init_utf8 = __esmMin((() => {
|
|
|
24126
24036
|
({isWellFormed} = String.prototype);
|
|
24127
24037
|
utf8fromStringLoose = (str, format = "uint8") => fromUint8(encode$2(str, true), format);
|
|
24128
24038
|
}));
|
|
24129
|
-
//#endregion
|
|
24130
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/single-byte.encodings.js
|
|
24131
24039
|
var r$1, i2, iB, i9, w1, w2, w7, w8, k8b, k8a, maps;
|
|
24132
24040
|
var init_single_byte_encodings = __esmMin((() => {
|
|
24133
24041
|
r$1 = 65533;
|
|
@@ -25489,8 +25397,6 @@ var init_single_byte_encodings = __esmMin((() => {
|
|
|
25489
25397
|
if (m) maps[`iso-8859-${i + 1}`] = [[33], ...m];
|
|
25490
25398
|
});
|
|
25491
25399
|
}));
|
|
25492
|
-
//#endregion
|
|
25493
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/single-byte.js
|
|
25494
25400
|
function getEncoding(encoding) {
|
|
25495
25401
|
assertEncoding(encoding);
|
|
25496
25402
|
if (encoding === xUserDefined) return Array.from({ length: 128 }, (_, i) => 63360 + i);
|
|
@@ -25583,8 +25489,6 @@ var init_single_byte = __esmMin((() => {
|
|
|
25583
25489
|
NON_LATIN = /[^\x00-\xFF]/;
|
|
25584
25490
|
useLatin1btoa = Uint8Array.fromBase64 && btoa;
|
|
25585
25491
|
}));
|
|
25586
|
-
//#endregion
|
|
25587
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/encoding.labels.js
|
|
25588
25492
|
var labels;
|
|
25589
25493
|
var init_encoding_labels = __esmMin((() => {
|
|
25590
25494
|
labels = {
|
|
@@ -25742,8 +25646,6 @@ var init_encoding_labels = __esmMin((() => {
|
|
|
25742
25646
|
}));
|
|
25743
25647
|
var init_encoding_api = __esmMin((() => {}));
|
|
25744
25648
|
var init_encoding_util = __esmMin((() => {}));
|
|
25745
|
-
//#endregion
|
|
25746
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/encoding.js
|
|
25747
25649
|
function normalizeEncoding(label) {
|
|
25748
25650
|
if (label === "utf-8" || label === "utf8" || label === "UTF-8" || label === "UTF8") return "utf-8";
|
|
25749
25651
|
if (label === "windows-1252" || label === "ascii" || label === "latin1") return "windows-1252";
|
|
@@ -25793,8 +25695,6 @@ var init_encoding = __esmMin((() => {
|
|
|
25793
25695
|
init_encoding$1();
|
|
25794
25696
|
setMultibyte(createMultibyteDecoder$1, multibyteEncoder$1);
|
|
25795
25697
|
}));
|
|
25796
|
-
//#endregion
|
|
25797
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/fallback/percent.js
|
|
25798
25698
|
function percentEncoder(set, spaceAsPlus = false) {
|
|
25799
25699
|
if (typeof set !== "string" || /[^\x20-\x7E]/.test(set)) throw new TypeError(ERR);
|
|
25800
25700
|
if (typeof spaceAsPlus !== "boolean") throw new TypeError("spaceAsPlus must be boolean");
|
|
@@ -25821,8 +25721,6 @@ var init_percent = __esmMin((() => {
|
|
|
25821
25721
|
ERR = "percentEncodeSet must be a string of unique increasing codepoints in range 0x20 - 0x7e";
|
|
25822
25722
|
percentMap = /* @__PURE__ */ new Map();
|
|
25823
25723
|
}));
|
|
25824
|
-
//#endregion
|
|
25825
|
-
//#region ../../node_modules/.pnpm/@exodus+bytes@1.15.1_@noble+hashes@2.2.0/node_modules/@exodus/bytes/whatwg.js
|
|
25826
25724
|
var whatwg_exports = /* @__PURE__ */ __exportAll({ percentEncodeAfterEncoding: () => percentEncodeAfterEncoding });
|
|
25827
25725
|
function percentEncodeAfterEncoding(encoding, input, percentEncodeSet, spaceAsPlus = false) {
|
|
25828
25726
|
const enc = normalizeEncoding(encoding);
|
|
@@ -25883,8 +25781,6 @@ var init_whatwg = __esmMin((() => {
|
|
|
25883
25781
|
init_single_byte$1();
|
|
25884
25782
|
init__utils();
|
|
25885
25783
|
}));
|
|
25886
|
-
//#endregion
|
|
25887
|
-
//#region ../../node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.es6.js
|
|
25888
25784
|
var punycode_es6_exports = /* @__PURE__ */ __exportAll({
|
|
25889
25785
|
decode: () => decode,
|
|
25890
25786
|
default: () => punycode,
|
|
@@ -26117,8 +26013,6 @@ var init_punycode_es6 = __esmMin((() => {
|
|
|
26117
26013
|
"toUnicode": toUnicode
|
|
26118
26014
|
};
|
|
26119
26015
|
}));
|
|
26120
|
-
//#endregion
|
|
26121
|
-
//#region ../../node_modules/.pnpm/tr46@6.0.0/node_modules/tr46/lib/regexes.js
|
|
26122
26016
|
var require_regexes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
26123
26017
|
module.exports = {
|
|
26124
26018
|
combiningMarks: /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFA}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113B8}-\u{113C0}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}-\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11B60}-\u{11B67}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,
|
|
@@ -26135,8 +26029,6 @@ var require_regexes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
26135
26029
|
bidiS6: /[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDC-\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B4E-\u1B6A\u1B74-\u1B7F\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{105C0}-\u{105F3}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11380}-\u{11389}\u{1138B}\u{1138E}\u{11390}-\u{113B5}\u{113B7}-\u{113BA}\u{113C2}\u{113C5}\u{113C7}-\u{113CA}\u{113CC}\u{113CD}\u{113CF}\u{113D1}\u{113D3}-\u{113D5}\u{113D7}\u{113D8}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{116D0}-\u{116E3}\u{11700}-\u{1171A}\u{1171E}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11B61}\u{11B65}\u{11B67}\u{11BC0}-\u{11BE1}\u{11BF0}-\u{11BF9}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11DB0}-\u{11DDB}\u{11DE0}-\u{11DE9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{13460}-\u{143FA}\u{14400}-\u{14646}\u{16100}-\u{1611D}\u{1612A}-\u{1612C}\u{16130}-\u{16139}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16D40}-\u{16D79}\u{16E40}-\u{16E9A}\u{16EA0}-\u{16EB8}\u{16EBB}-\u{16ED3}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}-\u{16FF6}\u{17000}-\u{18CD5}\u{18CFF}-\u{18D1E}\u{18D80}-\u{18DF2}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CCD6}-\u{1CCF9}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E5D0}-\u{1E5ED}\u{1E5F0}-\u{1E5FA}\u{1E5FF}\u{1E6C0}-\u{1E6DE}\u{1E6E0}-\u{1E6E2}\u{1E6E4}\u{1E6E5}\u{1E6E7}-\u{1E6ED}\u{1E6F0}-\u{1E6F4}\u{1E6FE}\u{1E6FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B81D}\u{2B820}-\u{2CEAD}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{33479}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10D69}-\u{10D6D}\u{10EAB}\u{10EAC}\u{10EFA}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{113BB}-\u{113C0}\u{113CE}\u{113D0}\u{113D2}\u{113E1}\u{113E2}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11B60}\u{11B62}-\u{11B64}\u{11B66}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11F5A}\u{13440}\u{13447}-\u{13455}\u{1611E}-\u{16129}\u{1612D}-\u{1612F}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E5EE}\u{1E5EF}\u{1E6E3}\u{1E6E6}\u{1E6EE}\u{1E6EF}\u{1E6F5}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u
|
|
26136
26030
|
};
|
|
26137
26031
|
}));
|
|
26138
|
-
//#endregion
|
|
26139
|
-
//#region ../../node_modules/.pnpm/tr46@6.0.0/node_modules/tr46/lib/mappingTable.json
|
|
26140
26032
|
var require_mappingTable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
26141
26033
|
module.exports = [
|
|
26142
26034
|
[[0, 44], 2],
|
|
@@ -59911,8 +59803,6 @@ var require_mappingTable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
59911
59803
|
[[1114110, 1114111], 3]
|
|
59912
59804
|
];
|
|
59913
59805
|
}));
|
|
59914
|
-
//#endregion
|
|
59915
|
-
//#region ../../node_modules/.pnpm/tr46@6.0.0/node_modules/tr46/lib/statusMapping.js
|
|
59916
59806
|
var require_statusMapping = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59917
59807
|
module.exports.STATUS_MAPPING = {
|
|
59918
59808
|
mapped: 1,
|
|
@@ -59922,8 +59812,6 @@ var require_statusMapping = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
59922
59812
|
ignored: 7
|
|
59923
59813
|
};
|
|
59924
59814
|
}));
|
|
59925
|
-
//#endregion
|
|
59926
|
-
//#region ../../node_modules/.pnpm/tr46@6.0.0/node_modules/tr46/index.js
|
|
59927
59815
|
var require_tr46 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59928
59816
|
const punycode = (init_punycode_es6(), __toCommonJS(punycode_es6_exports));
|
|
59929
59817
|
const regexes = require_regexes();
|
|
@@ -60117,8 +60005,6 @@ var require_tr46 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
60117
60005
|
toUnicode
|
|
60118
60006
|
};
|
|
60119
60007
|
}));
|
|
60120
|
-
//#endregion
|
|
60121
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/infra.js
|
|
60122
60008
|
var require_infra = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60123
60009
|
function isASCIIDigit(c) {
|
|
60124
60010
|
return c >= 48 && c <= 57;
|
|
@@ -60139,8 +60025,6 @@ var require_infra = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
60139
60025
|
isASCIIHex
|
|
60140
60026
|
};
|
|
60141
60027
|
}));
|
|
60142
|
-
//#endregion
|
|
60143
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/encoding.js
|
|
60144
60028
|
var require_encoding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60145
60029
|
const utf8Encoder = new TextEncoder();
|
|
60146
60030
|
const utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
@@ -60155,8 +60039,6 @@ var require_encoding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
60155
60039
|
utf8DecodeWithoutBOM
|
|
60156
60040
|
};
|
|
60157
60041
|
}));
|
|
60158
|
-
//#endregion
|
|
60159
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/percent-encoding.js
|
|
60160
60042
|
var require_percent_encoding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60161
60043
|
const { isASCIIHex } = require_infra();
|
|
60162
60044
|
const { utf8Encode } = require_encoding();
|
|
@@ -60291,8 +60173,6 @@ var require_percent_encoding = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
60291
60173
|
utf8PercentEncodeCodePoint
|
|
60292
60174
|
};
|
|
60293
60175
|
}));
|
|
60294
|
-
//#endregion
|
|
60295
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/url-state-machine.js
|
|
60296
60176
|
var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
60297
60177
|
init_encoding();
|
|
60298
60178
|
const { percentEncodeAfterEncoding } = (init_whatwg(), __toCommonJS(whatwg_exports));
|
|
@@ -61114,8 +60994,6 @@ var require_url_state_machine = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
61114
60994
|
});
|
|
61115
60995
|
};
|
|
61116
60996
|
}));
|
|
61117
|
-
//#endregion
|
|
61118
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/urlencoded.js
|
|
61119
60997
|
var require_urlencoded = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
61120
60998
|
const { utf8Encode, utf8DecodeWithoutBOM } = require_encoding();
|
|
61121
60999
|
const { percentDecodeBytes, utf8PercentEncodeString, isURLEncodedPercentEncode } = require_percent_encoding();
|
|
@@ -61182,8 +61060,6 @@ var require_urlencoded = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
61182
61060
|
serializeUrlencoded
|
|
61183
61061
|
};
|
|
61184
61062
|
}));
|
|
61185
|
-
//#endregion
|
|
61186
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/Function.js
|
|
61187
61063
|
var require_Function = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61188
61064
|
const conversions = require_lib();
|
|
61189
61065
|
const utils = require_utils$1();
|
|
@@ -61214,8 +61090,6 @@ var require_Function = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61214
61090
|
return invokeTheCallbackFunction;
|
|
61215
61091
|
};
|
|
61216
61092
|
}));
|
|
61217
|
-
//#endregion
|
|
61218
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.js
|
|
61219
61093
|
var require_URLSearchParams_impl = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61220
61094
|
const urlencoded = require_urlencoded();
|
|
61221
61095
|
exports.implementation = class URLSearchParamsImpl {
|
|
@@ -61296,8 +61170,6 @@ var require_URLSearchParams_impl = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61296
61170
|
}
|
|
61297
61171
|
};
|
|
61298
61172
|
}));
|
|
61299
|
-
//#endregion
|
|
61300
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/URLSearchParams.js
|
|
61301
61173
|
var require_URLSearchParams = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61302
61174
|
const conversions = require_lib();
|
|
61303
61175
|
const utils = require_utils$1();
|
|
@@ -61641,8 +61513,6 @@ var require_URLSearchParams = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61641
61513
|
};
|
|
61642
61514
|
const Impl = require_URLSearchParams_impl();
|
|
61643
61515
|
}));
|
|
61644
|
-
//#endregion
|
|
61645
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/URL-impl.js
|
|
61646
61516
|
var require_URL_impl = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61647
61517
|
const usm = require_url_state_machine();
|
|
61648
61518
|
const urlencoded = require_urlencoded();
|
|
@@ -61805,8 +61675,6 @@ var require_URL_impl = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61805
61675
|
}
|
|
61806
61676
|
};
|
|
61807
61677
|
}));
|
|
61808
|
-
//#endregion
|
|
61809
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/lib/URL.js
|
|
61810
61678
|
var require_URL = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61811
61679
|
const conversions = require_lib();
|
|
61812
61680
|
const utils = require_utils$1();
|
|
@@ -62129,16 +61997,12 @@ var require_URL = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
62129
61997
|
};
|
|
62130
61998
|
const Impl = require_URL_impl();
|
|
62131
61999
|
}));
|
|
62132
|
-
//#endregion
|
|
62133
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/webidl2js-wrapper.js
|
|
62134
62000
|
var require_webidl2js_wrapper = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
62135
62001
|
const URL = require_URL();
|
|
62136
62002
|
const URLSearchParams = require_URLSearchParams();
|
|
62137
62003
|
exports.URL = URL;
|
|
62138
62004
|
exports.URLSearchParams = URLSearchParams;
|
|
62139
62005
|
}));
|
|
62140
|
-
//#endregion
|
|
62141
|
-
//#region ../../node_modules/.pnpm/whatwg-url@16.0.1_@noble+hashes@2.2.0/node_modules/whatwg-url/index.js
|
|
62142
62006
|
var require_whatwg_url = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
62143
62007
|
const { URL, URLSearchParams } = require_webidl2js_wrapper();
|
|
62144
62008
|
const urlStateMachine = require_url_state_machine();
|
|
@@ -62168,8 +62032,6 @@ var require_whatwg_url = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
62168
62032
|
exports.percentDecodeString = percentEncoding.percentDecodeString;
|
|
62169
62033
|
exports.percentDecodeBytes = percentEncoding.percentDecodeBytes;
|
|
62170
62034
|
}));
|
|
62171
|
-
//#endregion
|
|
62172
|
-
//#region ../../node_modules/.pnpm/data-urls@7.0.0_@noble+hashes@2.2.0/node_modules/data-urls/lib/utils.js
|
|
62173
62035
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
62174
62036
|
exports.stripLeadingAndTrailingASCIIWhitespace = (string) => {
|
|
62175
62037
|
return string.replace(/^[ \t\n\f\r]+/u, "").replace(/[ \t\n\f\r]+$/u, "");
|
|
@@ -62187,8 +62049,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
62187
62049
|
return Uint8Array.from(asString, (c) => c.codePointAt(0));
|
|
62188
62050
|
};
|
|
62189
62051
|
}));
|
|
62190
|
-
//#endregion
|
|
62191
|
-
//#region src/util/parseXmlString.ts
|
|
62192
62052
|
var import_parser = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
62193
62053
|
const { MIMEType } = require_lib$1();
|
|
62194
62054
|
const { parseURL, serializeURL, percentDecodeString } = require_whatwg_url();
|
|
@@ -62210,10 +62070,12 @@ var import_parser = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exp
|
|
|
62210
62070
|
mimeType = stripLeadingAndTrailingASCIIWhitespace(mimeType);
|
|
62211
62071
|
if (position === input.length) return null;
|
|
62212
62072
|
++position;
|
|
62213
|
-
|
|
62073
|
+
const encodedBody = input.substring(position);
|
|
62074
|
+
let body = percentDecodeString(encodedBody);
|
|
62214
62075
|
const mimeTypeBase64MatchResult = /(.*); *[Bb][Aa][Ss][Ee]64$/u.exec(mimeType);
|
|
62215
62076
|
if (mimeTypeBase64MatchResult) {
|
|
62216
|
-
|
|
62077
|
+
const stringBody = isomorphicDecode(body);
|
|
62078
|
+
body = forgivingBase64Decode(stringBody);
|
|
62217
62079
|
if (body === null) return null;
|
|
62218
62080
|
mimeType = mimeTypeBase64MatchResult[1];
|
|
62219
62081
|
}
|
|
@@ -62237,8 +62099,6 @@ const parseXmlString = (xmlString) => {
|
|
|
62237
62099
|
preserveChildrenOrder: true
|
|
62238
62100
|
});
|
|
62239
62101
|
};
|
|
62240
|
-
//#endregion
|
|
62241
|
-
//#region src/parseTmx.ts
|
|
62242
62102
|
const parseTmx = async (xmlString, translateFlips = false) => {
|
|
62243
62103
|
const { map: { $, $$ } } = await parseXmlString(xmlString);
|
|
62244
62104
|
const map = new TMXMapParsed($);
|
|
@@ -62275,11 +62135,8 @@ const parseTmx = async (xmlString, translateFlips = false) => {
|
|
|
62275
62135
|
}
|
|
62276
62136
|
return new TMXParsed(map);
|
|
62277
62137
|
};
|
|
62278
|
-
//#endregion
|
|
62279
|
-
//#region src/models/tmx/node/BaseTMXNode.ts
|
|
62280
62138
|
var BaseTMXNode = class {
|
|
62281
62139
|
$;
|
|
62282
62140
|
#name;
|
|
62283
62141
|
};
|
|
62284
|
-
//#endregion
|
|
62285
62142
|
export { BaseTMXNode, Compression, Encoding, Flipped, Flippeds, Shape, TMXMapParsed, TMXMapShared, TMXNodeType, TMXParsed, getDecompressedBytes, isExternalTileset, isTMXEmbeddedTilesetNode, parseFlips, parseGroup, parseLayer, parseNode, parseObject, parseObjectShape, parseProperties, parseTile, parseTileId, parseTileLayer, parseTileset, parseTmx, parseXmlString, parseXmlValue, unpackTileBytes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse-tmx",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0",
|
|
4
4
|
"description": "A parser for tmx.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"game-development",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"typecheck": "tsgo"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@esposter/shared": "2.
|
|
49
|
-
"@esposter/xml2js": "2.
|
|
48
|
+
"@esposter/shared": "2.34.0",
|
|
49
|
+
"@esposter/xml2js": "2.34.0",
|
|
50
50
|
"data-urls": "^7.0.0",
|
|
51
51
|
"dayjs": "^1.11.21"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@esposter/configuration": "2.
|
|
54
|
+
"@esposter/configuration": "2.34.0",
|
|
55
55
|
"@types/data-urls": "^3.0.5",
|
|
56
56
|
"@types/xml2js": "^0.4.14",
|
|
57
57
|
"ctix": "^2.8.1",
|
|
58
|
-
"rolldown": "^1.1.
|
|
58
|
+
"rolldown": "^1.1.4",
|
|
59
59
|
"type-fest": "^5.7.0",
|
|
60
60
|
"vitest": "^4.1.9"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "12065cf1c592019d37d715d3c48774d45cbb5456"
|
|
63
63
|
}
|