vue-layout-gitcode 1.1.14 → 1.1.16

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, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
1
+ import { defineComponent, computed, openBlock, createBlock, unref, normalizeProps, mergeProps, createElementBlock, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, h, getCurrentInstance, effectScope, onMounted, onUnmounted, shallowRef, ref, onBeforeMount, watch, Fragment, isRef, createVNode, Text, provide, withCtx, toDisplayString as toDisplayString$1, createCommentVNode, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withDirectives, vShow, withKeys, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, createSlots } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -91,6 +91,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
91
91
  };
92
92
  }
93
93
  });
94
+ const index_vue_vue_type_style_index_0_scoped_2e3caaf8_lang = "";
94
95
  const _export_sfc = (sfc, props) => {
95
96
  const target = sfc.__vccOpts || sfc;
96
97
  for (const [key, val] of props) {
@@ -98,7 +99,7 @@ const _export_sfc = (sfc, props) => {
98
99
  }
99
100
  return target;
100
101
  };
101
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
102
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-2e3caaf8"]]);
102
103
  const defaultConfig = {
103
104
  VITE_ENV: "production",
104
105
  VITE_HOST: "https://gitcode.com",
@@ -251,7 +252,8 @@ function sha1$1(s) {
251
252
  const l = (data.length + 8 >>> 6 << 4) + 16;
252
253
  var s = new Uint8Array(l << 2);
253
254
  s.set(new Uint8Array(data.buffer)), s = new Uint32Array(s.buffer);
254
- for (t2 = new DataView(s.buffer), i = 0; i < l; i++) s[i] = t2.getUint32(i << 2);
255
+ for (t2 = new DataView(s.buffer), i = 0; i < l; i++)
256
+ s[i] = t2.getUint32(i << 2);
255
257
  s[data.length >> 2] |= 128 << 24 - (data.length & 3) * 8;
256
258
  s[l - 1] = data.length << 3;
257
259
  const w = [];
@@ -280,10 +282,12 @@ function sha1$1(s) {
280
282
  for (j = 0; j < 80; j++) {
281
283
  w[j] = j < 16 ? s[i + j] : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1), t2 = rol(m[0], 5) + f[j / 20 | 0]() + m[4] + w[j] + k[j / 20 | 0] | 0, m[1] = rol(m[1], 30), m.pop(), m.unshift(t2);
282
284
  }
283
- for (j = 0; j < 5; j++) m[j] = m[j] + o[j] | 0;
285
+ for (j = 0; j < 5; j++)
286
+ m[j] = m[j] + o[j] | 0;
284
287
  }
285
288
  t2 = new DataView(new Uint32Array(m).buffer);
286
- for (var i = 0; i < 5; i++) m[i] = t2.getUint32(i << 2);
289
+ for (var i = 0; i < 5; i++)
290
+ m[i] = t2.getUint32(i << 2);
287
291
  const hex = Array.prototype.map.call(new Uint8Array(new Uint32Array(m).buffer), function(e) {
288
292
  return (e < 16 ? "0" : "") + e.toString(16);
289
293
  }).join("");
@@ -295,12 +299,15 @@ function encodeUTF8(s) {
295
299
  let c;
296
300
  let x;
297
301
  for (i = 0; i < s.length; i++) {
298
- if ((c = s.charCodeAt(i)) < 128) r.push(c);
299
- else if (c < 2048) r.push(192 + (c >> 6 & 31), 128 + (c & 63));
302
+ if ((c = s.charCodeAt(i)) < 128)
303
+ r.push(c);
304
+ else if (c < 2048)
305
+ r.push(192 + (c >> 6 & 31), 128 + (c & 63));
300
306
  else {
301
307
  if ((x = c ^ 55296) >> 10 === 0) {
302
308
  c = (x << 10) + (s.charCodeAt(++i) ^ 56320) + 65536, r.push(240 + (c >> 18 & 7), 128 + (c >> 12 & 63));
303
- } else r.push(224 + (c >> 12 & 15));
309
+ } else
310
+ r.push(224 + (c >> 12 & 15));
304
311
  r.push(128 + (c >> 6 & 63), 128 + (c & 63));
305
312
  }
306
313
  }
@@ -308,7 +315,8 @@ function encodeUTF8(s) {
308
315
  }
309
316
  function udeskInit(config = {}) {
310
317
  var _a, _b, _c;
311
- if (window.ud) return;
318
+ if (window.ud)
319
+ return;
312
320
  const randomNum = generateRandomString(16);
313
321
  const nowTimeStr = Date.now().toString();
314
322
  const userInfo = localStorage$2.getItem("userInfo") || "";
@@ -365,8 +373,16 @@ var SceneValue = /* @__PURE__ */ ((SceneValue2) => {
365
373
  const REPO_PAGE_SIZE = {
366
374
  // 仓库页面头部高度
367
375
  HEADERS_HEIGHT: 56,
376
+ // 仓库页面头部高度(包含安全区域)
377
+ HEADERS_SAFE_HEIGHT: 96,
368
378
  // 仓库页面tabs菜单高度
369
- REPO_INFO_HEIGHT: 52
379
+ REPO_INFO_HEIGHT: 52,
380
+ // 仓库页面文件列表距离顶部距离
381
+ GAP_TOP: 32,
382
+ // 仓库页面文件列表距离底部距离
383
+ GAP_BOTTOM: 36,
384
+ // 仓库页面文件列表距离左右距离
385
+ PADDING_NORMAl: 16
370
386
  };
371
387
  var ToolsFloatDisplayItem = /* @__PURE__ */ ((ToolsFloatDisplayItem2) => {
372
388
  ToolsFloatDisplayItem2["GROWTH_CENTER"] = "0301";
@@ -436,23 +452,25 @@ const HARMONY_SURVEY_DELAY = "harmony-survey-delay";
436
452
  const UTM_SOURCE = "utm_source";
437
453
  const PASSPORT_PREFIX = "/uc";
438
454
  const AUTH_WINDOW = "auth_window";
439
- /*! @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 */
440
- const {
441
- entries,
442
- setPrototypeOf,
443
- isFrozen,
444
- getPrototypeOf: getPrototypeOf$1,
445
- getOwnPropertyDescriptor
446
- } = Object;
447
- let {
448
- freeze,
449
- seal,
450
- create: create$1
451
- } = Object;
452
- let {
453
- apply: apply$1,
454
- construct
455
- } = typeof Reflect !== "undefined" && Reflect;
455
+ /*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE */
456
+ function _toConsumableArray(arr) {
457
+ if (Array.isArray(arr)) {
458
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
459
+ arr2[i] = arr[i];
460
+ }
461
+ return arr2;
462
+ } else {
463
+ return Array.from(arr);
464
+ }
465
+ }
466
+ var hasOwnProperty$c = Object.hasOwnProperty, setPrototypeOf = Object.setPrototypeOf, isFrozen = Object.isFrozen, getPrototypeOf$1 = Object.getPrototypeOf, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
467
+ var freeze = Object.freeze, seal = Object.seal, create$1 = Object.create;
468
+ var _ref = typeof Reflect !== "undefined" && Reflect, apply$1 = _ref.apply, construct = _ref.construct;
469
+ if (!apply$1) {
470
+ apply$1 = function apply2(fun, thisValue, args) {
471
+ return fun.apply(thisValue, args);
472
+ };
473
+ }
456
474
  if (!freeze) {
457
475
  freeze = function freeze2(x) {
458
476
  return x;
@@ -463,36 +481,24 @@ if (!seal) {
463
481
  return x;
464
482
  };
465
483
  }
466
- if (!apply$1) {
467
- apply$1 = function apply2(fun, thisValue, args) {
468
- return fun.apply(thisValue, args);
469
- };
470
- }
471
484
  if (!construct) {
472
485
  construct = function construct2(Func, args) {
473
- return new Func(...args);
486
+ return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();
474
487
  };
475
488
  }
476
- const arrayForEach = unapply(Array.prototype.forEach);
477
- const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
478
- const arrayPop = unapply(Array.prototype.pop);
479
- const arrayPush$3 = unapply(Array.prototype.push);
480
- const arraySplice = unapply(Array.prototype.splice);
481
- const stringToLowerCase = unapply(String.prototype.toLowerCase);
482
- const stringToString = unapply(String.prototype.toString);
483
- const stringMatch = unapply(String.prototype.match);
484
- const stringReplace = unapply(String.prototype.replace);
485
- const stringIndexOf = unapply(String.prototype.indexOf);
486
- const stringTrim = unapply(String.prototype.trim);
487
- const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
488
- const regExpTest = unapply(RegExp.prototype.test);
489
- const typeErrorCreate = unconstruct(TypeError);
489
+ var arrayForEach = unapply(Array.prototype.forEach);
490
+ var arrayPop = unapply(Array.prototype.pop);
491
+ var arrayPush$3 = unapply(Array.prototype.push);
492
+ var stringToLowerCase = unapply(String.prototype.toLowerCase);
493
+ var stringMatch = unapply(String.prototype.match);
494
+ var stringReplace = unapply(String.prototype.replace);
495
+ var stringIndexOf = unapply(String.prototype.indexOf);
496
+ var stringTrim = unapply(String.prototype.trim);
497
+ var regExpTest = unapply(RegExp.prototype.test);
498
+ var typeErrorCreate = unconstruct(TypeError);
490
499
  function unapply(func) {
491
500
  return function(thisArg) {
492
- if (thisArg instanceof RegExp) {
493
- thisArg.lastIndex = 0;
494
- }
495
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
501
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
496
502
  args[_key - 1] = arguments[_key];
497
503
  }
498
504
  return apply$1(func, thisArg, args);
@@ -500,22 +506,21 @@ function unapply(func) {
500
506
  }
501
507
  function unconstruct(func) {
502
508
  return function() {
503
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
509
+ for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
504
510
  args[_key2] = arguments[_key2];
505
511
  }
506
512
  return construct(func, args);
507
513
  };
508
514
  }
509
515
  function addToSet(set, array) {
510
- let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
511
516
  if (setPrototypeOf) {
512
517
  setPrototypeOf(set, null);
513
518
  }
514
- let l = array.length;
519
+ var l = array.length;
515
520
  while (l--) {
516
- let element = array[l];
521
+ var element = array[l];
517
522
  if (typeof element === "string") {
518
- const lcElement = transformCaseFunc(element);
523
+ var lcElement = stringToLowerCase(element);
519
524
  if (lcElement !== element) {
520
525
  if (!isFrozen(array)) {
521
526
  array[l] = lcElement;
@@ -527,34 +532,19 @@ function addToSet(set, array) {
527
532
  }
528
533
  return set;
529
534
  }
530
- function cleanArray(array) {
531
- for (let index2 = 0; index2 < array.length; index2++) {
532
- const isPropertyExist = objectHasOwnProperty(array, index2);
533
- if (!isPropertyExist) {
534
- array[index2] = null;
535
- }
536
- }
537
- return array;
538
- }
539
535
  function clone(object) {
540
- const newObject = create$1(null);
541
- for (const [property, value] of entries(object)) {
542
- const isPropertyExist = objectHasOwnProperty(object, property);
543
- if (isPropertyExist) {
544
- if (Array.isArray(value)) {
545
- newObject[property] = cleanArray(value);
546
- } else if (value && typeof value === "object" && value.constructor === Object) {
547
- newObject[property] = clone(value);
548
- } else {
549
- newObject[property] = value;
550
- }
536
+ var newObject = create$1(null);
537
+ var property = void 0;
538
+ for (property in object) {
539
+ if (apply$1(hasOwnProperty$c, object, [property])) {
540
+ newObject[property] = object[property];
551
541
  }
552
542
  }
553
543
  return newObject;
554
544
  }
555
545
  function lookupGetter(object, prop) {
556
546
  while (object !== null) {
557
- const desc = getOwnPropertyDescriptor(object, prop);
547
+ var desc = getOwnPropertyDescriptor(object, prop);
558
548
  if (desc) {
559
549
  if (desc.get) {
560
550
  return unapply(desc.get);
@@ -565,79 +555,69 @@ function lookupGetter(object, prop) {
565
555
  }
566
556
  object = getPrototypeOf$1(object);
567
557
  }
568
- function fallbackValue() {
558
+ function fallbackValue(element) {
559
+ console.warn("fallback value for", element);
569
560
  return null;
570
561
  }
571
562
  return fallbackValue;
572
563
  }
573
- 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"]);
574
- 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"]);
575
- 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"]);
576
- 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"]);
577
- 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"]);
578
- const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
579
- const text = freeze(["#text"]);
580
- 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"]);
581
- 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"]);
582
- 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"]);
583
- const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
584
- const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
585
- const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
586
- const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
587
- const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
588
- const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
589
- const IS_ALLOWED_URI = seal(
590
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
564
+ var html = 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"]);
565
+ var svg = 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"]);
566
+ var svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
567
+ var svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "fedropshadow", "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"]);
568
+ var mathMl = 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"]);
569
+ var mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
570
+ var text = freeze(["#text"]);
571
+ var html$1 = 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", "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", "xmlns", "slot"]);
572
+ var svg$1 = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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"]);
573
+ var mathMl$1 = 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"]);
574
+ var xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
575
+ var MUSTACHE_EXPR = seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm);
576
+ var ERB_EXPR = seal(/<%[\s\S]*|[\s\S]*%>/gm);
577
+ var DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/);
578
+ var ARIA_ATTR = seal(/^aria-[\-\w]+$/);
579
+ var IS_ALLOWED_URI = seal(
580
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
591
581
  // eslint-disable-line no-useless-escape
592
582
  );
593
- const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
594
- const ATTR_WHITESPACE = seal(
583
+ var IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
584
+ var ATTR_WHITESPACE = seal(
595
585
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
596
586
  // eslint-disable-line no-control-regex
597
587
  );
598
- const DOCTYPE_NAME = seal(/^html$/i);
599
- const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
600
- var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
601
- __proto__: null,
602
- ARIA_ATTR,
603
- ATTR_WHITESPACE,
604
- CUSTOM_ELEMENT,
605
- DATA_ATTR,
606
- DOCTYPE_NAME,
607
- ERB_EXPR,
608
- IS_ALLOWED_URI,
609
- IS_SCRIPT_OR_DATA,
610
- MUSTACHE_EXPR,
611
- TMPLIT_EXPR
612
- });
613
- const NODE_TYPE = {
614
- element: 1,
615
- text: 3,
616
- // Deprecated
617
- progressingInstruction: 7,
618
- comment: 8,
619
- document: 9
588
+ var DOCTYPE_NAME = seal(/^html$/i);
589
+ var _typeof$2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
590
+ return typeof obj;
591
+ } : function(obj) {
592
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
620
593
  };
621
- const getGlobal = function getGlobal2() {
594
+ function _toConsumableArray$1(arr) {
595
+ if (Array.isArray(arr)) {
596
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
597
+ arr2[i] = arr[i];
598
+ }
599
+ return arr2;
600
+ } else {
601
+ return Array.from(arr);
602
+ }
603
+ }
604
+ var getGlobal = function getGlobal2() {
622
605
  return typeof window === "undefined" ? null : window;
623
606
  };
624
- const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
625
- if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
607
+ var _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, document2) {
608
+ if ((typeof trustedTypes === "undefined" ? "undefined" : _typeof$2(trustedTypes)) !== "object" || typeof trustedTypes.createPolicy !== "function") {
626
609
  return null;
627
610
  }
628
- let suffix = null;
629
- const ATTR_NAME = "data-tt-policy-suffix";
630
- if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
631
- suffix = purifyHostElement.getAttribute(ATTR_NAME);
611
+ var suffix = null;
612
+ var ATTR_NAME = "data-tt-policy-suffix";
613
+ if (document2.currentScript && document2.currentScript.hasAttribute(ATTR_NAME)) {
614
+ suffix = document2.currentScript.getAttribute(ATTR_NAME);
632
615
  }
633
- const policyName = "dompurify" + (suffix ? "#" + suffix : "");
616
+ var policyName = "dompurify" + (suffix ? "#" + suffix : "");
634
617
  try {
635
618
  return trustedTypes.createPolicy(policyName, {
636
- createHTML(html2) {
637
- return html2;
638
- },
639
- createScriptURL(scriptUrl) {
640
- return scriptUrl;
619
+ createHTML: function createHTML(html$$1) {
620
+ return html$$1;
641
621
  }
642
622
  });
643
623
  } catch (_) {
@@ -645,87 +625,49 @@ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTyp
645
625
  return null;
646
626
  }
647
627
  };
648
- const _createHooksMap = function _createHooksMap2() {
649
- return {
650
- afterSanitizeAttributes: [],
651
- afterSanitizeElements: [],
652
- afterSanitizeShadowDOM: [],
653
- beforeSanitizeAttributes: [],
654
- beforeSanitizeElements: [],
655
- beforeSanitizeShadowDOM: [],
656
- uponSanitizeAttribute: [],
657
- uponSanitizeElement: [],
658
- uponSanitizeShadowNode: []
659
- };
660
- };
661
628
  function createDOMPurify() {
662
- let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
663
- const DOMPurify = (root2) => createDOMPurify(root2);
664
- DOMPurify.version = "3.2.5";
629
+ var window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
630
+ var DOMPurify = function DOMPurify2(root2) {
631
+ return createDOMPurify(root2);
632
+ };
633
+ DOMPurify.version = "2.3.6";
665
634
  DOMPurify.removed = [];
666
- if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
635
+ if (!window2 || !window2.document || window2.document.nodeType !== 9) {
667
636
  DOMPurify.isSupported = false;
668
637
  return DOMPurify;
669
638
  }
670
- let {
671
- document: document2
672
- } = window2;
673
- const originalDocument = document2;
674
- const currentScript = originalDocument.currentScript;
675
- const {
676
- DocumentFragment,
677
- HTMLTemplateElement,
678
- Node,
679
- Element,
680
- NodeFilter,
681
- NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
682
- HTMLFormElement,
683
- DOMParser,
684
- trustedTypes
685
- } = window2;
686
- const ElementPrototype = Element.prototype;
687
- const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
688
- const remove = lookupGetter(ElementPrototype, "remove");
689
- const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
690
- const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
691
- const getParentNode = lookupGetter(ElementPrototype, "parentNode");
639
+ var originalDocument = window2.document;
640
+ var document2 = window2.document;
641
+ var DocumentFragment = window2.DocumentFragment, HTMLTemplateElement = window2.HTMLTemplateElement, Node = window2.Node, Element = window2.Element, NodeFilter = window2.NodeFilter, _window$NamedNodeMap = window2.NamedNodeMap, NamedNodeMap = _window$NamedNodeMap === void 0 ? window2.NamedNodeMap || window2.MozNamedAttrMap : _window$NamedNodeMap, HTMLFormElement = window2.HTMLFormElement, DOMParser = window2.DOMParser, trustedTypes = window2.trustedTypes;
642
+ var ElementPrototype = Element.prototype;
643
+ var cloneNode = lookupGetter(ElementPrototype, "cloneNode");
644
+ var getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
645
+ var getChildNodes = lookupGetter(ElementPrototype, "childNodes");
646
+ var getParentNode = lookupGetter(ElementPrototype, "parentNode");
692
647
  if (typeof HTMLTemplateElement === "function") {
693
- const template = document2.createElement("template");
648
+ var template = document2.createElement("template");
694
649
  if (template.content && template.content.ownerDocument) {
695
650
  document2 = template.content.ownerDocument;
696
651
  }
697
652
  }
698
- let trustedTypesPolicy;
699
- let emptyHTML = "";
700
- const {
701
- implementation,
702
- createNodeIterator,
703
- createDocumentFragment,
704
- getElementsByTagName
705
- } = document2;
706
- const {
707
- importNode
708
- } = originalDocument;
709
- let hooks = _createHooksMap();
710
- DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode === "function" && implementation && implementation.createHTMLDocument !== void 0;
711
- const {
712
- MUSTACHE_EXPR: MUSTACHE_EXPR2,
713
- ERB_EXPR: ERB_EXPR2,
714
- TMPLIT_EXPR: TMPLIT_EXPR2,
715
- DATA_ATTR: DATA_ATTR2,
716
- ARIA_ATTR: ARIA_ATTR2,
717
- IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2,
718
- ATTR_WHITESPACE: ATTR_WHITESPACE2,
719
- CUSTOM_ELEMENT: CUSTOM_ELEMENT2
720
- } = EXPRESSIONS;
721
- let {
722
- IS_ALLOWED_URI: IS_ALLOWED_URI$1
723
- } = EXPRESSIONS;
724
- let ALLOWED_TAGS = null;
725
- const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
726
- let ALLOWED_ATTR = null;
727
- const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
728
- let CUSTOM_ELEMENT_HANDLING = Object.seal(create$1(null, {
653
+ var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);
654
+ var emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML("") : "";
655
+ var _document = document2, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;
656
+ var importNode = originalDocument.importNode;
657
+ var documentMode = {};
658
+ try {
659
+ documentMode = clone(document2).documentMode ? document2.documentMode : {};
660
+ } catch (_) {
661
+ }
662
+ var hooks = {};
663
+ DOMPurify.isSupported = typeof getParentNode === "function" && implementation && typeof implementation.createHTMLDocument !== "undefined" && documentMode !== 9;
664
+ var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR, ERB_EXPR$$1 = ERB_EXPR, DATA_ATTR$$1 = DATA_ATTR, ARIA_ATTR$$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;
665
+ var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;
666
+ var ALLOWED_TAGS = null;
667
+ var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));
668
+ var ALLOWED_ATTR = null;
669
+ var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));
670
+ var CUSTOM_ELEMENT_HANDLING = Object.seal(Object.create(null, {
729
671
  tagNameCheck: {
730
672
  writable: true,
731
673
  configurable: false,
@@ -745,92 +687,72 @@ function createDOMPurify() {
745
687
  value: false
746
688
  }
747
689
  }));
748
- let FORBID_TAGS = null;
749
- let FORBID_ATTR = null;
750
- let ALLOW_ARIA_ATTR = true;
751
- let ALLOW_DATA_ATTR = true;
752
- let ALLOW_UNKNOWN_PROTOCOLS = false;
753
- let ALLOW_SELF_CLOSE_IN_ATTR = true;
754
- let SAFE_FOR_TEMPLATES = false;
755
- let SAFE_FOR_XML = true;
756
- let WHOLE_DOCUMENT = false;
757
- let SET_CONFIG = false;
758
- let FORCE_BODY = false;
759
- let RETURN_DOM = false;
760
- let RETURN_DOM_FRAGMENT = false;
761
- let RETURN_TRUSTED_TYPE = false;
762
- let SANITIZE_DOM = true;
763
- let SANITIZE_NAMED_PROPS = false;
764
- const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
765
- let KEEP_CONTENT = true;
766
- let IN_PLACE = false;
767
- let USE_PROFILES = {};
768
- let FORBID_CONTENTS = null;
769
- const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
770
- let DATA_URI_TAGS = null;
771
- const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
772
- let URI_SAFE_ATTRIBUTES = null;
773
- const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
774
- const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
775
- const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
776
- const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
777
- let NAMESPACE = HTML_NAMESPACE;
778
- let IS_EMPTY_INPUT = false;
779
- let ALLOWED_NAMESPACES = null;
780
- const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
781
- let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
782
- let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
783
- const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
784
- let PARSER_MEDIA_TYPE = null;
785
- const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
786
- const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
787
- let transformCaseFunc = null;
788
- let CONFIG = null;
789
- const formElement = document2.createElement("form");
790
- const isRegexOrFunction = function isRegexOrFunction2(testValue) {
690
+ var FORBID_TAGS = null;
691
+ var FORBID_ATTR = null;
692
+ var ALLOW_ARIA_ATTR = true;
693
+ var ALLOW_DATA_ATTR = true;
694
+ var ALLOW_UNKNOWN_PROTOCOLS = false;
695
+ var SAFE_FOR_TEMPLATES = false;
696
+ var WHOLE_DOCUMENT = false;
697
+ var SET_CONFIG = false;
698
+ var FORCE_BODY = false;
699
+ var RETURN_DOM = false;
700
+ var RETURN_DOM_FRAGMENT = false;
701
+ var RETURN_TRUSTED_TYPE = false;
702
+ var SANITIZE_DOM = true;
703
+ var KEEP_CONTENT = true;
704
+ var IN_PLACE = false;
705
+ var USE_PROFILES = {};
706
+ var FORBID_CONTENTS = null;
707
+ var DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
708
+ var DATA_URI_TAGS = null;
709
+ var DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
710
+ var URI_SAFE_ATTRIBUTES = null;
711
+ var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
712
+ var MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
713
+ var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
714
+ var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
715
+ var NAMESPACE = HTML_NAMESPACE;
716
+ var IS_EMPTY_INPUT = false;
717
+ var PARSER_MEDIA_TYPE = void 0;
718
+ var SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
719
+ var DEFAULT_PARSER_MEDIA_TYPE = "text/html";
720
+ var transformCaseFunc = void 0;
721
+ var CONFIG = null;
722
+ var formElement = document2.createElement("form");
723
+ var isRegexOrFunction = function isRegexOrFunction2(testValue) {
791
724
  return testValue instanceof RegExp || testValue instanceof Function;
792
725
  };
793
- const _parseConfig = function _parseConfig2() {
794
- let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
726
+ var _parseConfig = function _parseConfig2(cfg) {
795
727
  if (CONFIG && CONFIG === cfg) {
796
728
  return;
797
729
  }
798
- if (!cfg || typeof cfg !== "object") {
730
+ if (!cfg || (typeof cfg === "undefined" ? "undefined" : _typeof$2(cfg)) !== "object") {
799
731
  cfg = {};
800
732
  }
801
733
  cfg = clone(cfg);
802
- PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
803
- SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
804
- transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
805
- ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
806
- ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
807
- ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
808
- 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;
809
- 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;
810
- FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
811
- FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};
812
- FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};
813
- USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
734
+ ALLOWED_TAGS = "ALLOWED_TAGS" in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;
735
+ ALLOWED_ATTR = "ALLOWED_ATTR" in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;
736
+ URI_SAFE_ATTRIBUTES = "ADD_URI_SAFE_ATTR" in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;
737
+ DATA_URI_TAGS = "ADD_DATA_URI_TAGS" in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;
738
+ FORBID_CONTENTS = "FORBID_CONTENTS" in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;
739
+ FORBID_TAGS = "FORBID_TAGS" in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};
740
+ FORBID_ATTR = "FORBID_ATTR" in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};
741
+ USE_PROFILES = "USE_PROFILES" in cfg ? cfg.USE_PROFILES : false;
814
742
  ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
815
743
  ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
816
744
  ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
817
- ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
818
745
  SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
819
- SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
820
746
  WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
821
747
  RETURN_DOM = cfg.RETURN_DOM || false;
822
748
  RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
823
749
  RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
824
750
  FORCE_BODY = cfg.FORCE_BODY || false;
825
751
  SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
826
- SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
827
752
  KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
828
753
  IN_PLACE = cfg.IN_PLACE || false;
829
- IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
754
+ IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;
830
755
  NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
831
- MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
832
- HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
833
- CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
834
756
  if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
835
757
  CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
836
758
  }
@@ -840,6 +762,11 @@ function createDOMPurify() {
840
762
  if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
841
763
  CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
842
764
  }
765
+ PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
766
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE : PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE;
767
+ transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? function(x) {
768
+ return x;
769
+ } : stringToLowerCase;
843
770
  if (SAFE_FOR_TEMPLATES) {
844
771
  ALLOW_DATA_ATTR = false;
845
772
  }
@@ -847,25 +774,25 @@ function createDOMPurify() {
847
774
  RETURN_DOM = true;
848
775
  }
849
776
  if (USE_PROFILES) {
850
- ALLOWED_TAGS = addToSet({}, text);
777
+ ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));
851
778
  ALLOWED_ATTR = [];
852
779
  if (USE_PROFILES.html === true) {
853
- addToSet(ALLOWED_TAGS, html$1);
854
- addToSet(ALLOWED_ATTR, html);
780
+ addToSet(ALLOWED_TAGS, html);
781
+ addToSet(ALLOWED_ATTR, html$1);
855
782
  }
856
783
  if (USE_PROFILES.svg === true) {
857
- addToSet(ALLOWED_TAGS, svg$1);
858
- addToSet(ALLOWED_ATTR, svg);
784
+ addToSet(ALLOWED_TAGS, svg);
785
+ addToSet(ALLOWED_ATTR, svg$1);
859
786
  addToSet(ALLOWED_ATTR, xml);
860
787
  }
861
788
  if (USE_PROFILES.svgFilters === true) {
862
789
  addToSet(ALLOWED_TAGS, svgFilters);
863
- addToSet(ALLOWED_ATTR, svg);
790
+ addToSet(ALLOWED_ATTR, svg$1);
864
791
  addToSet(ALLOWED_ATTR, xml);
865
792
  }
866
793
  if (USE_PROFILES.mathMl === true) {
867
- addToSet(ALLOWED_TAGS, mathMl$1);
868
- addToSet(ALLOWED_ATTR, mathMl);
794
+ addToSet(ALLOWED_TAGS, mathMl);
795
+ addToSet(ALLOWED_ATTR, mathMl$1);
869
796
  addToSet(ALLOWED_ATTR, xml);
870
797
  }
871
798
  }
@@ -873,22 +800,22 @@ function createDOMPurify() {
873
800
  if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
874
801
  ALLOWED_TAGS = clone(ALLOWED_TAGS);
875
802
  }
876
- addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
803
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);
877
804
  }
878
805
  if (cfg.ADD_ATTR) {
879
806
  if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
880
807
  ALLOWED_ATTR = clone(ALLOWED_ATTR);
881
808
  }
882
- addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
809
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);
883
810
  }
884
811
  if (cfg.ADD_URI_SAFE_ATTR) {
885
- addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
812
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);
886
813
  }
887
814
  if (cfg.FORBID_CONTENTS) {
888
815
  if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
889
816
  FORBID_CONTENTS = clone(FORBID_CONTENTS);
890
817
  }
891
- addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
818
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);
892
819
  }
893
820
  if (KEEP_CONTENT) {
894
821
  ALLOWED_TAGS["#text"] = true;
@@ -900,43 +827,28 @@ function createDOMPurify() {
900
827
  addToSet(ALLOWED_TAGS, ["tbody"]);
901
828
  delete FORBID_TAGS.tbody;
902
829
  }
903
- if (cfg.TRUSTED_TYPES_POLICY) {
904
- if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") {
905
- throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
906
- }
907
- if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
908
- throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
909
- }
910
- trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
911
- emptyHTML = trustedTypesPolicy.createHTML("");
912
- } else {
913
- if (trustedTypesPolicy === void 0) {
914
- trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
915
- }
916
- if (trustedTypesPolicy !== null && typeof emptyHTML === "string") {
917
- emptyHTML = trustedTypesPolicy.createHTML("");
918
- }
919
- }
920
830
  if (freeze) {
921
831
  freeze(cfg);
922
832
  }
923
833
  CONFIG = cfg;
924
834
  };
