@fluid-app/fluid-cli-theme-dev 0.1.172 → 0.1.174

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 (95) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +609 -181
  2. package/dist/dist-cli-preview/account-screens.css +1 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -1
  4. package/dist/dist-cli-preview/chunks/{Breadcrumb-BQKo8hPc.js → Breadcrumb-8-7shsB6.js} +1 -1
  5. package/dist/dist-cli-preview/chunks/Combobox-m3vSk0_A.js +521 -0
  6. package/dist/dist-cli-preview/chunks/{ContactsScreen-IsIZ_lQ0.js → ContactsScreen-CBjQOWmH.js} +1523 -1854
  7. package/dist/dist-cli-preview/chunks/MediaScreen-DlrLPYRf.js +8 -0
  8. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DiQkiWzc.js → MemberManagementProviders-WSjb3a8B.js} +189 -199
  9. package/dist/dist-cli-preview/chunks/MemberShareablesScreen-D-5-JyQq.js +17426 -0
  10. package/dist/dist-cli-preview/chunks/{MessagingScreen-B8ZxAE0L.js → MessagingScreen-By-jZq6v.js} +27645 -30195
  11. package/dist/dist-cli-preview/chunks/{MobileActionSheet-DMeTsLlK.js → MobileActionSheet-ERpw3qUF.js} +644 -589
  12. package/dist/dist-cli-preview/chunks/MySiteScreen-JAGvVMx-.js +1706 -0
  13. package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +9 -0
  14. package/dist/dist-cli-preview/chunks/{OrdersScreen-DrZ3SwEu.js → OrdersScreen-Cb32bBjd.js} +35 -35
  15. package/dist/dist-cli-preview/chunks/PlaylistsScreen-DgYA1qcv.js +8 -0
  16. package/dist/dist-cli-preview/chunks/PortalTenantClientProvider-CguU_uRG.js +15 -0
  17. package/dist/dist-cli-preview/chunks/{ProfileScreen-Dxspc-6p.js → ProfileScreen-CCWM6TBs.js} +454 -463
  18. package/dist/dist-cli-preview/chunks/Select-5fzq5MB-.js +940 -0
  19. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-Be0C29uw.js → SubscriptionsScreen-DLdsaVJK.js} +3 -3
  20. package/dist/dist-cli-preview/chunks/Textarea-xoKqLVgY.js +330 -0
  21. package/dist/dist-cli-preview/chunks/{account-screen-runtime-DYMunv0A.js → account-screen-runtime-CCBl8DXt.js} +866 -860
  22. package/dist/dist-cli-preview/chunks/ar-D6LJV1_E.js +679 -0
  23. package/dist/dist-cli-preview/chunks/{arrow-left-Bd7dJtIV.js → arrow-left-CTYaRdTX.js} +1 -1
  24. package/dist/dist-cli-preview/chunks/bg-C5Ldmily.js +679 -0
  25. package/dist/dist-cli-preview/chunks/bn-kfMPWNR6.js +679 -0
  26. package/dist/dist-cli-preview/chunks/{cli-preview-C7Db08Ij.js → cli-preview-CMcquUEN.js} +37 -23
  27. package/dist/dist-cli-preview/chunks/{client.gen-Ck6Pm2jV.js → client.gen-B7RMYGYu.js} +1 -1
  28. package/dist/dist-cli-preview/chunks/copy-DHN1DxE_.js +14 -0
  29. package/dist/dist-cli-preview/chunks/{countries-api-adapter-InKUzF1q.js → countries-api-adapter-B4TefdRP.js} +2 -2
  30. package/dist/dist-cli-preview/chunks/{create-card-entry-container-C9z7JILL.js → create-card-entry-container-5NqOQ4D_.js} +3612 -3932
  31. package/dist/dist-cli-preview/chunks/cs-DqEgtV8D.js +679 -0
  32. package/dist/dist-cli-preview/chunks/da-BbuvL7Gx.js +679 -0
  33. package/dist/dist-cli-preview/chunks/de-BfJ7rQig.js +679 -0
  34. package/dist/dist-cli-preview/chunks/el-BO0rLq6D.js +679 -0
  35. package/dist/dist-cli-preview/chunks/es-BEVtEUXk.js +679 -0
  36. package/dist/dist-cli-preview/chunks/eye-qMoMW7-Z.js +20 -0
  37. package/dist/dist-cli-preview/chunks/fi-DjISV3UN.js +679 -0
  38. package/dist/dist-cli-preview/chunks/fr-1fFd-aKy.js +679 -0
  39. package/dist/dist-cli-preview/chunks/he-CaT9bwVp.js +679 -0
  40. package/dist/dist-cli-preview/chunks/{hey-api-client-DGRBsZ7Y.js → hey-api-client-JMNyZwcF.js} +79 -39
  41. package/dist/dist-cli-preview/chunks/hi-DkzEm57l.js +679 -0
  42. package/dist/dist-cli-preview/chunks/hr-DqM5N_bj.js +679 -0
  43. package/dist/dist-cli-preview/chunks/hu-DiLqjo5c.js +679 -0
  44. package/dist/dist-cli-preview/chunks/id-DA1KmwgX.js +679 -0
  45. package/dist/dist-cli-preview/chunks/index-BS4PnEcu.js +353 -0
  46. package/dist/dist-cli-preview/chunks/index-BhMjUmAr.js +2572 -0
  47. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-BDjSpDoe.js → index-Dor8vM2o.js} +2417 -3035
  48. package/dist/dist-cli-preview/chunks/it-CTEVWCRz.js +679 -0
  49. package/dist/dist-cli-preview/chunks/ja-fxqg1hhg.js +679 -0
  50. package/dist/dist-cli-preview/chunks/ko-Btp1_5YS.js +679 -0
  51. package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +14 -0
  52. package/dist/dist-cli-preview/chunks/{log-out-CSPZjXTK.js → log-out-DUdRJX4l.js} +1 -1
  53. package/dist/dist-cli-preview/chunks/{map-pin-B2ScoijR.js → map-pin-DyIkpqP0.js} +1 -1
  54. package/dist/dist-cli-preview/chunks/media-vkLeBb90.js +4 -0
  55. package/dist/dist-cli-preview/chunks/member-permissions-ndhNmlOk.js +19 -0
  56. package/dist/dist-cli-preview/chunks/{mount-account-screen-5thBUz3X.js → mount-account-screen-BuQhxURX.js} +2271 -2260
  57. package/dist/dist-cli-preview/chunks/ms-DqRbmHx8.js +679 -0
  58. package/dist/dist-cli-preview/chunks/navigate-account-screen-mT0rqVLT.js +38 -0
  59. package/dist/dist-cli-preview/chunks/nl-CkPNddxO.js +679 -0
  60. package/dist/dist-cli-preview/chunks/no-ftcy0RcQ.js +679 -0
  61. package/dist/dist-cli-preview/chunks/pl-wyJLqfip.js +679 -0
  62. package/dist/dist-cli-preview/chunks/playlists-vkLeBb90.js +4 -0
  63. package/dist/dist-cli-preview/chunks/{plus-CocoE5gC.js → plus-DZjrp536.js} +1 -1
  64. package/dist/dist-cli-preview/chunks/pt-7uHLacuI.js +679 -0
  65. package/dist/dist-cli-preview/chunks/ro-Dh12ghww.js +679 -0
  66. package/dist/dist-cli-preview/chunks/ru-DFM7xWFz.js +679 -0
  67. package/dist/dist-cli-preview/chunks/{schemas-D94nZk5x.js → schemas-BTblatUV.js} +1107 -1062
  68. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-DozJp-uc.js +620 -0
  69. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-iOjKcNDj.js → sheet-haptics-context-CYrEaGtf.js} +3 -3
  70. package/dist/dist-cli-preview/chunks/sidebar-9qopXeR1.js +598 -0
  71. package/dist/dist-cli-preview/chunks/sk-CsuNYa1k.js +679 -0
  72. package/dist/dist-cli-preview/chunks/sortable.esm-Dlen88Fc.js +3283 -0
  73. package/dist/dist-cli-preview/chunks/{store-api-context-B96Ip2FB.js → store-api-context-B9pW_xao.js} +1 -1
  74. package/dist/dist-cli-preview/chunks/sv-DVrPaJbh.js +679 -0
  75. package/dist/dist-cli-preview/chunks/th-BEkMpcVW.js +679 -0
  76. package/dist/dist-cli-preview/chunks/tl-CqwwplQC.js +679 -0
  77. package/dist/dist-cli-preview/chunks/tr-XEp4ekrM.js +679 -0
  78. package/dist/dist-cli-preview/chunks/{trash-2-wVweQZMw.js → trash-2-ClRyi9iY.js} +12 -12
  79. package/dist/dist-cli-preview/chunks/uk-DWdZFWBl.js +679 -0
  80. package/dist/dist-cli-preview/chunks/use-mobile-srOt50VV.js +254 -0
  81. package/dist/dist-cli-preview/chunks/{use-optional-store-lZUz976C.js → use-optional-store-BgrOjfZJ.js} +2 -2
  82. package/dist/dist-cli-preview/chunks/{use-store-DVmgsDXy.js → use-store-CUSQx1E-.js} +25 -36
  83. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dtzov9uh.js → useInfiniteQuery-DGc8fotv.js} +1 -1
  84. package/dist/dist-cli-preview/chunks/user-Ca2sKJ-h.js +14 -0
  85. package/dist/dist-cli-preview/chunks/users-Dh7zTrKY.js +16 -0
  86. package/dist/dist-cli-preview/chunks/vi-H__PaPsC.js +679 -0
  87. package/dist/dist-cli-preview/chunks/zh_CN-B62j_w_1.js +679 -0
  88. package/dist/dist-cli-preview/chunks/zh_TW-CYUIGBvP.js +679 -0
  89. package/package.json +1 -1
  90. package/dist/dist-cli-preview/chunks/Combobox-cf11L_T-.js +0 -1455
  91. package/dist/dist-cli-preview/chunks/MySiteScreen-Dtw1rsF9.js +0 -4950
  92. package/dist/dist-cli-preview/chunks/OrdersScreen-DkltVCtr.js +0 -9
  93. package/dist/dist-cli-preview/chunks/sidebar-Ckzom4Xc.js +0 -848
  94. package/dist/dist-cli-preview/chunks/user-B81IrSgp.js +0 -31
  95. package/dist/dist-cli-preview/chunks/users-BXTjoCUz.js +0 -27
