amis 6.9.0-rc.7 → 6.9.0-rc.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (392) hide show
  1. package/esm/compat.js +2 -2
  2. package/esm/index.js +2 -2
  3. package/esm/minimal.js +2 -2
  4. package/esm/preset.js +2 -2
  5. package/esm/renderers/AMIS.js +2 -2
  6. package/esm/renderers/Action.js +2 -2
  7. package/esm/renderers/Alert.js +2 -2
  8. package/esm/renderers/AnchorNav.js +2 -2
  9. package/esm/renderers/App.js +2 -2
  10. package/esm/renderers/Audio.js +2 -2
  11. package/esm/renderers/Avatar.js +2 -2
  12. package/esm/renderers/BarCode.js +2 -2
  13. package/esm/renderers/Breadcrumb.js +2 -2
  14. package/esm/renderers/ButtonGroup.js +2 -2
  15. package/esm/renderers/CRUD.js +2 -2
  16. package/esm/renderers/CRUD2.js +2 -2
  17. package/esm/renderers/Calendar.js +2 -2
  18. package/esm/renderers/Card.js +2 -2
  19. package/esm/renderers/Card2.js +2 -2
  20. package/esm/renderers/Cards.js +2 -2
  21. package/esm/renderers/Carousel.js +2 -2
  22. package/esm/renderers/Chart.js +2 -2
  23. package/esm/renderers/Code.js +2 -2
  24. package/esm/renderers/Collapse.js +2 -2
  25. package/esm/renderers/CollapseGroup.js +2 -2
  26. package/esm/renderers/Color.js +2 -2
  27. package/esm/renderers/Container.js +2 -2
  28. package/esm/renderers/Copyable.js +2 -2
  29. package/esm/renderers/Custom.js +2 -2
  30. package/esm/renderers/Date.js +2 -2
  31. package/esm/renderers/DateRange.js +2 -2
  32. package/esm/renderers/Dialog.d.ts +80 -80
  33. package/esm/renderers/Dialog.js +2 -2
  34. package/esm/renderers/Divider.js +2 -2
  35. package/esm/renderers/Drawer.js +2 -2
  36. package/esm/renderers/DropDownButton.js +2 -2
  37. package/esm/renderers/Each.js +2 -2
  38. package/esm/renderers/Flex.js +2 -2
  39. package/esm/renderers/Form/ButtonGroupSelect.js +2 -2
  40. package/esm/renderers/Form/ButtonToolbar.js +2 -2
  41. package/esm/renderers/Form/ChainedSelect.js +2 -2
  42. package/esm/renderers/Form/ChartRadios.js +2 -2
  43. package/esm/renderers/Form/Checkbox.js +2 -2
  44. package/esm/renderers/Form/Checkboxes.js +2 -2
  45. package/esm/renderers/Form/Combo.js +2 -2
  46. package/esm/renderers/Form/ConditionBuilder.js +2 -2
  47. package/esm/renderers/Form/Control.js +2 -2
  48. package/esm/renderers/Form/DiffEditor.js +2 -2
  49. package/esm/renderers/Form/Editor.js +2 -2
  50. package/esm/renderers/Form/FieldSet.js +2 -2
  51. package/esm/renderers/Form/Formula.js +2 -2
  52. package/esm/renderers/Form/Group.js +2 -2
  53. package/esm/renderers/Form/Hidden.js +2 -2
  54. package/esm/renderers/Form/IconPicker.js +2 -2
  55. package/esm/renderers/Form/IconPickerIcons.js +2 -2
  56. package/esm/renderers/Form/IconSelect.js +2 -2
  57. package/esm/renderers/Form/IconSelectStore.js +2 -2
  58. package/esm/renderers/Form/InputArray.js +2 -2
  59. package/esm/renderers/Form/InputCity.js +2 -2
  60. package/esm/renderers/Form/InputColor.d.ts +40 -40
  61. package/esm/renderers/Form/InputColor.js +2 -2
  62. package/esm/renderers/Form/InputDate.js +2 -2
  63. package/esm/renderers/Form/InputDateRange.js +2 -2
  64. package/esm/renderers/Form/InputExcel.js +2 -2
  65. package/esm/renderers/Form/InputFile.js +2 -2
  66. package/esm/renderers/Form/InputFormula.js +2 -2
  67. package/esm/renderers/Form/InputGroup.js +2 -2
  68. package/esm/renderers/Form/InputImage.js +2 -2
  69. package/esm/renderers/Form/InputMonthRange.js +2 -2
  70. package/esm/renderers/Form/InputNumber.js +2 -2
  71. package/esm/renderers/Form/InputQuarterRange.js +2 -2
  72. package/esm/renderers/Form/InputRange.js +2 -2
  73. package/esm/renderers/Form/InputRating.js +2 -2
  74. package/esm/renderers/Form/InputRepeat.js +2 -2
  75. package/esm/renderers/Form/InputRichText.js +2 -2
  76. package/esm/renderers/Form/InputSignature.js +2 -2
  77. package/esm/renderers/Form/InputSubForm.js +2 -2
  78. package/esm/renderers/Form/InputTable.js +2 -2
  79. package/esm/renderers/Form/InputTag.js +2 -2
  80. package/esm/renderers/Form/InputText.js +2 -2
  81. package/esm/renderers/Form/InputTree.js +2 -2
  82. package/esm/renderers/Form/InputVerificationCode.js +2 -2
  83. package/esm/renderers/Form/InputYearRange.js +2 -2
  84. package/esm/renderers/Form/JSONSchema.js +2 -2
  85. package/esm/renderers/Form/JSONSchemaEditor.js +2 -2
  86. package/esm/renderers/Form/ListSelect.js +2 -2
  87. package/esm/renderers/Form/LocationPicker.js +2 -2
  88. package/esm/renderers/Form/MatrixCheckboxes.js +2 -2
  89. package/esm/renderers/Form/NestedSelect.js +2 -2
  90. package/esm/renderers/Form/Picker.js +2 -2
  91. package/esm/renderers/Form/Radio.js +2 -2
  92. package/esm/renderers/Form/Radios.js +2 -2
  93. package/esm/renderers/Form/Select.js +2 -2
  94. package/esm/renderers/Form/Static.js +2 -2
  95. package/esm/renderers/Form/StaticHoc.js +2 -2
  96. package/esm/renderers/Form/Switch.js +2 -2
  97. package/esm/renderers/Form/TabsTransfer.js +2 -2
  98. package/esm/renderers/Form/TabsTransferPicker.js +2 -2
  99. package/esm/renderers/Form/Textarea.js +2 -2
  100. package/esm/renderers/Form/Transfer.js +2 -2
  101. package/esm/renderers/Form/TransferPicker.js +2 -2
  102. package/esm/renderers/Form/TreeSelect.js +2 -2
  103. package/esm/renderers/Form/UUID.js +2 -2
  104. package/esm/renderers/Form/UserSelect.js +2 -2
  105. package/esm/renderers/Grid.js +2 -2
  106. package/esm/renderers/Grid2D.js +2 -2
  107. package/esm/renderers/GridNav.js +2 -2
  108. package/esm/renderers/HBox.js +2 -2
  109. package/esm/renderers/IFrame.js +2 -2
  110. package/esm/renderers/Icon.js +2 -2
  111. package/esm/renderers/Image.js +2 -2
  112. package/esm/renderers/Images.js +2 -2
  113. package/esm/renderers/Json.js +2 -2
  114. package/esm/renderers/Link.js +2 -2
  115. package/esm/renderers/List.js +2 -2
  116. package/esm/renderers/Log.js +2 -2
  117. package/esm/renderers/Mapping.js +2 -2
  118. package/esm/renderers/Markdown.js +2 -2
  119. package/esm/renderers/MultilineText.js +2 -2
  120. package/esm/renderers/Nav.d.ts +7 -2
  121. package/esm/renderers/Nav.js +2 -2
  122. package/esm/renderers/Number.js +2 -2
  123. package/esm/renderers/OfficeViewer.js +2 -2
  124. package/esm/renderers/Operation.js +2 -2
  125. package/esm/renderers/Page.js +2 -2
  126. package/esm/renderers/Pagination.js +2 -2
  127. package/esm/renderers/PaginationWrapper.js +2 -2
  128. package/esm/renderers/Panel.js +2 -2
  129. package/esm/renderers/Password.js +2 -2
  130. package/esm/renderers/PdfViewer.js +2 -2
  131. package/esm/renderers/Plain.js +2 -2
  132. package/esm/renderers/PopOver.js +2 -2
  133. package/esm/renderers/Portlet.js +2 -2
  134. package/esm/renderers/Progress.js +2 -2
  135. package/esm/renderers/Property.js +2 -2
  136. package/esm/renderers/QRCode.js +2 -2
  137. package/esm/renderers/QuickEdit.js +2 -2
  138. package/esm/renderers/Remark.js +2 -2
  139. package/esm/renderers/SearchBox.js +2 -2
  140. package/esm/renderers/Service.js +2 -2
  141. package/esm/renderers/SparkLine.js +2 -2
  142. package/esm/renderers/Spinner.js +2 -2
  143. package/esm/renderers/Status.js +2 -2
  144. package/esm/renderers/Steps.js +2 -2
  145. package/esm/renderers/SwitchContainer.js +2 -2
  146. package/esm/renderers/Table/AutoFilterForm.js +2 -2
  147. package/esm/renderers/Table/Cell.js +2 -2
  148. package/esm/renderers/Table/ColGroup.js +2 -2
  149. package/esm/renderers/Table/ColumnToggler.js +2 -2
  150. package/esm/renderers/Table/HeadCellFilterDropdown.js +2 -2
  151. package/esm/renderers/Table/HeadCellSearchDropdown.js +2 -2
  152. package/esm/renderers/Table/ItemActionsWrapper.js +2 -2
  153. package/esm/renderers/Table/TableBody.js +2 -2
  154. package/esm/renderers/Table/TableCell.js +2 -2
  155. package/esm/renderers/Table/TableContent.js +2 -2
  156. package/esm/renderers/Table/TableRow.js +2 -2
  157. package/esm/renderers/Table/exportExcel.js +2 -2
  158. package/esm/renderers/Table/index.d.ts +30 -11
  159. package/esm/renderers/Table/index.js +7 -3
  160. package/esm/renderers/Table2/ColumnToggler.js +2 -2
  161. package/esm/renderers/Table2/HeadCellSearchDropdown.js +2 -2
  162. package/esm/renderers/Table2/TableCell.js +2 -2
  163. package/esm/renderers/Table2/index.js +2 -2
  164. package/esm/renderers/TableView.js +2 -2
  165. package/esm/renderers/Tabs.js +2 -2
  166. package/esm/renderers/Tag.js +2 -2
  167. package/esm/renderers/Tasks.js +2 -2
  168. package/esm/renderers/Timeline.js +2 -2
  169. package/esm/renderers/TooltipWrapper.js +2 -2
  170. package/esm/renderers/Tpl.js +2 -2
  171. package/esm/renderers/VBox.js +2 -2
  172. package/esm/renderers/Video.js +2 -2
  173. package/esm/renderers/WebComponent.js +2 -2
  174. package/esm/renderers/Wizard.js +2 -2
  175. package/esm/renderers/Words.js +2 -2
  176. package/esm/renderers/Wrapper.js +2 -2
  177. package/esm/schemaExtend.js +2 -2
  178. package/lib/compat.js +2 -2
  179. package/lib/index.js +2 -2
  180. package/lib/minimal.js +2 -2
  181. package/lib/preset.js +2 -2
  182. package/lib/renderers/AMIS.js +2 -2
  183. package/lib/renderers/Action.js +2 -2
  184. package/lib/renderers/Alert.js +2 -2
  185. package/lib/renderers/AnchorNav.js +2 -2
  186. package/lib/renderers/App.js +2 -2
  187. package/lib/renderers/Audio.js +2 -2
  188. package/lib/renderers/Avatar.js +2 -2
  189. package/lib/renderers/BarCode.js +2 -2
  190. package/lib/renderers/Breadcrumb.js +2 -2
  191. package/lib/renderers/ButtonGroup.js +2 -2
  192. package/lib/renderers/CRUD.d.ts +3 -3
  193. package/lib/renderers/CRUD.js +2 -2
  194. package/lib/renderers/CRUD2.js +2 -2
  195. package/lib/renderers/Calendar.js +2 -2
  196. package/lib/renderers/Card.d.ts +1 -1
  197. package/lib/renderers/Card.js +2 -2
  198. package/lib/renderers/Card2.js +2 -2
  199. package/lib/renderers/Cards.js +2 -2
  200. package/lib/renderers/Carousel.js +2 -2
  201. package/lib/renderers/Chart.js +2 -2
  202. package/lib/renderers/Code.js +2 -2
  203. package/lib/renderers/Collapse.js +2 -2
  204. package/lib/renderers/CollapseGroup.js +2 -2
  205. package/lib/renderers/Color.js +2 -2
  206. package/lib/renderers/Container.d.ts +1 -1
  207. package/lib/renderers/Container.js +2 -2
  208. package/lib/renderers/Copyable.js +2 -2
  209. package/lib/renderers/Custom.js +2 -2
  210. package/lib/renderers/Date.js +2 -2
  211. package/lib/renderers/DateRange.js +2 -2
  212. package/lib/renderers/Dialog.d.ts +121 -120
  213. package/lib/renderers/Dialog.js +2 -2
  214. package/lib/renderers/Divider.js +2 -2
  215. package/lib/renderers/Drawer.js +2 -2
  216. package/lib/renderers/DropDownButton.js +2 -2
  217. package/lib/renderers/Each.js +2 -2
  218. package/lib/renderers/Flex.js +2 -2
  219. package/lib/renderers/Form/ButtonGroupSelect.js +2 -2
  220. package/lib/renderers/Form/ButtonToolbar.js +2 -2
  221. package/lib/renderers/Form/ChainedSelect.js +2 -2
  222. package/lib/renderers/Form/ChartRadios.js +2 -2
  223. package/lib/renderers/Form/Checkbox.js +2 -2
  224. package/lib/renderers/Form/Checkboxes.js +2 -2
  225. package/lib/renderers/Form/Combo.d.ts +3 -3
  226. package/lib/renderers/Form/Combo.js +2 -2
  227. package/lib/renderers/Form/ConditionBuilder.js +2 -2
  228. package/lib/renderers/Form/Control.js +2 -2
  229. package/lib/renderers/Form/DiffEditor.d.ts +53 -52
  230. package/lib/renderers/Form/DiffEditor.js +2 -2
  231. package/lib/renderers/Form/Editor.d.ts +26 -25
  232. package/lib/renderers/Form/Editor.js +2 -2
  233. package/lib/renderers/Form/FieldSet.js +2 -2
  234. package/lib/renderers/Form/Formula.js +2 -2
  235. package/lib/renderers/Form/Group.js +2 -2
  236. package/lib/renderers/Form/Hidden.js +2 -2
  237. package/lib/renderers/Form/IconPicker.js +2 -2
  238. package/lib/renderers/Form/IconPickerIcons.js +2 -2
  239. package/lib/renderers/Form/IconSelect.js +2 -2
  240. package/lib/renderers/Form/IconSelectStore.js +2 -2
  241. package/lib/renderers/Form/InputArray.js +2 -2
  242. package/lib/renderers/Form/InputCity.d.ts +80 -80
  243. package/lib/renderers/Form/InputCity.js +2 -2
  244. package/lib/renderers/Form/InputColor.d.ts +80 -80
  245. package/lib/renderers/Form/InputColor.js +2 -2
  246. package/lib/renderers/Form/InputDate.js +2 -2
  247. package/lib/renderers/Form/InputDateRange.js +2 -2
  248. package/lib/renderers/Form/InputExcel.js +2 -2
  249. package/lib/renderers/Form/InputFile.js +2 -2
  250. package/lib/renderers/Form/InputFormula.js +2 -2
  251. package/lib/renderers/Form/InputGroup.js +2 -2
  252. package/lib/renderers/Form/InputImage.js +2 -2
  253. package/lib/renderers/Form/InputMonthRange.js +2 -2
  254. package/lib/renderers/Form/InputNumber.js +2 -2
  255. package/lib/renderers/Form/InputQuarterRange.js +2 -2
  256. package/lib/renderers/Form/InputRange.js +2 -2
  257. package/lib/renderers/Form/InputRating.js +2 -2
  258. package/lib/renderers/Form/InputRepeat.js +2 -2
  259. package/lib/renderers/Form/InputRichText.js +2 -2
  260. package/lib/renderers/Form/InputSignature.js +2 -2
  261. package/lib/renderers/Form/InputSubForm.js +2 -2
  262. package/lib/renderers/Form/InputTable.js +2 -2
  263. package/lib/renderers/Form/InputTag.js +2 -2
  264. package/lib/renderers/Form/InputText.d.ts +1 -1
  265. package/lib/renderers/Form/InputText.js +2 -2
  266. package/lib/renderers/Form/InputTree.js +2 -2
  267. package/lib/renderers/Form/InputVerificationCode.js +2 -2
  268. package/lib/renderers/Form/InputYearRange.js +2 -2
  269. package/lib/renderers/Form/JSONSchema.js +2 -2
  270. package/lib/renderers/Form/JSONSchemaEditor.js +2 -2
  271. package/lib/renderers/Form/ListSelect.js +2 -2
  272. package/lib/renderers/Form/LocationPicker.js +2 -2
  273. package/lib/renderers/Form/MatrixCheckboxes.js +2 -2
  274. package/lib/renderers/Form/NestedSelect.js +2 -2
  275. package/lib/renderers/Form/Picker.js +2 -2
  276. package/lib/renderers/Form/Radio.js +2 -2
  277. package/lib/renderers/Form/Radios.js +2 -2
  278. package/lib/renderers/Form/Select.js +2 -2
  279. package/lib/renderers/Form/Static.d.ts +1 -1
  280. package/lib/renderers/Form/Static.js +2 -2
  281. package/lib/renderers/Form/StaticHoc.js +2 -2
  282. package/lib/renderers/Form/Switch.js +2 -2
  283. package/lib/renderers/Form/TabsTransfer.d.ts +1 -1
  284. package/lib/renderers/Form/TabsTransfer.js +2 -2
  285. package/lib/renderers/Form/TabsTransferPicker.d.ts +1 -1
  286. package/lib/renderers/Form/TabsTransferPicker.js +2 -2
  287. package/lib/renderers/Form/Textarea.js +2 -2
  288. package/lib/renderers/Form/Transfer.js +2 -2
  289. package/lib/renderers/Form/TransferPicker.js +2 -2
  290. package/lib/renderers/Form/TreeSelect.js +2 -2
  291. package/lib/renderers/Form/UUID.js +2 -2
  292. package/lib/renderers/Form/UserSelect.js +2 -2
  293. package/lib/renderers/Grid.js +2 -2
  294. package/lib/renderers/Grid2D.js +2 -2
  295. package/lib/renderers/GridNav.js +2 -2
  296. package/lib/renderers/HBox.js +2 -2
  297. package/lib/renderers/IFrame.js +2 -2
  298. package/lib/renderers/Icon.js +2 -2
  299. package/lib/renderers/Image.js +2 -2
  300. package/lib/renderers/Images.js +2 -2
  301. package/lib/renderers/Json.js +2 -2
  302. package/lib/renderers/Link.js +2 -2
  303. package/lib/renderers/List.d.ts +1 -1
  304. package/lib/renderers/List.js +2 -2
  305. package/lib/renderers/Log.js +2 -2
  306. package/lib/renderers/Mapping.js +2 -2
  307. package/lib/renderers/Markdown.js +2 -2
  308. package/lib/renderers/MultilineText.js +2 -2
  309. package/lib/renderers/Nav.d.ts +7 -2
  310. package/lib/renderers/Nav.js +2 -2
  311. package/lib/renderers/Number.js +2 -2
  312. package/lib/renderers/OfficeViewer.js +2 -2
  313. package/lib/renderers/Operation.js +2 -2
  314. package/lib/renderers/Page.js +2 -2
  315. package/lib/renderers/Pagination.js +2 -2
  316. package/lib/renderers/PaginationWrapper.js +2 -2
  317. package/lib/renderers/Panel.js +2 -2
  318. package/lib/renderers/Password.js +2 -2
  319. package/lib/renderers/PdfViewer.js +2 -2
  320. package/lib/renderers/Plain.js +2 -2
  321. package/lib/renderers/PopOver.js +2 -2
  322. package/lib/renderers/Portlet.js +2 -2
  323. package/lib/renderers/Progress.js +2 -2
  324. package/lib/renderers/Property.js +2 -2
  325. package/lib/renderers/QRCode.js +2 -2
  326. package/lib/renderers/QuickEdit.js +2 -2
  327. package/lib/renderers/Remark.d.ts +1 -1
  328. package/lib/renderers/Remark.js +2 -2
  329. package/lib/renderers/SearchBox.js +2 -2
  330. package/lib/renderers/Service.js +2 -2
  331. package/lib/renderers/SparkLine.js +2 -2
  332. package/lib/renderers/Spinner.js +2 -2
  333. package/lib/renderers/Status.js +2 -2
  334. package/lib/renderers/Steps.js +2 -2
  335. package/lib/renderers/SwitchContainer.js +2 -2
  336. package/lib/renderers/Table/AutoFilterForm.js +2 -2
  337. package/lib/renderers/Table/Cell.d.ts +1 -1
  338. package/lib/renderers/Table/Cell.js +2 -2
  339. package/lib/renderers/Table/ColGroup.js +2 -2
  340. package/lib/renderers/Table/ColumnToggler.js +2 -2
  341. package/lib/renderers/Table/HeadCellFilterDropdown.js +2 -2
  342. package/lib/renderers/Table/HeadCellSearchDropdown.js +2 -2
  343. package/lib/renderers/Table/ItemActionsWrapper.js +2 -2
  344. package/lib/renderers/Table/TableBody.js +2 -2
  345. package/lib/renderers/Table/TableCell.d.ts +1 -1
  346. package/lib/renderers/Table/TableCell.js +2 -2
  347. package/lib/renderers/Table/TableContent.js +2 -2
  348. package/lib/renderers/Table/TableRow.js +2 -2
  349. package/lib/renderers/Table/exportExcel.js +2 -2
  350. package/lib/renderers/Table/index.d.ts +31 -12
  351. package/lib/renderers/Table/index.js +4 -2
  352. package/lib/renderers/Table2/ColumnToggler.js +2 -2
  353. package/lib/renderers/Table2/HeadCellSearchDropdown.js +2 -2
  354. package/lib/renderers/Table2/TableCell.js +2 -2
  355. package/lib/renderers/Table2/index.js +2 -2
  356. package/lib/renderers/TableView.js +2 -2
  357. package/lib/renderers/Tabs.js +2 -2
  358. package/lib/renderers/Tag.js +2 -2
  359. package/lib/renderers/Tasks.js +2 -2
  360. package/lib/renderers/Timeline.js +2 -2
  361. package/lib/renderers/TooltipWrapper.js +2 -2
  362. package/lib/renderers/Tpl.js +2 -2
  363. package/lib/renderers/VBox.js +2 -2
  364. package/lib/renderers/Video.js +2 -2
  365. package/lib/renderers/WebComponent.js +2 -2
  366. package/lib/renderers/Wizard.js +2 -2
  367. package/lib/renderers/Words.js +2 -2
  368. package/lib/renderers/Wrapper.d.ts +1 -1
  369. package/lib/renderers/Wrapper.js +2 -2
  370. package/lib/schemaExtend.js +2 -2
  371. package/package.json +5 -4
  372. package/revision.json +4 -4
  373. package/sdk/barcode.js +50 -50
  374. package/sdk/charts.js +17 -17
  375. package/sdk/codemirror.js +8 -8
  376. package/sdk/color-picker.js +65 -65
  377. package/sdk/cropperjs.js +2 -2
  378. package/sdk/exceljs.js +1 -1
  379. package/sdk/fomula-doc.js +1 -1
  380. package/sdk/json-view.js +1 -1
  381. package/sdk/markdown.js +68 -68
  382. package/sdk/office-viewer.js +408 -408
  383. package/sdk/papaparse.js +1 -1
  384. package/sdk/pdf-viewer.js +28 -28
  385. package/sdk/rest.js +557 -557
  386. package/sdk/rich-text.js +62 -62
  387. package/sdk/sdk.js +1096 -1094
  388. package/sdk/thirds/hls.js/hls.js +1 -1
  389. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  390. package/sdk/thirds/pdfjs-dist/build/pdf.js +1 -1
  391. package/sdk/tinymce.js +58 -58
  392. package/sdk/xlsx.js +3 -3
