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