@emqx/shared-ui-utils 0.0.20 → 0.0.22
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/hocon.d.ts +1 -1
- package/dist/index.js +721 -653
- package/dist/index.umd.cjs +28 -28
- package/dist/tools.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62,15 +62,22 @@ const O = new RegExp(
|
|
|
62
62
|
const t = e.trim();
|
|
63
63
|
let n, s, c, l = null;
|
|
64
64
|
if (N.test(t) ? l = t.match(/(?<foreach>(.|\n)+)FROM(?<from>(.|\n)+)/) : l = t.match(withConditionSQLReg) || t.match(normalSQLReg), l) {
|
|
65
|
-
const { groups: C } = l, { foreach: A = "", select: L = "", from:
|
|
66
|
-
n = A || L.trim(), s =
|
|
65
|
+
const { groups: C } = l, { foreach: A = "", select: L = "", from: B = "", where: q = "" } = C || {};
|
|
66
|
+
n = A || L.trim(), s = B.trim(), q && (c = q.trim());
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
fieldStr: n,
|
|
70
70
|
fromStr: s,
|
|
71
71
|
whereStr: c
|
|
72
72
|
};
|
|
73
|
-
}, isContainsAIExpression = (e) => O.test(e), getBridgeKey = ({ type: e, name: t }) => `${e}:${t}`, checkNeedRequestAPI = (e) => e || e === void 0,
|
|
73
|
+
}, isContainsAIExpression = (e) => O.test(e), getBridgeKey = ({ type: e, name: t }) => `${e}:${t}`, checkNeedRequestAPI = (e) => e || e === void 0, getKeywordsFromSQL = (e) => {
|
|
74
|
+
const { fieldStr: t = "", fromStr: n = "", whereStr: s = "" } = getKeyPartsFromSQL(e);
|
|
75
|
+
return {
|
|
76
|
+
fieldStr: t,
|
|
77
|
+
fromStr: n,
|
|
78
|
+
whereStr: s
|
|
79
|
+
};
|
|
80
|
+
}, d = {
|
|
74
81
|
title: "Streaming (beta)",
|
|
75
82
|
streams: "Streams",
|
|
76
83
|
streamName: "Stream Name",
|
|
@@ -701,7 +708,26 @@ const O = new RegExp(
|
|
|
701
708
|
multipleFallbackWrong: "Flow 暂不支持编辑多层级备选动作",
|
|
702
709
|
incorrectInputOutputConnection: "请确认所有 Source 节点均正确连接到同一数据处理节点",
|
|
703
710
|
incorrectOutputNodeConnection: "请确认所有 Sink 节点均由同一数据处理节点输出",
|
|
704
|
-
incorrectDefaultNodeConnection: "请确认所有数据处理节点均按照顺序首尾相连"
|
|
711
|
+
incorrectDefaultNodeConnection: "请确认所有数据处理节点均按照顺序首尾相连",
|
|
712
|
+
input: "输入",
|
|
713
|
+
systemPromptDesc: "系统消息,用于引导 AI 模型生成符合预期的输出。例:将输入的 JSON 数据中,值为数字的 value 相加起来,并输出,只需返回输出结果。",
|
|
714
|
+
model: "模型",
|
|
715
|
+
maxTokens: "最大令牌数",
|
|
716
|
+
anthropicVersion: "Anthropic 版本",
|
|
717
|
+
apiKey: "API 密钥",
|
|
718
|
+
baseURL: "基础 URL",
|
|
719
|
+
geminiBaseUrlTips: "当前 Gemini 通过兼容 OpenAI 的接口来与之通信,请输入兼容 OpenAI 的基础 URL。",
|
|
720
|
+
aiOutputAlias: "输出结果别名",
|
|
721
|
+
aiOutputAliasDesc: "输出结果别名,用户在动作或后续处理中引用输出结果。",
|
|
722
|
+
aliasDesc: "别名如包含除字母、数字和下划线以外的字符,或以数字开头,或为 SQL 关键字时,请为别名加上双引号。",
|
|
723
|
+
connectTimeout: "连接超时",
|
|
724
|
+
recvTimeout: "接收数据超时时间",
|
|
725
|
+
checkoutTimeout: "连接池超时时间",
|
|
726
|
+
maxConn: "最大连接数",
|
|
727
|
+
maxConnectionsDesc: "最大并发连接数",
|
|
728
|
+
checkoutTimeoutDesc: "从连接池中为请求 AI 服务的请求分配的超时时间。",
|
|
729
|
+
confirm: "确认",
|
|
730
|
+
baseURLDesc: "默认值为 {url},您也可以输入其他兼容 {name} API 格式的模型基础 URL。"
|
|
705
731
|
}, P = {
|
|
706
732
|
guideSourceNodeLabel: "Source",
|
|
707
733
|
guideSourceNodeDesc: "Drag in multiple nodes to select message and event inputs",
|
|
@@ -734,7 +760,26 @@ const O = new RegExp(
|
|
|
734
760
|
multipleFallbackWrong: "Flow does not support editing multi-level fallback actions",
|
|
735
761
|
incorrectInputOutputConnection: "Please confirm that all source nodes are correctly connected to the same data processing node",
|
|
736
762
|
incorrectOutputNodeConnection: "Please confirm that all sink nodes are output from the same data processing node",
|
|
737
|
-
incorrectDefaultNodeConnection: "Please confirm that all data processing nodes are connected in sequence from start to end"
|
|
763
|
+
incorrectDefaultNodeConnection: "Please confirm that all data processing nodes are connected in sequence from start to end",
|
|
764
|
+
input: "Input",
|
|
765
|
+
systemPromptDesc: "System message, used to guide AI models to generate outputs that meet expectations. Example: Add up the values of numeric keys in the input JSON data and output the result, only return the output result.",
|
|
766
|
+
model: "Model",
|
|
767
|
+
maxTokens: "Max Tokens",
|
|
768
|
+
anthropicVersion: "Anthropic Version",
|
|
769
|
+
apiKey: "API Key",
|
|
770
|
+
baseURL: "Base URL",
|
|
771
|
+
geminiBaseUrlTips: "This Gemini connection uses an OpenAI-compatible API. Please enter a compatible Base URL.",
|
|
772
|
+
aiOutputAlias: "Output Result Alias",
|
|
773
|
+
aiOutputAliasDesc: "Output result alias, used to reference output results in actions or subsequent processing.",
|
|
774
|
+
aliasDesc: "If the alias contains characters other than letters, numbers, and underscores, or starts with a number, or is a SQL keyword, please add double quotes to the alias.",
|
|
775
|
+
connectTimeout: "Connect Timeout",
|
|
776
|
+
recvTimeout: "Receive Timeout",
|
|
777
|
+
checkoutTimeout: "Checkout Timeout",
|
|
778
|
+
maxConn: "Max Connections",
|
|
779
|
+
maxConnectionsDesc: "Maximum number of simultaneous connections to the AI provider.",
|
|
780
|
+
checkoutTimeoutDesc: "Timeout for the checkout from connection pool for a request to the AI provider.",
|
|
781
|
+
confirm: "Confirm",
|
|
782
|
+
baseURLDesc: "The default value is {url}, or you can use any base URL that works with the {name} API format."
|
|
738
783
|
}, x = {
|
|
739
784
|
guideSourceNodeLabel: "ソース",
|
|
740
785
|
guideSourceNodeDesc: "複数のノードをドラッグしてメッセージとイベント入力を選択",
|
|
@@ -769,7 +814,29 @@ const O = new RegExp(
|
|
|
769
814
|
multipleFallbackWrong: "フローは多段階のフォールバックアクションの編集をサポートしていません",
|
|
770
815
|
incorrectInputOutputConnection: "すべてのソースノードが同じデータ処理ノードに正しく接続されていることを確認してください",
|
|
771
816
|
incorrectOutputNodeConnection: "すべてのシンクノードが同じデータ処理ノードから出力されていることを確認してください",
|
|
772
|
-
incorrectDefaultNodeConnection: "すべてのデータ処理ノードが開始から終了まで順に接続されていることを確認してください"
|
|
817
|
+
incorrectDefaultNodeConnection: "すべてのデータ処理ノードが開始から終了まで順に接続されていることを確認してください",
|
|
818
|
+
input: "入力",
|
|
819
|
+
systemPromptDesc: "システムメッセージ。AI モデルに期待どおりの出力を生成させるために使用します。例:入力 JSON データの数値キーの値を合計し、その結果のみを返す。",
|
|
820
|
+
model: "モデル",
|
|
821
|
+
maxTokens: "最大トークン数",
|
|
822
|
+
anthropicVersion: "Anthropic バージョン",
|
|
823
|
+
apiKey: "API キー",
|
|
824
|
+
baseURL: "ベース URL",
|
|
825
|
+
// TODO: ja
|
|
826
|
+
geminiBaseUrlTips: "This Gemini connection uses an OpenAI-compatible API. Please enter a compatible Base URL.",
|
|
827
|
+
aiOutputAlias: "出力結果のエイリアス",
|
|
828
|
+
aiOutputAliasDesc: "出力結果のエイリアス。アクションや後続処理で出力結果を参照するために使用します",
|
|
829
|
+
aliasDesc: "エイリアスに英数字とアンダースコア以外の文字が含まれる場合、数字で始まる場合、または SQL キーワードの場合は、エイリアスを二重引用符で囲んでください",
|
|
830
|
+
// S - TODO: ja
|
|
831
|
+
connectTimeout: "Connect Timeout",
|
|
832
|
+
recvTimeout: "Receive Timeout",
|
|
833
|
+
checkoutTimeout: "Checkout Timeout",
|
|
834
|
+
maxConn: "Max Connections",
|
|
835
|
+
maxConnectionsDesc: "Maximum number of simultaneous connections to the AI provider.",
|
|
836
|
+
checkoutTimeoutDesc: "Timeout for the checkout from connection pool for a request to the AI provider.",
|
|
837
|
+
// E - TODO: ja
|
|
838
|
+
confirm: "確認",
|
|
839
|
+
baseURLDesc: "デフォルト値は {url} です。{name} API 形式と互換性のある任意のベース URL を使用することもできます。"
|
|
773
840
|
};
|
|
774
841
|
/*!
|
|
775
842
|
* shared v9.10.2
|
|
@@ -822,16 +889,16 @@ function generateCodeFrame(e, t = 0, n = e.length) {
|
|
|
822
889
|
continue;
|
|
823
890
|
const L = A + 1;
|
|
824
891
|
l.push(`${L}${" ".repeat(3 - String(L).length)}| ${s[A]}`);
|
|
825
|
-
const
|
|
892
|
+
const B = s[A].length;
|
|
826
893
|
if (A === C) {
|
|
827
|
-
const
|
|
828
|
-
l.push(" | " + " ".repeat(
|
|
894
|
+
const q = t - (c - B) + 1, U = Math.max(1, n > c ? B - q : n - t);
|
|
895
|
+
l.push(" | " + " ".repeat(q) + "^".repeat(U));
|
|
829
896
|
} else if (A > C) {
|
|
830
897
|
if (n > c) {
|
|
831
|
-
const
|
|
832
|
-
l.push(" | " + "^".repeat(
|
|
898
|
+
const q = Math.max(Math.min(n - c, B), 1);
|
|
899
|
+
l.push(" | " + "^".repeat(q));
|
|
833
900
|
}
|
|
834
|
-
c +=
|
|
901
|
+
c += B + 1;
|
|
835
902
|
}
|
|
836
903
|
}
|
|
837
904
|
break;
|
|
@@ -958,9 +1025,9 @@ const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TA
|
|
|
958
1025
|
function createScanner(e) {
|
|
959
1026
|
const t = e;
|
|
960
1027
|
let n = 0, s = 1, c = 1, l = 0;
|
|
961
|
-
const C = (ie) => t[ie] === CHAR_CR && t[ie + 1] === CHAR_LF, A = (ie) => t[ie] === CHAR_LF, L = (ie) => t[ie] === CHAR_PS,
|
|
1028
|
+
const C = (ie) => t[ie] === CHAR_CR && t[ie + 1] === CHAR_LF, A = (ie) => t[ie] === CHAR_LF, L = (ie) => t[ie] === CHAR_PS, B = (ie) => t[ie] === CHAR_LS, q = (ie) => C(ie) || A(ie) || L(ie) || B(ie), U = () => n, V = () => s, J = () => c, ce = () => l, se = (ie) => C(ie) || L(ie) || B(ie) ? CHAR_LF : t[ie], re = () => se(n), Y = () => se(n + l);
|
|
962
1029
|
function Q() {
|
|
963
|
-
return l = 0,
|
|
1030
|
+
return l = 0, q(n) && (s++, c = 0), C(n) && n++, n++, c++, t[n];
|
|
964
1031
|
}
|
|
965
1032
|
function ae() {
|
|
966
1033
|
return C(n + l) && l++, l++, t[n + l];
|
|
@@ -984,7 +1051,7 @@ function createScanner(e) {
|
|
|
984
1051
|
peekOffset: ce,
|
|
985
1052
|
charAt: se,
|
|
986
1053
|
currentChar: re,
|
|
987
|
-
currentPeek:
|
|
1054
|
+
currentPeek: Y,
|
|
988
1055
|
next: Q,
|
|
989
1056
|
peek: ae,
|
|
990
1057
|
reset: te,
|
|
@@ -1006,15 +1073,15 @@ function createTokenizer(e, t = {}) {
|
|
|
1006
1073
|
braceNest: 0,
|
|
1007
1074
|
inLinked: !1,
|
|
1008
1075
|
text: ""
|
|
1009
|
-
},
|
|
1076
|
+
}, B = () => L, { onError: q } = t;
|
|
1010
1077
|
function U(R, I, F, ...H) {
|
|
1011
|
-
const j =
|
|
1012
|
-
if (I.column += F, I.offset += F,
|
|
1078
|
+
const j = B();
|
|
1079
|
+
if (I.column += F, I.offset += F, q) {
|
|
1013
1080
|
const K = n ? createLocation(j.startLoc, I) : null, Z = createCompileError(R, K, {
|
|
1014
1081
|
domain: ERROR_DOMAIN$3,
|
|
1015
1082
|
args: H
|
|
1016
1083
|
});
|
|
1017
|
-
|
|
1084
|
+
q(Z);
|
|
1018
1085
|
}
|
|
1019
1086
|
}
|
|
1020
1087
|
function V(R, I, F) {
|
|
@@ -1040,7 +1107,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1040
1107
|
const I = se(R);
|
|
1041
1108
|
return R.skipToPeek(), I;
|
|
1042
1109
|
}
|
|
1043
|
-
function
|
|
1110
|
+
function Y(R) {
|
|
1044
1111
|
if (R === EOF)
|
|
1045
1112
|
return !1;
|
|
1046
1113
|
const I = R.charCodeAt(0);
|
|
@@ -1059,7 +1126,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1059
1126
|
if (F !== 2)
|
|
1060
1127
|
return !1;
|
|
1061
1128
|
se(R);
|
|
1062
|
-
const H =
|
|
1129
|
+
const H = Y(R.currentPeek());
|
|
1063
1130
|
return R.resetPeek(), H;
|
|
1064
1131
|
}
|
|
1065
1132
|
function te(R, I) {
|
|
@@ -1091,7 +1158,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1091
1158
|
if (F !== 9)
|
|
1092
1159
|
return !1;
|
|
1093
1160
|
se(R);
|
|
1094
|
-
const H =
|
|
1161
|
+
const H = Y(R.currentPeek());
|
|
1095
1162
|
return R.resetPeek(), H;
|
|
1096
1163
|
}
|
|
1097
1164
|
function G(R, I) {
|
|
@@ -1108,7 +1175,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1108
1175
|
return !1;
|
|
1109
1176
|
const H = () => {
|
|
1110
1177
|
const K = R.currentPeek();
|
|
1111
|
-
return K === "{" ?
|
|
1178
|
+
return K === "{" ? Y(R.peek()) : K === "@" || K === "%" || K === "|" || K === ":" || K === "." || K === CHAR_SP || !K ? !1 : K === CHAR_LF ? (R.peek(), H()) : Y(K);
|
|
1112
1179
|
}, j = H();
|
|
1113
1180
|
return R.resetPeek(), j;
|
|
1114
1181
|
}
|
|
@@ -1170,7 +1237,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1170
1237
|
const I = R.currentChar();
|
|
1171
1238
|
return I !== "%" && U(CompileErrorCodes.EXPECTED_TOKEN, l(), 0, I), R.next(), "%";
|
|
1172
1239
|
}
|
|
1173
|
-
function
|
|
1240
|
+
function Te(R) {
|
|
1174
1241
|
let I = "";
|
|
1175
1242
|
for (; ; ) {
|
|
1176
1243
|
const F = R.currentChar();
|
|
@@ -1201,7 +1268,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1201
1268
|
F += I;
|
|
1202
1269
|
return R.currentChar() === EOF && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), F;
|
|
1203
1270
|
}
|
|
1204
|
-
function
|
|
1271
|
+
function ke(R) {
|
|
1205
1272
|
re(R);
|
|
1206
1273
|
let I = "";
|
|
1207
1274
|
return R.currentChar() === "-" ? (R.next(), I += `-${Ee(R)}`) : I += Ee(R), R.currentChar() === EOF && U(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, l(), 0), I;
|
|
@@ -1250,7 +1317,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1250
1317
|
F += I;
|
|
1251
1318
|
return F;
|
|
1252
1319
|
}
|
|
1253
|
-
function
|
|
1320
|
+
function Me(R) {
|
|
1254
1321
|
let I = "", F = "";
|
|
1255
1322
|
for (; I = ve(R); )
|
|
1256
1323
|
F += I;
|
|
@@ -1300,7 +1367,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1300
1367
|
if (j = ae(R, I))
|
|
1301
1368
|
return F = V(I, 5, Fe(R)), re(R), F;
|
|
1302
1369
|
if (K = te(R, I))
|
|
1303
|
-
return F = V(I, 6,
|
|
1370
|
+
return F = V(I, 6, ke(R)), re(R), F;
|
|
1304
1371
|
if (Z = oe(R, I))
|
|
1305
1372
|
return F = V(I, 7, he(R)), re(R), F;
|
|
1306
1373
|
if (!j && !K && !Z)
|
|
@@ -1337,7 +1404,7 @@ function createTokenizer(e, t = {}) {
|
|
|
1337
1404
|
/* TokenChars.LinkedDelimiter */
|
|
1338
1405
|
);
|
|
1339
1406
|
default:
|
|
1340
|
-
return X(R) ? (H = V(I, 1, Ie(R)), I.braceNest = 0, I.inLinked = !1, H) : ne(R, I) || G(R, I) ? (re(R), D(R, I)) : ie(R, I) ? (re(R), V(I, 12,
|
|
1407
|
+
return X(R) ? (H = V(I, 1, Ie(R)), I.braceNest = 0, I.inLinked = !1, H) : ne(R, I) || G(R, I) ? (re(R), D(R, I)) : ie(R, I) ? (re(R), V(I, 12, Me(R))) : $(R, I) ? (re(R), j === "{" ? be(R, I) || H : V(I, 11, De(R))) : (F === 8 && U(CompileErrorCodes.INVALID_LINKED_FORMAT, l(), 0), I.braceNest = 0, I.inLinked = !1, M(R, I));
|
|
1341
1408
|
}
|
|
1342
1409
|
}
|
|
1343
1410
|
function M(R, I) {
|
|
@@ -1366,15 +1433,15 @@ function createTokenizer(e, t = {}) {
|
|
|
1366
1433
|
return F = V(I, 1, Ie(R)), I.braceNest = 0, I.inLinked = !1, F;
|
|
1367
1434
|
const { isModulo: j, hasSpace: K } = pe(R);
|
|
1368
1435
|
if (j)
|
|
1369
|
-
return K ? V(I, 0,
|
|
1436
|
+
return K ? V(I, 0, Te(R)) : V(I, 4, Re(R));
|
|
1370
1437
|
if (de(R))
|
|
1371
|
-
return V(I, 0,
|
|
1438
|
+
return V(I, 0, Te(R));
|
|
1372
1439
|
break;
|
|
1373
1440
|
}
|
|
1374
1441
|
}
|
|
1375
1442
|
return F;
|
|
1376
1443
|
}
|
|
1377
|
-
function
|
|
1444
|
+
function W() {
|
|
1378
1445
|
const { currentType: R, offset: I, startLoc: F, endLoc: H } = L;
|
|
1379
1446
|
return L.lastType = R, L.lastOffset = I, L.lastStartLoc = F, L.lastEndLoc = H, L.offset = c(), L.startLoc = l(), s.currentChar() === EOF ? V(
|
|
1380
1447
|
L,
|
|
@@ -1383,10 +1450,10 @@ function createTokenizer(e, t = {}) {
|
|
|
1383
1450
|
) : M(s, L);
|
|
1384
1451
|
}
|
|
1385
1452
|
return {
|
|
1386
|
-
nextToken:
|
|
1453
|
+
nextToken: W,
|
|
1387
1454
|
currentOffset: c,
|
|
1388
1455
|
currentPosition: l,
|
|
1389
|
-
context:
|
|
1456
|
+
context: B
|
|
1390
1457
|
};
|
|
1391
1458
|
}
|
|
1392
1459
|
const ERROR_DOMAIN$2 = "parser", KNOWN_ESCAPES = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -1404,8 +1471,8 @@ function fromEscapeSequence(e, t, n) {
|
|
|
1404
1471
|
}
|
|
1405
1472
|
function createParser(e = {}) {
|
|
1406
1473
|
const t = e.location !== !1, { onError: n } = e;
|
|
1407
|
-
function s(
|
|
1408
|
-
const ne =
|
|
1474
|
+
function s(Y, Q, ae, te, ...oe) {
|
|
1475
|
+
const ne = Y.currentPosition();
|
|
1409
1476
|
if (ne.offset += te, ne.column += te, n) {
|
|
1410
1477
|
const ie = t ? createLocation(ae, ne) : null, G = createCompileError(Q, ie, {
|
|
1411
1478
|
domain: ERROR_DOMAIN$2,
|
|
@@ -1414,122 +1481,122 @@ function createParser(e = {}) {
|
|
|
1414
1481
|
n(G);
|
|
1415
1482
|
}
|
|
1416
1483
|
}
|
|
1417
|
-
function c(
|
|
1418
|
-
const te = { type:
|
|
1484
|
+
function c(Y, Q, ae) {
|
|
1485
|
+
const te = { type: Y };
|
|
1419
1486
|
return t && (te.start = Q, te.end = Q, te.loc = { start: ae, end: ae }), te;
|
|
1420
1487
|
}
|
|
1421
|
-
function l(
|
|
1422
|
-
te && (
|
|
1488
|
+
function l(Y, Q, ae, te) {
|
|
1489
|
+
te && (Y.type = te), t && (Y.end = Q, Y.loc && (Y.loc.end = ae));
|
|
1423
1490
|
}
|
|
1424
|
-
function C(
|
|
1425
|
-
const ae =
|
|
1426
|
-
return te.value = Q, l(te,
|
|
1491
|
+
function C(Y, Q) {
|
|
1492
|
+
const ae = Y.context(), te = c(3, ae.offset, ae.startLoc);
|
|
1493
|
+
return te.value = Q, l(te, Y.currentOffset(), Y.currentPosition()), te;
|
|
1427
1494
|
}
|
|
1428
|
-
function A(
|
|
1429
|
-
const ae =
|
|
1430
|
-
return ne.index = parseInt(Q, 10),
|
|
1495
|
+
function A(Y, Q) {
|
|
1496
|
+
const ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(5, te, oe);
|
|
1497
|
+
return ne.index = parseInt(Q, 10), Y.nextToken(), l(ne, Y.currentOffset(), Y.currentPosition()), ne;
|
|
1431
1498
|
}
|
|
1432
|
-
function L(
|
|
1433
|
-
const ae =
|
|
1434
|
-
return ne.key = Q,
|
|
1499
|
+
function L(Y, Q) {
|
|
1500
|
+
const ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(4, te, oe);
|
|
1501
|
+
return ne.key = Q, Y.nextToken(), l(ne, Y.currentOffset(), Y.currentPosition()), ne;
|
|
1435
1502
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const ae =
|
|
1438
|
-
return ne.value = Q.replace(KNOWN_ESCAPES, fromEscapeSequence),
|
|
1503
|
+
function B(Y, Q) {
|
|
1504
|
+
const ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(9, te, oe);
|
|
1505
|
+
return ne.value = Q.replace(KNOWN_ESCAPES, fromEscapeSequence), Y.nextToken(), l(ne, Y.currentOffset(), Y.currentPosition()), ne;
|
|
1439
1506
|
}
|
|
1440
|
-
function Y
|
|
1441
|
-
const Q =
|
|
1442
|
-
return Q.type !== 12 ? (s(
|
|
1507
|
+
function q(Y) {
|
|
1508
|
+
const Q = Y.nextToken(), ae = Y.context(), { lastOffset: te, lastStartLoc: oe } = ae, ne = c(8, te, oe);
|
|
1509
|
+
return Q.type !== 12 ? (s(Y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, ae.lastStartLoc, 0), ne.value = "", l(ne, te, oe), {
|
|
1443
1510
|
nextConsumeToken: Q,
|
|
1444
1511
|
node: ne
|
|
1445
|
-
}) : (Q.value == null && s(
|
|
1512
|
+
}) : (Q.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, getTokenCaption(Q)), ne.value = Q.value || "", l(ne, Y.currentOffset(), Y.currentPosition()), {
|
|
1446
1513
|
node: ne
|
|
1447
1514
|
});
|
|
1448
1515
|
}
|
|
1449
|
-
function U(
|
|
1450
|
-
const ae =
|
|
1451
|
-
return te.value = Q, l(te,
|
|
1516
|
+
function U(Y, Q) {
|
|
1517
|
+
const ae = Y.context(), te = c(7, ae.offset, ae.startLoc);
|
|
1518
|
+
return te.value = Q, l(te, Y.currentOffset(), Y.currentPosition()), te;
|
|
1452
1519
|
}
|
|
1453
|
-
function V(
|
|
1454
|
-
const Q =
|
|
1455
|
-
let te =
|
|
1520
|
+
function V(Y) {
|
|
1521
|
+
const Q = Y.context(), ae = c(6, Q.offset, Q.startLoc);
|
|
1522
|
+
let te = Y.nextToken();
|
|
1456
1523
|
if (te.type === 9) {
|
|
1457
|
-
const oe = Y
|
|
1458
|
-
ae.modifier = oe.node, te = oe.nextConsumeToken ||
|
|
1524
|
+
const oe = q(Y);
|
|
1525
|
+
ae.modifier = oe.node, te = oe.nextConsumeToken || Y.nextToken();
|
|
1459
1526
|
}
|
|
1460
|
-
switch (te.type !== 10 && s(
|
|
1527
|
+
switch (te.type !== 10 && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), te = Y.nextToken(), te.type === 2 && (te = Y.nextToken()), te.type) {
|
|
1461
1528
|
case 11:
|
|
1462
|
-
te.value == null && s(
|
|
1529
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = U(Y, te.value || "");
|
|
1463
1530
|
break;
|
|
1464
1531
|
case 5:
|
|
1465
|
-
te.value == null && s(
|
|
1532
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = L(Y, te.value || "");
|
|
1466
1533
|
break;
|
|
1467
1534
|
case 6:
|
|
1468
|
-
te.value == null && s(
|
|
1535
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = A(Y, te.value || "");
|
|
1469
1536
|
break;
|
|
1470
1537
|
case 7:
|
|
1471
|
-
te.value == null && s(
|
|
1538
|
+
te.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption(te)), ae.key = B(Y, te.value || "");
|
|
1472
1539
|
break;
|
|
1473
1540
|
default: {
|
|
1474
|
-
s(
|
|
1475
|
-
const oe =
|
|
1541
|
+
s(Y, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, Q.lastStartLoc, 0);
|
|
1542
|
+
const oe = Y.context(), ne = c(7, oe.offset, oe.startLoc);
|
|
1476
1543
|
return ne.value = "", l(ne, oe.offset, oe.startLoc), ae.key = ne, l(ae, oe.offset, oe.startLoc), {
|
|
1477
1544
|
nextConsumeToken: te,
|
|
1478
1545
|
node: ae
|
|
1479
1546
|
};
|
|
1480
1547
|
}
|
|
1481
1548
|
}
|
|
1482
|
-
return l(ae,
|
|
1549
|
+
return l(ae, Y.currentOffset(), Y.currentPosition()), {
|
|
1483
1550
|
node: ae
|
|
1484
1551
|
};
|
|
1485
1552
|
}
|
|
1486
|
-
function J(
|
|
1487
|
-
const Q =
|
|
1553
|
+
function J(Y) {
|
|
1554
|
+
const Q = Y.context(), ae = Q.currentType === 1 ? Y.currentOffset() : Q.offset, te = Q.currentType === 1 ? Q.endLoc : Q.startLoc, oe = c(2, ae, te);
|
|
1488
1555
|
oe.items = [];
|
|
1489
1556
|
let ne = null;
|
|
1490
1557
|
do {
|
|
1491
|
-
const $ = ne ||
|
|
1558
|
+
const $ = ne || Y.nextToken();
|
|
1492
1559
|
switch (ne = null, $.type) {
|
|
1493
1560
|
case 0:
|
|
1494
|
-
$.value == null && s(
|
|
1561
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(C(Y, $.value || ""));
|
|
1495
1562
|
break;
|
|
1496
1563
|
case 6:
|
|
1497
|
-
$.value == null && s(
|
|
1564
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(A(Y, $.value || ""));
|
|
1498
1565
|
break;
|
|
1499
1566
|
case 5:
|
|
1500
|
-
$.value == null && s(
|
|
1567
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(L(Y, $.value || ""));
|
|
1501
1568
|
break;
|
|
1502
1569
|
case 7:
|
|
1503
|
-
$.value == null && s(
|
|
1570
|
+
$.value == null && s(Y, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, Q.lastStartLoc, 0, getTokenCaption($)), oe.items.push(B(Y, $.value || ""));
|
|
1504
1571
|
break;
|
|
1505
1572
|
case 8: {
|
|
1506
|
-
const X = V(
|
|
1573
|
+
const X = V(Y);
|
|
1507
1574
|
oe.items.push(X.node), ne = X.nextConsumeToken || null;
|
|
1508
1575
|
break;
|
|
1509
1576
|
}
|
|
1510
1577
|
}
|
|
1511
1578
|
} while (Q.currentType !== 14 && Q.currentType !== 1);
|
|
1512
|
-
const ie = Q.currentType === 1 ? Q.lastOffset :
|
|
1579
|
+
const ie = Q.currentType === 1 ? Q.lastOffset : Y.currentOffset(), G = Q.currentType === 1 ? Q.lastEndLoc : Y.currentPosition();
|
|
1513
1580
|
return l(oe, ie, G), oe;
|
|
1514
1581
|
}
|
|
1515
|
-
function ce(
|
|
1516
|
-
const oe =
|
|
1582
|
+
function ce(Y, Q, ae, te) {
|
|
1583
|
+
const oe = Y.context();
|
|
1517
1584
|
let ne = te.items.length === 0;
|
|
1518
1585
|
const ie = c(1, Q, ae);
|
|
1519
1586
|
ie.cases = [], ie.cases.push(te);
|
|
1520
1587
|
do {
|
|
1521
|
-
const G = J(
|
|
1588
|
+
const G = J(Y);
|
|
1522
1589
|
ne || (ne = G.items.length === 0), ie.cases.push(G);
|
|
1523
1590
|
} while (oe.currentType !== 14);
|
|
1524
|
-
return ne && s(
|
|
1591
|
+
return ne && s(Y, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, ae, 0), l(ie, Y.currentOffset(), Y.currentPosition()), ie;
|
|
1525
1592
|
}
|
|
1526
|
-
function se(
|
|
1527
|
-
const Q =
|
|
1528
|
-
return Q.currentType === 14 ? oe : ce(
|
|
1593
|
+
function se(Y) {
|
|
1594
|
+
const Q = Y.context(), { offset: ae, startLoc: te } = Q, oe = J(Y);
|
|
1595
|
+
return Q.currentType === 14 ? oe : ce(Y, ae, te, oe);
|
|
1529
1596
|
}
|
|
1530
|
-
function re(
|
|
1531
|
-
const Q = createTokenizer(
|
|
1532
|
-
return t && te.loc && (te.loc.source =
|
|
1597
|
+
function re(Y) {
|
|
1598
|
+
const Q = createTokenizer(Y, assign({}, e)), ae = Q.context(), te = c(0, ae.offset, ae.startLoc);
|
|
1599
|
+
return t && te.loc && (te.loc.source = Y), te.body = se(Q), e.onCacheKey && (te.cacheKey = e.onCacheKey(Y)), ae.currentType !== 14 && s(Q, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, ae.lastStartLoc, 0, Y[ae.offset] || ""), l(te, Q.currentOffset(), Q.currentPosition()), te;
|
|
1533
1600
|
}
|
|
1534
1601
|
return { parse: re };
|
|
1535
1602
|
}
|
|
@@ -1693,27 +1760,27 @@ function createCodeGenerator(e, t) {
|
|
|
1693
1760
|
};
|
|
1694
1761
|
C && e.loc && (A.source = e.loc.source);
|
|
1695
1762
|
const L = () => A;
|
|
1696
|
-
function
|
|
1763
|
+
function B(re, Y) {
|
|
1697
1764
|
A.code += re;
|
|
1698
1765
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const Q =
|
|
1701
|
-
|
|
1766
|
+
function q(re, Y = !0) {
|
|
1767
|
+
const Q = Y ? c : "";
|
|
1768
|
+
B(l ? Q + " ".repeat(re) : Q);
|
|
1702
1769
|
}
|
|
1703
1770
|
function U(re = !0) {
|
|
1704
|
-
const
|
|
1705
|
-
re && Y
|
|
1771
|
+
const Y = ++A.indentLevel;
|
|
1772
|
+
re && q(Y);
|
|
1706
1773
|
}
|
|
1707
1774
|
function V(re = !0) {
|
|
1708
|
-
const
|
|
1709
|
-
re && Y
|
|
1775
|
+
const Y = --A.indentLevel;
|
|
1776
|
+
re && q(Y);
|
|
1710
1777
|
}
|
|
1711
1778
|
function J() {
|
|
1712
|
-
|
|
1779
|
+
q(A.indentLevel);
|
|
1713
1780
|
}
|
|
1714
1781
|
return {
|
|
1715
1782
|
context: L,
|
|
1716
|
-
push:
|
|
1783
|
+
push: B,
|
|
1717
1784
|
indent: U,
|
|
1718
1785
|
deindent: V,
|
|
1719
1786
|
newline: J,
|
|
@@ -1817,11 +1884,11 @@ const generate = (e, t = {}) => {
|
|
|
1817
1884
|
needIndent: C
|
|
1818
1885
|
});
|
|
1819
1886
|
L.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), L.indent(C), A.length > 0 && (L.push(`const { ${join(A.map((U) => `${U}: _${U}`), ", ")} } = ctx`), L.newline()), L.push("return "), generateNode(L, e), L.deindent(C), L.push("}"), delete e.helpers;
|
|
1820
|
-
const { code:
|
|
1887
|
+
const { code: B, map: q } = L.context();
|
|
1821
1888
|
return {
|
|
1822
1889
|
ast: e,
|
|
1823
|
-
code:
|
|
1824
|
-
map:
|
|
1890
|
+
code: B,
|
|
1891
|
+
map: q ? q.toJSON() : void 0
|
|
1825
1892
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1826
1893
|
};
|
|
1827
1894
|
};
|
|
@@ -2037,7 +2104,7 @@ function formatSubPath(e) {
|
|
|
2037
2104
|
}
|
|
2038
2105
|
function parse$1(e) {
|
|
2039
2106
|
const t = [];
|
|
2040
|
-
let n = -1, s = 0, c = 0, l, C, A, L,
|
|
2107
|
+
let n = -1, s = 0, c = 0, l, C, A, L, B, q, U;
|
|
2041
2108
|
const V = [];
|
|
2042
2109
|
V[
|
|
2043
2110
|
0
|
|
@@ -2085,7 +2152,7 @@ function parse$1(e) {
|
|
|
2085
2152
|
}
|
|
2086
2153
|
for (; s !== null; )
|
|
2087
2154
|
if (n++, l = e[n], !(l === "\\" && J())) {
|
|
2088
|
-
if (L = getPathCharType(l), U = pathStateMachine[s],
|
|
2155
|
+
if (L = getPathCharType(l), U = pathStateMachine[s], B = U[L] || U.l || 8, B === 8 || (s = B[0], B[1] !== void 0 && (q = V[B[1]], q && (A = l, q() === !1))))
|
|
2089
2156
|
return;
|
|
2090
2157
|
if (s === 7)
|
|
2091
2158
|
return t;
|
|
@@ -2123,28 +2190,28 @@ function normalizeNamed(e, t) {
|
|
|
2123
2190
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2124
2191
|
}
|
|
2125
2192
|
function createMessageContext(e = {}) {
|
|
2126
|
-
const t = e.locale, n = getPluralIndex(e), s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, c = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, l = (
|
|
2193
|
+
const t = e.locale, n = getPluralIndex(e), s = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, c = isObject$2(e.pluralRules) && isString$2(t) && isFunction$1(e.pluralRules[t]) ? pluralDefault : void 0, l = (Y) => Y[s(n, Y.length, c)], C = e.list || [], A = (Y) => C[Y], L = e.named || {};
|
|
2127
2194
|
isNumber(e.pluralIndex) && normalizeNamed(n, L);
|
|
2128
|
-
const
|
|
2129
|
-
function Y
|
|
2130
|
-
const Q = isFunction$1(e.messages) ? e.messages(
|
|
2131
|
-
return Q || (e.parent ? e.parent.message(
|
|
2195
|
+
const B = (Y) => L[Y];
|
|
2196
|
+
function q(Y) {
|
|
2197
|
+
const Q = isFunction$1(e.messages) ? e.messages(Y) : isObject$2(e.messages) ? e.messages[Y] : !1;
|
|
2198
|
+
return Q || (e.parent ? e.parent.message(Y) : DEFAULT_MESSAGE);
|
|
2132
2199
|
}
|
|
2133
|
-
const U = (
|
|
2200
|
+
const U = (Y) => e.modifiers ? e.modifiers[Y] : DEFAULT_MODIFIER, V = isPlainObject$1(e.processor) && isFunction$1(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, J = isPlainObject$1(e.processor) && isFunction$1(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, ce = isPlainObject$1(e.processor) && isString$2(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE, re = {
|
|
2134
2201
|
list: A,
|
|
2135
|
-
named:
|
|
2202
|
+
named: B,
|
|
2136
2203
|
plural: l,
|
|
2137
|
-
linked: (
|
|
2204
|
+
linked: (Y, ...Q) => {
|
|
2138
2205
|
const [ae, te] = Q;
|
|
2139
2206
|
let oe = "text", ne = "";
|
|
2140
2207
|
Q.length === 1 ? isObject$2(ae) ? (ne = ae.modifier || ne, oe = ae.type || oe) : isString$2(ae) && (ne = ae || ne) : Q.length === 2 && (isString$2(ae) && (ne = ae || ne), isString$2(te) && (oe = te || oe));
|
|
2141
|
-
const ie = Y
|
|
2208
|
+
const ie = q(Y)(re), G = (
|
|
2142
2209
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
2143
2210
|
oe === "vnode" && isArray$1(ie) && ne ? ie[0] : ie
|
|
2144
2211
|
);
|
|
2145
2212
|
return ne ? U(ne)(G, oe) : G;
|
|
2146
2213
|
},
|
|
2147
|
-
message:
|
|
2214
|
+
message: q,
|
|
2148
2215
|
type: ce,
|
|
2149
2216
|
interpolate: J,
|
|
2150
2217
|
normalize: V,
|
|
@@ -2318,7 +2385,7 @@ const setFallbackContext = (e) => {
|
|
|
2318
2385
|
}, getFallbackContext = () => _fallbackContext;
|
|
2319
2386
|
let _cid = 0;
|
|
2320
2387
|
function createCoreContext(e = {}) {
|
|
2321
|
-
const t = isFunction$1(e.onWarn) ? e.onWarn : warn$2, n = isString$2(e.version) ? e.version : VERSION$1, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, c = isFunction$1(s) ? DEFAULT_LOCALE : s, l = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, C = isPlainObject$1(e.messages) ? e.messages : { [c]: {} }, A = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c]: {} }, L = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c]: {} },
|
|
2388
|
+
const t = isFunction$1(e.onWarn) ? e.onWarn : warn$2, n = isString$2(e.version) ? e.version : VERSION$1, s = isString$2(e.locale) || isFunction$1(e.locale) ? e.locale : DEFAULT_LOCALE, c = isFunction$1(s) ? DEFAULT_LOCALE : s, l = isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || isString$2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, C = isPlainObject$1(e.messages) ? e.messages : { [c]: {} }, A = isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [c]: {} }, L = isPlainObject$1(e.numberFormats) ? e.numberFormats : { [c]: {} }, B = assign$1({}, e.modifiers || {}, getDefaultLinkedModifiers()), q = e.pluralRules || {}, U = isFunction$1(e.missing) ? e.missing : null, V = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, J = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, ce = !!e.fallbackFormat, se = !!e.unresolving, re = isFunction$1(e.postTranslation) ? e.postTranslation : null, Y = isPlainObject$1(e.processor) ? e.processor : null, Q = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, ae = !!e.escapeParameter, te = isFunction$1(e.messageCompiler) ? e.messageCompiler : _compiler;
|
|
2322
2389
|
process.env.NODE_ENV !== "production" && isFunction$1(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2323
2390
|
const oe = isFunction$1(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, ne = isFunction$1(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, ie = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, G = e, $ = isObject$2(G.__datetimeFormatters) ? G.__datetimeFormatters : /* @__PURE__ */ new Map(), X = isObject$2(G.__numberFormatters) ? G.__numberFormatters : /* @__PURE__ */ new Map(), pe = isObject$2(G.__meta) ? G.__meta : {};
|
|
2324
2391
|
_cid++;
|
|
@@ -2328,15 +2395,15 @@ function createCoreContext(e = {}) {
|
|
|
2328
2395
|
locale: s,
|
|
2329
2396
|
fallbackLocale: l,
|
|
2330
2397
|
messages: C,
|
|
2331
|
-
modifiers:
|
|
2332
|
-
pluralRules:
|
|
2398
|
+
modifiers: B,
|
|
2399
|
+
pluralRules: q,
|
|
2333
2400
|
missing: U,
|
|
2334
2401
|
missingWarn: V,
|
|
2335
2402
|
fallbackWarn: J,
|
|
2336
2403
|
fallbackFormat: ce,
|
|
2337
2404
|
unresolving: se,
|
|
2338
2405
|
postTranslation: re,
|
|
2339
|
-
processor:
|
|
2406
|
+
processor: Y,
|
|
2340
2407
|
warnHtmlMessage: Q,
|
|
2341
2408
|
escapeParameter: ae,
|
|
2342
2409
|
messageCompiler: te,
|
|
@@ -2486,13 +2553,13 @@ function compile(e, t) {
|
|
|
2486
2553
|
}
|
|
2487
2554
|
const NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction$1(e);
|
|
2488
2555
|
function translate(e, ...t) {
|
|
2489
|
-
const { fallbackFormat: n, postTranslation: s, unresolving: c, messageCompiler: l, fallbackLocale: C, messages: A } = e, [L,
|
|
2490
|
-
V && escapeParams(
|
|
2491
|
-
let [
|
|
2556
|
+
const { fallbackFormat: n, postTranslation: s, unresolving: c, messageCompiler: l, fallbackLocale: C, messages: A } = e, [L, B] = parseTranslateArgs(...t), q = isBoolean(B.missingWarn) ? B.missingWarn : e.missingWarn, U = isBoolean(B.fallbackWarn) ? B.fallbackWarn : e.fallbackWarn, V = isBoolean(B.escapeParameter) ? B.escapeParameter : e.escapeParameter, J = !!B.resolvedMessage, ce = isString$2(B.default) || isBoolean(B.default) ? isBoolean(B.default) ? l ? L : () => L : B.default : n ? l ? L : () => L : "", se = n || ce !== "", re = getLocale(e, B);
|
|
2557
|
+
V && escapeParams(B);
|
|
2558
|
+
let [Y, Q, ae] = J ? [
|
|
2492
2559
|
L,
|
|
2493
2560
|
re,
|
|
2494
2561
|
A[re] || {}
|
|
2495
|
-
] : resolveMessageFormat(e, L, re, C, U,
|
|
2562
|
+
] : resolveMessageFormat(e, L, re, C, U, q), te = Y, oe = L;
|
|
2496
2563
|
if (!J && !(isString$2(te) || isMessageAST(te) || isMessageFunction(te)) && se && (te = ce, oe = te), !J && (!(isString$2(te) || isMessageAST(te) || isMessageFunction(te)) || !isString$2(Q)))
|
|
2497
2564
|
return c ? NOT_REOSLVED : L;
|
|
2498
2565
|
if (process.env.NODE_ENV !== "production" && isString$2(te) && e.messageCompiler == null)
|
|
@@ -2503,7 +2570,7 @@ function translate(e, ...t) {
|
|
|
2503
2570
|
}, G = isMessageFunction(te) ? te : compileMessageFormat(e, L, Q, te, oe, ie);
|
|
2504
2571
|
if (ne)
|
|
2505
2572
|
return te;
|
|
2506
|
-
const $ = getMessageContextOptions(e, Q, ae,
|
|
2573
|
+
const $ = getMessageContextOptions(e, Q, ae, B), X = createMessageContext($), pe = evaluateMessage(e, G, X), de = s ? s(pe, L) : pe;
|
|
2507
2574
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2508
2575
|
const ge = {
|
|
2509
2576
|
timestamp: Date.now(),
|
|
@@ -2522,11 +2589,11 @@ function escapeParams(e) {
|
|
|
2522
2589
|
});
|
|
2523
2590
|
}
|
|
2524
2591
|
function resolveMessageFormat(e, t, n, s, c, l) {
|
|
2525
|
-
const { messages: C, onWarn: A, messageResolver: L, localeFallbacker:
|
|
2592
|
+
const { messages: C, onWarn: A, messageResolver: L, localeFallbacker: B } = e, q = B(e, s, n);
|
|
2526
2593
|
let U = {}, V, J = null, ce = n, se = null;
|
|
2527
2594
|
const re = "translate";
|
|
2528
|
-
for (let
|
|
2529
|
-
if (V = se = Y
|
|
2595
|
+
for (let Y = 0; Y < q.length; Y++) {
|
|
2596
|
+
if (V = se = q[Y], process.env.NODE_ENV !== "production" && n !== V && isTranslateFallbackWarn(c, t) && A(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
2530
2597
|
key: t,
|
|
2531
2598
|
target: V
|
|
2532
2599
|
})), process.env.NODE_ENV !== "production" && n !== V) {
|
|
@@ -2575,8 +2642,8 @@ function compileMessageFormat(e, t, n, s, c, l) {
|
|
|
2575
2642
|
const V = () => s;
|
|
2576
2643
|
return V.locale = n, V.key = t, V;
|
|
2577
2644
|
}
|
|
2578
|
-
let L = null,
|
|
2579
|
-
process.env.NODE_ENV !== "production" && inBrowser && (L = window.performance.now(),
|
|
2645
|
+
let L = null, B, q;
|
|
2646
|
+
process.env.NODE_ENV !== "production" && inBrowser && (L = window.performance.now(), B = "intlify-message-compilation-start", q = "intlify-message-compilation-end", mark && mark(B));
|
|
2580
2647
|
const U = C(s, getCompileContext(e, n, c, s, A, l));
|
|
2581
2648
|
if (process.env.NODE_ENV !== "production" && inBrowser) {
|
|
2582
2649
|
const V = window.performance.now(), J = e.__v_emitter;
|
|
@@ -2585,7 +2652,7 @@ function compileMessageFormat(e, t, n, s, c, l) {
|
|
|
2585
2652
|
message: s,
|
|
2586
2653
|
time: V - L,
|
|
2587
2654
|
groupId: `translate:${t}`
|
|
2588
|
-
}),
|
|
2655
|
+
}), B && q && mark && measure && (mark(q), measure("intlify message compilation", B, q));
|
|
2589
2656
|
}
|
|
2590
2657
|
return U.locale = n, U.key = t, U.source = s, U;
|
|
2591
2658
|
}
|
|
@@ -2618,15 +2685,15 @@ function getCompileContext(e, t, n, s, c, l) {
|
|
|
2618
2685
|
warnHtmlMessage: c,
|
|
2619
2686
|
onError: (C) => {
|
|
2620
2687
|
if (l && l(C), process.env.NODE_ENV !== "production") {
|
|
2621
|
-
const A = getSourceForCodeFrame(s), L = `Message compilation error: ${C.message}`,
|
|
2622
|
-
|
|
2688
|
+
const A = getSourceForCodeFrame(s), L = `Message compilation error: ${C.message}`, B = C.location && A && generateCodeFrame(A, C.location.start.offset, C.location.end.offset), q = e.__v_emitter;
|
|
2689
|
+
q && A && q.emit("compile-error", {
|
|
2623
2690
|
message: A,
|
|
2624
2691
|
error: C.message,
|
|
2625
2692
|
start: C.location && C.location.start.offset,
|
|
2626
2693
|
end: C.location && C.location.end.offset,
|
|
2627
2694
|
groupId: `translate:${n}`
|
|
2628
|
-
}), console.error(
|
|
2629
|
-
${
|
|
2695
|
+
}), console.error(B ? `${L}
|
|
2696
|
+
${B}` : L);
|
|
2630
2697
|
} else
|
|
2631
2698
|
throw C;
|
|
2632
2699
|
},
|
|
@@ -2640,22 +2707,22 @@ function getSourceForCodeFrame(e) {
|
|
|
2640
2707
|
return e.loc.source;
|
|
2641
2708
|
}
|
|
2642
2709
|
function getMessageContextOptions(e, t, n, s) {
|
|
2643
|
-
const { modifiers: c, pluralRules: l, messageResolver: C, fallbackLocale: A, fallbackWarn: L, missingWarn:
|
|
2710
|
+
const { modifiers: c, pluralRules: l, messageResolver: C, fallbackLocale: A, fallbackWarn: L, missingWarn: B, fallbackContext: q } = e, V = {
|
|
2644
2711
|
locale: t,
|
|
2645
2712
|
modifiers: c,
|
|
2646
2713
|
pluralRules: l,
|
|
2647
2714
|
messages: (J) => {
|
|
2648
2715
|
let ce = C(n, J);
|
|
2649
|
-
if (ce == null &&
|
|
2650
|
-
const [, , se] = resolveMessageFormat(
|
|
2716
|
+
if (ce == null && q) {
|
|
2717
|
+
const [, , se] = resolveMessageFormat(q, J, t, A, L, B);
|
|
2651
2718
|
ce = C(se, J);
|
|
2652
2719
|
}
|
|
2653
2720
|
if (isString$2(ce) || isMessageAST(ce)) {
|
|
2654
2721
|
let se = !1;
|
|
2655
|
-
const
|
|
2722
|
+
const Y = compileMessageFormat(e, J, t, ce, J, () => {
|
|
2656
2723
|
se = !0;
|
|
2657
2724
|
});
|
|
2658
|
-
return se ? NOOP_MESSAGE_FUNCTION :
|
|
2725
|
+
return se ? NOOP_MESSAGE_FUNCTION : Y;
|
|
2659
2726
|
} else
|
|
2660
2727
|
return isMessageFunction(ce) ? ce : NOOP_MESSAGE_FUNCTION;
|
|
2661
2728
|
}
|
|
@@ -2670,15 +2737,15 @@ function datetime(e, ...t) {
|
|
|
2670
2737
|
const { datetimeFormats: n, unresolving: s, fallbackLocale: c, onWarn: l, localeFallbacker: C } = e, { __datetimeFormatters: A } = e;
|
|
2671
2738
|
if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat)
|
|
2672
2739
|
return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), MISSING_RESOLVE_VALUE;
|
|
2673
|
-
const [L,
|
|
2740
|
+
const [L, B, q, U] = parseDateTimeArgs(...t), V = isBoolean(q.missingWarn) ? q.missingWarn : e.missingWarn, J = isBoolean(q.fallbackWarn) ? q.fallbackWarn : e.fallbackWarn, ce = !!q.part, se = getLocale(e, q), re = C(
|
|
2674
2741
|
e,
|
|
2675
2742
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2676
2743
|
c,
|
|
2677
2744
|
se
|
|
2678
2745
|
);
|
|
2679
2746
|
if (!isString$2(L) || L === "")
|
|
2680
|
-
return new Intl.DateTimeFormat(se, U).format(
|
|
2681
|
-
let
|
|
2747
|
+
return new Intl.DateTimeFormat(se, U).format(B);
|
|
2748
|
+
let Y = {}, Q, ae = null, te = se, oe = null;
|
|
2682
2749
|
const ne = "datetime format";
|
|
2683
2750
|
for (let $ = 0; $ < re.length; $++) {
|
|
2684
2751
|
if (Q = oe = re[$], process.env.NODE_ENV !== "production" && se !== Q && isTranslateFallbackWarn(J, L) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -2694,7 +2761,7 @@ function datetime(e, ...t) {
|
|
|
2694
2761
|
groupId: `${ne}:${L}`
|
|
2695
2762
|
});
|
|
2696
2763
|
}
|
|
2697
|
-
if (
|
|
2764
|
+
if (Y = n[Q] || {}, ae = Y[L], isPlainObject$1(ae))
|
|
2698
2765
|
break;
|
|
2699
2766
|
handleMissing(e, L, Q, V, ne), te = oe;
|
|
2700
2767
|
}
|
|
@@ -2703,7 +2770,7 @@ function datetime(e, ...t) {
|
|
|
2703
2770
|
let ie = `${Q}__${L}`;
|
|
2704
2771
|
isEmptyObject(U) || (ie = `${ie}__${JSON.stringify(U)}`);
|
|
2705
2772
|
let G = A.get(ie);
|
|
2706
|
-
return G || (G = new Intl.DateTimeFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(
|
|
2773
|
+
return G || (G = new Intl.DateTimeFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(B) : G.format(B);
|
|
2707
2774
|
}
|
|
2708
2775
|
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
2709
2776
|
"localeMatcher",
|
|
@@ -2734,8 +2801,8 @@ function parseDateTimeArgs(...e) {
|
|
|
2734
2801
|
const L = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2735
2802
|
if (!L)
|
|
2736
2803
|
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
2737
|
-
const
|
|
2738
|
-
A = new Date(
|
|
2804
|
+
const B = L[3] ? L[3].trim().startsWith("T") ? `${L[1].trim()}${L[3].trim()}` : `${L[1].trim()}T${L[3].trim()}` : L[1].trim();
|
|
2805
|
+
A = new Date(B);
|
|
2739
2806
|
try {
|
|
2740
2807
|
A.toISOString();
|
|
2741
2808
|
} catch {
|
|
@@ -2764,15 +2831,15 @@ function number(e, ...t) {
|
|
|
2764
2831
|
const { numberFormats: n, unresolving: s, fallbackLocale: c, onWarn: l, localeFallbacker: C } = e, { __numberFormatters: A } = e;
|
|
2765
2832
|
if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat)
|
|
2766
2833
|
return l(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), MISSING_RESOLVE_VALUE;
|
|
2767
|
-
const [L,
|
|
2834
|
+
const [L, B, q, U] = parseNumberArgs(...t), V = isBoolean(q.missingWarn) ? q.missingWarn : e.missingWarn, J = isBoolean(q.fallbackWarn) ? q.fallbackWarn : e.fallbackWarn, ce = !!q.part, se = getLocale(e, q), re = C(
|
|
2768
2835
|
e,
|
|
2769
2836
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2770
2837
|
c,
|
|
2771
2838
|
se
|
|
2772
2839
|
);
|
|
2773
2840
|
if (!isString$2(L) || L === "")
|
|
2774
|
-
return new Intl.NumberFormat(se, U).format(
|
|
2775
|
-
let
|
|
2841
|
+
return new Intl.NumberFormat(se, U).format(B);
|
|
2842
|
+
let Y = {}, Q, ae = null, te = se, oe = null;
|
|
2776
2843
|
const ne = "number format";
|
|
2777
2844
|
for (let $ = 0; $ < re.length; $++) {
|
|
2778
2845
|
if (Q = oe = re[$], process.env.NODE_ENV !== "production" && se !== Q && isTranslateFallbackWarn(J, L) && l(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -2788,7 +2855,7 @@ function number(e, ...t) {
|
|
|
2788
2855
|
groupId: `${ne}:${L}`
|
|
2789
2856
|
});
|
|
2790
2857
|
}
|
|
2791
|
-
if (
|
|
2858
|
+
if (Y = n[Q] || {}, ae = Y[L], isPlainObject$1(ae))
|
|
2792
2859
|
break;
|
|
2793
2860
|
handleMissing(e, L, Q, V, ne), te = oe;
|
|
2794
2861
|
}
|
|
@@ -2797,7 +2864,7 @@ function number(e, ...t) {
|
|
|
2797
2864
|
let ie = `${Q}__${L}`;
|
|
2798
2865
|
isEmptyObject(U) || (ie = `${ie}__${JSON.stringify(U)}`);
|
|
2799
2866
|
let G = A.get(ie);
|
|
2800
|
-
return G || (G = new Intl.NumberFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(
|
|
2867
|
+
return G || (G = new Intl.NumberFormat(Q, assign$1({}, ae, U)), A.set(ie, G)), ce ? G.formatToParts(B) : G.format(B);
|
|
2801
2868
|
}
|
|
2802
2869
|
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
2803
2870
|
"localeMatcher",
|
|
@@ -3271,16 +3338,16 @@ function trigger(e, t, n, s, c, l) {
|
|
|
3271
3338
|
if (startBatch(), t === "clear")
|
|
3272
3339
|
C.forEach(A);
|
|
3273
3340
|
else {
|
|
3274
|
-
const L = isArray(e),
|
|
3341
|
+
const L = isArray(e), B = L && isIntegerKey(n);
|
|
3275
3342
|
if (L && n === "length") {
|
|
3276
|
-
const
|
|
3343
|
+
const q = Number(s);
|
|
3277
3344
|
C.forEach((U, V) => {
|
|
3278
|
-
(V === "length" || V === ARRAY_ITERATE_KEY || !isSymbol(V) && V >=
|
|
3345
|
+
(V === "length" || V === ARRAY_ITERATE_KEY || !isSymbol(V) && V >= q) && A(U);
|
|
3279
3346
|
});
|
|
3280
3347
|
} else
|
|
3281
|
-
switch ((n !== void 0 || C.has(void 0)) && A(C.get(n)),
|
|
3348
|
+
switch ((n !== void 0 || C.has(void 0)) && A(C.get(n)), B && A(C.get(ARRAY_ITERATE_KEY)), t) {
|
|
3282
3349
|
case "add":
|
|
3283
|
-
L ?
|
|
3350
|
+
L ? B && A(C.get("length")) : (A(C.get(ITERATE_KEY)), isMap(e) && A(C.get(MAP_KEY_ITERATE_KEY)));
|
|
3284
3351
|
break;
|
|
3285
3352
|
case "delete":
|
|
3286
3353
|
L || (A(C.get(ITERATE_KEY)), isMap(e) && A(C.get(MAP_KEY_ITERATE_KEY)));
|
|
@@ -3402,14 +3469,14 @@ function apply$1(e, t, n, s, c, l) {
|
|
|
3402
3469
|
const U = L.apply(e, l);
|
|
3403
3470
|
return A ? toReactive(U) : U;
|
|
3404
3471
|
}
|
|
3405
|
-
let
|
|
3406
|
-
C !== e && (A ?
|
|
3472
|
+
let B = n;
|
|
3473
|
+
C !== e && (A ? B = function(U, V) {
|
|
3407
3474
|
return n.call(this, toReactive(U), V, e);
|
|
3408
|
-
} : n.length > 2 && (
|
|
3475
|
+
} : n.length > 2 && (B = function(U, V) {
|
|
3409
3476
|
return n.call(this, U, V, e);
|
|
3410
3477
|
}));
|
|
3411
|
-
const
|
|
3412
|
-
return A && c ? c(
|
|
3478
|
+
const q = L.call(C, B, s);
|
|
3479
|
+
return A && c ? c(q) : q;
|
|
3413
3480
|
}
|
|
3414
3481
|
function reduce(e, t, n, s) {
|
|
3415
3482
|
const c = shallowReadArray(e);
|
|
@@ -3531,7 +3598,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
|
3531
3598
|
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(), readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(), shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(!0), toShallow = (e) => e, getProto = (e) => Reflect.getPrototypeOf(e);
|
|
3532
3599
|
function createIterableMethod(e, t, n) {
|
|
3533
3600
|
return function(...s) {
|
|
3534
|
-
const c = this.__v_raw, l = toRaw(c), C = isMap(l), A = e === "entries" || e === Symbol.iterator && C, L = e === "keys" && C,
|
|
3601
|
+
const c = this.__v_raw, l = toRaw(c), C = isMap(l), A = e === "entries" || e === Symbol.iterator && C, L = e === "keys" && C, B = c[e](...s), q = n ? toShallow : t ? toReadonly : toReactive;
|
|
3535
3602
|
return !t && track(
|
|
3536
3603
|
l,
|
|
3537
3604
|
"iterate",
|
|
@@ -3539,9 +3606,9 @@ function createIterableMethod(e, t, n) {
|
|
|
3539
3606
|
), {
|
|
3540
3607
|
// iterator protocol
|
|
3541
3608
|
next() {
|
|
3542
|
-
const { value: U, done: V } =
|
|
3609
|
+
const { value: U, done: V } = B.next();
|
|
3543
3610
|
return V ? { value: U, done: V } : {
|
|
3544
|
-
value: A ? [
|
|
3611
|
+
value: A ? [q(U[0]), q(U[1])] : q(U),
|
|
3545
3612
|
done: V
|
|
3546
3613
|
};
|
|
3547
3614
|
},
|
|
@@ -3569,11 +3636,11 @@ function createInstrumentations(e, t) {
|
|
|
3569
3636
|
get(c) {
|
|
3570
3637
|
const l = this.__v_raw, C = toRaw(l), A = toRaw(c);
|
|
3571
3638
|
e || (hasChanged(c, A) && track(C, "get", c), track(C, "get", A));
|
|
3572
|
-
const { has: L } = getProto(C),
|
|
3639
|
+
const { has: L } = getProto(C), B = t ? toShallow : e ? toReadonly : toReactive;
|
|
3573
3640
|
if (L.call(C, c))
|
|
3574
|
-
return
|
|
3641
|
+
return B(l.get(c));
|
|
3575
3642
|
if (L.call(C, A))
|
|
3576
|
-
return
|
|
3643
|
+
return B(l.get(A));
|
|
3577
3644
|
l !== C && l.get(c);
|
|
3578
3645
|
},
|
|
3579
3646
|
get size() {
|
|
@@ -3585,8 +3652,8 @@ function createInstrumentations(e, t) {
|
|
|
3585
3652
|
return e || (hasChanged(c, A) && track(C, "has", c), track(C, "has", A)), c === A ? l.has(c) : l.has(c) || l.has(A);
|
|
3586
3653
|
},
|
|
3587
3654
|
forEach(c, l) {
|
|
3588
|
-
const C = this, A = C.__v_raw, L = toRaw(A),
|
|
3589
|
-
return !e && track(L, "iterate", ITERATE_KEY), A.forEach((
|
|
3655
|
+
const C = this, A = C.__v_raw, L = toRaw(A), B = t ? toShallow : e ? toReadonly : toReactive;
|
|
3656
|
+
return !e && track(L, "iterate", ITERATE_KEY), A.forEach((q, U) => c.call(l, B(q), B(U), C));
|
|
3590
3657
|
}
|
|
3591
3658
|
};
|
|
3592
3659
|
return extend(
|
|
@@ -3605,17 +3672,17 @@ function createInstrumentations(e, t) {
|
|
|
3605
3672
|
set(c, l) {
|
|
3606
3673
|
!t && !isShallow(l) && !isReadonly(l) && (l = toRaw(l));
|
|
3607
3674
|
const C = toRaw(this), { has: A, get: L } = getProto(C);
|
|
3608
|
-
let
|
|
3609
|
-
|
|
3610
|
-
const
|
|
3611
|
-
return C.set(c, l),
|
|
3675
|
+
let B = A.call(C, c);
|
|
3676
|
+
B ? process.env.NODE_ENV !== "production" && checkIdentityKeys(C, A, c) : (c = toRaw(c), B = A.call(C, c));
|
|
3677
|
+
const q = L.call(C, c);
|
|
3678
|
+
return C.set(c, l), B ? hasChanged(l, q) && trigger(C, "set", c, l, q) : trigger(C, "add", c, l), this;
|
|
3612
3679
|
},
|
|
3613
3680
|
delete(c) {
|
|
3614
3681
|
const l = toRaw(this), { has: C, get: A } = getProto(l);
|
|
3615
3682
|
let L = C.call(l, c);
|
|
3616
3683
|
L ? process.env.NODE_ENV !== "production" && checkIdentityKeys(l, C, c) : (c = toRaw(c), L = C.call(l, c));
|
|
3617
|
-
const
|
|
3618
|
-
return L && trigger(l, "delete", c, void 0,
|
|
3684
|
+
const B = A ? A.call(l, c) : void 0, q = l.delete(c);
|
|
3685
|
+
return L && trigger(l, "delete", c, void 0, B), q;
|
|
3619
3686
|
},
|
|
3620
3687
|
clear() {
|
|
3621
3688
|
const c = toRaw(this), l = c.size !== 0, C = process.env.NODE_ENV !== "production" ? isMap(c) ? new Map(c) : new Set(c) : void 0, A = c.clear();
|
|
@@ -3837,22 +3904,22 @@ function onWatcherCleanup(e, t = !1, n = activeWatcher) {
|
|
|
3837
3904
|
);
|
|
3838
3905
|
}
|
|
3839
3906
|
function watch$1(e, t, n = EMPTY_OBJ) {
|
|
3840
|
-
const { immediate: s, deep: c, once: l, scheduler: C, augmentJob: A, call: L } = n,
|
|
3907
|
+
const { immediate: s, deep: c, once: l, scheduler: C, augmentJob: A, call: L } = n, B = (oe) => {
|
|
3841
3908
|
(n.onWarn || warn)(
|
|
3842
3909
|
"Invalid watch source: ",
|
|
3843
3910
|
oe,
|
|
3844
3911
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
3845
3912
|
);
|
|
3846
|
-
},
|
|
3913
|
+
}, q = (oe) => c ? oe : isShallow(oe) || c === !1 || c === 0 ? traverse(oe, 1) : traverse(oe);
|
|
3847
3914
|
let U, V, J, ce, se = !1, re = !1;
|
|
3848
|
-
if (isRef(e) ? (V = () => e.value, se = isShallow(e)) : isReactive(e) ? (V = () =>
|
|
3915
|
+
if (isRef(e) ? (V = () => e.value, se = isShallow(e)) : isReactive(e) ? (V = () => q(e), se = !0) : isArray(e) ? (re = !0, se = e.some((oe) => isReactive(oe) || isShallow(oe)), V = () => e.map((oe) => {
|
|
3849
3916
|
if (isRef(oe))
|
|
3850
3917
|
return oe.value;
|
|
3851
3918
|
if (isReactive(oe))
|
|
3852
|
-
return
|
|
3919
|
+
return q(oe);
|
|
3853
3920
|
if (isFunction(oe))
|
|
3854
3921
|
return L ? L(oe, 2) : oe();
|
|
3855
|
-
process.env.NODE_ENV !== "production" &&
|
|
3922
|
+
process.env.NODE_ENV !== "production" && B(oe);
|
|
3856
3923
|
})) : isFunction(e) ? t ? V = L ? () => L(e, 2) : e : V = () => {
|
|
3857
3924
|
if (J) {
|
|
3858
3925
|
pauseTracking();
|
|
@@ -3869,12 +3936,12 @@ function watch$1(e, t, n = EMPTY_OBJ) {
|
|
|
3869
3936
|
} finally {
|
|
3870
3937
|
activeWatcher = oe;
|
|
3871
3938
|
}
|
|
3872
|
-
} : (V = NOOP, process.env.NODE_ENV !== "production" &&
|
|
3939
|
+
} : (V = NOOP, process.env.NODE_ENV !== "production" && B(e)), t && c) {
|
|
3873
3940
|
const oe = V, ne = c === !0 ? 1 / 0 : c;
|
|
3874
3941
|
V = () => traverse(oe(), ne);
|
|
3875
3942
|
}
|
|
3876
|
-
const
|
|
3877
|
-
U.stop(),
|
|
3943
|
+
const Y = getCurrentScope(), Q = () => {
|
|
3944
|
+
U.stop(), Y && Y.active && remove(Y.effects, U);
|
|
3878
3945
|
};
|
|
3879
3946
|
if (l && t) {
|
|
3880
3947
|
const oe = t;
|
|
@@ -4086,12 +4153,12 @@ function handleError(e, t, n, s = !0) {
|
|
|
4086
4153
|
const c = t ? t.vnode : null, { errorHandler: l, throwUnhandledErrorInProduction: C } = t && t.appContext.config || EMPTY_OBJ;
|
|
4087
4154
|
if (t) {
|
|
4088
4155
|
let A = t.parent;
|
|
4089
|
-
const L = t.proxy,
|
|
4156
|
+
const L = t.proxy, B = process.env.NODE_ENV !== "production" ? ErrorTypeStrings$1[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
4090
4157
|
for (; A; ) {
|
|
4091
|
-
const
|
|
4092
|
-
if (
|
|
4093
|
-
for (let U = 0; U <
|
|
4094
|
-
if (
|
|
4158
|
+
const q = A.ec;
|
|
4159
|
+
if (q) {
|
|
4160
|
+
for (let U = 0; U < q.length; U++)
|
|
4161
|
+
if (q[U](e, L, B) === !1)
|
|
4095
4162
|
return;
|
|
4096
4163
|
}
|
|
4097
4164
|
A = A.parent;
|
|
@@ -4100,7 +4167,7 @@ function handleError(e, t, n, s = !0) {
|
|
|
4100
4167
|
pauseTracking(), callWithErrorHandling(l, null, 10, [
|
|
4101
4168
|
e,
|
|
4102
4169
|
L,
|
|
4103
|
-
|
|
4170
|
+
B
|
|
4104
4171
|
]), resetTracking();
|
|
4105
4172
|
return;
|
|
4106
4173
|
}
|
|
@@ -4335,7 +4402,7 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4335
4402
|
const { ctx: n, setupState: s, data: c, props: l, accessCache: C, type: A, appContext: L } = e;
|
|
4336
4403
|
if (process.env.NODE_ENV !== "production" && t === "__isVue")
|
|
4337
4404
|
return !0;
|
|
4338
|
-
let
|
|
4405
|
+
let B;
|
|
4339
4406
|
if (t[0] !== "$") {
|
|
4340
4407
|
const J = C[t];
|
|
4341
4408
|
if (J !== void 0)
|
|
@@ -4357,7 +4424,7 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4357
4424
|
if (
|
|
4358
4425
|
// only cache other properties when instance has declared (thus stable)
|
|
4359
4426
|
// props
|
|
4360
|
-
(
|
|
4427
|
+
(B = e.propsOptions[0]) && hasOwn(B, t)
|
|
4361
4428
|
)
|
|
4362
4429
|
return C[t] = 3, l[t];
|
|
4363
4430
|
if (n !== EMPTY_OBJ && hasOwn(n, t))
|
|
@@ -4365,10 +4432,10 @@ const createHook = (e) => (t, n = currentInstance) => {
|
|
|
4365
4432
|
(!__VUE_OPTIONS_API__ || shouldCacheAccess) && (C[t] = 0);
|
|
4366
4433
|
}
|
|
4367
4434
|
}
|
|
4368
|
-
const
|
|
4435
|
+
const q = publicPropertiesMap[t];
|
|
4369
4436
|
let U, V;
|
|
4370
|
-
if (
|
|
4371
|
-
return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t),
|
|
4437
|
+
if (q)
|
|
4438
|
+
return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t), q(e);
|
|
4372
4439
|
if (
|
|
4373
4440
|
// css module (injected by vue-loader)
|
|
4374
4441
|
(U = A.__cssModules) && (U = U[t])
|
|
@@ -4429,7 +4496,7 @@ function resolveMergedOptions(e) {
|
|
|
4429
4496
|
} = e.appContext, A = l.get(t);
|
|
4430
4497
|
let L;
|
|
4431
4498
|
return A ? L = A : !c.length && !n && !s ? L = t : (L = {}, c.length && c.forEach(
|
|
4432
|
-
(
|
|
4499
|
+
(B) => mergeOptions(L, B, C, !0)
|
|
4433
4500
|
), mergeOptions(L, t, C)), isObject(t) && l.set(t, L), L;
|
|
4434
4501
|
}
|
|
4435
4502
|
function mergeOptions(e, t, n, s = !1) {
|
|
@@ -4560,29 +4627,29 @@ function doWatch(e, t, n = EMPTY_OBJ) {
|
|
|
4560
4627
|
const A = extend({}, n);
|
|
4561
4628
|
process.env.NODE_ENV !== "production" && (A.onWarn = warn$1);
|
|
4562
4629
|
const L = t && s || !t && l !== "post";
|
|
4563
|
-
let
|
|
4630
|
+
let B;
|
|
4564
4631
|
if (isInSSRComponentSetup) {
|
|
4565
4632
|
if (l === "sync") {
|
|
4566
4633
|
const J = useSSRContext();
|
|
4567
|
-
|
|
4634
|
+
B = J.__watcherHandles || (J.__watcherHandles = []);
|
|
4568
4635
|
} else if (!L) {
|
|
4569
4636
|
const J = () => {
|
|
4570
4637
|
};
|
|
4571
4638
|
return J.stop = NOOP, J.resume = NOOP, J.pause = NOOP, J;
|
|
4572
4639
|
}
|
|
4573
4640
|
}
|
|
4574
|
-
const
|
|
4575
|
-
A.call = (J, ce, se) => callWithAsyncErrorHandling(J,
|
|
4641
|
+
const q = currentInstance;
|
|
4642
|
+
A.call = (J, ce, se) => callWithAsyncErrorHandling(J, q, ce, se);
|
|
4576
4643
|
let U = !1;
|
|
4577
4644
|
l === "post" ? A.scheduler = (J) => {
|
|
4578
|
-
queuePostRenderEffect(J,
|
|
4645
|
+
queuePostRenderEffect(J, q && q.suspense);
|
|
4579
4646
|
} : l !== "sync" && (U = !0, A.scheduler = (J, ce) => {
|
|
4580
4647
|
ce ? J() : queueJob(J);
|
|
4581
4648
|
}), A.augmentJob = (J) => {
|
|
4582
|
-
t && (J.flags |= 4), U && (J.flags |= 2,
|
|
4649
|
+
t && (J.flags |= 4), U && (J.flags |= 2, q && (J.id = q.uid, J.i = q));
|
|
4583
4650
|
};
|
|
4584
4651
|
const V = watch$1(e, t, A);
|
|
4585
|
-
return isInSSRComponentSetup && (
|
|
4652
|
+
return isInSSRComponentSetup && (B ? B.push(V) : L && V()), V;
|
|
4586
4653
|
}
|
|
4587
4654
|
function instanceWatch(e, t, n) {
|
|
4588
4655
|
const s = this.proxy, c = isString(e) ? e.includes(".") ? createPathGetter(s, e) : () => s[e] : e.bind(s, s);
|
|
@@ -4695,12 +4762,12 @@ function guardReactiveProps(e) {
|
|
|
4695
4762
|
return e ? isProxy(e) || isInternalObject(e) ? extend({}, e) : e : null;
|
|
4696
4763
|
}
|
|
4697
4764
|
function cloneVNode(e, t, n = !1, s = !1) {
|
|
4698
|
-
const { props: c, ref: l, patchFlag: C, children: A, transition: L } = e,
|
|
4765
|
+
const { props: c, ref: l, patchFlag: C, children: A, transition: L } = e, B = t ? mergeProps(c || {}, t) : c, q = {
|
|
4699
4766
|
__v_isVNode: !0,
|
|
4700
4767
|
__v_skip: !0,
|
|
4701
4768
|
type: e.type,
|
|
4702
|
-
props:
|
|
4703
|
-
key:
|
|
4769
|
+
props: B,
|
|
4770
|
+
key: B && normalizeKey(B),
|
|
4704
4771
|
ref: t && t.ref ? (
|
|
4705
4772
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
4706
4773
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -4739,9 +4806,9 @@ function cloneVNode(e, t, n = !1, s = !1) {
|
|
|
4739
4806
|
ce: e.ce
|
|
4740
4807
|
};
|
|
4741
4808
|
return L && s && setTransitionHooks(
|
|
4742
|
-
|
|
4743
|
-
L.clone(
|
|
4744
|
-
),
|
|
4809
|
+
q,
|
|
4810
|
+
L.clone(q)
|
|
4811
|
+
), q;
|
|
4745
4812
|
}
|
|
4746
4813
|
function deepCloneVNode(e) {
|
|
4747
4814
|
const t = cloneVNode(e);
|
|
@@ -4876,7 +4943,7 @@ function initCustomFormatter() {
|
|
|
4876
4943
|
return isObject(U) ? U.__isVue ? ["div", e, "VueInstance"] : isRef(U) ? [
|
|
4877
4944
|
"div",
|
|
4878
4945
|
{},
|
|
4879
|
-
["span", e,
|
|
4946
|
+
["span", e, q(U)],
|
|
4880
4947
|
"<",
|
|
4881
4948
|
// avoid debugger accessing value affecting behavior
|
|
4882
4949
|
A("_value" in U ? U._value : U),
|
|
@@ -4962,15 +5029,15 @@ function initCustomFormatter() {
|
|
|
4962
5029
|
return;
|
|
4963
5030
|
const ce = {};
|
|
4964
5031
|
for (const se in U.ctx)
|
|
4965
|
-
|
|
5032
|
+
B(J, se, V) && (ce[se] = U.ctx[se]);
|
|
4966
5033
|
return ce;
|
|
4967
5034
|
}
|
|
4968
|
-
function
|
|
5035
|
+
function B(U, V, J) {
|
|
4969
5036
|
const ce = U[J];
|
|
4970
|
-
if (isArray(ce) && ce.includes(V) || isObject(ce) && V in ce || U.extends &&
|
|
5037
|
+
if (isArray(ce) && ce.includes(V) || isObject(ce) && V in ce || U.extends && B(U.extends, V, J) || U.mixins && U.mixins.some((se) => B(se, V, J)))
|
|
4971
5038
|
return !0;
|
|
4972
5039
|
}
|
|
4973
|
-
function
|
|
5040
|
+
function q(U) {
|
|
4974
5041
|
return isShallow(U) ? "ShallowRef" : U.effect ? "ComputedRef" : "Ref";
|
|
4975
5042
|
}
|
|
4976
5043
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(c) : window.devtoolsFormatters = [c];
|
|
@@ -5047,11 +5114,11 @@ class ApiProxy {
|
|
|
5047
5114
|
args: L,
|
|
5048
5115
|
resolve: () => {
|
|
5049
5116
|
}
|
|
5050
|
-
}), this.fallbacks[A](...L)) : (...L) => new Promise((
|
|
5117
|
+
}), this.fallbacks[A](...L)) : (...L) => new Promise((B) => {
|
|
5051
5118
|
this.targetQueue.push({
|
|
5052
5119
|
method: A,
|
|
5053
5120
|
args: L,
|
|
5054
|
-
resolve:
|
|
5121
|
+
resolve: B
|
|
5055
5122
|
});
|
|
5056
5123
|
})
|
|
5057
5124
|
});
|
|
@@ -5211,8 +5278,8 @@ function getLocaleMessages(e, t) {
|
|
|
5211
5278
|
const { messages: n, __i18n: s, messageResolver: c, flatJson: l } = t, C = isPlainObject$1(n) ? n : isArray$1(s) ? {} : { [e]: {} };
|
|
5212
5279
|
if (isArray$1(s) && s.forEach((A) => {
|
|
5213
5280
|
if ("locale" in A && "resource" in A) {
|
|
5214
|
-
const { locale: L, resource:
|
|
5215
|
-
L ? (C[L] = C[L] || {}, deepCopy(
|
|
5281
|
+
const { locale: L, resource: B } = A;
|
|
5282
|
+
L ? (C[L] = C[L] || {}, deepCopy(B, C[L])) : deepCopy(B, C);
|
|
5216
5283
|
} else
|
|
5217
5284
|
isString$2(A) && deepCopy(JSON.parse(A), C);
|
|
5218
5285
|
}), c == null && l)
|
|
@@ -5265,29 +5332,29 @@ function createComposer(e = {}, t) {
|
|
|
5265
5332
|
const { __root: n, __injectWithOption: s } = e, c = n === void 0, l = e.flatJson, C = inBrowser ? ref : shallowRef, A = !!e.translateExistCompatible;
|
|
5266
5333
|
process.env.NODE_ENV !== "production" && A && warnOnce(getWarnMessage(I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
|
5267
5334
|
let L = isBoolean(e.inheritLocale) ? e.inheritLocale : !0;
|
|
5268
|
-
const
|
|
5335
|
+
const B = C(
|
|
5269
5336
|
// prettier-ignore
|
|
5270
5337
|
n && L ? n.locale.value : isString$2(e.locale) ? e.locale : DEFAULT_LOCALE
|
|
5271
|
-
),
|
|
5338
|
+
), q = C(
|
|
5272
5339
|
// prettier-ignore
|
|
5273
|
-
n && L ? n.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale :
|
|
5274
|
-
), U = C(getLocaleMessages(
|
|
5275
|
-
let ce = n ? n.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, se = n ? n.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, re = n ? n.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0,
|
|
5340
|
+
n && L ? n.fallbackLocale.value : isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : B.value
|
|
5341
|
+
), U = C(getLocaleMessages(B.value, e)), V = C(isPlainObject$1(e.datetimeFormats) ? e.datetimeFormats : { [B.value]: {} }), J = C(isPlainObject$1(e.numberFormats) ? e.numberFormats : { [B.value]: {} });
|
|
5342
|
+
let ce = n ? n.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, se = n ? n.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, re = n ? n.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, Y = !!e.fallbackFormat, Q = isFunction$1(e.missing) ? e.missing : null, ae = isFunction$1(e.missing) ? defineCoreMissingHandler(e.missing) : null, te = isFunction$1(e.postTranslation) ? e.postTranslation : null, oe = n ? n.warnHtmlMessage : isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, ne = !!e.escapeParameter;
|
|
5276
5343
|
const ie = n ? n.modifiers : isPlainObject$1(e.modifiers) ? e.modifiers : {};
|
|
5277
5344
|
let G = e.pluralRules || n && n.pluralRules, $;
|
|
5278
5345
|
$ = (() => {
|
|
5279
5346
|
c && setFallbackContext(null);
|
|
5280
5347
|
const ee = {
|
|
5281
5348
|
version: VERSION,
|
|
5282
|
-
locale:
|
|
5283
|
-
fallbackLocale:
|
|
5349
|
+
locale: B.value,
|
|
5350
|
+
fallbackLocale: q.value,
|
|
5284
5351
|
messages: U.value,
|
|
5285
5352
|
modifiers: ie,
|
|
5286
5353
|
pluralRules: G,
|
|
5287
5354
|
missing: ae === null ? void 0 : ae,
|
|
5288
5355
|
missingWarn: ce,
|
|
5289
5356
|
fallbackWarn: se,
|
|
5290
|
-
fallbackFormat:
|
|
5357
|
+
fallbackFormat: Y,
|
|
5291
5358
|
unresolving: !0,
|
|
5292
5359
|
postTranslation: te === null ? void 0 : te,
|
|
5293
5360
|
warnHtmlMessage: oe,
|
|
@@ -5299,25 +5366,25 @@ function createComposer(e = {}, t) {
|
|
|
5299
5366
|
ee.datetimeFormats = V.value, ee.numberFormats = J.value, ee.__datetimeFormatters = isPlainObject$1($) ? $.__datetimeFormatters : void 0, ee.__numberFormatters = isPlainObject$1($) ? $.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (ee.__v_emitter = isPlainObject$1($) ? $.__v_emitter : void 0);
|
|
5300
5367
|
const le = createCoreContext(ee);
|
|
5301
5368
|
return c && setFallbackContext(le), le;
|
|
5302
|
-
})(), updateFallbackLocale($,
|
|
5369
|
+
})(), updateFallbackLocale($, B.value, q.value);
|
|
5303
5370
|
function pe() {
|
|
5304
5371
|
return [
|
|
5305
|
-
|
|
5306
|
-
|
|
5372
|
+
B.value,
|
|
5373
|
+
q.value,
|
|
5307
5374
|
U.value,
|
|
5308
5375
|
V.value,
|
|
5309
5376
|
J.value
|
|
5310
5377
|
];
|
|
5311
5378
|
}
|
|
5312
5379
|
const de = computed({
|
|
5313
|
-
get: () =>
|
|
5380
|
+
get: () => B.value,
|
|
5314
5381
|
set: (ee) => {
|
|
5315
|
-
|
|
5382
|
+
B.value = ee, $.locale = B.value;
|
|
5316
5383
|
}
|
|
5317
5384
|
}), ge = computed({
|
|
5318
|
-
get: () =>
|
|
5385
|
+
get: () => q.value,
|
|
5319
5386
|
set: (ee) => {
|
|
5320
|
-
|
|
5387
|
+
q.value = ee, $.fallbackLocale = q.value, updateFallbackLocale($, B.value, ee);
|
|
5321
5388
|
}
|
|
5322
5389
|
}), ve = computed(() => U.value), Ae = /* @__PURE__ */ computed(() => V.value), Ce = /* @__PURE__ */ computed(() => J.value);
|
|
5323
5390
|
function Ee() {
|
|
@@ -5326,16 +5393,16 @@ function createComposer(e = {}, t) {
|
|
|
5326
5393
|
function Re(ee) {
|
|
5327
5394
|
te = ee, $.postTranslation = ee;
|
|
5328
5395
|
}
|
|
5329
|
-
function
|
|
5396
|
+
function Te() {
|
|
5330
5397
|
return Q;
|
|
5331
5398
|
}
|
|
5332
5399
|
function Fe(ee) {
|
|
5333
5400
|
ee !== null && (ae = defineCoreMissingHandler(ee)), Q = ee, $.missing = ae;
|
|
5334
5401
|
}
|
|
5335
|
-
function
|
|
5402
|
+
function ke(ee, le) {
|
|
5336
5403
|
return ee !== "translate" || !le.resolvedMessage;
|
|
5337
5404
|
}
|
|
5338
|
-
const he = (ee, le,
|
|
5405
|
+
const he = (ee, le, Oe, we, je, Be) => {
|
|
5339
5406
|
pe();
|
|
5340
5407
|
let xe;
|
|
5341
5408
|
try {
|
|
@@ -5343,19 +5410,19 @@ function createComposer(e = {}, t) {
|
|
|
5343
5410
|
} finally {
|
|
5344
5411
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, c || ($.fallbackContext = void 0);
|
|
5345
5412
|
}
|
|
5346
|
-
if (
|
|
5347
|
-
isNumber(xe) && xe === NOT_REOSLVED ||
|
|
5413
|
+
if (Oe !== "translate exists" && // for not `te` (e.g `t`)
|
|
5414
|
+
isNumber(xe) && xe === NOT_REOSLVED || Oe === "translate exists" && !xe) {
|
|
5348
5415
|
const [$e, We] = le();
|
|
5349
|
-
if (process.env.NODE_ENV !== "production" && n && isString$2($e) &&
|
|
5416
|
+
if (process.env.NODE_ENV !== "production" && n && isString$2($e) && ke(Oe, We) && (re && (isTranslateFallbackWarn(se, $e) || isTranslateMissingWarn(ce, $e)) && warn$2(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
|
|
5350
5417
|
key: $e,
|
|
5351
|
-
type:
|
|
5418
|
+
type: Oe
|
|
5352
5419
|
})), process.env.NODE_ENV !== "production")) {
|
|
5353
5420
|
const { __v_emitter: Ve } = $;
|
|
5354
5421
|
Ve && re && Ve.emit("fallback", {
|
|
5355
|
-
type:
|
|
5422
|
+
type: Oe,
|
|
5356
5423
|
key: $e,
|
|
5357
5424
|
to: "global",
|
|
5358
|
-
groupId: `${
|
|
5425
|
+
groupId: `${Oe}:${$e}`
|
|
5359
5426
|
});
|
|
5360
5427
|
}
|
|
5361
5428
|
return n && re ? we(n) : je($e);
|
|
@@ -5369,15 +5436,15 @@ function createComposer(e = {}, t) {
|
|
|
5369
5436
|
return he((le) => Reflect.apply(translate, null, [le, ...ee]), () => parseTranslateArgs(...ee), "translate", (le) => Reflect.apply(le.t, le, [...ee]), (le) => le, (le) => isString$2(le));
|
|
5370
5437
|
}
|
|
5371
5438
|
function fe(...ee) {
|
|
5372
|
-
const [le,
|
|
5439
|
+
const [le, Oe, we] = ee;
|
|
5373
5440
|
if (we && !isObject$2(we))
|
|
5374
5441
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5375
|
-
return Le(le,
|
|
5442
|
+
return Le(le, Oe, assign$1({ resolvedMessage: !0 }, we || {}));
|
|
5376
5443
|
}
|
|
5377
5444
|
function Pe(...ee) {
|
|
5378
5445
|
return he((le) => Reflect.apply(datetime, null, [le, ...ee]), () => parseDateTimeArgs(...ee), "datetime format", (le) => Reflect.apply(le.d, le, [...ee]), () => MISSING_RESOLVE_VALUE, (le) => isString$2(le));
|
|
5379
5446
|
}
|
|
5380
|
-
function
|
|
5447
|
+
function Me(...ee) {
|
|
5381
5448
|
return he((le) => Reflect.apply(number, null, [le, ...ee]), () => parseNumberArgs(...ee), "number format", (le) => Reflect.apply(le.n, le, [...ee]), () => MISSING_RESOLVE_VALUE, (le) => isString$2(le));
|
|
5382
5449
|
}
|
|
5383
5450
|
function De(ee) {
|
|
@@ -5391,14 +5458,14 @@ function createComposer(e = {}, t) {
|
|
|
5391
5458
|
function D(...ee) {
|
|
5392
5459
|
return he(
|
|
5393
5460
|
(le) => {
|
|
5394
|
-
let
|
|
5461
|
+
let Oe;
|
|
5395
5462
|
const we = le;
|
|
5396
5463
|
try {
|
|
5397
|
-
we.processor = be,
|
|
5464
|
+
we.processor = be, Oe = Reflect.apply(translate, null, [we, ...ee]);
|
|
5398
5465
|
} finally {
|
|
5399
5466
|
we.processor = null;
|
|
5400
5467
|
}
|
|
5401
|
-
return
|
|
5468
|
+
return Oe;
|
|
5402
5469
|
},
|
|
5403
5470
|
() => parseTranslateArgs(...ee),
|
|
5404
5471
|
"translate",
|
|
@@ -5419,7 +5486,7 @@ function createComposer(e = {}, t) {
|
|
|
5419
5486
|
(le) => isString$2(le) || isArray$1(le)
|
|
5420
5487
|
);
|
|
5421
5488
|
}
|
|
5422
|
-
function
|
|
5489
|
+
function W(...ee) {
|
|
5423
5490
|
return he(
|
|
5424
5491
|
(le) => Reflect.apply(datetime, null, [le, ...ee]),
|
|
5425
5492
|
() => parseDateTimeArgs(...ee),
|
|
@@ -5437,15 +5504,15 @@ function createComposer(e = {}, t) {
|
|
|
5437
5504
|
return he(() => {
|
|
5438
5505
|
if (!ee)
|
|
5439
5506
|
return !1;
|
|
5440
|
-
const
|
|
5507
|
+
const Oe = isString$2(le) ? le : B.value, we = j(Oe), je = $.messageResolver(we, ee);
|
|
5441
5508
|
return A ? je != null : isMessageAST(je) || isMessageFunction(je) || isString$2(je);
|
|
5442
|
-
}, () => [ee], "translate exists", (
|
|
5509
|
+
}, () => [ee], "translate exists", (Oe) => Reflect.apply(Oe.te, Oe, [ee, le]), NOOP_RETURN_FALSE, (Oe) => isBoolean(Oe));
|
|
5443
5510
|
}
|
|
5444
5511
|
function F(ee) {
|
|
5445
5512
|
let le = null;
|
|
5446
|
-
const
|
|
5447
|
-
for (let we = 0; we <
|
|
5448
|
-
const je = U.value[
|
|
5513
|
+
const Oe = fallbackWithLocaleChain($, q.value, B.value);
|
|
5514
|
+
for (let we = 0; we < Oe.length; we++) {
|
|
5515
|
+
const je = U.value[Oe[we]] || {}, Be = $.messageResolver(je, ee);
|
|
5449
5516
|
if (Be != null) {
|
|
5450
5517
|
le = Be;
|
|
5451
5518
|
break;
|
|
@@ -5462,20 +5529,20 @@ function createComposer(e = {}, t) {
|
|
|
5462
5529
|
}
|
|
5463
5530
|
function K(ee, le) {
|
|
5464
5531
|
if (l) {
|
|
5465
|
-
const
|
|
5466
|
-
for (const we in
|
|
5467
|
-
hasOwn$1(
|
|
5468
|
-
le =
|
|
5532
|
+
const Oe = { [ee]: le };
|
|
5533
|
+
for (const we in Oe)
|
|
5534
|
+
hasOwn$1(Oe, we) && handleFlatJson(Oe[we]);
|
|
5535
|
+
le = Oe[ee];
|
|
5469
5536
|
}
|
|
5470
5537
|
U.value[ee] = le, $.messages = U.value;
|
|
5471
5538
|
}
|
|
5472
5539
|
function Z(ee, le) {
|
|
5473
5540
|
U.value[ee] = U.value[ee] || {};
|
|
5474
|
-
const
|
|
5541
|
+
const Oe = { [ee]: le };
|
|
5475
5542
|
if (l)
|
|
5476
|
-
for (const we in
|
|
5477
|
-
hasOwn$1(
|
|
5478
|
-
le =
|
|
5543
|
+
for (const we in Oe)
|
|
5544
|
+
hasOwn$1(Oe, we) && handleFlatJson(Oe[we]);
|
|
5545
|
+
le = Oe[ee], deepCopy(le, U.value[ee]), $.messages = U.value;
|
|
5479
5546
|
}
|
|
5480
5547
|
function z(ee) {
|
|
5481
5548
|
return V.value[ee] || {};
|
|
@@ -5496,9 +5563,9 @@ function createComposer(e = {}, t) {
|
|
|
5496
5563
|
J.value[ee] = assign$1(J.value[ee] || {}, le), $.numberFormats = J.value, clearNumberFormat($, ee, le);
|
|
5497
5564
|
}
|
|
5498
5565
|
composerID++, n && inBrowser && (watch(n.locale, (ee) => {
|
|
5499
|
-
L && (
|
|
5566
|
+
L && (B.value = ee, $.locale = ee, updateFallbackLocale($, B.value, q.value));
|
|
5500
5567
|
}), watch(n.fallbackLocale, (ee) => {
|
|
5501
|
-
L && (
|
|
5568
|
+
L && (q.value = ee, $.fallbackLocale = ee, updateFallbackLocale($, B.value, q.value));
|
|
5502
5569
|
}));
|
|
5503
5570
|
const Ne = {
|
|
5504
5571
|
id: composerID,
|
|
@@ -5508,7 +5575,7 @@ function createComposer(e = {}, t) {
|
|
|
5508
5575
|
return L;
|
|
5509
5576
|
},
|
|
5510
5577
|
set inheritLocale(ee) {
|
|
5511
|
-
L = ee, ee && n && (
|
|
5578
|
+
L = ee, ee && n && (B.value = n.locale.value, q.value = n.fallbackLocale.value, updateFallbackLocale($, B.value, q.value));
|
|
5512
5579
|
},
|
|
5513
5580
|
get availableLocales() {
|
|
5514
5581
|
return Object.keys(U.value).sort();
|
|
@@ -5542,10 +5609,10 @@ function createComposer(e = {}, t) {
|
|
|
5542
5609
|
re = ee;
|
|
5543
5610
|
},
|
|
5544
5611
|
get fallbackFormat() {
|
|
5545
|
-
return
|
|
5612
|
+
return Y;
|
|
5546
5613
|
},
|
|
5547
5614
|
set fallbackFormat(ee) {
|
|
5548
|
-
|
|
5615
|
+
Y = ee, $.fallbackFormat = Y;
|
|
5549
5616
|
},
|
|
5550
5617
|
get warnHtmlMessage() {
|
|
5551
5618
|
return oe;
|
|
@@ -5565,18 +5632,18 @@ function createComposer(e = {}, t) {
|
|
|
5565
5632
|
mergeLocaleMessage: Z,
|
|
5566
5633
|
getPostTranslationHandler: Ee,
|
|
5567
5634
|
setPostTranslationHandler: Re,
|
|
5568
|
-
getMissingHandler:
|
|
5635
|
+
getMissingHandler: Te,
|
|
5569
5636
|
setMissingHandler: Fe,
|
|
5570
5637
|
[SetPluralRulesSymbol]: R
|
|
5571
5638
|
};
|
|
5572
|
-
return Ne.datetimeFormats = Ae, Ne.numberFormats = Ce, Ne.rt = fe, Ne.te = I, Ne.tm = H, Ne.d = Pe, Ne.n =
|
|
5639
|
+
return Ne.datetimeFormats = Ae, Ne.numberFormats = Ce, Ne.rt = fe, Ne.te = I, Ne.tm = H, Ne.d = Pe, Ne.n = Me, Ne.getDateTimeFormat = z, Ne.setDateTimeFormat = ue, Ne.mergeDateTimeFormat = me, Ne.getNumberFormat = _e, Ne.setNumberFormat = ye, Ne.mergeNumberFormat = Se, Ne[InejctWithOptionSymbol] = s, Ne[TranslateVNodeSymbol] = D, Ne[DatetimePartsSymbol] = W, Ne[NumberPartsSymbol] = M, process.env.NODE_ENV !== "production" && (Ne[EnableEmitter] = (ee) => {
|
|
5573
5640
|
$.__v_emitter = ee;
|
|
5574
5641
|
}, Ne[DisableEmitter] = () => {
|
|
5575
5642
|
$.__v_emitter = void 0;
|
|
5576
5643
|
}), Ne;
|
|
5577
5644
|
}
|
|
5578
5645
|
function convertComposerOptions(e) {
|
|
5579
|
-
const t = isString$2(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = isFunction$1(e.missing) ? e.missing : void 0, c = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, C = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.formatFallbackMessages, L = isPlainObject$1(e.modifiers) ? e.modifiers : {},
|
|
5646
|
+
const t = isString$2(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString$2(e.fallbackLocale) || isArray$1(e.fallbackLocale) || isPlainObject$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = isFunction$1(e.missing) ? e.missing : void 0, c = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, l = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, C = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.formatFallbackMessages, L = isPlainObject$1(e.modifiers) ? e.modifiers : {}, B = e.pluralizationRules, q = isFunction$1(e.postTranslation) ? e.postTranslation : void 0, U = isString$2(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, V = !!e.escapeParameterHtml, J = isBoolean(e.sync) ? e.sync : !0;
|
|
5580
5647
|
process.env.NODE_ENV !== "production" && e.formatter && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
5581
5648
|
let ce = e.messages;
|
|
5582
5649
|
if (isPlainObject$1(e.sharedMessages)) {
|
|
@@ -5586,7 +5653,7 @@ function convertComposerOptions(e) {
|
|
|
5586
5653
|
return assign$1(X, ne[$]), G;
|
|
5587
5654
|
}, ce || {});
|
|
5588
5655
|
}
|
|
5589
|
-
const { __i18n: se, __root: re, __injectWithOption:
|
|
5656
|
+
const { __i18n: se, __root: re, __injectWithOption: Y } = e, Q = e.datetimeFormats, ae = e.numberFormats, te = e.flatJson, oe = e.translateExistCompatible;
|
|
5590
5657
|
return {
|
|
5591
5658
|
locale: t,
|
|
5592
5659
|
fallbackLocale: n,
|
|
@@ -5600,8 +5667,8 @@ function convertComposerOptions(e) {
|
|
|
5600
5667
|
fallbackRoot: C,
|
|
5601
5668
|
fallbackFormat: A,
|
|
5602
5669
|
modifiers: L,
|
|
5603
|
-
pluralRules:
|
|
5604
|
-
postTranslation:
|
|
5670
|
+
pluralRules: B,
|
|
5671
|
+
postTranslation: q,
|
|
5605
5672
|
warnHtmlMessage: U,
|
|
5606
5673
|
escapeParameter: V,
|
|
5607
5674
|
messageResolver: e.messageResolver,
|
|
@@ -5609,7 +5676,7 @@ function convertComposerOptions(e) {
|
|
|
5609
5676
|
translateExistCompatible: oe,
|
|
5610
5677
|
__i18n: se,
|
|
5611
5678
|
__root: re,
|
|
5612
|
-
__injectWithOption:
|
|
5679
|
+
__injectWithOption: Y
|
|
5613
5680
|
};
|
|
5614
5681
|
}
|
|
5615
5682
|
function createVueI18n(e = {}, t) {
|
|
@@ -5733,15 +5800,15 @@ function createVueI18n(e = {}, t) {
|
|
|
5733
5800
|
__composer: n,
|
|
5734
5801
|
// t
|
|
5735
5802
|
t(...l) {
|
|
5736
|
-
const [C, A, L] = l,
|
|
5737
|
-
let
|
|
5803
|
+
const [C, A, L] = l, B = {};
|
|
5804
|
+
let q = null, U = null;
|
|
5738
5805
|
if (!isString$2(C))
|
|
5739
5806
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5740
5807
|
const V = C;
|
|
5741
|
-
return isString$2(A) ?
|
|
5808
|
+
return isString$2(A) ? B.locale = A : isArray$1(A) ? q = A : isPlainObject$1(A) && (U = A), isArray$1(L) ? q = L : isPlainObject$1(L) && (U = L), Reflect.apply(n.t, n, [
|
|
5742
5809
|
V,
|
|
5743
|
-
|
|
5744
|
-
|
|
5810
|
+
q || U || {},
|
|
5811
|
+
B
|
|
5745
5812
|
]);
|
|
5746
5813
|
},
|
|
5747
5814
|
rt(...l) {
|
|
@@ -5749,15 +5816,15 @@ function createVueI18n(e = {}, t) {
|
|
|
5749
5816
|
},
|
|
5750
5817
|
// tc
|
|
5751
5818
|
tc(...l) {
|
|
5752
|
-
const [C, A, L] = l,
|
|
5753
|
-
let
|
|
5819
|
+
const [C, A, L] = l, B = { plural: 1 };
|
|
5820
|
+
let q = null, U = null;
|
|
5754
5821
|
if (!isString$2(C))
|
|
5755
5822
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
|
5756
5823
|
const V = C;
|
|
5757
|
-
return isString$2(A) ?
|
|
5824
|
+
return isString$2(A) ? B.locale = A : isNumber(A) ? B.plural = A : isArray$1(A) ? q = A : isPlainObject$1(A) && (U = A), isString$2(L) ? B.locale = L : isArray$1(L) ? q = L : isPlainObject$1(L) && (U = L), Reflect.apply(n.t, n, [
|
|
5758
5825
|
V,
|
|
5759
|
-
|
|
5760
|
-
|
|
5826
|
+
q || U || {},
|
|
5827
|
+
B
|
|
5761
5828
|
]);
|
|
5762
5829
|
},
|
|
5763
5830
|
// te
|
|
@@ -5882,8 +5949,8 @@ const TranslationImpl = /* @__PURE__ */ defineComponent({
|
|
|
5882
5949
|
return () => {
|
|
5883
5950
|
const l = Object.keys(n).filter((U) => U !== "_"), C = {};
|
|
5884
5951
|
e.locale && (C.locale = e.locale), e.plural !== void 0 && (C.plural = isString$2(e.plural) ? +e.plural : e.plural);
|
|
5885
|
-
const A = getInterpolateArg(t, l), L = c[TranslateVNodeSymbol](e.keypath, A, C),
|
|
5886
|
-
return h(
|
|
5952
|
+
const A = getInterpolateArg(t, l), L = c[TranslateVNodeSymbol](e.keypath, A, C), B = assign$1({}, s), q = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
5953
|
+
return h(q, B, L);
|
|
5887
5954
|
};
|
|
5888
5955
|
}
|
|
5889
5956
|
}), Translation = TranslationImpl;
|
|
@@ -5897,13 +5964,13 @@ function renderFormatter(e, t, n, s) {
|
|
|
5897
5964
|
let A = {};
|
|
5898
5965
|
e.locale && (C.locale = e.locale), isString$2(e.format) ? C.key = e.format : isObject$2(e.format) && (isString$2(e.format.key) && (C.key = e.format.key), A = Object.keys(e.format).reduce((V, J) => n.includes(J) ? assign$1({}, V, { [J]: e.format[J] }) : V, {}));
|
|
5899
5966
|
const L = s(e.value, C, A);
|
|
5900
|
-
let
|
|
5901
|
-
isArray$1(L) ?
|
|
5967
|
+
let B = [C.key];
|
|
5968
|
+
isArray$1(L) ? B = L.map((V, J) => {
|
|
5902
5969
|
const ce = c[V.type], se = ce ? ce({ [V.type]: V.value, index: J, parts: L }) : [V.value];
|
|
5903
5970
|
return isVNode(se) && (se[0].key = `${V.type}-${J}`), se;
|
|
5904
|
-
}) : isString$2(L) && (
|
|
5905
|
-
const
|
|
5906
|
-
return h(U,
|
|
5971
|
+
}) : isString$2(L) && (B = [L]);
|
|
5972
|
+
const q = assign$1({}, l), U = isString$2(e.tag) || isObject$2(e.tag) ? e.tag : getFragmentableTag();
|
|
5973
|
+
return h(U, q, B);
|
|
5907
5974
|
};
|
|
5908
5975
|
}
|
|
5909
5976
|
const NumberFormatImpl = /* @__PURE__ */ defineComponent({
|
|
@@ -5966,32 +6033,32 @@ function getComposer$2(e, t) {
|
|
|
5966
6033
|
}
|
|
5967
6034
|
function vTDirective(e) {
|
|
5968
6035
|
const t = (C) => {
|
|
5969
|
-
const { instance: A, modifiers: L, value:
|
|
6036
|
+
const { instance: A, modifiers: L, value: B } = C;
|
|
5970
6037
|
if (!A || !A.$)
|
|
5971
6038
|
throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
|
|
5972
|
-
const
|
|
6039
|
+
const q = getComposer$2(e, A.$);
|
|
5973
6040
|
process.env.NODE_ENV !== "production" && L.preserve && warn$2(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));
|
|
5974
|
-
const U = parseValue(
|
|
6041
|
+
const U = parseValue(B);
|
|
5975
6042
|
return [
|
|
5976
|
-
Reflect.apply(
|
|
5977
|
-
|
|
6043
|
+
Reflect.apply(q.t, q, [...makeParams(U)]),
|
|
6044
|
+
q
|
|
5978
6045
|
];
|
|
5979
6046
|
};
|
|
5980
6047
|
return {
|
|
5981
6048
|
created: (C, A) => {
|
|
5982
|
-
const [L,
|
|
5983
|
-
inBrowser && e.global ===
|
|
6049
|
+
const [L, B] = t(A);
|
|
6050
|
+
inBrowser && e.global === B && (C.__i18nWatcher = watch(B.locale, () => {
|
|
5984
6051
|
A.instance && A.instance.$forceUpdate();
|
|
5985
|
-
})), C.__composer =
|
|
6052
|
+
})), C.__composer = B, C.textContent = L;
|
|
5986
6053
|
},
|
|
5987
6054
|
unmounted: (C) => {
|
|
5988
6055
|
inBrowser && C.__i18nWatcher && (C.__i18nWatcher(), C.__i18nWatcher = void 0, delete C.__i18nWatcher), C.__composer && (C.__composer = void 0, delete C.__composer);
|
|
5989
6056
|
},
|
|
5990
6057
|
beforeUpdate: (C, { value: A }) => {
|
|
5991
6058
|
if (C.__composer) {
|
|
5992
|
-
const L = C.__composer,
|
|
6059
|
+
const L = C.__composer, B = parseValue(A);
|
|
5993
6060
|
C.textContent = Reflect.apply(L.t, L, [
|
|
5994
|
-
...makeParams(
|
|
6061
|
+
...makeParams(B)
|
|
5995
6062
|
]);
|
|
5996
6063
|
}
|
|
5997
6064
|
},
|
|
@@ -6261,7 +6328,7 @@ function makeScopeInspectState(e) {
|
|
|
6261
6328
|
}
|
|
6262
6329
|
];
|
|
6263
6330
|
t[C] = A;
|
|
6264
|
-
const L = "Datetime formats info",
|
|
6331
|
+
const L = "Datetime formats info", B = [
|
|
6265
6332
|
{
|
|
6266
6333
|
type: L,
|
|
6267
6334
|
key: "numberFormats",
|
|
@@ -6269,7 +6336,7 @@ function makeScopeInspectState(e) {
|
|
|
6269
6336
|
value: e.numberFormats.value
|
|
6270
6337
|
}
|
|
6271
6338
|
];
|
|
6272
|
-
t[L] =
|
|
6339
|
+
t[L] = B;
|
|
6273
6340
|
}
|
|
6274
6341
|
return t;
|
|
6275
6342
|
}
|
|
@@ -6358,10 +6425,10 @@ const I18nInjectionKey = /* @__PURE__ */ makeSymbol("global-vue-i18n");
|
|
|
6358
6425
|
function createI18n(e = {}, t) {
|
|
6359
6426
|
const n = __VUE_I18N_LEGACY_API__ && isBoolean(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, s = isBoolean(e.globalInjection) ? e.globalInjection : !0, c = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : !0, l = /* @__PURE__ */ new Map(), [C, A] = createGlobal(e, n), L = /* @__PURE__ */ makeSymbol(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
6360
6427
|
process.env.NODE_ENV !== "production" && n && c && warn$2(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));
|
|
6361
|
-
function
|
|
6428
|
+
function B(V) {
|
|
6362
6429
|
return l.get(V) || null;
|
|
6363
6430
|
}
|
|
6364
|
-
function
|
|
6431
|
+
function q(V, J) {
|
|
6365
6432
|
l.set(V, J);
|
|
6366
6433
|
}
|
|
6367
6434
|
function U(V) {
|
|
@@ -6380,8 +6447,8 @@ function createI18n(e = {}, t) {
|
|
|
6380
6447
|
// install plugin
|
|
6381
6448
|
async install(J, ...ce) {
|
|
6382
6449
|
if ((process.env.NODE_ENV !== "production" || __VUE_PROD_DEVTOOLS__) && (J.__VUE_I18N__ = V), J.__VUE_I18N_SYMBOL__ = L, J.provide(J.__VUE_I18N_SYMBOL__, V), isPlainObject$1(ce[0])) {
|
|
6383
|
-
const
|
|
6384
|
-
V.__composerExtend =
|
|
6450
|
+
const Y = ce[0];
|
|
6451
|
+
V.__composerExtend = Y.__composerExtend, V.__vueI18nExtend = Y.__vueI18nExtend;
|
|
6385
6452
|
}
|
|
6386
6453
|
let se = null;
|
|
6387
6454
|
!n && s && (se = injectGlobalFields(J, V.global)), __VUE_I18N_FULL_INSTALL__ && apply(J, V, ...ce), __VUE_I18N_LEGACY_API__ && n && J.mixin(defineMixin(A, A.__composer, V));
|
|
@@ -6412,9 +6479,9 @@ function createI18n(e = {}, t) {
|
|
|
6412
6479
|
// @internal
|
|
6413
6480
|
__instances: l,
|
|
6414
6481
|
// @internal
|
|
6415
|
-
__getInstance:
|
|
6482
|
+
__getInstance: B,
|
|
6416
6483
|
// @internal
|
|
6417
|
-
__setInstance:
|
|
6484
|
+
__setInstance: q,
|
|
6418
6485
|
// @internal
|
|
6419
6486
|
__deleteInstance: U
|
|
6420
6487
|
};
|
|
@@ -6516,13 +6583,13 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6516
6583
|
), L = ref(
|
|
6517
6584
|
// prettier-ignore
|
|
6518
6585
|
!c || C ? n.fallbackLocale.value : isString$2(s.fallbackLocale) || isArray$1(s.fallbackLocale) || isPlainObject$1(s.fallbackLocale) || s.fallbackLocale === !1 ? s.fallbackLocale : A.value
|
|
6519
|
-
),
|
|
6586
|
+
), B = ref(getLocaleMessages(A.value, s)), q = ref(isPlainObject$1(s.datetimeFormats) ? s.datetimeFormats : { [A.value]: {} }), U = ref(isPlainObject$1(s.numberFormats) ? s.numberFormats : { [A.value]: {} }), V = c ? n.missingWarn : isBoolean(s.missingWarn) || isRegExp(s.missingWarn) ? s.missingWarn : !0, J = c ? n.fallbackWarn : isBoolean(s.fallbackWarn) || isRegExp(s.fallbackWarn) ? s.fallbackWarn : !0, ce = c ? n.fallbackRoot : isBoolean(s.fallbackRoot) ? s.fallbackRoot : !0, se = !!s.fallbackFormat, re = isFunction$1(s.missing) ? s.missing : null, Y = isFunction$1(s.postTranslation) ? s.postTranslation : null, Q = c ? n.warnHtmlMessage : isBoolean(s.warnHtmlMessage) ? s.warnHtmlMessage : !0, ae = !!s.escapeParameter, te = c ? n.modifiers : isPlainObject$1(s.modifiers) ? s.modifiers : {}, oe = s.pluralRules || c && n.pluralRules;
|
|
6520
6587
|
function ne() {
|
|
6521
6588
|
return [
|
|
6522
6589
|
A.value,
|
|
6523
6590
|
L.value,
|
|
6524
|
-
|
|
6525
|
-
|
|
6591
|
+
B.value,
|
|
6592
|
+
q.value,
|
|
6526
6593
|
U.value
|
|
6527
6594
|
];
|
|
6528
6595
|
}
|
|
@@ -6536,9 +6603,9 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6536
6603
|
set: (I) => {
|
|
6537
6604
|
l.value && (l.value.fallbackLocale.value = I), L.value = I;
|
|
6538
6605
|
}
|
|
6539
|
-
}), $ = computed(() => l.value ? l.value.messages.value :
|
|
6606
|
+
}), $ = computed(() => l.value ? l.value.messages.value : B.value), X = computed(() => q.value), pe = computed(() => U.value);
|
|
6540
6607
|
function de() {
|
|
6541
|
-
return l.value ? l.value.getPostTranslationHandler() :
|
|
6608
|
+
return l.value ? l.value.getPostTranslationHandler() : Y;
|
|
6542
6609
|
}
|
|
6543
6610
|
function ge(I) {
|
|
6544
6611
|
l.value && l.value.setPostTranslationHandler(I);
|
|
@@ -6558,13 +6625,13 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6558
6625
|
function Re(...I) {
|
|
6559
6626
|
return l.value ? Reflect.apply(l.value.rt, null, [...I]) : "";
|
|
6560
6627
|
}
|
|
6561
|
-
function
|
|
6628
|
+
function Te(...I) {
|
|
6562
6629
|
return l.value ? Ce(() => Reflect.apply(l.value.d, null, [...I])) : Ce(() => "");
|
|
6563
6630
|
}
|
|
6564
6631
|
function Fe(...I) {
|
|
6565
6632
|
return l.value ? Ce(() => Reflect.apply(l.value.n, null, [...I])) : Ce(() => "");
|
|
6566
6633
|
}
|
|
6567
|
-
function
|
|
6634
|
+
function ke(I) {
|
|
6568
6635
|
return l.value ? l.value.tm(I) : {};
|
|
6569
6636
|
}
|
|
6570
6637
|
function he(I, F) {
|
|
@@ -6574,16 +6641,16 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6574
6641
|
return l.value ? l.value.getLocaleMessage(I) : {};
|
|
6575
6642
|
}
|
|
6576
6643
|
function fe(I, F) {
|
|
6577
|
-
l.value && (l.value.setLocaleMessage(I, F),
|
|
6644
|
+
l.value && (l.value.setLocaleMessage(I, F), B.value[I] = F);
|
|
6578
6645
|
}
|
|
6579
6646
|
function Pe(I, F) {
|
|
6580
6647
|
l.value && l.value.mergeLocaleMessage(I, F);
|
|
6581
6648
|
}
|
|
6582
|
-
function
|
|
6649
|
+
function Me(I) {
|
|
6583
6650
|
return l.value ? l.value.getDateTimeFormat(I) : {};
|
|
6584
6651
|
}
|
|
6585
6652
|
function De(I, F) {
|
|
6586
|
-
l.value && (l.value.setDateTimeFormat(I, F),
|
|
6653
|
+
l.value && (l.value.setDateTimeFormat(I, F), q.value[I] = F);
|
|
6587
6654
|
}
|
|
6588
6655
|
function Ie(I, F) {
|
|
6589
6656
|
l.value && l.value.mergeDateTimeFormat(I, F);
|
|
@@ -6597,7 +6664,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6597
6664
|
function M(I, F) {
|
|
6598
6665
|
l.value && l.value.mergeNumberFormat(I, F);
|
|
6599
6666
|
}
|
|
6600
|
-
const
|
|
6667
|
+
const W = {
|
|
6601
6668
|
get id() {
|
|
6602
6669
|
return l.value ? l.value.id : -1;
|
|
6603
6670
|
},
|
|
@@ -6613,7 +6680,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6613
6680
|
l.value && (l.value.inheritLocale = I);
|
|
6614
6681
|
},
|
|
6615
6682
|
get availableLocales() {
|
|
6616
|
-
return l.value ? l.value.availableLocales : Object.keys(
|
|
6683
|
+
return l.value ? l.value.availableLocales : Object.keys(B.value);
|
|
6617
6684
|
},
|
|
6618
6685
|
get modifiers() {
|
|
6619
6686
|
return l.value ? l.value.modifiers : te;
|
|
@@ -6666,14 +6733,14 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6666
6733
|
getMissingHandler: ve,
|
|
6667
6734
|
setMissingHandler: Ae,
|
|
6668
6735
|
rt: Re,
|
|
6669
|
-
d:
|
|
6736
|
+
d: Te,
|
|
6670
6737
|
n: Fe,
|
|
6671
|
-
tm:
|
|
6738
|
+
tm: ke,
|
|
6672
6739
|
te: he,
|
|
6673
6740
|
getLocaleMessage: Le,
|
|
6674
6741
|
setLocaleMessage: fe,
|
|
6675
6742
|
mergeLocaleMessage: Pe,
|
|
6676
|
-
getDateTimeFormat:
|
|
6743
|
+
getDateTimeFormat: Me,
|
|
6677
6744
|
setDateTimeFormat: De,
|
|
6678
6745
|
mergeDateTimeFormat: Ie,
|
|
6679
6746
|
getNumberFormat: be,
|
|
@@ -6681,10 +6748,10 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6681
6748
|
mergeNumberFormat: M
|
|
6682
6749
|
};
|
|
6683
6750
|
function R(I) {
|
|
6684
|
-
I.locale.value = A.value, I.fallbackLocale.value = L.value, Object.keys(
|
|
6685
|
-
I.mergeLocaleMessage(F,
|
|
6686
|
-
}), Object.keys(
|
|
6687
|
-
I.mergeDateTimeFormat(F,
|
|
6751
|
+
I.locale.value = A.value, I.fallbackLocale.value = L.value, Object.keys(B.value).forEach((F) => {
|
|
6752
|
+
I.mergeLocaleMessage(F, B.value[F]);
|
|
6753
|
+
}), Object.keys(q.value).forEach((F) => {
|
|
6754
|
+
I.mergeDateTimeFormat(F, q.value[F]);
|
|
6688
6755
|
}), Object.keys(U.value).forEach((F) => {
|
|
6689
6756
|
I.mergeNumberFormat(F, U.value[F]);
|
|
6690
6757
|
}), I.escapeParameter = ae, I.fallbackFormat = se, I.fallbackRoot = ce, I.fallbackWarn = J, I.missingWarn = V, I.warnHtmlMessage = Q;
|
|
@@ -6693,8 +6760,8 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
6693
6760
|
if (e.proxy == null || e.proxy.$i18n == null)
|
|
6694
6761
|
throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
6695
6762
|
const I = l.value = e.proxy.$i18n.__composer;
|
|
6696
|
-
t === "global" ? (A.value = I.locale.value, L.value = I.fallbackLocale.value,
|
|
6697
|
-
}),
|
|
6763
|
+
t === "global" ? (A.value = I.locale.value, L.value = I.fallbackLocale.value, B.value = I.messages.value, q.value = I.datetimeFormats.value, U.value = I.numberFormats.value) : c && R(I);
|
|
6764
|
+
}), W;
|
|
6698
6765
|
}
|
|
6699
6766
|
const globalExportProps = [
|
|
6700
6767
|
"locale",
|
|
@@ -6822,7 +6889,7 @@ License: MIT
|
|
|
6822
6889
|
$.escapeChar !== void 0 && (Ae = $.escapeChar + ve), (typeof $.escapeFormulae == "boolean" || $.escapeFormulae instanceof RegExp) && (Re = $.escapeFormulae instanceof RegExp ? $.escapeFormulae : /^[=+\-@\t\r].*$/);
|
|
6823
6890
|
}
|
|
6824
6891
|
})();
|
|
6825
|
-
var
|
|
6892
|
+
var Te = new RegExp(re(ve), "g");
|
|
6826
6893
|
if (typeof G == "string" && (G = JSON.parse(G)), Array.isArray(G)) {
|
|
6827
6894
|
if (!G.length || Array.isArray(G[0]))
|
|
6828
6895
|
return Fe(null, G, Ce);
|
|
@@ -6834,15 +6901,15 @@ License: MIT
|
|
|
6834
6901
|
function Fe(he, Le, fe) {
|
|
6835
6902
|
var Pe = "";
|
|
6836
6903
|
typeof he == "string" && (he = JSON.parse(he)), typeof Le == "string" && (Le = JSON.parse(Le));
|
|
6837
|
-
var
|
|
6838
|
-
if (
|
|
6904
|
+
var Me = Array.isArray(he) && 0 < he.length, De = !Array.isArray(Le[0]);
|
|
6905
|
+
if (Me && pe) {
|
|
6839
6906
|
for (var Ie = 0; Ie < he.length; Ie++)
|
|
6840
|
-
0 < Ie && (Pe += de), Pe +=
|
|
6907
|
+
0 < Ie && (Pe += de), Pe += ke(he[Ie], Ie);
|
|
6841
6908
|
0 < Le.length && (Pe += ge);
|
|
6842
6909
|
}
|
|
6843
6910
|
for (var be = 0; be < Le.length; be++) {
|
|
6844
|
-
var D =
|
|
6845
|
-
if (fe && !
|
|
6911
|
+
var D = Me ? he.length : Le[be].length, M = !1, W = Me ? Object.keys(Le[be]).length === 0 : Le[be].length === 0;
|
|
6912
|
+
if (fe && !Me && (M = fe === "greedy" ? Le[be].join("").trim() === "" : Le[be].length === 1 && Le[be][0].length === 0), fe === "greedy" && Me) {
|
|
6846
6913
|
for (var R = [], I = 0; I < D; I++) {
|
|
6847
6914
|
var F = De ? he[I] : I;
|
|
6848
6915
|
R.push(Le[be][F]);
|
|
@@ -6851,41 +6918,41 @@ License: MIT
|
|
|
6851
6918
|
}
|
|
6852
6919
|
if (!M) {
|
|
6853
6920
|
for (var H = 0; H < D; H++) {
|
|
6854
|
-
0 < H && !
|
|
6855
|
-
var j =
|
|
6856
|
-
Pe +=
|
|
6921
|
+
0 < H && !W && (Pe += de);
|
|
6922
|
+
var j = Me && De ? he[H] : H;
|
|
6923
|
+
Pe += ke(Le[be][j], H);
|
|
6857
6924
|
}
|
|
6858
|
-
be < Le.length - 1 && (!fe || 0 < D && !
|
|
6925
|
+
be < Le.length - 1 && (!fe || 0 < D && !W) && (Pe += ge);
|
|
6859
6926
|
}
|
|
6860
6927
|
}
|
|
6861
6928
|
return Pe;
|
|
6862
6929
|
}
|
|
6863
|
-
function
|
|
6930
|
+
function ke(he, Le) {
|
|
6864
6931
|
if (he == null)
|
|
6865
6932
|
return "";
|
|
6866
6933
|
if (he.constructor === Date)
|
|
6867
6934
|
return JSON.stringify(he).slice(1, 25);
|
|
6868
6935
|
var fe = !1;
|
|
6869
6936
|
Re && typeof he == "string" && Re.test(he) && (he = "'" + he, fe = !0);
|
|
6870
|
-
var Pe = he.toString().replace(
|
|
6871
|
-
return (fe = fe || X === !0 || typeof X == "function" && X(he, Le) || Array.isArray(X) && X[Le] || function(
|
|
6937
|
+
var Pe = he.toString().replace(Te, Ae);
|
|
6938
|
+
return (fe = fe || X === !0 || typeof X == "function" && X(he, Le) || Array.isArray(X) && X[Le] || function(Me, De) {
|
|
6872
6939
|
for (var Ie = 0; Ie < De.length; Ie++)
|
|
6873
|
-
if (-1 <
|
|
6940
|
+
if (-1 < Me.indexOf(De[Ie]))
|
|
6874
6941
|
return !0;
|
|
6875
6942
|
return !1;
|
|
6876
6943
|
}(Pe, L.BAD_DELIMITERS) || -1 < Pe.indexOf(de) || Pe.charAt(0) === " " || Pe.charAt(Pe.length - 1) === " ") ? ve + Pe + ve : Pe;
|
|
6877
6944
|
}
|
|
6878
6945
|
} };
|
|
6879
6946
|
if (L.RECORD_SEP = String.fromCharCode(30), L.UNIT_SEP = String.fromCharCode(31), L.BYTE_ORDER_MARK = "\uFEFF", L.BAD_DELIMITERS = ["\r", `
|
|
6880
|
-
`, '"', L.BYTE_ORDER_MARK], L.WORKERS_SUPPORTED = !c && !!s.Worker, L.NODE_STREAM_INPUT = 1, L.LocalChunkSize = 10485760, L.RemoteChunkSize = 5242880, L.DefaultDelimiter = ",", L.Parser =
|
|
6881
|
-
var
|
|
6882
|
-
|
|
6947
|
+
`, '"', L.BYTE_ORDER_MARK], L.WORKERS_SUPPORTED = !c && !!s.Worker, L.NODE_STREAM_INPUT = 1, L.LocalChunkSize = 10485760, L.RemoteChunkSize = 5242880, L.DefaultDelimiter = ",", L.Parser = Y, L.ParserHandle = se, L.NetworkStreamer = U, L.FileStreamer = V, L.StringStreamer = J, L.ReadableStreamStreamer = ce, s.jQuery) {
|
|
6948
|
+
var B = s.jQuery;
|
|
6949
|
+
B.fn.parse = function(G) {
|
|
6883
6950
|
var $ = G.config || {}, X = [];
|
|
6884
6951
|
return this.each(function(ge) {
|
|
6885
|
-
if (!(
|
|
6952
|
+
if (!(B(this).prop("tagName").toUpperCase() === "INPUT" && B(this).attr("type").toLowerCase() === "file" && s.FileReader) || !this.files || this.files.length === 0)
|
|
6886
6953
|
return !0;
|
|
6887
6954
|
for (var ve = 0; ve < this.files.length; ve++)
|
|
6888
|
-
X.push({ file: this.files[ve], inputElem: this, instanceConfig:
|
|
6955
|
+
X.push({ file: this.files[ve], inputElem: this, instanceConfig: B.extend({}, $) });
|
|
6889
6956
|
}), pe(), this;
|
|
6890
6957
|
function pe() {
|
|
6891
6958
|
if (X.length !== 0) {
|
|
@@ -6897,13 +6964,13 @@ License: MIT
|
|
|
6897
6964
|
return ge = "AbortError", ve = Ee.file, Ae = Ee.inputElem, Ce = Re.reason, void (ie(G.error) && G.error({ name: ge }, ve, Ae, Ce));
|
|
6898
6965
|
if (Re.action === "skip")
|
|
6899
6966
|
return void de();
|
|
6900
|
-
typeof Re.config == "object" && (Ee.instanceConfig =
|
|
6967
|
+
typeof Re.config == "object" && (Ee.instanceConfig = B.extend(Ee.instanceConfig, Re.config));
|
|
6901
6968
|
} else if (Re === "skip")
|
|
6902
6969
|
return void de();
|
|
6903
6970
|
}
|
|
6904
|
-
var
|
|
6971
|
+
var Te = Ee.instanceConfig.complete;
|
|
6905
6972
|
Ee.instanceConfig.complete = function(Fe) {
|
|
6906
|
-
ie(
|
|
6973
|
+
ie(Te) && Te(Fe, Ee.file, Ee.inputElem), de();
|
|
6907
6974
|
}, L.parse(Ee.file, Ee.instanceConfig);
|
|
6908
6975
|
} else
|
|
6909
6976
|
ie(G.complete) && G.complete();
|
|
@@ -6913,7 +6980,7 @@ License: MIT
|
|
|
6913
6980
|
}
|
|
6914
6981
|
};
|
|
6915
6982
|
}
|
|
6916
|
-
function
|
|
6983
|
+
function q(G) {
|
|
6917
6984
|
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, (function($) {
|
|
6918
6985
|
var X = oe($);
|
|
6919
6986
|
X.chunkSize = parseInt(X.chunkSize), $.step || $.chunk || (X.chunkSize = null), this._handle = new se(X), (this._handle.streamer = this)._config = X;
|
|
@@ -6946,7 +7013,7 @@ License: MIT
|
|
|
6946
7013
|
}
|
|
6947
7014
|
function U(G) {
|
|
6948
7015
|
var $;
|
|
6949
|
-
(G = G || {}).chunkSize || (G.chunkSize = L.RemoteChunkSize),
|
|
7016
|
+
(G = G || {}).chunkSize || (G.chunkSize = L.RemoteChunkSize), q.call(this, G), this._nextChunk = c ? function() {
|
|
6950
7017
|
this._readChunk(), this._chunkLoaded();
|
|
6951
7018
|
} : function() {
|
|
6952
7019
|
this._readChunk();
|
|
@@ -6984,7 +7051,7 @@ License: MIT
|
|
|
6984
7051
|
}
|
|
6985
7052
|
function V(G) {
|
|
6986
7053
|
var $, X;
|
|
6987
|
-
(G = G || {}).chunkSize || (G.chunkSize = L.LocalChunkSize),
|
|
7054
|
+
(G = G || {}).chunkSize || (G.chunkSize = L.LocalChunkSize), q.call(this, G);
|
|
6988
7055
|
var pe = typeof FileReader < "u";
|
|
6989
7056
|
this.stream = function(de) {
|
|
6990
7057
|
this._input = de, X = de.slice || de.webkitSlice || de.mozSlice, pe ? (($ = new FileReader()).onload = ne(this._chunkLoaded, this), $.onerror = ne(this._chunkError, this)) : $ = new FileReaderSync(), this._nextChunk();
|
|
@@ -7006,7 +7073,7 @@ License: MIT
|
|
|
7006
7073
|
}
|
|
7007
7074
|
function J(G) {
|
|
7008
7075
|
var $;
|
|
7009
|
-
|
|
7076
|
+
q.call(this, G = G || {}), this.stream = function(X) {
|
|
7010
7077
|
return $ = X, this._nextChunk();
|
|
7011
7078
|
}, this._nextChunk = function() {
|
|
7012
7079
|
if (!this._finished) {
|
|
@@ -7016,12 +7083,12 @@ License: MIT
|
|
|
7016
7083
|
};
|
|
7017
7084
|
}
|
|
7018
7085
|
function ce(G) {
|
|
7019
|
-
|
|
7086
|
+
q.call(this, G = G || {});
|
|
7020
7087
|
var $ = [], X = !0, pe = !1;
|
|
7021
7088
|
this.pause = function() {
|
|
7022
|
-
|
|
7089
|
+
q.prototype.pause.apply(this, arguments), this._input.pause();
|
|
7023
7090
|
}, this.resume = function() {
|
|
7024
|
-
|
|
7091
|
+
q.prototype.resume.apply(this, arguments), this._input.resume();
|
|
7025
7092
|
}, this.stream = function(de) {
|
|
7026
7093
|
this._input = de, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
7027
7094
|
}, this._checkIsFinished = function() {
|
|
@@ -7043,11 +7110,11 @@ License: MIT
|
|
|
7043
7110
|
}, this);
|
|
7044
7111
|
}
|
|
7045
7112
|
function se(G) {
|
|
7046
|
-
var $, X, pe, de = Math.pow(2, 53), ge = -de, ve = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Ae = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, Ce = this, Ee = 0, Re = 0,
|
|
7113
|
+
var $, X, pe, de = Math.pow(2, 53), ge = -de, ve = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Ae = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, Ce = this, Ee = 0, Re = 0, Te = !1, Fe = !1, ke = [], he = { data: [], errors: [], meta: {} };
|
|
7047
7114
|
if (ie(G.step)) {
|
|
7048
7115
|
var Le = G.step;
|
|
7049
7116
|
G.step = function(be) {
|
|
7050
|
-
if (he = be,
|
|
7117
|
+
if (he = be, Me())
|
|
7051
7118
|
Pe();
|
|
7052
7119
|
else {
|
|
7053
7120
|
if (Pe(), he.data.length === 0)
|
|
@@ -7062,14 +7129,14 @@ License: MIT
|
|
|
7062
7129
|
function Pe() {
|
|
7063
7130
|
return he && pe && (Ie("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + L.DefaultDelimiter + "'"), pe = !1), G.skipEmptyLines && (he.data = he.data.filter(function(be) {
|
|
7064
7131
|
return !fe(be);
|
|
7065
|
-
})),
|
|
7132
|
+
})), Me() && function() {
|
|
7066
7133
|
if (!he)
|
|
7067
7134
|
return;
|
|
7068
|
-
function be(M,
|
|
7069
|
-
ie(G.transformHeader) && (M = G.transformHeader(M,
|
|
7135
|
+
function be(M, W) {
|
|
7136
|
+
ie(G.transformHeader) && (M = G.transformHeader(M, W)), ke.push(M);
|
|
7070
7137
|
}
|
|
7071
7138
|
if (Array.isArray(he.data[0])) {
|
|
7072
|
-
for (var D = 0;
|
|
7139
|
+
for (var D = 0; Me() && D < he.data.length; D++)
|
|
7073
7140
|
he.data[D].forEach(be);
|
|
7074
7141
|
he.data.splice(0, 1);
|
|
7075
7142
|
} else
|
|
@@ -7077,25 +7144,25 @@ License: MIT
|
|
|
7077
7144
|
}(), function() {
|
|
7078
7145
|
if (!he || !G.header && !G.dynamicTyping && !G.transform)
|
|
7079
7146
|
return he;
|
|
7080
|
-
function be(M,
|
|
7147
|
+
function be(M, W) {
|
|
7081
7148
|
var R, I = G.header ? {} : [];
|
|
7082
7149
|
for (R = 0; R < M.length; R++) {
|
|
7083
7150
|
var F = R, H = M[R];
|
|
7084
|
-
G.header && (F = R >=
|
|
7151
|
+
G.header && (F = R >= ke.length ? "__parsed_extra" : ke[R]), G.transform && (H = G.transform(H, F)), H = De(F, H), F === "__parsed_extra" ? (I[F] = I[F] || [], I[F].push(H)) : I[F] = H;
|
|
7085
7152
|
}
|
|
7086
|
-
return G.header && (R >
|
|
7153
|
+
return G.header && (R > ke.length ? Ie("FieldMismatch", "TooManyFields", "Too many fields: expected " + ke.length + " fields but parsed " + R, Re + W) : R < ke.length && Ie("FieldMismatch", "TooFewFields", "Too few fields: expected " + ke.length + " fields but parsed " + R, Re + W)), I;
|
|
7087
7154
|
}
|
|
7088
7155
|
var D = 1;
|
|
7089
|
-
return !he.data.length || Array.isArray(he.data[0]) ? (he.data = he.data.map(be), D = he.data.length) : he.data = be(he.data, 0), G.header && he.meta && (he.meta.fields =
|
|
7156
|
+
return !he.data.length || Array.isArray(he.data[0]) ? (he.data = he.data.map(be), D = he.data.length) : he.data = be(he.data, 0), G.header && he.meta && (he.meta.fields = ke), Re += D, he;
|
|
7090
7157
|
}();
|
|
7091
7158
|
}
|
|
7092
|
-
function
|
|
7093
|
-
return G.header &&
|
|
7159
|
+
function Me() {
|
|
7160
|
+
return G.header && ke.length === 0;
|
|
7094
7161
|
}
|
|
7095
7162
|
function De(be, D) {
|
|
7096
|
-
return M = be, G.dynamicTypingFunction && G.dynamicTyping[M] === void 0 && (G.dynamicTyping[M] = G.dynamicTypingFunction(M)), (G.dynamicTyping[M] || G.dynamicTyping) === !0 ? D === "true" || D === "TRUE" || D !== "false" && D !== "FALSE" && (function(
|
|
7097
|
-
if (ve.test(
|
|
7098
|
-
var R = parseFloat(
|
|
7163
|
+
return M = be, G.dynamicTypingFunction && G.dynamicTyping[M] === void 0 && (G.dynamicTyping[M] = G.dynamicTypingFunction(M)), (G.dynamicTyping[M] || G.dynamicTyping) === !0 ? D === "true" || D === "TRUE" || D !== "false" && D !== "FALSE" && (function(W) {
|
|
7164
|
+
if (ve.test(W)) {
|
|
7165
|
+
var R = parseFloat(W);
|
|
7099
7166
|
if (ge < R && R < de)
|
|
7100
7167
|
return !0;
|
|
7101
7168
|
}
|
|
@@ -7103,12 +7170,12 @@ License: MIT
|
|
|
7103
7170
|
}(D) ? parseFloat(D) : Ae.test(D) ? new Date(D) : D === "" ? null : D) : D;
|
|
7104
7171
|
var M;
|
|
7105
7172
|
}
|
|
7106
|
-
function Ie(be, D, M,
|
|
7173
|
+
function Ie(be, D, M, W) {
|
|
7107
7174
|
var R = { type: be, code: D, message: M };
|
|
7108
|
-
|
|
7175
|
+
W !== void 0 && (R.row = W), he.errors.push(R);
|
|
7109
7176
|
}
|
|
7110
7177
|
this.parse = function(be, D, M) {
|
|
7111
|
-
var
|
|
7178
|
+
var W = G.quoteChar || '"';
|
|
7112
7179
|
if (G.newline || (G.newline = function(F, H) {
|
|
7113
7180
|
F = F.substring(0, 1048576);
|
|
7114
7181
|
var j = new RegExp(re(H) + "([^]*?)" + re(H), "gm"), K = (F = F.replace(j, "")).split("\r"), Z = F.split(`
|
|
@@ -7121,7 +7188,7 @@ License: MIT
|
|
|
7121
7188
|
` && ue++;
|
|
7122
7189
|
return ue >= K.length / 2 ? `\r
|
|
7123
7190
|
` : "\r";
|
|
7124
|
-
}(be,
|
|
7191
|
+
}(be, W)), pe = !1, G.delimiter)
|
|
7125
7192
|
ie(G.delimiter) && (G.delimiter = G.delimiter(be), he.meta.delimiter = G.delimiter);
|
|
7126
7193
|
else {
|
|
7127
7194
|
var R = function(F, H, j, K, Z) {
|
|
@@ -7130,27 +7197,27 @@ License: MIT
|
|
|
7130
7197
|
for (var ye = 0; ye < Z.length; ye++) {
|
|
7131
7198
|
var Se = Z[ye], Ne = 0, ee = 0, le = 0;
|
|
7132
7199
|
me = void 0;
|
|
7133
|
-
for (var
|
|
7134
|
-
if (j && fe(
|
|
7200
|
+
for (var Oe = new Y({ comments: K, delimiter: Se, newline: H, preview: 10 }).parse(F), we = 0; we < Oe.data.length; we++)
|
|
7201
|
+
if (j && fe(Oe.data[we]))
|
|
7135
7202
|
le++;
|
|
7136
7203
|
else {
|
|
7137
|
-
var je =
|
|
7204
|
+
var je = Oe.data[we].length;
|
|
7138
7205
|
ee += je, me !== void 0 ? 0 < je && (Ne += Math.abs(je - me), me = je) : me = je;
|
|
7139
7206
|
}
|
|
7140
|
-
0 <
|
|
7207
|
+
0 < Oe.data.length && (ee /= Oe.data.length - le), (ue === void 0 || Ne <= ue) && (_e === void 0 || _e < ee) && 1.99 < ee && (ue = Ne, z = Se, _e = ee);
|
|
7141
7208
|
}
|
|
7142
7209
|
return { successful: !!(G.delimiter = z), bestDelimiter: z };
|
|
7143
7210
|
}(be, G.newline, G.skipEmptyLines, G.comments, G.delimitersToGuess);
|
|
7144
7211
|
R.successful ? G.delimiter = R.bestDelimiter : (pe = !0, G.delimiter = L.DefaultDelimiter), he.meta.delimiter = G.delimiter;
|
|
7145
7212
|
}
|
|
7146
7213
|
var I = oe(G);
|
|
7147
|
-
return G.preview && G.header && I.preview++, $ = be, X = new
|
|
7214
|
+
return G.preview && G.header && I.preview++, $ = be, X = new Y(I), he = X.parse($, D, M), Pe(), Te ? { meta: { paused: !0 } } : he || { meta: { paused: !1 } };
|
|
7148
7215
|
}, this.paused = function() {
|
|
7149
|
-
return
|
|
7216
|
+
return Te;
|
|
7150
7217
|
}, this.pause = function() {
|
|
7151
|
-
|
|
7218
|
+
Te = !0, X.abort(), $ = ie(G.chunk) ? "" : $.substring(X.getCharIndex());
|
|
7152
7219
|
}, this.resume = function() {
|
|
7153
|
-
Ce.streamer._halted ? (
|
|
7220
|
+
Ce.streamer._halted ? (Te = !1, Ce.streamer.parseChunk($, !0)) : setTimeout(Ce.resume, 3);
|
|
7154
7221
|
}, this.aborted = function() {
|
|
7155
7222
|
return Fe;
|
|
7156
7223
|
}, this.abort = function() {
|
|
@@ -7160,7 +7227,7 @@ License: MIT
|
|
|
7160
7227
|
function re(G) {
|
|
7161
7228
|
return G.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
7162
7229
|
}
|
|
7163
|
-
function
|
|
7230
|
+
function Y(G) {
|
|
7164
7231
|
var $, X = (G = G || {}).delimiter, pe = G.newline, de = G.comments, ge = G.step, ve = G.preview, Ae = G.fastMode, Ce = $ = G.quoteChar === void 0 || G.quoteChar === null ? '"' : G.quoteChar;
|
|
7165
7232
|
if (G.escapeChar !== void 0 && (Ce = G.escapeChar), (typeof X != "string" || -1 < L.BAD_DELIMITERS.indexOf(X)) && (X = ","), de === X)
|
|
7166
7233
|
throw new Error("Comment character same as delimiter");
|
|
@@ -7169,35 +7236,35 @@ License: MIT
|
|
|
7169
7236
|
` && (pe = `
|
|
7170
7237
|
`);
|
|
7171
7238
|
var Ee = 0, Re = !1;
|
|
7172
|
-
this.parse = function(
|
|
7173
|
-
if (typeof
|
|
7239
|
+
this.parse = function(Te, Fe, ke) {
|
|
7240
|
+
if (typeof Te != "string")
|
|
7174
7241
|
throw new Error("Input must be a string");
|
|
7175
|
-
var he =
|
|
7176
|
-
if (!
|
|
7242
|
+
var he = Te.length, Le = X.length, fe = pe.length, Pe = de.length, Me = ie(ge), De = [], Ie = [], be = [], D = Ee = 0;
|
|
7243
|
+
if (!Te)
|
|
7177
7244
|
return Be();
|
|
7178
7245
|
if (G.header && !Fe) {
|
|
7179
|
-
var M =
|
|
7246
|
+
var M = Te.split(pe)[0].split(X), W = [], R = {}, I = !1;
|
|
7180
7247
|
for (var F in M) {
|
|
7181
7248
|
var H = M[F];
|
|
7182
7249
|
ie(G.transformHeader) && (H = G.transformHeader(H, F));
|
|
7183
7250
|
var j = H, K = R[H] || 0;
|
|
7184
|
-
for (0 < K && (I = !0, j = H + "_" + K), R[H] = K + 1;
|
|
7251
|
+
for (0 < K && (I = !0, j = H + "_" + K), R[H] = K + 1; W.includes(j); )
|
|
7185
7252
|
j = j + "_" + K;
|
|
7186
|
-
|
|
7253
|
+
W.push(j);
|
|
7187
7254
|
}
|
|
7188
7255
|
if (I) {
|
|
7189
|
-
var Z =
|
|
7190
|
-
Z[0] =
|
|
7256
|
+
var Z = Te.split(pe);
|
|
7257
|
+
Z[0] = W.join(X), Te = Z.join(pe);
|
|
7191
7258
|
}
|
|
7192
7259
|
}
|
|
7193
|
-
if (Ae || Ae !== !1 &&
|
|
7194
|
-
for (var z =
|
|
7260
|
+
if (Ae || Ae !== !1 && Te.indexOf($) === -1) {
|
|
7261
|
+
for (var z = Te.split(pe), ue = 0; ue < z.length; ue++) {
|
|
7195
7262
|
if (be = z[ue], Ee += be.length, ue !== z.length - 1)
|
|
7196
7263
|
Ee += pe.length;
|
|
7197
|
-
else if (
|
|
7264
|
+
else if (ke)
|
|
7198
7265
|
return Be();
|
|
7199
7266
|
if (!de || be.substring(0, Pe) !== de) {
|
|
7200
|
-
if (
|
|
7267
|
+
if (Me) {
|
|
7201
7268
|
if (De = [], le(be.split(X)), xe(), Re)
|
|
7202
7269
|
return Be();
|
|
7203
7270
|
} else
|
|
@@ -7208,39 +7275,39 @@ License: MIT
|
|
|
7208
7275
|
}
|
|
7209
7276
|
return Be();
|
|
7210
7277
|
}
|
|
7211
|
-
for (var me =
|
|
7212
|
-
if (
|
|
7213
|
-
if (de && be.length === 0 &&
|
|
7278
|
+
for (var me = Te.indexOf(X, Ee), _e = Te.indexOf(pe, Ee), ye = new RegExp(re(Ce) + re($), "g"), Se = Te.indexOf($, Ee); ; )
|
|
7279
|
+
if (Te[Ee] !== $)
|
|
7280
|
+
if (de && be.length === 0 && Te.substring(Ee, Ee + Pe) === de) {
|
|
7214
7281
|
if (_e === -1)
|
|
7215
7282
|
return Be();
|
|
7216
|
-
Ee = _e + fe, _e =
|
|
7283
|
+
Ee = _e + fe, _e = Te.indexOf(pe, Ee), me = Te.indexOf(X, Ee);
|
|
7217
7284
|
} else if (me !== -1 && (me < _e || _e === -1))
|
|
7218
|
-
be.push(
|
|
7285
|
+
be.push(Te.substring(Ee, me)), Ee = me + Le, me = Te.indexOf(X, Ee);
|
|
7219
7286
|
else {
|
|
7220
7287
|
if (_e === -1)
|
|
7221
7288
|
break;
|
|
7222
|
-
if (be.push(
|
|
7289
|
+
if (be.push(Te.substring(Ee, _e)), je(_e + fe), Me && (xe(), Re))
|
|
7223
7290
|
return Be();
|
|
7224
7291
|
if (ve && De.length >= ve)
|
|
7225
7292
|
return Be(!0);
|
|
7226
7293
|
}
|
|
7227
7294
|
else
|
|
7228
7295
|
for (Se = Ee, Ee++; ; ) {
|
|
7229
|
-
if ((Se =
|
|
7230
|
-
return
|
|
7296
|
+
if ((Se = Te.indexOf($, Se + 1)) === -1)
|
|
7297
|
+
return ke || Ie.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: De.length, index: Ee }), we();
|
|
7231
7298
|
if (Se === he - 1)
|
|
7232
|
-
return we(
|
|
7233
|
-
if ($ !== Ce ||
|
|
7234
|
-
if ($ === Ce || Se === 0 ||
|
|
7235
|
-
me !== -1 && me < Se + 1 && (me =
|
|
7236
|
-
var Ne =
|
|
7237
|
-
if (
|
|
7238
|
-
be.push(
|
|
7299
|
+
return we(Te.substring(Ee, Se).replace(ye, $));
|
|
7300
|
+
if ($ !== Ce || Te[Se + 1] !== Ce) {
|
|
7301
|
+
if ($ === Ce || Se === 0 || Te[Se - 1] !== Ce) {
|
|
7302
|
+
me !== -1 && me < Se + 1 && (me = Te.indexOf(X, Se + 1)), _e !== -1 && _e < Se + 1 && (_e = Te.indexOf(pe, Se + 1));
|
|
7303
|
+
var Ne = Oe(_e === -1 ? me : Math.min(me, _e));
|
|
7304
|
+
if (Te.substr(Se + 1 + Ne, Le) === X) {
|
|
7305
|
+
be.push(Te.substring(Ee, Se).replace(ye, $)), Te[Ee = Se + 1 + Ne + Le] !== $ && (Se = Te.indexOf($, Ee)), me = Te.indexOf(X, Ee), _e = Te.indexOf(pe, Ee);
|
|
7239
7306
|
break;
|
|
7240
7307
|
}
|
|
7241
|
-
var ee =
|
|
7242
|
-
if (
|
|
7243
|
-
if (be.push(
|
|
7308
|
+
var ee = Oe(_e);
|
|
7309
|
+
if (Te.substring(Se + 1 + ee, Se + 1 + ee + fe) === pe) {
|
|
7310
|
+
if (be.push(Te.substring(Ee, Se).replace(ye, $)), je(Se + 1 + ee + fe), me = Te.indexOf(X, Ee), Se = Te.indexOf($, Ee), Me && (xe(), Re))
|
|
7244
7311
|
return Be();
|
|
7245
7312
|
if (ve && De.length >= ve)
|
|
7246
7313
|
return Be(!0);
|
|
@@ -7255,19 +7322,19 @@ License: MIT
|
|
|
7255
7322
|
function le($e) {
|
|
7256
7323
|
De.push($e), D = Ee;
|
|
7257
7324
|
}
|
|
7258
|
-
function
|
|
7325
|
+
function Oe($e) {
|
|
7259
7326
|
var We = 0;
|
|
7260
7327
|
if ($e !== -1) {
|
|
7261
|
-
var Ve =
|
|
7328
|
+
var Ve = Te.substring(Se + 1, $e);
|
|
7262
7329
|
Ve && Ve.trim() === "" && (We = Ve.length);
|
|
7263
7330
|
}
|
|
7264
7331
|
return We;
|
|
7265
7332
|
}
|
|
7266
7333
|
function we($e) {
|
|
7267
|
-
return
|
|
7334
|
+
return ke || ($e === void 0 && ($e = Te.substring(Ee)), be.push($e), Ee = he, le(be), Me && xe()), Be();
|
|
7268
7335
|
}
|
|
7269
7336
|
function je($e) {
|
|
7270
|
-
Ee = $e, le(be), be = [], _e =
|
|
7337
|
+
Ee = $e, le(be), be = [], _e = Te.indexOf(pe, Ee);
|
|
7271
7338
|
}
|
|
7272
7339
|
function Be($e) {
|
|
7273
7340
|
return { data: De, errors: Ie, meta: { delimiter: X, linebreak: pe, aborted: Re, truncated: !!$e, cursor: D + (Fe || 0) } };
|
|
@@ -7329,7 +7396,7 @@ License: MIT
|
|
|
7329
7396
|
var X = L.parse($.input, $.config);
|
|
7330
7397
|
X && s.postMessage({ workerId: L.WORKER_ID, results: X, finished: !0 });
|
|
7331
7398
|
}
|
|
7332
|
-
}), (U.prototype = Object.create(
|
|
7399
|
+
}), (U.prototype = Object.create(q.prototype)).constructor = U, (V.prototype = Object.create(q.prototype)).constructor = V, (J.prototype = Object.create(J.prototype)).constructor = J, (ce.prototype = Object.create(q.prototype)).constructor = ce, L;
|
|
7333
7400
|
});
|
|
7334
7401
|
})(papaparse_min);
|
|
7335
7402
|
var papaparse_minExports = papaparse_min.exports;
|
|
@@ -7393,37 +7460,37 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7393
7460
|
return {
|
|
7394
7461
|
filenameMap: s,
|
|
7395
7462
|
templateContentMap: c,
|
|
7396
|
-
handleDownloadTemp: (
|
|
7397
|
-
if (
|
|
7398
|
-
const V = new Blob([
|
|
7463
|
+
handleDownloadTemp: (q, U) => {
|
|
7464
|
+
if (q) {
|
|
7465
|
+
const V = new Blob([q], { type: "text/csv" });
|
|
7399
7466
|
createDownloadBlobLink(V, `${U}_template.csv`);
|
|
7400
7467
|
} else
|
|
7401
7468
|
console.error("Template is empty");
|
|
7402
7469
|
},
|
|
7403
|
-
readFileAndParse: async (
|
|
7470
|
+
readFileAndParse: async (q, U) => new Promise((V, J) => {
|
|
7404
7471
|
const ce = new FileReader();
|
|
7405
7472
|
ce.onload = (se) => {
|
|
7406
7473
|
if (!se.target)
|
|
7407
7474
|
return J(new Error("FileReader event target is null"));
|
|
7408
|
-
const re = se.target.result,
|
|
7409
|
-
|
|
7475
|
+
const re = se.target.result, Y = Papa.parse(re, { skipEmptyLines: "greedy" });
|
|
7476
|
+
Y.errors.length > 0 && J(new Error("Failed to parse CSV data: " + Y.errors[0].message)), Y.data.length > U + 1 ? J(new Error(n("uploadMaxRowsError", { max: U }))) : V(Y.data);
|
|
7410
7477
|
}, ce.onerror = () => {
|
|
7411
7478
|
J(new Error("An error occurred while reading the file"));
|
|
7412
7479
|
}, ce.onabort = () => {
|
|
7413
7480
|
J(new Error("File reading was aborted"));
|
|
7414
|
-
}, ce.readAsText(
|
|
7481
|
+
}, ce.readAsText(q);
|
|
7415
7482
|
}),
|
|
7416
|
-
processIoTDBData: (
|
|
7483
|
+
processIoTDBData: (q) => new Promise((U, V) => {
|
|
7417
7484
|
try {
|
|
7418
|
-
const J = ["boolean", "int32", "int64", "float", "double", "text"], ce =
|
|
7485
|
+
const J = ["boolean", "int32", "int64", "float", "double", "text"], ce = q.slice(1).filter(
|
|
7419
7486
|
(se) => se.length >= 4 && se.slice(0, 4).every((re) => re && re.trim() !== "")
|
|
7420
7487
|
).map((se) => {
|
|
7421
|
-
const [re,
|
|
7488
|
+
const [re, Y, Q, ae] = se;
|
|
7422
7489
|
if (!J.includes(Q))
|
|
7423
7490
|
throw new Error(`Invalid data type: ${Q}`);
|
|
7424
7491
|
return {
|
|
7425
7492
|
timestamp: re,
|
|
7426
|
-
measurement:
|
|
7493
|
+
measurement: Y,
|
|
7427
7494
|
data_type: Q,
|
|
7428
7495
|
value: ae
|
|
7429
7496
|
};
|
|
@@ -7433,11 +7500,11 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7433
7500
|
V(J);
|
|
7434
7501
|
}
|
|
7435
7502
|
}),
|
|
7436
|
-
processTDengineData: (
|
|
7503
|
+
processTDengineData: (q) => new Promise((U, V) => {
|
|
7437
7504
|
try {
|
|
7438
7505
|
const J = "<table>", ce = [], se = [];
|
|
7439
|
-
for (let
|
|
7440
|
-
const [Q, ae, te] = Y
|
|
7506
|
+
for (let Y = 1; Y < q.length; Y++) {
|
|
7507
|
+
const [Q, ae, te] = q[Y];
|
|
7441
7508
|
if (!Q || !ae)
|
|
7442
7509
|
continue;
|
|
7443
7510
|
ce.push(Q);
|
|
@@ -7457,11 +7524,11 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7457
7524
|
V(J);
|
|
7458
7525
|
}
|
|
7459
7526
|
}),
|
|
7460
|
-
processInfluxDBData: (
|
|
7527
|
+
processInfluxDBData: (q) => new Promise((U, V) => {
|
|
7461
7528
|
try {
|
|
7462
7529
|
const J = [];
|
|
7463
|
-
for (let ce = 1; ce <
|
|
7464
|
-
const [se, re] =
|
|
7530
|
+
for (let ce = 1; ce < q.length; ce++) {
|
|
7531
|
+
const [se, re] = q[ce];
|
|
7465
7532
|
!se || !re || J.push({ key: se, value: re });
|
|
7466
7533
|
}
|
|
7467
7534
|
U(J);
|
|
@@ -7522,18 +7589,18 @@ precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
|
7522
7589
|
permissionOptions: n,
|
|
7523
7590
|
resourceTypeOptions: s,
|
|
7524
7591
|
operationOptions: c,
|
|
7525
|
-
getValidOperations: (A) => (l[A] || []).map((
|
|
7526
|
-
label: t(`streaming.aclOperationLabelDic.${
|
|
7527
|
-
value:
|
|
7592
|
+
getValidOperations: (A) => (l[A] || []).map((B) => ({
|
|
7593
|
+
label: t(`streaming.aclOperationLabelDic.${B}`),
|
|
7594
|
+
value: B
|
|
7528
7595
|
}))
|
|
7529
7596
|
};
|
|
7530
7597
|
};
|
|
7531
7598
|
var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exports: {} };
|
|
7532
7599
|
(function(e) {
|
|
7533
7600
|
(function(t) {
|
|
7534
|
-
var n, s = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, c = Math.ceil, l = Math.floor, C = "[BigNumber Error] ", A = C + "Number primitive has more than 15 significant digits: ", L = 1e14,
|
|
7601
|
+
var n, s = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, c = Math.ceil, l = Math.floor, C = "[BigNumber Error] ", A = C + "Number primitive has more than 15 significant digits: ", L = 1e14, B = 14, q = 9007199254740991, U = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], V = 1e7, J = 1e9;
|
|
7535
7602
|
function ce(ne) {
|
|
7536
|
-
var ie, G, $, X = fe.prototype = { constructor: fe, toString: null, valueOf: null }, pe = new fe(1), de = 20, ge = 4, ve = -7, Ae = 21, Ce = -1e7, Ee = 1e7, Re = !1,
|
|
7603
|
+
var ie, G, $, X = fe.prototype = { constructor: fe, toString: null, valueOf: null }, pe = new fe(1), de = 20, ge = 4, ve = -7, Ae = 21, Ce = -1e7, Ee = 1e7, Re = !1, Te = 1, Fe = 0, ke = {
|
|
7537
7604
|
prefix: "",
|
|
7538
7605
|
groupSize: 3,
|
|
7539
7606
|
secondaryGroupSize: 0,
|
|
@@ -7545,7 +7612,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7545
7612
|
suffix: ""
|
|
7546
7613
|
}, he = "0123456789abcdefghijklmnopqrstuvwxyz", Le = !0;
|
|
7547
7614
|
function fe(D, M) {
|
|
7548
|
-
var
|
|
7615
|
+
var W, R, I, F, H, j, K, Z, z = this;
|
|
7549
7616
|
if (!(z instanceof fe))
|
|
7550
7617
|
return new fe(D, M);
|
|
7551
7618
|
if (M == null) {
|
|
@@ -7577,8 +7644,8 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7577
7644
|
throw Error(A + D);
|
|
7578
7645
|
} else
|
|
7579
7646
|
z.s = Z.charCodeAt(0) === 45 ? (Z = Z.slice(1), -1) : 1;
|
|
7580
|
-
for (
|
|
7581
|
-
if (
|
|
7647
|
+
for (W = he.slice(0, M), F = H = 0, K = Z.length; H < K; H++)
|
|
7648
|
+
if (W.indexOf(R = Z.charAt(H)) < 0) {
|
|
7582
7649
|
if (R == ".") {
|
|
7583
7650
|
if (H > F) {
|
|
7584
7651
|
F = K;
|
|
@@ -7597,17 +7664,17 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7597
7664
|
for (K = Z.length; Z.charCodeAt(--K) === 48; )
|
|
7598
7665
|
;
|
|
7599
7666
|
if (Z = Z.slice(H, ++K)) {
|
|
7600
|
-
if (K -= H, j && fe.DEBUG && K > 15 && (D >
|
|
7667
|
+
if (K -= H, j && fe.DEBUG && K > 15 && (D > q || D !== l(D)))
|
|
7601
7668
|
throw Error(A + z.s * D);
|
|
7602
7669
|
if ((F = F - H - 1) > Ee)
|
|
7603
7670
|
z.c = z.e = null;
|
|
7604
7671
|
else if (F < Ce)
|
|
7605
7672
|
z.c = [z.e = 0];
|
|
7606
7673
|
else {
|
|
7607
|
-
if (z.e = F, z.c = [], H = (F + 1) %
|
|
7608
|
-
for (H && z.c.push(+Z.slice(0, H)), K -=
|
|
7609
|
-
z.c.push(+Z.slice(H, H +=
|
|
7610
|
-
H =
|
|
7674
|
+
if (z.e = F, z.c = [], H = (F + 1) % B, F < 0 && (H += B), H < K) {
|
|
7675
|
+
for (H && z.c.push(+Z.slice(0, H)), K -= B; H < K; )
|
|
7676
|
+
z.c.push(+Z.slice(H, H += B));
|
|
7677
|
+
H = B - (Z = Z.slice(H)).length;
|
|
7611
7678
|
} else
|
|
7612
7679
|
H -= K;
|
|
7613
7680
|
for (; H--; Z += "0")
|
|
@@ -7618,37 +7685,37 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7618
7685
|
z.c = [z.e = 0];
|
|
7619
7686
|
}
|
|
7620
7687
|
fe.clone = ce, fe.ROUND_UP = 0, fe.ROUND_DOWN = 1, fe.ROUND_CEIL = 2, fe.ROUND_FLOOR = 3, fe.ROUND_HALF_UP = 4, fe.ROUND_HALF_DOWN = 5, fe.ROUND_HALF_EVEN = 6, fe.ROUND_HALF_CEIL = 7, fe.ROUND_HALF_FLOOR = 8, fe.EUCLID = 9, fe.config = fe.set = function(D) {
|
|
7621
|
-
var M,
|
|
7688
|
+
var M, W;
|
|
7622
7689
|
if (D != null)
|
|
7623
7690
|
if (typeof D == "object") {
|
|
7624
|
-
if (D.hasOwnProperty(M = "DECIMAL_PLACES") && (
|
|
7625
|
-
if (
|
|
7626
|
-
Q(
|
|
7627
|
-
else if (Q(
|
|
7628
|
-
Ce = -(Ee =
|
|
7691
|
+
if (D.hasOwnProperty(M = "DECIMAL_PLACES") && (W = D[M], Q(W, 0, J, M), de = W), D.hasOwnProperty(M = "ROUNDING_MODE") && (W = D[M], Q(W, 0, 8, M), ge = W), D.hasOwnProperty(M = "EXPONENTIAL_AT") && (W = D[M], W && W.pop ? (Q(W[0], -J, 0, M), Q(W[1], 0, J, M), ve = W[0], Ae = W[1]) : (Q(W, -J, J, M), ve = -(Ae = W < 0 ? -W : W))), D.hasOwnProperty(M = "RANGE"))
|
|
7692
|
+
if (W = D[M], W && W.pop)
|
|
7693
|
+
Q(W[0], -J, -1, M), Q(W[1], 1, J, M), Ce = W[0], Ee = W[1];
|
|
7694
|
+
else if (Q(W, -J, J, M), W)
|
|
7695
|
+
Ce = -(Ee = W < 0 ? -W : W);
|
|
7629
7696
|
else
|
|
7630
|
-
throw Error(C + M + " cannot be zero: " +
|
|
7697
|
+
throw Error(C + M + " cannot be zero: " + W);
|
|
7631
7698
|
if (D.hasOwnProperty(M = "CRYPTO"))
|
|
7632
|
-
if (
|
|
7633
|
-
if (
|
|
7699
|
+
if (W = D[M], W === !!W)
|
|
7700
|
+
if (W)
|
|
7634
7701
|
if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
|
|
7635
|
-
Re =
|
|
7702
|
+
Re = W;
|
|
7636
7703
|
else
|
|
7637
|
-
throw Re = !
|
|
7704
|
+
throw Re = !W, Error(C + "crypto unavailable");
|
|
7638
7705
|
else
|
|
7639
|
-
Re =
|
|
7706
|
+
Re = W;
|
|
7640
7707
|
else
|
|
7641
|
-
throw Error(C + M + " not true or false: " +
|
|
7642
|
-
if (D.hasOwnProperty(M = "MODULO_MODE") && (
|
|
7643
|
-
if (
|
|
7644
|
-
|
|
7708
|
+
throw Error(C + M + " not true or false: " + W);
|
|
7709
|
+
if (D.hasOwnProperty(M = "MODULO_MODE") && (W = D[M], Q(W, 0, 9, M), Te = W), D.hasOwnProperty(M = "POW_PRECISION") && (W = D[M], Q(W, 0, J, M), Fe = W), D.hasOwnProperty(M = "FORMAT"))
|
|
7710
|
+
if (W = D[M], typeof W == "object")
|
|
7711
|
+
ke = W;
|
|
7645
7712
|
else
|
|
7646
|
-
throw Error(C + M + " not an object: " +
|
|
7713
|
+
throw Error(C + M + " not an object: " + W);
|
|
7647
7714
|
if (D.hasOwnProperty(M = "ALPHABET"))
|
|
7648
|
-
if (
|
|
7649
|
-
Le =
|
|
7715
|
+
if (W = D[M], typeof W == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(W))
|
|
7716
|
+
Le = W.slice(0, 10) == "0123456789", he = W;
|
|
7650
7717
|
else
|
|
7651
|
-
throw Error(C + M + " invalid: " +
|
|
7718
|
+
throw Error(C + M + " invalid: " + W);
|
|
7652
7719
|
} else
|
|
7653
7720
|
throw Error(C + "Object expected: " + D);
|
|
7654
7721
|
return {
|
|
@@ -7657,9 +7724,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7657
7724
|
EXPONENTIAL_AT: [ve, Ae],
|
|
7658
7725
|
RANGE: [Ce, Ee],
|
|
7659
7726
|
CRYPTO: Re,
|
|
7660
|
-
MODULO_MODE:
|
|
7727
|
+
MODULO_MODE: Te,
|
|
7661
7728
|
POW_PRECISION: Fe,
|
|
7662
|
-
FORMAT:
|
|
7729
|
+
FORMAT: ke,
|
|
7663
7730
|
ALPHABET: he
|
|
7664
7731
|
};
|
|
7665
7732
|
}, fe.isBigNumber = function(D) {
|
|
@@ -7667,7 +7734,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7667
7734
|
return !1;
|
|
7668
7735
|
if (!fe.DEBUG)
|
|
7669
7736
|
return !0;
|
|
7670
|
-
var M,
|
|
7737
|
+
var M, W, R = D.c, I = D.e, F = D.s;
|
|
7671
7738
|
e:
|
|
7672
7739
|
if ({}.toString.call(R) == "[object Array]") {
|
|
7673
7740
|
if ((F === 1 || F === -1) && I >= -J && I <= J && I === l(I)) {
|
|
@@ -7676,11 +7743,11 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7676
7743
|
return !0;
|
|
7677
7744
|
break e;
|
|
7678
7745
|
}
|
|
7679
|
-
if (M = (I + 1) %
|
|
7746
|
+
if (M = (I + 1) % B, M < 1 && (M += B), String(R[0]).length == M) {
|
|
7680
7747
|
for (M = 0; M < R.length; M++)
|
|
7681
|
-
if (
|
|
7748
|
+
if (W = R[M], W < 0 || W >= L || W !== l(W))
|
|
7682
7749
|
break e;
|
|
7683
|
-
if (
|
|
7750
|
+
if (W !== 0)
|
|
7684
7751
|
return !0;
|
|
7685
7752
|
}
|
|
7686
7753
|
}
|
|
@@ -7688,18 +7755,18 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7688
7755
|
return !0;
|
|
7689
7756
|
throw Error(C + "Invalid BigNumber: " + D);
|
|
7690
7757
|
}, fe.maximum = fe.max = function() {
|
|
7691
|
-
return
|
|
7758
|
+
return Me(arguments, -1);
|
|
7692
7759
|
}, fe.minimum = fe.min = function() {
|
|
7693
|
-
return
|
|
7760
|
+
return Me(arguments, 1);
|
|
7694
7761
|
}, fe.random = function() {
|
|
7695
7762
|
var D = 9007199254740992, M = Math.random() * D & 2097151 ? function() {
|
|
7696
7763
|
return l(Math.random() * D);
|
|
7697
7764
|
} : function() {
|
|
7698
7765
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
7699
7766
|
};
|
|
7700
|
-
return function(
|
|
7767
|
+
return function(W) {
|
|
7701
7768
|
var R, I, F, H, j, K = 0, Z = [], z = new fe(pe);
|
|
7702
|
-
if (
|
|
7769
|
+
if (W == null ? W = de : Q(W, 0, J), H = c(W / B), Re)
|
|
7703
7770
|
if (crypto.getRandomValues) {
|
|
7704
7771
|
for (R = crypto.getRandomValues(new Uint32Array(H *= 2)); K < H; )
|
|
7705
7772
|
j = R[K] * 131072 + (R[K + 1] >>> 11), j >= 9e15 ? (I = crypto.getRandomValues(new Uint32Array(2)), R[K] = I[0], R[K + 1] = I[1]) : (Z.push(j % 1e14), K += 2);
|
|
@@ -7713,58 +7780,58 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7713
7780
|
if (!Re)
|
|
7714
7781
|
for (; K < H; )
|
|
7715
7782
|
j = M(), j < 9e15 && (Z[K++] = j % 1e14);
|
|
7716
|
-
for (H = Z[--K],
|
|
7783
|
+
for (H = Z[--K], W %= B, H && W && (j = U[B - W], Z[K] = l(H / j) * j); Z[K] === 0; Z.pop(), K--)
|
|
7717
7784
|
;
|
|
7718
7785
|
if (K < 0)
|
|
7719
7786
|
Z = [F = 0];
|
|
7720
7787
|
else {
|
|
7721
|
-
for (F = -1; Z[0] === 0; Z.splice(0, 1), F -=
|
|
7788
|
+
for (F = -1; Z[0] === 0; Z.splice(0, 1), F -= B)
|
|
7722
7789
|
;
|
|
7723
7790
|
for (K = 1, j = Z[0]; j >= 10; j /= 10, K++)
|
|
7724
7791
|
;
|
|
7725
|
-
K <
|
|
7792
|
+
K < B && (F -= B - K);
|
|
7726
7793
|
}
|
|
7727
7794
|
return z.e = F, z.c = Z, z;
|
|
7728
7795
|
};
|
|
7729
7796
|
}(), fe.sum = function() {
|
|
7730
|
-
for (var D = 1, M = arguments,
|
|
7731
|
-
|
|
7732
|
-
return
|
|
7797
|
+
for (var D = 1, M = arguments, W = new fe(M[0]); D < M.length; )
|
|
7798
|
+
W = W.plus(M[D++]);
|
|
7799
|
+
return W;
|
|
7733
7800
|
}, G = function() {
|
|
7734
7801
|
var D = "0123456789";
|
|
7735
|
-
function M(
|
|
7736
|
-
for (var H, j = [0], K, Z = 0, z =
|
|
7802
|
+
function M(W, R, I, F) {
|
|
7803
|
+
for (var H, j = [0], K, Z = 0, z = W.length; Z < z; ) {
|
|
7737
7804
|
for (K = j.length; K--; j[K] *= R)
|
|
7738
7805
|
;
|
|
7739
|
-
for (j[0] += F.indexOf(
|
|
7806
|
+
for (j[0] += F.indexOf(W.charAt(Z++)), H = 0; H < j.length; H++)
|
|
7740
7807
|
j[H] > I - 1 && (j[H + 1] == null && (j[H + 1] = 0), j[H + 1] += j[H] / I | 0, j[H] %= I);
|
|
7741
7808
|
}
|
|
7742
7809
|
return j.reverse();
|
|
7743
7810
|
}
|
|
7744
|
-
return function(
|
|
7745
|
-
var j, K, Z, z, ue, me, _e, ye, Se =
|
|
7746
|
-
for (Se >= 0 && (z = Fe, Fe = 0,
|
|
7811
|
+
return function(W, R, I, F, H) {
|
|
7812
|
+
var j, K, Z, z, ue, me, _e, ye, Se = W.indexOf("."), Ne = de, ee = ge;
|
|
7813
|
+
for (Se >= 0 && (z = Fe, Fe = 0, W = W.replace(".", ""), ye = new fe(R), me = ye.pow(W.length - Se), Fe = z, ye.c = M(
|
|
7747
7814
|
oe(re(me.c), me.e, "0"),
|
|
7748
7815
|
10,
|
|
7749
7816
|
I,
|
|
7750
7817
|
D
|
|
7751
|
-
), ye.e = ye.c.length), _e = M(
|
|
7818
|
+
), ye.e = ye.c.length), _e = M(W, R, I, H ? (j = he, D) : (j = D, he)), Z = z = _e.length; _e[--z] == 0; _e.pop())
|
|
7752
7819
|
;
|
|
7753
7820
|
if (!_e[0])
|
|
7754
7821
|
return j.charAt(0);
|
|
7755
7822
|
if (Se < 0 ? --Z : (me.c = _e, me.e = Z, me.s = F, me = ie(me, ye, Ne, ee, I), _e = me.c, ue = me.r, Z = me.e), K = Z + Ne + 1, Se = _e[K], z = I / 2, ue = ue || K < 0 || _e[K + 1] != null, ue = ee < 4 ? (Se != null || ue) && (ee == 0 || ee == (me.s < 0 ? 3 : 2)) : Se > z || Se == z && (ee == 4 || ue || ee == 6 && _e[K - 1] & 1 || ee == (me.s < 0 ? 8 : 7)), K < 1 || !_e[0])
|
|
7756
|
-
|
|
7823
|
+
W = ue ? oe(j.charAt(1), -Ne, j.charAt(0)) : j.charAt(0);
|
|
7757
7824
|
else {
|
|
7758
7825
|
if (_e.length = K, ue)
|
|
7759
7826
|
for (--I; ++_e[--K] > I; )
|
|
7760
7827
|
_e[K] = 0, K || (++Z, _e = [1].concat(_e));
|
|
7761
7828
|
for (z = _e.length; !_e[--z]; )
|
|
7762
7829
|
;
|
|
7763
|
-
for (Se = 0,
|
|
7830
|
+
for (Se = 0, W = ""; Se <= z; W += j.charAt(_e[Se++]))
|
|
7764
7831
|
;
|
|
7765
|
-
|
|
7832
|
+
W = oe(W, Z, j.charAt(0));
|
|
7766
7833
|
}
|
|
7767
|
-
return
|
|
7834
|
+
return W;
|
|
7768
7835
|
};
|
|
7769
7836
|
}(), ie = function() {
|
|
7770
7837
|
function D(R, I, F) {
|
|
@@ -7785,14 +7852,14 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7785
7852
|
}
|
|
7786
7853
|
return K;
|
|
7787
7854
|
}
|
|
7788
|
-
function
|
|
7855
|
+
function W(R, I, F, H) {
|
|
7789
7856
|
for (var j = 0; F--; )
|
|
7790
7857
|
R[F] -= j, j = R[F] < I[F] ? 1 : 0, R[F] = j * H + R[F] - I[F];
|
|
7791
7858
|
for (; !R[0] && R.length > 1; R.splice(0, 1))
|
|
7792
7859
|
;
|
|
7793
7860
|
}
|
|
7794
7861
|
return function(R, I, F, H, j) {
|
|
7795
|
-
var K, Z, z, ue, me, _e, ye, Se, Ne, ee, le,
|
|
7862
|
+
var K, Z, z, ue, me, _e, ye, Se, Ne, ee, le, Oe, we, je, Be, xe, $e, We = R.s == I.s ? 1 : -1, Ve = R.c, Ue = I.c;
|
|
7796
7863
|
if (!Ve || !Ve[0] || !Ue || !Ue[0])
|
|
7797
7864
|
return new fe(
|
|
7798
7865
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -7801,7 +7868,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7801
7868
|
Ve && Ve[0] == 0 || !Ue ? We * 0 : We / 0
|
|
7802
7869
|
)
|
|
7803
7870
|
);
|
|
7804
|
-
for (Se = new fe(We), Ne = Se.c = [], Z = R.e - I.e, We = F + Z + 1, j || (j = L, Z = se(R.e /
|
|
7871
|
+
for (Se = new fe(We), Ne = Se.c = [], Z = R.e - I.e, We = F + Z + 1, j || (j = L, Z = se(R.e / B) - se(I.e / B), We = We / B | 0), z = 0; Ue[z] == (Ve[z] || 0); z++)
|
|
7805
7872
|
;
|
|
7806
7873
|
if (Ue[z] > (Ve[z] || 0) && Z--, We < 0)
|
|
7807
7874
|
Ne.push(1), ue = !0;
|
|
@@ -7811,14 +7878,14 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7811
7878
|
$e = Ue.slice(), $e = [0].concat($e), Be = Ue[0], Ue[1] >= j / 2 && Be++;
|
|
7812
7879
|
do {
|
|
7813
7880
|
if (me = 0, K = M(Ue, ee, xe, le), K < 0) {
|
|
7814
|
-
if (
|
|
7881
|
+
if (Oe = ee[0], xe != le && (Oe = Oe * j + (ee[1] || 0)), me = l(Oe / Be), me > 1)
|
|
7815
7882
|
for (me >= j && (me = j - 1), _e = D(Ue, me, j), ye = _e.length, le = ee.length; M(_e, ee, ye, le) == 1; )
|
|
7816
|
-
me--,
|
|
7883
|
+
me--, W(_e, xe < ye ? $e : Ue, ye, j), ye = _e.length, K = 1;
|
|
7817
7884
|
else
|
|
7818
7885
|
me == 0 && (K = me = 1), _e = Ue.slice(), ye = _e.length;
|
|
7819
|
-
if (ye < le && (_e = [0].concat(_e)),
|
|
7886
|
+
if (ye < le && (_e = [0].concat(_e)), W(ee, _e, le, j), le = ee.length, K == -1)
|
|
7820
7887
|
for (; M(Ue, ee, xe, le) < 1; )
|
|
7821
|
-
me++,
|
|
7888
|
+
me++, W(ee, xe < le ? $e : Ue, le, j), le = ee.length;
|
|
7822
7889
|
} else
|
|
7823
7890
|
K === 0 && (me++, ee = [0]);
|
|
7824
7891
|
Ne[z++] = me, ee[0] ? ee[le++] = Ve[we] || 0 : (ee = [Ve[we]], le = 1);
|
|
@@ -7828,19 +7895,19 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7828
7895
|
if (j == L) {
|
|
7829
7896
|
for (z = 1, We = Ne[0]; We >= 10; We /= 10, z++)
|
|
7830
7897
|
;
|
|
7831
|
-
Ie(Se, F + (Se.e = z + Z *
|
|
7898
|
+
Ie(Se, F + (Se.e = z + Z * B - 1) + 1, H, ue);
|
|
7832
7899
|
} else
|
|
7833
7900
|
Se.e = Z, Se.r = +ue;
|
|
7834
7901
|
return Se;
|
|
7835
7902
|
};
|
|
7836
7903
|
}();
|
|
7837
|
-
function Pe(D, M,
|
|
7904
|
+
function Pe(D, M, W, R) {
|
|
7838
7905
|
var I, F, H, j, K;
|
|
7839
|
-
if (
|
|
7906
|
+
if (W == null ? W = ge : Q(W, 0, 8), !D.c)
|
|
7840
7907
|
return D.toString();
|
|
7841
7908
|
if (I = D.c[0], H = D.e, M == null)
|
|
7842
7909
|
K = re(D.c), K = R == 1 || R == 2 && (H <= ve || H >= Ae) ? te(K, H) : oe(K, H, "0");
|
|
7843
|
-
else if (D = Ie(new fe(D), M,
|
|
7910
|
+
else if (D = Ie(new fe(D), M, W), F = D.e, K = re(D.c), j = K.length, R == 1 || R == 2 && (M <= F || F <= ve)) {
|
|
7844
7911
|
for (; j < M; K += "0", j++)
|
|
7845
7912
|
;
|
|
7846
7913
|
K = te(K, F);
|
|
@@ -7853,20 +7920,20 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7853
7920
|
;
|
|
7854
7921
|
return D.s < 0 && I ? "-" + K : K;
|
|
7855
7922
|
}
|
|
7856
|
-
function
|
|
7857
|
-
for (var
|
|
7858
|
-
R = new fe(D[I]), (!R.s || (
|
|
7923
|
+
function Me(D, M) {
|
|
7924
|
+
for (var W, R, I = 1, F = new fe(D[0]); I < D.length; I++)
|
|
7925
|
+
R = new fe(D[I]), (!R.s || (W = Y(F, R)) === M || W === 0 && F.s === M) && (F = R);
|
|
7859
7926
|
return F;
|
|
7860
7927
|
}
|
|
7861
|
-
function De(D, M,
|
|
7928
|
+
function De(D, M, W) {
|
|
7862
7929
|
for (var R = 1, I = M.length; !M[--I]; M.pop())
|
|
7863
7930
|
;
|
|
7864
7931
|
for (I = M[0]; I >= 10; I /= 10, R++)
|
|
7865
7932
|
;
|
|
7866
|
-
return (
|
|
7933
|
+
return (W = R + W * B - 1) > Ee ? D.c = D.e = null : W < Ce ? D.c = [D.e = 0] : (D.e = W, D.c = M), D;
|
|
7867
7934
|
}
|
|
7868
7935
|
$ = function() {
|
|
7869
|
-
var D = /^(-?)0([xbo])(?=\w[\w.]*$)/i, M = /^([^.]+)\.$/,
|
|
7936
|
+
var D = /^(-?)0([xbo])(?=\w[\w.]*$)/i, M = /^([^.]+)\.$/, W = /^\.([^.]+)$/, R = /^-?(Infinity|NaN)$/, I = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7870
7937
|
return function(F, H, j, K) {
|
|
7871
7938
|
var Z, z = j ? H : H.replace(I, "");
|
|
7872
7939
|
if (R.test(z))
|
|
@@ -7874,7 +7941,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7874
7941
|
else {
|
|
7875
7942
|
if (!j && (z = z.replace(D, function(ue, me, _e) {
|
|
7876
7943
|
return Z = (_e = _e.toLowerCase()) == "x" ? 16 : _e == "b" ? 2 : 8, !K || K == Z ? me : ue;
|
|
7877
|
-
}), K && (Z = K, z = z.replace(M, "$1").replace(
|
|
7944
|
+
}), K && (Z = K, z = z.replace(M, "$1").replace(W, "0.$1")), H != z))
|
|
7878
7945
|
return new fe(z, Z);
|
|
7879
7946
|
if (fe.DEBUG)
|
|
7880
7947
|
throw Error(C + "Not a" + (K ? " base " + K : "") + " number: " + H);
|
|
@@ -7883,33 +7950,33 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7883
7950
|
F.c = F.e = null;
|
|
7884
7951
|
};
|
|
7885
7952
|
}();
|
|
7886
|
-
function Ie(D, M,
|
|
7953
|
+
function Ie(D, M, W, R) {
|
|
7887
7954
|
var I, F, H, j, K, Z, z, ue = D.c, me = U;
|
|
7888
7955
|
if (ue) {
|
|
7889
7956
|
e: {
|
|
7890
7957
|
for (I = 1, j = ue[0]; j >= 10; j /= 10, I++)
|
|
7891
7958
|
;
|
|
7892
7959
|
if (F = M - I, F < 0)
|
|
7893
|
-
F +=
|
|
7894
|
-
else if (Z = c((F + 1) /
|
|
7960
|
+
F += B, H = M, K = ue[Z = 0], z = l(K / me[I - H - 1] % 10);
|
|
7961
|
+
else if (Z = c((F + 1) / B), Z >= ue.length)
|
|
7895
7962
|
if (R) {
|
|
7896
7963
|
for (; ue.length <= Z; ue.push(0))
|
|
7897
7964
|
;
|
|
7898
|
-
K = z = 0, I = 1, F %=
|
|
7965
|
+
K = z = 0, I = 1, F %= B, H = F - B + 1;
|
|
7899
7966
|
} else
|
|
7900
7967
|
break e;
|
|
7901
7968
|
else {
|
|
7902
7969
|
for (K = j = ue[Z], I = 1; j >= 10; j /= 10, I++)
|
|
7903
7970
|
;
|
|
7904
|
-
F %=
|
|
7971
|
+
F %= B, H = F - B + I, z = H < 0 ? 0 : l(K / me[I - H - 1] % 10);
|
|
7905
7972
|
}
|
|
7906
7973
|
if (R = R || M < 0 || // Are there any non-zero digits after the rounding digit?
|
|
7907
7974
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
7908
7975
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
7909
|
-
ue[Z + 1] != null || (H < 0 ? K : K % me[I - H - 1]), R =
|
|
7910
|
-
(F > 0 ? H > 0 ? K / me[I - H] : 0 : ue[Z - 1]) % 10 & 1 ||
|
|
7911
|
-
return ue.length = 0, R ? (M -= D.e + 1, ue[0] = me[(
|
|
7912
|
-
if (F == 0 ? (ue.length = Z, j = 1, Z--) : (ue.length = Z + 1, j = me[
|
|
7976
|
+
ue[Z + 1] != null || (H < 0 ? K : K % me[I - H - 1]), R = W < 4 ? (z || R) && (W == 0 || W == (D.s < 0 ? 3 : 2)) : z > 5 || z == 5 && (W == 4 || R || W == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
7977
|
+
(F > 0 ? H > 0 ? K / me[I - H] : 0 : ue[Z - 1]) % 10 & 1 || W == (D.s < 0 ? 8 : 7)), M < 1 || !ue[0])
|
|
7978
|
+
return ue.length = 0, R ? (M -= D.e + 1, ue[0] = me[(B - M % B) % B], D.e = -M || 0) : ue[0] = D.e = 0, D;
|
|
7979
|
+
if (F == 0 ? (ue.length = Z, j = 1, Z--) : (ue.length = Z + 1, j = me[B - F], ue[Z] = H > 0 ? l(K / me[I - H] % me[H]) * j : 0), R)
|
|
7913
7980
|
for (; ; )
|
|
7914
7981
|
if (Z == 0) {
|
|
7915
7982
|
for (F = 1, H = ue[0]; H >= 10; H /= 10, F++)
|
|
@@ -7931,21 +7998,21 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7931
7998
|
return D;
|
|
7932
7999
|
}
|
|
7933
8000
|
function be(D) {
|
|
7934
|
-
var M,
|
|
7935
|
-
return
|
|
8001
|
+
var M, W = D.e;
|
|
8002
|
+
return W === null ? D.toString() : (M = re(D.c), M = W <= ve || W >= Ae ? te(M, W) : oe(M, W, "0"), D.s < 0 ? "-" + M : M);
|
|
7936
8003
|
}
|
|
7937
8004
|
return X.absoluteValue = X.abs = function() {
|
|
7938
8005
|
var D = new fe(this);
|
|
7939
8006
|
return D.s < 0 && (D.s = 1), D;
|
|
7940
8007
|
}, X.comparedTo = function(D, M) {
|
|
7941
|
-
return
|
|
8008
|
+
return Y(this, new fe(D, M));
|
|
7942
8009
|
}, X.decimalPlaces = X.dp = function(D, M) {
|
|
7943
|
-
var
|
|
8010
|
+
var W, R, I, F = this;
|
|
7944
8011
|
if (D != null)
|
|
7945
8012
|
return Q(D, 0, J), M == null ? M = ge : Q(M, 0, 8), Ie(new fe(F), D + F.e + 1, M);
|
|
7946
|
-
if (!(
|
|
8013
|
+
if (!(W = F.c))
|
|
7947
8014
|
return null;
|
|
7948
|
-
if (R = ((I =
|
|
8015
|
+
if (R = ((I = W.length - 1) - se(this.e / B)) * B, I = W[I])
|
|
7949
8016
|
for (; I % 10 == 0; I /= 10, R--)
|
|
7950
8017
|
;
|
|
7951
8018
|
return R < 0 && (R = 0), R;
|
|
@@ -7954,7 +8021,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7954
8021
|
}, X.dividedToIntegerBy = X.idiv = function(D, M) {
|
|
7955
8022
|
return ie(this, new fe(D, M), 0, 1);
|
|
7956
8023
|
}, X.exponentiatedBy = X.pow = function(D, M) {
|
|
7957
|
-
var
|
|
8024
|
+
var W, R, I, F, H, j, K, Z, z, ue = this;
|
|
7958
8025
|
if (D = new fe(D), D.c && !D.isInteger())
|
|
7959
8026
|
throw Error(C + "Exponent not an integer: " + be(D));
|
|
7960
8027
|
if (M != null && (M = new fe(M)), j = D.e > 14, !ue.c || !ue.c[0] || ue.c[0] == 1 && !ue.e && ue.c.length == 1 || !D.c || !D.c[0])
|
|
@@ -7966,9 +8033,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7966
8033
|
} else {
|
|
7967
8034
|
if (D.e > 9 && (ue.e > 0 || ue.e < -1 || (ue.e == 0 ? ue.c[0] > 1 || j && ue.c[1] >= 24e7 : ue.c[0] < 8e13 || j && ue.c[0] <= 9999975e7)))
|
|
7968
8035
|
return F = ue.s < 0 && ae(D) ? -0 : 0, ue.e > -1 && (F = 1 / F), new fe(K ? 1 / F : F);
|
|
7969
|
-
Fe && (F = c(Fe /
|
|
8036
|
+
Fe && (F = c(Fe / B + 2));
|
|
7970
8037
|
}
|
|
7971
|
-
for (j ? (
|
|
8038
|
+
for (j ? (W = new fe(0.5), K && (D.s = 1), Z = ae(D)) : (I = Math.abs(+be(D)), Z = I % 2), z = new fe(pe); ; ) {
|
|
7972
8039
|
if (Z) {
|
|
7973
8040
|
if (z = z.times(ue), !z.c)
|
|
7974
8041
|
break;
|
|
@@ -7978,7 +8045,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7978
8045
|
if (I = l(I / 2), I === 0)
|
|
7979
8046
|
break;
|
|
7980
8047
|
Z = I % 2;
|
|
7981
|
-
} else if (D = D.times(
|
|
8048
|
+
} else if (D = D.times(W), Ie(D, D.e + 1, 1), D.e > 14)
|
|
7982
8049
|
Z = ae(D);
|
|
7983
8050
|
else {
|
|
7984
8051
|
if (I = +be(D), I === 0)
|
|
@@ -7992,19 +8059,19 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7992
8059
|
var M = new fe(this);
|
|
7993
8060
|
return D == null ? D = ge : Q(D, 0, 8), Ie(M, M.e + 1, D);
|
|
7994
8061
|
}, X.isEqualTo = X.eq = function(D, M) {
|
|
7995
|
-
return
|
|
8062
|
+
return Y(this, new fe(D, M)) === 0;
|
|
7996
8063
|
}, X.isFinite = function() {
|
|
7997
8064
|
return !!this.c;
|
|
7998
8065
|
}, X.isGreaterThan = X.gt = function(D, M) {
|
|
7999
|
-
return
|
|
8066
|
+
return Y(this, new fe(D, M)) > 0;
|
|
8000
8067
|
}, X.isGreaterThanOrEqualTo = X.gte = function(D, M) {
|
|
8001
|
-
return (M =
|
|
8068
|
+
return (M = Y(this, new fe(D, M))) === 1 || M === 0;
|
|
8002
8069
|
}, X.isInteger = function() {
|
|
8003
|
-
return !!this.c && se(this.e /
|
|
8070
|
+
return !!this.c && se(this.e / B) > this.c.length - 2;
|
|
8004
8071
|
}, X.isLessThan = X.lt = function(D, M) {
|
|
8005
|
-
return
|
|
8072
|
+
return Y(this, new fe(D, M)) < 0;
|
|
8006
8073
|
}, X.isLessThanOrEqualTo = X.lte = function(D, M) {
|
|
8007
|
-
return (M =
|
|
8074
|
+
return (M = Y(this, new fe(D, M))) === -1 || M === 0;
|
|
8008
8075
|
}, X.isNaN = function() {
|
|
8009
8076
|
return !this.s;
|
|
8010
8077
|
}, X.isNegative = function() {
|
|
@@ -8014,12 +8081,12 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8014
8081
|
}, X.isZero = function() {
|
|
8015
8082
|
return !!this.c && this.c[0] == 0;
|
|
8016
8083
|
}, X.minus = function(D, M) {
|
|
8017
|
-
var
|
|
8084
|
+
var W, R, I, F, H = this, j = H.s;
|
|
8018
8085
|
if (D = new fe(D, M), M = D.s, !j || !M)
|
|
8019
8086
|
return new fe(NaN);
|
|
8020
8087
|
if (j != M)
|
|
8021
8088
|
return D.s = -M, H.plus(D);
|
|
8022
|
-
var K = H.e /
|
|
8089
|
+
var K = H.e / B, Z = D.e / B, z = H.c, ue = D.c;
|
|
8023
8090
|
if (!K || !Z) {
|
|
8024
8091
|
if (!z || !ue)
|
|
8025
8092
|
return z ? (D.s = -M, D) : new fe(ue ? H : NaN);
|
|
@@ -8039,14 +8106,14 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8039
8106
|
F = z[M] < ue[M];
|
|
8040
8107
|
break;
|
|
8041
8108
|
}
|
|
8042
|
-
if (F && (I = z, z = ue, ue = I, D.s = -D.s), M = (R = ue.length) - (
|
|
8043
|
-
for (; M--; z[
|
|
8109
|
+
if (F && (I = z, z = ue, ue = I, D.s = -D.s), M = (R = ue.length) - (W = z.length), M > 0)
|
|
8110
|
+
for (; M--; z[W++] = 0)
|
|
8044
8111
|
;
|
|
8045
8112
|
for (M = L - 1; R > j; ) {
|
|
8046
8113
|
if (z[--R] < ue[R]) {
|
|
8047
|
-
for (
|
|
8114
|
+
for (W = R; W && !z[--W]; z[W] = M)
|
|
8048
8115
|
;
|
|
8049
|
-
--z[
|
|
8116
|
+
--z[W], z[R] += L;
|
|
8050
8117
|
}
|
|
8051
8118
|
z[R] -= ue[R];
|
|
8052
8119
|
}
|
|
@@ -8054,30 +8121,30 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8054
8121
|
;
|
|
8055
8122
|
return z[0] ? De(D, z, Z) : (D.s = ge == 3 ? -1 : 1, D.c = [D.e = 0], D);
|
|
8056
8123
|
}, X.modulo = X.mod = function(D, M) {
|
|
8057
|
-
var
|
|
8058
|
-
return D = new fe(D, M), !I.c || !D.s || D.c && !D.c[0] ? new fe(NaN) : !D.c || I.c && !I.c[0] ? new fe(I) : (
|
|
8124
|
+
var W, R, I = this;
|
|
8125
|
+
return D = new fe(D, M), !I.c || !D.s || D.c && !D.c[0] ? new fe(NaN) : !D.c || I.c && !I.c[0] ? new fe(I) : (Te == 9 ? (R = D.s, D.s = 1, W = ie(I, D, 0, 3), D.s = R, W.s *= R) : W = ie(I, D, 0, Te), D = I.minus(W.times(D)), !D.c[0] && Te == 1 && (D.s = I.s), D);
|
|
8059
8126
|
}, X.multipliedBy = X.times = function(D, M) {
|
|
8060
|
-
var
|
|
8061
|
-
if (!le || !
|
|
8062
|
-
return !ee.s || !D.s || le && !le[0] && !
|
|
8063
|
-
for (R = se(ee.e /
|
|
8127
|
+
var W, R, I, F, H, j, K, Z, z, ue, me, _e, ye, Se, Ne, ee = this, le = ee.c, Oe = (D = new fe(D, M)).c;
|
|
8128
|
+
if (!le || !Oe || !le[0] || !Oe[0])
|
|
8129
|
+
return !ee.s || !D.s || le && !le[0] && !Oe || Oe && !Oe[0] && !le ? D.c = D.e = D.s = null : (D.s *= ee.s, !le || !Oe ? D.c = D.e = null : (D.c = [0], D.e = 0)), D;
|
|
8130
|
+
for (R = se(ee.e / B) + se(D.e / B), D.s *= ee.s, K = le.length, ue = Oe.length, K < ue && (ye = le, le = Oe, Oe = ye, I = K, K = ue, ue = I), I = K + ue, ye = []; I--; ye.push(0))
|
|
8064
8131
|
;
|
|
8065
8132
|
for (Se = L, Ne = V, I = ue; --I >= 0; ) {
|
|
8066
|
-
for (
|
|
8067
|
-
Z = le[--H] % Ne, z = le[H] / Ne | 0, j = _e * Z + z * me, Z = me * Z + j % Ne * Ne + ye[F] +
|
|
8068
|
-
ye[F] =
|
|
8133
|
+
for (W = 0, me = Oe[I] % Ne, _e = Oe[I] / Ne | 0, H = K, F = I + H; F > I; )
|
|
8134
|
+
Z = le[--H] % Ne, z = le[H] / Ne | 0, j = _e * Z + z * me, Z = me * Z + j % Ne * Ne + ye[F] + W, W = (Z / Se | 0) + (j / Ne | 0) + _e * z, ye[F--] = Z % Se;
|
|
8135
|
+
ye[F] = W;
|
|
8069
8136
|
}
|
|
8070
|
-
return
|
|
8137
|
+
return W ? ++R : ye.splice(0, 1), De(D, ye, R);
|
|
8071
8138
|
}, X.negated = function() {
|
|
8072
8139
|
var D = new fe(this);
|
|
8073
8140
|
return D.s = -D.s || null, D;
|
|
8074
8141
|
}, X.plus = function(D, M) {
|
|
8075
|
-
var
|
|
8142
|
+
var W, R = this, I = R.s;
|
|
8076
8143
|
if (D = new fe(D, M), M = D.s, !I || !M)
|
|
8077
8144
|
return new fe(NaN);
|
|
8078
8145
|
if (I != M)
|
|
8079
8146
|
return D.s = -M, R.minus(D);
|
|
8080
|
-
var F = R.e /
|
|
8147
|
+
var F = R.e / B, H = D.e / B, j = R.c, K = D.c;
|
|
8081
8148
|
if (!F || !H) {
|
|
8082
8149
|
if (!j || !K)
|
|
8083
8150
|
return new fe(I / 0);
|
|
@@ -8085,88 +8152,88 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8085
8152
|
return K[0] ? D : new fe(j[0] ? R : I * 0);
|
|
8086
8153
|
}
|
|
8087
8154
|
if (F = se(F), H = se(H), j = j.slice(), I = F - H) {
|
|
8088
|
-
for (I > 0 ? (H = F,
|
|
8155
|
+
for (I > 0 ? (H = F, W = K) : (I = -I, W = j), W.reverse(); I--; W.push(0))
|
|
8089
8156
|
;
|
|
8090
|
-
|
|
8157
|
+
W.reverse();
|
|
8091
8158
|
}
|
|
8092
|
-
for (I = j.length, M = K.length, I - M < 0 && (
|
|
8159
|
+
for (I = j.length, M = K.length, I - M < 0 && (W = K, K = j, j = W, M = I), I = 0; M; )
|
|
8093
8160
|
I = (j[--M] = j[M] + K[M] + I) / L | 0, j[M] = L === j[M] ? 0 : j[M] % L;
|
|
8094
8161
|
return I && (j = [I].concat(j), ++H), De(D, j, H);
|
|
8095
8162
|
}, X.precision = X.sd = function(D, M) {
|
|
8096
|
-
var
|
|
8163
|
+
var W, R, I, F = this;
|
|
8097
8164
|
if (D != null && D !== !!D)
|
|
8098
8165
|
return Q(D, 1, J), M == null ? M = ge : Q(M, 0, 8), Ie(new fe(F), D, M);
|
|
8099
|
-
if (!(
|
|
8166
|
+
if (!(W = F.c))
|
|
8100
8167
|
return null;
|
|
8101
|
-
if (I =
|
|
8168
|
+
if (I = W.length - 1, R = I * B + 1, I = W[I]) {
|
|
8102
8169
|
for (; I % 10 == 0; I /= 10, R--)
|
|
8103
8170
|
;
|
|
8104
|
-
for (I =
|
|
8171
|
+
for (I = W[0]; I >= 10; I /= 10, R++)
|
|
8105
8172
|
;
|
|
8106
8173
|
}
|
|
8107
8174
|
return D && F.e + 1 > R && (R = F.e + 1), R;
|
|
8108
8175
|
}, X.shiftedBy = function(D) {
|
|
8109
|
-
return Q(D, -
|
|
8176
|
+
return Q(D, -q, q), this.times("1e" + D);
|
|
8110
8177
|
}, X.squareRoot = X.sqrt = function() {
|
|
8111
|
-
var D, M,
|
|
8178
|
+
var D, M, W, R, I, F = this, H = F.c, j = F.s, K = F.e, Z = de + 4, z = new fe("0.5");
|
|
8112
8179
|
if (j !== 1 || !H || !H[0])
|
|
8113
8180
|
return new fe(!j || j < 0 && (!H || H[0]) ? NaN : H ? F : 1 / 0);
|
|
8114
|
-
if (j = Math.sqrt(+be(F)), j == 0 || j == 1 / 0 ? (M = re(H), (M.length + K) % 2 == 0 && (M += "0"), j = Math.sqrt(+M), K = se((K + 1) / 2) - (K < 0 || K % 2), j == 1 / 0 ? M = "5e" + K : (M = j.toExponential(), M = M.slice(0, M.indexOf("e") + 1) + K),
|
|
8115
|
-
for (K =
|
|
8116
|
-
if (I =
|
|
8117
|
-
if (
|
|
8181
|
+
if (j = Math.sqrt(+be(F)), j == 0 || j == 1 / 0 ? (M = re(H), (M.length + K) % 2 == 0 && (M += "0"), j = Math.sqrt(+M), K = se((K + 1) / 2) - (K < 0 || K % 2), j == 1 / 0 ? M = "5e" + K : (M = j.toExponential(), M = M.slice(0, M.indexOf("e") + 1) + K), W = new fe(M)) : W = new fe(j + ""), W.c[0]) {
|
|
8182
|
+
for (K = W.e, j = K + Z, j < 3 && (j = 0); ; )
|
|
8183
|
+
if (I = W, W = z.times(I.plus(ie(F, I, Z, 1))), re(I.c).slice(0, j) === (M = re(W.c)).slice(0, j))
|
|
8184
|
+
if (W.e < K && --j, M = M.slice(j - 3, j + 1), M == "9999" || !R && M == "4999") {
|
|
8118
8185
|
if (!R && (Ie(I, I.e + de + 2, 0), I.times(I).eq(F))) {
|
|
8119
|
-
|
|
8186
|
+
W = I;
|
|
8120
8187
|
break;
|
|
8121
8188
|
}
|
|
8122
8189
|
Z += 4, j += 4, R = 1;
|
|
8123
8190
|
} else {
|
|
8124
|
-
(!+M || !+M.slice(1) && M.charAt(0) == "5") && (Ie(
|
|
8191
|
+
(!+M || !+M.slice(1) && M.charAt(0) == "5") && (Ie(W, W.e + de + 2, 1), D = !W.times(W).eq(F));
|
|
8125
8192
|
break;
|
|
8126
8193
|
}
|
|
8127
8194
|
}
|
|
8128
|
-
return Ie(
|
|
8195
|
+
return Ie(W, W.e + de + 1, ge, D);
|
|
8129
8196
|
}, X.toExponential = function(D, M) {
|
|
8130
8197
|
return D != null && (Q(D, 0, J), D++), Pe(this, D, M, 1);
|
|
8131
8198
|
}, X.toFixed = function(D, M) {
|
|
8132
8199
|
return D != null && (Q(D, 0, J), D = D + this.e + 1), Pe(this, D, M);
|
|
8133
|
-
}, X.toFormat = function(D, M,
|
|
8200
|
+
}, X.toFormat = function(D, M, W) {
|
|
8134
8201
|
var R, I = this;
|
|
8135
|
-
if (
|
|
8136
|
-
D != null && M && typeof M == "object" ? (
|
|
8137
|
-
else if (typeof
|
|
8138
|
-
throw Error(C + "Argument not an object: " +
|
|
8202
|
+
if (W == null)
|
|
8203
|
+
D != null && M && typeof M == "object" ? (W = M, M = null) : D && typeof D == "object" ? (W = D, D = M = null) : W = ke;
|
|
8204
|
+
else if (typeof W != "object")
|
|
8205
|
+
throw Error(C + "Argument not an object: " + W);
|
|
8139
8206
|
if (R = I.toFixed(D, M), I.c) {
|
|
8140
|
-
var F, H = R.split("."), j = +
|
|
8207
|
+
var F, H = R.split("."), j = +W.groupSize, K = +W.secondaryGroupSize, Z = W.groupSeparator || "", z = H[0], ue = H[1], me = I.s < 0, _e = me ? z.slice(1) : z, ye = _e.length;
|
|
8141
8208
|
if (K && (F = j, j = K, K = F, ye -= F), j > 0 && ye > 0) {
|
|
8142
8209
|
for (F = ye % j || j, z = _e.substr(0, F); F < ye; F += j)
|
|
8143
8210
|
z += Z + _e.substr(F, j);
|
|
8144
8211
|
K > 0 && (z += Z + _e.slice(F)), me && (z = "-" + z);
|
|
8145
8212
|
}
|
|
8146
|
-
R = ue ? z + (
|
|
8213
|
+
R = ue ? z + (W.decimalSeparator || "") + ((K = +W.fractionGroupSize) ? ue.replace(
|
|
8147
8214
|
new RegExp("\\d{" + K + "}\\B", "g"),
|
|
8148
|
-
"$&" + (
|
|
8215
|
+
"$&" + (W.fractionGroupSeparator || "")
|
|
8149
8216
|
) : ue) : z;
|
|
8150
8217
|
}
|
|
8151
|
-
return (
|
|
8218
|
+
return (W.prefix || "") + R + (W.suffix || "");
|
|
8152
8219
|
}, X.toFraction = function(D) {
|
|
8153
|
-
var M,
|
|
8220
|
+
var M, W, R, I, F, H, j, K, Z, z, ue, me, _e = this, ye = _e.c;
|
|
8154
8221
|
if (D != null && (j = new fe(D), !j.isInteger() && (j.c || j.s !== 1) || j.lt(pe)))
|
|
8155
8222
|
throw Error(C + "Argument " + (j.isInteger() ? "out of range: " : "not an integer: ") + be(j));
|
|
8156
8223
|
if (!ye)
|
|
8157
8224
|
return new fe(_e);
|
|
8158
|
-
for (M = new fe(pe), Z =
|
|
8159
|
-
|
|
8160
|
-
return I = ie(D.minus(
|
|
8161
|
-
ie(K,
|
|
8162
|
-
) < 1 ? [Z, R] : [K,
|
|
8225
|
+
for (M = new fe(pe), Z = W = new fe(pe), R = K = new fe(pe), me = re(ye), F = M.e = me.length - _e.e - 1, M.c[0] = U[(H = F % B) < 0 ? B + H : H], D = !D || j.comparedTo(M) > 0 ? F > 0 ? M : Z : j, H = Ee, Ee = 1 / 0, j = new fe(me), K.c[0] = 0; z = ie(j, M, 0, 1), I = W.plus(z.times(R)), I.comparedTo(D) != 1; )
|
|
8226
|
+
W = R, R = I, Z = K.plus(z.times(I = Z)), K = I, M = j.minus(z.times(I = M)), j = I;
|
|
8227
|
+
return I = ie(D.minus(W), R, 0, 1), K = K.plus(I.times(Z)), W = W.plus(I.times(R)), K.s = Z.s = _e.s, F = F * 2, ue = ie(Z, R, F, ge).minus(_e).abs().comparedTo(
|
|
8228
|
+
ie(K, W, F, ge).minus(_e).abs()
|
|
8229
|
+
) < 1 ? [Z, R] : [K, W], Ee = H, ue;
|
|
8163
8230
|
}, X.toNumber = function() {
|
|
8164
8231
|
return +be(this);
|
|
8165
8232
|
}, X.toPrecision = function(D, M) {
|
|
8166
8233
|
return D != null && Q(D, 1, J), Pe(this, D, M, 2);
|
|
8167
8234
|
}, X.toString = function(D) {
|
|
8168
|
-
var M,
|
|
8169
|
-
return I === null ? R ? (M = "Infinity", R < 0 && (M = "-" + M)) : M = "NaN" : (D == null ? M = I <= ve || I >= Ae ? te(re(
|
|
8235
|
+
var M, W = this, R = W.s, I = W.e;
|
|
8236
|
+
return I === null ? R ? (M = "Infinity", R < 0 && (M = "-" + M)) : M = "NaN" : (D == null ? M = I <= ve || I >= Ae ? te(re(W.c), I) : oe(re(W.c), I, "0") : D === 10 && Le ? (W = Ie(new fe(W), de + I + 1, ge), M = oe(re(W.c), W.e, "0")) : (Q(D, 2, he.length, "Base"), M = G(oe(re(W.c), I, "0"), 10, D, R, !0)), R < 0 && W.c[0] && (M = "-" + M)), M;
|
|
8170
8237
|
}, X.valueOf = X.toJSON = function() {
|
|
8171
8238
|
return be(this);
|
|
8172
8239
|
}, X._isBigNumber = !0, ne != null && fe.set(ne), fe;
|
|
@@ -8177,7 +8244,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8177
8244
|
}
|
|
8178
8245
|
function re(ne) {
|
|
8179
8246
|
for (var ie, G, $ = 1, X = ne.length, pe = ne[0] + ""; $ < X; ) {
|
|
8180
|
-
for (ie = ne[$++] + "", G =
|
|
8247
|
+
for (ie = ne[$++] + "", G = B - ie.length; G--; ie = "0" + ie)
|
|
8181
8248
|
;
|
|
8182
8249
|
pe += ie;
|
|
8183
8250
|
}
|
|
@@ -8185,7 +8252,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8185
8252
|
;
|
|
8186
8253
|
return pe.slice(0, X + 1 || 1);
|
|
8187
8254
|
}
|
|
8188
|
-
function
|
|
8255
|
+
function Y(ne, ie) {
|
|
8189
8256
|
var G, $, X = ne.c, pe = ie.c, de = ne.s, ge = ie.s, ve = ne.e, Ae = ie.e;
|
|
8190
8257
|
if (!de || !ge)
|
|
8191
8258
|
return null;
|
|
@@ -8208,7 +8275,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8208
8275
|
}
|
|
8209
8276
|
function ae(ne) {
|
|
8210
8277
|
var ie = ne.c.length - 1;
|
|
8211
|
-
return se(ne.e /
|
|
8278
|
+
return se(ne.e / B) == ie && ne.c[ie] % 2 != 0;
|
|
8212
8279
|
}
|
|
8213
8280
|
function te(ne, ie) {
|
|
8214
8281
|
return (ne.length > 1 ? ne.charAt(0) + "." + ne.slice(1) : ne) + (ie < 0 ? "e" : "e+") + ie;
|
|
@@ -8244,15 +8311,15 @@ var bignumberExports = bignumber.exports;
|
|
|
8244
8311
|
'"': '\\"',
|
|
8245
8312
|
"\\": "\\\\"
|
|
8246
8313
|
}, A;
|
|
8247
|
-
function L(
|
|
8248
|
-
return s.lastIndex = 0, s.test(
|
|
8314
|
+
function L(q) {
|
|
8315
|
+
return s.lastIndex = 0, s.test(q) ? '"' + q.replace(s, function(U) {
|
|
8249
8316
|
var V = C[U];
|
|
8250
8317
|
return typeof V == "string" ? V : "\\u" + ("0000" + U.charCodeAt(0).toString(16)).slice(-4);
|
|
8251
|
-
}) + '"' : '"' +
|
|
8318
|
+
}) + '"' : '"' + q + '"';
|
|
8252
8319
|
}
|
|
8253
|
-
function
|
|
8254
|
-
var V, J, ce, se, re = c,
|
|
8255
|
-
switch (Q && typeof Q == "object" && typeof Q.toJSON == "function" && (Q = Q.toJSON(
|
|
8320
|
+
function B(q, U) {
|
|
8321
|
+
var V, J, ce, se, re = c, Y, Q = U[q], ae = Q != null && (Q instanceof t || t.isBigNumber(Q));
|
|
8322
|
+
switch (Q && typeof Q == "object" && typeof Q.toJSON == "function" && (Q = Q.toJSON(q)), typeof A == "function" && (Q = A.call(U, q, Q)), typeof Q) {
|
|
8256
8323
|
case "string":
|
|
8257
8324
|
return ae ? Q : L(Q);
|
|
8258
8325
|
case "number":
|
|
@@ -8264,29 +8331,29 @@ var bignumberExports = bignumber.exports;
|
|
|
8264
8331
|
case "object":
|
|
8265
8332
|
if (!Q)
|
|
8266
8333
|
return "null";
|
|
8267
|
-
if (c += l,
|
|
8334
|
+
if (c += l, Y = [], Object.prototype.toString.apply(Q) === "[object Array]") {
|
|
8268
8335
|
for (se = Q.length, V = 0; V < se; V += 1)
|
|
8269
|
-
|
|
8270
|
-
return ce =
|
|
8271
|
-
` + c +
|
|
8336
|
+
Y[V] = B(V, Q) || "null";
|
|
8337
|
+
return ce = Y.length === 0 ? "[]" : c ? `[
|
|
8338
|
+
` + c + Y.join(`,
|
|
8272
8339
|
` + c) + `
|
|
8273
|
-
` + re + "]" : "[" +
|
|
8340
|
+
` + re + "]" : "[" + Y.join(",") + "]", c = re, ce;
|
|
8274
8341
|
}
|
|
8275
8342
|
if (A && typeof A == "object")
|
|
8276
8343
|
for (se = A.length, V = 0; V < se; V += 1)
|
|
8277
|
-
typeof A[V] == "string" && (J = A[V], ce =
|
|
8344
|
+
typeof A[V] == "string" && (J = A[V], ce = B(J, Q), ce && Y.push(L(J) + (c ? ": " : ":") + ce));
|
|
8278
8345
|
else
|
|
8279
8346
|
Object.keys(Q).forEach(function(te) {
|
|
8280
|
-
var oe =
|
|
8281
|
-
oe &&
|
|
8347
|
+
var oe = B(te, Q);
|
|
8348
|
+
oe && Y.push(L(te) + (c ? ": " : ":") + oe);
|
|
8282
8349
|
});
|
|
8283
|
-
return ce =
|
|
8284
|
-
` + c +
|
|
8350
|
+
return ce = Y.length === 0 ? "{}" : c ? `{
|
|
8351
|
+
` + c + Y.join(`,
|
|
8285
8352
|
` + c) + `
|
|
8286
|
-
` + re + "}" : "{" +
|
|
8353
|
+
` + re + "}" : "{" + Y.join(",") + "}", c = re, ce;
|
|
8287
8354
|
}
|
|
8288
8355
|
}
|
|
8289
|
-
typeof n.stringify != "function" && (n.stringify = function(
|
|
8356
|
+
typeof n.stringify != "function" && (n.stringify = function(q, U, V) {
|
|
8290
8357
|
var J;
|
|
8291
8358
|
if (c = "", l = "", typeof V == "number")
|
|
8292
8359
|
for (J = 0; J < V; J += 1)
|
|
@@ -8295,7 +8362,7 @@ var bignumberExports = bignumber.exports;
|
|
|
8295
8362
|
typeof V == "string" && (l = V);
|
|
8296
8363
|
if (A = U, U && typeof U != "function" && (typeof U != "object" || typeof U.length != "number"))
|
|
8297
8364
|
throw new Error("JSON.stringify");
|
|
8298
|
-
return
|
|
8365
|
+
return B("", { "": q });
|
|
8299
8366
|
});
|
|
8300
8367
|
})();
|
|
8301
8368
|
})(stringify);
|
|
@@ -8363,26 +8430,26 @@ var json_parse$1 = function(e) {
|
|
|
8363
8430
|
C("Bad number");
|
|
8364
8431
|
else
|
|
8365
8432
|
return BigNumber == null && (BigNumber = bignumberExports), re.length > 15 ? t.storeAsString ? re : t.useNativeBigInt ? BigInt(re) : new BigNumber(re) : t.alwaysParseAsBig ? t.useNativeBigInt ? BigInt(se) : new BigNumber(se) : se;
|
|
8366
|
-
},
|
|
8367
|
-
var se, re,
|
|
8433
|
+
}, B = function() {
|
|
8434
|
+
var se, re, Y = "", Q;
|
|
8368
8435
|
if (s === '"')
|
|
8369
8436
|
for (var ae = n; A(); ) {
|
|
8370
8437
|
if (s === '"')
|
|
8371
|
-
return n - 1 > ae && (
|
|
8438
|
+
return n - 1 > ae && (Y += l.substring(ae, n - 1)), A(), Y;
|
|
8372
8439
|
if (s === "\\") {
|
|
8373
|
-
if (n - 1 > ae && (
|
|
8440
|
+
if (n - 1 > ae && (Y += l.substring(ae, n - 1)), A(), s === "u") {
|
|
8374
8441
|
for (Q = 0, re = 0; re < 4 && (se = parseInt(A(), 16), !!isFinite(se)); re += 1)
|
|
8375
8442
|
Q = Q * 16 + se;
|
|
8376
|
-
|
|
8443
|
+
Y += String.fromCharCode(Q);
|
|
8377
8444
|
} else if (typeof c[s] == "string")
|
|
8378
|
-
|
|
8445
|
+
Y += c[s];
|
|
8379
8446
|
else
|
|
8380
8447
|
break;
|
|
8381
8448
|
ae = n;
|
|
8382
8449
|
}
|
|
8383
8450
|
}
|
|
8384
8451
|
C("Bad string");
|
|
8385
|
-
},
|
|
8452
|
+
}, q = function() {
|
|
8386
8453
|
for (; s && s <= " "; )
|
|
8387
8454
|
A();
|
|
8388
8455
|
}, U = function() {
|
|
@@ -8398,49 +8465,49 @@ var json_parse$1 = function(e) {
|
|
|
8398
8465
|
}, V, J = function() {
|
|
8399
8466
|
var se = [];
|
|
8400
8467
|
if (s === "[") {
|
|
8401
|
-
if (A("["),
|
|
8468
|
+
if (A("["), q(), s === "]")
|
|
8402
8469
|
return A("]"), se;
|
|
8403
8470
|
for (; s; ) {
|
|
8404
|
-
if (se.push(V()),
|
|
8471
|
+
if (se.push(V()), q(), s === "]")
|
|
8405
8472
|
return A("]"), se;
|
|
8406
|
-
A(","),
|
|
8473
|
+
A(","), q();
|
|
8407
8474
|
}
|
|
8408
8475
|
}
|
|
8409
8476
|
C("Bad array");
|
|
8410
8477
|
}, ce = function() {
|
|
8411
8478
|
var se, re = /* @__PURE__ */ Object.create(null);
|
|
8412
8479
|
if (s === "{") {
|
|
8413
|
-
if (A("{"),
|
|
8480
|
+
if (A("{"), q(), s === "}")
|
|
8414
8481
|
return A("}"), re;
|
|
8415
8482
|
for (; s; ) {
|
|
8416
|
-
if (se =
|
|
8483
|
+
if (se = B(), q(), A(":"), t.strict === !0 && Object.hasOwnProperty.call(re, se) && C('Duplicate key "' + se + '"'), suspectProtoRx.test(se) === !0 ? t.protoAction === "error" ? C("Object contains forbidden prototype property") : t.protoAction === "ignore" ? V() : re[se] = V() : suspectConstructorRx.test(se) === !0 ? t.constructorAction === "error" ? C("Object contains forbidden constructor property") : t.constructorAction === "ignore" ? V() : re[se] = V() : re[se] = V(), q(), s === "}")
|
|
8417
8484
|
return A("}"), re;
|
|
8418
|
-
A(","),
|
|
8485
|
+
A(","), q();
|
|
8419
8486
|
}
|
|
8420
8487
|
}
|
|
8421
8488
|
C("Bad object");
|
|
8422
8489
|
};
|
|
8423
8490
|
return V = function() {
|
|
8424
|
-
switch (
|
|
8491
|
+
switch (q(), s) {
|
|
8425
8492
|
case "{":
|
|
8426
8493
|
return ce();
|
|
8427
8494
|
case "[":
|
|
8428
8495
|
return J();
|
|
8429
8496
|
case '"':
|
|
8430
|
-
return
|
|
8497
|
+
return B();
|
|
8431
8498
|
case "-":
|
|
8432
8499
|
return L();
|
|
8433
8500
|
default:
|
|
8434
8501
|
return s >= "0" && s <= "9" ? L() : U();
|
|
8435
8502
|
}
|
|
8436
8503
|
}, function(se, re) {
|
|
8437
|
-
var
|
|
8438
|
-
return l = se + "", n = 0, s = " ",
|
|
8504
|
+
var Y;
|
|
8505
|
+
return l = se + "", n = 0, s = " ", Y = V(), q(), s && C("Syntax error"), typeof re == "function" ? function Q(ae, te) {
|
|
8439
8506
|
var oe, ne = ae[te];
|
|
8440
8507
|
return ne && typeof ne == "object" && Object.keys(ne).forEach(function(ie) {
|
|
8441
8508
|
oe = Q(ne, ie), oe !== void 0 ? ne[ie] = oe : delete ne[ie];
|
|
8442
8509
|
}), re.call(ae, te, ne);
|
|
8443
|
-
}({ "":
|
|
8510
|
+
}({ "": Y }, "") : Y;
|
|
8444
8511
|
};
|
|
8445
8512
|
}, parse = json_parse$1, json_stringify = stringifyExports.stringify, json_parse = parse;
|
|
8446
8513
|
jsonBigint.exports = function(e) {
|
|
@@ -8536,22 +8603,22 @@ var hoconParser = { exports: {} };
|
|
|
8536
8603
|
var index = 0, result = readHocon(text);
|
|
8537
8604
|
return handleSubtitutions(result);
|
|
8538
8605
|
function readHocon(e) {
|
|
8539
|
-
for (var t = !1, n = "", s = !1, c = !1, l = !1, C = !1, A = !1, L = !1,
|
|
8606
|
+
for (var t = !1, n = "", s = !1, c = !1, l = !1, C = !1, A = !1, L = !1, B = !1, q = !1, U = "", V = "", J = {}; index < e.length; ) {
|
|
8540
8607
|
var ce = e[index];
|
|
8541
|
-
if (index++, L && !
|
|
8608
|
+
if (index++, L && !q) {
|
|
8542
8609
|
(ce === "\r" || ce === `
|
|
8543
8610
|
`) && (L = !1);
|
|
8544
8611
|
continue;
|
|
8545
8612
|
}
|
|
8546
8613
|
if (!s && ce === '"' && index + 1 < e.length && e[index] === '"' && e[index + 1] === '"') {
|
|
8547
|
-
if (
|
|
8548
|
-
re(),
|
|
8614
|
+
if (q) {
|
|
8615
|
+
re(), q = !1, t = !1, C = !1, index += 2;
|
|
8549
8616
|
continue;
|
|
8550
8617
|
}
|
|
8551
|
-
|
|
8618
|
+
q = !0, t = !0, C = !0, index += 2;
|
|
8552
8619
|
continue;
|
|
8553
8620
|
}
|
|
8554
|
-
if (!s && !
|
|
8621
|
+
if (!s && !q && (ce === "'" || ce === '"')) {
|
|
8555
8622
|
if (t && n === ce) {
|
|
8556
8623
|
C ? re() : C = !0, t = !1;
|
|
8557
8624
|
continue;
|
|
@@ -8559,7 +8626,7 @@ var hoconParser = { exports: {} };
|
|
|
8559
8626
|
t = !0, n = ce;
|
|
8560
8627
|
continue;
|
|
8561
8628
|
}
|
|
8562
|
-
if (
|
|
8629
|
+
if (q && se(ce)) {
|
|
8563
8630
|
V += ce;
|
|
8564
8631
|
continue;
|
|
8565
8632
|
}
|
|
@@ -8656,11 +8723,11 @@ var hoconParser = { exports: {} };
|
|
|
8656
8723
|
continue;
|
|
8657
8724
|
}
|
|
8658
8725
|
case "/": {
|
|
8659
|
-
if (
|
|
8660
|
-
L = !0,
|
|
8726
|
+
if (B) {
|
|
8727
|
+
L = !0, B = !1;
|
|
8661
8728
|
continue;
|
|
8662
8729
|
}
|
|
8663
|
-
|
|
8730
|
+
B = !0;
|
|
8664
8731
|
continue;
|
|
8665
8732
|
}
|
|
8666
8733
|
}
|
|
@@ -8671,8 +8738,8 @@ var hoconParser = { exports: {} };
|
|
|
8671
8738
|
if (l)
|
|
8672
8739
|
throw "Expected closing square bracket";
|
|
8673
8740
|
return C && re(), J;
|
|
8674
|
-
function se(
|
|
8675
|
-
return ['"', "\\"].indexOf(
|
|
8741
|
+
function se(Y) {
|
|
8742
|
+
return ['"', "\\"].indexOf(Y) !== -1;
|
|
8676
8743
|
}
|
|
8677
8744
|
function re(ae, te) {
|
|
8678
8745
|
var ae = ae || U, te = te || J, oe = ae.indexOf(".");
|
|
@@ -8716,20 +8783,20 @@ var hoconParser = { exports: {} };
|
|
|
8716
8783
|
});
|
|
8717
8784
|
})(hoconParser);
|
|
8718
8785
|
var hoconParserExports = hoconParser.exports;
|
|
8719
|
-
const parseHoconToObject = /* @__PURE__ */ getDefaultExportFromCjs(hoconParserExports), formatKey = (e) => /^[a-zA-Z0-9_-]+$/.test(e) && !["true", "false", "null"].includes(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`, objectToHocon = (e) => {
|
|
8786
|
+
const parseHoconToObject = /* @__PURE__ */ getDefaultExportFromCjs(hoconParserExports), formatKey = (e) => /^[a-zA-Z0-9_-]+$/.test(e) && !["true", "false", "null"].includes(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`, objectToHocon = (e, t = 0) => {
|
|
8720
8787
|
if (isEmptyObj(e))
|
|
8721
8788
|
return "{}";
|
|
8722
|
-
const t = (c,
|
|
8723
|
-
${
|
|
8789
|
+
const n = " ".repeat(t), s = " ".repeat(t + 1), c = (A, L) => typeof A == "string" ? `"${A.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n")}"` : A == null ? "null" : Array.isArray(A) ? A.length === 0 ? "[]" : `[
|
|
8790
|
+
${A.map((q) => `${" ".repeat(L + 1)}${c(q, L + 1)}`).join(`,
|
|
8724
8791
|
`)}
|
|
8725
|
-
${" ".repeat(
|
|
8792
|
+
${" ".repeat(L)}]` : typeof A == "object" ? objectToHocon(A, L) : String(A);
|
|
8726
8793
|
return `{
|
|
8727
|
-
${Object.keys(e).map((
|
|
8728
|
-
const
|
|
8729
|
-
return
|
|
8794
|
+
${Object.keys(e).map((A) => {
|
|
8795
|
+
const L = e[A], B = formatKey(A);
|
|
8796
|
+
return `${s}${B} = ${c(L, t + 1)}`;
|
|
8730
8797
|
}).join(`
|
|
8731
8798
|
`)}
|
|
8732
|
-
}`;
|
|
8799
|
+
${n}}`;
|
|
8733
8800
|
}, hoconToObject = (e) => {
|
|
8734
8801
|
if (e.trim() === "")
|
|
8735
8802
|
return {};
|
|
@@ -8752,6 +8819,7 @@ export {
|
|
|
8752
8819
|
getBridgeNameFromId,
|
|
8753
8820
|
getBridgeTypeFromId,
|
|
8754
8821
|
getKeyPartsFromSQL,
|
|
8822
|
+
getKeywordsFromSQL,
|
|
8755
8823
|
getRuleSelectionAlias,
|
|
8756
8824
|
getTypeAndNameFromKey,
|
|
8757
8825
|
hoconToObject,
|