@@ -0,0 +1,2572 @@
1
+ import { c as S, l, j as b, aa as Ri, aj as ci, ab as Mi, am as B, ba as Si, aW as Ii, al as li, bb as qi, bc as Li, bd as Hi, be as $i, M as Ni, bf as L, aJ as Ki, H as Bi } from "./account-screen-runtime-CCBl8DXt.js";
2
+ import { k as ri, A as Wi, R as Gi, l as Ui, m as Yi, n as Vi } from "./MobileActionSheet-ERpw3qUF.js";
3
+ import { a as u } from "./use-store-CUSQx1E-.js";
4
+ /**
5
+ * @license lucide-react v0.575.0 - ISC
6
+ *
7
+ * This source code is licensed under the ISC license.
8
+ * See the LICENSE file in the root directory of this source tree.
9
+ */
10
+ const Ji = [
11
+ ["path", { d: "M5 12h14", key: "1ays0h" }],
12
+ ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
13
+ ], De = S("arrow-right", Ji);
14
+ /**
15
+ * @license lucide-react v0.575.0 - ISC
16
+ *
17
+ * This source code is licensed under the ISC license.
18
+ * See the LICENSE file in the root directory of this source tree.
19
+ */
20
+ const Xi = [
21
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
22
+ ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
23
+ ["path", { d: "M12 17h.01", key: "p32p05" }]
24
+ ], Ee = S("circle-question-mark", Xi);
25
+ /**
26
+ * @license lucide-react v0.575.0 - ISC
27
+ *
28
+ * This source code is licensed under the ISC license.
29
+ * See the LICENSE file in the root directory of this source tree.
30
+ */
31
+ const Qi = [
32
+ ["path", { d: "M12 15V3", key: "m9g1x1" }],
33
+ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
34
+ ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
35
+ ], ze = S("download", Qi);
36
+ /**
37
+ * @license lucide-react v0.575.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */
42
+ const Zi = [
43
+ [
44
+ "path",
45
+ {
46
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
47
+ key: "1oefj6"
48
+ }
49
+ ],
50
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
51
+ ["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
52
+ ["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
53
+ ], Ce = S("file-image", Zi);
54
+ /**
55
+ * @license lucide-react v0.575.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */
60
+ const at = [
61
+ [
62
+ "path",
63
+ {
64
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
65
+ key: "1oefj6"
66
+ }
67
+ ],
68
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
69
+ ["path", { d: "M10 9H8", key: "b1mrlr" }],
70
+ ["path", { d: "M16 13H8", key: "t4e002" }],
71
+ ["path", { d: "M16 17H8", key: "z1uh3a" }]
72
+ ], Te = S("file-text", at);
73
+ /**
74
+ * @license lucide-react v0.575.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */
79
+ const it = [
80
+ ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
81
+ ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
82
+ ], Ae = S("link", it);
83
+ /**
84
+ * @license lucide-react v0.575.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */
89
+ const tt = [
90
+ ["path", { d: "M4 5h16", key: "1tepv9" }],
91
+ ["path", { d: "M4 12h16", key: "1lakjw" }],
92
+ ["path", { d: "M4 19h16", key: "1djgab" }]
93
+ ], Oe = S("menu", tt);
94
+ /**
95
+ * @license lucide-react v0.575.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */
100
+ const et = [
101
+ ["path", { d: "M12 3v12", key: "1x0j5s" }],
102
+ ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
103
+ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
104
+ ], _e = S("upload", et);
105
+ var [ma] = Ri("Tooltip", [
106
+ ri
107
+ ]), ua = ri(), si = "TooltipProvider", nt = 700, Ca = "tooltip.open", [ot, Ra] = ma(si), di = (a) => {
108
+ const {
109
+ __scopeTooltip: i,
110
+ delayDuration: t = nt,
111
+ skipDelayDuration: e = 300,
112
+ disableHoverableContent: n = !1,
113
+ children: o
114
+ } = a, c = l.useRef(!0), r = l.useRef(!1), d = l.useRef(0);
115
+ return l.useEffect(() => {
116
+ const f = d.current;
117
+ return () => window.clearTimeout(f);
118
+ }, []), /* @__PURE__ */ b.jsx(
119
+ ot,
120
+ {
121
+ scope: i,
122
+ isOpenDelayedRef: c,
123
+ delayDuration: t,
124
+ onOpen: l.useCallback(() => {
125
+ window.clearTimeout(d.current), c.current = !1;
126
+ }, []),
127
+ onClose: l.useCallback(() => {
128
+ window.clearTimeout(d.current), d.current = window.setTimeout(
129
+ () => c.current = !0,
130
+ e
131
+ );
132
+ }, [e]),
133
+ isPointerInTransitRef: r,
134
+ onPointerInTransitChange: l.useCallback((f) => {
135
+ r.current = f;
136
+ }, []),
137
+ disableHoverableContent: n,
138
+ children: o
139
+ }
140
+ );
141
+ };
142
+ di.displayName = si;
143
+ var X = "Tooltip", [pt, Z] = ma(X), mi = (a) => {
144
+ const {
145
+ __scopeTooltip: i,
146
+ children: t,
147
+ open: e,
148
+ defaultOpen: n,
149
+ onOpenChange: o,
150
+ disableHoverableContent: c,
151
+ delayDuration: r
152
+ } = a, d = Ra(X, a.__scopeTooltip), f = ua(i), [m, x] = l.useState(null), h = Si(), v = l.useRef(0), w = c ?? d.disableHoverableContent, j = r ?? d.delayDuration, D = l.useRef(!1), [O, z] = Ii({
153
+ prop: e,
154
+ defaultProp: n ?? !1,
155
+ onChange: (_) => {
156
+ _ ? (d.onOpen(), document.dispatchEvent(new CustomEvent(Ca))) : d.onClose(), o?.(_);
157
+ },
158
+ caller: X
159
+ }), F = l.useMemo(() => O ? D.current ? "delayed-open" : "instant-open" : "closed", [O]), M = l.useCallback(() => {
160
+ window.clearTimeout(v.current), v.current = 0, D.current = !1, z(!0);
161
+ }, [z]), R = l.useCallback(() => {
162
+ window.clearTimeout(v.current), v.current = 0, z(!1);
163
+ }, [z]), U = l.useCallback(() => {
164
+ window.clearTimeout(v.current), v.current = window.setTimeout(() => {
165
+ D.current = !0, z(!0), v.current = 0;
166
+ }, j);
167
+ }, [j, z]);
168
+ return l.useEffect(() => () => {
169
+ v.current && (window.clearTimeout(v.current), v.current = 0);
170
+ }, []), /* @__PURE__ */ b.jsx(Gi, { ...f, children: /* @__PURE__ */ b.jsx(
171
+ pt,
172
+ {
173
+ scope: i,
174
+ contentId: h,
175
+ open: O,
176
+ stateAttribute: F,
177
+ trigger: m,
178
+ onTriggerChange: x,
179
+ onTriggerEnter: l.useCallback(() => {
180
+ d.isOpenDelayedRef.current ? U() : M();
181
+ }, [d.isOpenDelayedRef, U, M]),
182
+ onTriggerLeave: l.useCallback(() => {
183
+ w ? R() : (window.clearTimeout(v.current), v.current = 0);
184
+ }, [R, w]),
185
+ onOpen: M,
186
+ onClose: R,
187
+ disableHoverableContent: w,
188
+ children: t
189
+ }
190
+ ) });
191
+ };
192
+ mi.displayName = X;
193
+ var Ta = "TooltipTrigger", ui = l.forwardRef(
194
+ (a, i) => {
195
+ const { __scopeTooltip: t, ...e } = a, n = Z(Ta, t), o = Ra(Ta, t), c = ua(t), r = l.useRef(null), d = ci(i, r, n.onTriggerChange), f = l.useRef(!1), m = l.useRef(!1), x = l.useCallback(() => f.current = !1, []);
196
+ return l.useEffect(() => () => document.removeEventListener("pointerup", x), [x]), /* @__PURE__ */ b.jsx(Wi, { asChild: !0, ...c, children: /* @__PURE__ */ b.jsx(
197
+ Mi.button,
198
+ {
199
+ "aria-describedby": n.open ? n.contentId : void 0,
200
+ "data-state": n.stateAttribute,
201
+ ...e,
202
+ ref: d,
203
+ onPointerMove: B(a.onPointerMove, (h) => {
204
+ h.pointerType !== "touch" && !m.current && !o.isPointerInTransitRef.current && (n.onTriggerEnter(), m.current = !0);
205
+ }),
206
+ onPointerLeave: B(a.onPointerLeave, () => {
207
+ n.onTriggerLeave(), m.current = !1;
208
+ }),
209
+ onPointerDown: B(a.onPointerDown, () => {
210
+ n.open && n.onClose(), f.current = !0, document.addEventListener("pointerup", x, { once: !0 });
211
+ }),
212
+ onFocus: B(a.onFocus, () => {
213
+ f.current || n.onOpen();
214
+ }),
215
+ onBlur: B(a.onBlur, n.onClose),
216
+ onClick: B(a.onClick, n.onClose)
217
+ }
218
+ ) });
219
+ }
220
+ );
221
+ ui.displayName = Ta;
222
+ var Ma = "TooltipPortal", [ct, lt] = ma(Ma, {
223
+ forceMount: void 0
224
+ }), vi = (a) => {
225
+ const { __scopeTooltip: i, forceMount: t, children: e, container: n } = a, o = Z(Ma, i);
226
+ return /* @__PURE__ */ b.jsx(ct, { scope: i, forceMount: t, children: /* @__PURE__ */ b.jsx(li, { present: t || o.open, children: /* @__PURE__ */ b.jsx(qi, { asChild: !0, container: n, children: e }) }) });
227
+ };
228
+ vi.displayName = Ma;
229
+ var W = "TooltipContent", fi = l.forwardRef(
230
+ (a, i) => {
231
+ const t = lt(W, a.__scopeTooltip), { forceMount: e = t.forceMount, side: n = "top", ...o } = a, c = Z(W, a.__scopeTooltip);
232
+ return /* @__PURE__ */ b.jsx(li, { present: e || c.open, children: c.disableHoverableContent ? /* @__PURE__ */ b.jsx(xi, { side: n, ...o, ref: i }) : /* @__PURE__ */ b.jsx(rt, { side: n, ...o, ref: i }) });
233
+ }
234
+ ), rt = l.forwardRef((a, i) => {
235
+ const t = Z(W, a.__scopeTooltip), e = Ra(W, a.__scopeTooltip), n = l.useRef(null), o = ci(i, n), [c, r] = l.useState(null), { trigger: d, onClose: f } = t, m = n.current, { onPointerInTransitChange: x } = e, h = l.useCallback(() => {
236
+ r(null), x(!1);
237
+ }, [x]), v = l.useCallback(
238
+ (w, j) => {
239
+ const D = w.currentTarget, O = { x: w.clientX, y: w.clientY }, z = vt(O, D.getBoundingClientRect()), F = ft(O, z), M = xt(j.getBoundingClientRect()), R = ht([...F, ...M]);
240
+ r(R), x(!0);
241
+ },
242
+ [x]
243
+ );
244
+ return l.useEffect(() => () => h(), [h]), l.useEffect(() => {
245
+ if (d && m) {
246
+ const w = (D) => v(D, m), j = (D) => v(D, d);
247
+ return d.addEventListener("pointerleave", w), m.addEventListener("pointerleave", j), () => {
248
+ d.removeEventListener("pointerleave", w), m.removeEventListener("pointerleave", j);
249
+ };
250
+ }
251
+ }, [d, m, v, h]), l.useEffect(() => {
252
+ if (c) {
253
+ const w = (j) => {
254
+ const D = j.target, O = { x: j.clientX, y: j.clientY }, z = d?.contains(D) || m?.contains(D), F = !gt(O, c);
255
+ z ? h() : F && (h(), f());
256
+ };
257
+ return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
258
+ }
259
+ }, [d, m, c, f, h]), /* @__PURE__ */ b.jsx(xi, { ...a, ref: o });
260
+ }), [st, dt] = ma(X, { isInside: !1 }), mt = Hi("TooltipContent"), xi = l.forwardRef(
261
+ (a, i) => {
262
+ const {
263
+ __scopeTooltip: t,
264
+ children: e,
265
+ "aria-label": n,
266
+ onEscapeKeyDown: o,
267
+ onPointerDownOutside: c,
268
+ ...r
269
+ } = a, d = Z(W, t), f = ua(t), { onClose: m } = d;
270
+ return l.useEffect(() => (document.addEventListener(Ca, m), () => document.removeEventListener(Ca, m)), [m]), l.useEffect(() => {
271
+ if (d.trigger) {
272
+ const x = (h) => {
273
+ h.target?.contains(d.trigger) && m();
274
+ };
275
+ return window.addEventListener("scroll", x, { capture: !0 }), () => window.removeEventListener("scroll", x, { capture: !0 });
276
+ }
277
+ }, [d.trigger, m]), /* @__PURE__ */ b.jsx(
278
+ Li,
279
+ {
280
+ asChild: !0,
281
+ disableOutsidePointerEvents: !1,
282
+ onEscapeKeyDown: o,
283
+ onPointerDownOutside: c,
284
+ onFocusOutside: (x) => x.preventDefault(),
285
+ onDismiss: m,
286
+ children: /* @__PURE__ */ b.jsxs(
287
+ Ui,
288
+ {
289
+ "data-state": d.stateAttribute,
290
+ ...f,
291
+ ...r,
292
+ ref: i,
293
+ style: {
294
+ ...r.style,
295
+ "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
296
+ "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
297
+ "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
298
+ "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
299
+ "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
300
+ },
301
+ children: [
302
+ /* @__PURE__ */ b.jsx(mt, { children: e }),
303
+ /* @__PURE__ */ b.jsx(st, { scope: t, isInside: !0, children: /* @__PURE__ */ b.jsx(Yi, { id: d.contentId, role: "tooltip", children: n || e }) })
304
+ ]
305
+ }
306
+ )
307
+ }
308
+ );
309
+ }
310
+ );
311
+ fi.displayName = W;
312
+ var gi = "TooltipArrow", ut = l.forwardRef(
313
+ (a, i) => {
314
+ const { __scopeTooltip: t, ...e } = a, n = ua(t);
315
+ return dt(
316
+ gi,
317
+ t
318
+ ).isInside ? null : /* @__PURE__ */ b.jsx(Vi, { ...n, ...e, ref: i });
319
+ }
320
+ );
321
+ ut.displayName = gi;
322
+ function vt(a, i) {
323
+ const t = Math.abs(i.top - a.y), e = Math.abs(i.bottom - a.y), n = Math.abs(i.right - a.x), o = Math.abs(i.left - a.x);
324
+ switch (Math.min(t, e, n, o)) {
325
+ case o:
326
+ return "left";
327
+ case n:
328
+ return "right";
329
+ case t:
330
+ return "top";
331
+ case e:
332
+ return "bottom";
333
+ default:
334
+ throw new Error("unreachable");
335
+ }
336
+ }
337
+ function ft(a, i, t = 5) {
338
+ const e = [];
339
+ switch (i) {
340
+ case "top":
341
+ e.push(
342
+ { x: a.x - t, y: a.y + t },
343
+ { x: a.x + t, y: a.y + t }
344
+ );
345
+ break;
346
+ case "bottom":
347
+ e.push(
348
+ { x: a.x - t, y: a.y - t },
349
+ { x: a.x + t, y: a.y - t }
350
+ );
351
+ break;
352
+ case "left":
353
+ e.push(
354
+ { x: a.x + t, y: a.y - t },
355
+ { x: a.x + t, y: a.y + t }
356
+ );
357
+ break;
358
+ case "right":
359
+ e.push(
360
+ { x: a.x - t, y: a.y - t },
361
+ { x: a.x - t, y: a.y + t }
362
+ );
363
+ break;
364
+ }
365
+ return e;
366
+ }
367
+ function xt(a) {
368
+ const { top: i, right: t, bottom: e, left: n } = a;
369
+ return [
370
+ { x: n, y: i },
371
+ { x: t, y: i },
372
+ { x: t, y: e },
373
+ { x: n, y: e }
374
+ ];
375
+ }
376
+ function gt(a, i) {
377
+ const { x: t, y: e } = a;
378
+ let n = !1;
379
+ for (let o = 0, c = i.length - 1; o < i.length; c = o++) {
380
+ const r = i[o], d = i[c], f = r.x, m = r.y, x = d.x, h = d.y;
381
+ m > e != h > e && t < (x - f) * (e - m) / (h - m) + f && (n = !n);
382
+ }
383
+ return n;
384
+ }
385
+ function ht(a) {
386
+ const i = a.slice();
387
+ return i.sort((t, e) => t.x < e.x ? -1 : t.x > e.x ? 1 : t.y < e.y ? -1 : t.y > e.y ? 1 : 0), bt(i);
388
+ }
389
+ function bt(a) {
390
+ if (a.length <= 1) return a.slice();
391
+ const i = [];
392
+ for (let e = 0; e < a.length; e++) {
393
+ const n = a[e];
394
+ for (; i.length >= 2; ) {
395
+ const o = i[i.length - 1], c = i[i.length - 2];
396
+ if ((o.x - c.x) * (n.y - c.y) >= (o.y - c.y) * (n.x - c.x)) i.pop();
397
+ else break;
398
+ }
399
+ i.push(n);
400
+ }
401
+ i.pop();
402
+ const t = [];
403
+ for (let e = a.length - 1; e >= 0; e--) {
404
+ const n = a[e];
405
+ for (; t.length >= 2; ) {
406
+ const o = t[t.length - 1], c = t[t.length - 2];
407
+ if ((o.x - c.x) * (n.y - c.y) >= (o.y - c.y) * (n.x - c.x)) t.pop();
408
+ else break;
409
+ }
410
+ t.push(n);
411
+ }
412
+ return t.pop(), i.length === 1 && t.length === 1 && i[0].x === t[0].x && i[0].y === t[0].y ? i : i.concat(t);
413
+ }
414
+ var yt = di, wt = mi, kt = ui, jt = vi, Dt = fi;
415
+ const Pe = yt;
416
+ function Fe(a) {
417
+ return /* @__PURE__ */ b.jsx(wt, { ...a });
418
+ }
419
+ const Re = kt;
420
+ function Me({
421
+ className: a,
422
+ sideOffset: i = 4,
423
+ ...t
424
+ }) {
425
+ const e = $i();
426
+ return /* @__PURE__ */ b.jsx(jt, { container: e, children: /* @__PURE__ */ b.jsx(
427
+ Dt,
428
+ {
429
+ sideOffset: i,
430
+ className: Ni(
431
+ "animate-in bg-popover text-popover-foreground fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",
432
+ a
433
+ ),
434
+ ...t
435
+ }
436
+ ) });
437
+ }
438
+ const Et = /* @__PURE__ */ new Map([
439
+ // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
440
+ ["1km", "application/vnd.1000minds.decision-model+xml"],
441
+ ["3dml", "text/vnd.in3d.3dml"],
442
+ ["3ds", "image/x-3ds"],
443
+ ["3g2", "video/3gpp2"],
444
+ ["3gp", "video/3gp"],
445
+ ["3gpp", "video/3gpp"],
446
+ ["3mf", "model/3mf"],
447
+ ["7z", "application/x-7z-compressed"],
448
+ ["7zip", "application/x-7z-compressed"],
449
+ ["123", "application/vnd.lotus-1-2-3"],
450
+ ["aab", "application/x-authorware-bin"],
451
+ ["aac", "audio/x-acc"],
452
+ ["aam", "application/x-authorware-map"],
453
+ ["aas", "application/x-authorware-seg"],
454
+ ["abw", "application/x-abiword"],
455
+ ["ac", "application/vnd.nokia.n-gage.ac+xml"],
456
+ ["ac3", "audio/ac3"],
457
+ ["acc", "application/vnd.americandynamics.acc"],
458
+ ["ace", "application/x-ace-compressed"],
459
+ ["acu", "application/vnd.acucobol"],
460
+ ["acutc", "application/vnd.acucorp"],
461
+ ["adp", "audio/adpcm"],
462
+ ["aep", "application/vnd.audiograph"],
463
+ ["afm", "application/x-font-type1"],
464
+ ["afp", "application/vnd.ibm.modcap"],
465
+ ["ahead", "application/vnd.ahead.space"],
466
+ ["ai", "application/pdf"],
467
+ ["aif", "audio/x-aiff"],
468
+ ["aifc", "audio/x-aiff"],
469
+ ["aiff", "audio/x-aiff"],
470
+ ["air", "application/vnd.adobe.air-application-installer-package+zip"],
471
+ ["ait", "application/vnd.dvb.ait"],
472
+ ["ami", "application/vnd.amiga.ami"],
473
+ ["amr", "audio/amr"],
474
+ ["apk", "application/vnd.android.package-archive"],
475
+ ["apng", "image/apng"],
476
+ ["appcache", "text/cache-manifest"],
477
+ ["application", "application/x-ms-application"],
478
+ ["apr", "application/vnd.lotus-approach"],
479
+ ["arc", "application/x-freearc"],
480
+ ["arj", "application/x-arj"],
481
+ ["asc", "application/pgp-signature"],
482
+ ["asf", "video/x-ms-asf"],
483
+ ["asm", "text/x-asm"],
484
+ ["aso", "application/vnd.accpac.simply.aso"],
485
+ ["asx", "video/x-ms-asf"],
486
+ ["atc", "application/vnd.acucorp"],
487
+ ["atom", "application/atom+xml"],
488
+ ["atomcat", "application/atomcat+xml"],
489
+ ["atomdeleted", "application/atomdeleted+xml"],
490
+ ["atomsvc", "application/atomsvc+xml"],
491
+ ["atx", "application/vnd.antix.game-component"],
492
+ ["au", "audio/x-au"],
493
+ ["avi", "video/x-msvideo"],
494
+ ["avif", "image/avif"],
495
+ ["aw", "application/applixware"],
496
+ ["azf", "application/vnd.airzip.filesecure.azf"],
497
+ ["azs", "application/vnd.airzip.filesecure.azs"],
498
+ ["azv", "image/vnd.airzip.accelerator.azv"],
499
+ ["azw", "application/vnd.amazon.ebook"],
500
+ ["b16", "image/vnd.pco.b16"],
501
+ ["bat", "application/x-msdownload"],
502
+ ["bcpio", "application/x-bcpio"],
503
+ ["bdf", "application/x-font-bdf"],
504
+ ["bdm", "application/vnd.syncml.dm+wbxml"],
505
+ ["bdoc", "application/x-bdoc"],
506
+ ["bed", "application/vnd.realvnc.bed"],
507
+ ["bh2", "application/vnd.fujitsu.oasysprs"],
508
+ ["bin", "application/octet-stream"],
509
+ ["blb", "application/x-blorb"],
510
+ ["blorb", "application/x-blorb"],
511
+ ["bmi", "application/vnd.bmi"],
512
+ ["bmml", "application/vnd.balsamiq.bmml+xml"],
513
+ ["bmp", "image/bmp"],
514
+ ["book", "application/vnd.framemaker"],
515
+ ["box", "application/vnd.previewsystems.box"],
516
+ ["boz", "application/x-bzip2"],
517
+ ["bpk", "application/octet-stream"],
518
+ ["bpmn", "application/octet-stream"],
519
+ ["bsp", "model/vnd.valve.source.compiled-map"],
520
+ ["btif", "image/prs.btif"],
521
+ ["buffer", "application/octet-stream"],
522
+ ["bz", "application/x-bzip"],
523
+ ["bz2", "application/x-bzip2"],
524
+ ["c", "text/x-c"],
525
+ ["c4d", "application/vnd.clonk.c4group"],
526
+ ["c4f", "application/vnd.clonk.c4group"],
527
+ ["c4g", "application/vnd.clonk.c4group"],
528
+ ["c4p", "application/vnd.clonk.c4group"],
529
+ ["c4u", "application/vnd.clonk.c4group"],
530
+ ["c11amc", "application/vnd.cluetrust.cartomobile-config"],
531
+ ["c11amz", "application/vnd.cluetrust.cartomobile-config-pkg"],
532
+ ["cab", "application/vnd.ms-cab-compressed"],
533
+ ["caf", "audio/x-caf"],
534
+ ["cap", "application/vnd.tcpdump.pcap"],
535
+ ["car", "application/vnd.curl.car"],
536
+ ["cat", "application/vnd.ms-pki.seccat"],
537
+ ["cb7", "application/x-cbr"],
538
+ ["cba", "application/x-cbr"],
539
+ ["cbr", "application/x-cbr"],
540
+ ["cbt", "application/x-cbr"],
541
+ ["cbz", "application/x-cbr"],
542
+ ["cc", "text/x-c"],
543
+ ["cco", "application/x-cocoa"],
544
+ ["cct", "application/x-director"],
545
+ ["ccxml", "application/ccxml+xml"],
546
+ ["cdbcmsg", "application/vnd.contact.cmsg"],
547
+ ["cda", "application/x-cdf"],
548
+ ["cdf", "application/x-netcdf"],
549
+ ["cdfx", "application/cdfx+xml"],
550
+ ["cdkey", "application/vnd.mediastation.cdkey"],
551
+ ["cdmia", "application/cdmi-capability"],
552
+ ["cdmic", "application/cdmi-container"],
553
+ ["cdmid", "application/cdmi-domain"],
554
+ ["cdmio", "application/cdmi-object"],
555
+ ["cdmiq", "application/cdmi-queue"],
556
+ ["cdr", "application/cdr"],
557
+ ["cdx", "chemical/x-cdx"],
558
+ ["cdxml", "application/vnd.chemdraw+xml"],
559
+ ["cdy", "application/vnd.cinderella"],
560
+ ["cer", "application/pkix-cert"],
561
+ ["cfs", "application/x-cfs-compressed"],
562
+ ["cgm", "image/cgm"],
563
+ ["chat", "application/x-chat"],
564
+ ["chm", "application/vnd.ms-htmlhelp"],
565
+ ["chrt", "application/vnd.kde.kchart"],
566
+ ["cif", "chemical/x-cif"],
567
+ ["cii", "application/vnd.anser-web-certificate-issue-initiation"],
568
+ ["cil", "application/vnd.ms-artgalry"],
569
+ ["cjs", "application/node"],
570
+ ["cla", "application/vnd.claymore"],
571
+ ["class", "application/octet-stream"],
572
+ ["clkk", "application/vnd.crick.clicker.keyboard"],
573
+ ["clkp", "application/vnd.crick.clicker.palette"],
574
+ ["clkt", "application/vnd.crick.clicker.template"],
575
+ ["clkw", "application/vnd.crick.clicker.wordbank"],
576
+ ["clkx", "application/vnd.crick.clicker"],
577
+ ["clp", "application/x-msclip"],
578
+ ["cmc", "application/vnd.cosmocaller"],
579
+ ["cmdf", "chemical/x-cmdf"],
580
+ ["cml", "chemical/x-cml"],
581
+ ["cmp", "application/vnd.yellowriver-custom-menu"],
582
+ ["cmx", "image/x-cmx"],
583
+ ["cod", "application/vnd.rim.cod"],
584
+ ["coffee", "text/coffeescript"],
585
+ ["com", "application/x-msdownload"],
586
+ ["conf", "text/plain"],
587
+ ["cpio", "application/x-cpio"],
588
+ ["cpp", "text/x-c"],
589
+ ["cpt", "application/mac-compactpro"],
590
+ ["crd", "application/x-mscardfile"],
591
+ ["crl", "application/pkix-crl"],
592
+ ["crt", "application/x-x509-ca-cert"],
593
+ ["crx", "application/x-chrome-extension"],
594
+ ["cryptonote", "application/vnd.rig.cryptonote"],
595
+ ["csh", "application/x-csh"],
596
+ ["csl", "application/vnd.citationstyles.style+xml"],
597
+ ["csml", "chemical/x-csml"],
598
+ ["csp", "application/vnd.commonspace"],
599
+ ["csr", "application/octet-stream"],
600
+ ["css", "text/css"],
601
+ ["cst", "application/x-director"],
602
+ ["csv", "text/csv"],
603
+ ["cu", "application/cu-seeme"],
604
+ ["curl", "text/vnd.curl"],
605
+ ["cww", "application/prs.cww"],
606
+ ["cxt", "application/x-director"],
607
+ ["cxx", "text/x-c"],
608
+ ["dae", "model/vnd.collada+xml"],
609
+ ["daf", "application/vnd.mobius.daf"],
610
+ ["dart", "application/vnd.dart"],
611
+ ["dataless", "application/vnd.fdsn.seed"],
612
+ ["davmount", "application/davmount+xml"],
613
+ ["dbf", "application/vnd.dbf"],
614
+ ["dbk", "application/docbook+xml"],
615
+ ["dcr", "application/x-director"],
616
+ ["dcurl", "text/vnd.curl.dcurl"],
617
+ ["dd2", "application/vnd.oma.dd2+xml"],
618
+ ["ddd", "application/vnd.fujixerox.ddd"],
619
+ ["ddf", "application/vnd.syncml.dmddf+xml"],
620
+ ["dds", "image/vnd.ms-dds"],
621
+ ["deb", "application/x-debian-package"],
622
+ ["def", "text/plain"],
623
+ ["deploy", "application/octet-stream"],
624
+ ["der", "application/x-x509-ca-cert"],
625
+ ["dfac", "application/vnd.dreamfactory"],
626
+ ["dgc", "application/x-dgc-compressed"],
627
+ ["dic", "text/x-c"],
628
+ ["dir", "application/x-director"],
629
+ ["dis", "application/vnd.mobius.dis"],
630
+ ["disposition-notification", "message/disposition-notification"],
631
+ ["dist", "application/octet-stream"],
632
+ ["distz", "application/octet-stream"],
633
+ ["djv", "image/vnd.djvu"],
634
+ ["djvu", "image/vnd.djvu"],
635
+ ["dll", "application/octet-stream"],
636
+ ["dmg", "application/x-apple-diskimage"],
637
+ ["dmn", "application/octet-stream"],
638
+ ["dmp", "application/vnd.tcpdump.pcap"],
639
+ ["dms", "application/octet-stream"],
640
+ ["dna", "application/vnd.dna"],
641
+ ["doc", "application/msword"],
642
+ ["docm", "application/vnd.ms-word.template.macroEnabled.12"],
643
+ ["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
644
+ ["dot", "application/msword"],
645
+ ["dotm", "application/vnd.ms-word.template.macroEnabled.12"],
646
+ ["dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
647
+ ["dp", "application/vnd.osgi.dp"],
648
+ ["dpg", "application/vnd.dpgraph"],
649
+ ["dra", "audio/vnd.dra"],
650
+ ["drle", "image/dicom-rle"],
651
+ ["dsc", "text/prs.lines.tag"],
652
+ ["dssc", "application/dssc+der"],
653
+ ["dtb", "application/x-dtbook+xml"],
654
+ ["dtd", "application/xml-dtd"],
655
+ ["dts", "audio/vnd.dts"],
656
+ ["dtshd", "audio/vnd.dts.hd"],
657
+ ["dump", "application/octet-stream"],
658
+ ["dvb", "video/vnd.dvb.file"],
659
+ ["dvi", "application/x-dvi"],
660
+ ["dwd", "application/atsc-dwd+xml"],
661
+ ["dwf", "model/vnd.dwf"],
662
+ ["dwg", "image/vnd.dwg"],
663
+ ["dxf", "image/vnd.dxf"],
664
+ ["dxp", "application/vnd.spotfire.dxp"],
665
+ ["dxr", "application/x-director"],
666
+ ["ear", "application/java-archive"],
667
+ ["ecelp4800", "audio/vnd.nuera.ecelp4800"],
668
+ ["ecelp7470", "audio/vnd.nuera.ecelp7470"],
669
+ ["ecelp9600", "audio/vnd.nuera.ecelp9600"],
670
+ ["ecma", "application/ecmascript"],
671
+ ["edm", "application/vnd.novadigm.edm"],
672
+ ["edx", "application/vnd.novadigm.edx"],
673
+ ["efif", "application/vnd.picsel"],
674
+ ["ei6", "application/vnd.pg.osasli"],
675
+ ["elc", "application/octet-stream"],
676
+ ["emf", "image/emf"],
677
+ ["eml", "message/rfc822"],
678
+ ["emma", "application/emma+xml"],
679
+ ["emotionml", "application/emotionml+xml"],
680
+ ["emz", "application/x-msmetafile"],
681
+ ["eol", "audio/vnd.digital-winds"],
682
+ ["eot", "application/vnd.ms-fontobject"],
683
+ ["eps", "application/postscript"],
684
+ ["epub", "application/epub+zip"],
685
+ ["es", "application/ecmascript"],
686
+ ["es3", "application/vnd.eszigno3+xml"],
687
+ ["esa", "application/vnd.osgi.subsystem"],
688
+ ["esf", "application/vnd.epson.esf"],
689
+ ["et3", "application/vnd.eszigno3+xml"],
690
+ ["etx", "text/x-setext"],
691
+ ["eva", "application/x-eva"],
692
+ ["evy", "application/x-envoy"],
693
+ ["exe", "application/octet-stream"],
694
+ ["exi", "application/exi"],
695
+ ["exp", "application/express"],
696
+ ["exr", "image/aces"],
697
+ ["ext", "application/vnd.novadigm.ext"],
698
+ ["ez", "application/andrew-inset"],
699
+ ["ez2", "application/vnd.ezpix-album"],
700
+ ["ez3", "application/vnd.ezpix-package"],
701
+ ["f", "text/x-fortran"],
702
+ ["f4v", "video/mp4"],
703
+ ["f77", "text/x-fortran"],
704
+ ["f90", "text/x-fortran"],
705
+ ["fbs", "image/vnd.fastbidsheet"],
706
+ ["fcdt", "application/vnd.adobe.formscentral.fcdt"],
707
+ ["fcs", "application/vnd.isac.fcs"],
708
+ ["fdf", "application/vnd.fdf"],
709
+ ["fdt", "application/fdt+xml"],
710
+ ["fe_launch", "application/vnd.denovo.fcselayout-link"],
711
+ ["fg5", "application/vnd.fujitsu.oasysgp"],
712
+ ["fgd", "application/x-director"],
713
+ ["fh", "image/x-freehand"],
714
+ ["fh4", "image/x-freehand"],
715
+ ["fh5", "image/x-freehand"],
716
+ ["fh7", "image/x-freehand"],
717
+ ["fhc", "image/x-freehand"],
718
+ ["fig", "application/x-xfig"],
719
+ ["fits", "image/fits"],
720
+ ["flac", "audio/x-flac"],
721
+ ["fli", "video/x-fli"],
722
+ ["flo", "application/vnd.micrografx.flo"],
723
+ ["flv", "video/x-flv"],
724
+ ["flw", "application/vnd.kde.kivio"],
725
+ ["flx", "text/vnd.fmi.flexstor"],
726
+ ["fly", "text/vnd.fly"],
727
+ ["fm", "application/vnd.framemaker"],
728
+ ["fnc", "application/vnd.frogans.fnc"],
729
+ ["fo", "application/vnd.software602.filler.form+xml"],
730
+ ["for", "text/x-fortran"],
731
+ ["fpx", "image/vnd.fpx"],
732
+ ["frame", "application/vnd.framemaker"],
733
+ ["fsc", "application/vnd.fsc.weblaunch"],
734
+ ["fst", "image/vnd.fst"],
735
+ ["ftc", "application/vnd.fluxtime.clip"],
736
+ ["fti", "application/vnd.anser-web-funds-transfer-initiation"],
737
+ ["fvt", "video/vnd.fvt"],
738
+ ["fxp", "application/vnd.adobe.fxp"],
739
+ ["fxpl", "application/vnd.adobe.fxp"],
740
+ ["fzs", "application/vnd.fuzzysheet"],
741
+ ["g2w", "application/vnd.geoplan"],
742
+ ["g3", "image/g3fax"],
743
+ ["g3w", "application/vnd.geospace"],
744
+ ["gac", "application/vnd.groove-account"],
745
+ ["gam", "application/x-tads"],
746
+ ["gbr", "application/rpki-ghostbusters"],
747
+ ["gca", "application/x-gca-compressed"],
748
+ ["gdl", "model/vnd.gdl"],
749
+ ["gdoc", "application/vnd.google-apps.document"],
750
+ ["geo", "application/vnd.dynageo"],
751
+ ["geojson", "application/geo+json"],
752
+ ["gex", "application/vnd.geometry-explorer"],
753
+ ["ggb", "application/vnd.geogebra.file"],
754
+ ["ggt", "application/vnd.geogebra.tool"],
755
+ ["ghf", "application/vnd.groove-help"],
756
+ ["gif", "image/gif"],
757
+ ["gim", "application/vnd.groove-identity-message"],
758
+ ["glb", "model/gltf-binary"],
759
+ ["gltf", "model/gltf+json"],
760
+ ["gml", "application/gml+xml"],
761
+ ["gmx", "application/vnd.gmx"],
762
+ ["gnumeric", "application/x-gnumeric"],
763
+ ["gpg", "application/gpg-keys"],
764
+ ["gph", "application/vnd.flographit"],
765
+ ["gpx", "application/gpx+xml"],
766
+ ["gqf", "application/vnd.grafeq"],
767
+ ["gqs", "application/vnd.grafeq"],
768
+ ["gram", "application/srgs"],
769
+ ["gramps", "application/x-gramps-xml"],
770
+ ["gre", "application/vnd.geometry-explorer"],
771
+ ["grv", "application/vnd.groove-injector"],
772
+ ["grxml", "application/srgs+xml"],
773
+ ["gsf", "application/x-font-ghostscript"],
774
+ ["gsheet", "application/vnd.google-apps.spreadsheet"],
775
+ ["gslides", "application/vnd.google-apps.presentation"],
776
+ ["gtar", "application/x-gtar"],
777
+ ["gtm", "application/vnd.groove-tool-message"],
778
+ ["gtw", "model/vnd.gtw"],
779
+ ["gv", "text/vnd.graphviz"],
780
+ ["gxf", "application/gxf"],
781
+ ["gxt", "application/vnd.geonext"],
782
+ ["gz", "application/gzip"],
783
+ ["gzip", "application/gzip"],
784
+ ["h", "text/x-c"],
785
+ ["h261", "video/h261"],
786
+ ["h263", "video/h263"],
787
+ ["h264", "video/h264"],
788
+ ["hal", "application/vnd.hal+xml"],
789
+ ["hbci", "application/vnd.hbci"],
790
+ ["hbs", "text/x-handlebars-template"],
791
+ ["hdd", "application/x-virtualbox-hdd"],
792
+ ["hdf", "application/x-hdf"],
793
+ ["heic", "image/heic"],
794
+ ["heics", "image/heic-sequence"],
795
+ ["heif", "image/heif"],
796
+ ["heifs", "image/heif-sequence"],
797
+ ["hej2", "image/hej2k"],
798
+ ["held", "application/atsc-held+xml"],
799
+ ["hh", "text/x-c"],
800
+ ["hjson", "application/hjson"],
801
+ ["hlp", "application/winhlp"],
802
+ ["hpgl", "application/vnd.hp-hpgl"],
803
+ ["hpid", "application/vnd.hp-hpid"],
804
+ ["hps", "application/vnd.hp-hps"],
805
+ ["hqx", "application/mac-binhex40"],
806
+ ["hsj2", "image/hsj2"],
807
+ ["htc", "text/x-component"],
808
+ ["htke", "application/vnd.kenameaapp"],
809
+ ["htm", "text/html"],
810
+ ["html", "text/html"],
811
+ ["hvd", "application/vnd.yamaha.hv-dic"],
812
+ ["hvp", "application/vnd.yamaha.hv-voice"],
813
+ ["hvs", "application/vnd.yamaha.hv-script"],
814
+ ["i2g", "application/vnd.intergeo"],
815
+ ["icc", "application/vnd.iccprofile"],
816
+ ["ice", "x-conference/x-cooltalk"],
817
+ ["icm", "application/vnd.iccprofile"],
818
+ ["ico", "image/x-icon"],
819
+ ["ics", "text/calendar"],
820
+ ["ief", "image/ief"],
821
+ ["ifb", "text/calendar"],
822
+ ["ifm", "application/vnd.shana.informed.formdata"],
823
+ ["iges", "model/iges"],
824
+ ["igl", "application/vnd.igloader"],
825
+ ["igm", "application/vnd.insors.igm"],
826
+ ["igs", "model/iges"],
827
+ ["igx", "application/vnd.micrografx.igx"],
828
+ ["iif", "application/vnd.shana.informed.interchange"],
829
+ ["img", "application/octet-stream"],
830
+ ["imp", "application/vnd.accpac.simply.imp"],
831
+ ["ims", "application/vnd.ms-ims"],
832
+ ["in", "text/plain"],
833
+ ["ini", "text/plain"],
834
+ ["ink", "application/inkml+xml"],
835
+ ["inkml", "application/inkml+xml"],
836
+ ["install", "application/x-install-instructions"],
837
+ ["iota", "application/vnd.astraea-software.iota"],
838
+ ["ipfix", "application/ipfix"],
839
+ ["ipk", "application/vnd.shana.informed.package"],
840
+ ["irm", "application/vnd.ibm.rights-management"],
841
+ ["irp", "application/vnd.irepository.package+xml"],
842
+ ["iso", "application/x-iso9660-image"],
843
+ ["itp", "application/vnd.shana.informed.formtemplate"],
844
+ ["its", "application/its+xml"],
845
+ ["ivp", "application/vnd.immervision-ivp"],
846
+ ["ivu", "application/vnd.immervision-ivu"],
847
+ ["jad", "text/vnd.sun.j2me.app-descriptor"],
848
+ ["jade", "text/jade"],
849
+ ["jam", "application/vnd.jam"],
850
+ ["jar", "application/java-archive"],
851
+ ["jardiff", "application/x-java-archive-diff"],
852
+ ["java", "text/x-java-source"],
853
+ ["jhc", "image/jphc"],
854
+ ["jisp", "application/vnd.jisp"],
855
+ ["jls", "image/jls"],
856
+ ["jlt", "application/vnd.hp-jlyt"],
857
+ ["jng", "image/x-jng"],
858
+ ["jnlp", "application/x-java-jnlp-file"],
859
+ ["joda", "application/vnd.joost.joda-archive"],
860
+ ["jp2", "image/jp2"],
861
+ ["jpe", "image/jpeg"],
862
+ ["jpeg", "image/jpeg"],
863
+ ["jpf", "image/jpx"],
864
+ ["jpg", "image/jpeg"],
865
+ ["jpg2", "image/jp2"],
866
+ ["jpgm", "video/jpm"],
867
+ ["jpgv", "video/jpeg"],
868
+ ["jph", "image/jph"],
869
+ ["jpm", "video/jpm"],
870
+ ["jpx", "image/jpx"],
871
+ ["js", "application/javascript"],
872
+ ["json", "application/json"],
873
+ ["json5", "application/json5"],
874
+ ["jsonld", "application/ld+json"],
875
+ // https://jsonlines.org/
876
+ ["jsonl", "application/jsonl"],
877
+ ["jsonml", "application/jsonml+json"],
878
+ ["jsx", "text/jsx"],
879
+ ["jxr", "image/jxr"],
880
+ ["jxra", "image/jxra"],
881
+ ["jxrs", "image/jxrs"],
882
+ ["jxs", "image/jxs"],
883
+ ["jxsc", "image/jxsc"],
884
+ ["jxsi", "image/jxsi"],
885
+ ["jxss", "image/jxss"],
886
+ ["kar", "audio/midi"],
887
+ ["karbon", "application/vnd.kde.karbon"],
888
+ ["kdb", "application/octet-stream"],
889
+ ["kdbx", "application/x-keepass2"],
890
+ ["key", "application/x-iwork-keynote-sffkey"],
891
+ ["kfo", "application/vnd.kde.kformula"],
892
+ ["kia", "application/vnd.kidspiration"],
893
+ ["kml", "application/vnd.google-earth.kml+xml"],
894
+ ["kmz", "application/vnd.google-earth.kmz"],
895
+ ["kne", "application/vnd.kinar"],
896
+ ["knp", "application/vnd.kinar"],
897
+ ["kon", "application/vnd.kde.kontour"],
898
+ ["kpr", "application/vnd.kde.kpresenter"],
899
+ ["kpt", "application/vnd.kde.kpresenter"],
900
+ ["kpxx", "application/vnd.ds-keypoint"],
901
+ ["ksp", "application/vnd.kde.kspread"],
902
+ ["ktr", "application/vnd.kahootz"],
903
+ ["ktx", "image/ktx"],
904
+ ["ktx2", "image/ktx2"],
905
+ ["ktz", "application/vnd.kahootz"],
906
+ ["kwd", "application/vnd.kde.kword"],
907
+ ["kwt", "application/vnd.kde.kword"],
908
+ ["lasxml", "application/vnd.las.las+xml"],
909
+ ["latex", "application/x-latex"],
910
+ ["lbd", "application/vnd.llamagraphics.life-balance.desktop"],
911
+ ["lbe", "application/vnd.llamagraphics.life-balance.exchange+xml"],
912
+ ["les", "application/vnd.hhe.lesson-player"],
913
+ ["less", "text/less"],
914
+ ["lgr", "application/lgr+xml"],
915
+ ["lha", "application/octet-stream"],
916
+ ["link66", "application/vnd.route66.link66+xml"],
917
+ ["list", "text/plain"],
918
+ ["list3820", "application/vnd.ibm.modcap"],
919
+ ["listafp", "application/vnd.ibm.modcap"],
920
+ ["litcoffee", "text/coffeescript"],
921
+ ["lnk", "application/x-ms-shortcut"],
922
+ ["log", "text/plain"],
923
+ ["lostxml", "application/lost+xml"],
924
+ ["lrf", "application/octet-stream"],
925
+ ["lrm", "application/vnd.ms-lrm"],
926
+ ["ltf", "application/vnd.frogans.ltf"],
927
+ ["lua", "text/x-lua"],
928
+ ["luac", "application/x-lua-bytecode"],
929
+ ["lvp", "audio/vnd.lucent.voice"],
930
+ ["lwp", "application/vnd.lotus-wordpro"],
931
+ ["lzh", "application/octet-stream"],
932
+ ["m1v", "video/mpeg"],
933
+ ["m2a", "audio/mpeg"],
934
+ ["m2v", "video/mpeg"],
935
+ ["m3a", "audio/mpeg"],
936
+ ["m3u", "text/plain"],
937
+ ["m3u8", "application/vnd.apple.mpegurl"],
938
+ ["m4a", "audio/x-m4a"],
939
+ ["m4p", "application/mp4"],
940
+ ["m4s", "video/iso.segment"],
941
+ ["m4u", "application/vnd.mpegurl"],
942
+ ["m4v", "video/x-m4v"],
943
+ ["m13", "application/x-msmediaview"],
944
+ ["m14", "application/x-msmediaview"],
945
+ ["m21", "application/mp21"],
946
+ ["ma", "application/mathematica"],
947
+ ["mads", "application/mads+xml"],
948
+ ["maei", "application/mmt-aei+xml"],
949
+ ["mag", "application/vnd.ecowin.chart"],
950
+ ["maker", "application/vnd.framemaker"],
951
+ ["man", "text/troff"],
952
+ ["manifest", "text/cache-manifest"],
953
+ ["map", "application/json"],
954
+ ["mar", "application/octet-stream"],
955
+ ["markdown", "text/markdown"],
956
+ ["mathml", "application/mathml+xml"],
957
+ ["mb", "application/mathematica"],
958
+ ["mbk", "application/vnd.mobius.mbk"],
959
+ ["mbox", "application/mbox"],
960
+ ["mc1", "application/vnd.medcalcdata"],
961
+ ["mcd", "application/vnd.mcd"],
962
+ ["mcurl", "text/vnd.curl.mcurl"],
963
+ ["md", "text/markdown"],
964
+ ["mdb", "application/x-msaccess"],
965
+ ["mdi", "image/vnd.ms-modi"],
966
+ ["mdx", "text/mdx"],
967
+ ["me", "text/troff"],
968
+ ["mesh", "model/mesh"],
969
+ ["meta4", "application/metalink4+xml"],
970
+ ["metalink", "application/metalink+xml"],
971
+ ["mets", "application/mets+xml"],
972
+ ["mfm", "application/vnd.mfmp"],
973
+ ["mft", "application/rpki-manifest"],
974
+ ["mgp", "application/vnd.osgeo.mapguide.package"],
975
+ ["mgz", "application/vnd.proteus.magazine"],
976
+ ["mid", "audio/midi"],
977
+ ["midi", "audio/midi"],
978
+ ["mie", "application/x-mie"],
979
+ ["mif", "application/vnd.mif"],
980
+ ["mime", "message/rfc822"],
981
+ ["mj2", "video/mj2"],
982
+ ["mjp2", "video/mj2"],
983
+ ["mjs", "application/javascript"],
984
+ ["mk3d", "video/x-matroska"],
985
+ ["mka", "audio/x-matroska"],
986
+ ["mkd", "text/x-markdown"],
987
+ ["mks", "video/x-matroska"],
988
+ ["mkv", "video/x-matroska"],
989
+ ["mlp", "application/vnd.dolby.mlp"],
990
+ ["mmd", "application/vnd.chipnuts.karaoke-mmd"],
991
+ ["mmf", "application/vnd.smaf"],
992
+ ["mml", "text/mathml"],
993
+ ["mmr", "image/vnd.fujixerox.edmics-mmr"],
994
+ ["mng", "video/x-mng"],
995
+ ["mny", "application/x-msmoney"],
996
+ ["mobi", "application/x-mobipocket-ebook"],
997
+ ["mods", "application/mods+xml"],
998
+ ["mov", "video/quicktime"],
999
+ ["movie", "video/x-sgi-movie"],
1000
+ ["mp2", "audio/mpeg"],
1001
+ ["mp2a", "audio/mpeg"],
1002
+ ["mp3", "audio/mpeg"],
1003
+ ["mp4", "video/mp4"],
1004
+ ["mp4a", "audio/mp4"],
1005
+ ["mp4s", "application/mp4"],
1006
+ ["mp4v", "video/mp4"],
1007
+ ["mp21", "application/mp21"],
1008
+ ["mpc", "application/vnd.mophun.certificate"],
1009
+ ["mpd", "application/dash+xml"],
1010
+ ["mpe", "video/mpeg"],
1011
+ ["mpeg", "video/mpeg"],
1012
+ ["mpg", "video/mpeg"],
1013
+ ["mpg4", "video/mp4"],
1014
+ ["mpga", "audio/mpeg"],
1015
+ ["mpkg", "application/vnd.apple.installer+xml"],
1016
+ ["mpm", "application/vnd.blueice.multipass"],
1017
+ ["mpn", "application/vnd.mophun.application"],
1018
+ ["mpp", "application/vnd.ms-project"],
1019
+ ["mpt", "application/vnd.ms-project"],
1020
+ ["mpy", "application/vnd.ibm.minipay"],
1021
+ ["mqy", "application/vnd.mobius.mqy"],
1022
+ ["mrc", "application/marc"],
1023
+ ["mrcx", "application/marcxml+xml"],
1024
+ ["ms", "text/troff"],
1025
+ ["mscml", "application/mediaservercontrol+xml"],
1026
+ ["mseed", "application/vnd.fdsn.mseed"],
1027
+ ["mseq", "application/vnd.mseq"],
1028
+ ["msf", "application/vnd.epson.msf"],
1029
+ ["msg", "application/vnd.ms-outlook"],
1030
+ ["msh", "model/mesh"],
1031
+ ["msi", "application/x-msdownload"],
1032
+ ["msl", "application/vnd.mobius.msl"],
1033
+ ["msm", "application/octet-stream"],
1034
+ ["msp", "application/octet-stream"],
1035
+ ["msty", "application/vnd.muvee.style"],
1036
+ ["mtl", "model/mtl"],
1037
+ ["mts", "model/vnd.mts"],
1038
+ ["mus", "application/vnd.musician"],
1039
+ ["musd", "application/mmt-usd+xml"],
1040
+ ["musicxml", "application/vnd.recordare.musicxml+xml"],
1041
+ ["mvb", "application/x-msmediaview"],
1042
+ ["mvt", "application/vnd.mapbox-vector-tile"],
1043
+ ["mwf", "application/vnd.mfer"],
1044
+ ["mxf", "application/mxf"],
1045
+ ["mxl", "application/vnd.recordare.musicxml"],
1046
+ ["mxmf", "audio/mobile-xmf"],
1047
+ ["mxml", "application/xv+xml"],
1048
+ ["mxs", "application/vnd.triscape.mxs"],
1049
+ ["mxu", "video/vnd.mpegurl"],
1050
+ ["n-gage", "application/vnd.nokia.n-gage.symbian.install"],
1051
+ ["n3", "text/n3"],
1052
+ ["nb", "application/mathematica"],
1053
+ ["nbp", "application/vnd.wolfram.player"],
1054
+ ["nc", "application/x-netcdf"],
1055
+ ["ncx", "application/x-dtbncx+xml"],
1056
+ ["nfo", "text/x-nfo"],
1057
+ ["ngdat", "application/vnd.nokia.n-gage.data"],
1058
+ ["nitf", "application/vnd.nitf"],
1059
+ ["nlu", "application/vnd.neurolanguage.nlu"],
1060
+ ["nml", "application/vnd.enliven"],
1061
+ ["nnd", "application/vnd.noblenet-directory"],
1062
+ ["nns", "application/vnd.noblenet-sealer"],
1063
+ ["nnw", "application/vnd.noblenet-web"],
1064
+ ["npx", "image/vnd.net-fpx"],
1065
+ ["nq", "application/n-quads"],
1066
+ ["nsc", "application/x-conference"],
1067
+ ["nsf", "application/vnd.lotus-notes"],
1068
+ ["nt", "application/n-triples"],
1069
+ ["ntf", "application/vnd.nitf"],
1070
+ ["numbers", "application/x-iwork-numbers-sffnumbers"],
1071
+ ["nzb", "application/x-nzb"],
1072
+ ["oa2", "application/vnd.fujitsu.oasys2"],
1073
+ ["oa3", "application/vnd.fujitsu.oasys3"],
1074
+ ["oas", "application/vnd.fujitsu.oasys"],
1075
+ ["obd", "application/x-msbinder"],
1076
+ ["obgx", "application/vnd.openblox.game+xml"],
1077
+ ["obj", "model/obj"],
1078
+ ["oda", "application/oda"],
1079
+ ["odb", "application/vnd.oasis.opendocument.database"],
1080
+ ["odc", "application/vnd.oasis.opendocument.chart"],
1081
+ ["odf", "application/vnd.oasis.opendocument.formula"],
1082
+ ["odft", "application/vnd.oasis.opendocument.formula-template"],
1083
+ ["odg", "application/vnd.oasis.opendocument.graphics"],
1084
+ ["odi", "application/vnd.oasis.opendocument.image"],
1085
+ ["odm", "application/vnd.oasis.opendocument.text-master"],
1086
+ ["odp", "application/vnd.oasis.opendocument.presentation"],
1087
+ ["ods", "application/vnd.oasis.opendocument.spreadsheet"],
1088
+ ["odt", "application/vnd.oasis.opendocument.text"],
1089
+ ["oga", "audio/ogg"],
1090
+ ["ogex", "model/vnd.opengex"],
1091
+ ["ogg", "audio/ogg"],
1092
+ ["ogv", "video/ogg"],
1093
+ ["ogx", "application/ogg"],
1094
+ ["omdoc", "application/omdoc+xml"],
1095
+ ["onepkg", "application/onenote"],
1096
+ ["onetmp", "application/onenote"],
1097
+ ["onetoc", "application/onenote"],
1098
+ ["onetoc2", "application/onenote"],
1099
+ ["opf", "application/oebps-package+xml"],
1100
+ ["opml", "text/x-opml"],
1101
+ ["oprc", "application/vnd.palm"],
1102
+ ["opus", "audio/ogg"],
1103
+ ["org", "text/x-org"],
1104
+ ["osf", "application/vnd.yamaha.openscoreformat"],
1105
+ ["osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml"],
1106
+ ["osm", "application/vnd.openstreetmap.data+xml"],
1107
+ ["otc", "application/vnd.oasis.opendocument.chart-template"],
1108
+ ["otf", "font/otf"],
1109
+ ["otg", "application/vnd.oasis.opendocument.graphics-template"],
1110
+ ["oth", "application/vnd.oasis.opendocument.text-web"],
1111
+ ["oti", "application/vnd.oasis.opendocument.image-template"],
1112
+ ["otp", "application/vnd.oasis.opendocument.presentation-template"],
1113
+ ["ots", "application/vnd.oasis.opendocument.spreadsheet-template"],
1114
+ ["ott", "application/vnd.oasis.opendocument.text-template"],
1115
+ ["ova", "application/x-virtualbox-ova"],
1116
+ ["ovf", "application/x-virtualbox-ovf"],
1117
+ ["owl", "application/rdf+xml"],
1118
+ ["oxps", "application/oxps"],
1119
+ ["oxt", "application/vnd.openofficeorg.extension"],
1120
+ ["p", "text/x-pascal"],
1121
+ ["p7a", "application/x-pkcs7-signature"],
1122
+ ["p7b", "application/x-pkcs7-certificates"],
1123
+ ["p7c", "application/pkcs7-mime"],
1124
+ ["p7m", "application/pkcs7-mime"],
1125
+ ["p7r", "application/x-pkcs7-certreqresp"],
1126
+ ["p7s", "application/pkcs7-signature"],
1127
+ ["p8", "application/pkcs8"],
1128
+ ["p10", "application/x-pkcs10"],
1129
+ ["p12", "application/x-pkcs12"],
1130
+ ["pac", "application/x-ns-proxy-autoconfig"],
1131
+ ["pages", "application/x-iwork-pages-sffpages"],
1132
+ ["pas", "text/x-pascal"],
1133
+ ["paw", "application/vnd.pawaafile"],
1134
+ ["pbd", "application/vnd.powerbuilder6"],
1135
+ ["pbm", "image/x-portable-bitmap"],
1136
+ ["pcap", "application/vnd.tcpdump.pcap"],
1137
+ ["pcf", "application/x-font-pcf"],
1138
+ ["pcl", "application/vnd.hp-pcl"],
1139
+ ["pclxl", "application/vnd.hp-pclxl"],
1140
+ ["pct", "image/x-pict"],
1141
+ ["pcurl", "application/vnd.curl.pcurl"],
1142
+ ["pcx", "image/x-pcx"],
1143
+ ["pdb", "application/x-pilot"],
1144
+ ["pde", "text/x-processing"],
1145
+ ["pdf", "application/pdf"],
1146
+ ["pem", "application/x-x509-user-cert"],
1147
+ ["pfa", "application/x-font-type1"],
1148
+ ["pfb", "application/x-font-type1"],
1149
+ ["pfm", "application/x-font-type1"],
1150
+ ["pfr", "application/font-tdpfr"],
1151
+ ["pfx", "application/x-pkcs12"],
1152
+ ["pgm", "image/x-portable-graymap"],
1153
+ ["pgn", "application/x-chess-pgn"],
1154
+ ["pgp", "application/pgp"],
1155
+ ["php", "application/x-httpd-php"],
1156
+ ["php3", "application/x-httpd-php"],
1157
+ ["php4", "application/x-httpd-php"],
1158
+ ["phps", "application/x-httpd-php-source"],
1159
+ ["phtml", "application/x-httpd-php"],
1160
+ ["pic", "image/x-pict"],
1161
+ ["pkg", "application/octet-stream"],
1162
+ ["pki", "application/pkixcmp"],
1163
+ ["pkipath", "application/pkix-pkipath"],
1164
+ ["pkpass", "application/vnd.apple.pkpass"],
1165
+ ["pl", "application/x-perl"],
1166
+ ["plb", "application/vnd.3gpp.pic-bw-large"],
1167
+ ["plc", "application/vnd.mobius.plc"],
1168
+ ["plf", "application/vnd.pocketlearn"],
1169
+ ["pls", "application/pls+xml"],
1170
+ ["pm", "application/x-perl"],
1171
+ ["pml", "application/vnd.ctc-posml"],
1172
+ ["png", "image/png"],
1173
+ ["pnm", "image/x-portable-anymap"],
1174
+ ["portpkg", "application/vnd.macports.portpkg"],
1175
+ ["pot", "application/vnd.ms-powerpoint"],
1176
+ ["potm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
1177
+ ["potx", "application/vnd.openxmlformats-officedocument.presentationml.template"],
1178
+ ["ppa", "application/vnd.ms-powerpoint"],
1179
+ ["ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"],
1180
+ ["ppd", "application/vnd.cups-ppd"],
1181
+ ["ppm", "image/x-portable-pixmap"],
1182
+ ["pps", "application/vnd.ms-powerpoint"],
1183
+ ["ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
1184
+ ["ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
1185
+ ["ppt", "application/powerpoint"],
1186
+ ["pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
1187
+ ["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
1188
+ ["pqa", "application/vnd.palm"],
1189
+ ["prc", "application/x-pilot"],
1190
+ ["pre", "application/vnd.lotus-freelance"],
1191
+ ["prf", "application/pics-rules"],
1192
+ ["provx", "application/provenance+xml"],
1193
+ ["ps", "application/postscript"],
1194
+ ["psb", "application/vnd.3gpp.pic-bw-small"],
1195
+ ["psd", "application/x-photoshop"],
1196
+ ["psf", "application/x-font-linux-psf"],
1197
+ ["pskcxml", "application/pskc+xml"],
1198
+ ["pti", "image/prs.pti"],
1199
+ ["ptid", "application/vnd.pvi.ptid1"],
1200
+ ["pub", "application/x-mspublisher"],
1201
+ ["pvb", "application/vnd.3gpp.pic-bw-var"],
1202
+ ["pwn", "application/vnd.3m.post-it-notes"],
1203
+ ["pya", "audio/vnd.ms-playready.media.pya"],
1204
+ ["pyv", "video/vnd.ms-playready.media.pyv"],
1205
+ ["qam", "application/vnd.epson.quickanime"],
1206
+ ["qbo", "application/vnd.intu.qbo"],
1207
+ ["qfx", "application/vnd.intu.qfx"],
1208
+ ["qps", "application/vnd.publishare-delta-tree"],
1209
+ ["qt", "video/quicktime"],
1210
+ ["qwd", "application/vnd.quark.quarkxpress"],
1211
+ ["qwt", "application/vnd.quark.quarkxpress"],
1212
+ ["qxb", "application/vnd.quark.quarkxpress"],
1213
+ ["qxd", "application/vnd.quark.quarkxpress"],
1214
+ ["qxl", "application/vnd.quark.quarkxpress"],
1215
+ ["qxt", "application/vnd.quark.quarkxpress"],
1216
+ ["ra", "audio/x-realaudio"],
1217
+ ["ram", "audio/x-pn-realaudio"],
1218
+ ["raml", "application/raml+yaml"],
1219
+ ["rapd", "application/route-apd+xml"],
1220
+ ["rar", "application/x-rar"],
1221
+ ["ras", "image/x-cmu-raster"],
1222
+ ["rcprofile", "application/vnd.ipunplugged.rcprofile"],
1223
+ ["rdf", "application/rdf+xml"],
1224
+ ["rdz", "application/vnd.data-vision.rdz"],
1225
+ ["relo", "application/p2p-overlay+xml"],
1226
+ ["rep", "application/vnd.businessobjects"],
1227
+ ["res", "application/x-dtbresource+xml"],
1228
+ ["rgb", "image/x-rgb"],
1229
+ ["rif", "application/reginfo+xml"],
1230
+ ["rip", "audio/vnd.rip"],
1231
+ ["ris", "application/x-research-info-systems"],
1232
+ ["rl", "application/resource-lists+xml"],
1233
+ ["rlc", "image/vnd.fujixerox.edmics-rlc"],
1234
+ ["rld", "application/resource-lists-diff+xml"],
1235
+ ["rm", "audio/x-pn-realaudio"],
1236
+ ["rmi", "audio/midi"],
1237
+ ["rmp", "audio/x-pn-realaudio-plugin"],
1238
+ ["rms", "application/vnd.jcp.javame.midlet-rms"],
1239
+ ["rmvb", "application/vnd.rn-realmedia-vbr"],
1240
+ ["rnc", "application/relax-ng-compact-syntax"],
1241
+ ["rng", "application/xml"],
1242
+ ["roa", "application/rpki-roa"],
1243
+ ["roff", "text/troff"],
1244
+ ["rp9", "application/vnd.cloanto.rp9"],
1245
+ ["rpm", "audio/x-pn-realaudio-plugin"],
1246
+ ["rpss", "application/vnd.nokia.radio-presets"],
1247
+ ["rpst", "application/vnd.nokia.radio-preset"],
1248
+ ["rq", "application/sparql-query"],
1249
+ ["rs", "application/rls-services+xml"],
1250
+ ["rsa", "application/x-pkcs7"],
1251
+ ["rsat", "application/atsc-rsat+xml"],
1252
+ ["rsd", "application/rsd+xml"],
1253
+ ["rsheet", "application/urc-ressheet+xml"],
1254
+ ["rss", "application/rss+xml"],
1255
+ ["rtf", "text/rtf"],
1256
+ ["rtx", "text/richtext"],
1257
+ ["run", "application/x-makeself"],
1258
+ ["rusd", "application/route-usd+xml"],
1259
+ ["rv", "video/vnd.rn-realvideo"],
1260
+ ["s", "text/x-asm"],
1261
+ ["s3m", "audio/s3m"],
1262
+ ["saf", "application/vnd.yamaha.smaf-audio"],
1263
+ ["sass", "text/x-sass"],
1264
+ ["sbml", "application/sbml+xml"],
1265
+ ["sc", "application/vnd.ibm.secure-container"],
1266
+ ["scd", "application/x-msschedule"],
1267
+ ["scm", "application/vnd.lotus-screencam"],
1268
+ ["scq", "application/scvp-cv-request"],
1269
+ ["scs", "application/scvp-cv-response"],
1270
+ ["scss", "text/x-scss"],
1271
+ ["scurl", "text/vnd.curl.scurl"],
1272
+ ["sda", "application/vnd.stardivision.draw"],
1273
+ ["sdc", "application/vnd.stardivision.calc"],
1274
+ ["sdd", "application/vnd.stardivision.impress"],
1275
+ ["sdkd", "application/vnd.solent.sdkm+xml"],
1276
+ ["sdkm", "application/vnd.solent.sdkm+xml"],
1277
+ ["sdp", "application/sdp"],
1278
+ ["sdw", "application/vnd.stardivision.writer"],
1279
+ ["sea", "application/octet-stream"],
1280
+ ["see", "application/vnd.seemail"],
1281
+ ["seed", "application/vnd.fdsn.seed"],
1282
+ ["sema", "application/vnd.sema"],
1283
+ ["semd", "application/vnd.semd"],
1284
+ ["semf", "application/vnd.semf"],
1285
+ ["senmlx", "application/senml+xml"],
1286
+ ["sensmlx", "application/sensml+xml"],
1287
+ ["ser", "application/java-serialized-object"],
1288
+ ["setpay", "application/set-payment-initiation"],
1289
+ ["setreg", "application/set-registration-initiation"],
1290
+ ["sfd-hdstx", "application/vnd.hydrostatix.sof-data"],
1291
+ ["sfs", "application/vnd.spotfire.sfs"],
1292
+ ["sfv", "text/x-sfv"],
1293
+ ["sgi", "image/sgi"],
1294
+ ["sgl", "application/vnd.stardivision.writer-global"],
1295
+ ["sgm", "text/sgml"],
1296
+ ["sgml", "text/sgml"],
1297
+ ["sh", "application/x-sh"],
1298
+ ["shar", "application/x-shar"],
1299
+ ["shex", "text/shex"],
1300
+ ["shf", "application/shf+xml"],
1301
+ ["shtml", "text/html"],
1302
+ ["sid", "image/x-mrsid-image"],
1303
+ ["sieve", "application/sieve"],
1304
+ ["sig", "application/pgp-signature"],
1305
+ ["sil", "audio/silk"],
1306
+ ["silo", "model/mesh"],
1307
+ ["sis", "application/vnd.symbian.install"],
1308
+ ["sisx", "application/vnd.symbian.install"],
1309
+ ["sit", "application/x-stuffit"],
1310
+ ["sitx", "application/x-stuffitx"],
1311
+ ["siv", "application/sieve"],
1312
+ ["skd", "application/vnd.koan"],
1313
+ ["skm", "application/vnd.koan"],
1314
+ ["skp", "application/vnd.koan"],
1315
+ ["skt", "application/vnd.koan"],
1316
+ ["sldm", "application/vnd.ms-powerpoint.slide.macroenabled.12"],
1317
+ ["sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"],
1318
+ ["slim", "text/slim"],
1319
+ ["slm", "text/slim"],
1320
+ ["sls", "application/route-s-tsid+xml"],
1321
+ ["slt", "application/vnd.epson.salt"],
1322
+ ["sm", "application/vnd.stepmania.stepchart"],
1323
+ ["smf", "application/vnd.stardivision.math"],
1324
+ ["smi", "application/smil"],
1325
+ ["smil", "application/smil"],
1326
+ ["smv", "video/x-smv"],
1327
+ ["smzip", "application/vnd.stepmania.package"],
1328
+ ["snd", "audio/basic"],
1329
+ ["snf", "application/x-font-snf"],
1330
+ ["so", "application/octet-stream"],
1331
+ ["spc", "application/x-pkcs7-certificates"],
1332
+ ["spdx", "text/spdx"],
1333
+ ["spf", "application/vnd.yamaha.smaf-phrase"],
1334
+ ["spl", "application/x-futuresplash"],
1335
+ ["spot", "text/vnd.in3d.spot"],
1336
+ ["spp", "application/scvp-vp-response"],
1337
+ ["spq", "application/scvp-vp-request"],
1338
+ ["spx", "audio/ogg"],
1339
+ ["sql", "application/x-sql"],
1340
+ ["src", "application/x-wais-source"],
1341
+ ["srt", "application/x-subrip"],
1342
+ ["sru", "application/sru+xml"],
1343
+ ["srx", "application/sparql-results+xml"],
1344
+ ["ssdl", "application/ssdl+xml"],
1345
+ ["sse", "application/vnd.kodak-descriptor"],
1346
+ ["ssf", "application/vnd.epson.ssf"],
1347
+ ["ssml", "application/ssml+xml"],
1348
+ ["sst", "application/octet-stream"],
1349
+ ["st", "application/vnd.sailingtracker.track"],
1350
+ ["stc", "application/vnd.sun.xml.calc.template"],
1351
+ ["std", "application/vnd.sun.xml.draw.template"],
1352
+ ["stf", "application/vnd.wt.stf"],
1353
+ ["sti", "application/vnd.sun.xml.impress.template"],
1354
+ ["stk", "application/hyperstudio"],
1355
+ ["stl", "model/stl"],
1356
+ ["stpx", "model/step+xml"],
1357
+ ["stpxz", "model/step-xml+zip"],
1358
+ ["stpz", "model/step+zip"],
1359
+ ["str", "application/vnd.pg.format"],
1360
+ ["stw", "application/vnd.sun.xml.writer.template"],
1361
+ ["styl", "text/stylus"],
1362
+ ["stylus", "text/stylus"],
1363
+ ["sub", "text/vnd.dvb.subtitle"],
1364
+ ["sus", "application/vnd.sus-calendar"],
1365
+ ["susp", "application/vnd.sus-calendar"],
1366
+ ["sv4cpio", "application/x-sv4cpio"],
1367
+ ["sv4crc", "application/x-sv4crc"],
1368
+ ["svc", "application/vnd.dvb.service"],
1369
+ ["svd", "application/vnd.svd"],
1370
+ ["svg", "image/svg+xml"],
1371
+ ["svgz", "image/svg+xml"],
1372
+ ["swa", "application/x-director"],
1373
+ ["swf", "application/x-shockwave-flash"],
1374
+ ["swi", "application/vnd.aristanetworks.swi"],
1375
+ ["swidtag", "application/swid+xml"],
1376
+ ["sxc", "application/vnd.sun.xml.calc"],
1377
+ ["sxd", "application/vnd.sun.xml.draw"],
1378
+ ["sxg", "application/vnd.sun.xml.writer.global"],
1379
+ ["sxi", "application/vnd.sun.xml.impress"],
1380
+ ["sxm", "application/vnd.sun.xml.math"],
1381
+ ["sxw", "application/vnd.sun.xml.writer"],
1382
+ ["t", "text/troff"],
1383
+ ["t3", "application/x-t3vm-image"],
1384
+ ["t38", "image/t38"],
1385
+ ["taglet", "application/vnd.mynfc"],
1386
+ ["tao", "application/vnd.tao.intent-module-archive"],
1387
+ ["tap", "image/vnd.tencent.tap"],
1388
+ ["tar", "application/x-tar"],
1389
+ ["tcap", "application/vnd.3gpp2.tcap"],
1390
+ ["tcl", "application/x-tcl"],
1391
+ ["td", "application/urc-targetdesc+xml"],
1392
+ ["teacher", "application/vnd.smart.teacher"],
1393
+ ["tei", "application/tei+xml"],
1394
+ ["teicorpus", "application/tei+xml"],
1395
+ ["tex", "application/x-tex"],
1396
+ ["texi", "application/x-texinfo"],
1397
+ ["texinfo", "application/x-texinfo"],
1398
+ ["text", "text/plain"],
1399
+ ["tfi", "application/thraud+xml"],
1400
+ ["tfm", "application/x-tex-tfm"],
1401
+ ["tfx", "image/tiff-fx"],
1402
+ ["tga", "image/x-tga"],
1403
+ ["tgz", "application/x-tar"],
1404
+ ["thmx", "application/vnd.ms-officetheme"],
1405
+ ["tif", "image/tiff"],
1406
+ ["tiff", "image/tiff"],
1407
+ ["tk", "application/x-tcl"],
1408
+ ["tmo", "application/vnd.tmobile-livetv"],
1409
+ ["toml", "application/toml"],
1410
+ ["torrent", "application/x-bittorrent"],
1411
+ ["tpl", "application/vnd.groove-tool-template"],
1412
+ ["tpt", "application/vnd.trid.tpt"],
1413
+ ["tr", "text/troff"],
1414
+ ["tra", "application/vnd.trueapp"],
1415
+ ["trig", "application/trig"],
1416
+ ["trm", "application/x-msterminal"],
1417
+ ["ts", "video/mp2t"],
1418
+ ["tsd", "application/timestamped-data"],
1419
+ ["tsv", "text/tab-separated-values"],
1420
+ ["ttc", "font/collection"],
1421
+ ["ttf", "font/ttf"],
1422
+ ["ttl", "text/turtle"],
1423
+ ["ttml", "application/ttml+xml"],
1424
+ ["twd", "application/vnd.simtech-mindmapper"],
1425
+ ["twds", "application/vnd.simtech-mindmapper"],
1426
+ ["txd", "application/vnd.genomatix.tuxedo"],
1427
+ ["txf", "application/vnd.mobius.txf"],
1428
+ ["txt", "text/plain"],
1429
+ ["u8dsn", "message/global-delivery-status"],
1430
+ ["u8hdr", "message/global-headers"],
1431
+ ["u8mdn", "message/global-disposition-notification"],
1432
+ ["u8msg", "message/global"],
1433
+ ["u32", "application/x-authorware-bin"],
1434
+ ["ubj", "application/ubjson"],
1435
+ ["udeb", "application/x-debian-package"],
1436
+ ["ufd", "application/vnd.ufdl"],
1437
+ ["ufdl", "application/vnd.ufdl"],
1438
+ ["ulx", "application/x-glulx"],
1439
+ ["umj", "application/vnd.umajin"],
1440
+ ["unityweb", "application/vnd.unity"],
1441
+ ["uoml", "application/vnd.uoml+xml"],
1442
+ ["uri", "text/uri-list"],
1443
+ ["uris", "text/uri-list"],
1444
+ ["urls", "text/uri-list"],
1445
+ ["usdz", "model/vnd.usdz+zip"],
1446
+ ["ustar", "application/x-ustar"],
1447
+ ["utz", "application/vnd.uiq.theme"],
1448
+ ["uu", "text/x-uuencode"],
1449
+ ["uva", "audio/vnd.dece.audio"],
1450
+ ["uvd", "application/vnd.dece.data"],
1451
+ ["uvf", "application/vnd.dece.data"],
1452
+ ["uvg", "image/vnd.dece.graphic"],
1453
+ ["uvh", "video/vnd.dece.hd"],
1454
+ ["uvi", "image/vnd.dece.graphic"],
1455
+ ["uvm", "video/vnd.dece.mobile"],
1456
+ ["uvp", "video/vnd.dece.pd"],
1457
+ ["uvs", "video/vnd.dece.sd"],
1458
+ ["uvt", "application/vnd.dece.ttml+xml"],
1459
+ ["uvu", "video/vnd.uvvu.mp4"],
1460
+ ["uvv", "video/vnd.dece.video"],
1461
+ ["uvva", "audio/vnd.dece.audio"],
1462
+ ["uvvd", "application/vnd.dece.data"],
1463
+ ["uvvf", "application/vnd.dece.data"],
1464
+ ["uvvg", "image/vnd.dece.graphic"],
1465
+ ["uvvh", "video/vnd.dece.hd"],
1466
+ ["uvvi", "image/vnd.dece.graphic"],
1467
+ ["uvvm", "video/vnd.dece.mobile"],
1468
+ ["uvvp", "video/vnd.dece.pd"],
1469
+ ["uvvs", "video/vnd.dece.sd"],
1470
+ ["uvvt", "application/vnd.dece.ttml+xml"],
1471
+ ["uvvu", "video/vnd.uvvu.mp4"],
1472
+ ["uvvv", "video/vnd.dece.video"],
1473
+ ["uvvx", "application/vnd.dece.unspecified"],
1474
+ ["uvvz", "application/vnd.dece.zip"],
1475
+ ["uvx", "application/vnd.dece.unspecified"],
1476
+ ["uvz", "application/vnd.dece.zip"],
1477
+ ["vbox", "application/x-virtualbox-vbox"],
1478
+ ["vbox-extpack", "application/x-virtualbox-vbox-extpack"],
1479
+ ["vcard", "text/vcard"],
1480
+ ["vcd", "application/x-cdlink"],
1481
+ ["vcf", "text/x-vcard"],
1482
+ ["vcg", "application/vnd.groove-vcard"],
1483
+ ["vcs", "text/x-vcalendar"],
1484
+ ["vcx", "application/vnd.vcx"],
1485
+ ["vdi", "application/x-virtualbox-vdi"],
1486
+ ["vds", "model/vnd.sap.vds"],
1487
+ ["vhd", "application/x-virtualbox-vhd"],
1488
+ ["vis", "application/vnd.visionary"],
1489
+ ["viv", "video/vnd.vivo"],
1490
+ ["vlc", "application/videolan"],
1491
+ ["vmdk", "application/x-virtualbox-vmdk"],
1492
+ ["vob", "video/x-ms-vob"],
1493
+ ["vor", "application/vnd.stardivision.writer"],
1494
+ ["vox", "application/x-authorware-bin"],
1495
+ ["vrml", "model/vrml"],
1496
+ ["vsd", "application/vnd.visio"],
1497
+ ["vsf", "application/vnd.vsf"],
1498
+ ["vss", "application/vnd.visio"],
1499
+ ["vst", "application/vnd.visio"],
1500
+ ["vsw", "application/vnd.visio"],
1501
+ ["vtf", "image/vnd.valve.source.texture"],
1502
+ ["vtt", "text/vtt"],
1503
+ ["vtu", "model/vnd.vtu"],
1504
+ ["vxml", "application/voicexml+xml"],
1505
+ ["w3d", "application/x-director"],
1506
+ ["wad", "application/x-doom"],
1507
+ ["wadl", "application/vnd.sun.wadl+xml"],
1508
+ ["war", "application/java-archive"],
1509
+ ["wasm", "application/wasm"],
1510
+ ["wav", "audio/x-wav"],
1511
+ ["wax", "audio/x-ms-wax"],
1512
+ ["wbmp", "image/vnd.wap.wbmp"],
1513
+ ["wbs", "application/vnd.criticaltools.wbs+xml"],
1514
+ ["wbxml", "application/wbxml"],
1515
+ ["wcm", "application/vnd.ms-works"],
1516
+ ["wdb", "application/vnd.ms-works"],
1517
+ ["wdp", "image/vnd.ms-photo"],
1518
+ ["weba", "audio/webm"],
1519
+ ["webapp", "application/x-web-app-manifest+json"],
1520
+ ["webm", "video/webm"],
1521
+ ["webmanifest", "application/manifest+json"],
1522
+ ["webp", "image/webp"],
1523
+ ["wg", "application/vnd.pmi.widget"],
1524
+ ["wgt", "application/widget"],
1525
+ ["wks", "application/vnd.ms-works"],
1526
+ ["wm", "video/x-ms-wm"],
1527
+ ["wma", "audio/x-ms-wma"],
1528
+ ["wmd", "application/x-ms-wmd"],
1529
+ ["wmf", "image/wmf"],
1530
+ ["wml", "text/vnd.wap.wml"],
1531
+ ["wmlc", "application/wmlc"],
1532
+ ["wmls", "text/vnd.wap.wmlscript"],
1533
+ ["wmlsc", "application/vnd.wap.wmlscriptc"],
1534
+ ["wmv", "video/x-ms-wmv"],
1535
+ ["wmx", "video/x-ms-wmx"],
1536
+ ["wmz", "application/x-msmetafile"],
1537
+ ["woff", "font/woff"],
1538
+ ["woff2", "font/woff2"],
1539
+ ["word", "application/msword"],
1540
+ ["wpd", "application/vnd.wordperfect"],
1541
+ ["wpl", "application/vnd.ms-wpl"],
1542
+ ["wps", "application/vnd.ms-works"],
1543
+ ["wqd", "application/vnd.wqd"],
1544
+ ["wri", "application/x-mswrite"],
1545
+ ["wrl", "model/vrml"],
1546
+ ["wsc", "message/vnd.wfa.wsc"],
1547
+ ["wsdl", "application/wsdl+xml"],
1548
+ ["wspolicy", "application/wspolicy+xml"],
1549
+ ["wtb", "application/vnd.webturbo"],
1550
+ ["wvx", "video/x-ms-wvx"],
1551
+ ["x3d", "model/x3d+xml"],
1552
+ ["x3db", "model/x3d+fastinfoset"],
1553
+ ["x3dbz", "model/x3d+binary"],
1554
+ ["x3dv", "model/x3d-vrml"],
1555
+ ["x3dvz", "model/x3d+vrml"],
1556
+ ["x3dz", "model/x3d+xml"],
1557
+ ["x32", "application/x-authorware-bin"],
1558
+ ["x_b", "model/vnd.parasolid.transmit.binary"],
1559
+ ["x_t", "model/vnd.parasolid.transmit.text"],
1560
+ ["xaml", "application/xaml+xml"],
1561
+ ["xap", "application/x-silverlight-app"],
1562
+ ["xar", "application/vnd.xara"],
1563
+ ["xav", "application/xcap-att+xml"],
1564
+ ["xbap", "application/x-ms-xbap"],
1565
+ ["xbd", "application/vnd.fujixerox.docuworks.binder"],
1566
+ ["xbm", "image/x-xbitmap"],
1567
+ ["xca", "application/xcap-caps+xml"],
1568
+ ["xcs", "application/calendar+xml"],
1569
+ ["xdf", "application/xcap-diff+xml"],
1570
+ ["xdm", "application/vnd.syncml.dm+xml"],
1571
+ ["xdp", "application/vnd.adobe.xdp+xml"],
1572
+ ["xdssc", "application/dssc+xml"],
1573
+ ["xdw", "application/vnd.fujixerox.docuworks"],
1574
+ ["xel", "application/xcap-el+xml"],
1575
+ ["xenc", "application/xenc+xml"],
1576
+ ["xer", "application/patch-ops-error+xml"],
1577
+ ["xfdf", "application/vnd.adobe.xfdf"],
1578
+ ["xfdl", "application/vnd.xfdl"],
1579
+ ["xht", "application/xhtml+xml"],
1580
+ ["xhtml", "application/xhtml+xml"],
1581
+ ["xhvml", "application/xv+xml"],
1582
+ ["xif", "image/vnd.xiff"],
1583
+ ["xl", "application/excel"],
1584
+ ["xla", "application/vnd.ms-excel"],
1585
+ ["xlam", "application/vnd.ms-excel.addin.macroEnabled.12"],
1586
+ ["xlc", "application/vnd.ms-excel"],
1587
+ ["xlf", "application/xliff+xml"],
1588
+ ["xlm", "application/vnd.ms-excel"],
1589
+ ["xls", "application/vnd.ms-excel"],
1590
+ ["xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
1591
+ ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
1592
+ ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1593
+ ["xlt", "application/vnd.ms-excel"],
1594
+ ["xltm", "application/vnd.ms-excel.template.macroEnabled.12"],
1595
+ ["xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
1596
+ ["xlw", "application/vnd.ms-excel"],
1597
+ ["xm", "audio/xm"],
1598
+ ["xml", "application/xml"],
1599
+ ["xns", "application/xcap-ns+xml"],
1600
+ ["xo", "application/vnd.olpc-sugar"],
1601
+ ["xop", "application/xop+xml"],
1602
+ ["xpi", "application/x-xpinstall"],
1603
+ ["xpl", "application/xproc+xml"],
1604
+ ["xpm", "image/x-xpixmap"],
1605
+ ["xpr", "application/vnd.is-xpr"],
1606
+ ["xps", "application/vnd.ms-xpsdocument"],
1607
+ ["xpw", "application/vnd.intercon.formnet"],
1608
+ ["xpx", "application/vnd.intercon.formnet"],
1609
+ ["xsd", "application/xml"],
1610
+ ["xsl", "application/xml"],
1611
+ ["xslt", "application/xslt+xml"],
1612
+ ["xsm", "application/vnd.syncml+xml"],
1613
+ ["xspf", "application/xspf+xml"],
1614
+ ["xul", "application/vnd.mozilla.xul+xml"],
1615
+ ["xvm", "application/xv+xml"],
1616
+ ["xvml", "application/xv+xml"],
1617
+ ["xwd", "image/x-xwindowdump"],
1618
+ ["xyz", "chemical/x-xyz"],
1619
+ ["xz", "application/x-xz"],
1620
+ ["yaml", "text/yaml"],
1621
+ ["yang", "application/yang"],
1622
+ ["yin", "application/yin+xml"],
1623
+ ["yml", "text/yaml"],
1624
+ ["ymp", "text/x-suse-ymp"],
1625
+ ["z", "application/x-compress"],
1626
+ ["z1", "application/x-zmachine"],
1627
+ ["z2", "application/x-zmachine"],
1628
+ ["z3", "application/x-zmachine"],
1629
+ ["z4", "application/x-zmachine"],
1630
+ ["z5", "application/x-zmachine"],
1631
+ ["z6", "application/x-zmachine"],
1632
+ ["z7", "application/x-zmachine"],
1633
+ ["z8", "application/x-zmachine"],
1634
+ ["zaz", "application/vnd.zzazz.deck+xml"],
1635
+ ["zip", "application/zip"],
1636
+ ["zir", "application/vnd.zul"],
1637
+ ["zirz", "application/vnd.zul"],
1638
+ ["zmm", "application/vnd.handheld-entertainment+xml"],
1639
+ ["zsh", "text/x-scriptzsh"]
1640
+ ]);
1641
+ function G(a, i, t) {
1642
+ const e = zt(a), { webkitRelativePath: n } = a, o = typeof i == "string" ? i : typeof n == "string" && n.length > 0 ? n : `./${a.name}`;
1643
+ return typeof e.path != "string" && Va(e, "path", o), Va(e, "relativePath", o), e;
1644
+ }
1645
+ function zt(a) {
1646
+ const { name: i } = a;
1647
+ if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1648
+ const e = i.split(".").pop().toLowerCase(), n = Et.get(e);
1649
+ n && Object.defineProperty(a, "type", {
1650
+ value: n,
1651
+ writable: !1,
1652
+ configurable: !1,
1653
+ enumerable: !0
1654
+ });
1655
+ }
1656
+ return a;
1657
+ }
1658
+ function Va(a, i, t) {
1659
+ Object.defineProperty(a, i, {
1660
+ value: t,
1661
+ writable: !1,
1662
+ configurable: !1,
1663
+ enumerable: !0
1664
+ });
1665
+ }
1666
+ const Ct = [
1667
+ // Thumbnail cache files for macOS and Windows
1668
+ ".DS_Store",
1669
+ // macOs
1670
+ "Thumbs.db"
1671
+ // Windows
1672
+ ];
1673
+ function Tt(a) {
1674
+ return L(this, void 0, void 0, function* () {
1675
+ return ra(a) && At(a.dataTransfer) ? Ft(a.dataTransfer, a.type) : Ot(a) ? _t(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Pt(a) : [];
1676
+ });
1677
+ }
1678
+ function At(a) {
1679
+ return ra(a);
1680
+ }
1681
+ function Ot(a) {
1682
+ return ra(a) && ra(a.target);
1683
+ }
1684
+ function ra(a) {
1685
+ return typeof a == "object" && a !== null;
1686
+ }
1687
+ function _t(a) {
1688
+ return Aa(a.target.files).map((i) => G(i));
1689
+ }
1690
+ function Pt(a) {
1691
+ return L(this, void 0, void 0, function* () {
1692
+ return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => G(t));
1693
+ });
1694
+ }
1695
+ function Ft(a, i) {
1696
+ return L(this, void 0, void 0, function* () {
1697
+ if (a.items) {
1698
+ const t = Aa(a.items).filter((n) => n.kind === "file");
1699
+ if (i !== "drop")
1700
+ return t;
1701
+ const e = yield Promise.all(t.map(Rt));
1702
+ return Ja(hi(e));
1703
+ }
1704
+ return Ja(Aa(a.files).map((t) => G(t)));
1705
+ });
1706
+ }
1707
+ function Ja(a) {
1708
+ return a.filter((i) => Ct.indexOf(i.name) === -1);
1709
+ }
1710
+ function Aa(a) {
1711
+ if (a === null)
1712
+ return [];
1713
+ const i = [];
1714
+ for (let t = 0; t < a.length; t++) {
1715
+ const e = a[t];
1716
+ i.push(e);
1717
+ }
1718
+ return i;
1719
+ }
1720
+ function Rt(a) {
1721
+ if (typeof a.webkitGetAsEntry != "function")
1722
+ return Xa(a);
1723
+ const i = a.webkitGetAsEntry();
1724
+ return i && i.isDirectory ? bi(i) : Xa(a, i);
1725
+ }
1726
+ function hi(a) {
1727
+ return a.reduce((i, t) => [
1728
+ ...i,
1729
+ ...Array.isArray(t) ? hi(t) : [t]
1730
+ ], []);
1731
+ }
1732
+ function Xa(a, i) {
1733
+ return L(this, void 0, void 0, function* () {
1734
+ var t;
1735
+ if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
1736
+ const o = yield a.getAsFileSystemHandle();
1737
+ if (o === null)
1738
+ throw new Error(`${a} is not a File`);
1739
+ if (o !== void 0) {
1740
+ const c = yield o.getFile();
1741
+ return c.handle = o, G(c);
1742
+ }
1743
+ }
1744
+ const e = a.getAsFile();
1745
+ if (!e)
1746
+ throw new Error(`${a} is not a File`);
1747
+ return G(e, (t = i?.fullPath) !== null && t !== void 0 ? t : void 0);
1748
+ });
1749
+ }
1750
+ function Mt(a) {
1751
+ return L(this, void 0, void 0, function* () {
1752
+ return a.isDirectory ? bi(a) : St(a);
1753
+ });
1754
+ }
1755
+ function bi(a) {
1756
+ const i = a.createReader();
1757
+ return new Promise((t, e) => {
1758
+ const n = [];
1759
+ function o() {
1760
+ i.readEntries((c) => L(this, void 0, void 0, function* () {
1761
+ if (c.length) {
1762
+ const r = Promise.all(c.map(Mt));
1763
+ n.push(r), o();
1764
+ } else
1765
+ try {
1766
+ const r = yield Promise.all(n);
1767
+ t(r);
1768
+ } catch (r) {
1769
+ e(r);
1770
+ }
1771
+ }), (c) => {
1772
+ e(c);
1773
+ });
1774
+ }
1775
+ o();
1776
+ });
1777
+ }
1778
+ function St(a) {
1779
+ return L(this, void 0, void 0, function* () {
1780
+ return new Promise((i, t) => {
1781
+ a.file((e) => {
1782
+ const n = G(e, a.fullPath);
1783
+ i(n);
1784
+ }, (e) => {
1785
+ t(e);
1786
+ });
1787
+ });
1788
+ });
1789
+ }
1790
+ var ca = {}, Qa;
1791
+ function It() {
1792
+ return Qa || (Qa = 1, ca.__esModule = !0, ca.default = function(a, i) {
1793
+ if (a && i) {
1794
+ var t = Array.isArray(i) ? i : i.split(",");
1795
+ if (t.length === 0)
1796
+ return !0;
1797
+ var e = a.name || "", n = (a.type || "").toLowerCase(), o = n.replace(/\/.*$/, "");
1798
+ return t.some(function(c) {
1799
+ var r = c.trim().toLowerCase();
1800
+ return r.charAt(0) === "." ? e.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : n === r;
1801
+ });
1802
+ }
1803
+ return !0;
1804
+ }), ca;
1805
+ }
1806
+ var qt = It();
1807
+ const Ea = /* @__PURE__ */ Ki(qt);
1808
+ function Za(a) {
1809
+ return $t(a) || Ht(a) || wi(a) || Lt();
1810
+ }
1811
+ function Lt() {
1812
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1813
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1814
+ }
1815
+ function Ht(a) {
1816
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1817
+ }
1818
+ function $t(a) {
1819
+ if (Array.isArray(a)) return Oa(a);
1820
+ }
1821
+ function ai(a, i) {
1822
+ var t = Object.keys(a);
1823
+ if (Object.getOwnPropertySymbols) {
1824
+ var e = Object.getOwnPropertySymbols(a);
1825
+ i && (e = e.filter(function(n) {
1826
+ return Object.getOwnPropertyDescriptor(a, n).enumerable;
1827
+ })), t.push.apply(t, e);
1828
+ }
1829
+ return t;
1830
+ }
1831
+ function ii(a) {
1832
+ for (var i = 1; i < arguments.length; i++) {
1833
+ var t = arguments[i] != null ? arguments[i] : {};
1834
+ i % 2 ? ai(Object(t), !0).forEach(function(e) {
1835
+ yi(a, e, t[e]);
1836
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ai(Object(t)).forEach(function(e) {
1837
+ Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
1838
+ });
1839
+ }
1840
+ return a;
1841
+ }
1842
+ function yi(a, i, t) {
1843
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1844
+ }
1845
+ function Q(a, i) {
1846
+ return Bt(a) || Kt(a, i) || wi(a, i) || Nt();
1847
+ }
1848
+ function Nt() {
1849
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1850
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1851
+ }
1852
+ function wi(a, i) {
1853
+ if (a) {
1854
+ if (typeof a == "string") return Oa(a, i);
1855
+ var t = Object.prototype.toString.call(a).slice(8, -1);
1856
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1857
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Oa(a, i);
1858
+ }
1859
+ }
1860
+ function Oa(a, i) {
1861
+ (i == null || i > a.length) && (i = a.length);
1862
+ for (var t = 0, e = new Array(i); t < i; t++)
1863
+ e[t] = a[t];
1864
+ return e;
1865
+ }
1866
+ function Kt(a, i) {
1867
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1868
+ if (t != null) {
1869
+ var e = [], n = !0, o = !1, c, r;
1870
+ try {
1871
+ for (t = t.call(a); !(n = (c = t.next()).done) && (e.push(c.value), !(i && e.length === i)); n = !0)
1872
+ ;
1873
+ } catch (d) {
1874
+ o = !0, r = d;
1875
+ } finally {
1876
+ try {
1877
+ !n && t.return != null && t.return();
1878
+ } finally {
1879
+ if (o) throw r;
1880
+ }
1881
+ }
1882
+ return e;
1883
+ }
1884
+ }
1885
+ function Bt(a) {
1886
+ if (Array.isArray(a)) return a;
1887
+ }
1888
+ var Wt = typeof Ea == "function" ? Ea : Ea.default, Gt = "file-invalid-type", Ut = "file-too-large", Yt = "file-too-small", Vt = "too-many-files", Jt = function() {
1889
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), e = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
1890
+ return {
1891
+ code: Gt,
1892
+ message: "File type must be ".concat(e)
1893
+ };
1894
+ }, ti = function(i) {
1895
+ return {
1896
+ code: Ut,
1897
+ message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1898
+ };
1899
+ }, ei = function(i) {
1900
+ return {
1901
+ code: Yt,
1902
+ message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1903
+ };
1904
+ }, Xt = {
1905
+ code: Vt,
1906
+ message: "Too many files"
1907
+ };
1908
+ function ki(a, i) {
1909
+ var t = a.type === "application/x-moz-file" || Wt(a, i);
1910
+ return [t, t ? null : Jt(i)];
1911
+ }
1912
+ function ji(a, i, t) {
1913
+ if (q(a.size))
1914
+ if (q(i) && q(t)) {
1915
+ if (a.size > t) return [!1, ti(t)];
1916
+ if (a.size < i) return [!1, ei(i)];
1917
+ } else {
1918
+ if (q(i) && a.size < i) return [!1, ei(i)];
1919
+ if (q(t) && a.size > t) return [!1, ti(t)];
1920
+ }
1921
+ return [!0, null];
1922
+ }
1923
+ function q(a) {
1924
+ return a != null;
1925
+ }
1926
+ function Qt(a) {
1927
+ var i = a.files, t = a.accept, e = a.minSize, n = a.maxSize, o = a.multiple, c = a.maxFiles, r = a.validator;
1928
+ return !o && i.length > 1 || o && c >= 1 && i.length > c ? !1 : i.every(function(d) {
1929
+ var f = ki(d, t), m = Q(f, 1), x = m[0], h = ji(d, e, n), v = Q(h, 1), w = v[0], j = r ? r(d) : null;
1930
+ return x && w && !j;
1931
+ });
1932
+ }
1933
+ function sa(a) {
1934
+ return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
1935
+ }
1936
+ function la(a) {
1937
+ return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1938
+ return i === "Files" || i === "application/x-moz-file";
1939
+ }) : !!a.target && !!a.target.files;
1940
+ }
1941
+ function ni(a) {
1942
+ a.preventDefault();
1943
+ }
1944
+ function Zt(a) {
1945
+ return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
1946
+ }
1947
+ function ae(a) {
1948
+ return a.indexOf("Edge/") !== -1;
1949
+ }
1950
+ function ie() {
1951
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1952
+ return Zt(a) || ae(a);
1953
+ }
1954
+ function P() {
1955
+ for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1956
+ i[t] = arguments[t];
1957
+ return function(e) {
1958
+ for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
1959
+ o[c - 1] = arguments[c];
1960
+ return i.some(function(r) {
1961
+ return !sa(e) && r && r.apply(void 0, [e].concat(o)), sa(e);
1962
+ });
1963
+ };
1964
+ }
1965
+ function te() {
1966
+ return "showOpenFilePicker" in window;
1967
+ }
1968
+ function ee(a) {
1969
+ if (q(a)) {
1970
+ var i = Object.entries(a).filter(function(t) {
1971
+ var e = Q(t, 2), n = e[0], o = e[1], c = !0;
1972
+ return Di(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), c = !1), (!Array.isArray(o) || !o.every(Ei)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), c = !1), c;
1973
+ }).reduce(function(t, e) {
1974
+ var n = Q(e, 2), o = n[0], c = n[1];
1975
+ return ii(ii({}, t), {}, yi({}, o, c));
1976
+ }, {});
1977
+ return [{
1978
+ // description is required due to https://crbug.com/1264708
1979
+ description: "Files",
1980
+ accept: i
1981
+ }];
1982
+ }
1983
+ return a;
1984
+ }
1985
+ function ne(a) {
1986
+ if (q(a))
1987
+ return Object.entries(a).reduce(function(i, t) {
1988
+ var e = Q(t, 2), n = e[0], o = e[1];
1989
+ return [].concat(Za(i), [n], Za(o));
1990
+ }, []).filter(function(i) {
1991
+ return Di(i) || Ei(i);
1992
+ }).join(",");
1993
+ }
1994
+ function oe(a) {
1995
+ return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
1996
+ }
1997
+ function pe(a) {
1998
+ return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
1999
+ }
2000
+ function Di(a) {
2001
+ return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
2002
+ }
2003
+ function Ei(a) {
2004
+ return /^.*\.[\w]+$/.test(a);
2005
+ }
2006
+ var ce = ["children"], le = ["open"], re = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], se = ["refKey", "onChange", "onClick"];
2007
+ function de(a) {
2008
+ return ve(a) || ue(a) || zi(a) || me();
2009
+ }
2010
+ function me() {
2011
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
2012
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2013
+ }
2014
+ function ue(a) {
2015
+ if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
2016
+ }
2017
+ function ve(a) {
2018
+ if (Array.isArray(a)) return _a(a);
2019
+ }
2020
+ function za(a, i) {
2021
+ return ge(a) || xe(a, i) || zi(a, i) || fe();
2022
+ }
2023
+ function fe() {
2024
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2025
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2026
+ }
2027
+ function zi(a, i) {
2028
+ if (a) {
2029
+ if (typeof a == "string") return _a(a, i);
2030
+ var t = Object.prototype.toString.call(a).slice(8, -1);
2031
+ if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
2032
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return _a(a, i);
2033
+ }
2034
+ }
2035
+ function _a(a, i) {
2036
+ (i == null || i > a.length) && (i = a.length);
2037
+ for (var t = 0, e = new Array(i); t < i; t++)
2038
+ e[t] = a[t];
2039
+ return e;
2040
+ }
2041
+ function xe(a, i) {
2042
+ var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
2043
+ if (t != null) {
2044
+ var e = [], n = !0, o = !1, c, r;
2045
+ try {
2046
+ for (t = t.call(a); !(n = (c = t.next()).done) && (e.push(c.value), !(i && e.length === i)); n = !0)
2047
+ ;
2048
+ } catch (d) {
2049
+ o = !0, r = d;
2050
+ } finally {
2051
+ try {
2052
+ !n && t.return != null && t.return();
2053
+ } finally {
2054
+ if (o) throw r;
2055
+ }
2056
+ }
2057
+ return e;
2058
+ }
2059
+ }
2060
+ function ge(a) {
2061
+ if (Array.isArray(a)) return a;
2062
+ }
2063
+ function oi(a, i) {
2064
+ var t = Object.keys(a);
2065
+ if (Object.getOwnPropertySymbols) {
2066
+ var e = Object.getOwnPropertySymbols(a);
2067
+ i && (e = e.filter(function(n) {
2068
+ return Object.getOwnPropertyDescriptor(a, n).enumerable;
2069
+ })), t.push.apply(t, e);
2070
+ }
2071
+ return t;
2072
+ }
2073
+ function g(a) {
2074
+ for (var i = 1; i < arguments.length; i++) {
2075
+ var t = arguments[i] != null ? arguments[i] : {};
2076
+ i % 2 ? oi(Object(t), !0).forEach(function(e) {
2077
+ Pa(a, e, t[e]);
2078
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : oi(Object(t)).forEach(function(e) {
2079
+ Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(t, e));
2080
+ });
2081
+ }
2082
+ return a;
2083
+ }
2084
+ function Pa(a, i, t) {
2085
+ return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
2086
+ }
2087
+ function da(a, i) {
2088
+ if (a == null) return {};
2089
+ var t = he(a, i), e, n;
2090
+ if (Object.getOwnPropertySymbols) {
2091
+ var o = Object.getOwnPropertySymbols(a);
2092
+ for (n = 0; n < o.length; n++)
2093
+ e = o[n], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(a, e) && (t[e] = a[e]);
2094
+ }
2095
+ return t;
2096
+ }
2097
+ function he(a, i) {
2098
+ if (a == null) return {};
2099
+ var t = {}, e = Object.keys(a), n, o;
2100
+ for (o = 0; o < e.length; o++)
2101
+ n = e[o], !(i.indexOf(n) >= 0) && (t[n] = a[n]);
2102
+ return t;
2103
+ }
2104
+ var Sa = /* @__PURE__ */ l.forwardRef(function(a, i) {
2105
+ var t = a.children, e = da(a, ce), n = be(e), o = n.open, c = da(n, le);
2106
+ return l.useImperativeHandle(i, function() {
2107
+ return {
2108
+ open: o
2109
+ };
2110
+ }, [o]), /* @__PURE__ */ Bi.createElement(l.Fragment, null, t(g(g({}, c), {}, {
2111
+ open: o
2112
+ })));
2113
+ });
2114
+ Sa.displayName = "Dropzone";
2115
+ var Ci = {
2116
+ disabled: !1,
2117
+ getFilesFromEvent: Tt,
2118
+ maxSize: 1 / 0,
2119
+ minSize: 0,
2120
+ multiple: !0,
2121
+ maxFiles: 0,
2122
+ preventDropOnDocument: !0,
2123
+ noClick: !1,
2124
+ noKeyboard: !1,
2125
+ noDrag: !1,
2126
+ noDragEventsBubbling: !1,
2127
+ validator: null,
2128
+ useFsAccessApi: !1,
2129
+ autoFocus: !1
2130
+ };
2131
+ Sa.defaultProps = Ci;
2132
+ Sa.propTypes = {
2133
+ /**
2134
+ * Render function that exposes the dropzone state and prop getter fns
2135
+ *
2136
+ * @param {object} params
2137
+ * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
2138
+ * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
2139
+ * @param {Function} params.open Open the native file selection dialog
2140
+ * @param {boolean} params.isFocused Dropzone area is in focus
2141
+ * @param {boolean} params.isFileDialogActive File dialog is opened
2142
+ * @param {boolean} params.isDragActive Active drag is in progress
2143
+ * @param {boolean} params.isDragAccept Dragged files are accepted
2144
+ * @param {boolean} params.isDragReject Some dragged files are rejected
2145
+ * @param {File[]} params.acceptedFiles Accepted files
2146
+ * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
2147
+ */
2148
+ children: u.func,
2149
+ /**
2150
+ * Set accepted file types.
2151
+ * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
2152
+ * Keep in mind that mime type determination is not reliable across platforms. CSV files,
2153
+ * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
2154
+ * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
2155
+ */
2156
+ accept: u.objectOf(u.arrayOf(u.string)),
2157
+ /**
2158
+ * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2159
+ */
2160
+ multiple: u.bool,
2161
+ /**
2162
+ * If false, allow dropped items to take over the current browser window
2163
+ */
2164
+ preventDropOnDocument: u.bool,
2165
+ /**
2166
+ * If true, disables click to open the native file selection dialog
2167
+ */
2168
+ noClick: u.bool,
2169
+ /**
2170
+ * If true, disables SPACE/ENTER to open the native file selection dialog.
2171
+ * Note that it also stops tracking the focus state.
2172
+ */
2173
+ noKeyboard: u.bool,
2174
+ /**
2175
+ * If true, disables drag 'n' drop
2176
+ */
2177
+ noDrag: u.bool,
2178
+ /**
2179
+ * If true, stops drag event propagation to parents
2180
+ */
2181
+ noDragEventsBubbling: u.bool,
2182
+ /**
2183
+ * Minimum file size (in bytes)
2184
+ */
2185
+ minSize: u.number,
2186
+ /**
2187
+ * Maximum file size (in bytes)
2188
+ */
2189
+ maxSize: u.number,
2190
+ /**
2191
+ * Maximum accepted number of files
2192
+ * The default value is 0 which means there is no limitation to how many files are accepted.
2193
+ */
2194
+ maxFiles: u.number,
2195
+ /**
2196
+ * Enable/disable the dropzone
2197
+ */
2198
+ disabled: u.bool,
2199
+ /**
2200
+ * Use this to provide a custom file aggregator
2201
+ *
2202
+ * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
2203
+ */
2204
+ getFilesFromEvent: u.func,
2205
+ /**
2206
+ * Cb for when closing the file dialog with no selection
2207
+ */
2208
+ onFileDialogCancel: u.func,
2209
+ /**
2210
+ * Cb for when opening the file dialog
2211
+ */
2212
+ onFileDialogOpen: u.func,
2213
+ /**
2214
+ * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
2215
+ * to open the file picker instead of using an `<input type="file">` click event.
2216
+ */
2217
+ useFsAccessApi: u.bool,
2218
+ /**
2219
+ * Set to true to focus the root element on render
2220
+ */
2221
+ autoFocus: u.bool,
2222
+ /**
2223
+ * Cb for when the `dragenter` event occurs.
2224
+ *
2225
+ * @param {DragEvent} event
2226
+ */
2227
+ onDragEnter: u.func,
2228
+ /**
2229
+ * Cb for when the `dragleave` event occurs
2230
+ *
2231
+ * @param {DragEvent} event
2232
+ */
2233
+ onDragLeave: u.func,
2234
+ /**
2235
+ * Cb for when the `dragover` event occurs
2236
+ *
2237
+ * @param {DragEvent} event
2238
+ */
2239
+ onDragOver: u.func,
2240
+ /**
2241
+ * Cb for when the `drop` event occurs.
2242
+ * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
2243
+ *
2244
+ * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
2245
+ * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
2246
+ * If `multiple` is set to false and additional files are dropped,
2247
+ * all files besides the first will be rejected.
2248
+ * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
2249
+ *
2250
+ * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
2251
+ * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
2252
+ *
2253
+ * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
2254
+ * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
2255
+ *
2256
+ * ```js
2257
+ * function onDrop(acceptedFiles) {
2258
+ * const req = request.post('/upload')
2259
+ * acceptedFiles.forEach(file => {
2260
+ * req.attach(file.name, file)
2261
+ * })
2262
+ * req.end(callback)
2263
+ * }
2264
+ * ```
2265
+ *
2266
+ * @param {File[]} acceptedFiles
2267
+ * @param {FileRejection[]} fileRejections
2268
+ * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
2269
+ */
2270
+ onDrop: u.func,
2271
+ /**
2272
+ * Cb for when the `drop` event occurs.
2273
+ * Note that if no files are accepted, this callback is not invoked.
2274
+ *
2275
+ * @param {File[]} files
2276
+ * @param {(DragEvent|Event)} event
2277
+ */
2278
+ onDropAccepted: u.func,
2279
+ /**
2280
+ * Cb for when the `drop` event occurs.
2281
+ * Note that if no files are rejected, this callback is not invoked.
2282
+ *
2283
+ * @param {FileRejection[]} fileRejections
2284
+ * @param {(DragEvent|Event)} event
2285
+ */
2286
+ onDropRejected: u.func,
2287
+ /**
2288
+ * Cb for when there's some error from any of the promises.
2289
+ *
2290
+ * @param {Error} error
2291
+ */
2292
+ onError: u.func,
2293
+ /**
2294
+ * Custom validation function. It must return null if there's no errors.
2295
+ * @param {File} file
2296
+ * @returns {FileError|FileError[]|null}
2297
+ */
2298
+ validator: u.func
2299
+ };
2300
+ var Fa = {
2301
+ isFocused: !1,
2302
+ isFileDialogActive: !1,
2303
+ isDragActive: !1,
2304
+ isDragAccept: !1,
2305
+ isDragReject: !1,
2306
+ acceptedFiles: [],
2307
+ fileRejections: []
2308
+ };
2309
+ function be() {
2310
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = g(g({}, Ci), a), t = i.accept, e = i.disabled, n = i.getFilesFromEvent, o = i.maxSize, c = i.minSize, r = i.multiple, d = i.maxFiles, f = i.onDragEnter, m = i.onDragLeave, x = i.onDragOver, h = i.onDrop, v = i.onDropAccepted, w = i.onDropRejected, j = i.onFileDialogCancel, D = i.onFileDialogOpen, O = i.useFsAccessApi, z = i.autoFocus, F = i.preventDropOnDocument, M = i.noClick, R = i.noKeyboard, U = i.noDrag, _ = i.noDragEventsBubbling, va = i.onError, Y = i.validator, V = l.useMemo(function() {
2311
+ return ne(t);
2312
+ }, [t]), Ia = l.useMemo(function() {
2313
+ return ee(t);
2314
+ }, [t]), fa = l.useMemo(function() {
2315
+ return typeof D == "function" ? D : pi;
2316
+ }, [D]), aa = l.useMemo(function() {
2317
+ return typeof j == "function" ? j : pi;
2318
+ }, [j]), E = l.useRef(null), A = l.useRef(null), Ti = l.useReducer(ye, Fa), qa = za(Ti, 2), xa = qa[0], C = qa[1], Ai = xa.isFocused, La = xa.isFileDialogActive, ia = l.useRef(typeof window < "u" && window.isSecureContext && O && te()), Ha = function() {
2319
+ !ia.current && La && setTimeout(function() {
2320
+ if (A.current) {
2321
+ var s = A.current.files;
2322
+ s.length || (C({
2323
+ type: "closeDialog"
2324
+ }), aa());
2325
+ }
2326
+ }, 300);
2327
+ };
2328
+ l.useEffect(function() {
2329
+ return window.addEventListener("focus", Ha, !1), function() {
2330
+ window.removeEventListener("focus", Ha, !1);
2331
+ };
2332
+ }, [A, La, aa, ia]);
2333
+ var H = l.useRef([]), $a = function(s) {
2334
+ E.current && E.current.contains(s.target) || (s.preventDefault(), H.current = []);
2335
+ };
2336
+ l.useEffect(function() {
2337
+ return F && (document.addEventListener("dragover", ni, !1), document.addEventListener("drop", $a, !1)), function() {
2338
+ F && (document.removeEventListener("dragover", ni), document.removeEventListener("drop", $a));
2339
+ };
2340
+ }, [E, F]), l.useEffect(function() {
2341
+ return !e && z && E.current && E.current.focus(), function() {
2342
+ };
2343
+ }, [E, z, e]);
2344
+ var I = l.useCallback(function(p) {
2345
+ va ? va(p) : console.error(p);
2346
+ }, [va]), Na = l.useCallback(function(p) {
2347
+ p.preventDefault(), p.persist(), oa(p), H.current = [].concat(de(H.current), [p.target]), la(p) && Promise.resolve(n(p)).then(function(s) {
2348
+ if (!(sa(p) && !_)) {
2349
+ var y = s.length, k = y > 0 && Qt({
2350
+ files: s,
2351
+ accept: V,
2352
+ minSize: c,
2353
+ maxSize: o,
2354
+ multiple: r,
2355
+ maxFiles: d,
2356
+ validator: Y
2357
+ }), T = y > 0 && !k;
2358
+ C({
2359
+ isDragAccept: k,
2360
+ isDragReject: T,
2361
+ isDragActive: !0,
2362
+ type: "setDraggedFiles"
2363
+ }), f && f(p);
2364
+ }
2365
+ }).catch(function(s) {
2366
+ return I(s);
2367
+ });
2368
+ }, [n, f, I, _, V, c, o, r, d, Y]), Ka = l.useCallback(function(p) {
2369
+ p.preventDefault(), p.persist(), oa(p);
2370
+ var s = la(p);
2371
+ if (s && p.dataTransfer)
2372
+ try {
2373
+ p.dataTransfer.dropEffect = "copy";
2374
+ } catch {
2375
+ }
2376
+ return s && x && x(p), !1;
2377
+ }, [x, _]), Ba = l.useCallback(function(p) {
2378
+ p.preventDefault(), p.persist(), oa(p);
2379
+ var s = H.current.filter(function(k) {
2380
+ return E.current && E.current.contains(k);
2381
+ }), y = s.indexOf(p.target);
2382
+ y !== -1 && s.splice(y, 1), H.current = s, !(s.length > 0) && (C({
2383
+ type: "setDraggedFiles",
2384
+ isDragActive: !1,
2385
+ isDragAccept: !1,
2386
+ isDragReject: !1
2387
+ }), la(p) && m && m(p));
2388
+ }, [E, m, _]), ta = l.useCallback(function(p, s) {
2389
+ var y = [], k = [];
2390
+ p.forEach(function(T) {
2391
+ var J = ki(T, V), K = za(J, 2), ha = K[0], ba = K[1], ya = ji(T, c, o), pa = za(ya, 2), wa = pa[0], ka = pa[1], ja = Y ? Y(T) : null;
2392
+ if (ha && wa && !ja)
2393
+ y.push(T);
2394
+ else {
2395
+ var Da = [ba, ka];
2396
+ ja && (Da = Da.concat(ja)), k.push({
2397
+ file: T,
2398
+ errors: Da.filter(function(Fi) {
2399
+ return Fi;
2400
+ })
2401
+ });
2402
+ }
2403
+ }), (!r && y.length > 1 || r && d >= 1 && y.length > d) && (y.forEach(function(T) {
2404
+ k.push({
2405
+ file: T,
2406
+ errors: [Xt]
2407
+ });
2408
+ }), y.splice(0)), C({
2409
+ acceptedFiles: y,
2410
+ fileRejections: k,
2411
+ isDragReject: k.length > 0,
2412
+ type: "setFiles"
2413
+ }), h && h(y, k, s), k.length > 0 && w && w(k, s), y.length > 0 && v && v(y, s);
2414
+ }, [C, r, V, c, o, d, h, v, w, Y]), ea = l.useCallback(function(p) {
2415
+ p.preventDefault(), p.persist(), oa(p), H.current = [], la(p) && Promise.resolve(n(p)).then(function(s) {
2416
+ sa(p) && !_ || ta(s, p);
2417
+ }).catch(function(s) {
2418
+ return I(s);
2419
+ }), C({
2420
+ type: "reset"
2421
+ });
2422
+ }, [n, ta, I, _]), $ = l.useCallback(function() {
2423
+ if (ia.current) {
2424
+ C({
2425
+ type: "openDialog"
2426
+ }), fa();
2427
+ var p = {
2428
+ multiple: r,
2429
+ types: Ia
2430
+ };
2431
+ window.showOpenFilePicker(p).then(function(s) {
2432
+ return n(s);
2433
+ }).then(function(s) {
2434
+ ta(s, null), C({
2435
+ type: "closeDialog"
2436
+ });
2437
+ }).catch(function(s) {
2438
+ oe(s) ? (aa(s), C({
2439
+ type: "closeDialog"
2440
+ })) : pe(s) ? (ia.current = !1, A.current ? (A.current.value = null, A.current.click()) : I(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : I(s);
2441
+ });
2442
+ return;
2443
+ }
2444
+ A.current && (C({
2445
+ type: "openDialog"
2446
+ }), fa(), A.current.value = null, A.current.click());
2447
+ }, [C, fa, aa, O, ta, I, Ia, r]), Wa = l.useCallback(function(p) {
2448
+ !E.current || !E.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), $());
2449
+ }, [E, $]), Ga = l.useCallback(function() {
2450
+ C({
2451
+ type: "focus"
2452
+ });
2453
+ }, []), Ua = l.useCallback(function() {
2454
+ C({
2455
+ type: "blur"
2456
+ });
2457
+ }, []), Ya = l.useCallback(function() {
2458
+ M || (ie() ? setTimeout($, 0) : $());
2459
+ }, [M, $]), N = function(s) {
2460
+ return e ? null : s;
2461
+ }, ga = function(s) {
2462
+ return R ? null : N(s);
2463
+ }, na = function(s) {
2464
+ return U ? null : N(s);
2465
+ }, oa = function(s) {
2466
+ _ && s.stopPropagation();
2467
+ }, Oi = l.useMemo(function() {
2468
+ return function() {
2469
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = p.refKey, y = s === void 0 ? "ref" : s, k = p.role, T = p.onKeyDown, J = p.onFocus, K = p.onBlur, ha = p.onClick, ba = p.onDragEnter, ya = p.onDragOver, pa = p.onDragLeave, wa = p.onDrop, ka = da(p, re);
2470
+ return g(g(Pa({
2471
+ onKeyDown: ga(P(T, Wa)),
2472
+ onFocus: ga(P(J, Ga)),
2473
+ onBlur: ga(P(K, Ua)),
2474
+ onClick: N(P(ha, Ya)),
2475
+ onDragEnter: na(P(ba, Na)),
2476
+ onDragOver: na(P(ya, Ka)),
2477
+ onDragLeave: na(P(pa, Ba)),
2478
+ onDrop: na(P(wa, ea)),
2479
+ role: typeof k == "string" && k !== "" ? k : "presentation"
2480
+ }, y, E), !e && !R ? {
2481
+ tabIndex: 0
2482
+ } : {}), ka);
2483
+ };
2484
+ }, [E, Wa, Ga, Ua, Ya, Na, Ka, Ba, ea, R, U, e]), _i = l.useCallback(function(p) {
2485
+ p.stopPropagation();
2486
+ }, []), Pi = l.useMemo(function() {
2487
+ return function() {
2488
+ var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = p.refKey, y = s === void 0 ? "ref" : s, k = p.onChange, T = p.onClick, J = da(p, se), K = Pa({
2489
+ accept: V,
2490
+ multiple: r,
2491
+ type: "file",
2492
+ style: {
2493
+ border: 0,
2494
+ clip: "rect(0, 0, 0, 0)",
2495
+ clipPath: "inset(50%)",
2496
+ height: "1px",
2497
+ margin: "0 -1px -1px 0",
2498
+ overflow: "hidden",
2499
+ padding: 0,
2500
+ position: "absolute",
2501
+ width: "1px",
2502
+ whiteSpace: "nowrap"
2503
+ },
2504
+ onChange: N(P(k, ea)),
2505
+ onClick: N(P(T, _i)),
2506
+ tabIndex: -1
2507
+ }, y, A);
2508
+ return g(g({}, K), J);
2509
+ };
2510
+ }, [A, t, r, ea, e]);
2511
+ return g(g({}, xa), {}, {
2512
+ isFocused: Ai && !e,
2513
+ getRootProps: Oi,
2514
+ getInputProps: Pi,
2515
+ rootRef: E,
2516
+ inputRef: A,
2517
+ open: N($)
2518
+ });
2519
+ }
2520
+ function ye(a, i) {
2521
+ switch (i.type) {
2522
+ case "focus":
2523
+ return g(g({}, a), {}, {
2524
+ isFocused: !0
2525
+ });
2526
+ case "blur":
2527
+ return g(g({}, a), {}, {
2528
+ isFocused: !1
2529
+ });
2530
+ case "openDialog":
2531
+ return g(g({}, Fa), {}, {
2532
+ isFileDialogActive: !0
2533
+ });
2534
+ case "closeDialog":
2535
+ return g(g({}, a), {}, {
2536
+ isFileDialogActive: !1
2537
+ });
2538
+ case "setDraggedFiles":
2539
+ return g(g({}, a), {}, {
2540
+ isDragActive: i.isDragActive,
2541
+ isDragAccept: i.isDragAccept,
2542
+ isDragReject: i.isDragReject
2543
+ });
2544
+ case "setFiles":
2545
+ return g(g({}, a), {}, {
2546
+ acceptedFiles: i.acceptedFiles,
2547
+ fileRejections: i.fileRejections,
2548
+ isDragReject: i.isDragReject
2549
+ });
2550
+ case "reset":
2551
+ return g({}, Fa);
2552
+ default:
2553
+ return a;
2554
+ }
2555
+ }
2556
+ function pi() {
2557
+ }
2558
+ export {
2559
+ De as A,
2560
+ Ee as C,
2561
+ ze as D,
2562
+ Ce as F,
2563
+ Ae as L,
2564
+ Oe as M,
2565
+ Pe as T,
2566
+ _e as U,
2567
+ Fe as a,
2568
+ Re as b,
2569
+ Me as c,
2570
+ Te as d,
2571
+ be as u
2572
+ };