nmrium 0.40.1 → 0.41.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 (274) hide show
  1. package/lib/component/1d/FooterBanner.js +5 -4
  2. package/lib/component/1d/Viewer1D.js +121 -104
  3. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
  4. package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
  5. package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
  6. package/lib/component/1d/multiplicityTree/TreeColors.d.ts +1 -1
  7. package/lib/component/1d/multiplicityTree/TreeColors.js +1 -6
  8. package/lib/component/1d/multiplicityTree/TreeNodes.d.ts +1 -1
  9. package/lib/component/1d/tool/BaseLineZones.d.ts +1 -1
  10. package/lib/component/1d/tool/BaseLineZones.js +7 -4
  11. package/lib/component/1d/tool/PeakPointer.js +1 -1
  12. package/lib/component/1d/utilities/scale.js +1 -3
  13. package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +1 -1
  14. package/lib/component/1d-2d/tools/BrushXY.js +10 -7
  15. package/lib/component/1d-2d/tools/CrossLinePointer.js +1 -1
  16. package/lib/component/2d/FooterBanner.js +3 -2
  17. package/lib/component/2d/Viewer2D.js +51 -29
  18. package/lib/component/2d/XAxis.js +1 -1
  19. package/lib/component/2d/YAxis.js +1 -1
  20. package/lib/component/2d/utilities/SliceScale.d.ts +2 -2
  21. package/lib/component/2d/utilities/scale.d.ts +5 -5
  22. package/lib/component/2d/zones/Signal.js +1 -2
  23. package/lib/component/EventsTrackers/BrushTracker.d.ts +4 -1
  24. package/lib/component/EventsTrackers/BrushTracker.js +21 -6
  25. package/lib/component/NMRium.d.ts +2 -2
  26. package/lib/component/NMRium.js +39 -26
  27. package/lib/component/assignment/AssignmentsReducer.d.ts +1 -1
  28. package/lib/component/assignment/actions/setActiveAssignment.js +1 -1
  29. package/lib/component/elements/InputRange.js +1 -1
  30. package/lib/component/elements/MenuButton.d.ts +1 -1
  31. package/lib/component/elements/MoleculeSelection.d.ts +1 -1
  32. package/lib/component/elements/ReactTable/ReactTable.d.ts +1 -1
  33. package/lib/component/elements/Tab/DeleteButton.d.ts +1 -1
  34. package/lib/component/elements/ToolbarMenu.d.ts +1 -1
  35. package/lib/component/elements/accordion/Accordion.d.ts +1 -1
  36. package/lib/component/elements/draggable/SVGDraggable.d.ts +1 -1
  37. package/lib/component/elements/draggable/useDraggable.d.ts +1 -1
  38. package/lib/component/elements/dropDownButton/DropDownButton.d.ts +1 -1
  39. package/lib/component/elements/dropDownButton/DropDownList.js +3 -1
  40. package/lib/component/elements/formik/SelectBox.d.ts +1 -1
  41. package/lib/component/elements/popup/Alert/AlertBlock.d.ts +3 -2
  42. package/lib/component/elements/popup/Alert/AlertBlock.js +21 -15
  43. package/lib/component/elements/popup/Alert/Context.d.ts +26 -2
  44. package/lib/component/elements/popup/Alert/Context.js +6 -2
  45. package/lib/component/elements/popup/Alert/Provider.d.ts +4 -3
  46. package/lib/component/elements/popup/Alert/Provider.js +3 -3
  47. package/lib/component/elements/popup/Modal/ConfirmDialog.d.ts +1 -1
  48. package/lib/component/elements/popup/Modal/Provider.js +3 -1
  49. package/lib/component/elements/popup/options.d.ts +22 -19
  50. package/lib/component/elements/resizer/Resizer.d.ts +2 -2
  51. package/lib/component/elements/toggle/ToggleButton.d.ts +2 -2
  52. package/lib/component/elements/toggle/ToggleButton.js +1 -1
  53. package/lib/component/header/ZeroFillingOptionsPanel.js +3 -8
  54. package/lib/component/highlight/index.d.ts +1 -1
  55. package/lib/component/hooks/useCheckToolsVisibility.js +2 -2
  56. package/lib/component/hooks/useExport.js +2 -1
  57. package/lib/component/hooks/useFormatNumberByNucleus.d.ts +1 -1
  58. package/lib/component/hooks/usePanelPreferences.js +2 -2
  59. package/lib/component/hooks/useXScale.d.ts +1 -1
  60. package/lib/component/hooks/useXYReduce.d.ts +2 -2
  61. package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +2 -0
  62. package/lib/component/modal/AboutSpectrumSimulationModal.js +49 -0
  63. package/lib/component/modal/AlignSpectraModal.js +11 -1
  64. package/lib/component/modal/MultipletAnalysisModal.js +2 -1
  65. package/lib/component/modal/PredictSpectraModal.d.ts +1 -2
  66. package/lib/component/modal/PredictSpectraModal.js +25 -28
  67. package/lib/component/modal/changeSum/ChangeSumModal.js +1 -1
  68. package/lib/component/modal/editRange/forms/components/SignalsForm.js +1 -1
  69. package/lib/component/modal/editZone/SignalsForm.js +1 -1
  70. package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -1
  71. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +4 -0
  72. package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +1 -1
  73. package/lib/component/modal/setting/settingsValidation.js +2 -2
  74. package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
  75. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
  76. package/lib/component/panels/IntegralsPanel/IntegralTable.js +4 -7
  77. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -1
  78. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -4
  79. package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -1
  80. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +3 -5
  81. package/lib/component/panels/Panels.js +13 -0
  82. package/lib/component/panels/PeaksPanel/PeaksTable.js +1 -1
  83. package/lib/component/panels/SpectrumsPanel/SpectraTable.js +1 -1
  84. package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +3 -1
  85. package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
  86. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +2 -1
  87. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
  88. package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
  89. package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
  90. package/lib/component/panels/databasePanel/DatabasePanel.js +1 -1
  91. package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
  92. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
  93. package/lib/component/panels/extra/utilities/UseToggleStatus.js +1 -1
  94. package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
  95. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -1
  96. package/lib/component/panels/predictionPanel/PredictionPanel.js +3 -2
  97. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +2 -2
  98. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts +1 -0
  99. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +88 -0
  100. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts +11 -0
  101. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +37 -0
  102. package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.d.ts +4 -0
  103. package/lib/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +25 -0
  104. package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts +5 -0
  105. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +60 -0
  106. package/lib/component/reducer/Reducer.d.ts +13 -12
  107. package/lib/component/reducer/Reducer.js +251 -239
  108. package/lib/component/reducer/actions/AssignmentsActions.d.ts +1 -1
  109. package/lib/component/reducer/actions/AssignmentsActions.js +1 -1
  110. package/lib/component/reducer/actions/DatabaseActions.js +2 -1
  111. package/lib/component/reducer/actions/DomainActions.d.ts +7 -2
  112. package/lib/component/reducer/actions/DomainActions.js +30 -1
  113. package/lib/component/reducer/actions/FiltersActions.js +4 -4
  114. package/lib/component/reducer/actions/LoadActions.js +1 -1
  115. package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -0
  116. package/lib/component/reducer/actions/MoleculeActions.js +51 -2
  117. package/lib/component/reducer/actions/SpectrumsActions.d.ts +8 -2
  118. package/lib/component/reducer/actions/SpectrumsActions.js +43 -4
  119. package/lib/component/reducer/actions/ToolsActions.js +2 -2
  120. package/lib/component/reducer/actions/ZonesActions.js +1 -1
  121. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +4 -6
  122. package/lib/component/reducer/preferences/actions/setActiveWorkspace.js +1 -1
  123. package/lib/component/reducer/preferences/actions/setPreferences.js +3 -4
  124. package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
  125. package/lib/component/reducer/preferences/preferencesReducer.js +5 -1
  126. package/lib/component/reducer/preferences/utilities/flatObject.js +1 -1
  127. package/lib/component/toolbar/ToolTypes.d.ts +4 -4
  128. package/lib/component/utility/export.js +9 -9
  129. package/lib/component/utility/getSpectraObjectPaths.js +1 -1
  130. package/lib/component/utility/getUniqueNuclei.js +1 -1
  131. package/lib/component/utility/jpathToArray.js +1 -1
  132. package/lib/component/workspaces/index.d.ts +1 -0
  133. package/lib/component/workspaces/index.js +2 -0
  134. package/lib/component/workspaces/simulation.d.ts +2 -0
  135. package/lib/component/workspaces/simulation.js +68 -0
  136. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  137. package/lib/data/PredictionManager.d.ts +8 -7
  138. package/lib/data/PredictionManager.js +95 -22
  139. package/lib/data/SpectraManager.js +1 -1
  140. package/lib/data/constants/DefaultPathLengths.d.ts +1 -3
  141. package/lib/data/constants/SignalsKinds.d.ts +2 -2
  142. package/lib/data/data1d/Spectrum1D/generateJGraphData.js +3 -3
  143. package/lib/data/data1d/Spectrum1D/getReferenceShift.js +5 -4
  144. package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +1 -1
  145. package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -13
  146. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +10 -9
  147. package/lib/data/data1d/database.d.ts +5 -5
  148. package/lib/data/data1d/database.js +3 -3
  149. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
  150. package/lib/data/data1d/multipleSpectraAnalysis.js +1 -1
  151. package/lib/data/data1d/spectrumSimulation.d.ts +14 -0
  152. package/lib/data/data1d/spectrumSimulation.js +53 -0
  153. package/lib/data/data2d/Spectrum2D/contours.d.ts +8 -4
  154. package/lib/data/data2d/Spectrum2D/contours.js +7 -1
  155. package/lib/data/data2d/Spectrum2D/getMissingProjection.js +6 -6
  156. package/lib/data/data2d/Spectrum2D/getShift.js +1 -1
  157. package/lib/data/data2d/Spectrum2D/getSlice.js +4 -4
  158. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +5 -5
  159. package/lib/data/getDefaultMatrixFilters.d.ts +2 -2
  160. package/lib/data/matrixGeneration.js +1 -1
  161. package/lib/data/molecules/MoleculeManager.d.ts +1 -1
  162. package/lib/data/molecules/MoleculeManager.js +7 -7
  163. package/lib/data/parseMeta/linkMetaWithSpectra.js +2 -1
  164. package/lib/data/types/data1d/MatrixOptions.d.ts +2 -2
  165. package/lib/data/utilities/FindUtilities.js +4 -4
  166. package/lib/data/utilities/RangeUtilities.d.ts +1 -1
  167. package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
  168. package/lib/data/utilities/calculateSanPlot.js +3 -3
  169. package/lib/data/utilities/generateNumbersPowerOfX.js +1 -1
  170. package/lib/utils/clipboard/clipboard.d.ts +1 -1
  171. package/lib/versionInfo.js +1 -1
  172. package/lib-cjs/component/1d/FooterBanner.js +5 -4
  173. package/lib-cjs/component/1d/Viewer1D.js +120 -103
  174. package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
  175. package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
  176. package/lib-cjs/component/1d/multiplicityTree/TreeColors.js +1 -6
  177. package/lib-cjs/component/1d/tool/BaseLineZones.js +6 -3
  178. package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
  179. package/lib-cjs/component/1d/utilities/scale.js +1 -3
  180. package/lib-cjs/component/1d-2d/tools/BrushXY.js +10 -7
  181. package/lib-cjs/component/1d-2d/tools/CrossLinePointer.js +1 -1
  182. package/lib-cjs/component/2d/FooterBanner.js +3 -2
  183. package/lib-cjs/component/2d/Viewer2D.js +50 -28
  184. package/lib-cjs/component/2d/XAxis.js +1 -1
  185. package/lib-cjs/component/2d/YAxis.js +1 -1
  186. package/lib-cjs/component/2d/zones/Signal.js +1 -2
  187. package/lib-cjs/component/EventsTrackers/BrushTracker.js +21 -6
  188. package/lib-cjs/component/NMRium.js +37 -24
  189. package/lib-cjs/component/assignment/actions/setActiveAssignment.js +1 -1
  190. package/lib-cjs/component/elements/InputRange.js +1 -1
  191. package/lib-cjs/component/elements/dropDownButton/DropDownList.js +3 -1
  192. package/lib-cjs/component/elements/popup/Alert/AlertBlock.js +21 -15
  193. package/lib-cjs/component/elements/popup/Alert/Context.js +6 -2
  194. package/lib-cjs/component/elements/popup/Alert/Provider.js +2 -2
  195. package/lib-cjs/component/elements/popup/Modal/Provider.js +3 -1
  196. package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +3 -8
  197. package/lib-cjs/component/hooks/useCheckToolsVisibility.js +2 -2
  198. package/lib-cjs/component/hooks/useExport.js +2 -1
  199. package/lib-cjs/component/hooks/usePanelPreferences.js +1 -1
  200. package/lib-cjs/component/modal/AboutSpectrumSimulationModal.js +54 -0
  201. package/lib-cjs/component/modal/AlignSpectraModal.js +11 -1
  202. package/lib-cjs/component/modal/MultipletAnalysisModal.js +2 -1
  203. package/lib-cjs/component/modal/PredictSpectraModal.js +24 -27
  204. package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +1 -1
  205. package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +1 -1
  206. package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -1
  207. package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +1 -1
  208. package/lib-cjs/component/modal/setting/settings-tabs/DisplayTabContent.js +4 -0
  209. package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +1 -1
  210. package/lib-cjs/component/modal/setting/settingsValidation.js +2 -2
  211. package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +4 -7
  212. package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -4
  213. package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +3 -5
  214. package/lib-cjs/component/panels/Panels.js +13 -0
  215. package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +1 -1
  216. package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +1 -1
  217. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +3 -1
  218. package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
  219. package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
  220. package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +1 -1
  221. package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +1 -1
  222. package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
  223. package/lib-cjs/component/panels/extra/utilities/UseToggleStatus.js +1 -1
  224. package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
  225. package/lib-cjs/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -1
  226. package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +3 -2
  227. package/lib-cjs/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
  228. package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulation.js +94 -0
  229. package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +42 -0
  230. package/lib-cjs/component/panels/spectrumSimulation/SpectrumSimulationSimpleOptions.js +31 -0
  231. package/lib-cjs/component/panels/spectrumSimulation/SpinSystemTable.js +67 -0
  232. package/lib-cjs/component/reducer/Reducer.js +251 -239
  233. package/lib-cjs/component/reducer/actions/AssignmentsActions.js +1 -1
  234. package/lib-cjs/component/reducer/actions/DatabaseActions.js +2 -1
  235. package/lib-cjs/component/reducer/actions/DomainActions.js +31 -1
  236. package/lib-cjs/component/reducer/actions/FiltersActions.js +4 -4
  237. package/lib-cjs/component/reducer/actions/LoadActions.js +1 -1
  238. package/lib-cjs/component/reducer/actions/MoleculeActions.js +54 -2
  239. package/lib-cjs/component/reducer/actions/SpectrumsActions.js +43 -3
  240. package/lib-cjs/component/reducer/actions/ToolsActions.js +2 -2
  241. package/lib-cjs/component/reducer/actions/ZonesActions.js +1 -1
  242. package/lib-cjs/component/reducer/preferences/actions/setActiveWorkspace.js +1 -1
  243. package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +3 -4
  244. package/lib-cjs/component/reducer/preferences/preferencesReducer.js +5 -1
  245. package/lib-cjs/component/reducer/preferences/utilities/flatObject.js +1 -1
  246. package/lib-cjs/component/utility/export.js +9 -9
  247. package/lib-cjs/component/utility/getSpectraObjectPaths.js +1 -1
  248. package/lib-cjs/component/utility/getUniqueNuclei.js +1 -1
  249. package/lib-cjs/component/utility/jpathToArray.js +1 -1
  250. package/lib-cjs/component/workspaces/index.js +2 -0
  251. package/lib-cjs/component/workspaces/simulation.js +71 -0
  252. package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
  253. package/lib-cjs/data/PredictionManager.js +96 -22
  254. package/lib-cjs/data/SpectraManager.js +1 -1
  255. package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +3 -3
  256. package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +5 -4
  257. package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -13
  258. package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +10 -9
  259. package/lib-cjs/data/data1d/database.js +3 -3
  260. package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +1 -1
  261. package/lib-cjs/data/data1d/spectrumSimulation.js +58 -0
  262. package/lib-cjs/data/data2d/Spectrum2D/contours.js +7 -1
  263. package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +6 -6
  264. package/lib-cjs/data/data2d/Spectrum2D/getShift.js +1 -1
  265. package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +4 -4
  266. package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +5 -5
  267. package/lib-cjs/data/matrixGeneration.js +1 -1
  268. package/lib-cjs/data/molecules/MoleculeManager.js +7 -7
  269. package/lib-cjs/data/parseMeta/linkMetaWithSpectra.js +2 -1
  270. package/lib-cjs/data/utilities/FindUtilities.js +4 -4
  271. package/lib-cjs/data/utilities/calculateSanPlot.js +3 -3
  272. package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +1 -1
  273. package/lib-cjs/versionInfo.js +1 -1
  274. package/package.json +21 -20
