@vc-shell/framework 1.1.58 → 1.1.60
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/CHANGELOG.md +13 -0
- package/dist/assets/154365acf3010d96.woff2 +0 -0
- package/dist/assets/475937116ee3314a.woff2 +0 -0
- package/dist/assets/49791943b3872376.woff2 +0 -0
- package/dist/assets/7a5aa5abd625137f.ttf +0 -0
- package/dist/assets/ac1a99b3d05d8232.woff +0 -0
- package/dist/assets/ccc878931d74181b.woff2 +0 -0
- package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
- package/dist/framework.js +3670 -3644
- package/dist/index.css +9 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts +5 -0
- package/dist/ui/components/atoms/vc-icon/vc-lucide-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +6 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/{vendor-intlify-core-base-Bvt2vJFV.js → vendor-intlify-core-base-FyGSkd6r.js} +167 -166
- package/dist/{vendor-intlify-message-compiler-1VxNzq21.js → vendor-intlify-message-compiler-D_vL9-DK.js} +2 -2
- package/dist/vendor-intlify-shared-BMbzEQSk.js +144 -0
- package/dist/vendor-lucide-vue-next-m0L4DzUL.js +29780 -0
- package/dist/{vendor-prosemirror-commands-BqYcdumy.js → vendor-prosemirror-commands-C6teL3Xo.js} +3 -3
- package/dist/{vendor-prosemirror-dropcursor-zknUsW5x.js → vendor-prosemirror-dropcursor-CwZhBUcZ.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-DjOZhP78.js → vendor-prosemirror-gapcursor-COcwb4TJ.js} +4 -4
- package/dist/{vendor-prosemirror-history-l8l3CFac.js → vendor-prosemirror-history-DmPvdOpr.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-C17r08p-.js → vendor-prosemirror-keymap-CS1uIBpE.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-WJEDhc-w.js → vendor-prosemirror-markdown-sO1Pn6SW.js} +1 -1
- package/dist/{vendor-prosemirror-model-BN5TnJD_.js → vendor-prosemirror-model-DwojkhDQ.js} +68 -82
- package/dist/{vendor-prosemirror-schema-list-CR0gi7aY.js → vendor-prosemirror-schema-list-rrOzMlj0.js} +2 -2
- package/dist/{vendor-prosemirror-state-B0bFP8WI.js → vendor-prosemirror-state-BN86J-Ko.js} +2 -2
- package/dist/{vendor-prosemirror-tables-B1txTKlC.js → vendor-prosemirror-tables-C7XMqyon.js} +5 -5
- package/dist/{vendor-prosemirror-transform-Bo7kNPme.js → vendor-prosemirror-transform-B0c_LAV_.js} +1 -1
- package/dist/{vendor-prosemirror-view--C7TZvmQ.js → vendor-prosemirror-view-DyWzmy4t.js} +3 -3
- package/dist/{vendor-tiptap-core-CczYXVC4.js → vendor-tiptap-core-BgwY40dr.js} +7 -7
- package/dist/{vendor-tiptap-extension-blockquote-Dm7YbSqy.js → vendor-tiptap-extension-blockquote-BVW0VVC0.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-YKANgJQB.js → vendor-tiptap-extension-bold-xhi5xxPT.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-gh-OpViI.js → vendor-tiptap-extension-bubble-menu-DhWtcCL3.js} +2 -2
- package/dist/{vendor-tiptap-extension-bullet-list-CZWmGEbV.js → vendor-tiptap-extension-bullet-list-Ba21suMY.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-Bg0UZ8tC.js → vendor-tiptap-extension-code-DFTxp7wE.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-DQJ_tCBi.js → vendor-tiptap-extension-code-block-B2KK5g8S.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CpCZXWQI.js → vendor-tiptap-extension-document-CW8jybcc.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-BVniwBbO.js → vendor-tiptap-extension-dropcursor-DdRuETKJ.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-FkBnPfW6.js → vendor-tiptap-extension-floating-menu-Da7fpnr7.js} +2 -2
- package/dist/{vendor-tiptap-extension-gapcursor-XdrpVWvW.js → vendor-tiptap-extension-gapcursor-CafmhWSf.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-N0r28gea.js → vendor-tiptap-extension-hard-break-n9aI6ybJ.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-CY1DvT1I.js → vendor-tiptap-extension-heading-xj24usOy.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-BUL3NsZ9.js → vendor-tiptap-extension-history-C2uOLua2.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule-D27m_G1b.js → vendor-tiptap-extension-horizontal-rule--uXIYeaK.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-CbjGZU8i.js → vendor-tiptap-extension-image-BJx5lyoG.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-zyDDu_SW.js → vendor-tiptap-extension-italic-DPAViC4y.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-Bcv4UeMa.js → vendor-tiptap-extension-link-aDGmrWTi.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DZU6bwbc.js → vendor-tiptap-extension-list-item-DE9dJ64Q.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-BXSeGf29.js → vendor-tiptap-extension-ordered-list-CcNtDDJm.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-PDX7FACk.js → vendor-tiptap-extension-paragraph-DvlrAzIW.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-Ue_ElAEg.js → vendor-tiptap-extension-placeholder-DyW7px66.js} +3 -3
- package/dist/{vendor-tiptap-extension-strike-rl2UQZzW.js → vendor-tiptap-extension-strike-DMMLEFkd.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-B59LhE4D.js → vendor-tiptap-extension-table-BpegTABL.js} +3 -3
- package/dist/{vendor-tiptap-extension-table-cell-9N0NKfpg.js → vendor-tiptap-extension-table-cell-8rHRq4BW.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DJTZtK2Z.js → vendor-tiptap-extension-table-header-DZ1y7iS2.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-D7Upcsrg.js → vendor-tiptap-extension-table-row-DmkNUw4L.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Buc1GYNc.js → vendor-tiptap-extension-text-Cwas3TQT.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-COmEda96.js → vendor-tiptap-extension-underline-Hz5uJRfR.js} +1 -1
- package/dist/{vendor-tiptap-markdown-QcGJtrvN.js → vendor-tiptap-markdown-Dj1XZWg4.js} +4 -4
- package/dist/{vendor-tiptap-starter-kit-rn_ARLXy.js → vendor-tiptap-starter-kit-Cxj07T7v.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-KDP_yBZF.js → vendor-tiptap-vue-3-DF4kzEFI.js} +3 -3
- package/dist/{vendor-vue-i18n-DPtOLen3.js → vendor-vue-i18n-DC6m6S7G.js} +34 -34
- package/package.json +8 -5
- package/ui/components/atoms/vc-icon/composables/use-icon.ts +1 -1
- package/ui/components/atoms/vc-icon/vc-bootstrap-icon.vue +5 -6
- package/ui/components/atoms/vc-icon/vc-fontawesome-icon.vue +31 -37
- package/ui/components/atoms/vc-icon/vc-icon.vue +186 -43
- package/ui/components/atoms/vc-icon/vc-lucide-icon.vue +70 -23
- package/ui/components/atoms/vc-icon/vc-material-icon.vue +37 -45
- package/dist/vendor-iconify-vue-D4fihzvl.js +0 -1205
- package/dist/vendor-intlify-shared-D7kiPMOG.js +0 -130
|
@@ -1,1205 +0,0 @@
|
|
|
1
|
-
import { defineComponent as be, ref as R, shallowRef as ve, onMounted as we, watch as Ie, onUnmounted as Se, h as B, nextTick as ke } from "vue";
|
|
2
|
-
const re = /^[a-z0-9]+(-[a-z0-9]+)*$/, F = (e, o, n, i = "") => {
|
|
3
|
-
const t = e.split(":");
|
|
4
|
-
if (e.slice(0, 1) === "@") {
|
|
5
|
-
if (t.length < 2 || t.length > 3)
|
|
6
|
-
return null;
|
|
7
|
-
i = t.shift().slice(1);
|
|
8
|
-
}
|
|
9
|
-
if (t.length > 3 || !t.length)
|
|
10
|
-
return null;
|
|
11
|
-
if (t.length > 1) {
|
|
12
|
-
const l = t.pop(), u = t.pop(), c = {
|
|
13
|
-
// Allow provider without '@': "provider:prefix:name"
|
|
14
|
-
provider: t.length > 0 ? t[0] : i,
|
|
15
|
-
prefix: u,
|
|
16
|
-
name: l
|
|
17
|
-
};
|
|
18
|
-
return o && !A(c) ? null : c;
|
|
19
|
-
}
|
|
20
|
-
const s = t[0], r = s.split("-");
|
|
21
|
-
if (r.length > 1) {
|
|
22
|
-
const l = {
|
|
23
|
-
provider: i,
|
|
24
|
-
prefix: r.shift(),
|
|
25
|
-
name: r.join("-")
|
|
26
|
-
};
|
|
27
|
-
return o && !A(l) ? null : l;
|
|
28
|
-
}
|
|
29
|
-
if (n && i === "") {
|
|
30
|
-
const l = {
|
|
31
|
-
provider: i,
|
|
32
|
-
prefix: "",
|
|
33
|
-
name: s
|
|
34
|
-
};
|
|
35
|
-
return o && !A(l, n) ? null : l;
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
}, A = (e, o) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
39
|
-
// Check name: cannot be empty
|
|
40
|
-
((o && e.prefix === "" || e.prefix) && e.name) : !1, ce = Object.freeze(
|
|
41
|
-
{
|
|
42
|
-
left: 0,
|
|
43
|
-
top: 0,
|
|
44
|
-
width: 16,
|
|
45
|
-
height: 16
|
|
46
|
-
}
|
|
47
|
-
), D = Object.freeze({
|
|
48
|
-
rotate: 0,
|
|
49
|
-
vFlip: !1,
|
|
50
|
-
hFlip: !1
|
|
51
|
-
}), E = Object.freeze({
|
|
52
|
-
...ce,
|
|
53
|
-
...D
|
|
54
|
-
}), U = Object.freeze({
|
|
55
|
-
...E,
|
|
56
|
-
body: "",
|
|
57
|
-
hidden: !1
|
|
58
|
-
});
|
|
59
|
-
function Te(e, o) {
|
|
60
|
-
const n = {};
|
|
61
|
-
!e.hFlip != !o.hFlip && (n.hFlip = !0), !e.vFlip != !o.vFlip && (n.vFlip = !0);
|
|
62
|
-
const i = ((e.rotate || 0) + (o.rotate || 0)) % 4;
|
|
63
|
-
return i && (n.rotate = i), n;
|
|
64
|
-
}
|
|
65
|
-
function K(e, o) {
|
|
66
|
-
const n = Te(e, o);
|
|
67
|
-
for (const i in U)
|
|
68
|
-
i in D ? i in e && !(i in n) && (n[i] = D[i]) : i in o ? n[i] = o[i] : i in e && (n[i] = e[i]);
|
|
69
|
-
return n;
|
|
70
|
-
}
|
|
71
|
-
function Ce(e, o) {
|
|
72
|
-
const n = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
73
|
-
function s(r) {
|
|
74
|
-
if (n[r])
|
|
75
|
-
return t[r] = [];
|
|
76
|
-
if (!(r in t)) {
|
|
77
|
-
t[r] = null;
|
|
78
|
-
const l = i[r] && i[r].parent, u = l && s(l);
|
|
79
|
-
u && (t[r] = [l].concat(u));
|
|
80
|
-
}
|
|
81
|
-
return t[r];
|
|
82
|
-
}
|
|
83
|
-
return Object.keys(n).concat(Object.keys(i)).forEach(s), t;
|
|
84
|
-
}
|
|
85
|
-
function Pe(e, o, n) {
|
|
86
|
-
const i = e.icons, t = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
87
|
-
let s = {};
|
|
88
|
-
function r(l) {
|
|
89
|
-
s = K(
|
|
90
|
-
i[l] || t[l],
|
|
91
|
-
s
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
return r(o), n.forEach(r), K(e, s);
|
|
95
|
-
}
|
|
96
|
-
function le(e, o) {
|
|
97
|
-
const n = [];
|
|
98
|
-
if (typeof e != "object" || typeof e.icons != "object")
|
|
99
|
-
return n;
|
|
100
|
-
e.not_found instanceof Array && e.not_found.forEach((t) => {
|
|
101
|
-
o(t, null), n.push(t);
|
|
102
|
-
});
|
|
103
|
-
const i = Ce(e);
|
|
104
|
-
for (const t in i) {
|
|
105
|
-
const s = i[t];
|
|
106
|
-
s && (o(t, Pe(e, t, s)), n.push(t));
|
|
107
|
-
}
|
|
108
|
-
return n;
|
|
109
|
-
}
|
|
110
|
-
const je = {
|
|
111
|
-
provider: "",
|
|
112
|
-
aliases: {},
|
|
113
|
-
not_found: {},
|
|
114
|
-
...ce
|
|
115
|
-
};
|
|
116
|
-
function z(e, o) {
|
|
117
|
-
for (const n in o)
|
|
118
|
-
if (n in e && typeof e[n] != typeof o[n])
|
|
119
|
-
return !1;
|
|
120
|
-
return !0;
|
|
121
|
-
}
|
|
122
|
-
function ue(e) {
|
|
123
|
-
if (typeof e != "object" || e === null)
|
|
124
|
-
return null;
|
|
125
|
-
const o = e;
|
|
126
|
-
if (typeof o.prefix != "string" || !e.icons || typeof e.icons != "object" || !z(e, je))
|
|
127
|
-
return null;
|
|
128
|
-
const n = o.icons;
|
|
129
|
-
for (const t in n) {
|
|
130
|
-
const s = n[t];
|
|
131
|
-
if (
|
|
132
|
-
// Name cannot be empty
|
|
133
|
-
!t || // Must have body
|
|
134
|
-
typeof s.body != "string" || // Check other props
|
|
135
|
-
!z(
|
|
136
|
-
s,
|
|
137
|
-
U
|
|
138
|
-
)
|
|
139
|
-
)
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
const i = o.aliases || /* @__PURE__ */ Object.create(null);
|
|
143
|
-
for (const t in i) {
|
|
144
|
-
const s = i[t], r = s.parent;
|
|
145
|
-
if (
|
|
146
|
-
// Name cannot be empty
|
|
147
|
-
!t || // Parent must be set and point to existing icon
|
|
148
|
-
typeof r != "string" || !n[r] && !i[r] || // Check other props
|
|
149
|
-
!z(
|
|
150
|
-
s,
|
|
151
|
-
U
|
|
152
|
-
)
|
|
153
|
-
)
|
|
154
|
-
return null;
|
|
155
|
-
}
|
|
156
|
-
return o;
|
|
157
|
-
}
|
|
158
|
-
const W = /* @__PURE__ */ Object.create(null);
|
|
159
|
-
function Fe(e, o) {
|
|
160
|
-
return {
|
|
161
|
-
provider: e,
|
|
162
|
-
prefix: o,
|
|
163
|
-
icons: /* @__PURE__ */ Object.create(null),
|
|
164
|
-
missing: /* @__PURE__ */ new Set()
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
function k(e, o) {
|
|
168
|
-
const n = W[e] || (W[e] = /* @__PURE__ */ Object.create(null));
|
|
169
|
-
return n[o] || (n[o] = Fe(e, o));
|
|
170
|
-
}
|
|
171
|
-
function fe(e, o) {
|
|
172
|
-
return ue(o) ? le(o, (n, i) => {
|
|
173
|
-
i ? e.icons[n] = i : e.missing.add(n);
|
|
174
|
-
}) : [];
|
|
175
|
-
}
|
|
176
|
-
function Ee(e, o, n) {
|
|
177
|
-
try {
|
|
178
|
-
if (typeof n.body == "string")
|
|
179
|
-
return e.icons[o] = { ...n }, !0;
|
|
180
|
-
} catch {
|
|
181
|
-
}
|
|
182
|
-
return !1;
|
|
183
|
-
}
|
|
184
|
-
let j = !1;
|
|
185
|
-
function ae(e) {
|
|
186
|
-
return typeof e == "boolean" && (j = e), j;
|
|
187
|
-
}
|
|
188
|
-
function de(e) {
|
|
189
|
-
const o = typeof e == "string" ? F(e, !0, j) : e;
|
|
190
|
-
if (o) {
|
|
191
|
-
const n = k(o.provider, o.prefix), i = o.name;
|
|
192
|
-
return n.icons[i] || (n.missing.has(i) ? null : void 0);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function Oe(e, o) {
|
|
196
|
-
const n = F(e, !0, j);
|
|
197
|
-
if (!n)
|
|
198
|
-
return !1;
|
|
199
|
-
const i = k(n.provider, n.prefix);
|
|
200
|
-
return o ? Ee(i, n.name, o) : (i.missing.add(n.name), !0);
|
|
201
|
-
}
|
|
202
|
-
function Ae(e, o) {
|
|
203
|
-
if (typeof e != "object")
|
|
204
|
-
return !1;
|
|
205
|
-
if (typeof o != "string" && (o = e.provider || ""), j && !o && !e.prefix) {
|
|
206
|
-
let t = !1;
|
|
207
|
-
return ue(e) && (e.prefix = "", le(e, (s, r) => {
|
|
208
|
-
Oe(s, r) && (t = !0);
|
|
209
|
-
})), t;
|
|
210
|
-
}
|
|
211
|
-
const n = e.prefix;
|
|
212
|
-
if (!A({
|
|
213
|
-
prefix: n,
|
|
214
|
-
name: "a"
|
|
215
|
-
}))
|
|
216
|
-
return !1;
|
|
217
|
-
const i = k(o, n);
|
|
218
|
-
return !!fe(i, e);
|
|
219
|
-
}
|
|
220
|
-
const pe = Object.freeze({
|
|
221
|
-
width: null,
|
|
222
|
-
height: null
|
|
223
|
-
}), he = Object.freeze({
|
|
224
|
-
// Dimensions
|
|
225
|
-
...pe,
|
|
226
|
-
// Transformations
|
|
227
|
-
...D
|
|
228
|
-
}), Le = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Me = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
229
|
-
function J(e, o, n) {
|
|
230
|
-
if (o === 1)
|
|
231
|
-
return e;
|
|
232
|
-
if (n = n || 100, typeof e == "number")
|
|
233
|
-
return Math.ceil(e * o * n) / n;
|
|
234
|
-
if (typeof e != "string")
|
|
235
|
-
return e;
|
|
236
|
-
const i = e.split(Le);
|
|
237
|
-
if (i === null || !i.length)
|
|
238
|
-
return e;
|
|
239
|
-
const t = [];
|
|
240
|
-
let s = i.shift(), r = Me.test(s);
|
|
241
|
-
for (; ; ) {
|
|
242
|
-
if (r) {
|
|
243
|
-
const l = parseFloat(s);
|
|
244
|
-
isNaN(l) ? t.push(s) : t.push(Math.ceil(l * o * n) / n);
|
|
245
|
-
} else
|
|
246
|
-
t.push(s);
|
|
247
|
-
if (s = i.shift(), s === void 0)
|
|
248
|
-
return t.join("");
|
|
249
|
-
r = !r;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
function De(e, o = "defs") {
|
|
253
|
-
let n = "";
|
|
254
|
-
const i = e.indexOf("<" + o);
|
|
255
|
-
for (; i >= 0; ) {
|
|
256
|
-
const t = e.indexOf(">", i), s = e.indexOf("</" + o);
|
|
257
|
-
if (t === -1 || s === -1)
|
|
258
|
-
break;
|
|
259
|
-
const r = e.indexOf(">", s);
|
|
260
|
-
if (r === -1)
|
|
261
|
-
break;
|
|
262
|
-
n += e.slice(t + 1, s).trim(), e = e.slice(0, i).trim() + e.slice(r + 1);
|
|
263
|
-
}
|
|
264
|
-
return {
|
|
265
|
-
defs: n,
|
|
266
|
-
content: e
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
function Ne(e, o) {
|
|
270
|
-
return e ? "<defs>" + e + "</defs>" + o : o;
|
|
271
|
-
}
|
|
272
|
-
function Re(e, o, n) {
|
|
273
|
-
const i = De(e);
|
|
274
|
-
return Ne(i.defs, o + i.content + n);
|
|
275
|
-
}
|
|
276
|
-
const ze = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
277
|
-
function Qe(e, o) {
|
|
278
|
-
const n = {
|
|
279
|
-
...E,
|
|
280
|
-
...e
|
|
281
|
-
}, i = {
|
|
282
|
-
...he,
|
|
283
|
-
...o
|
|
284
|
-
}, t = {
|
|
285
|
-
left: n.left,
|
|
286
|
-
top: n.top,
|
|
287
|
-
width: n.width,
|
|
288
|
-
height: n.height
|
|
289
|
-
};
|
|
290
|
-
let s = n.body;
|
|
291
|
-
[n, i].forEach((m) => {
|
|
292
|
-
const a = [], S = m.hFlip, w = m.vFlip;
|
|
293
|
-
let v = m.rotate;
|
|
294
|
-
S ? w ? v += 2 : (a.push(
|
|
295
|
-
"translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"
|
|
296
|
-
), a.push("scale(-1 1)"), t.top = t.left = 0) : w && (a.push(
|
|
297
|
-
"translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"
|
|
298
|
-
), a.push("scale(1 -1)"), t.top = t.left = 0);
|
|
299
|
-
let x;
|
|
300
|
-
switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
|
|
301
|
-
case 1:
|
|
302
|
-
x = t.height / 2 + t.top, a.unshift(
|
|
303
|
-
"rotate(90 " + x.toString() + " " + x.toString() + ")"
|
|
304
|
-
);
|
|
305
|
-
break;
|
|
306
|
-
case 2:
|
|
307
|
-
a.unshift(
|
|
308
|
-
"rotate(180 " + (t.width / 2 + t.left).toString() + " " + (t.height / 2 + t.top).toString() + ")"
|
|
309
|
-
);
|
|
310
|
-
break;
|
|
311
|
-
case 3:
|
|
312
|
-
x = t.width / 2 + t.left, a.unshift(
|
|
313
|
-
"rotate(-90 " + x.toString() + " " + x.toString() + ")"
|
|
314
|
-
);
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
v % 2 === 1 && (t.left !== t.top && (x = t.left, t.left = t.top, t.top = x), t.width !== t.height && (x = t.width, t.width = t.height, t.height = x)), a.length && (s = Re(
|
|
318
|
-
s,
|
|
319
|
-
'<g transform="' + a.join(" ") + '">',
|
|
320
|
-
"</g>"
|
|
321
|
-
));
|
|
322
|
-
});
|
|
323
|
-
const r = i.width, l = i.height, u = t.width, c = t.height;
|
|
324
|
-
let f, d;
|
|
325
|
-
r === null ? (d = l === null ? "1em" : l === "auto" ? c : l, f = J(d, u / c)) : (f = r === "auto" ? u : r, d = l === null ? J(f, c / u) : l === "auto" ? c : l);
|
|
326
|
-
const p = {}, g = (m, a) => {
|
|
327
|
-
ze(a) || (p[m] = a.toString());
|
|
328
|
-
};
|
|
329
|
-
g("width", f), g("height", d);
|
|
330
|
-
const y = [t.left, t.top, u, c];
|
|
331
|
-
return p.viewBox = y.join(" "), {
|
|
332
|
-
attributes: p,
|
|
333
|
-
viewBox: y,
|
|
334
|
-
body: s
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
const Ue = /\sid="(\S+)"/g, qe = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
338
|
-
let He = 0;
|
|
339
|
-
function $e(e, o = qe) {
|
|
340
|
-
const n = [];
|
|
341
|
-
let i;
|
|
342
|
-
for (; i = Ue.exec(e); )
|
|
343
|
-
n.push(i[1]);
|
|
344
|
-
if (!n.length)
|
|
345
|
-
return e;
|
|
346
|
-
const t = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
347
|
-
return n.forEach((s) => {
|
|
348
|
-
const r = typeof o == "function" ? o(s) : o + (He++).toString(), l = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
349
|
-
e = e.replace(
|
|
350
|
-
// Allowed characters before id: [#;"]
|
|
351
|
-
// Allowed characters after id: [)"], .[a-z]
|
|
352
|
-
new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
|
|
353
|
-
"$1" + r + t + "$3"
|
|
354
|
-
);
|
|
355
|
-
}), e = e.replace(new RegExp(t, "g"), ""), e;
|
|
356
|
-
}
|
|
357
|
-
const q = /* @__PURE__ */ Object.create(null);
|
|
358
|
-
function Ve(e, o) {
|
|
359
|
-
q[e] = o;
|
|
360
|
-
}
|
|
361
|
-
function H(e) {
|
|
362
|
-
return q[e] || q[""];
|
|
363
|
-
}
|
|
364
|
-
function V(e) {
|
|
365
|
-
let o;
|
|
366
|
-
if (typeof e.resources == "string")
|
|
367
|
-
o = [e.resources];
|
|
368
|
-
else if (o = e.resources, !(o instanceof Array) || !o.length)
|
|
369
|
-
return null;
|
|
370
|
-
return {
|
|
371
|
-
// API hosts
|
|
372
|
-
resources: o,
|
|
373
|
-
// Root path
|
|
374
|
-
path: e.path || "/",
|
|
375
|
-
// URL length limit
|
|
376
|
-
maxURL: e.maxURL || 500,
|
|
377
|
-
// Timeout before next host is used.
|
|
378
|
-
rotate: e.rotate || 750,
|
|
379
|
-
// Timeout before failing query.
|
|
380
|
-
timeout: e.timeout || 5e3,
|
|
381
|
-
// Randomise default API end point.
|
|
382
|
-
random: e.random === !0,
|
|
383
|
-
// Start index
|
|
384
|
-
index: e.index || 0,
|
|
385
|
-
// Receive data after time out (used if time out kicks in first, then API module sends data anyway).
|
|
386
|
-
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
const G = /* @__PURE__ */ Object.create(null), C = [
|
|
390
|
-
"https://api.simplesvg.com",
|
|
391
|
-
"https://api.unisvg.com"
|
|
392
|
-
], L = [];
|
|
393
|
-
for (; C.length > 0; )
|
|
394
|
-
C.length === 1 || Math.random() > 0.5 ? L.push(C.shift()) : L.push(C.pop());
|
|
395
|
-
G[""] = V({
|
|
396
|
-
resources: ["https://api.iconify.design"].concat(L)
|
|
397
|
-
});
|
|
398
|
-
function Ge(e, o) {
|
|
399
|
-
const n = V(o);
|
|
400
|
-
return n === null ? !1 : (G[e] = n, !0);
|
|
401
|
-
}
|
|
402
|
-
function _(e) {
|
|
403
|
-
return G[e];
|
|
404
|
-
}
|
|
405
|
-
const _e = () => {
|
|
406
|
-
let e;
|
|
407
|
-
try {
|
|
408
|
-
if (e = fetch, typeof e == "function")
|
|
409
|
-
return e;
|
|
410
|
-
} catch {
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
|
-
let X = _e();
|
|
414
|
-
function Be(e, o) {
|
|
415
|
-
const n = _(e);
|
|
416
|
-
if (!n)
|
|
417
|
-
return 0;
|
|
418
|
-
let i;
|
|
419
|
-
if (!n.maxURL)
|
|
420
|
-
i = 0;
|
|
421
|
-
else {
|
|
422
|
-
let t = 0;
|
|
423
|
-
n.resources.forEach((r) => {
|
|
424
|
-
t = Math.max(t, r.length);
|
|
425
|
-
});
|
|
426
|
-
const s = o + ".json?icons=";
|
|
427
|
-
i = n.maxURL - t - n.path.length - s.length;
|
|
428
|
-
}
|
|
429
|
-
return i;
|
|
430
|
-
}
|
|
431
|
-
function Ke(e) {
|
|
432
|
-
return e === 404;
|
|
433
|
-
}
|
|
434
|
-
const We = (e, o, n) => {
|
|
435
|
-
const i = [], t = Be(e, o), s = "icons";
|
|
436
|
-
let r = {
|
|
437
|
-
type: s,
|
|
438
|
-
provider: e,
|
|
439
|
-
prefix: o,
|
|
440
|
-
icons: []
|
|
441
|
-
}, l = 0;
|
|
442
|
-
return n.forEach((u, c) => {
|
|
443
|
-
l += u.length + 1, l >= t && c > 0 && (i.push(r), r = {
|
|
444
|
-
type: s,
|
|
445
|
-
provider: e,
|
|
446
|
-
prefix: o,
|
|
447
|
-
icons: []
|
|
448
|
-
}, l = u.length), r.icons.push(u);
|
|
449
|
-
}), i.push(r), i;
|
|
450
|
-
};
|
|
451
|
-
function Je(e) {
|
|
452
|
-
if (typeof e == "string") {
|
|
453
|
-
const o = _(e);
|
|
454
|
-
if (o)
|
|
455
|
-
return o.path;
|
|
456
|
-
}
|
|
457
|
-
return "/";
|
|
458
|
-
}
|
|
459
|
-
const Xe = (e, o, n) => {
|
|
460
|
-
if (!X) {
|
|
461
|
-
n("abort", 424);
|
|
462
|
-
return;
|
|
463
|
-
}
|
|
464
|
-
let i = Je(o.provider);
|
|
465
|
-
switch (o.type) {
|
|
466
|
-
case "icons": {
|
|
467
|
-
const s = o.prefix, l = o.icons.join(","), u = new URLSearchParams({
|
|
468
|
-
icons: l
|
|
469
|
-
});
|
|
470
|
-
i += s + ".json?" + u.toString();
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
case "custom": {
|
|
474
|
-
const s = o.uri;
|
|
475
|
-
i += s.slice(0, 1) === "/" ? s.slice(1) : s;
|
|
476
|
-
break;
|
|
477
|
-
}
|
|
478
|
-
default:
|
|
479
|
-
n("abort", 400);
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
let t = 503;
|
|
483
|
-
X(e + i).then((s) => {
|
|
484
|
-
const r = s.status;
|
|
485
|
-
if (r !== 200) {
|
|
486
|
-
setTimeout(() => {
|
|
487
|
-
n(Ke(r) ? "abort" : "next", r);
|
|
488
|
-
});
|
|
489
|
-
return;
|
|
490
|
-
}
|
|
491
|
-
return t = 501, s.json();
|
|
492
|
-
}).then((s) => {
|
|
493
|
-
if (typeof s != "object" || s === null) {
|
|
494
|
-
setTimeout(() => {
|
|
495
|
-
s === 404 ? n("abort", s) : n("next", t);
|
|
496
|
-
});
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
setTimeout(() => {
|
|
500
|
-
n("success", s);
|
|
501
|
-
});
|
|
502
|
-
}).catch(() => {
|
|
503
|
-
n("next", t);
|
|
504
|
-
});
|
|
505
|
-
}, Ye = {
|
|
506
|
-
prepare: We,
|
|
507
|
-
send: Xe
|
|
508
|
-
};
|
|
509
|
-
function Ze(e) {
|
|
510
|
-
const o = {
|
|
511
|
-
loaded: [],
|
|
512
|
-
missing: [],
|
|
513
|
-
pending: []
|
|
514
|
-
}, n = /* @__PURE__ */ Object.create(null);
|
|
515
|
-
e.sort((t, s) => t.provider !== s.provider ? t.provider.localeCompare(s.provider) : t.prefix !== s.prefix ? t.prefix.localeCompare(s.prefix) : t.name.localeCompare(s.name));
|
|
516
|
-
let i = {
|
|
517
|
-
provider: "",
|
|
518
|
-
prefix: "",
|
|
519
|
-
name: ""
|
|
520
|
-
};
|
|
521
|
-
return e.forEach((t) => {
|
|
522
|
-
if (i.name === t.name && i.prefix === t.prefix && i.provider === t.provider)
|
|
523
|
-
return;
|
|
524
|
-
i = t;
|
|
525
|
-
const s = t.provider, r = t.prefix, l = t.name, u = n[s] || (n[s] = /* @__PURE__ */ Object.create(null)), c = u[r] || (u[r] = k(s, r));
|
|
526
|
-
let f;
|
|
527
|
-
l in c.icons ? f = o.loaded : r === "" || c.missing.has(l) ? f = o.missing : f = o.pending;
|
|
528
|
-
const d = {
|
|
529
|
-
provider: s,
|
|
530
|
-
prefix: r,
|
|
531
|
-
name: l
|
|
532
|
-
};
|
|
533
|
-
f.push(d);
|
|
534
|
-
}), o;
|
|
535
|
-
}
|
|
536
|
-
function ge(e, o) {
|
|
537
|
-
e.forEach((n) => {
|
|
538
|
-
const i = n.loaderCallbacks;
|
|
539
|
-
i && (n.loaderCallbacks = i.filter((t) => t.id !== o));
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
function et(e) {
|
|
543
|
-
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
544
|
-
e.pendingCallbacksFlag = !1;
|
|
545
|
-
const o = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
546
|
-
if (!o.length)
|
|
547
|
-
return;
|
|
548
|
-
let n = !1;
|
|
549
|
-
const i = e.provider, t = e.prefix;
|
|
550
|
-
o.forEach((s) => {
|
|
551
|
-
const r = s.icons, l = r.pending.length;
|
|
552
|
-
r.pending = r.pending.filter((u) => {
|
|
553
|
-
if (u.prefix !== t)
|
|
554
|
-
return !0;
|
|
555
|
-
const c = u.name;
|
|
556
|
-
if (e.icons[c])
|
|
557
|
-
r.loaded.push({
|
|
558
|
-
provider: i,
|
|
559
|
-
prefix: t,
|
|
560
|
-
name: c
|
|
561
|
-
});
|
|
562
|
-
else if (e.missing.has(c))
|
|
563
|
-
r.missing.push({
|
|
564
|
-
provider: i,
|
|
565
|
-
prefix: t,
|
|
566
|
-
name: c
|
|
567
|
-
});
|
|
568
|
-
else
|
|
569
|
-
return n = !0, !0;
|
|
570
|
-
return !1;
|
|
571
|
-
}), r.pending.length !== l && (n || ge([e], s.id), s.callback(
|
|
572
|
-
r.loaded.slice(0),
|
|
573
|
-
r.missing.slice(0),
|
|
574
|
-
r.pending.slice(0),
|
|
575
|
-
s.abort
|
|
576
|
-
));
|
|
577
|
-
});
|
|
578
|
-
}));
|
|
579
|
-
}
|
|
580
|
-
let tt = 0;
|
|
581
|
-
function nt(e, o, n) {
|
|
582
|
-
const i = tt++, t = ge.bind(null, n, i);
|
|
583
|
-
if (!o.pending.length)
|
|
584
|
-
return t;
|
|
585
|
-
const s = {
|
|
586
|
-
id: i,
|
|
587
|
-
icons: o,
|
|
588
|
-
callback: e,
|
|
589
|
-
abort: t
|
|
590
|
-
};
|
|
591
|
-
return n.forEach((r) => {
|
|
592
|
-
(r.loaderCallbacks || (r.loaderCallbacks = [])).push(s);
|
|
593
|
-
}), t;
|
|
594
|
-
}
|
|
595
|
-
function ot(e, o = !0, n = !1) {
|
|
596
|
-
const i = [];
|
|
597
|
-
return e.forEach((t) => {
|
|
598
|
-
const s = typeof t == "string" ? F(t, o, n) : t;
|
|
599
|
-
s && i.push(s);
|
|
600
|
-
}), i;
|
|
601
|
-
}
|
|
602
|
-
var it = {
|
|
603
|
-
resources: [],
|
|
604
|
-
index: 0,
|
|
605
|
-
timeout: 2e3,
|
|
606
|
-
rotate: 750,
|
|
607
|
-
random: !1,
|
|
608
|
-
dataAfterTimeout: !1
|
|
609
|
-
};
|
|
610
|
-
function st(e, o, n, i) {
|
|
611
|
-
const t = e.resources.length, s = e.random ? Math.floor(Math.random() * t) : e.index;
|
|
612
|
-
let r;
|
|
613
|
-
if (e.random) {
|
|
614
|
-
let h = e.resources.slice(0);
|
|
615
|
-
for (r = []; h.length > 1; ) {
|
|
616
|
-
const b = Math.floor(Math.random() * h.length);
|
|
617
|
-
r.push(h[b]), h = h.slice(0, b).concat(h.slice(b + 1));
|
|
618
|
-
}
|
|
619
|
-
r = r.concat(h);
|
|
620
|
-
} else
|
|
621
|
-
r = e.resources.slice(s).concat(e.resources.slice(0, s));
|
|
622
|
-
const l = Date.now();
|
|
623
|
-
let u = "pending", c = 0, f, d = null, p = [], g = [];
|
|
624
|
-
typeof i == "function" && g.push(i);
|
|
625
|
-
function y() {
|
|
626
|
-
d && (clearTimeout(d), d = null);
|
|
627
|
-
}
|
|
628
|
-
function m() {
|
|
629
|
-
u === "pending" && (u = "aborted"), y(), p.forEach((h) => {
|
|
630
|
-
h.status === "pending" && (h.status = "aborted");
|
|
631
|
-
}), p = [];
|
|
632
|
-
}
|
|
633
|
-
function a(h, b) {
|
|
634
|
-
b && (g = []), typeof h == "function" && g.push(h);
|
|
635
|
-
}
|
|
636
|
-
function S() {
|
|
637
|
-
return {
|
|
638
|
-
startTime: l,
|
|
639
|
-
payload: o,
|
|
640
|
-
status: u,
|
|
641
|
-
queriesSent: c,
|
|
642
|
-
queriesPending: p.length,
|
|
643
|
-
subscribe: a,
|
|
644
|
-
abort: m
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
function w() {
|
|
648
|
-
u = "failed", g.forEach((h) => {
|
|
649
|
-
h(void 0, f);
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
function v() {
|
|
653
|
-
p.forEach((h) => {
|
|
654
|
-
h.status === "pending" && (h.status = "aborted");
|
|
655
|
-
}), p = [];
|
|
656
|
-
}
|
|
657
|
-
function x(h, b, T) {
|
|
658
|
-
const O = b !== "success";
|
|
659
|
-
switch (p = p.filter((I) => I !== h), u) {
|
|
660
|
-
case "pending":
|
|
661
|
-
break;
|
|
662
|
-
case "failed":
|
|
663
|
-
if (O || !e.dataAfterTimeout)
|
|
664
|
-
return;
|
|
665
|
-
break;
|
|
666
|
-
default:
|
|
667
|
-
return;
|
|
668
|
-
}
|
|
669
|
-
if (b === "abort") {
|
|
670
|
-
f = T, w();
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
if (O) {
|
|
674
|
-
f = T, p.length || (r.length ? N() : w());
|
|
675
|
-
return;
|
|
676
|
-
}
|
|
677
|
-
if (y(), v(), !e.random) {
|
|
678
|
-
const I = e.resources.indexOf(h.resource);
|
|
679
|
-
I !== -1 && I !== e.index && (e.index = I);
|
|
680
|
-
}
|
|
681
|
-
u = "completed", g.forEach((I) => {
|
|
682
|
-
I(T);
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
function N() {
|
|
686
|
-
if (u !== "pending")
|
|
687
|
-
return;
|
|
688
|
-
y();
|
|
689
|
-
const h = r.shift();
|
|
690
|
-
if (h === void 0) {
|
|
691
|
-
if (p.length) {
|
|
692
|
-
d = setTimeout(() => {
|
|
693
|
-
y(), u === "pending" && (v(), w());
|
|
694
|
-
}, e.timeout);
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
w();
|
|
698
|
-
return;
|
|
699
|
-
}
|
|
700
|
-
const b = {
|
|
701
|
-
status: "pending",
|
|
702
|
-
resource: h,
|
|
703
|
-
callback: (T, O) => {
|
|
704
|
-
x(b, T, O);
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
|
-
p.push(b), c++, d = setTimeout(N, e.rotate), n(h, o, b.callback);
|
|
708
|
-
}
|
|
709
|
-
return setTimeout(N), S;
|
|
710
|
-
}
|
|
711
|
-
function me(e) {
|
|
712
|
-
const o = {
|
|
713
|
-
...it,
|
|
714
|
-
...e
|
|
715
|
-
};
|
|
716
|
-
let n = [];
|
|
717
|
-
function i() {
|
|
718
|
-
n = n.filter((l) => l().status === "pending");
|
|
719
|
-
}
|
|
720
|
-
function t(l, u, c) {
|
|
721
|
-
const f = st(
|
|
722
|
-
o,
|
|
723
|
-
l,
|
|
724
|
-
u,
|
|
725
|
-
(d, p) => {
|
|
726
|
-
i(), c && c(d, p);
|
|
727
|
-
}
|
|
728
|
-
);
|
|
729
|
-
return n.push(f), f;
|
|
730
|
-
}
|
|
731
|
-
function s(l) {
|
|
732
|
-
return n.find((u) => l(u)) || null;
|
|
733
|
-
}
|
|
734
|
-
return {
|
|
735
|
-
query: t,
|
|
736
|
-
find: s,
|
|
737
|
-
setIndex: (l) => {
|
|
738
|
-
o.index = l;
|
|
739
|
-
},
|
|
740
|
-
getIndex: () => o.index,
|
|
741
|
-
cleanup: i
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
function Y() {
|
|
745
|
-
}
|
|
746
|
-
const Q = /* @__PURE__ */ Object.create(null);
|
|
747
|
-
function rt(e) {
|
|
748
|
-
if (!Q[e]) {
|
|
749
|
-
const o = _(e);
|
|
750
|
-
if (!o)
|
|
751
|
-
return;
|
|
752
|
-
const n = me(o), i = {
|
|
753
|
-
config: o,
|
|
754
|
-
redundancy: n
|
|
755
|
-
};
|
|
756
|
-
Q[e] = i;
|
|
757
|
-
}
|
|
758
|
-
return Q[e];
|
|
759
|
-
}
|
|
760
|
-
function ct(e, o, n) {
|
|
761
|
-
let i, t;
|
|
762
|
-
if (typeof e == "string") {
|
|
763
|
-
const s = H(e);
|
|
764
|
-
if (!s)
|
|
765
|
-
return n(void 0, 424), Y;
|
|
766
|
-
t = s.send;
|
|
767
|
-
const r = rt(e);
|
|
768
|
-
r && (i = r.redundancy);
|
|
769
|
-
} else {
|
|
770
|
-
const s = V(e);
|
|
771
|
-
if (s) {
|
|
772
|
-
i = me(s);
|
|
773
|
-
const r = e.resources ? e.resources[0] : "", l = H(r);
|
|
774
|
-
l && (t = l.send);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
return !i || !t ? (n(void 0, 424), Y) : i.query(o, t, n)().abort;
|
|
778
|
-
}
|
|
779
|
-
function Z() {
|
|
780
|
-
}
|
|
781
|
-
function lt(e) {
|
|
782
|
-
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
783
|
-
e.iconsLoaderFlag = !1, et(e);
|
|
784
|
-
}));
|
|
785
|
-
}
|
|
786
|
-
function ut(e) {
|
|
787
|
-
const o = [], n = [];
|
|
788
|
-
return e.forEach((i) => {
|
|
789
|
-
(i.match(re) ? o : n).push(i);
|
|
790
|
-
}), {
|
|
791
|
-
valid: o,
|
|
792
|
-
invalid: n
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
function P(e, o, n) {
|
|
796
|
-
function i() {
|
|
797
|
-
const t = e.pendingIcons;
|
|
798
|
-
o.forEach((s) => {
|
|
799
|
-
t && t.delete(s), e.icons[s] || e.missing.add(s);
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
if (n && typeof n == "object")
|
|
803
|
-
try {
|
|
804
|
-
if (!fe(e, n).length) {
|
|
805
|
-
i();
|
|
806
|
-
return;
|
|
807
|
-
}
|
|
808
|
-
} catch (t) {
|
|
809
|
-
console.error(t);
|
|
810
|
-
}
|
|
811
|
-
i(), lt(e);
|
|
812
|
-
}
|
|
813
|
-
function ee(e, o) {
|
|
814
|
-
e instanceof Promise ? e.then((n) => {
|
|
815
|
-
o(n);
|
|
816
|
-
}).catch(() => {
|
|
817
|
-
o(null);
|
|
818
|
-
}) : o(e);
|
|
819
|
-
}
|
|
820
|
-
function ft(e, o) {
|
|
821
|
-
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(o).sort() : e.iconsToLoad = o, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
822
|
-
e.iconsQueueFlag = !1;
|
|
823
|
-
const { provider: n, prefix: i } = e, t = e.iconsToLoad;
|
|
824
|
-
if (delete e.iconsToLoad, !t || !t.length)
|
|
825
|
-
return;
|
|
826
|
-
const s = e.loadIcon;
|
|
827
|
-
if (e.loadIcons && (t.length > 1 || !s)) {
|
|
828
|
-
ee(
|
|
829
|
-
e.loadIcons(t, i, n),
|
|
830
|
-
(f) => {
|
|
831
|
-
P(e, t, f);
|
|
832
|
-
}
|
|
833
|
-
);
|
|
834
|
-
return;
|
|
835
|
-
}
|
|
836
|
-
if (s) {
|
|
837
|
-
t.forEach((f) => {
|
|
838
|
-
const d = s(f, i, n);
|
|
839
|
-
ee(d, (p) => {
|
|
840
|
-
const g = p ? {
|
|
841
|
-
prefix: i,
|
|
842
|
-
icons: {
|
|
843
|
-
[f]: p
|
|
844
|
-
}
|
|
845
|
-
} : null;
|
|
846
|
-
P(e, [f], g);
|
|
847
|
-
});
|
|
848
|
-
});
|
|
849
|
-
return;
|
|
850
|
-
}
|
|
851
|
-
const { valid: r, invalid: l } = ut(t);
|
|
852
|
-
if (l.length && P(e, l, null), !r.length)
|
|
853
|
-
return;
|
|
854
|
-
const u = i.match(re) ? H(n) : null;
|
|
855
|
-
if (!u) {
|
|
856
|
-
P(e, r, null);
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
u.prepare(n, i, r).forEach((f) => {
|
|
860
|
-
ct(n, f, (d) => {
|
|
861
|
-
P(e, f.icons, d);
|
|
862
|
-
});
|
|
863
|
-
});
|
|
864
|
-
}));
|
|
865
|
-
}
|
|
866
|
-
const ye = (e, o) => {
|
|
867
|
-
const n = ot(e, !0, ae()), i = Ze(n);
|
|
868
|
-
if (!i.pending.length) {
|
|
869
|
-
let u = !0;
|
|
870
|
-
return o && setTimeout(() => {
|
|
871
|
-
u && o(
|
|
872
|
-
i.loaded,
|
|
873
|
-
i.missing,
|
|
874
|
-
i.pending,
|
|
875
|
-
Z
|
|
876
|
-
);
|
|
877
|
-
}), () => {
|
|
878
|
-
u = !1;
|
|
879
|
-
};
|
|
880
|
-
}
|
|
881
|
-
const t = /* @__PURE__ */ Object.create(null), s = [];
|
|
882
|
-
let r, l;
|
|
883
|
-
return i.pending.forEach((u) => {
|
|
884
|
-
const { provider: c, prefix: f } = u;
|
|
885
|
-
if (f === l && c === r)
|
|
886
|
-
return;
|
|
887
|
-
r = c, l = f, s.push(k(c, f));
|
|
888
|
-
const d = t[c] || (t[c] = /* @__PURE__ */ Object.create(null));
|
|
889
|
-
d[f] || (d[f] = []);
|
|
890
|
-
}), i.pending.forEach((u) => {
|
|
891
|
-
const { provider: c, prefix: f, name: d } = u, p = k(c, f), g = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
|
|
892
|
-
g.has(d) || (g.add(d), t[c][f].push(d));
|
|
893
|
-
}), s.forEach((u) => {
|
|
894
|
-
const c = t[u.provider][u.prefix];
|
|
895
|
-
c.length && ft(u, c);
|
|
896
|
-
}), o ? nt(o, i, s) : Z;
|
|
897
|
-
}, St = (e) => new Promise((o, n) => {
|
|
898
|
-
const i = typeof e == "string" ? F(e, !0) : e;
|
|
899
|
-
if (!i) {
|
|
900
|
-
n(e);
|
|
901
|
-
return;
|
|
902
|
-
}
|
|
903
|
-
ye([i || e], (t) => {
|
|
904
|
-
if (t.length && i) {
|
|
905
|
-
const s = de(i);
|
|
906
|
-
if (s) {
|
|
907
|
-
o({
|
|
908
|
-
...E,
|
|
909
|
-
...s
|
|
910
|
-
});
|
|
911
|
-
return;
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
n(e);
|
|
915
|
-
});
|
|
916
|
-
});
|
|
917
|
-
function at(e, o) {
|
|
918
|
-
const n = {
|
|
919
|
-
...e
|
|
920
|
-
};
|
|
921
|
-
for (const i in o) {
|
|
922
|
-
const t = o[i], s = typeof t;
|
|
923
|
-
i in pe ? (t === null || t && (s === "string" || s === "number")) && (n[i] = t) : s === typeof n[i] && (n[i] = i === "rotate" ? t % 4 : t);
|
|
924
|
-
}
|
|
925
|
-
return n;
|
|
926
|
-
}
|
|
927
|
-
const dt = /[\s,]+/;
|
|
928
|
-
function pt(e, o) {
|
|
929
|
-
o.split(dt).forEach((n) => {
|
|
930
|
-
switch (n.trim()) {
|
|
931
|
-
case "horizontal":
|
|
932
|
-
e.hFlip = !0;
|
|
933
|
-
break;
|
|
934
|
-
case "vertical":
|
|
935
|
-
e.vFlip = !0;
|
|
936
|
-
break;
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
function ht(e, o = 0) {
|
|
941
|
-
const n = e.replace(/^-?[0-9.]*/, "");
|
|
942
|
-
function i(t) {
|
|
943
|
-
for (; t < 0; )
|
|
944
|
-
t += 4;
|
|
945
|
-
return t % 4;
|
|
946
|
-
}
|
|
947
|
-
if (n === "") {
|
|
948
|
-
const t = parseInt(e);
|
|
949
|
-
return isNaN(t) ? 0 : i(t);
|
|
950
|
-
} else if (n !== e) {
|
|
951
|
-
let t = 0;
|
|
952
|
-
switch (n) {
|
|
953
|
-
case "%":
|
|
954
|
-
t = 25;
|
|
955
|
-
break;
|
|
956
|
-
case "deg":
|
|
957
|
-
t = 90;
|
|
958
|
-
}
|
|
959
|
-
if (t) {
|
|
960
|
-
let s = parseFloat(e.slice(0, e.length - n.length));
|
|
961
|
-
return isNaN(s) ? 0 : (s = s / t, s % 1 === 0 ? i(s) : 0);
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
return o;
|
|
965
|
-
}
|
|
966
|
-
function gt(e, o) {
|
|
967
|
-
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
968
|
-
for (const i in o)
|
|
969
|
-
n += " " + i + '="' + o[i] + '"';
|
|
970
|
-
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
971
|
-
}
|
|
972
|
-
function mt(e) {
|
|
973
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
974
|
-
}
|
|
975
|
-
function yt(e) {
|
|
976
|
-
return "data:image/svg+xml," + mt(e);
|
|
977
|
-
}
|
|
978
|
-
function xt(e) {
|
|
979
|
-
return 'url("' + yt(e) + '")';
|
|
980
|
-
}
|
|
981
|
-
const te = {
|
|
982
|
-
...he,
|
|
983
|
-
inline: !1
|
|
984
|
-
}, bt = {
|
|
985
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
986
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
987
|
-
"aria-hidden": !0,
|
|
988
|
-
role: "img"
|
|
989
|
-
}, vt = {
|
|
990
|
-
display: "inline-block"
|
|
991
|
-
}, $ = {
|
|
992
|
-
backgroundColor: "currentColor"
|
|
993
|
-
}, xe = {
|
|
994
|
-
backgroundColor: "transparent"
|
|
995
|
-
}, ne = {
|
|
996
|
-
Image: "var(--svg)",
|
|
997
|
-
Repeat: "no-repeat",
|
|
998
|
-
Size: "100% 100%"
|
|
999
|
-
}, oe = {
|
|
1000
|
-
webkitMask: $,
|
|
1001
|
-
mask: $,
|
|
1002
|
-
background: xe
|
|
1003
|
-
};
|
|
1004
|
-
for (const e in oe) {
|
|
1005
|
-
const o = oe[e];
|
|
1006
|
-
for (const n in ne)
|
|
1007
|
-
o[e + n] = ne[n];
|
|
1008
|
-
}
|
|
1009
|
-
const M = {};
|
|
1010
|
-
["horizontal", "vertical"].forEach((e) => {
|
|
1011
|
-
const o = e.slice(0, 1) + "Flip";
|
|
1012
|
-
M[e + "-flip"] = o, M[e.slice(0, 1) + "-flip"] = o, M[e + "Flip"] = o;
|
|
1013
|
-
});
|
|
1014
|
-
function ie(e) {
|
|
1015
|
-
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1016
|
-
}
|
|
1017
|
-
const se = (e, o) => {
|
|
1018
|
-
const n = at(te, o), i = { ...bt }, t = o.mode || "svg", s = {}, r = o.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
1019
|
-
for (let m in o) {
|
|
1020
|
-
const a = o[m];
|
|
1021
|
-
if (a !== void 0)
|
|
1022
|
-
switch (m) {
|
|
1023
|
-
// Properties to ignore
|
|
1024
|
-
case "icon":
|
|
1025
|
-
case "style":
|
|
1026
|
-
case "onLoad":
|
|
1027
|
-
case "mode":
|
|
1028
|
-
case "ssr":
|
|
1029
|
-
break;
|
|
1030
|
-
// Boolean attributes
|
|
1031
|
-
case "inline":
|
|
1032
|
-
case "hFlip":
|
|
1033
|
-
case "vFlip":
|
|
1034
|
-
n[m] = a === !0 || a === "true" || a === 1;
|
|
1035
|
-
break;
|
|
1036
|
-
// Flip as string: 'horizontal,vertical'
|
|
1037
|
-
case "flip":
|
|
1038
|
-
typeof a == "string" && pt(n, a);
|
|
1039
|
-
break;
|
|
1040
|
-
// Color: override style
|
|
1041
|
-
case "color":
|
|
1042
|
-
s.color = a;
|
|
1043
|
-
break;
|
|
1044
|
-
// Rotation as string
|
|
1045
|
-
case "rotate":
|
|
1046
|
-
typeof a == "string" ? n[m] = ht(a) : typeof a == "number" && (n[m] = a);
|
|
1047
|
-
break;
|
|
1048
|
-
// Remove aria-hidden
|
|
1049
|
-
case "ariaHidden":
|
|
1050
|
-
case "aria-hidden":
|
|
1051
|
-
a !== !0 && a !== "true" && delete i["aria-hidden"];
|
|
1052
|
-
break;
|
|
1053
|
-
default: {
|
|
1054
|
-
const S = M[m];
|
|
1055
|
-
S ? (a === !0 || a === "true" || a === 1) && (n[S] = !0) : te[m] === void 0 && (i[m] = a);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
const u = Qe(e, n), c = u.attributes;
|
|
1060
|
-
if (n.inline && (s.verticalAlign = "-0.125em"), t === "svg") {
|
|
1061
|
-
i.style = {
|
|
1062
|
-
...s,
|
|
1063
|
-
...l
|
|
1064
|
-
}, Object.assign(i, c);
|
|
1065
|
-
let m = 0, a = o.id;
|
|
1066
|
-
return typeof a == "string" && (a = a.replace(/-/g, "_")), i.innerHTML = $e(u.body, a ? () => a + "ID" + m++ : "iconifyVue"), B("svg", i);
|
|
1067
|
-
}
|
|
1068
|
-
const { body: f, width: d, height: p } = e, g = t === "mask" || (t === "bg" ? !1 : f.indexOf("currentColor") !== -1), y = gt(f, {
|
|
1069
|
-
...c,
|
|
1070
|
-
width: d + "",
|
|
1071
|
-
height: p + ""
|
|
1072
|
-
});
|
|
1073
|
-
return i.style = {
|
|
1074
|
-
...s,
|
|
1075
|
-
"--svg": xt(y),
|
|
1076
|
-
width: ie(c.width),
|
|
1077
|
-
height: ie(c.height),
|
|
1078
|
-
...vt,
|
|
1079
|
-
...g ? $ : xe,
|
|
1080
|
-
...l
|
|
1081
|
-
}, B("span", i);
|
|
1082
|
-
};
|
|
1083
|
-
ae(!0);
|
|
1084
|
-
Ve("", Ye);
|
|
1085
|
-
if (typeof document < "u" && typeof window < "u") {
|
|
1086
|
-
const e = window;
|
|
1087
|
-
if (e.IconifyPreload !== void 0) {
|
|
1088
|
-
const o = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
1089
|
-
typeof o == "object" && o !== null && (o instanceof Array ? o : [o]).forEach((i) => {
|
|
1090
|
-
try {
|
|
1091
|
-
// Check if item is an object and not null/array
|
|
1092
|
-
(typeof i != "object" || i === null || i instanceof Array || // Check for 'icons' and 'prefix'
|
|
1093
|
-
typeof i.icons != "object" || typeof i.prefix != "string" || // Add icon set
|
|
1094
|
-
!Ae(i)) && console.error(n);
|
|
1095
|
-
} catch {
|
|
1096
|
-
console.error(n);
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
if (e.IconifyProviders !== void 0) {
|
|
1101
|
-
const o = e.IconifyProviders;
|
|
1102
|
-
if (typeof o == "object" && o !== null)
|
|
1103
|
-
for (let n in o) {
|
|
1104
|
-
const i = "IconifyProviders[" + n + "] is invalid.";
|
|
1105
|
-
try {
|
|
1106
|
-
const t = o[n];
|
|
1107
|
-
if (typeof t != "object" || !t || t.resources === void 0)
|
|
1108
|
-
continue;
|
|
1109
|
-
Ge(n, t) || console.error(i);
|
|
1110
|
-
} catch {
|
|
1111
|
-
console.error(i);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
const wt = {
|
|
1117
|
-
...E,
|
|
1118
|
-
body: ""
|
|
1119
|
-
}, kt = be((e, { emit: o }) => {
|
|
1120
|
-
const n = R(null);
|
|
1121
|
-
function i() {
|
|
1122
|
-
n.value && (n.value.abort?.(), n.value = null);
|
|
1123
|
-
}
|
|
1124
|
-
const t = R(!!e.ssr), s = R(""), r = ve(null);
|
|
1125
|
-
function l() {
|
|
1126
|
-
const c = e.icon;
|
|
1127
|
-
if (typeof c == "object" && c !== null && typeof c.body == "string")
|
|
1128
|
-
return s.value = "", {
|
|
1129
|
-
data: c
|
|
1130
|
-
};
|
|
1131
|
-
let f;
|
|
1132
|
-
if (typeof c != "string" || (f = F(c, !1, !0)) === null)
|
|
1133
|
-
return null;
|
|
1134
|
-
let d = de(f);
|
|
1135
|
-
if (!d) {
|
|
1136
|
-
const y = n.value;
|
|
1137
|
-
return (!y || y.name !== c) && (d === null ? n.value = {
|
|
1138
|
-
name: c
|
|
1139
|
-
} : n.value = {
|
|
1140
|
-
name: c,
|
|
1141
|
-
abort: ye([f], u)
|
|
1142
|
-
}), null;
|
|
1143
|
-
}
|
|
1144
|
-
i(), s.value !== c && (s.value = c, ke(() => {
|
|
1145
|
-
o("load", c);
|
|
1146
|
-
}));
|
|
1147
|
-
const p = e.customise;
|
|
1148
|
-
if (p) {
|
|
1149
|
-
d = Object.assign({}, d);
|
|
1150
|
-
const y = p(d.body, f.name, f.prefix, f.provider);
|
|
1151
|
-
typeof y == "string" && (d.body = y);
|
|
1152
|
-
}
|
|
1153
|
-
const g = ["iconify"];
|
|
1154
|
-
return f.prefix !== "" && g.push("iconify--" + f.prefix), f.provider !== "" && g.push("iconify--" + f.provider), { data: d, classes: g };
|
|
1155
|
-
}
|
|
1156
|
-
function u() {
|
|
1157
|
-
const c = l();
|
|
1158
|
-
c ? c.data !== r.value?.data && (r.value = c) : r.value = null;
|
|
1159
|
-
}
|
|
1160
|
-
return t.value ? u() : we(() => {
|
|
1161
|
-
t.value = !0, u();
|
|
1162
|
-
}), Ie(() => e.icon, u), Se(i), () => {
|
|
1163
|
-
const c = r.value;
|
|
1164
|
-
if (!c)
|
|
1165
|
-
return se(wt, e);
|
|
1166
|
-
let f = e;
|
|
1167
|
-
return c.classes && (f = {
|
|
1168
|
-
...e,
|
|
1169
|
-
class: c.classes.join(" ")
|
|
1170
|
-
}), se({
|
|
1171
|
-
...E,
|
|
1172
|
-
...c.data
|
|
1173
|
-
}, f);
|
|
1174
|
-
};
|
|
1175
|
-
}, {
|
|
1176
|
-
props: [
|
|
1177
|
-
// Icon and render mode
|
|
1178
|
-
"icon",
|
|
1179
|
-
"mode",
|
|
1180
|
-
"ssr",
|
|
1181
|
-
// Layout and style
|
|
1182
|
-
"width",
|
|
1183
|
-
"height",
|
|
1184
|
-
"style",
|
|
1185
|
-
"color",
|
|
1186
|
-
"inline",
|
|
1187
|
-
// Transformations
|
|
1188
|
-
"rotate",
|
|
1189
|
-
"hFlip",
|
|
1190
|
-
"horizontalFlip",
|
|
1191
|
-
"vFlip",
|
|
1192
|
-
"verticalFlip",
|
|
1193
|
-
"flip",
|
|
1194
|
-
// Misc
|
|
1195
|
-
"id",
|
|
1196
|
-
"ariaHidden",
|
|
1197
|
-
"customise",
|
|
1198
|
-
"title"
|
|
1199
|
-
],
|
|
1200
|
-
emits: ["load"]
|
|
1201
|
-
});
|
|
1202
|
-
export {
|
|
1203
|
-
kt as I,
|
|
1204
|
-
St as l
|
|
1205
|
-
};
|