react-cheminfo 0.75.0 → 0.77.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 (342) hide show
  1. package/README.md +141 -31
  2. package/lib/card/core/cardAddress.d.ts +19 -2
  3. package/lib/card/core/cardAddress.d.ts.map +1 -1
  4. package/lib/card/core/cardAddress.js +35 -2
  5. package/lib/card/core/cardAddress.js.map +1 -1
  6. package/lib/card/core/cardPageUrl.d.ts +7 -1
  7. package/lib/card/core/cardPageUrl.d.ts.map +1 -1
  8. package/lib/card/core/cardPageUrl.js +4 -2
  9. package/lib/card/core/cardPageUrl.js.map +1 -1
  10. package/lib/card/core/index.d.ts +1 -1
  11. package/lib/card/core/index.d.ts.map +1 -1
  12. package/lib/card/core/index.js +1 -1
  13. package/lib/card/core/index.js.map +1 -1
  14. package/lib/credits/core/credits.d.ts +30 -0
  15. package/lib/credits/core/credits.d.ts.map +1 -1
  16. package/lib/credits/core/credits.js +35 -0
  17. package/lib/credits/core/credits.js.map +1 -1
  18. package/lib/download/core/copySvg.d.ts +12 -0
  19. package/lib/download/core/copySvg.d.ts.map +1 -0
  20. package/lib/download/core/copySvg.js +38 -0
  21. package/lib/download/core/copySvg.js.map +1 -0
  22. package/lib/download/core/downloadFigure.d.ts +12 -1
  23. package/lib/download/core/downloadFigure.d.ts.map +1 -1
  24. package/lib/download/core/downloadFigure.js +21 -0
  25. package/lib/download/core/downloadFigure.js.map +1 -1
  26. package/lib/download/core/figureDpi.d.ts +59 -0
  27. package/lib/download/core/figureDpi.d.ts.map +1 -0
  28. package/lib/download/core/figureDpi.js +75 -0
  29. package/lib/download/core/figureDpi.js.map +1 -0
  30. package/lib/download/core/figurePng.d.ts +4 -1
  31. package/lib/download/core/figurePng.d.ts.map +1 -1
  32. package/lib/download/core/figurePng.js +11 -2
  33. package/lib/download/core/figurePng.js.map +1 -1
  34. package/lib/download/core/index.d.ts +5 -1
  35. package/lib/download/core/index.d.ts.map +1 -1
  36. package/lib/download/core/index.js +4 -1
  37. package/lib/download/core/index.js.map +1 -1
  38. package/lib/download/core/pngDpi.d.ts +22 -0
  39. package/lib/download/core/pngDpi.d.ts.map +1 -0
  40. package/lib/download/core/pngDpi.js +79 -0
  41. package/lib/download/core/pngDpi.js.map +1 -0
  42. package/lib/download/ui/FigureDownloadPanel.d.ts +13 -0
  43. package/lib/download/ui/FigureDownloadPanel.d.ts.map +1 -1
  44. package/lib/download/ui/FigureDownloadPanel.js +18 -34
  45. package/lib/download/ui/FigureDownloadPanel.js.map +1 -1
  46. package/lib/download/ui/figureDownloadHint.d.ts +5 -0
  47. package/lib/download/ui/figureDownloadHint.d.ts.map +1 -1
  48. package/lib/download/ui/figureDownloadHint.js +8 -0
  49. package/lib/download/ui/figureDownloadHint.js.map +1 -1
  50. package/lib/download/ui/figureDownloadOptions.d.ts +84 -0
  51. package/lib/download/ui/figureDownloadOptions.d.ts.map +1 -0
  52. package/lib/download/ui/figureDownloadOptions.js +2 -0
  53. package/lib/download/ui/figureDownloadOptions.js.map +1 -0
  54. package/lib/download/ui/resolutionChoices.d.ts +27 -0
  55. package/lib/download/ui/resolutionChoices.d.ts.map +1 -0
  56. package/lib/download/ui/resolutionChoices.js +48 -0
  57. package/lib/download/ui/resolutionChoices.js.map +1 -0
  58. package/lib/download/ui/useFigureActions.d.ts +4 -1
  59. package/lib/download/ui/useFigureActions.d.ts.map +1 -1
  60. package/lib/download/ui/useFigureActions.js +17 -8
  61. package/lib/download/ui/useFigureActions.js.map +1 -1
  62. package/lib/download/ui/useFigureDownload.d.ts +2 -55
  63. package/lib/download/ui/useFigureDownload.d.ts.map +1 -1
  64. package/lib/download/ui/useFigureDownload.js +45 -13
  65. package/lib/download/ui/useFigureDownload.js.map +1 -1
  66. package/lib/ecosystem/core/sites.d.ts.map +1 -1
  67. package/lib/ecosystem/core/sites.js +14 -0
  68. package/lib/ecosystem/core/sites.js.map +1 -1
  69. package/lib/ecosystem/core/types.d.ts +1 -1
  70. package/lib/ecosystem/core/types.d.ts.map +1 -1
  71. package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
  72. package/lib/ecosystem/ui/glyphs.js +3 -0
  73. package/lib/ecosystem/ui/glyphs.js.map +1 -1
  74. package/lib/i18n/core/chromeCatalog.d.ts +1 -1
  75. package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
  76. package/lib/ir/core/bandAssignments.d.ts.map +1 -1
  77. package/lib/ir/core/bandAssignments.js +27 -0
  78. package/lib/ir/core/bandAssignments.js.map +1 -1
  79. package/lib/ir/ui/BandRow.d.ts +4 -4
  80. package/lib/ir/ui/BandRow.d.ts.map +1 -1
  81. package/lib/ir/ui/BandRow.js +41 -14
  82. package/lib/ir/ui/BandRow.js.map +1 -1
  83. package/lib/locales/de.json +32 -1
  84. package/lib/locales/en.json +32 -1
  85. package/lib/locales/es.json +32 -1
  86. package/lib/locales/fr.json +32 -1
  87. package/lib/locales/it.json +32 -1
  88. package/lib/molecule3d/ui/Molecule3DStage.d.ts +4 -33
  89. package/lib/molecule3d/ui/Molecule3DStage.d.ts.map +1 -1
  90. package/lib/molecule3d/ui/Molecule3DStage.js +3 -37
  91. package/lib/molecule3d/ui/Molecule3DStage.js.map +1 -1
  92. package/lib/osiris/core/barGeometry.d.ts +42 -0
  93. package/lib/osiris/core/barGeometry.d.ts.map +1 -0
  94. package/lib/osiris/core/barGeometry.js +46 -0
  95. package/lib/osiris/core/barGeometry.js.map +1 -0
  96. package/lib/osiris/core/computeProperties.d.ts +42 -0
  97. package/lib/osiris/core/computeProperties.d.ts.map +1 -0
  98. package/lib/osiris/core/computeProperties.js +115 -0
  99. package/lib/osiris/core/computeProperties.js.map +1 -0
  100. package/lib/osiris/core/constants.d.ts +70 -0
  101. package/lib/osiris/core/constants.d.ts.map +1 -0
  102. package/lib/osiris/core/constants.js +99 -0
  103. package/lib/osiris/core/constants.js.map +1 -0
  104. package/lib/osiris/core/fitness.d.ts +32 -0
  105. package/lib/osiris/core/fitness.d.ts.map +1 -0
  106. package/lib/osiris/core/fitness.js +48 -0
  107. package/lib/osiris/core/fitness.js.map +1 -0
  108. package/lib/osiris/core/index.d.ts +29 -0
  109. package/lib/osiris/core/index.d.ts.map +1 -0
  110. package/lib/osiris/core/index.js +19 -0
  111. package/lib/osiris/core/index.js.map +1 -0
  112. package/lib/osiris/core/poolSize.d.ts +17 -0
  113. package/lib/osiris/core/poolSize.d.ts.map +1 -0
  114. package/lib/osiris/core/poolSize.js +22 -0
  115. package/lib/osiris/core/poolSize.js.map +1 -0
  116. package/lib/osiris/core/poolTypes.d.ts +140 -0
  117. package/lib/osiris/core/poolTypes.d.ts.map +1 -0
  118. package/lib/osiris/core/poolTypes.js +12 -0
  119. package/lib/osiris/core/poolTypes.js.map +1 -0
  120. package/lib/osiris/core/predictIdCode.d.ts +39 -0
  121. package/lib/osiris/core/predictIdCode.d.ts.map +1 -0
  122. package/lib/osiris/core/predictIdCode.js +54 -0
  123. package/lib/osiris/core/predictIdCode.js.map +1 -0
  124. package/lib/osiris/core/predictProtocol.d.ts +67 -0
  125. package/lib/osiris/core/predictProtocol.d.ts.map +1 -0
  126. package/lib/osiris/core/predictProtocol.js +29 -0
  127. package/lib/osiris/core/predictProtocol.js.map +1 -0
  128. package/lib/osiris/core/predictionPool.d.ts +23 -0
  129. package/lib/osiris/core/predictionPool.d.ts.map +1 -0
  130. package/lib/osiris/core/predictionPool.js +186 -0
  131. package/lib/osiris/core/predictionPool.js.map +1 -0
  132. package/lib/osiris/core/predictionQueue.d.ts +46 -0
  133. package/lib/osiris/core/predictionQueue.d.ts.map +1 -0
  134. package/lib/osiris/core/predictionQueue.js +57 -0
  135. package/lib/osiris/core/predictionQueue.js.map +1 -0
  136. package/lib/osiris/core/predictors.d.ts +62 -0
  137. package/lib/osiris/core/predictors.d.ts.map +1 -0
  138. package/lib/osiris/core/predictors.js +100 -0
  139. package/lib/osiris/core/predictors.js.map +1 -0
  140. package/lib/osiris/core/propertyKeys.d.ts +32 -0
  141. package/lib/osiris/core/propertyKeys.d.ts.map +1 -0
  142. package/lib/osiris/core/propertyKeys.js +44 -0
  143. package/lib/osiris/core/propertyKeys.js.map +1 -0
  144. package/lib/osiris/core/riskAppearance.d.ts +60 -0
  145. package/lib/osiris/core/riskAppearance.d.ts.map +1 -0
  146. package/lib/osiris/core/riskAppearance.js +59 -0
  147. package/lib/osiris/core/riskAppearance.js.map +1 -0
  148. package/lib/osiris/core/riskDetail.d.ts +22 -0
  149. package/lib/osiris/core/riskDetail.d.ts.map +1 -0
  150. package/lib/osiris/core/riskDetail.js +86 -0
  151. package/lib/osiris/core/riskDetail.js.map +1 -0
  152. package/lib/osiris/core/riskDetailRequest.d.ts +31 -0
  153. package/lib/osiris/core/riskDetailRequest.d.ts.map +1 -0
  154. package/lib/osiris/core/riskDetailRequest.js +49 -0
  155. package/lib/osiris/core/riskDetailRequest.js.map +1 -0
  156. package/lib/osiris/core/riskFindings.d.ts +26 -0
  157. package/lib/osiris/core/riskFindings.d.ts.map +1 -0
  158. package/lib/osiris/core/riskFindings.js +79 -0
  159. package/lib/osiris/core/riskFindings.js.map +1 -0
  160. package/lib/osiris/core/runPredictionJob.d.ts +20 -0
  161. package/lib/osiris/core/runPredictionJob.d.ts.map +1 -0
  162. package/lib/osiris/core/runPredictionJob.js +43 -0
  163. package/lib/osiris/core/runPredictionJob.js.map +1 -0
  164. package/lib/osiris/core/scales.d.ts +70 -0
  165. package/lib/osiris/core/scales.d.ts.map +1 -0
  166. package/lib/osiris/core/scales.js +185 -0
  167. package/lib/osiris/core/scales.js.map +1 -0
  168. package/lib/osiris/core/types.d.ts +91 -0
  169. package/lib/osiris/core/types.d.ts.map +1 -0
  170. package/lib/osiris/core/types.js +19 -0
  171. package/lib/osiris/core/types.js.map +1 -0
  172. package/lib/osiris/core/valuation.d.ts +28 -0
  173. package/lib/osiris/core/valuation.d.ts.map +1 -0
  174. package/lib/osiris/core/valuation.js +39 -0
  175. package/lib/osiris/core/valuation.js.map +1 -0
  176. package/lib/osiris/ui/PropertyBar.d.ts +27 -0
  177. package/lib/osiris/ui/PropertyBar.d.ts.map +1 -0
  178. package/lib/osiris/ui/PropertyBar.js +27 -0
  179. package/lib/osiris/ui/PropertyBar.js.map +1 -0
  180. package/lib/osiris/ui/PropertyPanel.d.ts +91 -0
  181. package/lib/osiris/ui/PropertyPanel.d.ts.map +1 -0
  182. package/lib/osiris/ui/PropertyPanel.js +77 -0
  183. package/lib/osiris/ui/PropertyPanel.js.map +1 -0
  184. package/lib/osiris/ui/PropertyRows.d.ts +40 -0
  185. package/lib/osiris/ui/PropertyRows.d.ts.map +1 -0
  186. package/lib/osiris/ui/PropertyRows.js +23 -0
  187. package/lib/osiris/ui/PropertyRows.js.map +1 -0
  188. package/lib/osiris/ui/RiskFindings.d.ts +43 -0
  189. package/lib/osiris/ui/RiskFindings.d.ts.map +1 -0
  190. package/lib/osiris/ui/RiskFindings.js +51 -0
  191. package/lib/osiris/ui/RiskFindings.js.map +1 -0
  192. package/lib/osiris/ui/RiskPanel.d.ts +46 -0
  193. package/lib/osiris/ui/RiskPanel.d.ts.map +1 -0
  194. package/lib/osiris/ui/RiskPanel.js +32 -0
  195. package/lib/osiris/ui/RiskPanel.js.map +1 -0
  196. package/lib/osiris/ui/RiskSquare.d.ts +51 -0
  197. package/lib/osiris/ui/RiskSquare.d.ts.map +1 -0
  198. package/lib/osiris/ui/RiskSquare.js +23 -0
  199. package/lib/osiris/ui/RiskSquare.js.map +1 -0
  200. package/lib/osiris/ui/index.d.ts +15 -0
  201. package/lib/osiris/ui/index.d.ts.map +1 -0
  202. package/lib/osiris/ui/index.js +8 -0
  203. package/lib/osiris/ui/index.js.map +1 -0
  204. package/lib/osiris/ui/usePredictions.d.ts +81 -0
  205. package/lib/osiris/ui/usePredictions.d.ts.map +1 -0
  206. package/lib/osiris/ui/usePredictions.js +102 -0
  207. package/lib/osiris/ui/usePredictions.js.map +1 -0
  208. package/lib/osiris-ui.d.ts +11 -0
  209. package/lib/osiris-ui.d.ts.map +1 -0
  210. package/lib/osiris-ui.js +11 -0
  211. package/lib/osiris-ui.js.map +1 -0
  212. package/lib/osiris.d.ts +17 -0
  213. package/lib/osiris.d.ts.map +1 -0
  214. package/lib/osiris.js +17 -0
  215. package/lib/osiris.js.map +1 -0
  216. package/lib/panel/ui/FilterInput.d.ts.map +1 -1
  217. package/lib/panel/ui/FilterInput.js +3 -1
  218. package/lib/panel/ui/FilterInput.js.map +1 -1
  219. package/lib/panel/ui/SidePanelItem.d.ts +39 -0
  220. package/lib/panel/ui/SidePanelItem.d.ts.map +1 -0
  221. package/lib/panel/ui/SidePanelItem.js +63 -0
  222. package/lib/panel/ui/SidePanelItem.js.map +1 -0
  223. package/lib/panel/ui/SidePanelStack.d.ts +11 -10
  224. package/lib/panel/ui/SidePanelStack.d.ts.map +1 -1
  225. package/lib/panel/ui/SidePanelStack.js +22 -15
  226. package/lib/panel/ui/SidePanelStack.js.map +1 -1
  227. package/lib/panel/ui/SpectrumColorSwatch.d.ts.map +1 -1
  228. package/lib/panel/ui/SpectrumColorSwatch.js +4 -2
  229. package/lib/panel/ui/SpectrumColorSwatch.js.map +1 -1
  230. package/lib/panel/ui/usePanelFolds.d.ts +35 -0
  231. package/lib/panel/ui/usePanelFolds.d.ts.map +1 -0
  232. package/lib/panel/ui/usePanelFolds.js +73 -0
  233. package/lib/panel/ui/usePanelFolds.js.map +1 -0
  234. package/lib/shared/ui/FullscreenStage.d.ts +43 -0
  235. package/lib/shared/ui/FullscreenStage.d.ts.map +1 -0
  236. package/lib/shared/ui/FullscreenStage.js +38 -0
  237. package/lib/shared/ui/FullscreenStage.js.map +1 -0
  238. package/lib/shared/ui/canFillScreen.d.ts +7 -0
  239. package/lib/shared/ui/canFillScreen.d.ts.map +1 -0
  240. package/lib/shared/ui/canFillScreen.js +9 -0
  241. package/lib/shared/ui/canFillScreen.js.map +1 -0
  242. package/lib/shared/ui/index.d.ts +3 -0
  243. package/lib/shared/ui/index.d.ts.map +1 -1
  244. package/lib/shared/ui/index.js +2 -0
  245. package/lib/shared/ui/index.js.map +1 -1
  246. package/lib/split/ui/splitPanes.d.ts +3 -3
  247. package/lib/split/ui/splitPanes.js +1 -1
  248. package/lib/structure/core/structureNotations.d.ts +8 -1
  249. package/lib/structure/core/structureNotations.d.ts.map +1 -1
  250. package/lib/structure/core/structureNotations.js +14 -8
  251. package/lib/structure/core/structureNotations.js.map +1 -1
  252. package/lib/structure/ui/CardStructure.d.ts +43 -0
  253. package/lib/structure/ui/CardStructure.d.ts.map +1 -0
  254. package/lib/structure/ui/CardStructure.js +28 -0
  255. package/lib/structure/ui/CardStructure.js.map +1 -0
  256. package/lib/structure/ui/StructureExportPanel.d.ts +8 -0
  257. package/lib/structure/ui/StructureExportPanel.d.ts.map +1 -1
  258. package/lib/structure/ui/StructureExportPanel.js +9 -4
  259. package/lib/structure/ui/StructureExportPanel.js.map +1 -1
  260. package/lib/structure/ui/StructurePicturePane.d.ts +1 -1
  261. package/lib/structure/ui/StructurePicturePane.d.ts.map +1 -1
  262. package/lib/structure/ui/StructurePicturePane.js +5 -2
  263. package/lib/structure/ui/StructurePicturePane.js.map +1 -1
  264. package/lib/structure/ui/index.d.ts +3 -0
  265. package/lib/structure/ui/index.d.ts.map +1 -1
  266. package/lib/structure/ui/index.js +1 -0
  267. package/lib/structure/ui/index.js.map +1 -1
  268. package/package.json +4 -1
  269. package/src/card/core/cardAddress.ts +39 -3
  270. package/src/card/core/cardPageUrl.ts +10 -3
  271. package/src/card/core/index.ts +7 -1
  272. package/src/credits/core/credits.ts +40 -0
  273. package/src/download/core/copySvg.ts +40 -0
  274. package/src/download/core/downloadFigure.ts +26 -1
  275. package/src/download/core/figureDpi.ts +94 -0
  276. package/src/download/core/figurePng.ts +11 -2
  277. package/src/download/core/index.ts +14 -1
  278. package/src/download/core/pngDpi.ts +84 -0
  279. package/src/download/ui/FigureDownloadPanel.tsx +41 -51
  280. package/src/download/ui/figureDownloadHint.ts +13 -0
  281. package/src/download/ui/figureDownloadOptions.ts +85 -0
  282. package/src/download/ui/resolutionChoices.ts +67 -0
  283. package/src/download/ui/useFigureActions.ts +24 -9
  284. package/src/download/ui/useFigureDownload.tsx +57 -71
  285. package/src/ecosystem/core/sites.ts +14 -0
  286. package/src/ecosystem/core/types.ts +2 -1
  287. package/src/ecosystem/ui/glyphs.tsx +20 -0
  288. package/src/ir/core/bandAssignments.ts +27 -0
  289. package/src/ir/ui/BandRow.tsx +84 -26
  290. package/src/locales/de.json +32 -1
  291. package/src/locales/en.json +32 -1
  292. package/src/locales/es.json +32 -1
  293. package/src/locales/fr.json +32 -1
  294. package/src/locales/it.json +32 -1
  295. package/src/molecule3d/ui/Molecule3DStage.tsx +4 -88
  296. package/src/osiris/core/barGeometry.ts +74 -0
  297. package/src/osiris/core/computeProperties.ts +175 -0
  298. package/src/osiris/core/constants.ts +110 -0
  299. package/src/osiris/core/fitness.ts +59 -0
  300. package/src/osiris/core/index.ts +78 -0
  301. package/src/osiris/core/poolSize.ts +24 -0
  302. package/src/osiris/core/poolTypes.ts +140 -0
  303. package/src/osiris/core/predictIdCode.ts +69 -0
  304. package/src/osiris/core/predictProtocol.ts +78 -0
  305. package/src/osiris/core/predictionPool.ts +237 -0
  306. package/src/osiris/core/predictionQueue.ts +89 -0
  307. package/src/osiris/core/predictors.ts +142 -0
  308. package/src/osiris/core/propertyKeys.ts +54 -0
  309. package/src/osiris/core/riskAppearance.ts +86 -0
  310. package/src/osiris/core/riskDetail.ts +120 -0
  311. package/src/osiris/core/riskDetailRequest.ts +64 -0
  312. package/src/osiris/core/riskFindings.ts +92 -0
  313. package/src/osiris/core/runPredictionJob.ts +49 -0
  314. package/src/osiris/core/scales.ts +236 -0
  315. package/src/osiris/core/types.ts +103 -0
  316. package/src/osiris/core/valuation.ts +44 -0
  317. package/src/osiris/ui/PropertyBar.tsx +77 -0
  318. package/src/osiris/ui/PropertyPanel.tsx +227 -0
  319. package/src/osiris/ui/PropertyRows.tsx +92 -0
  320. package/src/osiris/ui/RiskFindings.tsx +137 -0
  321. package/src/osiris/ui/RiskPanel.tsx +81 -0
  322. package/src/osiris/ui/RiskSquare.tsx +108 -0
  323. package/src/osiris/ui/index.ts +17 -0
  324. package/src/osiris/ui/usePredictions.ts +194 -0
  325. package/src/osiris-ui.ts +11 -0
  326. package/src/osiris.ts +17 -0
  327. package/src/panel/ui/FilterInput.tsx +4 -1
  328. package/src/panel/ui/SidePanelItem.tsx +162 -0
  329. package/src/panel/ui/SidePanelStack.tsx +29 -36
  330. package/src/panel/ui/SpectrumColorSwatch.tsx +5 -3
  331. package/src/panel/ui/usePanelFolds.ts +103 -0
  332. package/src/shared/ui/FullscreenStage.tsx +96 -0
  333. package/src/shared/ui/canFillScreen.ts +8 -0
  334. package/src/shared/ui/index.ts +6 -0
  335. package/src/split/ui/splitPanes.tsx +4 -4
  336. package/src/structure/core/structureNotations.ts +25 -8
  337. package/src/structure/ui/CardStructure.tsx +76 -0
  338. package/src/structure/ui/StructureExportPanel.tsx +23 -4
  339. package/src/structure/ui/StructurePicturePane.tsx +14 -1
  340. package/src/structure/ui/index.ts +6 -0
  341. package/styles/chrome.css +3 -3
  342. package/styles/osiris.css +339 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BandRow.js","sourceRoot":"","sources":["../../../src/ir/ui/BandRow.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAwBtE;;;;;;;;;GASG;AACH,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC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AAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAW,CAAC;AAExE,MAAM,eAAe,GAAG;IACtB,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,SAAS;CACT,CAAC"}
