ik-next-ui 0.0.1
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/dist/Demo/ik.index.es.js +8 -0
- package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
- package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
- package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
- package/dist/IkAutoCard/ik-next-ui.css +1 -0
- package/dist/IkAutoCard/ik.index.es.js +51 -0
- package/dist/IkBaseDialog/ik-next-ui.css +1 -0
- package/dist/IkBaseDialog/ik.index.es.js +1954 -0
- package/dist/IkBottomOperate/ik-next-ui.css +1 -0
- package/dist/IkBottomOperate/ik.index.es.js +241 -0
- package/dist/IkBtnContent/ik-next-ui.css +1 -0
- package/dist/IkBtnContent/ik.index.es.js +80 -0
- package/dist/IkCollapseCard/ik-next-ui.css +1 -0
- package/dist/IkCollapseCard/ik.index.es.js +1924 -0
- package/dist/IkCurrencyInput/ik.index.es.js +60 -0
- package/dist/IkDescription/ik-next-ui.css +1 -0
- package/dist/IkDescription/ik.index.es.js +16544 -0
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
- package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
- package/dist/IkDragList/ik-next-ui.css +1 -0
- package/dist/IkDragList/ik.index.es.js +445 -0
- package/dist/IkEmpty/ik-next-ui.css +1 -0
- package/dist/IkEmpty/ik.index.es.js +44 -0
- package/dist/IkFileIcon/ik.index.es.js +619 -0
- package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
- package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
- package/dist/IkIconPicker/ik-next-ui.css +1 -0
- package/dist/IkIconPicker/ik.index.es.js +2060 -0
- package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
- package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
- package/dist/IkImageViewer/ik.index.es.js +552 -0
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
- package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
- package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
- package/dist/IkPage/ik.index.es.js +1 -0
- package/dist/IkPickerUser/ik-next-ui.css +1 -0
- package/dist/IkPickerUser/ik.index.es.js +2077 -0
- package/dist/IkPlayer/ik-next-ui.css +1 -0
- package/dist/IkPlayer/ik.index.es.js +11071 -0
- package/dist/IkPreviewFile/ik-next-ui.css +1 -0
- package/dist/IkPreviewFile/ik.index.es.js +16385 -0
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
- package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
- package/dist/IkRadioGroup/ik-next-ui.css +1 -0
- package/dist/IkRadioGroup/ik.index.es.js +1937 -0
- package/dist/IkSelectTag/ik-next-ui.css +1 -0
- package/dist/IkSelectTag/ik.index.es.js +359 -0
- package/dist/IkSideText/ik-next-ui.css +1 -0
- package/dist/IkSideText/ik.index.es.js +2084 -0
- package/dist/IkStatu/ik-next-ui.css +1 -0
- package/dist/IkStatu/ik.index.es.js +131 -0
- package/dist/IkStatuOver/ik-next-ui.css +1 -0
- package/dist/IkStatuOver/ik.index.es.js +284 -0
- package/dist/IkSvgIcon/ik-next-ui.css +1 -0
- package/dist/IkSvgIcon/ik.index.es.js +1845 -0
- package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
- package/dist/IkTinymce/ik-next-ui.css +1 -0
- package/dist/IkTinymce/ik.index.es.js +50349 -0
- package/dist/IkTooltip/ik.index.es.js +48 -0
- package/dist/IkTree/ik-next-ui.css +1 -0
- package/dist/IkTree/ik.index.es.js +136 -0
- package/dist/IkUploadFile/ik-next-ui.css +1 -0
- package/dist/IkUploadFile/ik.index.es.js +17251 -0
- package/dist/IkUploadImage/ik-next-ui.css +1 -0
- package/dist/IkUploadImage/ik.index.es.js +2946 -0
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
- package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
- package/dist/Provider/ik.index.es.js +42 -0
- package/dist/ik-next-ui.css +9 -0
- package/dist/index.es.js +84696 -0
- package/dist/index.umd.js +371 -0
- package/dist/resolver.cjs +1 -0
- package/dist/resolver.js +63 -0
- package/dist/src/components/Demo/index.d.ts +4 -0
- package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
- package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
- package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
- package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
- package/dist/src/components/IkAutoCard/index.d.ts +60 -0
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
- package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
- package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
- package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
- package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
- package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
- package/dist/src/components/IkDescription/index.d.ts +235 -0
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
- package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
- package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
- package/dist/src/components/IkDragList/index.d.ts +509 -0
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
- package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
- package/dist/src/components/IkEmpty/index.d.ts +69 -0
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
- package/dist/src/components/IkFileIcon/index.d.ts +40 -0
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
- package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
- package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
- package/dist/src/components/IkIconPicker/index.d.ts +83 -0
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
- package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
- package/dist/src/components/IkImageViewer/index.d.ts +6 -0
- package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
- package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
- package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
- package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
- package/dist/src/components/IkPage/index.d.ts +0 -0
- package/dist/src/components/IkPickerUser/index.d.ts +373 -0
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
- package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
- package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
- package/dist/src/components/IkPickerUser/types.d.ts +28 -0
- package/dist/src/components/IkPlayer/index.d.ts +82 -0
- package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
- package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
- package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
- package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
- package/dist/src/components/IkSelectTag/index.d.ts +85 -0
- package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
- package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
- package/dist/src/components/IkSideText/index.d.ts +113 -0
- package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
- package/dist/src/components/IkStatu/index.d.ts +117 -0
- package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
- package/dist/src/components/IkStatuOver/index.d.ts +36 -0
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
- package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
- package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
- package/dist/src/components/IkTinymce/index.d.ts +215 -0
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
- package/dist/src/components/IkTooltip/index.d.ts +84 -0
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
- package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
- package/dist/src/components/IkTree/index.d.ts +4693 -0
- package/dist/src/components/IkUploadFile/index.d.ts +586 -0
- package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
- package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
- package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
- package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
- package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
- package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
- package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
- package/dist/src/components/IkUploadImage/index.d.ts +287 -0
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
- package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
- package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
- package/dist/src/components/Provider/index.d.ts +99 -0
- package/dist/src/components/index.d.ts +37 -0
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
- package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
- package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
- package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
- package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
- package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
- package/dist/src/enum/search.d.ts +88 -0
- package/dist/src/iking-ui/component.d.ts +4 -0
- package/dist/src/iking-ui/defaults.d.ts +4 -0
- package/dist/src/iking-ui/index.d.ts +6 -0
- package/dist/src/iking-ui/make-installer.d.ts +5 -0
- package/dist/src/iking-ui/resolver.d.ts +16 -0
- package/dist/src/utils/approval.d.ts +10 -0
- package/dist/src/utils/file.d.ts +27 -0
- package/dist/src/utils/index.d.ts +12 -0
- package/dist/src/utils/install.d.ts +6 -0
- package/dist/src/utils/math.d.ts +3 -0
- package/dist/src/utils/object.d.ts +4 -0
- package/dist/src/utils/theme.d.ts +1 -0
- package/dist/src/utils/typescript.d.ts +6 -0
- package/dist/src/utils/use-provider.d.ts +15 -0
- package/package.json +236 -0
|
@@ -0,0 +1,1954 @@
|
|
|
1
|
+
import { defineComponent as A, h as J, toValue as I, watch as F, nextTick as Ie, isRef as ht, toRef as pt, readonly as gt, customRef as mt, ref as me, getCurrentScope as vt, onScopeDispose as yt, shallowRef as L, computed as j, unref as E, reactive as wt, resolveComponent as Qe, openBlock as x, createElementBlock as T, normalizeStyle as D, normalizeClass as q, createBlock as z, withCtx as M, createElementVNode as P, createCommentVNode as Se, Fragment as bt, createVNode as kt, useModel as xt, mergeProps as It, createSlots as St, renderSlot as W, createTextVNode as Ce, toDisplayString as Te, mergeModels as Ct } from "vue";
|
|
2
|
+
const qe = (e, n) => (e.install = (t) => {
|
|
3
|
+
for (const o of [e, ...Object.values({})])
|
|
4
|
+
t.component(o.name, o);
|
|
5
|
+
}, e);
|
|
6
|
+
function Ge(...e) {
|
|
7
|
+
const n = [];
|
|
8
|
+
for (const t of e)
|
|
9
|
+
if (t) {
|
|
10
|
+
if (typeof t == "string")
|
|
11
|
+
n.push(t);
|
|
12
|
+
else if (Array.isArray(t)) {
|
|
13
|
+
const o = Ge(...t);
|
|
14
|
+
o && n.push(o);
|
|
15
|
+
} else if (typeof t == "object")
|
|
16
|
+
for (const [o, i] of Object.entries(t))
|
|
17
|
+
i && n.push(o);
|
|
18
|
+
}
|
|
19
|
+
return n.join(" ");
|
|
20
|
+
}
|
|
21
|
+
const Ke = (e, n) => {
|
|
22
|
+
const t = e.__vccOpts || e;
|
|
23
|
+
for (const [o, i] of n)
|
|
24
|
+
t[o] = i;
|
|
25
|
+
return t;
|
|
26
|
+
}, Ye = /^[a-z0-9]+(-[a-z0-9]+)*$/, Z = (e, n, t, o = "") => {
|
|
27
|
+
const i = e.split(":");
|
|
28
|
+
if (e.slice(0, 1) === "@") {
|
|
29
|
+
if (i.length < 2 || i.length > 3)
|
|
30
|
+
return null;
|
|
31
|
+
o = i.shift().slice(1);
|
|
32
|
+
}
|
|
33
|
+
if (i.length > 3 || !i.length)
|
|
34
|
+
return null;
|
|
35
|
+
if (i.length > 1) {
|
|
36
|
+
const l = i.pop(), c = i.pop(), u = {
|
|
37
|
+
// Allow provider without '@': "provider:prefix:name"
|
|
38
|
+
provider: i.length > 0 ? i[0] : o,
|
|
39
|
+
prefix: c,
|
|
40
|
+
name: l
|
|
41
|
+
};
|
|
42
|
+
return n && !G(u) ? null : u;
|
|
43
|
+
}
|
|
44
|
+
const r = i[0], s = r.split("-");
|
|
45
|
+
if (s.length > 1) {
|
|
46
|
+
const l = {
|
|
47
|
+
provider: o,
|
|
48
|
+
prefix: s.shift(),
|
|
49
|
+
name: s.join("-")
|
|
50
|
+
};
|
|
51
|
+
return n && !G(l) ? null : l;
|
|
52
|
+
}
|
|
53
|
+
if (t && o === "") {
|
|
54
|
+
const l = {
|
|
55
|
+
provider: o,
|
|
56
|
+
prefix: "",
|
|
57
|
+
name: r
|
|
58
|
+
};
|
|
59
|
+
return n && !G(l, t) ? null : l;
|
|
60
|
+
}
|
|
61
|
+
return null;
|
|
62
|
+
}, G = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
63
|
+
// Check name: cannot be empty
|
|
64
|
+
((n && e.prefix === "" || e.prefix) && e.name) : !1, Je = Object.freeze(
|
|
65
|
+
{
|
|
66
|
+
left: 0,
|
|
67
|
+
top: 0,
|
|
68
|
+
width: 16,
|
|
69
|
+
height: 16
|
|
70
|
+
}
|
|
71
|
+
), X = Object.freeze({
|
|
72
|
+
rotate: 0,
|
|
73
|
+
vFlip: !1,
|
|
74
|
+
hFlip: !1
|
|
75
|
+
}), _ = Object.freeze({
|
|
76
|
+
...Je,
|
|
77
|
+
...X
|
|
78
|
+
}), se = Object.freeze({
|
|
79
|
+
..._,
|
|
80
|
+
body: "",
|
|
81
|
+
hidden: !1
|
|
82
|
+
});
|
|
83
|
+
function Tt(e, n) {
|
|
84
|
+
const t = {};
|
|
85
|
+
!e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
|
|
86
|
+
const o = ((e.rotate || 0) + (n.rotate || 0)) % 4;
|
|
87
|
+
return o && (t.rotate = o), t;
|
|
88
|
+
}
|
|
89
|
+
function Pe(e, n) {
|
|
90
|
+
const t = Tt(e, n);
|
|
91
|
+
for (const o in se)
|
|
92
|
+
o in X ? o in e && !(o in t) && (t[o] = X[o]) : o in n ? t[o] = n[o] : o in e && (t[o] = e[o]);
|
|
93
|
+
return t;
|
|
94
|
+
}
|
|
95
|
+
function Pt(e, n) {
|
|
96
|
+
const t = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
97
|
+
function r(s) {
|
|
98
|
+
if (t[s])
|
|
99
|
+
return i[s] = [];
|
|
100
|
+
if (!(s in i)) {
|
|
101
|
+
i[s] = null;
|
|
102
|
+
const l = o[s] && o[s].parent, c = l && r(l);
|
|
103
|
+
c && (i[s] = [l].concat(c));
|
|
104
|
+
}
|
|
105
|
+
return i[s];
|
|
106
|
+
}
|
|
107
|
+
return Object.keys(t).concat(Object.keys(o)).forEach(r), i;
|
|
108
|
+
}
|
|
109
|
+
function Mt(e, n, t) {
|
|
110
|
+
const o = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
111
|
+
let r = {};
|
|
112
|
+
function s(l) {
|
|
113
|
+
r = Pe(
|
|
114
|
+
o[l] || i[l],
|
|
115
|
+
r
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
return s(n), t.forEach(s), Pe(e, r);
|
|
119
|
+
}
|
|
120
|
+
function Xe(e, n) {
|
|
121
|
+
const t = [];
|
|
122
|
+
if (typeof e != "object" || typeof e.icons != "object")
|
|
123
|
+
return t;
|
|
124
|
+
e.not_found instanceof Array && e.not_found.forEach((i) => {
|
|
125
|
+
n(i, null), t.push(i);
|
|
126
|
+
});
|
|
127
|
+
const o = Pt(e);
|
|
128
|
+
for (const i in o) {
|
|
129
|
+
const r = o[i];
|
|
130
|
+
r && (n(i, Mt(e, i, r)), t.push(i));
|
|
131
|
+
}
|
|
132
|
+
return t;
|
|
133
|
+
}
|
|
134
|
+
const Et = {
|
|
135
|
+
provider: "",
|
|
136
|
+
aliases: {},
|
|
137
|
+
not_found: {},
|
|
138
|
+
...Je
|
|
139
|
+
};
|
|
140
|
+
function te(e, n) {
|
|
141
|
+
for (const t in n)
|
|
142
|
+
if (t in e && typeof e[t] != typeof n[t])
|
|
143
|
+
return !1;
|
|
144
|
+
return !0;
|
|
145
|
+
}
|
|
146
|
+
function Ze(e) {
|
|
147
|
+
if (typeof e != "object" || e === null)
|
|
148
|
+
return null;
|
|
149
|
+
const n = e;
|
|
150
|
+
if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !te(e, Et))
|
|
151
|
+
return null;
|
|
152
|
+
const t = n.icons;
|
|
153
|
+
for (const i in t) {
|
|
154
|
+
const r = t[i];
|
|
155
|
+
if (
|
|
156
|
+
// Name cannot be empty
|
|
157
|
+
!i || // Must have body
|
|
158
|
+
typeof r.body != "string" || // Check other props
|
|
159
|
+
!te(
|
|
160
|
+
r,
|
|
161
|
+
se
|
|
162
|
+
)
|
|
163
|
+
)
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
const o = n.aliases || /* @__PURE__ */ Object.create(null);
|
|
167
|
+
for (const i in o) {
|
|
168
|
+
const r = o[i], s = r.parent;
|
|
169
|
+
if (
|
|
170
|
+
// Name cannot be empty
|
|
171
|
+
!i || // Parent must be set and point to existing icon
|
|
172
|
+
typeof s != "string" || !t[s] && !o[s] || // Check other props
|
|
173
|
+
!te(
|
|
174
|
+
r,
|
|
175
|
+
se
|
|
176
|
+
)
|
|
177
|
+
)
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
return n;
|
|
181
|
+
}
|
|
182
|
+
const Me = /* @__PURE__ */ Object.create(null);
|
|
183
|
+
function Ot(e, n) {
|
|
184
|
+
return {
|
|
185
|
+
provider: e,
|
|
186
|
+
prefix: n,
|
|
187
|
+
icons: /* @__PURE__ */ Object.create(null),
|
|
188
|
+
missing: /* @__PURE__ */ new Set()
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function B(e, n) {
|
|
192
|
+
const t = Me[e] || (Me[e] = /* @__PURE__ */ Object.create(null));
|
|
193
|
+
return t[n] || (t[n] = Ot(e, n));
|
|
194
|
+
}
|
|
195
|
+
function ve(e, n) {
|
|
196
|
+
return Ze(n) ? Xe(n, (t, o) => {
|
|
197
|
+
o ? e.icons[t] = o : e.missing.add(t);
|
|
198
|
+
}) : [];
|
|
199
|
+
}
|
|
200
|
+
function jt(e, n, t) {
|
|
201
|
+
try {
|
|
202
|
+
if (typeof t.body == "string")
|
|
203
|
+
return e.icons[n] = { ...t }, !0;
|
|
204
|
+
} catch {
|
|
205
|
+
}
|
|
206
|
+
return !1;
|
|
207
|
+
}
|
|
208
|
+
let V = !1;
|
|
209
|
+
function _e(e) {
|
|
210
|
+
return typeof e == "boolean" && (V = e), V;
|
|
211
|
+
}
|
|
212
|
+
function Bt(e) {
|
|
213
|
+
const n = typeof e == "string" ? Z(e, !0, V) : e;
|
|
214
|
+
if (n) {
|
|
215
|
+
const t = B(n.provider, n.prefix), o = n.name;
|
|
216
|
+
return t.icons[o] || (t.missing.has(o) ? null : void 0);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function zt(e, n) {
|
|
220
|
+
const t = Z(e, !0, V);
|
|
221
|
+
if (!t)
|
|
222
|
+
return !1;
|
|
223
|
+
const o = B(t.provider, t.prefix);
|
|
224
|
+
return n ? jt(o, t.name, n) : (o.missing.add(t.name), !0);
|
|
225
|
+
}
|
|
226
|
+
function Lt(e, n) {
|
|
227
|
+
if (typeof e != "object")
|
|
228
|
+
return !1;
|
|
229
|
+
if (typeof n != "string" && (n = e.provider || ""), V && !n && !e.prefix) {
|
|
230
|
+
let i = !1;
|
|
231
|
+
return Ze(e) && (e.prefix = "", Xe(e, (r, s) => {
|
|
232
|
+
zt(r, s) && (i = !0);
|
|
233
|
+
})), i;
|
|
234
|
+
}
|
|
235
|
+
const t = e.prefix;
|
|
236
|
+
if (!G({
|
|
237
|
+
prefix: t,
|
|
238
|
+
name: "a"
|
|
239
|
+
}))
|
|
240
|
+
return !1;
|
|
241
|
+
const o = B(n, t);
|
|
242
|
+
return !!ve(o, e);
|
|
243
|
+
}
|
|
244
|
+
const et = Object.freeze({
|
|
245
|
+
width: null,
|
|
246
|
+
height: null
|
|
247
|
+
}), tt = Object.freeze({
|
|
248
|
+
// Dimensions
|
|
249
|
+
...et,
|
|
250
|
+
// Transformations
|
|
251
|
+
...X
|
|
252
|
+
}), At = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ft = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
253
|
+
function Ee(e, n, t) {
|
|
254
|
+
if (n === 1)
|
|
255
|
+
return e;
|
|
256
|
+
if (t = t || 100, typeof e == "number")
|
|
257
|
+
return Math.ceil(e * n * t) / t;
|
|
258
|
+
if (typeof e != "string")
|
|
259
|
+
return e;
|
|
260
|
+
const o = e.split(At);
|
|
261
|
+
if (o === null || !o.length)
|
|
262
|
+
return e;
|
|
263
|
+
const i = [];
|
|
264
|
+
let r = o.shift(), s = Ft.test(r);
|
|
265
|
+
for (; ; ) {
|
|
266
|
+
if (s) {
|
|
267
|
+
const l = parseFloat(r);
|
|
268
|
+
isNaN(l) ? i.push(r) : i.push(Math.ceil(l * n * t) / t);
|
|
269
|
+
} else
|
|
270
|
+
i.push(r);
|
|
271
|
+
if (r = o.shift(), r === void 0)
|
|
272
|
+
return i.join("");
|
|
273
|
+
s = !s;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
function $t(e, n = "defs") {
|
|
277
|
+
let t = "";
|
|
278
|
+
const o = e.indexOf("<" + n);
|
|
279
|
+
for (; o >= 0; ) {
|
|
280
|
+
const i = e.indexOf(">", o), r = e.indexOf("</" + n);
|
|
281
|
+
if (i === -1 || r === -1)
|
|
282
|
+
break;
|
|
283
|
+
const s = e.indexOf(">", r);
|
|
284
|
+
if (s === -1)
|
|
285
|
+
break;
|
|
286
|
+
t += e.slice(i + 1, r).trim(), e = e.slice(0, o).trim() + e.slice(s + 1);
|
|
287
|
+
}
|
|
288
|
+
return {
|
|
289
|
+
defs: t,
|
|
290
|
+
content: e
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
function Dt(e, n) {
|
|
294
|
+
return e ? "<defs>" + e + "</defs>" + n : n;
|
|
295
|
+
}
|
|
296
|
+
function Nt(e, n, t) {
|
|
297
|
+
const o = $t(e);
|
|
298
|
+
return Dt(o.defs, n + o.content + t);
|
|
299
|
+
}
|
|
300
|
+
const Rt = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
301
|
+
function Vt(e, n) {
|
|
302
|
+
const t = {
|
|
303
|
+
..._,
|
|
304
|
+
...e
|
|
305
|
+
}, o = {
|
|
306
|
+
...tt,
|
|
307
|
+
...n
|
|
308
|
+
}, i = {
|
|
309
|
+
left: t.left,
|
|
310
|
+
top: t.top,
|
|
311
|
+
width: t.width,
|
|
312
|
+
height: t.height
|
|
313
|
+
};
|
|
314
|
+
let r = t.body;
|
|
315
|
+
[t, o].forEach((g) => {
|
|
316
|
+
const d = [], w = g.hFlip, S = g.vFlip;
|
|
317
|
+
let m = g.rotate;
|
|
318
|
+
w ? S ? m += 2 : (d.push(
|
|
319
|
+
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
|
320
|
+
), d.push("scale(-1 1)"), i.top = i.left = 0) : S && (d.push(
|
|
321
|
+
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
|
322
|
+
), d.push("scale(1 -1)"), i.top = i.left = 0);
|
|
323
|
+
let b;
|
|
324
|
+
switch (m < 0 && (m -= Math.floor(m / 4) * 4), m = m % 4, m) {
|
|
325
|
+
case 1:
|
|
326
|
+
b = i.height / 2 + i.top, d.unshift(
|
|
327
|
+
"rotate(90 " + b.toString() + " " + b.toString() + ")"
|
|
328
|
+
);
|
|
329
|
+
break;
|
|
330
|
+
case 2:
|
|
331
|
+
d.unshift(
|
|
332
|
+
"rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")"
|
|
333
|
+
);
|
|
334
|
+
break;
|
|
335
|
+
case 3:
|
|
336
|
+
b = i.width / 2 + i.left, d.unshift(
|
|
337
|
+
"rotate(-90 " + b.toString() + " " + b.toString() + ")"
|
|
338
|
+
);
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
m % 2 === 1 && (i.left !== i.top && (b = i.left, i.left = i.top, i.top = b), i.width !== i.height && (b = i.width, i.width = i.height, i.height = b)), d.length && (r = Nt(
|
|
342
|
+
r,
|
|
343
|
+
'<g transform="' + d.join(" ") + '">',
|
|
344
|
+
"</g>"
|
|
345
|
+
));
|
|
346
|
+
});
|
|
347
|
+
const s = o.width, l = o.height, c = i.width, u = i.height;
|
|
348
|
+
let h, f;
|
|
349
|
+
s === null ? (f = l === null ? "1em" : l === "auto" ? u : l, h = Ee(f, c / u)) : (h = s === "auto" ? c : s, f = l === null ? Ee(h, u / c) : l === "auto" ? u : l);
|
|
350
|
+
const a = {}, p = (g, d) => {
|
|
351
|
+
Rt(d) || (a[g] = d.toString());
|
|
352
|
+
};
|
|
353
|
+
p("width", h), p("height", f);
|
|
354
|
+
const y = [i.left, i.top, c, u];
|
|
355
|
+
return a.viewBox = y.join(" "), {
|
|
356
|
+
attributes: a,
|
|
357
|
+
viewBox: y,
|
|
358
|
+
body: r
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
const Ut = /\sid="(\S+)"/g, Ht = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
362
|
+
let Wt = 0;
|
|
363
|
+
function Qt(e, n = Ht) {
|
|
364
|
+
const t = [];
|
|
365
|
+
let o;
|
|
366
|
+
for (; o = Ut.exec(e); )
|
|
367
|
+
t.push(o[1]);
|
|
368
|
+
if (!t.length)
|
|
369
|
+
return e;
|
|
370
|
+
const i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
371
|
+
return t.forEach((r) => {
|
|
372
|
+
const s = typeof n == "function" ? n(r) : n + (Wt++).toString(), l = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
373
|
+
e = e.replace(
|
|
374
|
+
// Allowed characters before id: [#;"]
|
|
375
|
+
// Allowed characters after id: [)"], .[a-z]
|
|
376
|
+
new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
|
|
377
|
+
"$1" + s + i + "$3"
|
|
378
|
+
);
|
|
379
|
+
}), e = e.replace(new RegExp(i, "g"), ""), e;
|
|
380
|
+
}
|
|
381
|
+
const le = /* @__PURE__ */ Object.create(null);
|
|
382
|
+
function qt(e, n) {
|
|
383
|
+
le[e] = n;
|
|
384
|
+
}
|
|
385
|
+
function ce(e) {
|
|
386
|
+
return le[e] || le[""];
|
|
387
|
+
}
|
|
388
|
+
function ye(e) {
|
|
389
|
+
let n;
|
|
390
|
+
if (typeof e.resources == "string")
|
|
391
|
+
n = [e.resources];
|
|
392
|
+
else if (n = e.resources, !(n instanceof Array) || !n.length)
|
|
393
|
+
return null;
|
|
394
|
+
return {
|
|
395
|
+
// API hosts
|
|
396
|
+
resources: n,
|
|
397
|
+
// Root path
|
|
398
|
+
path: e.path || "/",
|
|
399
|
+
// URL length limit
|
|
400
|
+
maxURL: e.maxURL || 500,
|
|
401
|
+
// Timeout before next host is used.
|
|
402
|
+
rotate: e.rotate || 750,
|
|
403
|
+
// Timeout before failing query.
|
|
404
|
+
timeout: e.timeout || 5e3,
|
|
405
|
+
// Randomise default API end point.
|
|
406
|
+
random: e.random === !0,
|
|
407
|
+
// Start index
|
|
408
|
+
index: e.index || 0,
|
|
409
|
+
// Receive data after time out (used if time out kicks in first, then API module sends data anyway).
|
|
410
|
+
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
const we = /* @__PURE__ */ Object.create(null), N = [
|
|
414
|
+
"https://api.simplesvg.com",
|
|
415
|
+
"https://api.unisvg.com"
|
|
416
|
+
], K = [];
|
|
417
|
+
for (; N.length > 0; )
|
|
418
|
+
N.length === 1 || Math.random() > 0.5 ? K.push(N.shift()) : K.push(N.pop());
|
|
419
|
+
we[""] = ye({
|
|
420
|
+
resources: ["https://api.iconify.design"].concat(K)
|
|
421
|
+
});
|
|
422
|
+
function Gt(e, n) {
|
|
423
|
+
const t = ye(n);
|
|
424
|
+
return t === null ? !1 : (we[e] = t, !0);
|
|
425
|
+
}
|
|
426
|
+
function be(e) {
|
|
427
|
+
return we[e];
|
|
428
|
+
}
|
|
429
|
+
const Kt = () => {
|
|
430
|
+
let e;
|
|
431
|
+
try {
|
|
432
|
+
if (e = fetch, typeof e == "function")
|
|
433
|
+
return e;
|
|
434
|
+
} catch {
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
let Oe = Kt();
|
|
438
|
+
function Yt(e, n) {
|
|
439
|
+
const t = be(e);
|
|
440
|
+
if (!t)
|
|
441
|
+
return 0;
|
|
442
|
+
let o;
|
|
443
|
+
if (!t.maxURL)
|
|
444
|
+
o = 0;
|
|
445
|
+
else {
|
|
446
|
+
let i = 0;
|
|
447
|
+
t.resources.forEach((s) => {
|
|
448
|
+
i = Math.max(i, s.length);
|
|
449
|
+
});
|
|
450
|
+
const r = n + ".json?icons=";
|
|
451
|
+
o = t.maxURL - i - t.path.length - r.length;
|
|
452
|
+
}
|
|
453
|
+
return o;
|
|
454
|
+
}
|
|
455
|
+
function Jt(e) {
|
|
456
|
+
return e === 404;
|
|
457
|
+
}
|
|
458
|
+
const Xt = (e, n, t) => {
|
|
459
|
+
const o = [], i = Yt(e, n), r = "icons";
|
|
460
|
+
let s = {
|
|
461
|
+
type: r,
|
|
462
|
+
provider: e,
|
|
463
|
+
prefix: n,
|
|
464
|
+
icons: []
|
|
465
|
+
}, l = 0;
|
|
466
|
+
return t.forEach((c, u) => {
|
|
467
|
+
l += c.length + 1, l >= i && u > 0 && (o.push(s), s = {
|
|
468
|
+
type: r,
|
|
469
|
+
provider: e,
|
|
470
|
+
prefix: n,
|
|
471
|
+
icons: []
|
|
472
|
+
}, l = c.length), s.icons.push(c);
|
|
473
|
+
}), o.push(s), o;
|
|
474
|
+
};
|
|
475
|
+
function Zt(e) {
|
|
476
|
+
if (typeof e == "string") {
|
|
477
|
+
const n = be(e);
|
|
478
|
+
if (n)
|
|
479
|
+
return n.path;
|
|
480
|
+
}
|
|
481
|
+
return "/";
|
|
482
|
+
}
|
|
483
|
+
const _t = (e, n, t) => {
|
|
484
|
+
if (!Oe) {
|
|
485
|
+
t("abort", 424);
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
let o = Zt(n.provider);
|
|
489
|
+
switch (n.type) {
|
|
490
|
+
case "icons": {
|
|
491
|
+
const r = n.prefix, l = n.icons.join(","), c = new URLSearchParams({
|
|
492
|
+
icons: l
|
|
493
|
+
});
|
|
494
|
+
o += r + ".json?" + c.toString();
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
case "custom": {
|
|
498
|
+
const r = n.uri;
|
|
499
|
+
o += r.slice(0, 1) === "/" ? r.slice(1) : r;
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
default:
|
|
503
|
+
t("abort", 400);
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
let i = 503;
|
|
507
|
+
Oe(e + o).then((r) => {
|
|
508
|
+
const s = r.status;
|
|
509
|
+
if (s !== 200) {
|
|
510
|
+
setTimeout(() => {
|
|
511
|
+
t(Jt(s) ? "abort" : "next", s);
|
|
512
|
+
});
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
return i = 501, r.json();
|
|
516
|
+
}).then((r) => {
|
|
517
|
+
if (typeof r != "object" || r === null) {
|
|
518
|
+
setTimeout(() => {
|
|
519
|
+
r === 404 ? t("abort", r) : t("next", i);
|
|
520
|
+
});
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
setTimeout(() => {
|
|
524
|
+
t("success", r);
|
|
525
|
+
});
|
|
526
|
+
}).catch(() => {
|
|
527
|
+
t("next", i);
|
|
528
|
+
});
|
|
529
|
+
}, en = {
|
|
530
|
+
prepare: Xt,
|
|
531
|
+
send: _t
|
|
532
|
+
};
|
|
533
|
+
function tn(e) {
|
|
534
|
+
const n = {
|
|
535
|
+
loaded: [],
|
|
536
|
+
missing: [],
|
|
537
|
+
pending: []
|
|
538
|
+
}, t = /* @__PURE__ */ Object.create(null);
|
|
539
|
+
e.sort((i, r) => i.provider !== r.provider ? i.provider.localeCompare(r.provider) : i.prefix !== r.prefix ? i.prefix.localeCompare(r.prefix) : i.name.localeCompare(r.name));
|
|
540
|
+
let o = {
|
|
541
|
+
provider: "",
|
|
542
|
+
prefix: "",
|
|
543
|
+
name: ""
|
|
544
|
+
};
|
|
545
|
+
return e.forEach((i) => {
|
|
546
|
+
if (o.name === i.name && o.prefix === i.prefix && o.provider === i.provider)
|
|
547
|
+
return;
|
|
548
|
+
o = i;
|
|
549
|
+
const r = i.provider, s = i.prefix, l = i.name, c = t[r] || (t[r] = /* @__PURE__ */ Object.create(null)), u = c[s] || (c[s] = B(r, s));
|
|
550
|
+
let h;
|
|
551
|
+
l in u.icons ? h = n.loaded : s === "" || u.missing.has(l) ? h = n.missing : h = n.pending;
|
|
552
|
+
const f = {
|
|
553
|
+
provider: r,
|
|
554
|
+
prefix: s,
|
|
555
|
+
name: l
|
|
556
|
+
};
|
|
557
|
+
h.push(f);
|
|
558
|
+
}), n;
|
|
559
|
+
}
|
|
560
|
+
function nt(e, n) {
|
|
561
|
+
e.forEach((t) => {
|
|
562
|
+
const o = t.loaderCallbacks;
|
|
563
|
+
o && (t.loaderCallbacks = o.filter((i) => i.id !== n));
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
function nn(e) {
|
|
567
|
+
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
568
|
+
e.pendingCallbacksFlag = !1;
|
|
569
|
+
const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
570
|
+
if (!n.length)
|
|
571
|
+
return;
|
|
572
|
+
let t = !1;
|
|
573
|
+
const o = e.provider, i = e.prefix;
|
|
574
|
+
n.forEach((r) => {
|
|
575
|
+
const s = r.icons, l = s.pending.length;
|
|
576
|
+
s.pending = s.pending.filter((c) => {
|
|
577
|
+
if (c.prefix !== i)
|
|
578
|
+
return !0;
|
|
579
|
+
const u = c.name;
|
|
580
|
+
if (e.icons[u])
|
|
581
|
+
s.loaded.push({
|
|
582
|
+
provider: o,
|
|
583
|
+
prefix: i,
|
|
584
|
+
name: u
|
|
585
|
+
});
|
|
586
|
+
else if (e.missing.has(u))
|
|
587
|
+
s.missing.push({
|
|
588
|
+
provider: o,
|
|
589
|
+
prefix: i,
|
|
590
|
+
name: u
|
|
591
|
+
});
|
|
592
|
+
else
|
|
593
|
+
return t = !0, !0;
|
|
594
|
+
return !1;
|
|
595
|
+
}), s.pending.length !== l && (t || nt([e], r.id), r.callback(
|
|
596
|
+
s.loaded.slice(0),
|
|
597
|
+
s.missing.slice(0),
|
|
598
|
+
s.pending.slice(0),
|
|
599
|
+
r.abort
|
|
600
|
+
));
|
|
601
|
+
});
|
|
602
|
+
}));
|
|
603
|
+
}
|
|
604
|
+
let on = 0;
|
|
605
|
+
function rn(e, n, t) {
|
|
606
|
+
const o = on++, i = nt.bind(null, t, o);
|
|
607
|
+
if (!n.pending.length)
|
|
608
|
+
return i;
|
|
609
|
+
const r = {
|
|
610
|
+
id: o,
|
|
611
|
+
icons: n,
|
|
612
|
+
callback: e,
|
|
613
|
+
abort: i
|
|
614
|
+
};
|
|
615
|
+
return t.forEach((s) => {
|
|
616
|
+
(s.loaderCallbacks || (s.loaderCallbacks = [])).push(r);
|
|
617
|
+
}), i;
|
|
618
|
+
}
|
|
619
|
+
function sn(e, n = !0, t = !1) {
|
|
620
|
+
const o = [];
|
|
621
|
+
return e.forEach((i) => {
|
|
622
|
+
const r = typeof i == "string" ? Z(i, n, t) : i;
|
|
623
|
+
r && o.push(r);
|
|
624
|
+
}), o;
|
|
625
|
+
}
|
|
626
|
+
var ln = {
|
|
627
|
+
resources: [],
|
|
628
|
+
index: 0,
|
|
629
|
+
timeout: 2e3,
|
|
630
|
+
rotate: 750,
|
|
631
|
+
random: !1,
|
|
632
|
+
dataAfterTimeout: !1
|
|
633
|
+
};
|
|
634
|
+
function cn(e, n, t, o) {
|
|
635
|
+
const i = e.resources.length, r = e.random ? Math.floor(Math.random() * i) : e.index;
|
|
636
|
+
let s;
|
|
637
|
+
if (e.random) {
|
|
638
|
+
let v = e.resources.slice(0);
|
|
639
|
+
for (s = []; v.length > 1; ) {
|
|
640
|
+
const k = Math.floor(Math.random() * v.length);
|
|
641
|
+
s.push(v[k]), v = v.slice(0, k).concat(v.slice(k + 1));
|
|
642
|
+
}
|
|
643
|
+
s = s.concat(v);
|
|
644
|
+
} else
|
|
645
|
+
s = e.resources.slice(r).concat(e.resources.slice(0, r));
|
|
646
|
+
const l = Date.now();
|
|
647
|
+
let c = "pending", u = 0, h, f = null, a = [], p = [];
|
|
648
|
+
typeof o == "function" && p.push(o);
|
|
649
|
+
function y() {
|
|
650
|
+
f && (clearTimeout(f), f = null);
|
|
651
|
+
}
|
|
652
|
+
function g() {
|
|
653
|
+
c === "pending" && (c = "aborted"), y(), a.forEach((v) => {
|
|
654
|
+
v.status === "pending" && (v.status = "aborted");
|
|
655
|
+
}), a = [];
|
|
656
|
+
}
|
|
657
|
+
function d(v, k) {
|
|
658
|
+
k && (p = []), typeof v == "function" && p.push(v);
|
|
659
|
+
}
|
|
660
|
+
function w() {
|
|
661
|
+
return {
|
|
662
|
+
startTime: l,
|
|
663
|
+
payload: n,
|
|
664
|
+
status: c,
|
|
665
|
+
queriesSent: u,
|
|
666
|
+
queriesPending: a.length,
|
|
667
|
+
subscribe: d,
|
|
668
|
+
abort: g
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
function S() {
|
|
672
|
+
c = "failed", p.forEach((v) => {
|
|
673
|
+
v(void 0, h);
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
function m() {
|
|
677
|
+
a.forEach((v) => {
|
|
678
|
+
v.status === "pending" && (v.status = "aborted");
|
|
679
|
+
}), a = [];
|
|
680
|
+
}
|
|
681
|
+
function b(v, k, $) {
|
|
682
|
+
const H = k !== "success";
|
|
683
|
+
switch (a = a.filter((O) => O !== v), c) {
|
|
684
|
+
case "pending":
|
|
685
|
+
break;
|
|
686
|
+
case "failed":
|
|
687
|
+
if (H || !e.dataAfterTimeout)
|
|
688
|
+
return;
|
|
689
|
+
break;
|
|
690
|
+
default:
|
|
691
|
+
return;
|
|
692
|
+
}
|
|
693
|
+
if (k === "abort") {
|
|
694
|
+
h = $, S();
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
if (H) {
|
|
698
|
+
h = $, a.length || (s.length ? C() : S());
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
if (y(), m(), !e.random) {
|
|
702
|
+
const O = e.resources.indexOf(v.resource);
|
|
703
|
+
O !== -1 && O !== e.index && (e.index = O);
|
|
704
|
+
}
|
|
705
|
+
c = "completed", p.forEach((O) => {
|
|
706
|
+
O($);
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
function C() {
|
|
710
|
+
if (c !== "pending")
|
|
711
|
+
return;
|
|
712
|
+
y();
|
|
713
|
+
const v = s.shift();
|
|
714
|
+
if (v === void 0) {
|
|
715
|
+
if (a.length) {
|
|
716
|
+
f = setTimeout(() => {
|
|
717
|
+
y(), c === "pending" && (m(), S());
|
|
718
|
+
}, e.timeout);
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
S();
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
const k = {
|
|
725
|
+
status: "pending",
|
|
726
|
+
resource: v,
|
|
727
|
+
callback: ($, H) => {
|
|
728
|
+
b(k, $, H);
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
a.push(k), u++, f = setTimeout(C, e.rotate), t(v, n, k.callback);
|
|
732
|
+
}
|
|
733
|
+
return setTimeout(C), w;
|
|
734
|
+
}
|
|
735
|
+
function ot(e) {
|
|
736
|
+
const n = {
|
|
737
|
+
...ln,
|
|
738
|
+
...e
|
|
739
|
+
};
|
|
740
|
+
let t = [];
|
|
741
|
+
function o() {
|
|
742
|
+
t = t.filter((l) => l().status === "pending");
|
|
743
|
+
}
|
|
744
|
+
function i(l, c, u) {
|
|
745
|
+
const h = cn(
|
|
746
|
+
n,
|
|
747
|
+
l,
|
|
748
|
+
c,
|
|
749
|
+
(f, a) => {
|
|
750
|
+
o(), u && u(f, a);
|
|
751
|
+
}
|
|
752
|
+
);
|
|
753
|
+
return t.push(h), h;
|
|
754
|
+
}
|
|
755
|
+
function r(l) {
|
|
756
|
+
return t.find((c) => l(c)) || null;
|
|
757
|
+
}
|
|
758
|
+
return {
|
|
759
|
+
query: i,
|
|
760
|
+
find: r,
|
|
761
|
+
setIndex: (l) => {
|
|
762
|
+
n.index = l;
|
|
763
|
+
},
|
|
764
|
+
getIndex: () => n.index,
|
|
765
|
+
cleanup: o
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
function je() {
|
|
769
|
+
}
|
|
770
|
+
const ne = /* @__PURE__ */ Object.create(null);
|
|
771
|
+
function an(e) {
|
|
772
|
+
if (!ne[e]) {
|
|
773
|
+
const n = be(e);
|
|
774
|
+
if (!n)
|
|
775
|
+
return;
|
|
776
|
+
const t = ot(n), o = {
|
|
777
|
+
config: n,
|
|
778
|
+
redundancy: t
|
|
779
|
+
};
|
|
780
|
+
ne[e] = o;
|
|
781
|
+
}
|
|
782
|
+
return ne[e];
|
|
783
|
+
}
|
|
784
|
+
function un(e, n, t) {
|
|
785
|
+
let o, i;
|
|
786
|
+
if (typeof e == "string") {
|
|
787
|
+
const r = ce(e);
|
|
788
|
+
if (!r)
|
|
789
|
+
return t(void 0, 424), je;
|
|
790
|
+
i = r.send;
|
|
791
|
+
const s = an(e);
|
|
792
|
+
s && (o = s.redundancy);
|
|
793
|
+
} else {
|
|
794
|
+
const r = ye(e);
|
|
795
|
+
if (r) {
|
|
796
|
+
o = ot(r);
|
|
797
|
+
const s = e.resources ? e.resources[0] : "", l = ce(s);
|
|
798
|
+
l && (i = l.send);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
return !o || !i ? (t(void 0, 424), je) : o.query(n, i, t)().abort;
|
|
802
|
+
}
|
|
803
|
+
const Be = "iconify2", U = "iconify", it = U + "-count", ze = U + "-version", rt = 36e5, fn = 168, dn = 50;
|
|
804
|
+
function ae(e, n) {
|
|
805
|
+
try {
|
|
806
|
+
return e.getItem(n);
|
|
807
|
+
} catch {
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
function ke(e, n, t) {
|
|
811
|
+
try {
|
|
812
|
+
return e.setItem(n, t), !0;
|
|
813
|
+
} catch {
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
function Le(e, n) {
|
|
817
|
+
try {
|
|
818
|
+
e.removeItem(n);
|
|
819
|
+
} catch {
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
function ue(e, n) {
|
|
823
|
+
return ke(e, it, n.toString());
|
|
824
|
+
}
|
|
825
|
+
function fe(e) {
|
|
826
|
+
return parseInt(ae(e, it)) || 0;
|
|
827
|
+
}
|
|
828
|
+
const ee = {
|
|
829
|
+
local: !0,
|
|
830
|
+
session: !0
|
|
831
|
+
}, st = {
|
|
832
|
+
local: /* @__PURE__ */ new Set(),
|
|
833
|
+
session: /* @__PURE__ */ new Set()
|
|
834
|
+
};
|
|
835
|
+
let xe = !1;
|
|
836
|
+
function hn(e) {
|
|
837
|
+
xe = e;
|
|
838
|
+
}
|
|
839
|
+
let Q = typeof window > "u" ? {} : window;
|
|
840
|
+
function lt(e) {
|
|
841
|
+
const n = e + "Storage";
|
|
842
|
+
try {
|
|
843
|
+
if (Q && Q[n] && typeof Q[n].length == "number")
|
|
844
|
+
return Q[n];
|
|
845
|
+
} catch {
|
|
846
|
+
}
|
|
847
|
+
ee[e] = !1;
|
|
848
|
+
}
|
|
849
|
+
function ct(e, n) {
|
|
850
|
+
const t = lt(e);
|
|
851
|
+
if (!t)
|
|
852
|
+
return;
|
|
853
|
+
const o = ae(t, ze);
|
|
854
|
+
if (o !== Be) {
|
|
855
|
+
if (o) {
|
|
856
|
+
const l = fe(t);
|
|
857
|
+
for (let c = 0; c < l; c++)
|
|
858
|
+
Le(t, U + c.toString());
|
|
859
|
+
}
|
|
860
|
+
ke(t, ze, Be), ue(t, 0);
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
const i = Math.floor(Date.now() / rt) - fn, r = (l) => {
|
|
864
|
+
const c = U + l.toString(), u = ae(t, c);
|
|
865
|
+
if (typeof u == "string") {
|
|
866
|
+
try {
|
|
867
|
+
const h = JSON.parse(u);
|
|
868
|
+
if (typeof h == "object" && typeof h.cached == "number" && h.cached > i && typeof h.provider == "string" && typeof h.data == "object" && typeof h.data.prefix == "string" && // Valid item: run callback
|
|
869
|
+
n(h, l))
|
|
870
|
+
return !0;
|
|
871
|
+
} catch {
|
|
872
|
+
}
|
|
873
|
+
Le(t, c);
|
|
874
|
+
}
|
|
875
|
+
};
|
|
876
|
+
let s = fe(t);
|
|
877
|
+
for (let l = s - 1; l >= 0; l--)
|
|
878
|
+
r(l) || (l === s - 1 ? (s--, ue(t, s)) : st[e].add(l));
|
|
879
|
+
}
|
|
880
|
+
function at() {
|
|
881
|
+
if (!xe) {
|
|
882
|
+
hn(!0);
|
|
883
|
+
for (const e in ee)
|
|
884
|
+
ct(e, (n) => {
|
|
885
|
+
const t = n.data, o = n.provider, i = t.prefix, r = B(
|
|
886
|
+
o,
|
|
887
|
+
i
|
|
888
|
+
);
|
|
889
|
+
if (!ve(r, t).length)
|
|
890
|
+
return !1;
|
|
891
|
+
const s = t.lastModified || -1;
|
|
892
|
+
return r.lastModifiedCached = r.lastModifiedCached ? Math.min(r.lastModifiedCached, s) : s, !0;
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
function pn(e, n) {
|
|
897
|
+
const t = e.lastModifiedCached;
|
|
898
|
+
if (
|
|
899
|
+
// Matches or newer
|
|
900
|
+
t && t >= n
|
|
901
|
+
)
|
|
902
|
+
return t === n;
|
|
903
|
+
if (e.lastModifiedCached = n, t)
|
|
904
|
+
for (const o in ee)
|
|
905
|
+
ct(o, (i) => {
|
|
906
|
+
const r = i.data;
|
|
907
|
+
return i.provider !== e.provider || r.prefix !== e.prefix || r.lastModified === n;
|
|
908
|
+
});
|
|
909
|
+
return !0;
|
|
910
|
+
}
|
|
911
|
+
function gn(e, n) {
|
|
912
|
+
xe || at();
|
|
913
|
+
function t(o) {
|
|
914
|
+
let i;
|
|
915
|
+
if (!ee[o] || !(i = lt(o)))
|
|
916
|
+
return;
|
|
917
|
+
const r = st[o];
|
|
918
|
+
let s;
|
|
919
|
+
if (r.size)
|
|
920
|
+
r.delete(s = Array.from(r).shift());
|
|
921
|
+
else if (s = fe(i), s >= dn || !ue(i, s + 1))
|
|
922
|
+
return;
|
|
923
|
+
const l = {
|
|
924
|
+
cached: Math.floor(Date.now() / rt),
|
|
925
|
+
provider: e.provider,
|
|
926
|
+
data: n
|
|
927
|
+
};
|
|
928
|
+
return ke(
|
|
929
|
+
i,
|
|
930
|
+
U + s.toString(),
|
|
931
|
+
JSON.stringify(l)
|
|
932
|
+
);
|
|
933
|
+
}
|
|
934
|
+
n.lastModified && !pn(e, n.lastModified) || Object.keys(n.icons).length && (n.not_found && (n = Object.assign({}, n), delete n.not_found), t("local") || t("session"));
|
|
935
|
+
}
|
|
936
|
+
function Ae() {
|
|
937
|
+
}
|
|
938
|
+
function mn(e) {
|
|
939
|
+
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
940
|
+
e.iconsLoaderFlag = !1, nn(e);
|
|
941
|
+
}));
|
|
942
|
+
}
|
|
943
|
+
function vn(e) {
|
|
944
|
+
const n = [], t = [];
|
|
945
|
+
return e.forEach((o) => {
|
|
946
|
+
(o.match(Ye) ? n : t).push(o);
|
|
947
|
+
}), {
|
|
948
|
+
valid: n,
|
|
949
|
+
invalid: t
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
function R(e, n, t, o) {
|
|
953
|
+
function i() {
|
|
954
|
+
const r = e.pendingIcons;
|
|
955
|
+
n.forEach((s) => {
|
|
956
|
+
r && r.delete(s), e.icons[s] || e.missing.add(s);
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
if (t && typeof t == "object")
|
|
960
|
+
try {
|
|
961
|
+
if (!ve(e, t).length) {
|
|
962
|
+
i();
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
o && gn(e, t);
|
|
966
|
+
} catch (r) {
|
|
967
|
+
console.error(r);
|
|
968
|
+
}
|
|
969
|
+
i(), mn(e);
|
|
970
|
+
}
|
|
971
|
+
function Fe(e, n) {
|
|
972
|
+
e instanceof Promise ? e.then((t) => {
|
|
973
|
+
n(t);
|
|
974
|
+
}).catch(() => {
|
|
975
|
+
n(null);
|
|
976
|
+
}) : n(e);
|
|
977
|
+
}
|
|
978
|
+
function yn(e, n) {
|
|
979
|
+
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
980
|
+
e.iconsQueueFlag = !1;
|
|
981
|
+
const { provider: t, prefix: o } = e, i = e.iconsToLoad;
|
|
982
|
+
if (delete e.iconsToLoad, !i || !i.length)
|
|
983
|
+
return;
|
|
984
|
+
const r = e.loadIcon;
|
|
985
|
+
if (e.loadIcons && (i.length > 1 || !r)) {
|
|
986
|
+
Fe(
|
|
987
|
+
e.loadIcons(i, o, t),
|
|
988
|
+
(h) => {
|
|
989
|
+
R(e, i, h, !1);
|
|
990
|
+
}
|
|
991
|
+
);
|
|
992
|
+
return;
|
|
993
|
+
}
|
|
994
|
+
if (r) {
|
|
995
|
+
i.forEach((h) => {
|
|
996
|
+
const f = r(h, o, t);
|
|
997
|
+
Fe(f, (a) => {
|
|
998
|
+
const p = a ? {
|
|
999
|
+
prefix: o,
|
|
1000
|
+
icons: {
|
|
1001
|
+
[h]: a
|
|
1002
|
+
}
|
|
1003
|
+
} : null;
|
|
1004
|
+
R(e, [h], p, !1);
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
const { valid: s, invalid: l } = vn(i);
|
|
1010
|
+
if (l.length && R(e, l, null, !1), !s.length)
|
|
1011
|
+
return;
|
|
1012
|
+
const c = o.match(Ye) ? ce(t) : null;
|
|
1013
|
+
if (!c) {
|
|
1014
|
+
R(e, s, null, !1);
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
c.prepare(t, o, s).forEach((h) => {
|
|
1018
|
+
un(t, h, (f) => {
|
|
1019
|
+
R(e, h.icons, f, !0);
|
|
1020
|
+
});
|
|
1021
|
+
});
|
|
1022
|
+
}));
|
|
1023
|
+
}
|
|
1024
|
+
const wn = (e, n) => {
|
|
1025
|
+
const t = sn(e, !0, _e()), o = tn(t);
|
|
1026
|
+
if (!o.pending.length) {
|
|
1027
|
+
let c = !0;
|
|
1028
|
+
return n && setTimeout(() => {
|
|
1029
|
+
c && n(
|
|
1030
|
+
o.loaded,
|
|
1031
|
+
o.missing,
|
|
1032
|
+
o.pending,
|
|
1033
|
+
Ae
|
|
1034
|
+
);
|
|
1035
|
+
}), () => {
|
|
1036
|
+
c = !1;
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
const i = /* @__PURE__ */ Object.create(null), r = [];
|
|
1040
|
+
let s, l;
|
|
1041
|
+
return o.pending.forEach((c) => {
|
|
1042
|
+
const { provider: u, prefix: h } = c;
|
|
1043
|
+
if (h === l && u === s)
|
|
1044
|
+
return;
|
|
1045
|
+
s = u, l = h, r.push(B(u, h));
|
|
1046
|
+
const f = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
|
|
1047
|
+
f[h] || (f[h] = []);
|
|
1048
|
+
}), o.pending.forEach((c) => {
|
|
1049
|
+
const { provider: u, prefix: h, name: f } = c, a = B(u, h), p = a.pendingIcons || (a.pendingIcons = /* @__PURE__ */ new Set());
|
|
1050
|
+
p.has(f) || (p.add(f), i[u][h].push(f));
|
|
1051
|
+
}), r.forEach((c) => {
|
|
1052
|
+
const u = i[c.provider][c.prefix];
|
|
1053
|
+
u.length && yn(c, u);
|
|
1054
|
+
}), n ? rn(n, o, r) : Ae;
|
|
1055
|
+
};
|
|
1056
|
+
function bn(e, n) {
|
|
1057
|
+
const t = {
|
|
1058
|
+
...e
|
|
1059
|
+
};
|
|
1060
|
+
for (const o in n) {
|
|
1061
|
+
const i = n[o], r = typeof i;
|
|
1062
|
+
o in et ? (i === null || i && (r === "string" || r === "number")) && (t[o] = i) : r === typeof t[o] && (t[o] = o === "rotate" ? i % 4 : i);
|
|
1063
|
+
}
|
|
1064
|
+
return t;
|
|
1065
|
+
}
|
|
1066
|
+
const kn = /[\s,]+/;
|
|
1067
|
+
function xn(e, n) {
|
|
1068
|
+
n.split(kn).forEach((t) => {
|
|
1069
|
+
switch (t.trim()) {
|
|
1070
|
+
case "horizontal":
|
|
1071
|
+
e.hFlip = !0;
|
|
1072
|
+
break;
|
|
1073
|
+
case "vertical":
|
|
1074
|
+
e.vFlip = !0;
|
|
1075
|
+
break;
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
1079
|
+
function In(e, n = 0) {
|
|
1080
|
+
const t = e.replace(/^-?[0-9.]*/, "");
|
|
1081
|
+
function o(i) {
|
|
1082
|
+
for (; i < 0; )
|
|
1083
|
+
i += 4;
|
|
1084
|
+
return i % 4;
|
|
1085
|
+
}
|
|
1086
|
+
if (t === "") {
|
|
1087
|
+
const i = parseInt(e);
|
|
1088
|
+
return isNaN(i) ? 0 : o(i);
|
|
1089
|
+
} else if (t !== e) {
|
|
1090
|
+
let i = 0;
|
|
1091
|
+
switch (t) {
|
|
1092
|
+
case "%":
|
|
1093
|
+
i = 25;
|
|
1094
|
+
break;
|
|
1095
|
+
case "deg":
|
|
1096
|
+
i = 90;
|
|
1097
|
+
}
|
|
1098
|
+
if (i) {
|
|
1099
|
+
let r = parseFloat(e.slice(0, e.length - t.length));
|
|
1100
|
+
return isNaN(r) ? 0 : (r = r / i, r % 1 === 0 ? o(r) : 0);
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
return n;
|
|
1104
|
+
}
|
|
1105
|
+
function Sn(e, n) {
|
|
1106
|
+
let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1107
|
+
for (const o in n)
|
|
1108
|
+
t += " " + o + '="' + n[o] + '"';
|
|
1109
|
+
return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
|
|
1110
|
+
}
|
|
1111
|
+
function Cn(e) {
|
|
1112
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1113
|
+
}
|
|
1114
|
+
function Tn(e) {
|
|
1115
|
+
return "data:image/svg+xml," + Cn(e);
|
|
1116
|
+
}
|
|
1117
|
+
function Pn(e) {
|
|
1118
|
+
return 'url("' + Tn(e) + '")';
|
|
1119
|
+
}
|
|
1120
|
+
const $e = {
|
|
1121
|
+
...tt,
|
|
1122
|
+
inline: !1
|
|
1123
|
+
}, Mn = {
|
|
1124
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1125
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1126
|
+
"aria-hidden": !0,
|
|
1127
|
+
role: "img"
|
|
1128
|
+
}, En = {
|
|
1129
|
+
display: "inline-block"
|
|
1130
|
+
}, de = {
|
|
1131
|
+
backgroundColor: "currentColor"
|
|
1132
|
+
}, ut = {
|
|
1133
|
+
backgroundColor: "transparent"
|
|
1134
|
+
}, De = {
|
|
1135
|
+
Image: "var(--svg)",
|
|
1136
|
+
Repeat: "no-repeat",
|
|
1137
|
+
Size: "100% 100%"
|
|
1138
|
+
}, Ne = {
|
|
1139
|
+
webkitMask: de,
|
|
1140
|
+
mask: de,
|
|
1141
|
+
background: ut
|
|
1142
|
+
};
|
|
1143
|
+
for (const e in Ne) {
|
|
1144
|
+
const n = Ne[e];
|
|
1145
|
+
for (const t in De)
|
|
1146
|
+
n[e + t] = De[t];
|
|
1147
|
+
}
|
|
1148
|
+
const Y = {};
|
|
1149
|
+
["horizontal", "vertical"].forEach((e) => {
|
|
1150
|
+
const n = e.slice(0, 1) + "Flip";
|
|
1151
|
+
Y[e + "-flip"] = n, Y[e.slice(0, 1) + "-flip"] = n, Y[e + "Flip"] = n;
|
|
1152
|
+
});
|
|
1153
|
+
function Re(e) {
|
|
1154
|
+
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1155
|
+
}
|
|
1156
|
+
const Ve = (e, n) => {
|
|
1157
|
+
const t = bn($e, n), o = { ...Mn }, i = n.mode || "svg", r = {}, s = n.style, l = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
1158
|
+
for (let g in n) {
|
|
1159
|
+
const d = n[g];
|
|
1160
|
+
if (d !== void 0)
|
|
1161
|
+
switch (g) {
|
|
1162
|
+
// Properties to ignore
|
|
1163
|
+
case "icon":
|
|
1164
|
+
case "style":
|
|
1165
|
+
case "onLoad":
|
|
1166
|
+
case "mode":
|
|
1167
|
+
case "ssr":
|
|
1168
|
+
break;
|
|
1169
|
+
// Boolean attributes
|
|
1170
|
+
case "inline":
|
|
1171
|
+
case "hFlip":
|
|
1172
|
+
case "vFlip":
|
|
1173
|
+
t[g] = d === !0 || d === "true" || d === 1;
|
|
1174
|
+
break;
|
|
1175
|
+
// Flip as string: 'horizontal,vertical'
|
|
1176
|
+
case "flip":
|
|
1177
|
+
typeof d == "string" && xn(t, d);
|
|
1178
|
+
break;
|
|
1179
|
+
// Color: override style
|
|
1180
|
+
case "color":
|
|
1181
|
+
r.color = d;
|
|
1182
|
+
break;
|
|
1183
|
+
// Rotation as string
|
|
1184
|
+
case "rotate":
|
|
1185
|
+
typeof d == "string" ? t[g] = In(d) : typeof d == "number" && (t[g] = d);
|
|
1186
|
+
break;
|
|
1187
|
+
// Remove aria-hidden
|
|
1188
|
+
case "ariaHidden":
|
|
1189
|
+
case "aria-hidden":
|
|
1190
|
+
d !== !0 && d !== "true" && delete o["aria-hidden"];
|
|
1191
|
+
break;
|
|
1192
|
+
default: {
|
|
1193
|
+
const w = Y[g];
|
|
1194
|
+
w ? (d === !0 || d === "true" || d === 1) && (t[w] = !0) : $e[g] === void 0 && (o[g] = d);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
const c = Vt(e, t), u = c.attributes;
|
|
1199
|
+
if (t.inline && (r.verticalAlign = "-0.125em"), i === "svg") {
|
|
1200
|
+
o.style = {
|
|
1201
|
+
...r,
|
|
1202
|
+
...l
|
|
1203
|
+
}, Object.assign(o, u);
|
|
1204
|
+
let g = 0, d = n.id;
|
|
1205
|
+
return typeof d == "string" && (d = d.replace(/-/g, "_")), o.innerHTML = Qt(c.body, d ? () => d + "ID" + g++ : "iconifyVue"), J("svg", o);
|
|
1206
|
+
}
|
|
1207
|
+
const { body: h, width: f, height: a } = e, p = i === "mask" || (i === "bg" ? !1 : h.indexOf("currentColor") !== -1), y = Sn(h, {
|
|
1208
|
+
...u,
|
|
1209
|
+
width: f + "",
|
|
1210
|
+
height: a + ""
|
|
1211
|
+
});
|
|
1212
|
+
return o.style = {
|
|
1213
|
+
...r,
|
|
1214
|
+
"--svg": Pn(y),
|
|
1215
|
+
width: Re(u.width),
|
|
1216
|
+
height: Re(u.height),
|
|
1217
|
+
...En,
|
|
1218
|
+
...p ? de : ut,
|
|
1219
|
+
...l
|
|
1220
|
+
}, J("span", o);
|
|
1221
|
+
};
|
|
1222
|
+
_e(!0);
|
|
1223
|
+
qt("", en);
|
|
1224
|
+
if (typeof document < "u" && typeof window < "u") {
|
|
1225
|
+
at();
|
|
1226
|
+
const e = window;
|
|
1227
|
+
if (e.IconifyPreload !== void 0) {
|
|
1228
|
+
const n = e.IconifyPreload, t = "Invalid IconifyPreload syntax.";
|
|
1229
|
+
typeof n == "object" && n !== null && (n instanceof Array ? n : [n]).forEach((o) => {
|
|
1230
|
+
try {
|
|
1231
|
+
// Check if item is an object and not null/array
|
|
1232
|
+
(typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
|
|
1233
|
+
typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
|
|
1234
|
+
!Lt(o)) && console.error(t);
|
|
1235
|
+
} catch {
|
|
1236
|
+
console.error(t);
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
if (e.IconifyProviders !== void 0) {
|
|
1241
|
+
const n = e.IconifyProviders;
|
|
1242
|
+
if (typeof n == "object" && n !== null)
|
|
1243
|
+
for (let t in n) {
|
|
1244
|
+
const o = "IconifyProviders[" + t + "] is invalid.";
|
|
1245
|
+
try {
|
|
1246
|
+
const i = n[t];
|
|
1247
|
+
if (typeof i != "object" || !i || i.resources === void 0)
|
|
1248
|
+
continue;
|
|
1249
|
+
Gt(t, i) || console.error(o);
|
|
1250
|
+
} catch {
|
|
1251
|
+
console.error(o);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
const On = {
|
|
1257
|
+
..._,
|
|
1258
|
+
body: ""
|
|
1259
|
+
}, Ue = A({
|
|
1260
|
+
// Do not inherit other attributes: it is handled by render()
|
|
1261
|
+
inheritAttrs: !1,
|
|
1262
|
+
// Set initial data
|
|
1263
|
+
data() {
|
|
1264
|
+
return {
|
|
1265
|
+
// Current icon name
|
|
1266
|
+
_name: "",
|
|
1267
|
+
// Loading
|
|
1268
|
+
_loadingIcon: null,
|
|
1269
|
+
// Mounted status
|
|
1270
|
+
iconMounted: !1,
|
|
1271
|
+
// Callback counter to trigger re-render
|
|
1272
|
+
counter: 0
|
|
1273
|
+
};
|
|
1274
|
+
},
|
|
1275
|
+
mounted() {
|
|
1276
|
+
this.iconMounted = !0;
|
|
1277
|
+
},
|
|
1278
|
+
unmounted() {
|
|
1279
|
+
this.abortLoading();
|
|
1280
|
+
},
|
|
1281
|
+
methods: {
|
|
1282
|
+
abortLoading() {
|
|
1283
|
+
this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
|
|
1284
|
+
},
|
|
1285
|
+
// Get data for icon to render or null
|
|
1286
|
+
getIcon(e, n, t) {
|
|
1287
|
+
if (typeof e == "object" && e !== null && typeof e.body == "string")
|
|
1288
|
+
return this._name = "", this.abortLoading(), {
|
|
1289
|
+
data: e
|
|
1290
|
+
};
|
|
1291
|
+
let o;
|
|
1292
|
+
if (typeof e != "string" || (o = Z(e, !1, !0)) === null)
|
|
1293
|
+
return this.abortLoading(), null;
|
|
1294
|
+
let i = Bt(o);
|
|
1295
|
+
if (!i)
|
|
1296
|
+
return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", i !== null && (this._loadingIcon = {
|
|
1297
|
+
name: e,
|
|
1298
|
+
abort: wn([o], () => {
|
|
1299
|
+
this.counter++;
|
|
1300
|
+
})
|
|
1301
|
+
})), null;
|
|
1302
|
+
if (this.abortLoading(), this._name !== e && (this._name = e, n && n(e)), t) {
|
|
1303
|
+
i = Object.assign({}, i);
|
|
1304
|
+
const s = t(i.body, o.name, o.prefix, o.provider);
|
|
1305
|
+
typeof s == "string" && (i.body = s);
|
|
1306
|
+
}
|
|
1307
|
+
const r = ["iconify"];
|
|
1308
|
+
return o.prefix !== "" && r.push("iconify--" + o.prefix), o.provider !== "" && r.push("iconify--" + o.provider), { data: i, classes: r };
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
// Render icon
|
|
1312
|
+
render() {
|
|
1313
|
+
this.counter;
|
|
1314
|
+
const e = this.$attrs, n = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
|
|
1315
|
+
if (!n)
|
|
1316
|
+
return Ve(On, e);
|
|
1317
|
+
let t = e;
|
|
1318
|
+
return n.classes && (t = {
|
|
1319
|
+
...e,
|
|
1320
|
+
class: (typeof e.class == "string" ? e.class + " " : "") + n.classes.join(" ")
|
|
1321
|
+
}), Ve({
|
|
1322
|
+
..._,
|
|
1323
|
+
...n.data
|
|
1324
|
+
}, t);
|
|
1325
|
+
}
|
|
1326
|
+
});
|
|
1327
|
+
function jn(e, n) {
|
|
1328
|
+
return vt() ? (yt(e, n), !0) : !1;
|
|
1329
|
+
}
|
|
1330
|
+
const ft = typeof window < "u" && typeof document < "u";
|
|
1331
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1332
|
+
const Bn = Object.prototype.toString, zn = (e) => Bn.call(e) === "[object Object]", he = () => {
|
|
1333
|
+
}, He = /* @__PURE__ */ Ln();
|
|
1334
|
+
function Ln() {
|
|
1335
|
+
var e, n, t;
|
|
1336
|
+
return ft && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window) === null || n === void 0 || (n = n.navigator) === null || n === void 0 ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test((t = window) === null || t === void 0 ? void 0 : t.navigator.userAgent));
|
|
1337
|
+
}
|
|
1338
|
+
function An(...e) {
|
|
1339
|
+
if (e.length !== 1) return pt(...e);
|
|
1340
|
+
const n = e[0];
|
|
1341
|
+
return typeof n == "function" ? gt(mt(() => ({
|
|
1342
|
+
get: n,
|
|
1343
|
+
set: he
|
|
1344
|
+
}))) : me(n);
|
|
1345
|
+
}
|
|
1346
|
+
function pe(e, n = !1, t = "Timeout") {
|
|
1347
|
+
return new Promise((o, i) => {
|
|
1348
|
+
setTimeout(n ? () => i(t) : o, e);
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
function oe(e) {
|
|
1352
|
+
return Array.isArray(e) ? e : [e];
|
|
1353
|
+
}
|
|
1354
|
+
function ge(e, n = !1) {
|
|
1355
|
+
function t(f, { flush: a = "sync", deep: p = !1, timeout: y, throwOnTimeout: g } = {}) {
|
|
1356
|
+
let d = null;
|
|
1357
|
+
const w = [new Promise((S) => {
|
|
1358
|
+
d = F(e, (m) => {
|
|
1359
|
+
f(m) !== n && (d ? d() : Ie(() => d == null ? void 0 : d()), S(m));
|
|
1360
|
+
}, {
|
|
1361
|
+
flush: a,
|
|
1362
|
+
deep: p,
|
|
1363
|
+
immediate: !0
|
|
1364
|
+
});
|
|
1365
|
+
})];
|
|
1366
|
+
return y != null && w.push(pe(y, g).then(() => I(e)).finally(() => d == null ? void 0 : d())), Promise.race(w);
|
|
1367
|
+
}
|
|
1368
|
+
function o(f, a) {
|
|
1369
|
+
if (!ht(f)) return t((m) => m === f, a);
|
|
1370
|
+
const { flush: p = "sync", deep: y = !1, timeout: g, throwOnTimeout: d } = a ?? {};
|
|
1371
|
+
let w = null;
|
|
1372
|
+
const S = [new Promise((m) => {
|
|
1373
|
+
w = F([e, f], ([b, C]) => {
|
|
1374
|
+
n !== (b === C) && (w ? w() : Ie(() => w == null ? void 0 : w()), m(b));
|
|
1375
|
+
}, {
|
|
1376
|
+
flush: p,
|
|
1377
|
+
deep: y,
|
|
1378
|
+
immediate: !0
|
|
1379
|
+
});
|
|
1380
|
+
})];
|
|
1381
|
+
return g != null && S.push(pe(g, d).then(() => I(e)).finally(() => (w == null || w(), I(e)))), Promise.race(S);
|
|
1382
|
+
}
|
|
1383
|
+
function i(f) {
|
|
1384
|
+
return t((a) => !!a, f);
|
|
1385
|
+
}
|
|
1386
|
+
function r(f) {
|
|
1387
|
+
return o(null, f);
|
|
1388
|
+
}
|
|
1389
|
+
function s(f) {
|
|
1390
|
+
return o(void 0, f);
|
|
1391
|
+
}
|
|
1392
|
+
function l(f) {
|
|
1393
|
+
return t(Number.isNaN, f);
|
|
1394
|
+
}
|
|
1395
|
+
function c(f, a) {
|
|
1396
|
+
return t((p) => {
|
|
1397
|
+
const y = Array.from(p);
|
|
1398
|
+
return y.includes(f) || y.includes(I(f));
|
|
1399
|
+
}, a);
|
|
1400
|
+
}
|
|
1401
|
+
function u(f) {
|
|
1402
|
+
return h(1, f);
|
|
1403
|
+
}
|
|
1404
|
+
function h(f = 1, a) {
|
|
1405
|
+
let p = -1;
|
|
1406
|
+
return t(() => (p += 1, p >= f), a);
|
|
1407
|
+
}
|
|
1408
|
+
return Array.isArray(I(e)) ? {
|
|
1409
|
+
toMatch: t,
|
|
1410
|
+
toContains: c,
|
|
1411
|
+
changed: u,
|
|
1412
|
+
changedTimes: h,
|
|
1413
|
+
get not() {
|
|
1414
|
+
return ge(e, !n);
|
|
1415
|
+
}
|
|
1416
|
+
} : {
|
|
1417
|
+
toMatch: t,
|
|
1418
|
+
toBe: o,
|
|
1419
|
+
toBeTruthy: i,
|
|
1420
|
+
toBeNull: r,
|
|
1421
|
+
toBeNaN: l,
|
|
1422
|
+
toBeUndefined: s,
|
|
1423
|
+
changed: u,
|
|
1424
|
+
changedTimes: h,
|
|
1425
|
+
get not() {
|
|
1426
|
+
return ge(e, !n);
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
1430
|
+
function Fn(e) {
|
|
1431
|
+
return ge(e);
|
|
1432
|
+
}
|
|
1433
|
+
function $n(e, n, t) {
|
|
1434
|
+
return F(e, n, {
|
|
1435
|
+
...t,
|
|
1436
|
+
immediate: !0
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
const Dn = ft ? window : void 0;
|
|
1440
|
+
function Nn(e) {
|
|
1441
|
+
var n;
|
|
1442
|
+
const t = I(e);
|
|
1443
|
+
return (n = t == null ? void 0 : t.$el) !== null && n !== void 0 ? n : t;
|
|
1444
|
+
}
|
|
1445
|
+
function Rn(...e) {
|
|
1446
|
+
const n = (o, i, r, s) => (o.addEventListener(i, r, s), () => o.removeEventListener(i, r, s)), t = j(() => {
|
|
1447
|
+
const o = oe(I(e[0])).filter((i) => i != null);
|
|
1448
|
+
return o.every((i) => typeof i != "string") ? o : void 0;
|
|
1449
|
+
});
|
|
1450
|
+
return $n(() => {
|
|
1451
|
+
var o, i;
|
|
1452
|
+
return [
|
|
1453
|
+
(o = (i = t.value) === null || i === void 0 ? void 0 : i.map((r) => Nn(r))) !== null && o !== void 0 ? o : [Dn].filter((r) => r != null),
|
|
1454
|
+
oe(I(t.value ? e[1] : e[0])),
|
|
1455
|
+
oe(E(t.value ? e[2] : e[1])),
|
|
1456
|
+
I(t.value ? e[3] : e[2])
|
|
1457
|
+
];
|
|
1458
|
+
}, ([o, i, r, s], l, c) => {
|
|
1459
|
+
if (!(o != null && o.length) || !(i != null && i.length) || !(r != null && r.length)) return;
|
|
1460
|
+
const u = zn(s) ? { ...s } : s, h = o.flatMap((f) => i.flatMap((a) => r.map((p) => n(f, a, p, u))));
|
|
1461
|
+
c(() => {
|
|
1462
|
+
h.forEach((f) => f());
|
|
1463
|
+
});
|
|
1464
|
+
}, { flush: "post" });
|
|
1465
|
+
}
|
|
1466
|
+
function Vn(e, n, t) {
|
|
1467
|
+
var o;
|
|
1468
|
+
const { immediate: i = !0, delay: r = 0, onError: s = (o = globalThis.reportError) !== null && o !== void 0 ? o : he, onSuccess: l = he, resetOnExecute: c = !0, shallow: u = !0, throwError: h } = t ?? {}, f = u ? L(n) : me(n), a = L(!1), p = L(!1), y = L(void 0);
|
|
1469
|
+
let g = 0;
|
|
1470
|
+
async function d(m = 0, ...b) {
|
|
1471
|
+
const C = g += 1;
|
|
1472
|
+
c && (f.value = I(n)), y.value = void 0, a.value = !1, p.value = !0, m > 0 && await pe(m);
|
|
1473
|
+
const v = typeof e == "function" ? e(...b) : e;
|
|
1474
|
+
try {
|
|
1475
|
+
const k = await v;
|
|
1476
|
+
return C === g && (f.value = k, a.value = !0), l(k), k;
|
|
1477
|
+
} catch (k) {
|
|
1478
|
+
if (C === g && (y.value = k), s(k), h) throw k;
|
|
1479
|
+
} finally {
|
|
1480
|
+
C === g && (p.value = !1);
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
i && d(r);
|
|
1484
|
+
const w = {
|
|
1485
|
+
state: f,
|
|
1486
|
+
isReady: a,
|
|
1487
|
+
isLoading: p,
|
|
1488
|
+
error: y,
|
|
1489
|
+
execute: d,
|
|
1490
|
+
executeImmediate: (...m) => d(0, ...m)
|
|
1491
|
+
};
|
|
1492
|
+
function S() {
|
|
1493
|
+
return new Promise((m, b) => {
|
|
1494
|
+
Fn(p).toBe(!1).then(() => m(w)).catch(b);
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
return {
|
|
1498
|
+
...w,
|
|
1499
|
+
then(m, b) {
|
|
1500
|
+
return S().then(m, b);
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1504
|
+
async function Un(e) {
|
|
1505
|
+
return new Promise((n, t) => {
|
|
1506
|
+
const o = new Image(), { src: i, srcset: r, sizes: s, class: l, loading: c, crossorigin: u, referrerPolicy: h, width: f, height: a, decoding: p, fetchPriority: y, ismap: g, usemap: d } = e;
|
|
1507
|
+
o.src = i, r != null && (o.srcset = r), s != null && (o.sizes = s), l != null && (o.className = l), c != null && (o.loading = c), u != null && (o.crossOrigin = u), h != null && (o.referrerPolicy = h), f != null && (o.width = f), a != null && (o.height = a), p != null && (o.decoding = p), y != null && (o.fetchPriority = y), g != null && (o.isMap = g), d != null && (o.useMap = d), o.onload = () => n(o), o.onerror = t;
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
function Hn(e, n = {}) {
|
|
1511
|
+
const t = Vn(() => Un(I(e)), void 0, {
|
|
1512
|
+
resetOnExecute: !0,
|
|
1513
|
+
...n
|
|
1514
|
+
});
|
|
1515
|
+
return F(() => I(e), () => t.execute(n.delay), { deep: !0 }), t;
|
|
1516
|
+
}
|
|
1517
|
+
function ie(e) {
|
|
1518
|
+
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
1519
|
+
}
|
|
1520
|
+
function dt(e) {
|
|
1521
|
+
const n = window.getComputedStyle(e);
|
|
1522
|
+
if (n.overflowX === "scroll" || n.overflowY === "scroll" || n.overflowX === "auto" && e.clientWidth < e.scrollWidth || n.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
1523
|
+
{
|
|
1524
|
+
const t = e.parentNode;
|
|
1525
|
+
return !t || t.tagName === "BODY" ? !1 : dt(t);
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
function Wn(e) {
|
|
1529
|
+
const n = e || window.event, t = n.target;
|
|
1530
|
+
return dt(t) ? !1 : n.touches.length > 1 ? !0 : (n.preventDefault && n.preventDefault(), !1);
|
|
1531
|
+
}
|
|
1532
|
+
const re = /* @__PURE__ */ new WeakMap();
|
|
1533
|
+
function Qn(e, n = !1) {
|
|
1534
|
+
const t = L(n);
|
|
1535
|
+
let o = null, i = "";
|
|
1536
|
+
F(An(e), (l) => {
|
|
1537
|
+
const c = ie(I(l));
|
|
1538
|
+
if (c) {
|
|
1539
|
+
const u = c;
|
|
1540
|
+
if (re.get(u) || re.set(u, u.style.overflow), u.style.overflow !== "hidden" && (i = u.style.overflow), u.style.overflow === "hidden") return t.value = !0;
|
|
1541
|
+
if (t.value) return u.style.overflow = "hidden";
|
|
1542
|
+
}
|
|
1543
|
+
}, { immediate: !0 });
|
|
1544
|
+
const r = () => {
|
|
1545
|
+
const l = ie(I(e));
|
|
1546
|
+
!l || t.value || (He && (o = Rn(l, "touchmove", (c) => {
|
|
1547
|
+
Wn(c);
|
|
1548
|
+
}, { passive: !1 })), l.style.overflow = "hidden", t.value = !0);
|
|
1549
|
+
}, s = () => {
|
|
1550
|
+
const l = ie(I(e));
|
|
1551
|
+
!l || !t.value || (He && (o == null || o()), l.style.overflow = i, re.delete(l), t.value = !1);
|
|
1552
|
+
};
|
|
1553
|
+
return jn(s), j({
|
|
1554
|
+
get() {
|
|
1555
|
+
return t.value;
|
|
1556
|
+
},
|
|
1557
|
+
set(l) {
|
|
1558
|
+
l ? r() : s();
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
const We = /* @__PURE__ */ A((e, { slots: n }) => {
|
|
1563
|
+
const t = wt(Hn(e));
|
|
1564
|
+
return () => t.isLoading && n.loading ? n.loading(t) : t.error && n.error ? n.error(t.error) : n.default ? n.default(t) : J(e.as || "img", e);
|
|
1565
|
+
}, {
|
|
1566
|
+
name: "UseImage",
|
|
1567
|
+
props: [
|
|
1568
|
+
"alt",
|
|
1569
|
+
"as",
|
|
1570
|
+
"class",
|
|
1571
|
+
"crossorigin",
|
|
1572
|
+
"decoding",
|
|
1573
|
+
"fetchPriority",
|
|
1574
|
+
"height",
|
|
1575
|
+
"ismap",
|
|
1576
|
+
"loading",
|
|
1577
|
+
"referrerPolicy",
|
|
1578
|
+
"sizes",
|
|
1579
|
+
"src",
|
|
1580
|
+
"srcset",
|
|
1581
|
+
"usemap",
|
|
1582
|
+
"width"
|
|
1583
|
+
]
|
|
1584
|
+
});
|
|
1585
|
+
function qn() {
|
|
1586
|
+
let e = !1;
|
|
1587
|
+
const n = L(!1);
|
|
1588
|
+
return (t, o) => {
|
|
1589
|
+
if (n.value = o.value, e) return;
|
|
1590
|
+
e = !0;
|
|
1591
|
+
const i = Qn(t, o.value);
|
|
1592
|
+
F(n, (r) => i.value = r);
|
|
1593
|
+
};
|
|
1594
|
+
}
|
|
1595
|
+
qn();
|
|
1596
|
+
const Gn = {
|
|
1597
|
+
key: 2,
|
|
1598
|
+
class: "shrink-0 size-inherit",
|
|
1599
|
+
"aria-hidden": "true"
|
|
1600
|
+
}, Kn = ["xlink:href"], Yn = ["xlink:href"], Jn = ["size"], Xn = ["xlink:href"], Zn = ["xlink:href"], _n = /* @__PURE__ */ A({
|
|
1601
|
+
name: "IkSvgIcon",
|
|
1602
|
+
__name: "index",
|
|
1603
|
+
props: {
|
|
1604
|
+
name: {},
|
|
1605
|
+
class: {},
|
|
1606
|
+
showBg: { type: Boolean, default: !1 },
|
|
1607
|
+
disabled: { type: Boolean, default: !1 },
|
|
1608
|
+
size: {},
|
|
1609
|
+
active: { type: Boolean, default: !1 },
|
|
1610
|
+
unMargin: { type: Boolean, default: !1 },
|
|
1611
|
+
title: { default: null },
|
|
1612
|
+
type: { default: "default" },
|
|
1613
|
+
colorMode: { default: "auto" },
|
|
1614
|
+
deepColor: {},
|
|
1615
|
+
shallowColor: {},
|
|
1616
|
+
onClick: {},
|
|
1617
|
+
danger: { type: Boolean, default: !1 },
|
|
1618
|
+
error: { type: Boolean, default: !1 },
|
|
1619
|
+
hover: { type: Boolean, default: !1 }
|
|
1620
|
+
},
|
|
1621
|
+
emits: ["click"],
|
|
1622
|
+
setup(e, { emit: n }) {
|
|
1623
|
+
const t = e, o = n, i = j(() => t.danger ? "danger" : t.error ? "error" : t.type), r = j(() => {
|
|
1624
|
+
if (!t.name)
|
|
1625
|
+
return;
|
|
1626
|
+
const a = (p) => /^\.{1,2}\//.test(p) || p.startsWith("/") || p.includes("/");
|
|
1627
|
+
return /^https?:\/\//.test(t.name) || a(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
|
|
1628
|
+
}), s = {
|
|
1629
|
+
big: 24,
|
|
1630
|
+
default: 22,
|
|
1631
|
+
small: 20
|
|
1632
|
+
};
|
|
1633
|
+
function l() {
|
|
1634
|
+
return t.size ? s[t.size] || t.size : 18;
|
|
1635
|
+
}
|
|
1636
|
+
const c = j(() => {
|
|
1637
|
+
const a = l(), p = typeof a == "number" ? `${a}px` : a;
|
|
1638
|
+
return {
|
|
1639
|
+
width: p,
|
|
1640
|
+
height: p,
|
|
1641
|
+
fontSize: p
|
|
1642
|
+
};
|
|
1643
|
+
}), u = j(() => {
|
|
1644
|
+
const p = `${Number.parseInt(l()) + 8}px`;
|
|
1645
|
+
return {
|
|
1646
|
+
width: p,
|
|
1647
|
+
height: p
|
|
1648
|
+
};
|
|
1649
|
+
});
|
|
1650
|
+
function h(a) {
|
|
1651
|
+
t.onClick ? t.onClick(a) : o("click", a);
|
|
1652
|
+
}
|
|
1653
|
+
const f = j(() => {
|
|
1654
|
+
if (r.value !== "two-color-svg")
|
|
1655
|
+
return {};
|
|
1656
|
+
const a = {};
|
|
1657
|
+
if (t.disabled)
|
|
1658
|
+
return a["--ik-icon-deep-color"] = "var(--ik-icon-deep-disabled)", a["--ik-icon-shallow-color"] = "var(--ik-icon-shallow-disabled)", a;
|
|
1659
|
+
if (t.deepColor && (a["--ik-icon-deep-color"] = t.deepColor), t.shallowColor && (a["--ik-icon-shallow-color"] = t.shallowColor), t.colorMode !== "auto")
|
|
1660
|
+
switch (t.colorMode) {
|
|
1661
|
+
case "primary":
|
|
1662
|
+
t.deepColor || (a["--ik-icon-deep-color"] = "var(--ik-color-primary)"), t.shallowColor || (a["--ik-icon-shallow-color"] = "var(--ik-primary-light-1, color-mix(in srgb, var(--ik-color-primary) 30%, white))");
|
|
1663
|
+
break;
|
|
1664
|
+
case "deep":
|
|
1665
|
+
t.shallowColor || (a["--ik-icon-shallow-color"] = a["--ik-icon-deep-color"] || t.deepColor || "var(--ik-icon-deep-color)");
|
|
1666
|
+
break;
|
|
1667
|
+
case "shallow":
|
|
1668
|
+
t.deepColor || (a["--ik-icon-deep-color"] = a["--ik-icon-shallow-color"] || t.shallowColor || "var(--ik-icon-shallow-color)");
|
|
1669
|
+
break;
|
|
1670
|
+
}
|
|
1671
|
+
return t.active && i.value !== "default" && !t.deepColor && !t.shallowColor && t.colorMode === "auto" && (a["--ik-icon-deep-color"] = `var(--ik-icon-${i.value}-deep-active)`, a["--ik-icon-shallow-color"] = `var(--ik-icon-${i.value}-shallow-active)`), a;
|
|
1672
|
+
});
|
|
1673
|
+
return (a, p) => {
|
|
1674
|
+
var g;
|
|
1675
|
+
const y = Qe("IkTooltip");
|
|
1676
|
+
return x(), T(
|
|
1677
|
+
"i",
|
|
1678
|
+
{
|
|
1679
|
+
class: q(E(Ge)(
|
|
1680
|
+
"ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
|
|
1681
|
+
t.class,
|
|
1682
|
+
e.showBg ? "bg" : "",
|
|
1683
|
+
e.disabled ? "is-disabled" : "",
|
|
1684
|
+
e.active ? "is-active" : "",
|
|
1685
|
+
i.value !== "default" ? `is-${i.value}` : "",
|
|
1686
|
+
e.unMargin ? "un-margin" : "margin",
|
|
1687
|
+
e.hover ? "is-hover" : ""
|
|
1688
|
+
)),
|
|
1689
|
+
style: D(e.showBg ? u.value : c.value),
|
|
1690
|
+
onClick: h
|
|
1691
|
+
},
|
|
1692
|
+
[
|
|
1693
|
+
e.title ? (x(), z(y, {
|
|
1694
|
+
key: 0,
|
|
1695
|
+
text: e.title
|
|
1696
|
+
}, {
|
|
1697
|
+
default: M(() => {
|
|
1698
|
+
var d;
|
|
1699
|
+
return [
|
|
1700
|
+
r.value === "unocss" ? (x(), T(
|
|
1701
|
+
"i",
|
|
1702
|
+
{
|
|
1703
|
+
key: 0,
|
|
1704
|
+
class: q(["iconfont shrink-0 size-inherit", `${e.name} ${(d = e.name) == null ? void 0 : d.split("_")[0]}`]),
|
|
1705
|
+
style: D({ ...f.value, ...e.showBg ? c.value : {} })
|
|
1706
|
+
},
|
|
1707
|
+
null,
|
|
1708
|
+
6
|
|
1709
|
+
/* CLASS, STYLE */
|
|
1710
|
+
)) : r.value === "iconify" ? (x(), z(E(Ue), {
|
|
1711
|
+
key: 1,
|
|
1712
|
+
icon: e.name,
|
|
1713
|
+
class: "shrink-0 size-inherit"
|
|
1714
|
+
}, null, 8, ["icon"])) : r.value === "svg" ? (x(), T("svg", Gn, [
|
|
1715
|
+
P("use", {
|
|
1716
|
+
"xlink:href": `#icon-${e.name}`
|
|
1717
|
+
}, null, 8, Kn)
|
|
1718
|
+
])) : r.value === "two-color-svg" ? (x(), T(
|
|
1719
|
+
"svg",
|
|
1720
|
+
{
|
|
1721
|
+
key: 3,
|
|
1722
|
+
class: "two-color-icon shrink-0 size-inherit",
|
|
1723
|
+
style: D(f.value),
|
|
1724
|
+
"aria-hidden": "true"
|
|
1725
|
+
},
|
|
1726
|
+
[
|
|
1727
|
+
P("use", {
|
|
1728
|
+
"xlink:href": `#${e.name}`
|
|
1729
|
+
}, null, 8, Yn)
|
|
1730
|
+
],
|
|
1731
|
+
4
|
|
1732
|
+
/* STYLE */
|
|
1733
|
+
)) : r.value === "img" ? (x(), z(E(We), {
|
|
1734
|
+
key: 4,
|
|
1735
|
+
src: e.name,
|
|
1736
|
+
class: "shrink-0"
|
|
1737
|
+
}, {
|
|
1738
|
+
loading: M(() => [...p[0] || (p[0] = [
|
|
1739
|
+
P(
|
|
1740
|
+
"i",
|
|
1741
|
+
{ class: "i-line-md:loading-loop size-inherit" },
|
|
1742
|
+
null,
|
|
1743
|
+
-1
|
|
1744
|
+
/* CACHED */
|
|
1745
|
+
)
|
|
1746
|
+
])]),
|
|
1747
|
+
error: M(() => [...p[1] || (p[1] = [
|
|
1748
|
+
P(
|
|
1749
|
+
"i",
|
|
1750
|
+
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
1751
|
+
null,
|
|
1752
|
+
-1
|
|
1753
|
+
/* CACHED */
|
|
1754
|
+
)
|
|
1755
|
+
])]),
|
|
1756
|
+
_: 1
|
|
1757
|
+
/* STABLE */
|
|
1758
|
+
}, 8, ["src"])) : Se("v-if", !0)
|
|
1759
|
+
];
|
|
1760
|
+
}),
|
|
1761
|
+
_: 1
|
|
1762
|
+
/* STABLE */
|
|
1763
|
+
}, 8, ["text"])) : (x(), T(
|
|
1764
|
+
bt,
|
|
1765
|
+
{ key: 1 },
|
|
1766
|
+
[
|
|
1767
|
+
r.value === "unocss" ? (x(), T(
|
|
1768
|
+
"i",
|
|
1769
|
+
{
|
|
1770
|
+
key: 0,
|
|
1771
|
+
class: q(["iconfont shrink-0 size-inherit", `${e.name} ${(g = e.name) == null ? void 0 : g.split("_")[0]}`]),
|
|
1772
|
+
style: D({ ...f.value, ...e.showBg ? c.value : {} })
|
|
1773
|
+
},
|
|
1774
|
+
null,
|
|
1775
|
+
6
|
|
1776
|
+
/* CLASS, STYLE */
|
|
1777
|
+
)) : r.value === "iconify" ? (x(), z(E(Ue), {
|
|
1778
|
+
key: 1,
|
|
1779
|
+
icon: e.name,
|
|
1780
|
+
class: "shrink-0 size-inherit"
|
|
1781
|
+
}, null, 8, ["icon"])) : r.value === "svg" ? (x(), T("svg", {
|
|
1782
|
+
key: 2,
|
|
1783
|
+
class: "shrink-0 size-inherit",
|
|
1784
|
+
size: e.size,
|
|
1785
|
+
"aria-hidden": "true"
|
|
1786
|
+
}, [
|
|
1787
|
+
P("use", {
|
|
1788
|
+
"xlink:href": `#icon-${e.name}`
|
|
1789
|
+
}, null, 8, Xn)
|
|
1790
|
+
], 8, Jn)) : r.value === "two-color-svg" ? (x(), T(
|
|
1791
|
+
"svg",
|
|
1792
|
+
{
|
|
1793
|
+
key: 3,
|
|
1794
|
+
class: "two-color-icon shrink-0 size-inherit",
|
|
1795
|
+
style: D(f.value),
|
|
1796
|
+
"aria-hidden": "true"
|
|
1797
|
+
},
|
|
1798
|
+
[
|
|
1799
|
+
P("use", {
|
|
1800
|
+
"xlink:href": `#${e.name}`
|
|
1801
|
+
}, null, 8, Zn)
|
|
1802
|
+
],
|
|
1803
|
+
4
|
|
1804
|
+
/* STYLE */
|
|
1805
|
+
)) : r.value === "img" ? (x(), z(E(We), {
|
|
1806
|
+
key: 4,
|
|
1807
|
+
src: e.name,
|
|
1808
|
+
class: "shrink-0"
|
|
1809
|
+
}, {
|
|
1810
|
+
loading: M(() => [...p[2] || (p[2] = [
|
|
1811
|
+
P(
|
|
1812
|
+
"i",
|
|
1813
|
+
{ class: "i-line-md:loading-loop size-inherit" },
|
|
1814
|
+
null,
|
|
1815
|
+
-1
|
|
1816
|
+
/* CACHED */
|
|
1817
|
+
)
|
|
1818
|
+
])]),
|
|
1819
|
+
error: M(() => [...p[3] || (p[3] = [
|
|
1820
|
+
P(
|
|
1821
|
+
"i",
|
|
1822
|
+
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
1823
|
+
null,
|
|
1824
|
+
-1
|
|
1825
|
+
/* CACHED */
|
|
1826
|
+
)
|
|
1827
|
+
])]),
|
|
1828
|
+
_: 1
|
|
1829
|
+
/* STABLE */
|
|
1830
|
+
}, 8, ["src"])) : Se("v-if", !0)
|
|
1831
|
+
],
|
|
1832
|
+
64
|
|
1833
|
+
/* STABLE_FRAGMENT */
|
|
1834
|
+
))
|
|
1835
|
+
],
|
|
1836
|
+
6
|
|
1837
|
+
/* CLASS, STYLE */
|
|
1838
|
+
);
|
|
1839
|
+
};
|
|
1840
|
+
}
|
|
1841
|
+
}), eo = /* @__PURE__ */ Ke(_n, [["__scopeId", "data-v-701f2359"]]), to = qe(eo), no = /* @__PURE__ */ A({
|
|
1842
|
+
__name: "CloseIcon",
|
|
1843
|
+
props: {
|
|
1844
|
+
showBg: {
|
|
1845
|
+
type: Boolean,
|
|
1846
|
+
default: !1
|
|
1847
|
+
},
|
|
1848
|
+
fullscreen: {
|
|
1849
|
+
type: Boolean,
|
|
1850
|
+
default: !1
|
|
1851
|
+
}
|
|
1852
|
+
},
|
|
1853
|
+
setup(e) {
|
|
1854
|
+
return (n, t) => (x(), T(
|
|
1855
|
+
"div",
|
|
1856
|
+
{
|
|
1857
|
+
class: q({ "exit-main-page-maximize": e.showBg && e.fullscreen })
|
|
1858
|
+
},
|
|
1859
|
+
[
|
|
1860
|
+
kt(E(to), {
|
|
1861
|
+
name: "iksvg_guanbidanchuang",
|
|
1862
|
+
danger: "",
|
|
1863
|
+
title: "关闭",
|
|
1864
|
+
size: 20
|
|
1865
|
+
})
|
|
1866
|
+
],
|
|
1867
|
+
2
|
|
1868
|
+
/* CLASS */
|
|
1869
|
+
));
|
|
1870
|
+
}
|
|
1871
|
+
}), oo = /* @__PURE__ */ Ke(no, [["__scopeId", "data-v-66132242"]]), io = { class: "base-header" }, ro = /* @__PURE__ */ A({
|
|
1872
|
+
__name: "IkBaseDialog",
|
|
1873
|
+
props: /* @__PURE__ */ Ct({
|
|
1874
|
+
title: { default: "" },
|
|
1875
|
+
cancelText: { default: "取消" },
|
|
1876
|
+
confirmText: { default: "确认" },
|
|
1877
|
+
noHeader: { type: Boolean },
|
|
1878
|
+
noFooter: { type: Boolean },
|
|
1879
|
+
showCloseBg: { type: Boolean, default: !1 },
|
|
1880
|
+
fullscreen: { type: Boolean, default: !1 },
|
|
1881
|
+
loading: { type: Boolean, default: !1 }
|
|
1882
|
+
}, {
|
|
1883
|
+
modelValue: {
|
|
1884
|
+
type: Boolean,
|
|
1885
|
+
default: !1,
|
|
1886
|
+
noHeader: !1,
|
|
1887
|
+
noFooter: !1
|
|
1888
|
+
},
|
|
1889
|
+
modelModifiers: {}
|
|
1890
|
+
}),
|
|
1891
|
+
emits: ["update:modelValue"],
|
|
1892
|
+
setup(e) {
|
|
1893
|
+
const n = e, t = xt(e, "modelValue"), o = me(n.fullscreen), i = A({
|
|
1894
|
+
setup() {
|
|
1895
|
+
return () => J(oo, {
|
|
1896
|
+
showBg: n.showCloseBg,
|
|
1897
|
+
fullscreen: n.fullscreen
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1901
|
+
return (r, s) => {
|
|
1902
|
+
const l = Qe("el-dialog");
|
|
1903
|
+
return x(), z(l, It({
|
|
1904
|
+
modelValue: t.value,
|
|
1905
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c),
|
|
1906
|
+
"align-center": ""
|
|
1907
|
+
}, r.$attrs, {
|
|
1908
|
+
"append-to-body": !0,
|
|
1909
|
+
"close-icon": E(i),
|
|
1910
|
+
class: `ik-base-dialog ${e.noHeader ? "no-header" : ""} ${e.noFooter ? "no-footer" : ""}`,
|
|
1911
|
+
fullscreen: o.value || n.fullscreen,
|
|
1912
|
+
"modal-class": "baseDialog"
|
|
1913
|
+
}), St({
|
|
1914
|
+
icon: M(() => [
|
|
1915
|
+
W(r.$slots, "title", {}, () => [
|
|
1916
|
+
Ce(
|
|
1917
|
+
Te(e.title),
|
|
1918
|
+
1
|
|
1919
|
+
/* TEXT */
|
|
1920
|
+
)
|
|
1921
|
+
])
|
|
1922
|
+
]),
|
|
1923
|
+
header: M(() => [
|
|
1924
|
+
P("div", io, [
|
|
1925
|
+
W(r.$slots, "header", {}, () => [
|
|
1926
|
+
Ce(
|
|
1927
|
+
Te(e.title),
|
|
1928
|
+
1
|
|
1929
|
+
/* TEXT */
|
|
1930
|
+
)
|
|
1931
|
+
])
|
|
1932
|
+
])
|
|
1933
|
+
]),
|
|
1934
|
+
default: M(() => [
|
|
1935
|
+
W(r.$slots, "default")
|
|
1936
|
+
]),
|
|
1937
|
+
_: 2
|
|
1938
|
+
/* DYNAMIC */
|
|
1939
|
+
}, [
|
|
1940
|
+
r.$slots.footer ? {
|
|
1941
|
+
name: "footer",
|
|
1942
|
+
fn: M(() => [
|
|
1943
|
+
W(r.$slots, "footer")
|
|
1944
|
+
]),
|
|
1945
|
+
key: "0"
|
|
1946
|
+
} : void 0
|
|
1947
|
+
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
1948
|
+
};
|
|
1949
|
+
}
|
|
1950
|
+
}), lo = qe(ro);
|
|
1951
|
+
export {
|
|
1952
|
+
lo as IkBaseDialog,
|
|
1953
|
+
lo as default
|
|
1954
|
+
};
|