@elice/material-exercise 1.251120.1 → 1.260128.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +241 -451
  2. package/cjs/components/index.js +9 -9
  3. package/cjs/components/material-exercise/MaterialExercise.js +14 -17
  4. package/cjs/components/material-exercise/MaterialExercise.styled.d.ts +40 -10
  5. package/cjs/components/material-exercise/MaterialExercise.styled.js +68 -33
  6. package/cjs/components/material-exercise/MaterialExerciseMobile.js +3 -6
  7. package/cjs/components/material-exercise/context/ExerciseProvider.js +17 -8
  8. package/cjs/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
  9. package/cjs/components/material-exercise/context/ExerciseProviderNoImage.js +5 -5
  10. package/cjs/components/material-exercise/context/recoil.js +202 -219
  11. package/cjs/components/material-exercise/context/recoilTypes.d.ts +1 -2
  12. package/cjs/components/material-exercise/context/types.d.ts +0 -1
  13. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +9 -25
  14. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +23 -9
  15. package/cjs/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +45 -22
  16. package/cjs/components/material-exercise/exercise-file/ExerciseFile.js +8 -22
  17. package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +34 -48
  18. package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +5 -9
  19. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +16 -15
  20. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +1 -1
  21. package/cjs/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.js +1 -5
  22. package/cjs/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/ExerciseFileTabsFileTreeButton.js +10 -13
  23. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +73 -99
  24. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +1 -1
  25. package/cjs/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.js +1 -5
  26. package/cjs/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.js +2 -9
  27. package/cjs/components/material-exercise/exercise-menu/ExerciseMenu.js +7 -10
  28. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.d.ts +1 -1
  29. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +0 -4
  30. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +10 -14
  31. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +5 -7
  32. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.d.ts +1 -1
  33. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuReset.js +1 -15
  34. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +6 -12
  35. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.d.ts +46 -13
  36. package/cjs/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +81 -38
  37. package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.js +2 -5
  38. package/cjs/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +1 -1
  39. package/cjs/components/material-exercise/exercise-preview/ExercisePreview.js +9 -11
  40. package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -2
  41. package/cjs/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +3 -6
  42. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +1 -1
  43. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +25 -21
  44. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.js +1 -6
  45. package/cjs/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +16 -11
  46. package/cjs/components/material-exercise/exercise-room/ExerciseRoom.styled.d.ts +30 -9
  47. package/cjs/components/material-exercise/exercise-room/ExerciseRoom.styled.js +33 -25
  48. package/cjs/components/material-exercise/exercise-room/ExerciseRoomDetail.js +101 -106
  49. package/cjs/components/material-exercise/exercise-room/ExerciseRoomList.js +31 -35
  50. package/cjs/components/material-exercise/exercise-runner/ExerciseRunner.js +53 -72
  51. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerController.js +8 -22
  52. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +2 -6
  53. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.d.ts +1 -1
  54. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +28 -22
  55. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +23 -27
  56. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
  57. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +28 -26
  58. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.d.ts +4 -1
  59. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.js +6 -6
  60. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.d.ts +1 -1
  61. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +15 -11
  62. package/cjs/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +6 -9
  63. package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +107 -114
  64. package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.d.ts +30 -9
  65. package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.js +55 -26
  66. package/cjs/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.js +20 -16
  67. package/cjs/components/material-exercise/index.d.ts +1 -1
  68. package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +1 -1
  69. package/cjs/components/shared/exercise-menu-button/ExerciseMenuButton.js +18 -10
  70. package/cjs/components/shared/exercise-shimmer/ExerciseFileShimmer.d.ts +1 -1
  71. package/cjs/components/shared/exercise-shimmer/ExerciseFileShimmer.js +17 -17
  72. package/cjs/components/shared/exercise-shimmer/ExerciseFileTabShimmer.d.ts +1 -1
  73. package/cjs/components/shared/exercise-shimmer/ExerciseFileTabShimmer.js +9 -9
  74. package/cjs/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.d.ts +1 -1
  75. package/cjs/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.js +5 -5
  76. package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.d.ts +1 -1
  77. package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.js +12 -12
  78. package/cjs/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.js +19 -11
  79. package/cjs/components/shared/exercise-version-list/ExerciseVersionList.d.ts +1 -1
  80. package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +5 -8
  81. package/cjs/components/shared/exercise-version-list/ExerciseVersionList.styled.js +13 -5
  82. package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +1 -1
  83. package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.styled.d.ts +20 -5
  84. package/cjs/components/shared/exercise-version-list/ExerciseVersionListItem.styled.js +37 -15
  85. package/cjs/components/shared/file-tabs/FileTab.js +5 -5
  86. package/cjs/components/shared/file-tabs/FileTab.styled.d.ts +29 -8
  87. package/cjs/components/shared/file-tabs/FileTab.styled.js +50 -27
  88. package/cjs/components/shared/file-tabs/FileTabs.styled.d.ts +8 -2
  89. package/cjs/components/shared/file-tabs/FileTabs.styled.js +17 -9
  90. package/cjs/components/shared/file-tree/FileTree.d.ts +1 -1
  91. package/cjs/components/shared/file-tree/FileTree.js +20 -12
  92. package/cjs/components/shared/file-tree/FileTreeConfig.js +6 -6
  93. package/cjs/components/shared/file-tree/FileTreeList.d.ts +1 -1
  94. package/cjs/components/shared/file-tree/FileTreeList.js +10 -8
  95. package/cjs/components/shared/file-tree/FileTreeListItemContent.js +5 -5
  96. package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +35 -10
  97. package/cjs/components/shared/file-tree/FileTreeListItemContent.styled.js +49 -33
  98. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.js +9 -9
  99. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +7 -3
  100. package/cjs/components/shared/file-tree/FileTreeListItemContentInput.styled.js +16 -8
  101. package/cjs/components/shared/file-tree/FileTreeListItemContentMenu.js +1 -1
  102. package/cjs/components/shared/file-tree/FileTreeListItems.d.ts +1 -1
  103. package/cjs/components/shared/file-tree/FileTreeListItems.js +13 -11
  104. package/cjs/components/shared/file-tree/FileTreeListItems.styled.d.ts +8 -2
  105. package/cjs/components/shared/file-tree/FileTreeListItems.styled.js +23 -8
  106. package/cjs/components/shared/file-tree/FileTreeToolbar.styled.d.ts +4 -1
  107. package/cjs/components/shared/file-tree/FileTreeToolbar.styled.js +5 -5
  108. package/cjs/components/shared/file-tree/context/FileTreeContext.d.ts +1 -1
  109. package/cjs/components/shared/file-tree/context/FileTreeContext.js +0 -1
  110. package/cjs/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +7 -7
  111. package/cjs/components/shared/file-tree/index.d.ts +1 -1
  112. package/cjs/components/shared/file-tree/utils/fileTreeGenerator.js +2 -4
  113. package/cjs/components/shared/file-viewer/FileViewer.js +10 -14
  114. package/cjs/components/shared/file-viewer/FileViewerCsv.js +68 -52
  115. package/cjs/components/shared/file-viewer/FileViewerImage.d.ts +1 -1
  116. package/cjs/components/shared/file-viewer/FileViewerImage.js +14 -10
  117. package/cjs/components/shared/file-viewer/FileViewerIpynb.js +14 -10
  118. package/cjs/components/shared/file-viewer/FileViewerNonViewable.d.ts +1 -1
  119. package/cjs/components/shared/file-viewer/FileViewerNonViewable.js +46 -17
  120. package/cjs/components/shared/file-viewer/FileViewerText.js +3 -13
  121. package/cjs/components/shared/material-modal/MaterialModal.d.ts +1 -1
  122. package/cjs/components/shared/material-modal/MaterialModal.styled.d.ts +19 -6
  123. package/cjs/components/shared/material-modal/MaterialModal.styled.js +25 -17
  124. package/cjs/components/shared/monaco-editor/MonacoEditor.js +22 -14
  125. package/cjs/components/shared/monaco-editor/MonacoEditorLazy.js +0 -4
  126. package/cjs/components/shared/monaco-editor/MonacoEditorMobile.js +2 -2
  127. package/cjs/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +28 -21
  128. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.js +0 -1
  129. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +0 -1
  130. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +2 -2
  131. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
  132. package/cjs/components/shared/monaco-editor/editor-hooks/useMonacoTheme.js +1 -2
  133. package/cjs/components/shared/monaco-editor/editor-languages/css/formatter.js +17 -21
  134. package/cjs/components/shared/monaco-editor/editor-languages/css/index.js +1 -1
  135. package/cjs/components/shared/monaco-editor/editor-languages/html/formatter.js +17 -21
  136. package/cjs/components/shared/monaco-editor/editor-languages/html/index.js +1 -1
  137. package/cjs/components/shared/monaco-editor/editor-languages/typescript/formatter.js +20 -24
  138. package/cjs/components/shared/monaco-editor/editor-languages/typescript/index.js +1 -2
  139. package/cjs/components/shared/monaco-editor/hooks/useEditorOptions.js +1 -1
  140. package/cjs/components/shared/monaco-editor/index.js +5 -5
  141. package/cjs/components/shared/monaco-editor/utils/emmet/abbreviationActions.d.ts +1 -1
  142. package/cjs/components/shared/monaco-editor/utils/emmet/abbreviationActions.js +2 -2
  143. package/cjs/components/shared/monaco-editor/utils/emmet/registerProvider.js +2 -2
  144. package/cjs/components/shared/monaco-editor/utils/grammar/index.js +24 -28
  145. package/cjs/components/shared/monaco-editor/utils/grammar/onigasm.js +8 -9
  146. package/cjs/components/shared/monaco-editor/utils/grammar/textmate.js +16 -18
  147. package/cjs/components/shared/monaco-editor/utils/prettier/index.js +13 -16
  148. package/cjs/components/shared/monaco-editor/utils/theme/convert.js +1 -1
  149. package/cjs/components/shared/monaco-editor/utils/theme/index.js +4 -7
  150. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursor.js +1 -2
  151. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorManager.d.ts +1 -2
  152. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorManager.js +2 -3
  153. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorWidget.js +1 -2
  154. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +1 -2
  155. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelectionManager.d.ts +1 -2
  156. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelectionManager.js +1 -2
  157. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/styles.d.ts +1 -1
  158. package/cjs/components/shared/monaco-editor/vendors/monaco-collab-ext/styles.js +2 -2
  159. package/cjs/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.js +0 -1
  160. package/cjs/components/shared/no-vnc/NoVnc.js +44 -24
  161. package/cjs/components/shared/preview-container/PreviewContainer.d.ts +1 -1
  162. package/cjs/components/shared/preview-container/PreviewContainer.js +8 -8
  163. package/cjs/components/shared/web-browser/WebBrowser.js +20 -12
  164. package/cjs/components/shared/xterm/Xterm.js +9 -9
  165. package/cjs/components/shared/xterm/utils/index.js +0 -1
  166. package/cjs/constants/stylesheets.d.ts +2 -2
  167. package/cjs/constants/stylesheets.js +2 -2
  168. package/cjs/hooks/useArduino.js +70 -80
  169. package/cjs/hooks/useExerciseFile.js +1 -4
  170. package/cjs/hooks/useMaterialExerciseFileUrl.js +13 -13
  171. package/cjs/hooks/useRunnerRoomWebSocket.js +7 -10
  172. package/cjs/hooks/useStdioTextConcator.js +3 -6
  173. package/cjs/hooks/useUsercodeEditWebSocket.js +26 -29
  174. package/cjs/hooks/useUsercodeHistory.js +28 -30
  175. package/cjs/index.js +9 -9
  176. package/cjs/utils/arduino.d.ts +0 -3
  177. package/es/_virtual/_rollupPluginBabelHelpers.js +240 -451
  178. package/es/components/index.js +3 -3
  179. package/es/components/material-exercise/MaterialExercise.js +14 -17
  180. package/es/components/material-exercise/MaterialExercise.styled.d.ts +40 -10
  181. package/es/components/material-exercise/MaterialExercise.styled.js +67 -32
  182. package/es/components/material-exercise/MaterialExerciseMobile.js +3 -6
  183. package/es/components/material-exercise/context/ExerciseProvider.js +16 -7
  184. package/es/components/material-exercise/context/ExerciseProviderNoImage.d.ts +1 -1
  185. package/es/components/material-exercise/context/ExerciseProviderNoImage.js +4 -4
  186. package/es/components/material-exercise/context/recoil.js +204 -221
  187. package/es/components/material-exercise/context/recoilTypes.d.ts +1 -2
  188. package/es/components/material-exercise/context/types.d.ts +0 -1
  189. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.js +9 -25
  190. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.d.ts +23 -9
  191. package/es/components/material-exercise/exercise-code-history/ExerciseCodeHistory.styled.js +44 -21
  192. package/es/components/material-exercise/exercise-file/ExerciseFile.js +7 -21
  193. package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +35 -49
  194. package/es/components/material-exercise/exercise-file-editor/ExerciseFileReadOnlyBanner.js +4 -8
  195. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabs.js +15 -14
  196. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.d.ts +1 -1
  197. package/es/components/material-exercise/exercise-file-tabs/ExerciseFileTabsLazy.js +1 -5
  198. package/es/components/material-exercise/exercise-file-tabs/exercise-file-tabs-file-tree-button/ExerciseFileTabsFileTreeButton.js +9 -12
  199. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTree.js +73 -99
  200. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.d.ts +1 -1
  201. package/es/components/material-exercise/exercise-file-tree/ExerciseFileTreeLazy.js +1 -5
  202. package/es/components/material-exercise/exercise-file-viewer/ExerciseFileViewer.js +2 -9
  203. package/es/components/material-exercise/exercise-menu/ExerciseMenu.js +6 -9
  204. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.d.ts +1 -1
  205. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoAgentModalButton.js +0 -4
  206. package/es/components/material-exercise/exercise-menu/ExerciseMenuArduinoSettings.js +10 -14
  207. package/es/components/material-exercise/exercise-menu/ExerciseMenuDropdown.js +5 -7
  208. package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.d.ts +1 -1
  209. package/es/components/material-exercise/exercise-menu/ExerciseMenuReset.js +1 -15
  210. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.js +7 -13
  211. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.d.ts +46 -13
  212. package/es/components/material-exercise/exercise-menu/ExerciseMenuStdioFileBrowser.styled.js +80 -37
  213. package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdown.js +2 -5
  214. package/es/components/material-exercise/exercise-multilang-dropdown/ExerciseMultilangDropdownLazy.d.ts +1 -1
  215. package/es/components/material-exercise/exercise-preview/ExercisePreview.js +8 -10
  216. package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.d.ts +1 -2
  217. package/es/components/material-exercise/exercise-preview/ExercisePreviewDisplayModeButton.js +3 -6
  218. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.d.ts +1 -1
  219. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpane.js +25 -21
  220. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEditorPerference.js +1 -6
  221. package/es/components/material-exercise/exercise-rightpane/ExerciseRightpaneEnvironment.js +15 -10
  222. package/es/components/material-exercise/exercise-room/ExerciseRoom.styled.d.ts +30 -9
  223. package/es/components/material-exercise/exercise-room/ExerciseRoom.styled.js +32 -24
  224. package/es/components/material-exercise/exercise-room/ExerciseRoomDetail.js +103 -108
  225. package/es/components/material-exercise/exercise-room/ExerciseRoomList.js +32 -36
  226. package/es/components/material-exercise/exercise-runner/ExerciseRunner.js +53 -72
  227. package/es/components/material-exercise/exercise-runner/ExerciseRunnerController.js +7 -21
  228. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoAgentModal.js +2 -6
  229. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.d.ts +1 -1
  230. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerArduinoStatusMessage.js +27 -21
  231. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerButtonGroup.js +22 -26
  232. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.d.ts +1 -1
  233. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerCodeHelpRequestButton.js +1 -1
  234. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerRunningInfo.js +28 -26
  235. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.d.ts +4 -1
  236. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusIndicator.js +5 -5
  237. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.d.ts +1 -1
  238. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerStatusMessage.js +14 -10
  239. package/es/components/material-exercise/exercise-runner/ExerciseRunnerControllerTimer.js +5 -8
  240. package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.js +108 -115
  241. package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.d.ts +30 -9
  242. package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistory.styled.js +54 -25
  243. package/es/components/material-exercise/exercise-submit-history/ExerciseSubmitHistoryOutput.js +20 -16
  244. package/es/components/material-exercise/index.d.ts +1 -1
  245. package/es/components/shared/exercise-menu-button/ExerciseMenuButton.d.ts +1 -1
  246. package/es/components/shared/exercise-menu-button/ExerciseMenuButton.js +18 -10
  247. package/es/components/shared/exercise-shimmer/ExerciseFileShimmer.d.ts +1 -1
  248. package/es/components/shared/exercise-shimmer/ExerciseFileShimmer.js +16 -16
  249. package/es/components/shared/exercise-shimmer/ExerciseFileTabShimmer.d.ts +1 -1
  250. package/es/components/shared/exercise-shimmer/ExerciseFileTabShimmer.js +8 -8
  251. package/es/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.d.ts +1 -1
  252. package/es/components/shared/exercise-shimmer/ExerciseFileTabsShimmer.js +4 -4
  253. package/es/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.d.ts +1 -1
  254. package/es/components/shared/exercise-shimmer/ExerciseFileTreeListItemShimmer.js +12 -12
  255. package/es/components/shared/exercise-shimmer/ExerciseFileTreeListShimmer.js +18 -10
  256. package/es/components/shared/exercise-version-list/ExerciseVersionList.d.ts +1 -1
  257. package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.d.ts +5 -8
  258. package/es/components/shared/exercise-version-list/ExerciseVersionList.styled.js +12 -4
  259. package/es/components/shared/exercise-version-list/ExerciseVersionListItem.d.ts +1 -1
  260. package/es/components/shared/exercise-version-list/ExerciseVersionListItem.styled.d.ts +20 -5
  261. package/es/components/shared/exercise-version-list/ExerciseVersionListItem.styled.js +36 -14
  262. package/es/components/shared/file-tabs/FileTab.js +5 -5
  263. package/es/components/shared/file-tabs/FileTab.styled.d.ts +29 -8
  264. package/es/components/shared/file-tabs/FileTab.styled.js +49 -26
  265. package/es/components/shared/file-tabs/FileTabs.styled.d.ts +8 -2
  266. package/es/components/shared/file-tabs/FileTabs.styled.js +16 -8
  267. package/es/components/shared/file-tree/FileTree.d.ts +1 -1
  268. package/es/components/shared/file-tree/FileTree.js +19 -11
  269. package/es/components/shared/file-tree/FileTreeConfig.js +5 -5
  270. package/es/components/shared/file-tree/FileTreeList.d.ts +1 -1
  271. package/es/components/shared/file-tree/FileTreeList.js +10 -8
  272. package/es/components/shared/file-tree/FileTreeListItemContent.js +5 -5
  273. package/es/components/shared/file-tree/FileTreeListItemContent.styled.d.ts +35 -10
  274. package/es/components/shared/file-tree/FileTreeListItemContent.styled.js +49 -33
  275. package/es/components/shared/file-tree/FileTreeListItemContentInput.js +9 -9
  276. package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.d.ts +7 -3
  277. package/es/components/shared/file-tree/FileTreeListItemContentInput.styled.js +15 -7
  278. package/es/components/shared/file-tree/FileTreeListItemContentMenu.js +1 -1
  279. package/es/components/shared/file-tree/FileTreeListItems.d.ts +1 -1
  280. package/es/components/shared/file-tree/FileTreeListItems.js +13 -11
  281. package/es/components/shared/file-tree/FileTreeListItems.styled.d.ts +8 -2
  282. package/es/components/shared/file-tree/FileTreeListItems.styled.js +22 -7
  283. package/es/components/shared/file-tree/FileTreeToolbar.styled.d.ts +4 -1
  284. package/es/components/shared/file-tree/FileTreeToolbar.styled.js +4 -4
  285. package/es/components/shared/file-tree/context/FileTreeContext.d.ts +1 -1
  286. package/es/components/shared/file-tree/context/FileTreeContext.js +0 -1
  287. package/es/components/shared/file-tree/file-tree-toolbar/FileTreeToolbar.js +7 -7
  288. package/es/components/shared/file-tree/index.d.ts +1 -1
  289. package/es/components/shared/file-tree/utils/fileTreeGenerator.js +3 -5
  290. package/es/components/shared/file-viewer/FileViewer.js +9 -13
  291. package/es/components/shared/file-viewer/FileViewerCsv.js +68 -52
  292. package/es/components/shared/file-viewer/FileViewerImage.d.ts +1 -1
  293. package/es/components/shared/file-viewer/FileViewerImage.js +13 -9
  294. package/es/components/shared/file-viewer/FileViewerIpynb.js +13 -9
  295. package/es/components/shared/file-viewer/FileViewerNonViewable.d.ts +1 -1
  296. package/es/components/shared/file-viewer/FileViewerNonViewable.js +45 -16
  297. package/es/components/shared/file-viewer/FileViewerText.js +3 -13
  298. package/es/components/shared/material-modal/MaterialModal.d.ts +1 -1
  299. package/es/components/shared/material-modal/MaterialModal.styled.d.ts +19 -6
  300. package/es/components/shared/material-modal/MaterialModal.styled.js +24 -16
  301. package/es/components/shared/monaco-editor/MonacoEditor.js +21 -13
  302. package/es/components/shared/monaco-editor/MonacoEditorLazy.js +0 -4
  303. package/es/components/shared/monaco-editor/MonacoEditorMobile.js +2 -2
  304. package/es/components/shared/monaco-editor/MonacoEditorPerferenceForm.js +27 -20
  305. package/es/components/shared/monaco-editor/editor-hooks/useMonacoMarkers.js +0 -1
  306. package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.d.ts +0 -1
  307. package/es/components/shared/monaco-editor/editor-hooks/useMonacoOptions.js +2 -2
  308. package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.d.ts +1 -1
  309. package/es/components/shared/monaco-editor/editor-hooks/useMonacoTheme.js +1 -2
  310. package/es/components/shared/monaco-editor/editor-languages/css/formatter.js +18 -22
  311. package/es/components/shared/monaco-editor/editor-languages/css/index.js +1 -1
  312. package/es/components/shared/monaco-editor/editor-languages/html/formatter.js +18 -22
  313. package/es/components/shared/monaco-editor/editor-languages/html/index.js +1 -1
  314. package/es/components/shared/monaco-editor/editor-languages/typescript/formatter.js +21 -25
  315. package/es/components/shared/monaco-editor/editor-languages/typescript/index.js +1 -2
  316. package/es/components/shared/monaco-editor/hooks/useEditorOptions.js +1 -1
  317. package/es/components/shared/monaco-editor/index.js +2 -2
  318. package/es/components/shared/monaco-editor/utils/emmet/abbreviationActions.d.ts +1 -1
  319. package/es/components/shared/monaco-editor/utils/emmet/abbreviationActions.js +2 -2
  320. package/es/components/shared/monaco-editor/utils/emmet/registerProvider.js +2 -2
  321. package/es/components/shared/monaco-editor/utils/grammar/index.js +25 -29
  322. package/es/components/shared/monaco-editor/utils/grammar/onigasm.js +9 -10
  323. package/es/components/shared/monaco-editor/utils/grammar/textmate.js +17 -19
  324. package/es/components/shared/monaco-editor/utils/prettier/index.js +14 -17
  325. package/es/components/shared/monaco-editor/utils/theme/convert.js +1 -1
  326. package/es/components/shared/monaco-editor/utils/theme/index.js +5 -8
  327. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursor.js +1 -2
  328. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorManager.d.ts +1 -2
  329. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorManager.js +2 -3
  330. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteCursorWidget.js +1 -2
  331. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelection.js +1 -2
  332. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelectionManager.d.ts +1 -2
  333. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/RemoteSelectionManager.js +1 -2
  334. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/styles.d.ts +1 -1
  335. package/es/components/shared/monaco-editor/vendors/monaco-collab-ext/styles.js +2 -2
  336. package/es/components/shared/monaco-editor/vendors/vscode-emmet-helper/emmetHelper.js +1 -2
  337. package/es/components/shared/no-vnc/NoVnc.js +43 -23
  338. package/es/components/shared/preview-container/PreviewContainer.d.ts +1 -1
  339. package/es/components/shared/preview-container/PreviewContainer.js +7 -7
  340. package/es/components/shared/web-browser/WebBrowser.js +19 -11
  341. package/es/components/shared/xterm/Xterm.js +8 -8
  342. package/es/components/shared/xterm/utils/index.js +0 -1
  343. package/es/constants/stylesheets.d.ts +2 -2
  344. package/es/constants/stylesheets.js +2 -2
  345. package/es/hooks/useArduino.js +72 -82
  346. package/es/hooks/useExerciseFile.js +1 -4
  347. package/es/hooks/useMaterialExerciseFileUrl.js +14 -14
  348. package/es/hooks/useRunnerRoomWebSocket.js +8 -11
  349. package/es/hooks/useStdioTextConcator.js +3 -6
  350. package/es/hooks/useUsercodeEditWebSocket.js +27 -30
  351. package/es/hooks/useUsercodeHistory.js +29 -31
  352. package/es/index.js +3 -3
  353. package/es/utils/arduino.d.ts +0 -3
  354. package/es/utils/arduino.js +1 -1
  355. package/package.json +15 -17
