@kg-ui/kg-ui-plus 0.0.1 → 0.0.3

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.
Files changed (150) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +16 -0
  3. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +4 -0
  4. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +26 -0
  5. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +4 -0
  6. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +7 -0
  7. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +49 -0
  8. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +4 -0
  9. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +7 -0
  10. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +94 -0
  11. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +4 -0
  12. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +7 -0
  13. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +33 -0
  14. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +4 -0
  15. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +7 -0
  16. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +140 -0
  17. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +4 -0
  18. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +7 -0
  19. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +131 -0
  20. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +4 -0
  21. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +7 -0
  22. package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +21 -0
  23. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +4 -0
  24. package/dist/es/KgCopilot/dialogue/index.vue.mjs +7 -0
  25. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +131 -0
  26. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +4 -0
  27. package/dist/es/KgCopilot/dialogue/mdInCode.mjs +56 -0
  28. package/dist/es/KgCopilot/dialogue/readMd.vue.mjs +7 -0
  29. package/dist/es/KgCopilot/dialogue/readMd.vue2.mjs +87 -0
  30. package/dist/es/KgCopilot/dialogue/readMd.vue3.mjs +4 -0
  31. package/dist/es/KgCopilot/index.vue.mjs +7 -0
  32. package/dist/es/KgCopilot/index.vue2.mjs +49 -0
  33. package/dist/es/KgCopilot/index.vue3.mjs +4 -0
  34. package/dist/es/_virtual/___vite-browser-external.mjs +6 -0
  35. package/dist/es/_virtual/__vite-browser-external.mjs +4 -0
  36. package/dist/es/_virtual/_commonjsHelpers.mjs +34 -0
  37. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
  38. package/dist/es/_virtual/index.mjs +13 -0
  39. package/dist/es/api/project.mjs +51 -0
  40. package/dist/es/directives/heighlight/index.mjs +69 -0
  41. package/dist/es/directives/index.mjs +4 -0
  42. package/dist/es/home/LFilter/FilterArea.vue.mjs +7 -0
  43. package/dist/es/home/LFilter/FilterArea.vue2.mjs +507 -0
  44. package/dist/es/home/LFilter/FilterArea.vue3.mjs +4 -0
  45. package/dist/es/home/LFilter/FilterHead.vue.mjs +129 -0
  46. package/dist/es/home/LFilter/FilterHead.vue2.mjs +4 -0
  47. package/dist/es/home/LFilter/FilterItem.vue.mjs +7 -0
  48. package/dist/es/home/LFilter/FilterItem.vue2.mjs +114 -0
  49. package/dist/es/home/LFilter/FilterItem.vue3.mjs +4 -0
  50. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +7 -0
  51. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +171 -0
  52. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +4 -0
  53. package/dist/es/home/LFilter/index.vue.mjs +17 -0
  54. package/dist/es/home/LFilter/index.vue2.mjs +4 -0
  55. package/dist/es/home/LProject/index.vue.mjs +7 -0
  56. package/dist/es/home/LProject/index.vue2.mjs +70 -0
  57. package/dist/es/home/LProject/index.vue3.mjs +4 -0
  58. package/dist/es/home/index.vue.mjs +7 -0
  59. package/dist/es/home/index.vue2.mjs +80 -0
  60. package/dist/es/home/index.vue3.mjs +4 -0
  61. package/dist/es/index.mjs +26 -0
  62. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +8 -0
  63. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +8 -0
  64. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +8 -0
  65. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +8 -0
  66. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +8 -0
  67. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +8 -0
  68. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +8 -0
  69. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +8 -0
  70. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +8 -0
  71. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +8 -0
  72. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +8 -0
  73. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +8 -0
  74. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +8 -0
  75. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +8 -0
  76. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +8 -0
  77. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +8 -0
  78. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +8 -0
  79. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +8 -0
  80. package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +70 -0
  81. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +16 -0
  82. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +36 -0
  83. package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +48 -0
  84. package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +949 -0
  85. package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +22 -0
  86. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +4 -0
  87. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +4 -0
  88. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +4 -0
  89. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +4 -0
  90. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +4 -0
  91. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +4 -0
  92. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +4 -0
  93. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +72 -0
  94. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +6 -0
  95. package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +320 -0
  96. package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +14 -0
  97. package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +19 -0
  98. package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +11 -0
  99. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +21 -0
  100. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +48 -0
  101. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +8 -0
  102. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +5 -0
  103. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +91 -0
  104. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +377 -0
  105. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +221 -0
  106. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +280 -0
  107. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +732 -0
  108. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +247 -0
  109. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +47 -0
  110. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +71 -0
  111. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +160 -0
  112. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +38 -0
  113. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +176 -0
  114. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +135 -0
  115. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +89 -0
  116. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +254 -0
  117. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +698 -0
  118. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +40 -0
  119. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +227 -0
  120. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +144 -0
  121. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +589 -0
  122. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +414 -0
  123. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +414 -0
  124. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +766 -0
  125. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +832 -0
  126. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +788 -0
  127. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +227 -0
  128. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +1580 -0
  129. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +4 -0
  130. package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +2045 -0
  131. package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +514 -0
  132. package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +124 -0
  133. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +22 -0
  134. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +14 -0
  135. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +199 -0
  136. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +262 -0
  137. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +196 -0
  138. package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +54 -0
  139. package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +115 -0
  140. package/dist/es/store/index.mjs +8 -0
  141. package/dist/es/store/modules/copilot.mjs +111 -0
  142. package/dist/es/store/modules/filters.mjs +346 -0
  143. package/dist/es/store/modules/types.mjs +19 -0
  144. package/dist/es/style/index.scss.mjs +4 -0
  145. package/dist/es/style/tailwind.css.mjs +4 -0
  146. package/dist/es/style.css +1 -0
  147. package/dist/es/utils/home.mjs +129 -0
  148. package/dist/es/utils/http/index.mjs +90 -0
  149. package/dist/es/utils/message.mjs +42 -0
  150. package/package.json +23 -32
