@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733911143

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 (270) hide show
  1. package/dist/Backdrop-DqUdx8FP.cjs +1 -0
  2. package/dist/Backdrop-ZqzrnV2E.js +360 -0
  3. package/dist/Box-Be6jhcmK.cjs +1 -0
  4. package/dist/{Box-UE-zctbJ.js → Box-DN_2fcm9.js} +9 -9
  5. package/dist/Button-C6UXybBV.cjs +1 -0
  6. package/dist/{Button-Bjy0iPNm.js → Button-CL9rFoOY.js} +152 -118
  7. package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-CYkLbJ0U.js} +232 -240
  8. package/dist/ButtonBase-DzK1n18b.cjs +74 -0
  9. package/dist/Card-DO4cAmNC.js +74 -0
  10. package/dist/Card-DsmqVSx1.cjs +1 -0
  11. package/dist/Checkbox-Btg05OjV.cjs +1 -0
  12. package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-CLM5GjuC.js} +27 -26
  13. package/dist/CircularProgress-BfbGcmHT.cjs +28 -0
  14. package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-C4xtwh4E.js} +28 -27
  15. package/dist/DatePicker-BXTOQETi.cjs +14 -0
  16. package/dist/DatePicker-D9suyaUZ.js +10846 -0
  17. package/dist/DefaultPropsProvider-DE-Tx_ov.cjs +17 -0
  18. package/dist/DefaultPropsProvider-DUWovK-8.js +454 -0
  19. package/dist/Delete-CpADFuIX.cjs +1 -0
  20. package/dist/Delete-DWXEW4-c.js +8 -0
  21. package/dist/DialogContent-D_JmqJt6.js +603 -0
  22. package/dist/DialogContent-gRISmOoj.cjs +1 -0
  23. package/dist/DialogTitle-CID6RFNo.js +134 -0
  24. package/dist/DialogTitle-Dhxh1DVb.cjs +1 -0
  25. package/dist/Divider-BjxxEFnr.cjs +1 -0
  26. package/dist/Divider-HhF8ckeh.js +296 -0
  27. package/dist/FormControlLabel-0-cflTuo.js +262 -0
  28. package/dist/FormControlLabel-C-eZV5Xc.cjs +1 -0
  29. package/dist/FormGroup-Ck7StJ6i.cjs +1 -0
  30. package/dist/FormGroup-DIP4u-gv.js +95 -0
  31. package/dist/FormLabel-Ch103TK-.cjs +2 -0
  32. package/dist/{FormLabel-B4QlkhhB.js → FormLabel-X7FN1eBV.js} +39 -44
  33. package/dist/Grow-BgMSa0P2.js +193 -0
  34. package/dist/Grow-D7OAahbU.cjs +1 -0
  35. package/dist/{IconButton-Av8eJ5IG.js → IconButton-CMwpC2Co.js} +10 -9
  36. package/dist/IconButton-DbWtCGLB.cjs +2 -0
  37. package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-B4hI0-Jz.js} +9 -8
  38. package/dist/InputAdornment-Cl2OaKlw.cjs +1 -0
  39. package/dist/InputBase-BuVAuMNp.cjs +3 -0
  40. package/dist/{InputBase-Bbgoz8GV.js → InputBase-DrofJ7xL.js} +60 -59
  41. package/dist/Link-AXhb0uJT.cjs +1 -0
  42. package/dist/Link-Bdupo_fW.js +267 -0
  43. package/dist/Menu-DR-xtxpt.js +966 -0
  44. package/dist/Menu-_chQG-Za.cjs +7 -0
  45. package/dist/{MenuItem-D7HWYhF3.js → MenuItem-C_d0Sc_L.js} +69 -74
  46. package/dist/MenuItem-De6eStq9.cjs +1 -0
  47. package/dist/Modal-C4Jb6sd1.js +750 -0
  48. package/dist/Modal-GXSEk85U.cjs +2 -0
  49. package/dist/Paper-CH4BABUB.cjs +2 -0
  50. package/dist/Paper-nlWPEgQh.js +185 -0
  51. package/dist/Popper-CjTplNLW.cjs +4 -0
  52. package/dist/Popper-CkAj_qw_.js +1407 -0
  53. package/dist/Portal-BcFwfiTx.js +86 -0
  54. package/dist/Portal-BruYsISj.cjs +1 -0
  55. package/dist/Radio-B0v6nDvz.js +313 -0
  56. package/dist/Radio-BbZnB74m.cjs +1 -0
  57. package/dist/Select-BFGwwKap.cjs +3 -0
  58. package/dist/Select-D9fwtA9U.js +2604 -0
  59. package/dist/{Stack-y1PjTHKX.js → Stack-C1i6_V9e.js} +105 -60
  60. package/dist/Stack-DMNZvXss.cjs +1 -0
  61. package/dist/SwitchBase-BpMNk4XV.cjs +1 -0
  62. package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DfbwljzN.js} +25 -24
  63. package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-DwnLOHOy.js} +2645 -3965
  64. package/dist/TableSortLabel-lnTBXy-V.cjs +98 -0
  65. package/dist/{Tabs-DK4Bc5xo.js → Tabs-BoFP2RHv.js} +333 -329
  66. package/dist/Tabs-DEvwJheI.cjs +4 -0
  67. package/dist/{TextField-C-B529_r.js → TextField-kwhzNVAL.js} +35 -34
  68. package/dist/TextField-waKWSLD4.cjs +1 -0
  69. package/dist/Tooltip-CFyOA9CT.cjs +4 -0
  70. package/dist/Tooltip-tgkiC77d.js +721 -0
  71. package/dist/Typography-B6KFjCtE.cjs +1 -0
  72. package/dist/{Typography-C_ESP41L.js → Typography-DWXYj92v.js} +13 -12
  73. package/dist/assets/styles.css +1 -1
  74. package/dist/assets/styles2.css +1 -1
  75. package/dist/capitalize-DASFtB-F.cjs +1 -0
  76. package/dist/capitalize-NmHVRYy8.js +9 -0
  77. package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
  78. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  79. package/dist/components/Button/Button.cjs.js +1 -1
  80. package/dist/components/Button/Button.es.js +28 -27
  81. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  82. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  83. package/dist/components/DatePicker/index.cjs.js +1 -1
  84. package/dist/components/DatePicker/index.es.js +1 -1
  85. package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
  86. package/dist/components/Dropzone/Dropzone.es.js +24 -2162
  87. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  88. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  89. package/dist/components/FileList/FileList.cjs.js +1 -1
  90. package/dist/components/FileList/FileList.es.js +1 -1
  91. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  92. package/dist/components/FileList/FileListItem.es.js +21 -22
  93. package/dist/components/Heading/Heading.cjs.js +1 -1
  94. package/dist/components/Heading/Heading.es.js +2 -2
  95. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
  96. package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
  97. package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
  98. package/dist/components/ImagePicker/index.cjs.js +1 -0
  99. package/dist/components/ImagePicker/index.d.ts +2 -0
  100. package/dist/components/ImagePicker/index.es.js +4 -0
  101. package/dist/components/Loader/Loader.cjs.js +1 -1
  102. package/dist/components/Loader/Loader.es.js +2 -2
  103. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  104. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
  105. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  106. package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
  107. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  108. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  109. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  110. package/dist/components/TextInput/TextInput.es.js +1 -1
  111. package/dist/components/index.cjs.js +1 -1
  112. package/dist/components/index.d.ts +3 -0
  113. package/dist/components/index.es.js +276 -262
  114. package/dist/components/stories/Button.stories.cjs.js +1 -1
  115. package/dist/components/stories/Button.stories.es.js +1 -1
  116. package/dist/components/stories/Card.stories.cjs.js +1 -0
  117. package/dist/components/stories/Card.stories.d.ts +7 -0
  118. package/dist/components/stories/Card.stories.es.js +193 -0
  119. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  120. package/dist/components/stories/Checkbox.stories.es.js +41 -12
  121. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  122. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  123. package/dist/components/stories/Dialog.stories.cjs.js +1 -0
  124. package/dist/components/stories/Dialog.stories.d.ts +7 -0
  125. package/dist/components/stories/Dialog.stories.es.js +53 -0
  126. package/dist/components/stories/Divider.stories.cjs.js +1 -0
  127. package/dist/components/stories/Divider.stories.d.ts +6 -0
  128. package/dist/components/stories/Divider.stories.es.js +41 -0
  129. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
  130. package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
  131. package/dist/components/stories/FormControlLabel.stories.es.js +379 -0
  132. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  133. package/dist/components/stories/Heading.stories.es.js +2 -2
  134. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  135. package/dist/components/stories/IconButton.stories.es.js +47 -11
  136. package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
  137. package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
  138. package/dist/components/stories/ImagePicker.stories.es.js +50 -0
  139. package/dist/components/stories/Link.stories.cjs.js +1 -0
  140. package/dist/components/stories/Link.stories.d.ts +7 -0
  141. package/dist/components/stories/Link.stories.es.js +43 -0
  142. package/dist/components/stories/Menu.stories.cjs.js +1 -0
  143. package/dist/components/stories/Menu.stories.d.ts +7 -0
  144. package/dist/components/stories/Menu.stories.es.js +51 -0
  145. package/dist/components/stories/Paper.stories.cjs.js +1 -0
  146. package/dist/components/stories/Paper.stories.d.ts +7 -0
  147. package/dist/components/stories/Paper.stories.es.js +28 -0
  148. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  149. package/dist/components/stories/RadioGroup.stories.es.js +70 -371
  150. package/dist/components/stories/Select.stories.cjs.js +1 -1
  151. package/dist/components/stories/Select.stories.es.js +3 -3
  152. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  153. package/dist/components/stories/TabList.stories.es.js +140 -90
  154. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  155. package/dist/components/stories/TextField.stories.es.js +1 -1
  156. package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
  157. package/dist/components/stories/Tooltip.stories.d.ts +7 -0
  158. package/dist/components/stories/Tooltip.stories.es.js +46 -0
  159. package/dist/components/stories/Typography.stories.cjs.js +1 -0
  160. package/dist/components/stories/Typography.stories.d.ts +6 -0
  161. package/dist/components/stories/Typography.stories.es.js +65 -0
  162. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  163. package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
  164. package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CeuAoIMQ.js} +6 -5
  165. package/dist/createSvgIcon-eUfAcV0x.cjs +1 -0
  166. package/dist/debounce-46wSf_lW.js +15 -0
  167. package/dist/debounce-DpCj7ugL.cjs +1 -0
  168. package/dist/dividerClasses-CSD96RzX.cjs +1 -0
  169. package/dist/dividerClasses-DrJ5oIdP.js +9 -0
  170. package/dist/elementTypeAcceptingRef-Cz_FeG92.cjs +1 -0
  171. package/dist/elementTypeAcceptingRef-HBfwF2vD.js +23 -0
  172. package/dist/extendSxProp-Fr1MMO0I.cjs +1 -0
  173. package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-NjjUyYdB.js} +1 -1
  174. package/dist/formControlState-CuX6WjAX.cjs +1 -0
  175. package/dist/formControlState-vgaj2ksH.js +10 -0
  176. package/dist/fr-ChrHtTbj.cjs +1 -0
  177. package/dist/fr-rmVQsNbI.js +312 -0
  178. package/dist/{identifier-BqadgaK7.js → generateUtilityClasses--6MLb_cS.js} +990 -956
  179. package/dist/generateUtilityClasses-DEQ18TAF.cjs +59 -0
  180. package/dist/{index-BUxqDIr9.js → index-B4GmPutS.js} +6 -5
  181. package/dist/index-BGCIdIru.js +2152 -0
  182. package/dist/index-BoQHt8iN.cjs +1 -0
  183. package/dist/index-CRdsZkOC.cjs +17 -0
  184. package/dist/index-CmEzEdk2.cjs +5 -0
  185. package/dist/index-XYfXmNqA.js +186 -0
  186. package/dist/index.cjs.js +1 -1
  187. package/dist/index.es.js +276 -262
  188. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  189. package/dist/isFocusVisible-DlSijby6.cjs +2 -0
  190. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  191. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  192. package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-D99chbOP.cjs} +1 -1
  193. package/dist/{memoTheme-DfGVDRrB.js → memoTheme-o8RCKrNG.js} +1 -1
  194. package/dist/mergeSlotProps-DSv3FKLb.cjs +1 -0
  195. package/dist/{resolveComponentProps-CxJ2yAJn.js → mergeSlotProps-KHPCviGJ.js} +7 -7
  196. package/dist/ownerDocument-4MViGo3k.cjs +1 -0
  197. package/dist/ownerDocument-CUrv0DIK.js +6 -0
  198. package/dist/ownerWindow-DDHucZi0.cjs +1 -0
  199. package/dist/ownerWindow-niciwP7I.js +7 -0
  200. package/dist/useEnhancedEffect-C9MKL5N4.cjs +1 -0
  201. package/dist/useEnhancedEffect-DlS7O_-p.js +7 -0
  202. package/dist/useForkRef-CTI33h-3.cjs +1 -0
  203. package/dist/useForkRef-C_4o__cU.js +15 -0
  204. package/dist/useSlot-DsW0udy9.cjs +1 -0
  205. package/dist/{useSlot-Co14PUn6.js → useSlot-eWxwpnv1.js} +2 -2
  206. package/dist/useSlotProps--FPRW1CI.cjs +1 -0
  207. package/dist/{index-CRT92bm7.js → useSlotProps-C7zjg7t9.js} +26 -26
  208. package/dist/useTheme-B1YEBlI0.cjs +1 -0
  209. package/dist/useTheme-BXzyKigM.js +11 -0
  210. package/dist/{useTheme-oM_SFWy4.js → useTheme-D0ITn2Re.js} +1 -1
  211. package/dist/useTheme-DFJNv-zn.cjs +1 -0
  212. package/dist/useThemeProps-BwyYDczI.cjs +1 -0
  213. package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-DrCROxdY.js} +2 -2
  214. package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-DsDeaP0E.js} +3 -3
  215. package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-j-HQOOfB.cjs} +1 -1
  216. package/dist/{useTimeout-D16vpBhn.js → useTimeout-FkIxJmTC.js} +4 -4
  217. package/dist/useTimeout-NIA-3R5R.cjs +1 -0
  218. package/dist/utils-70jLtOQP.js +391 -0
  219. package/dist/utils-BWx1W_q1.cjs +1 -0
  220. package/dist/utils-DWqc1kRF.js +13 -0
  221. package/dist/utils-DlWHEABQ.cjs +1 -0
  222. package/package.json +5 -5
  223. package/dist/Backdrop-KAJqifAq.cjs +0 -1
  224. package/dist/Backdrop-RBPtVAPX.js +0 -744
  225. package/dist/Box-H49yQEt_.cjs +0 -1
  226. package/dist/Button-qc45QbX6.cjs +0 -1
  227. package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
  228. package/dist/Checkbox-CuYTY0gd.cjs +0 -1
  229. package/dist/CircularProgress-BPHINMQw.cjs +0 -28
  230. package/dist/DatePicker-rhgpaD-r.cjs +0 -17
  231. package/dist/DatePicker-u4rtXGeo.js +0 -12791
  232. package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
  233. package/dist/DefaultPropsProvider-CaRoy5OV.js +0 -484
  234. package/dist/FormGroup-BBYEQB4C.cjs +0 -1
  235. package/dist/FormGroup-BVtE8Mrv.js +0 -348
  236. package/dist/FormLabel-D8jYibc1.cjs +0 -2
  237. package/dist/IconButton-CVyLtjcH.cjs +0 -2
  238. package/dist/InputAdornment-BJfpEQAa.cjs +0 -1
  239. package/dist/InputBase-Ctmib7Br.cjs +0 -3
  240. package/dist/MenuItem-Els-vJZW.cjs +0 -1
  241. package/dist/Select-BlPQngVF.js +0 -4720
  242. package/dist/Select-ipcMZ4iK.cjs +0 -11
  243. package/dist/Stack-CEjx3KHM.cjs +0 -1
  244. package/dist/SwitchBase-URM3X3YZ.cjs +0 -1
  245. package/dist/Tabs-Nvk94RTW.cjs +0 -4
  246. package/dist/TextField-BVAkADOb.cjs +0 -1
  247. package/dist/Tooltip-DvPL2M0E.cjs +0 -100
  248. package/dist/Typography-5OodZ94T.cjs +0 -1
  249. package/dist/createSvgIcon-GU7fqNnI.cjs +0 -1
  250. package/dist/extendSxProp-D11-pC6h.cjs +0 -1
  251. package/dist/formControlState-DCkDUdfO.cjs +0 -1
  252. package/dist/formControlState-DdQP43Uo.js +0 -21
  253. package/dist/fr-B8_MxRl5.js +0 -307
  254. package/dist/fr-Nvp7C-vS.cjs +0 -1
  255. package/dist/identifier-BQH88SE0.cjs +0 -59
  256. package/dist/index-CNv8ppur.cjs +0 -1
  257. package/dist/index-D7nFYLYq.cjs +0 -1
  258. package/dist/ownerWindow-BoRkeomM.js +0 -23
  259. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  260. package/dist/refType-DlHf9HvO.js +0 -27
  261. package/dist/refType-Do7KaOvv.cjs +0 -1
  262. package/dist/resolveComponentProps-DTv6xPbb.cjs +0 -1
  263. package/dist/useForkRef-D-DyzOXj.js +0 -21
  264. package/dist/useForkRef-D81w5oMb.cjs +0 -1
  265. package/dist/useSlot-42jgZftI.cjs +0 -1
  266. package/dist/useTheme-CtT7O-Wk.js +0 -11
  267. package/dist/useTheme-cVN-YQNB.cjs +0 -1
  268. package/dist/useTheme-tZYpFplW.cjs +0 -1
  269. package/dist/useThemeProps-r0DnR8FJ.cjs +0 -1
  270. package/dist/useTimeout-DWEGwfTA.cjs +0 -1