925
- const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
926
- const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
927
- const _checkValidNamespace = function _checkValidNamespace2(element) {
928
- let parent = getParentNode(element);
835
+ var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
836
+ var HTML_INTEGRATION_POINTS = addToSet({}, ["foreignobject", "desc", "title", "annotation-xml"]);
837
+ var ALL_SVG_TAGS = addToSet({}, svg);
838
+ addToSet(ALL_SVG_TAGS, svgFilters);
839
+ addToSet(ALL_SVG_TAGS, svgDisallowed);
840
+ var ALL_MATHML_TAGS = addToSet({}, mathMl);
841
+ addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
842
+ var _checkValidNamespace = function _checkValidNamespace2(element) {
843
+ var parent = getParentNode(element);
929
844
  if (!parent || !parent.tagName) {
930
845
  parent = {
931
- namespaceURI: NAMESPACE,
846
+ namespaceURI: HTML_NAMESPACE,
932
847
  tagName: "template"
933
848
  };
934
849
  }
935
- const tagName = stringToLowerCase(element.tagName);
936
- const parentTagName = stringToLowerCase(parent.tagName);
937
- if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
938
- return false;
939
- }
850
+ var tagName = stringToLowerCase(element.tagName);
851
+ var parentTagName = stringToLowerCase(parent.tagName);
940
852
  if (element.namespaceURI === SVG_NAMESPACE) {
941
853
  if (parent.namespaceURI === HTML_NAMESPACE) {
942
854
  return tagName === "svg";
@@ -962,63 +874,63 @@ function createDOMPurify() {
962
874
  if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
963
875
  return false;
964
876
  }
965
- return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
966
- }
967
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) {
968
- return true;
877
+ var commonSvgAndHTMLElements = addToSet({}, ["title", "style", "font", "a", "script"]);
878
+ return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);
969
879
  }
970
880
  return false;
971
881
  };
972
- const _forceRemove = function _forceRemove2(node) {
973
- arrayPush$3(DOMPurify.removed, {
974
- element: node
975
- });
882
+ var _forceRemove = function _forceRemove2(node) {
883
+ arrayPush$3(DOMPurify.removed, { element: node });
976
884
  try {
977
- getParentNode(node).removeChild(node);
885
+ node.parentNode.removeChild(node);
978
886
  } catch (_) {
979
- remove(node);
887
+ try {
888
+ node.outerHTML = emptyHTML;
889
+ } catch (_2) {
890
+ node.remove();
891
+ }
980
892
  }
981
893
  };
982
- const _removeAttribute = function _removeAttribute2(name, element) {
894
+ var _removeAttribute = function _removeAttribute2(name, node) {
983
895
  try {
984
896
  arrayPush$3(DOMPurify.removed, {
985
- attribute: element.getAttributeNode(name),
986
- from: element
897
+ attribute: node.getAttributeNode(name),
898
+ from: node
987
899
  });
988
900
  } catch (_) {
989
901
  arrayPush$3(DOMPurify.removed, {
990
902
  attribute: null,
991
- from: element
903
+ from: node
992
904
  });
993
905
  }
994
- element.removeAttribute(name);
995
- if (name === "is") {
906
+ node.removeAttribute(name);
907
+ if (name === "is" && !ALLOWED_ATTR[name]) {
996
908
  if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
997
909
  try {
998
- _forceRemove(element);
910
+ _forceRemove(node);
999
911
  } catch (_) {
1000
912
  }
1001
913
  } else {
1002
914
  try {
1003
- element.setAttribute(name, "");
915
+ node.setAttribute(name, "");
1004
916
  } catch (_) {
1005
917
  }
1006
918
  }
1007
919
  }
1008
920
  };
1009
- const _initDocument = function _initDocument2(dirty) {
1010
- let doc = null;
1011
- let leadingWhitespace = null;
921
+ var _initDocument = function _initDocument2(dirty) {
922
+ var doc = void 0;
923
+ var leadingWhitespace = void 0;
1012
924
  if (FORCE_BODY) {
1013
925
  dirty = "<remove></remove>" + dirty;
1014
926
  } else {
1015
- const matches = stringMatch(dirty, /^[\r\n\t ]+/);
927
+ var matches = stringMatch(dirty, /^[\r\n\t ]+/);
1016
928
  leadingWhitespace = matches && matches[0];
1017
929
  }
1018
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) {
930
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml") {
1019
931
  dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + "</body></html>";
1020
932
  }
1021
- const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
933
+ var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
1022
934
  if (NAMESPACE === HTML_NAMESPACE) {
1023
935
  try {
1024
936
  doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
@@ -1028,11 +940,11 @@ function createDOMPurify() {
1028
940
  if (!doc || !doc.documentElement) {
1029
941
  doc = implementation.createDocument(NAMESPACE, "template", null);
1030
942
  try {
1031
- doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
943
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? "" : dirtyPayload;
1032
944
  } catch (_) {
1033
945
  }
1034
946
  }
1035
- const body = doc.body || doc.documentElement;
947
+ var body = doc.body || doc.documentElement;
1036
948
  if (dirty && leadingWhitespace) {
1037
949
  body.insertBefore(document2.createTextNode(leadingWhitespace), body.childNodes[0] || null);
1038
950
  }
@@ -1041,68 +953,68 @@ function createDOMPurify() {
1041
953
  }
1042
954
  return WHOLE_DOCUMENT ? doc.documentElement : body;
1043
955
  };
1044
- const _createNodeIterator = function _createNodeIterator2(root2) {
956
+ var _createIterator = function _createIterator2(root2) {
1045
957
  return createNodeIterator.call(
1046
958
  root2.ownerDocument || root2,
1047
959
  root2,
1048
960
  // eslint-disable-next-line no-bitwise
1049
- NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
1050
- null
961
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,
962
+ null,
963
+ false
1051
964
  );
1052
965
  };
1053
- const _isClobbered = function _isClobbered2(element) {
1054
- return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
966
+ var _isClobbered = function _isClobbered2(elm) {
967
+ return elm instanceof HTMLFormElement && (typeof elm.nodeName !== "string" || typeof elm.textContent !== "string" || typeof elm.removeChild !== "function" || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== "function" || typeof elm.setAttribute !== "function" || typeof elm.namespaceURI !== "string" || typeof elm.insertBefore !== "function");
1055
968
  };
1056
- const _isNode = function _isNode2(value) {
1057
- return typeof Node === "function" && value instanceof Node;
969
+ var _isNode = function _isNode2(object) {
970
+ return (typeof Node === "undefined" ? "undefined" : _typeof$2(Node)) === "object" ? object instanceof Node : object && (typeof object === "undefined" ? "undefined" : _typeof$2(object)) === "object" && typeof object.nodeType === "number" && typeof object.nodeName === "string";
1058
971
  };
1059
- function _executeHooks(hooks2, currentNode, data) {
1060
- arrayForEach(hooks2, (hook) => {
972
+ var _executeHook = function _executeHook2(entryPoint, currentNode, data) {
973
+ if (!hooks[entryPoint]) {
974
+ return;
975
+ }
976
+ arrayForEach(hooks[entryPoint], function(hook) {
1061
977
  hook.call(DOMPurify, currentNode, data, CONFIG);
1062
978
  });
1063
- }
1064
- const _sanitizeElements = function _sanitizeElements2(currentNode) {
1065
- let content = null;
1066
- _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
979
+ };
980
+ var _sanitizeElements = function _sanitizeElements2(currentNode) {
981
+ var content = void 0;
982
+ _executeHook("beforeSanitizeElements", currentNode, null);
1067
983
  if (_isClobbered(currentNode)) {
1068
984
  _forceRemove(currentNode);
1069
985
  return true;
1070
986
  }
1071
- const tagName = transformCaseFunc(currentNode.nodeName);
1072
- _executeHooks(hooks.uponSanitizeElement, currentNode, {
1073
- tagName,
1074
- allowedTags: ALLOWED_TAGS
1075
- });
1076
- if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
987
+ if (stringMatch(currentNode.nodeName, /[\u0080-\uFFFF]/)) {
1077
988
  _forceRemove(currentNode);
1078
989
  return true;
1079
990
  }
1080
- if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
991
+ var tagName = transformCaseFunc(currentNode.nodeName);
992
+ _executeHook("uponSanitizeElement", currentNode, {
993
+ tagName,
994
+ allowedTags: ALLOWED_TAGS
995
+ });
996
+ if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
1081
997
  _forceRemove(currentNode);
1082
998
  return true;
1083
999
  }
1084
- if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
1000
+ if (tagName === "select" && regExpTest(/<template/i, currentNode.innerHTML)) {
1085
1001
  _forceRemove(currentNode);
1086
1002
  return true;
1087
1003
  }
1088
1004
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1089
- if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1090
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
1005
+ if (!FORBID_TAGS[tagName] && _basicCustomElementTest(tagName)) {
1006
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
1091
1007
  return false;
1092
- }
1093
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
1008
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName))
1094
1009
  return false;
1095
- }
1096
1010
  }
1097
1011
  if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
1098
- const parentNode = getParentNode(currentNode) || currentNode.parentNode;
1099
- const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1012
+ var parentNode = getParentNode(currentNode) || currentNode.parentNode;
1013
+ var childNodes = getChildNodes(currentNode) || currentNode.childNodes;
1100
1014
  if (childNodes && parentNode) {
1101
- const childCount = childNodes.length;
1102
- for (let i = childCount - 1; i >= 0; --i) {
1103
- const childClone = cloneNode(childNodes[i], true);
1104
- childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
1105
- parentNode.insertBefore(childClone, getNextSibling(currentNode));
1015
+ var childCount = childNodes.length;
1016
+ for (var i = childCount - 1; i >= 0; --i) {
1017
+ parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));
1106
1018
  }
1107
1019
  }
1108
1020
  }
@@ -1113,94 +1025,89 @@ function createDOMPurify() {
1113
1025
  _forceRemove(currentNode);
1114
1026
  return true;
1115
1027
  }
1116
- if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
1028
+ if ((tagName === "noscript" || tagName === "noembed") && regExpTest(/<\/no(script|embed)/i, currentNode.innerHTML)) {
1117
1029
  _forceRemove(currentNode);
1118
1030
  return true;
1119
1031
  }
1120
- if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
1032
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
1121
1033
  content = currentNode.textContent;
1122
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1123
- content = stringReplace(content, expr, " ");
1124
- });
1034
+ content = stringReplace(content, MUSTACHE_EXPR$$1, " ");
1035
+ content = stringReplace(content, ERB_EXPR$$1, " ");
1125
1036
  if (currentNode.textContent !== content) {
1126
- arrayPush$3(DOMPurify.removed, {
1127
- element: currentNode.cloneNode()
1128
- });
1037
+ arrayPush$3(DOMPurify.removed, { element: currentNode.cloneNode() });
1129
1038
  currentNode.textContent = content;
1130
1039
  }
1131
1040
  }
1132
- _executeHooks(hooks.afterSanitizeElements, currentNode, null);
1041
+ _executeHook("afterSanitizeElements", currentNode, null);
1133
1042
  return false;
1134
1043
  };
1135
- const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1044
+ var _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
1136
1045
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
1137
1046
  return false;
1138
1047
  }
1139
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
1140
- else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
1048
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName))
1049
+ ;
1050
+ else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName))
1051
+ ;
1141
1052
  else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
1142
1053
  if (
1143
1054
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1144
1055
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1145
1056
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1146
- _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
1057
+ _basicCustomElementTest(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
1147
1058
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1148
1059
  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))
1149
- ) ;
1060
+ )
1061
+ ;
1150
1062
  else {
1151
1063
  return false;
1152
1064
  }
1153
- } else if (URI_SAFE_ATTRIBUTES[lcName]) ;
1154
- else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
1155
- else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
1156
- else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
1157
- else if (value) {
1065
+ } else if (URI_SAFE_ATTRIBUTES[lcName])
1066
+ ;
1067
+ else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
1068
+ ;
1069
+ else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag])
1070
+ ;
1071
+ else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, "")))
1072
+ ;
1073
+ else if (!value)
1074
+ ;
1075
+ else {
1158
1076
  return false;
1159
- } else ;
1077
+ }
1160
1078
  return true;
1161
1079
  };
1162
- const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
1163
- return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
1080
+ var _basicCustomElementTest = function _basicCustomElementTest2(tagName) {
1081
+ return tagName.indexOf("-") > 0;
1164
1082
  };
1165
- const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1166
- _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1167
- const {
1168
- attributes
1169
- } = currentNode;
1170
- if (!attributes || _isClobbered(currentNode)) {
1083
+ var _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
1084
+ var attr = void 0;
1085
+ var value = void 0;
1086
+ var lcName = void 0;
1087
+ var l = void 0;
1088
+ _executeHook("beforeSanitizeAttributes", currentNode, null);
1089
+ var attributes = currentNode.attributes;
1090
+ if (!attributes) {
1171
1091
  return;
1172
1092
  }
1173
- const hookEvent = {
1093
+ var hookEvent = {
1174
1094
  attrName: "",
1175
1095
  attrValue: "",
1176
1096
  keepAttr: true,
1177
- allowedAttributes: ALLOWED_ATTR,
1178
- forceKeepAttr: void 0
1097
+ allowedAttributes: ALLOWED_ATTR
1179
1098
  };
1180
- let l = attributes.length;
1099
+ l = attributes.length;
1181
1100
  while (l--) {
1182
- const attr = attributes[l];
1183
- const {
1184
- name,
1185
- namespaceURI,
1186
- value: attrValue
1187
- } = attr;
1188
- const lcName = transformCaseFunc(name);
1189
- let value = name === "value" ? attrValue : stringTrim(attrValue);
1101
+ attr = attributes[l];
1102
+ var _attr = attr, name = _attr.name, namespaceURI = _attr.namespaceURI;
1103
+ value = stringTrim(attr.value);
1104
+ lcName = transformCaseFunc(name);
1190
1105
  hookEvent.attrName = lcName;
1191
1106
  hookEvent.attrValue = value;
1192
1107
  hookEvent.keepAttr = true;
1193
1108
  hookEvent.forceKeepAttr = void 0;
1194
- _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
1109
+ _executeHook("uponSanitizeAttribute", currentNode, hookEvent);
1195
1110
  value = hookEvent.attrValue;
1196
- if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
1197
- _removeAttribute(name, currentNode);
1198
- value = SANITIZE_NAMED_PROPS_PREFIX + value;
1199
- }
1200
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) {
1201
- _removeAttribute(name, currentNode);
1202
- continue;
1203
- }
1204
1111
  if (hookEvent.forceKeepAttr) {
1205
1112
  continue;
1206
1113
  }
@@ -1208,85 +1115,75 @@ function createDOMPurify() {
1208
1115
  if (!hookEvent.keepAttr) {
1209
1116
  continue;
1210
1117
  }
1211
- if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
1118
+ if (regExpTest(/\/>/i, value)) {
1212
1119
  _removeAttribute(name, currentNode);
1213
1120
  continue;
1214
1121
  }
1215
1122
  if (SAFE_FOR_TEMPLATES) {
1216
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1217
- value = stringReplace(value, expr, " ");
1218
- });
1123
+ value = stringReplace(value, MUSTACHE_EXPR$$1, " ");
1124
+ value = stringReplace(value, ERB_EXPR$$1, " ");
1219
1125
  }
1220
- const lcTag = transformCaseFunc(currentNode.nodeName);
1126
+ var lcTag = transformCaseFunc(currentNode.nodeName);
1221
1127
  if (!_isValidAttribute(lcTag, lcName, value)) {
1222
1128
  continue;
1223
1129
  }
1224
- if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
1225
- if (namespaceURI) ;
1226
- else {
1227
- switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1228
- case "TrustedHTML": {
1229
- value = trustedTypesPolicy.createHTML(value);
1230
- break;
1231
- }
1232
- case "TrustedScriptURL": {
1233
- value = trustedTypesPolicy.createScriptURL(value);
1234
- break;
1235
- }
1236
- }
1237
- }
1238
- }
1239
1130
  try {
1240
1131
  if (namespaceURI) {
1241
1132
  currentNode.setAttributeNS(namespaceURI, name, value);
1242
1133
  } else {
1243
1134
  currentNode.setAttribute(name, value);
1244
1135
  }
1245
- if (_isClobbered(currentNode)) {
1246
- _forceRemove(currentNode);
1247
- } else {
1248
- arrayPop(DOMPurify.removed);
1249
- }
1136
+ arrayPop(DOMPurify.removed);
1250
1137
  } catch (_) {
1251
1138
  }
1252
1139
  }
1253
- _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
1140
+ _executeHook("afterSanitizeAttributes", currentNode, null);
1254
1141
  };
1255
- const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
1256
- let shadowNode = null;
1257
- const shadowIterator = _createNodeIterator(fragment);
1258
- _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
1142
+ var _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
1143
+ var shadowNode = void 0;
1144
+ var shadowIterator = _createIterator(fragment);
1145
+ _executeHook("beforeSanitizeShadowDOM", fragment, null);
1259
1146
  while (shadowNode = shadowIterator.nextNode()) {
1260
- _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
1261
- _sanitizeElements(shadowNode);
1262
- _sanitizeAttributes(shadowNode);
1147
+ _executeHook("uponSanitizeShadowNode", shadowNode, null);
1148
+ if (_sanitizeElements(shadowNode)) {
1149
+ continue;
1150
+ }
1263
1151
  if (shadowNode.content instanceof DocumentFragment) {
1264
1152
  _sanitizeShadowDOM2(shadowNode.content);
1265
1153
  }
1154
+ _sanitizeAttributes(shadowNode);
1266
1155
  }
1267
- _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
1156
+ _executeHook("afterSanitizeShadowDOM", fragment, null);
1268
1157
  };
