@uipath/codedapp-tool 1.201.0-preview.133 → 1.202.0-preview.134
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/{browser-strategy-16yagjhr.js → browser-strategy-6atc7v8s.js} +3 -3
- package/dist/{index-y19pndcy.js → index-d9c1ecq8.js} +71 -69
- package/dist/{index-4tmzxx6y.js → index-h630x08t.js} +158 -76
- package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
- package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
- package/dist/index.js +11 -9
- package/dist/{js-yaml-cggj6w7q.js → js-yaml-87tvr6f6.js} +16 -16
- package/dist/{multipart-parser-kme45c99.js → multipart-parser-ab4q7byb.js} +2 -2
- package/dist/{node-strategy-gfq7k0sx.js → node-strategy-bpshtz02.js} +130 -14
- package/dist/packager-tool-14ha5twz.js +1838 -0
- package/dist/{tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
- package/dist/{tool-yadq0xpc.js → packager-tool-8hncwr6a.js} +56 -302
- package/dist/packager-tool-jke4p8q1.js +1515 -0
- package/dist/{tool-4pvh3k50.js → packager-tool-qyctya2j.js} +2 -2
- package/dist/{tool-bydtassw.js → packager-tool-s019q130.js} +1443 -3112
- package/dist/{tool-25qmnad0.js → packager-tool-vcw2ht7n.js} +1188 -1873
- package/dist/{tool-y0g9grx6.js → packager-tool-vv9c52ax.js} +5 -5
- package/dist/{tool-q42rrs00.js → packager-tool-yc4kw997.js} +3 -2
- package/dist/packager-tool.js +17 -0
- package/dist/tool.js +13 -11
- package/package.json +4 -3
- /package/dist/{tool-0gctz400.js → packager-tool-0gctz400.js} +0 -0
|
@@ -0,0 +1,1515 @@
|
|
|
1
|
+
// ../packager/packager-core/src/services/tools-factory-repository.ts
|
|
2
|
+
class ToolsFactoryRepository {
|
|
3
|
+
projectFactoryMap = new Map;
|
|
4
|
+
solutionFactory = null;
|
|
5
|
+
registerProjectToolFactory(factory) {
|
|
6
|
+
for (const type of factory.supportedTypes) {
|
|
7
|
+
const existing = this.projectFactoryMap.get(type);
|
|
8
|
+
if (existing) {
|
|
9
|
+
if (existing.constructor?.name !== factory.constructor?.name) {
|
|
10
|
+
console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
|
|
11
|
+
}
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
this.projectFactoryMap.set(type, factory);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
registerSolutionToolFactory(factory) {
|
|
18
|
+
this.solutionFactory = factory;
|
|
19
|
+
}
|
|
20
|
+
getSolutionToolFactory() {
|
|
21
|
+
if (!this.solutionFactory) {
|
|
22
|
+
throw new Error("No solution tool factory is registered");
|
|
23
|
+
}
|
|
24
|
+
return this.solutionFactory;
|
|
25
|
+
}
|
|
26
|
+
canHandleProject(projectType) {
|
|
27
|
+
return this.projectFactoryMap.has(projectType);
|
|
28
|
+
}
|
|
29
|
+
getProjectToolFactory(projectType) {
|
|
30
|
+
const factory = this.projectFactoryMap.get(projectType);
|
|
31
|
+
if (!factory) {
|
|
32
|
+
const known = [...this.projectFactoryMap.keys()].join(", ");
|
|
33
|
+
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it. ` + `Project types that can be packed: ${known || "none"}.`);
|
|
34
|
+
}
|
|
35
|
+
return factory;
|
|
36
|
+
}
|
|
37
|
+
reset() {
|
|
38
|
+
this.projectFactoryMap.clear();
|
|
39
|
+
this.solutionFactory = null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var REGISTRY_KEY = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
|
|
43
|
+
var _global = globalThis;
|
|
44
|
+
if (!_global[REGISTRY_KEY]) {
|
|
45
|
+
_global[REGISTRY_KEY] = new ToolsFactoryRepository;
|
|
46
|
+
}
|
|
47
|
+
var toolsFactoryRepository = _global[REGISTRY_KEY];
|
|
48
|
+
// ../../node_modules/fflate/esm/index.mjs
|
|
49
|
+
import { createRequire } from "module";
|
|
50
|
+
var require2 = createRequire("/");
|
|
51
|
+
var _a;
|
|
52
|
+
var Worker;
|
|
53
|
+
var isMarkedAsUntransferable;
|
|
54
|
+
try {
|
|
55
|
+
_a = require2("worker_threads"), Worker = _a.Worker, isMarkedAsUntransferable = _a.isMarkedAsUntransferable;
|
|
56
|
+
} catch (e) {}
|
|
57
|
+
var u8 = Uint8Array;
|
|
58
|
+
var u16 = Uint16Array;
|
|
59
|
+
var i32 = Int32Array;
|
|
60
|
+
var fleb = new u8([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]);
|
|
61
|
+
var fdeb = new u8([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]);
|
|
62
|
+
var clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
63
|
+
var freb = function(eb, start) {
|
|
64
|
+
var b = new u16(31);
|
|
65
|
+
for (var i = 0;i < 31; ++i) {
|
|
66
|
+
b[i] = start += 1 << eb[i - 1];
|
|
67
|
+
}
|
|
68
|
+
var r = new i32(b[30]);
|
|
69
|
+
for (var i = 1;i < 30; ++i) {
|
|
70
|
+
for (var j = b[i];j < b[i + 1]; ++j) {
|
|
71
|
+
r[j] = j - b[i] << 5 | i;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return { b, r };
|
|
75
|
+
};
|
|
76
|
+
var _a = freb(fleb, 2);
|
|
77
|
+
var fl = _a.b;
|
|
78
|
+
var revfl = _a.r;
|
|
79
|
+
fl[28] = 258, revfl[258] = 28;
|
|
80
|
+
var _b = freb(fdeb, 0);
|
|
81
|
+
var fd = _b.b;
|
|
82
|
+
var revfd = _b.r;
|
|
83
|
+
var rev = new u16(32768);
|
|
84
|
+
for (i = 0;i < 32768; ++i) {
|
|
85
|
+
x = (i & 43690) >> 1 | (i & 21845) << 1;
|
|
86
|
+
x = (x & 52428) >> 2 | (x & 13107) << 2;
|
|
87
|
+
x = (x & 61680) >> 4 | (x & 3855) << 4;
|
|
88
|
+
rev[i] = ((x & 65280) >> 8 | (x & 255) << 8) >> 1;
|
|
89
|
+
}
|
|
90
|
+
var x;
|
|
91
|
+
var i;
|
|
92
|
+
var hMap = function(cd, mb, r) {
|
|
93
|
+
var s = cd.length;
|
|
94
|
+
var i2 = 0;
|
|
95
|
+
var l = new u16(mb);
|
|
96
|
+
for (;i2 < s; ++i2) {
|
|
97
|
+
if (cd[i2])
|
|
98
|
+
++l[cd[i2] - 1];
|
|
99
|
+
}
|
|
100
|
+
var le = new u16(mb);
|
|
101
|
+
for (i2 = 1;i2 < mb; ++i2) {
|
|
102
|
+
le[i2] = le[i2 - 1] + l[i2 - 1] << 1;
|
|
103
|
+
}
|
|
104
|
+
var co;
|
|
105
|
+
if (r) {
|
|
106
|
+
co = new u16(1 << mb);
|
|
107
|
+
var rvb = 15 - mb;
|
|
108
|
+
for (i2 = 0;i2 < s; ++i2) {
|
|
109
|
+
if (cd[i2]) {
|
|
110
|
+
var sv = i2 << 4 | cd[i2];
|
|
111
|
+
var r_1 = mb - cd[i2];
|
|
112
|
+
var v = le[cd[i2] - 1]++ << r_1;
|
|
113
|
+
for (var m = v | (1 << r_1) - 1;v <= m; ++v) {
|
|
114
|
+
co[rev[v] >> rvb] = sv;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
co = new u16(s);
|
|
120
|
+
for (i2 = 0;i2 < s; ++i2) {
|
|
121
|
+
if (cd[i2]) {
|
|
122
|
+
co[i2] = rev[le[cd[i2] - 1]++] >> 15 - cd[i2];
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return co;
|
|
127
|
+
};
|
|
128
|
+
var flt = new u8(288);
|
|
129
|
+
for (i = 0;i < 144; ++i)
|
|
130
|
+
flt[i] = 8;
|
|
131
|
+
var i;
|
|
132
|
+
for (i = 144;i < 256; ++i)
|
|
133
|
+
flt[i] = 9;
|
|
134
|
+
var i;
|
|
135
|
+
for (i = 256;i < 280; ++i)
|
|
136
|
+
flt[i] = 7;
|
|
137
|
+
var i;
|
|
138
|
+
for (i = 280;i < 288; ++i)
|
|
139
|
+
flt[i] = 8;
|
|
140
|
+
var i;
|
|
141
|
+
var fdt = new u8(32);
|
|
142
|
+
for (i = 0;i < 32; ++i)
|
|
143
|
+
fdt[i] = 5;
|
|
144
|
+
var i;
|
|
145
|
+
var flm = /* @__PURE__ */ hMap(flt, 9, 0);
|
|
146
|
+
var fdm = /* @__PURE__ */ hMap(fdt, 5, 0);
|
|
147
|
+
var shft = function(p) {
|
|
148
|
+
return (p + 7) / 8 | 0;
|
|
149
|
+
};
|
|
150
|
+
var slc = function(v, s, e) {
|
|
151
|
+
if (s == null || s < 0)
|
|
152
|
+
s = 0;
|
|
153
|
+
if (e == null || e > v.length)
|
|
154
|
+
e = v.length;
|
|
155
|
+
return new u8(v.subarray(s, e));
|
|
156
|
+
};
|
|
157
|
+
var ec = [
|
|
158
|
+
"unexpected EOF",
|
|
159
|
+
"invalid block type",
|
|
160
|
+
"invalid length/literal",
|
|
161
|
+
"invalid distance",
|
|
162
|
+
"stream finished",
|
|
163
|
+
"no stream handler",
|
|
164
|
+
,
|
|
165
|
+
"no callback",
|
|
166
|
+
"invalid UTF-8 data",
|
|
167
|
+
"extra field too long",
|
|
168
|
+
"date not in range 1980-2099",
|
|
169
|
+
"filename too long",
|
|
170
|
+
"stream finishing",
|
|
171
|
+
"invalid zip data"
|
|
172
|
+
];
|
|
173
|
+
var err = function(ind, msg, nt) {
|
|
174
|
+
var e = new Error(msg || ec[ind]);
|
|
175
|
+
e.code = ind;
|
|
176
|
+
if (Error.captureStackTrace)
|
|
177
|
+
Error.captureStackTrace(e, err);
|
|
178
|
+
if (!nt)
|
|
179
|
+
throw e;
|
|
180
|
+
return e;
|
|
181
|
+
};
|
|
182
|
+
var wbits = function(d, p, v) {
|
|
183
|
+
v <<= p & 7;
|
|
184
|
+
var o = p / 8 | 0;
|
|
185
|
+
d[o] |= v;
|
|
186
|
+
d[o + 1] |= v >> 8;
|
|
187
|
+
};
|
|
188
|
+
var wbits16 = function(d, p, v) {
|
|
189
|
+
v <<= p & 7;
|
|
190
|
+
var o = p / 8 | 0;
|
|
191
|
+
d[o] |= v;
|
|
192
|
+
d[o + 1] |= v >> 8;
|
|
193
|
+
d[o + 2] |= v >> 16;
|
|
194
|
+
};
|
|
195
|
+
var hTree = function(d, mb) {
|
|
196
|
+
var t = [];
|
|
197
|
+
for (var i2 = 0;i2 < d.length; ++i2) {
|
|
198
|
+
if (d[i2])
|
|
199
|
+
t.push({ s: i2, f: d[i2] });
|
|
200
|
+
}
|
|
201
|
+
var s = t.length;
|
|
202
|
+
var t2 = t.slice();
|
|
203
|
+
if (!s)
|
|
204
|
+
return { t: et, l: 0 };
|
|
205
|
+
if (s == 1) {
|
|
206
|
+
var v = new u8(t[0].s + 1);
|
|
207
|
+
v[t[0].s] = 1;
|
|
208
|
+
return { t: v, l: 1 };
|
|
209
|
+
}
|
|
210
|
+
t.sort(function(a, b) {
|
|
211
|
+
return a.f - b.f;
|
|
212
|
+
});
|
|
213
|
+
t.push({ s: -1, f: 25001 });
|
|
214
|
+
var l = t[0], r = t[1], i0 = 0, i1 = 1, i22 = 2;
|
|
215
|
+
t[0] = { s: -1, f: l.f + r.f, l, r };
|
|
216
|
+
while (i1 != s - 1) {
|
|
217
|
+
l = t[t[i0].f < t[i22].f ? i0++ : i22++];
|
|
218
|
+
r = t[i0 != i1 && t[i0].f < t[i22].f ? i0++ : i22++];
|
|
219
|
+
t[i1++] = { s: -1, f: l.f + r.f, l, r };
|
|
220
|
+
}
|
|
221
|
+
var maxSym = t2[0].s;
|
|
222
|
+
for (var i2 = 1;i2 < s; ++i2) {
|
|
223
|
+
if (t2[i2].s > maxSym)
|
|
224
|
+
maxSym = t2[i2].s;
|
|
225
|
+
}
|
|
226
|
+
var tr = new u16(maxSym + 1);
|
|
227
|
+
var mbt = ln(t[i1 - 1], tr, 0);
|
|
228
|
+
if (mbt > mb) {
|
|
229
|
+
var i2 = 0, dt = 0;
|
|
230
|
+
var lft = mbt - mb, cst = 1 << lft;
|
|
231
|
+
t2.sort(function(a, b) {
|
|
232
|
+
return tr[b.s] - tr[a.s] || a.f - b.f;
|
|
233
|
+
});
|
|
234
|
+
for (;i2 < s; ++i2) {
|
|
235
|
+
var i2_1 = t2[i2].s;
|
|
236
|
+
if (tr[i2_1] > mb) {
|
|
237
|
+
dt += cst - (1 << mbt - tr[i2_1]);
|
|
238
|
+
tr[i2_1] = mb;
|
|
239
|
+
} else
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
dt >>= lft;
|
|
243
|
+
while (dt > 0) {
|
|
244
|
+
var i2_2 = t2[i2].s;
|
|
245
|
+
if (tr[i2_2] < mb)
|
|
246
|
+
dt -= 1 << mb - tr[i2_2]++ - 1;
|
|
247
|
+
else
|
|
248
|
+
++i2;
|
|
249
|
+
}
|
|
250
|
+
for (;i2 >= 0 && dt; --i2) {
|
|
251
|
+
var i2_3 = t2[i2].s;
|
|
252
|
+
if (tr[i2_3] == mb) {
|
|
253
|
+
--tr[i2_3];
|
|
254
|
+
++dt;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
mbt = mb;
|
|
258
|
+
}
|
|
259
|
+
return { t: new u8(tr), l: mbt };
|
|
260
|
+
};
|
|
261
|
+
var ln = function(n, l, d) {
|
|
262
|
+
return n.s == -1 ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) : l[n.s] = d;
|
|
263
|
+
};
|
|
264
|
+
var lc = function(c) {
|
|
265
|
+
var s = c.length;
|
|
266
|
+
while (s && !c[--s])
|
|
267
|
+
;
|
|
268
|
+
var cl = new u16(++s);
|
|
269
|
+
var cli = 0, cln = c[0], cls = 1;
|
|
270
|
+
var w = function(v) {
|
|
271
|
+
cl[cli++] = v;
|
|
272
|
+
};
|
|
273
|
+
for (var i2 = 1;i2 <= s; ++i2) {
|
|
274
|
+
if (c[i2] == cln && i2 != s)
|
|
275
|
+
++cls;
|
|
276
|
+
else {
|
|
277
|
+
if (!cln && cls > 2) {
|
|
278
|
+
for (;cls > 138; cls -= 138)
|
|
279
|
+
w(32754);
|
|
280
|
+
if (cls > 2) {
|
|
281
|
+
w(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305);
|
|
282
|
+
cls = 0;
|
|
283
|
+
}
|
|
284
|
+
} else if (cls > 3) {
|
|
285
|
+
w(cln), --cls;
|
|
286
|
+
for (;cls > 6; cls -= 6)
|
|
287
|
+
w(8304);
|
|
288
|
+
if (cls > 2)
|
|
289
|
+
w(cls - 3 << 5 | 8208), cls = 0;
|
|
290
|
+
}
|
|
291
|
+
while (cls--)
|
|
292
|
+
w(cln);
|
|
293
|
+
cls = 1;
|
|
294
|
+
cln = c[i2];
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return { c: cl.subarray(0, cli), n: s };
|
|
298
|
+
};
|
|
299
|
+
var clen = function(cf, cl) {
|
|
300
|
+
var l = 0;
|
|
301
|
+
for (var i2 = 0;i2 < cl.length; ++i2)
|
|
302
|
+
l += cf[i2] * cl[i2];
|
|
303
|
+
return l;
|
|
304
|
+
};
|
|
305
|
+
var wfblk = function(out, pos, dat) {
|
|
306
|
+
var s = dat.length;
|
|
307
|
+
var o = shft(pos + 2);
|
|
308
|
+
out[o] = s & 255;
|
|
309
|
+
out[o + 1] = s >> 8;
|
|
310
|
+
out[o + 2] = out[o] ^ 255;
|
|
311
|
+
out[o + 3] = out[o + 1] ^ 255;
|
|
312
|
+
for (var i2 = 0;i2 < s; ++i2)
|
|
313
|
+
out[o + i2 + 4] = dat[i2];
|
|
314
|
+
return (o + 4 + s) * 8;
|
|
315
|
+
};
|
|
316
|
+
var wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p) {
|
|
317
|
+
wbits(out, p++, final);
|
|
318
|
+
++lf[256];
|
|
319
|
+
var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l;
|
|
320
|
+
var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l;
|
|
321
|
+
var _c = lc(dlt), lclt = _c.c, nlc = _c.n;
|
|
322
|
+
var _d = lc(ddt), lcdt = _d.c, ndc = _d.n;
|
|
323
|
+
var lcfreq = new u16(19);
|
|
324
|
+
for (var i2 = 0;i2 < lclt.length; ++i2)
|
|
325
|
+
++lcfreq[lclt[i2] & 31];
|
|
326
|
+
for (var i2 = 0;i2 < lcdt.length; ++i2)
|
|
327
|
+
++lcfreq[lcdt[i2] & 31];
|
|
328
|
+
var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l;
|
|
329
|
+
var nlcc = 19;
|
|
330
|
+
for (;nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc)
|
|
331
|
+
;
|
|
332
|
+
var flen = bl + 5 << 3;
|
|
333
|
+
var ftlen = clen(lf, flt) + clen(df, fdt) + eb;
|
|
334
|
+
var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18];
|
|
335
|
+
if (bs >= 0 && flen <= ftlen && flen <= dtlen)
|
|
336
|
+
return wfblk(out, p, dat.subarray(bs, bs + bl));
|
|
337
|
+
var lm, ll, dm, dl;
|
|
338
|
+
wbits(out, p, 1 + (dtlen < ftlen)), p += 2;
|
|
339
|
+
if (dtlen < ftlen) {
|
|
340
|
+
lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt;
|
|
341
|
+
var llm = hMap(lct, mlcb, 0);
|
|
342
|
+
wbits(out, p, nlc - 257);
|
|
343
|
+
wbits(out, p + 5, ndc - 1);
|
|
344
|
+
wbits(out, p + 10, nlcc - 4);
|
|
345
|
+
p += 14;
|
|
346
|
+
for (var i2 = 0;i2 < nlcc; ++i2)
|
|
347
|
+
wbits(out, p + 3 * i2, lct[clim[i2]]);
|
|
348
|
+
p += 3 * nlcc;
|
|
349
|
+
var lcts = [lclt, lcdt];
|
|
350
|
+
for (var it = 0;it < 2; ++it) {
|
|
351
|
+
var clct = lcts[it];
|
|
352
|
+
for (var i2 = 0;i2 < clct.length; ++i2) {
|
|
353
|
+
var len = clct[i2] & 31;
|
|
354
|
+
wbits(out, p, llm[len]), p += lct[len];
|
|
355
|
+
if (len > 15)
|
|
356
|
+
wbits(out, p, clct[i2] >> 5 & 127), p += clct[i2] >> 12;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
} else {
|
|
360
|
+
lm = flm, ll = flt, dm = fdm, dl = fdt;
|
|
361
|
+
}
|
|
362
|
+
for (var i2 = 0;i2 < li; ++i2) {
|
|
363
|
+
var sym = syms[i2];
|
|
364
|
+
if (sym > 255) {
|
|
365
|
+
var len = sym >> 18 & 31;
|
|
366
|
+
wbits16(out, p, lm[len + 257]), p += ll[len + 257];
|
|
367
|
+
if (len > 7)
|
|
368
|
+
wbits(out, p, sym >> 23 & 31), p += fleb[len];
|
|
369
|
+
var dst = sym & 31;
|
|
370
|
+
wbits16(out, p, dm[dst]), p += dl[dst];
|
|
371
|
+
if (dst > 3)
|
|
372
|
+
wbits16(out, p, sym >> 5 & 8191), p += fdeb[dst];
|
|
373
|
+
} else {
|
|
374
|
+
wbits16(out, p, lm[sym]), p += ll[sym];
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
wbits16(out, p, lm[256]);
|
|
378
|
+
return p + ll[256];
|
|
379
|
+
};
|
|
380
|
+
var deo = /* @__PURE__ */ new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]);
|
|
381
|
+
var et = /* @__PURE__ */ new u8(0);
|
|
382
|
+
var dflt = function(dat, lvl, plvl, pre, post, st) {
|
|
383
|
+
var s = st.z || dat.length;
|
|
384
|
+
var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7000)) + post);
|
|
385
|
+
var w = o.subarray(pre, o.length - post);
|
|
386
|
+
var lst = st.l;
|
|
387
|
+
var pos = (st.r || 0) & 7;
|
|
388
|
+
if (lvl) {
|
|
389
|
+
if (pos)
|
|
390
|
+
w[0] = st.r >> 3;
|
|
391
|
+
var opt = deo[lvl - 1];
|
|
392
|
+
var n = opt >> 13, c = opt & 8191;
|
|
393
|
+
var msk_1 = (1 << plvl) - 1;
|
|
394
|
+
var prev = st.p || new u16(32768), head = st.h || new u16(msk_1 + 1);
|
|
395
|
+
var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1;
|
|
396
|
+
var hsh = function(i3) {
|
|
397
|
+
return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1;
|
|
398
|
+
};
|
|
399
|
+
var syms = new i32(25000);
|
|
400
|
+
var lf = new u16(288), df = new u16(32);
|
|
401
|
+
var lc_1 = 0, eb = 0, i2 = st.i || 0, li = 0, wi = st.w || 0, bs = 0;
|
|
402
|
+
for (;i2 + 2 < s; ++i2) {
|
|
403
|
+
var hv = hsh(i2);
|
|
404
|
+
var imod = i2 & 32767, pimod = head[hv];
|
|
405
|
+
prev[imod] = pimod;
|
|
406
|
+
head[hv] = imod;
|
|
407
|
+
if (wi <= i2) {
|
|
408
|
+
var rem = s - i2;
|
|
409
|
+
if ((lc_1 > 7000 || li > 24576) && (rem > 423 || !lst)) {
|
|
410
|
+
pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
411
|
+
li = lc_1 = eb = 0, bs = i2;
|
|
412
|
+
for (var j = 0;j < 286; ++j)
|
|
413
|
+
lf[j] = 0;
|
|
414
|
+
for (var j = 0;j < 30; ++j)
|
|
415
|
+
df[j] = 0;
|
|
416
|
+
}
|
|
417
|
+
var l = 2, d = 0, ch_1 = c, dif = imod - pimod & 32767;
|
|
418
|
+
if (rem > 2 && hv == hsh(i2 - dif)) {
|
|
419
|
+
var maxn = Math.min(n, rem) - 1;
|
|
420
|
+
var maxd = Math.min(32767, i2);
|
|
421
|
+
var ml = Math.min(258, rem);
|
|
422
|
+
while (dif <= maxd && --ch_1 && imod != pimod) {
|
|
423
|
+
if (dat[i2 + l] == dat[i2 + l - dif]) {
|
|
424
|
+
var nl = 0;
|
|
425
|
+
for (;nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl)
|
|
426
|
+
;
|
|
427
|
+
if (nl > l) {
|
|
428
|
+
l = nl, d = dif;
|
|
429
|
+
if (nl > maxn)
|
|
430
|
+
break;
|
|
431
|
+
var mmd = Math.min(dif, nl - 2);
|
|
432
|
+
var md = 0;
|
|
433
|
+
for (var j = 0;j < mmd; ++j) {
|
|
434
|
+
var ti = i2 - dif + j & 32767;
|
|
435
|
+
var pti = prev[ti];
|
|
436
|
+
var cd = ti - pti & 32767;
|
|
437
|
+
if (cd > md)
|
|
438
|
+
md = cd, pimod = ti;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
imod = pimod, pimod = prev[imod];
|
|
443
|
+
dif += imod - pimod & 32767;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if (d) {
|
|
447
|
+
syms[li++] = 268435456 | revfl[l] << 18 | revfd[d];
|
|
448
|
+
var lin = revfl[l] & 31, din = revfd[d] & 31;
|
|
449
|
+
eb += fleb[lin] + fdeb[din];
|
|
450
|
+
++lf[257 + lin];
|
|
451
|
+
++df[din];
|
|
452
|
+
wi = i2 + l;
|
|
453
|
+
++lc_1;
|
|
454
|
+
} else {
|
|
455
|
+
syms[li++] = dat[i2];
|
|
456
|
+
++lf[dat[i2]];
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
for (i2 = Math.max(i2, wi);i2 < s; ++i2) {
|
|
461
|
+
syms[li++] = dat[i2];
|
|
462
|
+
++lf[dat[i2]];
|
|
463
|
+
}
|
|
464
|
+
pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i2 - bs, pos);
|
|
465
|
+
if (!lst) {
|
|
466
|
+
st.r = pos & 7 | w[pos / 8 | 0] << 3;
|
|
467
|
+
pos -= 7;
|
|
468
|
+
st.h = head, st.p = prev, st.i = i2, st.w = wi;
|
|
469
|
+
}
|
|
470
|
+
} else {
|
|
471
|
+
for (var i2 = st.w || 0;i2 < s + lst; i2 += 65535) {
|
|
472
|
+
var e = i2 + 65535;
|
|
473
|
+
if (e >= s) {
|
|
474
|
+
w[pos / 8 | 0] = lst;
|
|
475
|
+
e = s;
|
|
476
|
+
}
|
|
477
|
+
pos = wfblk(w, pos + 1, dat.subarray(i2, e));
|
|
478
|
+
}
|
|
479
|
+
st.i = s;
|
|
480
|
+
}
|
|
481
|
+
return slc(o, 0, pre + shft(pos) + post);
|
|
482
|
+
};
|
|
483
|
+
var crct = /* @__PURE__ */ function() {
|
|
484
|
+
var t = new Int32Array(256);
|
|
485
|
+
for (var i2 = 0;i2 < 256; ++i2) {
|
|
486
|
+
var c = i2, k = 9;
|
|
487
|
+
while (--k)
|
|
488
|
+
c = (c & 1 && -306674912) ^ c >>> 1;
|
|
489
|
+
t[i2] = c;
|
|
490
|
+
}
|
|
491
|
+
return t;
|
|
492
|
+
}();
|
|
493
|
+
var crc = function() {
|
|
494
|
+
var c = -1;
|
|
495
|
+
return {
|
|
496
|
+
p: function(d) {
|
|
497
|
+
var cr = c;
|
|
498
|
+
for (var i2 = 0;i2 < d.length; ++i2)
|
|
499
|
+
cr = crct[cr & 255 ^ d[i2]] ^ cr >>> 8;
|
|
500
|
+
c = cr;
|
|
501
|
+
},
|
|
502
|
+
d: function() {
|
|
503
|
+
return ~c;
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
var dopt = function(dat, opt, pre, post, st) {
|
|
508
|
+
if (!st) {
|
|
509
|
+
st = { l: 1 };
|
|
510
|
+
if (opt.dictionary) {
|
|
511
|
+
var dict = opt.dictionary.subarray(-32768);
|
|
512
|
+
var newDat = new u8(dict.length + dat.length);
|
|
513
|
+
newDat.set(dict);
|
|
514
|
+
newDat.set(dat, dict.length);
|
|
515
|
+
dat = newDat;
|
|
516
|
+
st.w = dict.length;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20 : 12 + opt.mem, pre, post, st);
|
|
520
|
+
};
|
|
521
|
+
var mrg = function(a, b) {
|
|
522
|
+
var o = {};
|
|
523
|
+
for (var k in a)
|
|
524
|
+
o[k] = a[k];
|
|
525
|
+
for (var k in b)
|
|
526
|
+
o[k] = b[k];
|
|
527
|
+
return o;
|
|
528
|
+
};
|
|
529
|
+
var wbytes = function(d, b, v) {
|
|
530
|
+
for (;v; ++b)
|
|
531
|
+
d[b] = v, v >>>= 8;
|
|
532
|
+
};
|
|
533
|
+
function deflateSync(data, opts) {
|
|
534
|
+
return dopt(data, opts || {}, 0, 0);
|
|
535
|
+
}
|
|
536
|
+
var fltn = function(d, p, t, o) {
|
|
537
|
+
for (var k in d) {
|
|
538
|
+
var val = d[k], n = p + k, op = o;
|
|
539
|
+
if (Array.isArray(val))
|
|
540
|
+
op = mrg(o, val[1]), val = val[0];
|
|
541
|
+
if (ArrayBuffer.isView(val))
|
|
542
|
+
t[n] = [val, op];
|
|
543
|
+
else {
|
|
544
|
+
t[n += "/"] = [new u8(0), op];
|
|
545
|
+
fltn(val, n, t, o);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
var te = typeof TextEncoder != "undefined" && /* @__PURE__ */ new TextEncoder;
|
|
550
|
+
var td = typeof TextDecoder != "undefined" && /* @__PURE__ */ new TextDecoder;
|
|
551
|
+
var tds = 0;
|
|
552
|
+
try {
|
|
553
|
+
td.decode(et, { stream: true });
|
|
554
|
+
tds = 1;
|
|
555
|
+
} catch (e) {}
|
|
556
|
+
function strToU8(str, latin1) {
|
|
557
|
+
if (latin1) {
|
|
558
|
+
var ar_1 = new u8(str.length);
|
|
559
|
+
for (var i2 = 0;i2 < str.length; ++i2)
|
|
560
|
+
ar_1[i2] = str.charCodeAt(i2);
|
|
561
|
+
return ar_1;
|
|
562
|
+
}
|
|
563
|
+
if (te)
|
|
564
|
+
return te.encode(str);
|
|
565
|
+
var l = str.length;
|
|
566
|
+
var ar = new u8(str.length + (str.length >> 1));
|
|
567
|
+
var ai = 0;
|
|
568
|
+
var w = function(v) {
|
|
569
|
+
ar[ai++] = v;
|
|
570
|
+
};
|
|
571
|
+
for (var i2 = 0;i2 < l; ++i2) {
|
|
572
|
+
if (ai + 5 > ar.length) {
|
|
573
|
+
var n = new u8(ai + 8 + (l - i2 << 1));
|
|
574
|
+
n.set(ar);
|
|
575
|
+
ar = n;
|
|
576
|
+
}
|
|
577
|
+
var c = str.charCodeAt(i2);
|
|
578
|
+
if (c < 128 || latin1)
|
|
579
|
+
w(c);
|
|
580
|
+
else if (c < 2048)
|
|
581
|
+
w(192 | c >> 6), w(128 | c & 63);
|
|
582
|
+
else if (c > 55295 && c < 57344)
|
|
583
|
+
c = 65536 + (c & 1023 << 10) | str.charCodeAt(++i2) & 1023, w(240 | c >> 18), w(128 | c >> 12 & 63), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
584
|
+
else
|
|
585
|
+
w(224 | c >> 12), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
586
|
+
}
|
|
587
|
+
return slc(ar, 0, ai);
|
|
588
|
+
}
|
|
589
|
+
var exfl = function(ex) {
|
|
590
|
+
var le = 0;
|
|
591
|
+
if (ex) {
|
|
592
|
+
for (var k in ex) {
|
|
593
|
+
var l = ex[k].length;
|
|
594
|
+
if (l > 65535)
|
|
595
|
+
err(9);
|
|
596
|
+
le += l + 4;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return le;
|
|
600
|
+
};
|
|
601
|
+
var wzh = function(d, b, f, fn, u, c, ce, co) {
|
|
602
|
+
var fl2 = fn.length, ex = f.extra, col = co && co.length;
|
|
603
|
+
var exl = exfl(ex);
|
|
604
|
+
wbytes(d, b, ce != null ? 33639248 : 67324752), b += 4;
|
|
605
|
+
if (ce != null)
|
|
606
|
+
d[b++] = 20, d[b++] = f.os;
|
|
607
|
+
d[b] = 20, b += 2;
|
|
608
|
+
d[b++] = f.flag << 1 | (c < 0 && 8), d[b++] = u && 8;
|
|
609
|
+
d[b++] = f.compression & 255, d[b++] = f.compression >> 8;
|
|
610
|
+
var dt = new Date(f.mtime == null ? Date.now() : f.mtime), y = dt.getFullYear() - 1980;
|
|
611
|
+
if (y < 0 || y > 119)
|
|
612
|
+
err(10);
|
|
613
|
+
wbytes(d, b, y << 25 | dt.getMonth() + 1 << 21 | dt.getDate() << 16 | dt.getHours() << 11 | dt.getMinutes() << 5 | dt.getSeconds() >> 1), b += 4;
|
|
614
|
+
if (c != -1) {
|
|
615
|
+
wbytes(d, b, f.crc);
|
|
616
|
+
wbytes(d, b + 4, c < 0 ? -c - 2 : c);
|
|
617
|
+
wbytes(d, b + 8, f.size);
|
|
618
|
+
}
|
|
619
|
+
wbytes(d, b + 12, fl2);
|
|
620
|
+
wbytes(d, b + 14, exl), b += 16;
|
|
621
|
+
if (ce != null) {
|
|
622
|
+
wbytes(d, b, col);
|
|
623
|
+
wbytes(d, b + 6, f.attrs);
|
|
624
|
+
wbytes(d, b + 10, ce), b += 14;
|
|
625
|
+
}
|
|
626
|
+
d.set(fn, b);
|
|
627
|
+
b += fl2;
|
|
628
|
+
if (exl) {
|
|
629
|
+
for (var k in ex) {
|
|
630
|
+
var exf = ex[k], l = exf.length;
|
|
631
|
+
wbytes(d, b, +k);
|
|
632
|
+
wbytes(d, b + 2, l);
|
|
633
|
+
d.set(exf, b + 4), b += 4 + l;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (col)
|
|
637
|
+
d.set(co, b), b += col;
|
|
638
|
+
return b;
|
|
639
|
+
};
|
|
640
|
+
var wzf = function(o, b, c, d, e) {
|
|
641
|
+
wbytes(o, b, 101010256);
|
|
642
|
+
wbytes(o, b + 8, c);
|
|
643
|
+
wbytes(o, b + 10, c);
|
|
644
|
+
wbytes(o, b + 12, d);
|
|
645
|
+
wbytes(o, b + 16, e);
|
|
646
|
+
};
|
|
647
|
+
function zipSync(data, opts) {
|
|
648
|
+
if (!opts)
|
|
649
|
+
opts = {};
|
|
650
|
+
var r = {};
|
|
651
|
+
var files = [];
|
|
652
|
+
fltn(data, "", r, opts);
|
|
653
|
+
var o = 0;
|
|
654
|
+
var tot = 0;
|
|
655
|
+
for (var fn in r) {
|
|
656
|
+
var _a2 = r[fn], file = _a2[0], p = _a2[1];
|
|
657
|
+
var compression = p.level == 0 ? 0 : 8;
|
|
658
|
+
var f = strToU8(fn), s = f.length;
|
|
659
|
+
var com = p.comment, m = com && strToU8(com), ms = m && m.length;
|
|
660
|
+
var exl = exfl(p.extra);
|
|
661
|
+
if (s > 65535)
|
|
662
|
+
err(11);
|
|
663
|
+
var d = compression ? deflateSync(file, p) : file, l = d.length;
|
|
664
|
+
var c = crc();
|
|
665
|
+
c.p(file);
|
|
666
|
+
files.push(mrg(p, {
|
|
667
|
+
size: file.length,
|
|
668
|
+
crc: c.d(),
|
|
669
|
+
c: d,
|
|
670
|
+
f,
|
|
671
|
+
m,
|
|
672
|
+
u: s != fn.length || m && com.length != ms,
|
|
673
|
+
o,
|
|
674
|
+
compression
|
|
675
|
+
}));
|
|
676
|
+
o += 30 + s + exl + l;
|
|
677
|
+
tot += 76 + 2 * (s + exl) + (ms || 0) + l;
|
|
678
|
+
}
|
|
679
|
+
var out = new u8(tot + 22), oe = o, cdl = tot - o;
|
|
680
|
+
for (var i2 = 0;i2 < files.length; ++i2) {
|
|
681
|
+
var f = files[i2];
|
|
682
|
+
wzh(out, f.o, f, f.f, f.u, f.c.length);
|
|
683
|
+
var badd = 30 + f.f.length + exfl(f.extra);
|
|
684
|
+
out.set(f.c, f.o + badd);
|
|
685
|
+
wzh(out, o, f, f.f, f.u, f.c.length, f.o, f.m), o += 16 + badd + (f.m ? f.m.length : 0);
|
|
686
|
+
}
|
|
687
|
+
wzf(out, o, files.length, cdl, oe);
|
|
688
|
+
return out;
|
|
689
|
+
}
|
|
690
|
+
// ../packager/packager-core/src/i18n/types.ts
|
|
691
|
+
function isPluralForm(value) {
|
|
692
|
+
return typeof value === "object" && value !== null && "other" in value;
|
|
693
|
+
}
|
|
694
|
+
function selectPluralForm(forms, count) {
|
|
695
|
+
if (count === 0 && forms.zero !== undefined) {
|
|
696
|
+
return forms.zero;
|
|
697
|
+
}
|
|
698
|
+
if (count === 1 && forms.one !== undefined) {
|
|
699
|
+
return forms.one;
|
|
700
|
+
}
|
|
701
|
+
if (count === 2 && forms.two !== undefined) {
|
|
702
|
+
return forms.two;
|
|
703
|
+
}
|
|
704
|
+
if (forms.few !== undefined) {
|
|
705
|
+
const mod10 = count % 10;
|
|
706
|
+
const mod100 = count % 100;
|
|
707
|
+
if (mod10 >= 2 && mod10 <= 4 && (mod100 < 10 || mod100 >= 20)) {
|
|
708
|
+
return forms.few;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
if (forms.many !== undefined) {
|
|
712
|
+
const mod10 = count % 10;
|
|
713
|
+
const mod100 = count % 100;
|
|
714
|
+
if (count === 0 || mod10 === 0 && mod100 !== 0 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14) {
|
|
715
|
+
return forms.many;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
return forms.other;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
// ../packager/packager-core/src/i18n/i18n-manager.ts
|
|
722
|
+
class I18nManager {
|
|
723
|
+
static translations = {};
|
|
724
|
+
static currentLocale = "en";
|
|
725
|
+
static fallbackLocale = "en";
|
|
726
|
+
static registerTranslations(locale, catalog) {
|
|
727
|
+
if (!I18nManager.translations[locale]) {
|
|
728
|
+
I18nManager.translations[locale] = {};
|
|
729
|
+
}
|
|
730
|
+
I18nManager.translations[locale] = I18nManager.deepMerge(I18nManager.translations[locale], catalog);
|
|
731
|
+
}
|
|
732
|
+
static setLocale(locale) {
|
|
733
|
+
const normalized = I18nManager.normalizeLocale(locale);
|
|
734
|
+
if (I18nManager.translations[normalized]) {
|
|
735
|
+
I18nManager.currentLocale = normalized;
|
|
736
|
+
return normalized;
|
|
737
|
+
}
|
|
738
|
+
const baseLocale = normalized.split("-")[0];
|
|
739
|
+
if (baseLocale !== normalized && I18nManager.translations[baseLocale]) {
|
|
740
|
+
I18nManager.currentLocale = baseLocale;
|
|
741
|
+
return baseLocale;
|
|
742
|
+
}
|
|
743
|
+
return I18nManager.currentLocale;
|
|
744
|
+
}
|
|
745
|
+
static getLocale() {
|
|
746
|
+
return I18nManager.currentLocale;
|
|
747
|
+
}
|
|
748
|
+
static setFallbackLocale(locale) {
|
|
749
|
+
I18nManager.fallbackLocale = I18nManager.normalizeLocale(locale);
|
|
750
|
+
}
|
|
751
|
+
static t(key, params, locale) {
|
|
752
|
+
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
753
|
+
let value = I18nManager.getTranslationValue(key, targetLocale);
|
|
754
|
+
if (value === undefined && targetLocale !== I18nManager.fallbackLocale) {
|
|
755
|
+
value = I18nManager.getTranslationValue(key, I18nManager.fallbackLocale);
|
|
756
|
+
}
|
|
757
|
+
if (value === undefined) {
|
|
758
|
+
return key;
|
|
759
|
+
}
|
|
760
|
+
if (isPluralForm(value) && params && "count" in params) {
|
|
761
|
+
const count = typeof params.count === "number" ? params.count : Number(params.count);
|
|
762
|
+
value = selectPluralForm(value, count);
|
|
763
|
+
} else if (isPluralForm(value)) {
|
|
764
|
+
value = value.other;
|
|
765
|
+
}
|
|
766
|
+
if (typeof value !== "string") {
|
|
767
|
+
return key;
|
|
768
|
+
}
|
|
769
|
+
return params ? I18nManager.interpolate(value, params) : value;
|
|
770
|
+
}
|
|
771
|
+
static has(key, locale) {
|
|
772
|
+
const targetLocale = locale ? I18nManager.normalizeLocale(locale) : I18nManager.currentLocale;
|
|
773
|
+
const value = I18nManager.getTranslationValue(key, targetLocale);
|
|
774
|
+
if (value !== undefined) {
|
|
775
|
+
return true;
|
|
776
|
+
}
|
|
777
|
+
if (targetLocale !== I18nManager.fallbackLocale) {
|
|
778
|
+
return I18nManager.getTranslationValue(key, I18nManager.fallbackLocale) !== undefined;
|
|
779
|
+
}
|
|
780
|
+
return false;
|
|
781
|
+
}
|
|
782
|
+
static getAvailableLocales() {
|
|
783
|
+
return Object.keys(I18nManager.translations);
|
|
784
|
+
}
|
|
785
|
+
static clearTranslations() {
|
|
786
|
+
I18nManager.translations = {};
|
|
787
|
+
I18nManager.currentLocale = "en";
|
|
788
|
+
}
|
|
789
|
+
static getTranslationValue(key, locale) {
|
|
790
|
+
const catalog = I18nManager.translations[locale];
|
|
791
|
+
if (!catalog) {
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
const keys = key.split(".");
|
|
795
|
+
let value = catalog;
|
|
796
|
+
for (const k of keys) {
|
|
797
|
+
if (value && typeof value === "object" && k in value) {
|
|
798
|
+
value = value[k];
|
|
799
|
+
} else {
|
|
800
|
+
return;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return value;
|
|
804
|
+
}
|
|
805
|
+
static interpolate(template, params) {
|
|
806
|
+
return template.replace(/\{(\w+)\}/g, (_, key) => {
|
|
807
|
+
const value = params[key];
|
|
808
|
+
return value !== undefined ? String(value) : `{${key}}`;
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
static normalizeLocale(locale) {
|
|
812
|
+
const normalized = locale.toLowerCase().replace(/_/g, "-");
|
|
813
|
+
const specialLocales = ["es-mx", "pt-br", "zh-cn", "zh-tw"];
|
|
814
|
+
if (specialLocales.includes(normalized)) {
|
|
815
|
+
return normalized;
|
|
816
|
+
}
|
|
817
|
+
return normalized.split("-")[0];
|
|
818
|
+
}
|
|
819
|
+
static deepMerge(target, source) {
|
|
820
|
+
const result = { ...target };
|
|
821
|
+
for (const key of Object.keys(source)) {
|
|
822
|
+
const sourceValue = source[key];
|
|
823
|
+
const targetValue = result[key];
|
|
824
|
+
if (sourceValue && typeof sourceValue === "object" && !Array.isArray(sourceValue) && targetValue && typeof targetValue === "object" && !Array.isArray(targetValue)) {
|
|
825
|
+
result[key] = I18nManager.deepMerge(targetValue, sourceValue);
|
|
826
|
+
} else {
|
|
827
|
+
result[key] = sourceValue;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
return result;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
// ../packager/packager-core/src/i18n/locales/de.ts
|
|
835
|
+
var de = {
|
|
836
|
+
toolCore: {
|
|
837
|
+
errors: {
|
|
838
|
+
internal: "Internal error: {message}",
|
|
839
|
+
fileNotFound: "File not found: {path}",
|
|
840
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
841
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
842
|
+
directoryNotFound: "Directory not found: {path}",
|
|
843
|
+
invalidPath: "{path} is not a valid path",
|
|
844
|
+
operationCanceled: "Operation was canceled",
|
|
845
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
846
|
+
},
|
|
847
|
+
progress: {
|
|
848
|
+
copying: "Copying files...",
|
|
849
|
+
building: "Building project...",
|
|
850
|
+
packaging: "Creating package...",
|
|
851
|
+
validating: "Validating...",
|
|
852
|
+
analyzing: "Analyzing...",
|
|
853
|
+
restoring: "Restoring dependencies..."
|
|
854
|
+
},
|
|
855
|
+
validation: {
|
|
856
|
+
requiredField: "{field} is required",
|
|
857
|
+
invalidValue: "Invalid value for {field}",
|
|
858
|
+
pathNotFound: "Path not found: {path}",
|
|
859
|
+
fileRequired: "File is required: {path}",
|
|
860
|
+
directoryRequired: "Directory is required: {path}"
|
|
861
|
+
},
|
|
862
|
+
warnings: {
|
|
863
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
864
|
+
},
|
|
865
|
+
info: {
|
|
866
|
+
operationComplete: "Operation completed successfully",
|
|
867
|
+
filesProcessed: {
|
|
868
|
+
zero: "No files processed",
|
|
869
|
+
one: "{count} file processed",
|
|
870
|
+
other: "{count} files processed"
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
// ../packager/packager-core/src/i18n/locales/en.ts
|
|
877
|
+
var en = {
|
|
878
|
+
toolCore: {
|
|
879
|
+
errors: {
|
|
880
|
+
internal: "Internal error: {message}",
|
|
881
|
+
fileNotFound: "File not found: {path}",
|
|
882
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
883
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
884
|
+
directoryNotFound: "Directory not found: {path}",
|
|
885
|
+
invalidPath: "{path} is not a valid path",
|
|
886
|
+
operationCanceled: "Operation was canceled",
|
|
887
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
888
|
+
},
|
|
889
|
+
progress: {
|
|
890
|
+
copying: "Copying files...",
|
|
891
|
+
building: "Building project...",
|
|
892
|
+
packaging: "Creating package...",
|
|
893
|
+
validating: "Validating...",
|
|
894
|
+
analyzing: "Analyzing...",
|
|
895
|
+
restoring: "Restoring dependencies..."
|
|
896
|
+
},
|
|
897
|
+
validation: {
|
|
898
|
+
requiredField: "{field} is required",
|
|
899
|
+
invalidValue: "Invalid value for {field}",
|
|
900
|
+
pathNotFound: "Path not found: {path}",
|
|
901
|
+
fileRequired: "File is required: {path}",
|
|
902
|
+
directoryRequired: "Directory is required: {path}"
|
|
903
|
+
},
|
|
904
|
+
warnings: {
|
|
905
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
906
|
+
},
|
|
907
|
+
info: {
|
|
908
|
+
operationComplete: "Operation completed successfully",
|
|
909
|
+
filesProcessed: {
|
|
910
|
+
zero: "No files processed",
|
|
911
|
+
one: "{count} file processed",
|
|
912
|
+
other: "{count} files processed"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
// ../packager/packager-core/src/i18n/locales/es.ts
|
|
919
|
+
var es = {
|
|
920
|
+
toolCore: {
|
|
921
|
+
errors: {
|
|
922
|
+
internal: "Internal error: {message}",
|
|
923
|
+
fileNotFound: "File not found: {path}",
|
|
924
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
925
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
926
|
+
directoryNotFound: "Directory not found: {path}",
|
|
927
|
+
invalidPath: "{path} is not a valid path",
|
|
928
|
+
operationCanceled: "Operation was canceled",
|
|
929
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
930
|
+
},
|
|
931
|
+
progress: {
|
|
932
|
+
copying: "Copying files...",
|
|
933
|
+
building: "Building project...",
|
|
934
|
+
packaging: "Creating package...",
|
|
935
|
+
validating: "Validating...",
|
|
936
|
+
analyzing: "Analyzing...",
|
|
937
|
+
restoring: "Restoring dependencies..."
|
|
938
|
+
},
|
|
939
|
+
validation: {
|
|
940
|
+
requiredField: "{field} is required",
|
|
941
|
+
invalidValue: "Invalid value for {field}",
|
|
942
|
+
pathNotFound: "Path not found: {path}",
|
|
943
|
+
fileRequired: "File is required: {path}",
|
|
944
|
+
directoryRequired: "Directory is required: {path}"
|
|
945
|
+
},
|
|
946
|
+
warnings: {
|
|
947
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
948
|
+
},
|
|
949
|
+
info: {
|
|
950
|
+
operationComplete: "Operation completed successfully",
|
|
951
|
+
filesProcessed: {
|
|
952
|
+
zero: "No files processed",
|
|
953
|
+
one: "{count} file processed",
|
|
954
|
+
other: "{count} files processed"
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
// ../packager/packager-core/src/i18n/locales/es-MX.ts
|
|
961
|
+
var es_MX = {
|
|
962
|
+
toolCore: {
|
|
963
|
+
errors: {
|
|
964
|
+
internal: "Internal error: {message}",
|
|
965
|
+
fileNotFound: "File not found: {path}",
|
|
966
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
967
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
968
|
+
directoryNotFound: "Directory not found: {path}",
|
|
969
|
+
invalidPath: "{path} is not a valid path",
|
|
970
|
+
operationCanceled: "Operation was canceled",
|
|
971
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
972
|
+
},
|
|
973
|
+
progress: {
|
|
974
|
+
copying: "Copying files...",
|
|
975
|
+
building: "Building project...",
|
|
976
|
+
packaging: "Creating package...",
|
|
977
|
+
validating: "Validating...",
|
|
978
|
+
analyzing: "Analyzing...",
|
|
979
|
+
restoring: "Restoring dependencies..."
|
|
980
|
+
},
|
|
981
|
+
validation: {
|
|
982
|
+
requiredField: "{field} is required",
|
|
983
|
+
invalidValue: "Invalid value for {field}",
|
|
984
|
+
pathNotFound: "Path not found: {path}",
|
|
985
|
+
fileRequired: "File is required: {path}",
|
|
986
|
+
directoryRequired: "Directory is required: {path}"
|
|
987
|
+
},
|
|
988
|
+
warnings: {
|
|
989
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
990
|
+
},
|
|
991
|
+
info: {
|
|
992
|
+
operationComplete: "Operation completed successfully",
|
|
993
|
+
filesProcessed: {
|
|
994
|
+
zero: "No files processed",
|
|
995
|
+
one: "{count} file processed",
|
|
996
|
+
other: "{count} files processed"
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
// ../packager/packager-core/src/i18n/locales/fr.ts
|
|
1003
|
+
var fr = {
|
|
1004
|
+
toolCore: {
|
|
1005
|
+
errors: {
|
|
1006
|
+
internal: "Internal error: {message}",
|
|
1007
|
+
fileNotFound: "File not found: {path}",
|
|
1008
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1009
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1010
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1011
|
+
invalidPath: "{path} is not a valid path",
|
|
1012
|
+
operationCanceled: "Operation was canceled",
|
|
1013
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1014
|
+
},
|
|
1015
|
+
progress: {
|
|
1016
|
+
copying: "Copying files...",
|
|
1017
|
+
building: "Building project...",
|
|
1018
|
+
packaging: "Creating package...",
|
|
1019
|
+
validating: "Validating...",
|
|
1020
|
+
analyzing: "Analyzing...",
|
|
1021
|
+
restoring: "Restoring dependencies..."
|
|
1022
|
+
},
|
|
1023
|
+
validation: {
|
|
1024
|
+
requiredField: "{field} is required",
|
|
1025
|
+
invalidValue: "Invalid value for {field}",
|
|
1026
|
+
pathNotFound: "Path not found: {path}",
|
|
1027
|
+
fileRequired: "File is required: {path}",
|
|
1028
|
+
directoryRequired: "Directory is required: {path}"
|
|
1029
|
+
},
|
|
1030
|
+
warnings: {
|
|
1031
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1032
|
+
},
|
|
1033
|
+
info: {
|
|
1034
|
+
operationComplete: "Operation completed successfully",
|
|
1035
|
+
filesProcessed: {
|
|
1036
|
+
zero: "No files processed",
|
|
1037
|
+
one: "{count} file processed",
|
|
1038
|
+
other: "{count} files processed"
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
// ../packager/packager-core/src/i18n/locales/ja.ts
|
|
1045
|
+
var ja = {
|
|
1046
|
+
toolCore: {
|
|
1047
|
+
errors: {
|
|
1048
|
+
internal: "Internal error: {message}",
|
|
1049
|
+
fileNotFound: "File not found: {path}",
|
|
1050
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1051
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1052
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1053
|
+
invalidPath: "{path} is not a valid path",
|
|
1054
|
+
operationCanceled: "Operation was canceled",
|
|
1055
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1056
|
+
},
|
|
1057
|
+
progress: {
|
|
1058
|
+
copying: "Copying files...",
|
|
1059
|
+
building: "Building project...",
|
|
1060
|
+
packaging: "Creating package...",
|
|
1061
|
+
validating: "Validating...",
|
|
1062
|
+
analyzing: "Analyzing...",
|
|
1063
|
+
restoring: "Restoring dependencies..."
|
|
1064
|
+
},
|
|
1065
|
+
validation: {
|
|
1066
|
+
requiredField: "{field} is required",
|
|
1067
|
+
invalidValue: "Invalid value for {field}",
|
|
1068
|
+
pathNotFound: "Path not found: {path}",
|
|
1069
|
+
fileRequired: "File is required: {path}",
|
|
1070
|
+
directoryRequired: "Directory is required: {path}"
|
|
1071
|
+
},
|
|
1072
|
+
warnings: {
|
|
1073
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1074
|
+
},
|
|
1075
|
+
info: {
|
|
1076
|
+
operationComplete: "Operation completed successfully",
|
|
1077
|
+
filesProcessed: {
|
|
1078
|
+
zero: "No files processed",
|
|
1079
|
+
one: "{count} file processed",
|
|
1080
|
+
other: "{count} files processed"
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
// ../packager/packager-core/src/i18n/locales/ko.ts
|
|
1087
|
+
var ko = {
|
|
1088
|
+
toolCore: {
|
|
1089
|
+
errors: {
|
|
1090
|
+
internal: "Internal error: {message}",
|
|
1091
|
+
fileNotFound: "File not found: {path}",
|
|
1092
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1093
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1094
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1095
|
+
invalidPath: "{path} is not a valid path",
|
|
1096
|
+
operationCanceled: "Operation was canceled",
|
|
1097
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1098
|
+
},
|
|
1099
|
+
progress: {
|
|
1100
|
+
copying: "Copying files...",
|
|
1101
|
+
building: "Building project...",
|
|
1102
|
+
packaging: "Creating package...",
|
|
1103
|
+
validating: "Validating...",
|
|
1104
|
+
analyzing: "Analyzing...",
|
|
1105
|
+
restoring: "Restoring dependencies..."
|
|
1106
|
+
},
|
|
1107
|
+
validation: {
|
|
1108
|
+
requiredField: "{field} is required",
|
|
1109
|
+
invalidValue: "Invalid value for {field}",
|
|
1110
|
+
pathNotFound: "Path not found: {path}",
|
|
1111
|
+
fileRequired: "File is required: {path}",
|
|
1112
|
+
directoryRequired: "Directory is required: {path}"
|
|
1113
|
+
},
|
|
1114
|
+
warnings: {
|
|
1115
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1116
|
+
},
|
|
1117
|
+
info: {
|
|
1118
|
+
operationComplete: "Operation completed successfully",
|
|
1119
|
+
filesProcessed: {
|
|
1120
|
+
zero: "No files processed",
|
|
1121
|
+
one: "{count} file processed",
|
|
1122
|
+
other: "{count} files processed"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
// ../packager/packager-core/src/i18n/locales/pt.ts
|
|
1129
|
+
var pt = {
|
|
1130
|
+
toolCore: {
|
|
1131
|
+
errors: {
|
|
1132
|
+
internal: "Internal error: {message}",
|
|
1133
|
+
fileNotFound: "File not found: {path}",
|
|
1134
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1135
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1136
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1137
|
+
invalidPath: "{path} is not a valid path",
|
|
1138
|
+
operationCanceled: "Operation was canceled",
|
|
1139
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1140
|
+
},
|
|
1141
|
+
progress: {
|
|
1142
|
+
copying: "Copying files...",
|
|
1143
|
+
building: "Building project...",
|
|
1144
|
+
packaging: "Creating package...",
|
|
1145
|
+
validating: "Validating...",
|
|
1146
|
+
analyzing: "Analyzing...",
|
|
1147
|
+
restoring: "Restoring dependencies..."
|
|
1148
|
+
},
|
|
1149
|
+
validation: {
|
|
1150
|
+
requiredField: "{field} is required",
|
|
1151
|
+
invalidValue: "Invalid value for {field}",
|
|
1152
|
+
pathNotFound: "Path not found: {path}",
|
|
1153
|
+
fileRequired: "File is required: {path}",
|
|
1154
|
+
directoryRequired: "Directory is required: {path}"
|
|
1155
|
+
},
|
|
1156
|
+
warnings: {
|
|
1157
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1158
|
+
},
|
|
1159
|
+
info: {
|
|
1160
|
+
operationComplete: "Operation completed successfully",
|
|
1161
|
+
filesProcessed: {
|
|
1162
|
+
zero: "No files processed",
|
|
1163
|
+
one: "{count} file processed",
|
|
1164
|
+
other: "{count} files processed"
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
// ../packager/packager-core/src/i18n/locales/pt-BR.ts
|
|
1171
|
+
var pt_BR = {
|
|
1172
|
+
toolCore: {
|
|
1173
|
+
errors: {
|
|
1174
|
+
internal: "Internal error: {message}",
|
|
1175
|
+
fileNotFound: "File not found: {path}",
|
|
1176
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1177
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1178
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1179
|
+
invalidPath: "{path} is not a valid path",
|
|
1180
|
+
operationCanceled: "Operation was canceled",
|
|
1181
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1182
|
+
},
|
|
1183
|
+
progress: {
|
|
1184
|
+
copying: "Copying files...",
|
|
1185
|
+
building: "Building project...",
|
|
1186
|
+
packaging: "Creating package...",
|
|
1187
|
+
validating: "Validating...",
|
|
1188
|
+
analyzing: "Analyzing...",
|
|
1189
|
+
restoring: "Restoring dependencies..."
|
|
1190
|
+
},
|
|
1191
|
+
validation: {
|
|
1192
|
+
requiredField: "{field} is required",
|
|
1193
|
+
invalidValue: "Invalid value for {field}",
|
|
1194
|
+
pathNotFound: "Path not found: {path}",
|
|
1195
|
+
fileRequired: "File is required: {path}",
|
|
1196
|
+
directoryRequired: "Directory is required: {path}"
|
|
1197
|
+
},
|
|
1198
|
+
warnings: {
|
|
1199
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1200
|
+
},
|
|
1201
|
+
info: {
|
|
1202
|
+
operationComplete: "Operation completed successfully",
|
|
1203
|
+
filesProcessed: {
|
|
1204
|
+
zero: "No files processed",
|
|
1205
|
+
one: "{count} file processed",
|
|
1206
|
+
other: "{count} files processed"
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
// ../packager/packager-core/src/i18n/locales/ro.ts
|
|
1213
|
+
var ro = {
|
|
1214
|
+
toolCore: {
|
|
1215
|
+
errors: {
|
|
1216
|
+
internal: "Internal error: {message}",
|
|
1217
|
+
fileNotFound: "File not found: {path}",
|
|
1218
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1219
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1220
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1221
|
+
invalidPath: "{path} is not a valid path",
|
|
1222
|
+
operationCanceled: "Operation was canceled",
|
|
1223
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1224
|
+
},
|
|
1225
|
+
progress: {
|
|
1226
|
+
copying: "Copying files...",
|
|
1227
|
+
building: "Building project...",
|
|
1228
|
+
packaging: "Creating package...",
|
|
1229
|
+
validating: "Validating...",
|
|
1230
|
+
analyzing: "Analyzing...",
|
|
1231
|
+
restoring: "Restoring dependencies..."
|
|
1232
|
+
},
|
|
1233
|
+
validation: {
|
|
1234
|
+
requiredField: "{field} is required",
|
|
1235
|
+
invalidValue: "Invalid value for {field}",
|
|
1236
|
+
pathNotFound: "Path not found: {path}",
|
|
1237
|
+
fileRequired: "File is required: {path}",
|
|
1238
|
+
directoryRequired: "Directory is required: {path}"
|
|
1239
|
+
},
|
|
1240
|
+
warnings: {
|
|
1241
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1242
|
+
},
|
|
1243
|
+
info: {
|
|
1244
|
+
operationComplete: "Operation completed successfully",
|
|
1245
|
+
filesProcessed: {
|
|
1246
|
+
zero: "No files processed",
|
|
1247
|
+
one: "{count} file processed",
|
|
1248
|
+
other: "{count} files processed"
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
// ../packager/packager-core/src/i18n/locales/ru.ts
|
|
1255
|
+
var ru = {
|
|
1256
|
+
toolCore: {
|
|
1257
|
+
errors: {
|
|
1258
|
+
internal: "Internal error: {message}",
|
|
1259
|
+
fileNotFound: "File not found: {path}",
|
|
1260
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1261
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1262
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1263
|
+
invalidPath: "{path} is not a valid path",
|
|
1264
|
+
operationCanceled: "Operation was canceled",
|
|
1265
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1266
|
+
},
|
|
1267
|
+
progress: {
|
|
1268
|
+
copying: "Copying files...",
|
|
1269
|
+
building: "Building project...",
|
|
1270
|
+
packaging: "Creating package...",
|
|
1271
|
+
validating: "Validating...",
|
|
1272
|
+
analyzing: "Analyzing...",
|
|
1273
|
+
restoring: "Restoring dependencies..."
|
|
1274
|
+
},
|
|
1275
|
+
validation: {
|
|
1276
|
+
requiredField: "{field} is required",
|
|
1277
|
+
invalidValue: "Invalid value for {field}",
|
|
1278
|
+
pathNotFound: "Path not found: {path}",
|
|
1279
|
+
fileRequired: "File is required: {path}",
|
|
1280
|
+
directoryRequired: "Directory is required: {path}"
|
|
1281
|
+
},
|
|
1282
|
+
warnings: {
|
|
1283
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1284
|
+
},
|
|
1285
|
+
info: {
|
|
1286
|
+
operationComplete: "Operation completed successfully",
|
|
1287
|
+
filesProcessed: {
|
|
1288
|
+
zero: "No files processed",
|
|
1289
|
+
one: "{count} file processed",
|
|
1290
|
+
other: "{count} files processed"
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
// ../packager/packager-core/src/i18n/locales/tr.ts
|
|
1297
|
+
var tr = {
|
|
1298
|
+
toolCore: {
|
|
1299
|
+
errors: {
|
|
1300
|
+
internal: "Internal error: {message}",
|
|
1301
|
+
fileNotFound: "File not found: {path}",
|
|
1302
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1303
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1304
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1305
|
+
invalidPath: "{path} is not a valid path",
|
|
1306
|
+
operationCanceled: "Operation was canceled",
|
|
1307
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1308
|
+
},
|
|
1309
|
+
progress: {
|
|
1310
|
+
copying: "Copying files...",
|
|
1311
|
+
building: "Building project...",
|
|
1312
|
+
packaging: "Creating package...",
|
|
1313
|
+
validating: "Validating...",
|
|
1314
|
+
analyzing: "Analyzing...",
|
|
1315
|
+
restoring: "Restoring dependencies..."
|
|
1316
|
+
},
|
|
1317
|
+
validation: {
|
|
1318
|
+
requiredField: "{field} is required",
|
|
1319
|
+
invalidValue: "Invalid value for {field}",
|
|
1320
|
+
pathNotFound: "Path not found: {path}",
|
|
1321
|
+
fileRequired: "File is required: {path}",
|
|
1322
|
+
directoryRequired: "Directory is required: {path}"
|
|
1323
|
+
},
|
|
1324
|
+
warnings: {
|
|
1325
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1326
|
+
},
|
|
1327
|
+
info: {
|
|
1328
|
+
operationComplete: "Operation completed successfully",
|
|
1329
|
+
filesProcessed: {
|
|
1330
|
+
zero: "No files processed",
|
|
1331
|
+
one: "{count} file processed",
|
|
1332
|
+
other: "{count} files processed"
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
// ../packager/packager-core/src/i18n/locales/zh-CN.ts
|
|
1339
|
+
var zh_CN = {
|
|
1340
|
+
toolCore: {
|
|
1341
|
+
errors: {
|
|
1342
|
+
internal: "Internal error: {message}",
|
|
1343
|
+
fileNotFound: "File not found: {path}",
|
|
1344
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1345
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1346
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1347
|
+
invalidPath: "{path} is not a valid path",
|
|
1348
|
+
operationCanceled: "Operation was canceled",
|
|
1349
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1350
|
+
},
|
|
1351
|
+
progress: {
|
|
1352
|
+
copying: "Copying files...",
|
|
1353
|
+
building: "Building project...",
|
|
1354
|
+
packaging: "Creating package...",
|
|
1355
|
+
validating: "Validating...",
|
|
1356
|
+
analyzing: "Analyzing...",
|
|
1357
|
+
restoring: "Restoring dependencies..."
|
|
1358
|
+
},
|
|
1359
|
+
validation: {
|
|
1360
|
+
requiredField: "{field} is required",
|
|
1361
|
+
invalidValue: "Invalid value for {field}",
|
|
1362
|
+
pathNotFound: "Path not found: {path}",
|
|
1363
|
+
fileRequired: "File is required: {path}",
|
|
1364
|
+
directoryRequired: "Directory is required: {path}"
|
|
1365
|
+
},
|
|
1366
|
+
warnings: {
|
|
1367
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1368
|
+
},
|
|
1369
|
+
info: {
|
|
1370
|
+
operationComplete: "Operation completed successfully",
|
|
1371
|
+
filesProcessed: {
|
|
1372
|
+
zero: "No files processed",
|
|
1373
|
+
one: "{count} file processed",
|
|
1374
|
+
other: "{count} files processed"
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
// ../packager/packager-core/src/i18n/locales/zh-TW.ts
|
|
1381
|
+
var zh_TW = {
|
|
1382
|
+
toolCore: {
|
|
1383
|
+
errors: {
|
|
1384
|
+
internal: "Internal error: {message}",
|
|
1385
|
+
fileNotFound: "File not found: {path}",
|
|
1386
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1387
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1388
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1389
|
+
invalidPath: "{path} is not a valid path",
|
|
1390
|
+
operationCanceled: "Operation was canceled",
|
|
1391
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1392
|
+
},
|
|
1393
|
+
progress: {
|
|
1394
|
+
copying: "Copying files...",
|
|
1395
|
+
building: "Building project...",
|
|
1396
|
+
packaging: "Creating package...",
|
|
1397
|
+
validating: "Validating...",
|
|
1398
|
+
analyzing: "Analyzing...",
|
|
1399
|
+
restoring: "Restoring dependencies..."
|
|
1400
|
+
},
|
|
1401
|
+
validation: {
|
|
1402
|
+
requiredField: "{field} is required",
|
|
1403
|
+
invalidValue: "Invalid value for {field}",
|
|
1404
|
+
pathNotFound: "Path not found: {path}",
|
|
1405
|
+
fileRequired: "File is required: {path}",
|
|
1406
|
+
directoryRequired: "Directory is required: {path}"
|
|
1407
|
+
},
|
|
1408
|
+
warnings: {
|
|
1409
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1410
|
+
},
|
|
1411
|
+
info: {
|
|
1412
|
+
operationComplete: "Operation completed successfully",
|
|
1413
|
+
filesProcessed: {
|
|
1414
|
+
zero: "No files processed",
|
|
1415
|
+
one: "{count} file processed",
|
|
1416
|
+
other: "{count} files processed"
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
// ../packager/packager-core/src/i18n/locales/zu.ts
|
|
1423
|
+
var zu = {
|
|
1424
|
+
toolCore: {
|
|
1425
|
+
errors: {
|
|
1426
|
+
internal: "Internal error: {message}",
|
|
1427
|
+
fileNotFound: "File not found: {path}",
|
|
1428
|
+
fileReadFailed: "Failed to read file: {path}",
|
|
1429
|
+
fileWriteFailed: "Failed to write file: {path}",
|
|
1430
|
+
directoryNotFound: "Directory not found: {path}",
|
|
1431
|
+
invalidPath: "{path} is not a valid path",
|
|
1432
|
+
operationCanceled: "Operation was canceled",
|
|
1433
|
+
invalidParameter: "Invalid parameter: {parameter}"
|
|
1434
|
+
},
|
|
1435
|
+
progress: {
|
|
1436
|
+
copying: "Copying files...",
|
|
1437
|
+
building: "Building project...",
|
|
1438
|
+
packaging: "Creating package...",
|
|
1439
|
+
validating: "Validating...",
|
|
1440
|
+
analyzing: "Analyzing...",
|
|
1441
|
+
restoring: "Restoring dependencies..."
|
|
1442
|
+
},
|
|
1443
|
+
validation: {
|
|
1444
|
+
requiredField: "{field} is required",
|
|
1445
|
+
invalidValue: "Invalid value for {field}",
|
|
1446
|
+
pathNotFound: "Path not found: {path}",
|
|
1447
|
+
fileRequired: "File is required: {path}",
|
|
1448
|
+
directoryRequired: "Directory is required: {path}"
|
|
1449
|
+
},
|
|
1450
|
+
warnings: {
|
|
1451
|
+
factoryAlreadyRegistered: "A factory is already registered for project type '{type}'. Skipping duplicate registration."
|
|
1452
|
+
},
|
|
1453
|
+
info: {
|
|
1454
|
+
operationComplete: "Operation completed successfully",
|
|
1455
|
+
filesProcessed: {
|
|
1456
|
+
zero: "No files processed",
|
|
1457
|
+
one: "{count} file processed",
|
|
1458
|
+
other: "{count} files processed"
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
// ../packager/packager-core/src/i18n/translation-service.ts
|
|
1465
|
+
class TranslationService {
|
|
1466
|
+
static instance;
|
|
1467
|
+
currentLocale = "en";
|
|
1468
|
+
constructor() {}
|
|
1469
|
+
static getInstance() {
|
|
1470
|
+
if (!TranslationService.instance) {
|
|
1471
|
+
TranslationService.instance = new TranslationService;
|
|
1472
|
+
}
|
|
1473
|
+
return TranslationService.instance;
|
|
1474
|
+
}
|
|
1475
|
+
setLocale(locale) {
|
|
1476
|
+
this.currentLocale = I18nManager.setLocale(locale);
|
|
1477
|
+
}
|
|
1478
|
+
getLocale() {
|
|
1479
|
+
return this.currentLocale;
|
|
1480
|
+
}
|
|
1481
|
+
t(key, params) {
|
|
1482
|
+
return I18nManager.t(key, params, this.currentLocale);
|
|
1483
|
+
}
|
|
1484
|
+
tLocale(key, locale, params) {
|
|
1485
|
+
return I18nManager.t(key, params, locale);
|
|
1486
|
+
}
|
|
1487
|
+
has(key) {
|
|
1488
|
+
return I18nManager.has(key, this.currentLocale);
|
|
1489
|
+
}
|
|
1490
|
+
getAvailableLocales() {
|
|
1491
|
+
return I18nManager.getAvailableLocales();
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
var translate = TranslationService.getInstance();
|
|
1495
|
+
|
|
1496
|
+
// ../packager/packager-core/src/i18n/index.ts
|
|
1497
|
+
I18nManager.registerTranslations("en", en);
|
|
1498
|
+
I18nManager.registerTranslations("de", de);
|
|
1499
|
+
I18nManager.registerTranslations("es", es);
|
|
1500
|
+
I18nManager.registerTranslations("es-mx", es_MX);
|
|
1501
|
+
I18nManager.registerTranslations("fr", fr);
|
|
1502
|
+
I18nManager.registerTranslations("ja", ja);
|
|
1503
|
+
I18nManager.registerTranslations("ko", ko);
|
|
1504
|
+
I18nManager.registerTranslations("pt", pt);
|
|
1505
|
+
I18nManager.registerTranslations("pt-br", pt_BR);
|
|
1506
|
+
I18nManager.registerTranslations("ro", ro);
|
|
1507
|
+
I18nManager.registerTranslations("ru", ru);
|
|
1508
|
+
I18nManager.registerTranslations("tr", tr);
|
|
1509
|
+
I18nManager.registerTranslations("zh-cn", zh_CN);
|
|
1510
|
+
I18nManager.registerTranslations("zh-tw", zh_TW);
|
|
1511
|
+
I18nManager.registerTranslations("zu", zu);
|
|
1512
|
+
I18nManager.setLocale("en");
|
|
1513
|
+
export { zipSync, toolsFactoryRepository };
|
|
1514
|
+
|
|
1515
|
+
//# debugId=3B2068582B5A583164756E2164756E21
|