@cfx-dev/ui-components 4.2.24 → 4.3.0

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