@kg-ui/kg-ui-plus 0.1.35 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +84 -42
- package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +18 -6
- package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
- package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +1 -1
- package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
- package/dist/es/KgCopilot/index.vue.mjs +1 -1
- package/dist/es/KgCopilot/index.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
- package/dist/es/home/LProject/index.vue.mjs +1 -1
- package/dist/es/home/LProject/index.vue3.mjs +2 -2
- package/dist/es/home/index.vue.mjs +1 -1
- package/dist/es/home/index.vue3.mjs +2 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
- package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
- package/dist/es/style.css +1 -1
- package/package.json +124 -124
@@ -1,10 +1,18 @@
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref } from "vue";
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref, normalizeStyle, createCommentVNode } from "vue";
|
2
2
|
import purify from "../../../node_modules/.pnpm/dompurify@3.2.3/node_modules/dompurify/dist/purify.es.mjs";
|
3
3
|
import { marked } from "../../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.mjs";
|
4
4
|
import isInCode from "./mdInCode.mjs";
|
5
5
|
import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
|
6
6
|
import { storeToRefs } from "pinia";
|
7
|
-
const _hoisted_1 =
|
7
|
+
const _hoisted_1 = {
|
8
|
+
class: "flex",
|
9
|
+
style: { "align-items": "center" }
|
10
|
+
};
|
11
|
+
const _hoisted_2 = ["innerHTML"];
|
12
|
+
const _hoisted_3 = {
|
13
|
+
key: 0,
|
14
|
+
class: "check-mark"
|
15
|
+
};
|
8
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
17
|
__name: "readMd",
|
10
18
|
props: {
|
@@ -105,13 +113,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
105
113
|
});
|
106
114
|
return (_ctx, _cache) => {
|
107
115
|
const _directive_highlight = resolveDirective("highlight");
|
108
|
-
return openBlock(), createElementBlock("div",
|
116
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
109
117
|
withDirectives(createElementVNode("div", {
|
110
118
|
innerHTML: unref(resultHtml),
|
111
|
-
class: "markdown"
|
112
|
-
|
119
|
+
class: "markdown",
|
120
|
+
style: normalizeStyle({
|
121
|
+
width: props.text.includes("LLM") && !props.isPrinting ? "auto" : "100%"
|
122
|
+
})
|
123
|
+
}, null, 12, _hoisted_2), [
|
113
124
|
[_directive_highlight]
|
114
|
-
])
|
125
|
+
]),
|
126
|
+
props.text.includes("LLM") && !props.isPrinting ? (openBlock(), createElementBlock("span", _hoisted_3, "✅")) : createCommentVNode("", true)
|
115
127
|
]);
|
116
128
|
};
|
117
129
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const readMd_vue_vue_type_style_index_0_scoped_aad92d4c_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
readMd_vue_vue_type_style_index_0_scoped_aad92d4c_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cef87429"]]);
|
5
5
|
export {
|
6
6
|
HistoryReport as default
|
7
7
|
};
|
@@ -7,7 +7,7 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
|
|
7
7
|
import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/check.mjs";
|
8
8
|
import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
|
9
9
|
import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
|
10
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
10
|
+
const _withScopeId = (n) => (pushScopeId("data-v-cef87429"), n = n(), popScopeId(), n);
|
11
11
|
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h3", { class: "history-title" }, "历史记录", -1));
|
12
12
|
const _hoisted_2 = { class: "search_box" };
|
13
13
|
const _hoisted_3 = { class: "list_box" };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_cef87429_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_cef87429_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d22e58c2"]]);
|
5
5
|
export {
|
6
6
|
KgCopilot as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_d22e58c2_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_d22e58c2_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilterArea.vue2.mjs";
|
2
2
|
import "./FilterArea.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e04c24d"]]);
|
5
5
|
export {
|
6
6
|
FilterArea as default
|
7
7
|
};
|
@@ -9,7 +9,7 @@ import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_module
|
|
9
9
|
import { checkFilterShow_xinyuan, checkFilterShow, checkFilterShow_letter } from "../../utils/home.mjs";
|
10
10
|
import FilterItem from "./FilterItem.vue.mjs";
|
11
11
|
import FilterItemIcon from "./FilterItemIcon.vue.mjs";
|
12
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
12
|
+
const _withScopeId = (n) => (pushScopeId("data-v-4e04c24d"), n = n(), popScopeId(), n);
|
13
13
|
const _hoisted_1 = { id: "filterWrap" };
|
14
14
|
const _hoisted_2 = { key: 0 };
|
15
15
|
const _hoisted_3 = { class: "flex flex-1 align-middle justify-items-start flex-wrap" };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilterArea_vue_vue_type_style_index_0_scoped_4e04c24d_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilterArea_vue_vue_type_style_index_0_scoped_4e04c24d_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilterItem.vue2.mjs";
|
2
2
|
import "./FilterItem.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be1d5ffc"]]);
|
5
5
|
export {
|
6
6
|
FilterItem as default
|
7
7
|
};
|
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
4
4
|
import { EnumFilterKind } from "../../store/modules/types.mjs";
|
5
5
|
import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
|
6
6
|
import { getFilterRemark } from "../../utils/home.mjs";
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-be1d5ffc"), n = n(), popScopeId(), n);
|
8
8
|
const _hoisted_1 = { class: "p-2" };
|
9
9
|
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
|
10
10
|
const _hoisted_3 = ["innerHTML"];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilterItem_vue_vue_type_style_index_0_scoped_be1d5ffc_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilterItem_vue_vue_type_style_index_0_scoped_be1d5ffc_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./FilterItemIcon.vue2.mjs";
|
2
2
|
import "./FilterItemIcon.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c55b8933"]]);
|
5
5
|
export {
|
6
6
|
FilterItemIcon as default
|
7
7
|
};
|
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
|
|
4
4
|
import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
|
5
5
|
import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs";
|
6
6
|
import { getFilterRemark } from "../../utils/home.mjs";
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
7
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c55b8933"), n = n(), popScopeId(), n);
|
8
8
|
const _hoisted_1 = {
|
9
9
|
key: 0,
|
10
10
|
class: "flex items-end"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const FilterItemIcon_vue_vue_type_style_index_0_scoped_c55b8933_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
FilterItemIcon_vue_vue_type_style_index_0_scoped_c55b8933_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a0e9ea7"]]);
|
5
5
|
export {
|
6
6
|
LProject as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_7a0e9ea7_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_7a0e9ea7_lang as default
|
4
4
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.mjs";
|
2
2
|
import "./index.vue3.mjs";
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
|
4
|
-
const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c86d30a0"]]);
|
5
5
|
export {
|
6
6
|
Home as default
|
7
7
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const index_vue_vue_type_style_index_0_scoped_c86d30a0_lang = "";
|
2
2
|
export {
|
3
|
-
|
3
|
+
index_vue_vue_type_style_index_0_scoped_c86d30a0_lang as default
|
4
4
|
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
import { __require as requireFunctionApply } from "./functionApply.mjs";
|
3
|
-
import
|
3
|
+
import { __require as requireFunctionCall } from "./functionCall.mjs";
|
4
4
|
import reflectApply from "./reflectApply.mjs";
|
5
|
-
var bind =
|
5
|
+
var bind = requireFunctionBind();
|
6
6
|
var $apply = requireFunctionApply();
|
7
|
-
var $call =
|
7
|
+
var $call = requireFunctionCall();
|
8
8
|
var $reflectApply = reflectApply;
|
9
9
|
var actualApply = $reflectApply || bind.call($call, $apply);
|
10
10
|
export {
|
@@ -1,4 +1,12 @@
|
|
1
|
-
var functionCall
|
1
|
+
var functionCall;
|
2
|
+
var hasRequiredFunctionCall;
|
3
|
+
function requireFunctionCall() {
|
4
|
+
if (hasRequiredFunctionCall)
|
5
|
+
return functionCall;
|
6
|
+
hasRequiredFunctionCall = 1;
|
7
|
+
functionCall = Function.prototype.call;
|
8
|
+
return functionCall;
|
9
|
+
}
|
2
10
|
export {
|
3
|
-
|
11
|
+
requireFunctionCall as __require
|
4
12
|
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
|
3
|
-
import
|
3
|
+
import { __require as requireFunctionCall } from "./functionCall.mjs";
|
4
4
|
import actualApply from "./actualApply.mjs";
|
5
|
-
var bind =
|
5
|
+
var bind = requireFunctionBind();
|
6
6
|
var $TypeError = type;
|
7
|
-
var $call =
|
7
|
+
var $call = requireFunctionCall();
|
8
8
|
var $actualApply = actualApply;
|
9
9
|
var callBindApplyHelpers = function callBindBasic(args) {
|
10
10
|
if (args.length < 1 || typeof args[0] !== "function") {
|
package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs
CHANGED
@@ -1,72 +1,80 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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;
|
1
|
+
var implementation;
|
2
|
+
var hasRequiredImplementation;
|
3
|
+
function requireImplementation() {
|
4
|
+
if (hasRequiredImplementation)
|
5
|
+
return implementation;
|
6
|
+
hasRequiredImplementation = 1;
|
7
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
8
|
+
var toStr = Object.prototype.toString;
|
9
|
+
var max = Math.max;
|
10
|
+
var funcType = "[object Function]";
|
11
|
+
var concatty = function concatty2(a, b) {
|
12
|
+
var arr = [];
|
13
|
+
for (var i = 0; i < a.length; i += 1) {
|
14
|
+
arr[i] = a[i];
|
28
15
|
}
|
29
|
-
|
30
|
-
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
if (
|
46
|
-
|
16
|
+
for (var j = 0; j < b.length; j += 1) {
|
17
|
+
arr[j + a.length] = b[j];
|
18
|
+
}
|
19
|
+
return arr;
|
20
|
+
};
|
21
|
+
var slicy = function slicy2(arrLike, offset) {
|
22
|
+
var arr = [];
|
23
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
24
|
+
arr[j] = arrLike[i];
|
25
|
+
}
|
26
|
+
return arr;
|
27
|
+
};
|
28
|
+
var joiny = function(arr, joiner) {
|
29
|
+
var str = "";
|
30
|
+
for (var i = 0; i < arr.length; i += 1) {
|
31
|
+
str += arr[i];
|
32
|
+
if (i + 1 < arr.length) {
|
33
|
+
str += joiner;
|
47
34
|
}
|
48
|
-
return this;
|
49
35
|
}
|
50
|
-
return
|
51
|
-
that,
|
52
|
-
concatty(args, arguments)
|
53
|
-
);
|
36
|
+
return str;
|
54
37
|
};
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
var
|
38
|
+
implementation = function bind(that) {
|
39
|
+
var target = this;
|
40
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
41
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
42
|
+
}
|
43
|
+
var args = slicy(arguments, 1);
|
44
|
+
var bound;
|
45
|
+
var binder = function() {
|
46
|
+
if (this instanceof bound) {
|
47
|
+
var result = target.apply(
|
48
|
+
this,
|
49
|
+
concatty(args, arguments)
|
50
|
+
);
|
51
|
+
if (Object(result) === result) {
|
52
|
+
return result;
|
53
|
+
}
|
54
|
+
return this;
|
55
|
+
}
|
56
|
+
return target.apply(
|
57
|
+
that,
|
58
|
+
concatty(args, arguments)
|
59
|
+
);
|
63
60
|
};
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
};
|
61
|
+
var boundLength = max(0, target.length - args.length);
|
62
|
+
var boundArgs = [];
|
63
|
+
for (var i = 0; i < boundLength; i++) {
|
64
|
+
boundArgs[i] = "$" + i;
|
65
|
+
}
|
66
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
67
|
+
if (target.prototype) {
|
68
|
+
var Empty = function Empty2() {
|
69
|
+
};
|
70
|
+
Empty.prototype = target.prototype;
|
71
|
+
bound.prototype = new Empty();
|
72
|
+
Empty.prototype = null;
|
73
|
+
}
|
74
|
+
return bound;
|
75
|
+
};
|
76
|
+
return implementation;
|
77
|
+
}
|
70
78
|
export {
|
71
|
-
|
79
|
+
requireImplementation as __require
|
72
80
|
};
|
@@ -1,6 +1,14 @@
|
|
1
|
-
import
|
2
|
-
var
|
3
|
-
var
|
1
|
+
import { __require as requireImplementation } from "./implementation.mjs";
|
2
|
+
var functionBind;
|
3
|
+
var hasRequiredFunctionBind;
|
4
|
+
function requireFunctionBind() {
|
5
|
+
if (hasRequiredFunctionBind)
|
6
|
+
return functionBind;
|
7
|
+
hasRequiredFunctionBind = 1;
|
8
|
+
var implementation = requireImplementation();
|
9
|
+
functionBind = Function.prototype.bind || implementation;
|
10
|
+
return functionBind;
|
11
|
+
}
|
4
12
|
export {
|
5
|
-
|
13
|
+
requireFunctionBind as __require
|
6
14
|
};
|
@@ -16,8 +16,8 @@ import esDefineProperty from "../../../es-define-property@1.0.1/node_modules/es-
|
|
16
16
|
import { __require as requireHasSymbols } from "../../../has-symbols@1.1.0/node_modules/has-symbols/index.mjs";
|
17
17
|
import { __require as requireGet } from "../../../dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs";
|
18
18
|
import { __require as requireFunctionApply } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs";
|
19
|
-
import
|
20
|
-
import
|
19
|
+
import { __require as requireFunctionCall } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
|
20
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
21
21
|
import { __require as requireHasown } from "../../../hasown@2.0.2/node_modules/hasown/index.mjs";
|
22
22
|
var undefined$1;
|
23
23
|
var $Object = esObjectAtoms;
|
@@ -61,7 +61,7 @@ var hasSymbols = requireHasSymbols()();
|
|
61
61
|
var getDunderProto = requireGet();
|
62
62
|
var getProto = typeof Reflect === "function" && Reflect.getPrototypeOf || $Object.getPrototypeOf || getDunderProto;
|
63
63
|
var $apply = requireFunctionApply();
|
64
|
-
var $call =
|
64
|
+
var $call = requireFunctionCall();
|
65
65
|
var needsEval = {};
|
66
66
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
67
67
|
var INTRINSICS = {
|
@@ -227,7 +227,7 @@ var LEGACY_ALIASES = {
|
|
227
227
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
228
228
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
229
229
|
};
|
230
|
-
var bind =
|
230
|
+
var bind = requireFunctionBind();
|
231
231
|
var hasOwn = requireHasown();
|
232
232
|
var $concat = bind.call($call, Array.prototype.concat);
|
233
233
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
|
2
2
|
var hasown;
|
3
3
|
var hasRequiredHasown;
|
4
4
|
function requireHasown() {
|
@@ -7,7 +7,7 @@ function requireHasown() {
|
|
7
7
|
hasRequiredHasown = 1;
|
8
8
|
var call = Function.prototype.call;
|
9
9
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
10
|
-
var bind =
|
10
|
+
var bind = requireFunctionBind();
|
11
11
|
hasown = bind.call(call, $hasOwn);
|
12
12
|
return hasown;
|
13
13
|
}
|