@@ -1,501 +1,290 @@
1
1
  'use strict';
2
2
 
3
- function _iterableToArrayLimit(arr, i) {
4
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
5
- if (null != _i) {
6
- var _s,
7
- _e,
8
- _x,
9
- _r,
10
- _arr = [],
11
- _n = !0,
12
- _d = !1;
13
- try {
14
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
15
- if (Object(_i) !== _i) return;
16
- _n = !1;
17
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
18
- } catch (err) {
19
- _d = !0, _e = err;
20
- } finally {
21
- try {
22
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
23
- } finally {
24
- if (_d) throw _e;
25
- }
26
- }
27
- return _arr;
28
- }
3
+ function _arrayLikeToArray(r, a) {
4
+ (null == a || a > r.length) && (a = r.length);
5
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
6
+ return n;
29
7
  }
30
- function _regeneratorRuntime() {
31
- _regeneratorRuntime = function () {
32
- return exports;
33
- };
34
- var exports = {},
35
- Op = Object.prototype,
36
- hasOwn = Op.hasOwnProperty,
37
- defineProperty = Object.defineProperty || function (obj, key, desc) {
38
- obj[key] = desc.value;
39
- },
40
- $Symbol = "function" == typeof Symbol ? Symbol : {},
41
- iteratorSymbol = $Symbol.iterator || "@@iterator",
42
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
43
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
44
- function define(obj, key, value) {
45
- return Object.defineProperty(obj, key, {
46
- value: value,
47
- enumerable: !0,
48
- configurable: !0,
49
- writable: !0
50
- }), obj[key];
51
- }
52
- try {
53
- define({}, "");
54
- } catch (err) {
55
- define = function (obj, key, value) {
56
- return obj[key] = value;
57
- };
58
- }
59
- function wrap(innerFn, outerFn, self, tryLocsList) {
60
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
61
- generator = Object.create(protoGenerator.prototype),
62
- context = new Context(tryLocsList || []);
63
- return defineProperty(generator, "_invoke", {
64
- value: makeInvokeMethod(innerFn, self, context)
65
- }), generator;
66
- }
67
- function tryCatch(fn, obj, arg) {
68
- try {
69
- return {
70
- type: "normal",
71
- arg: fn.call(obj, arg)
72
- };
73
- } catch (err) {
74
- return {
75
- type: "throw",
76
- arg: err
77
- };
78
- }
79
- }
80
- exports.wrap = wrap;
81
- var ContinueSentinel = {};
82
- function Generator() {}
83
- function GeneratorFunction() {}
84
- function GeneratorFunctionPrototype() {}
85
- var IteratorPrototype = {};
86
- define(IteratorPrototype, iteratorSymbol, function () {
87
- return this;
88
- });
89
- var getProto = Object.getPrototypeOf,
90
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
91
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
92
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
93
- function defineIteratorMethods(prototype) {
94
- ["next", "throw", "return"].forEach(function (method) {
95
- define(prototype, method, function (arg) {
96
- return this._invoke(method, arg);
97
- });
98
- });
99
- }
100
- function AsyncIterator(generator, PromiseImpl) {
101
- function invoke(method, arg, resolve, reject) {
102
- var record = tryCatch(generator[method], generator, arg);
103
- if ("throw" !== record.type) {
104
- var result = record.arg,
105
- value = result.value;
106
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
107
- invoke("next", value, resolve, reject);
108
- }, function (err) {
109
- invoke("throw", err, resolve, reject);
110
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
111
- result.value = unwrapped, resolve(result);
112
- }, function (error) {
113
- return invoke("throw", error, resolve, reject);
114
- });
115
- }
116
- reject(record.arg);
117
- }
118
- var previousPromise;
119
- defineProperty(this, "_invoke", {
120
- value: function (method, arg) {
121
- function callInvokeWithMethodAndArg() {
122
- return new PromiseImpl(function (resolve, reject) {
123
- invoke(method, arg, resolve, reject);
124
- });
125
- }
126
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
127
- }
128
- });
129
- }
130
- function makeInvokeMethod(innerFn, self, context) {
131
- var state = "suspendedStart";
132
- return function (method, arg) {
133
- if ("executing" === state) throw new Error("Generator is already running");
134
- if ("completed" === state) {
135
- if ("throw" === method) throw arg;
136
- return {
137
- value: void 0,
138
- done: !0
139
- };
140
- }
141
- for (context.method = method, context.arg = arg;;) {
142
- var delegate = context.delegate;
143
- if (delegate) {
144
- var delegateResult = maybeInvokeDelegate(delegate, context);
145
- if (delegateResult) {
146
- if (delegateResult === ContinueSentinel) continue;
147
- return delegateResult;
148
- }
149
- }
150
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
151
- if ("suspendedStart" === state) throw state = "completed", context.arg;
152
- context.dispatchException(context.arg);
153
- } else "return" === context.method && context.abrupt("return", context.arg);
154
- state = "executing";
155
- var record = tryCatch(innerFn, self, context);
156
- if ("normal" === record.type) {
157
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
158
- return {
159
- value: record.arg,
160
- done: context.done
161
- };
162
- }
163
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
164
- }
165
- };
166
- }
167
- function maybeInvokeDelegate(delegate, context) {
168
- var methodName = context.method,
169
- method = delegate.iterator[methodName];
170
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
171
- var record = tryCatch(method, delegate.iterator, context.arg);
172
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
173
- var info = record.arg;
174
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
175
- }
176
- function pushTryEntry(locs) {
177
- var entry = {
178
- tryLoc: locs[0]
179
- };
180
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
181
- }
182
- function resetTryEntry(entry) {
183
- var record = entry.completion || {};
184
- record.type = "normal", delete record.arg, entry.completion = record;
185
- }
186
- function Context(tryLocsList) {
187
- this.tryEntries = [{
188
- tryLoc: "root"
189
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
190
- }
191
- function values(iterable) {
192
- if (iterable || "" === iterable) {
193
- var iteratorMethod = iterable[iteratorSymbol];
194
- if (iteratorMethod) return iteratorMethod.call(iterable);
195
- if ("function" == typeof iterable.next) return iterable;
196
- if (!isNaN(iterable.length)) {
197
- var i = -1,
198
- next = function next() {
199
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
200
- return next.value = undefined, next.done = !0, next;
201
- };
202
- return next.next = next;
203
- }
204
- }
205
- throw new TypeError(typeof iterable + " is not iterable");
206
- }
207
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
208
- value: GeneratorFunctionPrototype,
209
- configurable: !0
210
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
211
- value: GeneratorFunction,
212
- configurable: !0
213
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
214
- var ctor = "function" == typeof genFun && genFun.constructor;
215
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
216
- }, exports.mark = function (genFun) {
217
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
218
- }, exports.awrap = function (arg) {
219
- return {
220
- __await: arg
221
- };
222
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
223
- return this;
224
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
225
- void 0 === PromiseImpl && (PromiseImpl = Promise);
226
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
227
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
228
- return result.done ? result.value : iter.next();
229
- });
230
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
231
- return this;
232
- }), define(Gp, "toString", function () {
233
- return "[object Generator]";
234
- }), exports.keys = function (val) {
235
- var object = Object(val),
236
- keys = [];
237
- for (var key in object) keys.push(key);
238
- return keys.reverse(), function next() {
239
- for (; keys.length;) {
240
- var key = keys.pop();
241
- if (key in object) return next.value = key, next.done = !1, next;
242
- }
243
- return next.done = !0, next;
244
- };
245
- }, exports.values = values, Context.prototype = {
246
- constructor: Context,
247
- reset: function (skipTempReset) {
248
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
249
- },
250
- stop: function () {
251
- this.done = !0;
252
- var rootRecord = this.tryEntries[0].completion;
253
- if ("throw" === rootRecord.type) throw rootRecord.arg;
254
- return this.rval;
255
- },
256
- dispatchException: function (exception) {
257
- if (this.done) throw exception;
258
- var context = this;
259
- function handle(loc, caught) {
260
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
261
- }
262
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
263
- var entry = this.tryEntries[i],
264
- record = entry.completion;
265
- if ("root" === entry.tryLoc) return handle("end");
266
- if (entry.tryLoc <= this.prev) {
267
- var hasCatch = hasOwn.call(entry, "catchLoc"),
268
- hasFinally = hasOwn.call(entry, "finallyLoc");
269
- if (hasCatch && hasFinally) {
270
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
271
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
272
- } else if (hasCatch) {
273
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
274
- } else {
275
- if (!hasFinally) throw new Error("try statement without catch or finally");
276
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
277
- }
278
- }
279
- }
280
- },
281
- abrupt: function (type, arg) {
282
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
283
- var entry = this.tryEntries[i];
284
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
285
- var finallyEntry = entry;
286
- break;
287
- }
288
- }
289
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
290
- var record = finallyEntry ? finallyEntry.completion : {};
291
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
292
- },
293
- complete: function (record, afterLoc) {
294
- if ("throw" === record.type) throw record.arg;
295
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
296
- },
297
- finish: function (finallyLoc) {
298
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
299
- var entry = this.tryEntries[i];
300
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
301
- }
302
- },
303
- catch: function (tryLoc) {
304
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
305
- var entry = this.tryEntries[i];
306
- if (entry.tryLoc === tryLoc) {
307
- var record = entry.completion;
308
- if ("throw" === record.type) {
309
- var thrown = record.arg;
310
- resetTryEntry(entry);
311
- }
312
- return thrown;
313
- }
314
- }
315
- throw new Error("illegal catch attempt");
316
- },
317
- delegateYield: function (iterable, resultName, nextLoc) {
318
- return this.delegate = {
319
- iterator: values(iterable),
320
- resultName: resultName,
321
- nextLoc: nextLoc
322
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
323
- }
324
- }, exports;
8
+ function _arrayWithHoles(r) {
9
+ if (Array.isArray(r)) return r;
325
10
  }
