vue-layout-gitcode 1.8.8 → 1.8.9

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed as computed$1, 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, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
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, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } 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";
@@ -65,7 +65,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
65
65
  },
66
66
  setup(__props) {
67
67
  const props = __props;
68
- const fontSize = computed$1(() => {
68
+ const fontSize = computed(() => {
69
69
  return /px$/i.test(props.size) ? props.size : `${props.size}px`;
70
70
  });
71
71
  return (_ctx, _cache) => {
@@ -105,12 +105,26 @@ const _export_sfc = (sfc, props) => {
105
105
  return target;
106
106
  };
107
107
  const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
108
+ const transformUrl$1 = (url) => {
109
+ var _a;
110
+ if (typeof window !== "undefined" && typeof location !== "undefined") {
111
+ const host = (_a = location.host) == null ? void 0 : _a.replace(/^ai\./, "");
112
+ if (host.includes("gitcode.host")) {
113
+ return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
114
+ }
115
+ if (url == null ? void 0 : url.startsWith("https://cdn-")) {
116
+ return url;
117
+ }
118
+ return url == null ? void 0 : url.replace(/gitcode\.com/g, host);
119
+ }
120
+ return url;
121
+ };
108
122
  const defaultConfig = {
109
123
  VITE_ENV: "production",
110
124
  VITE_HOST: "https://gitcode.com",
111
125
  VITE_HOST_TIANQI: "https://tianqi.gitcode.com",
112
126
  VITE_API_HOST: "https://web-api.gitcode.com",
113
- VITE_AD_LINK: "https://cdn-static.gitcode.com/adList/active.json",
127
+ VITE_AD_LINK: "https://cdn-static.gitcode.host/adList/active.json",
114
128
  VITE_NEWS_HOST: "https://news.gitcode.com",
115
129
  VITE_AI_HOST: "https://ai.gitcode.com",
116
130
  VITE_INCUBATION_TOPIC: "6656c64efd46e722f6299761",
@@ -120,7 +134,7 @@ const defaultConfig = {
120
134
  VITE_SECRET_KEY: "SA!nUNPZ5o!OSV&B",
121
135
  VITE_SECRET_IV: "SA!nwwwZ5o!OSV&B"
122
136
  };
123
- let layoutConfig$5 = reactive({ ...defaultConfig });
137
+ const layoutConfig$5 = reactive({ ...defaultConfig, VITE_HOST_TIANQI: transformUrl$1(defaultConfig.VITE_HOST_TIANQI) });
124
138
  function setLayoutConfig(customConfig) {
125
139
  Object.assign(layoutConfig$5, customConfig);
126
140
  }
@@ -251,20 +265,6 @@ const useRequestReport = (request, globalStore) => {
251
265
  useReport: useReport2
252
266
  };
253
267
  };
254
- const handleReportParamsByDomain = (reportString) => {
255
- var _a;
256
- const domainMap = {
257
- blog: "blog_"
258
- };
259
- const domain = ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.hostname) || "";
260
- for (const key in domainMap) {
261
- if (domain.includes(key)) {
262
- reportString = domainMap[key] + reportString;
263
- break;
264
- }
265
- }
266
- return reportString;
267
- };
268
268
  const isBrowser$1 = typeof window !== "undefined" && typeof window.localStorage !== "undefined";
269
269
  let localStorage$1;
270
270
  if (isBrowser$1) {
@@ -388,7 +388,7 @@ function udeskInit(config = {}, open = false) {
388
388
  g.src = b;
389
389
  c = h2.getElementsByTagName(c)[0];
390
390
  c.parentNode.insertBefore(g, c);
391
- })(window, document, "script", "https://cdn-static.gitcode.com/static/js/udeskApi.js", "ud");
391
+ })(window, document, "script", "https://cdn-static.gitcode.host/static/js/udeskApi.js", "ud");
392
392
  ud({
393
393
  code: "24581k88",
394
394
  link: "https://gitcode.s2.udesk.cn/im_client/?web_plugin_id=57707",
@@ -491,7 +491,7 @@ const OSS_IMAGES = {
491
491
  };
492
492
  const GOTO_QUICK_LOGIN = "gotoQuickLogin";
493
493
  const DEFAULT_COUNTRY = "CN_0086";
494
- const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.com";
494
+ const IMAGE_CDN_PREFIX = "https://cdn-static.gitcode.host";
495
495
  const HARMONY_VISITED_DATE = "harmony-visitedDate";
496
496
  const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
497
497
  const UTM_SOURCE = "utm_source";
@@ -511,7 +511,8 @@ const TOOLS_FLOAT_COLLAPSE_STATUS = {
511
511
  const TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO = "asideTool_collapse_status_repo";
512
512
  const TOOLS_FLOAT_COLLAPSE_STATUS_KEY = "asideTool_collapse_status";
513
513
  const TOOLS_FLOAT_COLLAPSE_DATE_KEY = "asideTool_collapse_date";
514
- /*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
514
+ const GUI_YANG_GITCODE_HOST = "gitcode.host";
515
+ /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
515
516
  const {
516
517
  entries,
517
518
  setPrototypeOf,
@@ -539,12 +540,18 @@ if (!seal) {
539
540
  };
540
541
  }
541
542
  if (!apply$1) {
542
- apply$1 = function apply2(fun, thisValue, args) {
543
- return fun.apply(thisValue, args);
543
+ apply$1 = function apply2(func, thisArg) {
544
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
545
+ args[_key - 2] = arguments[_key];
546
+ }
547
+ return func.apply(thisArg, args);
544
548
  };
545
549
  }
546
550
  if (!construct) {
547
- construct = function construct2(Func, args) {
551
+ construct = function construct2(Func) {
552
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
553
+ args[_key2 - 1] = arguments[_key2];
554
+ }
548
555
  return new Func(...args);
549
556
  };
550
557
  }
@@ -567,18 +574,18 @@ function unapply(func) {
567
574
  if (thisArg instanceof RegExp) {
568
575
  thisArg.lastIndex = 0;
569
576
  }
570
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
571
- args[_key - 1] = arguments[_key];
577
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
578
+ args[_key3 - 1] = arguments[_key3];
572
579
  }
573
580
  return apply$1(func, thisArg, args);
574
581
  };
575
582
  }
576
- function unconstruct(func) {
583
+ function unconstruct(Func) {
577
584
  return function() {
578
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
579
- args[_key2] = arguments[_key2];
585
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
586
+ args[_key4] = arguments[_key4];
580
587
  }
581
- return construct(func, args);
588
+ return construct(Func, args);
582
589
  };
583
590
  }
584
591
  function addToSet(set, array) {
@@ -645,15 +652,15 @@ function lookupGetter(object, prop) {
645
652
  }
646
653
  return fallbackValue;
647
654
  }
648
- const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
649
- const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
655
+ const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
656
+ const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
650
657
  const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
651
658
  const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
652
659
  const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
653
660
  const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
654
661
  const text = freeze(["#text"]);
655
- const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
656
- const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
662
+ const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
663
+ const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
657
664
  const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
658
665
  const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
659
666
  const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
@@ -662,7 +669,7 @@ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
662
669
  const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
663
670
  const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
664
671
  const IS_ALLOWED_URI = seal(
665
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
672
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
666
673
  // eslint-disable-line no-useless-escape
667
674
  );
668
675
  const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
@@ -736,7 +743,7 @@ const _createHooksMap = function _createHooksMap2() {
736
743
  function createDOMPurify() {
737
744
  let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
738
745
  const DOMPurify = (root) => createDOMPurify(root);
739
- DOMPurify.version = "3.2.5";
746
+ DOMPurify.version = "3.3.0";
740
747
  DOMPurify.removed = [];
741
748
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
742
749
  DOMPurify.isSupported = false;
@@ -822,6 +829,20 @@ function createDOMPurify() {
822
829
  }));
823
830
  let FORBID_TAGS = null;
824
831
  let FORBID_ATTR = null;
832
+ const EXTRA_ELEMENT_HANDLING = Object.seal(create$1(null, {
833
+ tagCheck: {
834
+ writable: true,
835
+ configurable: false,
836
+ enumerable: true,
837
+ value: null
838
+ },
839
+ attributeCheck: {
840
+ writable: true,
841
+ configurable: false,
842
+ enumerable: true,
843
+ value: null
844
+ }
845
+ }));
825
846
  let ALLOW_ARIA_ATTR = true;
826
847
  let ALLOW_DATA_ATTR = true;
827
848
  let ALLOW_UNKNOWN_PROTOCOLS = false;
@@ -883,8 +904,8 @@ function createDOMPurify() {
883
904
  URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
884
905
  DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
885
906
  FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
886
- FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
887
- FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
907
+ FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
908
+ FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
888
909
  USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
889
910
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
890
911
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
@@ -945,16 +966,24 @@ function createDOMPurify() {
945
966
  }
946
967
  }
947
968
  if (cfg.ADD_TAGS) {
948
- if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
949
- ALLOWED_TAGS = clone(ALLOWED_TAGS);
969
+ if (typeof cfg.ADD_TAGS === "function") {
970
+ EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
971
+ } else {
972
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
973
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
974
+ }
975
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
950
976
  }
951
- addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
952
977
  }
953
978
  if (cfg.ADD_ATTR) {
954
- if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
955
- ALLOWED_ATTR = clone(ALLOWED_ATTR);
979
+ if (typeof cfg.ADD_ATTR === "function") {
980
+ EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
981
+ } else {
982
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
983
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
984
+ }
985
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
956
986
  }
957
- addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
958
987
  }
959
988
  if (cfg.ADD_URI_SAFE_ATTR) {
960
989
  addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
@@ -1148,7 +1177,7 @@ function createDOMPurify() {
1148
1177
  tagName,
1149
1178
  allowedTags: ALLOWED_TAGS
1150
1179
  });
1151
- if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1180
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
1152
1181
  _forceRemove(currentNode);
1153
1182
  return true;
1154
1183
  }
@@ -1160,7 +1189,7 @@ function createDOMPurify() {
1160
1189
  _forceRemove(currentNode);
1161
1190
  return true;
1162
1191
  }
1163
- if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1192
+ if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
1164
1193
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1165
1194
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1166
1195
  return false;
@@ -1213,12 +1242,13 @@ function createDOMPurify() {
1213
1242
  }
1214
1243
  if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
1215
1244
  else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
1245
+ else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
1216
1246
  else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
1217
1247
  if (
1218
1248
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1219
1249
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1220
1250
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1221
- _isBasicCustomElement(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
1251
+ _isBasicCustomElement(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, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1222
1252
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1223
1253
  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))
1224
1254
  ) ;
@@ -1261,7 +1291,8 @@ function createDOMPurify() {
1261
1291
  value: attrValue
1262
1292
  } = attr;
1263
1293
  const lcName = transformCaseFunc(name);
1264
- let value = name === "value" ? attrValue : stringTrim(attrValue);
1294
+ const initValue = attrValue;
1295
+ let value = name === "value" ? initValue : stringTrim(initValue);
1265
1296
  hookEvent.attrName = lcName;
1266
1297
  hookEvent.attrValue = value;
1267
1298
  hookEvent.keepAttr = true;
@@ -1272,15 +1303,19 @@ function createDOMPurify() {
1272
1303
  _removeAttribute(name, currentNode);
1273
1304
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
1274
1305
  }
1275
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
1306
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
1307
+ _removeAttribute(name, currentNode);
1308
+ continue;
1309
+ }
1310
+ if (lcName === "attributename" && stringMatch(value, "href")) {
1276
1311
  _removeAttribute(name, currentNode);
1277
1312
  continue;
1278
1313
  }
1279
1314
  if (hookEvent.forceKeepAttr) {
1280
1315
  continue;
1281
1316
  }
1282
- _removeAttribute(name, currentNode);
1283
1317
  if (!hookEvent.keepAttr) {
1318
+ _removeAttribute(name, currentNode);
1284
1319
  continue;
1285
1320
  }
1286
1321
  if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
@@ -1294,6 +1329,7 @@ function createDOMPurify() {
1294
1329
  }
1295
1330
  const lcTag = transformCaseFunc(currentNode.nodeName);
1296
1331
  if (!_isValidAttribute(lcTag, lcName, value)) {
1332
+ _removeAttribute(name, currentNode);
1297
1333
  continue;
1298
1334
  }
1299
1335
  if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
@@ -1311,18 +1347,21 @@ function createDOMPurify() {
1311
1347
  }
1312
1348
  }
1313
1349
  }
1314
- try {
1315
- if (namespaceURI) {
1316
- currentNode.setAttributeNS(namespaceURI, name, value);
1317
- } else {
1318
- currentNode.setAttribute(name, value);
1319
- }
1320
- if (_isClobbered(currentNode)) {
1321
- _forceRemove(currentNode);
1322
- } else {
1323
- arrayPop(DOMPurify.removed);
1350
+ if (value !== initValue) {
1351
+ try {
1352
+ if (namespaceURI) {
1353
+ currentNode.setAttributeNS(namespaceURI, name, value);
1354
+ } else {
1355
+ currentNode.setAttribute(name, value);
1356
+ }
1357
+ if (_isClobbered(currentNode)) {
1358
+ _forceRemove(currentNode);
1359
+ } else {
1360
+ arrayPop(DOMPurify.removed);
1361
+ }
1362
+ } catch (_) {
1363
+ _removeAttribute(name, currentNode);
1324
1364
  }
1325
- } catch (_) {
1326
1365
  }
1327
1366
  }
1328
1367
  _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
@@ -5534,14 +5573,14 @@ function createComposer(options = {}, VueI18nLegacy) {
5534
5573
  _numberFormats.value
5535
5574
  ];
5536
5575
  }
5537
- const locale2 = computed$1({
5576
+ const locale2 = computed({
5538
5577
  get: () => _locale.value,
5539
5578
  set: (val) => {
5540
5579
  _locale.value = val;
5541
5580
  _context.locale = _locale.value;
5542
5581
  }
5543
5582
  });
5544
- const fallbackLocale = computed$1({
5583
+ const fallbackLocale = computed({
5545
5584
  get: () => _fallbackLocale.value,
5546
5585
  set: (val) => {
5547
5586
  _fallbackLocale.value = val;
@@ -5549,9 +5588,9 @@ function createComposer(options = {}, VueI18nLegacy) {
5549
5588
  updateFallbackLocale(_context, _locale.value, val);
5550
5589
  }
5551
5590
  });
5552
- const messages = computed$1(() => _messages.value);
5553
- const datetimeFormats = /* @__PURE__ */ computed$1(() => _datetimeFormats.value);
5554
- const numberFormats = /* @__PURE__ */ computed$1(() => _numberFormats.value);
5591
+ const messages = computed(() => _messages.value);
5592
+ const datetimeFormats = /* @__PURE__ */ computed(() => _datetimeFormats.value);
5593
+ const numberFormats = /* @__PURE__ */ computed(() => _numberFormats.value);
5555
5594
  function getPostTranslationHandler() {
5556
5595
  return isFunction$1(_postTranslation) ? _postTranslation : null;
5557
5596
  }
@@ -7263,7 +7302,7 @@ function useI18nForLegacy(instance, scope, root, options = {}) {
7263
7302
  _numberFormats.value
7264
7303
  ];
7265
7304
  }
7266
- const locale2 = computed$1({
7305
+ const locale2 = computed({
7267
7306
  get: () => {
7268
7307
  return _composer.value ? _composer.value.locale.value : _locale.value;
7269
7308
  },
@@ -7274,7 +7313,7 @@ function useI18nForLegacy(instance, scope, root, options = {}) {
7274
7313
  _locale.value = val;
7275
7314
  }
7276
7315
  });
7277
- const fallbackLocale = computed$1({
7316
+ const fallbackLocale = computed({
7278
7317
  get: () => {
7279
7318
  return _composer.value ? _composer.value.fallbackLocale.value : _fallbackLocale.value;
7280
7319
  },
@@ -7285,15 +7324,15 @@ function useI18nForLegacy(instance, scope, root, options = {}) {
7285
7324
  _fallbackLocale.value = val;
7286
7325
  }
7287
7326
  });
7288
- const messages = computed$1(() => {
7327
+ const messages = computed(() => {
7289
7328
  if (_composer.value) {
7290
7329
  return _composer.value.messages.value;
7291
7330
  } else {
7292
7331
  return _messages.value;
7293
7332
  }
7294
7333
  });
7295
- const datetimeFormats = computed$1(() => _datetimeFormats.value);
7296
- const numberFormats = computed$1(() => _numberFormats.value);
7334
+ const datetimeFormats = computed(() => _datetimeFormats.value);
7335
+ const numberFormats = computed(() => _numberFormats.value);
7297
7336
  function getPostTranslationHandler() {
7298
7337
  return _composer.value ? _composer.value.getPostTranslationHandler() : _postTranslation;
7299
7338
  }
@@ -7575,7 +7614,7 @@ const gitCodeLayout$1 = {
7575
7614
  informationCenter: "资讯中心",
7576
7615
  feedbackCenter: "反馈中心",
7577
7616
  companyInformation: "重庆开源共创",
7578
- recordInformation: "渝ICP备2023009037",
7617
+ recordInformation: "渝ICP备2023009037号-3",
7579
7618
  technicalSupport: "技术支持:",
7580
7619
  HWCloud: "华为云",
7581
7620
  userFeedback01: "在线客服",
@@ -7899,7 +7938,7 @@ const gitCodeLayout = {
7899
7938
  slogon: "Co-create GitCode, the Code Home for Developers",
7900
7939
  digest: "ChongQingKaiYuanGongChuang Technology Co., Ltd. All Rights Reserved",
7901
7940
  companyInformation: "ChongQingKaiYuanGongChuang",
7902
- recordInformation: "Yu ICP No. 2023009037",
7941
+ recordInformation: "Yu ICP No. 2023009037-3",
7903
7942
  searchPlaceholder2: "Type <kbd>/</kbd> to search",
7904
7943
  searchPlaceholder: "Search",
7905
7944
  alreadyFollowed: "Followed",
@@ -11017,13 +11056,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11017
11056
  const layoutConfig2 = useLayoutConfig();
11018
11057
  const { t: t2 } = i18n.global;
11019
11058
  const props = __props;
11020
- provide("globalStore", computed$1(() => props.globalStore));
11059
+ provide("globalStore", computed(() => props.globalStore));
11021
11060
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
11022
11061
  provide("useReport", useReport2);
11023
- const isSignIn = computed$1(() => {
11062
+ const isSignIn = computed(() => {
11024
11063
  return props.globalStore.isSignIn;
11025
11064
  });
11026
- const visibleItems = computed$1(() => {
11065
+ const visibleItems = computed(() => {
11027
11066
  switch (props.sceneValue) {
11028
11067
  case SceneValue.news:
11029
11068
  return [ToolsFloatDisplayItem.ELSE, ToolsFloatDisplayItem.AD];
@@ -11048,8 +11087,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11048
11087
  const emits = __emit;
11049
11088
  const toggleGrowthCenter = () => {
11050
11089
  if (!props.isLogin) {
11051
- const reportGrowthCenterString = handleReportParamsByDomain("toolsFloat_growthCenter");
11052
- emitEvent("login", { loginTriggerSource: reportGrowthCenterString });
11090
+ emitEvent("login", { loginTriggerSource: "toolsFloat_growthCenter" });
11053
11091
  return;
11054
11092
  }
11055
11093
  emits("toggle-growth-center");
@@ -11118,7 +11156,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11118
11156
  }, 500);
11119
11157
  };
11120
11158
  const activeAdJson = ref();
11121
- const activeAdItem = computed$1(() => {
11159
+ const activeAdItem = computed(() => {
11122
11160
  var _a;
11123
11161
  if (((_a = activeAdJson.value) == null ? void 0 : _a.adList.length) > 0) {
11124
11162
  return activeAdJson.value.adList.filter((item) => item.showThis)[0];
@@ -11250,7 +11288,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11250
11288
  createElementVNode("div", _hoisted_2$k, [
11251
11289
  _cache[5] || (_cache[5] = createElementVNode("img", {
11252
11290
  class: "common-icon inline-block h-[20px] w-[20px]",
11253
- src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
11291
+ src: "https://cdn-static.gitcode.host/static/images/homeweb/czzx.svg",
11254
11292
  alt: ""
11255
11293
  }, null, -1)),
11256
11294
  !_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
@@ -11281,7 +11319,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11281
11319
  }, _cache[6] || (_cache[6] = [
11282
11320
  createElementVNode("img", {
11283
11321
  class: "inline-block h-[20px] w-[20px]",
11284
- src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
11322
+ src: "https://cdn-static.gitcode.host/static/images/desk/kefu.png",
11285
11323
  alt: ""
11286
11324
  }, null, -1),
11287
11325
  createElementVNode("div", null, [
@@ -11302,7 +11340,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11302
11340
  createElementVNode("div", _hoisted_11$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
11303
11341
  _cache[7] || (_cache[7] = createElementVNode("img", {
11304
11342
  class: "qrcode",
11305
- src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
11343
+ src: "https://cdn-static.gitcode.host/static/images/points/wx_gitcode.png"
11306
11344
  }, null, -1))
11307
11345
  ])
11308
11346
  ]),
@@ -11311,12 +11349,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11311
11349
  createElementVNode("div", { class: "home-nav-item" }, [
11312
11350
  createElementVNode("img", {
11313
11351
  class: "common-icon inline-block h-[20px] w-[20px]",
11314
- src: "https://cdn-static.gitcode.com/static/images/desk/follow-us.svg",
11352
+ src: "https://cdn-static.gitcode.host/static/images/desk/follow-us.svg",
11315
11353
  alt: ""
11316
11354
  }),
11317
11355
  createElementVNode("img", {
11318
11356
  class: "active-icon inline-block h-[20px] w-[20px]",
11319
- src: "https://cdn-static.gitcode.com/static/images/desk/follow-us-hover.svg",
11357
+ src: "https://cdn-static.gitcode.host/static/images/desk/follow-us-hover.svg",
11320
11358
  alt: ""
11321
11359
  })
11322
11360
  ])
@@ -11429,12 +11467,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11429
11467
  createElementVNode("div", { class: "home-nav-item" }, [
11430
11468
  createElementVNode("img", {
11431
11469
  class: "common-icon inline-block h-[20px] w-[20px]",
11432
- src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile.png",
11470
+ src: "https://cdn-static.gitcode.host/static/images/desk/plane-smile.png",
11433
11471
  alt: ""
11434
11472
  }),
11435
11473
  createElementVNode("img", {
11436
11474
  class: "active-icon inline-block h-[20px] w-[20px]",
11437
- src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile-hover.png",
11475
+ src: "https://cdn-static.gitcode.host/static/images/desk/plane-smile-hover.png",
11438
11476
  alt: ""
11439
11477
  })
11440
11478
  ], -1)
@@ -11667,7 +11705,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11667
11705
  setup(__props) {
11668
11706
  const props = __props;
11669
11707
  const defaultHref = ref("javascript:void(0)");
11670
- const targetHref = computed$1(() => {
11708
+ const targetHref = computed(() => {
11671
11709
  const pattern = /https?:\/\//i;
11672
11710
  const urlData = props.outSideLink && !pattern.test(props.href) ? `//${props.href}` : props.href;
11673
11711
  return urlData;
@@ -12116,11 +12154,11 @@ const themeColorMap = {
12116
12154
  [ThemeType.BLACK]: black,
12117
12155
  [ThemeType.WHITE]: white
12118
12156
  };
12119
- computed$1(() => {
12157
+ computed(() => {
12120
12158
  return themeColorMap[currentTheme.value];
12121
12159
  });
12122
12160
  const setThemeVal = ref();
12123
- const currentTheme = computed$1(() => {
12161
+ const currentTheme = computed(() => {
12124
12162
  return setThemeVal.value || currentThemeStorage.value || ThemeType.WHITE;
12125
12163
  });
12126
12164
  const setTheme = (theme2) => {
@@ -12183,7 +12221,7 @@ const usePageResize = () => {
12183
12221
  md: 1024,
12184
12222
  lg: 768
12185
12223
  };
12186
- const widthType = computed$1(() => {
12224
+ const widthType = computed(() => {
12187
12225
  if (width.value > widthConfig.xxl) {
12188
12226
  return "xxl";
12189
12227
  } else if (width.value <= widthConfig.xxl && width.value > widthConfig.xl) {
@@ -12196,7 +12234,7 @@ const usePageResize = () => {
12196
12234
  return "sm";
12197
12235
  }
12198
12236
  });
12199
- const isMobile = computed$1(() => {
12237
+ const isMobile = computed(() => {
12200
12238
  return width.value <= widthConfig["md"];
12201
12239
  });
12202
12240
  return { widthType, width, widthConfig, isMobile };
@@ -12231,6 +12269,12 @@ if (isBrowser) {
12231
12269
  }
12232
12270
  const sessionStorage$1 = sessionStorage;
12233
12271
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/AK0AFXKH2BMFmN+kxqfF4wVXwA0snQdUgQcXtwoFgLJk/T6xqG7Kx2w4xi5Mw37ziQF88fXd/NHe58scZxfYBdGzBQkYFkxVpSBQAXkXZJC8CYMUXTQCxZEU0sATsG/c+PwOL3/TVnhBY0vYqyABk7jjGJSnvc0L72qMeQaxB8gIWGGPgtjw+fRw2G+fKYMv/nQ3dwUuG2VNGfPMCagYd+yiWFGXH8Dcfzae7cRr2y/vzHJKuM3gGh4cX+tUXKAHHLvD1nDqAFuLnMc+ezyLlXnVFS5XN4ziUQpbAgySqGAF3Qmqpjc2prr1+6z/7/zK917e2XJg70eXtMFtmT3vtkDbw9ZzKon+0pvUnHhc5FTiDC+a8xg1AqAeuCIATIqpqUCUcva/G+dXD7v39y/v3WGtvGlDHhT2VGD4+zkwU0sdHAjyWAxeukPN0rk2L/J5jp0c98omRcGoakCKnoik3BZFpRQmDHz1XPGPQb9ljemgo5uqrME1hRWpZIaBOzLA5u+paQtYLsX1Ks8ABpZEJDAy0wcuuWUQFU0FZFBiCmh9fWrgIvmah2iikqJPH8j3Q3h/lDWPrKLNt9n1CrrP+csn5+hyhVN2cE/VkIL7UQIXXJKBkX8QoTLhLeNE/cqVR/nABRpq8oNgl/R50fKDsfp0cG2UdY8EsLnMMVXBGi/4OSvMFE4XbXnxtopMyTEXlNFFEQmqGR6IVigQVVBSAWQ2mxn023zWgj4MERjJg6wslv3OTMC9UdY+EsDsISx4qYeecIgCMns+j0VBCUAkaSc2fcxZ513MahaLUs/XOJz5zpXdhf2/eZO7imt5cYfBNbkk89UN/2Wt7jtLG8NThD6gYSc0WVAy5x54twzMiEDsOS8a+/KaFXctqFah+PhM8aN1pCFflYSqhUQMcIvBrPDnh/xvF9glZxUcqKCw2PBemBOA6OZ+/e9sBUawoQC/dts9QGEvyb1DDyLGmcP+dKAu7MWHY9CD6wGJUh9rTHG/UHv6mtMBxHNDyabgBJjN+GEZ7L71L3MRRrSBKvr13xJX/K5py6CWQe49uAgUA9CacqrCgiRxBReSMwYwmBbv/PFQY1I6FyXeQu3JMafgdOPjhlbhCHYoQMl1VLhFLFMq6CXp0ss+ps91Nw0PoFIgqXAOe5V7jF2BB5diUhllcCgs8lkh5lBc0wOELv/CCpwGQCroDvbnsH4gyhz0qpJ6T1ehFxBfYlESlBqbsWnt6xS0BZIYkwTvgSX2BCSz98t3TBeOYAfG4KU3ixwcbpr9zNVbnCIJSmSOcE/Usq8TT66Zvke2yAMSN62XXypE/CVL4CiIC3Z/9ffRYw8GMUgOb2S9uDuIuRCLdRfl4YmLAKJi1kQDtFHt7+sAUroQcJzEGQhhxh8YEMeegGOWeZ9N4DQcww4EyMm8lUQlxlMCF5SzSK7pK5Z6zGm+gygUDLWW96AmJnXBAc+c5jmvmOgFRkYT8Mbi3dHy3n47MNEjuG/bgrZToSzlWFBOTfBclmEsrKtQRGs745N4HDlEoKl/A8+irXUF0uvptfyFFRJqiklh3731N7sIx7QDGfxgcXKr9fPdF0xpZpjJpq14CZXTeQlUjmeU1LAFflNd1Lugd0+o5bveyCG5pSWsl2qQ4s5qKsAAKqgmPzQ+MTPuDTiBHbsfnH7lExlB5LXRQm3EkJJ5YJFrVj8Ng16CD6ADY3W19PUmCeDuwl+OLix1O/ZMxpbY6WND48r/8SoJyT2TgjrwM5U4ejBQT+ReVEL8yT7LTsae2LFHFnzhPaxJvwmioi2NqqKh9AB6M03vxj7PxdoSA3PskqKerJiqoPJvpgMntJEYlPcFl9uP1vJv8TuDYBs8IGK366TOoDfew1ploqzG2EsTamFuXxKXOLS6MThR0Azu/WLleMpZt6EM6ssQ+HQTKmhxLPFnSPkoq9w8w7kfhAXrc0uLWC/HQicuSokQSi8VFE0DNpRk1gNX0BO4DqdgZhRwnAZakhZ4LfnVq70OnCdfW8aZeY0pCnNLrSf9GyDjAjBhTjvx0BHYmkpmQWgyVKDqnpnQX440kjg2wDo4yYVZSuDY14G/8+65JSbjlk/aRgXEhpFEHL2r+5rohqjllzKVEZhYivETUbCBwZ/9YaIDZwkQYIcHtk7BCQvowhgdcLZ9ld8K1ezuu88sctjMsQt/JC6JFAe0Rl2Vi2Sf2zxbJHspx2RLzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
12272
+ const transformUrl = (url) => {
12273
+ if (typeof window !== "undefined" && typeof location !== "undefined") {
12274
+ return url == null ? void 0 : url.replace(/gitcode\.com/g, location.host).replace(/ai\./g, "");
12275
+ }
12276
+ return url;
12277
+ };
12234
12278
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
12235
12279
  ...{
12236
12280
  name: "GAvatar"
@@ -12260,7 +12304,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12260
12304
  });
12261
12305
  return (_ctx, _cache) => {
12262
12306
  return openBlock(), createBlock(unref(Avatar), {
12263
- "img-src": imgSrc.value,
12307
+ "img-src": unref(transformUrl)(imgSrc.value),
12264
12308
  name: placeholderName.value,
12265
12309
  width: _ctx.width,
12266
12310
  height: _ctx.height,
@@ -12291,7 +12335,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12291
12335
  setup(__props, { emit: __emit }) {
12292
12336
  const props = __props;
12293
12337
  const emits = __emit;
12294
- const iconUrl = computed$1(() => {
12338
+ const iconUrl = computed(() => {
12295
12339
  const tagType = OSS_IMAGES[props.type] || "gstar";
12296
12340
  return getCNDImageUrl(tagType);
12297
12341
  });
@@ -12330,7 +12374,7 @@ const FIRST_NAMESPACE_KEY = "parent_org_path";
12330
12374
  const useBreadcrumb = () => {
12331
12375
  const router2 = useRouter();
12332
12376
  const repoInfo = inject("repoInfo");
12333
- const breadcrumb = computed$1(() => {
12377
+ const breadcrumb = computed(() => {
12334
12378
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
12335
12379
  const isSubOrg = !!((_b = (_a = router2.currentRoute) == null ? void 0 : _a.value) == null ? void 0 : _b.params[FIRST_NAMESPACE_KEY]);
12336
12380
  const full_name = ((_d = (_c = repoInfo.value) == null ? void 0 : _c.namespace) == null ? void 0 : _d.full_name) || "";
@@ -13143,7 +13187,7 @@ const _hoisted_6$8 = {
13143
13187
  };
13144
13188
  const _hoisted_7$5 = {
13145
13189
  key: 1,
13146
- src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
13190
+ src: "https://cdn-static.gitcode.host/static/images/mirrors-avata_20250411.gif",
13147
13191
  alt: "mirrors-avatar",
13148
13192
  class: "h-[24px]"
13149
13193
  };
@@ -13210,7 +13254,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13210
13254
  const orgInfo = inject("orgInfo");
13211
13255
  const otherUserInfo = inject("otherUserInfo");
13212
13256
  const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
13213
- computed$1(() => aiHubSceneValue.includes(props.scene));
13257
+ computed(() => aiHubSceneValue.includes(props.scene));
13214
13258
  const emits = __emit;
13215
13259
  const handleOrgFollow = (val) => {
13216
13260
  if (props.scene !== SceneValue.org) return;
@@ -13220,7 +13264,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13220
13264
  }
13221
13265
  emits("followDevCommunity", !val);
13222
13266
  };
13223
- const topicTag = computed$1(() => {
13267
+ const topicTag = computed(() => {
13224
13268
  var _a, _b;
13225
13269
  if (props.scene !== SceneValue.repo) return false;
13226
13270
  let repoType = 1;
@@ -13245,7 +13289,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13245
13289
  };
13246
13290
  return obj;
13247
13291
  });
13248
- const isOrg = computed$1(() => {
13292
+ const isOrg = computed(() => {
13249
13293
  var _a, _b;
13250
13294
  if (props.scene === SceneValue.repo) {
13251
13295
  return ((_b = (_a = repoInfo.value) == null ? void 0 : _a.namespace) == null ? void 0 : _b.kind) === "group";
@@ -13260,7 +13304,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13260
13304
  window.location.href = aiUrl;
13261
13305
  }
13262
13306
  };
13263
- const showTimeTopic = computed$1(() => {
13307
+ const showTimeTopic = computed(() => {
13264
13308
  var _a, _b;
13265
13309
  if (props.scene !== SceneValue.repo) return false;
13266
13310
  if (!((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at)) {
@@ -13272,7 +13316,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13272
13316
  return false;
13273
13317
  }
13274
13318
  });
13275
- const formatTime = computed$1(() => {
13319
+ const formatTime = computed(() => {
13276
13320
  var _a;
13277
13321
  return formatTimeFromNow((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at);
13278
13322
  });
@@ -13592,13 +13636,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13592
13636
  }
13593
13637
  };
13594
13638
  getTianqiRouteConfig();
13595
- const logo = computed$1(() => {
13639
+ const logo = computed(() => {
13596
13640
  if (tianqiButtonConfig.value.img) {
13597
13641
  return currentTheme.value === ThemeType.BLACK ? tianqiButtonConfig.value.img_black : tianqiButtonConfig.value.img;
13598
13642
  }
13599
13643
  return currentTheme.value === ThemeType.BLACK ? logoBlack : logoWhite;
13600
13644
  });
13601
- const customClass = computed$1(() => {
13645
+ const customClass = computed(() => {
13602
13646
  return {
13603
13647
  "custom": tianqiButtonConfig.value.img
13604
13648
  };
@@ -15409,15 +15453,11 @@ function requireCipherCore() {
15409
15453
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
15410
15454
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
15411
15455
  */
15412
- execute: function(password, keySize, ivSize, salt, hasher) {
15456
+ execute: function(password, keySize, ivSize, salt) {
15413
15457
  if (!salt) {
15414
15458
  salt = WordArray.random(64 / 8);
15415
15459
  }
15416
- if (!hasher) {
15417
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
15418
- } else {
15419
- var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
15420
- }
15460
+ var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
15421
15461
  var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
15422
15462
  key.sigBytes = keySize * 4;
15423
15463
  return CipherParams.create({ key, iv, salt });
@@ -15451,7 +15491,7 @@ function requireCipherCore() {
15451
15491
  */
15452
15492
  encrypt: function(cipher, message, password, cfg) {
15453
15493
  cfg = this.cfg.extend(cfg);
15454
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
15494
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
15455
15495
  cfg.iv = derivedParams.iv;
15456
15496
  var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
15457
15497
  ciphertext.mixIn(derivedParams);
@@ -15477,7 +15517,7 @@ function requireCipherCore() {
15477
15517
  decrypt: function(cipher, ciphertext, password, cfg) {
15478
15518
  cfg = this.cfg.extend(cfg);
15479
15519
  ciphertext = this._parse(ciphertext, cfg.format);
15480
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
15520
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
15481
15521
  cfg.iv = derivedParams.iv;
15482
15522
  var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
15483
15523
  return plaintext;
@@ -16232,23 +16272,23 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16232
16272
  const levelMap = {
16233
16273
  v1: {
16234
16274
  name: t2("gitCodeLayout.header.openSourceExplorer"),
16235
- avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v1.png",
16236
- level: "https://cdn-static.gitcode.com/static/images/points/l-v1.png"
16275
+ avatar: "https://cdn-static.gitcode.host/static/images/points/ava-v1.png",
16276
+ level: "https://cdn-static.gitcode.host/static/images/points/l-v1.png"
16237
16277
  },
16238
16278
  v2: {
16239
16279
  name: t2("gitCodeLayout.header.openSourcePioneer"),
16240
- avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v2.png",
16241
- level: "https://cdn-static.gitcode.com/static/images/points/l-v2.png"
16280
+ avatar: "https://cdn-static.gitcode.host/static/images/points/ava-v2.png",
16281
+ level: "https://cdn-static.gitcode.host/static/images/points/l-v2.png"
16242
16282
  },
16243
16283
  v3: {
16244
16284
  name: t2("gitCodeLayout.header.contributingStar"),
16245
- avatar: "https://cdn-static.gitcode.com/static/images/points/ava-v3.png",
16246
- level: "https://cdn-static.gitcode.com/static/images/points/l-v3.png"
16285
+ avatar: "https://cdn-static.gitcode.host/static/images/points/ava-v3.png",
16286
+ level: "https://cdn-static.gitcode.host/static/images/points/l-v3.png"
16247
16287
  }
16248
16288
  };
16249
16289
  const useReport2 = inject("useReport");
16250
16290
  const router2 = useRouter();
16251
- const userLevel = computed$1(() => {
16291
+ const userLevel = computed(() => {
16252
16292
  return props.accountInfo.level;
16253
16293
  });
16254
16294
  const handleUpgrade = () => {
@@ -16260,7 +16300,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16260
16300
  location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
16261
16301
  }
16262
16302
  };
16263
- const levelInfo = computed$1(() => {
16303
+ const levelInfo = computed(() => {
16264
16304
  const lv = `v${userLevel.value}`;
16265
16305
  if (userLevel.value > maxLevel) {
16266
16306
  return levelMap.v3;
@@ -16360,7 +16400,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16360
16400
  ...params
16361
16401
  };
16362
16402
  };
16363
- const blockList = computed$1(() => {
16403
+ const blockList = computed(() => {
16364
16404
  if (props.independence) {
16365
16405
  return hrefList.value;
16366
16406
  }
@@ -16378,7 +16418,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16378
16418
  });
16379
16419
  return data;
16380
16420
  };
16381
- const userMenusFormat = computed$1(() => {
16421
+ const userMenusFormat = computed(() => {
16382
16422
  if (props.userMenus) {
16383
16423
  return menueDataFormat(props.userMenus);
16384
16424
  }
@@ -16399,7 +16439,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16399
16439
  { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
16400
16440
  ]
16401
16441
  ];
16402
- const routerHref = computed$1(() => {
16442
+ const routerHref = computed(() => {
16403
16443
  var _a;
16404
16444
  return [
16405
16445
  ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseRouterMeus,
@@ -16423,7 +16463,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16423
16463
  { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
16424
16464
  ]
16425
16465
  ];
16426
- const hrefList = computed$1(() => {
16466
+ const hrefList = computed(() => {
16427
16467
  var _a;
16428
16468
  return [
16429
16469
  ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseHrefMeus,
@@ -16543,7 +16583,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16543
16583
  const { isMobile } = usePageResize();
16544
16584
  const drawerVisible = ref(false);
16545
16585
  const userInfo = inject("userInfo");
16546
- const accountInfo = computed$1(() => {
16586
+ const accountInfo = computed(() => {
16547
16587
  return userInfo.value || JSON.parse(localStorage$2.getItem("userInfo") || "{}");
16548
16588
  });
16549
16589
  const haveVisited = ref(false);
@@ -16619,7 +16659,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16619
16659
  createElementVNode("div", _hoisted_1$m, [
16620
16660
  createVNode(_sfc_main$z, {
16621
16661
  name: accountInfo.value.nickname,
16622
- src: accountInfo.value.avatar
16662
+ src: unref(transformUrl)(accountInfo.value.avatar)
16623
16663
  }, null, 8, ["name", "src"]),
16624
16664
  accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, _cache[4] || (_cache[4] = [
16625
16665
  createElementVNode("div", null, null, -1)
@@ -16649,7 +16689,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16649
16689
  createElementVNode("div", _hoisted_3$d, [
16650
16690
  createVNode(_sfc_main$z, {
16651
16691
  name: accountInfo.value.nickname,
16652
- src: accountInfo.value.avatar
16692
+ src: unref(transformUrl)(accountInfo.value.avatar)
16653
16693
  }, null, 8, ["name", "src"]),
16654
16694
  accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, _cache[5] || (_cache[5] = [
16655
16695
  createElementVNode("div", null, null, -1)
@@ -16800,19 +16840,19 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16800
16840
  var _a;
16801
16841
  const layoutConfig2 = useLayoutConfig();
16802
16842
  const { t: $t } = i18n.global;
16803
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BjHHKIj9.js"));
16804
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-B7z6x4K2.js"));
16805
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-8fg0bSuQ.js"));
16806
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-H8gk4eVl.js"));
16807
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-sCJvLGwz.js"));
16808
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DgDiVIap.js"));
16809
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BEfIzltH.js"));
16843
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CgFhq9M-.js"));
16844
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-CKbij7Qf.js"));
16845
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-D3dxhnxB.js"));
16846
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C3nRvQyU.js"));
16847
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-4jTF16hn.js"));
16848
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CkFvRE3s.js"));
16849
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BnUa9dQr.js"));
16810
16850
  const props = __props;
16811
16851
  const repoInfo = inject("repoInfo");
16812
16852
  const orgInfo = inject("orgInfo");
16813
16853
  const otherUserInfo = inject("otherUserInfo");
16814
16854
  const useReport2 = inject("useReport");
16815
- const searchInfo = computed$1(() => {
16855
+ const searchInfo = computed(() => {
16816
16856
  var _a2, _b;
16817
16857
  if (props.sceneValue === SceneValue.org && orgInfo.value) {
16818
16858
  return {
@@ -16837,12 +16877,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16837
16877
  };
16838
16878
  }
16839
16879
  });
16840
- const showRecommend = computed$1(() => {
16880
+ const showRecommend = computed(() => {
16841
16881
  return props.sceneValue === SceneValue.home || props.sceneValue === SceneValue.repo || props.sceneValue === SceneValue.org || props.sceneValue === SceneValue.user;
16842
16882
  });
16843
16883
  const isFocus = ref(false);
16844
16884
  const searchDropDownVisible = ref(false);
16845
- const dropDownVisible = computed$1(() => {
16885
+ const dropDownVisible = computed(() => {
16846
16886
  return searchDropDownVisible.value;
16847
16887
  });
16848
16888
  const route = useRoute();
@@ -16855,7 +16895,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16855
16895
  const searchHotWords = ref([]);
16856
16896
  const activeSearchKey = ref(0);
16857
16897
  const interval = ref(null);
16858
- const showRecommendSearch = computed$1(() => {
16898
+ const showRecommendSearch = computed(() => {
16859
16899
  return !searchStr.value && !projectTagVisible.value && !languageTagVisible.value && !inputIng.value;
16860
16900
  });
16861
16901
  const scrollRecommend = () => {
@@ -16871,7 +16911,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16871
16911
  localSearchInfo.value = { ...searchInfo.value };
16872
16912
  }
16873
16913
  };
16874
- const placeholderVisible = computed$1(() => {
16914
+ const placeholderVisible = computed(() => {
16875
16915
  if (!isSearchPage.value) {
16876
16916
  return !isFocus.value && !searchStr.value;
16877
16917
  }
@@ -16902,7 +16942,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16902
16942
  isSearchPage.value = true;
16903
16943
  setQueryTag();
16904
16944
  }
16905
- const projectTagVisible = computed$1(() => {
16945
+ const projectTagVisible = computed(() => {
16906
16946
  return (isSearchPage.value || isFocus.value) && localSearchInfo.value.searchScopeName;
16907
16947
  });
16908
16948
  const cnScopeMap = {
@@ -16910,10 +16950,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16910
16950
  group: $t("gitCodeLayout.header.org"),
16911
16951
  user: $t("gitCodeLayout.header.user")
16912
16952
  };
16913
- const languageTagVisible = computed$1(() => {
16953
+ const languageTagVisible = computed(() => {
16914
16954
  return (isSearchPage.value || isFocus.value) && searchStr && language.value;
16915
16955
  });
16916
- const searchScopeList = computed$1(() => {
16956
+ const searchScopeList = computed(() => {
16917
16957
  if (localSearchInfo.value.searchScope) {
16918
16958
  switch (localSearchInfo.value.searchScope) {
16919
16959
  case "repo":
@@ -17044,7 +17084,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17044
17084
  } else {
17045
17085
  hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
17046
17086
  }
17047
- window.open(hotUrl, "_blank");
17087
+ window.open(transformUrl$1(hotUrl), "_blank");
17048
17088
  return;
17049
17089
  }
17050
17090
  isSearchHistory.value = false;
@@ -17235,7 +17275,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17235
17275
  }
17236
17276
  });
17237
17277
  });
17238
- const aiSearchType = computed$1(() => {
17278
+ const aiSearchType = computed(() => {
17239
17279
  if (repoInfo.repo_type === repoTypeEnum.DATASET) {
17240
17280
  return "dataset";
17241
17281
  } else if (repoInfo.repo_type === repoTypeEnum.MODEL) {
@@ -17460,7 +17500,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17460
17500
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17461
17501
  }
17462
17502
  };
17463
- const NoticeModal = defineAsyncComponent(() => import("./notice-Cbmusvpw.js"));
17503
+ const NoticeModal = defineAsyncComponent(() => import("./notice-D2ihyyIi.js"));
17464
17504
  function clearNotice() {
17465
17505
  if (localStorage$2.getItem("validator_email")) {
17466
17506
  localStorage$2.removeItem("validator_email");
@@ -17550,15 +17590,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17550
17590
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
17551
17591
  const emit = __emit;
17552
17592
  provide("request", props.request);
17553
- provide("globalStore", computed$1(() => props.globalStore));
17554
- provide("repoInfo", computed$1(() => props.repoInfo));
17555
- provide("orgInfo", computed$1(() => props.orgInfo));
17556
- provide("userInfo", computed$1(() => props.userInfo));
17557
- provide("otherUserInfo", computed$1(() => props.otherUserInfo));
17593
+ provide("globalStore", computed(() => props.globalStore));
17594
+ provide("repoInfo", computed(() => props.repoInfo));
17595
+ provide("orgInfo", computed(() => props.orgInfo));
17596
+ provide("userInfo", computed(() => props.userInfo));
17597
+ provide("otherUserInfo", computed(() => props.otherUserInfo));
17558
17598
  provide("useReport", useReport2);
17559
- provide("isLogin", computed$1(() => props.isLogin));
17599
+ provide("isLogin", computed(() => props.isLogin));
17560
17600
  const closeStickyNotice = ref(false);
17561
- const visibleItems = computed$1(() => {
17601
+ const visibleItems = computed(() => {
17562
17602
  if (props.headerFunctions && props.headerFunctions.length > 0) {
17563
17603
  return props.headerFunctions;
17564
17604
  }
@@ -17585,7 +17625,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17585
17625
  const isModuleVisible = (auth) => {
17586
17626
  return visibleItems.value.includes(auth);
17587
17627
  };
17588
- const isHomePageHiddenMenuBtn = computed$1(() => {
17628
+ const isHomePageHiddenMenuBtn = computed(() => {
17589
17629
  return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge"].includes(route.name) && !["sm", "lg"].includes(widthType.value);
17590
17630
  });
17591
17631
  const { isMobile } = usePageResize();
@@ -17593,7 +17633,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17593
17633
  const headerRef = ref(null);
17594
17634
  const { height = 56 } = useElementSize(headerRef);
17595
17635
  const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
17596
- const headerClassName = computed$1(() => {
17636
+ const headerClassName = computed(() => {
17597
17637
  var _a2, _b;
17598
17638
  if ((_a2 = route == null ? void 0 : route.meta) == null ? void 0 : _a2.headerClassName) {
17599
17639
  return (_b = route == null ? void 0 : route.meta) == null ? void 0 : _b.headerClassName;
@@ -17603,17 +17643,17 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17603
17643
  }
17604
17644
  return "";
17605
17645
  });
17606
- const hideNav = computed$1(() => {
17646
+ const hideNav = computed(() => {
17607
17647
  var _a2;
17608
17648
  return (_a2 = route == null ? void 0 : route.meta) == null ? void 0 : _a2.hideNav;
17609
17649
  });
17610
17650
  const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
17611
- const inAIHub = computed$1(() => aiHubSceneValue.includes(props.sceneValue));
17651
+ const inAIHub = computed(() => aiHubSceneValue.includes(props.sceneValue));
17612
17652
  if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.hiddenThemeSetting)) {
17613
17653
  theme.initAutoTheme();
17614
17654
  }
17615
17655
  const isChatBot = ref(false);
17616
- const isHome = computed$1(() => props.sceneValue === SceneValue.home);
17656
+ const isHome = computed(() => props.sceneValue === SceneValue.home);
17617
17657
  const showHeaderShadow = ref(false);
17618
17658
  window.addEventListener("scroll", function() {
17619
17659
  if (window.scrollY > 1 && !showHeaderShadow.value) {
@@ -17623,7 +17663,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17623
17663
  showHeaderShadow.value = false;
17624
17664
  }
17625
17665
  });
17626
- const showNameAndIcon = computed$1(() => {
17666
+ const showNameAndIcon = computed(() => {
17627
17667
  var _a2, _b, _c;
17628
17668
  if (isModuleVisible(HeaderDisplayItem.NAME_AND_ICON) || ((_a2 = props.headerCustomProps) == null ? void 0 : _a2.errorCode)) {
17629
17669
  return true;
@@ -17639,15 +17679,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17639
17679
  useReport2(REPO_EVENT.CLICK, { module_name: ASIDE_MENU_REPO.ASIDEBTNCLICK });
17640
17680
  };
17641
17681
  const handleLogin = (type) => {
17642
- const reportLoginString = handleReportParamsByDomain("toolbar_login");
17643
17682
  emitEvent("login", {
17644
17683
  type,
17645
17684
  triggerType: "主动注册",
17646
- loginTriggerSource: type === "login" ? reportLoginString : ""
17685
+ loginTriggerSource: type === "login" ? "toolbar_login" : ""
17647
17686
  });
17648
17687
  if (type === "register") {
17649
- const reportRegisterString = handleReportParamsByDomain("toolbar_register");
17650
- sessionStorage$1.setItem(REGISTER_SOURCE_TAB, reportRegisterString);
17688
+ sessionStorage$1.setItem(REGISTER_SOURCE_TAB, "toolbar_register");
17651
17689
  sessionStorage$1.removeItem(LOGIN_MODAL_TRIGGER_SOURCE);
17652
17690
  }
17653
17691
  localStorage$2.setItem("sign_path", (window == null ? void 0 : window.location.href) || "");
@@ -17661,29 +17699,29 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17661
17699
  notice();
17662
17700
  }
17663
17701
  };
17664
- const isIndexHead = computed$1(() => {
17702
+ const isIndexHead = computed(() => {
17665
17703
  return props.bgConfig.index_head && isHome.value && window.location.pathname === "/";
17666
17704
  });
17667
17705
  const homeTabPage = ["/issues", "/pulls", "/kanban", "/discussions"];
17668
- const isShowStickyNotice = computed$1(() => {
17706
+ const isShowStickyNotice = computed(() => {
17669
17707
  return ([SceneValue.repo, SceneValue.org, SceneValue.user, SceneValue.aiHome, SceneValue.aiRepo, SceneValue.aiGuide, SceneValue.blog].includes(props.sceneValue) || isHome.value && window.location.pathname != "/" && !homeTabPage.includes(window.location.pathname)) && props.bgConfig.detail_toolbar;
17670
17708
  });
17671
- const detailToolbarImg = computed$1(() => {
17709
+ const detailToolbarImg = computed(() => {
17672
17710
  return (currentTheme.value === ThemeType.WHITE && props.sceneValue !== SceneValue.aiHome ? props.bgConfig.detail_toolbar : props.bgConfig.detail_toolbar_black) || props.bgConfig.detail_toolbar;
17673
17711
  });
17674
- const detailTopImg = computed$1(() => {
17712
+ const detailTopImg = computed(() => {
17675
17713
  return (currentTheme.value === ThemeType.WHITE ? props.bgConfig.detail_top : props.bgConfig.detail_top_black) || props.bgConfig.detail_top;
17676
17714
  });
17677
- const stickyNoticeInfo = computed$1(() => {
17715
+ const stickyNoticeInfo = computed(() => {
17678
17716
  return isShowStickyNotice.value ? detailTopImg.value : "";
17679
17717
  });
17680
- const isShowStickyNoticeByClose = computed$1(() => {
17718
+ const isShowStickyNoticeByClose = computed(() => {
17681
17719
  return Boolean(stickyNoticeInfo.value) && !closeStickyNotice.value;
17682
17720
  });
17683
- const detailBgInfo = computed$1(() => {
17721
+ const detailBgInfo = computed(() => {
17684
17722
  return isShowStickyNotice.value ? detailToolbarImg.value : "";
17685
17723
  });
17686
- const detailBgStyle = computed$1(() => {
17724
+ const detailBgStyle = computed(() => {
17687
17725
  return detailBgInfo.value ? {
17688
17726
  backgroundImage: `url(${detailBgInfo.value})`,
17689
17727
  backgroundPosition: "center",
@@ -17691,7 +17729,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17691
17729
  backgroundSize: "cover"
17692
17730
  } : {};
17693
17731
  });
17694
- const stickyNoticeStyle = computed$1(() => {
17732
+ const stickyNoticeStyle = computed(() => {
17695
17733
  return stickyNoticeInfo.value ? {
17696
17734
  backgroundImage: `url(${stickyNoticeInfo.value})`,
17697
17735
  backgroundPosition: "center",
@@ -17735,14 +17773,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17735
17773
  childComponents: props == null ? void 0 : props.loginChildComponents
17736
17774
  };
17737
17775
  };
17738
- computed$1(() => {
17776
+ computed(() => {
17739
17777
  const urlParams = new URLSearchParams(window.location.search);
17740
17778
  const isLogin = urlParams.get("isLogin");
17741
17779
  const fromId = urlParams.get("from_id");
17742
17780
  const webId = urlParams.get("web_id");
17743
17781
  return isLogin === "1" && fromId && webId;
17744
17782
  });
17745
- const isQuickAppLoginReportParams = computed$1(() => {
17783
+ const isQuickAppLoginReportParams = computed(() => {
17746
17784
  return api.get("isRegister") && api.get("success") && api.get("registerLoginMethod");
17747
17785
  });
17748
17786
  const reportHuoShan = () => {
@@ -17832,10 +17870,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17832
17870
  emit("resetPwdDirectlySuccess");
17833
17871
  });
17834
17872
  window.addEventListener("message", (event) => {
17835
- var _a2, _b;
17873
+ var _a2, _b, _c, _d, _e, _f;
17836
17874
  const action = HandleParentWindowGetLoginInfo(props.request);
17837
- if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_a2 = event.data) == null ? void 0 : _a2.type)) {
17838
- action[(_b = event.data) == null ? void 0 : _b.type](event);
17875
+ if (((_a2 = event == null ? void 0 : event.data) == null ? void 0 : _a2.type) === "main_report") {
17876
+ collectRegisterLoginEvent({ isRegister: (_b = event.data.report) == null ? void 0 : _b.isRegister, registerLoginMethod: (_c = event.data.report) == null ? void 0 : _c.registerLoginMethod, success: (_d = event.data.report) == null ? void 0 : _d.success });
17877
+ }
17878
+ if ([AuthResType.SUCCESS, AuthResType.FAIL].includes((_e = event.data) == null ? void 0 : _e.type)) {
17879
+ action[(_f = event.data) == null ? void 0 : _f.type](event);
17839
17880
  }
17840
17881
  });
17841
17882
  });
@@ -18027,14 +18068,14 @@ const useConfigSide = (request, sceneValue) => {
18027
18068
  const API = asideRequest(request);
18028
18069
  const route = useRoute();
18029
18070
  const sideLoading = ref(false);
18030
- const isEn = computed$1(() => {
18071
+ const isEn = computed(() => {
18031
18072
  return getLocaleLang() === LANG_EN;
18032
18073
  });
18033
- const showBgColor = computed$1(() => {
18074
+ const showBgColor = computed(() => {
18034
18075
  return route.meta.showBgColor || false;
18035
18076
  });
18036
18077
  const area = ref([]);
18037
- const assetMenus = computed$1(() => {
18078
+ const assetMenus = computed(() => {
18038
18079
  return [
18039
18080
  {
18040
18081
  left_menu_name_cn: "首页",
@@ -18079,10 +18120,22 @@ const useConfigSide = (request, sceneValue) => {
18079
18120
  return Object.values(grouped);
18080
18121
  };
18081
18122
  const fetchArea = async () => {
18082
- var _a;
18123
+ var _a, _b;
18083
18124
  sideLoading.value = true;
18084
18125
  const res = await API.getAsideConfig();
18085
- const asideList = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || [];
18126
+ let asideList = (((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || []).map((item) => {
18127
+ return {
18128
+ ...item,
18129
+ left_menu_url: transformUrl$1(item.left_menu_url),
18130
+ left_menu_logo: transformUrl$1(item.left_menu_logo),
18131
+ left_menu_logo_black: transformUrl$1(item.left_menu_logo_black),
18132
+ left_menu_logo_hover: transformUrl$1(item.left_menu_logo_hover),
18133
+ left_menu_logo_hover_black: transformUrl$1(item.left_menu_logo_hover_black)
18134
+ };
18135
+ });
18136
+ if (typeof window !== "undefined" && GUI_YANG_GITCODE_HOST && ((_b = window.location) == null ? void 0 : _b.origin.includes(GUI_YANG_GITCODE_HOST))) {
18137
+ asideList = asideList.filter((item) => !(item.left_menu_url && item.left_menu_url.includes("https://competition.gitcode")));
18138
+ }
18086
18139
  if (judgeIsShowAssetMenus(asideList)) {
18087
18140
  area.value = groupByArea([...assetMenus.value, ...asideList]);
18088
18141
  } else {
@@ -18152,8 +18205,8 @@ const loadUserProjectsInvolved = async (requestFn, params = {}) => {
18152
18205
  var _a;
18153
18206
  return {
18154
18207
  key: item.name,
18155
- web_url: item.web_url,
18156
- avatar: item.avatar,
18208
+ web_url: transformUrl$1(item.web_url),
18209
+ avatar: transformUrl$1(item.avatar),
18157
18210
  id: item.id,
18158
18211
  label: item.name,
18159
18212
  namespace: (_a = item.namespace_info) == null ? void 0 : _a.name
@@ -18204,9 +18257,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18204
18257
  const layoutConfig2 = useLayoutConfig();
18205
18258
  const { t: t2 } = i18n.global;
18206
18259
  const route = useRoute();
18207
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-Dsabhftc.js"));
18208
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BrEx9s4Q.js"));
18209
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BfvIv1As.js"));
18260
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-BcQqV2Wu.js"));
18261
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-m5kLZG4e.js"));
18262
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-DxsYh5Un.js"));
18210
18263
  const props = __props;
18211
18264
  console.log("slotKeys", props.slotKeys);
18212
18265
  console.log("props", props);
@@ -18224,8 +18277,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18224
18277
  const isOrganization = (item) => {
18225
18278
  return item.jump_type === JumpType.Search && item.search_type === SearchType.Organization;
18226
18279
  };
18227
- const username = computed$1(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18228
- const projectProps = computed$1(() => {
18280
+ const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18281
+ const projectProps = computed(() => {
18229
18282
  return {
18230
18283
  subShow: subShow.value.project,
18231
18284
  key: "project",
@@ -18235,7 +18288,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18235
18288
  username: username.value
18236
18289
  };
18237
18290
  });
18238
- const orgProps = computed$1(() => {
18291
+ const orgProps = computed(() => {
18239
18292
  return {
18240
18293
  subShow: subShow.value.team,
18241
18294
  type: "team",
@@ -18271,13 +18324,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18271
18324
  }
18272
18325
  return MenuItem;
18273
18326
  };
18274
- const hasOrg = computed$1(() => {
18327
+ const hasOrg = computed(() => {
18275
18328
  return props.list.some((item) => isOrganization(item));
18276
18329
  });
18277
- const hasProject = computed$1(() => {
18330
+ const hasProject = computed(() => {
18278
18331
  return props.list.some((item) => isProject(item));
18279
18332
  });
18280
- const filterList = computed$1(() => {
18333
+ const filterList = computed(() => {
18281
18334
  return props.list.filter((item) => {
18282
18335
  if (!item.select_scene || item.select_scene.length === 0) {
18283
18336
  return true;
@@ -18286,10 +18339,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18286
18339
  });
18287
18340
  });
18288
18341
  const searchKeys = ["project", "team"];
18289
- const layoutSlotKeys = computed$1(() => {
18342
+ const layoutSlotKeys = computed(() => {
18290
18343
  return props.slotKeys.filter((key) => searchKeys.includes(key));
18291
18344
  });
18292
- const mainSiteSlotKeys = computed$1(() => {
18345
+ const mainSiteSlotKeys = computed(() => {
18293
18346
  return props.slotKeys.filter((key) => !searchKeys.includes(key));
18294
18347
  });
18295
18348
  const LayoutSlotComponent = (item) => {
@@ -18575,10 +18628,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18575
18628
  __name: "SubMenuList",
18576
18629
  setup(__props) {
18577
18630
  const { t: t2 } = i18n.global;
18578
- const isEn = computed$1(() => {
18631
+ const isEn = computed(() => {
18579
18632
  return getLocaleLang() === LANG_EN;
18580
18633
  });
18581
- const linkList = computed$1(() => {
18634
+ const linkList = computed(() => {
18582
18635
  return [
18583
18636
  {
18584
18637
  name: t2("gitCodeLayout.header.helpDocument"),
@@ -18667,7 +18720,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18667
18720
  const { t: t2 } = i18n.global;
18668
18721
  const setting = createSetting();
18669
18722
  const { copyright } = setting;
18670
- const isEn = computed$1(() => {
18723
+ const isEn = computed(() => {
18671
18724
  return getLocaleLang() === LANG_EN;
18672
18725
  });
18673
18726
  return (_ctx, _cache) => {
@@ -18760,7 +18813,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18760
18813
  const route = useRoute();
18761
18814
  const request = inject("request");
18762
18815
  const props = __props;
18763
- const layoutSlotKeys = computed$1(() => {
18816
+ const layoutSlotKeys = computed(() => {
18764
18817
  return [...props.slotKeys, "project", "team"];
18765
18818
  });
18766
18819
  const useReport2 = inject("useReport");
@@ -18769,7 +18822,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18769
18822
  fetchArea();
18770
18823
  const isScroll = ref(false);
18771
18824
  const timer = ref(null);
18772
- const visibleItems = computed$1(() => {
18825
+ const visibleItems = computed(() => {
18773
18826
  switch (props.sceneValue) {
18774
18827
  case SceneValue.news:
18775
18828
  return [];
@@ -18802,8 +18855,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18802
18855
  const isModuleVisible = (auth) => {
18803
18856
  return visibleItems.value.includes(auth);
18804
18857
  };
18805
- computed$1(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18806
- const showPreferencesSetting = computed$1(() => {
18858
+ computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18859
+ const showPreferencesSetting = computed(() => {
18807
18860
  if (props.showPreferencesSetting !== void 0) return props.showPreferencesSetting;
18808
18861
  return route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
18809
18862
  });
@@ -18839,7 +18892,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18839
18892
  return item2;
18840
18893
  });
18841
18894
  };
18842
- const displayArea = computed$1(() => {
18895
+ const displayArea = computed(() => {
18843
18896
  return area.value.filter((item) => {
18844
18897
  return getAreaItem(item).length;
18845
18898
  });
@@ -18944,29 +18997,29 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18944
18997
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
18945
18998
  provide(
18946
18999
  "globalStore",
18947
- computed$1(() => props.globalStore)
19000
+ computed(() => props.globalStore)
18948
19001
  );
18949
19002
  provide("request", props.request);
18950
19003
  provide(
18951
19004
  "userInfo",
18952
- computed$1(() => props.userInfo)
19005
+ computed(() => props.userInfo)
18953
19006
  );
18954
19007
  provide("useReport", useReport2);
18955
- computed$1(() => {
19008
+ computed(() => {
18956
19009
  if (route.meta.showBgColor) return true;
18957
19010
  return false;
18958
19011
  });
18959
19012
  const sizeStore = usePageResize();
18960
- const asideSetShow = computed$1(() => {
19013
+ const asideSetShow = computed(() => {
18961
19014
  return (props.sceneValue === SceneValue.home && !sizeStore.isMobile.value || props.collapseMode) && !props.disableFlatMode;
18962
19015
  });
18963
19016
  provide("asideSetShow", asideSetShow);
18964
19017
  console.log("indexasideSetShow", asideSetShow.value);
18965
- const isHome = computed$1(() => {
19018
+ const isHome = computed(() => {
18966
19019
  return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard"].includes(route.name);
18967
19020
  });
18968
19021
  usePageResize();
18969
- const asideSize = computed$1(() => {
19022
+ const asideSize = computed(() => {
18970
19023
  if (props.collapseMode) {
18971
19024
  return ASIDE_MENU_MODE.collapse;
18972
19025
  } else {
@@ -18974,7 +19027,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18974
19027
  }
18975
19028
  });
18976
19029
  const asideSetShowLittle = useStorage("asideSetShowLittle", false);
18977
- const asideSetShowLittleMode = computed$1(() => {
19030
+ const asideSetShowLittleMode = computed(() => {
18978
19031
  if (props.collapseMode) {
18979
19032
  return true;
18980
19033
  } else if (isHome.value) {
@@ -18984,7 +19037,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18984
19037
  }
18985
19038
  });
18986
19039
  const asideDefaultWidth = useStorage("asideDefaultWidth", sizeStore.isMobile.value ? 0 : asideSize.value.expand);
18987
- const mainMarginLeftWidth = computed$1(() => {
19040
+ const mainMarginLeftWidth = computed(() => {
18988
19041
  if (!asideSetShow.value || sizeStore.isMobile.value) {
18989
19042
  return 0;
18990
19043
  }
@@ -20214,9 +20267,13 @@ async function checkUserRepositoryIssue(API, isRegister = false) {
20214
20267
  async function successResolve(params, API, isRegister = false) {
20215
20268
  var _a;
20216
20269
  const { path, userInfo, type, loginMethod } = params;
20270
+ const transformUserInfo = {
20271
+ ...userInfo,
20272
+ avatar: transformUrl$1(userInfo == null ? void 0 : userInfo.avatar)
20273
+ };
20217
20274
  if (userInfo) {
20218
- emitEvent("updateUserInfo", userInfo);
20219
- const { username, email } = userInfo;
20275
+ emitEvent("updateUserInfo", transformUserInfo);
20276
+ const { username, email } = transformUserInfo;
20220
20277
  setEmailValid(username, email);
20221
20278
  }
20222
20279
  saveLastLoginType(loginMethod);
@@ -20466,7 +20523,7 @@ const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
20466
20523
  default: logoWechat
20467
20524
  }, Symbol.toStringTag, { value: "Module" }));
20468
20525
  function useModel(props, emits) {
20469
- const vModels = computed$1({
20526
+ const vModels = computed({
20470
20527
  get() {
20471
20528
  return props.modelValue;
20472
20529
  },
@@ -20525,7 +20582,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20525
20582
  if (status) {
20526
20583
  toCountDown();
20527
20584
  }
20528
- const BtnText = computed$1(() => {
20585
+ const BtnText = computed(() => {
20529
20586
  if (DisabledBtn.value) {
20530
20587
  return `${$t("gitCodeLayout.common.hasBeenSent")} ${CountDown.value}`;
20531
20588
  } else {
@@ -20886,7 +20943,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
20886
20943
  };
20887
20944
  }
20888
20945
  };
20889
- const getItemWidth = computed$1(() => {
20946
+ const getItemWidth = computed(() => {
20890
20947
  return function(FormItem2) {
20891
20948
  if (FormItem2.width === "auto") {
20892
20949
  return "auto";
@@ -23681,7 +23738,7 @@ const _hoisted_9$1 = {
23681
23738
  const _hoisted_10$1 = { class: "my-[32px]" };
23682
23739
  const _hoisted_11$1 = { class: "flex items-center justify-between" };
23683
23740
  const _hoisted_12$1 = { class: "cursor-pointer" };
23684
- const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png";
23741
+ const GIT_CODE_LOGO_BLACK = "https://cdn-static.gitcode.host/static/images/gitcode-logo-dark.png";
23685
23742
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23686
23743
  __name: "MFA",
23687
23744
  props: {
@@ -23691,7 +23748,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23691
23748
  },
23692
23749
  emits: ["success", "back", "fail"],
23693
23750
  setup(__props, { emit: __emit }) {
23694
- const currentLogo = computed$1(() => {
23751
+ const currentLogo = computed(() => {
23695
23752
  if (currentTheme.value === ThemeType.BLACK) {
23696
23753
  return GIT_CODE_LOGO_WHITE;
23697
23754
  }
@@ -23703,7 +23760,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23703
23760
  const props = __props;
23704
23761
  const coverCode = ref("");
23705
23762
  const loading = ref(false);
23706
- const modeTitle = computed$1(() => {
23763
+ const modeTitle = computed(() => {
23707
23764
  return mode.value === "code" ? t2("gitCodeLayout.LoginModal.mfatip3") : t2("gitCodeLayout.LoginModal.mfatip4");
23708
23765
  });
23709
23766
  const inputList = ref([
@@ -23738,7 +23795,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23738
23795
  });
23739
23796
  mode.value = mo;
23740
23797
  };
23741
- const confirmDisabled = computed$1(() => {
23798
+ const confirmDisabled = computed(() => {
23742
23799
  var _a;
23743
23800
  if (mode.value === "code") {
23744
23801
  return inputList.value.find((item) => !item.value);
@@ -23914,7 +23971,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23914
23971
  }
23915
23972
  });
23916
23973
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
23917
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DCeP8y_a.js"));
23974
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Bd5_QVJj.js"));
23918
23975
  const useSlidCaptcha = () => {
23919
23976
  const { mount, unMount } = usePopup("slid-captcha-popup");
23920
23977
  const open = (config) => {
@@ -23933,7 +23990,7 @@ const useSlidCaptcha = () => {
23933
23990
  close: unMount
23934
23991
  };
23935
23992
  };
23936
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-DY2GOaRC.js"));
23993
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-CaumrA4X.js"));
23937
23994
  const useYunpianCaptcha = () => {
23938
23995
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
23939
23996
  const open = (config) => {
@@ -23967,7 +24024,7 @@ function _sfc_render(_ctx, _cache) {
23967
24024
  createElementVNode("div", { class: "w-full flex-center" }, [
23968
24025
  createElementVNode("img", {
23969
24026
  class: "w-[60px] h-[60px]",
23970
- src: "https://cdn-static.gitcode.com/static/images/common/loading.gif",
24027
+ src: "https://cdn-static.gitcode.host/static/images/common/loading.gif",
23971
24028
  alt: "loading"
23972
24029
  })
23973
24030
  ]),
@@ -24166,7 +24223,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24166
24223
  emits: ["update:modelValue", "login", "close", "link", "openHarmonyGuide", "directClose"],
24167
24224
  setup(__props, { emit: __emit }) {
24168
24225
  const layoutConfig2 = useLayoutConfig();
24169
- computed$1(() => {
24226
+ computed(() => {
24170
24227
  var _a;
24171
24228
  return layoutConfig2.VITE_AI_HOST === ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.origin);
24172
24229
  });
@@ -24188,8 +24245,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24188
24245
  const IconHb = TransAssetsUrl(IconSource, "logo-hb");
24189
24246
  const IconHW = TransAssetsUrl(IconSource, "logo-huawei");
24190
24247
  const logoType = {
24191
- black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
24192
- white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
24248
+ black: "https://cdn-static.gitcode.host/static/images/gitcode-logo-white.png",
24249
+ white: "https://cdn-static.gitcode.host/static/images/gitcode-logo-dark.png"
24193
24250
  };
24194
24251
  const formErrors = reactive({});
24195
24252
  const extraErrors = reactive({
@@ -24485,7 +24542,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24485
24542
  handleConfirm();
24486
24543
  };
24487
24544
  const MiniProgramForm = reactive([]);
24488
- const FormConfig = computed$1(() => {
24545
+ const FormConfig = computed(() => {
24489
24546
  if (formType.value === "register") {
24490
24547
  return {
24491
24548
  dict: RegisterForm.map((item) => {
@@ -25073,7 +25130,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25073
25130
  const handleFormInput = (val) => {
25074
25131
  disabled.value = val;
25075
25132
  };
25076
- const errorMsg = computed$1(() => {
25133
+ const errorMsg = computed(() => {
25077
25134
  var _a;
25078
25135
  const keys = Object.keys(formErrors);
25079
25136
  const currentForm = FormConfig.value.dict;
@@ -25588,7 +25645,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25588
25645
  }, [
25589
25646
  createElementVNode("div", _hoisted_42, [
25590
25647
  _cache[18] || (_cache[18] = createElementVNode("img", {
25591
- src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
25648
+ src: "https://cdn-static.gitcode.host/static/images/guide/openharmony.svg",
25592
25649
  alt: "",
25593
25650
  class: "w-[32px] h-[32px] inline-block harmony-icon-img"
25594
25651
  }, null, -1)),
@@ -25815,6 +25872,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25815
25872
  },
25816
25873
  __name: "Login",
25817
25874
  props: {
25875
+ isLogin: { type: Boolean },
25818
25876
  request: { type: Function, default: proxyService },
25819
25877
  loginOutFinish: {},
25820
25878
  loginSuccess: {},
@@ -25944,51 +26002,53 @@ const index = {
25944
26002
  }
25945
26003
  };
25946
26004
  export {
25947
- emitEvent as A,
25948
- isHttps as B,
25949
- _sfc_main$z as C,
25950
- loadAsideData as D,
26005
+ LANG_EN as A,
26006
+ emitEvent as B,
26007
+ isHttps as C,
26008
+ transformUrl as D,
25951
26009
  EVENT_NAME as E,
25952
- asideRequest as F,
26010
+ _sfc_main$z as F,
25953
26011
  GIcon as G,
25954
- ToolsFloat as H,
25955
- _sfc_main as I,
25956
- GitCodeAside as J,
25957
- GitCodeHeader as K,
26012
+ loadAsideData as H,
26013
+ asideRequest as I,
26014
+ ToolsFloat as J,
26015
+ _sfc_main as K,
25958
26016
  LANG_KEY as L,
25959
- useLogin as M,
25960
- setLayoutConfig as N,
25961
- GitCodeLayoutEmitter as O,
25962
- setTheme as P,
25963
- index as Q,
26017
+ GitCodeAside as M,
26018
+ GitCodeHeader as N,
26019
+ useLogin as O,
26020
+ setLayoutConfig as P,
26021
+ GitCodeLayoutEmitter as Q,
25964
26022
  REPO_MODULE as R,
25965
26023
  SceneValue as S,
25966
26024
  TOPIC_TYPE as T,
26025
+ setTheme as U,
26026
+ index as V,
25967
26027
  _export_sfc as _,
25968
26028
  i18n as a,
25969
26029
  REPO_EVENT as b,
25970
26030
  REPO_TYPE as c,
25971
- useRequestReport as d,
26031
+ transferNumber as d,
25972
26032
  extractRepoInfoWithURL as e,
25973
- useTimeFormat as f,
25974
- LANG_ZH as g,
26033
+ useRequestReport as f,
26034
+ useTimeFormat as g,
25975
26035
  headRequest as h,
25976
26036
  isPhone as i,
25977
- usePageResize as j,
25978
- isGstarRepo as k,
26037
+ LANG_ZH as j,
26038
+ usePageResize as k,
25979
26039
  localStorage$2 as l,
25980
- _sfc_main$y as m,
25981
- isIncubationRepo as n,
25982
- highlightWords as o,
25983
- _frEventTrack as p,
25984
- getLocaleLang as q,
26040
+ isGstarRepo as m,
26041
+ _sfc_main$y as n,
26042
+ isIncubationRepo as o,
26043
+ highlightWords as p,
26044
+ _frEventTrack as q,
25985
26045
  reqCatch as r,
25986
26046
  setLoginTriggerSource as s,
25987
- transferNumber as t,
26047
+ transformUrl$1 as t,
25988
26048
  useModel as u,
25989
26049
  vElementExposure as v,
25990
26050
  useLayoutConfig as w,
25991
- ThemeType as x,
25992
- currentTheme as y,
25993
- LANG_EN as z
26051
+ getLocaleLang as x,
26052
+ ThemeType as y,
26053
+ currentTheme as z
25994
26054
  };