@@ -114,6 +114,14 @@
114
114
  "site.atoms.tagline": "Elektronen, Neutronen, Lewis-Formeln und Oxidationszahlen.",
115
115
  "site.moles.tagline": "Eine Reaktion ausgleichen und ihre Massenzusammensetzung berechnen.",
116
116
  "site.inorganic.tagline": "Eine anorganische Verbindung benennen und ihre Formel schreiben.",
117
+ "site.iupac-name.tagline": "Der IUPAC-Name einer Struktur, und die Struktur, die ein Name bezeichnet.",
118
+ "site.slides.tagline": "Ein laufendes Werkzeug auf eine Folie setzen, mit dem Link seiner Schaltfläche Teilen.",
119
+ "site.vibrations.tagline": "IR- und Raman-Spektren, im Browser berechnet.",
120
+ "site.draw.tagline": "Strukturen in Publikationsqualität, als SVG, das die Chemie behält.",
121
+ "site.molecules.tagline": "Ein Molekül nachschlagen, mit seinen berechneten Eigenschaften und Quellen.",
122
+ "site.chembio.tagline": "Naturstoffe, und die Organismen, in denen sie gefunden wurden.",
123
+ "site.wikidata.tagline": "Die Chemie der Wikipedia-Infoboxen, nach Struktur durchsuchbar.",
124
+ "site.mz.tagline": "Massenspektren, danach geordnet, wie sie gemessen wurden.",
117
125
  "share.button": "Teilen",