1269
- DOMPurify.sanitize = function(dirty) {
1270
- let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1271
- let body = null;
1272
- let importedNode = null;
1273
- let currentNode = null;
1274
- let returnNode = null;
1158
+ DOMPurify.sanitize = function(dirty, cfg) {
1159
+ var body = void 0;
1160
+ var importedNode = void 0;
1161
+ var currentNode = void 0;
1162
+ var oldNode = void 0;
1163
+ var returnNode = void 0;
1275
1164
  IS_EMPTY_INPUT = !dirty;
1276
1165
  if (IS_EMPTY_INPUT) {
1277
1166
  dirty = "<!-->";
1278
1167
  }
1279
1168
  if (typeof dirty !== "string" && !_isNode(dirty)) {
1280
- if (typeof dirty.toString === "function") {
1169
+ if (typeof dirty.toString !== "function") {
1170
+ throw typeErrorCreate("toString is not a function");
1171
+ } else {
1281
1172
  dirty = dirty.toString();
1282
1173
  if (typeof dirty !== "string") {
1283
1174
  throw typeErrorCreate("dirty is not a string, aborting");
1284
1175
  }
1285
- } else {
1286
- throw typeErrorCreate("toString is not a function");
1287
1176
  }
1288
1177
  }
1289
1178
  if (!DOMPurify.isSupported) {
1179
+ if (_typeof$2(window2.toStaticHTML) === "object" || typeof window2.toStaticHTML === "function") {
1180
+ if (typeof dirty === "string") {
1181
+ return window2.toStaticHTML(dirty);
1182
+ }
1183
+ if (_isNode(dirty)) {
1184
+ return window2.toStaticHTML(dirty.outerHTML);
1185
+ }
1186
+ }
1290
1187
  return dirty;
1291
1188
  }
1292
1189
  if (!SET_CONFIG) {
@@ -1298,7 +1195,7 @@ function createDOMPurify() {
1298
1195
  }
1299
1196
  if (IN_PLACE) {
1300
1197
  if (dirty.nodeName) {
1301
- const tagName = transformCaseFunc(dirty.nodeName);
1198
+ var tagName = transformCaseFunc(dirty.nodeName);
1302
1199
  if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1303
1200
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
1304
1201
  }
@@ -1306,7 +1203,7 @@ function createDOMPurify() {
1306
1203
  } else if (dirty instanceof Node) {
1307
1204
  body = _initDocument("<!---->");
1308
1205
  importedNode = body.ownerDocument.importNode(dirty, true);
1309
- if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
1206
+ if (importedNode.nodeType === 1 && importedNode.nodeName === "BODY") {
1310
1207
  body = importedNode;
1311
1208
  } else if (importedNode.nodeName === "HTML") {
1312
1209
  body = importedNode;
@@ -1326,14 +1223,21 @@ function createDOMPurify() {
1326
1223
  if (body && FORCE_BODY) {
1327
1224
  _forceRemove(body.firstChild);
1328
1225
  }
1329
- const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
1226
+ var nodeIterator = _createIterator(IN_PLACE ? dirty : body);
1330
1227
  while (currentNode = nodeIterator.nextNode()) {
1331
- _sanitizeElements(currentNode);
1332
- _sanitizeAttributes(currentNode);
1228
+ if (currentNode.nodeType === 3 && currentNode === oldNode) {
1229
+ continue;
1230
+ }
1231
+ if (_sanitizeElements(currentNode)) {
1232
+ continue;
1233
+ }
1333
1234
  if (currentNode.content instanceof DocumentFragment) {
1334
1235
  _sanitizeShadowDOM(currentNode.content);
1335
1236
  }
1237
+ _sanitizeAttributes(currentNode);
1238
+ oldNode = currentNode;
1336
1239
  }
1240
+ oldNode = null;
1337
1241
  if (IN_PLACE) {
1338
1242
  return dirty;
1339
1243
  }
@@ -1346,24 +1250,22 @@ function createDOMPurify() {
1346
1250
  } else {
1347
1251
  returnNode = body;
1348
1252
  }
1349
- if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
1253
+ if (ALLOWED_ATTR.shadowroot) {
1350
1254
  returnNode = importNode.call(originalDocument, returnNode, true);
1351
1255
  }
1352
1256
  return returnNode;
1353
1257
  }
1354
- let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1258
+ var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1355
1259
  if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
1356
1260
  serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
1357
1261
  }
1358
1262
  if (SAFE_FOR_TEMPLATES) {
1359
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
1360
- serializedHTML = stringReplace(serializedHTML, expr, " ");
1361
- });
1263
+ serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, " ");
1264
+ serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, " ");
1362
1265
  }
1363
1266
  return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
1364
1267
  };
1365
- DOMPurify.setConfig = function() {
1366
- let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1268
+ DOMPurify.setConfig = function(cfg) {
1367
1269
  _parseConfig(cfg);
1368
1270
  SET_CONFIG = true;
1369
1271
  };
@@ -1375,28 +1277,29 @@ function createDOMPurify() {
1375
1277
  if (!CONFIG) {
1376
1278
  _parseConfig({});
1377
1279
  }
1378
- const lcTag = transformCaseFunc(tag);
1379
- const lcName = transformCaseFunc(attr);
1280
+ var lcTag = transformCaseFunc(tag);
1281
+ var lcName = transformCaseFunc(attr);
1380
1282
  return _isValidAttribute(lcTag, lcName, value);
1381
1283
  };
1382
1284
  DOMPurify.addHook = function(entryPoint, hookFunction) {
1383
1285
  if (typeof hookFunction !== "function") {
1384
1286
  return;
1385
1287
  }
1288
+ hooks[entryPoint] = hooks[entryPoint] || [];
1386
1289
  arrayPush$3(hooks[entryPoint], hookFunction);
1387
1290
  };
1388
- DOMPurify.removeHook = function(entryPoint, hookFunction) {
1389
- if (hookFunction !== void 0) {
1390
- const index2 = arrayLastIndexOf(hooks[entryPoint], hookFunction);
1391
- return index2 === -1 ? void 0 : arraySplice(hooks[entryPoint], index2, 1)[0];
1291
+ DOMPurify.removeHook = function(entryPoint) {
1292
+ if (hooks[entryPoint]) {
1293
+ arrayPop(hooks[entryPoint]);
1392
1294
  }
1393
- return arrayPop(hooks[entryPoint]);
1394
1295
  };
1395
1296
  DOMPurify.removeHooks = function(entryPoint) {
1396
- hooks[entryPoint] = [];
1297
+ if (hooks[entryPoint]) {
1298
+ hooks[entryPoint] = [];
1299
+ }
1397
1300
  };
1398
1301
  DOMPurify.removeAllHooks = function() {
1399
- hooks = _createHooksMap();
1302
+ hooks = {};
1400
1303
  };
1401
1304
  return DOMPurify;
1402
1305
  }
@@ -1412,11 +1315,13 @@ if (typeof purify.addHook === "function" && typeof document !== "undefined" && d
1412
1315
  });
1413
1316
  }
1414
1317
  function xssPurify(str) {
1415
- if (typeof window === "undefined") return str;
1318
+ if (typeof window === "undefined")
1319
+ return str;
1416
1320
  return purify.sanitize(str, purifyConfig);
1417
1321
  }
1418
1322
  const highlightWords = (Word, title, inherit) => {
1419
- if (!Word) return xssPurify(title || "");
1323
+ if (!Word)
1324
+ return xssPurify(title || "");
1420
1325
  title = title ? xssPurify(title) : "";
1421
1326
  const color = inherit ? `inherit` : "var(--theme-link)";
1422
1327
  const regexPattern = new RegExp(`(${Word.replace(/([.?*+^$[\]\\(){}|-])/gi, "\\$1")})`, "gi");
@@ -1704,6 +1609,9 @@ function createPosition(line, column, offset) {
1704
1609
  }
1705
1610
  function createLocation(start, end, source) {
1706
1611
  const loc = { start, end };
1612
+ if (source != null) {
1613
+ loc.source = source;
1614
+ }
1707
1615
  return loc;
1708
1616
  }
1709
1617
  const RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
@@ -1732,7 +1640,7 @@ const warnMessages$2 = {
1732
1640
  [CompileWarnCodes.USE_MODULO_SYNTAX]: `Use modulo before '{{0}}'.`
1733
1641
  };
1734
1642
  function createCompileWarn(code2, loc, ...args) {
1735
- const msg = format$1(warnMessages$2[code2], ...args || []);
1643
+ const msg = format$1(warnMessages$2[code2] || "", ...args || []);
1736
1644
  const message = { message: String(msg), code: code2 };
1737
1645
  if (loc) {
1738
1646
  message.location = loc;
@@ -2597,6 +2505,9 @@ function createParser(options = {}) {
2597
2505
  return node;
2598
2506
  }
2599
2507
  function endNode(node, offset, pos, type) {
2508
+ if (type) {
2509
+ node.type = type;
2510
+ }
2600
2511
  if (location) {
2601
2512
  node.end = offset;
2602
2513
  if (node.loc) {
@@ -3036,7 +2947,7 @@ function minify(node) {
3036
2947
  }
3037
2948
  const ERROR_DOMAIN = "parser";
3038
2949
  function createCodeGenerator(ast, options) {
3039
- const { filename, breakLineCode, needIndent: _needIndent } = options;
2950
+ const { sourceMap, filename, breakLineCode, needIndent: _needIndent } = options;
3040
2951
  const location = options.location !== false;
3041
2952
  const _context = {
3042
2953
  filename,
@@ -3200,12 +3111,14 @@ function generateNode(generator, node) {
3200
3111
  const generate = (ast, options = {}) => {
3201
3112
  const mode = isString$1(options.mode) ? options.mode : "normal";
3202
3113
  const filename = isString$1(options.filename) ? options.filename : "message.intl";
3203
- !!options.sourceMap;
3114
+ const sourceMap = !!options.sourceMap;
3204
3115
  const breakLineCode = options.breakLineCode != null ? options.breakLineCode : mode === "arrow" ? ";" : "\n";
3205
3116
  const needIndent = options.needIndent ? options.needIndent : mode !== "arrow";
3206
3117
  const helpers = ast.helpers || [];
3207
3118
  const generator = createCodeGenerator(ast, {
3119
+ mode,
3208
3120
  filename,
3121
+ sourceMap,
3209
3122
  breakLineCode,
3210
3123
  needIndent
3211
3124
  });
@@ -3978,7 +3891,7 @@ function appendItemToChain(chain, target, blocks) {
3978
3891
  }
3979
3892
  return follow;
3980
3893
  }
3981
- const VERSION$3 = "9.14.3";
3894
+ const VERSION$2 = "9.14.3";
3982
3895
  const NOT_REOSLVED = -1;
3983
3896
  const DEFAULT_LOCALE = "en-US";
3984
3897
  const MISSING_RESOLVE_VALUE = "";
@@ -4021,7 +3934,7 @@ const getFallbackContext = () => _fallbackContext;
4021
3934
  let _cid = 0;
4022
3935
  function createCoreContext(options = {}) {
4023
3936
  const onWarn = isFunction$4(options.onWarn) ? options.onWarn : warn;
4024
- const version = isString$2(options.version) ? options.version : VERSION$3;
3937
+ const version = isString$2(options.version) ? options.version : VERSION$2;
4025
3938
  const locale2 = isString$2(options.locale) || isFunction$4(options.locale) ? options.locale : DEFAULT_LOCALE;
4026
3939
  const _locale = isFunction$4(locale2) ? DEFAULT_LOCALE : locale2;
4027
3940
  const fallbackLocale = isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || isString$2(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale;
@@ -5126,7 +5039,7 @@ function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
5126
5039
  * (c) 2025 kazuya kawaguchi
5127
5040
  * Released under the MIT License.
5128
5041
  */
5129
- const VERSION$2 = "9.14.3";
5042
+ const VERSION$1 = "9.14.3";
5130
5043
  function initFeatureFlags() {
5131
5044
  if (typeof __VUE_I18N_FULL_INSTALL__ !== "boolean") {
5132
5045
  getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true;
@@ -5305,10 +5218,10 @@ function getLocaleMessages(locale2, options) {
5305
5218
  if (isArray$5(__i18n)) {
5306
5219
  __i18n.forEach((custom) => {
5307
5220
  if ("locale" in custom && "resource" in custom) {
5308
- const { locale: locale22, resource } = custom;
5309
- if (locale22) {
5310
- ret[locale22] = ret[locale22] || create();
5311
- deepCopy(resource, ret[locale22]);
5221
+ const { locale: locale3, resource } = custom;
5222
+ if (locale3) {
5223
+ ret[locale3] = ret[locale3] || create();
5224
+ deepCopy(resource, ret[locale3]);
5312
5225
  } else {
5313
5226
  deepCopy(resource, ret);
5314
5227
  }
@@ -5383,7 +5296,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5383
5296
  const { __root, __injectWithOption } = options;
5384
5297
  const _isGlobal = __root === void 0;
5385
5298
  const flatJson = options.flatJson;
5386
- const _ref = inBrowser ? ref : shallowRef;
5299
+ const _ref2 = inBrowser ? ref : shallowRef;
5387
5300
  const translateExistCompatible = !!options.translateExistCompatible;
5388
5301
  if (process.env.NODE_ENV !== "production") {
5389
5302
  if (translateExistCompatible && true) {
@@ -5391,17 +5304,17 @@ function createComposer(options = {}, VueI18nLegacy) {
5391
5304
  }
5392
5305
  }
5393
5306
  let _inheritLocale = isBoolean$1(options.inheritLocale) ? options.inheritLocale : true;
5394
- const _locale = _ref(
5307
+ const _locale = _ref2(
5395
5308
  // prettier-ignore
5396
5309
  __root && _inheritLocale ? __root.locale.value : isString$2(options.locale) ? options.locale : DEFAULT_LOCALE
5397
5310
  );
5398
- const _fallbackLocale = _ref(
5311
+ const _fallbackLocale = _ref2(
5399
5312
  // prettier-ignore
5400
5313
  __root && _inheritLocale ? __root.fallbackLocale.value : isString$2(options.fallbackLocale) || isArray$5(options.fallbackLocale) || isPlainObject$1(options.fallbackLocale) || options.fallbackLocale === false ? options.fallbackLocale : _locale.value
5401
5314
  );
5402
- const _messages = _ref(getLocaleMessages(_locale.value, options));
5403
- const _datetimeFormats = _ref(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
5404
- const _numberFormats = _ref(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
5315
+ const _messages = _ref2(getLocaleMessages(_locale.value, options));
5316
+ const _datetimeFormats = _ref2(isPlainObject$1(options.datetimeFormats) ? options.datetimeFormats : { [_locale.value]: {} });
5317
+ const _numberFormats = _ref2(isPlainObject$1(options.numberFormats) ? options.numberFormats : { [_locale.value]: {} });
5405
5318
  let _missingWarn = __root ? __root.missingWarn : isBoolean$1(options.missingWarn) || isRegExp$1(options.missingWarn) ? options.missingWarn : true;
5406
5319
  let _fallbackWarn = __root ? __root.fallbackWarn : isBoolean$1(options.fallbackWarn) || isRegExp$1(options.fallbackWarn) ? options.fallbackWarn : true;
5407
5320
  let _fallbackRoot = __root ? __root.fallbackRoot : isBoolean$1(options.fallbackRoot) ? options.fallbackRoot : true;
@@ -5417,7 +5330,7 @@ function createComposer(options = {}, VueI18nLegacy) {
5417
5330
  const getCoreContext = () => {
5418
5331
  _isGlobal && setFallbackContext(null);
5419
5332
  const ctxOptions = {
5420
- version: VERSION$2,
5333
+ version: VERSION$1,
5421
5334
  locale: _locale.value,
5422
5335
  fallbackLocale: _fallbackLocale.value,
5423
5336
  messages: _messages.value,
@@ -5509,7 +5422,8 @@ function createComposer(options = {}, VueI18nLegacy) {
5509
5422
  }
5510
5423
  ret = fn(_context);
5511
5424
  } finally {
5512
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) ;
5425
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
5426
+ ;
5513
5427
  if (!_isGlobal) {
5514
5428
  _context.fallbackContext = void 0;
5515
5429
  }
@@ -5615,17 +5529,17 @@ function createComposer(options = {}, VueI18nLegacy) {
5615
5529
  _pluralRules = rules;
5616
5530
  _context.pluralRules = _pluralRules;
5617
5531
  }
5618
- function te(key, locale22) {
5532
+ function te(key, locale3) {
5619
5533
  return wrapWithDeps(() => {
5620
5534
  if (!key) {
5621
5535
  return false;
5622
5536
  }
5623
- const targetLocale = isString$2(locale22) ? locale22 : _locale.value;
5537
+ const targetLocale = isString$2(locale3) ? locale3 : _locale.value;
5624
5538
  const message = getLocaleMessage(targetLocale);
5625
5539
  const resolved = _context.messageResolver(message, key);
5626
5540
  return !translateExistCompatible ? isMessageAST(resolved) || isMessageFunction(resolved) || isString$2(resolved) : resolved != null;
5627
5541
  }, () => [key], "translate exists", (root2) => {
5628
- return Reflect.apply(root2.te, root2, [key, locale22]);
5542
+ return Reflect.apply(root2.te, root2, [key, locale3]);
5629
5543
  }, NOOP_RETURN_FALSE, (val) => isBoolean$1(val));
5630
5544
  }
5631
5545
  function resolveMessages(key) {
@@ -5645,25 +5559,25 @@ function createComposer(options = {}, VueI18nLegacy) {
5645
5559
  const messages2 = resolveMessages(key);
5646
5560
  return messages2 != null ? messages2 : __root ? __root.tm(key) || {} : {};
5647
5561
  }
5648
- function getLocaleMessage(locale22) {
5649
- return _messages.value[locale22] || {};
5562
+ function getLocaleMessage(locale3) {
5563
+ return _messages.value[locale3] || {};
5650
5564
  }
5651
- function setLocaleMessage(locale22, message) {
5565
+ function setLocaleMessage(locale3, message) {
5652
5566
  if (flatJson) {
5653
- const _message = { [locale22]: message };
5567
+ const _message = { [locale3]: message };
5654
5568
  for (const key in _message) {
5655
5569
  if (hasOwn(_message, key)) {
5656
5570
  handleFlatJson(_message[key]);
5657
5571
  }
5658
5572
  }
5659
- message = _message[locale22];
5573
+ message = _message[locale3];
5660
5574
  }
5661
- _messages.value[locale22] = message;
5575
+ _messages.value[locale3] = message;
5662
5576
  _context.messages = _messages.value;
5663
5577
  }
5664
- function mergeLocaleMessage(locale22, message) {
5665
- _messages.value[locale22] = _messages.value[locale22] || {};
5666
- const _message = { [locale22]: message };
5578
+ function mergeLocaleMessage(locale3, message) {
5579
+ _messages.value[locale3] = _messages.value[locale3] || {};
5580
+ const _message = { [locale3]: message };
5667
5581
  if (flatJson) {
5668
5582
  for (const key in _message) {
5669
5583
  if (hasOwn(_message, key)) {
@@ -5671,35 +5585,35 @@ function createComposer(options = {}, VueI18nLegacy) {
5671
5585
  }
5672
5586
  }
5673
5587
  }
5674
- message = _message[locale22];
5675
- deepCopy(message, _messages.value[locale22]);
5588
+ message = _message[locale3];
5589
+ deepCopy(message, _messages.value[locale3]);
5676
5590
  _context.messages = _messages.value;
5677
5591
  }
5678
- function getDateTimeFormat(locale22) {
5679
- return _datetimeFormats.value[locale22] || {};
5592
+ function getDateTimeFormat(locale3) {
5593
+ return _datetimeFormats.value[locale3] || {};
5680
5594
  }
5681
- function setDateTimeFormat(locale22, format2) {
5682
- _datetimeFormats.value[locale22] = format2;
5595
+ function setDateTimeFormat(locale3, format2) {
5596
+ _datetimeFormats.value[locale3] = format2;
5683
5597
  _context.datetimeFormats = _datetimeFormats.value;
5684
- clearDateTimeFormat(_context, locale22, format2);
5598
+ clearDateTimeFormat(_context, locale3, format2);
5685
5599
  }
5686
- function mergeDateTimeFormat(locale22, format2) {
5687
- _datetimeFormats.value[locale22] = assign$1(_datetimeFormats.value[locale22] || {}, format2);
5600
+ function mergeDateTimeFormat(locale3, format2) {
5601
+ _datetimeFormats.value[locale3] = assign$1(_datetimeFormats.value[locale3] || {}, format2);
5688
5602
  _context.datetimeFormats = _datetimeFormats.value;
5689
- clearDateTimeFormat(_context, locale22, format2);
5603
+ clearDateTimeFormat(_context, locale3, format2);
5690
5604
  }
5691
- function getNumberFormat(locale22) {
5692
- return _numberFormats.value[locale22] || {};
5605
+ function getNumberFormat(locale3) {
5606
+ return _numberFormats.value[locale3] || {};
5693
5607
  }
5694
- function setNumberFormat(locale22, format2) {
5695
- _numberFormats.value[locale22] = format2;
5608
+ function setNumberFormat(locale3, format2) {
5609
+ _numberFormats.value[locale3] = format2;
5696
5610
  _context.numberFormats = _numberFormats.value;
5697
- clearNumberFormat(_context, locale22, format2);
5611
+ clearNumberFormat(_context, locale3, format2);
5698
5612
  }
5699
- function mergeNumberFormat(locale22, format2) {
5700
- _numberFormats.value[locale22] = assign$1(_numberFormats.value[locale22] || {}, format2);
5613
+ function mergeNumberFormat(locale3, format2) {
5614
+ _numberFormats.value[locale3] = assign$1(_numberFormats.value[locale3] || {}, format2);
5701
5615
  _context.numberFormats = _numberFormats.value;
5702
- clearNumberFormat(_context, locale22, format2);
5616
+ clearNumberFormat(_context, locale3, format2);
5703
5617
  }
5704
5618
  composerID++;
5705
5619
  if (__root && inBrowser) {
@@ -5850,9 +5764,9 @@ function convertComposerOptions(options) {
5850
5764
  if (isPlainObject$1(options.sharedMessages)) {
5851
5765
  const sharedMessages = options.sharedMessages;
5852
5766
  const locales = Object.keys(sharedMessages);
5853
- messages = locales.reduce((messages2, locale22) => {
5854
- const message = messages2[locale22] || (messages2[locale22] = {});
5855
- assign$1(message, sharedMessages[locale22]);
5767
+ messages = locales.reduce((messages2, locale3) => {
5768
+ const message = messages2[locale3] || (messages2[locale3] = {});
5769
+ assign$1(message, sharedMessages[locale3]);
5856
5770
  return messages2;
5857
5771
  }, messages || {});
5858
5772
  }
@@ -7254,49 +7168,49 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
7254
7168
  function tm(key) {
7255
7169
  return _composer.value ? _composer.value.tm(key) : {};
7256
7170
  }
7257
- function te(key, locale22) {
7258
- return _composer.value ? _composer.value.te(key, locale22) : false;
7171
+ function te(key, locale3) {
7172
+ return _composer.value ? _composer.value.te(key, locale3) : false;
7259
7173
  }
7260
- function getLocaleMessage(locale22) {
7261
- return _composer.value ? _composer.value.getLocaleMessage(locale22) : {};
7174
+ function getLocaleMessage(locale3) {
7175
+ return _composer.value ? _composer.value.getLocaleMessage(locale3) : {};
7262
7176
  }
7263
- function setLocaleMessage(locale22, message) {
7177
+ function setLocaleMessage(locale3, message) {
7264
7178
  if (_composer.value) {
7265
- _composer.value.setLocaleMessage(locale22, message);
7266
- _messages.value[locale22] = message;
7179
+ _composer.value.setLocaleMessage(locale3, message);
7180
+ _messages.value[locale3] = message;
7267
7181
  }
7268
7182
  }
7269
- function mergeLocaleMessage(locale22, message) {
7183
+ function mergeLocaleMessage(locale3, message) {
7270
7184
  if (_composer.value) {
7271
- _composer.value.mergeLocaleMessage(locale22, message);
7185
+ _composer.value.mergeLocaleMessage(locale3, message);
7272
7186
  }
7273
7187
  }
7274
- function getDateTimeFormat(locale22) {
7275
- return _composer.value ? _composer.value.getDateTimeFormat(locale22) : {};
7188
+ function getDateTimeFormat(locale3) {
7189
+ return _composer.value ? _composer.value.getDateTimeFormat(locale3) : {};
7276
7190
  }
7277
- function setDateTimeFormat(locale22, format2) {
7191
+ function setDateTimeFormat(locale3, format2) {
7278
7192
  if (_composer.value) {
7279
- _composer.value.setDateTimeFormat(locale22, format2);
7280
- _datetimeFormats.value[locale22] = format2;
7193
+ _composer.value.setDateTimeFormat(locale3, format2);
7194
+ _datetimeFormats.value[locale3] = format2;
7281
7195
  }
7282
7196
  }
7283
- function mergeDateTimeFormat(locale22, format2) {
7197
+ function mergeDateTimeFormat(locale3, format2) {
7284
7198
  if (_composer.value) {
7285
- _composer.value.mergeDateTimeFormat(locale22, format2);
7199
+ _composer.value.mergeDateTimeFormat(locale3, format2);
7286
7200
  }
7287
7201
  }
7288
- function getNumberFormat(locale22) {
7289
- return _composer.value ? _composer.value.getNumberFormat(locale22) : {};
7202
+ function getNumberFormat(locale3) {
7203
+ return _composer.value ? _composer.value.getNumberFormat(locale3) : {};
7290
7204
  }
7291
- function setNumberFormat(locale22, format2) {
7205
+ function setNumberFormat(locale3, format2) {
7292
7206
  if (_composer.value) {
7293
- _composer.value.setNumberFormat(locale22, format2);
7294
- _numberFormats.value[locale22] = format2;
7207
+ _composer.value.setNumberFormat(locale3, format2);
7208
+ _numberFormats.value[locale3] = format2;
7295
7209
  }
7296
7210
  }
7297
- function mergeNumberFormat(locale22, format2) {
7211
+ function mergeNumberFormat(locale3, format2) {
7298
7212
  if (_composer.value) {
7299
- _composer.value.mergeNumberFormat(locale22, format2);
7213
+ _composer.value.mergeNumberFormat(locale3, format2);
7300
7214
  }
7301
7215
  }
7302
7216
  const wrapper3 = {
@@ -7399,14 +7313,14 @@ function useI18nForLegacy(instance, scope, root2, options = {}) {
7399
7313
  function sync(composer) {
7400
7314
  composer.locale.value = _locale.value;
7401
7315
  composer.fallbackLocale.value = _fallbackLocale.value;
7402
- Object.keys(_messages.value).forEach((locale22) => {
7403
- composer.mergeLocaleMessage(locale22, _messages.value[locale22]);
7316
+ Object.keys(_messages.value).forEach((locale3) => {
7317
+ composer.mergeLocaleMessage(locale3, _messages.value[locale3]);
7404
7318
  });
7405
- Object.keys(_datetimeFormats.value).forEach((locale22) => {
7406
- composer.mergeDateTimeFormat(locale22, _datetimeFormats.value[locale22]);
7319
+ Object.keys(_datetimeFormats.value).forEach((locale3) => {
7320
+ composer.mergeDateTimeFormat(locale3, _datetimeFormats.value[locale3]);
7407
7321
  });
7408
- Object.keys(_numberFormats.value).forEach((locale22) => {
7409
- composer.mergeNumberFormat(locale22, _numberFormats.value[locale22]);
7322
+ Object.keys(_numberFormats.value).forEach((locale3) => {
7323
+ composer.mergeNumberFormat(locale3, _numberFormats.value[locale3]);
7410
7324
  });
7411
7325
  composer.escapeParameter = _escapeParameter;
7412
7326
  composer.fallbackFormat = _fallbackFormat;
@@ -7491,7 +7405,8 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
7491
7405
  target.__INTLIFY__ = true;
7492
7406
  setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
7493
7407
  }
7494
- if (process.env.NODE_ENV !== "production") ;
7408
+ if (process.env.NODE_ENV !== "production")
7409
+ ;
7495
7410
  const gitCodeLayout$1 = {
7496
7411
  home: {
7497
7412
  alreadyFollowed: "已关注",
@@ -8109,7 +8024,8 @@ const handleAvatarRedPoint = (type, other) => {
8109
8024
  }
8110
8025
  };
8111
8026
  function extractRepoInfoWithURL(repoUrl) {
8112
- if (!repoUrl) return "";
8027
+ if (!repoUrl)
8028
+ return "";
8113
8029
  const url = new URL(repoUrl);
8114
8030
  const pathname = url.pathname.replace(/^\//, "");
8115
8031
  const parts = pathname.replace(/.git$/, "").split("/").filter(Boolean);
@@ -8137,7 +8053,8 @@ const isTrustedRepo = (topics) => {
8137
8053
  };
8138
8054
  const INCUBATION_TOPICS = layoutConfig$4.VITE_INCUBATION_TOPIC || "";
8139
8055
  const isIncubationRepo = (topics = []) => {
8140
- if (!topics) return false;
8056
+ if (!topics)
8057
+ return false;
8141
8058
  const incubationIds = INCUBATION_TOPICS.split(",");
8142
8059
  if (topics.some((e) => /孵化项目/.test(e.name) || incubationIds.includes(e.topic_id || e.id))) {
8143
8060
  return true;
@@ -8228,7 +8145,7 @@ function mitt(n) {
8228
8145
  const emitter = mitt();
8229
8146
  const addEventListener = (evtName, callback) => emitter.on(evtName, callback);
8230
8147
  const emitEvent = (evtName, payload) => emitter.emit(evtName, payload);
8231
- const offEvent = (evtName, handler) => emitter.off(evtName, void 0);
8148
+ const offEvent = (evtName, handler) => emitter.off(evtName, handler || void 0);
8232
8149
  function bind(fn, thisArg) {
8233
8150
  return function wrap() {
8234
8151
  return fn.apply(thisArg, arguments);
@@ -8236,7 +8153,7 @@ function bind(fn, thisArg) {
8236
8153
  }
8237
8154
  const { toString } = Object.prototype;
8238
8155
  const { getPrototypeOf } = Object;
8239
- const kindOf = /* @__PURE__ */ ((cache2) => (thing) => {
8156
+ const kindOf = ((cache2) => (thing) => {
8240
8157
  const str = toString.call(thing);
8241
8158
  return cache2[str] || (cache2[str] = str.slice(8, -1).toLowerCase());
8242
8159
  })(/* @__PURE__ */ Object.create(null));
@@ -8322,7 +8239,8 @@ function findKey(obj, key) {
8322
8239
  return null;
8323
8240
  }
8324
8241
  const _global = (() => {
8325
- if (typeof globalThis !== "undefined") return globalThis;
8242
+ if (typeof globalThis !== "undefined")
8243
+ return globalThis;
8326
8244
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
8327
8245
  })();
8328
8246
  const isContextDefined = (context) => !isUndefined$1(context) && context !== _global;
@@ -8376,7 +8294,8 @@ const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
8376
8294
  let prop;
8377
8295
  const merged = {};
8378
8296
  destObj = destObj || {};
8379
- if (sourceObj == null) return destObj;
8297
+ if (sourceObj == null)
8298
+ return destObj;
8380
8299
  do {
8381
8300
  props = Object.getOwnPropertyNames(sourceObj);
8382
8301
  i = props.length;
@@ -8401,17 +8320,20 @@ const endsWith = (str, searchString, position) => {
8401
8320
  return lastIndex !== -1 && lastIndex === position;
8402
8321
  };
8403
8322
  const toArray = (thing) => {
8404
- if (!thing) return null;
8405
- if (isArray$4(thing)) return thing;
8323
+ if (!thing)
8324
+ return null;
8325
+ if (isArray$4(thing))
8326
+ return thing;
8406
8327
  let i = thing.length;
8407
- if (!isNumber(i)) return null;
8328
+ if (!isNumber(i))
8329
+ return null;
8408
8330
  const arr = new Array(i);
8409
8331
  while (i-- > 0) {
8410
8332
  arr[i] = thing[i];
8411
8333
  }
8412
8334
  return arr;
8413
8335
  };
8414
- const isTypedArray$2 = /* @__PURE__ */ ((TypedArray) => {
8336
+ const isTypedArray$2 = ((TypedArray) => {
8415
8337
  return (thing) => {
8416
8338
  return TypedArray && thing instanceof TypedArray;
8417
8339
  };
@@ -8461,7 +8383,8 @@ const freezeMethods = (obj) => {
8461
8383
  return false;
8462
8384
  }
8463
8385
  const value = obj[name];
8464
- if (!isFunction$3(value)) return;
8386
+ if (!isFunction$3(value))
8387
+ return;
8465
8388
  descriptor.enumerable = false;
8466
8389
  if ("writable" in descriptor) {
8467
8390
  descriptor.writable = false;
@@ -8594,7 +8517,7 @@ const utils$1 = {
8594
8517
  setImmediate: _setImmediate,
8595
8518
  asap
8596
8519
  };
8597
- function AxiosError$1(message, code2, config, request, response) {
8520
+ function AxiosError(message, code2, config, request, response) {
8598
8521
  Error.call(this);
8599
8522
  if (Error.captureStackTrace) {
8600
8523
  Error.captureStackTrace(this, this.constructor);
@@ -8611,7 +8534,7 @@ function AxiosError$1(message, code2, config, request, response) {
8611
8534
  this.status = response.status ? response.status : null;
8612
8535
  }
8613
8536
  }
8614
- utils$1.inherits(AxiosError$1, Error, {
8537
+ utils$1.inherits(AxiosError, Error, {
8615
8538
  toJSON: function toJSON() {
8616
8539
  return {
8617
8540
  // Standard
@@ -8632,7 +8555,7 @@ utils$1.inherits(AxiosError$1, Error, {
8632
8555
  };
8633
8556
  }
8634
8557
  });
8635
- const prototype$1 = AxiosError$1.prototype;
8558
+ const prototype$1 = AxiosError.prototype;
8636
8559
  const descriptors = {};
8637
8560
  [
8638
8561
  "ERR_BAD_OPTION_VALUE",
@@ -8651,16 +8574,16 @@ const descriptors = {};
8651
8574
  ].forEach((code2) => {
8652
8575
  descriptors[code2] = { value: code2 };
8653
8576
  });
8654
- Object.defineProperties(AxiosError$1, descriptors);
8577
+ Object.defineProperties(AxiosError, descriptors);
8655
8578
  Object.defineProperty(prototype$1, "isAxiosError", { value: true });
8656
- AxiosError$1.from = (error, code2, config, request, response, customProps) => {
8579
+ AxiosError.from = (error, code2, config, request, response, customProps) => {
8657
8580
  const axiosError = Object.create(prototype$1);
8658
8581
  utils$1.toFlatObject(error, axiosError, function filter2(obj) {
8659
8582
  return obj !== Error.prototype;
8660
8583
  }, (prop) => {
8661
8584
  return prop !== "isAxiosError";
8662
8585
  });
8663
- AxiosError$1.call(axiosError, error.message, code2, config, request, response);
8586
+ AxiosError.call(axiosError, error.message, code2, config, request, response);
8664
8587
  axiosError.cause = error;
8665
8588
  axiosError.name = error.name;
8666
8589
  customProps && Object.assign(axiosError, customProps);
@@ -8674,7 +8597,8 @@ function removeBrackets(key) {
8674
8597
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
8675
8598
  }
8676
8599
  function renderKey(path, key, dots) {
8677
- if (!path) return key;
8600
+ if (!path)
8601
+ return key;
8678
8602
  return path.concat(key).map(function each(token, i) {
8679
8603
  token = removeBrackets(token);
8680
8604
  return !dots && i ? "[" + token + "]" : token;
@@ -8686,7 +8610,7 @@ function isFlatArray(arr) {
8686
8610
  const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
8687
8611
  return /^is[A-Z]/.test(prop);
8688
8612
  });
8689
- function toFormData$1(obj, formData, options) {
8613
+ function toFormData(obj, formData, options) {
8690
8614
  if (!utils$1.isObject(obj)) {
8691
8615
  throw new TypeError("target must be an object");
8692
8616
  }
@@ -8708,12 +8632,13 @@ function toFormData$1(obj, formData, options) {
8708
8632
  throw new TypeError("visitor must be a function");
8709
8633
  }
8710
8634
  function convertValue(value) {
8711
- if (value === null) return "";
8635
+ if (value === null)
8636
+ return "";
8712
8637
  if (utils$1.isDate(value)) {
8713
8638
  return value.toISOString();
8714
8639
  }
8715
8640
  if (!useBlob && utils$1.isBlob(value)) {
8716
- throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
8641
+ throw new AxiosError("Blob is not supported. Use a Buffer instead.");
8717
8642
  }
8718
8643
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
8719
8644
  return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
@@ -8751,7 +8676,8 @@ function toFormData$1(obj, formData, options) {
8751
8676
  isVisitable
8752
8677
  });
8753
8678
  function build(value, path) {
8754
- if (utils$1.isUndefined(value)) return;
8679
+ if (utils$1.isUndefined(value))
8680
+ return;
8755
8681
  if (stack.indexOf(value) !== -1) {
8756
8682
  throw Error("Circular reference detected in " + path.join("."));
8757
8683
  }
@@ -8792,7 +8718,7 @@ function encode$1(str) {
8792
8718
  }
8793
8719
  function AxiosURLSearchParams(params, options) {
8794
8720
  this._pairs = [];
8795
- params && toFormData$1(params, this, options);
8721
+ params && toFormData(params, this, options);
8796
8722
  }
8797
8723
  const prototype = AxiosURLSearchParams.prototype;
8798
8724
  prototype.append = function append(name, value) {
@@ -8896,6 +8822,7 @@ class InterceptorManager {
8896
8822
  });
8897
8823
  }
8898
8824
  }
8825
+ const InterceptorManager$1 = InterceptorManager;
8899
8826
  const transitionalDefaults = {
8900
8827
  silentJSONParsing: true,
8901
8828
  forcedJSONParsing: true,
@@ -8934,7 +8861,7 @@ const platform = {
8934
8861
  ...platform$1
8935
8862
  };
8936
8863
  function toURLEncodedForm(data, options) {
8937
- return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
8864
+ return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
8938
8865
  visitor: function(value, key, path, helpers) {
8939
8866
  if (platform.isNode && utils$1.isBuffer(value)) {
8940
8867
  this.append(key, value.toString("base64"));
@@ -8964,7 +8891,8 @@ function arrayToObject(arr) {
8964
8891
  function formDataToJSON(formData) {
8965
8892
  function buildPath(path, value, target, index2) {
8966
8893
  let name = path[index2++];
8967
- if (name === "__proto__") return true;
8894
+ if (name === "__proto__")
8895
+ return true;
8968
8896
  const isNumericKey = Number.isFinite(+name);
8969
8897
  const isLast = index2 >= path.length;
8970
8898
  name = !name && utils$1.isArray(target) ? target.length : name;
@@ -9038,7 +8966,7 @@ const defaults = {
9038
8966
  }
9039
8967
  if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
9040
8968
  const _FormData = this.env && this.env.FormData;
9041
- return toFormData$1(
8969
+ return toFormData(
9042
8970
  isFileList2 ? { "files[]": data } : data,
9043
8971
  _FormData && new _FormData(),
9044
8972
  this.formSerializer
@@ -9066,7 +8994,7 @@ const defaults = {
9066
8994
  } catch (e) {
9067
8995
  if (strictJSONParsing) {
9068
8996
  if (e.name === "SyntaxError") {
9069
- throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
8997
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
9070
8998
  }
9071
8999
  throw e;
9072
9000
  }
@@ -9100,6 +9028,7 @@ const defaults = {
9100
9028
  utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
9101
9029
  defaults.headers[method] = {};
9102
9030
  });
9031
+ const defaults$1 = defaults;
9103
9032
  const ignoreDuplicateOf = utils$1.toObjectSet([
9104
9033
  "age",
9105
9034
  "authorization",
@@ -9170,7 +9099,8 @@ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
9170
9099
  if (isHeaderNameFilter) {
9171
9100
  value = header;
9172
9101
  }
9173
- if (!utils$1.isString(value)) return;
9102
+ if (!utils$1.isString(value))
9103
+ return;
9174
9104
  if (utils$1.isString(filter2)) {
9175
9105
  return value.indexOf(filter2) !== -1;
9176
9106
  }
@@ -9194,7 +9124,7 @@ function buildAccessors(obj, header) {
9194
9124
  });
9195
9125
  });
9196
9126
  }
9197
- let AxiosHeaders$1 = class AxiosHeaders {
9127
+ class AxiosHeaders {
9198
9128
  constructor(headers) {
9199
9129
  headers && this.set(headers);
9200
9130
  }
@@ -9349,9 +9279,9 @@ let AxiosHeaders$1 = class AxiosHeaders {
9349
9279
  utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
9350
9280
  return this;
9351
9281
  }
9352
- };
9353
- AxiosHeaders$1.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
9354
- utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
9282
+ }
9283
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
9284
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
9355
9285
  let mapped = key[0].toUpperCase() + key.slice(1);
9356
9286
  return {
9357
9287
  get: () => value,
@@ -9360,9 +9290,10 @@ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({ value }, key) => {
9360
9290
  }
9361
9291
  };
9362
9292
  });
9363
- utils$1.freezeMethods(AxiosHeaders$1);
9293
+ utils$1.freezeMethods(AxiosHeaders);
9294
+ const AxiosHeaders$1 = AxiosHeaders;
9364
9295
  function transformData(fns, response) {
9365
- const config = this || defaults;
9296
+ const config = this || defaults$1;
9366
9297
  const context = response || config;
9367
9298
  const headers = AxiosHeaders$1.from(context.headers);
9368
9299
  let data = context.data;
@@ -9372,14 +9303,14 @@ function transformData(fns, response) {
9372
9303
  headers.normalize();
9373
9304
  return data;
9374
9305
  }
9375
- function isCancel$1(value) {
9306
+ function isCancel(value) {
9376
9307
  return !!(value && value.__CANCEL__);
9377
9308
  }
9378
- function CanceledError$1(message, config, request) {
9379
- AxiosError$1.call(this, message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
9309
+ function CanceledError(message, config, request) {
9310
+ AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
9380
9311
  this.name = "CanceledError";
9381
9312
  }
9382
- utils$1.inherits(CanceledError$1, AxiosError$1, {
9313
+ utils$1.inherits(CanceledError, AxiosError, {
9383
9314
  __CANCEL__: true
9384
9315
  });
9385
9316
  function settle(resolve, reject, response) {
@@ -9387,9 +9318,9 @@ function settle(resolve, reject, response) {
9387
9318
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
9388
9319
  resolve(response);
9389
9320
  } else {
9390
- reject(new AxiosError$1(
9321
+ reject(new AxiosError(
9391
9322
  "Request failed with status code " + response.status,
9392
- [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
9323
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
9393
9324
  response.config,
9394
9325
  response.request,
9395
9326
  response
@@ -9498,7 +9429,7 @@ const progressEventDecorator = (total, throttled) => {
9498
9429
  }), throttled[1]];
9499
9430
  };
9500
9431
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
9501
- const isURLSameOrigin = platform.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
9432
+ const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
9502
9433
  url = new URL(url, platform.origin);
9503
9434
  return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
9504
9435
  })(
@@ -9550,7 +9481,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
9550
9481
  return requestedURL;
9551
9482
  }
9552
9483
  const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
9553
- function mergeConfig$1(config1, config2) {
9484
+ function mergeConfig(config1, config2) {
9554
9485
  config2 = config2 || {};
9555
9486
  const config = {};
9556
9487
  function getMergedValue(target, source, prop, caseless) {
@@ -9628,7 +9559,7 @@ function mergeConfig$1(config1, config2) {
9628
9559
  return config;
9629
9560
  }
9630
9561
  const resolveConfig = (config) => {
9631
- const newConfig = mergeConfig$1({}, config);
9562
+ const newConfig = mergeConfig({}, config);
9632
9563
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
9633
9564
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
9634
9565
  newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
@@ -9719,11 +9650,11 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9719
9650
  if (!request) {
9720
9651
  return;
9721
9652
  }
9722
- reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
9653
+ reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
9723
9654
  request = null;
9724
9655
  };
9725
9656
  request.onerror = function handleError() {
9726
- reject(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request));
9657
+ reject(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request));
9727
9658
  request = null;
9728
9659
  };
9729
9660
  request.ontimeout = function handleTimeout() {
@@ -9732,9 +9663,9 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9732
9663
  if (_config.timeoutErrorMessage) {
9733
9664
  timeoutErrorMessage = _config.timeoutErrorMessage;
9734
9665
  }
9735
- reject(new AxiosError$1(
9666
+ reject(new AxiosError(
9736
9667
  timeoutErrorMessage,
9737
- transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
9668
+ transitional2.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
9738
9669
  config,
9739
9670
  request
9740
9671
  ));
@@ -9766,7 +9697,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9766
9697
  if (!request) {
9767
9698
  return;
9768
9699
  }
9769
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
9700
+ reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
9770
9701
  request.abort();
9771
9702
  request = null;
9772
9703
  };
@@ -9777,7 +9708,7 @@ const xhrAdapter = isXHRAdapterSupported && function(config) {
9777
9708
  }
9778
9709
  const protocol = parseProtocol(_config.url);
9779
9710
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
9780
- reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
9711
+ reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
9781
9712
  return;
9782
9713
  }
9783
9714
  request.send(requestData || null);
@@ -9793,12 +9724,12 @@ const composeSignals = (signals, timeout) => {
9793
9724
  aborted = true;
9794
9725
  unsubscribe();
9795
9726
  const err = reason instanceof Error ? reason : this.reason;
9796
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
9727
+ controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
9797
9728
  }
9798
9729
  };
9799
9730
  let timer = timeout && setTimeout(() => {
9800
9731
  timer = null;
9801
- onabort(new AxiosError$1(`timeout ${timeout} of ms exceeded`, AxiosError$1.ETIMEDOUT));
9732
+ onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
9802
9733
  }, timeout);
9803
9734
  const unsubscribe = () => {
9804
9735
  if (signals) {
@@ -9816,9 +9747,10 @@ const composeSignals = (signals, timeout) => {
9816
9747
  return signal;
9817
9748
  }
9818
9749
  };
9750
+ const composeSignals$1 = composeSignals;
9819
9751
  const streamChunk = function* (chunk, chunkSize) {
9820
9752
  let len = chunk.byteLength;
9821
- if (len < chunkSize) {
9753
+ if (!chunkSize || len < chunkSize) {
9822
9754
  yield chunk;
9823
9755
  return;
9824
9756
  }
@@ -9893,7 +9825,7 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
9893
9825
  };
9894
9826
  const isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
9895
9827
  const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
9896
- const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
9828
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
9897
9829
  const test = (fn, ...args) => {
9898
9830
  try {
9899
9831
  return !!fn(...args);
@@ -9921,7 +9853,7 @@ const resolvers = {
9921
9853
  isFetchSupported && ((res) => {
9922
9854
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
9923
9855
  !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
9924
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
9856
+ throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
9925
9857
  });
9926
9858
  });
9927
9859
  })(new Response());
@@ -9969,7 +9901,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
9969
9901
  fetchOptions
9970
9902
  } = resolveConfig(config);
9971
9903
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
9972
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
9904
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
9973
9905
  let request;
9974
9906
  const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
9975
9907
  composedSignal.unsubscribe();
@@ -10044,13 +9976,13 @@ const fetchAdapter = isFetchSupported && (async (config) => {
10044
9976
  unsubscribe && unsubscribe();
10045
9977
  if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
10046
9978
  throw Object.assign(
10047
- new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request),
9979
+ new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
10048
9980
  {
10049
9981
  cause: err.cause || err
10050
9982
  }
10051
9983
  );
10052
9984
  }
10053
- throw AxiosError$1.from(err, err && err.code, config, request);
9985
+ throw AxiosError.from(err, err && err.code, config, request);
10054
9986
  }
10055
9987
  });
10056
9988
  const knownAdapters = {
@@ -10083,7 +10015,7 @@ const adapters = {
10083
10015
  if (!isResolvedHandle(nameOrAdapter)) {
10084
10016
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
10085
10017
  if (adapter === void 0) {
10086
- throw new AxiosError$1(`Unknown adapter '${id}'`);
10018
+ throw new AxiosError(`Unknown adapter '${id}'`);
10087
10019
  }
10088
10020
  }
10089
10021
  if (adapter) {
@@ -10096,7 +10028,7 @@ const adapters = {
10096
10028
  ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
10097
10029
  );
10098
10030
  let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
10099
- throw new AxiosError$1(
10031
+ throw new AxiosError(
10100
10032
  `There is no suitable adapter to dispatch the request ` + s,
10101
10033
  "ERR_NOT_SUPPORT"
10102
10034
  );
@@ -10110,7 +10042,7 @@ function throwIfCancellationRequested(config) {
10110
10042
  config.cancelToken.throwIfRequested();
10111
10043
  }
10112
10044
  if (config.signal && config.signal.aborted) {
10113
- throw new CanceledError$1(null, config);
10045
+ throw new CanceledError(null, config);
10114
10046
  }
10115
10047
  }
10116
10048
  function dispatchRequest(config) {
@@ -10123,7 +10055,7 @@ function dispatchRequest(config) {
10123
10055
  if (["post", "put", "patch"].indexOf(config.method) !== -1) {
10124
10056
  config.headers.setContentType("application/x-www-form-urlencoded", false);
10125
10057
  }
10126
- const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
10058
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
10127
10059
  return adapter(config).then(function onAdapterResolution(response) {
10128
10060
  throwIfCancellationRequested(config);
10129
10061
  response.data = transformData.call(
@@ -10134,7 +10066,7 @@ function dispatchRequest(config) {
10134
10066
  response.headers = AxiosHeaders$1.from(response.headers);
10135
10067
  return response;
10136
10068
  }, function onAdapterRejection(reason) {
10137
- if (!isCancel$1(reason)) {
10069
+ if (!isCancel(reason)) {
10138
10070
  throwIfCancellationRequested(config);
10139
10071
  if (reason && reason.response) {
10140
10072
  reason.response.data = transformData.call(
@@ -10148,7 +10080,7 @@ function dispatchRequest(config) {
10148
10080
  return Promise.reject(reason);
10149
10081
  });
10150
10082
  }
10151
- const VERSION$1 = "1.8.4";
10083
+ const VERSION = "1.8.4";
10152
10084
  const validators$1 = {};
10153
10085
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
10154
10086
  validators$1[type] = function validator2(thing) {
@@ -10158,13 +10090,13 @@ const validators$1 = {};
10158
10090
  const deprecatedWarnings = {};
10159
10091
  validators$1.transitional = function transitional(validator2, version, message) {
10160
10092
  function formatMessage(opt, desc) {
10161
- return "[Axios v" + VERSION$1 + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
10093
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
10162
10094
  }
10163
10095
  return (value, opt, opts) => {
10164
10096
  if (validator2 === false) {
10165
- throw new AxiosError$1(
10097
+ throw new AxiosError(
10166
10098
  formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
10167
- AxiosError$1.ERR_DEPRECATED
10099
+ AxiosError.ERR_DEPRECATED
10168
10100
  );
10169
10101
  }
10170
10102
  if (version && !deprecatedWarnings[opt]) {
@@ -10187,7 +10119,7 @@ validators$1.spelling = function spelling(correctSpelling) {
10187
10119
  };
10188
10120
  function assertOptions(options, schema, allowUnknown) {
10189
10121
  if (typeof options !== "object") {
10190
- throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
10122
+ throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
10191
10123
  }
10192
10124
  const keys2 = Object.keys(options);
10193
10125
  let i = keys2.length;
@@ -10198,12 +10130,12 @@ function assertOptions(options, schema, allowUnknown) {
10198
10130
  const value = options[opt];
10199
10131
  const result2 = value === void 0 || validator2(value, opt, options);
10200
10132
  if (result2 !== true) {
10201
- throw new AxiosError$1("option " + opt + " must be " + result2, AxiosError$1.ERR_BAD_OPTION_VALUE);
10133
+ throw new AxiosError("option " + opt + " must be " + result2, AxiosError.ERR_BAD_OPTION_VALUE);
10202
10134
  }
10203
10135
  continue;
10204
10136
  }
10205
10137
  if (allowUnknown !== true) {
10206
- throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
10138
+ throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
10207
10139
  }
10208
10140
  }
10209
10141
  }
@@ -10212,12 +10144,12 @@ const validator = {
10212
10144
  validators: validators$1
10213
10145
  };
10214
10146
  const validators = validator.validators;
10215
- let Axios$1 = class Axios {
10147
+ class Axios {
10216
10148
  constructor(instanceConfig) {
10217
10149
  this.defaults = instanceConfig;
10218
10150
  this.interceptors = {
10219
- request: new InterceptorManager(),
10220
- response: new InterceptorManager()
10151
+ request: new InterceptorManager$1(),
10152
+ response: new InterceptorManager$1()
10221
10153
  };
10222
10154
  }
10223
10155
  /**
@@ -10255,7 +10187,7 @@ let Axios$1 = class Axios {
10255
10187
  } else {
10256
10188
  config = configOrUrl || {};
10257
10189
  }
10258
- config = mergeConfig$1(this.defaults, config);
10190
+ config = mergeConfig(this.defaults, config);
10259
10191
  const { transitional: transitional2, paramsSerializer, headers } = config;
10260
10192
  if (transitional2 !== void 0) {
10261
10193
  validator.assertOptions(transitional2, {
@@ -10276,7 +10208,8 @@ let Axios$1 = class Axios {
10276
10208
  }, true);
10277
10209
  }
10278
10210
  }
10279
- if (config.allowAbsoluteUrls !== void 0) ;
10211
+ if (config.allowAbsoluteUrls !== void 0)
10212
+ ;
10280
10213
  else if (this.defaults.allowAbsoluteUrls !== void 0) {
10281
10214
  config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
10282
10215
  } else {
@@ -10351,14 +10284,14 @@ let Axios$1 = class Axios {
10351
10284
  return promise;
10352
10285
  }
10353
10286
  getUri(config) {
10354
- config = mergeConfig$1(this.defaults, config);
10287
+ config = mergeConfig(this.defaults, config);
10355
10288
  const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
10356
10289
  return buildURL(fullPath, config.params, config.paramsSerializer);
10357
10290
  }
10358
- };
10291
+ }
10359
10292
  utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
10360
- Axios$1.prototype[method] = function(url, config) {
10361
- return this.request(mergeConfig$1(config || {}, {
10293
+ Axios.prototype[method] = function(url, config) {
10294
+ return this.request(mergeConfig(config || {}, {
10362
10295
  method,
10363
10296
  url,
10364
10297
  data: (config || {}).data
@@ -10368,7 +10301,7 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
10368
10301
  utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
10369
10302
  function generateHTTPMethod(isForm) {
10370
10303
  return function httpMethod(url, data, config) {
10371
- return this.request(mergeConfig$1(config || {}, {
10304
+ return this.request(mergeConfig(config || {}, {
10372
10305
  method,
10373
10306
  headers: isForm ? {
10374
10307
  "Content-Type": "multipart/form-data"
@@ -10378,10 +10311,11 @@ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
10378
10311
  }));
10379
10312
  };
10380
10313
  }
10381
- Axios$1.prototype[method] = generateHTTPMethod();
10382
- Axios$1.prototype[method + "Form"] = generateHTTPMethod(true);
10314
+ Axios.prototype[method] = generateHTTPMethod();
10315
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
10383
10316
  });
10384
- let CancelToken$1 = class CancelToken {
10317
+ const Axios$1 = Axios;
10318
+ class CancelToken {
10385
10319
  constructor(executor) {
10386
10320
  if (typeof executor !== "function") {
10387
10321
  throw new TypeError("executor must be a function.");
@@ -10392,7 +10326,8 @@ let CancelToken$1 = class CancelToken {
10392
10326
  });
10393
10327
  const token = this;
10394
10328
  this.promise.then((cancel) => {
10395
- if (!token._listeners) return;
10329
+ if (!token._listeners)
10330
+ return;
10396
10331
  let i = token._listeners.length;
10397
10332
  while (i-- > 0) {
10398
10333
  token._listeners[i](cancel);
@@ -10414,7 +10349,7 @@ let CancelToken$1 = class CancelToken {
10414
10349
  if (token.reason) {
10415
10350
  return;
10416
10351
  }
10417
- token.reason = new CanceledError$1(message, config, request);
10352
+ token.reason = new CanceledError(message, config, request);
10418
10353
  resolvePromise(token.reason);
10419
10354
  });
10420
10355
  }
@@ -10475,16 +10410,17 @@ let CancelToken$1 = class CancelToken {
10475
10410
  cancel
10476
10411
  };
10477
10412
  }
10478
- };
10479
- function spread$1(callback) {
10413
+ }
10414
+ const CancelToken$1 = CancelToken;
10415
+ function spread(callback) {
10480
10416
  return function wrap(arr) {
10481
10417
  return callback.apply(null, arr);
10482
10418
  };
10483
10419
  }
10484
- function isAxiosError$1(payload) {
10420
+ function isAxiosError(payload) {
10485
10421
  return utils$1.isObject(payload) && payload.isAxiosError === true;
10486
10422
  }
10487
- const HttpStatusCode$1 = {
10423
+ const HttpStatusCode = {
10488
10424
  Continue: 100,
10489
10425
  SwitchingProtocols: 101,
10490
10426
  Processing: 102,
@@ -10549,57 +10485,41 @@ const HttpStatusCode$1 = {
10549
10485
  NotExtended: 510,
10550
10486
  NetworkAuthenticationRequired: 511
10551
10487
  };
10552
- Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
10553
- HttpStatusCode$1[value] = key;
10488
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
10489
+ HttpStatusCode[value] = key;
10554
10490
  });
10491
+ const HttpStatusCode$1 = HttpStatusCode;
10555
10492
  function createInstance(defaultConfig2) {
10556
10493
  const context = new Axios$1(defaultConfig2);
10557
10494
  const instance = bind(Axios$1.prototype.request, context);
10558
10495
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
10559
10496
  utils$1.extend(instance, context, null, { allOwnKeys: true });
10560
10497
  instance.create = function create2(instanceConfig) {
10561
- return createInstance(mergeConfig$1(defaultConfig2, instanceConfig));
10498
+ return createInstance(mergeConfig(defaultConfig2, instanceConfig));
10562
10499
  };
10563
10500
  return instance;
10564
10501
  }
10565
- const axios = createInstance(defaults);
10502
+ const axios = createInstance(defaults$1);
10566
10503
  axios.Axios = Axios$1;
10567
- axios.CanceledError = CanceledError$1;
10504
+ axios.CanceledError = CanceledError;
10568
10505
  axios.CancelToken = CancelToken$1;
10569
- axios.isCancel = isCancel$1;
10570
- axios.VERSION = VERSION$1;
10571
- axios.toFormData = toFormData$1;
10572
- axios.AxiosError = AxiosError$1;
10506
+ axios.isCancel = isCancel;
10507
+ axios.VERSION = VERSION;
10508
+ axios.toFormData = toFormData;
10509
+ axios.AxiosError = AxiosError;
10573
10510
  axios.Cancel = axios.CanceledError;
10574
10511
  axios.all = function all(promises) {
10575
10512
  return Promise.all(promises);
10576
10513
  };
10577
- axios.spread = spread$1;
10578
- axios.isAxiosError = isAxiosError$1;
10579
- axios.mergeConfig = mergeConfig$1;
10514
+ axios.spread = spread;
10515
+ axios.isAxiosError = isAxiosError;
10516
+ axios.mergeConfig = mergeConfig;
10580
10517
  axios.AxiosHeaders = AxiosHeaders$1;
10581
10518
  axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
10582
10519
  axios.getAdapter = adapters.getAdapter;
10583
10520
  axios.HttpStatusCode = HttpStatusCode$1;
10584
10521
  axios.default = axios;
10585
- const {
10586
- Axios: Axios2,
10587
- AxiosError,
10588
- CanceledError,
10589
- isCancel,
10590
- CancelToken: CancelToken2,
10591
- VERSION,
10592
- all: all2,
10593
- Cancel,
10594
- isAxiosError,
10595
- spread,
10596
- toFormData,
10597
- AxiosHeaders: AxiosHeaders2,
10598
- HttpStatusCode,
10599
- formToJSON,
10600
- getAdapter,
10601
- mergeConfig
10602
- } = axios;
10522
+ const axios$1 = axios;
10603
10523
  function isPhone() {
10604
10524
  if (typeof window !== "undefined" && window.navigator) {
10605
10525
  const flag = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);
@@ -10655,13 +10575,20 @@ const getOSVersion = () => {
10655
10575
  }
10656
10576
  break;
10657
10577
  case "Windows":
10658
- if (userAgent.indexOf("Windows NT 10.0") > -1) version = "10";
10659
- else if (userAgent.indexOf("Windows NT 6.3") > -1) version = "8.1";
10660
- else if (userAgent.indexOf("Windows NT 6.2") > -1) version = "8";
10661
- else if (userAgent.indexOf("Windows NT 6.1") > -1) version = "7";
10662
- else if (userAgent.indexOf("Windows NT 6.0") > -1) version = "Vista";
10663
- else if (userAgent.indexOf("Windows NT 5.1") > -1) version = "XP";
10664
- else if (userAgent.indexOf("Windows NT 5.0") > -1) version = "2000";
10578
+ if (userAgent.indexOf("Windows NT 10.0") > -1)
10579
+ version = "10";
10580
+ else if (userAgent.indexOf("Windows NT 6.3") > -1)
10581
+ version = "8.1";
10582
+ else if (userAgent.indexOf("Windows NT 6.2") > -1)
10583
+ version = "8";
10584
+ else if (userAgent.indexOf("Windows NT 6.1") > -1)
10585
+ version = "7";
10586
+ else if (userAgent.indexOf("Windows NT 6.0") > -1)
10587
+ version = "Vista";
10588
+ else if (userAgent.indexOf("Windows NT 5.1") > -1)
10589
+ version = "XP";
10590
+ else if (userAgent.indexOf("Windows NT 5.0") > -1)
10591
+ version = "2000";
10665
10592
  break;
10666
10593
  case "Android":
10667
10594
  if (userAgent.match(/Android (\d+)\.?(\d+)?/)) {
@@ -10719,7 +10646,7 @@ const setPassportPrefix = (url, method) => {
10719
10646
  return url;
10720
10647
  };
10721
10648
  const proxyService = (params, customConfigs) => {
10722
- const service = axios.create({
10649
+ const service = axios$1.create({
10723
10650
  baseURL: layoutConfig$3.VITE_API_HOST,
10724
10651
  timeout: (customConfigs == null ? void 0 : customConfigs.customTimeout) || 3e4,
10725
10652
  withCredentials: true
@@ -10756,7 +10683,6 @@ const proxyService = (params, customConfigs) => {
10756
10683
  },
10757
10684
  async (error) => {
10758
10685
  const { response } = error;
10759
- const { config } = response || {};
10760
10686
  if (response) {
10761
10687
  const errData = response.data;
10762
10688
  errData.http_status = response.status;
@@ -10884,7 +10810,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
10884
10810
  npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
10885
10811
  }
10886
10812
  const swTab = (item) => {
10887
- if (rateNow.value === null && item.index === 1) return;
10813
+ if (rateNow.value === null && item.index === 1)
10814
+ return;
10888
10815
  NPSOffsetOptions.crossAxis = item.offset_x;
10889
10816
  opinionStep.value = item.index;
10890
10817
  window.dispatchEvent(new Event("resize"));
@@ -11226,7 +11153,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
11226
11153
  };
11227
11154
  }
11228
11155
  });
11229
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11156
+ const index_vue_vue_type_style_index_0_scoped_89eb8bf2_lang = "";
11157
+ const index_vue_vue_type_style_index_1_lang$3 = "";
11158
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-89eb8bf2"]]);
11230
11159
  function usePopup(className, rootElement) {
11231
11160
  const root2 = rootElement || document.getElementById("app");
11232
11161
  let cacheClass = "popup-container";
@@ -11340,7 +11269,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
11340
11269
  };
11341
11270
  }
11342
11271
  });
11343
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11272
+ const index_vue_vue_type_style_index_0_scoped_0edd3696_lang = "";
11273
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0edd3696"]]);
11344
11274
  const black = {
11345
11275
  "theme-stress-text": "#f0f6fc",
11346
11276
  "theme-text": "#D2D8E4",
@@ -11782,7 +11712,8 @@ class Theme {
11782
11712
  }
11783
11713
  applyTheme() {
11784
11714
  const isAutoTheme = this.getIsAutoTheme();
11785
- if (!isAutoTheme) return;
11715
+ if (!isAutoTheme)
11716
+ return;
11786
11717
  if (this.darkModeMediaQuery.matches) {
11787
11718
  console.log("dark");
11788
11719
  setTheme(ThemeType.BLACK);
@@ -11845,7 +11776,7 @@ const usePageResize = () => {
11845
11776
  });
11846
11777
  return { widthType, width, widthConfig, isMobile };
11847
11778
  };
11848
- const _imports_0 = "data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3cg%20opacity='0.600000'%3e%3cpath%20id='Vector'%20d='M22%2013.89C22%2011.82%2020.72%2010.01%2018.81%209.2C19.08%2010.1%2019.27%2011%2019.27%2011.91C19.27%2014.7%2018%2017.23%2015.9%2018.86C16.18%2018.95%2016.54%2018.95%2016.9%2018.95C17.54%2018.95%2020.27%2019.04%2021.36%2019.13C21.54%2019.13%2021.63%2018.95%2021.54%2018.77C21.08%2018.41%2020.45%2017.59%2020.72%2017.23C21.54%2016.33%2022%2015.16%2022%2013.89L22%2013.89Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/g%3e%3cpath%20id='减去顶层'%20d='M10.1816%203.875C5.63672%203.875%202%207.48608%202%2011.9097C2%2013.9861%202.72656%2015.7916%204%2017.2361C4.36328%2017.6875%204%2018.5903%203.54492%2019.3125C3.36328%2019.6736%203.54492%2020.125%204%2020.125C5.72656%2020.125%209.18164%2020.0347%2010.1816%2020.0347C14.7266%2020.0347%2018.3633%2016.4236%2018.3633%2011.9097C18.3633%207.48608%2014.7266%203.875%2010.1816%203.875ZM11.9746%2015.1427L10.5762%209.59204C10.5234%209.38306%2010.4023%209.19751%2010.2324%209.06494C10.0605%208.93225%209.84961%208.86035%209.63281%208.86023L7.68555%208.86023C7.46875%208.86035%207.25781%208.93225%207.08594%209.06494C6.91602%209.19751%206.79492%209.38306%206.74219%209.59204L5.34375%2015.1427L7.35156%2015.1427L7.59375%2014.176L9.72461%2014.176L9.9668%2015.1427L11.9746%2015.1427ZM14.9863%208.86035L14.9863%2015.1437L13.041%2015.1437L13.041%208.86035L14.9863%208.86035ZM8.44531%2010.7931L8.87305%2010.7931L9.23828%2012.243L8.08008%2012.243L8.44531%2010.7931Z'%20clip-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/svg%3e";
11779
+ const _imports_0 = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQuMDAwMDAwIiBoZWlnaHQ9IjI0LjAwMDAwMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4NCgk8ZGVzYz4NCgkJCUNyZWF0ZWQgd2l0aCBQaXhzby4NCgk8L2Rlc2M+DQoJPGRlZnMvPg0KCTxnIG9wYWNpdHk9IjAuNjAwMDAwIj4NCgkJPHBhdGggaWQ9IlZlY3RvciIgZD0iTTIyIDEzLjg5QzIyIDExLjgyIDIwLjcyIDEwLjAxIDE4LjgxIDkuMkMxOS4wOCAxMC4xIDE5LjI3IDExIDE5LjI3IDExLjkxQzE5LjI3IDE0LjcgMTggMTcuMjMgMTUuOSAxOC44NkMxNi4xOCAxOC45NSAxNi41NCAxOC45NSAxNi45IDE4Ljk1QzE3LjU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2zxbJHspx2RLzPnc5/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";
11850
11781
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
11851
11782
  ...{
@@ -11888,12 +11819,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
11888
11819
  };
11889
11820
  }
11890
11821
  });
11822
+ const index_vue_vue_type_style_index_0_lang$1 = "";
11891
11823
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
11892
11824
  function getDefaultExportFromCjs(x) {
11893
11825
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11894
11826
  }
11895
11827
  function getAugmentedNamespace(n) {
11896
- if (n.__esModule) return n;
11828
+ if (n.__esModule)
11829
+ return n;
11897
11830
  var f = n.default;
11898
11831
  if (typeof f == "function") {
11899
11832
  var a = function a2() {
@@ -11903,7 +11836,8 @@ function getAugmentedNamespace(n) {
11903
11836
  return f.apply(this, arguments);
11904
11837
  };
11905
11838
  a.prototype = f.prototype;
11906
- } else a = {};
11839
+ } else
11840
+ a = {};
11907
11841
  Object.defineProperty(a, "__esModule", { value: true });
11908
11842
  Object.keys(n).forEach(function(k) {
11909
11843
  var d = Object.getOwnPropertyDescriptor(n, k);
@@ -11929,7 +11863,8 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
11929
11863
  const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
11930
11864
  var hasRequiredCore;
11931
11865
  function requireCore() {
11932
- if (hasRequiredCore) return core.exports;
11866
+ if (hasRequiredCore)
11867
+ return core.exports;
11933
11868
  hasRequiredCore = 1;
11934
11869
  (function(module, exports) {
11935
11870
  (function(root2, factory) {
@@ -11977,7 +11912,7 @@ function requireCore() {
11977
11912
  }
11978
11913
  throw new Error("Native crypto module could not be used to get secure random number.");
11979
11914
  };
11980
- var create2 = Object.create || /* @__PURE__ */ function() {
11915
+ var create2 = Object.create || function() {
11981
11916
  function F() {
11982
11917
  }
11983
11918
  return function(obj) {
@@ -11990,7 +11925,7 @@ function requireCore() {
11990
11925
  }();
11991
11926
  var C = {};
11992
11927
  var C_lib = C.lib = {};
11993
- var Base = C_lib.Base = /* @__PURE__ */ function() {
11928
+ var Base = C_lib.Base = function() {
11994
11929
  return {
11995
11930
  /**
11996
11931
  * Creates a new object that inherits from this object.
@@ -12536,7 +12471,8 @@ function requireCore() {
12536
12471
  var encBase64 = { exports: {} };
12537
12472
  var hasRequiredEncBase64;
12538
12473
  function requireEncBase64() {
12539
- if (hasRequiredEncBase64) return encBase64.exports;
12474
+ if (hasRequiredEncBase64)
12475
+ return encBase64.exports;
12540
12476
  hasRequiredEncBase64 = 1;
12541
12477
  (function(module, exports) {
12542
12478
  (function(root2, factory) {
@@ -12643,7 +12579,8 @@ function requireEncBase64() {
12643
12579
  var md5 = { exports: {} };
12644
12580
  var hasRequiredMd5;
12645
12581
  function requireMd5() {
12646
- if (hasRequiredMd5) return md5.exports;
12582
+ if (hasRequiredMd5)
12583
+ return md5.exports;
12647
12584
  hasRequiredMd5 = 1;
12648
12585
  (function(module, exports) {
12649
12586
  (function(root2, factory) {
@@ -12822,7 +12759,8 @@ var evpkdf = { exports: {} };
12822
12759
  var sha1 = { exports: {} };
12823
12760
  var hasRequiredSha1;
12824
12761
  function requireSha1() {
12825
- if (hasRequiredSha1) return sha1.exports;
12762
+ if (hasRequiredSha1)
12763
+ return sha1.exports;
12826
12764
  hasRequiredSha1 = 1;
12827
12765
  (function(module, exports) {
12828
12766
  (function(root2, factory) {
@@ -12912,7 +12850,8 @@ function requireSha1() {
12912
12850
  var hmac = { exports: {} };
12913
12851
  var hasRequiredHmac;
12914
12852
  function requireHmac() {
12915
- if (hasRequiredHmac) return hmac.exports;
12853
+ if (hasRequiredHmac)
12854
+ return hmac.exports;
12916
12855
  hasRequiredHmac = 1;
12917
12856
  (function(module, exports) {
12918
12857
  (function(root2, factory) {
@@ -13017,7 +12956,8 @@ function requireHmac() {
13017
12956
  }
13018
12957
  var hasRequiredEvpkdf;
13019
12958
  function requireEvpkdf() {
13020
- if (hasRequiredEvpkdf) return evpkdf.exports;
12959
+ if (hasRequiredEvpkdf)
12960
+ return evpkdf.exports;
13021
12961
  hasRequiredEvpkdf = 1;
13022
12962
  (function(module, exports) {
13023
12963
  (function(root2, factory, undef) {
@@ -13107,7 +13047,8 @@ function requireEvpkdf() {
13107
13047
  var cipherCore = { exports: {} };
13108
13048
  var hasRequiredCipherCore;
13109
13049
  function requireCipherCore() {
13110
- if (hasRequiredCipherCore) return cipherCore.exports;
13050
+ if (hasRequiredCipherCore)
13051
+ return cipherCore.exports;
13111
13052
  hasRequiredCipherCore = 1;
13112
13053
  (function(module, exports) {
13113
13054
  (function(root2, factory, undef) {
@@ -13249,7 +13190,7 @@ function requireCipherCore() {
13249
13190
  *
13250
13191
  * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
13251
13192
  */
13252
- _createHelper: /* @__PURE__ */ function() {
13193
+ _createHelper: function() {
13253
13194
  function selectCipherStrategy(key) {
13254
13195
  if (typeof key == "string") {
13255
13196
  return PasswordBasedCipher;
@@ -13668,15 +13609,11 @@ function requireCipherCore() {
13668
13609
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
13669
13610
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
13670
13611
  */
13671
- execute: function(password, keySize, ivSize, salt, hasher) {
13612
+ execute: function(password, keySize, ivSize, salt) {
13672
13613
  if (!salt) {
13673
13614
  salt = WordArray.random(64 / 8);
13674
13615
  }
13675
- if (!hasher) {
13676
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
13677
- } else {
13678
- var key = EvpKDF.create({ keySize: keySize + ivSize, hasher }).compute(password, salt);
13679
- }
13616
+ var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
13680
13617
  var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
13681
13618
  key.sigBytes = keySize * 4;
13682
13619
  return CipherParams.create({ key, iv, salt });
@@ -13710,7 +13647,7 @@ function requireCipherCore() {
13710
13647
  */
13711
13648
  encrypt: function(cipher, message, password, cfg) {
13712
13649
  cfg = this.cfg.extend(cfg);
13713
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
13650
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
13714
13651
  cfg.iv = derivedParams.iv;
13715
13652
  var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
13716
13653
  ciphertext.mixIn(derivedParams);
@@ -13736,7 +13673,7 @@ function requireCipherCore() {
13736
13673
  decrypt: function(cipher, ciphertext, password, cfg) {
13737
13674
  cfg = this.cfg.extend(cfg);
13738
13675
  ciphertext = this._parse(ciphertext, cfg.format);
13739
- var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
13676
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
13740
13677
  cfg.iv = derivedParams.iv;
13741
13678
  var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
13742
13679
  return plaintext;
@@ -14420,7 +14357,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14420
14357
  };
14421
14358
  }
14422
14359
  });
14423
- const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-gitcode-layout-lib"]]);
14360
+ const AiHubMenus_vue_vue_type_style_index_0_scoped_25dfc896_lang = "";
14361
+ const AiHubMenus_vue_vue_type_style_index_1_lang = "";
14362
+ const AiHubMenus = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-25dfc896"]]);
14424
14363
  const _hoisted_1$q = ["src"];
14425
14364
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
14426
14365
  ...{ name: "FlashTag" },
@@ -14475,6 +14414,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14475
14414
  };
14476
14415
  }
14477
14416
  });
14417
+ const FlashTag_vue_vue_type_style_index_0_lang = "";
14478
14418
  function listCacheClear$1() {
14479
14419
  this.__data__ = [];
14480
14420
  this.size = 0;
@@ -14537,11 +14477,11 @@ function listCacheSet$1(key, value) {
14537
14477
  }
14538
14478
  var _listCacheSet = listCacheSet$1;
14539
14479
  var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
14540
- function ListCache$4(entries2) {
14541
- var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14480
+ function ListCache$4(entries) {
14481
+ var index2 = -1, length = entries == null ? 0 : entries.length;
14542
14482
  this.clear();
14543
14483
  while (++index2 < length) {
14544
- var entry = entries2[index2];
14484
+ var entry = entries[index2];
14545
14485
  this.set(entry[0], entry[1]);
14546
14486
  }
14547
14487
  }
@@ -14738,11 +14678,11 @@ function hashSet$1(key, value) {
14738
14678
  }
14739
14679
  var _hashSet = hashSet$1;
14740
14680
  var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
14741
- function Hash$1(entries2) {
14742
- var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14681
+ function Hash$1(entries) {
14682
+ var index2 = -1, length = entries == null ? 0 : entries.length;
14743
14683
  this.clear();
14744
14684
  while (++index2 < length) {
14745
- var entry = entries2[index2];
14685
+ var entry = entries[index2];
14746
14686
  this.set(entry[0], entry[1]);
14747
14687
  }
14748
14688
  }
@@ -14799,11 +14739,11 @@ function mapCacheSet$1(key, value) {
14799
14739
  }
14800
14740
  var _mapCacheSet = mapCacheSet$1;
14801
14741
  var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
14802
- function MapCache$1(entries2) {
14803
- var index2 = -1, length = entries2 == null ? 0 : entries2.length;
14742
+ function MapCache$1(entries) {
14743
+ var index2 = -1, length = entries == null ? 0 : entries.length;
14804
14744
  this.clear();
14805
14745
  while (++index2 < length) {
14806
- var entry = entries2[index2];
14746
+ var entry = entries[index2];
14807
14747
  this.set(entry[0], entry[1]);
14808
14748
  }
14809
14749
  }
@@ -14832,8 +14772,8 @@ function stackSet$1(key, value) {
14832
14772
  }
14833
14773
  var _stackSet = stackSet$1;
14834
14774
  var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
14835
- function Stack$1(entries2) {
14836
- var data = this.__data__ = new ListCache(entries2);
14775
+ function Stack$1(entries) {
14776
+ var data = this.__data__ = new ListCache(entries);
14837
14777
  this.size = data.size;
14838
14778
  }
14839
14779
  Stack$1.prototype.clear = stackClear;
@@ -14928,7 +14868,7 @@ var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
14928
14868
  var objectProto$6 = Object.prototype;
14929
14869
  var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
14930
14870
  var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
14931
- var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
14871
+ var isArguments$1 = baseIsArguments(function() {
14932
14872
  return arguments;
14933
14873
  }()) ? baseIsArguments : function(value) {
14934
14874
  return isObjectLike$5(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
@@ -15335,7 +15275,7 @@ function initCloneByTag$1(object, tag, isDeep) {
15335
15275
  var _initCloneByTag = initCloneByTag$1;
15336
15276
  var isObject$4 = isObject_1;
15337
15277
  var objectCreate = Object.create;
15338
- var baseCreate$1 = /* @__PURE__ */ function() {
15278
+ var baseCreate$1 = function() {
15339
15279
  function object() {
15340
15280
  }
15341
15281
  return function(proto2) {
@@ -15515,7 +15455,8 @@ var relativeTime$1 = { exports: {} };
15515
15455
  break;
15516
15456
  }
15517
15457
  }
15518
- if (n2) return a;
15458
+ if (n2)
15459
+ return a;
15519
15460
  var M2 = s ? l.future : l.past;
15520
15461
  return "function" == typeof M2 ? M2(a) : M2.replace("%s", a);
15521
15462
  }, n.to = function(r2, e2) {
@@ -15571,7 +15512,8 @@ const en = {
15571
15512
  };
15572
15513
  var padStart = function padStart2(string, length, pad) {
15573
15514
  var s = String(string);
15574
- if (!s || s.length >= length) return string;
15515
+ if (!s || s.length >= length)
15516
+ return string;
15575
15517
  return "" + Array(length + 1 - s.length).join(pad) + string;
15576
15518
  };
15577
15519
  var padZoneStr = function padZoneStr2(instance) {
@@ -15582,7 +15524,8 @@ var padZoneStr = function padZoneStr2(instance) {
15582
15524
  return (negMinutes <= 0 ? "+" : "-") + padStart(hourOffset, 2, "0") + ":" + padStart(minuteOffset, 2, "0");
15583
15525
  };
15584
15526
  var monthDiff = function monthDiff2(a, b) {
15585
- if (a.date() < b.date()) return -monthDiff2(b, a);
15527
+ if (a.date() < b.date())
15528
+ return -monthDiff2(b, a);
15586
15529
  var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
15587
15530
  var anchor = a.clone().add(wholeMonthDiff, M);
15588
15531
  var c = b - anchor < 0;
@@ -15627,7 +15570,8 @@ var isDayjs = function isDayjs2(d) {
15627
15570
  };
15628
15571
  var parseLocale = function parseLocale2(preset, object, isLocal) {
15629
15572
  var l;
15630
- if (!preset) return L;
15573
+ if (!preset)
15574
+ return L;
15631
15575
  if (typeof preset === "string") {
15632
15576
  var presetLower = preset.toLowerCase();
15633
15577
  if (Ls[presetLower]) {
@@ -15646,7 +15590,8 @@ var parseLocale = function parseLocale2(preset, object, isLocal) {
15646
15590
  Ls[name] = preset;
15647
15591
  l = name;
15648
15592
  }
15649
- if (!isLocal && l) L = l;
15593
+ if (!isLocal && l)
15594
+ L = l;
15650
15595
  return l || !isLocal && L;
15651
15596
  };
15652
15597
  var dayjs = function dayjs2(date, c) {
@@ -15673,9 +15618,12 @@ Utils.i = isDayjs;
15673
15618
  Utils.w = wrapper;
15674
15619
  var parseDate = function parseDate2(cfg) {
15675
15620
  var date = cfg.date, utc2 = cfg.utc;
15676
- if (date === null) return /* @__PURE__ */ new Date(NaN);
15677
- if (Utils.u(date)) return /* @__PURE__ */ new Date();
15678
- if (date instanceof Date) return new Date(date);
15621
+ if (date === null)
15622
+ return /* @__PURE__ */ new Date(NaN);
15623
+ if (Utils.u(date))
15624
+ return /* @__PURE__ */ new Date();
15625
+ if (date instanceof Date)
15626
+ return new Date(date);
15679
15627
  if (typeof date === "string" && !/Z$/i.test(date)) {
15680
15628
  var d = date.match(REGEX_PARSE);
15681
15629
  if (d) {
@@ -15729,7 +15677,8 @@ var Dayjs = /* @__PURE__ */ function() {
15729
15677
  return this.endOf(units) < dayjs(that);
15730
15678
  };
15731
15679
  _proto.$g = function $g(input, get, set) {
15732
- if (Utils.u(input)) return this[get];
15680
+ if (Utils.u(input))
15681
+ return this[get];
15733
15682
  return this.set(set, input);
15734
15683
  };
15735
15684
  _proto.unix = function unix() {
@@ -15794,7 +15743,8 @@ var Dayjs = /* @__PURE__ */ function() {
15794
15743
  date.$d[name](arg);
15795
15744
  date.init();
15796
15745
  this.$d = date.set(DATE, Math.min(this.$D, date.daysInMonth())).$d;
15797
- } else if (name) this.$d[name](arg);
15746
+ } else if (name)
15747
+ this.$d[name](arg);
15798
15748
  this.init();
15799
15749
  return this;
15800
15750
  };
@@ -15834,7 +15784,8 @@ var Dayjs = /* @__PURE__ */ function() {
15834
15784
  _proto.format = function format2(formatStr) {
15835
15785
  var _this3 = this;
15836
15786
  var locale2 = this.$locale();
15837
- if (!this.isValid()) return locale2.invalidDate || INVALID_DATE_STRING;
15787
+ if (!this.isValid())
15788
+ return locale2.invalidDate || INVALID_DATE_STRING;
15838
15789
  var str = formatStr || FORMAT_DEFAULT;
15839
15790
  var zoneStr = Utils.z(this);
15840
15791
  var $H = this.$H, $m = this.$m, $M = this.$M;
@@ -15957,10 +15908,12 @@ var Dayjs = /* @__PURE__ */ function() {
15957
15908
  return Ls[this.$L];
15958
15909
  };
15959
15910
  _proto.locale = function locale2(preset, object) {
15960
- if (!preset) return this.$L;
15911
+ if (!preset)
15912
+ return this.$L;
15961
15913
  var that = this.clone();
15962
15914
  var nextLocaleName = parseLocale(preset, object, true);
15963
- if (nextLocaleName) that.$L = nextLocaleName;
15915
+ if (nextLocaleName)
15916
+ that.$L = nextLocaleName;
15964
15917
  return that;
15965
15918
  };
15966
15919
  _proto.clone = function clone2() {
@@ -16089,7 +16042,8 @@ var timezone = { exports: {} };
16089
16042
  f.tz = function(t3, e2) {
16090
16043
  void 0 === t3 && (t3 = r);
16091
16044
  var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t3 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s2 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
16092
- if (!Number(s2)) n2 = this.utcOffset(0, e2);
16045
+ if (!Number(s2))
16046
+ n2 = this.utcOffset(0, e2);
16093
16047
  else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s2, true), e2) {
16094
16048
  var m = n2.utcOffset();
16095
16049
  n2 = n2.add(i2 - m, "minute");
@@ -16103,15 +16057,18 @@ var timezone = { exports: {} };
16103
16057
  };
16104
16058
  var s = f.startOf;
16105
16059
  f.startOf = function(t3, e2) {
16106
- if (!this.$x || !this.$x.$timezone) return s.call(this, t3, e2);
16060
+ if (!this.$x || !this.$x.$timezone)
16061
+ return s.call(this, t3, e2);
16107
16062
  var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
16108
16063
  return s.call(n2, t3, e2).tz(this.$x.$timezone, true);
16109
16064
  }, o.tz = function(t3, e2, n2) {
16110
16065
  var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
16111
- if ("string" != typeof t3) return o(t3).tz(a2);
16066
+ if ("string" != typeof t3)
16067
+ return o(t3).tz(a2);
16112
16068
  var s2 = function(t4, e3, n3) {
16113
16069
  var i3 = t4 - 60 * e3 * 1e3, o2 = u(i3, n3);
16114
- if (e3 === o2) return [i3, e3];
16070
+ if (e3 === o2)
16071
+ return [i3, e3];
16115
16072
  var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
16116
16073
  return o2 === r2 ? [i3, o2] : [t4 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
16117
16074
  }(o.utc(t3, i2).valueOf(), f2, a2), m = s2[0], c = s2[1], d = o(m).utcOffset(c);
@@ -16152,25 +16109,31 @@ var utc$1 = { exports: {} };
16152
16109
  if (this.$u) {
16153
16110
  var t3 = this.$d;
16154
16111
  this.$y = t3.getUTCFullYear(), this.$M = t3.getUTCMonth(), this.$D = t3.getUTCDate(), this.$W = t3.getUTCDay(), this.$H = t3.getUTCHours(), this.$m = t3.getUTCMinutes(), this.$s = t3.getUTCSeconds(), this.$ms = t3.getUTCMilliseconds();
16155
- } else r.call(this);
16112
+ } else
16113
+ r.call(this);
16156
16114
  };
16157
16115
  var a = u.utcOffset;
16158
16116
  u.utcOffset = function(s2, f2) {
16159
16117
  var n2 = this.$utils().u;
16160
- if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
16118
+ if (n2(s2))
16119
+ return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
16161
16120
  if ("string" == typeof s2 && (s2 = function(t3) {
16162
16121
  void 0 === t3 && (t3 = "");
16163
16122
  var s3 = t3.match(i);
16164
- if (!s3) return null;
16123
+ if (!s3)
16124
+ return null;
16165
16125
  var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
16166
16126
  return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
16167
- }(s2), null === s2)) return this;
16127
+ }(s2), null === s2))
16128
+ return this;
16168
16129
  var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2, o2 = this;
16169
- if (f2) return o2.$offset = u2, o2.$u = 0 === s2, o2;
16130
+ if (f2)
16131
+ return o2.$offset = u2, o2.$u = 0 === s2, o2;
16170
16132
  if (0 !== s2) {
16171
16133
  var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
16172
16134
  (o2 = this.local().add(u2 + r2, t2)).$offset = u2, o2.$x.$localOffset = r2;
16173
- } else o2 = this.utc();
16135
+ } else
16136
+ o2 = this.utc();
16174
16137
  return o2;
16175
16138
  };
16176
16139
  var h2 = u.format;
@@ -16193,7 +16156,8 @@ var utc$1 = { exports: {} };
16193
16156
  };
16194
16157
  var c = u.diff;
16195
16158
  u.diff = function(t3, i2, e2) {
16196
- if (t3 && this.$u === t3.$u) return c.call(this, t3, i2, e2);
16159
+ if (t3 && this.$u === t3.$u)
16160
+ return c.call(this, t3, i2, e2);
16197
16161
  var s2 = this.local(), f2 = n(t3).local();
16198
16162
  return c.call(s2, f2, i2, e2);
16199
16163
  };
@@ -16220,12 +16184,14 @@ dayjs$1.extend(utc);
16220
16184
  dayjs$1.tz.setDefault("Asia/Shanghai");
16221
16185
  const useTimeFormat = () => {
16222
16186
  const formatTimeFromNow = (time) => {
16223
- if (!time) return "-";
16187
+ if (!time)
16188
+ return "-";
16224
16189
  const targetDate = isDate$1(time) ? time : new Date(time);
16225
16190
  return formatTimeDifference(targetDate);
16226
16191
  };
16227
16192
  const formatTime = (time, format2) => {
16228
- if (!time) return "-";
16193
+ if (!time)
16194
+ return "-";
16229
16195
  return dayjs$1(time).format(format2);
16230
16196
  };
16231
16197
  return {
@@ -16326,7 +16292,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16326
16292
  const inAIHub = computed(() => aiHubSceneValue.includes(props.scene));
16327
16293
  const emits = __emit;
16328
16294
  const handleOrgFollow = (val) => {
16329
- if (props.scene !== SceneValue.org) return;
16295
+ if (props.scene !== SceneValue.org)
16296
+ return;
16330
16297
  if (!props.isLogin) {
16331
16298
  emitEvent("login", { triggerType: "关注组织" });
16332
16299
  return;
@@ -16335,7 +16302,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16335
16302
  };
16336
16303
  const topicTag = computed(() => {
16337
16304
  var _a, _b;
16338
- if (props.scene !== SceneValue.repo) return false;
16305
+ if (props.scene !== SceneValue.repo)
16306
+ return false;
16339
16307
  let repoType = 1;
16340
16308
  repoType = Number((_a = repoInfo.value) == null ? void 0 : _a.repo_type) - 1;
16341
16309
  if ((_b = props.repoProps) == null ? void 0 : _b.isSpaces) {
@@ -16366,8 +16334,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16366
16334
  return false;
16367
16335
  });
16368
16336
  const toAiHub = () => {
16369
- if (props.scene !== SceneValue.repo) return;
16370
- if (!topicTag.value) return;
16337
+ if (props.scene !== SceneValue.repo)
16338
+ return;
16339
+ if (!topicTag.value)
16340
+ return;
16371
16341
  const aiUrl = `${layoutConfig2.VITE_AI_HOST}${topicTag.value.linkUrl}`;
16372
16342
  if (typeof window !== "undefined" && window.location) {
16373
16343
  window.location.href = aiUrl;
@@ -16375,7 +16345,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16375
16345
  };
16376
16346
  const showTimeTopic = computed(() => {
16377
16347
  var _a, _b;
16378
- if (props.scene !== SceneValue.repo) return false;
16348
+ if (props.scene !== SceneValue.repo)
16349
+ return false;
16379
16350
  if (!((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at)) {
16380
16351
  return false;
16381
16352
  }
@@ -16390,7 +16361,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16390
16361
  return formatTimeFromNow((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at);
16391
16362
  });
16392
16363
  const handleFollowUser = () => {
16393
- if (props.scene !== SceneValue.user) return;
16364
+ if (props.scene !== SceneValue.user)
16365
+ return;
16394
16366
  emits("followUser");
16395
16367
  };
16396
16368
  return (_ctx, _cache) => {
@@ -16637,7 +16609,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
16637
16609
  };
16638
16610
  }
16639
16611
  });
16640
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16612
+ const HeaderCustom_vue_vue_type_style_index_0_scoped_0a131cb4_lang = "";
16613
+ const HeaderCustom_vue_vue_type_style_index_1_lang = "";
16614
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-0a131cb4"]]);
16641
16615
  const logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAAAkCAYAAADrcPSPAAA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GAqanGQ0PKpqip6OeE8J6NEbEmQ60bCNCOmZCI1uR3UWbQJv7Un0rFvS+t0i6WysqM64DlAQOlScVzOkcPOVFblDRVER16GtneMpEPKW+li89PpmsnHpc4Iv/jxrPb4QXmQjg2OC1rwSXqCD9UwG0QAP95yvlqdsTw5bBOzBqVOOY84RVHcUpRcpe8qz8Qu3kKxDzgnMeiwkFzgXcwjPxD3KUURfMTJ7vLueqyGeL6SzocHpjK99rc9nzTSBpSLz9pyh4u46vj8k8DsUHv4JPxbf33kN/5V1TmgdbAjECibE32xkbCAc4kFB8KMwXqZHN1fPhAtYuPE51YiTU0nmdmzjUOfgpFNiRzOf8dFG5noJqnGUepBMzEnASZ24I4u85M6mGAlkJehTJ7SSrJHrm0Un2XKd8xKDzU+yPcUJu1mpWawvXgvLcDqO8JOK02RyRw10FievR2cpdYvqLK4MXyPQ2W7B0DAKa1gnIpvtEoSKmfj9Jfzg2qY1m8e4GD2x1F/t2hSxRqlvfSKSosFv7uWcwriRx3vdG5Mj7ijR8qlzIQoCVgeRTBxhmELsUsQ75WKezHOOu15S9PrRTJIiGd8F62XqbKD3ea9lFWUYY8ofu85xiJ2svGs/zSPZMuSEMt7VQd6vqnI+28Pv+XjMudl3su79intlYCXuPmJTpXhE4ZEFcsJM7M1rXHTWfmWArw4oUeIkIjEXsaiRFQPuDwGO97OAXaLE/xNSk329uZGgUWagsen6aefmmdK4SjwIyLVg9GdiDi3vdW7HeO00v4gUV0/q69pKlLgbyL8iC4GhcdZDvn9hpN9JAUA0umiUhlXiQUQhA4uC17eCLHl+aNMTKGgdRb8scr/853slSpQoUeKu4b/VMDt15riwZwAAAABJRU5ErkJggg==";
16642
16616
  const _hoisted_1$o = ["src"];
16643
16617
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
@@ -16664,7 +16638,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
16664
16638
  };
16665
16639
  }
16666
16640
  });
16667
- const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16641
+ const ChatBot_vue_vue_type_style_index_0_scoped_e951add8_lang = "";
16642
+ const ChatBot = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-e951add8"]]);
16668
16643
  const _hoisted_1$n = { class: "devui-select__item g-option-link" };
16669
16644
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
16670
16645
  ...{
@@ -16695,7 +16670,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16695
16670
  };
16696
16671
  }
16697
16672
  });
16698
- const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16673
+ const index_vue_vue_type_style_index_0_scoped_3606a524_lang = "";
16674
+ const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3606a524"]]);
16675
+ const index_vue_vue_type_style_index_0_scoped_64f4760f_lang = "";
16699
16676
  const _sfc_main$r = /* @__PURE__ */ Object.assign({
16700
16677
  name: "Create"
16701
16678
  }, {
@@ -16734,7 +16711,8 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
16734
16711
  const userInfo = JSON.parse(localStorage$2.getItem("userInfo") || "{}");
16735
16712
  const flag = await getUserCreateOrg(userInfo == null ? void 0 : userInfo.username);
16736
16713
  if (!flag) {
16737
- Message.warning($t("gitCodeLayout.userSetting.tips.youCanCreOrManUp", { num: 5 }));
16714
+ const quota = localStorage$2.getItem("group_quota") || 5;
16715
+ Message.warning($t("userSetting.tips.youCanCreOrManUp", { num: quota }));
16738
16716
  return;
16739
16717
  } else {
16740
16718
  window.location.href = `${layoutConfig2.VITE_HOST}/org/create`;
@@ -16787,7 +16765,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({
16787
16765
  };
16788
16766
  }
16789
16767
  });
16790
- const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16768
+ const Create = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-64f4760f"]]);
16791
16769
  const _sfc_main$q = /* @__PURE__ */ defineComponent({
16792
16770
  ...{
16793
16771
  name: "DocumentCenter"
@@ -16814,7 +16792,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16814
16792
  };
16815
16793
  }
16816
16794
  });
16817
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16795
+ const DocumentCenter_vue_vue_type_style_index_0_scoped_a5926f52_lang = "";
16796
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a5926f52"]]);
16818
16797
  var root = _root;
16819
16798
  var now$1 = function() {
16820
16799
  return root.Date.now();
@@ -17011,7 +16990,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17011
16990
  };
17012
16991
  }
17013
16992
  });
17014
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
16993
+ const Notice_vue_vue_type_style_index_0_scoped_061b58d4_lang = "";
16994
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-061b58d4"]]);
17015
16995
  const _hoisted_1$m = {
17016
16996
  key: 0,
17017
16997
  class: "user-level-avatar-badge"
@@ -17094,7 +17074,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17094
17074
  };
17095
17075
  }
17096
17076
  });
17097
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17077
+ const UserLevel_vue_vue_type_style_index_0_scoped_9dda511e_lang = "";
17078
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-9dda511e"]]);
17098
17079
  const _hoisted_1$l = { class: "g-user-drawer-info-list pl-[16px]" };
17099
17080
  const _hoisted_2$f = { class: "max-w-[200px]" };
17100
17081
  const _hoisted_3$c = ["title"];
@@ -17208,7 +17189,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17208
17189
  }
17209
17190
  }
17210
17191
  const getVisit = async (value) => {
17211
- const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
17192
+ const visitedDate = value || localStorage$2.getItem(AVATAR_VISITED_DATE);
17212
17193
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
17213
17194
  const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
17214
17195
  if (visitedDate === nowDate && nowUserName === props.accountInfo.username) {
@@ -17281,7 +17262,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17281
17262
  };
17282
17263
  }
17283
17264
  });
17284
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17265
+ const UserAvatarMenu_vue_vue_type_style_index_0_scoped_dfa86b44_lang = "";
17266
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-dfa86b44"]]);
17285
17267
  const _hoisted_1$k = { class: "g-user-avatar flex-center ml-1" };
17286
17268
  const _hoisted_2$e = {
17287
17269
  key: 0,
@@ -17325,14 +17307,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17325
17307
  handleAvatarRedPoint(CLICK_TIME_MODULE.GROWTH_CENTER, accountInfo.value.username);
17326
17308
  };
17327
17309
  const getVisit = async (value) => {
17328
- const visitedDate = localStorage$2.getItem(AVATAR_VISITED_DATE);
17310
+ const visitedDate = value || localStorage$2.getItem(AVATAR_VISITED_DATE);
17329
17311
  const nowDate = (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN");
17330
17312
  const nowUserName = localStorage$2.getItem(AVATAR_VISITED_USERNAME);
17331
17313
  if (visitedDate === nowDate && nowUserName === accountInfo.value.username) {
17332
17314
  haveVisited.value = true;
17333
17315
  }
17334
17316
  };
17335
- getVisit();
17317
+ getVisit("");
17336
17318
  const getScrollDom = () => {
17337
17319
  if (typeof document !== "undefined" && document.getElementById) {
17338
17320
  const appDom = document.getElementById("app");
@@ -17401,7 +17383,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17401
17383
  };
17402
17384
  }
17403
17385
  });
17404
- const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17386
+ const UserAvatar_vue_vue_type_style_index_0_scoped_2b79e772_lang = "";
17387
+ const UserAvatar_vue_vue_type_style_index_1_lang = "";
17388
+ const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2b79e772"]]);
17405
17389
  var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
17406
17390
  EVENT_NAME2["START_SEARCH"] = "开始搜索";
17407
17391
  EVENT_NAME2["SEARCH"] = "搜索";
@@ -17460,7 +17444,7 @@ function _frEventTrack(eventName, type = "custom") {
17460
17444
  }
17461
17445
  }
17462
17446
  const setlocalVistHistory = (data, localType) => {
17463
- const storeName = localType;
17447
+ const storeName = localType || "localVistList";
17464
17448
  const localData = localStorage$2.getItem(storeName);
17465
17449
  let cur = [];
17466
17450
  if (localData) {
@@ -17478,13 +17462,18 @@ const setlocalVistHistory = (data, localType) => {
17478
17462
  cur.splice(cur.indexOf(target), 1);
17479
17463
  cur.unshift(target);
17480
17464
  }
17465
+ } else {
17466
+ if (!cur.some((ele) => ele === data || data.label && ele.label === data.label)) {
17467
+ cur.unshift(data);
17468
+ }
17481
17469
  }
17482
17470
  } catch (e) {
17483
17471
  }
17484
17472
  } else {
17485
17473
  cur = [data];
17486
17474
  }
17487
- const storageCount = 10;
17475
+ const isLocalSearch = localType === "localSearchText";
17476
+ const storageCount = isLocalSearch ? 10 : 5;
17488
17477
  cur.splice(storageCount);
17489
17478
  localStorage$2.setItem(storeName, JSON.stringify(cur));
17490
17479
  return cur;
@@ -17566,13 +17555,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
17566
17555
  setup(__props) {
17567
17556
  var _a;
17568
17557
  const { t: $t } = i18n.global;
17569
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CXE87VT0.js"));
17570
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BCZauJC7.js"));
17571
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-1hoPbNMT.js"));
17572
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CfTF5kJD.js"));
17573
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-POSUOSPF.js"));
17574
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Xz1aAyGv.js"));
17575
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DWSNGoBB.js"));
17558
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-5917cad0.js"));
17559
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-6709a173.js"));
17560
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-c34185dd.js"));
17561
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-03f6394b.js"));
17562
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-0407f071.js"));
17563
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-84cc12b9.js"));
17564
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-91a14940.js"));
17576
17565
  const props = __props;
17577
17566
  const repoInfo = inject("repoInfo");
17578
17567
  const orgInfo = inject("orgInfo");
@@ -18091,8 +18080,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18091
18080
  };
18092
18081
  }
18093
18082
  });
18094
- const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18095
- const NoticeModal = defineAsyncComponent(() => import("./notice-8n5EYXk6.js"));
18083
+ const index_vue_vue_type_style_index_0_scoped_56b3cd7b_lang = "";
18084
+ const index_vue_vue_type_style_index_1_lang$2 = "";
18085
+ const Search = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-56b3cd7b"]]);
18086
+ const NoticeModal = defineAsyncComponent(() => import("./notice-1775ea67.js"));
18096
18087
  function clearNotice() {
18097
18088
  if (localStorage$2.getItem("validator_email")) {
18098
18089
  localStorage$2.removeItem("validator_email");
@@ -18432,7 +18423,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18432
18423
  };
18433
18424
  }
18434
18425
  });
18435
- const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18426
+ const index_vue_vue_type_style_index_0_scoped_1d4870b7_lang = "";
18427
+ const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1d4870b7"]]);
18436
18428
  const createSetting = () => {
18437
18429
  const { t: t2 } = i18n.global;
18438
18430
  const settings = {
@@ -18480,6 +18472,7 @@ if (isBrowser) {
18480
18472
  }
18481
18473
  };
18482
18474
  }
18475
+ const sessionStorage$1 = sessionStorage;
18483
18476
  const _hoisted_1$h = { class: "tools-item-wrapper" };
18484
18477
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
18485
18478
  const _hoisted_3$8 = ["onClick", "title"];
@@ -18491,11 +18484,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18491
18484
  const router2 = useRouter();
18492
18485
  const { t: t2 } = i18n.global;
18493
18486
  const handleClick = (linkItem) => {
18494
- if (lang.value === linkItem.value) return;
18487
+ if (lang.value === linkItem.value)
18488
+ return;
18495
18489
  lang.value = linkItem.value;
18496
18490
  const isHomePage = router2.currentRoute.value.name === "home";
18497
18491
  if (isHomePage) {
18498
- sessionStorage.setItem("page_reload", "changedLang");
18492
+ sessionStorage$1.setItem("page_reload", "changedLang");
18499
18493
  }
18500
18494
  window.location.reload();
18501
18495
  };
@@ -18542,7 +18536,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18542
18536
  { value: ThemeType.BLACK, icon: "gt-line-dark" }
18543
18537
  ]);
18544
18538
  const handleClick = (themeItem) => {
18545
- if (activeTheme.value === themeItem.value) return;
18539
+ if (activeTheme.value === themeItem.value)
18540
+ return;
18546
18541
  activeTheme.value = themeItem.value;
18547
18542
  if (themeItem.value === "System") {
18548
18543
  theme.startAutoTheme();
@@ -18579,6 +18574,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18579
18574
  };
18580
18575
  }
18581
18576
  });
18577
+ const Theme_vue_vue_type_style_index_0_lang = "";
18582
18578
  const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
18583
18579
  var _a, _b;
18584
18580
  try {
@@ -18623,14 +18619,16 @@ const loadAsideData = async (requestFn, params = {}, dataType = "project") => {
18623
18619
  };
18624
18620
  const layoutConfig$1 = useLayoutConfig();
18625
18621
  const transWebUrl = (url, params) => {
18626
- if (!url) return url;
18622
+ if (!url)
18623
+ return url;
18627
18624
  let processedUrl = url;
18628
18625
  if (layoutConfig$1.VITE_ENV !== "production") {
18629
18626
  const regex = /^(?:https?:\/\/)?(?:www\.)?([^\/]+)(\/.*)$/;
18630
18627
  const match = url.match(regex);
18631
18628
  processedUrl = match ? match[2] : url || "/";
18632
18629
  }
18633
- if (!params) return processedUrl;
18630
+ if (!params)
18631
+ return processedUrl;
18634
18632
  const separator = processedUrl.includes("?") ? "&" : "?";
18635
18633
  if (typeof params === "string") {
18636
18634
  return `${processedUrl}${separator}${params}`;
@@ -18805,7 +18803,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18805
18803
  if (inputIng.value) {
18806
18804
  return;
18807
18805
  }
18808
- if (scTimer) clearTimeout(scTimer);
18806
+ if (scTimer)
18807
+ clearTimeout(scTimer);
18809
18808
  scTimer = setTimeout(() => {
18810
18809
  if (props.type === "project") {
18811
18810
  searchProject();
@@ -18985,7 +18984,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18985
18984
  };
18986
18985
  }
18987
18986
  });
18988
- const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18987
+ const ProjectMenuList_vue_vue_type_style_index_0_scoped_6834b457_lang = "";
18988
+ const ProjectMenuList_vue_vue_type_style_index_1_lang = "";
18989
+ const ProjectMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6834b457"]]);
18989
18990
  const _hoisted_1$e = { class: "side-bar-label" };
18990
18991
  const _hoisted_2$8 = {
18991
18992
  key: 0,
@@ -19076,15 +19077,18 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19076
19077
  };
19077
19078
  const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage$2.getItem("userInfo") || "{}").username);
19078
19079
  const showPreferencesSetting = computed(() => {
19079
- if (props.showPreferencesSetting !== void 0) return !props.asideSetShowLittle && props.showPreferencesSetting;
19080
+ if (props.showPreferencesSetting !== void 0)
19081
+ return !props.asideSetShowLittle && props.showPreferencesSetting;
19080
19082
  return !props.asideSetShowLittle && route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
19081
19083
  });
19082
19084
  const showThemeSetting = computed(() => {
19083
- if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0) return props.showThemeSetting;
19085
+ if (props.showPreferencesSetting !== void 0 && props.showThemeSetting !== void 0)
19086
+ return props.showThemeSetting;
19084
19087
  return ![SceneValue.aiHome, SceneValue.aiGuide].includes(props.sceneValue);
19085
19088
  });
19086
19089
  const showLangSetting = computed(() => {
19087
- if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0) return props.showLangSetting;
19090
+ if (props.showPreferencesSetting !== void 0 && props.showLangSetting !== void 0)
19091
+ return props.showLangSetting;
19088
19092
  return true;
19089
19093
  });
19090
19094
  const isEn = computed(() => {
@@ -19273,14 +19277,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19273
19277
  emits("onMenuClick");
19274
19278
  };
19275
19279
  function checkMenu() {
19276
- if (!route) return;
19280
+ if (!route)
19281
+ return;
19277
19282
  const name = route == null ? void 0 : route.name;
19278
19283
  if (MENU_ITEM_ROUTE_NAME.includes(name)) {
19279
19284
  defaultSelectKeys.value = [name];
19280
19285
  console.log(defaultSelectKeys.value);
19281
19286
  } else {
19282
19287
  const basePath = route.meta.basePath;
19283
- if (basePath) defaultSelectKeys.value = [basePath];
19288
+ if (basePath)
19289
+ defaultSelectKeys.value = [basePath];
19284
19290
  }
19285
19291
  }
19286
19292
  watch(
@@ -19301,7 +19307,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19301
19307
  const timer = ref(null);
19302
19308
  const handleScroll = () => {
19303
19309
  isScroll.value = true;
19304
- if (timer.value) clearTimeout(timer.value);
19310
+ if (timer.value)
19311
+ clearTimeout(timer.value);
19305
19312
  timer.value = setTimeout(() => {
19306
19313
  isScroll.value = false;
19307
19314
  }, 1e3);
@@ -19578,7 +19585,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
19578
19585
  };
19579
19586
  }
19580
19587
  });
19581
- const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19588
+ const asideContent_vue_vue_type_style_index_0_scoped_f33b2a32_lang = "";
19589
+ const asideContent_vue_vue_type_style_index_1_lang = "";
19590
+ const AsideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f33b2a32"]]);
19582
19591
  const _hoisted_1$d = { class: "p-[16px] flex justify-between items-center h-[60px]" };
19583
19592
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
19584
19593
  __name: "index",
@@ -19605,7 +19614,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19605
19614
  provide("userInfo", computed(() => props.userInfo));
19606
19615
  provide("useReport", useReport2);
19607
19616
  const showBgColor = computed(() => {
19608
- if (route.meta.showBgColor) return true;
19617
+ if (route.meta.showBgColor)
19618
+ return true;
19609
19619
  return false;
19610
19620
  });
19611
19621
  const asideSetShow = computed(() => {
@@ -19711,7 +19721,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19711
19721
  };
19712
19722
  }
19713
19723
  });
19714
- const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19724
+ const index_vue_vue_type_style_index_0_scoped_f5208450_lang = "";
19725
+ const index_vue_vue_type_style_index_1_lang$1 = "";
19726
+ const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f5208450"]]);
19715
19727
  const repoInfoData = {
19716
19728
  "star_count": 0,
19717
19729
  "forks_count": 0,
@@ -20386,6 +20398,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
20386
20398
  };
20387
20399
  }
20388
20400
  });
20401
+ const home_vue_vue_type_style_index_0_lang = "";
20389
20402
  const _hoisted_1$b = { class: "home-wrapper" };
20390
20403
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
20391
20404
  __name: "login",
@@ -20432,6 +20445,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
20432
20445
  };
20433
20446
  }
20434
20447
  });
20448
+ const login_vue_vue_type_style_index_0_lang = "";
20435
20449
  const routes = [
20436
20450
  {
20437
20451
  path: "/",
@@ -20519,7 +20533,7 @@ async function csdnloginCheck(route, loginCallback, request) {
20519
20533
  localStorage$2.setItem("cache_loginTimes", `${Number(loginTimes) + 1}`);
20520
20534
  window.page_title = ((_f = route.meta) == null ? void 0 : _f.reportTitle) || "";
20521
20535
  await useReport("pageview", {}, request);
20522
- sessionStorage.setItem(GOTO_QUICK_LOGIN, "1");
20536
+ sessionStorage$1.setItem(GOTO_QUICK_LOGIN, "1");
20523
20537
  loginCallback();
20524
20538
  return true;
20525
20539
  }
@@ -20538,7 +20552,8 @@ const createLoginConfig = (request) => {
20538
20552
  }, failFunc = () => {
20539
20553
  } } = param;
20540
20554
  const check = validFunc ? await validFunc() : true;
20541
- if (!check) return;
20555
+ if (!check)
20556
+ return;
20542
20557
  const result2 = await API.loginByMobile(loginParams);
20543
20558
  if (!result2.error) {
20544
20559
  const resultData = result2.data.data;
@@ -20555,7 +20570,8 @@ const createLoginConfig = (request) => {
20555
20570
  }, failFunc = () => {
20556
20571
  } } = param;
20557
20572
  const check = validFunc ? await validFunc() : true;
20558
- if (!check) return;
20573
+ if (!check)
20574
+ return;
20559
20575
  const result2 = await API.toLogin(loginParams);
20560
20576
  if (((_a = result2 == null ? void 0 : result2.error) == null ? void 0 : _a.error_code) === GRAPH_CODE) {
20561
20577
  graphValidate();
@@ -20599,7 +20615,8 @@ const createLoginConfig = (request) => {
20599
20615
  beforeCsdnLogin(param) {
20600
20616
  const { type, validFunc } = param;
20601
20617
  const check = validFunc ? validFunc() : true;
20602
- if (!check) return;
20618
+ if (!check)
20619
+ return;
20603
20620
  saveStatusBeforeLogin(param);
20604
20621
  goAuthPage(type);
20605
20622
  },
@@ -20625,7 +20642,8 @@ const createLoginConfig = (request) => {
20625
20642
  async beforeWechatLogin(param) {
20626
20643
  const { validFunc, type } = param;
20627
20644
  const check = validFunc == null ? void 0 : validFunc();
20628
- if (!check) return;
20645
+ if (!check)
20646
+ return;
20629
20647
  saveStatusBeforeLogin(param);
20630
20648
  goAuthPage(type);
20631
20649
  },
@@ -20637,7 +20655,8 @@ const createLoginConfig = (request) => {
20637
20655
  beforeOtherLogin(param) {
20638
20656
  const { type, validFunc } = param;
20639
20657
  const check = validFunc ? validFunc() : true;
20640
- if (!check) return;
20658
+ if (!check)
20659
+ return;
20641
20660
  saveStatusBeforeLogin(param);
20642
20661
  goAuthPage(type);
20643
20662
  },
@@ -20664,7 +20683,7 @@ function saveSignPath() {
20664
20683
  localStorage$2.setItem("sign_path", (window == null ? void 0 : window.location.href) || "");
20665
20684
  }
20666
20685
  function saveLoginType(triggerType = "") {
20667
- sessionStorage.setItem("loginType", triggerType);
20686
+ sessionStorage$1.setItem("loginType", triggerType);
20668
20687
  }
20669
20688
  function getLoginReturnUrl() {
20670
20689
  return api.get("third_utm_source_sign_path") || localStorage$2.getItem("loginReturnUrl") || "/";
@@ -20843,57 +20862,57 @@ const HandleParentWindowGetLoginInfo = (request) => {
20843
20862
  }
20844
20863
  };
20845
20864
  };
20846
- const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
20865
+ const logoBack = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy/lt6blpIfku708L3RpdGxlPg0KICAgIDxnIGlkPSJQQ+erryIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSIwMi3nmbvlvZXms6jlhowt55m75b2V44CB5rOo5YaMIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTUzLCAtMTg1NSkiIGZpbGw9IiM4QThFOTkiIGZpbGwtcnVsZT0ibm9uemVybyI+DQogICAgICAgICAgICA8ZyBpZD0i57yW57uELTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNSwgMTgzMCkiPg0KICAgICAgICAgICAgICAgIDxnIGlkPSJpYy/lt6blpIfku70iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMxLjEzOTMsIDI4Ljk2OTcpIj4NCiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hCIgcG9pbnRzPSI4LjAzMDI5MTIxIDMuNTUyNzEzNjhlLTE1IDkuMDkxMDI5MTQgMS4wNjA1ODI0IDIuODcyNSA3LjI3OTUgMTcuODYwNjYwMiA3LjI4MDI5MTIgMTcuODYwNjYwMiA4Ljc4MDI5MTIgMi44Njk1IDguNzc5NSA5LjA5MTAyOTE0IDE0Ljk5OTkyMjIgOC4wMzAzNjg5OCAxNi4wNjA2NjAyIDAgOC4wMzE0Njg4NCI+PC9wb2x5Z29uPg0KICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgIDwvZz4NCiAgICAgICAgPC9nPg0KICAgIDwvZz4NCjwvc3ZnPg==";
20847
20866
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20848
20867
  __proto__: null,
20849
20868
  default: logoBack
20850
20869
  }, Symbol.toStringTag, { value: "Module" }));
20851
- const logoCsdn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/csdn%3c/title%3e%3cg%20id='ic/csdn'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M24.7385612,21.818791%20C24.4728206,21.5662432%2024.1090763,21.4267765%2023.7575825,21.4343152%20C23.3966653,21.4399693%2023.0696724,21.5907441%2022.8378562,21.8555424%20C20.7581061,24.2349574%2017.1347988,24.4922169%2015.6732254,24.4922169%20C12.9611634,24.4922169%2010.886125,23.8043069%209.50559315,22.4501605%20C8.19385225,21.1638629%207.50594216,19.2678696%207.46070972,16.8168365%20C7.35516735,11.1345107%2010.5732673,5.25806226%2016.139685,5.25806226%20C18.7980335,5.25806226%2020.8627061,7.14368979%2021.6260036,7.95410443%20C21.8917442,8.23586486%2022.2583155,8.39794779%2022.6352525,8.39983247%20C23.0131319,8.4092559%2023.362741,8.24151892%2023.599269,7.96164317%20L23.8160078,7.70532598%20C24.2607935,7.18232584%2024.4605701,6.50572386%2024.380471,5.80179394%20C24.2984872,5.09126763%2023.9422817,4.44293592%2023.3778185,3.97459165%20C22.0133064,2.84472288%2019.6951436,1.5%2016.3969445,1.5%20C12.9715292,1.5%209.58757695,3.07465447%207.1129853,5.82441016%20C4.51306208,8.71269021%203.1240491,12.6441435%203.20320588,16.895051%20C3.26634283,20.3063311%204.38490349,23.1729373%206.44015269,25.1886081%20C8.64806138,27.3550537%2011.8821812,28.5%2015.7947876,28.5%20C20.3849384,28.5%2023.2289283,27.1401996%2024.8082945,26.0009074%20C25.4198749,25.5608334%2025.7845615,24.8644423%2025.8128317,24.093606%20C25.8392173,23.3190004%2025.5225902,22.5604146%2024.9430495,22.0119712%20L24.7385612,21.818791%20Z'%20id='Fill-1'%20fill='%23FC5533'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20870
+ const logoCsdn = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0i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5NzEyIEwyNC43Mzg1NjEyLDIxLjgxODc5MSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkM1NTMzIj48L3BhdGg+DQogICAgPC9nPg0KPC9zdmc+";
20852
20871
  const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20853
20872
  __proto__: null,
20854
20873
  default: logoCsdn
20855
20874
  }, Symbol.toStringTag, { value: "Module" }));
20856
- const logoGit = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_5084_286)'%3e%3cpath%20d='M35.2868%2016.3983L19.5839%200.696229C18.6798%20-0.208639%2017.2132%20-0.208639%2016.3083%200.696229L12.66%204.34447L15.4056%207.09C15.8458%206.87925%2016.3385%206.76128%2016.8593%206.76128C18.7215%206.76128%2020.2313%208.27107%2020.2313%2010.1333C20.2313%2010.6541%2020.1133%2011.1468%2019.9026%2011.587L24.3974%2016.0818C24.8376%2015.8711%2025.3303%2015.7531%2025.8511%2015.7531C27.7134%2015.7531%2029.2231%2017.2629%2029.2231%2019.1252C29.2231%2020.9874%2027.7134%2022.4972%2025.8511%2022.4972C23.9889%2022.4972%2022.4791%2020.9874%2022.4791%2019.1252C22.4791%2018.6044%2022.597%2018.1117%2022.8078%2017.6715L18.313%2013.1766C18.2058%2013.2277%2018.0957%2013.273%2017.9835%2013.3126V22.6892C19.2926%2023.1525%2020.2313%2024.4004%2020.2313%2025.8685C20.2313%2027.7308%2018.7215%2029.2405%2016.8593%2029.2405C14.997%2029.2405%2013.4872%2027.7308%2013.4872%2025.8685C13.4872%2024.4004%2014.4259%2023.1525%2015.735%2022.6892V13.3126C14.4259%2012.8494%2013.4872%2011.6014%2013.4872%2010.1333C13.4872%209.61255%2013.6052%209.11984%2013.8159%208.67963L11.0704%205.9341L0.678111%2016.3257C-0.226037%2017.2313%20-0.226037%2018.6979%200.678111%2019.6021L16.3817%2035.3042C17.2858%2036.2083%2018.7517%2036.2083%2019.6573%2035.3042L35.2868%2019.6747C36.1916%2018.7698%2036.1916%2017.3025%2035.2868%2016.3983Z'%20fill='%23F74E27'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_5084_286'%3e%3crect%20width='36'%20height='36'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
20875
+ const logoGit = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF81MDg0XzI4NikiPg0KPHBhdGggZD0iTTM1LjI4NjggMTYuMzk4M0wxOS41ODM5IDAuNjk2MjI5QzE4LjY3OTggLTAuMjA4NjM5IDE3LjIxMzIgLTAuMjA4NjM5IDE2LjMwODMgMC42OTYyMjlMMTIuNjYgNC4zNDQ0N0wxNS40MDU2IDcuMDlDMTUuODQ1OCA2Ljg3OTI1IDE2LjMzODUgNi43NjEyOCAxNi44NTkzIDYuNzYxMjhDMTguNzIxNSA2Ljc2MTI4IDIwLjIzMTMgOC4yNzEwNyAyMC4yMzEzIDEwLjEzMzNDMjAuMjMxMyAxMC42NTQxIDIwLjExMzMgMTEuMTQ2OCAxOS45MDI2IDExLjU4N0wyNC4zOTc0IDE2LjA4MThDMjQuODM3NiAxNS44NzExIDI1LjMzMDMgMTUuNzUzMSAyNS44NTExIDE1Ljc1MzFDMjcuNzEzNCAxNS43NTMxIDI5LjIyMzEgMTcuMjYyOSAyOS4yMjMxIDE5LjEyNTJDMjkuMjIzMSAyMC45ODc0IDI3LjcxMzQgMjIuNDk3MiAyNS44NTExIDIyLjQ5NzJDMjMuOTg4OSAyMi40OTcyIDIyLjQ3OTEgMjAuOTg3NCAyMi40NzkxIDE5LjEyNTJD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_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20858
20877
  __proto__: null,
20859
20878
  default: logoGit
20860
20879
  }, Symbol.toStringTag, { value: "Module" }));
20861
- const logoGitee = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1698805664755'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6116'%20width='128'%20height='128'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M512%20512m-494.933333%200a494.933333%20494.933333%200%201%200%20989.866666%200%20494.933333%20494.933333%200%201%200-989.866666%200Z'%20fill='%23C71D23'%20p-id='6117'%3e%3c/path%3e%3cpath%20d='M762.538667%20457.045333h-281.088a24.4736%2024.4736%200%200%200-24.439467%2024.405334v61.098666c-0.034133%2013.5168%2010.922667%2024.439467%2024.405333%2024.439467h171.1104c13.5168%200%2024.439467%2010.922667%2024.439467%2024.439467v12.219733a73.3184%2073.3184%200%200%201-73.3184%2073.3184h-232.209067a24.439467%2024.439467%200%200%201-24.439466-24.439467v-232.174933a73.3184%2073.3184%200%200%201%2073.3184-73.3184h342.152533c13.482667%200%2024.405333-10.922667%2024.439467-24.439467l0.034133-61.098666a24.405333%2024.405333%200%200%200-24.405333-24.439467H420.352a183.296%20183.296%200%200%200-183.296%20183.296V762.538667c0%2013.482667%2010.922667%2024.439467%2024.405333%2024.439466h360.516267a164.9664%20164.9664%200%200%200%20165.000533-165.000533v-140.526933a24.439467%2024.439467%200%200%200-24.439466-24.439467z'%20fill='%23FFFFFF'%20p-id='6118'%3e%3c/path%3e%3c/svg%3e";
20880
+ const logoGitee = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DV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xODRoMzQyLjE1MjUzM2MxMy40ODI2NjcgMCAyNC40MDUzMzMtMTAuOTIyNjY3IDI0LjQzOTQ2Ny0yNC40Mzk0NjdsMC4wMzQxMzMtNjEuMDk4NjY2YTI0LjQwNTMzMyAyNC40MDUzMzMgMCAwIDAtMjQuNDA1MzMzLTI0LjQzOTQ2N0g0MjAuMzUyYTE4My4yOTYgMTgzLjI5NiAwIDAgMC0xODMuMjk2IDE4My4yOTZWNzYyLjUzODY2N2MwIDEzLjQ4MjY2NyAxMC45MjI2NjcgMjQuNDM5NDY3IDI0LjQwNTMzMyAyNC40Mzk0NjZoMzYwLjUxNjI2N2ExNjQuOTY2NCAxNjQuOTY2NCAwIDAgMCAxNjUuMDAwNTMzLTE2NS4wMDA1MzN2LTE0MC41MjY5MzNhMjQuNDM5NDY3IDI0LjQzOTQ2NyAwIDAgMC0yNC40Mzk0NjYtMjQuNDM5NDY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iNjExOCI+PC9wYXRoPjwvc3ZnPg==";
20862
20881
  const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20863
20882
  __proto__: null,
20864
20883
  default: logoGitee
20865
20884
  }, Symbol.toStringTag, { value: "Module" }));
20866
- const logoGithubWhite = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1728468092548'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='27599'%20id='mx_n_1728468092549'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M533.312%2032A490.496%20490.496%200%200%200%2042.688%20522.688a490.24%20490.24%200%200%200%20335.488%20465.472c24.512%204.288%2033.664-10.432%2033.664-23.296%200-11.648-0.576-50.24-0.576-91.392-123.264%2022.72-155.136-30.08-164.928-57.6-5.568-14.08-29.44-57.664-50.368-69.312-17.152-9.216-41.664-31.936-0.64-32.512%2038.72-0.64%2066.304%2035.584%2075.52%2050.304%2044.16%2074.24%20114.688%2053.312%20142.912%2040.448%204.224-31.872%2017.152-53.376%2031.232-65.664-109.184-12.224-223.232-54.528-223.232-242.24%200-53.312%2019.008-97.472%2050.304-131.84-4.928-12.288-22.08-62.592%204.864-130.048%200%200%2041.088-12.864%20134.976%2050.304a454.72%20454.72%200%200%201%20122.688-16.576c41.664%200%2083.392%205.568%20122.624%2016.576%2093.888-63.808%20134.912-50.304%20134.912-50.304%2027.008%2067.456%209.856%20117.76%204.928%20130.048%2031.296%2034.368%2050.304%2077.888%2050.304%20131.84%200%20188.288-114.688%20229.952-223.872%20242.24%2017.792%2015.36%2033.088%2044.8%2033.088%2090.816%200%2065.6-0.576%20118.4-0.576%20134.912%200%2012.864%209.216%2028.224%2033.728%2023.36A491.456%20491.456%200%200%200%201024%20522.688%20490.496%20490.496%200%200%200%20533.312%2032z'%20p-id='27600'%20fill='%23f0f6fc'%3e%3c/path%3e%3c/svg%3e";
20885
+ const logoGithubWhite = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzI4NDY4MDkyNTQ4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3NTk5IiBpZD0ibXhfbl8xNzI4NDY4MDkyNTQ5IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vc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ODggNTAuMzA0IDEzMS44NCAwIDE4OC4yODgtMTE0LjY4OCAyMjkuOTUyLTIyMy44NzIgMjQyLjI0IDE3Ljc5MiAxNS4zNiAzMy4wODggNDQuOCAzMy4wODggOTAuODE2IDAgNjUuNi0wLjU3NiAxMTguNC0wLjU3NiAxMzQuOTEyIDAgMTIuODY0IDkuMjE2IDI4LjIyNCAzMy43MjggMjMuMzZBNDkxLjQ1NiA0OTEuNDU2IDAgMCAwIDEwMjQgNTIyLjY4OCA0OTAuNDk2IDQ5MC40OTYgMCAwIDAgNTMzLjMxMiAzMnoiIHAtaWQ9IjI3NjAwIiBmaWxsPSIjZjBmNmZjIj48L3BhdGg+PC9zdmc+";
20867
20886
  const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20868
20887
  __proto__: null,
20869
20888
  default: logoGithubWhite
20870
20889
  }, Symbol.toStringTag, { value: "Module" }));
20871
- const logoGithub = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/github%3c/title%3e%3cg%20id='ic/github'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M15.011998,0.5%20C6.987238,0.5%200.5,7.03506277%200.5,15.1198266%20C0.5,21.5824096%204.65659697,27.0528512%2010.4228987,28.9890121%20C11.143835,29.1345657%2011.4079109,28.6744379%2011.4079109,28.287384%20C11.4079109,27.9484518%2011.3841471,26.7866959%2011.3841471,25.5762241%20C7.34726055,26.4477638%206.50661383,23.8334416%206.50661383,23.8334416%20C5.85786033,22.1390781%204.89661201,21.7036053%204.89661201,21.7036053%20C3.57534113,20.8080046%204.99285566,20.8080046%204.99285566,20.8080046%20C6.45849201,20.9048424%207.22755008,22.3086927%207.22755008,22.3086927%20C8.52476004,24.5353668%2010.615089,23.9062185%2011.4560327,23.5188675%20C11.5760403,22.574848%2011.9607178,21.9213417%2012.3691592,21.5583486%20C9.14945263,21.2194165%205.76191373,19.9608228%205.76191373,14.3451246%20C5.76191373,12.7475988%206.33818744,11.4405862%207.25131394,10.4240869%20C7.10724551,10.0610939%206.60256044,8.56010879%207.39567942,6.55117108%20C7.39567942,6.55117108%208.62100369,6.16382009%2011.38385,8.05185913%20C12.5667228,7.73183788%2013.7866003,7.56904106%2015.011998,7.56767039%20C16.2373223,7.56767039%2017.4864104,7.73728497%2018.639849,8.05185913%20C21.4029924,6.16382009%2022.6283166,6.55117108%2022.6283166,6.55117108%20C23.4214356,8.56010879%2022.9164535,10.0610939%2022.7723851,10.4240869%20C23.7095725,11.4405862%2024.2620823,12.7475988%2024.2620823,14.3451246%20C24.2620823,19.9608228%2020.8745434,21.1950586%2017.6307759,21.5583486%20C18.1595219,22.0181794%2018.6157881,22.8894221%2018.6157881,24.2692115%20C18.6157881,26.2297303%2018.5920242,27.8031952%2018.5920242,28.2870869%20C18.5920242,28.6744379%2018.8563972,29.1345657%2019.5770364,28.9893091%20C25.3433382,27.0525541%2029.5,21.5824096%2029.5,15.1198266%20C29.523699,7.03506277%2023.0126972,0.5%2015.011998,0.5%20Z'%20id='路径'%20fill='%23000000'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20890
+ const logoGithub = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy9naXRodWI8L3RpdGxlPg0KICAgIDxnIGlkPSJpYy9na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MzQ1NjU3IDE5LjU3NzAzNjQsMjguOTg5MzA5MSBDMjUuMzQzMzM4MiwyNy4wNTI1NTQxIDI5LjUsMjEuNTgyNDA5NiAyOS41LDE1LjExOTgyNjYgQzI5LjUyMzY5OSw3LjAzNTA2Mjc3IDIzLjAxMjY5NzIsMC41IDE1LjAxMTk5OCwwLjUgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iIzAwMDAwMCI+PC9wYXRoPg0KICAgIDwvZz4NCjwvc3ZnPg==";
20872
20891
  const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20873
20892
  __proto__: null,
20874
20893
  default: logoGithub
20875
20894
  }, Symbol.toStringTag, { value: "Module" }));
20876
- const logoGitlab = "data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M32.7772%2019.961L31.1173%2014.8526L27.8277%204.72768C27.6585%204.20676%2026.9215%204.20676%2026.7522%204.72768L23.4623%2014.8525H12.5381L9.24829%204.7276C9.07909%204.20668%208.34209%204.20668%208.17275%204.7276L4.88307%2014.8525L3.22333%2019.9611C3.14952%2020.1882%203.14952%2020.4328%203.22331%2020.66C3.29709%2020.8871%203.44089%2021.085%203.63409%2021.2254L17.9999%2031.6629L32.3658%2021.2255C32.7621%2020.9375%2032.928%2020.427%2032.7766%2019.9611'%20fill='%23FC6D26'/%3e%3cpath%20d='M18.0002%2031.6623L23.4623%2014.8516H12.5381L18.0002%2031.6623Z'%20fill='%23E24329'/%3e%3cpath%20d='M17.9997%2031.6627L12.5376%2014.8525H4.88281L17.9997%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M4.88321%2014.8525L3.22332%2019.9611C3.14952%2020.1882%203.14952%2020.4329%203.22332%2020.66C3.29712%2020.8871%203.44094%2021.085%203.63416%2021.2254L18%2031.663L4.88321%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M4.88281%2014.8516H12.5376L9.24781%204.72668C9.07861%204.20569%208.34155%204.20569%208.17235%204.72668L4.88281%2014.8516Z'%20fill='%23E24329'/%3e%3cpath%20d='M18.0001%2031.6627L23.4622%2014.8525H31.117L18.0001%2031.6627Z'%20fill='%23FC6D26'/%3e%3cpath%20d='M31.1178%2014.8525L32.7777%2019.9611C32.8515%2020.1882%2032.8515%2020.4329%2032.7777%2020.66C32.7039%2020.8871%2032.5601%2021.085%2032.3668%2021.2254L18.001%2031.663L31.1178%2014.8525Z'%20fill='%23FCA326'/%3e%3cpath%20d='M31.1167%2014.8516H23.4619L26.7517%204.72668C26.921%204.20569%2027.658%204.20569%2027.8272%204.72668L31.1167%2014.8516Z'%20fill='%23E24329'/%3e%3c/svg%3e";
20895
+ const logoGitlab = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0zMi43NzcyIDE5Ljk2MUwzMS4xMTczIDE0Ljg1MjZMMjcuODI3NyA0LjcyNzY4QzI3LjY1ODUgNC4yMDY3NiAyNi45MjE1IDQuMjA2NzYgMjYuNzUyMiA0LjcyNzY4TDIzLjQ2MjMgMTQuODUyNUgxMi41MzgxTDkuMjQ4MjkgNC43Mjc2QzkuMDc5MDkgNC4yMDY2OCA4LjM0MjA5IDQuMjA2NjggOC4xNzI3NSA0LjcyNzZMNC44ODMwNyAxNC44NTI1TDMuMjIzMzMgMTkuOTYxMUMzLjE0OTUyIDIwLjE4ODIgMy4xNDk1MiAyMC40MzI4IDMuMjIzMzEgMjAuNjZDMy4yOTcwOSAyMC44ODcxIDMuNDQwODkgMjEuMDg1IDMuNjM0MDkgMjEuMjI1NEwxNy45OTk5IDMxLjY2MjlMMzIuMzY1OCAyMS4yMjU1QzMyLjc2MjEgMjAuOTM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ExNzggMTQuODUyNVoiIGZpbGw9IiNGQ0EzMjYiLz4NCjxwYXRoIGQ9Ik0zMS4xMTY3IDE0Ljg1MTZIMjMuNDYxOUwyNi43NTE3IDQuNzI2NjhDMjYuOTIxIDQuMjA1NjkgMjcuNjU4IDQuMjA1NjkgMjcuODI3MiA0LjcyNjY4TDMxLjExNjcgMTQuODUxNloiIGZpbGw9IiNFMjQzMjkiLz4NCjwvc3ZnPg0K";
20877
20896
  const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20878
20897
  __proto__: null,
20879
20898
  default: logoGitlab
20880
20899
  }, Symbol.toStringTag, { value: "Module" }));
20881
- const logoHb = "data:image/svg+xml,%3csvg%20width='290'%20height='290'%20viewBox='0%200%20290%20290'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='290'%20height='290'%20rx='145'%20fill='%231B9F35'/%3e%3cpath%20d='M232.5%2069.5H57.5L70.9625%20227L145%20244.5L219.038%20227L232.5%2069.5Z'%20fill='white'/%3e%3cpath%20d='M95%2094.5H107.5V132H182.5V94.5H195V194.5H182.5V144.5H107.5V194.5H95V94.5Z'%20fill='%231B9F35'/%3e%3c/svg%3e";
20900
+ const logoHb = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkwIiBoZWlnaHQ9IjI5MCIgdmlld0JveD0iMCAwIDI5MCAyOTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cmVjdCB3aWR0aD0iMjkwIiBoZWlnaHQ9IjI5MCIgcng9IjE0NSIgZmlsbD0iIzFCOUYzNSIvPg0KPHBhdGggZD0iTTIzMi41IDY5LjVINTcuNUw3MC45NjI1IDIyN0wxNDUgMjQ0LjVMMjE5LjAzOCAyMjdMMjMyLjUgNjkuNVoiIGZpbGw9IndoaXRlIi8+DQo8cGF0aCBkPSJNOTUgOTQuNUgxMDcuNVYxMzJIMTgyLjVWOTQuNUgxOTVWMTk0LjVIMTgyLjVWMTQ0LjVIMTA3LjVWMTk0LjVIOTVWOTQuNVoiIGZpbGw9IiMxQjlGMzUiLz4NCjwvc3ZnPg0K";
20882
20901
  const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20883
20902
  __proto__: null,
20884
20903
  default: logoHb
20885
20904
  }, Symbol.toStringTag, { value: "Module" }));
20886
- const logoHuawei = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='30px'%20viewBox='0%200%2030%2030'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/huawei%3c/title%3e%3cg%20id='ic/huawei'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M12.9194306,20.1361906%20C12.9522465,20.1094691%2012.9663104,20.0639956%2012.9442769,20.026023%20C10.696858,15.2030265%207.89578843,10.6584961%204.59544868,6.48431642%20C4.59544868,6.48431642%201.97158481,8.9689472%202.15863532,11.4685795%20C2.25239497,12.6321368%202.79432576,13.7127168%203.67894808,14.4688884%20C5.96668359,16.6989617%2011.5064726,19.5131577%2012.7947303,20.1507233%20C12.8355157,20.1732256%2012.8866147,20.1657249%2012.918493,20.1319714%20M12.063405,22.0446683%20C12.0460594,21.9940381%2011.9987108,21.9602846%2011.944799,21.9602846%20L11.944799,21.9630974%20L2.72166203,22.2842242%20C3.72160872,24.0680016%205.40600087,25.4523628%207.16118156,25.0285692%20C8.37208746,24.7257255%2011.1164325,22.812091%2012.0198067,22.166087%20L12.0188691,22.1623366%20C12.0877825,22.0999865%2012.0629362,22.0498251%2012.0629362,22.0498251%20M12.2021693,21.2200521%20C12.2462363,21.1473884%2012.1674782,21.0850382%2012.1674782,21.0850382%20L12.1684158,21.0812879%20C8.11753001,18.3449124%200.26609674,14.1496368%200.26609674,14.1496368%20C-0.616650384,16.8789802%200.763022897,19.8258461%203.42579702,20.8947062%20C3.98885932,21.1184574%204.58444252,21.2495427%205.18941607,21.2828711%20C5.32818036,21.308655%2010.6743557,21.2856839%2012.1070032,21.2791207%20C12.1473199,21.2744327%2012.1829485,21.2509928%2012.2026381,21.2148954%20M12.8144198,2.5004688%20C12.4121909,2.53515987%2011.3283293,2.78174775%2011.3283293,2.78174775%20C9.89805781,3.14685934%208.75686554,4.2232051%208.3087997,5.62969719%20C8.05564864,6.58885843%208.06033662,7.59771229%208.32145725,8.55499833%20C9.13575983,12.1713081%2013.1477353,18.1152013%2014.0079802,19.3617358%20C14.0689239,19.4226796%2014.1190853,19.4001773%2014.1190853,19.4001773%20C14.1715907,19.3875197%2014.2072194,19.3392335%2014.2044066,19.2853217%20L14.2062818,19.2853217%20C15.5320433,6.01692455%2012.813951,2.5%2012.813951,2.5%20M15.8672341,19.3973645%20C15.9178643,19.4175228%2015.9750577,19.3964269%2016.0003728,19.3476719%20L16.0013104,19.3476719%20C16.8920271,18.066915%2020.8735307,12.1563066%2021.6840829,8.55593593%20C21.9262087,7.59665425%2021.9315179,6.59289287%2021.6995532,5.63110358%20C21.2459272,4.21775216%2020.0924075,3.14034133%2018.6514269,2.78409175%20C18.6514269,2.78409175%2017.9463543,2.60594841%2017.1990899,2.50140639%20C17.1990899,2.50140639%2014.4650585,6.02020614%2015.7945703,19.2970417%20L15.7964455,19.2970417%20C15.7969143,19.3420463%2015.8245734,19.3814254%2015.8667653,19.3978333%20M18.0499588,21.9630974%20C18.0499588,21.9630974%2017.9693255,21.9738797%2017.9468231,22.0334171%20C17.9360408,22.0788906%2017.9496359,22.1262392%2017.9824518,22.1590551%20L17.9815142,22.1590551%20C18.8637925,22.7919327%2021.544381,24.664313%2022.8307634,25.0271628%20C22.8307634,25.0271628%2025.2150714,25.8381838%2027.2862221,22.2818802%20L18.0508964,21.9598158%20L18.0499588,21.9630974%20Z%20M29.7417874,14.130416%20C29.7417874,14.130416%2021.9011365,18.3369428%2017.8465003,21.0723807%20L17.8474379,21.0723807%20C17.8005581,21.1028526%2017.7864941,21.1567644%2017.8005581,21.2073946%20C17.8005581,21.2073946%2017.8389995,21.2763079%2017.8961929,21.2763079%20L17.8961929,21.2781831%20L24.9750467,21.2594312%20C25.5196475,21.2167697%2026.0549049,21.0935404%2026.5633352,20.8937686%20C27.8878289,20.3744529%2028.9544544,19.3543123%2029.5322346,18.0542575%20C30.0748429,16.8146498%2030.147992,15.419985%2029.738037,14.130416%20M17.1020487,20.1310338%20C17.1383362,20.1579266%2017.1868481,20.1615741%2017.226749,20.1404097%20L17.226749,20.1422849%20C18.5478225,19.4831546%2024.0463573,16.6872418%2026.3233105,14.4684196%20C27.2074304,13.7013539%2027.7532431,12.616467%2027.8422168,11.4493588%20C28.0081714,8.87096836%2025.4082163,6.47775324%2025.4082163,6.47775324%20C22.1166286,10.6402706%2019.319781,15.171107%2017.0739208,19.9791431%20L17.0767336,19.9791431%20C17.0523501,20.0282718%2017.0623816,20.0875146%2017.1015799,20.125877'%20id='形状'%20fill='%23E12229'%3e%3c/path%3e%3c/g%3e%3c/svg%3e";
20905
+ const logoHuawei = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjMwcHgiIGhlaWdodD0iMzBweCIgdmlld0JveD0iMCAwIDMwIDMwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT5pYy9odWF3ZWk8L3RpdGxlPg0KICAgIDxnIGlkPSJpYy9odWF3ZWkiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPg0KICAgICAgICA8cGF0aCBkPSJNMTIuO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zMTAzMzggQzE3LjEzODMzNjIsMjAuMTU3OTI2NiAxNy4xODY4NDgxLDIwLjE2MTU3NDEgMTcuMjI2NzQ5LDIwLjE0MDQwOTcgTDE3LjIyNjc0OSwyMC4xNDIyODQ5IEMxOC41NDc4MjI1LDE5LjQ4MzE1NDYgMjQuMDQ2MzU3MywxNi42ODcyNDE4IDI2LjMyMzMxMDUsMTQuNDY4NDE5NiBDMjcuMjA3NDMwNCwxMy43MDEzNTM5IDI3Ljc1MzI0MzEsMTIuNjE2NDY3IDI3Ljg0MjIxNjgsMTEuNDQ5MzU4OCBDMjguMDA4MTcxNCw4Ljg3MDk2ODM2IDI1LjQwODIxNjMsNi40Nzc3NTMyNCAyNS40MDgyMTYzLDYuNDc3NzUzMjQgQzIyLjExNjYyODYsMTAuNjQwMjcwNiAxOS4zMTk3ODEsMTUuMTcxMTA3IDE3LjA3MzkyMDgsMTkuOTc5MTQzMSBMMTcuMDc2NzMzNiwxOS45NzkxNDMxIEMxNy4wNTIzNTAxLDIwLjAyODI3MTggMTcuMDYyMzgxNiwyMC4wODc1MTQ2IDE3LjEwMTU3OTksMjAuMTI1ODc3IiBpZD0i5b2i54q2IiBmaWxsPSIjRTEyMjI5Ij48L3BhdGg+DQogICAgPC9nPg0KPC9zdmc+";
20887
20906
  const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20888
20907
  __proto__: null,
20889
20908
  default: logoHuawei
20890
20909
  }, Symbol.toStringTag, { value: "Module" }));
20891
- const logoMobile = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1693900534164'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6040'%20id='mx_n_1693900534166'%20width='64'%20height='64'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M290.133333%2034.133333h443.733334a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4z'%20fill='%23E4E9F0'%20p-id='6041'%3e%3c/path%3e%3cpath%20d='M733.866667%2034.133333a102.4%20102.4%200%200%201%20102.4%20102.4v750.933334a102.4%20102.4%200%200%201-102.4%20102.4h-443.733334a102.4%20102.4%200%200%201-102.4-102.4V136.533333a102.4%20102.4%200%200%201%20102.4-102.4h443.733334zM614.4%20119.466667a34.133333%2034.133333%200%200%201-34.133333%2034.133333h-136.533334a34.133333%2034.133333%200%200%201-34.133333-34.133333v-34.133334H290.133333A51.2%2051.2%200%200%200%20238.933333%20136.533333v750.933334a51.2%2051.2%200%200%200%2051.2%2051.2h443.733334A51.2%2051.2%200%200%200%20785.066667%20887.466667V136.533333a51.2%2051.2%200%200%200-51.2-51.2H614.4v34.133334zM512%20750.933333a68.266667%2068.266667%200%201%201%200%20136.533334%2068.266667%2068.266667%200%200%201%200-136.533334z'%20fill='%23707A87'%20p-id='6042'%3e%3c/path%3e%3c/svg%3e";
20910
+ const logoMobile = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjkzOTAwNTM0MTY0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYwNDAiIGlkPSJteF9uXzE2OTM5MDA1Mz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1MS4yIDAgMCAwLTUxLjItNTEuMkg2MTQuNHYzNC4xMzMzMzR6TTUxMiA3NTAuOTMzMzMzYTY4LjI2NjY2NyA2OC4yNjY2NjcgMCAxIDEgMCAxMzYuNTMzMzM0IDY4LjI2NjY2NyA2OC4yNjY2NjcgMCAwIDEgMC0xMzYuNTMzMzM0eiIgZmlsbD0iIzcwN0E4NyIgcC1pZD0iNjA0MiI+PC9wYXRoPjwvc3ZnPg==";
20892
20911
  const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20893
20912
  __proto__: null,
20894
20913
  default: logoMobile
20895
20914
  }, Symbol.toStringTag, { value: "Module" }));
20896
- const logoWechat = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1532_182)'%3e%3cpath%20d='M5.27165%205.34104C4.99419%205.34104%204.71674%205.52601%204.71674%205.80347C4.71674%206.08093%204.99419%206.2659%205.27165%206.2659C5.54911%206.2659%205.73408%206.08093%205.73408%205.80347C5.73408%205.51445%205.54911%205.34104%205.27165%205.34104ZM9.02887%208.02312C8.8439%208.02312%208.67049%208.21965%208.67049%208.39306C8.67049%208.5896%208.85546%208.76301%209.02887%208.76301C9.30633%208.76301%209.4913%208.57804%209.4913%208.39306C9.4913%208.20809%209.30633%208.02312%209.02887%208.02312ZM7.83812%206.2659C8.11558%206.2659%208.30055%206.06937%208.30055%205.80347C8.30055%205.52601%208.11558%205.34104%207.83812%205.34104C7.56067%205.34104%207.28321%205.52601%207.28321%205.80347C7.28321%206.08093%207.56067%206.2659%207.83812%206.2659ZM11.0404%208.02312C10.8555%208.02312%2010.6821%208.21965%2010.6821%208.39306C10.6821%208.5896%2010.867%208.76301%2011.0404%208.76301C11.3179%208.76301%2011.5029%208.57804%2011.5029%208.39306C11.5029%208.20809%2011.3179%208.02312%2011.0404%208.02312Z'%20fill='%2328C445'/%3e%3cpath%20d='M7.97688%200.0462418C3.57225%200.0462418%200%203.6185%200%208.02312C0%2012.4277%203.57225%2016%207.97688%2016C12.3815%2016%2015.9538%2012.4277%2015.9538%208.02312C15.9538%203.6185%2012.3815%200.0462418%207.97688%200.0462418ZM6.46243%2010.0694C6%2010.0694%205.63006%209.97688%205.19075%209.87283L3.91908%2010.5202L4.27746%209.39884C3.36416%208.75144%202.80925%207.90751%202.80925%206.90173C2.80925%205.13295%204.46243%203.74566%206.46243%203.74566C8.25434%203.74566%209.83815%204.85549%2010.1503%206.34682C10.0347%206.33526%209.91908%206.3237%209.80347%206.3237C8.06936%206.34682%206.7052%207.65318%206.7052%209.27168C6.7052%209.53757%206.75145%209.79191%206.82081%2010.0462C6.7052%2010.0578%206.57803%2010.0694%206.46243%2010.0694ZM11.8728%2011.3642L12.1503%2012.289L11.1561%2011.7341C10.7977%2011.8266%2010.4277%2011.9191%2010.0578%2011.9191C8.31214%2011.9191%206.93642%2010.7168%206.93642%209.22543C6.92486%207.74566%208.30058%206.54335%2010.0347%206.54335C11.6879%206.54335%2013.1445%207.75722%2013.1445%209.23699C13.1445%2010.0694%2012.6012%2010.8092%2011.8728%2011.3642Z'%20fill='%2328C445'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1532_182'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
20915
+ const logoWechat = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xNTMyXzE4MikiPg0KPHBhdGggZD0iTTUuMjcxNjUgNS4zNDEwNEM0Ljk5NDE5IDUuMzQxMDQgNC43MTY3NCA1LjUyNjAxIDQuNzE2NzQgNS44M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ODc5IDYuNTQzMzUgMTMuMTQ0NSA3Ljc1NzIyIDEzLjE0NDUgOS4yMzY5OUMxMy4xNDQ1IDEwLjA2OTQgMTIuNjAxMiAxMC44MDkyIDExLjg3MjggMTEuMzY0MloiIGZpbGw9IiMyOEM0NDUiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMF8xNTMyXzE4MiI+DQo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=";
20897
20916
  const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20898
20917
  __proto__: null,
20899
20918
  default: logoWechat
@@ -21024,6 +21043,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
21024
21043
  };
21025
21044
  }
21026
21045
  });
21046
+ const inputButton_vue_vue_type_style_index_0_lang = "";
21027
21047
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
21028
21048
  const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
21029
21049
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
@@ -21110,6 +21130,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21110
21130
  };
21111
21131
  }
21112
21132
  });
21133
+ const inputSelect_vue_vue_type_style_index_0_lang = "";
21113
21134
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
21114
21135
  __name: "index",
21115
21136
  props: {
@@ -21388,6 +21409,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21388
21409
  };
21389
21410
  }
21390
21411
  });
21412
+ const index_vue_vue_type_style_index_0_lang = "";
21391
21413
  const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
21392
21414
  const _hoisted_2$5 = { class: "icons" };
21393
21415
  const _hoisted_3$3 = ["src", "alt", "onClick"];
@@ -21434,7 +21456,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21434
21456
  };
21435
21457
  }
21436
21458
  });
21437
- const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-gitcode-layout-lib"]]);
21459
+ const auth_vue_vue_type_style_index_0_scoped_f0a207bc_lang = "";
21460
+ const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f0a207bc"]]);
21438
21461
  const _hoisted_1$7 = { class: "text-[var(--theme-placeholder)]" };
21439
21462
  const _hoisted_2$4 = { class: "text-[var(--theme-placeholder)]" };
21440
21463
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
@@ -21517,6 +21540,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21517
21540
  };
21518
21541
  }
21519
21542
  });
21543
+ const agreements_vue_vue_type_style_index_0_lang = "";
21520
21544
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
21521
21545
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
21522
21546
  const _hoisted_3$2 = ["src"];
@@ -21549,7 +21573,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
21549
21573
  };
21550
21574
  }
21551
21575
  });
21552
- const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-gitcode-layout-lib"]]);
21576
+ const title_vue_vue_type_style_index_0_scoped_94e64b6d_lang = "";
21577
+ const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-94e64b6d"]]);
21553
21578
  const FindFileName = (path) => {
21554
21579
  var _a;
21555
21580
  const isName = /.*\/.*\/(.*\..*)/;
@@ -21560,7 +21585,7 @@ const TransAssetsUrl = (source, key, path) => {
21560
21585
  if (key) {
21561
21586
  let target = "";
21562
21587
  target = Object.keys(source).find((pathName) => {
21563
- const p = key;
21588
+ const p = path ? `${path}${key}` : key;
21564
21589
  return p === FindFileName(pathName);
21565
21590
  });
21566
21591
  if (target) {
@@ -21592,10 +21617,14 @@ function compare(a, b) {
21592
21617
  for (var i = 0; i < 3; i++) {
21593
21618
  var na = Number(pa[i]);
21594
21619
  var nb = Number(pb[i]);
21595
- if (na > nb) return 1;
21596
- if (nb > na) return -1;
21597
- if (!isNaN(na) && isNaN(nb)) return 1;
21598
- if (isNaN(na) && !isNaN(nb)) return -1;
21620
+ if (na > nb)
21621
+ return 1;
21622
+ if (nb > na)
21623
+ return -1;
21624
+ if (!isNaN(na) && isNaN(nb))
21625
+ return 1;
21626
+ if (isNaN(na) && !isNaN(nb))
21627
+ return -1;
21599
21628
  }
21600
21629
  if (a[1] && b[1]) {
21601
21630
  return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;
@@ -21619,17 +21648,21 @@ function _classCallCheck$2(instance, Constructor) {
21619
21648
  throw new TypeError("Cannot call a class as a function");
21620
21649
  }
21621
21650
  }
21622
- function _defineProperties$1(target, props) {
21651
+ function _defineProperties$2(target, props) {
21623
21652
  for (var i = 0; i < props.length; i++) {
21624
21653
  var descriptor = props[i];
21625
21654
  descriptor.enumerable = descriptor.enumerable || false;
21626
21655
  descriptor.configurable = true;
21627
- if ("value" in descriptor) descriptor.writable = true;
21656
+ if ("value" in descriptor)
21657
+ descriptor.writable = true;
21628
21658
  Object.defineProperty(target, descriptor.key, descriptor);
21629
21659
  }
21630
21660
  }
21631
21661
  function _createClass$2(Constructor, protoProps, staticProps) {
21632
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
21662
+ if (protoProps)
21663
+ _defineProperties$2(Constructor.prototype, protoProps);
21664
+ if (staticProps)
21665
+ _defineProperties$2(Constructor, staticProps);
21633
21666
  Object.defineProperty(Constructor, "prototype", { writable: false });
21634
21667
  return Constructor;
21635
21668
  }
@@ -21659,7 +21692,8 @@ var Metadata = /* @__PURE__ */ function() {
21659
21692
  }, {
21660
21693
  key: "nonGeographic",
21661
21694
  value: function nonGeographic() {
21662
- if (this.v1 || this.v2 || this.v3) return;
21695
+ if (this.v1 || this.v2 || this.v3)
21696
+ return;
21663
21697
  return this.metadata.nonGeographic || this.metadata.nonGeographical;
21664
21698
  }
21665
21699
  }, {
@@ -21834,7 +21868,8 @@ var Metadata = /* @__PURE__ */ function() {
21834
21868
  }, {
21835
21869
  key: "countryCallingCodes",
21836
21870
  value: function countryCallingCodes() {
21837
- if (this.v1) return this.metadata.country_phone_code_to_countries;
21871
+ if (this.v1)
21872
+ return this.metadata.country_phone_code_to_countries;
21838
21873
  return this.metadata.country_calling_codes;
21839
21874
  }
21840
21875
  // Deprecated.
@@ -21878,27 +21913,31 @@ var NumberingPlan = /* @__PURE__ */ function() {
21878
21913
  }, {
21879
21914
  key: "IDDPrefix",
21880
21915
  value: function IDDPrefix() {
21881
- if (this.v1 || this.v2) return;
21916
+ if (this.v1 || this.v2)
21917
+ return;
21882
21918
  return this.metadata[1];
21883
21919
  }
21884
21920
  // Is only present when a country supports multiple IDD prefixes.
21885
21921
  }, {
21886
21922
  key: "defaultIDDPrefix",
21887
21923
  value: function defaultIDDPrefix() {
21888
- if (this.v1 || this.v2) return;
21924
+ if (this.v1 || this.v2)
21925
+ return;
21889
21926
  return this.metadata[12];
21890
21927
  }
21891
21928
  }, {
21892
21929
  key: "nationalNumberPattern",
21893
21930
  value: function nationalNumberPattern() {
21894
- if (this.v1 || this.v2) return this.metadata[1];
21931
+ if (this.v1 || this.v2)
21932
+ return this.metadata[1];
21895
21933
  return this.metadata[2];
21896
21934
  }
21897
21935
  // "possible length" data is always present in Google's metadata.
21898
21936
  }, {
21899
21937
  key: "possibleLengths",
21900
21938
  value: function possibleLengths() {
21901
- if (this.v1) return;
21939
+ if (this.v1)
21940
+ return;
21902
21941
  return this.metadata[this.v2 ? 2 : 3];
21903
21942
  }
21904
21943
  }, {
@@ -21993,7 +22032,8 @@ var NumberingPlan = /* @__PURE__ */ function() {
21993
22032
  }, {
21994
22033
  key: "ext",
21995
22034
  value: function ext() {
21996
- if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;
22035
+ if (this.v1 || this.v2)
22036
+ return DEFAULT_EXT_PREFIX;
21997
22037
  return this.metadata[13] || DEFAULT_EXT_PREFIX;
21998
22038
  }
21999
22039
  }]);
@@ -22060,13 +22100,15 @@ var Type = /* @__PURE__ */ function() {
22060
22100
  _createClass$2(Type2, [{
22061
22101
  key: "pattern",
22062
22102
  value: function pattern() {
22063
- if (this.metadata.v1) return this.type;
22103
+ if (this.metadata.v1)
22104
+ return this.type;
22064
22105
  return this.type[0];
22065
22106
  }
22066
22107
  }, {
22067
22108
  key: "possibleLengths",
22068
22109
  value: function possibleLengths() {
22069
- if (this.metadata.v1) return;
22110
+ if (this.metadata.v1)
22111
+ return;
22070
22112
  return this.type[1] || this.metadata.possibleLengths();
22071
22113
  }
22072
22114
  }]);
@@ -22136,6 +22178,55 @@ function setVersion(metadata2) {
22136
22178
  }
22137
22179
  }
22138
22180
  }
22181
+ function _createForOfIteratorHelperLoose$4(o, allowArrayLike) {
22182
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22183
+ if (it)
22184
+ return (it = it.call(o)).next.bind(it);
22185
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike && o && typeof o.length === "number") {
22186
+ if (it)
22187
+ o = it;
22188
+ var i = 0;
22189
+ return function() {
22190
+ if (i >= o.length)
22191
+ return { done: true };
22192
+ return { done: false, value: o[i++] };
22193
+ };
22194
+ }
22195
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22196
+ }
22197
+ function _unsupportedIterableToArray$5(o, minLen) {
22198
+ if (!o)
22199
+ return;
22200
+ if (typeof o === "string")
22201
+ return _arrayLikeToArray$5(o, minLen);
22202
+ var n = Object.prototype.toString.call(o).slice(8, -1);
22203
+ if (n === "Object" && o.constructor)
22204
+ n = o.constructor.name;
22205
+ if (n === "Map" || n === "Set")
22206
+ return Array.from(o);
22207
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22208
+ return _arrayLikeToArray$5(o, minLen);
22209
+ }
22210
+ function _arrayLikeToArray$5(arr, len) {
22211
+ if (len == null || len > arr.length)
22212
+ len = arr.length;
22213
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
22214
+ arr2[i] = arr[i];
22215
+ }
22216
+ return arr2;
22217
+ }
22218
+ function mergeArrays(a, b) {
22219
+ var merged = a.slice();
22220
+ for (var _iterator = _createForOfIteratorHelperLoose$4(b), _step; !(_step = _iterator()).done; ) {
22221
+ var element = _step.value;
22222
+ if (a.indexOf(element) < 0) {
22223
+ merged.push(element);
22224
+ }
22225
+ }
22226
+ return merged.sort(function(a2, b2) {
22227
+ return a2 - b2;
22228
+ });
22229
+ }
22139
22230
  function checkNumberLength(nationalNumber, metadata2) {
22140
22231
  return checkNumberLengthForType(nationalNumber, void 0, metadata2);
22141
22232
  }
@@ -22145,6 +22236,17 @@ function checkNumberLengthForType(nationalNumber, type, metadata2) {
22145
22236
  if (!possible_lengths) {
22146
22237
  return "IS_POSSIBLE";
22147
22238
  }
22239
+ if (type === "FIXED_LINE_OR_MOBILE") {
22240
+ if (!metadata2.type("FIXED_LINE")) {
22241
+ return checkNumberLengthForType(nationalNumber, "MOBILE", metadata2);
22242
+ }
22243
+ var mobile_type = metadata2.type("MOBILE");
22244
+ if (mobile_type) {
22245
+ possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
22246
+ }
22247
+ } else if (type && !type_info) {
22248
+ return "INVALID_LENGTH";
22249
+ }
22148
22250
  var actual_length = nationalNumber.length;
22149
22251
  var minimum_length = possible_lengths[0];
22150
22252
  if (minimum_length === actual_length) {
@@ -22208,27 +22310,36 @@ function matchesEntirely(text2, regular_expression) {
22208
22310
  }
22209
22311
  function _createForOfIteratorHelperLoose$3(o, allowArrayLike) {
22210
22312
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22211
- if (it) return (it = it.call(o)).next.bind(it);
22212
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike) {
22213
- if (it) o = it;
22313
+ if (it)
22314
+ return (it = it.call(o)).next.bind(it);
22315
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") {
22316
+ if (it)
22317
+ o = it;
22214
22318
  var i = 0;
22215
22319
  return function() {
22216
- if (i >= o.length) return { done: true };
22320
+ if (i >= o.length)
22321
+ return { done: true };
22217
22322
  return { done: false, value: o[i++] };
22218
22323
  };
22219
22324
  }
22220
22325
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22221
22326
  }
22222
22327
  function _unsupportedIterableToArray$4(o, minLen) {
22223
- if (!o) return;
22224
- if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
22328
+ if (!o)
22329
+ return;
22330
+ if (typeof o === "string")
22331
+ return _arrayLikeToArray$4(o, minLen);
22225
22332
  var n = Object.prototype.toString.call(o).slice(8, -1);
22226
- if (n === "Object" && o.constructor) n = o.constructor.name;
22227
- if (n === "Map" || n === "Set") return Array.from(o);
22228
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
22333
+ if (n === "Object" && o.constructor)
22334
+ n = o.constructor.name;
22335
+ if (n === "Map" || n === "Set")
22336
+ return Array.from(o);
22337
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22338
+ return _arrayLikeToArray$4(o, minLen);
22229
22339
  }
22230
22340
  function _arrayLikeToArray$4(arr, len) {
22231
- if (len == null || len > arr.length) len = arr.length;
22341
+ if (len == null || len > arr.length)
22342
+ len = arr.length;
22232
22343
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22233
22344
  arr2[i] = arr[i];
22234
22345
  }
@@ -22483,8 +22594,10 @@ function applyInternationalSeparatorStyle(formattedNumber) {
22483
22594
  return formattedNumber.replace(new RegExp("[".concat(VALID_PUNCTUATION, "]+"), "g"), " ").trim();
22484
22595
  }
22485
22596
  var FIRST_GROUP_PATTERN = /(\$\d)/;
22486
- function formatNationalNumberUsingFormat(number2, format2, _ref) {
22487
- var useInternationalFormat = _ref.useInternationalFormat, withNationalPrefix = _ref.withNationalPrefix;
22597
+ function formatNationalNumberUsingFormat(number2, format2, _ref2) {
22598
+ var useInternationalFormat = _ref2.useInternationalFormat, withNationalPrefix = _ref2.withNationalPrefix;
22599
+ _ref2.carrierCode;
22600
+ _ref2.metadata;
22488
22601
  var formattedNumber = number2.replace(new RegExp(format2.pattern()), useInternationalFormat ? format2.internationalFormat() : (
22489
22602
  // This library doesn't use `domestic_carrier_code_formatting_rule`,
22490
22603
  // because that one is only used when formatting phone numbers
@@ -22558,8 +22671,8 @@ function isViablePhoneNumber(number2) {
22558
22671
  function isViablePhoneNumberStart(number2) {
22559
22672
  return VALID_PHONE_NUMBER_START_REG_EXP.test(number2);
22560
22673
  }
22561
- function formatRFC3966(_ref) {
22562
- var number2 = _ref.number, ext = _ref.ext;
22674
+ function formatRFC3966(_ref2) {
22675
+ var number2 = _ref2.number, ext = _ref2.ext;
22563
22676
  if (!number2) {
22564
22677
  return "";
22565
22678
  }
@@ -22570,27 +22683,36 @@ function formatRFC3966(_ref) {
22570
22683
  }
22571
22684
  function _createForOfIteratorHelperLoose$2(o, allowArrayLike) {
22572
22685
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
22573
- if (it) return (it = it.call(o)).next.bind(it);
22574
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) {
22575
- if (it) o = it;
22686
+ if (it)
22687
+ return (it = it.call(o)).next.bind(it);
22688
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") {
22689
+ if (it)
22690
+ o = it;
22576
22691
  var i = 0;
22577
22692
  return function() {
22578
- if (i >= o.length) return { done: true };
22693
+ if (i >= o.length)
22694
+ return { done: true };
22579
22695
  return { done: false, value: o[i++] };
22580
22696
  };
22581
22697
  }
22582
22698
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
22583
22699
  }
22584
22700
  function _unsupportedIterableToArray$3(o, minLen) {
22585
- if (!o) return;
22586
- if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
22701
+ if (!o)
22702
+ return;
22703
+ if (typeof o === "string")
22704
+ return _arrayLikeToArray$3(o, minLen);
22587
22705
  var n = Object.prototype.toString.call(o).slice(8, -1);
22588
- if (n === "Object" && o.constructor) n = o.constructor.name;
22589
- if (n === "Map" || n === "Set") return Array.from(o);
22590
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
22706
+ if (n === "Object" && o.constructor)
22707
+ n = o.constructor.name;
22708
+ if (n === "Map" || n === "Set")
22709
+ return Array.from(o);
22710
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
22711
+ return _arrayLikeToArray$3(o, minLen);
22591
22712
  }
22592
22713
  function _arrayLikeToArray$3(arr, len) {
22593
- if (len == null || len > arr.length) len = arr.length;
22714
+ if (len == null || len > arr.length)
22715
+ len = arr.length;
22594
22716
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
22595
22717
  arr2[i] = arr[i];
22596
22718
  }
@@ -22644,7 +22766,8 @@ function formatNumber(input, format2, options, metadata2) {
22644
22766
  metadata2.country(input.country);
22645
22767
  } else if (input.countryCallingCode) {
22646
22768
  metadata2.selectNumberingPlan(input.countryCallingCode);
22647
- } else return input.phone || "";
22769
+ } else
22770
+ return input.phone || "";
22648
22771
  var countryCallingCode = metadata2.countryCallingCode();
22649
22772
  var nationalNumber = options.v2 ? input.nationalNumber : input.phone;
22650
22773
  var number2;
@@ -22686,7 +22809,9 @@ function formatNationalNumber(number2, carrierCode, formatAs, metadata2, options
22686
22809
  }
22687
22810
  return formatNationalNumberUsingFormat(number2, format2, {
22688
22811
  useInternationalFormat: formatAs === "INTERNATIONAL",
22689
- withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true
22812
+ withNationalPrefix: format2.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,
22813
+ carrierCode,
22814
+ metadata: metadata2
22690
22815
  });
22691
22816
  }
22692
22817
  function chooseFormatForNumber(availableFormats, nationalNnumber) {
@@ -22754,17 +22879,21 @@ function _classCallCheck$1(instance, Constructor) {
22754
22879
  throw new TypeError("Cannot call a class as a function");
22755
22880
  }
22756
22881
  }
22757
- function _defineProperties(target, props) {
22882
+ function _defineProperties$1(target, props) {
22758
22883
  for (var i = 0; i < props.length; i++) {
22759
22884
  var descriptor = props[i];
22760
22885
  descriptor.enumerable = descriptor.enumerable || false;
22761
22886
  descriptor.configurable = true;
22762
- if ("value" in descriptor) descriptor.writable = true;
22887
+ if ("value" in descriptor)
22888
+ descriptor.writable = true;
22763
22889
  Object.defineProperty(target, descriptor.key, descriptor);
22764
22890
  }
22765
22891
  }
22766
22892
  function _createClass$1(Constructor, protoProps, staticProps) {
22767
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
22893
+ if (protoProps)
22894
+ _defineProperties$1(Constructor.prototype, protoProps);
22895
+ if (staticProps)
22896
+ _defineProperties$1(Constructor, staticProps);
22768
22897
  Object.defineProperty(Constructor, "prototype", { writable: false });
22769
22898
  return Constructor;
22770
22899
  }
@@ -22925,7 +23054,21 @@ function _typeof(obj) {
22925
23054
  return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
22926
23055
  }, _typeof(obj);
22927
23056
  }
23057
+ function _defineProperties(target, props) {
23058
+ for (var i = 0; i < props.length; i++) {
23059
+ var descriptor = props[i];
23060
+ descriptor.enumerable = descriptor.enumerable || false;
23061
+ descriptor.configurable = true;
23062
+ if ("value" in descriptor)
23063
+ descriptor.writable = true;
23064
+ Object.defineProperty(target, descriptor.key, descriptor);
23065
+ }
23066
+ }
22928
23067
  function _createClass(Constructor, protoProps, staticProps) {
23068
+ if (protoProps)
23069
+ _defineProperties(Constructor.prototype, protoProps);
23070
+ if (staticProps)
23071
+ _defineProperties(Constructor, staticProps);
22929
23072
  Object.defineProperty(Constructor, "prototype", { writable: false });
22930
23073
  return Constructor;
22931
23074
  }
@@ -22940,7 +23083,8 @@ function _inherits(subClass, superClass) {
22940
23083
  }
22941
23084
  subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
22942
23085
  Object.defineProperty(subClass, "prototype", { writable: false });
22943
- if (superClass) _setPrototypeOf(subClass, superClass);
23086
+ if (superClass)
23087
+ _setPrototypeOf(subClass, superClass);
22944
23088
  }
22945
23089
  function _createSuper(Derived) {
22946
23090
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
@@ -22972,12 +23116,14 @@ function _assertThisInitialized(self2) {
22972
23116
  function _wrapNativeSuper(Class) {
22973
23117
  var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
22974
23118
  _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
22975
- if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
23119
+ if (Class2 === null || !_isNativeFunction(Class2))
23120
+ return Class2;
22976
23121
  if (typeof Class2 !== "function") {
22977
23122
  throw new TypeError("Super expression must either be null or a function");
22978
23123
  }
22979
23124
  if (typeof _cache !== "undefined") {
22980
- if (_cache.has(Class2)) return _cache.get(Class2);
23125
+ if (_cache.has(Class2))
23126
+ return _cache.get(Class2);
22981
23127
  _cache.set(Class2, Wrapper);
22982
23128
  }
22983
23129
  function Wrapper() {
@@ -22997,16 +23143,20 @@ function _construct(Parent, args, Class) {
22997
23143
  a.push.apply(a, args2);
22998
23144
  var Constructor = Function.bind.apply(Parent2, a);
22999
23145
  var instance = new Constructor();
23000
- if (Class2) _setPrototypeOf(instance, Class2.prototype);
23146
+ if (Class2)
23147
+ _setPrototypeOf(instance, Class2.prototype);
23001
23148
  return instance;
23002
23149
  };
23003
23150
  }
23004
23151
  return _construct.apply(null, arguments);
23005
23152
  }
23006
23153
  function _isNativeReflectConstruct() {
23007
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
23008
- if (Reflect.construct.sham) return false;
23009
- if (typeof Proxy === "function") return true;
23154
+ if (typeof Reflect === "undefined" || !Reflect.construct)
23155
+ return false;
23156
+ if (Reflect.construct.sham)
23157
+ return false;
23158
+ if (typeof Proxy === "function")
23159
+ return true;
23010
23160
  try {
23011
23161
  Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
23012
23162
  }));
@@ -23140,27 +23290,36 @@ function parseDigit(character) {
23140
23290
  }
23141
23291
  function _createForOfIteratorHelperLoose$1(o, allowArrayLike) {
23142
23292
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
23143
- if (it) return (it = it.call(o)).next.bind(it);
23144
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike) {
23145
- if (it) o = it;
23293
+ if (it)
23294
+ return (it = it.call(o)).next.bind(it);
23295
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") {
23296
+ if (it)
23297
+ o = it;
23146
23298
  var i = 0;
23147
23299
  return function() {
23148
- if (i >= o.length) return { done: true };
23300
+ if (i >= o.length)
23301
+ return { done: true };
23149
23302
  return { done: false, value: o[i++] };
23150
23303
  };
23151
23304
  }
23152
23305
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23153
23306
  }
23154
23307
  function _unsupportedIterableToArray$2(o, minLen) {
23155
- if (!o) return;
23156
- if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
23308
+ if (!o)
23309
+ return;
23310
+ if (typeof o === "string")
23311
+ return _arrayLikeToArray$2(o, minLen);
23157
23312
  var n = Object.prototype.toString.call(o).slice(8, -1);
23158
- if (n === "Object" && o.constructor) n = o.constructor.name;
23159
- if (n === "Map" || n === "Set") return Array.from(o);
23160
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
23313
+ if (n === "Object" && o.constructor)
23314
+ n = o.constructor.name;
23315
+ if (n === "Map" || n === "Set")
23316
+ return Array.from(o);
23317
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23318
+ return _arrayLikeToArray$2(o, minLen);
23161
23319
  }
23162
23320
  function _arrayLikeToArray$2(arr, len) {
23163
- if (len == null || len > arr.length) len = arr.length;
23321
+ if (len == null || len > arr.length)
23322
+ len = arr.length;
23164
23323
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23165
23324
  arr2[i] = arr[i];
23166
23325
  }
@@ -23177,6 +23336,9 @@ function parseIncompletePhoneNumber(string) {
23177
23336
  function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2) {
23178
23337
  if (character === "+") {
23179
23338
  if (prevParsedCharacters) {
23339
+ if (typeof emitEvent2 === "function") {
23340
+ emitEvent2("end");
23341
+ }
23180
23342
  return;
23181
23343
  }
23182
23344
  return "+";
@@ -23185,34 +23347,45 @@ function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent2)
23185
23347
  }
23186
23348
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
23187
23349
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
23188
- if (it) return (it = it.call(o)).next.bind(it);
23189
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike) {
23190
- if (it) o = it;
23350
+ if (it)
23351
+ return (it = it.call(o)).next.bind(it);
23352
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") {
23353
+ if (it)
23354
+ o = it;
23191
23355
  var i = 0;
23192
23356
  return function() {
23193
- if (i >= o.length) return { done: true };
23357
+ if (i >= o.length)
23358
+ return { done: true };
23194
23359
  return { done: false, value: o[i++] };
23195
23360
  };
23196
23361
  }
23197
23362
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23198
23363
  }
23199
23364
  function _unsupportedIterableToArray$1(o, minLen) {
23200
- if (!o) return;
23201
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
23365
+ if (!o)
23366
+ return;
23367
+ if (typeof o === "string")
23368
+ return _arrayLikeToArray$1(o, minLen);
23202
23369
  var n = Object.prototype.toString.call(o).slice(8, -1);
23203
- if (n === "Object" && o.constructor) n = o.constructor.name;
23204
- if (n === "Map" || n === "Set") return Array.from(o);
23205
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
23370
+ if (n === "Object" && o.constructor)
23371
+ n = o.constructor.name;
23372
+ if (n === "Map" || n === "Set")
23373
+ return Array.from(o);
23374
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23375
+ return _arrayLikeToArray$1(o, minLen);
23206
23376
  }
23207
23377
  function _arrayLikeToArray$1(arr, len) {
23208
- if (len == null || len > arr.length) len = arr.length;
23378
+ if (len == null || len > arr.length)
23379
+ len = arr.length;
23209
23380
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23210
23381
  arr2[i] = arr[i];
23211
23382
  }
23212
23383
  return arr2;
23213
23384
  }
23214
- function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
23215
- var countries = _ref.countries, metadata2 = _ref.metadata;
23385
+ function getCountryByNationalNumber(nationalPhoneNumber, _ref2) {
23386
+ var countries = _ref2.countries;
23387
+ _ref2.defaultCountry;
23388
+ var metadata2 = _ref2.metadata;
23216
23389
  metadata2 = new Metadata(metadata2);
23217
23390
  for (var _iterator = _createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done; ) {
23218
23391
  var country = _step.value;
@@ -23229,8 +23402,14 @@ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
23229
23402
  }
23230
23403
  }
23231
23404
  }
23232
- function getCountryByCallingCode(callingCode, _ref) {
23233
- var nationalPhoneNumber = _ref.nationalNumber, metadata2 = _ref.metadata;
23405
+ var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
23406
+ function getCountryByCallingCode(callingCode, _ref2) {
23407
+ var nationalPhoneNumber = _ref2.nationalNumber, defaultCountry = _ref2.defaultCountry, metadata2 = _ref2.metadata;
23408
+ if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
23409
+ if (metadata2.isNonGeographicCallingCode(callingCode)) {
23410
+ return "001";
23411
+ }
23412
+ }
23234
23413
  var possibleCountries = metadata2.getCountryCodesForCallingCode(callingCode);
23235
23414
  if (!possibleCountries) {
23236
23415
  return;
@@ -23240,6 +23419,7 @@ function getCountryByCallingCode(callingCode, _ref) {
23240
23419
  }
23241
23420
  return getCountryByNationalNumber(nationalPhoneNumber, {
23242
23421
  countries: possibleCountries,
23422
+ defaultCountry,
23243
23423
  metadata: metadata2.metadata
23244
23424
  });
23245
23425
  }
@@ -23282,8 +23462,8 @@ function isPhoneContextValid(phoneContext) {
23282
23462
  }
23283
23463
  return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);
23284
23464
  }
23285
- function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref) {
23286
- var extractFormattedPhoneNumber = _ref.extractFormattedPhoneNumber;
23465
+ function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, _ref2) {
23466
+ var extractFormattedPhoneNumber = _ref2.extractFormattedPhoneNumber;
23287
23467
  var phoneContext = extractPhoneContext(numberToParse);
23288
23468
  if (!isPhoneContextValid(phoneContext)) {
23289
23469
  throw new ParseError("NOT_A_NUMBER");
@@ -23448,7 +23628,8 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
23448
23628
  country = defaultCountry;
23449
23629
  }
23450
23630
  countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata2.metadata);
23451
- } else return {};
23631
+ } else
23632
+ return {};
23452
23633
  if (!number2) {
23453
23634
  return {
23454
23635
  countryCallingCodeSource,
@@ -23458,11 +23639,13 @@ function parsePhoneNumber$1(formattedPhoneNumber, defaultCountry, defaultCalling
23458
23639
  var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number2), metadata2), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
23459
23640
  var exactCountry = getCountryByCallingCode(countryCallingCode, {
23460
23641
  nationalNumber,
23642
+ defaultCountry,
23461
23643
  metadata: metadata2
23462
23644
  });
23463
23645
  if (exactCountry) {
23464
23646
  country = exactCountry;
23465
- if (exactCountry === "001") ;
23647
+ if (exactCountry === "001")
23648
+ ;
23466
23649
  else {
23467
23650
  metadata2.country(country);
23468
23651
  }
@@ -23545,15 +23728,21 @@ function _nonIterableRest() {
23545
23728
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23546
23729
  }
23547
23730
  function _unsupportedIterableToArray(o, minLen) {
23548
- if (!o) return;
23549
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
23731
+ if (!o)
23732
+ return;
23733
+ if (typeof o === "string")
23734
+ return _arrayLikeToArray(o, minLen);
23550
23735
  var n = Object.prototype.toString.call(o).slice(8, -1);
23551
- if (n === "Object" && o.constructor) n = o.constructor.name;
23552
- if (n === "Map" || n === "Set") return Array.from(o);
23553
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
23736
+ if (n === "Object" && o.constructor)
23737
+ n = o.constructor.name;
23738
+ if (n === "Map" || n === "Set")
23739
+ return Array.from(o);
23740
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
23741
+ return _arrayLikeToArray(o, minLen);
23554
23742
  }
23555
23743
  function _arrayLikeToArray(arr, len) {
23556
- if (len == null || len > arr.length) len = arr.length;
23744
+ if (len == null || len > arr.length)
23745
+ len = arr.length;
23557
23746
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
23558
23747
  arr2[i] = arr[i];
23559
23748
  }
@@ -23561,7 +23750,8 @@ function _arrayLikeToArray(arr, len) {
23561
23750
  }
23562
23751
  function _iterableToArrayLimit(arr, i) {
23563
23752
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
23564
- if (_i == null) return;
23753
+ if (_i == null)
23754
+ return;
23565
23755
  var _arr = [];
23566
23756
  var _n = true;
23567
23757
  var _d = false;
@@ -23569,22 +23759,26 @@ function _iterableToArrayLimit(arr, i) {
23569
23759
  try {
23570
23760
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
23571
23761
  _arr.push(_s.value);
23572
- if (i && _arr.length === i) break;
23762
+ if (i && _arr.length === i)
23763
+ break;
23573
23764
  }
23574
23765
  } catch (err) {
23575
23766
  _d = true;
23576
23767
  _e = err;
23577
23768
  } finally {
23578
23769
  try {
23579
- if (!_n && _i["return"] != null) _i["return"]();
23770
+ if (!_n && _i["return"] != null)
23771
+ _i["return"]();
23580
23772
  } finally {
23581
- if (_d) throw _e;
23773
+ if (_d)
23774
+ throw _e;
23582
23775
  }
23583
23776
  }
23584
23777
  return _arr;
23585
23778
  }
23586
23779
  function _arrayWithHoles(arr) {
23587
- if (Array.isArray(arr)) return arr;
23780
+ if (Array.isArray(arr))
23781
+ return arr;
23588
23782
  }
23589
23783
  function normalizeArguments(args) {
23590
23784
  var _Array$prototype$slic = Array.prototype.slice.call(args), _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4), arg_1 = _Array$prototype$slic2[0], arg_2 = _Array$prototype$slic2[1], arg_3 = _Array$prototype$slic2[2], arg_4 = _Array$prototype$slic2[3];
@@ -23593,7 +23787,8 @@ function normalizeArguments(args) {
23593
23787
  var metadata2;
23594
23788
  if (typeof arg_1 === "string") {
23595
23789
  text2 = arg_1;
23596
- } else throw new TypeError("A text for parsing must be a string.");
23790
+ } else
23791
+ throw new TypeError("A text for parsing must be a string.");
23597
23792
  if (!arg_2 || typeof arg_2 === "string") {
23598
23793
  if (arg_4) {
23599
23794
  options = arg_3;
@@ -23614,7 +23809,8 @@ function normalizeArguments(args) {
23614
23809
  } else {
23615
23810
  metadata2 = arg_2;
23616
23811
  }
23617
- } else throw new Error("Invalid second argument: ".concat(arg_2));
23812
+ } else
23813
+ throw new Error("Invalid second argument: ".concat(arg_2));
23618
23814
  return {
23619
23815
  text: text2,
23620
23816
  options,
@@ -23659,7 +23855,8 @@ function parsePhoneNumber(text2, options, metadata2) {
23659
23855
  try {
23660
23856
  return parsePhoneNumberWithError(text2, options, metadata2);
23661
23857
  } catch (error) {
23662
- if (error instanceof ParseError) ;
23858
+ if (error instanceof ParseError)
23859
+ ;
23663
23860
  else {
23664
23861
  throw error;
23665
23862
  }
@@ -23951,6 +24148,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23951
24148
  };
23952
24149
  }
23953
24150
  });
24151
+ const loginCheckModal_vue_vue_type_style_index_0_lang = "";
23954
24152
  const GIT_CODE_LOGO_WHITE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPMAAAA4CAYAAAAo2c5IAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0wSURBVHgB7Z1fctQ6FsY/d26m5u3mruAqDzB1n2gWcMFZAWEFNCsgrCCdFRBWkGYFhB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Ssg33YcDy4BTzElRxFszoSqaazmHOMqJ/4rtHlTxRxJOJDMDHn8CSNX3C9rzB61CYAxESQnfO8ap6OuQEviotEbgTBxVyGQzOpYy6uMR8XVtksoP4i0UuFrcW42iaOF0cikUgkEolEIs34P3h7TBmol5dNAAAAAElFTkSuQmCC";
23955
24153
  const _hoisted_1$3 = { class: "mfa" };
23956
24154
  const _hoisted_2$1 = ["src"];
@@ -24045,7 +24243,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24045
24243
  });
24046
24244
  const activeInputIndex = ref(0);
24047
24245
  const inputChange = (e, index2) => {
24048
- if (!e) return;
24246
+ if (!e)
24247
+ return;
24049
24248
  activeInputIndex.value = index2 + 1;
24050
24249
  if (activeInputIndex.value >= inputList.value.length) {
24051
24250
  activeInputIndex.value = inputList.value.length - 1;
@@ -24059,13 +24258,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24059
24258
  };
24060
24259
  const keyUp = (e, index2) => {
24061
24260
  activeInputIndex.value = index2;
24062
- if (e.key === "Tab") return;
24261
+ if (e.key === "Tab")
24262
+ return;
24063
24263
  if (e.key === "Backspace") {
24064
24264
  inputList.value[activeInputIndex.value] && (inputList.value[activeInputIndex.value].value = "");
24065
24265
  if (!currentInputValue.value) {
24066
24266
  activeInputIndex.value--;
24067
24267
  }
24068
- if (activeInputIndex.value < 0) activeInputIndex.value = 0;
24268
+ if (activeInputIndex.value < 0)
24269
+ activeInputIndex.value = 0;
24069
24270
  }
24070
24271
  focusInput();
24071
24272
  };
@@ -24213,8 +24414,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24213
24414
  };
24214
24415
  }
24215
24416
  });
24216
- const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24217
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BWHnLaFf.js"));
24417
+ const MFA_vue_vue_type_style_index_0_lang = "";
24418
+ const MFA_vue_vue_type_style_index_1_scoped_3e0f827f_lang = "";
24419
+ const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-3e0f827f"]]);
24420
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-10b29578.js"));
24218
24421
  const useSlidCaptcha = () => {
24219
24422
  const { mount, unMount } = usePopup("slid-captcha-popup");
24220
24423
  const open = (config) => {
@@ -24233,6 +24436,7 @@ const useSlidCaptcha = () => {
24233
24436
  close: unMount
24234
24437
  };
24235
24438
  };
24439
+ const contentLoading_vue_vue_type_style_index_0_scoped_b4e76fda_lang = "";
24236
24440
  const _sfc_main$3 = {};
24237
24441
  const _hoisted_1$2 = { class: "content-loading" };
24238
24442
  function _sfc_render(_ctx, _cache) {
@@ -24249,7 +24453,7 @@ function _sfc_render(_ctx, _cache) {
24249
24453
  ], -1)
24250
24454
  ]));
24251
24455
  }
24252
- const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-gitcode-layout-lib"]]);
24456
+ const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-b4e76fda"]]);
24253
24457
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24254
24458
  __name: "index",
24255
24459
  props: {
@@ -24281,13 +24485,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24281
24485
  };
24282
24486
  }
24283
24487
  });
24284
- const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-gitcode-layout-lib"]]);
24488
+ const index_vue_vue_type_style_index_0_scoped_7d576636_lang = "";
24489
+ const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-7d576636"]]);
24285
24490
  function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
24286
24491
  const { interval = 1e4, immediate = true } = options;
24287
24492
  const timer = ref(null);
24288
24493
  const isPageVisible = ref(true);
24289
24494
  const startPoll = () => {
24290
- if (shouldPoll !== void 0 && !shouldPoll.value) return;
24495
+ if (shouldPoll !== void 0 && !shouldPoll.value)
24496
+ return;
24291
24497
  if (!timer.value && isPageVisible.value) {
24292
24498
  if (immediate) {
24293
24499
  pollFunction();
@@ -24596,7 +24802,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24596
24802
  cb(new Error($t("gitCodeLayout.LoginModal.rule.username")));
24597
24803
  return;
24598
24804
  }
24599
- if (usernameCheckLoading.value) return;
24805
+ if (usernameCheckLoading.value)
24806
+ return;
24600
24807
  usernameCheckLoading.value = true;
24601
24808
  try {
24602
24809
  const res = await API.checkUsername(val);
@@ -24872,7 +25079,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24872
25079
  useReport("signup_submit", {}, API.report);
24873
25080
  }
24874
25081
  const formData = await ((_a = FormRef.value) == null ? void 0 : _a.ValidateForm());
24875
- if (!formData || formData.type === "fail") return false;
25082
+ if (!formData || formData.type === "fail")
25083
+ return false;
24876
25084
  const res = formData.forms;
24877
25085
  const { country } = ((_b = FormRef.value) == null ? void 0 : _b.Data) || {};
24878
25086
  const mobile = getPhone({ value: res.mobile, country });
@@ -24881,7 +25089,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24881
25089
  return;
24882
25090
  } else if (formType.value === "register") {
24883
25091
  const check = await LoginCheck();
24884
- if (!check) return;
25092
+ if (!check)
25093
+ return;
24885
25094
  await registerAction(res, mobile);
24886
25095
  } else {
24887
25096
  const loginFunction = tabPanel.value === "password" ? LoginConfig.password : LoginConfig.phone;
@@ -25236,14 +25445,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25236
25445
  const fetchMiniProgramStatus = async () => {
25237
25446
  var _a;
25238
25447
  const res = await LoginConfig.miniProgramCheckStatus(miniProgramInfo.value.scene_id);
25239
- if (res.error) return;
25448
+ if (res.error)
25449
+ return;
25240
25450
  const { status: miniProgramCurrentStatus } = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || "WAITING";
25241
25451
  miniProgramStatus.value = miniProgramCurrentStatus;
25242
25452
  if (miniProgramCurrentStatus === "TIMEOUT" || miniProgramCurrentStatus === "CANCEL") {
25243
25453
  stopPoll();
25244
25454
  return;
25245
25455
  }
25246
- if (miniProgramCurrentStatus !== "LOGIN") return;
25456
+ if (miniProgramCurrentStatus !== "LOGIN")
25457
+ return;
25247
25458
  stopPoll();
25248
25459
  const loginResult = await LoginConfig.miniProgramLogin(miniProgramInfo.value.scene_id);
25249
25460
  if (!loginResult.success) {
@@ -25256,7 +25467,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25256
25467
  }, shouldMiniProgramPoll);
25257
25468
  const getMiniProgramQrCode = async () => {
25258
25469
  var _a;
25259
- if (miniProgramLoading.value) return;
25470
+ if (miniProgramLoading.value)
25471
+ return;
25260
25472
  miniProgramLoading.value = true;
25261
25473
  stopPoll();
25262
25474
  miniProgramStatus.value = "WAITING";
@@ -25559,7 +25771,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25559
25771
  };
25560
25772
  }
25561
25773
  });
25562
- const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25774
+ const index_vue_vue_type_style_index_0_scoped_debd20f0_lang = "";
25775
+ const index_vue_vue_type_style_index_1_lang = "";
25776
+ const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-debd20f0"]]);
25563
25777
  const { t } = i18n.global;
25564
25778
  function useLogin(request) {
25565
25779
  const successMsg = t("gitCodeLayout.common.tips.welcome");
@@ -25716,6 +25930,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25716
25930
  };
25717
25931
  }
25718
25932
  });
25933
+ const main = "";
25719
25934
  const GitCodeLayoutEmitter = emitter;
25720
25935
  const index = {
25721
25936
  install: (app) => {
@@ -25735,8 +25950,8 @@ export {
25735
25950
  TOPIC_TYPE as T,
25736
25951
  _export_sfc as _,
25737
25952
  i18n as a,
25738
- REPO_TYPE as b,
25739
- REPO_EVENT as c,
25953
+ REPO_EVENT as b,
25954
+ REPO_TYPE as c,
25740
25955
  debounce$1 as d,
25741
25956
  extractRepoInfoWithURL as e,
25742
25957
  useTimeFormat as f,