@emqx/shared-ui-utils 0.0.21 → 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/index.js +197 -129
- package/dist/index.umd.cjs +16 -16
- package/dist/tools.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,7 +70,14 @@ const O = new RegExp(
|
|
|
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
|
|
@@ -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,9 +1433,9 @@ 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
|
}
|
|
@@ -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",
|
|
@@ -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] || {};
|
|
@@ -5565,11 +5632,11 @@ 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;
|
|
@@ -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) {
|
|
@@ -6579,7 +6646,7 @@ function useI18nForLegacy(e, t, n, s = {}) {
|
|
|
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) {
|
|
@@ -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,
|
|
@@ -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]);
|
|
@@ -6852,25 +6919,25 @@ License: MIT
|
|
|
6852
6919
|
if (!M) {
|
|
6853
6920
|
for (var H = 0; H < D; H++) {
|
|
6854
6921
|
0 < H && !W && (Pe += de);
|
|
6855
|
-
var j =
|
|
6856
|
-
Pe +=
|
|
6922
|
+
var j = Me && De ? he[H] : H;
|
|
6923
|
+
Pe += ke(Le[be][j], H);
|
|
6857
6924
|
}
|
|
6858
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;
|
|
@@ -6901,9 +6968,9 @@ License: MIT
|
|
|
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();
|
|
@@ -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
7135
|
function be(M, W) {
|
|
7069
|
-
ie(G.transformHeader) && (M = G.transformHeader(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
|
|
@@ -7081,16 +7148,16 @@ License: MIT
|
|
|
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
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) {
|
|
@@ -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 Y(I), he = X.parse($, D, M), Pe(),
|
|
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() {
|
|
@@ -7169,14 +7236,14 @@ 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));
|
|
@@ -7186,18 +7253,18 @@ License: MIT
|
|
|
7186
7253
|
W.push(j);
|
|
7187
7254
|
}
|
|
7188
7255
|
if (I) {
|
|
7189
|
-
var Z =
|
|
7190
|
-
Z[0] = W.join(X),
|
|
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) } };
|
|
@@ -7533,7 +7600,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7533
7600
|
(function(t) {
|
|
7534
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,
|
|
@@ -7639,9 +7706,9 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7639
7706
|
Re = W;
|
|
7640
7707
|
else
|
|
7641
7708
|
throw Error(C + M + " not true or false: " + W);
|
|
7642
|
-
if (D.hasOwnProperty(M = "MODULO_MODE") && (W = D[M], Q(W, 0, 9, M),
|
|
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"))
|
|
7643
7710
|
if (W = D[M], typeof W == "object")
|
|
7644
|
-
|
|
7711
|
+
ke = W;
|
|
7645
7712
|
else
|
|
7646
7713
|
throw Error(C + M + " not an object: " + W);
|
|
7647
7714
|
if (D.hasOwnProperty(M = "ALPHABET"))
|
|
@@ -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) {
|
|
@@ -7688,9 +7755,9 @@ 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);
|
|
@@ -7792,7 +7859,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
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.
|
|
@@ -7811,7 +7878,7 @@ 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
7883
|
me--, W(_e, xe < ye ? $e : Ue, ye, j), ye = _e.length, K = 1;
|
|
7817
7884
|
else
|
|
@@ -7853,7 +7920,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
7853
7920
|
;
|
|
7854
7921
|
return D.s < 0 && I ? "-" + K : K;
|
|
7855
7922
|
}
|
|
7856
|
-
function
|
|
7923
|
+
function Me(D, M) {
|
|
7857
7924
|
for (var W, R, I = 1, F = new fe(D[0]); I < D.length; I++)
|
|
7858
7925
|
R = new fe(D[I]), (!R.s || (W = Y(F, R)) === M || W === 0 && F.s === M) && (F = R);
|
|
7859
7926
|
return F;
|
|
@@ -8055,15 +8122,15 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
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
8124
|
var W, R, I = this;
|
|
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) : (
|
|
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 W, R, I, F, H, j, K, Z, z, ue, me, _e, ye, Se, Ne, ee = this, le = ee.c,
|
|
8061
|
-
if (!le || !
|
|
8062
|
-
return !ee.s || !D.s || le && !le[0] && !
|
|
8063
|
-
for (R = se(ee.e / B) + se(D.e / B), D.s *= ee.s, K = le.length, ue =
|
|
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 (W = 0, me =
|
|
8133
|
+
for (W = 0, me = Oe[I] % Ne, _e = Oe[I] / Ne | 0, H = K, F = I + H; F > I; )
|
|
8067
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;
|
|
8068
8135
|
ye[F] = W;
|
|
8069
8136
|
}
|
|
@@ -8133,7 +8200,7 @@ var jsonBigint = { exports: {} }, stringify = { exports: {} }, bignumber = { exp
|
|
|
8133
8200
|
}, X.toFormat = function(D, M, W) {
|
|
8134
8201
|
var R, I = this;
|
|
8135
8202
|
if (W == null)
|
|
8136
|
-
D != null && M && typeof M == "object" ? (W = M, M = null) : D && typeof D == "object" ? (W = D, D = M = null) : W =
|
|
8203
|
+
D != null && M && typeof M == "object" ? (W = M, M = null) : D && typeof D == "object" ? (W = D, D = M = null) : W = ke;
|
|
8137
8204
|
else if (typeof W != "object")
|
|
8138
8205
|
throw Error(C + "Argument not an object: " + W);
|
|
8139
8206
|
if (R = I.toFixed(D, M), I.c) {
|
|
@@ -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,
|