118
126
  "share.buttonTitle": "Einen Link zu dieser Seite teilen oder sie in Ihre eigene Website einbetten",
119
127
  "share.dialogTitleFor": "{title} teilen oder einbetten",
@@ -282,10 +290,14 @@
282
290
  "download.resolution": "Auflösung",
283
291
  "download.resolutionHelp": "Wie viele Male größer als die Abbildung auf dem Bildschirm die Datei ist. Ein PNG bekommt entsprechend mehr Pixel: zwei passt für eine Folie, drei oder vier für den Druck. Ein SVG bleibt in jeder Größe scharf und öffnet sich entsprechend größer.",
284
292
  "download.resolutionExample": "Eine auf dem Bildschirm 640 Pixel breite Abbildung wird 1280 Pixel breit gespeichert.",
293
+ "download.resolutionDpiHelp": "Punkte pro Zoll, wenn die Abbildung in ihrer Größe auf der Seite gedruckt wird. 150 genügt für eine Folie, 300 für die Fotos einer Zeitschrift, 600 bis 1200 für Strichzeichnungen. Das PNG gibt sie an, sodass ein Dokument es in dieser Größe platziert.",
294
+ "download.resolutionDpiExample": "Eine 8,5 cm breite Abbildung wird 1004 Pixel breit gespeichert.",
285
295
  "download.noFigure": "Auf der Seite gibt es noch keine Abbildung zum Speichern.",