@@ -0,0 +1,22 @@
1
+ import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
2
+ var esDefineProperty;
3
+ var hasRequiredEsDefineProperty;
4
+ function requireEsDefineProperty() {
5
+ if (hasRequiredEsDefineProperty)
6
+ return esDefineProperty;
7
+ hasRequiredEsDefineProperty = 1;
8
+ var GetIntrinsic = getIntrinsic;
9
+ var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
10
+ if ($defineProperty) {
11
+ try {
12
+ $defineProperty({}, "a", { value: 1 });
13
+ } catch (e) {
14
+ $defineProperty = false;
15
+ }
16
+ }
17
+ esDefineProperty = $defineProperty;
18
+ return esDefineProperty;
19
+ }
20
+ export {
21
+ requireEsDefineProperty as __require
22
+ };
@@ -0,0 +1,4 @@
1
+ var _eval = EvalError;
2
+ export {
3
+ _eval as default
4
+ };
@@ -0,0 +1,4 @@
1
+ var esErrors = Error;
2
+ export {
3
+ esErrors as default
4
+ };
@@ -0,0 +1,4 @@
1
+ var range = RangeError;
2
+ export {
3
+ range as default
4
+ };
@@ -0,0 +1,4 @@
1
+ var ref = ReferenceError;
2
+ export {
3
+ ref as default
4
+ };
@@ -0,0 +1,4 @@
1
+ var syntax = SyntaxError;
2
+ export {
3
+ syntax as default
4
+ };
@@ -0,0 +1,4 @@
1
+ var type = TypeError;
2
+ export {
3
+ type as default
4
+ };
@@ -0,0 +1,4 @@
1
+ var uri = URIError;
2
+ export {
3
+ uri as default
4
+ };
@@ -0,0 +1,72 @@
1
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2
+ var toStr = Object.prototype.toString;
3
+ var max = Math.max;
4
+ var funcType = "[object Function]";
5
+ var concatty = function concatty2(a, b) {
6
+ var arr = [];
7
+ for (var i = 0; i < a.length; i += 1) {
8
+ arr[i] = a[i];
9
+ }
10
+ for (var j = 0; j < b.length; j += 1) {
11
+ arr[j + a.length] = b[j];
12
+ }
13
+ return arr;
14
+ };
15
+ var slicy = function slicy2(arrLike, offset) {
16
+ var arr = [];
17
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
18
+ arr[j] = arrLike[i];
19
+ }
20
+ return arr;
21
+ };
22
+ var joiny = function(arr, joiner) {
23
+ var str = "";
24
+ for (var i = 0; i < arr.length; i += 1) {
25
+ str += arr[i];
26
+ if (i + 1 < arr.length) {
27
+ str += joiner;
28
+ }
29
+ }
30
+ return str;
31
+ };
32
+ var implementation = function bind(that) {
33
+ var target = this;
34
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
35
+ throw new TypeError(ERROR_MESSAGE + target);
36
+ }
37
+ var args = slicy(arguments, 1);
38
+ var bound;
39
+ var binder = function() {
40
+ if (this instanceof bound) {
41
+ var result = target.apply(
42
+ this,
43
+ concatty(args, arguments)
44
+ );
45
+ if (Object(result) === result) {
46
+ return result;
47
+ }
48
+ return this;
49
+ }
50
+ return target.apply(
51
+ that,
52
+ concatty(args, arguments)
53
+ );
54
+ };
55
+ var boundLength = max(0, target.length - args.length);
56
+ var boundArgs = [];
57
+ for (var i = 0; i < boundLength; i++) {
58
+ boundArgs[i] = "$" + i;
59
+ }
60
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
61
+ if (target.prototype) {
62
+ var Empty = function Empty2() {
63
+ };
64
+ Empty.prototype = target.prototype;
65
+ bound.prototype = new Empty();
66
+ Empty.prototype = null;
67
+ }
68
+ return bound;
69
+ };
70
+ export {
71
+ implementation as default
72
+ };
@@ -0,0 +1,6 @@
1
+ import implementation$1 from "./implementation.mjs";
2
+ var implementation = implementation$1;
3
+ var functionBind = Function.prototype.bind || implementation;
4
+ export {
5
+ functionBind as default
6
+ };
@@ -0,0 +1,320 @@
1
+ import esErrors from "../../../es-errors@1.3.0/node_modules/es-errors/index.mjs";
2
+ import _eval from "../../../es-errors@1.3.0/node_modules/es-errors/eval.mjs";
3
+ import range from "../../../es-errors@1.3.0/node_modules/es-errors/range.mjs";
4
+ import ref from "../../../es-errors@1.3.0/node_modules/es-errors/ref.mjs";
5
+ import syntax from "../../../es-errors@1.3.0/node_modules/es-errors/syntax.mjs";
6
+ import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
7
+ import uri from "../../../es-errors@1.3.0/node_modules/es-errors/uri.mjs";
8
+ import hasSymbols$1 from "../../../has-symbols@1.0.3/node_modules/has-symbols/index.mjs";
9
+ import hasProto$1 from "../../../has-proto@1.0.3/node_modules/has-proto/index.mjs";
10
+ import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
11
+ import hasown from "../../../hasown@2.0.2/node_modules/hasown/index.mjs";
12
+ var undefined$1;
13
+ var $Error = esErrors;
14
+ var $EvalError = _eval;
15
+ var $RangeError = range;
16
+ var $ReferenceError = ref;
17
+ var $SyntaxError = syntax;
18
+ var $TypeError = type;
19
+ var $URIError = uri;
20
+ var $Function = Function;
21
+ var getEvalledConstructor = function(expressionSyntax) {
22
+ try {
23
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
24
+ } catch (e) {
25
+ }
26
+ };
27
+ var $gOPD = Object.getOwnPropertyDescriptor;
28
+ if ($gOPD) {
29
+ try {
30
+ $gOPD({}, "");
31
+ } catch (e) {
32
+ $gOPD = null;
33
+ }
34
+ }
35
+ var throwTypeError = function() {
36
+ throw new $TypeError();
37
+ };
38
+ var ThrowTypeError = $gOPD ? function() {
39
+ try {
40
+ arguments.callee;
41
+ return throwTypeError;
42
+ } catch (calleeThrows) {
43
+ try {
44
+ return $gOPD(arguments, "callee").get;
45
+ } catch (gOPDthrows) {
46
+ return throwTypeError;
47
+ }
48
+ }
49
+ }() : throwTypeError;
50
+ var hasSymbols = hasSymbols$1();
51
+ var hasProto = hasProto$1();
52
+ var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
53
+ return x.__proto__;
54
+ } : null);
55
+ var needsEval = {};
56
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
57
+ var INTRINSICS = {
58
+ __proto__: null,
59
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
60
+ "%Array%": Array,
61
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
62
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
63
+ "%AsyncFromSyncIteratorPrototype%": undefined$1,
64
+ "%AsyncFunction%": needsEval,
65
+ "%AsyncGenerator%": needsEval,
66
+ "%AsyncGeneratorFunction%": needsEval,
67
+ "%AsyncIteratorPrototype%": needsEval,
68
+ "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
69
+ "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
70
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
71
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
72
+ "%Boolean%": Boolean,
73
+ "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
74
+ "%Date%": Date,
75
+ "%decodeURI%": decodeURI,
76
+ "%decodeURIComponent%": decodeURIComponent,
77
+ "%encodeURI%": encodeURI,
78
+ "%encodeURIComponent%": encodeURIComponent,
79
+ "%Error%": $Error,
80
+ "%eval%": eval,
81
+ // eslint-disable-line no-eval
82
+ "%EvalError%": $EvalError,
83
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
84
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
85
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
86
+ "%Function%": $Function,
87
+ "%GeneratorFunction%": needsEval,
88
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
89
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
90
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
91
+ "%isFinite%": isFinite,
92
+ "%isNaN%": isNaN,
93
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
94
+ "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
95
+ "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
96
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
97
+ "%Math%": Math,
98
+ "%Number%": Number,
99
+ "%Object%": Object,
100
+ "%parseFloat%": parseFloat,
101
+ "%parseInt%": parseInt,
102
+ "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
103
+ "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
104
+ "%RangeError%": $RangeError,
105
+ "%ReferenceError%": $ReferenceError,
106
+ "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
107
+ "%RegExp%": RegExp,
108
+ "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
109
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
110
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
111
+ "%String%": String,
112
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
113
+ "%Symbol%": hasSymbols ? Symbol : undefined$1,
114
+ "%SyntaxError%": $SyntaxError,
115
+ "%ThrowTypeError%": ThrowTypeError,
116
+ "%TypedArray%": TypedArray,
117
+ "%TypeError%": $TypeError,
118
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
119
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
120
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
121
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
122
+ "%URIError%": $URIError,
123
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
124
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
125
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
126
+ };
127
+ if (getProto) {
128
+ try {
129
+ null.error;
130
+ } catch (e) {
131
+ var errorProto = getProto(getProto(e));
132
+ INTRINSICS["%Error.prototype%"] = errorProto;
133
+ }
134
+ }
135
+ var doEval = function doEval2(name) {
136
+ var value;
137
+ if (name === "%AsyncFunction%") {
138
+ value = getEvalledConstructor("async function () {}");
139
+ } else if (name === "%GeneratorFunction%") {
140
+ value = getEvalledConstructor("function* () {}");
141
+ } else if (name === "%AsyncGeneratorFunction%") {
142
+ value = getEvalledConstructor("async function* () {}");
143
+ } else if (name === "%AsyncGenerator%") {
144
+ var fn = doEval2("%AsyncGeneratorFunction%");
145
+ if (fn) {
146
+ value = fn.prototype;
147
+ }
148
+ } else if (name === "%AsyncIteratorPrototype%") {
149
+ var gen = doEval2("%AsyncGenerator%");
150
+ if (gen && getProto) {
151
+ value = getProto(gen.prototype);
152
+ }
153
+ }
154
+ INTRINSICS[name] = value;
155
+ return value;
156
+ };
157
+ var LEGACY_ALIASES = {
158
+ __proto__: null,
159
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
160
+ "%ArrayPrototype%": ["Array", "prototype"],
161
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
162
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
163
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
164
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
165
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
166
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
167
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
168
+ "%BooleanPrototype%": ["Boolean", "prototype"],
169
+ "%DataViewPrototype%": ["DataView", "prototype"],
170
+ "%DatePrototype%": ["Date", "prototype"],
171
+ "%ErrorPrototype%": ["Error", "prototype"],
172
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
173
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
174
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
175
+ "%FunctionPrototype%": ["Function", "prototype"],
176
+ "%Generator%": ["GeneratorFunction", "prototype"],
177
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
178
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
179
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
180
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
181
+ "%JSONParse%": ["JSON", "parse"],
182
+ "%JSONStringify%": ["JSON", "stringify"],
183
+ "%MapPrototype%": ["Map", "prototype"],
184
+ "%NumberPrototype%": ["Number", "prototype"],
185
+ "%ObjectPrototype%": ["Object", "prototype"],
186
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
187
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
188
+ "%PromisePrototype%": ["Promise", "prototype"],
189
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
190
+ "%Promise_all%": ["Promise", "all"],
191
+ "%Promise_reject%": ["Promise", "reject"],
192
+ "%Promise_resolve%": ["Promise", "resolve"],
193
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
194
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
195
+ "%RegExpPrototype%": ["RegExp", "prototype"],
196
+ "%SetPrototype%": ["Set", "prototype"],
197
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
198
+ "%StringPrototype%": ["String", "prototype"],
199
+ "%SymbolPrototype%": ["Symbol", "prototype"],
200
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
201
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
202
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
203
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
204
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
205
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
206
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
207
+ "%URIErrorPrototype%": ["URIError", "prototype"],
208
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
209
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
210
+ };
211
+ var bind = functionBind;
212
+ var hasOwn = hasown;
213
+ var $concat = bind.call(Function.call, Array.prototype.concat);
214
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
215
+ var $replace = bind.call(Function.call, String.prototype.replace);
216
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
217
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
218
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
219
+ var reEscapeChar = /\\(\\)?/g;
220
+ var stringToPath = function stringToPath2(string) {
221
+ var first = $strSlice(string, 0, 1);
222
+ var last = $strSlice(string, -1);
223
+ if (first === "%" && last !== "%") {
224
+ throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
225
+ } else if (last === "%" && first !== "%") {
226
+ throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
227
+ }
228
+ var result = [];
229
+ $replace(string, rePropName, function(match, number, quote, subString) {
230
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
231
+ });
232
+ return result;
233
+ };
234
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
235
+ var intrinsicName = name;
236
+ var alias;
237
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
238
+ alias = LEGACY_ALIASES[intrinsicName];
239
+ intrinsicName = "%" + alias[0] + "%";
240
+ }
241
+ if (hasOwn(INTRINSICS, intrinsicName)) {
242
+ var value = INTRINSICS[intrinsicName];
243
+ if (value === needsEval) {
244
+ value = doEval(intrinsicName);
245
+ }
246
+ if (typeof value === "undefined" && !allowMissing) {
247
+ throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
248
+ }
249
+ return {
250
+ alias,
251
+ name: intrinsicName,
252
+ value
253
+ };
254
+ }
255
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
256
+ };
257
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
258
+ if (typeof name !== "string" || name.length === 0) {
259
+ throw new $TypeError("intrinsic name must be a non-empty string");
260
+ }
261
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
262
+ throw new $TypeError('"allowMissing" argument must be a boolean');
263
+ }
264
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
265
+ throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
266
+ }
267
+ var parts = stringToPath(name);
268
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
269
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
270
+ var intrinsicRealName = intrinsic.name;
271
+ var value = intrinsic.value;
272
+ var skipFurtherCaching = false;
273
+ var alias = intrinsic.alias;
274
+ if (alias) {
275
+ intrinsicBaseName = alias[0];
276
+ $spliceApply(parts, $concat([0, 1], alias));
277
+ }
278
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
279
+ var part = parts[i];
280
+ var first = $strSlice(part, 0, 1);
281
+ var last = $strSlice(part, -1);
282
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
283
+ throw new $SyntaxError("property names with quotes must have matching quotes");
284
+ }
285
+ if (part === "constructor" || !isOwn) {
286
+ skipFurtherCaching = true;
287
+ }
288
+ intrinsicBaseName += "." + part;
289
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
290
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
291
+ value = INTRINSICS[intrinsicRealName];
292
+ } else if (value != null) {
293
+ if (!(part in value)) {
294
+ if (!allowMissing) {
295
+ throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
296
+ }
297
+ return void 0;
298
+ }
299
+ if ($gOPD && i + 1 >= parts.length) {
300
+ var desc = $gOPD(value, part);
301
+ isOwn = !!desc;
302
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
303
+ value = desc.get;
304
+ } else {
305
+ value = value[part];
306
+ }
307
+ } else {
308
+ isOwn = hasOwn(value, part);
309
+ value = value[part];
310
+ }
311
+ if (isOwn && !skipFurtherCaching) {
312
+ INTRINSICS[intrinsicRealName] = value;
313
+ }
314
+ }
315
+ }
316
+ return value;
317
+ };
318
+ export {
319
+ getIntrinsic as default
320
+ };
@@ -0,0 +1,14 @@
1
+ import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
2
+ var GetIntrinsic = getIntrinsic;
3
+ var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
4
+ if ($gOPD) {
5
+ try {
6
+ $gOPD([], "length");
7
+ } catch (e) {
8
+ $gOPD = null;
9
+ }
10
+ }
11
+ var gopd = $gOPD;
12
+ export {
13
+ gopd as default
14
+ };
@@ -0,0 +1,19 @@
1
+ import { __require as requireEsDefineProperty } from "../../../es-define-property@1.0.0/node_modules/es-define-property/index.mjs";
2
+ var $defineProperty = requireEsDefineProperty();
3
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
4
+ return !!$defineProperty;
5
+ };
6
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
7
+ if (!$defineProperty) {
8
+ return null;
9
+ }
10
+ try {
11
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
12
+ } catch (e) {
13
+ return true;
14
+ }
15
+ };
16
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
17
+ export {
18
+ hasPropertyDescriptors_1 as default
19
+ };
@@ -0,0 +1,11 @@
1
+ var test = {
2
+ __proto__: null,
3
+ foo: {}
4
+ };
5
+ var $Object = Object;
6
+ var hasProto = function hasProto2() {
7
+ return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
8
+ };
9
+ export {
10
+ hasProto as default
11
+ };
@@ -0,0 +1,21 @@
1
+ import shams from "./shams.mjs";
2
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
3
+ var hasSymbolSham = shams;
4
+ var hasSymbols = function hasNativeSymbols() {
5
+ if (typeof origSymbol !== "function") {
6
+ return false;
7
+ }
8
+ if (typeof Symbol !== "function") {
9
+ return false;
10
+ }
11
+ if (typeof origSymbol("foo") !== "symbol") {
12
+ return false;
13
+ }
14
+ if (typeof Symbol("bar") !== "symbol") {
15
+ return false;
16
+ }
17
+ return hasSymbolSham();
18
+ };
19
+ export {
20
+ hasSymbols as default
21
+ };
@@ -0,0 +1,48 @@
1
+ var shams = function hasSymbols() {
2
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
3
+ return false;
4
+ }
5
+ if (typeof Symbol.iterator === "symbol") {
6
+ return true;
7
+ }
8
+ var obj = {};
9
+ var sym = Symbol("test");
10
+ var symObj = Object(sym);
11
+ if (typeof sym === "string") {
12
+ return false;
13
+ }
14
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
15
+ return false;
16
+ }
17
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
18
+ return false;
19
+ }
20
+ var symVal = 42;
21
+ obj[sym] = symVal;
22
+ for (sym in obj) {
23
+ return false;
24
+ }
25
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
26
+ return false;
27
+ }
28
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
29
+ return false;
30
+ }
31
+ var syms = Object.getOwnPropertySymbols(obj);
32
+ if (syms.length !== 1 || syms[0] !== sym) {
33
+ return false;
34
+ }
35
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
36
+ return false;
37
+ }
38
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
39
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
40
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
41
+ return false;
42
+ }
43
+ }
44
+ return true;
45
+ };
46
+ export {
47
+ shams as default
48
+ };
@@ -0,0 +1,8 @@
1
+ import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
+ var call = Function.prototype.call;
3
+ var $hasOwn = Object.prototype.hasOwnProperty;
4
+ var bind = functionBind;
5
+ var hasown = bind.call(call, $hasOwn);
6
+ export {
7
+ hasown as default
8
+ };
@@ -0,0 +1,5 @@
1
+ import HighlightJS from "../lib/core.mjs";
2
+ export {
3
+ HighlightJS,
4
+ HighlightJS as default
5
+ };