package/sdk/papaparse.js CHANGED
@@ -1,5 +1,5 @@
1
1
  ;/*!node_modules/papaparse/papaparse.min.js*/
2
- amis.define('78fe117', function(require, exports, module, define) {
2
+ amis.define('5d03380', function(require, exports, module, define) {
3
3
 
4
4
  /* @license
5
5
  Papa Parse
package/sdk/pdf-viewer.js CHANGED
@@ -1,56 +1,56 @@
1
1
  ;/*!node_modules/react-pdf/node_modules/clsx/dist/clsx.js*/
2
- amis.define("95015a3",(function(r,e,n,t){function f(r){var e,n,t="";if("string"==typeof r||"number"==typeof r)t+=r;else if("object"==typeof r)if(Array.isArray(r)){var o=r.length;for(e=0;e<o;e++)r[e]&&(n=f(r[e]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function o(){for(var r,e,n=0,t="",o=arguments.length;n<o;n++)(r=arguments[n])&&(e=f(r))&&(t&&(t+=" "),t+=e);return t}n.exports=o,n.exports.clsx=o}));
2
+ amis.define("1fe80fd",(function(e,r,f,n){function t(e){var r,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(f=t(e[r]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function o(){for(var e,r,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(r=t(e))&&(n&&(n+=" "),n+=r);return n}f.exports=o,f.exports.clsx=o}));
3
3
  ;/*!node_modules/react-pdf/dist/cjs/DocumentContext.js*/
4
- amis.define("4c794dc",(function(e,t,c,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=e("8f47184");t.default=(0,u.createContext)(null)}));
4
+ amis.define("20a2e48",(function(e,t,a,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=e("578fa8c");t.default=(0,u.createContext)(null)}));
5
5
  ;/*!node_modules/react-pdf/dist/cjs/Message.js*/
6
- amis.define("d4c1209",(function(e,a,c,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("a2e6c77");a.default=function(e){var a=e.children,c=e.type;return(0,r.jsx)("div",{className:"react-pdf__message react-pdf__message--".concat(c),children:a})}}));
6
+ amis.define("0a576c5",(function(e,a,c,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("f56562a");a.default=function(e){var a=e.children,c=e.type;return(0,r.jsx)("div",{className:"react-pdf__message react-pdf__message--".concat(c),children:a})}}));
7
7
  ;/*!node_modules/react-pdf/dist/cjs/LinkService.js*/
8
- amis.define("a99b6a2",(function(e,t,n,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(e("cdfdd3c")),a=function(){function e(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}return e.prototype.setDocument=function(e){this.pdfDocument=e},e.prototype.setViewer=function(e){this.pdfViewer=e},e.prototype.setExternalLinkRel=function(e){this.externalLinkRel=e},e.prototype.setExternalLinkTarget=function(e){this.externalLinkTarget=e},e.prototype.setHistory=function(){},Object.defineProperty(e.prototype,"pagesCount",{get:function(){return this.pdfDocument?this.pdfDocument.numPages:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return(0,r.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0},set:function(e){(0,r.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return 0},set:function(e){},enumerable:!1,configurable:!0}),e.prototype.goToDestination=function(e){var t=this;return new Promise((function(n){(0,r.default)(t.pdfDocument,"PDF document not loaded."),(0,r.default)(e,"Destination is not specified."),"string"==typeof e?t.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)})).then((function(e){(0,r.default)(Array.isArray(e),'"'.concat(e,'" is not a valid destination array.'));var n=e[0];new Promise((function(e){(0,r.default)(t.pdfDocument,"PDF document not loaded."),n instanceof Object?t.pdfDocument.getPageIndex(n).then((function(t){e(t)})).catch((function(){(0,r.default)(!1,'"'.concat(n,'" is not a valid page reference.'))})):"number"==typeof n?e(n):(0,r.default)(!1,'"'.concat(n,'" is not a valid destination reference.'))})).then((function(n){var i=n+1;(0,r.default)(t.pdfViewer,"PDF viewer is not initialized."),(0,r.default)(i>=1&&i<=t.pagesCount,'"'.concat(i,'" is not a valid page number.')),t.pdfViewer.scrollPageIntoView({dest:e,pageIndex:n,pageNumber:i})}))}))},e.prototype.navigateTo=function(e){this.goToDestination(e)},e.prototype.goToPage=function(e){var t=e-1;(0,r.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,r.default)(e>=1&&e<=this.pagesCount,'"'.concat(e,'" is not a valid page number.')),this.pdfViewer.scrollPageIntoView({pageIndex:t,pageNumber:e})},e.prototype.addLinkAttributes=function(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""},e.prototype.getDestinationHash=function(){return"#"},e.prototype.getAnchorUrl=function(){return"#"},e.prototype.setHash=function(){},e.prototype.executeNamedAction=function(){},e.prototype.cachePageRef=function(){},e.prototype.isPageVisible=function(){return!0},e.prototype.isPageCached=function(){return!0},e.prototype.executeSetOCGState=function(){},e}();t.default=a}));
8
+ amis.define("c1713c3",(function(e,t,n,i){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(e("4404b56")),a=function(){function e(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}return e.prototype.setDocument=function(e){this.pdfDocument=e},e.prototype.setViewer=function(e){this.pdfViewer=e},e.prototype.setExternalLinkRel=function(e){this.externalLinkRel=e},e.prototype.setExternalLinkTarget=function(e){this.externalLinkTarget=e},e.prototype.setHistory=function(){},Object.defineProperty(e.prototype,"pagesCount",{get:function(){return this.pdfDocument?this.pdfDocument.numPages:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return(0,r.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0},set:function(e){(0,r.default)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return 0},set:function(e){},enumerable:!1,configurable:!0}),e.prototype.goToDestination=function(e){var t=this;return new Promise((function(n){(0,r.default)(t.pdfDocument,"PDF document not loaded."),(0,r.default)(e,"Destination is not specified."),"string"==typeof e?t.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)})).then((function(e){(0,r.default)(Array.isArray(e),'"'.concat(e,'" is not a valid destination array.'));var n=e[0];new Promise((function(e){(0,r.default)(t.pdfDocument,"PDF document not loaded."),n instanceof Object?t.pdfDocument.getPageIndex(n).then((function(t){e(t)})).catch((function(){(0,r.default)(!1,'"'.concat(n,'" is not a valid page reference.'))})):"number"==typeof n?e(n):(0,r.default)(!1,'"'.concat(n,'" is not a valid destination reference.'))})).then((function(n){var i=n+1;(0,r.default)(t.pdfViewer,"PDF viewer is not initialized."),(0,r.default)(i>=1&&i<=t.pagesCount,'"'.concat(i,'" is not a valid page number.')),t.pdfViewer.scrollPageIntoView({dest:e,pageIndex:n,pageNumber:i})}))}))},e.prototype.navigateTo=function(e){this.goToDestination(e)},e.prototype.goToPage=function(e){var t=e-1;(0,r.default)(this.pdfViewer,"PDF viewer is not initialized."),(0,r.default)(e>=1&&e<=this.pagesCount,'"'.concat(e,'" is not a valid page number.')),this.pdfViewer.scrollPageIntoView({pageIndex:t,pageNumber:e})},e.prototype.addLinkAttributes=function(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""},e.prototype.getDestinationHash=function(){return"#"},e.prototype.getAnchorUrl=function(){return"#"},e.prototype.setHash=function(){},e.prototype.executeNamedAction=function(){},e.prototype.cachePageRef=function(){},e.prototype.isPageVisible=function(){return!0},e.prototype.isPageCached=function(){return!0},e.prototype.executeSetOCGState=function(){},e}();t.default=a}));
9
9
  ;/*!node_modules/react-pdf/dist/cjs/PasswordResponses.js*/
10
- amis.define("56a4433",(function(e,t,i,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}}));
10
+ amis.define("61f12b2",(function(e,t,f,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={NEED_PASSWORD:1,INCORRECT_PASSWORD:2}}));
11
11
  ;/*!node_modules/react-pdf/dist/cjs/shared/utils.js*/
12
- amis.define("d1dd89b",(function(e,r,i,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.loadFromFile=r.isCancelException=r.makePageCallback=r.cancelRunningTask=r.displayWorkerWarning=r.displayCORSWarning=r.getDevicePixelRatio=r.dataURItoByteString=r.isDataURI=r.isBlob=r.isArrayBuffer=r.isString=r.isProvided=r.isDefined=r.isLocalFileSystem=r.isBrowser=void 0;var o=t(e("cdfdd3c")),a=t(e("d1b55ae"));function l(e){return void 0!==e}function s(e){return"string"==typeof e}function u(e){return s(e)&&/^data:/.test(e)}r.isBrowser="undefined"!=typeof document,r.isLocalFileSystem=r.isBrowser&&"file:"===window.location.protocol,r.isDefined=l,r.isProvided=function(e){return l(e)&&null!==e},r.isString=s,r.isArrayBuffer=function(e){return e instanceof ArrayBuffer},r.isBlob=function(e){return(0,o.default)(r.isBrowser,"isBlob can only be used in a browser environment"),e instanceof Blob},r.isDataURI=u,r.dataURItoByteString=function(e){(0,o.default)(u(e),"Invalid data URI.");var r=e.split(","),i=r[0],n=void 0===i?"":i,t=r[1],a=void 0===t?"":t;return-1!==n.split(";").indexOf("base64")?atob(a):unescape(a)},r.getDevicePixelRatio=function(){return r.isBrowser&&window.devicePixelRatio||1};var c="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";r.displayCORSWarning=function(){(0,a.default)(!r.isLocalFileSystem,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(c))},r.displayWorkerWarning=function(){(0,a.default)(!r.isLocalFileSystem,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(c))},r.cancelRunningTask=function(e){e&&e.cancel&&e.cancel()},r.makePageCallback=function(e,r){return Object.defineProperty(e,"width",{get:function(){return this.view[2]*r},configurable:!0}),Object.defineProperty(e,"height",{get:function(){return this.view[3]*r},configurable:!0}),Object.defineProperty(e,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),e},r.isCancelException=function(e){return"RenderingCancelledException"===e.name},r.loadFromFile=function(e){return new Promise((function(r,i){var n=new FileReader;n.onload=function(){if(!n.result)return i(new Error("Error while reading a file."));r(n.result)},n.onerror=function(e){if(!e.target)return i(new Error("Error while reading a file."));var r=e.target.error;if(!r)return i(new Error("Error while reading a file."));switch(r.code){case r.NOT_FOUND_ERR:return i(new Error("Error while reading a file: File not found."));case r.SECURITY_ERR:return i(new Error("Error while reading a file: Security error."));case r.ABORT_ERR:return i(new Error("Error while reading a file: Aborted."));default:return i(new Error("Error while reading a file."))}},n.readAsArrayBuffer(e)}))}}));
12
+ amis.define("704f874",(function(e,r,i,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.loadFromFile=r.isCancelException=r.makePageCallback=r.cancelRunningTask=r.displayWorkerWarning=r.displayCORSWarning=r.getDevicePixelRatio=r.dataURItoByteString=r.isDataURI=r.isBlob=r.isArrayBuffer=r.isString=r.isProvided=r.isDefined=r.isLocalFileSystem=r.isBrowser=void 0;var o=t(e("4404b56")),a=t(e("543452c"));function l(e){return void 0!==e}function s(e){return"string"==typeof e}function u(e){return s(e)&&/^data:/.test(e)}r.isBrowser="undefined"!=typeof document,r.isLocalFileSystem=r.isBrowser&&"file:"===window.location.protocol,r.isDefined=l,r.isProvided=function(e){return l(e)&&null!==e},r.isString=s,r.isArrayBuffer=function(e){return e instanceof ArrayBuffer},r.isBlob=function(e){return(0,o.default)(r.isBrowser,"isBlob can only be used in a browser environment"),e instanceof Blob},r.isDataURI=u,r.dataURItoByteString=function(e){(0,o.default)(u(e),"Invalid data URI.");var r=e.split(","),i=r[0],n=void 0===i?"":i,t=r[1],a=void 0===t?"":t;return-1!==n.split(";").indexOf("base64")?atob(a):unescape(a)},r.getDevicePixelRatio=function(){return r.isBrowser&&window.devicePixelRatio||1};var c="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";r.displayCORSWarning=function(){(0,a.default)(!r.isLocalFileSystem,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(c))},r.displayWorkerWarning=function(){(0,a.default)(!r.isLocalFileSystem,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(c))},r.cancelRunningTask=function(e){e&&e.cancel&&e.cancel()},r.makePageCallback=function(e,r){return Object.defineProperty(e,"width",{get:function(){return this.view[2]*r},configurable:!0}),Object.defineProperty(e,"height",{get:function(){return this.view[3]*r},configurable:!0}),Object.defineProperty(e,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),e},r.isCancelException=function(e){return"RenderingCancelledException"===e.name},r.loadFromFile=function(e){return new Promise((function(r,i){var n=new FileReader;n.onload=function(){if(!n.result)return i(new Error("Error while reading a file."));r(n.result)},n.onerror=function(e){if(!e.target)return i(new Error("Error while reading a file."));var r=e.target.error;if(!r)return i(new Error("Error while reading a file."));switch(r.code){case r.NOT_FOUND_ERR:return i(new Error("Error while reading a file: File not found."));case r.SECURITY_ERR:return i(new Error("Error while reading a file: Security error."));case r.ABORT_ERR:return i(new Error("Error while reading a file: Aborted."));default:return i(new Error("Error while reading a file."))}},n.readAsArrayBuffer(e)}))}}));
13
13
  ;/*!node_modules/react-pdf/dist/cjs/shared/hooks/useResolver.js*/
14
- amis.define("a5e520f",(function(e,r,u,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("8f47184");function a(e,r){switch(r.type){case"RESOLVE":return{value:r.value,error:void 0};case"REJECT":return{value:!1,error:r.error};case"RESET":return{value:void 0,error:void 0};default:return e}}r.default=function(){return(0,o.useReducer)(a,{value:void 0,error:void 0})}}));
14
+ amis.define("4b7c013",(function(e,r,u,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("578fa8c");function a(e,r){switch(r.type){case"RESOLVE":return{value:r.value,error:void 0};case"REJECT":return{value:!1,error:r.error};case"RESET":return{value:void 0,error:void 0};default:return e}}r.default=function(){return(0,o.useReducer)(a,{value:void 0,error:void 0})}}));
15
15
  ;/*!node_modules/react-pdf/dist/cjs/Document.js*/
16
- amis.define("9d6877a",(function(e,t,r,n){"use strict";var a=e("a08bef8"),o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}s((n=n.apply(e,t||[])).next())}))},c=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=e("a2e6c77"),f=e("8f47184"),p=l(e("7e8789a")),g=l(e("7edc38b")),v=l(e("95015a3")),h=l(e("cdfdd3c")),m=l(e("d1b55ae")),y=e("1a026ce"),b=u(e("node_modules/pdfjs-dist/build/pdf.mjs")),R=l(e("4c794dc")),w=l(e("d4c1209")),E=l(e("a99b6a2")),P=l(e("56a4433")),O=e("d1dd89b"),S=l(e("a5e520f")),_=b.PDFDataRangeTransport,j=function(e,t){switch(t){case P.default.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case P.default.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}};function D(e){return"object"==typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}var I=(0,f.forwardRef)((function(e,t){var r,n=this,o=e.children,i=e.className,u=e.error,l=void 0===u?"Failed to load PDF file.":u,P=e.externalLinkRel,I=e.externalLinkTarget,k=e.file,x=e.inputRef,L=e.imageResourcesPath,C=e.loading,T=void 0===C?"Loading PDF…":C,M=e.noData,F=void 0===M?"No PDF file specified.":M,N=e.onItemClick,A=e.onLoadError,B=e.onLoadProgress,U=e.onLoadSuccess,V=e.onPassword,q=void 0===V?j:V,W=e.onSourceError,z=e.onSourceSuccess,J=e.options,H=e.renderMode,G=e.rotate,K=c(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]),Q=(0,S.default)(),X=Q[0],Y=Q[1],Z=X.value,$=X.error,ee=(0,S.default)(),te=ee[0],re=ee[1],ne=te.value,ae=te.error,oe=(0,f.useRef)(new E.default),ie=(0,f.useRef)([]),ue=(0,f.useRef)(void 0),se=(0,f.useRef)(void 0);k&&k!==ue.current&&D(k)&&((0,m.default)(!(0,y.dequal)(k,ue.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),ue.current=k),J&&J!==se.current&&((0,m.default)(!(0,y.dequal)(J,se.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),se.current=J);var ce=(0,f.useRef)({scrollPageIntoView:function(e){var t=e.dest,r=e.pageNumber,n=e.pageIndex,a=void 0===n?r-1:n;if(N)N({dest:t,pageIndex:a,pageNumber:r});else{var o=ie.current[a];o?o.scrollIntoView():(0,m.default)(!1,"An internal link leading to page ".concat(r," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}});(0,f.useImperativeHandle)(t,(function(){return{linkService:oe,pages:ie,viewer:ce}}),[]),(0,f.useEffect)((function(){Y({type:"RESET"})}),[k,Y]);var le=(0,f.useCallback)((function(){return s(n,void 0,void 0,(function(){var e,t,r;return a.__generator(this,(function(n){switch(n.label){case 0:return k?"string"==typeof k?(0,O.isDataURI)(k)?[2,{data:r=(0,O.dataURItoByteString)(k)}]:((0,O.displayCORSWarning)(),[2,{url:k}]):k instanceof _?[2,{range:k}]:(0,O.isArrayBuffer)(k)?[2,{data:k}]:O.isBrowser&&(0,O.isBlob)(k)?[4,(0,O.loadFromFile)(k)]:[3,2]:[2,null];case 1:return[2,{data:n.sent()}];case 2:if((0,h.default)("object"==typeof k,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,h.default)(D(k),"Invalid parameter object: need either .data, .range or .url"),"url"in k&&"string"==typeof k.url){if((0,O.isDataURI)(k.url))return e=k.url,t=c(k,["url"]),r=(0,O.dataURItoByteString)(e),[2,Object.assign({data:r},t)];(0,O.displayCORSWarning)()}return[2,k]}}))}))}),[k]);function de(e,t){ie.current[e]=t}function fe(e){delete ie.current[e]}(0,f.useEffect)((function(){var e=(0,g.default)(le());return e.promise.then((function(e){Y({type:"RESOLVE",value:e})})).catch((function(e){Y({type:"REJECT",error:e})})),function(){(0,O.cancelRunningTask)(e)}}),[le,Y]),(0,f.useEffect)((function(){void 0!==Z&&(!1!==Z?z&&z():$&&((0,m.default)(!1,$.toString()),W&&W($)))}),[Z]),(0,f.useEffect)((function(){re({type:"RESET"})}),[re,Z]),(0,f.useEffect)((function(){if(Z){var e=Object.assign(Object.assign({},Z),J),t=b.getDocument(e);B&&(t.onProgress=B),q&&(t.onPassword=q);var r=t;return r.promise.then((function(e){re({type:"RESOLVE",value:e})})).catch((function(e){r.destroyed||re({type:"REJECT",error:e})})),function(){r.destroy()}}}),[J,re,Z]),(0,f.useEffect)((function(){void 0!==ne&&(!1!==ne?ne&&(U&&U(ne),ie.current=new Array(ne.numPages),oe.current.setDocument(ne)):ae&&((0,m.default)(!1,ae.toString()),A&&A(ae)))}),[ne]),(0,f.useEffect)((function(){oe.current.setViewer(ce.current),oe.current.setExternalLinkRel(P),oe.current.setExternalLinkTarget(I)}),[P,I]);var pe=(0,f.useMemo)((function(){return{imageResourcesPath:L,linkService:oe.current,onItemClick:N,pdf:ne,registerPage:de,renderMode:H,rotate:G,unregisterPage:fe}}),[L,N,ne,H,G]),ge=(0,f.useMemo)((function(){return(0,p.default)(K,(function(){return ne}))}),[K,ne]);return(0,d.jsx)("div",Object.assign({className:(0,v.default)("react-pdf__Document",i),ref:x,style:(r={},r["--scale-factor"]="1",r)},ge,{children:k?null==ne?(0,d.jsx)(w.default,{type:"loading",children:"function"==typeof T?T():T}):!1===ne?(0,d.jsx)(w.default,{type:"error",children:"function"==typeof l?l():l}):(0,d.jsx)(R.default.Provider,{value:pe,children:o}):(0,d.jsx)(w.default,{type:"no-data",children:"function"==typeof F?F():F})}))}));t.default=I}));
16
+ amis.define("c82c828",(function(e,t,r,n){"use strict";var o=e("6f40966"),a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return i(t,e),t},c=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function u(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var f=e("f56562a"),d=e("578fa8c"),p=l(e("c6dbc84")),g=l(e("24d9feb")),v=l(e("1fe80fd")),h=l(e("4404b56")),m=l(e("543452c")),y=e("7079099"),b=u(e("node_modules/pdfjs-dist/build/pdf.mjs")),R=l(e("20a2e48")),w=l(e("0a576c5")),E=l(e("c1713c3")),P=l(e("61f12b2")),O=e("704f874"),S=l(e("4b7c013")),_=b.PDFDataRangeTransport,j=function(e,t){switch(t){case P.default.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case P.default.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}};function D(e){return"object"==typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}var I=(0,d.forwardRef)((function(e,t){var r,n=this,a=e.children,i=e.className,u=e.error,l=void 0===u?"Failed to load PDF file.":u,P=e.externalLinkRel,I=e.externalLinkTarget,k=e.file,x=e.inputRef,L=e.imageResourcesPath,C=e.loading,T=void 0===C?"Loading PDF…":C,M=e.noData,F=void 0===M?"No PDF file specified.":M,N=e.onItemClick,A=e.onLoadError,B=e.onLoadProgress,U=e.onLoadSuccess,V=e.onPassword,q=void 0===V?j:V,W=e.onSourceError,z=e.onSourceSuccess,J=e.options,H=e.renderMode,G=e.rotate,K=s(e,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]),Q=(0,S.default)(),X=Q[0],Y=Q[1],Z=X.value,$=X.error,ee=(0,S.default)(),te=ee[0],re=ee[1],ne=te.value,oe=te.error,ae=(0,d.useRef)(new E.default),ie=(0,d.useRef)([]),ue=(0,d.useRef)(void 0),ce=(0,d.useRef)(void 0);k&&k!==ue.current&&D(k)&&((0,m.default)(!(0,y.dequal)(k,ue.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),ue.current=k),J&&J!==ce.current&&((0,m.default)(!(0,y.dequal)(J,ce.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),ce.current=J);var se=(0,d.useRef)({scrollPageIntoView:function(e){var t=e.dest,r=e.pageNumber,n=e.pageIndex,o=void 0===n?r-1:n;if(N)N({dest:t,pageIndex:o,pageNumber:r});else{var a=ie.current[o];a?a.scrollIntoView():(0,m.default)(!1,"An internal link leading to page ".concat(r," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}});(0,d.useImperativeHandle)(t,(function(){return{linkService:ae,pages:ie,viewer:se}}),[]),(0,d.useEffect)((function(){Y({type:"RESET"})}),[k,Y]);var le=(0,d.useCallback)((function(){return c(n,void 0,void 0,(function(){var e,t,r;return o.__generator(this,(function(n){switch(n.label){case 0:return k?"string"==typeof k?(0,O.isDataURI)(k)?[2,{data:r=(0,O.dataURItoByteString)(k)}]:((0,O.displayCORSWarning)(),[2,{url:k}]):k instanceof _?[2,{range:k}]:(0,O.isArrayBuffer)(k)?[2,{data:k}]:O.isBrowser&&(0,O.isBlob)(k)?[4,(0,O.loadFromFile)(k)]:[3,2]:[2,null];case 1:return[2,{data:n.sent()}];case 2:if((0,h.default)("object"==typeof k,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,h.default)(D(k),"Invalid parameter object: need either .data, .range or .url"),"url"in k&&"string"==typeof k.url){if((0,O.isDataURI)(k.url))return e=k.url,t=s(k,["url"]),r=(0,O.dataURItoByteString)(e),[2,Object.assign({data:r},t)];(0,O.displayCORSWarning)()}return[2,k]}}))}))}),[k]);function fe(e,t){ie.current[e]=t}function de(e){delete ie.current[e]}(0,d.useEffect)((function(){var e=(0,g.default)(le());return e.promise.then((function(e){Y({type:"RESOLVE",value:e})})).catch((function(e){Y({type:"REJECT",error:e})})),function(){(0,O.cancelRunningTask)(e)}}),[le,Y]),(0,d.useEffect)((function(){void 0!==Z&&(!1!==Z?z&&z():$&&((0,m.default)(!1,$.toString()),W&&W($)))}),[Z]),(0,d.useEffect)((function(){re({type:"RESET"})}),[re,Z]),(0,d.useEffect)((function(){if(Z){var e=Object.assign(Object.assign({},Z),J),t=b.getDocument(e);B&&(t.onProgress=B),q&&(t.onPassword=q);var r=t;return r.promise.then((function(e){re({type:"RESOLVE",value:e})})).catch((function(e){r.destroyed||re({type:"REJECT",error:e})})),function(){r.destroy()}}}),[J,re,Z]),(0,d.useEffect)((function(){void 0!==ne&&(!1!==ne?ne&&(U&&U(ne),ie.current=new Array(ne.numPages),ae.current.setDocument(ne)):oe&&((0,m.default)(!1,oe.toString()),A&&A(oe)))}),[ne]),(0,d.useEffect)((function(){ae.current.setViewer(se.current),ae.current.setExternalLinkRel(P),ae.current.setExternalLinkTarget(I)}),[P,I]);var pe=(0,d.useMemo)((function(){return{imageResourcesPath:L,linkService:ae.current,onItemClick:N,pdf:ne,registerPage:fe,renderMode:H,rotate:G,unregisterPage:de}}),[L,N,ne,H,G]),ge=(0,d.useMemo)((function(){return(0,p.default)(K,(function(){return ne}))}),[K,ne]);return(0,f.jsx)("div",Object.assign({className:(0,v.default)("react-pdf__Document",i),ref:x,style:(r={},r["--scale-factor"]="1",r)},ge,{children:k?null==ne?(0,f.jsx)(w.default,{type:"loading",children:"function"==typeof T?T():T}):!1===ne?(0,f.jsx)(w.default,{type:"error",children:"function"==typeof l?l():l}):(0,f.jsx)(R.default.Provider,{value:pe,children:a}):(0,f.jsx)(w.default,{type:"no-data",children:"function"==typeof F?F():F})}))}));t.default=I}));
17
17
  ;/*!node_modules/react-pdf/dist/cjs/OutlineContext.js*/
18
- amis.define("29898db",(function(e,t,n,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("8f47184");t.default=(0,a.createContext)(null)}));
18
+ amis.define("01fd6fb",(function(e,t,f,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("578fa8c");t.default=(0,n.createContext)(null)}));
19
19
  ;/*!node_modules/react-pdf/dist/cjs/Ref.js*/
20
- amis.define("05649c7",(function(n,t,e,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function n(n){var t=n.num,e=n.gen;this.num=t,this.gen=e}return n.prototype.toString=function(){var n="".concat(this.num,"R");return 0!==this.gen&&(n+=this.gen),n},n}();t.default=u}));
20
+ amis.define("2c06257",(function(n,t,e,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function n(n){var t=n.num,e=n.gen;this.num=t,this.gen=e}return n.prototype.toString=function(){var n="".concat(this.num,"R");return 0!==this.gen&&(n+=this.gen),n},n}();t.default=u}));
21
21
  ;/*!node_modules/react-pdf/dist/cjs/shared/hooks/useCachedValue.js*/
22
- amis.define("332f64d",(function(e,n,r,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=e("8f47184"),f=e("d1dd89b");n.default=function(e){var n=(0,u.useRef)(void 0),r=n.current;return(0,f.isDefined)(r)?function(){return r}:function(){var r=e();return n.current=r,r}}}));
22
+ amis.define("614db8c",(function(e,n,r,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=e("578fa8c"),f=e("704f874");n.default=function(e){var n=(0,u.useRef)(void 0),r=n.current;return(0,f.isDefined)(r)?function(){return r}:function(){var r=e();return n.current=r,r}}}));
23
23
  ;/*!node_modules/react-pdf/dist/cjs/shared/hooks/useDocumentContext.js*/
24
- amis.define("c598463",(function(e,t,u,n){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=e("8f47184"),r=f(e("4c794dc"));t.default=function(){return(0,i.useContext)(r.default)}}));
24
+ amis.define("9b41a19",(function(e,t,u,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var f=e("578fa8c"),i=n(e("20a2e48"));t.default=function(){return(0,f.useContext)(i.default)}}));
25
25
  ;/*!node_modules/react-pdf/dist/cjs/shared/hooks/useOutlineContext.js*/
26
- amis.define("bafcb9e",(function(e,t,u,f){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=e("8f47184"),r=n(e("29898db"));t.default=function(){return(0,i.useContext)(r.default)}}));
26
+ amis.define("1afded4",(function(e,t,u,f){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=e("578fa8c"),d=n(e("01fd6fb"));t.default=function(){return(0,a.useContext)(d.default)}}));
27
27
  ;/*!node_modules/react-pdf/dist/cjs/OutlineItem.js*/
28
- amis.define("88ae8a5",(function(e,t,n,i){"use strict";var r=e("a08bef8"),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function u(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}c((i=i.apply(e,t||[])).next())}))},a=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=e("a2e6c77"),s=u(e("cdfdd3c")),f=u(e("05649c7")),l=u(e("332f64d")),d=u(e("c598463")),p=u(e("bafcb9e"));t.default=function e(t){var n=this,i=(0,d.default)(),u=(0,p.default)();(0,s.default)(u,"Unable to find Outline context.");var h=Object.assign(Object.assign(Object.assign({},i),u),t),v=h.item,m=h.linkService,b=h.onItemClick,g=h.pdf,O=a(h,["item","linkService","onItemClick","pdf"]);(0,s.default)(g,"Attempted to load an outline, but no document was specified. Wrap <Outline /> in a <Document /> or pass explicit `pdf` prop.");var y=(0,l.default)((function(){return"string"==typeof v.dest?g.getDestination(v.dest):v.dest})),_=(0,l.default)((function(){return o(n,void 0,void 0,(function(){var e,t;return r.__generator(this,(function(n){switch(n.label){case 0:return[4,y()];case 1:if(!(e=n.sent()))throw new Error("Destination not found.");return t=e[0],[2,g.getPageIndex(new f.default(t))]}}))}))})),j=(0,l.default)((function(){return o(n,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return[4,_()];case 1:return[2,e.sent()+1]}}))}))}));return(0,c.jsxs)("li",{children:[(0,c.jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),(0,s.default)(b||m,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),b?Promise.all([y(),_(),j()]).then((function(e){var t=e[0],n=e[1],i=e[2];b({dest:t,pageIndex:n,pageNumber:i})})):m&&m.goToDestination(v.dest)},children:v.title}),function(){if(!v.items||!v.items.length)return null;var t=v.items;return(0,c.jsx)("ul",{children:t.map((function(t,n){return(0,c.jsx)(e,Object.assign({item:t,pdf:g},O),"string"==typeof t.dest?t.dest:n)}))})}()]})}}));
28
+ amis.define("29f9d89",(function(t,e,n,i){"use strict";var r=t("6f40966"),o=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function u(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((i=i.apply(t,e||[])).next())}))},a=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=t("f56562a"),s=u(t("4404b56")),f=u(t("2c06257")),l=u(t("614db8c")),d=u(t("9b41a19")),p=u(t("1afded4"));e.default=function t(e){var n=this,i=(0,d.default)(),u=(0,p.default)();(0,s.default)(u,"Unable to find Outline context.");var h=Object.assign(Object.assign(Object.assign({},i),u),e),v=h.item,m=h.linkService,b=h.onItemClick,g=h.pdf,O=a(h,["item","linkService","onItemClick","pdf"]);(0,s.default)(g,"Attempted to load an outline, but no document was specified. Wrap <Outline /> in a <Document /> or pass explicit `pdf` prop.");var y=(0,l.default)((function(){return"string"==typeof v.dest?g.getDestination(v.dest):v.dest})),_=(0,l.default)((function(){return o(n,void 0,void 0,(function(){var t,e;return r.__generator(this,(function(n){switch(n.label){case 0:return[4,y()];case 1:if(!(t=n.sent()))throw new Error("Destination not found.");return e=t[0],[2,g.getPageIndex(new f.default(e))]}}))}))})),j=(0,l.default)((function(){return o(n,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,_()];case 1:return[2,t.sent()+1]}}))}))}));return(0,c.jsxs)("li",{children:[(0,c.jsx)("a",{href:"#",onClick:function(t){t.preventDefault(),(0,s.default)(b||m,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),b?Promise.all([y(),_(),j()]).then((function(t){var e=t[0],n=t[1],i=t[2];b({dest:e,pageIndex:n,pageNumber:i})})):m&&m.goToDestination(v.dest)},children:v.title}),function(){if(!v.items||!v.items.length)return null;var e=v.items;return(0,c.jsx)("ul",{children:e.map((function(e,n){return(0,c.jsx)(t,Object.assign({item:e,pdf:g},O),"string"==typeof e.dest?e.dest:n)}))})}()]})}}));
29
29
  ;/*!node_modules/react-pdf/dist/cjs/Outline.js*/
30
- amis.define("d2d6498",(function(e,t,n,r){"use strict";var u=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=e("a2e6c77"),i=e("8f47184"),c=o(e("7edc38b")),f=o(e("7e8789a")),d=o(e("95015a3")),l=o(e("cdfdd3c")),s=o(e("d1b55ae")),p=o(e("29898db")),m=o(e("88ae8a5")),v=e("d1dd89b"),O=o(e("c598463")),b=o(e("a5e520f"));t.default=function(e){var t=(0,O.default)(),n=Object.assign(Object.assign({},t),e),r=n.className,o=n.inputRef,y=n.onItemClick,j=n.onLoadError,E=n.onLoadSuccess,h=n.pdf,g=u(n,["className","inputRef","onItemClick","onLoadError","onLoadSuccess","pdf"]);(0,l.default)(h,"Attempted to load an outline, but no document was specified. Wrap <Outline /> in a <Document /> or pass explicit `pdf` prop.");var _=(0,b.default)(),x=_[0],S=_[1],R=x.value,L=x.error;(0,i.useEffect)((function(){S({type:"RESET"})}),[S,h]),(0,i.useEffect)((function(){if(h){var e=(0,c.default)(h.getOutline()),t=e;return e.promise.then((function(e){S({type:"RESOLVE",value:e})})).catch((function(e){S({type:"REJECT",error:e})})),function(){return(0,v.cancelRunningTask)(t)}}}),[S,h]),(0,i.useEffect)((function(){void 0!==R&&(!1!==R?void 0!==R&&!1!==R&&E&&E(R):L&&((0,s.default)(!1,L.toString()),j&&j(L)))}),[R]);var P=(0,i.useMemo)((function(){return{onItemClick:y}}),[y]),k=(0,i.useMemo)((function(){return(0,f.default)(g,(function(){return R}))}),[g,R]);return R?(0,a.jsx)("div",Object.assign({className:(0,d.default)("react-pdf__Outline",r),ref:o},k,{children:(0,a.jsx)(p.default.Provider,{value:P,children:R?(0,a.jsx)("ul",{children:R.map((function(e,t){return(0,a.jsx)(m.default,{item:e,pdf:h},"string"==typeof e.dest?e.dest:t)}))}):null})})):null}}));
30
+ amis.define("ce283dd",(function(e,t,n,r){"use strict";var u=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var f=e("f56562a"),i=e("578fa8c"),a=o(e("24d9feb")),c=o(e("c6dbc84")),l=o(e("1fe80fd")),s=o(e("4404b56")),d=o(e("543452c")),p=o(e("01fd6fb")),m=o(e("29f9d89")),b=e("704f874"),v=o(e("9b41a19")),O=o(e("4b7c013"));t.default=function(e){var t=(0,v.default)(),n=Object.assign(Object.assign({},t),e),r=n.className,o=n.inputRef,y=n.onItemClick,j=n.onLoadError,E=n.onLoadSuccess,h=n.pdf,g=u(n,["className","inputRef","onItemClick","onLoadError","onLoadSuccess","pdf"]);(0,s.default)(h,"Attempted to load an outline, but no document was specified. Wrap <Outline /> in a <Document /> or pass explicit `pdf` prop.");var _=(0,O.default)(),x=_[0],S=_[1],R=x.value,L=x.error;(0,i.useEffect)((function(){S({type:"RESET"})}),[S,h]),(0,i.useEffect)((function(){if(h){var e=(0,a.default)(h.getOutline()),t=e;return e.promise.then((function(e){S({type:"RESOLVE",value:e})})).catch((function(e){S({type:"REJECT",error:e})})),function(){return(0,b.cancelRunningTask)(t)}}}),[S,h]),(0,i.useEffect)((function(){void 0!==R&&(!1!==R?void 0!==R&&!1!==R&&E&&E(R):L&&((0,d.default)(!1,L.toString()),j&&j(L)))}),[R]);var P=(0,i.useMemo)((function(){return{onItemClick:y}}),[y]),k=(0,i.useMemo)((function(){return(0,c.default)(g,(function(){return R}))}),[g,R]);return R?(0,f.jsx)("div",Object.assign({className:(0,l.default)("react-pdf__Outline",r),ref:o},k,{children:(0,f.jsx)(p.default.Provider,{value:P,children:R?(0,f.jsx)("ul",{children:R.map((function(e,t){return(0,f.jsx)(m.default,{item:e,pdf:h},"string"==typeof e.dest?e.dest:t)}))}):null})})):null}}));
31
31
  ;/*!node_modules/react-pdf/dist/cjs/PageContext.js*/
32
- amis.define("f88afc8",(function(e,t,f,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("8f47184");t.default=(0,n.createContext)(null)}));
32
+ amis.define("8b678ba",(function(e,t,a,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=e("578fa8c");t.default=(0,u.createContext)(null)}));
33
33
  ;/*!node_modules/react-pdf/dist/cjs/shared/constants.js*/
34
- amis.define("2b75eba",(function(l,n,u,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HEADING_PATTERN=n.PDF_ROLE_TO_HTML_ROLE=void 0,n.PDF_ROLE_TO_HTML_ROLE={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},n.HEADING_PATTERN=/^H(\d+)$/}));
34
+ amis.define("231b5fa",(function(l,n,u,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HEADING_PATTERN=n.PDF_ROLE_TO_HTML_ROLE=void 0,n.PDF_ROLE_TO_HTML_ROLE={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},n.HEADING_PATTERN=/^H(\d+)$/}));
35
35
  ;/*!node_modules/react-pdf/dist/cjs/shared/structTreeUtils.js*/
36
- amis.define("55c9dbf",(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=t.getBaseAttributes=t.getRoleAttributes=t.isStructTreeNodeWithOnlyContentChild=t.isStructTreeNode=t.isPdfRole=void 0;var r=e("2b75eba");function l(e){return e in r.PDF_ROLE_TO_HTML_ROLE}function a(e){return"children"in e}function s(e){return!!a(e)&&(1===e.children.length&&0 in e.children&&"id"in e.children[0])}function u(e){var t={};if(a(e)){var i=e.role,n=i.match(r.HEADING_PATTERN);if(n)t.role="heading",t["aria-level"]=Number(n[1]);else if(l(i)){var s=r.PDF_ROLE_TO_HTML_ROLE[i];s&&(t.role=s)}}return t}function o(e){var t={};if(a(e)){if(void 0!==e.alt&&(t["aria-label"]=e.alt),void 0!==e.lang&&(t.lang=e.lang),s(e)){var i=e.children[0];if(i){var n=o(i);return Object.assign(Object.assign({},t),n)}}}else"id"in e&&(t["aria-owns"]=e.id);return t}t.isPdfRole=l,t.isStructTreeNode=a,t.isStructTreeNodeWithOnlyContentChild=s,t.getRoleAttributes=u,t.getBaseAttributes=o,t.getAttributes=function(e){return e?Object.assign(Object.assign({},u(e)),o(e)):null}}));
36
+ amis.define("b2039a2",(function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=t.getBaseAttributes=t.getRoleAttributes=t.isStructTreeNodeWithOnlyContentChild=t.isStructTreeNode=t.isPdfRole=void 0;var r=e("231b5fa");function l(e){return e in r.PDF_ROLE_TO_HTML_ROLE}function a(e){return"children"in e}function s(e){return!!a(e)&&(1===e.children.length&&0 in e.children&&"id"in e.children[0])}function u(e){var t={};if(a(e)){var i=e.role,n=i.match(r.HEADING_PATTERN);if(n)t.role="heading",t["aria-level"]=Number(n[1]);else if(l(i)){var s=r.PDF_ROLE_TO_HTML_ROLE[i];s&&(t.role=s)}}return t}function o(e){var t={};if(a(e)){if(void 0!==e.alt&&(t["aria-label"]=e.alt),void 0!==e.lang&&(t.lang=e.lang),s(e)){var i=e.children[0];if(i){var n=o(i);return Object.assign(Object.assign({},t),n)}}}else"id"in e&&(t["aria-owns"]=e.id);return t}t.isPdfRole=l,t.isStructTreeNode=a,t.isStructTreeNodeWithOnlyContentChild=s,t.getRoleAttributes=u,t.getBaseAttributes=o,t.getAttributes=function(e){return e?Object.assign(Object.assign({},u(e)),o(e)):null}}));
37
37
  ;/*!node_modules/react-pdf/dist/cjs/StructTreeItem.js*/
38
- amis.define("82bbd79",(function(e,n,t,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=e("a2e6c77"),s=e("8f47184"),i=e("55c9dbf");n.default=function e(n){var t=n.className,r=n.node,c=(0,s.useMemo)((function(){return(0,i.getAttributes)(r)}),[r]),o=(0,s.useMemo)((function(){return(0,i.isStructTreeNode)(r)?(0,i.isStructTreeNodeWithOnlyContentChild)(r)?null:r.children.map((function(n,t){return(0,u.jsx)(e,{node:n},t)})):null}),[r]);return(0,u.jsx)("span",Object.assign({className:t},c,{children:o}))}}));
38
+ amis.define("f76c381",(function(e,n,t,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=e("f56562a"),s=e("578fa8c"),i=e("b2039a2");n.default=function e(n){var t=n.className,r=n.node,c=(0,s.useMemo)((function(){return(0,i.getAttributes)(r)}),[r]),a=(0,s.useMemo)((function(){return(0,i.isStructTreeNode)(r)?(0,i.isStructTreeNodeWithOnlyContentChild)(r)?null:r.children.map((function(n,t){return(0,u.jsx)(e,{node:n},t)})):null}),[r]);return(0,u.jsx)("span",Object.assign({className:t},c,{children:a}))}}));
39
39
  ;/*!node_modules/react-pdf/dist/cjs/shared/hooks/usePageContext.js*/
40
- amis.define("0ed10f3",(function(e,t,u,f){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=e("8f47184"),r=n(e("f88afc8"));t.default=function(){return(0,i.useContext)(r.default)}}));
40
+ amis.define("32154fc",(function(e,t,u,f){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=e("578fa8c"),i=n(e("8b678ba"));t.default=function(){return(0,a.useContext)(i.default)}}));
41
41
  ;/*!node_modules/react-pdf/dist/cjs/StructTree.js*/
42
- amis.define("c6d4288",(function(e,t,r,u){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=e("a2e6c77"),f=e("8f47184"),a=n(e("7edc38b")),d=n(e("cdfdd3c")),o=n(e("d1b55ae")),i=n(e("82bbd79")),s=n(e("0ed10f3")),l=n(e("a5e520f")),E=e("d1dd89b");t.default=function(){var e=(0,s.default)();(0,d.default)(e,"Unable to find Page context.");var t=e.onGetStructTreeError,r=e.onGetStructTreeSuccess,u=(0,l.default)(),n=u[0],_=u[1],v=n.value,T=n.error,p=e.customTextRenderer,b=e.page;return(0,f.useEffect)((function(){_({type:"RESET"})}),[_,b]),(0,f.useEffect)((function(){if(!p&&b){var e=(0,a.default)(b.getStructTree()),t=e;return e.promise.then((function(e){_({type:"RESOLVE",value:e})})).catch((function(e){_({type:"REJECT",error:e})})),function(){return(0,E.cancelRunningTask)(t)}}}),[p,b,_]),(0,f.useEffect)((function(){void 0!==v&&(!1!==v?v&&r&&r(v):T&&((0,o.default)(!1,T.toString()),t&&t(T)))}),[v]),v?(0,c.jsx)(i.default,{className:"react-pdf__Page__structTree structTree",node:v}):null}}));
42
+ amis.define("145969c",(function(e,t,r,u){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=e("f56562a"),f=e("578fa8c"),a=n(e("24d9feb")),o=n(e("4404b56")),i=n(e("543452c")),s=n(e("f76c381")),l=n(e("32154fc")),d=n(e("4b7c013")),E=e("704f874");t.default=function(){var e=(0,l.default)();(0,o.default)(e,"Unable to find Page context.");var t=e.onGetStructTreeError,r=e.onGetStructTreeSuccess,u=(0,d.default)(),n=u[0],_=u[1],v=n.value,T=n.error,p=e.customTextRenderer,S=e.page;return(0,f.useEffect)((function(){_({type:"RESET"})}),[_,S]),(0,f.useEffect)((function(){if(!p&&S){var e=(0,a.default)(S.getStructTree()),t=e;return e.promise.then((function(e){_({type:"RESOLVE",value:e})})).catch((function(e){_({type:"REJECT",error:e})})),function(){return(0,E.cancelRunningTask)(t)}}}),[p,S,_]),(0,f.useEffect)((function(){void 0!==v&&(!1!==v?v&&r&&r(v):T&&((0,i.default)(!1,T.toString()),t&&t(T)))}),[v]),v?(0,c.jsx)(s.default,{className:"react-pdf__Page__structTree structTree",node:v}):null}}));
43
43
  ;/*!node_modules/react-pdf/dist/cjs/Page/Canvas.js*/
44
- amis.define("1184f4c",(function(e,t,n,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=e("a2e6c77"),d=e("8f47184"),l=c(e("a0a5a48")),s=c(e("cdfdd3c")),f=c(e("d1b55ae")),h=o(e("node_modules/pdfjs-dist/build/pdf.mjs")),v=c(e("c6d4288")),p=c(e("0ed10f3")),g=e("d1dd89b"),b=h.AnnotationMode;t.default=function(e){var t=(0,p.default)();(0,s.default)(t,"Unable to find Page context.");var n=Object.assign(Object.assign({},t),e),a=n._className,r=n.canvasBackground,i=n.devicePixelRatio,o=void 0===i?(0,g.getDevicePixelRatio)():i,c=n.onRenderError,h=n.onRenderSuccess,_=n.page,m=n.renderForms,y=n.renderTextLayer,j=n.rotate,w=n.scale,M=e.canvasRef;(0,s.default)(_,"Attempted to render page canvas, but no page was specified.");var O=(0,d.useRef)(null);function x(e){(0,g.isCancelException)(e)||((0,f.default)(!1,e.toString()),c&&c(e))}var P=(0,d.useMemo)((function(){return _.getViewport({scale:w*o,rotation:j})}),[o,_,j,w]),E=(0,d.useMemo)((function(){return _.getViewport({scale:w,rotation:j})}),[_,j,w]);(0,d.useEffect)((function(){if(_){_.cleanup();var e=O.current;if(e){e.width=P.width,e.height=P.height,e.style.width="".concat(Math.floor(E.width),"px"),e.style.height="".concat(Math.floor(E.height),"px"),e.style.visibility="hidden";var t={annotationMode:m?b.ENABLE_FORMS:b.ENABLE,canvasContext:e.getContext("2d",{alpha:!1}),viewport:P};r&&(t.background=r);var n=_.render(t),a=n;return n.promise.then((function(){e.style.visibility="",_&&h&&h((0,g.makePageCallback)(_,w))})).catch(x),function(){return(0,g.cancelRunningTask)(a)}}}}),[r,O,o,_,m,P,E]);var R=(0,d.useCallback)((function(){var e=O.current;e&&(e.width=0,e.height=0)}),[O]);return(0,d.useEffect)((function(){return R}),[R]),(0,u.jsx)("canvas",{className:"".concat(a,"__canvas"),dir:"ltr",ref:(0,l.default)(M,O),style:{display:"block",userSelect:"none"},children:y?(0,u.jsx)(v.default,{}):null})}}));
44
+ amis.define("afc9497",(function(e,t,n,a){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=e("f56562a"),l=e("578fa8c"),s=c(e("ef7fb1d")),f=c(e("4404b56")),d=c(e("543452c")),h=o(e("node_modules/pdfjs-dist/build/pdf.mjs")),v=c(e("145969c")),p=c(e("32154fc")),g=e("704f874"),b=h.AnnotationMode;t.default=function(e){var t=(0,p.default)();(0,f.default)(t,"Unable to find Page context.");var n=Object.assign(Object.assign({},t),e),a=n._className,r=n.canvasBackground,i=n.devicePixelRatio,o=void 0===i?(0,g.getDevicePixelRatio)():i,c=n.onRenderError,h=n.onRenderSuccess,_=n.page,m=n.renderForms,y=n.renderTextLayer,j=n.rotate,w=n.scale,M=e.canvasRef;(0,f.default)(_,"Attempted to render page canvas, but no page was specified.");var O=(0,l.useRef)(null);function x(e){(0,g.isCancelException)(e)||((0,d.default)(!1,e.toString()),c&&c(e))}var P=(0,l.useMemo)((function(){return _.getViewport({scale:w*o,rotation:j})}),[o,_,j,w]),E=(0,l.useMemo)((function(){return _.getViewport({scale:w,rotation:j})}),[_,j,w]);(0,l.useEffect)((function(){if(_){_.cleanup();var e=O.current;if(e){e.width=P.width,e.height=P.height,e.style.width="".concat(Math.floor(E.width),"px"),e.style.height="".concat(Math.floor(E.height),"px"),e.style.visibility="hidden";var t={annotationMode:m?b.ENABLE_FORMS:b.ENABLE,canvasContext:e.getContext("2d",{alpha:!1}),viewport:P};r&&(t.background=r);var n=_.render(t),a=n;return n.promise.then((function(){e.style.visibility="",_&&h&&h((0,g.makePageCallback)(_,w))})).catch(x),function(){return(0,g.cancelRunningTask)(a)}}}}),[r,O,o,_,m,P,E]);var R=(0,l.useCallback)((function(){var e=O.current;e&&(e.width=0,e.height=0)}),[O]);return(0,l.useEffect)((function(){return R}),[R]),(0,u.jsx)("canvas",{className:"".concat(a,"__canvas"),dir:"ltr",ref:(0,s.default)(M,O),style:{display:"block",userSelect:"none"},children:y?(0,u.jsx)(v.default,{}):null})}}));
45
45
  ;/*!node_modules/react-pdf/dist/cjs/Page/TextLayer.js*/
46
- amis.define("9766a95",(function(e,t,n,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=e("a2e6c77"),f=e("8f47184"),d=c(e("7edc38b")),s=c(e("95015a3")),l=c(e("cdfdd3c")),p=c(e("d1b55ae")),v=u(e("node_modules/pdfjs-dist/build/pdf.mjs")),m=c(e("0ed10f3")),b=c(e("a5e520f")),g=e("d1dd89b");t.default=function(){var e=(0,m.default)();(0,l.default)(e,"Unable to find Page context.");var t=e.customTextRenderer,n=e.onGetTextError,r=e.onGetTextSuccess,a=e.onRenderTextLayerError,o=e.onRenderTextLayerSuccess,u=e.page,c=e.pageIndex,y=e.pageNumber,_=e.rotate,x=e.scale;(0,l.default)(u,"Attempted to load page text content, but no page was specified.");var h=(0,b.default)(),E=h[0],T=h[1],j=E.value,O=E.error,L=(0,f.useRef)(null),w=(0,f.useRef)(void 0);(0,p.default)(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,f.useEffect)((function(){T({type:"RESET"})}),[u,T]),(0,f.useEffect)((function(){if(u){var e=(0,d.default)(u.getTextContent()),t=e;return e.promise.then((function(e){T({type:"RESOLVE",value:e})})).catch((function(e){T({type:"REJECT",error:e})})),function(){return(0,g.cancelRunningTask)(t)}}}),[u,T]),(0,f.useEffect)((function(){void 0!==j&&(!1!==j?j&&r&&r(j):O&&((0,p.default)(!1,O.toString()),n&&n(O)))}),[j]);var M=(0,f.useCallback)((function(){o&&o()}),[o]),R=(0,f.useCallback)((function(e){(0,p.default)(!1,e.toString()),a&&a(e)}),[a]),C=(0,f.useMemo)((function(){return u.getViewport({scale:x,rotation:_})}),[u,_,x]);return(0,f.useLayoutEffect)((function(){if(u&&j){var e=L.current;if(e){e.innerHTML="";var n=u.streamTextContent({includeMarkedContent:!0}),r={container:e,textContentSource:n,viewport:C},a=new v.TextLayer(r),o=a;return a.render().then((function(){var n=document.createElement("div");n.className="endOfContent",e.append(n),w.current=n;var r=e.querySelectorAll('[role="presentation"]');if(t){var a=0;j.items.forEach((function(e,n){if(function(e){return"str"in e}(e)){var o=r[a];if(o){var u=t(Object.assign({pageIndex:c,pageNumber:y,itemIndex:n},e));o.innerHTML=u,a+=e.str&&e.hasEOL?2:1}}}))}M()})).catch(R),function(){return(0,g.cancelRunningTask)(o)}}}}),[t,R,M,u,c,y,j,C]),(0,i.jsx)("div",{className:(0,s.default)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){var e=w.current;e&&e.classList.remove("active")},onMouseDown:function(){var e=w.current;e&&e.classList.add("active")},ref:L})}}));
46
+ amis.define("df37c29",(function(e,t,n,r){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=e("f56562a"),f=e("578fa8c"),s=c(e("24d9feb")),d=c(e("1fe80fd")),l=c(e("4404b56")),p=c(e("543452c")),v=u(e("node_modules/pdfjs-dist/build/pdf.mjs")),m=c(e("32154fc")),b=c(e("4b7c013")),g=e("704f874");t.default=function(){var e=(0,m.default)();(0,l.default)(e,"Unable to find Page context.");var t=e.customTextRenderer,n=e.onGetTextError,r=e.onGetTextSuccess,a=e.onRenderTextLayerError,o=e.onRenderTextLayerSuccess,u=e.page,c=e.pageIndex,y=e.pageNumber,_=e.rotate,x=e.scale;(0,l.default)(u,"Attempted to load page text content, but no page was specified.");var h=(0,b.default)(),E=h[0],T=h[1],j=E.value,O=E.error,L=(0,f.useRef)(null),w=(0,f.useRef)(void 0);(0,p.default)(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,f.useEffect)((function(){T({type:"RESET"})}),[u,T]),(0,f.useEffect)((function(){if(u){var e=(0,s.default)(u.getTextContent()),t=e;return e.promise.then((function(e){T({type:"RESOLVE",value:e})})).catch((function(e){T({type:"REJECT",error:e})})),function(){return(0,g.cancelRunningTask)(t)}}}),[u,T]),(0,f.useEffect)((function(){void 0!==j&&(!1!==j?j&&r&&r(j):O&&((0,p.default)(!1,O.toString()),n&&n(O)))}),[j]);var M=(0,f.useCallback)((function(){o&&o()}),[o]),R=(0,f.useCallback)((function(e){(0,p.default)(!1,e.toString()),a&&a(e)}),[a]),C=(0,f.useMemo)((function(){return u.getViewport({scale:x,rotation:_})}),[u,_,x]);return(0,f.useLayoutEffect)((function(){if(u&&j){var e=L.current;if(e){e.innerHTML="";var n=u.streamTextContent({includeMarkedContent:!0}),r={container:e,textContentSource:n,viewport:C},a=new v.TextLayer(r),o=a;return a.render().then((function(){var n=document.createElement("div");n.className="endOfContent",e.append(n),w.current=n;var r=e.querySelectorAll('[role="presentation"]');if(t){var a=0;j.items.forEach((function(e,n){if(function(e){return"str"in e}(e)){var o=r[a];if(o){var u=t(Object.assign({pageIndex:c,pageNumber:y,itemIndex:n},e));o.innerHTML=u,a+=e.str&&e.hasEOL?2:1}}}))}M()})).catch(R),function(){return(0,g.cancelRunningTask)(o)}}}}),[t,R,M,u,c,y,j,C]),(0,i.jsx)("div",{className:(0,d.default)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){var e=w.current;e&&e.classList.remove("active")},onMouseDown:function(){var e=w.current;e&&e.classList.add("active")},ref:L})}}));
47
47
  ;/*!node_modules/react-pdf/dist/cjs/Page/AnnotationLayer.js*/
48
- amis.define("ad1c2d4",(function(e,t,n,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,o)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=e("a2e6c77"),d=e("8f47184"),f=u(e("7edc38b")),s=u(e("95015a3")),l=u(e("cdfdd3c")),p=u(e("d1b55ae")),g=i(e("node_modules/pdfjs-dist/build/pdf.mjs")),v=u(e("c598463")),b=u(e("0ed10f3")),m=u(e("a5e520f")),y=e("d1dd89b");t.default=function(){var e=(0,v.default)(),t=(0,b.default)();(0,l.default)(t,"Unable to find Page context.");var n=Object.assign(Object.assign({},e),t),a=n.imageResourcesPath,o=n.linkService,r=n.onGetAnnotationsError,i=n.onGetAnnotationsSuccess,u=n.onRenderAnnotationLayerError,_=n.onRenderAnnotationLayerSuccess,h=n.page,j=n.pdf,w=n.renderForms,E=n.rotate,O=n.scale,S=void 0===O?1:O;(0,l.default)(j,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,l.default)(h,"Attempted to load page annotations, but no page was specified."),(0,l.default)(o,"Attempted to load page annotations, but no linkService was specified.");var P=(0,m.default)(),A=P[0],M=P[1],R=A.value,L=A.error,k=(0,d.useRef)(null);(0,p.default)(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,d.useEffect)((function(){M({type:"RESET"})}),[M,h]),(0,d.useEffect)((function(){if(h){var e=(0,f.default)(h.getAnnotations()),t=e;return e.promise.then((function(e){M({type:"RESOLVE",value:e})})).catch((function(e){M({type:"REJECT",error:e})})),function(){(0,y.cancelRunningTask)(t)}}}),[M,h,w]),(0,d.useEffect)((function(){void 0!==R&&(!1!==R?R&&i&&i(R):L&&((0,p.default)(!1,L.toString()),r&&r(L)))}),[R]);var D=(0,d.useMemo)((function(){return h.getViewport({scale:S,rotation:E})}),[h,E,S]);return(0,d.useEffect)((function(){if(j&&h&&o&&R){var e=k.current;if(e){var t=D.clone({dontFlip:!0}),n={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:e,l10n:null,page:h,viewport:t},r={annotations:R,annotationStorage:j.annotationStorage,div:e,imageResourcesPath:a,linkService:o,page:h,renderForms:w,viewport:t};e.innerHTML="";try{new g.AnnotationLayer(n).render(r),_&&_()}catch(e){!function(e){(0,p.default)(!1,"".concat(e)),u&&u(e)}(e)}return function(){}}}}),[R,a,o,h,w,D]),(0,c.jsx)("div",{className:(0,s.default)("react-pdf__Page__annotations","annotationLayer"),ref:k})}}));
48
+ amis.define("3e5e94a",(function(e,t,n,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,o)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=e("f56562a"),f=e("578fa8c"),s=u(e("24d9feb")),d=u(e("1fe80fd")),l=u(e("4404b56")),p=u(e("543452c")),g=i(e("node_modules/pdfjs-dist/build/pdf.mjs")),v=u(e("9b41a19")),b=u(e("32154fc")),m=u(e("4b7c013")),y=e("704f874");t.default=function(){var e=(0,v.default)(),t=(0,b.default)();(0,l.default)(t,"Unable to find Page context.");var n=Object.assign(Object.assign({},e),t),a=n.imageResourcesPath,o=n.linkService,r=n.onGetAnnotationsError,i=n.onGetAnnotationsSuccess,u=n.onRenderAnnotationLayerError,_=n.onRenderAnnotationLayerSuccess,h=n.page,j=n.pdf,w=n.renderForms,E=n.rotate,O=n.scale,S=void 0===O?1:O;(0,l.default)(j,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,l.default)(h,"Attempted to load page annotations, but no page was specified."),(0,l.default)(o,"Attempted to load page annotations, but no linkService was specified.");var P=(0,m.default)(),A=P[0],M=P[1],R=A.value,L=A.error,k=(0,f.useRef)(null);(0,p.default)(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,f.useEffect)((function(){M({type:"RESET"})}),[M,h]),(0,f.useEffect)((function(){if(h){var e=(0,s.default)(h.getAnnotations()),t=e;return e.promise.then((function(e){M({type:"RESOLVE",value:e})})).catch((function(e){M({type:"REJECT",error:e})})),function(){(0,y.cancelRunningTask)(t)}}}),[M,h,w]),(0,f.useEffect)((function(){void 0!==R&&(!1!==R?R&&i&&i(R):L&&((0,p.default)(!1,L.toString()),r&&r(L)))}),[R]);var D=(0,f.useMemo)((function(){return h.getViewport({scale:S,rotation:E})}),[h,E,S]);return(0,f.useEffect)((function(){if(j&&h&&o&&R){var e=k.current;if(e){var t=D.clone({dontFlip:!0}),n={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:e,l10n:null,page:h,viewport:t},r={annotations:R,annotationStorage:j.annotationStorage,div:e,imageResourcesPath:a,linkService:o,page:h,renderForms:w,viewport:t};e.innerHTML="";try{new g.AnnotationLayer(n).render(r),_&&_()}catch(e){!function(e){(0,p.default)(!1,"".concat(e)),u&&u(e)}(e)}return function(){}}}}),[R,a,o,h,w,D]),(0,c.jsx)("div",{className:(0,d.default)("react-pdf__Page__annotations","annotationLayer"),ref:k})}}));
49
49
  ;/*!node_modules/react-pdf/dist/cjs/Page.js*/
50
- amis.define("9849809",(function(e,n,r,t){"use strict";var o=this&&this.__rest||function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(r[t[o]]=e[t[o]])}return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var c=e("a2e6c77"),s=e("8f47184"),i=a(e("7edc38b")),d=a(e("7e8789a")),u=a(e("95015a3")),l=a(e("a0a5a48")),f=a(e("cdfdd3c")),g=a(e("d1b55ae")),p=a(e("f88afc8")),v=a(e("d4c1209")),m=a(e("1184f4c")),R=a(e("9766a95")),x=a(e("ad1c2d4")),y=e("d1dd89b"),E=a(e("c598463")),S=a(e("a5e520f"));n.default=function(e){var n,r=(0,E.default)(),t=Object.assign(Object.assign({},r),e),a=t._className,h=void 0===a?"react-pdf__Page":a,T=t._enableRegisterUnregisterPage,P=void 0===T||T,b=t.canvasBackground,L=t.canvasRef,_=t.children,G=t.className,j=t.customRenderer,A=t.customTextRenderer,O=t.devicePixelRatio,w=t.error,N=void 0===w?"Failed to load the page.":w,k=t.height,M=t.inputRef,C=t.loading,D=void 0===C?"Loading page…":C,F=t.noData,I=void 0===F?"No page specified.":F,B=t.onGetAnnotationsError,U=t.onGetAnnotationsSuccess,V=t.onGetStructTreeError,W=t.onGetStructTreeSuccess,H=t.onGetTextError,J=t.onGetTextSuccess,q=t.onLoadError,z=t.onLoadSuccess,K=t.onRenderAnnotationLayerError,Q=t.onRenderAnnotationLayerSuccess,X=t.onRenderError,Y=t.onRenderSuccess,Z=t.onRenderTextLayerError,$=t.onRenderTextLayerSuccess,ee=t.pageIndex,ne=t.pageNumber,re=t.pdf,te=t.registerPage,oe=t.renderAnnotationLayer,ae=void 0===oe||oe,ce=t.renderForms,se=void 0!==ce&&ce,ie=t.renderMode,de=void 0===ie?"canvas":ie,ue=t.renderTextLayer,le=void 0===ue||ue,fe=t.rotate,ge=t.scale,pe=void 0===ge?1:ge,ve=t.unregisterPage,me=t.width,Re=o(t,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),xe=(0,S.default)(),ye=xe[0],Ee=xe[1],Se=ye.value,he=ye.error,Te=(0,s.useRef)(null);(0,f.default)(re,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");var Pe=(0,y.isProvided)(ne)?ne-1:null!=ee?ee:null,be=null!=ne?ne:(0,y.isProvided)(ee)?ee+1:null,Le=null!=fe?fe:Se?Se.rotate:null,_e=(0,s.useMemo)((function(){if(!Se)return null;var e=1,n=null!=pe?pe:1;if(me||k){var r=Se.getViewport({scale:1,rotation:Le});me?e=me/r.width:k&&(e=k/r.height)}return n*e}),[k,Se,Le,pe,me]);(0,s.useEffect)((function(){return function(){(0,y.isProvided)(Pe)&&P&&ve&&ve(Pe)}}),[P,re,Pe,ve]),(0,s.useEffect)((function(){Ee({type:"RESET"})}),[Ee,re,Pe]),(0,s.useEffect)((function(){if(re&&be){var e=(0,i.default)(re.getPage(be)),n=e;return e.promise.then((function(e){Ee({type:"RESOLVE",value:e})})).catch((function(e){Ee({type:"REJECT",error:e})})),function(){return(0,y.cancelRunningTask)(n)}}}),[Ee,re,Pe,be,te]),(0,s.useEffect)((function(){void 0!==Se&&(!1!==Se?function(){if(z){if(!Se||!_e)return;z((0,y.makePageCallback)(Se,_e))}if(P&&te){if(!(0,y.isProvided)(Pe)||!Te.current)return;te(Pe,Te.current)}}():he&&((0,g.default)(!1,he.toString()),q&&q(he)))}),[Se,_e]);var Ge=(0,s.useMemo)((function(){return Se&&(0,y.isProvided)(Pe)&&be&&(0,y.isProvided)(Le)&&(0,y.isProvided)(_e)?{_className:h,canvasBackground:b,customTextRenderer:A,devicePixelRatio:O,onGetAnnotationsError:B,onGetAnnotationsSuccess:U,onGetStructTreeError:V,onGetStructTreeSuccess:W,onGetTextError:H,onGetTextSuccess:J,onRenderAnnotationLayerError:K,onRenderAnnotationLayerSuccess:Q,onRenderError:X,onRenderSuccess:Y,onRenderTextLayerError:Z,onRenderTextLayerSuccess:$,page:Se,pageIndex:Pe,pageNumber:be,renderForms:se,renderTextLayer:le,rotate:Le,scale:_e}:null}),[h,b,A,O,B,U,V,W,H,J,K,Q,X,Y,Z,$,Se,Pe,be,se,le,Le,_e]),je=(0,s.useMemo)((function(){return(0,d.default)(Re,(function(){return Se?_e?(0,y.makePageCallback)(Se,_e):void 0:Se}))}),[Re,Se,_e]),Ae="".concat(Pe,"@").concat(_e,"/").concat(Le);function Oe(){switch(de){case"custom":return(0,f.default)(j,'renderMode was set to "custom", but no customRenderer was passed.'),(0,c.jsx)(j,{},"".concat(Ae,"_custom"));case"none":return null;default:return(0,c.jsx)(m.default,{canvasRef:L},"".concat(Ae,"_canvas"))}}return(0,c.jsx)("div",Object.assign({className:(0,u.default)(h,G),"data-page-number":be,ref:(0,l.default)(M,Te),style:(n={},n["--scale-factor"]="".concat(_e),n.backgroundColor=b||"white",n.position="relative",n.minWidth="min-content",n.minHeight="min-content",n)},je,{children:be?null===re||null==Se?(0,c.jsx)(v.default,{type:"loading",children:"function"==typeof D?D():D}):!1===re||!1===Se?(0,c.jsx)(v.default,{type:"error",children:"function"==typeof N?N():N}):(0,c.jsxs)(p.default.Provider,{value:Ge,children:[Oe(),le?(0,c.jsx)(R.default,{},"".concat(Ae,"_text")):null,ae?(0,c.jsx)(x.default,{},"".concat(Ae,"_annotations")):null,_]}):(0,c.jsx)(v.default,{type:"no-data",children:"function"==typeof I?I():I})}))}}));
50
+ amis.define("f20af29",(function(e,n,r,t){"use strict";var o=this&&this.__rest||function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(r[t[o]]=e[t[o]])}return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var c=e("f56562a"),s=e("578fa8c"),i=a(e("24d9feb")),u=a(e("c6dbc84")),d=a(e("1fe80fd")),l=a(e("ef7fb1d")),f=a(e("4404b56")),g=a(e("543452c")),p=a(e("8b678ba")),v=a(e("0a576c5")),m=a(e("afc9497")),R=a(e("df37c29")),x=a(e("3e5e94a")),y=e("704f874"),E=a(e("9b41a19")),S=a(e("4b7c013"));n.default=function(e){var n,r=(0,E.default)(),t=Object.assign(Object.assign({},r),e),a=t._className,b=void 0===a?"react-pdf__Page":a,h=t._enableRegisterUnregisterPage,T=void 0===h||h,P=t.canvasBackground,L=t.canvasRef,_=t.children,G=t.className,j=t.customRenderer,A=t.customTextRenderer,O=t.devicePixelRatio,w=t.error,N=void 0===w?"Failed to load the page.":w,k=t.height,M=t.inputRef,C=t.loading,D=void 0===C?"Loading page…":C,F=t.noData,I=void 0===F?"No page specified.":F,B=t.onGetAnnotationsError,U=t.onGetAnnotationsSuccess,V=t.onGetStructTreeError,W=t.onGetStructTreeSuccess,H=t.onGetTextError,J=t.onGetTextSuccess,q=t.onLoadError,z=t.onLoadSuccess,K=t.onRenderAnnotationLayerError,Q=t.onRenderAnnotationLayerSuccess,X=t.onRenderError,Y=t.onRenderSuccess,Z=t.onRenderTextLayerError,$=t.onRenderTextLayerSuccess,ee=t.pageIndex,ne=t.pageNumber,re=t.pdf,te=t.registerPage,oe=t.renderAnnotationLayer,ae=void 0===oe||oe,ce=t.renderForms,se=void 0!==ce&&ce,ie=t.renderMode,ue=void 0===ie?"canvas":ie,de=t.renderTextLayer,le=void 0===de||de,fe=t.rotate,ge=t.scale,pe=void 0===ge?1:ge,ve=t.unregisterPage,me=t.width,Re=o(t,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),xe=(0,S.default)(),ye=xe[0],Ee=xe[1],Se=ye.value,be=ye.error,he=(0,s.useRef)(null);(0,f.default)(re,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");var Te=(0,y.isProvided)(ne)?ne-1:null!=ee?ee:null,Pe=null!=ne?ne:(0,y.isProvided)(ee)?ee+1:null,Le=null!=fe?fe:Se?Se.rotate:null,_e=(0,s.useMemo)((function(){if(!Se)return null;var e=1,n=null!=pe?pe:1;if(me||k){var r=Se.getViewport({scale:1,rotation:Le});me?e=me/r.width:k&&(e=k/r.height)}return n*e}),[k,Se,Le,pe,me]);(0,s.useEffect)((function(){return function(){(0,y.isProvided)(Te)&&T&&ve&&ve(Te)}}),[T,re,Te,ve]),(0,s.useEffect)((function(){Ee({type:"RESET"})}),[Ee,re,Te]),(0,s.useEffect)((function(){if(re&&Pe){var e=(0,i.default)(re.getPage(Pe)),n=e;return e.promise.then((function(e){Ee({type:"RESOLVE",value:e})})).catch((function(e){Ee({type:"REJECT",error:e})})),function(){return(0,y.cancelRunningTask)(n)}}}),[Ee,re,Te,Pe,te]),(0,s.useEffect)((function(){void 0!==Se&&(!1!==Se?function(){if(z){if(!Se||!_e)return;z((0,y.makePageCallback)(Se,_e))}if(T&&te){if(!(0,y.isProvided)(Te)||!he.current)return;te(Te,he.current)}}():be&&((0,g.default)(!1,be.toString()),q&&q(be)))}),[Se,_e]);var Ge=(0,s.useMemo)((function(){return Se&&(0,y.isProvided)(Te)&&Pe&&(0,y.isProvided)(Le)&&(0,y.isProvided)(_e)?{_className:b,canvasBackground:P,customTextRenderer:A,devicePixelRatio:O,onGetAnnotationsError:B,onGetAnnotationsSuccess:U,onGetStructTreeError:V,onGetStructTreeSuccess:W,onGetTextError:H,onGetTextSuccess:J,onRenderAnnotationLayerError:K,onRenderAnnotationLayerSuccess:Q,onRenderError:X,onRenderSuccess:Y,onRenderTextLayerError:Z,onRenderTextLayerSuccess:$,page:Se,pageIndex:Te,pageNumber:Pe,renderForms:se,renderTextLayer:le,rotate:Le,scale:_e}:null}),[b,P,A,O,B,U,V,W,H,J,K,Q,X,Y,Z,$,Se,Te,Pe,se,le,Le,_e]),je=(0,s.useMemo)((function(){return(0,u.default)(Re,(function(){return Se?_e?(0,y.makePageCallback)(Se,_e):void 0:Se}))}),[Re,Se,_e]),Ae="".concat(Te,"@").concat(_e,"/").concat(Le);function Oe(){switch(ue){case"custom":return(0,f.default)(j,'renderMode was set to "custom", but no customRenderer was passed.'),(0,c.jsx)(j,{},"".concat(Ae,"_custom"));case"none":return null;default:return(0,c.jsx)(m.default,{canvasRef:L},"".concat(Ae,"_canvas"))}}return(0,c.jsx)("div",Object.assign({className:(0,d.default)(b,G),"data-page-number":Pe,ref:(0,l.default)(M,he),style:(n={},n["--scale-factor"]="".concat(_e),n.backgroundColor=P||"white",n.position="relative",n.minWidth="min-content",n.minHeight="min-content",n)},je,{children:Pe?null===re||null==Se?(0,c.jsx)(v.default,{type:"loading",children:"function"==typeof D?D():D}):!1===re||!1===Se?(0,c.jsx)(v.default,{type:"error",children:"function"==typeof N?N():N}):(0,c.jsxs)(p.default.Provider,{value:Ge,children:[Oe(),le?(0,c.jsx)(R.default,{},"".concat(Ae,"_text")):null,ae?(0,c.jsx)(x.default,{},"".concat(Ae,"_annotations")):null,_]}):(0,c.jsx)(v.default,{type:"no-data",children:"function"==typeof I?I():I})}))}}));
51
51
  ;/*!node_modules/react-pdf/dist/cjs/Thumbnail.js*/
52
- amis.define("71504e3",(function(e,t,a,n){"use strict";var r=this&&this.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=e("a2e6c77"),o=i(e("95015a3")),c=i(e("cdfdd3c")),d=i(e("9849809")),s=e("d1dd89b"),u=i(e("c598463"));t.default=function(e){var t=(0,u.default)(),a=Object.assign(Object.assign({},t),e),n=a.className,i=a.linkService,f=a.onItemClick,p=a.pageIndex,m=a.pageNumber,b=a.pdf;(0,c.default)(b,"Attempted to load a thumbnail, but no document was specified. Wrap <Thumbnail /> in a <Document /> or pass explicit `pdf` prop.");var g=(0,s.isProvided)(m)?m-1:null!=p?p:null,v=null!=m?m:(0,s.isProvided)(p)?p+1:null;e.className,e.onItemClick;var _=r(e,["className","onItemClick"]);return(0,l.jsx)("a",{className:(0,o.default)("react-pdf__Thumbnail",n),href:v?"#":void 0,onClick:function(e){e.preventDefault(),(0,s.isProvided)(g)&&v&&((0,c.default)(f||i,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),f?f({pageIndex:g,pageNumber:v}):i&&i.goToPage(v))},children:(0,l.jsx)(d.default,Object.assign({},_,{_className:"react-pdf__Thumbnail__page",_enableRegisterUnregisterPage:!1,renderAnnotationLayer:!1,renderTextLayer:!1}))})}}));
52
+ amis.define("0123d76",(function(e,t,a,n){"use strict";var r=this&&this.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=e("f56562a"),o=i(e("1fe80fd")),s=i(e("4404b56")),u=i(e("f20af29")),c=e("704f874"),d=i(e("9b41a19"));t.default=function(e){var t=(0,d.default)(),a=Object.assign(Object.assign({},t),e),n=a.className,i=a.linkService,f=a.onItemClick,p=a.pageIndex,m=a.pageNumber,b=a.pdf;(0,s.default)(b,"Attempted to load a thumbnail, but no document was specified. Wrap <Thumbnail /> in a <Document /> or pass explicit `pdf` prop.");var g=(0,c.isProvided)(m)?m-1:null!=p?p:null,v=null!=m?m:(0,c.isProvided)(p)?p+1:null;e.className,e.onItemClick;var _=r(e,["className","onItemClick"]);return(0,l.jsx)("a",{className:(0,o.default)("react-pdf__Thumbnail",n),href:v?"#":void 0,onClick:function(e){e.preventDefault(),(0,c.isProvided)(g)&&v&&((0,s.default)(f||i,"Either onItemClick callback or linkService must be defined in order to navigate to an outline item."),f?f({pageIndex:g,pageNumber:v}):i&&i.goToPage(v))},children:(0,l.jsx)(u.default,Object.assign({},_,{_className:"react-pdf__Thumbnail__page",_enableRegisterUnregisterPage:!1,renderAnnotationLayer:!1,renderTextLayer:!1}))})}}));
53
53
  ;/*!node_modules/react-pdf/dist/cjs/index.js*/
54
- amis.define("a07038f",(function(e,t,r,n){"use strict";var u=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&u(t,e,r);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordResponses=t.usePageContext=t.useOutlineContext=t.useDocumentContext=t.Thumbnail=t.Page=t.Outline=t.Document=t.pdfjs=void 0;var d=o(e("node_modules/pdfjs-dist/build/pdf.mjs"));t.pdfjs=d;var s=i(e("9d6877a"));t.Document=s.default;var l=i(e("d2d6498"));t.Outline=l.default;var f=i(e("9849809"));t.Page=f.default;var c=i(e("71504e3"));t.Thumbnail=c.default;var p=i(e("c598463"));t.useDocumentContext=p.default;var b=i(e("bafcb9e"));t.useOutlineContext=b.default;var v=i(e("0ed10f3"));t.usePageContext=v.default;var _=i(e("56a4433"));t.PasswordResponses=_.default,(0,e("d1dd89b").displayWorkerWarning)(),d.GlobalWorkerOptions.workerSrc="pdf.worker.mjs"}));
54
+ amis.define("d5076e8",(function(e,t,r,n){"use strict";var u=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&u(t,e,r);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordResponses=t.usePageContext=t.useOutlineContext=t.useDocumentContext=t.Thumbnail=t.Page=t.Outline=t.Document=t.pdfjs=void 0;var d=o(e("node_modules/pdfjs-dist/build/pdf.mjs"));t.pdfjs=d;var s=i(e("c82c828"));t.Document=s.default;var f=i(e("ce283dd"));t.Outline=f.default;var l=i(e("f20af29"));t.Page=l.default;var c=i(e("0123d76"));t.Thumbnail=c.default;var p=i(e("9b41a19"));t.useDocumentContext=p.default;var v=i(e("1afded4"));t.useOutlineContext=v.default;var b=i(e("32154fc"));t.usePageContext=b.default;var _=i(e("61f12b2"));t.PasswordResponses=_.default,(0,e("704f874").displayWorkerWarning)(),d.GlobalWorkerOptions.workerSrc="pdf.worker.mjs"}));
55
55
  ;/*!node_modules/amis-ui/lib/components/PdfViewer.js*/
56
- amis.define("6c3d6e0",(function(e,a,n,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=e("a08bef8"),l=e("8f47184"),r=e("531613c"),i=e("a07038f"),u=e("403358f"),c=e("2b93ea8"),f=e("2decdeb");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=d(l),m=e("8f47184"),v=(m.default||m).createElement;(m.default||m).Fragment,i.pdfjs.GlobalWorkerOptions.workerSrc=r.getGlobalOptions().pdfjsWorkerSrc;var g=r.themeable((function(e){var a=e.classnames,n=e.className,t=e.loading,l=e.width,r=void 0===l?300:l,d=o.__read(s.default.useState(e.file),2),m=d[0],g=d[1],N=o.__read(s.default.useState(!1),2),p=N[0],_=N[1],b=o.__read(s.default.useState(1),2),P=b[0],h=b[1],w=o.__read(s.default.useState(1),2),S=w[0],k=w[1],y=o.__read(s.default.useState(1),2),C=y[0],L=y[1],V=s.default.useRef();function j(e){var a=P+e;a<=0||a>C||h(a)}function I(e){var a=+e.target.value;isNaN(a)||a<=0||a>C?V.current&&(V.current.value=P+""):h(a)}function D(e){k(S*e)}function E(){return v("div",{className:a("PdfViewer-Loading")},v(f.default,null))}return s.default.useEffect((function(){e.file instanceof ArrayBuffer&&e.file.byteLength>0?g(e.file):g(void 0)}),[e.file]),v("div",{className:a(n,"PdfViewer")},!m||t?E():v(s.default.Fragment,null,v("div",{className:a("PdfViewer-Content",{"is-loaded":p})},v(i.Document,{file:m,onLoadSuccess:function(e){var a=e.numPages;_(!0),L(a)},onLoadError:function(e){return console.log(e)},loading:E()},v(i.Page,{className:a("PdfViewer-Content-Page"),pageNumber:P,width:r,height:e.height,loading:E(),noData:v("div",null,"No PDF data"),scale:S,renderTextLayer:!1,renderAnnotationLayer:!1}))),p?v("div",{className:a("PdfViewer-Tool")},v(u.Icon,{className:"icon",icon:"prev",onClick:function(){return j(-1)}}),v(c.default,{className:"page-input",value:P,onBlur:I,ref:V}),v("span",{className:"gap"},"/"),v("span",null,C),v(u.Icon,{className:"icon",icon:"next",onClick:function(){return j(1)}}),v(u.Icon,{className:"icon",icon:"zoom-in",onClick:function(){return D(1.2)}}),v(u.Icon,{className:"icon",icon:"zoom-out",onClick:function(){return D(.8)}})):null))}));a.default=g}));
56
+ amis.define("6bb3dba",(function(e,a,n,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=e("6f40966"),l=e("578fa8c"),r=e("c2c65df"),i=e("d5076e8"),u=e("0ecaefb"),c=e("e3d865a"),f=e("6b0ef48");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=d(l),m=e("578fa8c"),v=(m.default||m).createElement;(m.default||m).Fragment,i.pdfjs.GlobalWorkerOptions.workerSrc=r.getGlobalOptions().pdfjsWorkerSrc;var g=r.themeable((function(e){var a=e.classnames,n=e.className,t=e.loading,l=e.width,r=void 0===l?300:l,d=o.__read(s.default.useState(e.file),2),m=d[0],g=d[1],N=o.__read(s.default.useState(!1),2),p=N[0],b=N[1],_=o.__read(s.default.useState(1),2),P=_[0],h=_[1],w=o.__read(s.default.useState(1),2),S=w[0],k=w[1],y=o.__read(s.default.useState(1),2),C=y[0],L=y[1],V=s.default.useRef();function j(e){var a=P+e;a<=0||a>C||h(a)}function I(e){var a=+e.target.value;isNaN(a)||a<=0||a>C?V.current&&(V.current.value=P+""):h(a)}function D(e){k(S*e)}function E(){return v("div",{className:a("PdfViewer-Loading")},v(f.default,null))}return s.default.useEffect((function(){e.file instanceof ArrayBuffer&&e.file.byteLength>0?g(e.file):g(void 0)}),[e.file]),v("div",{className:a(n,"PdfViewer")},!m||t?E():v(s.default.Fragment,null,v("div",{className:a("PdfViewer-Content",{"is-loaded":p})},v(i.Document,{file:m,onLoadSuccess:function(e){var a=e.numPages;b(!0),L(a)},onLoadError:function(e){return console.log(e)},loading:E()},v(i.Page,{className:a("PdfViewer-Content-Page"),pageNumber:P,width:r,height:e.height,loading:E(),noData:v("div",null,"No PDF data"),scale:S,renderTextLayer:!1,renderAnnotationLayer:!1}))),p?v("div",{className:a("PdfViewer-Tool")},v(u.Icon,{className:"icon",icon:"prev",onClick:function(){return j(-1)}}),v(c.default,{className:"page-input",value:P,onBlur:I,ref:V}),v("span",{className:"gap"},"/"),v("span",null,C),v(u.Icon,{className:"icon",icon:"next",onClick:function(){return j(1)}}),v(u.Icon,{className:"icon",icon:"zoom-in",onClick:function(){return D(1.2)}}),v(u.Icon,{className:"icon",icon:"zoom-out",onClick:function(){return D(.8)}})):null))}));a.default=g}));