@prosopo/cli 3.8.14 → 3.8.17
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/.turbo/turbo-build$colon$cjs.log +3 -3
- package/.turbo/turbo-build$colon$tsc.log +30 -30
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +57 -0
- package/dist/bundle/decodeBehavior.js +15 -0
- package/dist/bundle/decodePayload.js +15 -0
- package/dist/bundle/decodeSimd.js +15 -0
- package/dist/bundle/{i18nFrontend-6CA6EKm9.js → i18nFrontend-D9lq3aPx.js} +127 -176
- package/dist/bundle/prosopo-native-puzzle.node +0 -0
- package/dist/bundle/provider.cli.bundle.js +16957 -18133
- package/package.json +9 -9
- package/vite.config.ts +19 -0
- package/dist/bundle/decodeBehavior-BIrrnKdS.js +0 -556
- package/dist/bundle/decodeSimd-DwxGPcIO.js +0 -617
|
@@ -1,59 +1,13 @@
|
|
|
1
1
|
import { n as e, t } from "./i18next-CzgfK_Ir.js";
|
|
2
2
|
import { l as n } from "./provider.cli.bundle.js";
|
|
3
|
-
//#region ../../node_modules/
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"<": "<",
|
|
8
|
-
"<": "<",
|
|
9
|
-
">": ">",
|
|
10
|
-
">": ">",
|
|
11
|
-
"'": "'",
|
|
12
|
-
"'": "'",
|
|
13
|
-
""": "\"",
|
|
14
|
-
""": "\"",
|
|
15
|
-
" ": " ",
|
|
16
|
-
" ": " ",
|
|
17
|
-
"©": "©",
|
|
18
|
-
"©": "©",
|
|
19
|
-
"®": "®",
|
|
20
|
-
"®": "®",
|
|
21
|
-
"…": "…",
|
|
22
|
-
"…": "…",
|
|
23
|
-
"/": "/",
|
|
24
|
-
"/": "/"
|
|
25
|
-
}, a = (e) => i[e], o = {
|
|
26
|
-
bindI18n: "languageChanged",
|
|
27
|
-
bindI18nStore: "",
|
|
28
|
-
transEmptyNodeValue: "",
|
|
29
|
-
transSupportBasicHtmlNodes: !0,
|
|
30
|
-
transWrapTextNodes: "",
|
|
31
|
-
transKeepBasicHtmlNodesFor: [
|
|
32
|
-
"br",
|
|
33
|
-
"strong",
|
|
34
|
-
"i",
|
|
35
|
-
"p"
|
|
36
|
-
],
|
|
37
|
-
useSuspense: !0,
|
|
38
|
-
unescape: (e) => e.replace(r, a),
|
|
39
|
-
transDefaultProps: void 0
|
|
40
|
-
}, s = (e = {}) => {
|
|
41
|
-
o = {
|
|
42
|
-
...o,
|
|
43
|
-
...e
|
|
44
|
-
};
|
|
45
|
-
}, c = {
|
|
46
|
-
type: "3rdParty",
|
|
47
|
-
init(e) {
|
|
48
|
-
s(e.options.react);
|
|
49
|
-
}
|
|
50
|
-
}, { slice: l, forEach: u } = [];
|
|
51
|
-
function d(e) {
|
|
52
|
-
return u.call(l.call(arguments, 1), (t) => {
|
|
3
|
+
//#region ../../node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js
|
|
4
|
+
var { slice: r, forEach: i } = [];
|
|
5
|
+
function a(e) {
|
|
6
|
+
return i.call(r.call(arguments, 1), (t) => {
|
|
53
7
|
if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
|
|
54
8
|
}), e;
|
|
55
9
|
}
|
|
56
|
-
function
|
|
10
|
+
function o(e) {
|
|
57
11
|
return typeof e == "string" && [
|
|
58
12
|
/<\s*script.*?>/i,
|
|
59
13
|
/<\s*\/\s*script\s*>/i,
|
|
@@ -70,7 +24,7 @@ function f(e) {
|
|
|
70
24
|
/innerHTML/i
|
|
71
25
|
].some((t) => t.test(e));
|
|
72
26
|
}
|
|
73
|
-
var
|
|
27
|
+
var s = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, c = function(e, t) {
|
|
74
28
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
|
|
75
29
|
if (n.maxAge > 0) {
|
|
76
30
|
let e = n.maxAge - 0;
|
|
@@ -78,11 +32,11 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
78
32
|
r += `; Max-Age=${Math.floor(e)}`;
|
|
79
33
|
}
|
|
80
34
|
if (n.domain) {
|
|
81
|
-
if (!
|
|
35
|
+
if (!s.test(n.domain)) throw TypeError("option domain is invalid");
|
|
82
36
|
r += `; Domain=${n.domain}`;
|
|
83
37
|
}
|
|
84
38
|
if (n.path) {
|
|
85
|
-
if (!
|
|
39
|
+
if (!s.test(n.path)) throw TypeError("option path is invalid");
|
|
86
40
|
r += `; Path=${n.path}`;
|
|
87
41
|
}
|
|
88
42
|
if (n.expires) {
|
|
@@ -105,13 +59,13 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
105
59
|
default: throw TypeError("option sameSite is invalid");
|
|
106
60
|
}
|
|
107
61
|
return n.partitioned && (r += "; Partitioned"), r;
|
|
108
|
-
},
|
|
62
|
+
}, l = {
|
|
109
63
|
create(e, t, n, r) {
|
|
110
64
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
111
65
|
path: "/",
|
|
112
66
|
sameSite: "strict"
|
|
113
67
|
};
|
|
114
|
-
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie =
|
|
68
|
+
n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = c(e, t, i);
|
|
115
69
|
},
|
|
116
70
|
read(e) {
|
|
117
71
|
let t = `${e}=`, n = document.cookie.split(";");
|
|
@@ -125,17 +79,17 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
125
79
|
remove(e, t) {
|
|
126
80
|
this.create(e, "", -1, t);
|
|
127
81
|
}
|
|
128
|
-
},
|
|
82
|
+
}, u = {
|
|
129
83
|
name: "cookie",
|
|
130
84
|
lookup(e) {
|
|
131
85
|
let { lookupCookie: t } = e;
|
|
132
|
-
if (t && typeof document < "u") return
|
|
86
|
+
if (t && typeof document < "u") return l.read(t) || void 0;
|
|
133
87
|
},
|
|
134
88
|
cacheUserLanguage(e, t) {
|
|
135
89
|
let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
|
|
136
|
-
n && typeof document < "u" &&
|
|
90
|
+
n && typeof document < "u" && l.create(n, e, r, i, a);
|
|
137
91
|
}
|
|
138
|
-
},
|
|
92
|
+
}, d = {
|
|
139
93
|
name: "querystring",
|
|
140
94
|
lookup(e) {
|
|
141
95
|
let { lookupQuerystring: t } = e, n;
|
|
@@ -150,7 +104,7 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
150
104
|
}
|
|
151
105
|
return n;
|
|
152
106
|
}
|
|
153
|
-
},
|
|
107
|
+
}, f = {
|
|
154
108
|
name: "hash",
|
|
155
109
|
lookup(e) {
|
|
156
110
|
let { lookupHash: t, lookupFromHashIndex: n } = e, r;
|
|
@@ -174,47 +128,47 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
174
128
|
}
|
|
175
129
|
return r;
|
|
176
130
|
}
|
|
177
|
-
},
|
|
178
|
-
if (
|
|
131
|
+
}, p = null, m = () => {
|
|
132
|
+
if (p !== null) return p;
|
|
179
133
|
try {
|
|
180
|
-
if (
|
|
134
|
+
if (p = typeof window < "u" && window.localStorage !== null, !p) return !1;
|
|
181
135
|
let e = "i18next.translate.boo";
|
|
182
136
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
183
137
|
} catch {
|
|
184
|
-
|
|
138
|
+
p = !1;
|
|
185
139
|
}
|
|
186
|
-
return
|
|
187
|
-
},
|
|
140
|
+
return p;
|
|
141
|
+
}, ee = {
|
|
188
142
|
name: "localStorage",
|
|
189
143
|
lookup(e) {
|
|
190
144
|
let { lookupLocalStorage: t } = e;
|
|
191
|
-
if (t &&
|
|
145
|
+
if (t && m()) return window.localStorage.getItem(t) || void 0;
|
|
192
146
|
},
|
|
193
147
|
cacheUserLanguage(e, t) {
|
|
194
148
|
let { lookupLocalStorage: n } = t;
|
|
195
|
-
n &&
|
|
149
|
+
n && m() && window.localStorage.setItem(n, e);
|
|
196
150
|
}
|
|
197
|
-
},
|
|
198
|
-
if (
|
|
151
|
+
}, h = null, g = () => {
|
|
152
|
+
if (h !== null) return h;
|
|
199
153
|
try {
|
|
200
|
-
if (
|
|
154
|
+
if (h = typeof window < "u" && window.sessionStorage !== null, !h) return !1;
|
|
201
155
|
let e = "i18next.translate.boo";
|
|
202
156
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
203
157
|
} catch {
|
|
204
|
-
|
|
158
|
+
h = !1;
|
|
205
159
|
}
|
|
206
|
-
return
|
|
207
|
-
},
|
|
160
|
+
return h;
|
|
161
|
+
}, _ = {
|
|
208
162
|
name: "sessionStorage",
|
|
209
163
|
lookup(e) {
|
|
210
164
|
let { lookupSessionStorage: t } = e;
|
|
211
|
-
if (t &&
|
|
165
|
+
if (t && g()) return window.sessionStorage.getItem(t) || void 0;
|
|
212
166
|
},
|
|
213
167
|
cacheUserLanguage(e, t) {
|
|
214
168
|
let { lookupSessionStorage: n } = t;
|
|
215
|
-
n &&
|
|
169
|
+
n && g() && window.sessionStorage.setItem(n, e);
|
|
216
170
|
}
|
|
217
|
-
},
|
|
171
|
+
}, v = {
|
|
218
172
|
name: "navigator",
|
|
219
173
|
lookup(e) {
|
|
220
174
|
let t = [];
|
|
@@ -225,13 +179,13 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
225
179
|
}
|
|
226
180
|
return t.length > 0 ? t : void 0;
|
|
227
181
|
}
|
|
228
|
-
},
|
|
182
|
+
}, te = {
|
|
229
183
|
name: "htmlTag",
|
|
230
184
|
lookup(e) {
|
|
231
185
|
let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
|
|
232
186
|
return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
|
|
233
187
|
}
|
|
234
|
-
},
|
|
188
|
+
}, ne = {
|
|
235
189
|
name: "path",
|
|
236
190
|
lookup(e) {
|
|
237
191
|
let { lookupFromPathIndex: t } = e;
|
|
@@ -239,17 +193,17 @@ var p = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ee = function(e, t) {
|
|
|
239
193
|
let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
240
194
|
if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
|
|
241
195
|
}
|
|
242
|
-
},
|
|
196
|
+
}, re = {
|
|
243
197
|
name: "subdomain",
|
|
244
198
|
lookup(e) {
|
|
245
199
|
let { lookupFromSubdomainIndex: t } = e, n = typeof t == "number" ? t + 1 : 1, r = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
246
200
|
if (r) return r[n];
|
|
247
201
|
}
|
|
248
|
-
},
|
|
202
|
+
}, y = !1;
|
|
249
203
|
try {
|
|
250
|
-
document.cookie,
|
|
204
|
+
document.cookie, y = !0;
|
|
251
205
|
} catch {}
|
|
252
|
-
var
|
|
206
|
+
var b = [
|
|
253
207
|
"querystring",
|
|
254
208
|
"cookie",
|
|
255
209
|
"localStorage",
|
|
@@ -257,9 +211,9 @@ var x = [
|
|
|
257
211
|
"navigator",
|
|
258
212
|
"htmlTag"
|
|
259
213
|
];
|
|
260
|
-
|
|
261
|
-
var
|
|
262
|
-
order:
|
|
214
|
+
y || b.splice(1, 1);
|
|
215
|
+
var x = () => ({
|
|
216
|
+
order: b,
|
|
263
217
|
lookupQuerystring: "lng",
|
|
264
218
|
lookupCookie: "i18next",
|
|
265
219
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -267,14 +221,14 @@ var S = () => ({
|
|
|
267
221
|
caches: ["localStorage"],
|
|
268
222
|
excludeCacheFor: ["cimode"],
|
|
269
223
|
convertDetectedLanguage: (e) => e
|
|
270
|
-
}),
|
|
224
|
+
}), S = class {
|
|
271
225
|
constructor(e) {
|
|
272
226
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
273
227
|
this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
274
228
|
}
|
|
275
229
|
init() {
|
|
276
230
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { languageUtils: {} }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
277
|
-
this.services = e, this.options =
|
|
231
|
+
this.services = e, this.options = a(t, this.options || {}, x()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(u), this.addDetector(d), this.addDetector(ee), this.addDetector(_), this.addDetector(v), this.addDetector(te), this.addDetector(ne), this.addDetector(re), this.addDetector(f);
|
|
278
232
|
}
|
|
279
233
|
addDetector(e) {
|
|
280
234
|
return this.detectors[e.name] = e, this;
|
|
@@ -286,7 +240,7 @@ var S = () => ({
|
|
|
286
240
|
let n = this.detectors[e].lookup(this.options);
|
|
287
241
|
n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
|
|
288
242
|
}
|
|
289
|
-
}), t = t.filter((e) => e != null && !
|
|
243
|
+
}), t = t.filter((e) => e != null && !o(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
|
|
290
244
|
}
|
|
291
245
|
cacheUserLanguage(e) {
|
|
292
246
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -295,69 +249,69 @@ var S = () => ({
|
|
|
295
249
|
}));
|
|
296
250
|
}
|
|
297
251
|
};
|
|
298
|
-
|
|
252
|
+
S.type = "languageDetector";
|
|
299
253
|
//#endregion
|
|
300
254
|
//#region ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
301
|
-
function
|
|
255
|
+
function ie(e, t) {
|
|
302
256
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
303
257
|
}
|
|
304
258
|
//#endregion
|
|
305
259
|
//#region ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
306
|
-
function
|
|
260
|
+
function C(e) {
|
|
307
261
|
"@babel/helpers - typeof";
|
|
308
|
-
return
|
|
262
|
+
return C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
309
263
|
return typeof e;
|
|
310
264
|
} : function(e) {
|
|
311
265
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
312
|
-
},
|
|
266
|
+
}, C(e);
|
|
313
267
|
}
|
|
314
268
|
//#endregion
|
|
315
269
|
//#region ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
316
|
-
function
|
|
317
|
-
if (
|
|
270
|
+
function ae(e, t) {
|
|
271
|
+
if (C(e) != "object" || !e) return e;
|
|
318
272
|
var n = e[Symbol.toPrimitive];
|
|
319
273
|
if (n !== void 0) {
|
|
320
274
|
var r = n.call(e, t || "default");
|
|
321
|
-
if (
|
|
275
|
+
if (C(r) != "object") return r;
|
|
322
276
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
323
277
|
}
|
|
324
278
|
return (t === "string" ? String : Number)(e);
|
|
325
279
|
}
|
|
326
280
|
//#endregion
|
|
327
281
|
//#region ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
328
|
-
function
|
|
329
|
-
var t =
|
|
330
|
-
return
|
|
282
|
+
function oe(e) {
|
|
283
|
+
var t = ae(e, "string");
|
|
284
|
+
return C(t) == "symbol" ? t : t + "";
|
|
331
285
|
}
|
|
332
286
|
//#endregion
|
|
333
287
|
//#region ../../node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
334
|
-
function
|
|
288
|
+
function w(e, t) {
|
|
335
289
|
for (var n = 0; n < t.length; n++) {
|
|
336
290
|
var r = t[n];
|
|
337
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
291
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, oe(r.key), r);
|
|
338
292
|
}
|
|
339
293
|
}
|
|
340
|
-
function
|
|
341
|
-
return t &&
|
|
294
|
+
function se(e, t, n) {
|
|
295
|
+
return t && w(e.prototype, t), n && w(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
342
296
|
}
|
|
343
297
|
//#endregion
|
|
344
298
|
//#region ../../node_modules/i18next-chained-backend/dist/esm/i18nextChainedBackend.js
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
return
|
|
299
|
+
var T = [], ce = T.forEach, le = T.slice;
|
|
300
|
+
function E(e) {
|
|
301
|
+
return ce.call(le.call(arguments, 1), function(t) {
|
|
348
302
|
if (t) for (var n in t) e[n] === void 0 && (e[n] = t[n]);
|
|
349
303
|
}), e;
|
|
350
304
|
}
|
|
351
|
-
function
|
|
305
|
+
function ue(e) {
|
|
352
306
|
return e ? typeof e == "function" ? new e() : e : null;
|
|
353
307
|
}
|
|
354
|
-
function
|
|
308
|
+
function de() {
|
|
355
309
|
return {
|
|
356
310
|
handleEmptyResourcesAsFailed: !0,
|
|
357
311
|
cacheHitMode: "none"
|
|
358
312
|
};
|
|
359
313
|
}
|
|
360
|
-
function
|
|
314
|
+
function D(e, t, n, r) {
|
|
361
315
|
var i = e.read.bind(e);
|
|
362
316
|
if (i.length === 2) {
|
|
363
317
|
try {
|
|
@@ -372,18 +326,18 @@ function O(e, t, n, r) {
|
|
|
372
326
|
}
|
|
373
327
|
i(t, n, r);
|
|
374
328
|
}
|
|
375
|
-
var
|
|
329
|
+
var O = /*#__PURE__*/ function() {
|
|
376
330
|
function e(t) {
|
|
377
331
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
378
|
-
|
|
332
|
+
ie(this, e), this.backends = [], this.type = "backend", this.allOptions = r, this.init(t, n);
|
|
379
333
|
}
|
|
380
|
-
return
|
|
334
|
+
return se(e, [
|
|
381
335
|
{
|
|
382
336
|
key: "init",
|
|
383
337
|
value: function(e) {
|
|
384
338
|
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
385
|
-
this.services = e, this.options =
|
|
386
|
-
t.backends[i] = t.backends[i] ||
|
|
339
|
+
this.services = e, this.options = E(n, this.options || {}, de()), this.allOptions = r, this.options.backends && this.options.backends.forEach(function(n, i) {
|
|
340
|
+
t.backends[i] = t.backends[i] || ue(n), t.backends[i].init(e, t.options.backendOptions && t.options.backendOptions[i] || {}, r);
|
|
387
341
|
}), this.services && this.options.reloadInterval && setInterval(function() {
|
|
388
342
|
return t.reload();
|
|
389
343
|
}, this.options.reloadInterval);
|
|
@@ -395,12 +349,12 @@ var k = /*#__PURE__*/ function() {
|
|
|
395
349
|
var r = this, i = this.backends.length, a = function a(s) {
|
|
396
350
|
if (s >= i) return n(Error("non of the backend loaded data", !0));
|
|
397
351
|
var c = s === i - 1, l = r.options.handleEmptyResourcesAsFailed && !c ? 0 : -1, u = r.backends[s];
|
|
398
|
-
u.read ?
|
|
352
|
+
u.read ? D(u, e, t, function(i, c, d) {
|
|
399
353
|
if (!i && c && Object.keys(c).length > l) {
|
|
400
354
|
if (n(null, c, s), o(s - 1, c), u.save && r.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(r.options.cacheHitMode) > -1) {
|
|
401
355
|
if (d && r.options.refreshExpirationTime && d + r.options.refreshExpirationTime > Date.now()) return;
|
|
402
356
|
var f = r.backends[s + 1];
|
|
403
|
-
f && f.read &&
|
|
357
|
+
f && f.read && D(f, e, t, function(n, i) {
|
|
404
358
|
n || i && (Object.keys(i).length <= l || (o(s, i), r.options.cacheHitMode === "refreshAndUpdateStore" && r.services && r.services.resourceStore && r.services.resourceStore.addResourceBundle(e, t, i)));
|
|
405
359
|
});
|
|
406
360
|
}
|
|
@@ -462,31 +416,31 @@ var k = /*#__PURE__*/ function() {
|
|
|
462
416
|
}
|
|
463
417
|
]), e;
|
|
464
418
|
}();
|
|
465
|
-
|
|
419
|
+
O.type = "backend";
|
|
466
420
|
//#endregion
|
|
467
421
|
//#region ../../node_modules/i18next-http-backend/esm/utils.js
|
|
468
|
-
function
|
|
422
|
+
function k(e) {
|
|
469
423
|
"@babel/helpers - typeof";
|
|
470
|
-
return
|
|
424
|
+
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
471
425
|
return typeof e;
|
|
472
426
|
} : function(e) {
|
|
473
427
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
474
|
-
},
|
|
428
|
+
}, k(e);
|
|
475
429
|
}
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
function
|
|
479
|
-
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" :
|
|
430
|
+
var A = [];
|
|
431
|
+
A.forEach, A.slice;
|
|
432
|
+
function j() {
|
|
433
|
+
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : k(XMLHttpRequest)) === "object";
|
|
480
434
|
}
|
|
481
|
-
function
|
|
435
|
+
function fe(e) {
|
|
482
436
|
return !!e && typeof e.then == "function";
|
|
483
437
|
}
|
|
484
|
-
function
|
|
485
|
-
return
|
|
438
|
+
function pe(e) {
|
|
439
|
+
return fe(e) ? e : Promise.resolve(e);
|
|
486
440
|
}
|
|
487
441
|
//#endregion
|
|
488
442
|
//#region ../../node_modules/i18next-http-backend/esm/request.js
|
|
489
|
-
function
|
|
443
|
+
function M(e, t) {
|
|
490
444
|
var n = Object.keys(e);
|
|
491
445
|
if (Object.getOwnPropertySymbols) {
|
|
492
446
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -496,30 +450,30 @@ function P(e, t) {
|
|
|
496
450
|
}
|
|
497
451
|
return n;
|
|
498
452
|
}
|
|
499
|
-
function
|
|
453
|
+
function N(e) {
|
|
500
454
|
for (var t = 1; t < arguments.length; t++) {
|
|
501
455
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
502
|
-
t % 2 ?
|
|
503
|
-
|
|
504
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
456
|
+
t % 2 ? M(Object(n), !0).forEach(function(t) {
|
|
457
|
+
P(e, t, n[t]);
|
|
458
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M(Object(n)).forEach(function(t) {
|
|
505
459
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
506
460
|
});
|
|
507
461
|
}
|
|
508
462
|
return e;
|
|
509
463
|
}
|
|
510
|
-
function
|
|
511
|
-
return (t =
|
|
464
|
+
function P(e, t, n) {
|
|
465
|
+
return (t = F(t)) in e ? Object.defineProperty(e, t, {
|
|
512
466
|
value: n,
|
|
513
467
|
enumerable: !0,
|
|
514
468
|
configurable: !0,
|
|
515
469
|
writable: !0
|
|
516
470
|
}) : e[t] = n, e;
|
|
517
471
|
}
|
|
518
|
-
function
|
|
519
|
-
var t =
|
|
472
|
+
function F(e) {
|
|
473
|
+
var t = I(e, "string");
|
|
520
474
|
return L(t) == "symbol" ? t : t + "";
|
|
521
475
|
}
|
|
522
|
-
function
|
|
476
|
+
function I(e, t) {
|
|
523
477
|
if (L(e) != "object" || !e) return e;
|
|
524
478
|
var n = e[Symbol.toPrimitive];
|
|
525
479
|
if (n !== void 0) {
|
|
@@ -540,7 +494,7 @@ function L(e) {
|
|
|
540
494
|
var R = typeof fetch == "function" ? fetch : void 0;
|
|
541
495
|
typeof global < "u" && global.fetch ? R = global.fetch : typeof window < "u" && window.fetch && (R = window.fetch);
|
|
542
496
|
var z;
|
|
543
|
-
|
|
497
|
+
j() && (typeof global < "u" && global.XMLHttpRequest ? z = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (z = window.XMLHttpRequest));
|
|
544
498
|
var B;
|
|
545
499
|
if (typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? B = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (B = window.ActiveXObject)), typeof R != "function" && (R = void 0), !R && !z && !B) try {
|
|
546
500
|
import("./node-ponyfill-ByScaio2.js").then((e) => /* @__PURE__ */ n(e.default, 1)).then(function(e) {
|
|
@@ -573,11 +527,11 @@ var V = function(e, t) {
|
|
|
573
527
|
}
|
|
574
528
|
}
|
|
575
529
|
typeof fetch == "function" ? fetch(e, t).then(i).catch(n) : R(e, t).then(i).catch(n);
|
|
576
|
-
}, U = !1,
|
|
530
|
+
}, U = !1, me = function(e, t, n, r) {
|
|
577
531
|
e.queryStringParams && (t = V(t, e.queryStringParams));
|
|
578
|
-
var i =
|
|
532
|
+
var i = N({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
579
533
|
typeof window > "u" && typeof global < "u" && global.process !== void 0 && global.process.versions && global.process.versions.node && (i["User-Agent"] = `i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`), n && (i["Content-Type"] = "application/json");
|
|
580
|
-
var a = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, o =
|
|
534
|
+
var a = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, o = N({
|
|
581
535
|
method: n ? "POST" : "GET",
|
|
582
536
|
body: n ? e.stringify(n) : void 0,
|
|
583
537
|
headers: i
|
|
@@ -594,7 +548,7 @@ var V = function(e, t) {
|
|
|
594
548
|
r(e);
|
|
595
549
|
}
|
|
596
550
|
}
|
|
597
|
-
},
|
|
551
|
+
}, he = function(e, t, n, r) {
|
|
598
552
|
n && L(n) === "object" && (n = V("", n).slice(1)), e.queryStringParams && (t = V(t, e.queryStringParams));
|
|
599
553
|
try {
|
|
600
554
|
var i = z ? new z() : new B("MSXML2.XMLHTTP.3.0");
|
|
@@ -610,9 +564,9 @@ var V = function(e, t) {
|
|
|
610
564
|
} catch (e) {
|
|
611
565
|
console && console.log(e);
|
|
612
566
|
}
|
|
613
|
-
},
|
|
614
|
-
if (typeof n == "function" && (r = n, n = void 0), r ||= function() {}, R && t.indexOf("file:") !== 0) return
|
|
615
|
-
if (
|
|
567
|
+
}, ge = function(e, t, n, r) {
|
|
568
|
+
if (typeof n == "function" && (r = n, n = void 0), r ||= function() {}, R && t.indexOf("file:") !== 0) return me(e, t, n, r);
|
|
569
|
+
if (j() || typeof ActiveXObject == "function") return he(e, t, n, r);
|
|
616
570
|
r(/* @__PURE__ */ Error("No fetch and no xhr implementation found!"));
|
|
617
571
|
};
|
|
618
572
|
//#endregion
|
|
@@ -646,7 +600,7 @@ function K(e) {
|
|
|
646
600
|
}
|
|
647
601
|
return e;
|
|
648
602
|
}
|
|
649
|
-
function
|
|
603
|
+
function _e(e, t) {
|
|
650
604
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
651
605
|
}
|
|
652
606
|
function q(e, t) {
|
|
@@ -655,7 +609,7 @@ function q(e, t) {
|
|
|
655
609
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Y(r.key), r);
|
|
656
610
|
}
|
|
657
611
|
}
|
|
658
|
-
function
|
|
612
|
+
function ve(e, t, n) {
|
|
659
613
|
return t && q(e.prototype, t), n && q(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
660
614
|
}
|
|
661
615
|
function J(e, t, n) {
|
|
@@ -667,10 +621,10 @@ function J(e, t, n) {
|
|
|
667
621
|
}) : e[t] = n, e;
|
|
668
622
|
}
|
|
669
623
|
function Y(e) {
|
|
670
|
-
var t =
|
|
624
|
+
var t = ye(e, "string");
|
|
671
625
|
return W(t) == "symbol" ? t : t + "";
|
|
672
626
|
}
|
|
673
|
-
function
|
|
627
|
+
function ye(e, t) {
|
|
674
628
|
if (W(e) != "object" || !e) return e;
|
|
675
629
|
var n = e[Symbol.toPrimitive];
|
|
676
630
|
if (n !== void 0) {
|
|
@@ -680,7 +634,7 @@ function Te(e, t) {
|
|
|
680
634
|
}
|
|
681
635
|
return (t === "string" ? String : Number)(e);
|
|
682
636
|
}
|
|
683
|
-
var
|
|
637
|
+
var be = function() {
|
|
684
638
|
return {
|
|
685
639
|
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
686
640
|
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
@@ -692,7 +646,7 @@ var Ee = function() {
|
|
|
692
646
|
return J({}, t, n || "");
|
|
693
647
|
},
|
|
694
648
|
parseLoadPayload: function(e, t) {},
|
|
695
|
-
request:
|
|
649
|
+
request: ge,
|
|
696
650
|
reloadInterval: typeof window < "u" ? !1 : 3600 * 1e3,
|
|
697
651
|
customHeaders: {},
|
|
698
652
|
queryStringParams: {},
|
|
@@ -708,14 +662,14 @@ var Ee = function() {
|
|
|
708
662
|
}, X = function() {
|
|
709
663
|
function e(t) {
|
|
710
664
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
711
|
-
|
|
665
|
+
_e(this, e), this.services = t, this.options = n, this.allOptions = r, this.type = "backend", this.init(t, n, r);
|
|
712
666
|
}
|
|
713
|
-
return
|
|
667
|
+
return ve(e, [
|
|
714
668
|
{
|
|
715
669
|
key: "init",
|
|
716
670
|
value: function(e) {
|
|
717
671
|
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
718
|
-
if (this.services = e, this.options = K(K(K({},
|
|
672
|
+
if (this.services = e, this.options = K(K(K({}, be()), this.options || {}), n), this.allOptions = r, this.services && this.options.reloadInterval) {
|
|
719
673
|
var i = setInterval(function() {
|
|
720
674
|
return t.reload();
|
|
721
675
|
}, this.options.reloadInterval);
|
|
@@ -739,7 +693,7 @@ var Ee = function() {
|
|
|
739
693
|
key: "_readAny",
|
|
740
694
|
value: function(e, t, n, r, i) {
|
|
741
695
|
var a = this, o = this.options.loadPath;
|
|
742
|
-
typeof this.options.loadPath == "function" && (o = this.options.loadPath(e, n)), o =
|
|
696
|
+
typeof this.options.loadPath == "function" && (o = this.options.loadPath(e, n)), o = pe(o), o.then(function(o) {
|
|
743
697
|
if (!o) return i(null, {});
|
|
744
698
|
var s = a.services.interpolator.interpolate(o, {
|
|
745
699
|
lng: e.join("+"),
|
|
@@ -827,13 +781,13 @@ var Ee = function() {
|
|
|
827
781
|
X.type = "backend";
|
|
828
782
|
//#endregion
|
|
829
783
|
//#region ../../node_modules/i18next-resources-to-backend/dist/esm/index.js
|
|
830
|
-
var
|
|
784
|
+
var xe = [
|
|
831
785
|
"__proto__",
|
|
832
786
|
"constructor",
|
|
833
787
|
"prototype"
|
|
834
788
|
], Z = function(e, t) {
|
|
835
|
-
return !(typeof e != "string" || e.length > 128 ||
|
|
836
|
-
},
|
|
789
|
+
return !(typeof e != "string" || e.length > 128 || xe.indexOf(e) > -1 || e.indexOf("..") > -1 || e.indexOf("\\") > -1 || !t && e.indexOf("/") > -1 || /[\x00-\x1F\x7F]/.test(e));
|
|
790
|
+
}, Se = function(e) {
|
|
837
791
|
return {
|
|
838
792
|
type: "backend",
|
|
839
793
|
init: function(e, t, n) {},
|
|
@@ -857,25 +811,22 @@ var De = [
|
|
|
857
811
|
r(null, e && e[t] && e[t][n]);
|
|
858
812
|
}
|
|
859
813
|
};
|
|
860
|
-
},
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
caches: ["localStorage", "cookie"]
|
|
870
|
-
}
|
|
871
|
-
}, Q = (e, t) => {
|
|
814
|
+
}, Ce = { detection: {
|
|
815
|
+
order: [
|
|
816
|
+
"navigator",
|
|
817
|
+
"htmlTag",
|
|
818
|
+
"path",
|
|
819
|
+
"subdomain"
|
|
820
|
+
],
|
|
821
|
+
caches: ["localStorage", "cookie"]
|
|
822
|
+
} }, Q = (e, t) => {
|
|
872
823
|
let n = import.meta.url.split("/").pop();
|
|
873
824
|
return `${import.meta.url.replace(`/${n}`, "")}/locales/${e}/${t}.json`;
|
|
874
825
|
};
|
|
875
826
|
function $(n, r) {
|
|
876
827
|
if (t.isInitialized) n?.(t);
|
|
877
828
|
else {
|
|
878
|
-
t.use(
|
|
829
|
+
t.use(O).use(new S(null, {
|
|
879
830
|
order: [
|
|
880
831
|
"cookie",
|
|
881
832
|
"localStorage",
|
|
@@ -885,14 +836,14 @@ function $(n, r) {
|
|
|
885
836
|
lookupCookie: "i18next",
|
|
886
837
|
lookupLocalStorage: "i18nextLng",
|
|
887
838
|
caches: ["localStorage", "cookie"]
|
|
888
|
-
})).
|
|
839
|
+
})).init({
|
|
889
840
|
...e,
|
|
890
841
|
...r ? { lng: r } : {},
|
|
891
842
|
backend: {
|
|
892
|
-
backends: [X,
|
|
843
|
+
backends: [X, Se((e, t) => import(Q(e, t)))],
|
|
893
844
|
backendOptions: [{ loadPath: Q("{{lng}}", "{{ns}}") }]
|
|
894
845
|
},
|
|
895
|
-
...
|
|
846
|
+
...Ce
|
|
896
847
|
});
|
|
897
848
|
let i = !1;
|
|
898
849
|
t.on("loaded", () => {
|