286
296
  "download.hintRasterSvg": "Ein SVG, das ein Bild von {pixels} enthält: eine 3D-Szene hat keine Vektorform.",
287
297
  "download.hintSvg": "Öffnet sich mit {pixels} und bleibt in jeder Größe scharf.",
288
298
  "download.hintPng": "Gespeichert {pixels}.",
299
+ "download.hintSvgDpi": "Wird {width} × {height} cm groß gedruckt und bleibt in jeder Größe scharf.",
300
+ "download.hintPngDpi": "Gespeichert {pixels}, gedruckt {width} × {height} cm.",
289
301
  "download.hintCopied": "In die Zwischenablage kopiert: PNG mit {pixels}.",
290
302
  "download.copyUnsupported": "Dieser Browser kann kein Bild in die Zwischenablage legen. Speichern Sie es stattdessen.",
291
303
  "download.size": "Größe",
@@ -587,6 +599,8 @@
587
599
  "structure.export.saveSvg": "Als SVG speichern",
588
600
  "structure.export.savePng": "Als PNG speichern",
589
601
  "structure.export.copyPng": "PNG kopieren",
602
+ "structure.export.copySvg": "SVG kopieren",
603
+ "structure.export.svgCopied": "In die Zwischenablage kopiert: SVG.",
590
604
  "structure.export.smiles": "SMILES",
591
605
  "structure.export.smilesHelp": "Die Struktur in einer Zeile, Stereochemie eingeschlossen. Jedes Programm liest sie.",
592
606
  "structure.export.molfileV3000": "Molfile V3000",
@@ -792,5 +806,22 @@
792
806
  "ir.raman.doc.sampled": "Eine Bande wird an dem abgetasteten Punkt angegeben, an dem sie ihr Maximum hat: Ihre Lage ist nur so genau wie das Raster, auf dem das Spektrum aufgenommen wurde.",
793
807
  "ir.raman.aboutLead": "Zeichnet ein Raman-Spektrum, findet seine Banden und listet sie neben dem Diagramm auf.",
794
808
  "ir.raman.credit.picking": "**ir-spectrum** (cheminfo, MIT) findet die Banden, mit dem Peakfinder von **common-spectrum** und **ml-gsd**.",
795
- "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) schreibt die heruntergeladene JCAMP-DX-Datei."
809
+ "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) schreibt die heruntergeladene JCAMP-DX-Datei.",
810
+ "panel.focus": "Auf das Panel „{panel}“ konzentrieren",
811
+ "panel.focusTooltip": "Auf dieses Panel konzentrieren: alle anderen einklappen",
812
+ "panel.unfocusTooltip": "Die anderen Panels wieder ausklappen",
813
+ "panel.fillScreen": "Panel „{panel}“ im Vollbild zeigen",
814
+ "panel.fillScreenTooltip": "Dieses Panel im Vollbild zeigen",
815
+ "panel.fold": "Panel „{panel}“ einklappen",
816
+ "panel.unfold": "Panel „{panel}“ ausklappen",
817
+ "panel.foldTooltip": "Dieses Panel einklappen",
818
+ "panel.unfoldTooltip": "Ausklappen",
819
+ "panel.close": "Panel „{panel}“ schließen",
820
+ "panel.closeTooltip": "Dieses Panel schließen",
821
+ "panel.leaveFullScreen": "Vollbild verlassen",
822
+ "panel.leaveFullScreenTooltip": "Vollbild verlassen (Esc)",
823
+ "panel.clearFilter": "Filter leeren",
824
+ "panel.colourOf": "Farbe von {name}",
825
+ "panel.drawIn": "{name} in {color} zeichnen",
826
+ "panel.changeColour": "Dieses Spektrum in einer anderen Farbe zeichnen"
796
827
  }
@@ -114,6 +114,14 @@
114
114
  "site.atoms.tagline": "Electrons, neutrons, Lewis structures and oxidation states.",
115
115
  "site.moles.tagline": "Balance a reaction, and work out its mass composition.",
116
116
  "site.inorganic.tagline": "Name an inorganic compound, and write its formula.",
117
+ "site.iupac-name.tagline": "The IUPAC name of a structure, and the structure a name denotes.",
118
+ "site.slides.tagline": "Put a live tool on a slide, from the link its Share button gives.",
119
+ "site.vibrations.tagline": "IR and Raman spectra computed in the browser.",
120
+ "site.draw.tagline": "Journal-grade structures, in an SVG that keeps the chemistry.",
121
+ "site.molecules.tagline": "Look up a molecule, its computed properties and its sources.",
122
+ "site.chembio.tagline": "Natural products, and the organisms they were found in.",
123
+ "site.wikidata.tagline": "The chemistry of Wikipedia’s infoboxes, searchable by structure.",
124
+ "site.mz.tagline": "Mass spectra, classified by how they were measured.",
117
125
  "share.button": "Share",
118
126
  "share.buttonTitle": "Share a link to this page, or embed it in your own site",
119
127
  "share.dialogTitleFor": "Share or embed — {title}",
@@ -282,10 +290,14 @@
282
290
  "download.resolution": "Resolution",
283
291
  "download.resolutionHelp": "How many times the figure on screen the file is. A PNG gets that many more pixels: two is right for a slide, three or four for print. An SVG stays sharp at any size, and opens that many times larger.",
284
292
  "download.resolutionExample": "A figure 640 pixels wide on screen is saved 1280 pixels wide.",
293
+ "download.resolutionDpiHelp": "Dots per inch, with the figure printed at its size on the page. 150 is enough for a slide, 300 for a journal's photographs, 600 to 1200 for line art. The PNG states it, so a document places it at that size.",
294
+ "download.resolutionDpiExample": "A figure 8.5 cm wide is saved 1004 pixels wide.",
285
295
  "download.noFigure": "There is no figure on the page to save yet.",
286
296
  "download.hintRasterSvg": "An SVG holding a picture of {pixels}: a 3D scene has no vector form.",
287
297
  "download.hintSvg": "Opens at {pixels}, and stays sharp at any size.",
288
298
  "download.hintPng": "Saved {pixels}.",
299
+ "download.hintSvgDpi": "Prints {width} × {height} cm, and stays sharp at any size.",
300
+ "download.hintPngDpi": "Saved {pixels}, which print {width} × {height} cm.",
289
301
  "download.hintCopied": "Copied {pixels} to the clipboard, as a PNG.",
290
302
  "download.copyUnsupported": "This browser cannot put a picture on the clipboard. Save it instead.",
291
303
  "download.size": "Size",
@@ -531,6 +543,8 @@
531
543
  "structure.export.saveSvg": "Save SVG",
532
544
  "structure.export.savePng": "Save PNG",