@@ -1,2159 +1,21 @@
1
- import { jsx as z, jsxs as fa, Fragment as Ka } from "react/jsx-runtime";
2
- import { c as ai } from "../../createSvgIcon-DxbvMQd7.js";
3
- import bi, { useMemo as q, useRef as J, useReducer as hi, useEffect as xa, useCallback as y, forwardRef as yi, useImperativeHandle as wi, Fragment as ki } from "react";
4
- import { P as s } from "../../identifier-BqadgaK7.js";
5
- import { S as ji } from "../../Stack-y1PjTHKX.js";
6
- import { T as ga } from "../../Typography-C_ESP41L.js";
7
- const zi = ai(/* @__PURE__ */ z("path", {
1
+ import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
2
+ import { c as s } from "../../createSvgIcon-CeuAoIMQ.js";
3
+ import { u as h } from "../../index-BGCIdIru.js";
4
+ import { S as m } from "../../Stack-C1i6_V9e.js";
5
+ import { T as o } from "../../Typography-DWXYj92v.js";
6
+ const u = s(/* @__PURE__ */ r("path", {
8
7
  d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
9
- }), "FileUpload"), Di = ai(/* @__PURE__ */ z("path", {
8
+ }), "FileUpload"), g = s(/* @__PURE__ */ r("path", {
10
9
  d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"
11
- }), "UploadFile");
12
- function F(a, i, t, n) {
13
- function p(o) {
14
- return o instanceof t ? o : new t(function(l) {
15
- l(o);
16
- });
17
- }
18
- return new (t || (t = Promise))(function(o, l) {
19
- function r(x) {
20
- try {
21
- k(n.next(x));
22
- } catch (j) {
23
- l(j);
24
- }
25
- }
26
- function v(x) {
27
- try {
28
- k(n.throw(x));
29
- } catch (j) {
30
- l(j);
31
- }
32
- }
33
- function k(x) {
34
- x.done ? o(x.value) : p(x.value).then(r, v);
35
- }
36
- k((n = n.apply(a, i || [])).next());
37
- });
38
- }
39
- const Ei = /* @__PURE__ */ new Map([
40
- // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
41
- ["1km", "application/vnd.1000minds.decision-model+xml"],
42
- ["3dml", "text/vnd.in3d.3dml"],
43
- ["3ds", "image/x-3ds"],
44
- ["3g2", "video/3gpp2"],
45
- ["3gp", "video/3gp"],
46
- ["3gpp", "video/3gpp"],
47
- ["3mf", "model/3mf"],
48
- ["7z", "application/x-7z-compressed"],
49
- ["7zip", "application/x-7z-compressed"],
50
- ["123", "application/vnd.lotus-1-2-3"],
51
- ["aab", "application/x-authorware-bin"],
52
- ["aac", "audio/x-acc"],
53
- ["aam", "application/x-authorware-map"],
54
- ["aas", "application/x-authorware-seg"],
55
- ["abw", "application/x-abiword"],
56
- ["ac", "application/vnd.nokia.n-gage.ac+xml"],
57
- ["ac3", "audio/ac3"],
58
- ["acc", "application/vnd.americandynamics.acc"],
59
- ["ace", "application/x-ace-compressed"],
60
- ["acu", "application/vnd.acucobol"],
61
- ["acutc", "application/vnd.acucorp"],
62
- ["adp", "audio/adpcm"],
63
- ["aep", "application/vnd.audiograph"],
64
- ["afm", "application/x-font-type1"],
65
- ["afp", "application/vnd.ibm.modcap"],
66
- ["ahead", "application/vnd.ahead.space"],
67
- ["ai", "application/pdf"],
68
- ["aif", "audio/x-aiff"],
69
- ["aifc", "audio/x-aiff"],
70
- ["aiff", "audio/x-aiff"],
71
- ["air", "application/vnd.adobe.air-application-installer-package+zip"],
72
- ["ait", "application/vnd.dvb.ait"],
73
- ["ami", "application/vnd.amiga.ami"],
74
- ["amr", "audio/amr"],
75
- ["apk", "application/vnd.android.package-archive"],
76
- ["apng", "image/apng"],
77
- ["appcache", "text/cache-manifest"],
78
- ["application", "application/x-ms-application"],
79
- ["apr", "application/vnd.lotus-approach"],
80
- ["arc", "application/x-freearc"],
81
- ["arj", "application/x-arj"],
82
- ["asc", "application/pgp-signature"],
83
- ["asf", "video/x-ms-asf"],
84
- ["asm", "text/x-asm"],
85
- ["aso", "application/vnd.accpac.simply.aso"],
86
- ["asx", "video/x-ms-asf"],
87
- ["atc", "application/vnd.acucorp"],
88
- ["atom", "application/atom+xml"],
89
- ["atomcat", "application/atomcat+xml"],
90
- ["atomdeleted", "application/atomdeleted+xml"],
91
- ["atomsvc", "application/atomsvc+xml"],
92
- ["atx", "application/vnd.antix.game-component"],
93
- ["au", "audio/x-au"],
94
- ["avi", "video/x-msvideo"],
95
- ["avif", "image/avif"],
96
- ["aw", "application/applixware"],
97
- ["azf", "application/vnd.airzip.filesecure.azf"],
98
- ["azs", "application/vnd.airzip.filesecure.azs"],
99
- ["azv", "image/vnd.airzip.accelerator.azv"],
100
- ["azw", "application/vnd.amazon.ebook"],
101
- ["b16", "image/vnd.pco.b16"],
102
- ["bat", "application/x-msdownload"],
103
- ["bcpio", "application/x-bcpio"],
104
- ["bdf", "application/x-font-bdf"],
105
- ["bdm", "application/vnd.syncml.dm+wbxml"],
106
- ["bdoc", "application/x-bdoc"],
107
- ["bed", "application/vnd.realvnc.bed"],
108
- ["bh2", "application/vnd.fujitsu.oasysprs"],
109
- ["bin", "application/octet-stream"],
110
- ["blb", "application/x-blorb"],
111
- ["blorb", "application/x-blorb"],
112
- ["bmi", "application/vnd.bmi"],
113
- ["bmml", "application/vnd.balsamiq.bmml+xml"],
114
- ["bmp", "image/bmp"],
115
- ["book", "application/vnd.framemaker"],
116
- ["box", "application/vnd.previewsystems.box"],
117
- ["boz", "application/x-bzip2"],
118
- ["bpk", "application/octet-stream"],
119
- ["bpmn", "application/octet-stream"],
120
- ["bsp", "model/vnd.valve.source.compiled-map"],
121
- ["btif", "image/prs.btif"],
122
- ["buffer", "application/octet-stream"],
123
- ["bz", "application/x-bzip"],
124
- ["bz2", "application/x-bzip2"],
125
- ["c", "text/x-c"],
126
- ["c4d", "application/vnd.clonk.c4group"],
127
- ["c4f", "application/vnd.clonk.c4group"],
128
- ["c4g", "application/vnd.clonk.c4group"],
129
- ["c4p", "application/vnd.clonk.c4group"],
130
- ["c4u", "application/vnd.clonk.c4group"],
131
- ["c11amc", "application/vnd.cluetrust.cartomobile-config"],
132
- ["c11amz", "application/vnd.cluetrust.cartomobile-config-pkg"],
133
- ["cab", "application/vnd.ms-cab-compressed"],
134
- ["caf", "audio/x-caf"],
135
- ["cap", "application/vnd.tcpdump.pcap"],
136
- ["car", "application/vnd.curl.car"],
137
- ["cat", "application/vnd.ms-pki.seccat"],
138
- ["cb7", "application/x-cbr"],
139
- ["cba", "application/x-cbr"],
140
- ["cbr", "application/x-cbr"],
141
- ["cbt", "application/x-cbr"],
142
- ["cbz", "application/x-cbr"],
143
- ["cc", "text/x-c"],
144
- ["cco", "application/x-cocoa"],
145
- ["cct", "application/x-director"],
146
- ["ccxml", "application/ccxml+xml"],
147
- ["cdbcmsg", "application/vnd.contact.cmsg"],
148
- ["cda", "application/x-cdf"],
149
- ["cdf", "application/x-netcdf"],
150
- ["cdfx", "application/cdfx+xml"],
151
- ["cdkey", "application/vnd.mediastation.cdkey"],
152
- ["cdmia", "application/cdmi-capability"],
153
- ["cdmic", "application/cdmi-container"],
154
- ["cdmid", "application/cdmi-domain"],
155
- ["cdmio", "application/cdmi-object"],
156
- ["cdmiq", "application/cdmi-queue"],
157
- ["cdr", "application/cdr"],
158
- ["cdx", "chemical/x-cdx"],
159
- ["cdxml", "application/vnd.chemdraw+xml"],
160
- ["cdy", "application/vnd.cinderella"],
161
- ["cer", "application/pkix-cert"],
162
- ["cfs", "application/x-cfs-compressed"],
163
- ["cgm", "image/cgm"],
164
- ["chat", "application/x-chat"],
165
- ["chm", "application/vnd.ms-htmlhelp"],
166
- ["chrt", "application/vnd.kde.kchart"],
167
- ["cif", "chemical/x-cif"],
168
- ["cii", "application/vnd.anser-web-certificate-issue-initiation"],
169
- ["cil", "application/vnd.ms-artgalry"],
170
- ["cjs", "application/node"],
171
- ["cla", "application/vnd.claymore"],
172
- ["class", "application/octet-stream"],
173
- ["clkk", "application/vnd.crick.clicker.keyboard"],
174
- ["clkp", "application/vnd.crick.clicker.palette"],
175
- ["clkt", "application/vnd.crick.clicker.template"],
176
- ["clkw", "application/vnd.crick.clicker.wordbank"],
177
- ["clkx", "application/vnd.crick.clicker"],
178
- ["clp", "application/x-msclip"],
179
- ["cmc", "application/vnd.cosmocaller"],
180
- ["cmdf", "chemical/x-cmdf"],
181
- ["cml", "chemical/x-cml"],
182
- ["cmp", "application/vnd.yellowriver-custom-menu"],
183
- ["cmx", "image/x-cmx"],
184
- ["cod", "application/vnd.rim.cod"],
185
- ["coffee", "text/coffeescript"],
186
- ["com", "application/x-msdownload"],
187
- ["conf", "text/plain"],
188
- ["cpio", "application/x-cpio"],
189
- ["cpp", "text/x-c"],
190
- ["cpt", "application/mac-compactpro"],
191
- ["crd", "application/x-mscardfile"],
192
- ["crl", "application/pkix-crl"],
193
- ["crt", "application/x-x509-ca-cert"],
194
- ["crx", "application/x-chrome-extension"],
195
- ["cryptonote", "application/vnd.rig.cryptonote"],
196
- ["csh", "application/x-csh"],
197
- ["csl", "application/vnd.citationstyles.style+xml"],
198
- ["csml", "chemical/x-csml"],
199
- ["csp", "application/vnd.commonspace"],
200
- ["csr", "application/octet-stream"],
201
- ["css", "text/css"],
202
- ["cst", "application/x-director"],
203
- ["csv", "text/csv"],
204
- ["cu", "application/cu-seeme"],
205
- ["curl", "text/vnd.curl"],
206
- ["cww", "application/prs.cww"],
207
- ["cxt", "application/x-director"],
208
- ["cxx", "text/x-c"],
209
- ["dae", "model/vnd.collada+xml"],
210
- ["daf", "application/vnd.mobius.daf"],
211
- ["dart", "application/vnd.dart"],
212
- ["dataless", "application/vnd.fdsn.seed"],
213
- ["davmount", "application/davmount+xml"],
214
- ["dbf", "application/vnd.dbf"],
215
- ["dbk", "application/docbook+xml"],
216
- ["dcr", "application/x-director"],
217
- ["dcurl", "text/vnd.curl.dcurl"],
218
- ["dd2", "application/vnd.oma.dd2+xml"],
219
- ["ddd", "application/vnd.fujixerox.ddd"],
220
- ["ddf", "application/vnd.syncml.dmddf+xml"],
221
- ["dds", "image/vnd.ms-dds"],
222
- ["deb", "application/x-debian-package"],
223
- ["def", "text/plain"],
224
- ["deploy", "application/octet-stream"],
225
- ["der", "application/x-x509-ca-cert"],
226
- ["dfac", "application/vnd.dreamfactory"],
227
- ["dgc", "application/x-dgc-compressed"],
228
- ["dic", "text/x-c"],
229
- ["dir", "application/x-director"],
230
- ["dis", "application/vnd.mobius.dis"],
231
- ["disposition-notification", "message/disposition-notification"],
232
- ["dist", "application/octet-stream"],
233
- ["distz", "application/octet-stream"],
234
- ["djv", "image/vnd.djvu"],
235
- ["djvu", "image/vnd.djvu"],
236
- ["dll", "application/octet-stream"],
237
- ["dmg", "application/x-apple-diskimage"],
238
- ["dmn", "application/octet-stream"],
239
- ["dmp", "application/vnd.tcpdump.pcap"],
240
- ["dms", "application/octet-stream"],
241
- ["dna", "application/vnd.dna"],
242
- ["doc", "application/msword"],
243
- ["docm", "application/vnd.ms-word.template.macroEnabled.12"],
244
- ["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
245
- ["dot", "application/msword"],
246
- ["dotm", "application/vnd.ms-word.template.macroEnabled.12"],
247
- ["dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
248
- ["dp", "application/vnd.osgi.dp"],
249
- ["dpg", "application/vnd.dpgraph"],
250
- ["dra", "audio/vnd.dra"],
251
- ["drle", "image/dicom-rle"],
252
- ["dsc", "text/prs.lines.tag"],
253
- ["dssc", "application/dssc+der"],
254
- ["dtb", "application/x-dtbook+xml"],
255
- ["dtd", "application/xml-dtd"],
256
- ["dts", "audio/vnd.dts"],
257
- ["dtshd", "audio/vnd.dts.hd"],
258
- ["dump", "application/octet-stream"],
259
- ["dvb", "video/vnd.dvb.file"],
260
- ["dvi", "application/x-dvi"],
261
- ["dwd", "application/atsc-dwd+xml"],
262
- ["dwf", "model/vnd.dwf"],
263
- ["dwg", "image/vnd.dwg"],
264
- ["dxf", "image/vnd.dxf"],
265
- ["dxp", "application/vnd.spotfire.dxp"],
266
- ["dxr", "application/x-director"],
267
- ["ear", "application/java-archive"],
268
- ["ecelp4800", "audio/vnd.nuera.ecelp4800"],
269
- ["ecelp7470", "audio/vnd.nuera.ecelp7470"],
270
- ["ecelp9600", "audio/vnd.nuera.ecelp9600"],
271
- ["ecma", "application/ecmascript"],
272
- ["edm", "application/vnd.novadigm.edm"],
273
- ["edx", "application/vnd.novadigm.edx"],
274
- ["efif", "application/vnd.picsel"],
275
- ["ei6", "application/vnd.pg.osasli"],
276
- ["elc", "application/octet-stream"],
277
- ["emf", "image/emf"],
278
- ["eml", "message/rfc822"],
279
- ["emma", "application/emma+xml"],
280
- ["emotionml", "application/emotionml+xml"],
281
- ["emz", "application/x-msmetafile"],
282
- ["eol", "audio/vnd.digital-winds"],
283
- ["eot", "application/vnd.ms-fontobject"],
284
- ["eps", "application/postscript"],
285
- ["epub", "application/epub+zip"],
286
- ["es", "application/ecmascript"],
287
- ["es3", "application/vnd.eszigno3+xml"],
288
- ["esa", "application/vnd.osgi.subsystem"],
289
- ["esf", "application/vnd.epson.esf"],
290
- ["et3", "application/vnd.eszigno3+xml"],
291
- ["etx", "text/x-setext"],
292
- ["eva", "application/x-eva"],
293
- ["evy", "application/x-envoy"],
294
- ["exe", "application/octet-stream"],
295
- ["exi", "application/exi"],
296
- ["exp", "application/express"],
297
- ["exr", "image/aces"],
298
- ["ext", "application/vnd.novadigm.ext"],
299
- ["ez", "application/andrew-inset"],
300
- ["ez2", "application/vnd.ezpix-album"],
301
- ["ez3", "application/vnd.ezpix-package"],
302
- ["f", "text/x-fortran"],
303
- ["f4v", "video/mp4"],
304
- ["f77", "text/x-fortran"],
305
- ["f90", "text/x-fortran"],
306
- ["fbs", "image/vnd.fastbidsheet"],
307
- ["fcdt", "application/vnd.adobe.formscentral.fcdt"],
308
- ["fcs", "application/vnd.isac.fcs"],
309
- ["fdf", "application/vnd.fdf"],
310
- ["fdt", "application/fdt+xml"],
311
- ["fe_launch", "application/vnd.denovo.fcselayout-link"],
312
- ["fg5", "application/vnd.fujitsu.oasysgp"],
313
- ["fgd", "application/x-director"],
314
- ["fh", "image/x-freehand"],
315
- ["fh4", "image/x-freehand"],
316
- ["fh5", "image/x-freehand"],
317
- ["fh7", "image/x-freehand"],
318
- ["fhc", "image/x-freehand"],
319
- ["fig", "application/x-xfig"],
320
- ["fits", "image/fits"],
321
- ["flac", "audio/x-flac"],
322
- ["fli", "video/x-fli"],
323
- ["flo", "application/vnd.micrografx.flo"],
324
- ["flv", "video/x-flv"],
325
- ["flw", "application/vnd.kde.kivio"],
326
- ["flx", "text/vnd.fmi.flexstor"],
327
- ["fly", "text/vnd.fly"],
328
- ["fm", "application/vnd.framemaker"],
329
- ["fnc", "application/vnd.frogans.fnc"],
330
- ["fo", "application/vnd.software602.filler.form+xml"],
331
- ["for", "text/x-fortran"],
332
- ["fpx", "image/vnd.fpx"],
333
- ["frame", "application/vnd.framemaker"],
334
- ["fsc", "application/vnd.fsc.weblaunch"],
335
- ["fst", "image/vnd.fst"],
336
- ["ftc", "application/vnd.fluxtime.clip"],
337
- ["fti", "application/vnd.anser-web-funds-transfer-initiation"],
338
- ["fvt", "video/vnd.fvt"],
339
- ["fxp", "application/vnd.adobe.fxp"],
340
- ["fxpl", "application/vnd.adobe.fxp"],
341
- ["fzs", "application/vnd.fuzzysheet"],
342
- ["g2w", "application/vnd.geoplan"],
343
- ["g3", "image/g3fax"],
344
- ["g3w", "application/vnd.geospace"],
345
- ["gac", "application/vnd.groove-account"],
346
- ["gam", "application/x-tads"],
347
- ["gbr", "application/rpki-ghostbusters"],
348
- ["gca", "application/x-gca-compressed"],
349
- ["gdl", "model/vnd.gdl"],
350
- ["gdoc", "application/vnd.google-apps.document"],
351
- ["geo", "application/vnd.dynageo"],
352
- ["geojson", "application/geo+json"],
353
- ["gex", "application/vnd.geometry-explorer"],
354
- ["ggb", "application/vnd.geogebra.file"],
355
- ["ggt", "application/vnd.geogebra.tool"],
356
- ["ghf", "application/vnd.groove-help"],
357
- ["gif", "image/gif"],
358
- ["gim", "application/vnd.groove-identity-message"],
359
- ["glb", "model/gltf-binary"],
360
- ["gltf", "model/gltf+json"],
361
- ["gml", "application/gml+xml"],
362
- ["gmx", "application/vnd.gmx"],
363
- ["gnumeric", "application/x-gnumeric"],
364
- ["gpg", "application/gpg-keys"],
365
- ["gph", "application/vnd.flographit"],
366
- ["gpx", "application/gpx+xml"],
367
- ["gqf", "application/vnd.grafeq"],
368
- ["gqs", "application/vnd.grafeq"],
369
- ["gram", "application/srgs"],
370
- ["gramps", "application/x-gramps-xml"],
371
- ["gre", "application/vnd.geometry-explorer"],
372
- ["grv", "application/vnd.groove-injector"],
373
- ["grxml", "application/srgs+xml"],
374
- ["gsf", "application/x-font-ghostscript"],
375
- ["gsheet", "application/vnd.google-apps.spreadsheet"],
376
- ["gslides", "application/vnd.google-apps.presentation"],
377
- ["gtar", "application/x-gtar"],
378
- ["gtm", "application/vnd.groove-tool-message"],
379
- ["gtw", "model/vnd.gtw"],
380
- ["gv", "text/vnd.graphviz"],
381
- ["gxf", "application/gxf"],
382
- ["gxt", "application/vnd.geonext"],
383
- ["gz", "application/gzip"],
384
- ["gzip", "application/gzip"],
385
- ["h", "text/x-c"],
386
- ["h261", "video/h261"],
387
- ["h263", "video/h263"],
388
- ["h264", "video/h264"],
389
- ["hal", "application/vnd.hal+xml"],
390
- ["hbci", "application/vnd.hbci"],
391
- ["hbs", "text/x-handlebars-template"],
392
- ["hdd", "application/x-virtualbox-hdd"],
393
- ["hdf", "application/x-hdf"],
394
- ["heic", "image/heic"],
395
- ["heics", "image/heic-sequence"],
396
- ["heif", "image/heif"],
397
- ["heifs", "image/heif-sequence"],
398
- ["hej2", "image/hej2k"],
399
- ["held", "application/atsc-held+xml"],
400
- ["hh", "text/x-c"],
401
- ["hjson", "application/hjson"],
402
- ["hlp", "application/winhlp"],
403
- ["hpgl", "application/vnd.hp-hpgl"],
404
- ["hpid", "application/vnd.hp-hpid"],
405
- ["hps", "application/vnd.hp-hps"],
406
- ["hqx", "application/mac-binhex40"],
407
- ["hsj2", "image/hsj2"],
408
- ["htc", "text/x-component"],
409
- ["htke", "application/vnd.kenameaapp"],
410
- ["htm", "text/html"],
411
- ["html", "text/html"],
412
- ["hvd", "application/vnd.yamaha.hv-dic"],
413
- ["hvp", "application/vnd.yamaha.hv-voice"],
414
- ["hvs", "application/vnd.yamaha.hv-script"],
415
- ["i2g", "application/vnd.intergeo"],
416
- ["icc", "application/vnd.iccprofile"],
417
- ["ice", "x-conference/x-cooltalk"],
418
- ["icm", "application/vnd.iccprofile"],
419
- ["ico", "image/x-icon"],
420
- ["ics", "text/calendar"],
421
- ["ief", "image/ief"],
422
- ["ifb", "text/calendar"],
423
- ["ifm", "application/vnd.shana.informed.formdata"],
424
- ["iges", "model/iges"],
425
- ["igl", "application/vnd.igloader"],
426
- ["igm", "application/vnd.insors.igm"],
427
- ["igs", "model/iges"],
428
- ["igx", "application/vnd.micrografx.igx"],
429
- ["iif", "application/vnd.shana.informed.interchange"],
430
- ["img", "application/octet-stream"],
431
- ["imp", "application/vnd.accpac.simply.imp"],
432
- ["ims", "application/vnd.ms-ims"],
433
- ["in", "text/plain"],
434
- ["ini", "text/plain"],
435
- ["ink", "application/inkml+xml"],
436
- ["inkml", "application/inkml+xml"],
437
- ["install", "application/x-install-instructions"],
438
- ["iota", "application/vnd.astraea-software.iota"],
439
- ["ipfix", "application/ipfix"],
440
- ["ipk", "application/vnd.shana.informed.package"],
441
- ["irm", "application/vnd.ibm.rights-management"],
442
- ["irp", "application/vnd.irepository.package+xml"],
443
- ["iso", "application/x-iso9660-image"],
444
- ["itp", "application/vnd.shana.informed.formtemplate"],
445
- ["its", "application/its+xml"],
446
- ["ivp", "application/vnd.immervision-ivp"],
447
- ["ivu", "application/vnd.immervision-ivu"],
448
- ["jad", "text/vnd.sun.j2me.app-descriptor"],
449
- ["jade", "text/jade"],
450
- ["jam", "application/vnd.jam"],
451
- ["jar", "application/java-archive"],
452
- ["jardiff", "application/x-java-archive-diff"],
453
- ["java", "text/x-java-source"],
454
- ["jhc", "image/jphc"],
455
- ["jisp", "application/vnd.jisp"],
456
- ["jls", "image/jls"],
457
- ["jlt", "application/vnd.hp-jlyt"],
458
- ["jng", "image/x-jng"],
459
- ["jnlp", "application/x-java-jnlp-file"],
460
- ["joda", "application/vnd.joost.joda-archive"],
461
- ["jp2", "image/jp2"],
462
- ["jpe", "image/jpeg"],
463
- ["jpeg", "image/jpeg"],
464
- ["jpf", "image/jpx"],
465
- ["jpg", "image/jpeg"],
466
- ["jpg2", "image/jp2"],
467
- ["jpgm", "video/jpm"],
468
- ["jpgv", "video/jpeg"],
469
- ["jph", "image/jph"],
470
- ["jpm", "video/jpm"],
471
- ["jpx", "image/jpx"],
472
- ["js", "application/javascript"],
473
- ["json", "application/json"],
474
- ["json5", "application/json5"],
475
- ["jsonld", "application/ld+json"],
476
- // https://jsonlines.org/
477
- ["jsonl", "application/jsonl"],
478
- ["jsonml", "application/jsonml+json"],
479
- ["jsx", "text/jsx"],
480
- ["jxr", "image/jxr"],
481
- ["jxra", "image/jxra"],
482
- ["jxrs", "image/jxrs"],
483
- ["jxs", "image/jxs"],
484
- ["jxsc", "image/jxsc"],
485
- ["jxsi", "image/jxsi"],
486
- ["jxss", "image/jxss"],
487
- ["kar", "audio/midi"],
488
- ["karbon", "application/vnd.kde.karbon"],
489
- ["kdb", "application/octet-stream"],
490
- ["kdbx", "application/x-keepass2"],
491
- ["key", "application/x-iwork-keynote-sffkey"],
492
- ["kfo", "application/vnd.kde.kformula"],
493
- ["kia", "application/vnd.kidspiration"],
494
- ["kml", "application/vnd.google-earth.kml+xml"],
495
- ["kmz", "application/vnd.google-earth.kmz"],
496
- ["kne", "application/vnd.kinar"],
497
- ["knp", "application/vnd.kinar"],
498
- ["kon", "application/vnd.kde.kontour"],
499
- ["kpr", "application/vnd.kde.kpresenter"],
500
- ["kpt", "application/vnd.kde.kpresenter"],
501
- ["kpxx", "application/vnd.ds-keypoint"],
502
- ["ksp", "application/vnd.kde.kspread"],
503
- ["ktr", "application/vnd.kahootz"],
504
- ["ktx", "image/ktx"],
505
- ["ktx2", "image/ktx2"],
506
- ["ktz", "application/vnd.kahootz"],
507
- ["kwd", "application/vnd.kde.kword"],
508
- ["kwt", "application/vnd.kde.kword"],
509
- ["lasxml", "application/vnd.las.las+xml"],
510
- ["latex", "application/x-latex"],
511
- ["lbd", "application/vnd.llamagraphics.life-balance.desktop"],
512
- ["lbe", "application/vnd.llamagraphics.life-balance.exchange+xml"],
513
- ["les", "application/vnd.hhe.lesson-player"],
514
- ["less", "text/less"],
515
- ["lgr", "application/lgr+xml"],
516
- ["lha", "application/octet-stream"],
517
- ["link66", "application/vnd.route66.link66+xml"],
518
- ["list", "text/plain"],
519
- ["list3820", "application/vnd.ibm.modcap"],
520
- ["listafp", "application/vnd.ibm.modcap"],
521
- ["litcoffee", "text/coffeescript"],
522
- ["lnk", "application/x-ms-shortcut"],
523
- ["log", "text/plain"],
524
- ["lostxml", "application/lost+xml"],
525
- ["lrf", "application/octet-stream"],
526
- ["lrm", "application/vnd.ms-lrm"],
527
- ["ltf", "application/vnd.frogans.ltf"],
528
- ["lua", "text/x-lua"],
529
- ["luac", "application/x-lua-bytecode"],
530
- ["lvp", "audio/vnd.lucent.voice"],
531
- ["lwp", "application/vnd.lotus-wordpro"],
532
- ["lzh", "application/octet-stream"],
533
- ["m1v", "video/mpeg"],
534
- ["m2a", "audio/mpeg"],
535
- ["m2v", "video/mpeg"],
536
- ["m3a", "audio/mpeg"],
537
- ["m3u", "text/plain"],
538
- ["m3u8", "application/vnd.apple.mpegurl"],
539
- ["m4a", "audio/x-m4a"],
540
- ["m4p", "application/mp4"],
541
- ["m4s", "video/iso.segment"],
542
- ["m4u", "application/vnd.mpegurl"],
543
- ["m4v", "video/x-m4v"],
544
- ["m13", "application/x-msmediaview"],
545
- ["m14", "application/x-msmediaview"],
546
- ["m21", "application/mp21"],
547
- ["ma", "application/mathematica"],
548
- ["mads", "application/mads+xml"],
549
- ["maei", "application/mmt-aei+xml"],
550
- ["mag", "application/vnd.ecowin.chart"],
551
- ["maker", "application/vnd.framemaker"],
552
- ["man", "text/troff"],
553
- ["manifest", "text/cache-manifest"],
554
- ["map", "application/json"],
555
- ["mar", "application/octet-stream"],
556
- ["markdown", "text/markdown"],
557
- ["mathml", "application/mathml+xml"],
558
- ["mb", "application/mathematica"],
559
- ["mbk", "application/vnd.mobius.mbk"],
560
- ["mbox", "application/mbox"],
561
- ["mc1", "application/vnd.medcalcdata"],
562
- ["mcd", "application/vnd.mcd"],
563
- ["mcurl", "text/vnd.curl.mcurl"],
564
- ["md", "text/markdown"],
565
- ["mdb", "application/x-msaccess"],
566
- ["mdi", "image/vnd.ms-modi"],
567
- ["mdx", "text/mdx"],
568
- ["me", "text/troff"],
569
- ["mesh", "model/mesh"],
570
- ["meta4", "application/metalink4+xml"],
571
- ["metalink", "application/metalink+xml"],
572
- ["mets", "application/mets+xml"],
573
- ["mfm", "application/vnd.mfmp"],
574
- ["mft", "application/rpki-manifest"],
575
- ["mgp", "application/vnd.osgeo.mapguide.package"],
576
- ["mgz", "application/vnd.proteus.magazine"],
577
- ["mid", "audio/midi"],
578
- ["midi", "audio/midi"],
579
- ["mie", "application/x-mie"],
580
- ["mif", "application/vnd.mif"],
581
- ["mime", "message/rfc822"],
582
- ["mj2", "video/mj2"],
583
- ["mjp2", "video/mj2"],
584
- ["mjs", "application/javascript"],
585
- ["mk3d", "video/x-matroska"],
586
- ["mka", "audio/x-matroska"],
587
- ["mkd", "text/x-markdown"],
588
- ["mks", "video/x-matroska"],
589
- ["mkv", "video/x-matroska"],
590
- ["mlp", "application/vnd.dolby.mlp"],
591
- ["mmd", "application/vnd.chipnuts.karaoke-mmd"],
592
- ["mmf", "application/vnd.smaf"],
593
- ["mml", "text/mathml"],
594
- ["mmr", "image/vnd.fujixerox.edmics-mmr"],
595
- ["mng", "video/x-mng"],
596
- ["mny", "application/x-msmoney"],
597
- ["mobi", "application/x-mobipocket-ebook"],
598
- ["mods", "application/mods+xml"],
599
- ["mov", "video/quicktime"],
600
- ["movie", "video/x-sgi-movie"],
601
- ["mp2", "audio/mpeg"],
602
- ["mp2a", "audio/mpeg"],
603
- ["mp3", "audio/mpeg"],
604
- ["mp4", "video/mp4"],
605
- ["mp4a", "audio/mp4"],
606
- ["mp4s", "application/mp4"],
607
- ["mp4v", "video/mp4"],
608
- ["mp21", "application/mp21"],
609
- ["mpc", "application/vnd.mophun.certificate"],
610
- ["mpd", "application/dash+xml"],
611
- ["mpe", "video/mpeg"],
612
- ["mpeg", "video/mpeg"],
613
- ["mpg", "video/mpeg"],
614
- ["mpg4", "video/mp4"],
615
- ["mpga", "audio/mpeg"],
616
- ["mpkg", "application/vnd.apple.installer+xml"],
617
- ["mpm", "application/vnd.blueice.multipass"],
618
- ["mpn", "application/vnd.mophun.application"],
619
- ["mpp", "application/vnd.ms-project"],
620
- ["mpt", "application/vnd.ms-project"],
621
- ["mpy", "application/vnd.ibm.minipay"],
622
- ["mqy", "application/vnd.mobius.mqy"],
623
- ["mrc", "application/marc"],
624
- ["mrcx", "application/marcxml+xml"],
625
- ["ms", "text/troff"],
626
- ["mscml", "application/mediaservercontrol+xml"],
627
- ["mseed", "application/vnd.fdsn.mseed"],
628
- ["mseq", "application/vnd.mseq"],
629
- ["msf", "application/vnd.epson.msf"],
630
- ["msg", "application/vnd.ms-outlook"],
631
- ["msh", "model/mesh"],
632
- ["msi", "application/x-msdownload"],
633
- ["msl", "application/vnd.mobius.msl"],
634
- ["msm", "application/octet-stream"],
635
- ["msp", "application/octet-stream"],
636
- ["msty", "application/vnd.muvee.style"],
637
- ["mtl", "model/mtl"],
638
- ["mts", "model/vnd.mts"],
639
- ["mus", "application/vnd.musician"],
640
- ["musd", "application/mmt-usd+xml"],
641
- ["musicxml", "application/vnd.recordare.musicxml+xml"],
642
- ["mvb", "application/x-msmediaview"],
643
- ["mvt", "application/vnd.mapbox-vector-tile"],
644
- ["mwf", "application/vnd.mfer"],
645
- ["mxf", "application/mxf"],
646
- ["mxl", "application/vnd.recordare.musicxml"],
647
- ["mxmf", "audio/mobile-xmf"],
648
- ["mxml", "application/xv+xml"],
649
- ["mxs", "application/vnd.triscape.mxs"],
650
- ["mxu", "video/vnd.mpegurl"],
651
- ["n-gage", "application/vnd.nokia.n-gage.symbian.install"],
652
- ["n3", "text/n3"],
653
- ["nb", "application/mathematica"],
654
- ["nbp", "application/vnd.wolfram.player"],
655
- ["nc", "application/x-netcdf"],
656
- ["ncx", "application/x-dtbncx+xml"],
657
- ["nfo", "text/x-nfo"],
658
- ["ngdat", "application/vnd.nokia.n-gage.data"],
659
- ["nitf", "application/vnd.nitf"],
660
- ["nlu", "application/vnd.neurolanguage.nlu"],
661
- ["nml", "application/vnd.enliven"],
662
- ["nnd", "application/vnd.noblenet-directory"],
663
- ["nns", "application/vnd.noblenet-sealer"],
664
- ["nnw", "application/vnd.noblenet-web"],
665
- ["npx", "image/vnd.net-fpx"],
666
- ["nq", "application/n-quads"],
667
- ["nsc", "application/x-conference"],
668
- ["nsf", "application/vnd.lotus-notes"],
669
- ["nt", "application/n-triples"],
670
- ["ntf", "application/vnd.nitf"],
671
- ["numbers", "application/x-iwork-numbers-sffnumbers"],
672
- ["nzb", "application/x-nzb"],
673
- ["oa2", "application/vnd.fujitsu.oasys2"],
674
- ["oa3", "application/vnd.fujitsu.oasys3"],
675
- ["oas", "application/vnd.fujitsu.oasys"],
676
- ["obd", "application/x-msbinder"],
677
- ["obgx", "application/vnd.openblox.game+xml"],
678
- ["obj", "model/obj"],
679
- ["oda", "application/oda"],
680
- ["odb", "application/vnd.oasis.opendocument.database"],
681
- ["odc", "application/vnd.oasis.opendocument.chart"],
682
- ["odf", "application/vnd.oasis.opendocument.formula"],
683
- ["odft", "application/vnd.oasis.opendocument.formula-template"],
684
- ["odg", "application/vnd.oasis.opendocument.graphics"],
685
- ["odi", "application/vnd.oasis.opendocument.image"],
686
- ["odm", "application/vnd.oasis.opendocument.text-master"],
687
- ["odp", "application/vnd.oasis.opendocument.presentation"],
688
- ["ods", "application/vnd.oasis.opendocument.spreadsheet"],
689
- ["odt", "application/vnd.oasis.opendocument.text"],
690
- ["oga", "audio/ogg"],
691
- ["ogex", "model/vnd.opengex"],
692
- ["ogg", "audio/ogg"],
693
- ["ogv", "video/ogg"],
694
- ["ogx", "application/ogg"],
695
- ["omdoc", "application/omdoc+xml"],
696
- ["onepkg", "application/onenote"],
697
- ["onetmp", "application/onenote"],
698
- ["onetoc", "application/onenote"],
699
- ["onetoc2", "application/onenote"],
700
- ["opf", "application/oebps-package+xml"],
701
- ["opml", "text/x-opml"],
702
- ["oprc", "application/vnd.palm"],
703
- ["opus", "audio/ogg"],
704
- ["org", "text/x-org"],
705
- ["osf", "application/vnd.yamaha.openscoreformat"],
706
- ["osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml"],
707
- ["osm", "application/vnd.openstreetmap.data+xml"],
708
- ["otc", "application/vnd.oasis.opendocument.chart-template"],
709
- ["otf", "font/otf"],
710
- ["otg", "application/vnd.oasis.opendocument.graphics-template"],
711
- ["oth", "application/vnd.oasis.opendocument.text-web"],
712
- ["oti", "application/vnd.oasis.opendocument.image-template"],
713
- ["otp", "application/vnd.oasis.opendocument.presentation-template"],
714
- ["ots", "application/vnd.oasis.opendocument.spreadsheet-template"],
715
- ["ott", "application/vnd.oasis.opendocument.text-template"],
716
- ["ova", "application/x-virtualbox-ova"],
717
- ["ovf", "application/x-virtualbox-ovf"],
718
- ["owl", "application/rdf+xml"],
719
- ["oxps", "application/oxps"],
720
- ["oxt", "application/vnd.openofficeorg.extension"],
721
- ["p", "text/x-pascal"],
722
- ["p7a", "application/x-pkcs7-signature"],
723
- ["p7b", "application/x-pkcs7-certificates"],
724
- ["p7c", "application/pkcs7-mime"],
725
- ["p7m", "application/pkcs7-mime"],
726
- ["p7r", "application/x-pkcs7-certreqresp"],
727
- ["p7s", "application/pkcs7-signature"],
728
- ["p8", "application/pkcs8"],
729
- ["p10", "application/x-pkcs10"],
730
- ["p12", "application/x-pkcs12"],
731
- ["pac", "application/x-ns-proxy-autoconfig"],
732
- ["pages", "application/x-iwork-pages-sffpages"],
733
- ["pas", "text/x-pascal"],
734
- ["paw", "application/vnd.pawaafile"],
735
- ["pbd", "application/vnd.powerbuilder6"],
736
- ["pbm", "image/x-portable-bitmap"],
737
- ["pcap", "application/vnd.tcpdump.pcap"],
738
- ["pcf", "application/x-font-pcf"],
739
- ["pcl", "application/vnd.hp-pcl"],
740
- ["pclxl", "application/vnd.hp-pclxl"],
741
- ["pct", "image/x-pict"],
742
- ["pcurl", "application/vnd.curl.pcurl"],
743
- ["pcx", "image/x-pcx"],
744
- ["pdb", "application/x-pilot"],
745
- ["pde", "text/x-processing"],
746
- ["pdf", "application/pdf"],
747
- ["pem", "application/x-x509-user-cert"],
748
- ["pfa", "application/x-font-type1"],
749
- ["pfb", "application/x-font-type1"],
750
- ["pfm", "application/x-font-type1"],
751
- ["pfr", "application/font-tdpfr"],
752
- ["pfx", "application/x-pkcs12"],
753
- ["pgm", "image/x-portable-graymap"],
754
- ["pgn", "application/x-chess-pgn"],
755
- ["pgp", "application/pgp"],
756
- ["php", "application/x-httpd-php"],
757
- ["php3", "application/x-httpd-php"],
758
- ["php4", "application/x-httpd-php"],
759
- ["phps", "application/x-httpd-php-source"],
760
- ["phtml", "application/x-httpd-php"],
761
- ["pic", "image/x-pict"],
762
- ["pkg", "application/octet-stream"],
763
- ["pki", "application/pkixcmp"],
764
- ["pkipath", "application/pkix-pkipath"],
765
- ["pkpass", "application/vnd.apple.pkpass"],
766
- ["pl", "application/x-perl"],
767
- ["plb", "application/vnd.3gpp.pic-bw-large"],
768
- ["plc", "application/vnd.mobius.plc"],
769
- ["plf", "application/vnd.pocketlearn"],
770
- ["pls", "application/pls+xml"],
771
- ["pm", "application/x-perl"],
772
- ["pml", "application/vnd.ctc-posml"],
773
- ["png", "image/png"],
774
- ["pnm", "image/x-portable-anymap"],
775
- ["portpkg", "application/vnd.macports.portpkg"],
776
- ["pot", "application/vnd.ms-powerpoint"],
777
- ["potm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
778
- ["potx", "application/vnd.openxmlformats-officedocument.presentationml.template"],
779
- ["ppa", "application/vnd.ms-powerpoint"],
780
- ["ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"],
781
- ["ppd", "application/vnd.cups-ppd"],
782
- ["ppm", "image/x-portable-pixmap"],
783
- ["pps", "application/vnd.ms-powerpoint"],
784
- ["ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
785
- ["ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
786
- ["ppt", "application/powerpoint"],
787
- ["pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
788
- ["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
789
- ["pqa", "application/vnd.palm"],
790
- ["prc", "application/x-pilot"],
791
- ["pre", "application/vnd.lotus-freelance"],
792
- ["prf", "application/pics-rules"],
793
- ["provx", "application/provenance+xml"],
794
- ["ps", "application/postscript"],
795
- ["psb", "application/vnd.3gpp.pic-bw-small"],
796
- ["psd", "application/x-photoshop"],
797
- ["psf", "application/x-font-linux-psf"],
798
- ["pskcxml", "application/pskc+xml"],
799
- ["pti", "image/prs.pti"],
800
- ["ptid", "application/vnd.pvi.ptid1"],
801
- ["pub", "application/x-mspublisher"],
802
- ["pvb", "application/vnd.3gpp.pic-bw-var"],
803
- ["pwn", "application/vnd.3m.post-it-notes"],
804
- ["pya", "audio/vnd.ms-playready.media.pya"],
805
- ["pyv", "video/vnd.ms-playready.media.pyv"],
806
- ["qam", "application/vnd.epson.quickanime"],
807
- ["qbo", "application/vnd.intu.qbo"],
808
- ["qfx", "application/vnd.intu.qfx"],
809
- ["qps", "application/vnd.publishare-delta-tree"],
810
- ["qt", "video/quicktime"],
811
- ["qwd", "application/vnd.quark.quarkxpress"],
812
- ["qwt", "application/vnd.quark.quarkxpress"],
813
- ["qxb", "application/vnd.quark.quarkxpress"],
814
- ["qxd", "application/vnd.quark.quarkxpress"],
815
- ["qxl", "application/vnd.quark.quarkxpress"],
816
- ["qxt", "application/vnd.quark.quarkxpress"],
817
- ["ra", "audio/x-realaudio"],
818
- ["ram", "audio/x-pn-realaudio"],
819
- ["raml", "application/raml+yaml"],
820
- ["rapd", "application/route-apd+xml"],
821
- ["rar", "application/x-rar"],
822
- ["ras", "image/x-cmu-raster"],
823
- ["rcprofile", "application/vnd.ipunplugged.rcprofile"],
824
- ["rdf", "application/rdf+xml"],
825
- ["rdz", "application/vnd.data-vision.rdz"],
826
- ["relo", "application/p2p-overlay+xml"],
827
- ["rep", "application/vnd.businessobjects"],
828
- ["res", "application/x-dtbresource+xml"],
829
- ["rgb", "image/x-rgb"],
830
- ["rif", "application/reginfo+xml"],
831
- ["rip", "audio/vnd.rip"],
832
- ["ris", "application/x-research-info-systems"],
833
- ["rl", "application/resource-lists+xml"],
834
- ["rlc", "image/vnd.fujixerox.edmics-rlc"],
835
- ["rld", "application/resource-lists-diff+xml"],
836
- ["rm", "audio/x-pn-realaudio"],
837
- ["rmi", "audio/midi"],
838
- ["rmp", "audio/x-pn-realaudio-plugin"],
839
- ["rms", "application/vnd.jcp.javame.midlet-rms"],
840
- ["rmvb", "application/vnd.rn-realmedia-vbr"],
841
- ["rnc", "application/relax-ng-compact-syntax"],
842
- ["rng", "application/xml"],
843
- ["roa", "application/rpki-roa"],
844
- ["roff", "text/troff"],
845
- ["rp9", "application/vnd.cloanto.rp9"],
846
- ["rpm", "audio/x-pn-realaudio-plugin"],
847
- ["rpss", "application/vnd.nokia.radio-presets"],
848
- ["rpst", "application/vnd.nokia.radio-preset"],
849
- ["rq", "application/sparql-query"],
850
- ["rs", "application/rls-services+xml"],
851
- ["rsa", "application/x-pkcs7"],
852
- ["rsat", "application/atsc-rsat+xml"],
853
- ["rsd", "application/rsd+xml"],
854
- ["rsheet", "application/urc-ressheet+xml"],
855
- ["rss", "application/rss+xml"],
856
- ["rtf", "text/rtf"],
857
- ["rtx", "text/richtext"],
858
- ["run", "application/x-makeself"],
859
- ["rusd", "application/route-usd+xml"],
860
- ["rv", "video/vnd.rn-realvideo"],
861
- ["s", "text/x-asm"],
862
- ["s3m", "audio/s3m"],
863
- ["saf", "application/vnd.yamaha.smaf-audio"],
864
- ["sass", "text/x-sass"],
865
- ["sbml", "application/sbml+xml"],
866
- ["sc", "application/vnd.ibm.secure-container"],
867
- ["scd", "application/x-msschedule"],
868
- ["scm", "application/vnd.lotus-screencam"],
869
- ["scq", "application/scvp-cv-request"],
870
- ["scs", "application/scvp-cv-response"],
871
- ["scss", "text/x-scss"],
872
- ["scurl", "text/vnd.curl.scurl"],
873
- ["sda", "application/vnd.stardivision.draw"],
874
- ["sdc", "application/vnd.stardivision.calc"],
875
- ["sdd", "application/vnd.stardivision.impress"],
876
- ["sdkd", "application/vnd.solent.sdkm+xml"],
877
- ["sdkm", "application/vnd.solent.sdkm+xml"],
878
- ["sdp", "application/sdp"],
879
- ["sdw", "application/vnd.stardivision.writer"],
880
- ["sea", "application/octet-stream"],
881
- ["see", "application/vnd.seemail"],
882
- ["seed", "application/vnd.fdsn.seed"],
883
- ["sema", "application/vnd.sema"],
884
- ["semd", "application/vnd.semd"],
885
- ["semf", "application/vnd.semf"],
886
- ["senmlx", "application/senml+xml"],
887
- ["sensmlx", "application/sensml+xml"],
888
- ["ser", "application/java-serialized-object"],
889
- ["setpay", "application/set-payment-initiation"],
890
- ["setreg", "application/set-registration-initiation"],
891
- ["sfd-hdstx", "application/vnd.hydrostatix.sof-data"],
892
- ["sfs", "application/vnd.spotfire.sfs"],
893
- ["sfv", "text/x-sfv"],
894
- ["sgi", "image/sgi"],
895
- ["sgl", "application/vnd.stardivision.writer-global"],
896
- ["sgm", "text/sgml"],
897
- ["sgml", "text/sgml"],
898
- ["sh", "application/x-sh"],
899
- ["shar", "application/x-shar"],
900
- ["shex", "text/shex"],
901
- ["shf", "application/shf+xml"],
902
- ["shtml", "text/html"],
903
- ["sid", "image/x-mrsid-image"],
904
- ["sieve", "application/sieve"],
905
- ["sig", "application/pgp-signature"],
906
- ["sil", "audio/silk"],
907
- ["silo", "model/mesh"],
908
- ["sis", "application/vnd.symbian.install"],
909
- ["sisx", "application/vnd.symbian.install"],
910
- ["sit", "application/x-stuffit"],
911
- ["sitx", "application/x-stuffitx"],
912
- ["siv", "application/sieve"],
913
- ["skd", "application/vnd.koan"],
914
- ["skm", "application/vnd.koan"],
915
- ["skp", "application/vnd.koan"],
916
- ["skt", "application/vnd.koan"],
917
- ["sldm", "application/vnd.ms-powerpoint.slide.macroenabled.12"],
918
- ["sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"],
919
- ["slim", "text/slim"],
920
- ["slm", "text/slim"],
921
- ["sls", "application/route-s-tsid+xml"],
922
- ["slt", "application/vnd.epson.salt"],
923
- ["sm", "application/vnd.stepmania.stepchart"],
924
- ["smf", "application/vnd.stardivision.math"],
925
- ["smi", "application/smil"],
926
- ["smil", "application/smil"],
927
- ["smv", "video/x-smv"],
928
- ["smzip", "application/vnd.stepmania.package"],
929
- ["snd", "audio/basic"],
930
- ["snf", "application/x-font-snf"],
931
- ["so", "application/octet-stream"],
932
- ["spc", "application/x-pkcs7-certificates"],
933
- ["spdx", "text/spdx"],
934
- ["spf", "application/vnd.yamaha.smaf-phrase"],
935
- ["spl", "application/x-futuresplash"],
936
- ["spot", "text/vnd.in3d.spot"],
937
- ["spp", "application/scvp-vp-response"],
938
- ["spq", "application/scvp-vp-request"],
939
- ["spx", "audio/ogg"],
940
- ["sql", "application/x-sql"],
941
- ["src", "application/x-wais-source"],
942
- ["srt", "application/x-subrip"],
943
- ["sru", "application/sru+xml"],
944
- ["srx", "application/sparql-results+xml"],
945
- ["ssdl", "application/ssdl+xml"],
946
- ["sse", "application/vnd.kodak-descriptor"],
947
- ["ssf", "application/vnd.epson.ssf"],
948
- ["ssml", "application/ssml+xml"],
949
- ["sst", "application/octet-stream"],
950
- ["st", "application/vnd.sailingtracker.track"],
951
- ["stc", "application/vnd.sun.xml.calc.template"],
952
- ["std", "application/vnd.sun.xml.draw.template"],
953
- ["stf", "application/vnd.wt.stf"],
954
- ["sti", "application/vnd.sun.xml.impress.template"],
955
- ["stk", "application/hyperstudio"],
956
- ["stl", "model/stl"],
957
- ["stpx", "model/step+xml"],
958
- ["stpxz", "model/step-xml+zip"],
959
- ["stpz", "model/step+zip"],
960
- ["str", "application/vnd.pg.format"],
961
- ["stw", "application/vnd.sun.xml.writer.template"],
962
- ["styl", "text/stylus"],
963
- ["stylus", "text/stylus"],
964
- ["sub", "text/vnd.dvb.subtitle"],
965
- ["sus", "application/vnd.sus-calendar"],
966
- ["susp", "application/vnd.sus-calendar"],
967
- ["sv4cpio", "application/x-sv4cpio"],
968
- ["sv4crc", "application/x-sv4crc"],
969
- ["svc", "application/vnd.dvb.service"],
970
- ["svd", "application/vnd.svd"],
971
- ["svg", "image/svg+xml"],
972
- ["svgz", "image/svg+xml"],
973
- ["swa", "application/x-director"],
974
- ["swf", "application/x-shockwave-flash"],
975
- ["swi", "application/vnd.aristanetworks.swi"],
976
- ["swidtag", "application/swid+xml"],
977
- ["sxc", "application/vnd.sun.xml.calc"],
978
- ["sxd", "application/vnd.sun.xml.draw"],
979
- ["sxg", "application/vnd.sun.xml.writer.global"],
980
- ["sxi", "application/vnd.sun.xml.impress"],
981
- ["sxm", "application/vnd.sun.xml.math"],
982
- ["sxw", "application/vnd.sun.xml.writer"],
983
- ["t", "text/troff"],
984
- ["t3", "application/x-t3vm-image"],
985
- ["t38", "image/t38"],
986
- ["taglet", "application/vnd.mynfc"],
987
- ["tao", "application/vnd.tao.intent-module-archive"],
988
- ["tap", "image/vnd.tencent.tap"],
989
- ["tar", "application/x-tar"],
990
- ["tcap", "application/vnd.3gpp2.tcap"],
991
- ["tcl", "application/x-tcl"],
992
- ["td", "application/urc-targetdesc+xml"],
993
- ["teacher", "application/vnd.smart.teacher"],
994
- ["tei", "application/tei+xml"],
995
- ["teicorpus", "application/tei+xml"],
996
- ["tex", "application/x-tex"],
997
- ["texi", "application/x-texinfo"],
998
- ["texinfo", "application/x-texinfo"],
999
- ["text", "text/plain"],
1000
- ["tfi", "application/thraud+xml"],
1001
- ["tfm", "application/x-tex-tfm"],
1002
- ["tfx", "image/tiff-fx"],
1003
- ["tga", "image/x-tga"],
1004
- ["tgz", "application/x-tar"],
1005
- ["thmx", "application/vnd.ms-officetheme"],
1006
- ["tif", "image/tiff"],
1007
- ["tiff", "image/tiff"],
1008
- ["tk", "application/x-tcl"],
1009
- ["tmo", "application/vnd.tmobile-livetv"],
1010
- ["toml", "application/toml"],
1011
- ["torrent", "application/x-bittorrent"],
1012
- ["tpl", "application/vnd.groove-tool-template"],
1013
- ["tpt", "application/vnd.trid.tpt"],
1014
- ["tr", "text/troff"],
1015
- ["tra", "application/vnd.trueapp"],
1016
- ["trig", "application/trig"],
1017
- ["trm", "application/x-msterminal"],
1018
- ["ts", "video/mp2t"],
1019
- ["tsd", "application/timestamped-data"],
1020
- ["tsv", "text/tab-separated-values"],
1021
- ["ttc", "font/collection"],
1022
- ["ttf", "font/ttf"],
1023
- ["ttl", "text/turtle"],
1024
- ["ttml", "application/ttml+xml"],
1025
- ["twd", "application/vnd.simtech-mindmapper"],
1026
- ["twds", "application/vnd.simtech-mindmapper"],
1027
- ["txd", "application/vnd.genomatix.tuxedo"],
1028
- ["txf", "application/vnd.mobius.txf"],
1029
- ["txt", "text/plain"],
1030
- ["u8dsn", "message/global-delivery-status"],
1031
- ["u8hdr", "message/global-headers"],
1032
- ["u8mdn", "message/global-disposition-notification"],
1033
- ["u8msg", "message/global"],
1034
- ["u32", "application/x-authorware-bin"],
1035
- ["ubj", "application/ubjson"],
1036
- ["udeb", "application/x-debian-package"],
1037
- ["ufd", "application/vnd.ufdl"],
1038
- ["ufdl", "application/vnd.ufdl"],
1039
- ["ulx", "application/x-glulx"],
1040
- ["umj", "application/vnd.umajin"],
1041
- ["unityweb", "application/vnd.unity"],
1042
- ["uoml", "application/vnd.uoml+xml"],
1043
- ["uri", "text/uri-list"],
1044
- ["uris", "text/uri-list"],
1045
- ["urls", "text/uri-list"],
1046
- ["usdz", "model/vnd.usdz+zip"],
1047
- ["ustar", "application/x-ustar"],
1048
- ["utz", "application/vnd.uiq.theme"],
1049
- ["uu", "text/x-uuencode"],
1050
- ["uva", "audio/vnd.dece.audio"],
1051
- ["uvd", "application/vnd.dece.data"],
1052
- ["uvf", "application/vnd.dece.data"],
1053
- ["uvg", "image/vnd.dece.graphic"],
1054
- ["uvh", "video/vnd.dece.hd"],
1055
- ["uvi", "image/vnd.dece.graphic"],
1056
- ["uvm", "video/vnd.dece.mobile"],
1057
- ["uvp", "video/vnd.dece.pd"],
1058
- ["uvs", "video/vnd.dece.sd"],
1059
- ["uvt", "application/vnd.dece.ttml+xml"],
1060
- ["uvu", "video/vnd.uvvu.mp4"],
1061
- ["uvv", "video/vnd.dece.video"],
1062
- ["uvva", "audio/vnd.dece.audio"],
1063
- ["uvvd", "application/vnd.dece.data"],
1064
- ["uvvf", "application/vnd.dece.data"],
1065
- ["uvvg", "image/vnd.dece.graphic"],
1066
- ["uvvh", "video/vnd.dece.hd"],
1067
- ["uvvi", "image/vnd.dece.graphic"],
1068
- ["uvvm", "video/vnd.dece.mobile"],
1069
- ["uvvp", "video/vnd.dece.pd"],
1070
- ["uvvs", "video/vnd.dece.sd"],
1071
- ["uvvt", "application/vnd.dece.ttml+xml"],
1072
- ["uvvu", "video/vnd.uvvu.mp4"],
1073
- ["uvvv", "video/vnd.dece.video"],
1074
- ["uvvx", "application/vnd.dece.unspecified"],
1075
- ["uvvz", "application/vnd.dece.zip"],
1076
- ["uvx", "application/vnd.dece.unspecified"],
1077
- ["uvz", "application/vnd.dece.zip"],
1078
- ["vbox", "application/x-virtualbox-vbox"],
1079
- ["vbox-extpack", "application/x-virtualbox-vbox-extpack"],
1080
- ["vcard", "text/vcard"],
1081
- ["vcd", "application/x-cdlink"],
1082
- ["vcf", "text/x-vcard"],
1083
- ["vcg", "application/vnd.groove-vcard"],
1084
- ["vcs", "text/x-vcalendar"],
1085
- ["vcx", "application/vnd.vcx"],
1086
- ["vdi", "application/x-virtualbox-vdi"],
1087
- ["vds", "model/vnd.sap.vds"],
1088
- ["vhd", "application/x-virtualbox-vhd"],
1089
- ["vis", "application/vnd.visionary"],
1090
- ["viv", "video/vnd.vivo"],
1091
- ["vlc", "application/videolan"],
1092
- ["vmdk", "application/x-virtualbox-vmdk"],
1093
- ["vob", "video/x-ms-vob"],
1094
- ["vor", "application/vnd.stardivision.writer"],
1095
- ["vox", "application/x-authorware-bin"],
1096
- ["vrml", "model/vrml"],
1097
- ["vsd", "application/vnd.visio"],
1098
- ["vsf", "application/vnd.vsf"],
1099
- ["vss", "application/vnd.visio"],
1100
- ["vst", "application/vnd.visio"],
1101
- ["vsw", "application/vnd.visio"],
1102
- ["vtf", "image/vnd.valve.source.texture"],
1103
- ["vtt", "text/vtt"],
1104
- ["vtu", "model/vnd.vtu"],
1105
- ["vxml", "application/voicexml+xml"],
1106
- ["w3d", "application/x-director"],
1107
- ["wad", "application/x-doom"],
1108
- ["wadl", "application/vnd.sun.wadl+xml"],
1109
- ["war", "application/java-archive"],
1110
- ["wasm", "application/wasm"],
1111
- ["wav", "audio/x-wav"],
1112
- ["wax", "audio/x-ms-wax"],
1113
- ["wbmp", "image/vnd.wap.wbmp"],
1114
- ["wbs", "application/vnd.criticaltools.wbs+xml"],
1115
- ["wbxml", "application/wbxml"],
1116
- ["wcm", "application/vnd.ms-works"],
1117
- ["wdb", "application/vnd.ms-works"],
1118
- ["wdp", "image/vnd.ms-photo"],
1119
- ["weba", "audio/webm"],
1120
- ["webapp", "application/x-web-app-manifest+json"],
1121
- ["webm", "video/webm"],
1122
- ["webmanifest", "application/manifest+json"],
1123
- ["webp", "image/webp"],
1124
- ["wg", "application/vnd.pmi.widget"],
1125
- ["wgt", "application/widget"],
1126
- ["wks", "application/vnd.ms-works"],
1127
- ["wm", "video/x-ms-wm"],
1128
- ["wma", "audio/x-ms-wma"],
1129
- ["wmd", "application/x-ms-wmd"],
1130
- ["wmf", "image/wmf"],
1131
- ["wml", "text/vnd.wap.wml"],
1132
- ["wmlc", "application/wmlc"],
1133
- ["wmls", "text/vnd.wap.wmlscript"],
1134
- ["wmlsc", "application/vnd.wap.wmlscriptc"],
1135
- ["wmv", "video/x-ms-wmv"],
1136
- ["wmx", "video/x-ms-wmx"],
1137
- ["wmz", "application/x-msmetafile"],
1138
- ["woff", "font/woff"],
1139
- ["woff2", "font/woff2"],
1140
- ["word", "application/msword"],
1141
- ["wpd", "application/vnd.wordperfect"],
1142
- ["wpl", "application/vnd.ms-wpl"],
1143
- ["wps", "application/vnd.ms-works"],
1144
- ["wqd", "application/vnd.wqd"],
1145
- ["wri", "application/x-mswrite"],
1146
- ["wrl", "model/vrml"],
1147
- ["wsc", "message/vnd.wfa.wsc"],
1148
- ["wsdl", "application/wsdl+xml"],
1149
- ["wspolicy", "application/wspolicy+xml"],
1150
- ["wtb", "application/vnd.webturbo"],
1151
- ["wvx", "video/x-ms-wvx"],
1152
- ["x3d", "model/x3d+xml"],
1153
- ["x3db", "model/x3d+fastinfoset"],
1154
- ["x3dbz", "model/x3d+binary"],
1155
- ["x3dv", "model/x3d-vrml"],
1156
- ["x3dvz", "model/x3d+vrml"],
1157
- ["x3dz", "model/x3d+xml"],
1158
- ["x32", "application/x-authorware-bin"],
1159
- ["x_b", "model/vnd.parasolid.transmit.binary"],
1160
- ["x_t", "model/vnd.parasolid.transmit.text"],
1161
- ["xaml", "application/xaml+xml"],
1162
- ["xap", "application/x-silverlight-app"],
1163
- ["xar", "application/vnd.xara"],
1164
- ["xav", "application/xcap-att+xml"],
1165
- ["xbap", "application/x-ms-xbap"],
1166
- ["xbd", "application/vnd.fujixerox.docuworks.binder"],
1167
- ["xbm", "image/x-xbitmap"],
1168
- ["xca", "application/xcap-caps+xml"],
1169
- ["xcs", "application/calendar+xml"],
1170
- ["xdf", "application/xcap-diff+xml"],
1171
- ["xdm", "application/vnd.syncml.dm+xml"],
1172
- ["xdp", "application/vnd.adobe.xdp+xml"],
1173
- ["xdssc", "application/dssc+xml"],
1174
- ["xdw", "application/vnd.fujixerox.docuworks"],
1175
- ["xel", "application/xcap-el+xml"],
1176
- ["xenc", "application/xenc+xml"],
1177
- ["xer", "application/patch-ops-error+xml"],
1178
- ["xfdf", "application/vnd.adobe.xfdf"],
1179
- ["xfdl", "application/vnd.xfdl"],
1180
- ["xht", "application/xhtml+xml"],
1181
- ["xhtml", "application/xhtml+xml"],
1182
- ["xhvml", "application/xv+xml"],
1183
- ["xif", "image/vnd.xiff"],
1184
- ["xl", "application/excel"],
1185
- ["xla", "application/vnd.ms-excel"],
1186
- ["xlam", "application/vnd.ms-excel.addin.macroEnabled.12"],
1187
- ["xlc", "application/vnd.ms-excel"],
1188
- ["xlf", "application/xliff+xml"],
1189
- ["xlm", "application/vnd.ms-excel"],
1190
- ["xls", "application/vnd.ms-excel"],
1191
- ["xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
1192
- ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
1193
- ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1194
- ["xlt", "application/vnd.ms-excel"],
1195
- ["xltm", "application/vnd.ms-excel.template.macroEnabled.12"],
1196
- ["xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
1197
- ["xlw", "application/vnd.ms-excel"],
1198
- ["xm", "audio/xm"],
1199
- ["xml", "application/xml"],
1200
- ["xns", "application/xcap-ns+xml"],
1201
- ["xo", "application/vnd.olpc-sugar"],
1202
- ["xop", "application/xop+xml"],
1203
- ["xpi", "application/x-xpinstall"],
1204
- ["xpl", "application/xproc+xml"],
1205
- ["xpm", "image/x-xpixmap"],
1206
- ["xpr", "application/vnd.is-xpr"],
1207
- ["xps", "application/vnd.ms-xpsdocument"],
1208
- ["xpw", "application/vnd.intercon.formnet"],
1209
- ["xpx", "application/vnd.intercon.formnet"],
1210
- ["xsd", "application/xml"],
1211
- ["xsl", "application/xml"],
1212
- ["xslt", "application/xslt+xml"],
1213
- ["xsm", "application/vnd.syncml+xml"],
1214
- ["xspf", "application/xspf+xml"],
1215
- ["xul", "application/vnd.mozilla.xul+xml"],
1216
- ["xvm", "application/xv+xml"],
1217
- ["xvml", "application/xv+xml"],
1218
- ["xwd", "image/x-xwindowdump"],
1219
- ["xyz", "chemical/x-xyz"],
1220
- ["xz", "application/x-xz"],
1221
- ["yaml", "text/yaml"],
1222
- ["yang", "application/yang"],
1223
- ["yin", "application/yin+xml"],
1224
- ["yml", "text/yaml"],
1225
- ["ymp", "text/x-suse-ymp"],
1226
- ["z", "application/x-compress"],
1227
- ["z1", "application/x-zmachine"],
1228
- ["z2", "application/x-zmachine"],
1229
- ["z3", "application/x-zmachine"],
1230
- ["z4", "application/x-zmachine"],
1231
- ["z5", "application/x-zmachine"],
1232
- ["z6", "application/x-zmachine"],
1233
- ["z7", "application/x-zmachine"],
1234
- ["z8", "application/x-zmachine"],
1235
- ["zaz", "application/vnd.zzazz.deck+xml"],
1236
- ["zip", "application/zip"],
1237
- ["zir", "application/vnd.zul"],
1238
- ["zirz", "application/vnd.zul"],
1239
- ["zmm", "application/vnd.handheld-entertainment+xml"],
1240
- ["zsh", "text/x-scriptzsh"]
1241
- ]);
1242
- function T(a, i, t) {
1243
- const n = Ai(a), { webkitRelativePath: p } = a, o = typeof i == "string" ? i : typeof p == "string" && p.length > 0 ? p : `./${a.name}`;
1244
- return typeof n.path != "string" && Wa(n, "path", o), Wa(n, "relativePath", o), n;
1245
- }
1246
- function Ai(a) {
1247
- const { name: i } = a;
1248
- if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1249
- const n = i.split(".").pop().toLowerCase(), p = Ei.get(n);
1250
- p && Object.defineProperty(a, "type", {
1251
- value: p,
1252
- writable: !1,
1253
- configurable: !1,
1254
- enumerable: !0
1255
- });
1256
- }
1257
- return a;
1258
- }
1259
- function Wa(a, i, t) {
1260
- Object.defineProperty(a, i, {
1261
- value: t,
1262
- writable: !1,
1263
- configurable: !1,
1264
- enumerable: !0
1265
- });
1266
- }
1267
- const Fi = [
1268
- // Thumbnail cache files for macOS and Windows
1269
- ".DS_Store",
1270
- // macOs
1271
- "Thumbs.db"
1272
- // Windows
1273
- ];
1274
- function Oi(a) {
1275
- return F(this, void 0, void 0, function* () {
1276
- return X(a) && _i(a.dataTransfer) ? Ti(a.dataTransfer, a.type) : Pi(a) ? Si(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? qi(a) : [];
1277
- });
1278
- }
1279
- function _i(a) {
1280
- return X(a);
1281
- }
1282
- function Pi(a) {
1283
- return X(a) && X(a.target);
1284
- }
1285
- function X(a) {
1286
- return typeof a == "object" && a !== null;
1287
- }
1288
- function Si(a) {
1289
- return ya(a.target.files).map((i) => T(i));
1290
- }
1291
- function qi(a) {
1292
- return F(this, void 0, void 0, function* () {
1293
- return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => T(t));
1294
- });
1295
- }
1296
- function Ti(a, i) {
1297
- return F(this, void 0, void 0, function* () {
1298
- if (a.items) {
1299
- const t = ya(a.items).filter((p) => p.kind === "file");
1300
- if (i !== "drop")
1301
- return t;
1302
- const n = yield Promise.all(t.map(Ii));
1303
- return Ba(ii(n));
1304
- }
1305
- return Ba(ya(a.files).map((t) => T(t)));
1306
- });
1307
- }
1308
- function Ba(a) {
1309
- return a.filter((i) => Fi.indexOf(i.name) === -1);
1310
- }
1311
- function ya(a) {
1312
- if (a === null)
1313
- return [];
1314
- const i = [];
1315
- for (let t = 0; t < a.length; t++) {
1316
- const n = a[t];
1317
- i.push(n);
1318
- }
1319
- return i;
1320
- }
1321
- function Ii(a) {
1322
- if (typeof a.webkitGetAsEntry != "function")
1323
- return Ua(a);
1324
- const i = a.webkitGetAsEntry();
1325
- return i && i.isDirectory ? ti(i) : Ua(a, i);
1326
- }
1327
- function ii(a) {
1328
- return a.reduce((i, t) => [
1329
- ...i,
1330
- ...Array.isArray(t) ? ii(t) : [t]
1331
- ], []);
1332
- }
1333
- function Ua(a, i) {
1334
- var t;
1335
- if (typeof a.getAsFileSystemHandle == "function")
1336
- return a.getAsFileSystemHandle().then((o) => F(this, void 0, void 0, function* () {
1337
- const l = yield o.getFile();
1338
- return l.handle = o, T(l);
1339
- }));
1340
- const n = a.getAsFile();
1341
- if (!n)
1342
- return Promise.reject(`${a} is not a File`);
1343
- const p = T(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1344
- return Promise.resolve(p);
1345
- }
1346
- function Ci(a) {
1347
- return F(this, void 0, void 0, function* () {
1348
- return a.isDirectory ? ti(a) : Ri(a);
1349
- });
1350
- }
1351
- function ti(a) {
1352
- const i = a.createReader();
1353
- return new Promise((t, n) => {
1354
- const p = [];
1355
- function o() {
1356
- i.readEntries((l) => F(this, void 0, void 0, function* () {
1357
- if (l.length) {
1358
- const r = Promise.all(l.map(Ci));
1359
- p.push(r), o();
1360
- } else
1361
- try {
1362
- const r = yield Promise.all(p);
1363
- t(r);
1364
- } catch (r) {
1365
- n(r);
1366
- }
1367
- }), (l) => {
1368
- n(l);
1369
- });
1370
- }
1371
- o();
1372
- });
1373
- }
1374
- function Ri(a) {
1375
- return F(this, void 0, void 0, function* () {
1376
- return new Promise((i, t) => {
1377
- a.file((n) => {
1378
- const p = T(n, a.fullPath);
1379
- i(p);
1380
- }, (n) => {
1381
- t(n);
1382
- });
1383
- });
1384
- });
1385
- }
1386
- var ba = function(a, i) {
1387
- if (a && i) {
1388
- var t = Array.isArray(i) ? i : i.split(",");
1389
- if (t.length === 0)
1390
- return !0;
1391
- var n = a.name || "", p = (a.type || "").toLowerCase(), o = p.replace(/\/.*$/, "");
1392
- return t.some(function(l) {
1393
- var r = l.trim().toLowerCase();
1394
- return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : p === r;
1395
- });
1396
- }
1397
- return !0;
1398
- };
1399
- function Na(a) {
1400
- return $i(a) || Mi(a) || ei(a) || Li();
1401
- }
1402
- function Li() {
1403
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
1404
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1405
- }
1406
- function Mi(a) {
1407
- if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1408
- }
1409
- function $i(a) {
1410
- if (Array.isArray(a)) return wa(a);
1411
- }
1412
- function Ga(a, i) {
1413
- var t = Object.keys(a);
1414
- if (Object.getOwnPropertySymbols) {
1415
- var n = Object.getOwnPropertySymbols(a);
1416
- i && (n = n.filter(function(p) {
1417
- return Object.getOwnPropertyDescriptor(a, p).enumerable;
1418
- })), t.push.apply(t, n);
1419
- }
1420
- return t;
1421
- }
1422
- function Ya(a) {
1423
- for (var i = 1; i < arguments.length; i++) {
1424
- var t = arguments[i] != null ? arguments[i] : {};
1425
- i % 2 ? Ga(Object(t), !0).forEach(function(n) {
1426
- ni(a, n, t[n]);
1427
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ga(Object(t)).forEach(function(n) {
1428
- Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1429
- });
1430
- }
1431
- return a;
1432
- }
1433
- function ni(a, i, t) {
1434
- return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1435
- }
1436
- function K(a, i) {
1437
- return Wi(a) || Ki(a, i) || ei(a, i) || Hi();
1438
- }
1439
- function Hi() {
1440
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1441
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1442
- }
1443
- function ei(a, i) {
1444
- if (a) {
1445
- if (typeof a == "string") return wa(a, i);
1446
- var t = Object.prototype.toString.call(a).slice(8, -1);
1447
- if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1448
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return wa(a, i);
1449
- }
1450
- }
1451
- function wa(a, i) {
1452
- (i == null || i > a.length) && (i = a.length);
1453
- for (var t = 0, n = new Array(i); t < i; t++)
1454
- n[t] = a[t];
1455
- return n;
1456
- }
1457
- function Ki(a, i) {
1458
- var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1459
- if (t != null) {
1460
- var n = [], p = !0, o = !1, l, r;
1461
- try {
1462
- for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
1463
- ;
1464
- } catch (v) {
1465
- o = !0, r = v;
1466
- } finally {
1467
- try {
1468
- !p && t.return != null && t.return();
1469
- } finally {
1470
- if (o) throw r;
1471
- }
1472
- }
1473
- return n;
1474
- }
1475
- }
1476
- function Wi(a) {
1477
- if (Array.isArray(a)) return a;
1478
- }
1479
- var Bi = typeof ba == "function" ? ba : ba.default, Ui = "file-invalid-type", Ni = "file-too-large", Gi = "file-too-small", Yi = "too-many-files", Vi = function(i) {
1480
- i = Array.isArray(i) && i.length === 1 ? i[0] : i;
1481
- var t = Array.isArray(i) ? "one of ".concat(i.join(", ")) : i;
1482
- return {
1483
- code: Ui,
1484
- message: "File type must be ".concat(t)
1485
- };
1486
- }, Va = function(i) {
1487
- return {
1488
- code: Ni,
1489
- message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1490
- };
1491
- }, Ja = function(i) {
1492
- return {
1493
- code: Gi,
1494
- message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1495
- };
1496
- }, Ji = {
1497
- code: Yi,
1498
- message: "Too many files"
1499
- };
1500
- function pi(a, i) {
1501
- var t = a.type === "application/x-moz-file" || Bi(a, i);
1502
- return [t, t ? null : Vi(i)];
1503
- }
1504
- function oi(a, i, t) {
1505
- if (A(a.size))
1506
- if (A(i) && A(t)) {
1507
- if (a.size > t) return [!1, Va(t)];
1508
- if (a.size < i) return [!1, Ja(i)];
1509
- } else {
1510
- if (A(i) && a.size < i) return [!1, Ja(i)];
1511
- if (A(t) && a.size > t) return [!1, Va(t)];
1512
- }
1513
- return [!0, null];
1514
- }
1515
- function A(a) {
1516
- return a != null;
1517
- }
1518
- function Qi(a) {
1519
- var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1520
- return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(v) {
1521
- var k = pi(v, t), x = K(k, 1), j = x[0], I = oi(v, n, p), C = K(I, 1), R = C[0], L = r ? r(v) : null;
1522
- return j && R && !L;
1523
- });
1524
- }
1525
- function Z(a) {
1526
- return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
1527
- }
1528
- function Q(a) {
1529
- return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1530
- return i === "Files" || i === "application/x-moz-file";
1531
- }) : !!a.target && !!a.target.files;
1532
- }
1533
- function Qa(a) {
1534
- a.preventDefault();
1535
- }
1536
- function Xi(a) {
1537
- return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
1538
- }
1539
- function Zi(a) {
1540
- return a.indexOf("Edge/") !== -1;
1541
- }
1542
- function at() {
1543
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1544
- return Xi(a) || Zi(a);
1545
- }
1546
- function w() {
1547
- for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
1548
- i[t] = arguments[t];
1549
- return function(n) {
1550
- for (var p = arguments.length, o = new Array(p > 1 ? p - 1 : 0), l = 1; l < p; l++)
1551
- o[l - 1] = arguments[l];
1552
- return i.some(function(r) {
1553
- return !Z(n) && r && r.apply(void 0, [n].concat(o)), Z(n);
1554
- });
1555
- };
1556
- }
1557
- function it() {
1558
- return "showOpenFilePicker" in window;
1559
- }
1560
- function tt(a) {
1561
- if (A(a)) {
1562
- var i = Object.entries(a).filter(function(t) {
1563
- var n = K(t, 2), p = n[0], o = n[1], l = !0;
1564
- return ci(p) || (console.warn('Skipped "'.concat(p, '" 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.')), l = !1), (!Array.isArray(o) || !o.every(li)) && (console.warn('Skipped "'.concat(p, '" because an invalid file extension was provided.')), l = !1), l;
1565
- }).reduce(function(t, n) {
1566
- var p = K(n, 2), o = p[0], l = p[1];
1567
- return Ya(Ya({}, t), {}, ni({}, o, l));
1568
- }, {});
1569
- return [{
1570
- // description is required due to https://crbug.com/1264708
1571
- description: "Files",
1572
- accept: i
1573
- }];
1574
- }
1575
- return a;
1576
- }
1577
- function nt(a) {
1578
- if (A(a))
1579
- return Object.entries(a).reduce(function(i, t) {
1580
- var n = K(t, 2), p = n[0], o = n[1];
1581
- return [].concat(Na(i), [p], Na(o));
1582
- }, []).filter(function(i) {
1583
- return ci(i) || li(i);
1584
- }).join(",");
1585
- }
1586
- function et(a) {
1587
- return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
1588
- }
1589
- function pt(a) {
1590
- return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
1591
- }
1592
- function ci(a) {
1593
- return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
1594
- }
1595
- function li(a) {
1596
- return /^.*\.[\w]+$/.test(a);
1597
- }
1598
- var ot = ["children"], ct = ["open"], lt = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], rt = ["refKey", "onChange", "onClick"];
1599
- function st(a) {
1600
- return ut(a) || mt(a) || ri(a) || dt();
1601
- }
1602
- function dt() {
1603
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
1604
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1605
- }
1606
- function mt(a) {
1607
- if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1608
- }
1609
- function ut(a) {
1610
- if (Array.isArray(a)) return ka(a);
1611
- }
1612
- function ha(a, i) {
1613
- return xt(a) || ft(a, i) || ri(a, i) || vt();
1614
- }
1615
- function vt() {
1616
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1617
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1618
- }
1619
- function ri(a, i) {
1620
- if (a) {
1621
- if (typeof a == "string") return ka(a, i);
1622
- var t = Object.prototype.toString.call(a).slice(8, -1);
1623
- if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1624
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ka(a, i);
1625
- }
1626
- }
1627
- function ka(a, i) {
1628
- (i == null || i > a.length) && (i = a.length);
1629
- for (var t = 0, n = new Array(i); t < i; t++)
1630
- n[t] = a[t];
1631
- return n;
1632
- }
1633
- function ft(a, i) {
1634
- var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1635
- if (t != null) {
1636
- var n = [], p = !0, o = !1, l, r;
1637
- try {
1638
- for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
1639
- ;
1640
- } catch (v) {
1641
- o = !0, r = v;
1642
- } finally {
1643
- try {
1644
- !p && t.return != null && t.return();
1645
- } finally {
1646
- if (o) throw r;
1647
- }
1648
- }
1649
- return n;
1650
- }
1651
- }
1652
- function xt(a) {
1653
- if (Array.isArray(a)) return a;
1654
- }
1655
- function Xa(a, i) {
1656
- var t = Object.keys(a);
1657
- if (Object.getOwnPropertySymbols) {
1658
- var n = Object.getOwnPropertySymbols(a);
1659
- i && (n = n.filter(function(p) {
1660
- return Object.getOwnPropertyDescriptor(a, p).enumerable;
1661
- })), t.push.apply(t, n);
1662
- }
1663
- return t;
1664
- }
1665
- function d(a) {
1666
- for (var i = 1; i < arguments.length; i++) {
1667
- var t = arguments[i] != null ? arguments[i] : {};
1668
- i % 2 ? Xa(Object(t), !0).forEach(function(n) {
1669
- ja(a, n, t[n]);
1670
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Xa(Object(t)).forEach(function(n) {
1671
- Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1672
- });
1673
- }
1674
- return a;
1675
- }
1676
- function ja(a, i, t) {
1677
- return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1678
- }
1679
- function aa(a, i) {
1680
- if (a == null) return {};
1681
- var t = gt(a, i), n, p;
1682
- if (Object.getOwnPropertySymbols) {
1683
- var o = Object.getOwnPropertySymbols(a);
1684
- for (p = 0; p < o.length; p++)
1685
- n = o[p], !(i.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(a, n) && (t[n] = a[n]);
1686
- }
1687
- return t;
1688
- }
1689
- function gt(a, i) {
1690
- if (a == null) return {};
1691
- var t = {}, n = Object.keys(a), p, o;
1692
- for (o = 0; o < n.length; o++)
1693
- p = n[o], !(i.indexOf(p) >= 0) && (t[p] = a[p]);
1694
- return t;
1695
- }
1696
- var Da = /* @__PURE__ */ yi(function(a, i) {
1697
- var t = a.children, n = aa(a, ot), p = di(n), o = p.open, l = aa(p, ct);
1698
- return wi(i, function() {
1699
- return {
1700
- open: o
1701
- };
1702
- }, [o]), /* @__PURE__ */ bi.createElement(ki, null, t(d(d({}, l), {}, {
1703
- open: o
1704
- })));
1705
- });
1706
- Da.displayName = "Dropzone";
1707
- var si = {
1708
- disabled: !1,
1709
- getFilesFromEvent: Oi,
1710
- maxSize: 1 / 0,
1711
- minSize: 0,
1712
- multiple: !0,
1713
- maxFiles: 0,
1714
- preventDropOnDocument: !0,
1715
- noClick: !1,
1716
- noKeyboard: !1,
1717
- noDrag: !1,
1718
- noDragEventsBubbling: !1,
1719
- validator: null,
1720
- useFsAccessApi: !1,
1721
- autoFocus: !1
1722
- };
1723
- Da.defaultProps = si;
1724
- Da.propTypes = {
1725
- /**
1726
- * Render function that exposes the dropzone state and prop getter fns
1727
- *
1728
- * @param {object} params
1729
- * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
1730
- * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
1731
- * @param {Function} params.open Open the native file selection dialog
1732
- * @param {boolean} params.isFocused Dropzone area is in focus
1733
- * @param {boolean} params.isFileDialogActive File dialog is opened
1734
- * @param {boolean} params.isDragActive Active drag is in progress
1735
- * @param {boolean} params.isDragAccept Dragged files are accepted
1736
- * @param {boolean} params.isDragReject Some dragged files are rejected
1737
- * @param {File[]} params.acceptedFiles Accepted files
1738
- * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1739
- */
1740
- children: s.func,
1741
- /**
1742
- * Set accepted file types.
1743
- * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
1744
- * Keep in mind that mime type determination is not reliable across platforms. CSV files,
1745
- * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1746
- * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1747
- */
1748
- accept: s.objectOf(s.arrayOf(s.string)),
1749
- /**
1750
- * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1751
- */
1752
- multiple: s.bool,
1753
- /**
1754
- * If false, allow dropped items to take over the current browser window
1755
- */
1756
- preventDropOnDocument: s.bool,
1757
- /**
1758
- * If true, disables click to open the native file selection dialog
1759
- */
1760
- noClick: s.bool,
1761
- /**
1762
- * If true, disables SPACE/ENTER to open the native file selection dialog.
1763
- * Note that it also stops tracking the focus state.
1764
- */
1765
- noKeyboard: s.bool,
1766
- /**
1767
- * If true, disables drag 'n' drop
1768
- */
1769
- noDrag: s.bool,
1770
- /**
1771
- * If true, stops drag event propagation to parents
1772
- */
1773
- noDragEventsBubbling: s.bool,
1774
- /**
1775
- * Minimum file size (in bytes)
1776
- */
1777
- minSize: s.number,
1778
- /**
1779
- * Maximum file size (in bytes)
1780
- */
1781
- maxSize: s.number,
1782
- /**
1783
- * Maximum accepted number of files
1784
- * The default value is 0 which means there is no limitation to how many files are accepted.
1785
- */
1786
- maxFiles: s.number,
1787
- /**
1788
- * Enable/disable the dropzone
1789
- */
1790
- disabled: s.bool,
1791
- /**
1792
- * Use this to provide a custom file aggregator
1793
- *
1794
- * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1795
- */
1796
- getFilesFromEvent: s.func,
1797
- /**
1798
- * Cb for when closing the file dialog with no selection
1799
- */
1800
- onFileDialogCancel: s.func,
1801
- /**
1802
- * Cb for when opening the file dialog
1803
- */
1804
- onFileDialogOpen: s.func,
1805
- /**
1806
- * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1807
- * to open the file picker instead of using an `<input type="file">` click event.
1808
- */
1809
- useFsAccessApi: s.bool,
1810
- /**
1811
- * Set to true to focus the root element on render
1812
- */
1813
- autoFocus: s.bool,
1814
- /**
1815
- * Cb for when the `dragenter` event occurs.
1816
- *
1817
- * @param {DragEvent} event
1818
- */
1819
- onDragEnter: s.func,
1820
- /**
1821
- * Cb for when the `dragleave` event occurs
1822
- *
1823
- * @param {DragEvent} event
1824
- */
1825
- onDragLeave: s.func,
1826
- /**
1827
- * Cb for when the `dragover` event occurs
1828
- *
1829
- * @param {DragEvent} event
1830
- */
1831
- onDragOver: s.func,
1832
- /**
1833
- * Cb for when the `drop` event occurs.
1834
- * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
1835
- *
1836
- * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
1837
- * `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.
1838
- * If `multiple` is set to false and additional files are dropped,
1839
- * all files besides the first will be rejected.
1840
- * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
1841
- *
1842
- * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
1843
- * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
1844
- *
1845
- * `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.
1846
- * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
1847
- *
1848
- * ```js
1849
- * function onDrop(acceptedFiles) {
1850
- * const req = request.post('/upload')
1851
- * acceptedFiles.forEach(file => {
1852
- * req.attach(file.name, file)
1853
- * })
1854
- * req.end(callback)
1855
- * }
1856
- * ```
1857
- *
1858
- * @param {File[]} acceptedFiles
1859
- * @param {FileRejection[]} fileRejections
1860
- * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1861
- */
1862
- onDrop: s.func,
1863
- /**
1864
- * Cb for when the `drop` event occurs.
1865
- * Note that if no files are accepted, this callback is not invoked.
1866
- *
1867
- * @param {File[]} files
1868
- * @param {(DragEvent|Event)} event
1869
- */
1870
- onDropAccepted: s.func,
1871
- /**
1872
- * Cb for when the `drop` event occurs.
1873
- * Note that if no files are rejected, this callback is not invoked.
1874
- *
1875
- * @param {FileRejection[]} fileRejections
1876
- * @param {(DragEvent|Event)} event
1877
- */
1878
- onDropRejected: s.func,
1879
- /**
1880
- * Cb for when there's some error from any of the promises.
1881
- *
1882
- * @param {Error} error
1883
- */
1884
- onError: s.func,
1885
- /**
1886
- * Custom validation function. It must return null if there's no errors.
1887
- * @param {File} file
1888
- * @returns {FileError|FileError[]|null}
1889
- */
1890
- validator: s.func
1891
- };
1892
- var za = {
1893
- isFocused: !1,
1894
- isFileDialogActive: !1,
1895
- isDragActive: !1,
1896
- isDragAccept: !1,
1897
- isDragReject: !1,
1898
- acceptedFiles: [],
1899
- fileRejections: []
1900
- };
1901
- function di() {
1902
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, si), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, k = i.onDragEnter, x = i.onDragLeave, j = i.onDragOver, I = i.onDrop, C = i.onDropAccepted, R = i.onDropRejected, L = i.onFileDialogCancel, ia = i.onFileDialogOpen, Ea = i.useFsAccessApi, Aa = i.autoFocus, ta = i.preventDropOnDocument, Fa = i.noClick, na = i.noKeyboard, Oa = i.noDrag, D = i.noDragEventsBubbling, ea = i.onError, M = i.validator, $ = q(function() {
1903
- return nt(t);
1904
- }, [t]), _a = q(function() {
1905
- return tt(t);
1906
- }, [t]), pa = q(function() {
1907
- return typeof ia == "function" ? ia : Za;
1908
- }, [ia]), W = q(function() {
1909
- return typeof L == "function" ? L : Za;
1910
- }, [L]), f = J(null), h = J(null), mi = hi(bt, za), Pa = ha(mi, 2), oa = Pa[0], g = Pa[1], ui = oa.isFocused, Sa = oa.isFileDialogActive, B = J(typeof window < "u" && window.isSecureContext && Ea && it()), qa = function() {
1911
- !B.current && Sa && setTimeout(function() {
1912
- if (h.current) {
1913
- var c = h.current.files;
1914
- c.length || (g({
1915
- type: "closeDialog"
1916
- }), W());
1917
- }
1918
- }, 300);
1919
- };
1920
- xa(function() {
1921
- return window.addEventListener("focus", qa, !1), function() {
1922
- window.removeEventListener("focus", qa, !1);
1923
- };
1924
- }, [h, Sa, W, B]);
1925
- var O = J([]), Ta = function(c) {
1926
- f.current && f.current.contains(c.target) || (c.preventDefault(), O.current = []);
1927
- };
1928
- xa(function() {
1929
- return ta && (document.addEventListener("dragover", Qa, !1), document.addEventListener("drop", Ta, !1)), function() {
1930
- ta && (document.removeEventListener("dragover", Qa), document.removeEventListener("drop", Ta));
1931
- };
1932
- }, [f, ta]), xa(function() {
1933
- return !n && Aa && f.current && f.current.focus(), function() {
1934
- };
1935
- }, [f, Aa, n]);
1936
- var E = y(function(e) {
1937
- ea ? ea(e) : console.error(e);
1938
- }, [ea]), Ia = y(function(e) {
1939
- e.preventDefault(), e.persist(), Y(e), O.current = [].concat(st(O.current), [e.target]), Q(e) && Promise.resolve(p(e)).then(function(c) {
1940
- if (!(Z(e) && !D)) {
1941
- var m = c.length, u = m > 0 && Qi({
1942
- files: c,
1943
- accept: $,
1944
- minSize: l,
1945
- maxSize: o,
1946
- multiple: r,
1947
- maxFiles: v,
1948
- validator: M
1949
- }), b = m > 0 && !u;
1950
- g({
1951
- isDragAccept: u,
1952
- isDragReject: b,
1953
- isDragActive: !0,
1954
- type: "setDraggedFiles"
1955
- }), k && k(e);
1956
- }
1957
- }).catch(function(c) {
1958
- return E(c);
1959
- });
1960
- }, [p, k, E, D, $, l, o, r, v, M]), Ca = y(function(e) {
1961
- e.preventDefault(), e.persist(), Y(e);
1962
- var c = Q(e);
1963
- if (c && e.dataTransfer)
1964
- try {
1965
- e.dataTransfer.dropEffect = "copy";
1966
- } catch {
1967
- }
1968
- return c && j && j(e), !1;
1969
- }, [j, D]), Ra = y(function(e) {
1970
- e.preventDefault(), e.persist(), Y(e);
1971
- var c = O.current.filter(function(u) {
1972
- return f.current && f.current.contains(u);
1973
- }), m = c.indexOf(e.target);
1974
- m !== -1 && c.splice(m, 1), O.current = c, !(c.length > 0) && (g({
1975
- type: "setDraggedFiles",
1976
- isDragActive: !1,
1977
- isDragAccept: !1,
1978
- isDragReject: !1
1979
- }), Q(e) && x && x(e));
1980
- }, [f, x, D]), U = y(function(e, c) {
1981
- var m = [], u = [];
1982
- e.forEach(function(b) {
1983
- var H = pi(b, $), S = ha(H, 2), la = S[0], ra = S[1], sa = oi(b, l, o), V = ha(sa, 2), da = V[0], ma = V[1], ua = M ? M(b) : null;
1984
- if (la && da && !ua)
1985
- m.push(b);
1986
- else {
1987
- var va = [ra, ma];
1988
- ua && (va = va.concat(ua)), u.push({
1989
- file: b,
1990
- errors: va.filter(function(gi) {
1991
- return gi;
1992
- })
1993
- });
1994
- }
1995
- }), (!r && m.length > 1 || r && v >= 1 && m.length > v) && (m.forEach(function(b) {
1996
- u.push({
1997
- file: b,
1998
- errors: [Ji]
1999
- });
2000
- }), m.splice(0)), g({
2001
- acceptedFiles: m,
2002
- fileRejections: u,
2003
- type: "setFiles"
2004
- }), I && I(m, u, c), u.length > 0 && R && R(u, c), m.length > 0 && C && C(m, c);
2005
- }, [g, r, $, l, o, v, I, C, R, M]), N = y(function(e) {
2006
- e.preventDefault(), e.persist(), Y(e), O.current = [], Q(e) && Promise.resolve(p(e)).then(function(c) {
2007
- Z(e) && !D || U(c, e);
2008
- }).catch(function(c) {
2009
- return E(c);
2010
- }), g({
2011
- type: "reset"
2012
- });
2013
- }, [p, U, E, D]), _ = y(function() {
2014
- if (B.current) {
2015
- g({
2016
- type: "openDialog"
2017
- }), pa();
2018
- var e = {
2019
- multiple: r,
2020
- types: _a
2021
- };
2022
- window.showOpenFilePicker(e).then(function(c) {
2023
- return p(c);
2024
- }).then(function(c) {
2025
- U(c, null), g({
2026
- type: "closeDialog"
2027
- });
2028
- }).catch(function(c) {
2029
- et(c) ? (W(c), g({
2030
- type: "closeDialog"
2031
- })) : pt(c) ? (B.current = !1, h.current ? (h.current.value = null, h.current.click()) : E(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."))) : E(c);
2032
- });
2033
- return;
2034
- }
2035
- h.current && (g({
2036
- type: "openDialog"
2037
- }), pa(), h.current.value = null, h.current.click());
2038
- }, [g, pa, W, Ea, U, E, _a, r]), La = y(function(e) {
2039
- !f.current || !f.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), _());
2040
- }, [f, _]), Ma = y(function() {
2041
- g({
2042
- type: "focus"
2043
- });
2044
- }, []), $a = y(function() {
2045
- g({
2046
- type: "blur"
2047
- });
2048
- }, []), Ha = y(function() {
2049
- Fa || (at() ? setTimeout(_, 0) : _());
2050
- }, [Fa, _]), P = function(c) {
2051
- return n ? null : c;
2052
- }, ca = function(c) {
2053
- return na ? null : P(c);
2054
- }, G = function(c) {
2055
- return Oa ? null : P(c);
2056
- }, Y = function(c) {
2057
- D && c.stopPropagation();
2058
- }, vi = q(function() {
2059
- return function() {
2060
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, b = e.onKeyDown, H = e.onFocus, S = e.onBlur, la = e.onClick, ra = e.onDragEnter, sa = e.onDragOver, V = e.onDragLeave, da = e.onDrop, ma = aa(e, lt);
2061
- return d(d(ja({
2062
- onKeyDown: ca(w(b, La)),
2063
- onFocus: ca(w(H, Ma)),
2064
- onBlur: ca(w(S, $a)),
2065
- onClick: P(w(la, Ha)),
2066
- onDragEnter: G(w(ra, Ia)),
2067
- onDragOver: G(w(sa, Ca)),
2068
- onDragLeave: G(w(V, Ra)),
2069
- onDrop: G(w(da, N)),
2070
- role: typeof u == "string" && u !== "" ? u : "presentation"
2071
- }, m, f), !n && !na ? {
2072
- tabIndex: 0
2073
- } : {}), ma);
2074
- };
2075
- }, [f, La, Ma, $a, Ha, Ia, Ca, Ra, N, na, Oa, n]), fi = y(function(e) {
2076
- e.stopPropagation();
2077
- }, []), xi = q(function() {
2078
- return function() {
2079
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, b = e.onClick, H = aa(e, rt), S = ja({
2080
- accept: $,
2081
- multiple: r,
2082
- type: "file",
2083
- style: {
2084
- border: 0,
2085
- clip: "rect(0, 0, 0, 0)",
2086
- clipPath: "inset(50%)",
2087
- height: "1px",
2088
- margin: "0 -1px -1px 0",
2089
- overflow: "hidden",
2090
- padding: 0,
2091
- position: "absolute",
2092
- width: "1px",
2093
- whiteSpace: "nowrap"
2094
- },
2095
- onChange: P(w(u, N)),
2096
- onClick: P(w(b, fi)),
2097
- tabIndex: -1
2098
- }, m, h);
2099
- return d(d({}, S), H);
2100
- };
2101
- }, [h, t, r, N, n]);
2102
- return d(d({}, oa), {}, {
2103
- isFocused: ui && !n,
2104
- getRootProps: vi,
2105
- getInputProps: xi,
2106
- rootRef: f,
2107
- inputRef: h,
2108
- open: P(_)
2109
- });
2110
- }
2111
- function bt(a, i) {
2112
- switch (i.type) {
2113
- case "focus":
2114
- return d(d({}, a), {}, {
2115
- isFocused: !0
2116
- });
2117
- case "blur":
2118
- return d(d({}, a), {}, {
2119
- isFocused: !1
2120
- });
2121
- case "openDialog":
2122
- return d(d({}, za), {}, {
2123
- isFileDialogActive: !0
2124
- });
2125
- case "closeDialog":
2126
- return d(d({}, a), {}, {
2127
- isFileDialogActive: !1
2128
- });
2129
- case "setDraggedFiles":
2130
- return d(d({}, a), {}, {
2131
- isDragActive: i.isDragActive,
2132
- isDragAccept: i.isDragAccept,
2133
- isDragReject: i.isDragReject
2134
- });
2135
- case "setFiles":
2136
- return d(d({}, a), {}, {
2137
- acceptedFiles: i.acceptedFiles,
2138
- fileRejections: i.fileRejections
2139
- });
2140
- case "reset":
2141
- return d({}, za);
2142
- default:
2143
- return a;
2144
- }
2145
- }
2146
- function Za() {
2147
- }
2148
- const Dt = ({
2149
- defaultLabel: a = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
2150
- dragLabel: i = "Déposer les fichiers ici",
2151
- information: t,
2152
- ...n
10
+ }), "UploadFile"), F = ({
11
+ defaultLabel: t = "Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",
12
+ dragLabel: n = "Déposer les fichiers ici",
13
+ information: i,
14
+ ...l
2153
15
  }) => {
2154
- const { getRootProps: p, getInputProps: o, isDragActive: l } = di(n);
2155
- return /* @__PURE__ */ fa(
2156
- ji,
16
+ const { getRootProps: p, getInputProps: d, isDragActive: a } = h(l);
17
+ return /* @__PURE__ */ e(
18
+ m,
2157
19
  {
2158
20
  direction: "column",
2159
21
  justifyContent: "center",
@@ -2169,19 +31,19 @@ const Dt = ({
2169
31
  },
2170
32
  ...p(),
2171
33
  children: [
2172
- /* @__PURE__ */ z("input", { ...o() }),
2173
- l ? /* @__PURE__ */ fa(Ka, { children: [
2174
- /* @__PURE__ */ z(zi, { color: "primary" }),
2175
- /* @__PURE__ */ z(ga, { children: i })
2176
- ] }) : /* @__PURE__ */ fa(Ka, { children: [
2177
- /* @__PURE__ */ z(Di, { color: "primary" }),
2178
- /* @__PURE__ */ z(ga, { children: a }),
2179
- t ? /* @__PURE__ */ z(ga, { fontSize: "0.875rem", color: "grey", children: t }) : null
34
+ /* @__PURE__ */ r("input", { ...d() }),
35
+ a ? /* @__PURE__ */ e(c, { children: [
36
+ /* @__PURE__ */ r(u, { color: "primary" }),
37
+ /* @__PURE__ */ r(o, { children: n })
38
+ ] }) : /* @__PURE__ */ e(c, { children: [
39
+ /* @__PURE__ */ r(g, { color: "primary" }),
40
+ /* @__PURE__ */ r(o, { children: t }),
41
+ i ? /* @__PURE__ */ r(o, { fontSize: "0.875rem", color: "grey", children: i }) : null
2180
42
  ] })
2181
43
  ]
2182
44
  }
2183
45
  );
2184
46
  };
2185
47
  export {
2186
- Dt as default
48
+ F as default
2187
49
  };