326
- function _typeof(obj) {
327
- "@babel/helpers - typeof";
328
-
329
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
330
- return typeof obj;
331
- } : function (obj) {
332
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
333
- }, _typeof(obj);
11
+ function _arrayWithoutHoles(r) {
12
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
334
13
  }
335
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
14
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
336
15
  try {
337
- var info = gen[key](arg);
338
- var value = info.value;
339
- } catch (error) {
340
- reject(error);
341
- return;
342
- }
343
- if (info.done) {
344
- resolve(value);
345
- } else {
346
- Promise.resolve(value).then(_next, _throw);
16
+ var i = n[a](c),
17
+ u = i.value;
18
+ } catch (n) {
19
+ return void e(n);
347
20
  }
21
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
348
22
  }
349
- function _asyncToGenerator(fn) {
23
+ function _asyncToGenerator(n) {
350
24
  return function () {
351
- var self = this,
352
- args = arguments;
353
- return new Promise(function (resolve, reject) {
354
- var gen = fn.apply(self, args);
355
- function _next(value) {
356
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
25
+ var t = this,
26
+ e = arguments;
27
+ return new Promise(function (r, o) {
28
+ var a = n.apply(t, e);
29
+ function _next(n) {
30
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
357
31
  }
358
- function _throw(err) {
359
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
32
+ function _throw(n) {
33
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
360
34
  }
361
- _next(undefined);
35
+ _next(void 0);
362
36
  });
363
37
  };
364
38
  }
365
- function _classCallCheck(instance, Constructor) {
366
- if (!(instance instanceof Constructor)) {
367
- throw new TypeError("Cannot call a class as a function");
368
- }
39
+ function _classCallCheck(a, n) {
40
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
369
41
  }
370
- function _defineProperties(target, props) {
371
- for (var i = 0; i < props.length; i++) {
372
- var descriptor = props[i];
373
- descriptor.enumerable = descriptor.enumerable || false;
374
- descriptor.configurable = true;
375
- if ("value" in descriptor) descriptor.writable = true;
376
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
42
+ function _defineProperties(e, r) {
43
+ for (var t = 0; t < r.length; t++) {
44
+ var o = r[t];
45
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
377
46
  }
378
47
  }
379
- function _createClass(Constructor, protoProps, staticProps) {
380
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
381
- if (staticProps) _defineProperties(Constructor, staticProps);
382
- Object.defineProperty(Constructor, "prototype", {
48
+ function _createClass(e, r, t) {
49
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
383
50
  writable: false
384
- });
385
- return Constructor;
386
- }
387
- function _defineProperty(obj, key, value) {
388
- key = _toPropertyKey(key);
389
- if (key in obj) {
390
- Object.defineProperty(obj, key, {
391
- value: value,
392
- enumerable: true,
393
- configurable: true,
394
- writable: true
395
- });
396
- } else {
397
- obj[key] = value;
398
- }
399
- return obj;
400
- }
401
- function _slicedToArray(arr, i) {
402
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
403
- }
404
- function _toConsumableArray(arr) {
405
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
406
- }
407
- function _arrayWithoutHoles(arr) {
408
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
409
- }
410
- function _arrayWithHoles(arr) {
411
- if (Array.isArray(arr)) return arr;
412
- }
413
- function _iterableToArray(iter) {
414
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
415
- }
416
- function _unsupportedIterableToArray(o, minLen) {
417
- if (!o) return;
418
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
419
- var n = Object.prototype.toString.call(o).slice(8, -1);
420
- if (n === "Object" && o.constructor) n = o.constructor.name;
421
- if (n === "Map" || n === "Set") return Array.from(o);
422
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
423
- }
424
- function _arrayLikeToArray(arr, len) {
425
- if (len == null || len > arr.length) len = arr.length;
426
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
427
- return arr2;
51
+ }), e;
428
52
  }
429
- function _nonIterableSpread() {
430
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
431
- }
432
- function _nonIterableRest() {
433
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
434
- }
435
- function _createForOfIteratorHelper(o, allowArrayLike) {
436
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
437
- if (!it) {
438
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
439
- if (it) o = it;
440
- var i = 0;
441
- var F = function () {};
53
+ function _createForOfIteratorHelper(r, e) {
54
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
55
+ if (!t) {
56
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
57
+ t && (r = t);
58
+ var n = 0,
59
+ F = function () {};
442
60
  return {
443
61
  s: F,
444
62
  n: function () {
445
- if (i >= o.length) return {
63
+ return n >= r.length ? {
446
64
  done: true
447
- };
448
- return {
65
+ } : {
449
66
  done: false,
450
- value: o[i++]
67
+ value: r[n++]
451
68
  };
452
69
  },
453
- e: function (e) {
454
- throw e;
70
+ e: function (r) {
71
+ throw r;
455
72
  },
456
73
  f: F
457
74
  };
458
75
  }
459
76
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
460
77
  }
461
- var normalCompletion = true,
462
- didErr = false,
463
- err;
78
+ var o,
79
+ a = true,
80
+ u = false;
464
81
  return {
465
82
  s: function () {
466
- it = it.call(o);
83
+ t = t.call(r);
467
84
  },
468
85
  n: function () {
469
- var step = it.next();
470
- normalCompletion = step.done;
471
- return step;
86
+ var r = t.next();
87
+ return a = r.done, r;
472
88
  },
473
- e: function (e) {
474
- didErr = true;
475
- err = e;
89
+ e: function (r) {
90
+ u = true, o = r;
476
91
  },
477
92
  f: function () {
478
93
  try {
479
- if (!normalCompletion && it.return != null) it.return();
94
+ a || null == t.return || t.return();
480
95
  } finally {
481
- if (didErr) throw err;
96
+ if (u) throw o;
482
97
  }
483
98
  }
484
99
  };
485
100
  }
486
- function _toPrimitive(input, hint) {
487
- if (typeof input !== "object" || input === null) return input;
488
- var prim = input[Symbol.toPrimitive];
489
- if (prim !== undefined) {
490
- var res = prim.call(input, hint || "default");
491
- if (typeof res !== "object") return res;
101
+ function _defineProperty(e, r, t) {
102
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
103
+ value: t,
104
+ enumerable: true,
105
+ configurable: true,
106
+ writable: true
107
+ }) : e[r] = t, e;
108
+ }
109
+ function _iterableToArray(r) {
110
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
111
+ }
112
+ function _iterableToArrayLimit(r, l) {
113
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
114
+ if (null != t) {
115
+ var e,
116
+ n,
117
+ i,
118
+ u,
119
+ a = [],
120
+ f = true,
121
+ o = false;
122
+ try {
123
+ if (i = (t = t.call(r)).next, 0 === l) {
124
+ if (Object(t) !== t) return;
125
+ f = !1;
126
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
127
+ } catch (r) {
128
+ o = true, n = r;
129
+ } finally {
130
+ try {
131
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
132
+ } finally {
133
+ if (o) throw n;
134
+ }
135
+ }
136
+ return a;
137
+ }
138
+ }
139
+ function _nonIterableRest() {
140
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
141
+ }
142
+ function _nonIterableSpread() {
143
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
144
+ }
145
+ function _regenerator() {
146
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
147
+ var e,
148
+ t,
149
+ r = "function" == typeof Symbol ? Symbol : {},
150
+ n = r.iterator || "@@iterator",
151
+ o = r.toStringTag || "@@toStringTag";
152
+ function i(r, n, o, i) {
153
+ var c = n && n.prototype instanceof Generator ? n : Generator,
154
+ u = Object.create(c.prototype);
155
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
156
+ var i,
157
+ c,
158
+ u,
159
+ f = 0,
160
+ p = o || [],
161
+ y = false,
162
+ G = {
163
+ p: 0,
164
+ n: 0,
165
+ v: e,
166
+ a: d,
167
+ f: d.bind(e, 4),
168
+ d: function (t, r) {
169
+ return i = t, c = 0, u = e, G.n = r, a;
170
+ }
171
+ };
172
+ function d(r, n) {
173
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
174
+ var o,
175
+ i = p[t],
176
+ d = G.p,
177
+ l = i[2];
178
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
179
+ }
180
+ if (o || r > 1) return a;
181
+ throw y = true, n;
182
+ }
183
+ return function (o, p, l) {
184
+ if (f > 1) throw TypeError("Generator is already running");
185
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
186
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
187
+ try {
188
+ if (f = 2, i) {
189
+ if (c || (o = "next"), t = i[o]) {
190
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
191
+ if (!t.done) return t;
192
+ u = t.value, c < 2 && (c = 0);
193
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
194
+ i = e;
195
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
196
+ } catch (t) {
197
+ i = e, c = 1, u = t;
198
+ } finally {
199
+ f = 1;
200
+ }
201
+ }
202
+ return {
203
+ value: t,
204
+ done: y
205
+ };
206
+ };
207
+ }(r, o, i), true), u;
208
+ }
209
+ var a = {};
210
+ function Generator() {}
211
+ function GeneratorFunction() {}
212
+ function GeneratorFunctionPrototype() {}
213
+ t = Object.getPrototypeOf;
214
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
215
+ return this;
216
+ }), t),
217
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
218
+ function f(e) {
219
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
220
+ }
221
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
222
+ return this;
223
+ }), _regeneratorDefine(u, "toString", function () {
224
+ return "[object Generator]";
225
+ }), (_regenerator = function () {
226
+ return {
227
+ w: i,
228
+ m: f
229
+ };
230
+ })();
231
+ }
232
+ function _regeneratorDefine(e, r, n, t) {
233
+ var i = Object.defineProperty;
234
+ try {
235
+ i({}, "", {});
236
+ } catch (e) {
237
+ i = 0;
238
+ }
239
+ _regeneratorDefine = function (e, r, n, t) {
240
+ function o(r, n) {
241
+ _regeneratorDefine(e, r, function (e) {
242
+ return this._invoke(r, n, e);
243
+ });
244
+ }
245
+ r ? i ? i(e, r, {
246
+ value: n,
247
+ enumerable: !t,
248
+ configurable: !t,
249
+ writable: !t
250
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
251
+ }, _regeneratorDefine(e, r, n, t);
252
+ }
253
+ function _slicedToArray(r, e) {
254
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
255
+ }
256
+ function _toConsumableArray(r) {
257
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
258
+ }
259
+ function _toPrimitive(t, r) {
260
+ if ("object" != typeof t || !t) return t;
261
+ var e = t[Symbol.toPrimitive];
262
+ if (void 0 !== e) {
263
+ var i = e.call(t, r);
264
+ if ("object" != typeof i) return i;
492
265
  throw new TypeError("@@toPrimitive must return a primitive value.");
493
266
  }
494
- return (hint === "string" ? String : Number)(input);
267
+ return (String )(t);
268
+ }
269
+ function _toPropertyKey(t) {
270
+ var i = _toPrimitive(t, "string");
271
+ return "symbol" == typeof i ? i : i + "";
495
272
  }
496
- function _toPropertyKey(arg) {
497
- var key = _toPrimitive(arg, "string");
498
- return typeof key === "symbol" ? key : String(key);
273
+ function _typeof(o) {
274
+ "@babel/helpers - typeof";
275
+
276
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
277
+ return typeof o;
278
+ } : function (o) {
279
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
280
+ }, _typeof(o);
281
+ }
282
+ function _unsupportedIterableToArray(r, a) {
283
+ if (r) {
284
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
285
+ var t = {}.toString.call(r).slice(8, -1);
286
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
287
+ }
499
288
  }
500
289
 
501
290
  exports.arrayLikeToArray = _arrayLikeToArray;
@@ -510,7 +299,8 @@ exports.iterableToArray = _iterableToArray;
510
299
  exports.iterableToArrayLimit = _iterableToArrayLimit;
511
300
  exports.nonIterableRest = _nonIterableRest;
512
301
  exports.nonIterableSpread = _nonIterableSpread;
513
- exports.regeneratorRuntime = _regeneratorRuntime;
302
+ exports.regenerator = _regenerator;
303
+ exports.regeneratorDefine = _regeneratorDefine;
514
304
  exports.slicedToArray = _slicedToArray;
515
305
  exports.toConsumableArray = _toConsumableArray;
516
306
  exports.toPrimitive = _toPrimitive;