533
545
  "structure.export.copyPng": "Copy PNG",
546
+ "structure.export.copySvg": "Copy SVG",
547
+ "structure.export.svgCopied": "Copied the SVG to the clipboard.",
534
548
  "structure.export.smiles": "SMILES",
535
549
  "structure.export.smilesHelp": "The structure on one line, stereochemistry included. Every tool reads it.",
536
550
  "structure.export.molfileV3000": "Molfile V3000",
@@ -792,5 +806,22 @@
792
806
  "ir.raman.doc.sampled": "A band is reported at the sampled point it peaked on, so its position is only as precise as the grid the spectrum was recorded on.",
793
807
  "ir.raman.aboutLead": "Draws a Raman spectrum, picks its bands and lists them beside the chart.",
794
808
  "ir.raman.credit.picking": "**ir-spectrum** (cheminfo, MIT) picks the bands, with the peak picker of **common-spectrum** and **ml-gsd**.",
795
- "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) writes the JCAMP-DX download."
809
+ "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) writes the JCAMP-DX download.",
810
+ "panel.focus": "Focus on the {panel} panel",
811
+ "panel.focusTooltip": "Focus on this panel: fold every other one away",
812
+ "panel.unfocusTooltip": "Unfold the other panels again",
813
+ "panel.fillScreen": "Fill the screen with the {panel} panel",
814
+ "panel.fillScreenTooltip": "Fill the screen with this panel",
815
+ "panel.fold": "Fold the {panel} panel",
816
+ "panel.unfold": "Unfold the {panel} panel",
817
+ "panel.foldTooltip": "Fold this panel away",
818
+ "panel.unfoldTooltip": "Unfold it",
819
+ "panel.close": "Close the {panel} panel",
820
+ "panel.closeTooltip": "Close this panel",
821
+ "panel.leaveFullScreen": "Leave full screen",
822
+ "panel.leaveFullScreenTooltip": "Leave full screen (Esc)",
823
+ "panel.clearFilter": "Clear the filter",
824
+ "panel.colourOf": "Colour of {name}",
825
+ "panel.drawIn": "Draw {name} in {color}",
826
+ "panel.changeColour": "Draw this spectrum in another colour"
796
827
  }
@@ -114,6 +114,14 @@
114
114
  "site.atoms.tagline": "Electrones, neutrones, estructuras de Lewis y números de oxidación.",
115
115
  "site.moles.tagline": "Ajustar una reacción y calcular su composición en masa.",
116
116
  "site.inorganic.tagline": "Nombrar un compuesto inorgánico y escribir su fórmula.",
117
+ "site.iupac-name.tagline": "El nombre IUPAC de una estructura, y la estructura que designa un nombre.",
118
+ "site.slides.tagline": "Poner una herramienta en vivo en una diapositiva, con el enlace que da su botón Compartir.",
119
+ "site.vibrations.tagline": "Espectros IR y Raman calculados en el navegador.",
120
+ "site.draw.tagline": "Estructuras con calidad de publicación, en un SVG que conserva la química.",
121
+ "site.molecules.tagline": "Buscar una molécula, sus propiedades calculadas y sus fuentes.",
122
+ "site.chembio.tagline": "Productos naturales, y los organismos en los que se encontraron.",
123
+ "site.wikidata.tagline": "La química de las fichas de Wikipedia, con búsqueda por estructura.",
124
+ "site.mz.tagline": "Espectros de masas, clasificados según cómo se midieron.",
117
125
  "share.button": "Compartir",
118
126
  "share.buttonTitle": "Compartir un enlace a esta página, o incrustarla en su propio sitio",
119
127
  "share.dialogTitleFor": "Compartir o incrustar — {title}",
@@ -282,10 +290,14 @@
282
290
  "download.resolution": "Resolución",
283
291
  "download.resolutionHelp": "Cuántas veces la figura en pantalla mide el archivo. Un PNG recibe tantos píxeles más: dos sirve para una diapositiva, tres o cuatro para imprimir. Un SVG se mantiene nítido a cualquier tamaño, y se abre tantas veces más grande.",
284
292
  "download.resolutionExample": "Una figura de 640 píxeles de ancho en pantalla se guarda con 1280 píxeles de ancho.",
293
+ "download.resolutionDpiHelp": "Puntos por pulgada, con la figura impresa a su tamaño en la página. 150 basta para una diapositiva, 300 para las fotografías de una revista, de 600 a 1200 para el dibujo de línea. El PNG lo indica, así un documento lo coloca a ese tamaño.",
294
+ "download.resolutionDpiExample": "Una figura de 8,5 cm de ancho se guarda con 1004 píxeles de ancho.",
285
295
  "download.noFigure": "Todavía no hay ninguna figura en la página que guardar.",
286
296
  "download.hintRasterSvg": "Un SVG que contiene una imagen de {pixels}: una escena 3D no tiene forma vectorial.",
287
297
  "download.hintSvg": "Se abre a {pixels}, y se mantiene nítido a cualquier tamaño.",
288
298
  "download.hintPng": "Guardado {pixels}.",
299
+ "download.hintSvgDpi": "Se imprime a {width} × {height} cm, y se mantiene nítido a cualquier tamaño.",
300
+ "download.hintPngDpi": "Guardado {pixels}, que se imprimen a {width} × {height} cm.",
289
301
  "download.hintCopied": "Copiado al portapapeles: PNG de {pixels}.",
290
302
  "download.copyUnsupported": "Este navegador no puede poner una imagen en el portapapeles. Guárdala en su lugar.",
291
303
  "download.size": "Tamaño",
@@ -587,6 +599,8 @@
587
599
  "structure.export.saveSvg": "Guardar en SVG",
588
600
  "structure.export.savePng": "Guardar en PNG",
589
601
  "structure.export.copyPng": "Copiar el PNG",
602
+ "structure.export.copySvg": "Copiar el SVG",
603
+ "structure.export.svgCopied": "Copiado al portapapeles: SVG.",
590
604
  "structure.export.smiles": "SMILES",
591
605
  "structure.export.smilesHelp": "La estructura en una línea, con su estereoquímica. Todas las herramientas la leen.",
592
606
  "structure.export.molfileV3000": "Molfile V3000",
@@ -792,5 +806,22 @@
792
806
  "ir.raman.doc.sampled": "Una banda se da en el punto muestreado donde alcanza su máximo: su posición no es más precisa que la rejilla en la que se registró el espectro.",
793
807
  "ir.raman.aboutLead": "Dibuja un espectro Raman, encuentra sus bandas y las enumera junto a la gráfica.",
794
808
  "ir.raman.credit.picking": "**ir-spectrum** (cheminfo, MIT) encuentra las bandas, con el detector de picos de **common-spectrum** y **ml-gsd**.",
795
- "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) escribe el archivo JCAMP-DX descargado."
809
+ "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) escribe el archivo JCAMP-DX descargado.",
810
+ "panel.focus": "Centrarse en el panel {panel}",
811
+ "panel.focusTooltip": "Centrarse en este panel: plegar todos los demás",
812
+ "panel.unfocusTooltip": "Desplegar de nuevo los demás paneles",
813
+ "panel.fillScreen": "Mostrar el panel {panel} a pantalla completa",
814
+ "panel.fillScreenTooltip": "Mostrar este panel a pantalla completa",
815
+ "panel.fold": "Plegar el panel {panel}",
816
+ "panel.unfold": "Desplegar el panel {panel}",
817
+ "panel.foldTooltip": "Plegar este panel",
818
+ "panel.unfoldTooltip": "Desplegarlo",
819
+ "panel.close": "Cerrar el panel {panel}",
820
+ "panel.closeTooltip": "Cerrar este panel",
821
+ "panel.leaveFullScreen": "Salir de la pantalla completa",
822
+ "panel.leaveFullScreenTooltip": "Salir de la pantalla completa (Esc)",
823
+ "panel.clearFilter": "Borrar el filtro",
824
+ "panel.colourOf": "Color de {name}",
825
+ "panel.drawIn": "Dibujar {name} en {color}",
826
+ "panel.changeColour": "Dibujar este espectro en otro color"
796
827
  }
@@ -114,6 +114,14 @@
114
114
  "site.atoms.tagline": "Électrons, neutrons, structures de Lewis et nombres d'oxydation.",
115
115
  "site.moles.tagline": "Équilibrer une réaction, et en calculer la composition massique.",
116
116
  "site.inorganic.tagline": "Nommer un composé inorganique, et en écrire la formule.",