@@ -20,9 +20,10 @@ const References_1 = require("../../constants/References");
20
20
  * @param {string} [options.reference]
21
21
  */
22
22
  function getReferenceShift(datum1D, options) {
23
- let { from, to, nbPeaks, targetX, reference } = options;
23
+ const { reference } = options;
24
+ let { from, to, nbPeaks, targetX } = options;
24
25
  if (reference) {
25
- let data = (0, References_1.getRange)({ reference, nucleus: datum1D.nucleus });
26
+ const data = (0, References_1.getRange)({ reference, nucleus: datum1D.nucleus });
26
27
  from = data.from;
27
28
  to = data.to;
28
29
  nbPeaks = data.nbPeaks;
@@ -43,7 +44,7 @@ function xyCalibrate(data, range = {}, options = {}) {
43
44
  polynomial: 3,
44
45
  },
45
46
  }, } = options;
46
- let { from, to } = range;
47
+ const { from, to } = range;
47
48
  if (from === undefined || to === undefined)
48
49
  return 0;
49
50
  const fromIndex = (0, ml_spectra_processing_1.xFindClosestIndex)(data.x, from);
@@ -52,7 +53,7 @@ function xyCalibrate(data, range = {}, options = {}) {
52
53
  x: data.x.slice(fromIndex, toIndex),
53
54
  y: data.y.slice(fromIndex, toIndex),
54
55
  };
