triafly-ui-kit 1.0.23 → 1.0.25

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 (181) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/papaparse.min.js +7 -0
  6. package/dist/_virtual/papaparse.min2.js +4 -0
  7. package/dist/_virtual/react-paginate.js +7 -0
  8. package/dist/_virtual/react-paginate2.js +4 -0
  9. package/dist/assets/fonts/FiraCode-Regular.ttf +0 -0
  10. package/dist/assets/fonts/Manrope-Bold.ttf +0 -0
  11. package/dist/assets/fonts/Manrope-Regular.ttf +0 -0
  12. package/dist/assets/fonts/Manrope-SemiBold.ttf +0 -0
  13. package/dist/assets/fonts/RobotoSlab-SemiBold.ttf +0 -0
  14. package/dist/assets/src/components/Ui/Accordeon/Accordeon.css +1 -0
  15. package/dist/assets/src/components/Ui/Alert/Alert.css +1 -0
  16. package/dist/assets/src/components/Ui/Avatar/Avatar.css +1 -0
  17. package/dist/assets/src/components/Ui/Badge/Badge.module.css +1 -0
  18. package/dist/assets/src/components/Ui/Button/Button.css +1 -0
  19. package/dist/assets/src/components/Ui/ButtonsArray/ButtonsArray.css +1 -0
  20. package/dist/assets/src/components/Ui/Checkbox/Checkbox.css +1 -0
  21. package/dist/assets/src/components/Ui/CliTextareaInput/CliTextareaInput.css +1 -0
  22. package/dist/assets/src/components/Ui/CustomLink/CustomLink.css +1 -0
  23. package/dist/assets/src/components/Ui/DatePicker/DatePicker.css +1 -0
  24. package/dist/assets/src/components/Ui/DropdownInput/DropdownInput.css +1 -0
  25. package/dist/assets/src/components/Ui/DropdownMenu/DropdownMenu.css +1 -0
  26. package/dist/assets/src/components/Ui/FileUpload/FileUpload.css +1 -0
  27. package/dist/assets/src/components/Ui/Form/FormRoot/Form.css +1 -0
  28. package/dist/assets/src/components/Ui/Loader/Loader.css +1 -0
  29. package/dist/assets/src/components/Ui/ModalWindow/ModalWindow.css +1 -0
  30. package/dist/assets/src/components/Ui/Pagination/Pagination.css +1 -0
  31. package/dist/assets/src/components/Ui/Radio/Radio.css +1 -0
  32. package/dist/assets/src/components/Ui/SearchInput/SearchInput.css +1 -0
  33. package/dist/assets/src/components/Ui/Skeleton/Skeleton.module.css +1 -0
  34. package/dist/assets/src/components/Ui/Switch/Switch.css +1 -0
  35. package/dist/assets/src/components/Ui/Table/Table.css +1 -0
  36. package/dist/assets/src/components/Ui/Tabs/Tabs.css +1 -0
  37. package/dist/assets/src/components/Ui/TextInput/TextInput.css +1 -0
  38. package/dist/assets/src/components/Ui/TextareaInput/TextareaInput.css +1 -0
  39. package/dist/assets/src/components/Ui/Tooltip/Tooltip.css +1 -0
  40. package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +1 -0
  41. package/dist/assets/src/context/ToastContext/ToastContext.module.css +1 -0
  42. package/dist/components/Ui/Accordeon/Accordeon.js +34 -0
  43. package/dist/components/Ui/Accordeon/Accordeon.stories.js +72 -0
  44. package/dist/components/Ui/Accordeon/index.js +4 -0
  45. package/dist/components/Ui/Alert/Alert.js +15 -0
  46. package/dist/components/Ui/Alert/index.js +4 -0
  47. package/dist/components/Ui/Avatar/Avatar.js +11 -0
  48. package/dist/components/Ui/Avatar/index.js +4 -0
  49. package/dist/components/Ui/Badge/Badge.js +30 -0
  50. package/dist/components/Ui/Badge/index.js +4 -0
  51. package/dist/components/Ui/Button/Button.js +50 -0
  52. package/dist/components/Ui/Button/index.js +4 -0
  53. package/dist/components/Ui/ButtonsArray/ButtonsArray.js +29 -0
  54. package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +78 -0
  55. package/dist/components/Ui/ButtonsArray/index.js +4 -0
  56. package/dist/components/Ui/Checkbox/Checkbox.js +40 -0
  57. package/dist/components/Ui/Checkbox/Checkbox.stories.js +120 -0
  58. package/dist/components/Ui/Checkbox/index.js +4 -0
  59. package/dist/components/Ui/CliTextareaInput/CliTextareaInput.js +122 -0
  60. package/dist/components/Ui/CliTextareaInput/index.js +23 -0
  61. package/dist/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.js +4 -0
  62. package/dist/components/Ui/CliTextareaInput/utils/fixJson/fixJson.js +12 -0
  63. package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.js +20 -0
  64. package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.js +4 -0
  65. package/dist/components/Ui/CliTextareaInput/utils/hooks/index.js +17 -0
  66. package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.js +4 -0
  67. package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.js +29 -0
  68. package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.js +4 -0
  69. package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.js +34 -0
  70. package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.js +4 -0
  71. package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.js +45 -0
  72. package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.js +5 -0
  73. package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/useLineNumbers.js +17 -0
  74. package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/index.js +4 -0
  75. package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/useScrollSync.js +13 -0
  76. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/index.js +4 -0
  77. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/useTextActions.js +37 -0
  78. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/index.js +4 -0
  79. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/useTextCoursore.js +14 -0
  80. package/dist/components/Ui/CliTextareaInput/utils/index.js +21 -0
  81. package/dist/components/Ui/CliTextareaInput/utils/processJson/index.js +4 -0
  82. package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.js +11 -0
  83. package/dist/components/Ui/CliTextareaInput/utils/processXml/processXml.js +8 -0
  84. package/dist/components/Ui/CliTextareaInput/utils/processYml/processYml.js +27 -0
  85. package/dist/components/Ui/CliTextareaInput/utils/types.js +1 -0
  86. package/dist/components/Ui/CustomLink/CustomLink.js +50 -0
  87. package/dist/components/Ui/CustomLink/index.js +4 -0
  88. package/dist/components/Ui/DatePicker/DatePicker.js +183 -0
  89. package/dist/components/Ui/DatePicker/DatePicker.stories.js +120 -0
  90. package/dist/components/Ui/DropdownInput/DropdownInput.js +92 -0
  91. package/dist/components/Ui/DropdownInput/DropdownInput.stories.js +77 -0
  92. package/dist/components/Ui/DropdownInput/index.js +4 -0
  93. package/dist/components/Ui/DropdownMenu/DropdownMenu.js +84 -0
  94. package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.js +50 -0
  95. package/dist/components/Ui/DropdownMenu/index.js +4 -0
  96. package/dist/components/Ui/FileUpload/FileUpload.js +197 -0
  97. package/dist/components/Ui/FileUpload/fn.js +10 -0
  98. package/dist/components/Ui/FileUpload/index.js +4 -0
  99. package/dist/components/Ui/FileUpload/types.js +1 -0
  100. package/dist/components/Ui/Form/FormContext/FormContext.js +5 -0
  101. package/dist/components/Ui/Form/FormItem/FormItem.js +107 -0
  102. package/dist/components/Ui/Form/FormItem/fn.js +25 -0
  103. package/dist/components/Ui/Form/FormItem/types.js +1 -0
  104. package/dist/components/Ui/Form/FormRoot/FormRoot.js +26 -0
  105. package/dist/components/Ui/Form/FormRoot/index.js +4 -0
  106. package/dist/components/Ui/Form/FormRoot/types.js +1 -0
  107. package/dist/components/Ui/Form/index.js +6 -0
  108. package/dist/components/Ui/Form/useForm/index.js +4 -0
  109. package/dist/components/Ui/Form/useForm/useForm.js +111 -0
  110. package/dist/components/Ui/Form/utils/fn.js +31 -0
  111. package/dist/components/Ui/Form/utils/types.js +1 -0
  112. package/dist/components/Ui/Icons/Icons.js +577 -0
  113. package/dist/components/Ui/Icons/index.js +97 -0
  114. package/dist/components/Ui/Icons/utils/CreateIcon.js +23 -0
  115. package/dist/components/Ui/Loader/Loader.js +7 -0
  116. package/dist/components/Ui/Loader/index.js +4 -0
  117. package/dist/components/Ui/ModalWindow/ModalWindow.js +51 -0
  118. package/dist/components/Ui/ModalWindow/index.js +4 -0
  119. package/dist/components/Ui/Pagination/Pagination.js +39 -0
  120. package/dist/components/Ui/Pagination/index.js +4 -0
  121. package/dist/components/Ui/Radio/Radio.js +31 -0
  122. package/dist/components/Ui/Radio/Radio.stories.js +42 -0
  123. package/dist/components/Ui/Radio/index.js +4 -0
  124. package/dist/components/Ui/SearchInput/SearchData.js +30 -0
  125. package/dist/components/Ui/SearchInput/SearchInput.js +110 -0
  126. package/dist/components/Ui/Skeleton/Skeleton.js +26 -0
  127. package/dist/components/Ui/Skeleton/index.js +4 -0
  128. package/dist/components/Ui/Switch/Switch.js +26 -0
  129. package/dist/components/Ui/Switch/index.js +4 -0
  130. package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.js +50 -0
  131. package/dist/components/Ui/Table/Table.js +161 -0
  132. package/dist/components/Ui/Table/TableTypes.js +1 -0
  133. package/dist/components/Ui/Table/index.js +4 -0
  134. package/dist/components/Ui/Tabs/Tabs.js +25 -0
  135. package/dist/components/Ui/Tabs/Tabs.stories.js +67 -0
  136. package/dist/components/Ui/Tabs/index.js +4 -0
  137. package/dist/components/Ui/TextInput/TextInput.js +86 -0
  138. package/dist/components/Ui/TextInput/TextInput.stories.js +225 -0
  139. package/dist/components/Ui/TextInput/index.js +4 -0
  140. package/dist/components/Ui/TextareaInput/TextareaInput.js +69 -0
  141. package/dist/components/Ui/TextareaInput/TextareaInput.stories.js +19 -0
  142. package/dist/components/Ui/TextareaInput/index.js +4 -0
  143. package/dist/components/Ui/Tooltip/Tooltip.js +93 -0
  144. package/dist/components/Ui/Tooltip/Tooltip.stories.js +87 -0
  145. package/dist/components/Ui/Tooltip/index.js +4 -0
  146. package/dist/context/ToastContext/ToastContext.js +38 -0
  147. package/dist/context/ToastContext/index.js +5 -0
  148. package/dist/context/TriaflyContext/TriaflyContext.types.js +1 -0
  149. package/dist/context/TriaflyContext/TriaflyProvider.js +27 -0
  150. package/dist/context/TriaflyContext/hooks/index.js +8 -0
  151. package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.js +4 -0
  152. package/dist/context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js +11 -0
  153. package/dist/context/TriaflyContext/hooks/useModal/index.js +4 -0
  154. package/dist/context/TriaflyContext/hooks/useModal/useModal.js +16 -0
  155. package/dist/context/TriaflyContext/hooks/useTheme/index.js +4 -0
  156. package/dist/context/TriaflyContext/hooks/useTheme/useTheme.js +17 -0
  157. package/dist/context/TriaflyContext/index.js +12 -0
  158. package/dist/main.d.ts +1229 -0
  159. package/dist/main.js +162 -0
  160. package/dist/node_modules/classnames/index.js +42 -0
  161. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  162. package/dist/node_modules/papaparse/papaparse.min.js +421 -0
  163. package/dist/node_modules/react-paginate/dist/react-paginate.js +259 -0
  164. package/dist/src/components/Ui/Badge/Badge.module.scss.js +30 -0
  165. package/dist/src/components/Ui/Skeleton/Skeleton.module.scss.js +9 -0
  166. package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +15 -0
  167. package/dist/src/context/ToastContext/ToastContext.module.scss.js +9 -0
  168. package/dist/styles/_mixins.scss +22 -0
  169. package/dist/styles/fix.scss +4 -0
  170. package/dist/styles/main.scss +27 -0
  171. package/dist/styles/reset.scss +106 -0
  172. package/dist/styles/typography.scss +102 -0
  173. package/dist/styles/variables.scss +278 -0
  174. package/dist/vite-env.d.js +1 -0
  175. package/package.json +6 -2
  176. package/src/styles/_mixins.scss +22 -0
  177. package/src/styles/fix.scss +4 -0
  178. package/src/styles/main.scss +27 -0
  179. package/src/styles/reset.scss +106 -0
  180. package/src/styles/typography.scss +102 -0
  181. package/src/styles/variables.scss +278 -0