117
+ "site.iupac-name.tagline": "Le nom IUPAC d'une structure, et la structure que désigne un nom.",
118
+ "site.slides.tagline": "Mettre un outil vivant sur une diapositive, avec le lien que donne son bouton Partager.",
119
+ "site.vibrations.tagline": "Spectres IR et Raman calculés dans le navigateur.",
120
+ "site.draw.tagline": "Des structures de qualité publication, dans un SVG qui garde la chimie.",
121
+ "site.molecules.tagline": "Rechercher une molécule, ses propriétés calculées et ses sources.",
122
+ "site.chembio.tagline": "Les produits naturels, et les organismes où ils ont été trouvés.",
123
+ "site.wikidata.tagline": "La chimie des infobox de Wikipédia, interrogeable par structure.",
124
+ "site.mz.tagline": "Des spectres de masse, classés selon la façon dont ils ont été mesurés.",
117
125
  "share.button": "Partager",
118
126
  "share.buttonTitle": "Partager un lien vers cette page, ou l'intégrer à votre propre site",
119
127
  "share.dialogTitleFor": "Partager ou intégrer — {title}",
@@ -282,10 +290,14 @@
282
290
  "download.resolution": "Résolution",
283
291
  "download.resolutionHelp": "Combien de fois la figure à l'écran mesure le fichier. Un PNG reçoit d'autant plus de pixels : deux convient pour une diapositive, trois ou quatre pour l'impression. Un SVG reste net à toute taille, et s'ouvre d'autant plus grand.",
284
292
  "download.resolutionExample": "Une figure large de 640 pixels à l'écran est enregistrée large de 1280 pixels.",
293
+ "download.resolutionDpiHelp": "Points par pouce, la figure étant imprimée à sa taille sur la page. 150 suffit pour une diapositive, 300 pour les photographies d'une revue, 600 à 1200 pour un dessin au trait. Le PNG l'indique, si bien qu'un document le place à cette taille.",
294
+ "download.resolutionDpiExample": "Une figure large de 8,5 cm est enregistrée large de 1004 pixels.",
285
295
  "download.noFigure": "Il n'y a encore aucune figure à enregistrer sur la page.",
286
296
  "download.hintRasterSvg": "Un SVG contenant une image de {pixels} : une scène 3D n'a pas de forme vectorielle.",
287
297
  "download.hintSvg": "S'ouvre à {pixels}, et reste net à toute taille.",
288
298
  "download.hintPng": "Enregistré {pixels}.",
299
+ "download.hintSvgDpi": "S'imprime en {width} × {height} cm, et reste net à toute taille.",
300
+ "download.hintPngDpi": "Enregistré {pixels}, qui s'impriment en {width} × {height} cm.",
289
301
  "download.hintCopied": "Copié dans le presse-papiers : PNG de {pixels}.",
290
302
  "download.copyUnsupported": "Ce navigateur ne peut pas copier une image dans le presse-papiers. Enregistrez-la plutôt.",
291
303
  "download.size": "Taille",
@@ -587,6 +599,8 @@
587
599
  "structure.export.saveSvg": "Enregistrer en SVG",
588
600
  "structure.export.savePng": "Enregistrer en PNG",
589
601
  "structure.export.copyPng": "Copier le PNG",
602
+ "structure.export.copySvg": "Copier le SVG",
603
+ "structure.export.svgCopied": "Copié dans le presse-papiers : SVG.",
590
604
  "structure.export.smiles": "SMILES",
591
605
  "structure.export.smilesHelp": "La structure sur une ligne, stéréochimie comprise. Tous les logiciels le lisent.",
592
606
  "structure.export.molfileV3000": "Molfile V3000",
@@ -792,5 +806,22 @@
792
806
  "ir.raman.doc.sampled": "Une bande est donnée au point échantillonné où elle culmine : sa position n'est pas plus précise que la grille sur laquelle le spectre a été enregistré.",
793
807
  "ir.raman.aboutLead": "Trace un spectre Raman, repère ses bandes et les liste à côté du graphique.",
794
808
  "ir.raman.credit.picking": "**ir-spectrum** (cheminfo, MIT) repère les bandes, avec le détecteur de pics de **common-spectrum** et **ml-gsd**.",
795
- "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) écrit le fichier JCAMP-DX téléchargé."
809
+ "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) écrit le fichier JCAMP-DX téléchargé.",
810
+ "panel.focus": "Se concentrer sur le panneau {panel}",
811
+ "panel.focusTooltip": "Se concentrer sur ce panneau : replier tous les autres",
812
+ "panel.unfocusTooltip": "Déplier de nouveau les autres panneaux",
813
+ "panel.fillScreen": "Afficher le panneau {panel} en plein écran",
814
+ "panel.fillScreenTooltip": "Afficher ce panneau en plein écran",
815
+ "panel.fold": "Replier le panneau {panel}",
816
+ "panel.unfold": "Déplier le panneau {panel}",
817
+ "panel.foldTooltip": "Replier ce panneau",
818
+ "panel.unfoldTooltip": "Le déplier",
819
+ "panel.close": "Fermer le panneau {panel}",
820
+ "panel.closeTooltip": "Fermer ce panneau",
821
+ "panel.leaveFullScreen": "Quitter le plein écran",
822
+ "panel.leaveFullScreenTooltip": "Quitter le plein écran (Échap)",
823
+ "panel.clearFilter": "Effacer le filtre",
824
+ "panel.colourOf": "Couleur de {name}",
825
+ "panel.drawIn": "Tracer {name} en {color}",
826
+ "panel.changeColour": "Tracer ce spectre dans une autre couleur"
796
827
  }
@@ -114,6 +114,14 @@
114
114
  "site.atoms.tagline": "Elettroni, neutroni, strutture di Lewis e numeri di ossidazione.",
115
115
  "site.moles.tagline": "Bilanciare una reazione e calcolarne la composizione in massa.",
116
116
  "site.inorganic.tagline": "Nominare un composto inorganico e scriverne la formula.",
117
+ "site.iupac-name.tagline": "Il nome IUPAC di una struttura, e la struttura che un nome designa.",
118
+ "site.slides.tagline": "Mettere uno strumento interattivo su una diapositiva, con il link del suo pulsante Condividi.",
119
+ "site.vibrations.tagline": "Spettri IR e Raman calcolati nel browser.",
120
+ "site.draw.tagline": "Strutture di qualità da pubblicazione, in un SVG che conserva la chimica.",
121
+ "site.molecules.tagline": "Cercare una molecola, le sue proprietà calcolate e le sue fonti.",
122
+ "site.chembio.tagline": "Prodotti naturali, e gli organismi in cui sono stati trovati.",
123
+ "site.wikidata.tagline": "La chimica delle infobox di Wikipedia, ricercabile per struttura.",
124
+ "site.mz.tagline": "Spettri di massa, classificati in base a come sono stati misurati.",
117
125
  "share.button": "Condividi",
118
126
  "share.buttonTitle": "Condividere un link a questa pagina, o incorporarla nel proprio sito",
119
127
  "share.dialogTitleFor": "Condividere o incorporare — {title}",
@@ -282,10 +290,14 @@
282
290
  "download.resolution": "Risoluzione",
283
291
  "download.resolutionHelp": "Quante volte la figura sullo schermo misura il file. Un PNG riceve altrettanti pixel in più: due va bene per una diapositiva, tre o quattro per la stampa. Un SVG resta nitido a qualsiasi dimensione, e si apre altrettante volte più grande.",
284
292
  "download.resolutionExample": "Una figura larga 640 pixel sullo schermo viene salvata larga 1280 pixel.",
293
+ "download.resolutionDpiHelp": "Punti per pollice, con la figura stampata alla sua dimensione sulla pagina. 150 basta per una diapositiva, 300 per le fotografie di una rivista, da 600 a 1200 per i disegni al tratto. Il PNG lo indica, così un documento lo colloca a quella dimensione.",
294
+ "download.resolutionDpiExample": "Una figura larga 8,5 cm viene salvata larga 1004 pixel.",
285
295
  "download.noFigure": "Non c'è ancora nessuna figura nella pagina da salvare.",
286
296
  "download.hintRasterSvg": "Un SVG che contiene un'immagine di {pixels}: una scena 3D non ha forma vettoriale.",
287
297
  "download.hintSvg": "Si apre a {pixels}, e resta nitido a qualsiasi dimensione.",
288
298
  "download.hintPng": "Salvato {pixels}.",