55
- let peaks = (0, ml_gsd_1.gsd)(sliceddata, gsdOptions)
56
+ const peaks = (0, ml_gsd_1.gsd)(sliceddata, gsdOptions)
56
57
  .sort((a, b) => b.y - a.y)
57
58
  .slice(0, nbPeaks);
58
59
  if (peaks.length === 0)
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.changeIntegralsRelative = void 0;
4
- function changeIntegralsRelative(spectrum, newIntegral) {
5
- const index = spectrum.integrals.values.findIndex((integral) => integral.id === newIntegral.id);
4
+ function changeIntegralsRelative(spectrum, data) {
5
+ const { id, value } = data;
6
+ const index = spectrum.integrals.values.findIndex((integral) => integral.id === id);
6
7
  if (index !== -1) {
7
- const ratio = spectrum.integrals.values[index].absolute / newIntegral.value;
8
- const result = { values: [], sum: 0 };
9
- for (const [index, integral] of spectrum.integrals.values.entries()) {
10
- const newIntegralValue = integral.absolute / ratio;
11
- result.sum += newIntegralValue;
12
- result.values[index] = {
13
- ...integral,
14
- integral: newIntegralValue,
15
- };
8
+ const { absolute } = spectrum.integrals.values[index];
9
+ const ratio = absolute / value;
10
+ let sum = 0;
11
+ const integrals = [];
12
+ for (const integralRecord of spectrum.integrals.values) {
13
+ const integral = integralRecord.absolute / ratio;
14
+ sum += integral;
15
+ integrals.push({ ...integralRecord, integral });
16
16
  }
17
- const { values, sum } = result;
18
- spectrum.integrals.values = values;
17
+ spectrum.integrals.values = integrals;
19
18
  spectrum.integrals.options = {
20
19
  ...spectrum.integrals.options,
21
20
  mf: undefined,
@@ -9,10 +9,16 @@ exports.changeRangeRelativeValue = void 0;
9
9
  function changeRangeRelativeValue(spectrum, data) {
10
10
  const { id, value } = data;
11
11
  const index = spectrum.ranges.values.findIndex((range) => range.id === id);
12
- if (index !== -1 && spectrum.ranges.options.sum) {
13
- const { absolute, integration } = spectrum.ranges.values[index];
12
+ if (index !== -1) {
13
+ const { absolute } = spectrum.ranges.values[index];
14
14
  const ratio = absolute / value;
15
- const sum = (value / integration) * spectrum.ranges.options.sum;
15
+ const ranges = [];
16
+ let sum = 0;
17
+ for (const range of spectrum.ranges.values) {
18
+ const integration = range.absolute / ratio;
19
+ sum += integration;
20
+ ranges.push({ ...range, integration });
21
+ }
16
22
  spectrum.ranges.options = {
17
23
  ...spectrum.ranges.options,
18
24
  mf: undefined,
@@ -20,12 +26,7 @@ function changeRangeRelativeValue(spectrum, data) {
20
26
  sumAuto: false,
21
27
  sum,
22
28
  };
23
- spectrum.ranges.values = spectrum.ranges.values.map((range) => {
24
- return {
25
- ...range,
26
- integration: range.absolute / ratio,
27
- };
28
- });
29
+ spectrum.ranges.values = ranges;
29
30
  }
30
31
  }
31
32
  exports.changeRangeRelativeValue = changeRangeRelativeValue;
@@ -50,8 +50,8 @@ function prepareGetSolvents(data) {
50
50
  // });
51
51
  // }
52
52
  function prepareMoleculesDB(array) {
53
- let moleculesDB = new openchemlib_utils_1.MoleculesDB(full_1.default);
54
- for (let entry of array) {
53
+ const moleculesDB = new openchemlib_utils_1.MoleculesDB(full_1.default);
54
+ for (const entry of array) {
55
55
  if (entry.ocl) {
56
56
  try {
57
57
  const molecule = full_1.default.Molecule.fromIDCode(entry.ocl.idCode, entry.ocl.coordinates);
@@ -91,7 +91,7 @@ function prepareData(data) {
91
91
  const result = [];
92
92
  let index = 0;
93
93
  for (const item of data) {
94
- let ids = [];
94
+ const ids = [];
95
95
  const { ranges, ...restItemKeys } = item;
96
96
  if (!ranges) {
97
97
  ids.push((0, uuid_1.v4)());
@@ -87,7 +87,7 @@ function analyzeSpectra(spectraAnalysis, options) {
87
87
  }
88
88
  exports.analyzeSpectra = analyzeSpectra;
89
89
  function generateAnalyzeSpectra(multipleSpectraAnalysis, spectra, nucleus) {
90
- let data = {};
90
+ const data = {};
91
91
  const { sum, columns, code } = multipleSpectraAnalysis.analysisOptions;
92
92
  for (const columnKey in columns) {
93
93
  const { from, to } = columns[columnKey];
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.simulateSpectrum = exports.getSpinSystems = exports.defaultSimulationOptions = void 0;
4
+ const nmr_processing_1 = require("nmr-processing");
5
+ exports.defaultSimulationOptions = {
6
+ data: [],
7
+ options: {
8
+ frequency: 200,
9
+ from: -1,
10
+ to: 12,
11
+ nbPoints: 2 ** 16,
12
+ lineWidth: 1,
13
+ },
14
+ };
15
+ function getSpinSystems() {
16
+ const spinSystem = [];
17
+ let temp = 'A';
18
+ for (let i = 66; i <= 72; i++) {
19
+ temp += String.fromCodePoint(i);
20
+ spinSystem.push(temp);
21
+ }
22
+ return spinSystem;
23
+ }
24
+ exports.getSpinSystems = getSpinSystems;
25
+ function simulateSpectrum(spinSystem, options) {
26
+ const spinsLength = spinSystem.length;
27
+ const chemicalShifts = new Array(spinsLength);
28
+ const multiplicity = new Array(spinsLength);
29
+ const { data: spinsData, options: simulateOptions } = options;
30
+ for (let i = 0; i < spinsLength; i++) {
31
+ chemicalShifts[i] = spinsData[i][0];
32
+ multiplicity[i] = 2;
33
+ }
34
+ const chemicalShiftsLength = chemicalShifts.length;
35
+ const couplingConstants = new Array(chemicalShiftsLength);
36
+ for (let i = 0; i < chemicalShiftsLength; i++) {
37
+ couplingConstants[i] = new Array(chemicalShiftsLength);
38
+ for (let j = 0; j < chemicalShiftsLength; j++) {
39
+ couplingConstants[i][j] = 0;
40
+ }
41
+ }
42
+ for (let i = 0; i < spinsData.length; i++) {
43
+ for (let j = 1; j < chemicalShiftsLength; j++) {
44
+ const couplingVal = spinsData[i][j];
45
+ const jIndex = j - 1;
46
+ if (couplingVal !== null) {
47
+ couplingConstants[i][jIndex] = couplingVal;
48
+ couplingConstants[jIndex][i] = couplingVal;
49
+ }
50
+ }
51
+ }
52
+ return (0, nmr_processing_1.simulate1D)({
53
+ chemicalShifts,
54
+ couplingConstants,
55
+ levels: multiplicity,
56
+ }, simulateOptions);
57
+ }
58
+ exports.simulateSpectrum = simulateSpectrum;
@@ -39,7 +39,7 @@ function contoursManager(spectrumID, state, options) {
39
39
  }
40
40
  exports.contoursManager = contoursManager;
41
41
  function prepareWheel(value, options) {
42
- let { shiftKey, currentLevel, contourOptions } = options;
42
+ const { shiftKey, currentLevel, contourOptions } = options;
43
43
  const sign = Math.sign(value);
44
44
  const positiveBoundary = contourOptions.positive.contourLevels;
45
45
  const negativeBoundary = contourOptions.negative.contourLevels;
@@ -130,6 +130,12 @@ function getContours(zoomLevel, options) {
130
130
  if (negative) {
131
131
  _range = _range.map((value) => -value);
132
132
  }
133
+ if (_range.every((r) => r === 0)) {
134
+ return {
135
+ contours: _range.map((r) => ({ zValue: r, lines: [] })),
136
+ timeout: false,
137
+ };
138
+ }
133
139
  return conrec.drawContour({
134
140
  contourDrawer: 'basic',
135
141
  levels: _range,
@@ -11,16 +11,16 @@ function getMissingProjection(datum, nucleus, datumInfo, usedColors) {
11
11
  // temporary because nucleus was undefined;
12
12
  if (index === -1)
13
13
  index = 0;
14
- let info = {
14
+ const info = {
15
15
  nucleus: datumInfo.nucleus[index],
16
16
  isFid: false,
17
17
  isComplex: false,
18
18
  dimension: 1,
19
19
  };
20
- let from = index === 0 ? datum.minX : datum.minY;
21
- let to = index === 0 ? datum.maxX : datum.maxY;
22
- let nbPoints = index === 0 ? datum.z[0].length : datum.z.length;
23
- let projection = new Float64Array(nbPoints);
20
+ const from = index === 0 ? datum.minX : datum.minY;
21
+ const to = index === 0 ? datum.maxX : datum.maxY;
22
+ const nbPoints = index === 0 ? datum.z[0].length : datum.z.length;
23
+ const projection = new Float64Array(nbPoints);
24
24
  if (index === 1) {
25
25
  for (let i = 0; i < datum.z.length; i++) {
26
26
  for (let j = 0; j < datum.z[0].length; j++) {
@@ -35,7 +35,7 @@ function getMissingProjection(datum, nucleus, datumInfo, usedColors) {
35
35
  }
36
36
  }
37
37
  }
38
- let data = {
38
+ const data = {
39
39
  x: (0, ml_spectra_processing_1.zoneToX)({ from, to }, nbPoints),
40
40
  re: projection,
41
41
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getShift = void 0;
4
4
  const nmr_processing_1 = require("nmr-processing");
5
5
  function getShift(spectrum) {
6
- let shift = { x: 0, y: 0 };
6
+ const shift = { x: 0, y: 0 };
7
7
  if (spectrum?.filters) {
8
8
  for (const filter of spectrum.filters) {
9
9
  if (filter.name === nmr_processing_1.Filters.shift2DX.id) {
@@ -16,26 +16,26 @@ function getSlice(spectrum, position) {
16
16
  return;
17
17
  if (yIndex < 0 || yIndex >= data.z.length)
18
18
  return;
19
- let infoX = {
19
+ const infoX = {
20
20
  nucleus: info.nucleus[0],
21
21
  isFid: false,
22
22
  isComplex: false,
23
23
  dimension: 1,
24
24
  };
25
- let dataX = {
25
+ const dataX = {
26
26
  x: (0, ml_spectra_processing_1.zoneToX)({ from: data.minX, to: data.maxX }, data.z[0].length),
27
27
  re: new Float64Array(data.z[0].length),
28
28
  };
29
29
  for (let i = 0; i < data.z[0].length; i++) {
30
30
  dataX.re[i] += data.z[yIndex][i];
31
31
  }
32
- let infoY = {
32
+ const infoY = {
33
33
  nucleus: info.nucleus[1],
34
34
  isFid: false,
35
35
  isComplex: false,
36
36
  dimension: 1,
37
37
  };
38
- let dataY = {
38
+ const dataY = {
39
39
  x: (0, ml_spectra_processing_1.zoneToX)({ from: data.minY, to: data.maxY }, data.z.length),
40
40
  re: new Float64Array(data.z.length),
41
41
  };
@@ -32,7 +32,7 @@ exports.getDetectionZones = getDetectionZones;
32
32
  function autoZonesDetection(data, options) {
33
33
  const { clean, tolerances, thresholdFactor, maxPercentCutOff, convolutionByFFT, info: { nucleus: nuclei, originFrequency }, } = options;
34
34
  const { enhanceSymmetry = nuclei[0] === nuclei[1] } = options;
35
- let zones = (0, nmr_processing_1.xyzAutoZonesPicking)(data, {
35
+ const zones = (0, nmr_processing_1.xyzAutoZonesPicking)(data, {
36
36
  nuclei,
37
37
  tolerances,
38
38
  observedFrequencies: originFrequency,
@@ -58,7 +58,7 @@ function getSubMatrix(datum, selectedZone) {
58
58
  [xIndexFrom, xIndexTo] = [xIndexTo, xIndexFrom];
59
59
  if (yIndexFrom > yIndexTo)
60
60
  [yIndexFrom, yIndexTo] = [yIndexTo, yIndexFrom];
61
- let dataMatrix = {
61
+ const dataMatrix = {
62
62
  z: [],
63
63
  maxX: data.minX + xIndexTo * xStep,
64
64
  minX: data.minX + xIndexFrom * xStep,
@@ -67,14 +67,14 @@ function getSubMatrix(datum, selectedZone) {
67
67
  };
68
68
  let maxZ = Number.MIN_SAFE_INTEGER;
69
69
  let minZ = Number.MAX_SAFE_INTEGER;
70
- let nbXPoints = xIndexTo - xIndexFrom + 1;
70
+ const nbXPoints = xIndexTo - xIndexFrom + 1;
71
71
  for (let j = yIndexFrom; j < yIndexTo; j++) {
72
- let row = new Float32Array(nbXPoints);
72
+ const row = new Float32Array(nbXPoints);
73
73
  let xIndex = xIndexFrom;
74
74
  for (let i = 0; i < nbXPoints; i++) {
75
75
  row[i] = data.z[j][xIndex++];
76
76
  }
77
- for (let rowValue of row) {
77
+ for (const rowValue of row) {
78
78
  if (maxZ < rowValue)
79
79
  maxZ = rowValue;
80
80
  if (minZ > rowValue)
@@ -20,7 +20,7 @@ function isLeave(fieldOptions) {
20
20
  function flattenFields(filterName, data, properties, keysPath, parentObject, level) {
21
21
  for (const fieldKey in data) {
22
22
  let _keysPath = [];
23
- let _keysPathObject = parentObject || null;
23
+ const _keysPathObject = parentObject || null;
24
24
  let _level = level || 0;
25
25
  if (keysPath) {
26
26
  _keysPath = _keysPath.concat(keysPath);
@@ -9,7 +9,7 @@ function fromJSON(mols, reservedMolecules = []) {
9
9
  for (const mol of mols) {
10
10
  const molecule = full_1.Molecule.fromMolfile(mol.molfile);
11
11
  const fragments = molecule.getFragments();
12
- for (let fragment of fragments) {
12
+ for (const fragment of fragments) {
13
13
  molecules.push((0, Molecule_1.initMolecule)({
14
14
  molfile: fragment.toMolfileV3(),
15
15
  label: mol.label || `P${getLabelNumber(reservedNumbers)}`,
@@ -25,8 +25,8 @@ function addMolfile(molecules, molfile) {
25
25
  // try to parse molfile
26
26
  // this will throw if the molecule can not be parsed !
27
27
  const molecule = full_1.Molecule.fromMolfile(molfile);
28
- let fragments = molecule.getFragments();
29
- for (let fragment of fragments) {
28
+ const fragments = molecule.getFragments();
29
+ for (const fragment of fragments) {
30
30
  molecules.push((0, Molecule_1.initMolecule)({
31
31
  molfile: fragment.toMolfileV3(),
32
32
  label: `P${getLabelNumber(reservedNumbers)}`,
@@ -40,11 +40,11 @@ function setMolfile(molecules, currentMolecule) {
40
40
  const reservedNumbers = extractLabelsNumbers(molecules);
41
41
  // try to parse molfile
42
42
  // this will throw if the molecule can not be parsed !
43
- let molecule = full_1.Molecule.fromMolfile(molfile);
44
- let fragments = molecule.getFragments();
43
+ const molecule = full_1.Molecule.fromMolfile(molfile);
44
+ const fragments = molecule.getFragments();
45
45
  if (fragments.length > 1) {
46
46
  molecules = molecules.filter((m) => m.id !== id);
47
- for (let fragment of fragments) {
47
+ for (const fragment of fragments) {
48
48
  molecules.push((0, Molecule_1.initMolecule)({
49
49
  molfile: fragment.toMolfileV3(),
50
50
  label: `P${getLabelNumber(reservedNumbers)}`,
@@ -58,7 +58,7 @@ function setMolfile(molecules, currentMolecule) {
58
58
  id,
59
59
  label,
60
60
  });
61
- let molIndex = molecules.findIndex((m) => m.id === id);
61
+ const molIndex = molecules.findIndex((m) => m.id === id);
62
62
  molecules.splice(molIndex, 1, _mol);
63
63
  }
64
64
  // we will split if we have many fragments
@@ -7,7 +7,8 @@ exports.SourcePathError = exports.TargetPathError = exports.AutomaticPathsMatche
7
7
  const get_1 = __importDefault(require("lodash/get"));
8
8
  const prepareKey_1 = require("./prepareKey");
9
9
  function linkMetaWithSpectra(options) {
10
- let { source, target, autolink = false, parseMetaFileResult, spectra, } = options;
10
+ const { autolink = false, parseMetaFileResult, spectra } = options;
11
+ let { source, target } = options;
11
12
  const targetValues = {};
12
13
  const { data, meta: { fields = [] }, } = parseMetaFileResult;
13
14
  if (!autolink) {
@@ -10,7 +10,7 @@ function findSpectrum(spectraData, spectrumID, checkIsVisible) {
10
10
  }
11
11
  exports.findSpectrum = findSpectrum;
12
12
  function findSignal1D(spectrum, signalID) {
13
- for (let range of spectrum.ranges.values) {
13
+ for (const range of spectrum.ranges.values) {
14
14
  const signalIndex = range.signals.findIndex((_signal) => _signal.id === signalID);
15
15
  if (signalIndex >= 0) {
16
16
  return range.signals[signalIndex];
@@ -19,7 +19,7 @@ function findSignal1D(spectrum, signalID) {
19
19
  }
20
20
  exports.findSignal1D = findSignal1D;
21
21
  function findSignal2D(spectrum, signalID) {
22
- for (let zone of spectrum.zones.values) {
22
+ for (const zone of spectrum.zones.values) {
23
23
  const signalIndex = zone.signals.findIndex((_signal) => _signal.id === signalID);
24
24
  if (signalIndex >= 0) {
25
25
  return zone.signals[signalIndex];
@@ -28,7 +28,7 @@ function findSignal2D(spectrum, signalID) {
28
28
  }
29
29
  exports.findSignal2D = findSignal2D;
30
30
  function findRange(spectrum, signalID) {
31
- for (let range of spectrum.ranges.values) {
31
+ for (const range of spectrum.ranges.values) {
32
32
  const signalIndex = range.signals.findIndex((_signal) => _signal.id === signalID);
33
33
  if (signalIndex >= 0) {
34
34
  return range;
@@ -37,7 +37,7 @@ function findRange(spectrum, signalID) {
37
37
  }
38
38
  exports.findRange = findRange;
39
39
  function findZone(spectrum, signalID) {
40
- for (let zone of spectrum.zones.values) {
40
+ for (const zone of spectrum.zones.values) {
41
41
  const signalIndex = zone.signals.findIndex((_signal) => _signal.id === signalID);
42
42
  if (signalIndex >= 0) {
43
43
  return zone;
@@ -20,9 +20,9 @@ function prepare1DData(data) {
20
20
  return array;
21
21
  }
22
22
  function prepare2DData(data) {
23
- let cols = data.z[0].length;
24
- let rows = data.z.length;
25
- let jump = Math.floor((cols * rows) / 204800) || 1;
23
+ const cols = data.z[0].length;
24
+ const rows = data.z.length;
25
+ const jump = Math.floor((cols * rows) / 204800) || 1;
26
26
  const array = new Float64Array(((cols * rows) / jump) >> 0);
27
27
  let index = 0;
28
28
  for (let r = 0; r < rows; r += 1) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function generateNumbersPowerOfX(start, end, options) {
4
4
  const { power = 2, format = formatNumber } = options || {};
5
- let values = [];
5
+ const values = [];
6
6
  for (let i = start; i <= end; i++) {
7
7
  const result = power ** i;
8
8
  values.push({
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = { version: 'v0.40.1' };
3
+ exports.default = { version: 'v0.41.0' };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nmrium",
3
3
  "description": "React component to display and process nuclear magnetic resonance (NMR) spectra.",
4
- "version": "0.40.1",
4
+ "version": "0.41.0",
5
5
  "license": "MIT",
6
6
  "main": "lib-cjs/component/NMRium.js",
7
7
  "module": "lib/component/NMRium.js",
@@ -81,16 +81,17 @@
81
81
  "ml-baseline-correction-regression": "^1.0.2",
82
82
  "ml-conrec": "^5.0.2",
83
83
  "ml-gsd": "^12.1.3",
84
+ "ml-matrix": "^6.10.4",
84
85
  "ml-spectra-processing": "^12.5.0",
85
86
  "ml-stat": "^1.3.3",
86
- "multiplet-analysis": "^2.1.1",
87
+ "multiplet-analysis": "^2.1.2",
87
88
  "nmr-correlation": "^2.3.3",
88
- "nmr-load-save": "^0.13.2",
89
- "nmr-processing": "^9.7.4",
89
+ "nmr-load-save": "^0.14.1",
90
+ "nmr-processing": "^9.7.8",
90
91
  "nmredata": "^0.9.2",
91
92
  "numeral": "^2.0.6",
92
93
  "openchemlib": "^8.3.0",
93
- "openchemlib-utils": "^2.4.0",
94
+ "openchemlib-utils": "^2.7.1",
94
95
  "papaparse": "^5.4.1",
95
96
  "re-resizable": "^6.9.9",
96
97
  "react-d3-utils": "^1.0.0",
@@ -103,7 +104,7 @@
103
104
  "react-ocl-nmr": "^2.0.0",
104
105
  "react-plot": "^1.4.2",
105
106
  "react-rnd": "^10.4.1",
106
- "react-science": "^0.24.2",
107
+ "react-science": "^0.24.3",
107
108
  "react-slider": "^2.0.6",
108
109
  "react-table": "^7.8.0",
109
110
  "react-transition-group": "^4.4.5",
@@ -115,35 +116,35 @@
115
116
  "@babel/plugin-transform-modules-commonjs": "^7.22.5",
116
117
  "@babel/preset-react": "^7.22.5",
117
118
  "@babel/preset-typescript": "^7.22.5",
118
- "@playwright/test": "^1.35.1",
119
+ "@playwright/test": "^1.36.1",
119
120
  "@simbathesailor/use-what-changed": "^2.0.0",
120
121
  "@types/d3": "^7.4.0",
121
- "@types/node": "^20.4.0",
122
+ "@types/node": "^20.4.2",
122
123
  "@types/papaparse": "^5.3.7",
123
- "@types/react": "^18.2.14",
124
- "@types/react-dom": "^18.2.6",
124
+ "@types/react": "^18.2.15",
125
+ "@types/react-dom": "^18.2.7",
125
126
  "@types/react-table": "^7.7.14",
126
127
  "@vitejs/plugin-react-swc": "^3.3.2",
127
- "@vitest/coverage-v8": "^0.32.4",
128
+ "@vitest/coverage-v8": "^0.33.0",
128
129
  "cross-env": "^7.0.3",
129
- "cspell": "^6.31.1",
130
- "eslint": "^8.44.0",
131
- "eslint-config-cheminfo-react": "^9.1.1",
132
- "eslint-config-cheminfo-typescript": "^11.3.1",
130
+ "cspell": "^6.31.2",
131
+ "eslint": "^8.45.0",
132
+ "eslint-config-cheminfo-react": "^10.0.0",
133
+ "eslint-config-cheminfo-typescript": "^12.0.3",
133
134
  "modern-normalize": "^2.0.0",
134
135
  "postcss-styled-syntax": "^0.4.0",
135
- "prettier": "^2.8.8",
136
+ "prettier": "^3.0.0",
136
137
  "rc-menu": "^9.11.0",
137
138
  "react": "^18.2.0",
138
139
  "react-dom": "^18.2.0",
139
- "react-router-dom": "^6.14.1",
140
+ "react-router-dom": "^6.14.2",
140
141
  "rimraf": "^5.0.1",
141
142
  "rollup-plugin-analyzer": "^4.0.0",
142
143
  "serve": "^14.2.0",
143
- "stylelint": "^15.10.1",
144
+ "stylelint": "^15.10.2",
144
145
  "stylelint-config-standard": "^34.0.0",
145
146
  "typescript": "~5.1.6",
146
- "vite": "^4.3.9",
147
- "vitest": "^0.32.4"
147
+ "vite": "^4.4.4",
148
+ "vitest": "^0.33.0"
148
149
  }
149
150
  }