package/dist/main.js ADDED
@@ -0,0 +1,162 @@
1
+ import { Accordeon as e } from "./components/Ui/Accordeon/Accordeon.js";
2
+ import { Alert as I } from "./components/Ui/Alert/Alert.js";
3
+ import { Avatar as i } from "./components/Ui/Avatar/Avatar.js";
4
+ import { ModalWindow as p } from "./components/Ui/ModalWindow/ModalWindow.js";
5
+ import { Badge as f } from "./components/Ui/Badge/Badge.js";
6
+ import { Button as x } from "./components/Ui/Button/Button.js";
7
+ import { ButtonsArray as u } from "./components/Ui/ButtonsArray/ButtonsArray.js";
8
+ import { Checkbox as C } from "./components/Ui/Checkbox/Checkbox.js";
9
+ import { CliTextareaInput as h } from "./components/Ui/CliTextareaInput/CliTextareaInput.js";
10
+ import "react";
11
+ import { CustomLink as T } from "./components/Ui/CustomLink/CustomLink.js";
12
+ import { DropdownInput as A } from "./components/Ui/DropdownInput/DropdownInput.js";
13
+ import { DropdownMenu as k } from "./components/Ui/DropdownMenu/DropdownMenu.js";
14
+ import { FileUpload as P } from "./components/Ui/FileUpload/FileUpload.js";
15
+ import { Form as U } from "./components/Ui/Form/FormRoot/FormRoot.js";
16
+ import { useForm as F } from "./components/Ui/Form/useForm/useForm.js";
17
+ import { Loader as v } from "./components/Ui/Loader/Loader.js";
18
+ import { Pagination as X } from "./components/Ui/Pagination/Pagination.js";
19
+ import { Radio as H } from "./components/Ui/Radio/Radio.js";
20
+ import { SearchInput as O } from "./components/Ui/SearchInput/SearchInput.js";
21
+ import { Skeleton as E } from "./components/Ui/Skeleton/Skeleton.js";
22
+ import { Switch as W } from "./components/Ui/Switch/Switch.js";
23
+ import { Table as z } from "./components/Ui/Table/Table.js";
24
+ import { TextInput as Y } from "./components/Ui/TextInput/TextInput.js";
25
+ import { TextareaInput as q } from "./components/Ui/TextareaInput/TextareaInput.js";
26
+ import { Tooltip as Z } from "./components/Ui/Tooltip/Tooltip.js";
27
+ import { Tabs as $ } from "./components/Ui/Tabs/Tabs.js";
28
+ import { IconArrowBendUpRight as no, IconArrowClockwise as ro, IconArrowDown as eo, IconArrowLeft as co, IconArrowLineDown as Io, IconArrowLineLeft as to, IconArrowLineRight as io, IconArrowLineUp as ao, IconArrowRight as po, IconArrowUp as lo, IconArrowsOut as fo, IconArticle as mo, IconAt as xo, IconBellSimple as so, IconBookOpenText as uo, IconCalendarBlank as Co, IconCaretDown as wo, IconCaretLeft as ho, IconCaretRight as So, IconCaretUp as To, IconCaretUpDown as go, IconChartPieSlice as Ao, IconChatText as Lo, IconCheck as ko, IconCheckCircle as Do, IconChecks as Po, IconCircleNotch as yo, IconCopy as Uo, IconCornersOut as Bo, IconCsv as Fo, IconCube as Mo, IconDatabase as vo, IconDotsNine as Ro, IconDotsThreeVertical as Xo, IconExport as bo, IconEye as Ho, IconEyeSlash as No, IconFile as Oo, IconFiles as Qo, IconFloppyDisk as Eo, IconFolderSimple as Go, IconFolderSimpleX as Wo, IconFunnel as Vo, IconGauge as zo, IconGear as Jo, IconGoogleDrive as Yo, IconHand as jo, IconHeadCircuit as qo, IconHouse as Ko, IconIcon as Zo, IconInfo as _o, IconJoin as $o, IconLanguage as on, IconLink as nn, IconList as rn, IconLock as en, IconLockOpen as cn, IconMariaDB as In, IconMinus as tn, IconMongoDB as an, IconMoon as pn, IconMySQL as ln, IconNavigationArrow as fn, IconNotePencil as mn, IconPassword as xn, IconPen as sn, IconPlay as un, IconPlugsX as dn, IconPlus as Cn, IconPorsgteSQL as wn, IconPresentationChart as hn, IconQuestion as Sn, IconQuestionFullfilled as Tn, IconRedo as gn, IconRoleX as An, IconSearch as Ln, IconSearchX as kn, IconSelection as Dn, IconServer as Pn, IconSlidersHorizontal as yn, IconSticker as Un, IconSun as Bn, IconThreeDot as Fn, IconTrash as Mn, IconTriangleDown as vn, IconTriangleUp as Rn, IconUndo as Xn, IconUploadSimple as bn, IconUser as Hn, IconUserX as Nn, IconWarningCircle as On, IconWrench as Qn, IconX as En, IconYandexDisk as Gn } from "./components/Ui/Icons/Icons.js";
29
+ import { ToastProvider as Vn } from "./context/ToastContext/ToastContext.js";
30
+ import { TriaflyContext as Jn, TriaflyProvider as Yn, useTriafly as jn } from "./context/TriaflyContext/TriaflyProvider.js";
31
+ import { useBreakpointValueTriafly as Kn } from "./context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js";
32
+ import { useThemeLogic as _n } from "./context/TriaflyContext/hooks/useTheme/useTheme.js";
33
+ import { useModalState as or } from "./context/TriaflyContext/hooks/useModal/useModal.js";
34
+ export {
35
+ e as Accordeon,
36
+ I as Alert,
37
+ i as Avatar,
38
+ f as Badge,
39
+ x as Button,
40
+ u as ButtonsArray,
41
+ C as Checkbox,
42
+ h as CliTextareaInput,
43
+ T as CustomLink,
44
+ A as DropdownInput,
45
+ k as DropdownMenu,
46
+ P as FileUpload,
47
+ U as Form,
48
+ no as IconArrowBendUpRight,
49
+ ro as IconArrowClockwise,
50
+ eo as IconArrowDown,
51
+ co as IconArrowLeft,
52
+ Io as IconArrowLineDown,
53
+ to as IconArrowLineLeft,
54
+ io as IconArrowLineRight,
55
+ ao as IconArrowLineUp,
56
+ po as IconArrowRight,
57
+ lo as IconArrowUp,
58
+ fo as IconArrowsOut,
59
+ mo as IconArticle,
60
+ xo as IconAt,
61
+ so as IconBellSimple,
62
+ uo as IconBookOpenText,
63
+ Co as IconCalendarBlank,
64
+ wo as IconCaretDown,
65
+ ho as IconCaretLeft,
66
+ So as IconCaretRight,
67
+ To as IconCaretUp,
68
+ go as IconCaretUpDown,
69
+ Ao as IconChartPieSlice,
70
+ Lo as IconChatText,
71
+ ko as IconCheck,
72
+ Do as IconCheckCircle,
73
+ Po as IconChecks,
74
+ yo as IconCircleNotch,
75
+ Uo as IconCopy,
76
+ Bo as IconCornersOut,
77
+ Fo as IconCsv,
78
+ Mo as IconCube,
79
+ vo as IconDatabase,
80
+ Ro as IconDotsNine,
81
+ Xo as IconDotsThreeVertical,
82
+ bo as IconExport,
83
+ Ho as IconEye,
84
+ No as IconEyeSlash,
85
+ Oo as IconFile,
86
+ Qo as IconFiles,
87
+ Eo as IconFloppyDisk,
88
+ Go as IconFolderSimple,
89
+ Wo as IconFolderSimpleX,
90
+ Vo as IconFunnel,
91
+ zo as IconGauge,
92
+ Jo as IconGear,
93
+ Yo as IconGoogleDrive,
94
+ jo as IconHand,
95
+ qo as IconHeadCircuit,
96
+ Ko as IconHouse,
97
+ Zo as IconIcon,
98
+ _o as IconInfo,
99
+ $o as IconJoin,
100
+ on as IconLanguage,
101
+ nn as IconLink,
102
+ rn as IconList,
103
+ en as IconLock,
104
+ cn as IconLockOpen,
105
+ In as IconMariaDB,
106
+ tn as IconMinus,
107
+ an as IconMongoDB,
108
+ pn as IconMoon,
109
+ ln as IconMySQL,
110
+ fn as IconNavigationArrow,
111
+ mn as IconNotePencil,
112
+ xn as IconPassword,
113
+ sn as IconPen,
114
+ un as IconPlay,
115
+ dn as IconPlugsX,
116
+ Cn as IconPlus,
117
+ wn as IconPorsgteSQL,
118
+ hn as IconPresentationChart,
119
+ Sn as IconQuestion,
120
+ Tn as IconQuestionFullfilled,
121
+ gn as IconRedo,
122
+ An as IconRoleX,
123
+ Ln as IconSearch,
124
+ kn as IconSearchX,
125
+ Dn as IconSelection,
126
+ Pn as IconServer,
127
+ yn as IconSlidersHorizontal,
128
+ Un as IconSticker,
129
+ Bn as IconSun,
130
+ Fn as IconThreeDot,
131
+ Mn as IconTrash,
132
+ vn as IconTriangleDown,
133
+ Rn as IconTriangleUp,
134
+ Xn as IconUndo,
135
+ bn as IconUploadSimple,
136
+ Hn as IconUser,
137
+ Nn as IconUserX,
138
+ On as IconWarningCircle,
139
+ Qn as IconWrench,
140
+ En as IconX,
141
+ Gn as IconYandexDisk,
142
+ v as Loader,
143
+ p as ModalWindow,
144
+ X as Pagination,
145
+ H as Radio,
146
+ O as SearchInput,
147
+ E as Skeleton,
148
+ W as Switch,
149
+ z as Table,
150
+ $ as Tabs,
151
+ Y as TextInput,
152
+ q as TextareaInput,
153
+ Vn as ToastProvider,
154
+ Z as Tooltip,
155
+ Jn as TriaflyContext,
156
+ Yn as TriaflyProvider,
157
+ Kn as useBreakpointValueTriafly,
158
+ F as useForm,
159
+ or as useModalState,
160
+ _n as useThemeLogic,
161
+ jn as useTriafly
162
+ };
@@ -0,0 +1,42 @@
1
+ import { __module as s } from "../../_virtual/index3.js";
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ var u;
8
+ function c() {
9
+ return u ? s.exports : (u = 1, function(i) {
10
+ (function() {
11
+ var f = {}.hasOwnProperty;
12
+ function n() {
13
+ for (var r = "", t = 0; t < arguments.length; t++) {
14
+ var e = arguments[t];
15
+ e && (r = o(r, a(e)));
16
+ }
17
+ return r;
18
+ }
19
+ function a(r) {
20
+ if (typeof r == "string" || typeof r == "number")
21
+ return r;
22
+ if (typeof r != "object")
23
+ return "";
24
+ if (Array.isArray(r))
25
+ return n.apply(null, r);
26
+ if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
27
+ return r.toString();
28
+ var t = "";
29
+ for (var e in r)
30
+ f.call(r, e) && r[e] && (t = o(t, e));
31
+ return t;
32
+ }
33
+ function o(r, t) {
34
+ return t ? r ? r + " " + t : r + t : r;
35
+ }
36
+ i.exports ? (n.default = n, i.exports = n) : window.classNames = n;
37
+ })();
38
+ }(s), s.exports);
39
+ }
40
+ export {
41
+ c as __require
42
+ };
@@ -0,0 +1,31 @@
1
+ var o, c;
2
+ function l() {
3
+ return c || (c = 1, o = function n(r, e) {
4
+ if (r === e) return !0;
5
+ if (r && e && typeof r == "object" && typeof e == "object") {
6
+ if (r.constructor !== e.constructor) return !1;
7
+ var u, t, f;
8
+ if (Array.isArray(r)) {
9
+ if (u = r.length, u != e.length) return !1;
10
+ for (t = u; t-- !== 0; )
11
+ if (!n(r[t], e[t])) return !1;
12
+ return !0;
13
+ }
14
+ if (r.constructor === RegExp) return r.source === e.source && r.flags === e.flags;
15
+ if (r.valueOf !== Object.prototype.valueOf) return r.valueOf() === e.valueOf();
16
+ if (r.toString !== Object.prototype.toString) return r.toString() === e.toString();
17
+ if (f = Object.keys(r), u = f.length, u !== Object.keys(e).length) return !1;
18
+ for (t = u; t-- !== 0; )
19
+ if (!Object.prototype.hasOwnProperty.call(e, f[t])) return !1;
20
+ for (t = u; t-- !== 0; ) {
21
+ var s = f[t];
22
+ if (!n(r[s], e[s])) return !1;
23
+ }
24
+ return !0;
25
+ }
26
+ return r !== r && e !== e;
27
+ }), o;
28
+ }
29
+ export {
30
+ l as __require
31
+ };
@@ -0,0 +1,421 @@
1
+ import { __module as ie } from "../../_virtual/papaparse.min2.js";
2
+ /* @license
3
+ Papa Parse
4
+ v5.5.3
5
+ https://github.com/mholt/PapaParse
6
+ License: MIT
7
+ */
8
+ var ye = ie.exports, pe;
9
+ function Ee() {
10
+ return pe ? ie.exports : (pe = 1, function(_e, ke) {
11
+ ((ue, R) => {
12
+ _e.exports = R();
13
+ })(ye, function ue() {
14
+ var R = typeof self < "u" ? self : typeof window < "u" ? window : R !== void 0 ? R : {}, $, J = !R.document && !!R.postMessage, ne = R.IS_PAPA_WORKER || !1, V = {}, ge = 0, u = {};
15
+ function N(e) {
16
+ this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, (function(t) {
17
+ var r = ae(t);
18
+ r.chunkSize = parseInt(r.chunkSize), t.step || t.chunk || (r.chunkSize = null), this._handle = new he(r), (this._handle.streamer = this)._config = r;
19
+ }).call(this, e), this.parseChunk = function(t, r) {
20
+ var n = parseInt(this._config.skipFirstNLines) || 0;
21
+ if (this.isFirstChunk && 0 < n) {
22
+ let l = this._config.newline;
23
+ l || (i = this._config.quoteChar || '"', l = this._handle.guessLineEndings(t, i)), t = [...t.split(l).slice(n)].join(l);
24
+ }
25
+ this.isFirstChunk && y(this._config.beforeFirstChunk) && (i = this._config.beforeFirstChunk(t)) !== void 0 && (t = i), this.isFirstChunk = !1, this._halted = !1;
26
+ var n = this._partialLine + t, i = (this._partialLine = "", this._handle.parse(n, this._baseIndex, !this._finished));
27
+ if (!this._handle.paused() && !this._handle.aborted()) {
28
+ if (t = i.meta.cursor, n = (this._finished || (this._partialLine = n.substring(t - this._baseIndex), this._baseIndex = t), i && i.data && (this._rowCount += i.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), ne) R.postMessage({ results: i, workerId: u.WORKER_ID, finished: n });
29
+ else if (y(this._config.chunk) && !r) {
30
+ if (this._config.chunk(i, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
31
+ this._completeResults = i = void 0;
32
+ }
33
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(i.data), this._completeResults.errors = this._completeResults.errors.concat(i.errors), this._completeResults.meta = i.meta), this._completed || !n || !y(this._config.complete) || i && i.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), n || i && i.meta.paused || this._nextChunk(), i;
34
+ }
35
+ this._halted = !0;
36
+ }, this._sendError = function(t) {
37
+ y(this._config.error) ? this._config.error(t) : ne && this._config.error && R.postMessage({ workerId: u.WORKER_ID, error: t, finished: !1 });
38
+ };
39
+ }
40
+ function ee(e) {
41
+ var t;
42
+ (e = e || {}).chunkSize || (e.chunkSize = u.RemoteChunkSize), N.call(this, e), this._nextChunk = J ? function() {
43
+ this._readChunk(), this._chunkLoaded();
44
+ } : function() {
45
+ this._readChunk();
46
+ }, this.stream = function(r) {
47
+ this._input = r, this._nextChunk();
48
+ }, this._readChunk = function() {
49
+ if (this._finished) this._chunkLoaded();
50
+ else {
51
+ if (t = new XMLHttpRequest(), this._config.withCredentials && (t.withCredentials = this._config.withCredentials), J || (t.onload = K(this._chunkLoaded, this), t.onerror = K(this._chunkError, this)), t.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !J), this._config.downloadRequestHeaders) {
52
+ var r, n = this._config.downloadRequestHeaders;
53
+ for (r in n) t.setRequestHeader(r, n[r]);
54
+ }
55
+ var i;
56
+ this._config.chunkSize && (i = this._start + this._config.chunkSize - 1, t.setRequestHeader("Range", "bytes=" + this._start + "-" + i));
57
+ try {
58
+ t.send(this._config.downloadRequestBody);
59
+ } catch (l) {
60
+ this._chunkError(l.message);
61
+ }
62
+ J && t.status === 0 && this._chunkError();
63
+ }
64
+ }, this._chunkLoaded = function() {
65
+ t.readyState === 4 && (t.status < 200 || 400 <= t.status ? this._chunkError() : (this._start += this._config.chunkSize || t.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((r) => (r = r.getResponseHeader("Content-Range")) !== null ? parseInt(r.substring(r.lastIndexOf("/") + 1)) : -1)(t), this.parseChunk(t.responseText)));
66
+ }, this._chunkError = function(r) {
67
+ r = t.statusText || r, this._sendError(new Error(r));
68
+ };
69
+ }
70
+ function te(e) {
71
+ (e = e || {}).chunkSize || (e.chunkSize = u.LocalChunkSize), N.call(this, e);
72
+ var t, r, n = typeof FileReader < "u";
73
+ this.stream = function(i) {
74
+ this._input = i, r = i.slice || i.webkitSlice || i.mozSlice, n ? ((t = new FileReader()).onload = K(this._chunkLoaded, this), t.onerror = K(this._chunkError, this)) : t = new FileReaderSync(), this._nextChunk();
75
+ }, this._nextChunk = function() {
76
+ this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
77
+ }, this._readChunk = function() {
78
+ var i = this._input, l = (this._config.chunkSize && (l = Math.min(this._start + this._config.chunkSize, this._input.size), i = r.call(i, this._start, l)), t.readAsText(i, this._config.encoding));
79
+ n || this._chunkLoaded({ target: { result: l } });
80
+ }, this._chunkLoaded = function(i) {
81
+ this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(i.target.result);
82
+ }, this._chunkError = function() {
83
+ this._sendError(t.error);
84
+ };
85
+ }
86
+ function Z(e) {
87
+ var t;
88
+ N.call(this, e = e || {}), this.stream = function(r) {
89
+ return t = r, this._nextChunk();
90
+ }, this._nextChunk = function() {
91
+ var r, n;
92
+ if (!this._finished) return r = this._config.chunkSize, t = r ? (n = t.substring(0, r), t.substring(r)) : (n = t, ""), this._finished = !t, this.parseChunk(n);
93
+ };
94
+ }
95
+ function re(e) {
96
+ N.call(this, e = e || {});
97
+ var t = [], r = !0, n = !1;
98
+ this.pause = function() {
99
+ N.prototype.pause.apply(this, arguments), this._input.pause();
100
+ }, this.resume = function() {
101
+ N.prototype.resume.apply(this, arguments), this._input.resume();
102
+ }, this.stream = function(i) {
103
+ this._input = i, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
104
+ }, this._checkIsFinished = function() {
105
+ n && t.length === 1 && (this._finished = !0);
106
+ }, this._nextChunk = function() {
107
+ this._checkIsFinished(), t.length ? this.parseChunk(t.shift()) : r = !0;
108
+ }, this._streamData = K(function(i) {
109
+ try {
110
+ t.push(typeof i == "string" ? i : i.toString(this._config.encoding)), r && (r = !1, this._checkIsFinished(), this.parseChunk(t.shift()));
111
+ } catch (l) {
112
+ this._streamError(l);
113
+ }
114
+ }, this), this._streamError = K(function(i) {
115
+ this._streamCleanUp(), this._sendError(i);
116
+ }, this), this._streamEnd = K(function() {
117
+ this._streamCleanUp(), n = !0, this._streamData("");
118
+ }, this), this._streamCleanUp = K(function() {
119
+ this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
120
+ }, this);
121
+ }
122
+ function he(e) {
123
+ var t, r, n, i, l = Math.pow(2, 53), C = -l, F = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, j = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, d = this, E = 0, a = 0, T = !1, h = !1, c = [], s = { data: [], errors: [], meta: {} };
124
+ function O(p) {
125
+ return e.skipEmptyLines === "greedy" ? p.join("").trim() === "" : p.length === 1 && p[0].length === 0;
126
+ }
127
+ function S() {
128
+ if (s && n && (z("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + u.DefaultDelimiter + "'"), n = !1), e.skipEmptyLines && (s.data = s.data.filter(function(o) {
129
+ return !O(o);
130
+ })), A()) {
131
+ let o = function(w, x) {
132
+ y(e.transformHeader) && (w = e.transformHeader(w, x)), c.push(w);
133
+ };
134
+ if (s) if (Array.isArray(s.data[0])) {
135
+ for (var p = 0; A() && p < s.data.length; p++) s.data[p].forEach(o);
136
+ s.data.splice(0, 1);
137
+ } else s.data.forEach(o);
138
+ }
139
+ function g(o, w) {
140
+ for (var x = e.header ? {} : [], m = 0; m < o.length; m++) {
141
+ var k = m, _ = o[m], _ = ((M, f) => ((v) => (e.dynamicTypingFunction && e.dynamicTyping[v] === void 0 && (e.dynamicTyping[v] = e.dynamicTypingFunction(v)), (e.dynamicTyping[v] || e.dynamicTyping) === !0))(M) ? f === "true" || f === "TRUE" || f !== "false" && f !== "FALSE" && (((v) => {
142
+ if (F.test(v) && (v = parseFloat(v), C < v && v < l))
143
+ return 1;
144
+ })(f) ? parseFloat(f) : j.test(f) ? new Date(f) : f === "" ? null : f) : f)(k = e.header ? m >= c.length ? "__parsed_extra" : c[m] : k, _ = e.transform ? e.transform(_, k) : _);
145
+ k === "__parsed_extra" ? (x[k] = x[k] || [], x[k].push(_)) : x[k] = _;
146
+ }
147
+ return e.header && (m > c.length ? z("FieldMismatch", "TooManyFields", "Too many fields: expected " + c.length + " fields but parsed " + m, a + w) : m < c.length && z("FieldMismatch", "TooFewFields", "Too few fields: expected " + c.length + " fields but parsed " + m, a + w)), x;
148
+ }
149
+ var b;
150
+ s && (e.header || e.dynamicTyping || e.transform) && (b = 1, !s.data.length || Array.isArray(s.data[0]) ? (s.data = s.data.map(g), b = s.data.length) : s.data = g(s.data, 0), e.header && s.meta && (s.meta.fields = c), a += b);
151
+ }
152
+ function A() {
153
+ return e.header && c.length === 0;
154
+ }
155
+ function z(p, g, b, o) {
156
+ p = { type: p, code: g, message: b }, o !== void 0 && (p.row = o), s.errors.push(p);
157
+ }
158
+ y(e.step) && (i = e.step, e.step = function(p) {
159
+ s = p, A() ? S() : (S(), s.data.length !== 0 && (E += p.data.length, e.preview && E > e.preview ? r.abort() : (s.data = s.data[0], i(s, d))));
160
+ }), this.parse = function(p, g, b) {
161
+ var o = e.quoteChar || '"', o = (e.newline || (e.newline = this.guessLineEndings(p, o)), n = !1, e.delimiter ? y(e.delimiter) && (e.delimiter = e.delimiter(p), s.meta.delimiter = e.delimiter) : ((o = ((w, x, m, k, _) => {
162
+ var M, f, v, W;
163
+ _ = _ || [",", " ", "|", ";", u.RECORD_SEP, u.UNIT_SEP];
164
+ for (var H = 0; H < _.length; H++) {
165
+ for (var P, Y = _[H], D = 0, q = 0, I = 0, L = (v = void 0, new se({ comments: k, delimiter: Y, newline: x, preview: 10 }).parse(w)), B = 0; B < L.data.length; B++) m && O(L.data[B]) ? I++ : (P = L.data[B].length, q += P, v === void 0 ? v = P : 0 < P && (D += Math.abs(P - v), v = P));
166
+ 0 < L.data.length && (q /= L.data.length - I), (f === void 0 || D <= f) && (W === void 0 || W < q) && 1.99 < q && (f = D, M = Y, W = q);
167
+ }
168
+ return { successful: !!(e.delimiter = M), bestDelimiter: M };
169
+ })(p, e.newline, e.skipEmptyLines, e.comments, e.delimitersToGuess)).successful ? e.delimiter = o.bestDelimiter : (n = !0, e.delimiter = u.DefaultDelimiter), s.meta.delimiter = e.delimiter), ae(e));
170
+ return e.preview && e.header && o.preview++, t = p, r = new se(o), s = r.parse(t, g, b), S(), T ? { meta: { paused: !0 } } : s || { meta: { paused: !1 } };
171
+ }, this.paused = function() {
172
+ return T;
173
+ }, this.pause = function() {
174
+ T = !0, r.abort(), t = y(e.chunk) ? "" : t.substring(r.getCharIndex());
175
+ }, this.resume = function() {
176
+ d.streamer._halted ? (T = !1, d.streamer.parseChunk(t, !0)) : setTimeout(d.resume, 3);
177
+ }, this.aborted = function() {
178
+ return h;
179
+ }, this.abort = function() {
180
+ h = !0, r.abort(), s.meta.aborted = !0, y(e.complete) && e.complete(s), t = "";
181
+ }, this.guessLineEndings = function(w, o) {
182
+ w = w.substring(0, 1048576);
183
+ var o = new RegExp(G(o) + "([^]*?)" + G(o), "gm"), b = (w = w.replace(o, "")).split("\r"), o = w.split(`
184
+ `), w = 1 < o.length && o[0].length < b[0].length;
185
+ if (b.length === 1 || w) return `
186
+ `;
187
+ for (var x = 0, m = 0; m < b.length; m++) b[m][0] === `
188
+ ` && x++;
189
+ return x >= b.length / 2 ? `\r
190
+ ` : "\r";
191
+ };
192
+ }
193
+ function G(e) {
194
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
195
+ }
196
+ function se(e) {
197
+ var t = (e = e || {}).delimiter, r = e.newline, n = e.comments, i = e.step, l = e.preview, C = e.fastMode, F = null, j = !1, d = e.quoteChar == null ? '"' : e.quoteChar, E = d;
198
+ if (e.escapeChar !== void 0 && (E = e.escapeChar), (typeof t != "string" || -1 < u.BAD_DELIMITERS.indexOf(t)) && (t = ","), n === t) throw new Error("Comment character same as delimiter");
199
+ n === !0 ? n = "#" : (typeof n != "string" || -1 < u.BAD_DELIMITERS.indexOf(n)) && (n = !1), r !== `
200
+ ` && r !== "\r" && r !== `\r
201
+ ` && (r = `
202
+ `);
203
+ var a = 0, T = !1;
204
+ this.parse = function(h, c, s) {
205
+ if (typeof h != "string") throw new Error("Input must be a string");
206
+ var O = h.length, S = t.length, A = r.length, z = n.length, p = y(i), g = [], b = [], o = [], w = a = 0;
207
+ if (!h) return D();
208
+ if (C || C !== !1 && h.indexOf(d) === -1) {
209
+ for (var x = h.split(r), m = 0; m < x.length; m++) {
210
+ if (o = x[m], a += o.length, m !== x.length - 1) a += r.length;
211
+ else if (s) return D();
212
+ if (!n || o.substring(0, z) !== n) {
213
+ if (p) {
214
+ if (g = [], W(o.split(t)), q(), T) return D();
215
+ } else W(o.split(t));
216
+ if (l && l <= m) return g = g.slice(0, l), D(!0);
217
+ }
218
+ }
219
+ return D();
220
+ }
221
+ for (var k = h.indexOf(t, a), _ = h.indexOf(r, a), M = new RegExp(G(E) + G(d), "g"), f = h.indexOf(d, a); ; ) if (h[a] === d) for (f = a, a++; ; ) {
222
+ if ((f = h.indexOf(d, f + 1)) === -1) return s || b.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: g.length, index: a }), P();
223
+ if (f === O - 1) return P(h.substring(a, f).replace(M, d));
224
+ if (d === E && h[f + 1] === E) f++;
225
+ else if (d === E || f === 0 || h[f - 1] !== E) {
226
+ k !== -1 && k < f + 1 && (k = h.indexOf(t, f + 1));
227
+ var v = H((_ = _ !== -1 && _ < f + 1 ? h.indexOf(r, f + 1) : _) === -1 ? k : Math.min(k, _));
228
+ if (h.substr(f + 1 + v, S) === t) {
229
+ o.push(h.substring(a, f).replace(M, d)), h[a = f + 1 + v + S] !== d && (f = h.indexOf(d, a)), k = h.indexOf(t, a), _ = h.indexOf(r, a);
230
+ break;
231
+ }
232
+ if (v = H(_), h.substring(f + 1 + v, f + 1 + v + A) === r) {
233
+ if (o.push(h.substring(a, f).replace(M, d)), Y(f + 1 + v + A), k = h.indexOf(t, a), f = h.indexOf(d, a), p && (q(), T)) return D();
234
+ if (l && g.length >= l) return D(!0);
235
+ break;
236
+ }
237
+ b.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: g.length, index: a }), f++;
238
+ }
239
+ }
240
+ else if (n && o.length === 0 && h.substring(a, a + z) === n) {
241
+ if (_ === -1) return D();
242
+ a = _ + A, _ = h.indexOf(r, a), k = h.indexOf(t, a);
243
+ } else if (k !== -1 && (k < _ || _ === -1)) o.push(h.substring(a, k)), a = k + S, k = h.indexOf(t, a);
244
+ else {
245
+ if (_ === -1) break;
246
+ if (o.push(h.substring(a, _)), Y(_ + A), p && (q(), T)) return D();
247
+ if (l && g.length >= l) return D(!0);
248
+ }
249
+ return P();
250
+ function W(I) {
251
+ g.push(I), w = a;
252
+ }
253
+ function H(I) {
254
+ var L = 0;
255
+ return L = I !== -1 && (I = h.substring(f + 1, I)) && I.trim() === "" ? I.length : L;
256
+ }
257
+ function P(I) {
258
+ return s || (I === void 0 && (I = h.substring(a)), o.push(I), a = O, W(o), p && q()), D();
259
+ }
260
+ function Y(I) {
261
+ a = I, W(o), o = [], _ = h.indexOf(r, a);
262
+ }
263
+ function D(I) {
264
+ if (e.header && !c && g.length && !j) {
265
+ var L = g[0], B = /* @__PURE__ */ Object.create(null), oe = new Set(L);
266
+ let de = !1;
267
+ for (let Q = 0; Q < L.length; Q++) {
268
+ let U = L[Q];
269
+ if (B[U = y(e.transformHeader) ? e.transformHeader(U, Q) : U]) {
270
+ let X, ce = B[U];
271
+ for (; X = U + "_" + ce, ce++, oe.has(X); ) ;
272
+ oe.add(X), L[Q] = X, B[U]++, de = !0, (F = F === null ? {} : F)[X] = U;
273
+ } else B[U] = 1, L[Q] = U;
274
+ oe.add(U);
275
+ }
276
+ de && console.warn("Duplicate headers found and renamed."), j = !0;
277
+ }
278
+ return { data: g, errors: b, meta: { delimiter: t, linebreak: r, aborted: T, truncated: !!I, cursor: w + (c || 0), renamedHeaders: F } };
279
+ }
280
+ function q() {
281
+ i(D()), g = [], b = [];
282
+ }
283
+ }, this.abort = function() {
284
+ T = !0;
285
+ }, this.getCharIndex = function() {
286
+ return a;
287
+ };
288
+ }
289
+ function me(e) {
290
+ var t = e.data, r = V[t.workerId], n = !1;
291
+ if (t.error) r.userError(t.error, t.file);
292
+ else if (t.results && t.results.data) {
293
+ var i = { abort: function() {
294
+ n = !0, fe(t.workerId, { data: [], errors: [], meta: { aborted: !0 } });
295
+ }, pause: le, resume: le };
296
+ if (y(r.userStep)) {
297
+ for (var l = 0; l < t.results.data.length && (r.userStep({ data: t.results.data[l], errors: t.results.errors, meta: t.results.meta }, i), !n); l++) ;
298
+ delete t.results;
299
+ } else y(r.userChunk) && (r.userChunk(t.results, i, t.file), delete t.results);
300
+ }
301
+ t.finished && !n && fe(t.workerId, t.results);
302
+ }
303
+ function fe(e, t) {
304
+ var r = V[e];
305
+ y(r.userComplete) && r.userComplete(t), r.terminate(), delete V[e];
306
+ }
307
+ function le() {
308
+ throw new Error("Not implemented.");
309
+ }
310
+ function ae(e) {
311
+ if (typeof e != "object" || e === null) return e;
312
+ var t, r = Array.isArray(e) ? [] : {};
313
+ for (t in e) r[t] = ae(e[t]);
314
+ return r;
315
+ }
316
+ function K(e, t) {
317
+ return function() {
318
+ e.apply(t, arguments);
319
+ };
320
+ }
321
+ function y(e) {
322
+ return typeof e == "function";
323
+ }
324
+ return u.parse = function(e, t) {
325
+ var r = (t = t || {}).dynamicTyping || !1;
326
+ if (y(r) && (t.dynamicTypingFunction = r, r = {}), t.dynamicTyping = r, t.transform = !!y(t.transform) && t.transform, !t.worker || !u.WORKERS_SUPPORTED) return r = null, u.NODE_STREAM_INPUT, typeof e == "string" ? (e = ((n) => n.charCodeAt(0) !== 65279 ? n : n.slice(1))(e), r = new (t.download ? ee : Z)(t)) : e.readable === !0 && y(e.read) && y(e.on) ? r = new re(t) : (R.File && e instanceof File || e instanceof Object) && (r = new te(t)), r.stream(e);
327
+ (r = (() => {
328
+ var n;
329
+ return !!u.WORKERS_SUPPORTED && (n = (() => {
330
+ var i = R.URL || R.webkitURL || null, l = ue.toString();
331
+ return u.BLOB_URL || (u.BLOB_URL = i.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", l, ")();"], { type: "text/javascript" })));
332
+ })(), (n = new R.Worker(n)).onmessage = me, n.id = ge++, V[n.id] = n);
333
+ })()).userStep = t.step, r.userChunk = t.chunk, r.userComplete = t.complete, r.userError = t.error, t.step = y(t.step), t.chunk = y(t.chunk), t.complete = y(t.complete), t.error = y(t.error), delete t.worker, r.postMessage({ input: e, config: t, workerId: r.id });
334
+ }, u.unparse = function(e, t) {
335
+ var r = !1, n = !0, i = ",", l = `\r
336
+ `, C = '"', F = C + C, j = !1, d = null, E = !1, a = ((() => {
337
+ if (typeof t == "object") {
338
+ if (typeof t.delimiter != "string" || u.BAD_DELIMITERS.filter(function(c) {
339
+ return t.delimiter.indexOf(c) !== -1;
340
+ }).length || (i = t.delimiter), typeof t.quotes != "boolean" && typeof t.quotes != "function" && !Array.isArray(t.quotes) || (r = t.quotes), typeof t.skipEmptyLines != "boolean" && typeof t.skipEmptyLines != "string" || (j = t.skipEmptyLines), typeof t.newline == "string" && (l = t.newline), typeof t.quoteChar == "string" && (C = t.quoteChar), typeof t.header == "boolean" && (n = t.header), Array.isArray(t.columns)) {
341
+ if (t.columns.length === 0) throw new Error("Option columns is empty");
342
+ d = t.columns;
343
+ }
344
+ t.escapeChar !== void 0 && (F = t.escapeChar + C), t.escapeFormulae instanceof RegExp ? E = t.escapeFormulae : typeof t.escapeFormulae == "boolean" && t.escapeFormulae && (E = /^[=+\-@\t\r].*$/);
345
+ }
346
+ })(), new RegExp(G(C), "g"));
347
+ if (typeof e == "string" && (e = JSON.parse(e)), Array.isArray(e)) {
348
+ if (!e.length || Array.isArray(e[0])) return T(null, e, j);
349
+ if (typeof e[0] == "object") return T(d || Object.keys(e[0]), e, j);
350
+ } else if (typeof e == "object") return typeof e.data == "string" && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields || d), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : typeof e.data[0] == "object" ? Object.keys(e.data[0]) : []), Array.isArray(e.data[0]) || typeof e.data[0] == "object" || (e.data = [e.data])), T(e.fields || [], e.data || [], j);
351
+ throw new Error("Unable to serialize unrecognized input");
352
+ function T(c, s, O) {
353
+ var S = "", A = (typeof c == "string" && (c = JSON.parse(c)), typeof s == "string" && (s = JSON.parse(s)), Array.isArray(c) && 0 < c.length), z = !Array.isArray(s[0]);
354
+ if (A && n) {
355
+ for (var p = 0; p < c.length; p++) 0 < p && (S += i), S += h(c[p], p);
356
+ 0 < s.length && (S += l);
357
+ }
358
+ for (var g = 0; g < s.length; g++) {
359
+ var b = (A ? c : s[g]).length, o = !1, w = A ? Object.keys(s[g]).length === 0 : s[g].length === 0;
360
+ if (O && !A && (o = O === "greedy" ? s[g].join("").trim() === "" : s[g].length === 1 && s[g][0].length === 0), O === "greedy" && A) {
361
+ for (var x = [], m = 0; m < b; m++) {
362
+ var k = z ? c[m] : m;
363
+ x.push(s[g][k]);
364
+ }
365
+ o = x.join("").trim() === "";
366
+ }
367
+ if (!o) {
368
+ for (var _ = 0; _ < b; _++) {
369
+ 0 < _ && !w && (S += i);
370
+ var M = A && z ? c[_] : _;
371
+ S += h(s[g][M], _);
372
+ }
373
+ g < s.length - 1 && (!O || 0 < b && !w) && (S += l);
374
+ }
375
+ }
376
+ return S;
377
+ }
378
+ function h(c, s) {
379
+ var O, S;
380
+ return c == null ? "" : c.constructor === Date ? JSON.stringify(c).slice(1, 25) : (S = !1, E && typeof c == "string" && E.test(c) && (c = "'" + c, S = !0), O = c.toString().replace(a, F), (S = S || r === !0 || typeof r == "function" && r(c, s) || Array.isArray(r) && r[s] || ((A, z) => {
381
+ for (var p = 0; p < z.length; p++) if (-1 < A.indexOf(z[p])) return !0;
382
+ return !1;
383
+ })(O, u.BAD_DELIMITERS) || -1 < O.indexOf(i) || O.charAt(0) === " " || O.charAt(O.length - 1) === " ") ? C + O + C : O);
384
+ }
385
+ }, u.RECORD_SEP = "", u.UNIT_SEP = "", u.BYTE_ORDER_MARK = "\uFEFF", u.BAD_DELIMITERS = ["\r", `
386
+ `, '"', u.BYTE_ORDER_MARK], u.WORKERS_SUPPORTED = !J && !!R.Worker, u.NODE_STREAM_INPUT = 1, u.LocalChunkSize = 10485760, u.RemoteChunkSize = 5242880, u.DefaultDelimiter = ",", u.Parser = se, u.ParserHandle = he, u.NetworkStreamer = ee, u.FileStreamer = te, u.StringStreamer = Z, u.ReadableStreamStreamer = re, R.jQuery && (($ = R.jQuery).fn.parse = function(e) {
387
+ var t = e.config || {}, r = [];
388
+ return this.each(function(l) {
389
+ if (!($(this).prop("tagName").toUpperCase() === "INPUT" && $(this).attr("type").toLowerCase() === "file" && R.FileReader) || !this.files || this.files.length === 0) return !0;
390
+ for (var C = 0; C < this.files.length; C++) r.push({ file: this.files[C], inputElem: this, instanceConfig: $.extend({}, t) });
391
+ }), n(), this;
392
+ function n() {
393
+ if (r.length === 0) y(e.complete) && e.complete();
394
+ else {
395
+ var l, C, F, j, d = r[0];
396
+ if (y(e.before)) {
397
+ var E = e.before(d.file, d.inputElem);
398
+ if (typeof E == "object") {
399
+ if (E.action === "abort") return l = "AbortError", C = d.file, F = d.inputElem, j = E.reason, void (y(e.error) && e.error({ name: l }, C, F, j));
400
+ if (E.action === "skip") return void i();
401
+ typeof E.config == "object" && (d.instanceConfig = $.extend(d.instanceConfig, E.config));
402
+ } else if (E === "skip") return void i();
403
+ }
404
+ var a = d.instanceConfig.complete;
405
+ d.instanceConfig.complete = function(T) {
406
+ y(a) && a(T, d.file, d.inputElem), i();
407
+ }, u.parse(d.file, d.instanceConfig);
408
+ }
409
+ }
410
+ function i() {
411
+ r.splice(0, 1), n();
412
+ }
413
+ }), ne && (R.onmessage = function(e) {
414
+ e = e.data, u.WORKER_ID === void 0 && e && (u.WORKER_ID = e.workerId), typeof e.input == "string" ? R.postMessage({ workerId: u.WORKER_ID, results: u.parse(e.input, e.config), finished: !0 }) : (R.File && e.input instanceof File || e.input instanceof Object) && (e = u.parse(e.input, e.config)) && R.postMessage({ workerId: u.WORKER_ID, results: e, finished: !0 });
415
+ }), (ee.prototype = Object.create(N.prototype)).constructor = ee, (te.prototype = Object.create(N.prototype)).constructor = te, (Z.prototype = Object.create(Z.prototype)).constructor = Z, (re.prototype = Object.create(N.prototype)).constructor = re, u;
416
+ });
417
+ }(ie), ie.exports);
418
+ }
419
+ export {
420
+ Ee as __require
421
+ };