299
+ "download.hintSvgDpi": "Si stampa a {width} × {height} cm, e resta nitido a qualsiasi dimensione.",
300
+ "download.hintPngDpi": "Salvato {pixels}, che si stampano a {width} × {height} cm.",
289
301
  "download.hintCopied": "Copiato negli appunti: PNG di {pixels}.",
290
302
  "download.copyUnsupported": "Questo browser non può mettere un'immagine negli appunti. Salvala invece.",
291
303
  "download.size": "Dimensione",
@@ -531,6 +543,8 @@
531
543
  "structure.export.saveSvg": "Salva in SVG",
532
544
  "structure.export.savePng": "Salva in PNG",
533
545
  "structure.export.copyPng": "Copia il PNG",
546
+ "structure.export.copySvg": "Copia l’SVG",
547
+ "structure.export.svgCopied": "Copiato negli appunti: SVG.",
534
548
  "structure.export.smiles": "SMILES",
535
549
  "structure.export.smilesHelp": "La struttura su una riga, stereochimica compresa. Ogni strumento la legge.",
536
550
  "structure.export.molfileV3000": "Molfile V3000",
@@ -792,5 +806,22 @@
792
806
  "ir.raman.doc.sampled": "Una banda è data nel punto campionato in cui raggiunge il massimo: la sua posizione non è più precisa della griglia su cui lo spettro è stato registrato.",
793
807
  "ir.raman.aboutLead": "Disegna uno spettro Raman, ne trova le bande e le elenca accanto al grafico.",
794
808
  "ir.raman.credit.picking": "**ir-spectrum** (cheminfo, MIT) trova le bande, con il rilevatore di picchi di **common-spectrum** e **ml-gsd**.",
795
- "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) scrive il file JCAMP-DX scaricato."
809
+ "ir.raman.credit.jcamp": "**convert-to-jcamp** (cheminfo, MIT) scrive il file JCAMP-DX scaricato.",
810
+ "panel.focus": "Concentrati sul pannello {panel}",
811
+ "panel.focusTooltip": "Concentrati su questo pannello: comprimi tutti gli altri",
812
+ "panel.unfocusTooltip": "Espandi di nuovo gli altri pannelli",
813
+ "panel.fillScreen": "Mostra il pannello {panel} a schermo intero",
814
+ "panel.fillScreenTooltip": "Mostra questo pannello a schermo intero",
815
+ "panel.fold": "Comprimi il pannello {panel}",
816
+ "panel.unfold": "Espandi il pannello {panel}",
817
+ "panel.foldTooltip": "Comprimi questo pannello",
818
+ "panel.unfoldTooltip": "Espandilo",
819
+ "panel.close": "Chiudi il pannello {panel}",
820
+ "panel.closeTooltip": "Chiudi questo pannello",
821
+ "panel.leaveFullScreen": "Esci dallo schermo intero",
822
+ "panel.leaveFullScreenTooltip": "Esci dallo schermo intero (Esc)",
823
+ "panel.clearFilter": "Cancella il filtro",
824
+ "panel.colourOf": "Colore di {name}",
825
+ "panel.drawIn": "Disegna {name} in {color}",
826
+ "panel.changeColour": "Disegna questo spettro in un altro colore"
796
827
  }
@@ -1,37 +1,8 @@
1
1
  /**
2
2
  * The box the molecule canvas and its toolbars are drawn in, which is also the
3
- * box that fills the screen.
4
- *
5
- * A box filling the screen hides everything outside it, and the popovers and
6
- * tooltips of the toolbars are portalled to `document.body`: while the box
7
- * fills the screen they are portalled into it instead, the way react-science's
8
- * `RootLayout` keeps its own menus visible. Otherwise the portal options of the
9
- * page around the viewer are passed through untouched.
3
+ * box that fills the screen. It is the shared fullscreen stage, so the
4
+ * toolbars' popovers stay visible while it does.
10
5
  */
11
- import type { CSSProperties, ReactElement, ReactNode } from 'react';
12
- import type { Molecule3DFullscreen } from './Molecule3DToolbar.tsx';
13
- /** Props of {@link Molecule3DStage}. */
14
- export interface Molecule3DStageProps {
15
- /**
16
- * Style of the box, or a function handed whether the box fills the screen,
17
- * for a box shaped differently while it does.
18
- */
19
- style: CSSProperties | ((fillsScreen: boolean) => CSSProperties);
20
- /**
21
- * Called with the box once it is mounted, and with `null` once it is gone.
22
- * @default undefined
23
- */
24
- onStage?: (element: HTMLDivElement | null) => void;
25
- /**
26
- * What is drawn in the box, handed whether it fills the screen and the
27
- * toggle, or `undefined` where the browser cannot fill the screen.
28
- */
29
- children: (fullscreen: Molecule3DFullscreen | undefined) => ReactNode;
30
- }
31
- /**
32
- * The box of the canvas, able to fill the screen.
33
- * @param props - See {@link Molecule3DStageProps}.
34
- * @returns The box.
35
- */
36
- export declare function Molecule3DStage(props: Molecule3DStageProps): ReactElement;
6
+ export type { FullscreenStageProps as Molecule3DStageProps } from '../../shared/ui/FullscreenStage.tsx';
7
+ export { FullscreenStage as Molecule3DStage } from '../../shared/ui/FullscreenStage.tsx';
37
8
  //# sourceMappingURL=Molecule3DStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Molecule3DStage.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DStage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,EAAE,aAAa,GAAG,CAAC,CAAC,WAAW,EAAE,OAAO,KAAK,aAAa,CAAC,CAAC;IACjE;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACnD;;;OAGG;IACH,QAAQ,EAAE,CAAC,UAAU,EAAE,oBAAoB,GAAG,SAAS,KAAK,SAAS,CAAC;CACvE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAMzE"}
1
+ {"version":3,"file":"Molecule3DStage.d.ts","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DStage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,oBAAoB,IAAI,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACxG,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC"}
@@ -1,41 +1,7 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  /**
3
2
  * The box the molecule canvas and its toolbars are drawn in, which is also the
4
- * box that fills the screen.
5
- *
6
- * A box filling the screen hides everything outside it, and the popovers and
7
- * tooltips of the toolbars are portalled to `document.body`: while the box
8
- * fills the screen they are portalled into it instead, the way react-science's
9
- * `RootLayout` keeps its own menus visible. Otherwise the portal options of the
10
- * page around the viewer are passed through untouched.
3
+ * box that fills the screen. It is the shared fullscreen stage, so the
4
+ * toolbars' popovers stay visible while it does.
11
5
  */
12
- import { PortalContext, PortalProvider } from '@blueprintjs/core';
13
- import { useCallback, useContext, useState } from 'react';
14
- import { FullScreenProvider, useFullscreen } from 'react-science/ui';
15
- /**
16
- * The box of the canvas, able to fill the screen.
17
- * @param props - See {@link Molecule3DStageProps}.
18
- * @returns The box.
19
- */
20
- export function Molecule3DStage(props) {
21
- return (_jsx(FullScreenProvider, { children: (fullscreenRef) => _jsx(Stage, { ...props, fullscreenRef: fullscreenRef }) }));
22
- }
23
- function Stage(props) {
24
- const { style, onStage, children, fullscreenRef } = props;
25
- const { isFullScreen, toggle } = useFullscreen();
26
- const portal = useContext(PortalContext);
27
- const [canFillScreen] = useState(isFullscreenEnabled);
28
- const [stage, setStage] = useState(null);
29
- const stageRef = useCallback((element) => {
30
- fullscreenRef.current = element;
31
- setStage(element);
32
- onStage?.(element);
33
- }, [fullscreenRef, onStage]);
34
- // The provider is always there, so entering full screen changes a value
35
- // rather than the tree, and the canvas inside is never mounted again.
36
- return (_jsx("div", { ref: stageRef, style: typeof style === 'function' ? style(isFullScreen) : style, children: _jsx(PortalProvider, { portalClassName: portal.portalClassName, portalContainer: isFullScreen && stage !== null ? stage : portal.portalContainer, children: children(canFillScreen ? { active: isFullScreen, toggle } : undefined) }) }));
37
- }
38
- function isFullscreenEnabled() {
39
- return typeof document !== 'undefined' && document.fullscreenEnabled;
40
- }
6
+ export { FullscreenStage as Molecule3DStage } from "../../shared/ui/FullscreenStage.js";
41
7
  //# sourceMappingURL=Molecule3DStage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Molecule3DStage.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DStage.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,MA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AAC,CAAC,MAAM,CAAC,eAAe,YAGhE,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GACxD,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,CAAC,iBAAiB,CAAC;AACvE,CAAC"}
