vue-layout-gitcode 1.1.23 → 1.1.25
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/{GloabarSearch-964bc98f.js → GloabarSearch-DpWRqL8Z.js} +3 -49
- package/{ProjectSearch-972d11b3.js → ProjectSearch-CUYqxB2e.js} +3 -47
- package/{SearchHistoryList-5ac72ba3.js → SearchHistoryList-CsrGs9P0.js} +3 -47
- package/SearchPrefixTag-BIqUmChj.js +46 -0
- package/{SearchRecommed-a36add1c.js → SearchRecommed-CGDAvddU.js} +4 -48
- package/{SearchScopeList-742a974b.js → SearchScopeList-BcNBGCAZ.js} +3 -47
- package/{UserSearch-180a98d2.js → UserSearch-B2JLOkTk.js} +2 -46
- package/{index-96b463fe.js → index-BcHpCD9I.js} +460 -794
- package/{index-63b698c2.js → index-Cy6etTg0.js} +3 -49
- package/{index-1d01245d.js → index-DrZCkoo8.js} +15 -25
- package/index.js +1 -47
- package/{notice-8fa57727.js → notice-CvalmyAG.js} +2 -43
- package/package.json +1 -1
- package/style.css +1 -1
- package/SearchPrefixTag-132d1819.js +0 -90
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
1
|
+
import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
|
|
2
2
|
import { Button } from "vue-devui-lal/button";
|
|
3
3
|
import { Popover } from "vue-devui-lal/popover";
|
|
4
4
|
import { Tooltip } from "vue-devui-lal/tooltip";
|
|
@@ -91,7 +91,6 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
const index_vue_vue_type_style_index_0_scoped_2e3caaf8_lang = "";
|
|
95
94
|
const _export_sfc = (sfc, props) => {
|
|
96
95
|
const target = sfc.__vccOpts || sfc;
|
|
97
96
|
for (const [key, val] of props) {
|
|
@@ -99,7 +98,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
99
98
|
}
|
|
100
99
|
return target;
|
|
101
100
|
};
|
|
102
|
-
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-
|
|
101
|
+
const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
103
102
|
const defaultConfig = {
|
|
104
103
|
VITE_ENV: "production",
|
|
105
104
|
VITE_HOST: "https://gitcode.com",
|
|
@@ -252,8 +251,7 @@ function sha1$1(s) {
|
|
|
252
251
|
const l = (data.length + 8 >>> 6 << 4) + 16;
|
|
253
252
|
var s = new Uint8Array(l << 2);
|
|
254
253
|
s.set(new Uint8Array(data.buffer)), s = new Uint32Array(s.buffer);
|
|
255
|
-
for (t2 = new DataView(s.buffer), i = 0; i < l; i++)
|
|
256
|
-
s[i] = t2.getUint32(i << 2);
|
|
254
|
+
for (t2 = new DataView(s.buffer), i = 0; i < l; i++) s[i] = t2.getUint32(i << 2);
|
|
257
255
|
s[data.length >> 2] |= 128 << 24 - (data.length & 3) * 8;
|
|
258
256
|
s[l - 1] = data.length << 3;
|
|
259
257
|
const w = [];
|
|
@@ -282,12 +280,10 @@ function sha1$1(s) {
|
|
|
282
280
|
for (j = 0; j < 80; j++) {
|
|
283
281
|
w[j] = j < 16 ? s[i + j] : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1), t2 = rol(m[0], 5) + f[j / 20 | 0]() + m[4] + w[j] + k[j / 20 | 0] | 0, m[1] = rol(m[1], 30), m.pop(), m.unshift(t2);
|
|
284
282
|
}
|
|
285
|
-
for (j = 0; j < 5; j++)
|
|
286
|
-
m[j] = m[j] + o[j] | 0;
|
|
283
|
+
for (j = 0; j < 5; j++) m[j] = m[j] + o[j] | 0;
|
|
287
284
|
}
|
|
288
285
|
t2 = new DataView(new Uint32Array(m).buffer);
|
|
289
|
-
for (var i = 0; i < 5; i++)
|
|
290
|
-
m[i] = t2.getUint32(i << 2);
|
|
286
|
+
for (var i = 0; i < 5; i++) m[i] = t2.getUint32(i << 2);
|
|
291
287
|
const hex = Array.prototype.map.call(new Uint8Array(new Uint32Array(m).buffer), function(e) {
|
|
292
288
|
return (e < 16 ? "0" : "") + e.toString(16);
|
|
293
289
|
}).join("");
|
|
@@ -299,15 +295,12 @@ function encodeUTF8(s) {
|
|
|
299
295
|
let c;
|
|
300
296
|
let x;
|
|
301
297
|
for (i = 0; i < s.length; i++) {
|
|
302
|
-
if ((c = s.charCodeAt(i)) < 128)
|
|
303
|
-
|
|
304
|
-
else if (c < 2048)
|
|
305
|
-
r.push(192 + (c >> 6 & 31), 128 + (c & 63));
|
|
298
|
+
if ((c = s.charCodeAt(i)) < 128) r.push(c);
|
|
299
|
+
else if (c < 2048) r.push(192 + (c >> 6 & 31), 128 + (c & 63));
|
|
306
300
|
else {
|
|
307
301
|
if ((x = c ^ 55296) >> 10 === 0) {
|
|
308
302
|
c = (x << 10) + (s.charCodeAt(++i) ^ 56320) + 65536, r.push(240 + (c >> 18 & 7), 128 + (c >> 12 & 63));
|
|
309
|
-
} else
|
|
310
|
-
r.push(224 + (c >> 12 & 15));
|
|
303
|
+
} else r.push(224 + (c >> 12 & 15));
|
|
311
304
|
r.push(128 + (c >> 6 & 63), 128 + (c & 63));
|
|
312
305
|
}
|
|
313
306
|
}
|
|
@@ -315,8 +308,7 @@ function encodeUTF8(s) {
|
|
|
315
308
|
}
|
|
316
309
|
function udeskInit(config = {}) {
|
|
317
310
|
var _a, _b, _c;
|
|
318
|
-
if (window.ud)
|
|
319
|
-
return;
|
|
311
|
+
if (window.ud) return;
|
|
320
312
|
const randomNum = generateRandomString(16);
|
|
321
313
|
const nowTimeStr = Date.now().toString();
|
|
322
314
|
const userInfo = localStorage$2.getItem("userInfo") || "";
|
|
@@ -373,16 +365,8 @@ var SceneValue = /* @__PURE__ */ ((SceneValue2) => {
|
|
|
373
365
|
const REPO_PAGE_SIZE = {
|
|
374
366
|
// 仓库页面头部高度
|
|
375
367
|
HEADERS_HEIGHT: 56,
|
|
376
|
-
// 仓库页面头部高度(包含安全区域)
|
|
377
|
-
HEADERS_SAFE_HEIGHT: 96,
|
|
378
368
|
// 仓库页面tabs菜单高度
|
|
379
|
-
REPO_INFO_HEIGHT: 52
|
|
380
|
-
// 仓库页面文件列表距离顶部距离
|
|
381
|
-
GAP_TOP: 32,
|
|
382
|
-
// 仓库页面文件列表距离底部距离
|
|
383
|
-
GAP_BOTTOM: 36,
|
|
384
|
-
// 仓库页面文件列表距离左右距离
|
|
385
|
-
PADDING_NORMAl: 16
|
|
369
|
+
REPO_INFO_HEIGHT: 52
|
|
386
370
|
};
|
|
387
371
|
var ToolsFloatDisplayItem = /* @__PURE__ */ ((ToolsFloatDisplayItem2) => {
|
|
388
372
|
ToolsFloatDisplayItem2["GROWTH_CENTER"] = "0301";
|
|
@@ -1003,10 +987,8 @@ function createDOMPurify() {
|
|
|
1003
987
|
}
|
|
1004
988
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1005
989
|
if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
|
|
1006
|
-
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
|
|
1007
|
-
|
|
1008
|
-
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName))
|
|
1009
|
-
return false;
|
|
990
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
|
|
991
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
|
|
1010
992
|
}
|
|
1011
993
|
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
1012
994
|
var parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
@@ -1045,10 +1027,8 @@ function createDOMPurify() {
|
|
|
1045
1027
|
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
|
|
1046
1028
|
return false;
|
|
1047
1029
|
}
|
|
1048
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName))
|
|
1049
|
-
|
|
1050
|
-
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName))
|
|
1051
|
-
;
|
|
1030
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName)) ;
|
|
1031
|
+
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ;
|
|
1052
1032
|
else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
1053
1033
|
if (
|
|
1054
1034
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -1057,21 +1037,15 @@ function createDOMPurify() {
|
|
|
1057
1037
|
_basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1058
1038
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1059
1039
|
lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
|
|
1060
|
-
)
|
|
1061
|
-
;
|
|
1040
|
+
) ;
|
|
1062
1041
|
else {
|
|
1063
1042
|
return false;
|
|
1064
1043
|
}
|
|
1065
|
-
} else if (URI_SAFE_ATTRIBUTES[lcName])
|
|
1066
|
-
|
|
1067
|
-
else if (
|
|
1068
|
-
|
|
1069
|
-
else if (
|
|
1070
|
-
;
|
|
1071
|
-
else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
|
|
1072
|
-
;
|
|
1073
|
-
else if (!value)
|
|
1074
|
-
;
|
|
1044
|
+
} else if (URI_SAFE_ATTRIBUTES[lcName]) ;
|
|
1045
|
+
else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ""))) ;
|
|
1046
|
+
else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
|
|
1047
|
+
else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ""))) ;
|
|
1048
|
+
else if (!value) ;
|
|
1075
1049
|
else {
|
|
1076
1050
|
return false;
|
|
1077
1051
|
}
|
|
@@ -1315,13 +1289,11 @@ if (typeof purify.addHook === "function" && typeof document !== "undefined" && d
|
|
|
1315
1289
|
});
|
|
1316
1290
|
}
|
|
1317
1291
|
function xssPurify(str) {
|
|
1318
|
-
if (typeof window === "undefined")
|
|
1319
|
-
return str;
|
|
1292
|
+
if (typeof window === "undefined") return str;
|
|
1320
1293
|
return purify.sanitize(str, purifyConfig);
|
|
1321
1294
|
}
|
|
1322
1295
|
const highlightWords = (Word, title, inherit) => {
|
|
1323
|
-
if (!Word)
|
|
1324
|
-
return xssPurify(title || "");
|
|
1296
|
+
if (!Word) return xssPurify(title || "");
|
|
1325
1297
|
title = title ? xssPurify(title) : "";
|
|
1326
1298
|
const color = inherit ? `inherit` : "var(--theme-link)";
|
|
1327
1299
|
const regexPattern = new RegExp(`(${Word.replace(/([.?*+^$[\]\\(){}|-])/gi, "\\$1")})`, "gi");
|
|
@@ -1609,9 +1581,6 @@ function createPosition(line, column, offset) {
|
|
|
1609
1581
|
}
|
|
1610
1582
|
function createLocation(start, end, source) {
|
|
1611
1583
|
const loc = { start, end };
|
|
1612
|
-
if (source != null) {
|
|
1613
|
-
loc.source = source;
|
|
1614
|
-
}
|
|
1615
1584
|
return loc;
|
|
1616
1585
|
}
|
|
1617
1586
|
const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
|
|
@@ -1640,7 +1609,7 @@ const warnMessages$2 = {
|
|
|
1640
1609
|
[CompileWarnCodes.USE_MODULO_SYNTAX]: `Use modulo before '{{0}}'.`
|
|
1641
1610
|
};
|
|
1642
1611
|
function createCompileWarn(code2, loc, ...args) {
|
|
1643
|
-
const msg = format$1(warnMessages$2[code2]
|
|
1612
|
+
const msg = format$1(warnMessages$2[code2], ...args || []);
|
|
1644
1613
|
const message = { message: String(msg), code: code2 };
|
|
1645
1614
|
if (loc) {
|
|
1646
1615
|
message.location = loc;
|
|
@@ -2505,9 +2474,6 @@ function createParser(options = {}) {
|
|
|
2505
2474
|
return node;
|
|
2506
2475
|
}
|
|
2507
2476
|
function endNode(node, offset, pos, type) {
|
|
2508
|
-
if (type) {
|
|
2509
|
-
node.type = type;
|
|
2510
|
-
}
|
|
2511
2477
|
if (location) {
|
|
2512
2478
|
node.end = offset;
|
|
2513
2479
|
if (node.loc) {
|
|
@@ -2947,7 +2913,7 @@ function minify(node) {
|
|
|
2947
2913
|
}
|
|
2948
2914
|
const ERROR_DOMAIN = "parser";
|
|
2949
2915
|
function createCodeGenerator(ast, options) {
|
|
2950
|
-
const {
|
|
2916
|
+
const { filename, breakLineCode, needIndent: _needIndent } = options;
|
|
2951
2917
|
const location = options.location !== false;
|
|
2952
2918
|
const _context = {
|
|
2953
2919
|
filename,
|
|
@@ -3111,14 +3077,12 @@ function generateNode(generator, node) {
|
|
|
3111
3077
|
const generate = (ast, options = {}) => {
|
|
3112
3078
|
const mode = isString$1(options.mode) ? options.mode : "normal";
|
|
3113
3079
|
const filename = isString$1(options.filename) ? options.filename : "message.intl";
|
|
3114
|
-
|
|
3080
|
+
!!options.sourceMap;
|
|
3115
3081
|
const breakLineCode = options.breakLineCode != null ? options.breakLineCode : mode === "arrow" ? ";" : "\n";
|
|
3116
3082
|
const needIndent = options.needIndent ? options.needIndent : mode !== "arrow";
|
|
3117
3083
|
const helpers = ast.helpers || [];
|
|
3118
3084
|
const generator = createCodeGenerator(ast, {
|
|
3119
|
-
mode,
|
|
3120
3085
|
filename,
|
|
3121
|
-
sourceMap,
|
|
3122
3086
|
breakLineCode,
|
|
3123
3087
|
needIndent
|
|
3124
3088
|
});
|
|
@@ -3891,7 +3855,7 @@ function appendItemToChain(chain, target, blocks) {
|
|
|
3891
3855
|
}
|
|
3892
3856
|
return follow;
|
|
3893
3857
|
}
|
|
3894
|
-
const VERSION$
|
|
3858
|
+
const VERSION$3 = "9.14.3";
|
|
3895
3859
|
const NOT_REOSLVED = -1;
|
|
3896
3860
|
const DEFAULT_LOCALE = "en-US";
|
|
3897
3861
|
const MISSING_RESOLVE_VALUE = "";
|
|
@@ -3934,7 +3898,7 @@ const getFallbackContext = () => _fallbackContext;
|
|
|
3934
3898
|
let _cid = 0;
|
|
3935
3899
|
function createCoreContext(options = {}) {
|
|
3936
3900
|
const onWarn = isFunction$4(options.onWarn) ? options.onWarn : warn;
|
|
3937
|
-
const version = isString$2(options.version) ? options.version : VERSION$
|
|
3901
|
+
const version = isString$2(options.version) ? options.version : VERSION$3;
|
|
3938
3902
|
const locale2 = isString$2(options.locale) || isFunction$4(options.locale) ? options.locale : DEFAULT_LOCALE;
|
|
3939
3903
|
const _locale = isFunction$4(locale2) ? DEFAULT_LOCALE : locale2;
|
|
3940
3904
|
const fallbackLocale = isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || isString$2(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
|
|
@@ -5039,7 +5003,7 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
|
|
|
5039
5003
|
* (c) 2025 kazuya kawaguchi
|
|
5040
5004
|
* Released under the MIT License.
|
|
5041
5005
|
*/
|
|
5042
|
-
const VERSION$
|
|
5006
|
+
const VERSION$2 = "9.14.3";
|
|
5043
5007
|
function initFeatureFlags() {
|
|
5044
5008
|
if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
|
|
5045
5009
|
getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
|
|
@@ -5218,10 +5182,10 @@ function getLocaleMessages(locale2, options) {
|
|
|
5218
5182
|
if (isArray$5(__i18n)) {
|
|
5219
5183
|
__i18n.forEach((custom) => {
|
|
5220
5184
|
if ("locale" in custom && "resource" in custom) {
|
|
5221
|
-
const { locale:
|
|
5222
|
-
if (
|
|
5223
|
-
ret[
|
|
5224
|
-
deepCopy(resource, ret[
|
|
5185
|
+
const { locale: locale22, resource } = custom;
|
|
5186
|
+
if (locale22) {
|
|
5187
|
+
ret[locale22] = ret[locale22] || create();
|
|
5188
|
+
deepCopy(resource, ret[locale22]);
|
|
5225
5189
|
} else {
|
|
5226
5190
|
deepCopy(resource, ret);
|
|
5227
5191
|
}
|
|
@@ -5330,7 +5294,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5330
5294
|
const getCoreContext = () => {
|
|
5331
5295
|
_isGlobal && setFallbackContext(null);
|
|
5332
5296
|
const ctxOptions = {
|
|
5333
|
-
version: VERSION$
|
|
5297
|
+
version: VERSION$2,
|
|
5334
5298
|
locale: _locale.value,
|
|
5335
5299
|
fallbackLocale: _fallbackLocale.value,
|
|
5336
5300
|
messages: _messages.value,
|
|
@@ -5422,8 +5386,7 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5422
5386
|
}
|
|
5423
5387
|
ret = fn(_context);
|
|
5424
5388
|
} finally {
|
|
5425
|
-
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
5426
|
-
;
|
|
5389
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) ;
|
|
5427
5390
|
if (!_isGlobal) {
|
|
5428
5391
|
_context.fallbackContext = void 0;
|
|
5429
5392
|
}
|
|
@@ -5529,17 +5492,17 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5529
5492
|
_pluralRules = rules;
|
|
5530
5493
|
_context.pluralRules = _pluralRules;
|
|
5531
5494
|
}
|
|
5532
|
-
function te(key,
|
|
5495
|
+
function te(key, locale22) {
|
|
5533
5496
|
return wrapWithDeps(() => {
|
|
5534
5497
|
if (!key) {
|
|
5535
5498
|
return false;
|
|
5536
5499
|
}
|
|
5537
|
-
const targetLocale = isString$2(
|
|
5500
|
+
const targetLocale = isString$2(locale22) ? locale22 : _locale.value;
|
|
5538
5501
|
const message = getLocaleMessage(targetLocale);
|
|
5539
5502
|
const resolved = _context.messageResolver(message, key);
|
|
5540
5503
|
return !translateExistCompatible ? isMessageAST(resolved) || isMessageFunction(resolved) || isString$2(resolved) : resolved != null;
|
|
5541
5504
|
}, () => [key], "translate exists", (root2) => {
|
|
5542
|
-
return Reflect.apply(root2.te, root2, [key,
|
|
5505
|
+
return Reflect.apply(root2.te, root2, [key, locale22]);
|
|
5543
5506
|
}, NOOP_RETURN_FALSE, (val) => isBoolean$1(val));
|
|
5544
5507
|
}
|
|
5545
5508
|
function resolveMessages(key) {
|
|
@@ -5559,25 +5522,25 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5559
5522
|
const messages2 = resolveMessages(key);
|
|
5560
5523
|
return messages2 != null ? messages2 : __root ? __root.tm(key) || {} : {};
|
|
5561
5524
|
}
|
|
5562
|
-
function getLocaleMessage(
|
|
5563
|
-
return _messages.value[
|
|
5525
|
+
function getLocaleMessage(locale22) {
|
|
5526
|
+
return _messages.value[locale22] || {};
|
|
5564
5527
|
}
|
|
5565
|
-
function setLocaleMessage(
|
|
5528
|
+
function setLocaleMessage(locale22, message) {
|
|
5566
5529
|
if (flatJson) {
|
|
5567
|
-
const _message = { [
|
|
5530
|
+
const _message = { [locale22]: message };
|
|
5568
5531
|
for (const key in _message) {
|
|
5569
5532
|
if (hasOwn(_message, key)) {
|
|
5570
5533
|
handleFlatJson(_message[key]);
|
|
5571
5534
|
}
|
|
5572
5535
|
}
|
|
5573
|
-
message = _message[
|
|
5536
|
+
message = _message[locale22];
|
|
5574
5537
|
}
|
|
5575
|
-
_messages.value[
|
|
5538
|
+
_messages.value[locale22] = message;
|
|
5576
5539
|
_context.messages = _messages.value;
|
|
5577
5540
|
}
|
|
5578
|
-
function mergeLocaleMessage(
|
|
5579
|
-
_messages.value[
|
|
5580
|
-
const _message = { [
|
|
5541
|
+
function mergeLocaleMessage(locale22, message) {
|
|
5542
|
+
_messages.value[locale22] = _messages.value[locale22] || {};
|
|
5543
|
+
const _message = { [locale22]: message };
|
|
5581
5544
|
if (flatJson) {
|
|
5582
5545
|
for (const key in _message) {
|
|
5583
5546
|
if (hasOwn(_message, key)) {
|
|
@@ -5585,35 +5548,35 @@ function createComposer(options = {}, VueI18nLegacy) {
|
|
|
5585
5548
|
}
|
|
5586
5549
|
}
|
|
5587
5550
|
}
|
|
5588
|
-
message = _message[
|
|
5589
|
-
deepCopy(message, _messages.value[
|
|
5551
|
+
message = _message[locale22];
|
|
5552
|
+
deepCopy(message, _messages.value[locale22]);
|
|
5590
5553
|
_context.messages = _messages.value;
|
|
5591
5554
|
}
|
|
5592
|
-
function getDateTimeFormat(
|
|
5593
|
-
return _datetimeFormats.value[
|
|
5555
|
+
function getDateTimeFormat(locale22) {
|
|
5556
|
+
return _datetimeFormats.value[locale22] || {};
|
|
5594
5557
|
}
|
|
5595
|
-
function setDateTimeFormat(
|
|
5596
|
-
_datetimeFormats.value[
|
|
5558
|
+
function setDateTimeFormat(locale22, format2) {
|
|
5559
|
+
_datetimeFormats.value[locale22] = format2;
|
|
5597
5560
|
_context.datetimeFormats = _datetimeFormats.value;
|
|
5598
|
-
clearDateTimeFormat(_context,
|
|
5561
|
+
clearDateTimeFormat(_context, locale22, format2);
|
|
5599
5562
|
}
|
|
5600
|
-
function mergeDateTimeFormat(
|
|
5601
|
-
_datetimeFormats.value[
|
|
5563
|
+
function mergeDateTimeFormat(locale22, format2) {
|
|
5564
|
+
_datetimeFormats.value[locale22] = assign$1(_datetimeFormats.value[locale22] || {}, format2);
|
|
5602
5565
|
_context.datetimeFormats = _datetimeFormats.value;
|
|
5603
|
-
clearDateTimeFormat(_context,
|
|
5566
|
+
clearDateTimeFormat(_context, locale22, format2);
|
|
5604
5567
|
}
|
|
5605
|
-
function getNumberFormat(
|
|
5606
|
-
return _numberFormats.value[
|
|
5568
|
+
function getNumberFormat(locale22) {
|
|
5569
|
+
return _numberFormats.value[locale22] || {};
|
|
5607
5570
|
}
|
|
5608
|
-
function setNumberFormat(
|
|
5609
|
-
_numberFormats.value[
|
|
5571
|
+
function setNumberFormat(locale22, format2) {
|
|
5572
|
+
_numberFormats.value[locale22] = format2;
|
|
5610
5573
|
_context.numberFormats = _numberFormats.value;
|
|
5611
|
-
clearNumberFormat(_context,
|
|
5574
|
+
clearNumberFormat(_context, locale22, format2);
|
|
5612
5575
|
}
|
|
5613
|
-
function mergeNumberFormat(
|
|
5614
|
-
_numberFormats.value[
|
|
5576
|
+
function mergeNumberFormat(locale22, format2) {
|
|
5577
|
+
_numberFormats.value[locale22] = assign$1(_numberFormats.value[locale22] || {}, format2);
|
|
5615
5578
|
_context.numberFormats = _numberFormats.value;
|
|
5616
|
-
clearNumberFormat(_context,
|
|
5579
|
+
clearNumberFormat(_context, locale22, format2);
|
|
5617
5580
|
}
|
|
5618
5581
|
composerID++;
|
|
5619
5582
|
if (__root && inBrowser) {
|
|
@@ -5764,9 +5727,9 @@ function convertComposerOptions(options) {
|
|
|
5764
5727
|
if (isPlainObject$1(options.sharedMessages)) {
|
|
5765
5728
|
const sharedMessages = options.sharedMessages;
|
|
5766
5729
|
const locales = Object.keys(sharedMessages);
|
|
5767
|
-
messages = locales.reduce((messages2,
|
|
5768
|
-
const message = messages2[
|
|
5769
|
-
assign$1(message, sharedMessages[
|
|
5730
|
+
messages = locales.reduce((messages2, locale22) => {
|
|
5731
|
+
const message = messages2[locale22] || (messages2[locale22] = {});
|
|
5732
|
+
assign$1(message, sharedMessages[locale22]);
|
|
5770
5733
|
return messages2;
|
|
5771
5734
|
}, messages || {});
|
|
5772
5735
|
}
|
|
@@ -7168,49 +7131,49 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
|
|
|
7168
7131
|
function tm(key) {
|
|
7169
7132
|
return _composer.value ? _composer.value.tm(key) : {};
|
|
7170
7133
|
}
|
|
7171
|
-
function te(key,
|
|
7172
|
-
return _composer.value ? _composer.value.te(key,
|
|
7134
|
+
function te(key, locale22) {
|
|
7135
|
+
return _composer.value ? _composer.value.te(key, locale22) : false;
|
|
7173
7136
|
}
|
|
7174
|
-
function getLocaleMessage(
|
|
7175
|
-
return _composer.value ? _composer.value.getLocaleMessage(
|
|
7137
|
+
function getLocaleMessage(locale22) {
|
|
7138
|
+
return _composer.value ? _composer.value.getLocaleMessage(locale22) : {};
|
|
7176
7139
|
}
|
|
7177
|
-
function setLocaleMessage(
|
|
7140
|
+
function setLocaleMessage(locale22, message) {
|
|
7178
7141
|
if (_composer.value) {
|
|
7179
|
-
_composer.value.setLocaleMessage(
|
|
7180
|
-
_messages.value[
|
|
7142
|
+
_composer.value.setLocaleMessage(locale22, message);
|
|
7143
|
+
_messages.value[locale22] = message;
|
|
7181
7144
|
}
|
|
7182
7145
|
}
|
|
7183
|
-
function mergeLocaleMessage(
|
|
7146
|
+
function mergeLocaleMessage(locale22, message) {
|
|
7184
7147
|
if (_composer.value) {
|
|
7185
|
-
_composer.value.mergeLocaleMessage(
|
|
7148
|
+
_composer.value.mergeLocaleMessage(locale22, message);
|
|
7186
7149
|
}
|
|
7187
7150
|
}
|
|
7188
|
-
function getDateTimeFormat(
|
|
7189
|
-
return _composer.value ? _composer.value.getDateTimeFormat(
|
|
7151
|
+
function getDateTimeFormat(locale22) {
|
|
7152
|
+
return _composer.value ? _composer.value.getDateTimeFormat(locale22) : {};
|
|
7190
7153
|
}
|
|
7191
|
-
function setDateTimeFormat(
|
|
7154
|
+
function setDateTimeFormat(locale22, format2) {
|
|
7192
7155
|
if (_composer.value) {
|
|
7193
|
-
_composer.value.setDateTimeFormat(
|
|
7194
|
-
_datetimeFormats.value[
|
|
7156
|
+
_composer.value.setDateTimeFormat(locale22, format2);
|
|
7157
|
+
_datetimeFormats.value[locale22] = format2;
|
|
7195
7158
|
}
|
|
7196
7159
|
}
|
|
7197
|
-
function mergeDateTimeFormat(
|
|
7160
|
+
function mergeDateTimeFormat(locale22, format2) {
|
|
7198
7161
|
if (_composer.value) {
|
|
7199
|
-
_composer.value.mergeDateTimeFormat(
|
|
7162
|
+
_composer.value.mergeDateTimeFormat(locale22, format2);
|
|
7200
7163
|
}
|
|
7201
7164
|
}
|
|
7202
|
-
function getNumberFormat(
|
|
7203
|
-
return _composer.value ? _composer.value.getNumberFormat(
|
|
7165
|
+
function getNumberFormat(locale22) {
|
|
7166
|
+
return _composer.value ? _composer.value.getNumberFormat(locale22) : {};
|
|
7204
7167
|
}
|
|
7205
|
-
function setNumberFormat(
|
|
7168
|
+
function setNumberFormat(locale22, format2) {
|
|
7206
7169
|
if (_composer.value) {
|
|
7207
|
-
_composer.value.setNumberFormat(
|
|
7208
|
-
_numberFormats.value[
|
|
7170
|
+
_composer.value.setNumberFormat(locale22, format2);
|
|
7171
|
+
_numberFormats.value[locale22] = format2;
|
|
7209
7172
|
}
|
|
7210
7173
|
}
|
|
7211
|
-
function mergeNumberFormat(
|
|
7174
|
+
function mergeNumberFormat(locale22, format2) {
|
|
7212
7175
|
if (_composer.value) {
|
|
7213
|
-
_composer.value.mergeNumberFormat(
|
|
7176
|
+
_composer.value.mergeNumberFormat(locale22, format2);
|
|
7214
7177
|
}
|
|
7215
7178
|
}
|
|
7216
7179
|
const wrapper3 = {
|
|
@@ -7313,14 +7276,14 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
|
|
|
7313
7276
|
function sync(composer) {
|
|
7314
7277
|
composer.locale.value = _locale.value;
|
|
7315
7278
|
composer.fallbackLocale.value = _fallbackLocale.value;
|
|
7316
|
-
Object.keys(_messages.value).forEach((
|
|
7317
|
-
composer.mergeLocaleMessage(
|
|
7279
|
+
Object.keys(_messages.value).forEach((locale22) => {
|
|
7280
|
+
composer.mergeLocaleMessage(locale22, _messages.value[locale22]);
|
|
7318
7281
|
});
|
|
7319
|
-
Object.keys(_datetimeFormats.value).forEach((
|
|
7320
|
-
composer.mergeDateTimeFormat(
|
|
7282
|
+
Object.keys(_datetimeFormats.value).forEach((locale22) => {
|
|
7283
|
+
composer.mergeDateTimeFormat(locale22, _datetimeFormats.value[locale22]);
|
|
7321
7284
|
});
|
|
7322
|
-
Object.keys(_numberFormats.value).forEach((
|
|
7323
|
-
composer.mergeNumberFormat(
|
|
7285
|
+
Object.keys(_numberFormats.value).forEach((locale22) => {
|
|
7286
|
+
composer.mergeNumberFormat(locale22, _numberFormats.value[locale22]);
|
|
7324
7287
|
});
|
|
7325
7288
|
composer.escapeParameter = _escapeParameter;
|
|
7326
7289
|
composer.fallbackFormat = _fallbackFormat;
|
|
@@ -7405,8 +7368,7 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
7405
7368
|
target.__INTLIFY__ = true;
|
|
7406
7369
|
setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
7407
7370
|
}
|
|
7408
|
-
if (process.env.NODE_ENV !== "production")
|
|
7409
|
-
;
|
|
7371
|
+
if (process.env.NODE_ENV !== "production") ;
|
|
7410
7372
|
const gitCodeLayout$1 = {
|
|
7411
7373
|
home: {
|
|
7412
7374
|
alreadyFollowed: "已关注",
|
|
@@ -8028,8 +7990,7 @@ const handleAvatarRedPoint = (type, other) => {
|
|
|
8028
7990
|
}
|
|
8029
7991
|
};
|
|
8030
7992
|
function extractRepoInfoWithURL(repoUrl) {
|
|
8031
|
-
if (!repoUrl)
|
|
8032
|
-
return "";
|
|
7993
|
+
if (!repoUrl) return "";
|
|
8033
7994
|
const url = new URL(repoUrl);
|
|
8034
7995
|
const pathname = url.pathname.replace(/^\//, "");
|
|
8035
7996
|
const parts = pathname.replace(/.git$/, "").split("/").filter(Boolean);
|
|
@@ -8057,8 +8018,7 @@ const isTrustedRepo = (topics) => {
|
|
|
8057
8018
|
};
|
|
8058
8019
|
const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
|
|
8059
8020
|
const isIncubationRepo = (topics = []) => {
|
|
8060
|
-
if (!topics)
|
|
8061
|
-
return false;
|
|
8021
|
+
if (!topics) return false;
|
|
8062
8022
|
const incubationIds = INCUBATION_TOPICS.split(",");
|
|
8063
8023
|
if (topics.some((e) => /孵化项目/.test(e.name) || incubationIds.includes(e.topic_id || e.id))) {
|
|
8064
8024
|
return true;
|
|
@@ -8149,7 +8109,7 @@ function mitt(n) {
|
|
|
8149
8109
|
const emitter = mitt();
|
|
8150
8110
|
const addEventListener = (evtName, callback) => emitter.on(evtName, callback);
|
|
8151
8111
|
const emitEvent = (evtName, payload) => emitter.emit(evtName, payload);
|
|
8152
|
-
const offEvent = (evtName, handler) => emitter.off(evtName,
|
|
8112
|
+
const offEvent = (evtName, handler) => emitter.off(evtName, void 0);
|
|
8153
8113
|
function bind(fn, thisArg) {
|
|
8154
8114
|
return function wrap() {
|
|
8155
8115
|
return fn.apply(thisArg, arguments);
|
|
@@ -8157,7 +8117,7 @@ function bind(fn, thisArg) {
|
|
|
8157
8117
|
}
|
|
8158
8118
|
const { toString } = Object.prototype;
|
|
8159
8119
|
const { getPrototypeOf } = Object;
|
|
8160
|
-
const kindOf = ((cache2) => (thing) => {
|
|
8120
|
+
const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
|
|
8161
8121
|
const str = toString.call(thing);
|
|
8162
8122
|
return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
|
|
8163
8123
|
})(/* @__PURE__ */ Object.create(null));
|
|
@@ -8243,8 +8203,7 @@ function findKey(obj, key) {
|
|
|
8243
8203
|
return null;
|
|
8244
8204
|
}
|
|
8245
8205
|
const _global = (() => {
|
|
8246
|
-
if (typeof globalThis !== "undefined")
|
|
8247
|
-
return globalThis;
|
|
8206
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
8248
8207
|
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
8249
8208
|
})();
|
|
8250
8209
|
const isContextDefined = (context) => !isUndefined$1(context) && context !== _global;
|
|
@@ -8298,8 +8257,7 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
|
8298
8257
|
let prop;
|
|
8299
8258
|
const merged = {};
|
|
8300
8259
|
destObj = destObj || {};
|
|
8301
|
-
if (sourceObj == null)
|
|
8302
|
-
return destObj;
|
|
8260
|
+
if (sourceObj == null) return destObj;
|
|
8303
8261
|
do {
|
|
8304
8262
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
8305
8263
|
i = props.length;
|
|
@@ -8324,20 +8282,17 @@ const endsWith = (str, searchString, position) => {
|
|
|
8324
8282
|
return lastIndex !== -1 && lastIndex === position;
|
|
8325
8283
|
};
|
|
8326
8284
|
const toArray = (thing) => {
|
|
8327
|
-
if (!thing)
|
|
8328
|
-
|
|
8329
|
-
if (isArray$4(thing))
|
|
8330
|
-
return thing;
|
|
8285
|
+
if (!thing) return null;
|
|
8286
|
+
if (isArray$4(thing)) return thing;
|
|
8331
8287
|
let i = thing.length;
|
|
8332
|
-
if (!isNumber(i))
|
|
8333
|
-
return null;
|
|
8288
|
+
if (!isNumber(i)) return null;
|
|
8334
8289
|
const arr = new Array(i);
|
|
8335
8290
|
while (i-- > 0) {
|
|
8336
8291
|
arr[i] = thing[i];
|
|
8337
8292
|
}
|
|
8338
8293
|
return arr;
|
|
8339
8294
|
};
|
|
8340
|
-
const isTypedArray$2 = ((TypedArray) => {
|
|
8295
|
+
const isTypedArray$2 = /* @__PURE__ */ ((TypedArray) => {
|
|
8341
8296
|
return (thing) => {
|
|
8342
8297
|
return TypedArray && thing instanceof TypedArray;
|
|
8343
8298
|
};
|
|
@@ -8387,8 +8342,7 @@ const freezeMethods = (obj) => {
|
|
|
8387
8342
|
return false;
|
|
8388
8343
|
}
|
|
8389
8344
|
const value = obj[name];
|
|
8390
|
-
if (!isFunction$3(value))
|
|
8391
|
-
return;
|
|
8345
|
+
if (!isFunction$3(value)) return;
|
|
8392
8346
|
descriptor.enumerable = false;
|
|
8393
8347
|
if ("writable" in descriptor) {
|
|
8394
8348
|
descriptor.writable = false;
|
|
@@ -8521,7 +8475,7 @@ const utils$1 = {
|
|
|
8521
8475
|
setImmediate: _setImmediate,
|
|
8522
8476
|
asap
|
|
8523
8477
|
};
|
|
8524
|
-
function AxiosError(message, code2, config, request, response) {
|
|
8478
|
+
function AxiosError$1(message, code2, config, request, response) {
|
|
8525
8479
|
Error.call(this);
|
|
8526
8480
|
if (Error.captureStackTrace) {
|
|
8527
8481
|
Error.captureStackTrace(this, this.constructor);
|
|
@@ -8538,7 +8492,7 @@ function AxiosError(message, code2, config, request, response) {
|
|
|
8538
8492
|
this.status = response.status ? response.status : null;
|
|
8539
8493
|
}
|
|
8540
8494
|
}
|
|
8541
|
-
utils$1.inherits(AxiosError, Error, {
|
|
8495
|
+
utils$1.inherits(AxiosError$1, Error, {
|
|
8542
8496
|
toJSON: function toJSON() {
|
|
8543
8497
|
return {
|
|
8544
8498
|
// Standard
|
|
@@ -8559,7 +8513,7 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
8559
8513
|
};
|
|
8560
8514
|
}
|
|
8561
8515
|
});
|
|
8562
|
-
const prototype$1 = AxiosError.prototype;
|
|
8516
|
+
const prototype$1 = AxiosError$1.prototype;
|
|
8563
8517
|
const descriptors = {};
|
|
8564
8518
|
[
|
|
8565
8519
|
"ERR_BAD_OPTION_VALUE",
|
|
@@ -8578,16 +8532,16 @@ const descriptors = {};
|
|
|
8578
8532
|
].forEach((code2) => {
|
|
8579
8533
|
descriptors[code2] = { value: code2 };
|
|
8580
8534
|
});
|
|
8581
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
8535
|
+
Object.defineProperties(AxiosError$1, descriptors);
|
|
8582
8536
|
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
8583
|
-
AxiosError.from = (error, code2, config, request, response, customProps) => {
|
|
8537
|
+
AxiosError$1.from = (error, code2, config, request, response, customProps) => {
|
|
8584
8538
|
const axiosError = Object.create(prototype$1);
|
|
8585
8539
|
utils$1.toFlatObject(error, axiosError, function filter2(obj) {
|
|
8586
8540
|
return obj !== Error.prototype;
|
|
8587
8541
|
}, (prop) => {
|
|
8588
8542
|
return prop !== "isAxiosError";
|
|
8589
8543
|
});
|
|
8590
|
-
AxiosError.call(axiosError, error.message, code2, config, request, response);
|
|
8544
|
+
AxiosError$1.call(axiosError, error.message, code2, config, request, response);
|
|
8591
8545
|
axiosError.cause = error;
|
|
8592
8546
|
axiosError.name = error.name;
|
|
8593
8547
|
customProps && Object.assign(axiosError, customProps);
|
|
@@ -8601,8 +8555,7 @@ function removeBrackets(key) {
|
|
|
8601
8555
|
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
8602
8556
|
}
|
|
8603
8557
|
function renderKey(path, key, dots) {
|
|
8604
|
-
if (!path)
|
|
8605
|
-
return key;
|
|
8558
|
+
if (!path) return key;
|
|
8606
8559
|
return path.concat(key).map(function each(token, i) {
|
|
8607
8560
|
token = removeBrackets(token);
|
|
8608
8561
|
return !dots && i ? "[" + token + "]" : token;
|
|
@@ -8614,7 +8567,7 @@ function isFlatArray(arr) {
|
|
|
8614
8567
|
const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
8615
8568
|
return /^is[A-Z]/.test(prop);
|
|
8616
8569
|
});
|
|
8617
|
-
function toFormData(obj, formData, options) {
|
|
8570
|
+
function toFormData$1(obj, formData, options) {
|
|
8618
8571
|
if (!utils$1.isObject(obj)) {
|
|
8619
8572
|
throw new TypeError("target must be an object");
|
|
8620
8573
|
}
|
|
@@ -8636,13 +8589,12 @@ function toFormData(obj, formData, options) {
|
|
|
8636
8589
|
throw new TypeError("visitor must be a function");
|
|
8637
8590
|
}
|
|
8638
8591
|
function convertValue(value) {
|
|
8639
|
-
if (value === null)
|
|
8640
|
-
return "";
|
|
8592
|
+
if (value === null) return "";
|
|
8641
8593
|
if (utils$1.isDate(value)) {
|
|
8642
8594
|
return value.toISOString();
|
|
8643
8595
|
}
|
|
8644
8596
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
8645
|
-
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
8597
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
8646
8598
|
}
|
|
8647
8599
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
8648
8600
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
@@ -8680,8 +8632,7 @@ function toFormData(obj, formData, options) {
|
|
|
8680
8632
|
isVisitable
|
|
8681
8633
|
});
|
|
8682
8634
|
function build(value, path) {
|
|
8683
|
-
if (utils$1.isUndefined(value))
|
|
8684
|
-
return;
|
|
8635
|
+
if (utils$1.isUndefined(value)) return;
|
|
8685
8636
|
if (stack.indexOf(value) !== -1) {
|
|
8686
8637
|
throw Error("Circular reference detected in " + path.join("."));
|
|
8687
8638
|
}
|
|
@@ -8722,7 +8673,7 @@ function encode$1(str) {
|
|
|
8722
8673
|
}
|
|
8723
8674
|
function AxiosURLSearchParams(params, options) {
|
|
8724
8675
|
this._pairs = [];
|
|
8725
|
-
params && toFormData(params, this, options);
|
|
8676
|
+
params && toFormData$1(params, this, options);
|
|
8726
8677
|
}
|
|
8727
8678
|
const prototype = AxiosURLSearchParams.prototype;
|
|
8728
8679
|
prototype.append = function append(name, value) {
|
|
@@ -8826,7 +8777,6 @@ class InterceptorManager {
|
|
|
8826
8777
|
});
|
|
8827
8778
|
}
|
|
8828
8779
|
}
|
|
8829
|
-
const InterceptorManager$1 = InterceptorManager;
|
|
8830
8780
|
const transitionalDefaults = {
|
|
8831
8781
|
silentJSONParsing: true,
|
|
8832
8782
|
forcedJSONParsing: true,
|
|
@@ -8865,7 +8815,7 @@ const platform = {
|
|
|
8865
8815
|
...platform$1
|
|
8866
8816
|
};
|
|
8867
8817
|
function toURLEncodedForm(data, options) {
|
|
8868
|
-
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
8818
|
+
return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
8869
8819
|
visitor: function(value, key, path, helpers) {
|
|
8870
8820
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
8871
8821
|
this.append(key, value.toString("base64"));
|
|
@@ -8895,8 +8845,7 @@ function arrayToObject(arr) {
|
|
|
8895
8845
|
function formDataToJSON(formData) {
|
|
8896
8846
|
function buildPath(path, value, target, index2) {
|
|
8897
8847
|
let name = path[index2++];
|
|
8898
|
-
if (name === "__proto__")
|
|
8899
|
-
return true;
|
|
8848
|
+
if (name === "__proto__") return true;
|
|
8900
8849
|
const isNumericKey = Number.isFinite(+name);
|
|
8901
8850
|
const isLast = index2 >= path.length;
|
|
8902
8851
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
@@ -8970,7 +8919,7 @@ const defaults = {
|
|
|
8970
8919
|
}
|
|
8971
8920
|
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
8972
8921
|
const _FormData = this.env && this.env.FormData;
|
|
8973
|
-
return toFormData(
|
|
8922
|
+
return toFormData$1(
|
|
8974
8923
|
isFileList2 ? { "files[]": data } : data,
|
|
8975
8924
|
_FormData && new _FormData(),
|
|
8976
8925
|
this.formSerializer
|
|
@@ -8998,7 +8947,7 @@ const defaults = {
|
|
|
8998
8947
|
} catch (e) {
|
|
8999
8948
|
if (strictJSONParsing) {
|
|
9000
8949
|
if (e.name === "SyntaxError") {
|
|
9001
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
8950
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
9002
8951
|
}
|
|
9003
8952
|
throw e;
|
|
9004
8953
|
}
|
|
@@ -9032,7 +8981,6 @@ const defaults = {
|
|
|
9032
8981
|
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
9033
8982
|
defaults.headers[method] = {};
|
|
9034
8983
|
});
|
|
9035
|
-
const defaults$1 = defaults;
|
|
9036
8984
|
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
9037
8985
|
"age",
|
|
9038
8986
|
"authorization",
|
|
@@ -9103,8 +9051,7 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
|
|
|
9103
9051
|
if (isHeaderNameFilter) {
|
|
9104
9052
|
value = header;
|
|
9105
9053
|
}
|
|
9106
|
-
if (!utils$1.isString(value))
|
|
9107
|
-
return;
|
|
9054
|
+
if (!utils$1.isString(value)) return;
|
|
9108
9055
|
if (utils$1.isString(filter2)) {
|
|
9109
9056
|
return value.indexOf(filter2) !== -1;
|
|
9110
9057
|
}
|
|
@@ -9128,7 +9075,7 @@ function buildAccessors(obj, header) {
|
|
|
9128
9075
|
});
|
|
9129
9076
|
});
|
|
9130
9077
|
}
|
|
9131
|
-
class AxiosHeaders {
|
|
9078
|
+
let AxiosHeaders$1 = class AxiosHeaders {
|
|
9132
9079
|
constructor(headers) {
|
|
9133
9080
|
headers && this.set(headers);
|
|
9134
9081
|
}
|
|
@@ -9283,9 +9230,9 @@ class AxiosHeaders {
|
|
|
9283
9230
|
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
9284
9231
|
return this;
|
|
9285
9232
|
}
|
|
9286
|
-
}
|
|
9287
|
-
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
9288
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
9233
|
+
};
|
|
9234
|
+
AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
9235
|
+
utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
|
|
9289
9236
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
9290
9237
|
return {
|
|
9291
9238
|
get: () => value,
|
|
@@ -9294,10 +9241,9 @@ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
9294
9241
|
}
|
|
9295
9242
|
};
|
|
9296
9243
|
});
|
|
9297
|
-
utils$1.freezeMethods(AxiosHeaders);
|
|
9298
|
-
const AxiosHeaders$1 = AxiosHeaders;
|
|
9244
|
+
utils$1.freezeMethods(AxiosHeaders$1);
|
|
9299
9245
|
function transformData(fns, response) {
|
|
9300
|
-
const config = this || defaults
|
|
9246
|
+
const config = this || defaults;
|
|
9301
9247
|
const context = response || config;
|
|
9302
9248
|
const headers = AxiosHeaders$1.from(context.headers);
|
|
9303
9249
|
let data = context.data;
|
|
@@ -9307,14 +9253,14 @@ function transformData(fns, response) {
|
|
|
9307
9253
|
headers.normalize();
|
|
9308
9254
|
return data;
|
|
9309
9255
|
}
|
|
9310
|
-
function isCancel(value) {
|
|
9256
|
+
function isCancel$1(value) {
|
|
9311
9257
|
return !!(value && value.__CANCEL__);
|
|
9312
9258
|
}
|
|
9313
|
-
function CanceledError(message, config, request) {
|
|
9314
|
-
AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
|
|
9259
|
+
function CanceledError$1(message, config, request) {
|
|
9260
|
+
AxiosError$1.call(this, message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
9315
9261
|
this.name = "CanceledError";
|
|
9316
9262
|
}
|
|
9317
|
-
utils$1.inherits(CanceledError, AxiosError, {
|
|
9263
|
+
utils$1.inherits(CanceledError$1, AxiosError$1, {
|
|
9318
9264
|
__CANCEL__: true
|
|
9319
9265
|
});
|
|
9320
9266
|
function settle(resolve, reject, response) {
|
|
@@ -9322,9 +9268,9 @@ function settle(resolve, reject, response) {
|
|
|
9322
9268
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
9323
9269
|
resolve(response);
|
|
9324
9270
|
} else {
|
|
9325
|
-
reject(new AxiosError(
|
|
9271
|
+
reject(new AxiosError$1(
|
|
9326
9272
|
"Request failed with status code " + response.status,
|
|
9327
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
9273
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
9328
9274
|
response.config,
|
|
9329
9275
|
response.request,
|
|
9330
9276
|
response
|
|
@@ -9433,7 +9379,7 @@ const progressEventDecorator = (total, throttled) => {
|
|
|
9433
9379
|
}), throttled[1]];
|
|
9434
9380
|
};
|
|
9435
9381
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
9436
|
-
const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
|
|
9382
|
+
const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
|
|
9437
9383
|
url = new URL(url, platform.origin);
|
|
9438
9384
|
return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
|
|
9439
9385
|
})(
|
|
@@ -9485,7 +9431,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
9485
9431
|
return requestedURL;
|
|
9486
9432
|
}
|
|
9487
9433
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
9488
|
-
function mergeConfig(config1, config2) {
|
|
9434
|
+
function mergeConfig$1(config1, config2) {
|
|
9489
9435
|
config2 = config2 || {};
|
|
9490
9436
|
const config = {};
|
|
9491
9437
|
function getMergedValue(target, source, prop, caseless) {
|
|
@@ -9563,7 +9509,7 @@ function mergeConfig(config1, config2) {
|
|
|
9563
9509
|
return config;
|
|
9564
9510
|
}
|
|
9565
9511
|
const resolveConfig = (config) => {
|
|
9566
|
-
const newConfig = mergeConfig({}, config);
|
|
9512
|
+
const newConfig = mergeConfig$1({}, config);
|
|
9567
9513
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
9568
9514
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
9569
9515
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
@@ -9654,11 +9600,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
9654
9600
|
if (!request) {
|
|
9655
9601
|
return;
|
|
9656
9602
|
}
|
|
9657
|
-
reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
|
|
9603
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
|
|
9658
9604
|
request = null;
|
|
9659
9605
|
};
|
|
9660
9606
|
request.onerror = function handleError() {
|
|
9661
|
-
reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
|
|
9607
|
+
reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request));
|
|
9662
9608
|
request = null;
|
|
9663
9609
|
};
|
|
9664
9610
|
request.ontimeout = function handleTimeout() {
|
|
@@ -9667,9 +9613,9 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
9667
9613
|
if (_config.timeoutErrorMessage) {
|
|
9668
9614
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
9669
9615
|
}
|
|
9670
|
-
reject(new AxiosError(
|
|
9616
|
+
reject(new AxiosError$1(
|
|
9671
9617
|
timeoutErrorMessage,
|
|
9672
|
-
transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
9618
|
+
transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
9673
9619
|
config,
|
|
9674
9620
|
request
|
|
9675
9621
|
));
|
|
@@ -9701,7 +9647,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
9701
9647
|
if (!request) {
|
|
9702
9648
|
return;
|
|
9703
9649
|
}
|
|
9704
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
9650
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
9705
9651
|
request.abort();
|
|
9706
9652
|
request = null;
|
|
9707
9653
|
};
|
|
@@ -9712,7 +9658,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
|
9712
9658
|
}
|
|
9713
9659
|
const protocol = parseProtocol(_config.url);
|
|
9714
9660
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
9715
|
-
reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
|
|
9661
|
+
reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
|
|
9716
9662
|
return;
|
|
9717
9663
|
}
|
|
9718
9664
|
request.send(requestData || null);
|
|
@@ -9728,12 +9674,12 @@ const composeSignals = (signals, timeout) => {
|
|
|
9728
9674
|
aborted = true;
|
|
9729
9675
|
unsubscribe();
|
|
9730
9676
|
const err = reason instanceof Error ? reason : this.reason;
|
|
9731
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
9677
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
9732
9678
|
}
|
|
9733
9679
|
};
|
|
9734
9680
|
let timer = timeout && setTimeout(() => {
|
|
9735
9681
|
timer = null;
|
|
9736
|
-
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
9682
|
+
onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
9737
9683
|
}, timeout);
|
|
9738
9684
|
const unsubscribe = () => {
|
|
9739
9685
|
if (signals) {
|
|
@@ -9751,10 +9697,9 @@ const composeSignals = (signals, timeout) => {
|
|
|
9751
9697
|
return signal;
|
|
9752
9698
|
}
|
|
9753
9699
|
};
|
|
9754
|
-
const composeSignals$1 = composeSignals;
|
|
9755
9700
|
const streamChunk = function* (chunk, chunkSize) {
|
|
9756
9701
|
let len = chunk.byteLength;
|
|
9757
|
-
if (
|
|
9702
|
+
if (len < chunkSize) {
|
|
9758
9703
|
yield chunk;
|
|
9759
9704
|
return;
|
|
9760
9705
|
}
|
|
@@ -9829,7 +9774,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
9829
9774
|
};
|
|
9830
9775
|
const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
9831
9776
|
const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
9832
|
-
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
9777
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
9833
9778
|
const test = (fn, ...args) => {
|
|
9834
9779
|
try {
|
|
9835
9780
|
return !!fn(...args);
|
|
@@ -9857,7 +9802,7 @@ const resolvers = {
|
|
|
9857
9802
|
isFetchSupported && ((res) => {
|
|
9858
9803
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
9859
9804
|
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
9860
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
9805
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
9861
9806
|
});
|
|
9862
9807
|
});
|
|
9863
9808
|
})(new Response());
|
|
@@ -9905,7 +9850,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
9905
9850
|
fetchOptions
|
|
9906
9851
|
} = resolveConfig(config);
|
|
9907
9852
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
9908
|
-
let composedSignal = composeSignals
|
|
9853
|
+
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
9909
9854
|
let request;
|
|
9910
9855
|
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
9911
9856
|
composedSignal.unsubscribe();
|
|
@@ -9980,13 +9925,13 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
9980
9925
|
unsubscribe && unsubscribe();
|
|
9981
9926
|
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
9982
9927
|
throw Object.assign(
|
|
9983
|
-
new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
|
|
9928
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
|
|
9984
9929
|
{
|
|
9985
9930
|
cause: err.cause || err
|
|
9986
9931
|
}
|
|
9987
9932
|
);
|
|
9988
9933
|
}
|
|
9989
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
9934
|
+
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
9990
9935
|
}
|
|
9991
9936
|
});
|
|
9992
9937
|
const knownAdapters = {
|
|
@@ -10019,7 +9964,7 @@ const adapters = {
|
|
|
10019
9964
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
10020
9965
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
10021
9966
|
if (adapter === void 0) {
|
|
10022
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
9967
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
10023
9968
|
}
|
|
10024
9969
|
}
|
|
10025
9970
|
if (adapter) {
|
|
@@ -10032,7 +9977,7 @@ const adapters = {
|
|
|
10032
9977
|
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
10033
9978
|
);
|
|
10034
9979
|
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
10035
|
-
throw new AxiosError(
|
|
9980
|
+
throw new AxiosError$1(
|
|
10036
9981
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
10037
9982
|
"ERR_NOT_SUPPORT"
|
|
10038
9983
|
);
|
|
@@ -10046,7 +9991,7 @@ function throwIfCancellationRequested(config) {
|
|
|
10046
9991
|
config.cancelToken.throwIfRequested();
|
|
10047
9992
|
}
|
|
10048
9993
|
if (config.signal && config.signal.aborted) {
|
|
10049
|
-
throw new CanceledError(null, config);
|
|
9994
|
+
throw new CanceledError$1(null, config);
|
|
10050
9995
|
}
|
|
10051
9996
|
}
|
|
10052
9997
|
function dispatchRequest(config) {
|
|
@@ -10059,7 +10004,7 @@ function dispatchRequest(config) {
|
|
|
10059
10004
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
10060
10005
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
10061
10006
|
}
|
|
10062
|
-
const adapter = adapters.getAdapter(config.adapter || defaults
|
|
10007
|
+
const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
|
|
10063
10008
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
10064
10009
|
throwIfCancellationRequested(config);
|
|
10065
10010
|
response.data = transformData.call(
|
|
@@ -10070,7 +10015,7 @@ function dispatchRequest(config) {
|
|
|
10070
10015
|
response.headers = AxiosHeaders$1.from(response.headers);
|
|
10071
10016
|
return response;
|
|
10072
10017
|
}, function onAdapterRejection(reason) {
|
|
10073
|
-
if (!isCancel(reason)) {
|
|
10018
|
+
if (!isCancel$1(reason)) {
|
|
10074
10019
|
throwIfCancellationRequested(config);
|
|
10075
10020
|
if (reason && reason.response) {
|
|
10076
10021
|
reason.response.data = transformData.call(
|
|
@@ -10084,7 +10029,7 @@ function dispatchRequest(config) {
|
|
|
10084
10029
|
return Promise.reject(reason);
|
|
10085
10030
|
});
|
|
10086
10031
|
}
|
|
10087
|
-
const VERSION = "1.8.4";
|
|
10032
|
+
const VERSION$1 = "1.8.4";
|
|
10088
10033
|
const validators$1 = {};
|
|
10089
10034
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
10090
10035
|
validators$1[type] = function validator2(thing) {
|
|
@@ -10094,13 +10039,13 @@ const validators$1 = {};
|
|
|
10094
10039
|
const deprecatedWarnings = {};
|
|
10095
10040
|
validators$1.transitional = function transitional(validator2, version, message) {
|
|
10096
10041
|
function formatMessage(opt, desc) {
|
|
10097
|
-
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
10042
|
+
return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
10098
10043
|
}
|
|
10099
10044
|
return (value, opt, opts) => {
|
|
10100
10045
|
if (validator2 === false) {
|
|
10101
|
-
throw new AxiosError(
|
|
10046
|
+
throw new AxiosError$1(
|
|
10102
10047
|
formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
|
|
10103
|
-
AxiosError.ERR_DEPRECATED
|
|
10048
|
+
AxiosError$1.ERR_DEPRECATED
|
|
10104
10049
|
);
|
|
10105
10050
|
}
|
|
10106
10051
|
if (version && !deprecatedWarnings[opt]) {
|
|
@@ -10123,7 +10068,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
10123
10068
|
};
|
|
10124
10069
|
function assertOptions(options, schema, allowUnknown) {
|
|
10125
10070
|
if (typeof options !== "object") {
|
|
10126
|
-
throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
|
|
10071
|
+
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
10127
10072
|
}
|
|
10128
10073
|
const keys2 = Object.keys(options);
|
|
10129
10074
|
let i = keys2.length;
|
|
@@ -10134,12 +10079,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
10134
10079
|
const value = options[opt];
|
|
10135
10080
|
const result2 = value === void 0 || validator2(value, opt, options);
|
|
10136
10081
|
if (result2 !== true) {
|
|
10137
|
-
throw new AxiosError("option " + opt + " must be " + result2, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
10082
|
+
throw new AxiosError$1("option " + opt + " must be " + result2, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
10138
10083
|
}
|
|
10139
10084
|
continue;
|
|
10140
10085
|
}
|
|
10141
10086
|
if (allowUnknown !== true) {
|
|
10142
|
-
throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
|
|
10087
|
+
throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
10143
10088
|
}
|
|
10144
10089
|
}
|
|
10145
10090
|
}
|
|
@@ -10148,12 +10093,12 @@ const validator = {
|
|
|
10148
10093
|
validators: validators$1
|
|
10149
10094
|
};
|
|
10150
10095
|
const validators = validator.validators;
|
|
10151
|
-
class Axios {
|
|
10096
|
+
let Axios$1 = class Axios {
|
|
10152
10097
|
constructor(instanceConfig) {
|
|
10153
10098
|
this.defaults = instanceConfig;
|
|
10154
10099
|
this.interceptors = {
|
|
10155
|
-
request: new InterceptorManager
|
|
10156
|
-
response: new InterceptorManager
|
|
10100
|
+
request: new InterceptorManager(),
|
|
10101
|
+
response: new InterceptorManager()
|
|
10157
10102
|
};
|
|
10158
10103
|
}
|
|
10159
10104
|
/**
|
|
@@ -10191,7 +10136,7 @@ class Axios {
|
|
|
10191
10136
|
} else {
|
|
10192
10137
|
config = configOrUrl || {};
|
|
10193
10138
|
}
|
|
10194
|
-
config = mergeConfig(this.defaults, config);
|
|
10139
|
+
config = mergeConfig$1(this.defaults, config);
|
|
10195
10140
|
const { transitional: transitional2, paramsSerializer, headers } = config;
|
|
10196
10141
|
if (transitional2 !== void 0) {
|
|
10197
10142
|
validator.assertOptions(transitional2, {
|
|
@@ -10212,8 +10157,7 @@ class Axios {
|
|
|
10212
10157
|
}, true);
|
|
10213
10158
|
}
|
|
10214
10159
|
}
|
|
10215
|
-
if (config.allowAbsoluteUrls !== void 0)
|
|
10216
|
-
;
|
|
10160
|
+
if (config.allowAbsoluteUrls !== void 0) ;
|
|
10217
10161
|
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
10218
10162
|
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
10219
10163
|
} else {
|
|
@@ -10288,14 +10232,14 @@ class Axios {
|
|
|
10288
10232
|
return promise;
|
|
10289
10233
|
}
|
|
10290
10234
|
getUri(config) {
|
|
10291
|
-
config = mergeConfig(this.defaults, config);
|
|
10235
|
+
config = mergeConfig$1(this.defaults, config);
|
|
10292
10236
|
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
10293
10237
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
10294
10238
|
}
|
|
10295
|
-
}
|
|
10239
|
+
};
|
|
10296
10240
|
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
10297
|
-
Axios.prototype[method] = function(url, config) {
|
|
10298
|
-
return this.request(mergeConfig(config || {}, {
|
|
10241
|
+
Axios$1.prototype[method] = function(url, config) {
|
|
10242
|
+
return this.request(mergeConfig$1(config || {}, {
|
|
10299
10243
|
method,
|
|
10300
10244
|
url,
|
|
10301
10245
|
data: (config || {}).data
|
|
@@ -10305,7 +10249,7 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
10305
10249
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
10306
10250
|
function generateHTTPMethod(isForm) {
|
|
10307
10251
|
return function httpMethod(url, data, config) {
|
|
10308
|
-
return this.request(mergeConfig(config || {}, {
|
|
10252
|
+
return this.request(mergeConfig$1(config || {}, {
|
|
10309
10253
|
method,
|
|
10310
10254
|
headers: isForm ? {
|
|
10311
10255
|
"Content-Type": "multipart/form-data"
|
|
@@ -10315,11 +10259,10 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
10315
10259
|
}));
|
|
10316
10260
|
};
|
|
10317
10261
|
}
|
|
10318
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
10319
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
10262
|
+
Axios$1.prototype[method] = generateHTTPMethod();
|
|
10263
|
+
Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
10320
10264
|
});
|
|
10321
|
-
|
|
10322
|
-
class CancelToken {
|
|
10265
|
+
let CancelToken$1 = class CancelToken {
|
|
10323
10266
|
constructor(executor) {
|
|
10324
10267
|
if (typeof executor !== "function") {
|
|
10325
10268
|
throw new TypeError("executor must be a function.");
|
|
@@ -10330,8 +10273,7 @@ class CancelToken {
|
|
|
10330
10273
|
});
|
|
10331
10274
|
const token = this;
|
|
10332
10275
|
this.promise.then((cancel) => {
|
|
10333
|
-
if (!token._listeners)
|
|
10334
|
-
return;
|
|
10276
|
+
if (!token._listeners) return;
|
|
10335
10277
|
let i = token._listeners.length;
|
|
10336
10278
|
while (i-- > 0) {
|
|
10337
10279
|
token._listeners[i](cancel);
|
|
@@ -10353,7 +10295,7 @@ class CancelToken {
|
|
|
10353
10295
|
if (token.reason) {
|
|
10354
10296
|
return;
|
|
10355
10297
|
}
|
|
10356
|
-
token.reason = new CanceledError(message, config, request);
|
|
10298
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
10357
10299
|
resolvePromise(token.reason);
|
|
10358
10300
|
});
|
|
10359
10301
|
}
|
|
@@ -10414,17 +10356,16 @@ class CancelToken {
|
|
|
10414
10356
|
cancel
|
|
10415
10357
|
};
|
|
10416
10358
|
}
|
|
10417
|
-
}
|
|
10418
|
-
|
|
10419
|
-
function spread(callback) {
|
|
10359
|
+
};
|
|
10360
|
+
function spread$1(callback) {
|
|
10420
10361
|
return function wrap(arr) {
|
|
10421
10362
|
return callback.apply(null, arr);
|
|
10422
10363
|
};
|
|
10423
10364
|
}
|
|
10424
|
-
function isAxiosError(payload) {
|
|
10365
|
+
function isAxiosError$1(payload) {
|
|
10425
10366
|
return utils$1.isObject(payload) && payload.isAxiosError === true;
|
|
10426
10367
|
}
|
|
10427
|
-
const HttpStatusCode = {
|
|
10368
|
+
const HttpStatusCode$1 = {
|
|
10428
10369
|
Continue: 100,
|
|
10429
10370
|
SwitchingProtocols: 101,
|
|
10430
10371
|
Processing: 102,
|
|
@@ -10489,41 +10430,57 @@ const HttpStatusCode = {
|
|
|
10489
10430
|
NotExtended: 510,
|
|
10490
10431
|
NetworkAuthenticationRequired: 511
|
|
10491
10432
|
};
|
|
10492
|
-
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
10493
|
-
HttpStatusCode[value] = key;
|
|
10433
|
+
Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
10434
|
+
HttpStatusCode$1[value] = key;
|
|
10494
10435
|
});
|
|
10495
|
-
const HttpStatusCode$1 = HttpStatusCode;
|
|
10496
10436
|
function createInstance(defaultConfig2) {
|
|
10497
10437
|
const context = new Axios$1(defaultConfig2);
|
|
10498
10438
|
const instance = bind(Axios$1.prototype.request, context);
|
|
10499
10439
|
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
10500
10440
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
10501
10441
|
instance.create = function create2(instanceConfig) {
|
|
10502
|
-
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
10442
|
+
return createInstance(mergeConfig$1(defaultConfig2, instanceConfig));
|
|
10503
10443
|
};
|
|
10504
10444
|
return instance;
|
|
10505
10445
|
}
|
|
10506
|
-
const axios = createInstance(defaults
|
|
10446
|
+
const axios = createInstance(defaults);
|
|
10507
10447
|
axios.Axios = Axios$1;
|
|
10508
|
-
axios.CanceledError = CanceledError;
|
|
10448
|
+
axios.CanceledError = CanceledError$1;
|
|
10509
10449
|
axios.CancelToken = CancelToken$1;
|
|
10510
|
-
axios.isCancel = isCancel;
|
|
10511
|
-
axios.VERSION = VERSION;
|
|
10512
|
-
axios.toFormData = toFormData;
|
|
10513
|
-
axios.AxiosError = AxiosError;
|
|
10450
|
+
axios.isCancel = isCancel$1;
|
|
10451
|
+
axios.VERSION = VERSION$1;
|
|
10452
|
+
axios.toFormData = toFormData$1;
|
|
10453
|
+
axios.AxiosError = AxiosError$1;
|
|
10514
10454
|
axios.Cancel = axios.CanceledError;
|
|
10515
10455
|
axios.all = function all(promises) {
|
|
10516
10456
|
return Promise.all(promises);
|
|
10517
10457
|
};
|
|
10518
|
-
axios.spread = spread;
|
|
10519
|
-
axios.isAxiosError = isAxiosError;
|
|
10520
|
-
axios.mergeConfig = mergeConfig;
|
|
10458
|
+
axios.spread = spread$1;
|
|
10459
|
+
axios.isAxiosError = isAxiosError$1;
|
|
10460
|
+
axios.mergeConfig = mergeConfig$1;
|
|
10521
10461
|
axios.AxiosHeaders = AxiosHeaders$1;
|
|
10522
10462
|
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
10523
10463
|
axios.getAdapter = adapters.getAdapter;
|
|
10524
10464
|
axios.HttpStatusCode = HttpStatusCode$1;
|
|
10525
10465
|
axios.default = axios;
|
|
10526
|
-
const
|
|
10466
|
+
const {
|
|
10467
|
+
Axios: Axios2,
|
|
10468
|
+
AxiosError,
|
|
10469
|
+
CanceledError,
|
|
10470
|
+
isCancel,
|
|
10471
|
+
CancelToken: CancelToken2,
|
|
10472
|
+
VERSION,
|
|
10473
|
+
all: all2,
|
|
10474
|
+
Cancel,
|
|
10475
|
+
isAxiosError,
|
|
10476
|
+
spread,
|
|
10477
|
+
toFormData,
|
|
10478
|
+
AxiosHeaders: AxiosHeaders2,
|
|
10479
|
+
HttpStatusCode,
|
|
10480
|
+
formToJSON,
|
|
10481
|
+
getAdapter,
|
|
10482
|
+
mergeConfig
|
|
10483
|
+
} = axios;
|
|
10527
10484
|
function isPhone() {
|
|
10528
10485
|
if (typeof window !== "undefined" && window.navigator) {
|
|
10529
10486
|
const flag = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);
|
|
@@ -10579,20 +10536,13 @@ const getOSVersion = () => {
|
|
|
10579
10536
|
}
|
|
10580
10537
|
break;
|
|
10581
10538
|
case "Windows":
|
|
10582
|
-
if (userAgent.indexOf("Windows NT 10.0") > -1)
|
|
10583
|
-
|
|
10584
|
-
else if (userAgent.indexOf("Windows NT 6.
|
|
10585
|
-
|
|
10586
|
-
else if (userAgent.indexOf("Windows NT 6.
|
|
10587
|
-
|
|
10588
|
-
else if (userAgent.indexOf("Windows NT
|
|
10589
|
-
version = "7";
|
|
10590
|
-
else if (userAgent.indexOf("Windows NT 6.0") > -1)
|
|
10591
|
-
version = "Vista";
|
|
10592
|
-
else if (userAgent.indexOf("Windows NT 5.1") > -1)
|
|
10593
|
-
version = "XP";
|
|
10594
|
-
else if (userAgent.indexOf("Windows NT 5.0") > -1)
|
|
10595
|
-
version = "2000";
|
|
10539
|
+
if (userAgent.indexOf("Windows NT 10.0") > -1) version = "10";
|
|
10540
|
+
else if (userAgent.indexOf("Windows NT 6.3") > -1) version = "8.1";
|
|
10541
|
+
else if (userAgent.indexOf("Windows NT 6.2") > -1) version = "8";
|
|
10542
|
+
else if (userAgent.indexOf("Windows NT 6.1") > -1) version = "7";
|
|
10543
|
+
else if (userAgent.indexOf("Windows NT 6.0") > -1) version = "Vista";
|
|
10544
|
+
else if (userAgent.indexOf("Windows NT 5.1") > -1) version = "XP";
|
|
10545
|
+
else if (userAgent.indexOf("Windows NT 5.0") > -1) version = "2000";
|
|
10596
10546
|
break;
|
|
10597
10547
|
case "Android":
|
|
10598
10548
|
if (userAgent.match(/Android (\d+)\.?(\d+)?/)) {
|
|
@@ -10650,7 +10600,7 @@ const setPassportPrefix = (url, method) => {
|
|
|
10650
10600
|
return url;
|
|
10651
10601
|
};
|
|
10652
10602
|
const proxyService = (params, customConfigs) => {
|
|
10653
|
-
const service = axios
|
|
10603
|
+
const service = axios.create({
|
|
10654
10604
|
baseURL: layoutConfig$3.VITE_API_HOST,
|
|
10655
10605
|
timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
|
|
10656
10606
|
withCredentials: true
|
|
@@ -10687,6 +10637,7 @@ const proxyService = (params, customConfigs) => {
|
|
|
10687
10637
|
},
|
|
10688
10638
|
async (error) => {
|
|
10689
10639
|
const { response } = error;
|
|
10640
|
+
const { config } = response || {};
|
|
10690
10641
|
if (response) {
|
|
10691
10642
|
const errData = response.data;
|
|
10692
10643
|
errData.http_status = response.status;
|
|
@@ -10814,8 +10765,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
10814
10765
|
npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
|
|
10815
10766
|
}
|
|
10816
10767
|
const swTab = (item) => {
|
|
10817
|
-
if (rateNow.value === null && item.index === 1)
|
|
10818
|
-
return;
|
|
10768
|
+
if (rateNow.value === null && item.index === 1) return;
|
|
10819
10769
|
NPSOffsetOptions.crossAxis = item.offset_x;
|
|
10820
10770
|
opinionStep.value = item.index;
|
|
10821
10771
|
window.dispatchEvent(new Event("resize"));
|
|
@@ -11157,9 +11107,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
11157
11107
|
};
|
|
11158
11108
|
}
|
|
11159
11109
|
});
|
|
11160
|
-
const
|
|
11161
|
-
const index_vue_vue_type_style_index_1_lang$3 = "";
|
|
11162
|
-
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-89eb8bf2"]]);
|
|
11110
|
+
const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
11163
11111
|
function usePopup(className, rootElement) {
|
|
11164
11112
|
const root2 = rootElement || document.getElementById("app");
|
|
11165
11113
|
let cacheClass = "popup-container";
|
|
@@ -11273,8 +11221,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
11273
11221
|
};
|
|
11274
11222
|
}
|
|
11275
11223
|
});
|
|
11276
|
-
const
|
|
11277
|
-
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0edd3696"]]);
|
|
11224
|
+
const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
11278
11225
|
const black = {
|
|
11279
11226
|
"theme-stress-text": "#f0f6fc",
|
|
11280
11227
|
"theme-text": "#D2D8E4",
|
|
@@ -11716,8 +11663,7 @@ class Theme {
|
|
|
11716
11663
|
}
|
|
11717
11664
|
applyTheme() {
|
|
11718
11665
|
const isAutoTheme = this.getIsAutoTheme();
|
|
11719
|
-
if (!isAutoTheme)
|
|
11720
|
-
return;
|
|
11666
|
+
if (!isAutoTheme) return;
|
|
11721
11667
|
if (this.darkModeMediaQuery.matches) {
|
|
11722
11668
|
console.log("dark");
|
|
11723
11669
|
setTheme(ThemeType.BLACK);
|
|
@@ -11780,7 +11726,7 @@ const usePageResize = () => {
|
|
|
11780
11726
|
});
|
|
11781
11727
|
return { widthType, width, widthConfig, isMobile };
|
|
11782
11728
|
};
|
|
11783
|
-
const _imports_0 = "data:image/svg+xml
|
|
11729
|
+
const _imports_0 = "data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3cg%20opacity='0.600000'%3e%3cpath%20id='Vector'%20d='M22%2013.89C22%2011.82%2020.72%2010.01%2018.81%209.2C19.08%2010.1%2019.27%2011%2019.27%2011.91C19.27%2014.7%2018%2017.23%2015.9%2018.86C16.18%2018.95%2016.54%2018.95%2016.9%2018.95C17.54%2018.95%2020.27%2019.04%2021.36%2019.13C21.54%2019.13%2021.63%2018.95%2021.54%2018.77C21.08%2018.41%2020.45%2017.59%2020.72%2017.23C21.54%2016.33%2022%2015.16%2022%2013.89L22%2013.89Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/g%3e%3cpath%20id='减去顶层'%20d='M10.1816%203.875C5.63672%203.875%202%207.48608%202%2011.9097C2%2013.9861%202.72656%2015.7916%204%2017.2361C4.36328%2017.6875%204%2018.5903%203.54492%2019.3125C3.36328%2019.6736%203.54492%2020.125%204%2020.125C5.72656%2020.125%209.18164%2020.0347%2010.1816%2020.0347C14.7266%2020.0347%2018.3633%2016.4236%2018.3633%2011.9097C18.3633%207.48608%2014.7266%203.875%2010.1816%203.875ZM11.9746%2015.1427L10.5762%209.59204C10.5234%209.38306%2010.4023%209.19751%2010.2324%209.06494C10.0605%208.93225%209.84961%208.86035%209.63281%208.86023L7.68555%208.86023C7.46875%208.86035%207.25781%208.93225%207.08594%209.06494C6.91602%209.19751%206.79492%209.38306%206.74219%209.59204L5.34375%2015.1427L7.35156%2015.1427L7.59375%2014.176L9.72461%2014.176L9.9668%2015.1427L11.9746%2015.1427ZM14.9863%208.86035L14.9863%2015.1437L13.041%2015.1437L13.041%208.86035L14.9863%208.86035ZM8.44531%2010.7931L8.87305%2010.7931L9.23828%2012.243L8.08008%2012.243L8.44531%2010.7931Z'%20clip-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/svg%3e";
|
|
11784
11730
|
const _imports_1 = "data:image/png;base64,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";
|
|
11785
11731
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
11786
11732
|
...{
|
|
@@ -11823,14 +11769,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
11823
11769
|
};
|
|
11824
11770
|
}
|
|
11825
11771
|
});
|
|
11826
|
-
const index_vue_vue_type_style_index_0_lang$1 = "";
|
|
11827
11772
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
11828
11773
|
function getDefaultExportFromCjs(x) {
|
|
11829
11774
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11830
11775
|
}
|
|
11831
11776
|
function getAugmentedNamespace(n) {
|
|
11832
|
-
if (n.__esModule)
|
|
11833
|
-
return n;
|
|
11777
|
+
if (n.__esModule) return n;
|
|
11834
11778
|
var f = n.default;
|
|
11835
11779
|
if (typeof f == "function") {
|
|
11836
11780
|
var a = function a2() {
|
|
@@ -11840,8 +11784,7 @@ function getAugmentedNamespace(n) {
|
|
|
11840
11784
|
return f.apply(this, arguments);
|
|
11841
11785
|
};
|
|
11842
11786
|
a.prototype = f.prototype;
|
|
11843
|
-
} else
|
|
11844
|
-
a = {};
|
|
11787
|
+
} else a = {};
|
|
11845
11788
|
Object.defineProperty(a, "__esModule", { value: true });
|
|
11846
11789
|
Object.keys(n).forEach(function(k) {
|
|
11847
11790
|
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -11867,8 +11810,7 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
11867
11810
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
11868
11811
|
var hasRequiredCore;
|
|
11869
11812
|
function requireCore() {
|
|
11870
|
-
if (hasRequiredCore)
|
|
11871
|
-
return core.exports;
|
|
11813
|
+
if (hasRequiredCore) return core.exports;
|
|
11872
11814
|
hasRequiredCore = 1;
|
|
11873
11815
|
(function(module, exports) {
|
|
11874
11816
|
(function(root2, factory) {
|
|
@@ -11916,7 +11858,7 @@ function requireCore() {
|
|
|
11916
11858
|
}
|
|
11917
11859
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
11918
11860
|
};
|
|
11919
|
-
var create2 = Object.create || function() {
|
|
11861
|
+
var create2 = Object.create || /* @__PURE__ */ function() {
|
|
11920
11862
|
function F() {
|
|
11921
11863
|
}
|
|
11922
11864
|
return function(obj) {
|
|
@@ -11929,7 +11871,7 @@ function requireCore() {
|
|
|
11929
11871
|
}();
|
|
11930
11872
|
var C = {};
|
|
11931
11873
|
var C_lib = C.lib = {};
|
|
11932
|
-
var Base = C_lib.Base = function() {
|
|
11874
|
+
var Base = C_lib.Base = /* @__PURE__ */ function() {
|
|
11933
11875
|
return {
|
|
11934
11876
|
/**
|
|
11935
11877
|
* Creates a new object that inherits from this object.
|
|
@@ -12475,8 +12417,7 @@ function requireCore() {
|
|
|
12475
12417
|
var encBase64 = { exports: {} };
|
|
12476
12418
|
var hasRequiredEncBase64;
|
|
12477
12419
|
function requireEncBase64() {
|
|
12478
|
-
if (hasRequiredEncBase64)
|
|
12479
|
-
return encBase64.exports;
|
|
12420
|
+
if (hasRequiredEncBase64) return encBase64.exports;
|
|
12480
12421
|
hasRequiredEncBase64 = 1;
|
|
12481
12422
|
(function(module, exports) {
|
|
12482
12423
|
(function(root2, factory) {
|
|
@@ -12583,8 +12524,7 @@ function requireEncBase64() {
|
|
|
12583
12524
|
var md5 = { exports: {} };
|
|
12584
12525
|
var hasRequiredMd5;
|
|
12585
12526
|
function requireMd5() {
|
|
12586
|
-
if (hasRequiredMd5)
|
|
12587
|
-
return md5.exports;
|
|
12527
|
+
if (hasRequiredMd5) return md5.exports;
|
|
12588
12528
|
hasRequiredMd5 = 1;
|
|
12589
12529
|
(function(module, exports) {
|
|
12590
12530
|
(function(root2, factory) {
|
|
@@ -12763,8 +12703,7 @@ var evpkdf = { exports: {} };
|
|
|
12763
12703
|
var sha1 = { exports: {} };
|
|
12764
12704
|
var hasRequiredSha1;
|
|
12765
12705
|
function requireSha1() {
|
|
12766
|
-
if (hasRequiredSha1)
|
|
12767
|
-
return sha1.exports;
|
|
12706
|
+
if (hasRequiredSha1) return sha1.exports;
|
|
12768
12707
|
hasRequiredSha1 = 1;
|
|
12769
12708
|
(function(module, exports) {
|
|
12770
12709
|
(function(root2, factory) {
|
|
@@ -12854,8 +12793,7 @@ function requireSha1() {
|
|
|
12854
12793
|
var hmac = { exports: {} };
|
|
12855
12794
|
var hasRequiredHmac;
|
|
12856
12795
|
function requireHmac() {
|
|
12857
|
-
if (hasRequiredHmac)
|
|
12858
|
-
return hmac.exports;
|
|
12796
|
+
if (hasRequiredHmac) return hmac.exports;
|
|
12859
12797
|
hasRequiredHmac = 1;
|
|
12860
12798
|
(function(module, exports) {
|
|
12861
12799
|
(function(root2, factory) {
|
|
@@ -12960,8 +12898,7 @@ function requireHmac() {
|
|
|
12960
12898
|
}
|
|
12961
12899
|
var hasRequiredEvpkdf;
|
|
12962
12900
|
function requireEvpkdf() {
|
|
12963
|
-
if (hasRequiredEvpkdf)
|
|
12964
|
-
return evpkdf.exports;
|
|
12901
|
+
if (hasRequiredEvpkdf) return evpkdf.exports;
|
|
12965
12902
|
hasRequiredEvpkdf = 1;
|
|
12966
12903
|
(function(module, exports) {
|
|
12967
12904
|
(function(root2, factory, undef) {
|
|
@@ -13051,8 +12988,7 @@ function requireEvpkdf() {
|
|
|
13051
12988
|
var cipherCore = { exports: {} };
|
|
13052
12989
|
var hasRequiredCipherCore;
|
|
13053
12990
|
function requireCipherCore() {
|
|
13054
|
-
if (hasRequiredCipherCore)
|
|
13055
|
-
return cipherCore.exports;
|
|
12991
|
+
if (hasRequiredCipherCore) return cipherCore.exports;
|
|
13056
12992
|
hasRequiredCipherCore = 1;
|
|
13057
12993
|
(function(module, exports) {
|
|
13058
12994
|
(function(root2, factory, undef) {
|
|
@@ -13194,7 +13130,7 @@ function requireCipherCore() {
|
|
|
13194
13130
|
*
|
|
13195
13131
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
13196
13132
|
*/
|
|
13197
|
-
_createHelper: function() {
|
|
13133
|
+
_createHelper: /* @__PURE__ */ function() {
|
|
13198
13134
|
function selectCipherStrategy(key) {
|
|
13199
13135
|
if (typeof key == "string") {
|
|
13200
13136
|
return PasswordBasedCipher;
|
|
@@ -13613,11 +13549,15 @@ function requireCipherCore() {
|
|
|
13613
13549
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
13614
13550
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
13615
13551
|
*/
|
|
13616
|
-
execute: function(password, keySize, ivSize, salt) {
|
|
13552
|
+
execute: function(password, keySize, ivSize, salt, hasher) {
|
|
13617
13553
|
if (!salt) {
|
|
13618
13554
|
salt = WordArray.random(64 / 8);
|
|
13619
13555
|
}
|
|
13620
|
-
|
|
13556
|
+
if (!hasher) {
|
|
13557
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
13558
|
+
} else {
|
|
13559
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
|
|
13560
|
+
}
|
|
13621
13561
|
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
13622
13562
|
key.sigBytes = keySize * 4;
|
|
13623
13563
|
return CipherParams.create({ key, iv, salt });
|
|
@@ -13651,7 +13591,7 @@ function requireCipherCore() {
|
|
|
13651
13591
|
*/
|
|
13652
13592
|
encrypt: function(cipher, message, password, cfg) {
|
|
13653
13593
|
cfg = this.cfg.extend(cfg);
|
|
13654
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
|
|
13594
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
|
|
13655
13595
|
cfg.iv = derivedParams.iv;
|
|
13656
13596
|
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
13657
13597
|
ciphertext.mixIn(derivedParams);
|
|
@@ -13677,7 +13617,7 @@ function requireCipherCore() {
|
|
|
13677
13617
|
decrypt: function(cipher, ciphertext, password, cfg) {
|
|
13678
13618
|
cfg = this.cfg.extend(cfg);
|
|
13679
13619
|
ciphertext = this._parse(ciphertext, cfg.format);
|
|
13680
|
-
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
|
|
13620
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
|
|
13681
13621
|
cfg.iv = derivedParams.iv;
|
|
13682
13622
|
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
13683
13623
|
return plaintext;
|
|
@@ -14003,11 +13943,11 @@ function headRequest(request) {
|
|
|
14003
13943
|
})
|
|
14004
13944
|
);
|
|
14005
13945
|
},
|
|
14006
|
-
/** 获取手机或者邮箱验证码 */
|
|
14007
|
-
getMobileEmailCode(mobile_email) {
|
|
13946
|
+
/** 重置密码 - 获取手机或者邮箱验证码 */
|
|
13947
|
+
getMobileEmailCode({ mobile_email = "", captcha_id = "" }) {
|
|
14008
13948
|
return reqCatch(
|
|
14009
13949
|
() => request({
|
|
14010
|
-
url: `/api/v1/user/forgetCode?mobile_email=${mobile_email}`
|
|
13950
|
+
url: `/api/v1/user/forgetCode?mobile_email=${mobile_email}&captcha_id=${captcha_id}`
|
|
14011
13951
|
})
|
|
14012
13952
|
);
|
|
14013
13953
|
},
|
|
@@ -14015,7 +13955,7 @@ function headRequest(request) {
|
|
|
14015
13955
|
resetUserPassword(data) {
|
|
14016
13956
|
return reqCatch(
|
|
14017
13957
|
() => request({
|
|
14018
|
-
url: "/api/v1/user/forgetPassword
|
|
13958
|
+
url: "/api/v1/user/forgetPassword",
|
|
14019
13959
|
method: "post",
|
|
14020
13960
|
data
|
|
14021
13961
|
})
|
|
@@ -14361,9 +14301,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
14361
14301
|
};
|
|
14362
14302
|
}
|
|
14363
14303
|
});
|
|
14364
|
-
const
|
|
14365
|
-
const AiHubMenus_vue_vue_type_style_index_1_lang = "";
|
|
14366
|
-
const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-25dfc896"]]);
|
|
14304
|
+
const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
14367
14305
|
const _hoisted_1$q = ["src"];
|
|
14368
14306
|
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
14369
14307
|
...{ name: "FlashTag" },
|
|
@@ -14418,7 +14356,6 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14418
14356
|
};
|
|
14419
14357
|
}
|
|
14420
14358
|
});
|
|
14421
|
-
const FlashTag_vue_vue_type_style_index_0_lang = "";
|
|
14422
14359
|
function listCacheClear$1() {
|
|
14423
14360
|
this.__data__ = [];
|
|
14424
14361
|
this.size = 0;
|
|
@@ -14872,7 +14809,7 @@ var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
|
14872
14809
|
var objectProto$6 = Object.prototype;
|
|
14873
14810
|
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
14874
14811
|
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
14875
|
-
var isArguments$1 = baseIsArguments(function() {
|
|
14812
|
+
var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
|
|
14876
14813
|
return arguments;
|
|
14877
14814
|
}()) ? baseIsArguments : function(value) {
|
|
14878
14815
|
return isObjectLike$5(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
@@ -15279,7 +15216,7 @@ function initCloneByTag$1(object, tag, isDeep) {
|
|
|
15279
15216
|
var _initCloneByTag = initCloneByTag$1;
|
|
15280
15217
|
var isObject$4 = isObject_1;
|
|
15281
15218
|
var objectCreate = Object.create;
|
|
15282
|
-
var baseCreate$1 = function() {
|
|
15219
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
15283
15220
|
function object() {
|
|
15284
15221
|
}
|
|
15285
15222
|
return function(proto2) {
|
|
@@ -15459,8 +15396,7 @@ var relativeTime$1 = { exports: {} };
|
|
|
15459
15396
|
break;
|
|
15460
15397
|
}
|
|
15461
15398
|
}
|
|
15462
|
-
if (n2)
|
|
15463
|
-
return a;
|
|
15399
|
+
if (n2) return a;
|
|
15464
15400
|
var M2 = s ? l.future : l.past;
|
|
15465
15401
|
return "function" == typeof M2 ? M2(a) : M2.replace("%s", a);
|
|
15466
15402
|
}, n.to = function(r2, e2) {
|
|
@@ -15516,8 +15452,7 @@ const en = {
|
|
|
15516
15452
|
};
|
|
15517
15453
|
var padStart = function padStart2(string, length, pad) {
|
|
15518
15454
|
var s = String(string);
|
|
15519
|
-
if (!s || s.length >= length)
|
|
15520
|
-
return string;
|
|
15455
|
+
if (!s || s.length >= length) return string;
|
|
15521
15456
|
return "" + Array(length + 1 - s.length).join(pad) + string;
|
|
15522
15457
|
};
|
|
15523
15458
|
var padZoneStr = function padZoneStr2(instance) {
|
|
@@ -15528,8 +15463,7 @@ var padZoneStr = function padZoneStr2(instance) {
|
|
|
15528
15463
|
return (negMinutes <= 0 ? "+" : "-") + padStart(hourOffset, 2, "0") + ":" + padStart(minuteOffset, 2, "0");
|
|
15529
15464
|
};
|
|
15530
15465
|
var monthDiff = function monthDiff2(a, b) {
|
|
15531
|
-
if (a.date() < b.date())
|
|
15532
|
-
return -monthDiff2(b, a);
|
|
15466
|
+
if (a.date() < b.date()) return -monthDiff2(b, a);
|
|
15533
15467
|
var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
|
|
15534
15468
|
var anchor = a.clone().add(wholeMonthDiff, M);
|
|
15535
15469
|
var c = b - anchor < 0;
|
|
@@ -15574,8 +15508,7 @@ var isDayjs = function isDayjs2(d) {
|
|
|
15574
15508
|
};
|
|
15575
15509
|
var parseLocale = function parseLocale2(preset, object, isLocal) {
|
|
15576
15510
|
var l;
|
|
15577
|
-
if (!preset)
|
|
15578
|
-
return L;
|
|
15511
|
+
if (!preset) return L;
|
|
15579
15512
|
if (typeof preset === "string") {
|
|
15580
15513
|
var presetLower = preset.toLowerCase();
|
|
15581
15514
|
if (Ls[presetLower]) {
|
|
@@ -15594,8 +15527,7 @@ var parseLocale = function parseLocale2(preset, object, isLocal) {
|
|
|
15594
15527
|
Ls[name] = preset;
|
|
15595
15528
|
l = name;
|
|
15596
15529
|
}
|
|
15597
|
-
if (!isLocal && l)
|
|
15598
|
-
L = l;
|
|
15530
|
+
if (!isLocal && l) L = l;
|
|
15599
15531
|
return l || !isLocal && L;
|
|
15600
15532
|
};
|
|
15601
15533
|
var dayjs = function dayjs2(date, c) {
|
|
@@ -15622,12 +15554,9 @@ Utils.i = isDayjs;
|
|
|
15622
15554
|
Utils.w = wrapper;
|
|
15623
15555
|
var parseDate = function parseDate2(cfg) {
|
|
15624
15556
|
var date = cfg.date, utc2 = cfg.utc;
|
|
15625
|
-
if (date === null)
|
|
15626
|
-
|
|
15627
|
-
if (
|
|
15628
|
-
return /* @__PURE__ */ new Date();
|
|
15629
|
-
if (date instanceof Date)
|
|
15630
|
-
return new Date(date);
|
|
15557
|
+
if (date === null) return /* @__PURE__ */ new Date(NaN);
|
|
15558
|
+
if (Utils.u(date)) return /* @__PURE__ */ new Date();
|
|
15559
|
+
if (date instanceof Date) return new Date(date);
|
|
15631
15560
|
if (typeof date === "string" && !/Z$/i.test(date)) {
|
|
15632
15561
|
var d = date.match(REGEX_PARSE);
|
|
15633
15562
|
if (d) {
|
|
@@ -15681,8 +15610,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
15681
15610
|
return this.endOf(units) < dayjs(that);
|
|
15682
15611
|
};
|
|
15683
15612
|
_proto.$g = function $g(input, get, set) {
|
|
15684
|
-
if (Utils.u(input))
|
|
15685
|
-
return this[get];
|
|
15613
|
+
if (Utils.u(input)) return this[get];
|
|
15686
15614
|
return this.set(set, input);
|
|
15687
15615
|
};
|
|
15688
15616
|
_proto.unix = function unix() {
|
|
@@ -15747,8 +15675,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
15747
15675
|
date.$d[name](arg);
|
|
15748
15676
|
date.init();
|
|
15749
15677
|
this.$d = date.set(DATE, Math.min(this.$D, date.daysInMonth())).$d;
|
|
15750
|
-
} else if (name)
|
|
15751
|
-
this.$d[name](arg);
|
|
15678
|
+
} else if (name) this.$d[name](arg);
|
|
15752
15679
|
this.init();
|
|
15753
15680
|
return this;
|
|
15754
15681
|
};
|
|
@@ -15788,8 +15715,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
15788
15715
|
_proto.format = function format2(formatStr) {
|
|
15789
15716
|
var _this3 = this;
|
|
15790
15717
|
var locale2 = this.$locale();
|
|
15791
|
-
if (!this.isValid())
|
|
15792
|
-
return locale2.invalidDate || INVALID_DATE_STRING;
|
|
15718
|
+
if (!this.isValid()) return locale2.invalidDate || INVALID_DATE_STRING;
|
|
15793
15719
|
var str = formatStr || FORMAT_DEFAULT;
|
|
15794
15720
|
var zoneStr = Utils.z(this);
|
|
15795
15721
|
var $H = this.$H, $m = this.$m, $M = this.$M;
|
|
@@ -15912,12 +15838,10 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
15912
15838
|
return Ls[this.$L];
|
|
15913
15839
|
};
|
|
15914
15840
|
_proto.locale = function locale2(preset, object) {
|
|
15915
|
-
if (!preset)
|
|
15916
|
-
return this.$L;
|
|
15841
|
+
if (!preset) return this.$L;
|
|
15917
15842
|
var that = this.clone();
|
|
15918
15843
|
var nextLocaleName = parseLocale(preset, object, true);
|
|
15919
|
-
if (nextLocaleName)
|
|
15920
|
-
that.$L = nextLocaleName;
|
|
15844
|
+
if (nextLocaleName) that.$L = nextLocaleName;
|
|
15921
15845
|
return that;
|
|
15922
15846
|
};
|
|
15923
15847
|
_proto.clone = function clone2() {
|
|
@@ -16046,8 +15970,7 @@ var timezone = { exports: {} };
|
|
|
16046
15970
|
f.tz = function(t3, e2) {
|
|
16047
15971
|
void 0 === t3 && (t3 = r);
|
|
16048
15972
|
var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t3 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
|
|
16049
|
-
if (!Number(s2))
|
|
16050
|
-
n2 = this.utcOffset(0, e2);
|
|
15973
|
+
if (!Number(s2)) n2 = this.utcOffset(0, e2);
|
|
16051
15974
|
else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
|
|
16052
15975
|
var m = n2.utcOffset();
|
|
16053
15976
|
n2 = n2.add(i2 - m, "minute");
|
|
@@ -16061,18 +15984,15 @@ var timezone = { exports: {} };
|
|
|
16061
15984
|
};
|
|
16062
15985
|
var s = f.startOf;
|
|
16063
15986
|
f.startOf = function(t3, e2) {
|
|
16064
|
-
if (!this.$x || !this.$x.$timezone)
|
|
16065
|
-
return s.call(this, t3, e2);
|
|
15987
|
+
if (!this.$x || !this.$x.$timezone) return s.call(this, t3, e2);
|
|
16066
15988
|
var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
16067
15989
|
return s.call(n2, t3, e2).tz(this.$x.$timezone, true);
|
|
16068
15990
|
}, o.tz = function(t3, e2, n2) {
|
|
16069
15991
|
var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
|
|
16070
|
-
if ("string" != typeof t3)
|
|
16071
|
-
return o(t3).tz(a2);
|
|
15992
|
+
if ("string" != typeof t3) return o(t3).tz(a2);
|
|
16072
15993
|
var s2 = function(t4, e3, n3) {
|
|
16073
15994
|
var i3 = t4 - 60 * e3 * 1e3, o2 = u(i3, n3);
|
|
16074
|
-
if (e3 === o2)
|
|
16075
|
-
return [i3, e3];
|
|
15995
|
+
if (e3 === o2) return [i3, e3];
|
|
16076
15996
|
var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
|
|
16077
15997
|
return o2 === r2 ? [i3, o2] : [t4 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
|
|
16078
15998
|
}(o.utc(t3, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
|
|
@@ -16113,31 +16033,25 @@ var utc$1 = { exports: {} };
|
|
|
16113
16033
|
if (this.$u) {
|
|
16114
16034
|
var t3 = this.$d;
|
|
16115
16035
|
this.$y = t3.getUTCFullYear(), this.$M = t3.getUTCMonth(), this.$D = t3.getUTCDate(), this.$W = t3.getUTCDay(), this.$H = t3.getUTCHours(), this.$m = t3.getUTCMinutes(), this.$s = t3.getUTCSeconds(), this.$ms = t3.getUTCMilliseconds();
|
|
16116
|
-
} else
|
|
16117
|
-
r.call(this);
|
|
16036
|
+
} else r.call(this);
|
|
16118
16037
|
};
|
|
16119
16038
|
var a = u.utcOffset;
|
|
16120
16039
|
u.utcOffset = function(s2, f2) {
|
|
16121
16040
|
var n2 = this.$utils().u;
|
|
16122
|
-
if (n2(s2))
|
|
16123
|
-
return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
|
|
16041
|
+
if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
|
|
16124
16042
|
if ("string" == typeof s2 && (s2 = function(t3) {
|
|
16125
16043
|
void 0 === t3 && (t3 = "");
|
|
16126
16044
|
var s3 = t3.match(i);
|
|
16127
|
-
if (!s3)
|
|
16128
|
-
return null;
|
|
16045
|
+
if (!s3) return null;
|
|
16129
16046
|
var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
|
|
16130
16047
|
return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
|
|
16131
|
-
}(s2), null === s2))
|
|
16132
|
-
return this;
|
|
16048
|
+
}(s2), null === s2)) return this;
|
|
16133
16049
|
var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
|
|
16134
|
-
if (f2)
|
|
16135
|
-
return o2.$offset = u2, o2.$u = 0 === s2, o2;
|
|
16050
|
+
if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
|
|
16136
16051
|
if (0 !== s2) {
|
|
16137
16052
|
var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
16138
16053
|
(o2 = this.local().add(u2 + r2, t2)).$offset = u2, o2.$x.$localOffset = r2;
|
|
16139
|
-
} else
|
|
16140
|
-
o2 = this.utc();
|
|
16054
|
+
} else o2 = this.utc();
|
|
16141
16055
|
return o2;
|
|
16142
16056
|
};
|
|
16143
16057
|
var h2 = u.format;
|
|
@@ -16160,8 +16074,7 @@ var utc$1 = { exports: {} };
|
|
|
16160
16074
|
};
|
|
16161
16075
|
var c = u.diff;
|
|
16162
16076
|
u.diff = function(t3, i2, e2) {
|
|
16163
|
-
if (t3 && this.$u === t3.$u)
|
|
16164
|
-
return c.call(this, t3, i2, e2);
|
|
16077
|
+
if (t3 && this.$u === t3.$u) return c.call(this, t3, i2, e2);
|
|
16165
16078
|
var s2 = this.local(), f2 = n(t3).local();
|
|
16166
16079
|
return c.call(s2, f2, i2, e2);
|
|
16167
16080
|
};
|
|
@@ -16188,14 +16101,12 @@ dayjs$1.extend(utc);
|
|
|
16188
16101
|
dayjs$1.tz.setDefault("Asia/Shanghai");
|
|
16189
16102
|
const useTimeFormat = () => {
|
|
16190
16103
|
const formatTimeFromNow = (time) => {
|
|
16191
|
-
if (!time)
|
|
16192
|
-
return "-";
|
|
16104
|
+
if (!time) return "-";
|
|
16193
16105
|
const targetDate = isDate$1(time) ? time : new Date(time);
|
|
16194
16106
|
return formatTimeDifference(targetDate);
|
|
16195
16107
|
};
|
|
16196
16108
|
const formatTime = (time, format2) => {
|
|
16197
|
-
if (!time)
|
|
16198
|
-
return "-";
|
|
16109
|
+
if (!time) return "-";
|
|
16199
16110
|
return dayjs$1(time).format(format2);
|
|
16200
16111
|
};
|
|
16201
16112
|
return {
|
|
@@ -16296,8 +16207,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16296
16207
|
const inAIHub = computed(() => aiHubSceneValue.includes(props.scene));
|
|
16297
16208
|
const emits = __emit;
|
|
16298
16209
|
const handleOrgFollow = (val) => {
|
|
16299
|
-
if (props.scene !== SceneValue.org)
|
|
16300
|
-
return;
|
|
16210
|
+
if (props.scene !== SceneValue.org) return;
|
|
16301
16211
|
if (!props.isLogin) {
|
|
16302
16212
|
emitEvent("login", { triggerType: "关注组织" });
|
|
16303
16213
|
return;
|
|
@@ -16306,8 +16216,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16306
16216
|
};
|
|
16307
16217
|
const topicTag = computed(() => {
|
|
16308
16218
|
var _a, _b;
|
|
16309
|
-
if (props.scene !== SceneValue.repo)
|
|
16310
|
-
return false;
|
|
16219
|
+
if (props.scene !== SceneValue.repo) return false;
|
|
16311
16220
|
let repoType = 1;
|
|
16312
16221
|
repoType = Number((_a = repoInfo.value) == null ? void 0 : _a.repo_type) - 1;
|
|
16313
16222
|
if ((_b = props.repoProps) == null ? void 0 : _b.isSpaces) {
|
|
@@ -16338,10 +16247,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16338
16247
|
return false;
|
|
16339
16248
|
});
|
|
16340
16249
|
const toAiHub = () => {
|
|
16341
|
-
if (props.scene !== SceneValue.repo)
|
|
16342
|
-
|
|
16343
|
-
if (!topicTag.value)
|
|
16344
|
-
return;
|
|
16250
|
+
if (props.scene !== SceneValue.repo) return;
|
|
16251
|
+
if (!topicTag.value) return;
|
|
16345
16252
|
const aiUrl = `${layoutConfig2.VITE_AI_HOST}${topicTag.value.linkUrl}`;
|
|
16346
16253
|
if (typeof window !== "undefined" && window.location) {
|
|
16347
16254
|
window.location.href = aiUrl;
|
|
@@ -16349,8 +16256,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16349
16256
|
};
|
|
16350
16257
|
const showTimeTopic = computed(() => {
|
|
16351
16258
|
var _a, _b;
|
|
16352
|
-
if (props.scene !== SceneValue.repo)
|
|
16353
|
-
return false;
|
|
16259
|
+
if (props.scene !== SceneValue.repo) return false;
|
|
16354
16260
|
if (!((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at)) {
|
|
16355
16261
|
return false;
|
|
16356
16262
|
}
|
|
@@ -16365,8 +16271,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16365
16271
|
return formatTimeFromNow((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at);
|
|
16366
16272
|
});
|
|
16367
16273
|
const handleFollowUser = () => {
|
|
16368
|
-
if (props.scene !== SceneValue.user)
|
|
16369
|
-
return;
|
|
16274
|
+
if (props.scene !== SceneValue.user) return;
|
|
16370
16275
|
emits("followUser");
|
|
16371
16276
|
};
|
|
16372
16277
|
return (_ctx, _cache) => {
|
|
@@ -16613,9 +16518,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
16613
16518
|
};
|
|
16614
16519
|
}
|
|
16615
16520
|
});
|
|
16616
|
-
const
|
|
16617
|
-
const HeaderCustom_vue_vue_type_style_index_1_lang = "";
|
|
16618
|
-
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-0a131cb4"]]);
|
|
16521
|
+
const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
16619
16522
|
const logo = "data:image/png;base64,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";
|
|
16620
16523
|
const _hoisted_1$o = ["src"];
|
|
16621
16524
|
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
@@ -16642,8 +16545,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
16642
16545
|
};
|
|
16643
16546
|
}
|
|
16644
16547
|
});
|
|
16645
|
-
const
|
|
16646
|
-
const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-e951add8"]]);
|
|
16548
|
+
const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
16647
16549
|
const _hoisted_1$n = { class: "devui-select__item g-option-link" };
|
|
16648
16550
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
16649
16551
|
...{
|
|
@@ -16674,9 +16576,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
16674
16576
|
};
|
|
16675
16577
|
}
|
|
16676
16578
|
});
|
|
16677
|
-
const
|
|
16678
|
-
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3606a524"]]);
|
|
16679
|
-
const index_vue_vue_type_style_index_0_scoped_8c5cf616_lang = "";
|
|
16579
|
+
const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
16680
16580
|
const _sfc_main$r = /* @__PURE__ */ Object.assign({
|
|
16681
16581
|
name: "Create"
|
|
16682
16582
|
}, {
|
|
@@ -16766,7 +16666,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
|
|
|
16766
16666
|
};
|
|
16767
16667
|
}
|
|
16768
16668
|
});
|
|
16769
|
-
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
16669
|
+
const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
16770
16670
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
16771
16671
|
...{
|
|
16772
16672
|
name: "DocumentCenter"
|
|
@@ -16793,8 +16693,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
16793
16693
|
};
|
|
16794
16694
|
}
|
|
16795
16695
|
});
|
|
16796
|
-
const
|
|
16797
|
-
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a5926f52"]]);
|
|
16696
|
+
const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
16798
16697
|
var root = _root;
|
|
16799
16698
|
var now$1 = function() {
|
|
16800
16699
|
return root.Date.now();
|
|
@@ -16991,8 +16890,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
16991
16890
|
};
|
|
16992
16891
|
}
|
|
16993
16892
|
});
|
|
16994
|
-
const
|
|
16995
|
-
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-061b58d4"]]);
|
|
16893
|
+
const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
16996
16894
|
const _hoisted_1$m = {
|
|
16997
16895
|
key: 0,
|
|
16998
16896
|
class: "user-level-avatar-badge"
|
|
@@ -17075,8 +16973,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
17075
16973
|
};
|
|
17076
16974
|
}
|
|
17077
16975
|
});
|
|
17078
|
-
const
|
|
17079
|
-
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9dda511e"]]);
|
|
16976
|
+
const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17080
16977
|
const _hoisted_1$l = { class: "g-user-drawer-info-list pl-[16px]" };
|
|
17081
16978
|
const _hoisted_2$f = { class: "max-w-[200px]" };
|
|
17082
16979
|
const _hoisted_3$c = ["title"];
|
|
@@ -17190,7 +17087,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17190
17087
|
}
|
|
17191
17088
|
}
|
|
17192
17089
|
const getVisit = async (value) => {
|
|
17193
|
-
const visitedDate =
|
|
17090
|
+
const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
|
|
17194
17091
|
const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
|
|
17195
17092
|
const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
|
|
17196
17093
|
if (visitedDate === nowDate && nowUserName === props.accountInfo.username) {
|
|
@@ -17263,8 +17160,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
17263
17160
|
};
|
|
17264
17161
|
}
|
|
17265
17162
|
});
|
|
17266
|
-
const
|
|
17267
|
-
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dfa86b44"]]);
|
|
17163
|
+
const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17268
17164
|
const _hoisted_1$k = { class: "g-user-avatar flex-center ml-1" };
|
|
17269
17165
|
const _hoisted_2$e = {
|
|
17270
17166
|
key: 0,
|
|
@@ -17308,14 +17204,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17308
17204
|
handleAvatarRedPoint(CLICK_TIME_MODULE.GROWTH_CENTER, accountInfo.value.username);
|
|
17309
17205
|
};
|
|
17310
17206
|
const getVisit = async (value) => {
|
|
17311
|
-
const visitedDate =
|
|
17207
|
+
const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
|
|
17312
17208
|
const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
|
|
17313
17209
|
const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
|
|
17314
17210
|
if (visitedDate === nowDate && nowUserName === accountInfo.value.username) {
|
|
17315
17211
|
haveVisited.value = true;
|
|
17316
17212
|
}
|
|
17317
17213
|
};
|
|
17318
|
-
getVisit(
|
|
17214
|
+
getVisit();
|
|
17319
17215
|
const getScrollDom = () => {
|
|
17320
17216
|
if (typeof document !== "undefined" && document.getElementById) {
|
|
17321
17217
|
const appDom = document.getElementById("app");
|
|
@@ -17384,9 +17280,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
17384
17280
|
};
|
|
17385
17281
|
}
|
|
17386
17282
|
});
|
|
17387
|
-
const
|
|
17388
|
-
const UserAvatar_vue_vue_type_style_index_1_lang = "";
|
|
17389
|
-
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2b79e772"]]);
|
|
17283
|
+
const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17390
17284
|
var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
|
|
17391
17285
|
EVENT_NAME2["START_SEARCH"] = "开始搜索";
|
|
17392
17286
|
EVENT_NAME2["SEARCH"] = "搜索";
|
|
@@ -17445,7 +17339,7 @@ function _frEventTrack(eventName, type = "custom") {
|
|
|
17445
17339
|
}
|
|
17446
17340
|
}
|
|
17447
17341
|
const setlocalVistHistory = (data, localType) => {
|
|
17448
|
-
const storeName = localType
|
|
17342
|
+
const storeName = localType;
|
|
17449
17343
|
const localData = localStorage$2.getItem(storeName);
|
|
17450
17344
|
let cur = [];
|
|
17451
17345
|
if (localData) {
|
|
@@ -17463,18 +17357,13 @@ const setlocalVistHistory = (data, localType) => {
|
|
|
17463
17357
|
cur.splice(cur.indexOf(target), 1);
|
|
17464
17358
|
cur.unshift(target);
|
|
17465
17359
|
}
|
|
17466
|
-
} else {
|
|
17467
|
-
if (!cur.some((ele) => ele === data || data.label && ele.label === data.label)) {
|
|
17468
|
-
cur.unshift(data);
|
|
17469
|
-
}
|
|
17470
17360
|
}
|
|
17471
17361
|
} catch (e) {
|
|
17472
17362
|
}
|
|
17473
17363
|
} else {
|
|
17474
17364
|
cur = [data];
|
|
17475
17365
|
}
|
|
17476
|
-
const
|
|
17477
|
-
const storageCount = isLocalSearch ? 10 : 5;
|
|
17366
|
+
const storageCount = 10;
|
|
17478
17367
|
cur.splice(storageCount);
|
|
17479
17368
|
localStorage$2.setItem(storeName, JSON.stringify(cur));
|
|
17480
17369
|
return cur;
|
|
@@ -17556,13 +17445,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
17556
17445
|
setup(__props) {
|
|
17557
17446
|
var _a;
|
|
17558
17447
|
const { t: $t } = i18n.global;
|
|
17559
|
-
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-
|
|
17560
|
-
const UserSearch = defineAsyncComponent(() => import("./UserSearch-
|
|
17561
|
-
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-
|
|
17562
|
-
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-
|
|
17563
|
-
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-
|
|
17564
|
-
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-
|
|
17565
|
-
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-
|
|
17448
|
+
const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CUYqxB2e.js"));
|
|
17449
|
+
const UserSearch = defineAsyncComponent(() => import("./UserSearch-B2JLOkTk.js"));
|
|
17450
|
+
const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DpWRqL8Z.js"));
|
|
17451
|
+
const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CsrGs9P0.js"));
|
|
17452
|
+
const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BcNBGCAZ.js"));
|
|
17453
|
+
const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BIqUmChj.js"));
|
|
17454
|
+
const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-CGDAvddU.js"));
|
|
17566
17455
|
const props = __props;
|
|
17567
17456
|
const repoInfo = inject("repoInfo");
|
|
17568
17457
|
const orgInfo = inject("orgInfo");
|
|
@@ -18081,10 +17970,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
18081
17970
|
};
|
|
18082
17971
|
}
|
|
18083
17972
|
});
|
|
18084
|
-
const
|
|
18085
|
-
const
|
|
18086
|
-
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-56b3cd7b"]]);
|
|
18087
|
-
const NoticeModal = defineAsyncComponent(() => import("./notice-8fa57727.js"));
|
|
17973
|
+
const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
17974
|
+
const NoticeModal = defineAsyncComponent(() => import("./notice-CvalmyAG.js"));
|
|
18088
17975
|
function clearNotice() {
|
|
18089
17976
|
if (localStorage$2.getItem("validator_email")) {
|
|
18090
17977
|
localStorage$2.removeItem("validator_email");
|
|
@@ -18424,8 +18311,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
18424
18311
|
};
|
|
18425
18312
|
}
|
|
18426
18313
|
});
|
|
18427
|
-
const
|
|
18428
|
-
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1d4870b7"]]);
|
|
18314
|
+
const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18429
18315
|
const createSetting = () => {
|
|
18430
18316
|
const { t: t2 } = i18n.global;
|
|
18431
18317
|
const settings = {
|
|
@@ -18473,7 +18359,6 @@ if (isBrowser) {
|
|
|
18473
18359
|
}
|
|
18474
18360
|
};
|
|
18475
18361
|
}
|
|
18476
|
-
const sessionStorage$1 = sessionStorage;
|
|
18477
18362
|
const _hoisted_1$h = { class: "tools-item-wrapper" };
|
|
18478
18363
|
const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
|
|
18479
18364
|
const _hoisted_3$8 = ["onClick", "title"];
|
|
@@ -18485,12 +18370,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
18485
18370
|
const router2 = useRouter();
|
|
18486
18371
|
const { t: t2 } = i18n.global;
|
|
18487
18372
|
const handleClick = (linkItem) => {
|
|
18488
|
-
if (lang.value === linkItem.value)
|
|
18489
|
-
return;
|
|
18373
|
+
if (lang.value === linkItem.value) return;
|
|
18490
18374
|
lang.value = linkItem.value;
|
|
18491
18375
|
const isHomePage = router2.currentRoute.value.name === "home";
|
|
18492
18376
|
if (isHomePage) {
|
|
18493
|
-
sessionStorage
|
|
18377
|
+
sessionStorage.setItem("page_reload", "changedLang");
|
|
18494
18378
|
}
|
|
18495
18379
|
window.location.reload();
|
|
18496
18380
|
};
|
|
@@ -18537,8 +18421,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18537
18421
|
{ value: ThemeType.BLACK, icon: "gt-line-dark" }
|
|
18538
18422
|
]);
|
|
18539
18423
|
const handleClick = (themeItem) => {
|
|
18540
|
-
if (activeTheme.value === themeItem.value)
|
|
18541
|
-
return;
|
|
18424
|
+
if (activeTheme.value === themeItem.value) return;
|
|
18542
18425
|
activeTheme.value = themeItem.value;
|
|
18543
18426
|
if (themeItem.value === "System") {
|
|
18544
18427
|
theme.startAutoTheme();
|
|
@@ -18575,7 +18458,6 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
18575
18458
|
};
|
|
18576
18459
|
}
|
|
18577
18460
|
});
|
|
18578
|
-
const Theme_vue_vue_type_style_index_0_lang = "";
|
|
18579
18461
|
const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
|
|
18580
18462
|
var _a, _b;
|
|
18581
18463
|
try {
|
|
@@ -18620,16 +18502,14 @@ const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
|
|
|
18620
18502
|
};
|
|
18621
18503
|
const layoutConfig$1 = useLayoutConfig();
|
|
18622
18504
|
const transWebUrl = (url, params) => {
|
|
18623
|
-
if (!url)
|
|
18624
|
-
return url;
|
|
18505
|
+
if (!url) return url;
|
|
18625
18506
|
let processedUrl = url;
|
|
18626
18507
|
if (layoutConfig$1.VITE_ENV !== "production") {
|
|
18627
18508
|
const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
|
|
18628
18509
|
const match = url.match(regex);
|
|
18629
18510
|
processedUrl = match ? match[2] : url || "/";
|
|
18630
18511
|
}
|
|
18631
|
-
if (!params)
|
|
18632
|
-
return processedUrl;
|
|
18512
|
+
if (!params) return processedUrl;
|
|
18633
18513
|
const separator = processedUrl.includes("?") ? "&" : "?";
|
|
18634
18514
|
if (typeof params === "string") {
|
|
18635
18515
|
return `${processedUrl}${separator}${params}`;
|
|
@@ -18804,8 +18684,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18804
18684
|
if (inputIng.value) {
|
|
18805
18685
|
return;
|
|
18806
18686
|
}
|
|
18807
|
-
if (scTimer)
|
|
18808
|
-
clearTimeout(scTimer);
|
|
18687
|
+
if (scTimer) clearTimeout(scTimer);
|
|
18809
18688
|
scTimer = setTimeout(() => {
|
|
18810
18689
|
if (props.type === "project") {
|
|
18811
18690
|
searchProject();
|
|
@@ -18985,9 +18864,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
18985
18864
|
};
|
|
18986
18865
|
}
|
|
18987
18866
|
});
|
|
18988
|
-
const
|
|
18989
|
-
const ProjectMenuList_vue_vue_type_style_index_1_lang = "";
|
|
18990
|
-
const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6834b457"]]);
|
|
18867
|
+
const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
18991
18868
|
const _hoisted_1$e = { class: "side-bar-label" };
|
|
18992
18869
|
const _hoisted_2$8 = {
|
|
18993
18870
|
key: 0,
|
|
@@ -19078,18 +18955,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19078
18955
|
};
|
|
19079
18956
|
const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage$2.getItem("userInfo") || "{}").username);
|
|
19080
18957
|
const showPreferencesSetting = computed(() => {
|
|
19081
|
-
if (props.showPreferencesSetting !== void 0)
|
|
19082
|
-
return !props.asideSetShowLittle && props.showPreferencesSetting;
|
|
18958
|
+
if (props.showPreferencesSetting !== void 0) return !props.asideSetShowLittle && props.showPreferencesSetting;
|
|
19083
18959
|
return !props.asideSetShowLittle && route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
|
|
19084
18960
|
});
|
|
19085
18961
|
const showThemeSetting = computed(() => {
|
|
19086
|
-
if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0)
|
|
19087
|
-
return props.showThemeSetting;
|
|
18962
|
+
if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0) return props.showThemeSetting;
|
|
19088
18963
|
return ![SceneValue.aiHome, SceneValue.aiGuide].includes(props.sceneValue);
|
|
19089
18964
|
});
|
|
19090
18965
|
const showLangSetting = computed(() => {
|
|
19091
|
-
if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0)
|
|
19092
|
-
return props.showLangSetting;
|
|
18966
|
+
if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0) return props.showLangSetting;
|
|
19093
18967
|
return true;
|
|
19094
18968
|
});
|
|
19095
18969
|
const isEn = computed(() => {
|
|
@@ -19278,16 +19152,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19278
19152
|
emits("onMenuClick");
|
|
19279
19153
|
};
|
|
19280
19154
|
function checkMenu() {
|
|
19281
|
-
if (!route)
|
|
19282
|
-
return;
|
|
19155
|
+
if (!route) return;
|
|
19283
19156
|
const name = route == null ? void 0 : route.name;
|
|
19284
19157
|
if (MENU_ITEM_ROUTE_NAME.includes(name)) {
|
|
19285
19158
|
defaultSelectKeys.value = [name];
|
|
19286
19159
|
console.log(defaultSelectKeys.value);
|
|
19287
19160
|
} else {
|
|
19288
19161
|
const basePath = route.meta.basePath;
|
|
19289
|
-
if (basePath)
|
|
19290
|
-
defaultSelectKeys.value = [basePath];
|
|
19162
|
+
if (basePath) defaultSelectKeys.value = [basePath];
|
|
19291
19163
|
}
|
|
19292
19164
|
}
|
|
19293
19165
|
watch(
|
|
@@ -19308,8 +19180,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19308
19180
|
const timer = ref(null);
|
|
19309
19181
|
const handleScroll = () => {
|
|
19310
19182
|
isScroll.value = true;
|
|
19311
|
-
if (timer.value)
|
|
19312
|
-
clearTimeout(timer.value);
|
|
19183
|
+
if (timer.value) clearTimeout(timer.value);
|
|
19313
19184
|
timer.value = setTimeout(() => {
|
|
19314
19185
|
isScroll.value = false;
|
|
19315
19186
|
}, 1e3);
|
|
@@ -19586,9 +19457,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
19586
19457
|
};
|
|
19587
19458
|
}
|
|
19588
19459
|
});
|
|
19589
|
-
const
|
|
19590
|
-
const asideContent_vue_vue_type_style_index_1_lang = "";
|
|
19591
|
-
const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f33b2a32"]]);
|
|
19460
|
+
const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
19592
19461
|
const _hoisted_1$d = { class: "p-[16px] flex justify-between items-center h-[60px]" };
|
|
19593
19462
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
19594
19463
|
__name: "index",
|
|
@@ -19615,8 +19484,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19615
19484
|
provide("userInfo", computed(() => props.userInfo));
|
|
19616
19485
|
provide("useReport", useReport2);
|
|
19617
19486
|
const showBgColor = computed(() => {
|
|
19618
|
-
if (route.meta.showBgColor)
|
|
19619
|
-
return true;
|
|
19487
|
+
if (route.meta.showBgColor) return true;
|
|
19620
19488
|
return false;
|
|
19621
19489
|
});
|
|
19622
19490
|
const asideSetShow = computed(() => {
|
|
@@ -19722,9 +19590,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19722
19590
|
};
|
|
19723
19591
|
}
|
|
19724
19592
|
});
|
|
19725
|
-
const
|
|
19726
|
-
const index_vue_vue_type_style_index_1_lang$1 = "";
|
|
19727
|
-
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f5208450"]]);
|
|
19593
|
+
const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
19728
19594
|
const repoInfoData = {
|
|
19729
19595
|
"star_count": 0,
|
|
19730
19596
|
"forks_count": 0,
|
|
@@ -20399,7 +20265,6 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
20399
20265
|
};
|
|
20400
20266
|
}
|
|
20401
20267
|
});
|
|
20402
|
-
const home_vue_vue_type_style_index_0_lang = "";
|
|
20403
20268
|
const _hoisted_1$b = { class: "home-wrapper" };
|
|
20404
20269
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
20405
20270
|
__name: "login",
|
|
@@ -20446,7 +20311,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
20446
20311
|
};
|
|
20447
20312
|
}
|
|
20448
20313
|
});
|
|
20449
|
-
const login_vue_vue_type_style_index_0_lang = "";
|
|
20450
20314
|
const routes = [
|
|
20451
20315
|
{
|
|
20452
20316
|
path: "/",
|
|
@@ -20534,7 +20398,7 @@ async function csdnloginCheck(route, loginCallback, request) {
|
|
|
20534
20398
|
localStorage$2.setItem("cache_loginTimes", `${Number(loginTimes) + 1}`);
|
|
20535
20399
|
window.page_title = ((_f = route.meta) == null ? void 0 : _f.reportTitle) || "";
|
|
20536
20400
|
await useReport("pageview", {}, request);
|
|
20537
|
-
sessionStorage
|
|
20401
|
+
sessionStorage.setItem(GOTO_QUICK_LOGIN, "1");
|
|
20538
20402
|
loginCallback();
|
|
20539
20403
|
return true;
|
|
20540
20404
|
}
|
|
@@ -20554,8 +20418,7 @@ const createLoginConfig = (request) => {
|
|
|
20554
20418
|
}, failFunc = () => {
|
|
20555
20419
|
} } = param;
|
|
20556
20420
|
const check = validFunc ? await validFunc() : true;
|
|
20557
|
-
if (!check)
|
|
20558
|
-
return;
|
|
20421
|
+
if (!check) return;
|
|
20559
20422
|
const result2 = await API.loginByMobile(loginParams);
|
|
20560
20423
|
if (!result2.error) {
|
|
20561
20424
|
const resultData = result2.data.data;
|
|
@@ -20572,8 +20435,7 @@ const createLoginConfig = (request) => {
|
|
|
20572
20435
|
}, failFunc = () => {
|
|
20573
20436
|
} } = param;
|
|
20574
20437
|
const check = validFunc ? await validFunc() : true;
|
|
20575
|
-
if (!check)
|
|
20576
|
-
return;
|
|
20438
|
+
if (!check) return;
|
|
20577
20439
|
const result2 = await API.toLogin(loginParams);
|
|
20578
20440
|
if (((_a = result2 == null ? void 0 : result2.error) == null ? void 0 : _a.error_code) === GRAPH_CODE) {
|
|
20579
20441
|
graphValidate();
|
|
@@ -20621,8 +20483,7 @@ const createLoginConfig = (request) => {
|
|
|
20621
20483
|
beforeCsdnLogin(param) {
|
|
20622
20484
|
const { type, validFunc } = param;
|
|
20623
20485
|
const check = validFunc ? validFunc() : true;
|
|
20624
|
-
if (!check)
|
|
20625
|
-
return;
|
|
20486
|
+
if (!check) return;
|
|
20626
20487
|
saveStatusBeforeLogin(param);
|
|
20627
20488
|
goAuthPage(type);
|
|
20628
20489
|
},
|
|
@@ -20648,8 +20509,7 @@ const createLoginConfig = (request) => {
|
|
|
20648
20509
|
async beforeWechatLogin(param) {
|
|
20649
20510
|
const { validFunc, type } = param;
|
|
20650
20511
|
const check = validFunc == null ? void 0 : validFunc();
|
|
20651
|
-
if (!check)
|
|
20652
|
-
return;
|
|
20512
|
+
if (!check) return;
|
|
20653
20513
|
saveStatusBeforeLogin(param);
|
|
20654
20514
|
goAuthPage(type);
|
|
20655
20515
|
},
|
|
@@ -20661,8 +20521,7 @@ const createLoginConfig = (request) => {
|
|
|
20661
20521
|
beforeOtherLogin(param) {
|
|
20662
20522
|
const { type, validFunc } = param;
|
|
20663
20523
|
const check = validFunc ? validFunc() : true;
|
|
20664
|
-
if (!check)
|
|
20665
|
-
return;
|
|
20524
|
+
if (!check) return;
|
|
20666
20525
|
saveStatusBeforeLogin(param);
|
|
20667
20526
|
goAuthPage(type);
|
|
20668
20527
|
},
|
|
@@ -20689,7 +20548,7 @@ function saveSignPath() {
|
|
|
20689
20548
|
localStorage$2.setItem("sign_path", (window == null ? void 0 : window.location.href) || "");
|
|
20690
20549
|
}
|
|
20691
20550
|
function saveLoginType(triggerType = "") {
|
|
20692
|
-
sessionStorage
|
|
20551
|
+
sessionStorage.setItem("loginType", triggerType);
|
|
20693
20552
|
}
|
|
20694
20553
|
function getLoginReturnUrl() {
|
|
20695
20554
|
return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
|
|
@@ -20868,57 +20727,57 @@ const HandleParentWindowGetLoginInfo = (request) => {
|
|
|
20868
20727
|
}
|
|
20869
20728
|
};
|
|
20870
20729
|
};
|
|
20871
|
-
const logoBack = "data:image/svg+xml
|
|
20730
|
+
const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
20872
20731
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20873
20732
|
__proto__: null,
|
|
20874
20733
|
default: logoBack
|
|
20875
20734
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20876
|
-
const logoCsdn = "data:image/svg+xml
|
|
20735
|
+
const logoCsdn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/csdn%3c/title%3e%3cg%20id='ic/csdn'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M24.7385612,21.818791%20C24.4728206,21.5662432%2024.1090763,21.4267765%2023.7575825,21.4343152%20C23.3966653,21.4399693%2023.0696724,21.5907441%2022.8378562,21.8555424%20C20.7581061,24.2349574%2017.1347988,24.4922169%2015.6732254,24.4922169%20C12.9611634,24.4922169%2010.886125,23.8043069%209.50559315,22.4501605%20C8.19385225,21.1638629%207.50594216,19.2678696%207.46070972,16.8168365%20C7.35516735,11.1345107%2010.5732673,5.25806226%2016.139685,5.25806226%20C18.7980335,5.25806226%2020.8627061,7.14368979%2021.6260036,7.95410443%20C21.8917442,8.23586486%2022.2583155,8.39794779%2022.6352525,8.39983247%20C23.0131319,8.4092559%2023.362741,8.24151892%2023.599269,7.96164317%20L23.8160078,7.70532598%20C24.2607935,7.18232584%2024.4605701,6.50572386%2024.380471,5.80179394%20C24.2984872,5.09126763%2023.9422817,4.44293592%2023.3778185,3.97459165%20C22.0133064,2.84472288%2019.6951436,1.5%2016.3969445,1.5%20C12.9715292,1.5%209.58757695,3.07465447%207.1129853,5.82441016%20C4.51306208,8.71269021%203.1240491,12.6441435%203.20320588,16.895051%20C3.26634283,20.3063311%204.38490349,23.1729373%206.44015269,25.1886081%20C8.64806138,27.3550537%2011.8821812,28.5%2015.7947876,28.5%20C20.3849384,28.5%2023.2289283,27.1401996%2024.8082945,26.0009074%20C25.4198749,25.5608334%2025.7845615,24.8644423%2025.8128317,24.093606%20C25.8392173,23.3190004%2025.5225902,22.5604146%2024.9430495,22.0119712%20L24.7385612,21.818791%20Z'%20id='Fill-1'%20fill='%23FC5533'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
|
|
20877
20736
|
const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20878
20737
|
__proto__: null,
|
|
20879
20738
|
default: logoCsdn
|
|
20880
20739
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20881
|
-
const logoGit = "data:image/svg+xml
|
|
20740
|
+
const logoGit = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5084_286)'%3e%3cpath%20d='M35.2868%2016.3983L19.5839%200.696229C18.6798%20-0.208639%2017.2132%20-0.208639%2016.3083%200.696229L12.66%204.34447L15.4056%207.09C15.8458%206.87925%2016.3385%206.76128%2016.8593%206.76128C18.7215%206.76128%2020.2313%208.27107%2020.2313%2010.1333C20.2313%2010.6541%2020.1133%2011.1468%2019.9026%2011.587L24.3974%2016.0818C24.8376%2015.8711%2025.3303%2015.7531%2025.8511%2015.7531C27.7134%2015.7531%2029.2231%2017.2629%2029.2231%2019.1252C29.2231%2020.9874%2027.7134%2022.4972%2025.8511%2022.4972C23.9889%2022.4972%2022.4791%2020.9874%2022.4791%2019.1252C22.4791%2018.6044%2022.597%2018.1117%2022.8078%2017.6715L18.313%2013.1766C18.2058%2013.2277%2018.0957%2013.273%2017.9835%2013.3126V22.6892C19.2926%2023.1525%2020.2313%2024.4004%2020.2313%2025.8685C20.2313%2027.7308%2018.7215%2029.2405%2016.8593%2029.2405C14.997%2029.2405%2013.4872%2027.7308%2013.4872%2025.8685C13.4872%2024.4004%2014.4259%2023.1525%2015.735%2022.6892V13.3126C14.4259%2012.8494%2013.4872%2011.6014%2013.4872%2010.1333C13.4872%209.61255%2013.6052%209.11984%2013.8159%208.67963L11.0704%205.9341L0.678111%2016.3257C-0.226037%2017.2313%20-0.226037%2018.6979%200.678111%2019.6021L16.3817%2035.3042C17.2858%2036.2083%2018.7517%2036.2083%2019.6573%2035.3042L35.2868%2019.6747C36.1916%2018.7698%2036.1916%2017.3025%2035.2868%2016.3983Z'%20fill='%23F74E27'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5084_286'%3e%3crect%20width='36'%20height='36'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
20882
20741
|
const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20883
20742
|
__proto__: null,
|
|
20884
20743
|
default: logoGit
|
|
20885
20744
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20886
|
-
const logoGitee = "data:image/svg+xml
|
|
20745
|
+
const logoGitee = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1698805664755'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6116'%20width='128'%20height='128'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M512%20512m-494.933333%200a494.933333%20494.933333%200%201%200%20989.866666%200%20494.933333%20494.933333%200%201%200-989.866666%200Z'%20fill='%23C71D23'%20p-id='6117'%3e%3c/path%3e%3cpath%20d='M762.538667%20457.045333h-281.088a24.4736%2024.4736%200%200%200-24.439467%2024.405334v61.098666c-0.034133%2013.5168%2010.922667%2024.439467%2024.405333%2024.439467h171.1104c13.5168%200%2024.439467%2010.922667%2024.439467%2024.439467v12.219733a73.3184%2073.3184%200%200%201-73.3184%2073.3184h-232.209067a24.439467%2024.439467%200%200%201-24.439466-24.439467v-232.174933a73.3184%2073.3184%200%200%201%2073.3184-73.3184h342.152533c13.482667%200%2024.405333-10.922667%2024.439467-24.439467l0.034133-61.098666a24.405333%2024.405333%200%200%200-24.405333-24.439467H420.352a183.296%20183.296%200%200%200-183.296%20183.296V762.538667c0%2013.482667%2010.922667%2024.439467%2024.405333%2024.439466h360.516267a164.9664%20164.9664%200%200%200%20165.000533-165.000533v-140.526933a24.439467%2024.439467%200%200%200-24.439466-24.439467z'%20fill='%23FFFFFF'%20p-id='6118'%3e%3c/path%3e%3c/svg%3e";
|
|
20887
20746
|
const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20888
20747
|
__proto__: null,
|
|
20889
20748
|
default: logoGitee
|
|
20890
20749
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20891
|
-
const logoGithubWhite = "data:image/svg+xml
|
|
20750
|
+
const logoGithubWhite = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1728468092548'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='27599'%20id='mx_n_1728468092549'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M533.312%2032A490.496%20490.496%200%200%200%2042.688%20522.688a490.24%20490.24%200%200%200%20335.488%20465.472c24.512%204.288%2033.664-10.432%2033.664-23.296%200-11.648-0.576-50.24-0.576-91.392-123.264%2022.72-155.136-30.08-164.928-57.6-5.568-14.08-29.44-57.664-50.368-69.312-17.152-9.216-41.664-31.936-0.64-32.512%2038.72-0.64%2066.304%2035.584%2075.52%2050.304%2044.16%2074.24%20114.688%2053.312%20142.912%2040.448%204.224-31.872%2017.152-53.376%2031.232-65.664-109.184-12.224-223.232-54.528-223.232-242.24%200-53.312%2019.008-97.472%2050.304-131.84-4.928-12.288-22.08-62.592%204.864-130.048%200%200%2041.088-12.864%20134.976%2050.304a454.72%20454.72%200%200%201%20122.688-16.576c41.664%200%2083.392%205.568%20122.624%2016.576%2093.888-63.808%20134.912-50.304%20134.912-50.304%2027.008%2067.456%209.856%20117.76%204.928%20130.048%2031.296%2034.368%2050.304%2077.888%2050.304%20131.84%200%20188.288-114.688%20229.952-223.872%20242.24%2017.792%2015.36%2033.088%2044.8%2033.088%2090.816%200%2065.6-0.576%20118.4-0.576%20134.912%200%2012.864%209.216%2028.224%2033.728%2023.36A491.456%20491.456%200%200%200%201024%20522.688%20490.496%20490.496%200%200%200%20533.312%2032z'%20p-id='27600'%20fill='%23f0f6fc'%3e%3c/path%3e%3c/svg%3e";
|
|
20892
20751
|
const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20893
20752
|
__proto__: null,
|
|
20894
20753
|
default: logoGithubWhite
|
|
20895
20754
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20896
|
-
const logoGithub = "data:image/svg+xml
|
|
20755
|
+
const logoGithub = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/github%3c/title%3e%3cg%20id='ic/github'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M15.011998,0.5%20C6.987238,0.5%200.5,7.03506277%200.5,15.1198266%20C0.5,21.5824096%204.65659697,27.0528512%2010.4228987,28.9890121%20C11.143835,29.1345657%2011.4079109,28.6744379%2011.4079109,28.287384%20C11.4079109,27.9484518%2011.3841471,26.7866959%2011.3841471,25.5762241%20C7.34726055,26.4477638%206.50661383,23.8334416%206.50661383,23.8334416%20C5.85786033,22.1390781%204.89661201,21.7036053%204.89661201,21.7036053%20C3.57534113,20.8080046%204.99285566,20.8080046%204.99285566,20.8080046%20C6.45849201,20.9048424%207.22755008,22.3086927%207.22755008,22.3086927%20C8.52476004,24.5353668%2010.615089,23.9062185%2011.4560327,23.5188675%20C11.5760403,22.574848%2011.9607178,21.9213417%2012.3691592,21.5583486%20C9.14945263,21.2194165%205.76191373,19.9608228%205.76191373,14.3451246%20C5.76191373,12.7475988%206.33818744,11.4405862%207.25131394,10.4240869%20C7.10724551,10.0610939%206.60256044,8.56010879%207.39567942,6.55117108%20C7.39567942,6.55117108%208.62100369,6.16382009%2011.38385,8.05185913%20C12.5667228,7.73183788%2013.7866003,7.56904106%2015.011998,7.56767039%20C16.2373223,7.56767039%2017.4864104,7.73728497%2018.639849,8.05185913%20C21.4029924,6.16382009%2022.6283166,6.55117108%2022.6283166,6.55117108%20C23.4214356,8.56010879%2022.9164535,10.0610939%2022.7723851,10.4240869%20C23.7095725,11.4405862%2024.2620823,12.7475988%2024.2620823,14.3451246%20C24.2620823,19.9608228%2020.8745434,21.1950586%2017.6307759,21.5583486%20C18.1595219,22.0181794%2018.6157881,22.8894221%2018.6157881,24.2692115%20C18.6157881,26.2297303%2018.5920242,27.8031952%2018.5920242,28.2870869%20C18.5920242,28.6744379%2018.8563972,29.1345657%2019.5770364,28.9893091%20C25.3433382,27.0525541%2029.5,21.5824096%2029.5,15.1198266%20C29.523699,7.03506277%2023.0126972,0.5%2015.011998,0.5%20Z'%20id='路径'%20fill='%23000000'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
|
|
20897
20756
|
const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20898
20757
|
__proto__: null,
|
|
20899
20758
|
default: logoGithub
|
|
20900
20759
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20901
|
-
const logoGitlab = "data:image/svg+xml
|
|
20760
|
+
const logoGitlab = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32.7772%2019.961L31.1173%2014.8526L27.8277%204.72768C27.6585%204.20676%2026.9215%204.20676%2026.7522%204.72768L23.4623%2014.8525H12.5381L9.24829%204.7276C9.07909%204.20668%208.34209%204.20668%208.17275%204.7276L4.88307%2014.8525L3.22333%2019.9611C3.14952%2020.1882%203.14952%2020.4328%203.22331%2020.66C3.29709%2020.8871%203.44089%2021.085%203.63409%2021.2254L17.9999%2031.6629L32.3658%2021.2255C32.7621%2020.9375%2032.928%2020.427%2032.7766%2019.9611'%20fill='%23FC6D26'/%3e%3cpath%20d='M18.0002%2031.6623L23.4623%2014.8516H12.5381L18.0002%2031.6623Z'%20fill='%23E24329'/%3e%3cpath%20d='M17.9997%2031.6627L12.5376%2014.8525H4.88281L17.9997%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M4.88321%2014.8525L3.22332%2019.9611C3.14952%2020.1882%203.14952%2020.4329%203.22332%2020.66C3.29712%2020.8871%203.44094%2021.085%203.63416%2021.2254L18%2031.663L4.88321%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M4.88281%2014.8516H12.5376L9.24781%204.72668C9.07861%204.20569%208.34155%204.20569%208.17235%204.72668L4.88281%2014.8516Z'%20fill='%23E24329'/%3e%3cpath%20d='M18.0001%2031.6627L23.4622%2014.8525H31.117L18.0001%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M31.1178%2014.8525L32.7777%2019.9611C32.8515%2020.1882%2032.8515%2020.4329%2032.7777%2020.66C32.7039%2020.8871%2032.5601%2021.085%2032.3668%2021.2254L18.001%2031.663L31.1178%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M31.1167%2014.8516H23.4619L26.7517%204.72668C26.921%204.20569%2027.658%204.20569%2027.8272%204.72668L31.1167%2014.8516Z'%20fill='%23E24329'/%3e%3c/svg%3e";
|
|
20902
20761
|
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20903
20762
|
__proto__: null,
|
|
20904
20763
|
default: logoGitlab
|
|
20905
20764
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20906
|
-
const logoHb = "data:image/svg+xml
|
|
20765
|
+
const logoHb = "data:image/svg+xml,%3csvg%20width='290'%20height='290'%20viewBox='0%200%20290%20290'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='290'%20height='290'%20rx='145'%20fill='%231B9F35'/%3e%3cpath%20d='M232.5%2069.5H57.5L70.9625%20227L145%20244.5L219.038%20227L232.5%2069.5Z'%20fill='white'/%3e%3cpath%20d='M95%2094.5H107.5V132H182.5V94.5H195V194.5H182.5V144.5H107.5V194.5H95V94.5Z'%20fill='%231B9F35'/%3e%3c/svg%3e";
|
|
20907
20766
|
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20908
20767
|
__proto__: null,
|
|
20909
20768
|
default: logoHb
|
|
20910
20769
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20911
|
-
const logoHuawei = "data:image/svg+xml
|
|
20770
|
+
const logoHuawei = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/huawei%3c/title%3e%3cg%20id='ic/huawei'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M12.9194306,20.1361906%20C12.9522465,20.1094691%2012.9663104,20.0639956%2012.9442769,20.026023%20C10.696858,15.2030265%207.89578843,10.6584961%204.59544868,6.48431642%20C4.59544868,6.48431642%201.97158481,8.9689472%202.15863532,11.4685795%20C2.25239497,12.6321368%202.79432576,13.7127168%203.67894808,14.4688884%20C5.96668359,16.6989617%2011.5064726,19.5131577%2012.7947303,20.1507233%20C12.8355157,20.1732256%2012.8866147,20.1657249%2012.918493,20.1319714%20M12.063405,22.0446683%20C12.0460594,21.9940381%2011.9987108,21.9602846%2011.944799,21.9602846%20L11.944799,21.9630974%20L2.72166203,22.2842242%20C3.72160872,24.0680016%205.40600087,25.4523628%207.16118156,25.0285692%20C8.37208746,24.7257255%2011.1164325,22.812091%2012.0198067,22.166087%20L12.0188691,22.1623366%20C12.0877825,22.0999865%2012.0629362,22.0498251%2012.0629362,22.0498251%20M12.2021693,21.2200521%20C12.2462363,21.1473884%2012.1674782,21.0850382%2012.1674782,21.0850382%20L12.1684158,21.0812879%20C8.11753001,18.3449124%200.26609674,14.1496368%200.26609674,14.1496368%20C-0.616650384,16.8789802%200.763022897,19.8258461%203.42579702,20.8947062%20C3.98885932,21.1184574%204.58444252,21.2495427%205.18941607,21.2828711%20C5.32818036,21.308655%2010.6743557,21.2856839%2012.1070032,21.2791207%20C12.1473199,21.2744327%2012.1829485,21.2509928%2012.2026381,21.2148954%20M12.8144198,2.5004688%20C12.4121909,2.53515987%2011.3283293,2.78174775%2011.3283293,2.78174775%20C9.89805781,3.14685934%208.75686554,4.2232051%208.3087997,5.62969719%20C8.05564864,6.58885843%208.06033662,7.59771229%208.32145725,8.55499833%20C9.13575983,12.1713081%2013.1477353,18.1152013%2014.0079802,19.3617358%20C14.0689239,19.4226796%2014.1190853,19.4001773%2014.1190853,19.4001773%20C14.1715907,19.3875197%2014.2072194,19.3392335%2014.2044066,19.2853217%20L14.2062818,19.2853217%20C15.5320433,6.01692455%2012.813951,2.5%2012.813951,2.5%20M15.8672341,19.3973645%20C15.9178643,19.4175228%2015.9750577,19.3964269%2016.0003728,19.3476719%20L16.0013104,19.3476719%20C16.8920271,18.066915%2020.8735307,12.1563066%2021.6840829,8.55593593%20C21.9262087,7.59665425%2021.9315179,6.59289287%2021.6995532,5.63110358%20C21.2459272,4.21775216%2020.0924075,3.14034133%2018.6514269,2.78409175%20C18.6514269,2.78409175%2017.9463543,2.60594841%2017.1990899,2.50140639%20C17.1990899,2.50140639%2014.4650585,6.02020614%2015.7945703,19.2970417%20L15.7964455,19.2970417%20C15.7969143,19.3420463%2015.8245734,19.3814254%2015.8667653,19.3978333%20M18.0499588,21.9630974%20C18.0499588,21.9630974%2017.9693255,21.9738797%2017.9468231,22.0334171%20C17.9360408,22.0788906%2017.9496359,22.1262392%2017.9824518,22.1590551%20L17.9815142,22.1590551%20C18.8637925,22.7919327%2021.544381,24.664313%2022.8307634,25.0271628%20C22.8307634,25.0271628%2025.2150714,25.8381838%2027.2862221,22.2818802%20L18.0508964,21.9598158%20L18.0499588,21.9630974%20Z%20M29.7417874,14.130416%20C29.7417874,14.130416%2021.9011365,18.3369428%2017.8465003,21.0723807%20L17.8474379,21.0723807%20C17.8005581,21.1028526%2017.7864941,21.1567644%2017.8005581,21.2073946%20C17.8005581,21.2073946%2017.8389995,21.2763079%2017.8961929,21.2763079%20L17.8961929,21.2781831%20L24.9750467,21.2594312%20C25.5196475,21.2167697%2026.0549049,21.0935404%2026.5633352,20.8937686%20C27.8878289,20.3744529%2028.9544544,19.3543123%2029.5322346,18.0542575%20C30.0748429,16.8146498%2030.147992,15.419985%2029.738037,14.130416%20M17.1020487,20.1310338%20C17.1383362,20.1579266%2017.1868481,20.1615741%2017.226749,20.1404097%20L17.226749,20.1422849%20C18.5478225,19.4831546%2024.0463573,16.6872418%2026.3233105,14.4684196%20C27.2074304,13.7013539%2027.7532431,12.616467%2027.8422168,11.4493588%20C28.0081714,8.87096836%2025.4082163,6.47775324%2025.4082163,6.47775324%20C22.1166286,10.6402706%2019.319781,15.171107%2017.0739208,19.9791431%20L17.0767336,19.9791431%20C17.0523501,20.0282718%2017.0623816,20.0875146%2017.1015799,20.125877'%20id='形状'%20fill='%23E12229'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
|
|
20912
20771
|
const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20913
20772
|
__proto__: null,
|
|
20914
20773
|
default: logoHuawei
|
|
20915
20774
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20916
|
-
const logoMobile = "data:image/svg+xml
|
|
20775
|
+
const logoMobile = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1693900534164'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6040'%20id='mx_n_1693900534166'%20width='64'%20height='64'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M290.133333%2034.133333h443.733334a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4z'%20fill='%23E4E9F0'%20p-id='6041'%3e%3c/path%3e%3cpath%20d='M733.866667%2034.133333a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4h443.733334zM614.4%20119.466667a34.133333%2034.133333%200%200%201-34.133333%2034.133333h-136.533334a34.133333%2034.133333%200%200%201-34.133333-34.133333v-34.133334H290.133333A51.2%2051.2%200%200%200%20238.933333%20136.533333v750.933334a51.2%2051.2%200%200%200%2051.2%2051.2h443.733334A51.2%2051.2%200%200%200%20785.066667%20887.466667V136.533333a51.2%2051.2%200%200%200-51.2-51.2H614.4v34.133334zM512%20750.933333a68.266667%2068.266667%200%201%201%200%20136.533334%2068.266667%2068.266667%200%200%201%200-136.533334z'%20fill='%23707A87'%20p-id='6042'%3e%3c/path%3e%3c/svg%3e";
|
|
20917
20776
|
const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20918
20777
|
__proto__: null,
|
|
20919
20778
|
default: logoMobile
|
|
20920
20779
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20921
|
-
const logoWechat = "data:image/svg+xml
|
|
20780
|
+
const logoWechat = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1532_182)'%3e%3cpath%20d='M5.27165%205.34104C4.99419%205.34104%204.71674%205.52601%204.71674%205.80347C4.71674%206.08093%204.99419%206.2659%205.27165%206.2659C5.54911%206.2659%205.73408%206.08093%205.73408%205.80347C5.73408%205.51445%205.54911%205.34104%205.27165%205.34104ZM9.02887%208.02312C8.8439%208.02312%208.67049%208.21965%208.67049%208.39306C8.67049%208.5896%208.85546%208.76301%209.02887%208.76301C9.30633%208.76301%209.4913%208.57804%209.4913%208.39306C9.4913%208.20809%209.30633%208.02312%209.02887%208.02312ZM7.83812%206.2659C8.11558%206.2659%208.30055%206.06937%208.30055%205.80347C8.30055%205.52601%208.11558%205.34104%207.83812%205.34104C7.56067%205.34104%207.28321%205.52601%207.28321%205.80347C7.28321%206.08093%207.56067%206.2659%207.83812%206.2659ZM11.0404%208.02312C10.8555%208.02312%2010.6821%208.21965%2010.6821%208.39306C10.6821%208.5896%2010.867%208.76301%2011.0404%208.76301C11.3179%208.76301%2011.5029%208.57804%2011.5029%208.39306C11.5029%208.20809%2011.3179%208.02312%2011.0404%208.02312Z'%20fill='%2328C445'/%3e%3cpath%20d='M7.97688%200.0462418C3.57225%200.0462418%200%203.6185%200%208.02312C0%2012.4277%203.57225%2016%207.97688%2016C12.3815%2016%2015.9538%2012.4277%2015.9538%208.02312C15.9538%203.6185%2012.3815%200.0462418%207.97688%200.0462418ZM6.46243%2010.0694C6%2010.0694%205.63006%209.97688%205.19075%209.87283L3.91908%2010.5202L4.27746%209.39884C3.36416%208.75144%202.80925%207.90751%202.80925%206.90173C2.80925%205.13295%204.46243%203.74566%206.46243%203.74566C8.25434%203.74566%209.83815%204.85549%2010.1503%206.34682C10.0347%206.33526%209.91908%206.3237%209.80347%206.3237C8.06936%206.34682%206.7052%207.65318%206.7052%209.27168C6.7052%209.53757%206.75145%209.79191%206.82081%2010.0462C6.7052%2010.0578%206.57803%2010.0694%206.46243%2010.0694ZM11.8728%2011.3642L12.1503%2012.289L11.1561%2011.7341C10.7977%2011.8266%2010.4277%2011.9191%2010.0578%2011.9191C8.31214%2011.9191%206.93642%2010.7168%206.93642%209.22543C6.92486%207.74566%208.30058%206.54335%2010.0347%206.54335C11.6879%206.54335%2013.1445%207.75722%2013.1445%209.23699C13.1445%2010.0694%2012.6012%2010.8092%2011.8728%2011.3642Z'%20fill='%2328C445'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1532_182'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
20922
20781
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20923
20782
|
__proto__: null,
|
|
20924
20783
|
default: logoWechat
|
|
@@ -21053,7 +20912,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
21053
20912
|
};
|
|
21054
20913
|
}
|
|
21055
20914
|
});
|
|
21056
|
-
const inputButton_vue_vue_type_style_index_0_lang = "";
|
|
21057
20915
|
const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
|
|
21058
20916
|
const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
|
|
21059
20917
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
@@ -21140,7 +20998,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
21140
20998
|
};
|
|
21141
20999
|
}
|
|
21142
21000
|
});
|
|
21143
|
-
const inputSelect_vue_vue_type_style_index_0_lang = "";
|
|
21144
21001
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
21145
21002
|
__name: "index",
|
|
21146
21003
|
props: {
|
|
@@ -21429,7 +21286,6 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
21429
21286
|
};
|
|
21430
21287
|
}
|
|
21431
21288
|
});
|
|
21432
|
-
const index_vue_vue_type_style_index_0_lang = "";
|
|
21433
21289
|
const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
|
|
21434
21290
|
const _hoisted_2$5 = { class: "icons" };
|
|
21435
21291
|
const _hoisted_3$3 = ["src", "alt", "onClick"];
|
|
@@ -21476,8 +21332,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
21476
21332
|
};
|
|
21477
21333
|
}
|
|
21478
21334
|
});
|
|
21479
|
-
const
|
|
21480
|
-
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f0a207bc"]]);
|
|
21335
|
+
const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
21481
21336
|
const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
|
|
21482
21337
|
const _hoisted_2$4 = { class: "text-[var(--theme-placeholder)]" };
|
|
21483
21338
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
@@ -21560,7 +21415,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
21560
21415
|
};
|
|
21561
21416
|
}
|
|
21562
21417
|
});
|
|
21563
|
-
const agreements_vue_vue_type_style_index_0_lang = "";
|
|
21564
21418
|
const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
|
|
21565
21419
|
const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
|
|
21566
21420
|
const _hoisted_3$2 = ["src"];
|
|
@@ -21593,8 +21447,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
21593
21447
|
};
|
|
21594
21448
|
}
|
|
21595
21449
|
});
|
|
21596
|
-
const
|
|
21597
|
-
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-94e64b6d"]]);
|
|
21450
|
+
const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
21598
21451
|
const FindFileName = (path) => {
|
|
21599
21452
|
var _a;
|
|
21600
21453
|
const isName = /.*\/.*\/(.*\..*)/;
|
|
@@ -21605,7 +21458,7 @@ const TransAssetsUrl = (source, key, path) => {
|
|
|
21605
21458
|
if (key) {
|
|
21606
21459
|
let target = "";
|
|
21607
21460
|
target = Object.keys(source).find((pathName) => {
|
|
21608
|
-
const p =
|
|
21461
|
+
const p = key;
|
|
21609
21462
|
return p === FindFileName(pathName);
|
|
21610
21463
|
});
|
|
21611
21464
|
if (target) {
|
|
@@ -21637,14 +21490,10 @@ function compare(a, b) {
|
|
|
21637
21490
|
for (var i = 0; i < 3; i++) {
|
|
21638
21491
|
var na = Number(pa[i]);
|
|
21639
21492
|
var nb = Number(pb[i]);
|
|
21640
|
-
if (na > nb)
|
|
21641
|
-
|
|
21642
|
-
if (nb
|
|
21643
|
-
|
|
21644
|
-
if (!isNaN(na) && isNaN(nb))
|
|
21645
|
-
return 1;
|
|
21646
|
-
if (isNaN(na) && !isNaN(nb))
|
|
21647
|
-
return -1;
|
|
21493
|
+
if (na > nb) return 1;
|
|
21494
|
+
if (nb > na) return -1;
|
|
21495
|
+
if (!isNaN(na) && isNaN(nb)) return 1;
|
|
21496
|
+
if (isNaN(na) && !isNaN(nb)) return -1;
|
|
21648
21497
|
}
|
|
21649
21498
|
if (a[1] && b[1]) {
|
|
21650
21499
|
return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;
|
|
@@ -21668,21 +21517,17 @@ function _classCallCheck$2(instance, Constructor) {
|
|
|
21668
21517
|
throw new TypeError("Cannot call a class as a function");
|
|
21669
21518
|
}
|
|
21670
21519
|
}
|
|
21671
|
-
function _defineProperties$
|
|
21520
|
+
function _defineProperties$1(target, props) {
|
|
21672
21521
|
for (var i = 0; i < props.length; i++) {
|
|
21673
21522
|
var descriptor = props[i];
|
|
21674
21523
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
21675
21524
|
descriptor.configurable = true;
|
|
21676
|
-
if ("value" in descriptor)
|
|
21677
|
-
descriptor.writable = true;
|
|
21525
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
21678
21526
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
21679
21527
|
}
|
|
21680
21528
|
}
|
|
21681
21529
|
function _createClass$2(Constructor, protoProps, staticProps) {
|
|
21682
|
-
if (protoProps)
|
|
21683
|
-
_defineProperties$2(Constructor.prototype, protoProps);
|
|
21684
|
-
if (staticProps)
|
|
21685
|
-
_defineProperties$2(Constructor, staticProps);
|
|
21530
|
+
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
21686
21531
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
21687
21532
|
return Constructor;
|
|
21688
21533
|
}
|
|
@@ -21712,8 +21557,7 @@ var Metadata = /* @__PURE__ */ function() {
|
|
|
21712
21557
|
}, {
|
|
21713
21558
|
key: "nonGeographic",
|
|
21714
21559
|
value: function nonGeographic() {
|
|
21715
|
-
if (this.v1 || this.v2 || this.v3)
|
|
21716
|
-
return;
|
|
21560
|
+
if (this.v1 || this.v2 || this.v3) return;
|
|
21717
21561
|
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
|
21718
21562
|
}
|
|
21719
21563
|
}, {
|
|
@@ -21888,8 +21732,7 @@ var Metadata = /* @__PURE__ */ function() {
|
|
|
21888
21732
|
}, {
|
|
21889
21733
|
key: "countryCallingCodes",
|
|
21890
21734
|
value: function countryCallingCodes() {
|
|
21891
|
-
if (this.v1)
|
|
21892
|
-
return this.metadata.country_phone_code_to_countries;
|
|
21735
|
+
if (this.v1) return this.metadata.country_phone_code_to_countries;
|
|
21893
21736
|
return this.metadata.country_calling_codes;
|
|
21894
21737
|
}
|
|
21895
21738
|
// Deprecated.
|
|
@@ -21933,31 +21776,27 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
21933
21776
|
}, {
|
|
21934
21777
|
key: "IDDPrefix",
|
|
21935
21778
|
value: function IDDPrefix() {
|
|
21936
|
-
if (this.v1 || this.v2)
|
|
21937
|
-
return;
|
|
21779
|
+
if (this.v1 || this.v2) return;
|
|
21938
21780
|
return this.metadata[1];
|
|
21939
21781
|
}
|
|
21940
21782
|
// Is only present when a country supports multiple IDD prefixes.
|
|
21941
21783
|
}, {
|
|
21942
21784
|
key: "defaultIDDPrefix",
|
|
21943
21785
|
value: function defaultIDDPrefix() {
|
|
21944
|
-
if (this.v1 || this.v2)
|
|
21945
|
-
return;
|
|
21786
|
+
if (this.v1 || this.v2) return;
|
|
21946
21787
|
return this.metadata[12];
|
|
21947
21788
|
}
|
|
21948
21789
|
}, {
|
|
21949
21790
|
key: "nationalNumberPattern",
|
|
21950
21791
|
value: function nationalNumberPattern() {
|
|
21951
|
-
if (this.v1 || this.v2)
|
|
21952
|
-
return this.metadata[1];
|
|
21792
|
+
if (this.v1 || this.v2) return this.metadata[1];
|
|
21953
21793
|
return this.metadata[2];
|
|
21954
21794
|
}
|
|
21955
21795
|
// "possible length" data is always present in Google's metadata.
|
|
21956
21796
|
}, {
|
|
21957
21797
|
key: "possibleLengths",
|
|
21958
21798
|
value: function possibleLengths() {
|
|
21959
|
-
if (this.v1)
|
|
21960
|
-
return;
|
|
21799
|
+
if (this.v1) return;
|
|
21961
21800
|
return this.metadata[this.v2 ? 2 : 3];
|
|
21962
21801
|
}
|
|
21963
21802
|
}, {
|
|
@@ -22052,8 +21891,7 @@ var NumberingPlan = /* @__PURE__ */ function() {
|
|
|
22052
21891
|
}, {
|
|
22053
21892
|
key: "ext",
|
|
22054
21893
|
value: function ext() {
|
|
22055
|
-
if (this.v1 || this.v2)
|
|
22056
|
-
return DEFAULT_EXT_PREFIX;
|
|
21894
|
+
if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;
|
|
22057
21895
|
return this.metadata[13] || DEFAULT_EXT_PREFIX;
|
|
22058
21896
|
}
|
|
22059
21897
|
}]);
|
|
@@ -22120,15 +21958,13 @@ var Type = /* @__PURE__ */ function() {
|
|
|
22120
21958
|
_createClass$2(Type2, [{
|
|
22121
21959
|
key: "pattern",
|
|
22122
21960
|
value: function pattern() {
|
|
22123
|
-
if (this.metadata.v1)
|
|
22124
|
-
return this.type;
|
|
21961
|
+
if (this.metadata.v1) return this.type;
|
|
22125
21962
|
return this.type[0];
|
|
22126
21963
|
}
|
|
22127
21964
|
}, {
|
|
22128
21965
|
key: "possibleLengths",
|
|
22129
21966
|
value: function possibleLengths() {
|
|
22130
|
-
if (this.metadata.v1)
|
|
22131
|
-
return;
|
|
21967
|
+
if (this.metadata.v1) return;
|
|
22132
21968
|
return this.type[1] || this.metadata.possibleLengths();
|
|
22133
21969
|
}
|
|
22134
21970
|
}]);
|
|
@@ -22198,55 +22034,6 @@ function setVersion(metadata2) {
|
|
|
22198
22034
|
}
|
|
22199
22035
|
}
|
|
22200
22036
|
}
|
|
22201
|
-
function _createForOfIteratorHelperLoose$4(o, allowArrayLike) {
|
|
22202
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
22203
|
-
if (it)
|
|
22204
|
-
return (it = it.call(o)).next.bind(it);
|
|
22205
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
22206
|
-
if (it)
|
|
22207
|
-
o = it;
|
|
22208
|
-
var i = 0;
|
|
22209
|
-
return function() {
|
|
22210
|
-
if (i >= o.length)
|
|
22211
|
-
return { done: true };
|
|
22212
|
-
return { done: false, value: o[i++] };
|
|
22213
|
-
};
|
|
22214
|
-
}
|
|
22215
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22216
|
-
}
|
|
22217
|
-
function _unsupportedIterableToArray$5(o, minLen) {
|
|
22218
|
-
if (!o)
|
|
22219
|
-
return;
|
|
22220
|
-
if (typeof o === "string")
|
|
22221
|
-
return _arrayLikeToArray$5(o, minLen);
|
|
22222
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22223
|
-
if (n === "Object" && o.constructor)
|
|
22224
|
-
n = o.constructor.name;
|
|
22225
|
-
if (n === "Map" || n === "Set")
|
|
22226
|
-
return Array.from(o);
|
|
22227
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22228
|
-
return _arrayLikeToArray$5(o, minLen);
|
|
22229
|
-
}
|
|
22230
|
-
function _arrayLikeToArray$5(arr, len) {
|
|
22231
|
-
if (len == null || len > arr.length)
|
|
22232
|
-
len = arr.length;
|
|
22233
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
22234
|
-
arr2[i] = arr[i];
|
|
22235
|
-
}
|
|
22236
|
-
return arr2;
|
|
22237
|
-
}
|
|
22238
|
-
function mergeArrays(a, b) {
|
|
22239
|
-
var merged = a.slice();
|
|
22240
|
-
for (var _iterator = _createForOfIteratorHelperLoose$4(b), _step; !(_step = _iterator()).done; ) {
|
|
22241
|
-
var element = _step.value;
|
|
22242
|
-
if (a.indexOf(element) < 0) {
|
|
22243
|
-
merged.push(element);
|
|
22244
|
-
}
|
|
22245
|
-
}
|
|
22246
|
-
return merged.sort(function(a2, b2) {
|
|
22247
|
-
return a2 - b2;
|
|
22248
|
-
});
|
|
22249
|
-
}
|
|
22250
22037
|
function checkNumberLength(nationalNumber, metadata2) {
|
|
22251
22038
|
return checkNumberLengthForType(nationalNumber, void 0, metadata2);
|
|
22252
22039
|
}
|
|
@@ -22256,17 +22043,6 @@ function checkNumberLengthForType(nationalNumber, type, metadata2) {
|
|
|
22256
22043
|
if (!possible_lengths) {
|
|
22257
22044
|
return "IS_POSSIBLE";
|
|
22258
22045
|
}
|
|
22259
|
-
if (type === "FIXED_LINE_OR_MOBILE") {
|
|
22260
|
-
if (!metadata2.type("FIXED_LINE")) {
|
|
22261
|
-
return checkNumberLengthForType(nationalNumber, "MOBILE", metadata2);
|
|
22262
|
-
}
|
|
22263
|
-
var mobile_type = metadata2.type("MOBILE");
|
|
22264
|
-
if (mobile_type) {
|
|
22265
|
-
possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
|
|
22266
|
-
}
|
|
22267
|
-
} else if (type && !type_info) {
|
|
22268
|
-
return "INVALID_LENGTH";
|
|
22269
|
-
}
|
|
22270
22046
|
var actual_length = nationalNumber.length;
|
|
22271
22047
|
var minimum_length = possible_lengths[0];
|
|
22272
22048
|
if (minimum_length === actual_length) {
|
|
@@ -22330,36 +22106,27 @@ function matchesEntirely(text2, regular_expression) {
|
|
|
22330
22106
|
}
|
|
22331
22107
|
function _createForOfIteratorHelperLoose$3(o, allowArrayLike) {
|
|
22332
22108
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
22333
|
-
if (it)
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
if (it)
|
|
22337
|
-
o = it;
|
|
22109
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
22110
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike) {
|
|
22111
|
+
if (it) o = it;
|
|
22338
22112
|
var i = 0;
|
|
22339
22113
|
return function() {
|
|
22340
|
-
if (i >= o.length)
|
|
22341
|
-
return { done: true };
|
|
22114
|
+
if (i >= o.length) return { done: true };
|
|
22342
22115
|
return { done: false, value: o[i++] };
|
|
22343
22116
|
};
|
|
22344
22117
|
}
|
|
22345
22118
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22346
22119
|
}
|
|
22347
22120
|
function _unsupportedIterableToArray$4(o, minLen) {
|
|
22348
|
-
if (!o)
|
|
22349
|
-
|
|
22350
|
-
if (typeof o === "string")
|
|
22351
|
-
return _arrayLikeToArray$4(o, minLen);
|
|
22121
|
+
if (!o) return;
|
|
22122
|
+
if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
|
|
22352
22123
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22353
|
-
if (n === "Object" && o.constructor)
|
|
22354
|
-
|
|
22355
|
-
if (n === "
|
|
22356
|
-
return Array.from(o);
|
|
22357
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22358
|
-
return _arrayLikeToArray$4(o, minLen);
|
|
22124
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22125
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
22126
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
|
|
22359
22127
|
}
|
|
22360
22128
|
function _arrayLikeToArray$4(arr, len) {
|
|
22361
|
-
if (len == null || len > arr.length)
|
|
22362
|
-
len = arr.length;
|
|
22129
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
22363
22130
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
22364
22131
|
arr2[i] = arr[i];
|
|
22365
22132
|
}
|
|
@@ -22616,8 +22383,6 @@ function applyInternationalSeparatorStyle(formattedNumber) {
|
|
|
22616
22383
|
var FIRST_GROUP_PATTERN = /(\$\d)/;
|
|
22617
22384
|
function formatNationalNumberUsingFormat(number2, format2, _ref2) {
|
|
22618
22385
|
var useInternationalFormat = _ref2.useInternationalFormat, withNationalPrefix = _ref2.withNationalPrefix;
|
|
22619
|
-
_ref2.carrierCode;
|
|
22620
|
-
_ref2.metadata;
|
|
22621
22386
|
var formattedNumber = number2.replace(new RegExp(format2.pattern()), useInternationalFormat ? format2.internationalFormat() : (
|
|
22622
22387
|
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
22623
22388
|
// because that one is only used when formatting phone numbers
|
|
@@ -22703,36 +22468,27 @@ function formatRFC3966(_ref2) {
|
|
|
22703
22468
|
}
|
|
22704
22469
|
function _createForOfIteratorHelperLoose$2(o, allowArrayLike) {
|
|
22705
22470
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
22706
|
-
if (it)
|
|
22707
|
-
|
|
22708
|
-
|
|
22709
|
-
if (it)
|
|
22710
|
-
o = it;
|
|
22471
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
22472
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) {
|
|
22473
|
+
if (it) o = it;
|
|
22711
22474
|
var i = 0;
|
|
22712
22475
|
return function() {
|
|
22713
|
-
if (i >= o.length)
|
|
22714
|
-
return { done: true };
|
|
22476
|
+
if (i >= o.length) return { done: true };
|
|
22715
22477
|
return { done: false, value: o[i++] };
|
|
22716
22478
|
};
|
|
22717
22479
|
}
|
|
22718
22480
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22719
22481
|
}
|
|
22720
22482
|
function _unsupportedIterableToArray$3(o, minLen) {
|
|
22721
|
-
if (!o)
|
|
22722
|
-
|
|
22723
|
-
if (typeof o === "string")
|
|
22724
|
-
return _arrayLikeToArray$3(o, minLen);
|
|
22483
|
+
if (!o) return;
|
|
22484
|
+
if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
|
|
22725
22485
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22726
|
-
if (n === "Object" && o.constructor)
|
|
22727
|
-
|
|
22728
|
-
if (n === "
|
|
22729
|
-
return Array.from(o);
|
|
22730
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
22731
|
-
return _arrayLikeToArray$3(o, minLen);
|
|
22486
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
22487
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
22488
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
|
|
22732
22489
|
}
|
|
22733
22490
|
function _arrayLikeToArray$3(arr, len) {
|
|
22734
|
-
if (len == null || len > arr.length)
|
|
22735
|
-
len = arr.length;
|
|
22491
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
22736
22492
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
22737
22493
|
arr2[i] = arr[i];
|
|
22738
22494
|
}
|
|
@@ -22786,8 +22542,7 @@ function formatNumber(input, format2, options, metadata2) {
|
|
|
22786
22542
|
metadata2.country(input.country);
|
|
22787
22543
|
} else if (input.countryCallingCode) {
|
|
22788
22544
|
metadata2.selectNumberingPlan(input.countryCallingCode);
|
|
22789
|
-
} else
|
|
22790
|
-
return input.phone || "";
|
|
22545
|
+
} else return input.phone || "";
|
|
22791
22546
|
var countryCallingCode = metadata2.countryCallingCode();
|
|
22792
22547
|
var nationalNumber = options.v2 ? input.nationalNumber : input.phone;
|
|
22793
22548
|
var number2;
|
|
@@ -22829,9 +22584,7 @@ function formatNationalNumber(number2, carrierCode, formatAs, metadata2, options
|
|
|
22829
22584
|
}
|
|
22830
22585
|
return formatNationalNumberUsingFormat(number2, format2, {
|
|
22831
22586
|
useInternationalFormat: formatAs === "INTERNATIONAL",
|
|
22832
|
-
withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true
|
|
22833
|
-
carrierCode,
|
|
22834
|
-
metadata: metadata2
|
|
22587
|
+
withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true
|
|
22835
22588
|
});
|
|
22836
22589
|
}
|
|
22837
22590
|
function chooseFormatForNumber(availableFormats, nationalNnumber) {
|
|
@@ -22899,21 +22652,17 @@ function _classCallCheck$1(instance, Constructor) {
|
|
|
22899
22652
|
throw new TypeError("Cannot call a class as a function");
|
|
22900
22653
|
}
|
|
22901
22654
|
}
|
|
22902
|
-
function _defineProperties
|
|
22655
|
+
function _defineProperties(target, props) {
|
|
22903
22656
|
for (var i = 0; i < props.length; i++) {
|
|
22904
22657
|
var descriptor = props[i];
|
|
22905
22658
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
22906
22659
|
descriptor.configurable = true;
|
|
22907
|
-
if ("value" in descriptor)
|
|
22908
|
-
descriptor.writable = true;
|
|
22660
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22909
22661
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22910
22662
|
}
|
|
22911
22663
|
}
|
|
22912
22664
|
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
22913
|
-
if (protoProps)
|
|
22914
|
-
_defineProperties$1(Constructor.prototype, protoProps);
|
|
22915
|
-
if (staticProps)
|
|
22916
|
-
_defineProperties$1(Constructor, staticProps);
|
|
22665
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
22917
22666
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
22918
22667
|
return Constructor;
|
|
22919
22668
|
}
|
|
@@ -23074,21 +22823,7 @@ function _typeof(obj) {
|
|
|
23074
22823
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
23075
22824
|
}, _typeof(obj);
|
|
23076
22825
|
}
|
|
23077
|
-
function _defineProperties(target, props) {
|
|
23078
|
-
for (var i = 0; i < props.length; i++) {
|
|
23079
|
-
var descriptor = props[i];
|
|
23080
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
23081
|
-
descriptor.configurable = true;
|
|
23082
|
-
if ("value" in descriptor)
|
|
23083
|
-
descriptor.writable = true;
|
|
23084
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23085
|
-
}
|
|
23086
|
-
}
|
|
23087
22826
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
23088
|
-
if (protoProps)
|
|
23089
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
23090
|
-
if (staticProps)
|
|
23091
|
-
_defineProperties(Constructor, staticProps);
|
|
23092
22827
|
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
23093
22828
|
return Constructor;
|
|
23094
22829
|
}
|
|
@@ -23103,8 +22838,7 @@ function _inherits(subClass, superClass) {
|
|
|
23103
22838
|
}
|
|
23104
22839
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
23105
22840
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
23106
|
-
if (superClass)
|
|
23107
|
-
_setPrototypeOf(subClass, superClass);
|
|
22841
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
23108
22842
|
}
|
|
23109
22843
|
function _createSuper(Derived) {
|
|
23110
22844
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
@@ -23136,14 +22870,12 @@ function _assertThisInitialized(self2) {
|
|
|
23136
22870
|
function _wrapNativeSuper(Class) {
|
|
23137
22871
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
23138
22872
|
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
23139
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
23140
|
-
return Class2;
|
|
22873
|
+
if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
|
|
23141
22874
|
if (typeof Class2 !== "function") {
|
|
23142
22875
|
throw new TypeError("Super expression must either be null or a function");
|
|
23143
22876
|
}
|
|
23144
22877
|
if (typeof _cache !== "undefined") {
|
|
23145
|
-
if (_cache.has(Class2))
|
|
23146
|
-
return _cache.get(Class2);
|
|
22878
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
23147
22879
|
_cache.set(Class2, Wrapper);
|
|
23148
22880
|
}
|
|
23149
22881
|
function Wrapper() {
|
|
@@ -23163,20 +22895,16 @@ function _construct(Parent, args, Class) {
|
|
|
23163
22895
|
a.push.apply(a, args2);
|
|
23164
22896
|
var Constructor = Function.bind.apply(Parent2, a);
|
|
23165
22897
|
var instance = new Constructor();
|
|
23166
|
-
if (Class2)
|
|
23167
|
-
_setPrototypeOf(instance, Class2.prototype);
|
|
22898
|
+
if (Class2) _setPrototypeOf(instance, Class2.prototype);
|
|
23168
22899
|
return instance;
|
|
23169
22900
|
};
|
|
23170
22901
|
}
|
|
23171
22902
|
return _construct.apply(null, arguments);
|
|
23172
22903
|
}
|
|
23173
22904
|
function _isNativeReflectConstruct() {
|
|
23174
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
23175
|
-
|
|
23176
|
-
if (
|
|
23177
|
-
return false;
|
|
23178
|
-
if (typeof Proxy === "function")
|
|
23179
|
-
return true;
|
|
22905
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
22906
|
+
if (Reflect.construct.sham) return false;
|
|
22907
|
+
if (typeof Proxy === "function") return true;
|
|
23180
22908
|
try {
|
|
23181
22909
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
23182
22910
|
}));
|
|
@@ -23310,36 +23038,27 @@ function parseDigit(character) {
|
|
|
23310
23038
|
}
|
|
23311
23039
|
function _createForOfIteratorHelperLoose$1(o, allowArrayLike) {
|
|
23312
23040
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
23313
|
-
if (it)
|
|
23314
|
-
|
|
23315
|
-
|
|
23316
|
-
if (it)
|
|
23317
|
-
o = it;
|
|
23041
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
23042
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike) {
|
|
23043
|
+
if (it) o = it;
|
|
23318
23044
|
var i = 0;
|
|
23319
23045
|
return function() {
|
|
23320
|
-
if (i >= o.length)
|
|
23321
|
-
return { done: true };
|
|
23046
|
+
if (i >= o.length) return { done: true };
|
|
23322
23047
|
return { done: false, value: o[i++] };
|
|
23323
23048
|
};
|
|
23324
23049
|
}
|
|
23325
23050
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23326
23051
|
}
|
|
23327
23052
|
function _unsupportedIterableToArray$2(o, minLen) {
|
|
23328
|
-
if (!o)
|
|
23329
|
-
|
|
23330
|
-
if (typeof o === "string")
|
|
23331
|
-
return _arrayLikeToArray$2(o, minLen);
|
|
23053
|
+
if (!o) return;
|
|
23054
|
+
if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
|
|
23332
23055
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23333
|
-
if (n === "Object" && o.constructor)
|
|
23334
|
-
|
|
23335
|
-
if (n === "
|
|
23336
|
-
return Array.from(o);
|
|
23337
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
23338
|
-
return _arrayLikeToArray$2(o, minLen);
|
|
23056
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23057
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
23058
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
|
|
23339
23059
|
}
|
|
23340
23060
|
function _arrayLikeToArray$2(arr, len) {
|
|
23341
|
-
if (len == null || len > arr.length)
|
|
23342
|
-
len = arr.length;
|
|
23061
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
23343
23062
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
23344
23063
|
arr2[i] = arr[i];
|
|
23345
23064
|
}
|
|
@@ -23356,9 +23075,6 @@ function parseIncompletePhoneNumber(string) {
|
|
|
23356
23075
|
function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2) {
|
|
23357
23076
|
if (character === "+") {
|
|
23358
23077
|
if (prevParsedCharacters) {
|
|
23359
|
-
if (typeof emitEvent2 === "function") {
|
|
23360
|
-
emitEvent2("end");
|
|
23361
|
-
}
|
|
23362
23078
|
return;
|
|
23363
23079
|
}
|
|
23364
23080
|
return "+";
|
|
@@ -23367,45 +23083,34 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2)
|
|
|
23367
23083
|
}
|
|
23368
23084
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
23369
23085
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
23370
|
-
if (it)
|
|
23371
|
-
|
|
23372
|
-
|
|
23373
|
-
if (it)
|
|
23374
|
-
o = it;
|
|
23086
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
23087
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike) {
|
|
23088
|
+
if (it) o = it;
|
|
23375
23089
|
var i = 0;
|
|
23376
23090
|
return function() {
|
|
23377
|
-
if (i >= o.length)
|
|
23378
|
-
return { done: true };
|
|
23091
|
+
if (i >= o.length) return { done: true };
|
|
23379
23092
|
return { done: false, value: o[i++] };
|
|
23380
23093
|
};
|
|
23381
23094
|
}
|
|
23382
23095
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23383
23096
|
}
|
|
23384
23097
|
function _unsupportedIterableToArray$1(o, minLen) {
|
|
23385
|
-
if (!o)
|
|
23386
|
-
|
|
23387
|
-
if (typeof o === "string")
|
|
23388
|
-
return _arrayLikeToArray$1(o, minLen);
|
|
23098
|
+
if (!o) return;
|
|
23099
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
23389
23100
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23390
|
-
if (n === "Object" && o.constructor)
|
|
23391
|
-
|
|
23392
|
-
if (n === "
|
|
23393
|
-
return Array.from(o);
|
|
23394
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
23395
|
-
return _arrayLikeToArray$1(o, minLen);
|
|
23101
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23102
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
23103
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
23396
23104
|
}
|
|
23397
23105
|
function _arrayLikeToArray$1(arr, len) {
|
|
23398
|
-
if (len == null || len > arr.length)
|
|
23399
|
-
len = arr.length;
|
|
23106
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
23400
23107
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
23401
23108
|
arr2[i] = arr[i];
|
|
23402
23109
|
}
|
|
23403
23110
|
return arr2;
|
|
23404
23111
|
}
|
|
23405
23112
|
function getCountryByNationalNumber(nationalPhoneNumber, _ref2) {
|
|
23406
|
-
var countries = _ref2.countries;
|
|
23407
|
-
_ref2.defaultCountry;
|
|
23408
|
-
var metadata2 = _ref2.metadata;
|
|
23113
|
+
var countries = _ref2.countries, metadata2 = _ref2.metadata;
|
|
23409
23114
|
metadata2 = new Metadata(metadata2);
|
|
23410
23115
|
for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done; ) {
|
|
23411
23116
|
var country = _step.value;
|
|
@@ -23422,14 +23127,8 @@ function getCountryByNationalNumber(nationalPhoneNumber, _ref2) {
|
|
|
23422
23127
|
}
|
|
23423
23128
|
}
|
|
23424
23129
|
}
|
|
23425
|
-
var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
|
|
23426
23130
|
function getCountryByCallingCode(callingCode, _ref2) {
|
|
23427
|
-
var nationalPhoneNumber = _ref2.nationalNumber,
|
|
23428
|
-
if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
|
|
23429
|
-
if (metadata2.isNonGeographicCallingCode(callingCode)) {
|
|
23430
|
-
return "001";
|
|
23431
|
-
}
|
|
23432
|
-
}
|
|
23131
|
+
var nationalPhoneNumber = _ref2.nationalNumber, metadata2 = _ref2.metadata;
|
|
23433
23132
|
var possibleCountries = metadata2.getCountryCodesForCallingCode(callingCode);
|
|
23434
23133
|
if (!possibleCountries) {
|
|
23435
23134
|
return;
|
|
@@ -23439,7 +23138,6 @@ function getCountryByCallingCode(callingCode, _ref2) {
|
|
|
23439
23138
|
}
|
|
23440
23139
|
return getCountryByNationalNumber(nationalPhoneNumber, {
|
|
23441
23140
|
countries: possibleCountries,
|
|
23442
|
-
defaultCountry,
|
|
23443
23141
|
metadata: metadata2.metadata
|
|
23444
23142
|
});
|
|
23445
23143
|
}
|
|
@@ -23648,8 +23346,7 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
23648
23346
|
country = defaultCountry;
|
|
23649
23347
|
}
|
|
23650
23348
|
countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata2.metadata);
|
|
23651
|
-
} else
|
|
23652
|
-
return {};
|
|
23349
|
+
} else return {};
|
|
23653
23350
|
if (!number2) {
|
|
23654
23351
|
return {
|
|
23655
23352
|
countryCallingCodeSource,
|
|
@@ -23659,13 +23356,11 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
|
|
|
23659
23356
|
var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number2), metadata2), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
|
|
23660
23357
|
var exactCountry = getCountryByCallingCode(countryCallingCode, {
|
|
23661
23358
|
nationalNumber,
|
|
23662
|
-
defaultCountry,
|
|
23663
23359
|
metadata: metadata2
|
|
23664
23360
|
});
|
|
23665
23361
|
if (exactCountry) {
|
|
23666
23362
|
country = exactCountry;
|
|
23667
|
-
if (exactCountry === "001")
|
|
23668
|
-
;
|
|
23363
|
+
if (exactCountry === "001") ;
|
|
23669
23364
|
else {
|
|
23670
23365
|
metadata2.country(country);
|
|
23671
23366
|
}
|
|
@@ -23748,21 +23443,15 @@ function _nonIterableRest() {
|
|
|
23748
23443
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
23749
23444
|
}
|
|
23750
23445
|
function _unsupportedIterableToArray(o, minLen) {
|
|
23751
|
-
if (!o)
|
|
23752
|
-
|
|
23753
|
-
if (typeof o === "string")
|
|
23754
|
-
return _arrayLikeToArray(o, minLen);
|
|
23446
|
+
if (!o) return;
|
|
23447
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
23755
23448
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
23756
|
-
if (n === "Object" && o.constructor)
|
|
23757
|
-
|
|
23758
|
-
if (n === "
|
|
23759
|
-
return Array.from(o);
|
|
23760
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
23761
|
-
return _arrayLikeToArray(o, minLen);
|
|
23449
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23450
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
23451
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
23762
23452
|
}
|
|
23763
23453
|
function _arrayLikeToArray(arr, len) {
|
|
23764
|
-
if (len == null || len > arr.length)
|
|
23765
|
-
len = arr.length;
|
|
23454
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
23766
23455
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
23767
23456
|
arr2[i] = arr[i];
|
|
23768
23457
|
}
|
|
@@ -23770,8 +23459,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
23770
23459
|
}
|
|
23771
23460
|
function _iterableToArrayLimit(arr, i) {
|
|
23772
23461
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
23773
|
-
if (_i == null)
|
|
23774
|
-
return;
|
|
23462
|
+
if (_i == null) return;
|
|
23775
23463
|
var _arr = [];
|
|
23776
23464
|
var _n = true;
|
|
23777
23465
|
var _d = false;
|
|
@@ -23779,26 +23467,22 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
23779
23467
|
try {
|
|
23780
23468
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
23781
23469
|
_arr.push(_s.value);
|
|
23782
|
-
if (i && _arr.length === i)
|
|
23783
|
-
break;
|
|
23470
|
+
if (i && _arr.length === i) break;
|
|
23784
23471
|
}
|
|
23785
23472
|
} catch (err) {
|
|
23786
23473
|
_d = true;
|
|
23787
23474
|
_e = err;
|
|
23788
23475
|
} finally {
|
|
23789
23476
|
try {
|
|
23790
|
-
if (!_n && _i["return"] != null)
|
|
23791
|
-
_i["return"]();
|
|
23477
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
23792
23478
|
} finally {
|
|
23793
|
-
if (_d)
|
|
23794
|
-
throw _e;
|
|
23479
|
+
if (_d) throw _e;
|
|
23795
23480
|
}
|
|
23796
23481
|
}
|
|
23797
23482
|
return _arr;
|
|
23798
23483
|
}
|
|
23799
23484
|
function _arrayWithHoles(arr) {
|
|
23800
|
-
if (Array.isArray(arr))
|
|
23801
|
-
return arr;
|
|
23485
|
+
if (Array.isArray(arr)) return arr;
|
|
23802
23486
|
}
|
|
23803
23487
|
function normalizeArguments(args) {
|
|
23804
23488
|
var _Array$prototype$slic = Array.prototype.slice.call(args), _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4), arg_1 = _Array$prototype$slic2[0], arg_2 = _Array$prototype$slic2[1], arg_3 = _Array$prototype$slic2[2], arg_4 = _Array$prototype$slic2[3];
|
|
@@ -23807,8 +23491,7 @@ function normalizeArguments(args) {
|
|
|
23807
23491
|
var metadata2;
|
|
23808
23492
|
if (typeof arg_1 === "string") {
|
|
23809
23493
|
text2 = arg_1;
|
|
23810
|
-
} else
|
|
23811
|
-
throw new TypeError("A text for parsing must be a string.");
|
|
23494
|
+
} else throw new TypeError("A text for parsing must be a string.");
|
|
23812
23495
|
if (!arg_2 || typeof arg_2 === "string") {
|
|
23813
23496
|
if (arg_4) {
|
|
23814
23497
|
options = arg_3;
|
|
@@ -23829,8 +23512,7 @@ function normalizeArguments(args) {
|
|
|
23829
23512
|
} else {
|
|
23830
23513
|
metadata2 = arg_2;
|
|
23831
23514
|
}
|
|
23832
|
-
} else
|
|
23833
|
-
throw new Error("Invalid second argument: ".concat(arg_2));
|
|
23515
|
+
} else throw new Error("Invalid second argument: ".concat(arg_2));
|
|
23834
23516
|
return {
|
|
23835
23517
|
text: text2,
|
|
23836
23518
|
options,
|
|
@@ -23875,8 +23557,7 @@ function parsePhoneNumber(text2, options, metadata2) {
|
|
|
23875
23557
|
try {
|
|
23876
23558
|
return parsePhoneNumberWithError(text2, options, metadata2);
|
|
23877
23559
|
} catch (error) {
|
|
23878
|
-
if (error instanceof ParseError)
|
|
23879
|
-
;
|
|
23560
|
+
if (error instanceof ParseError) ;
|
|
23880
23561
|
else {
|
|
23881
23562
|
throw error;
|
|
23882
23563
|
}
|
|
@@ -24168,7 +23849,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
24168
23849
|
};
|
|
24169
23850
|
}
|
|
24170
23851
|
});
|
|
24171
|
-
const loginCheckModal_vue_vue_type_style_index_0_lang = "";
|
|
24172
23852
|
const GIT_CODE_LOGO_WHITE = "data:image/png;base64,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";
|
|
24173
23853
|
const _hoisted_1$3 = { class: "mfa" };
|
|
24174
23854
|
const _hoisted_2$1 = ["src"];
|
|
@@ -24263,8 +23943,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24263
23943
|
});
|
|
24264
23944
|
const activeInputIndex = ref(0);
|
|
24265
23945
|
const inputChange = (e, index2) => {
|
|
24266
|
-
if (!e)
|
|
24267
|
-
return;
|
|
23946
|
+
if (!e) return;
|
|
24268
23947
|
activeInputIndex.value = index2 + 1;
|
|
24269
23948
|
if (activeInputIndex.value >= inputList.value.length) {
|
|
24270
23949
|
activeInputIndex.value = inputList.value.length - 1;
|
|
@@ -24278,15 +23957,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24278
23957
|
};
|
|
24279
23958
|
const keyUp = (e, index2) => {
|
|
24280
23959
|
activeInputIndex.value = index2;
|
|
24281
|
-
if (e.key === "Tab")
|
|
24282
|
-
return;
|
|
23960
|
+
if (e.key === "Tab") return;
|
|
24283
23961
|
if (e.key === "Backspace") {
|
|
24284
23962
|
inputList.value[activeInputIndex.value] && (inputList.value[activeInputIndex.value].value = "");
|
|
24285
23963
|
if (!currentInputValue.value) {
|
|
24286
23964
|
activeInputIndex.value--;
|
|
24287
23965
|
}
|
|
24288
|
-
if (activeInputIndex.value < 0)
|
|
24289
|
-
activeInputIndex.value = 0;
|
|
23966
|
+
if (activeInputIndex.value < 0) activeInputIndex.value = 0;
|
|
24290
23967
|
}
|
|
24291
23968
|
focusInput();
|
|
24292
23969
|
};
|
|
@@ -24434,10 +24111,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
24434
24111
|
};
|
|
24435
24112
|
}
|
|
24436
24113
|
});
|
|
24437
|
-
const
|
|
24438
|
-
const
|
|
24439
|
-
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3e0f827f"]]);
|
|
24440
|
-
const SlidCaptcha = defineAsyncComponent(() => import("./index-63b698c2.js"));
|
|
24114
|
+
const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24115
|
+
const SlidCaptcha = defineAsyncComponent(() => import("./index-Cy6etTg0.js"));
|
|
24441
24116
|
const useSlidCaptcha = () => {
|
|
24442
24117
|
const { mount, unMount } = usePopup("slid-captcha-popup");
|
|
24443
24118
|
const open = (config) => {
|
|
@@ -24456,7 +24131,6 @@ const useSlidCaptcha = () => {
|
|
|
24456
24131
|
close: unMount
|
|
24457
24132
|
};
|
|
24458
24133
|
};
|
|
24459
|
-
const contentLoading_vue_vue_type_style_index_0_scoped_b4e76fda_lang = "";
|
|
24460
24134
|
const _sfc_main$3 = {};
|
|
24461
24135
|
const _hoisted_1$2 = { class: "content-loading" };
|
|
24462
24136
|
function _sfc_render(_ctx, _cache) {
|
|
@@ -24473,7 +24147,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
24473
24147
|
], -1)
|
|
24474
24148
|
]));
|
|
24475
24149
|
}
|
|
24476
|
-
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
24150
|
+
const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24477
24151
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
24478
24152
|
__name: "index",
|
|
24479
24153
|
props: {
|
|
@@ -24505,15 +24179,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
24505
24179
|
};
|
|
24506
24180
|
}
|
|
24507
24181
|
});
|
|
24508
|
-
const
|
|
24509
|
-
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7d576636"]]);
|
|
24182
|
+
const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
24510
24183
|
function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
|
|
24511
24184
|
const { interval = 1e4, immediate = true } = options;
|
|
24512
24185
|
const timer = ref(null);
|
|
24513
24186
|
const isPageVisible = ref(true);
|
|
24514
24187
|
const startPoll = () => {
|
|
24515
|
-
if (shouldPoll !== void 0 && !shouldPoll.value)
|
|
24516
|
-
return;
|
|
24188
|
+
if (shouldPoll !== void 0 && !shouldPoll.value) return;
|
|
24517
24189
|
if (!timer.value && isPageVisible.value) {
|
|
24518
24190
|
if (immediate) {
|
|
24519
24191
|
pollFunction();
|
|
@@ -24822,8 +24494,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
24822
24494
|
cb(new Error($t("gitCodeLayout.LoginModal.rule.username")));
|
|
24823
24495
|
return;
|
|
24824
24496
|
}
|
|
24825
|
-
if (usernameCheckLoading.value)
|
|
24826
|
-
return;
|
|
24497
|
+
if (usernameCheckLoading.value) return;
|
|
24827
24498
|
usernameCheckLoading.value = true;
|
|
24828
24499
|
try {
|
|
24829
24500
|
const res = await API.checkUsername(val);
|
|
@@ -25010,12 +24681,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25010
24681
|
const data = {
|
|
25011
24682
|
mobile_email: res.mobile_email,
|
|
25012
24683
|
password: res.password,
|
|
25013
|
-
code: res.code
|
|
25014
|
-
captcha_id: nowCaptchaId.value
|
|
24684
|
+
code: res.code
|
|
25015
24685
|
};
|
|
25016
24686
|
const result2 = await API.resetUserPassword(data);
|
|
25017
24687
|
if (!result2.error) {
|
|
25018
24688
|
dealLog($t("gitCodeLayout.LoginModal.tips.updatePassword"), "success", "login");
|
|
24689
|
+
} else {
|
|
24690
|
+
extraErrors.requestInfo = result2.error.error_message;
|
|
25019
24691
|
}
|
|
25020
24692
|
setTimeout(() => {
|
|
25021
24693
|
loading.value = false;
|
|
@@ -25104,8 +24776,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25104
24776
|
useReport("signup_submit", {}, API.report);
|
|
25105
24777
|
}
|
|
25106
24778
|
const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
|
|
25107
|
-
if (!formData || formData.type === "fail")
|
|
25108
|
-
return false;
|
|
24779
|
+
if (!formData || formData.type === "fail") return false;
|
|
25109
24780
|
const res = formData.forms;
|
|
25110
24781
|
const { country } = ((_b = FormRef.value) == null ? void 0 : _b.Data) || {};
|
|
25111
24782
|
const mobile = getPhone({ value: res.mobile, country });
|
|
@@ -25114,8 +24785,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25114
24785
|
return;
|
|
25115
24786
|
} else if (formType.value === "register") {
|
|
25116
24787
|
const check = await LoginCheck();
|
|
25117
|
-
if (!check)
|
|
25118
|
-
return;
|
|
24788
|
+
if (!check) return;
|
|
25119
24789
|
await registerAction(res, mobile);
|
|
25120
24790
|
} else {
|
|
25121
24791
|
const loginFunction = tabPanel.value === "password" ? LoginConfig.password : LoginConfig.phone;
|
|
@@ -25180,7 +24850,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25180
24850
|
res = await API.getQuickLoginMsg({ mobile, captchaId: conf.captchaId });
|
|
25181
24851
|
break;
|
|
25182
24852
|
case "forget":
|
|
25183
|
-
res = await API.getMobileEmailCode(conf.
|
|
24853
|
+
res = await API.getMobileEmailCode({ mobile_email: mobile, captcha_id: conf.captchaId });
|
|
25184
24854
|
break;
|
|
25185
24855
|
default:
|
|
25186
24856
|
res = await API.verifyRegisterCode({ mobile, type: "REGISTER", captchaId: conf.captchaId });
|
|
@@ -25188,7 +24858,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25188
24858
|
}
|
|
25189
24859
|
return res;
|
|
25190
24860
|
};
|
|
25191
|
-
const nowCaptchaId = ref();
|
|
25192
24861
|
const handleCountDown = async (conf) => {
|
|
25193
24862
|
var _a, _b;
|
|
25194
24863
|
const formData = await FormRef.value.ValidateFormKeys([conf.key]);
|
|
@@ -25205,7 +24874,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25205
24874
|
if (formType.value === "forget" && !conf.captchaId) {
|
|
25206
24875
|
slidCaptcha.open({
|
|
25207
24876
|
onSuccess: (captchaData) => {
|
|
25208
|
-
nowCaptchaId.value = captchaData.id;
|
|
25209
24877
|
handleCountDown({ ...conf, captchaId: captchaData.id });
|
|
25210
24878
|
}
|
|
25211
24879
|
});
|
|
@@ -25480,17 +25148,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25480
25148
|
};
|
|
25481
25149
|
const fetchMiniProgramStatus = async () => {
|
|
25482
25150
|
var _a;
|
|
25483
|
-
|
|
25484
|
-
|
|
25151
|
+
if (tabPanel.value !== "miniProgram") {
|
|
25152
|
+
stopPoll();
|
|
25485
25153
|
return;
|
|
25154
|
+
}
|
|
25155
|
+
const res = await LoginConfig.miniProgramCheckStatus(miniProgramInfo.value.scene_id);
|
|
25156
|
+
if (res.error) return;
|
|
25486
25157
|
const { status: miniProgramCurrentStatus } = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || "WAITING";
|
|
25487
25158
|
miniProgramStatus.value = miniProgramCurrentStatus;
|
|
25488
25159
|
if (miniProgramCurrentStatus === "TIMEOUT" || miniProgramCurrentStatus === "CANCEL") {
|
|
25489
25160
|
stopPoll();
|
|
25490
25161
|
return;
|
|
25491
25162
|
}
|
|
25492
|
-
if (miniProgramCurrentStatus !== "LOGIN")
|
|
25493
|
-
return;
|
|
25163
|
+
if (miniProgramCurrentStatus !== "LOGIN") return;
|
|
25494
25164
|
stopPoll();
|
|
25495
25165
|
const loginResult = await LoginConfig.miniProgramLogin(miniProgramInfo.value.scene_id);
|
|
25496
25166
|
if (!loginResult.success) {
|
|
@@ -25503,8 +25173,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25503
25173
|
}, shouldMiniProgramPoll);
|
|
25504
25174
|
const getMiniProgramQrCode = async () => {
|
|
25505
25175
|
var _a;
|
|
25506
|
-
if (miniProgramLoading.value)
|
|
25507
|
-
return;
|
|
25176
|
+
if (miniProgramLoading.value) return;
|
|
25508
25177
|
miniProgramLoading.value = true;
|
|
25509
25178
|
stopPoll();
|
|
25510
25179
|
miniProgramStatus.value = "WAITING";
|
|
@@ -25817,9 +25486,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25817
25486
|
};
|
|
25818
25487
|
}
|
|
25819
25488
|
});
|
|
25820
|
-
const
|
|
25821
|
-
const index_vue_vue_type_style_index_1_lang = "";
|
|
25822
|
-
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2fce7d0b"]]);
|
|
25489
|
+
const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
|
|
25823
25490
|
const { t } = i18n.global;
|
|
25824
25491
|
function useLogin(request) {
|
|
25825
25492
|
const successMsg = t("gitCodeLayout.common.tips.welcome");
|
|
@@ -25976,7 +25643,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25976
25643
|
};
|
|
25977
25644
|
}
|
|
25978
25645
|
});
|
|
25979
|
-
const main = "";
|
|
25980
25646
|
const GitCodeLayoutEmitter = emitter;
|
|
25981
25647
|
const index = {
|
|
25982
25648
|
install: (app) => {
|
|
@@ -25998,8 +25664,8 @@ export {
|
|
|
25998
25664
|
TOPIC_TYPE as T,
|
|
25999
25665
|
_export_sfc as _,
|
|
26000
25666
|
i18n as a,
|
|
26001
|
-
|
|
26002
|
-
|
|
25667
|
+
REPO_TYPE as b,
|
|
25668
|
+
REPO_EVENT as c,
|
|
26003
25669
|
debounce$1 as d,
|
|
26004
25670
|
extractRepoInfoWithURL as e,
|
|
26005
25671
|
useTimeFormat as f,
|