1
+ {"version":3,"file":"Molecule3DStage.js","sourceRoot":"","sources":["../../../src/molecule3d/ui/Molecule3DStage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,oCAAqC,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Where a property's bar starts, how far it runs, and where its labelled mark
3
+ * goes.
4
+ *
5
+ * Three numbers come out of the domain and are merely arranged here. The
6
+ * **position** is how far along the scale the value sits and gives the bar its
7
+ * length; the **fitness** is DataWarrior's own `getValuation`, a continuous
8
+ * 0-to-1 score that the stylesheet reads as the green-to-red ramp; the
9
+ * **threshold** is the published rule of thumb — cLogP ≤ 5, logS > −4,
10
+ * molweight < 450, drug-likeness > 0 — drawn as a mark on the track.
11
+ *
12
+ * Nothing here invents a cut-off. A bar whose colour disagreed with the panel's
13
+ * own scale record would be a second opinion nobody could trace.
14
+ */
15
+ import type { PropertyKey } from './propertyKeys.ts';
16
+ /** Where a bar's fill and its mark go, all as fractions of the track. */
17
+ export interface BarGeometry {
18
+ /** Where the fill starts, 0 at the left end of the track and 1 at the right. */
19
+ start: number;
20
+ /** How much of the track the fill covers, 0 to 1. */
21
+ length: number;
22
+ /** How good the value is: 0 as bad as the ramp goes, 1 inside the preferred band. */
23
+ fitness: number;
24
+ /**
25
+ * Where the fill grows from: the left end of the track, or its middle for a
26
+ * quantity that runs either side of zero. Drawn as a tick, because a fill
27
+ * that starts at a quarter of the way along says nothing without it.
28
+ */
29
+ origin: number;
30
+ /** Where the published threshold is marked, or `null` where the property has none. */
31
+ mark: number | null;
32
+ /** How that threshold reads, e.g. `≤ 5`, or `null`. */
33
+ markLabel: string | null;
34
+ }
35
+ /**
36
+ * Lay out one property's bar.
37
+ * @param key - Which of the ten properties.
38
+ * @param value - The predicted number, or `null` when the predictor could not answer.
39
+ * @returns The geometry, or `null` when there is no bar to draw.
40
+ */
41
+ export declare function barGeometry(key: PropertyKey, value: number | null): BarGeometry | null;
42
+ //# sourceMappingURL=barGeometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barGeometry.d.ts","sourceRoot":"","sources":["../../../src/osiris/core/barGeometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,yEAAyE;AACzE,MAAM,WAAW,WAAW;IAC1B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,uDAAuD;IACvD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAQD;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,WAAW,GAAG,IAAI,CAmBpB"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Where a property's bar starts, how far it runs, and where its labelled mark
3
+ * goes.
4
+ *
5
+ * Three numbers come out of the domain and are merely arranged here. The
6
+ * **position** is how far along the scale the value sits and gives the bar its
7
+ * length; the **fitness** is DataWarrior's own `getValuation`, a continuous
8
+ * 0-to-1 score that the stylesheet reads as the green-to-red ramp; the
9
+ * **threshold** is the published rule of thumb — cLogP ≤ 5, logS > −4,
10
+ * molweight < 450, drug-likeness > 0 — drawn as a mark on the track.
11
+ *
12
+ * Nothing here invents a cut-off. A bar whose colour disagreed with the panel's
13
+ * own scale record would be a second opinion nobody could trace.
14
+ */
15
+ import { propertyFitness, propertyPosition } from "./fitness.js";
16
+ import { propertyScale } from "./scales.js";
17
+ /**
18
+ * Where a diverging bar grows from: the middle of its own range, which is
19
+ * drug-likeness 0 and drug score 0.
20
+ */
21
+ const DIVERGING_ORIGIN = 0.5;
22
+ /**
23
+ * Lay out one property's bar.
24
+ * @param key - Which of the ten properties.
25
+ * @param value - The predicted number, or `null` when the predictor could not answer.
26
+ * @returns The geometry, or `null` when there is no bar to draw.
27
+ */
28
+ export function barGeometry(key, value) {
29
+ const position = propertyPosition(key, value);
30
+ if (position === null)
31
+ return null;
32
+ const scale = propertyScale(key);
33
+ const origin = scale.diverging ? DIVERGING_ORIGIN : 0;
34
+ const mark = scale.threshold === null
35
+ ? null
36
+ : propertyPosition(key, scale.threshold.value);
37
+ return {
38
+ start: Math.min(origin, position),
39
+ length: Math.abs(position - origin),
40
+ fitness: propertyFitness(key, value) ?? 0,
41
+ origin,
42
+ mark,
43
+ markLabel: scale.threshold?.label ?? null,
44
+ };
45
+ }
46
+ //# sourceMappingURL=barGeometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barGeometry.js","sourceRoot":"","sources":["../../../src/osiris/core/barGeometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAsB5C;;;GAGG;AACH,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CACzB,GAAgB,EAChB,KAAoB;IAEpB,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9C,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAEnC,MAAM,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,IAAI,GACR,KAAK,CAAC,SAAS,KAAK,IAAI;QACtB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAEnD,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC;QACjC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,MAAM,CAAC;QACnC,OAAO,EAAE,eAAe,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC;QACzC,MAAM;QACN,IAAI;QACJ,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,IAAI,IAAI;KAC1C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Everything the tool predicts about one molecule, in one pass.
3
+ *
4
+ * The order of the reads is not arbitrary. `MoleculeProperties`' constructor
5
+ * normalises ambiguous bonds on the molecule it is handed, so the work is done
6
+ * on a copy and the caller's molecule — the one the editor is still drawing —
7
+ * is never touched. Its fields are prototype getters that rerun the whole
8
+ * predictor on every read, at 13 µs each, and the object cannot be spread or
9
+ * serialised at all, so each field is read exactly once into a plain object,
10
+ * and that plain object is what crosses the worker boundary.
11
+ *
12
+ * Nothing here trusts OpenChemLib to fail loudly. An empty molecule answers a
13
+ * full set of innocent numbers and a drug score of 0.63; a failed predictor
14
+ * answers -999, -1 or 0, never `NaN`; and `DrugScoreCalculator` consumes every
15
+ * one of those and returns something plausible. So the empty molecule is
16
+ * refused first, every sentinel becomes `null`, and a drug score is computed
17
+ * only when all of its inputs are real.
18
+ */
19
+ import type * as OCL from 'openchemlib';
20
+ import type { OsirisPredictors } from './predictors.ts';
21
+ import type { OsirisProperties } from './types.ts';
22
+ /** What a caller knows about the molecule that the molecule does not. */
23
+ export interface ComputePropertiesOptions {
24
+ /**
25
+ * The name the source carried. The canonical SMILES is used when there is
26
+ * none, so a row always has something to be called.
27
+ * @default the canonical SMILES
28
+ */
29
+ label?: string;
30
+ }
31
+ /** A structure with no atoms, which has nothing to predict. */
32
+ export declare const EMPTY_MOLECULE_MESSAGE = "This structure has no atoms, so there is nothing to predict.";
33
+ /**
34
+ * Predict everything the tool shows for one molecule.
35
+ * @param molecule - The molecule. It is copied before anything touches it, so the caller keeps it exactly as it was.
36
+ * @param predictors - OpenChemLib with its resources registered and checked.
37
+ * @param options - See {@link ComputePropertiesOptions}.
38
+ * @returns The ten numbers, the four risks, and what to call the molecule.
39
+ * @throws {Error} When the molecule has no atoms.
40
+ */
41
+ export declare function computeProperties(molecule: OCL.Molecule, predictors: OsirisPredictors, options?: ComputePropertiesOptions): OsirisProperties;
42
+ //# sourceMappingURL=computeProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeProperties.d.ts","sourceRoot":"","sources":["../../../src/osiris/core/computeProperties.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,KAAK,GAAG,MAAM,aAAa,CAAC;AAUxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,YAAY,CAAC;AAGxE,yEAAyE;AACzE,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+DAA+D;AAC/D,eAAO,MAAM,sBAAsB,iEAC6B,CAAC;AAEjE;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,GAAG,CAAC,QAAQ,EACtB,UAAU,EAAE,gBAAgB,EAC5B,OAAO,GAAE,wBAA6B,GACrC,gBAAgB,CAmDlB"}