jodit-pro 4.13.38 → 4.13.44

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 (343) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +28 -28
  4. package/es2015/jodit.js +83 -190
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +2 -2
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +306 -168
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +29 -29
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.css +1 -1
  22. package/es2015/plugins/color-picker/color-picker.js +1 -1
  23. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  24. package/es2015/plugins/emoji/emoji.css +1 -1
  25. package/es2015/plugins/emoji/emoji.js +1 -1
  26. package/es2015/plugins/emoji/emoji.min.js +1 -1
  27. package/es2015/plugins/export-docs/export-docs.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  29. package/es2015/plugins/finder/finder.css +1 -1
  30. package/es2015/plugins/finder/finder.js +1 -1
  31. package/es2015/plugins/finder/finder.min.css +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +241 -72
  35. package/es2015/plugins/google-maps/google-maps.min.js +4 -4
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.js +6 -12
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  46. package/es2015/plugins/keyboard/keyboard.css +1 -1
  47. package/es2015/plugins/keyboard/keyboard.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  49. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  50. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  51. package/es2015/plugins/page-break/page-break.js +1 -1
  52. package/es2015/plugins/page-break/page-break.min.js +1 -1
  53. package/es2015/plugins/paste-code/paste-code.css +1 -1
  54. package/es2015/plugins/paste-code/paste-code.js +1 -1
  55. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  56. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  57. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  58. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  59. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  60. package/es2015/plugins/style/style.css +1 -1
  61. package/es2015/plugins/style/style.js +1 -1
  62. package/es2015/plugins/style/style.min.js +1 -1
  63. package/es2015/plugins/templates/templates.css +1 -1
  64. package/es2015/plugins/templates/templates.js +1 -1
  65. package/es2015/plugins/templates/templates.min.js +1 -1
  66. package/es2015/plugins/todo-list/todo-list.css +1 -1
  67. package/es2015/plugins/todo-list/todo-list.js +1 -1
  68. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  69. package/es2015/plugins/translate/translate.css +1 -1
  70. package/es2015/plugins/translate/translate.js +1 -1
  71. package/es2015/plugins/translate/translate.min.js +1 -1
  72. package/es2015/plugins/tune-block/tune-block.css +1 -1
  73. package/es2015/plugins/tune-block/tune-block.js +1 -1
  74. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  75. package/es2018/jodit.fat.min.css +1 -1
  76. package/es2018/jodit.fat.min.js +19 -19
  77. package/es2018/jodit.min.css +1 -1
  78. package/es2018/jodit.min.js +2 -2
  79. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
  80. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  81. package/es2018/plugins/backup/backup.min.js +1 -1
  82. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  83. package/es2018/plugins/change-case/change-case.min.js +1 -1
  84. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  85. package/es2018/plugins/emoji/emoji.min.js +1 -1
  86. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  87. package/es2018/plugins/finder/finder.min.css +1 -1
  88. package/es2018/plugins/finder/finder.min.js +1 -1
  89. package/es2018/plugins/google-maps/google-maps.min.js +7 -7
  90. package/es2018/plugins/google-search/google-search.min.js +1 -1
  91. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  92. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  93. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  94. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  95. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  96. package/es2018/plugins/page-break/page-break.min.js +1 -1
  97. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  98. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  99. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  100. package/es2018/plugins/style/style.min.js +1 -1
  101. package/es2018/plugins/templates/templates.min.js +1 -1
  102. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  103. package/es2018/plugins/translate/translate.min.js +1 -1
  104. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  105. package/es2021/jodit.css +1 -1
  106. package/es2021/jodit.fat.min.css +1 -1
  107. package/es2021/jodit.fat.min.js +19 -19
  108. package/es2021/jodit.js +2 -2
  109. package/es2021/jodit.min.css +1 -1
  110. package/es2021/jodit.min.js +2 -2
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +1 -1
  119. package/es2021/plugins/backup/backup.min.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +1 -1
  122. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/color-picker/color-picker.css +1 -1
  126. package/es2021/plugins/color-picker/color-picker.js +1 -1
  127. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  128. package/es2021/plugins/emoji/emoji.css +1 -1
  129. package/es2021/plugins/emoji/emoji.js +1 -1
  130. package/es2021/plugins/emoji/emoji.min.js +1 -1
  131. package/es2021/plugins/export-docs/export-docs.js +1 -1
  132. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  133. package/es2021/plugins/finder/finder.css +1 -1
  134. package/es2021/plugins/finder/finder.js +1 -1
  135. package/es2021/plugins/finder/finder.min.css +1 -1
  136. package/es2021/plugins/finder/finder.min.js +1 -1
  137. package/es2021/plugins/google-maps/google-maps.css +1 -1
  138. package/es2021/plugins/google-maps/google-maps.js +236 -75
  139. package/es2021/plugins/google-maps/google-maps.min.js +9 -9
  140. package/es2021/plugins/google-search/google-search.js +1 -1
  141. package/es2021/plugins/google-search/google-search.min.js +1 -1
  142. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  143. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  144. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  145. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  147. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  148. package/es2021/plugins/image-editor-pro/image-editor-pro.js +2 -4
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  150. package/es2021/plugins/keyboard/keyboard.css +1 -1
  151. package/es2021/plugins/keyboard/keyboard.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  153. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  154. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  155. package/es2021/plugins/page-break/page-break.js +1 -1
  156. package/es2021/plugins/page-break/page-break.min.js +1 -1
  157. package/es2021/plugins/paste-code/paste-code.css +1 -1
  158. package/es2021/plugins/paste-code/paste-code.js +1 -1
  159. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  160. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  161. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  162. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  163. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  164. package/es2021/plugins/style/style.css +1 -1
  165. package/es2021/plugins/style/style.js +1 -1
  166. package/es2021/plugins/style/style.min.js +1 -1
  167. package/es2021/plugins/templates/templates.css +1 -1
  168. package/es2021/plugins/templates/templates.js +1 -1
  169. package/es2021/plugins/templates/templates.min.js +1 -1
  170. package/es2021/plugins/todo-list/todo-list.css +1 -1
  171. package/es2021/plugins/todo-list/todo-list.js +1 -1
  172. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  173. package/es2021/plugins/translate/translate.css +1 -1
  174. package/es2021/plugins/translate/translate.js +1 -1
  175. package/es2021/plugins/translate/translate.min.js +1 -1
  176. package/es2021/plugins/tune-block/tune-block.css +1 -1
  177. package/es2021/plugins/tune-block/tune-block.js +1 -1
  178. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  179. package/es2021.en/jodit.css +1 -1
  180. package/es2021.en/jodit.fat.min.css +1 -1
  181. package/es2021.en/jodit.fat.min.js +19 -19
  182. package/es2021.en/jodit.js +2 -2
  183. package/es2021.en/jodit.min.css +1 -1
  184. package/es2021.en/jodit.min.js +2 -2
  185. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  186. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
  187. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
  188. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  189. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  190. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  191. package/es2021.en/plugins/backup/backup.css +1 -1
  192. package/es2021.en/plugins/backup/backup.js +1 -1
  193. package/es2021.en/plugins/backup/backup.min.js +1 -1
  194. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  195. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  196. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  197. package/es2021.en/plugins/change-case/change-case.js +1 -1
  198. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  199. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  200. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  201. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  202. package/es2021.en/plugins/emoji/emoji.css +1 -1
  203. package/es2021.en/plugins/emoji/emoji.js +1 -1
  204. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  205. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  206. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  207. package/es2021.en/plugins/finder/finder.css +1 -1
  208. package/es2021.en/plugins/finder/finder.js +1 -1
  209. package/es2021.en/plugins/finder/finder.min.css +1 -1
  210. package/es2021.en/plugins/finder/finder.min.js +1 -1
  211. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  212. package/es2021.en/plugins/google-maps/google-maps.js +236 -75
  213. package/es2021.en/plugins/google-maps/google-maps.min.js +9 -9
  214. package/es2021.en/plugins/google-search/google-search.js +1 -1
  215. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  216. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  217. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  218. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  219. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  220. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  221. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  222. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +2 -4
  223. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  224. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  225. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  226. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  227. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  228. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  229. package/es2021.en/plugins/page-break/page-break.js +1 -1
  230. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  231. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  232. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  233. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  234. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  235. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  236. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  237. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  238. package/es2021.en/plugins/style/style.css +1 -1
  239. package/es2021.en/plugins/style/style.js +1 -1
  240. package/es2021.en/plugins/style/style.min.js +1 -1
  241. package/es2021.en/plugins/templates/templates.css +1 -1
  242. package/es2021.en/plugins/templates/templates.js +1 -1
  243. package/es2021.en/plugins/templates/templates.min.js +1 -1
  244. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  245. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  246. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  247. package/es2021.en/plugins/translate/translate.css +1 -1
  248. package/es2021.en/plugins/translate/translate.js +1 -1
  249. package/es2021.en/plugins/translate/translate.min.js +1 -1
  250. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  251. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  252. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  253. package/es5/jodit.css +2 -2
  254. package/es5/jodit.fat.min.css +1 -1
  255. package/es5/jodit.fat.min.js +2 -2
  256. package/es5/jodit.js +1788 -2701
  257. package/es5/jodit.min.css +3 -3
  258. package/es5/jodit.min.js +2 -2
  259. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  260. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +406 -275
  261. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  262. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  263. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  264. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  265. package/es5/plugins/backup/backup.css +1 -1
  266. package/es5/plugins/backup/backup.js +9 -9
  267. package/es5/plugins/backup/backup.min.js +2 -2
  268. package/es5/plugins/button-generator/button-generator.css +1 -1
  269. package/es5/plugins/button-generator/button-generator.js +11 -18
  270. package/es5/plugins/button-generator/button-generator.min.js +2 -2
  271. package/es5/plugins/change-case/change-case.js +1 -1
  272. package/es5/plugins/change-case/change-case.min.js +1 -1
  273. package/es5/plugins/color-picker/color-picker.css +1 -1
  274. package/es5/plugins/color-picker/color-picker.js +10 -17
  275. package/es5/plugins/color-picker/color-picker.min.js +2 -2
  276. package/es5/plugins/emoji/emoji.css +1 -1
  277. package/es5/plugins/emoji/emoji.js +7 -7
  278. package/es5/plugins/emoji/emoji.min.js +2 -2
  279. package/es5/plugins/export-docs/export-docs.js +11 -11
  280. package/es5/plugins/export-docs/export-docs.min.js +2 -2
  281. package/es5/plugins/finder/finder.css +1 -1
  282. package/es5/plugins/finder/finder.js +4 -10
  283. package/es5/plugins/finder/finder.min.css +1 -1
  284. package/es5/plugins/finder/finder.min.js +2 -2
  285. package/es5/plugins/google-maps/google-maps.css +1 -1
  286. package/es5/plugins/google-maps/google-maps.js +334 -114
  287. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  288. package/es5/plugins/google-search/google-search.js +1 -1
  289. package/es5/plugins/google-search/google-search.min.js +1 -1
  290. package/es5/plugins/highlight-signature/highlight-signature.js +6 -6
  291. package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
  292. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  293. package/es5/plugins/iframe-editor/iframe-editor.js +6 -6
  294. package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
  295. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  296. package/es5/plugins/image-editor-pro/image-editor-pro.js +29 -42
  297. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
  298. package/es5/plugins/keyboard/keyboard.css +1 -1
  299. package/es5/plugins/keyboard/keyboard.js +6 -6
  300. package/es5/plugins/keyboard/keyboard.min.js +2 -2
  301. package/es5/plugins/mobile-view/mobile-view.js +6 -6
  302. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  303. package/es5/plugins/page-break/page-break.js +6 -6
  304. package/es5/plugins/page-break/page-break.min.js +2 -2
  305. package/es5/plugins/paste-code/paste-code.css +1 -1
  306. package/es5/plugins/paste-code/paste-code.js +13 -13
  307. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  308. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  309. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  310. package/es5/plugins/show-blocks/show-blocks.js +8 -8
  311. package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
  312. package/es5/plugins/style/style.css +1 -1
  313. package/es5/plugins/style/style.js +1 -1
  314. package/es5/plugins/style/style.min.js +1 -1
  315. package/es5/plugins/templates/templates.css +1 -1
  316. package/es5/plugins/templates/templates.js +1 -1
  317. package/es5/plugins/templates/templates.min.js +1 -1
  318. package/es5/plugins/todo-list/todo-list.css +1 -1
  319. package/es5/plugins/todo-list/todo-list.js +18 -18
  320. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  321. package/es5/plugins/translate/translate.css +1 -1
  322. package/es5/plugins/translate/translate.js +7 -7
  323. package/es5/plugins/translate/translate.min.js +2 -2
  324. package/es5/plugins/tune-block/tune-block.css +1 -1
  325. package/es5/plugins/tune-block/tune-block.js +7 -7
  326. package/es5/plugins/tune-block/tune-block.min.js +2 -2
  327. package/es5/polyfills.fat.min.js +2 -2
  328. package/es5/polyfills.js +225 -105
  329. package/es5/polyfills.min.js +2 -2
  330. package/esm/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
  331. package/esm/plugins/ai-assistant-pro/core/sanitize-utils.js +1 -0
  332. package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -1
  333. package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.js +1 -1
  334. package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js +1 -1
  335. package/esm/plugins/google-maps/config.js +1 -1
  336. package/esm/plugins/google-maps/ui/map/map.d.ts +3 -2
  337. package/esm/plugins/google-maps/ui/map/map.js +2 -2
  338. package/esm/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
  339. package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -0
  340. package/package.json +1 -1
  341. package/types/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
  342. package/types/plugins/google-maps/ui/map/map.d.ts +3 -2
  343. package/types/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
package/es5/polyfills.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.13.38
4
+ * Version: v4.13.44
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -201,11 +201,10 @@ module.exports = (__webpack_require__(83828).polyfill)();
201
201
  /***/ (function(module, exports, __webpack_require__) {
202
202
 
203
203
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _instanceof(left, right) {
204
+ "@swc/helpers - instanceof";
204
205
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
205
206
  return !!right[Symbol.hasInstance](left);
206
- } else {
207
- return left instanceof right;
208
- }
207
+ } else return left instanceof right;
209
208
  }
210
209
  function _type_of(obj) {
211
210
  "@swc/helpers - typeof";
@@ -1399,18 +1398,20 @@ var isConstructor = __webpack_require__(82095);
1399
1398
  var lengthOfArrayLike = __webpack_require__(72352);
1400
1399
  var createProperty = __webpack_require__(14206);
1401
1400
  var setArrayLength = __webpack_require__(91001);
1402
- var getIterator = __webpack_require__(4151);
1403
- var getIteratorMethod = __webpack_require__(74553);
1401
+ var getIterator = __webpack_require__(32873);
1402
+ var getIteratorMethod = __webpack_require__(4251);
1403
+ var iteratorClose = __webpack_require__(80913);
1404
+ var doesNotExceedSafeInteger = __webpack_require__(19587);
1404
1405
  var $Array = Array;
1405
1406
  // `Array.from` method implementation
1406
1407
  // https://tc39.es/ecma262/#sec-array.from
1407
1408
  module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */ ) {
1408
- var O = toObject(arrayLike);
1409
1409
  var IS_CONSTRUCTOR = isConstructor(this);
1410
1410
  var argumentsLength = arguments.length;
1411
1411
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
1412
1412
  var mapping = mapfn !== undefined;
1413
1413
  if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
1414
+ var O = toObject(arrayLike);
1414
1415
  var iteratorMethod = getIteratorMethod(O);
1415
1416
  var index = 0;
1416
1417
  var length, result, step, iterator, next, value;
@@ -1420,11 +1421,20 @@ module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undef
1420
1421
  iterator = getIterator(O, iteratorMethod);
1421
1422
  next = iterator.next;
1422
1423
  for(; !(step = call(next, iterator)).done; index++){
1424
+ try {
1425
+ doesNotExceedSafeInteger(index);
1426
+ } catch (error) {
1427
+ iteratorClose(iterator, 'throw', error);
1428
+ }
1423
1429
  value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [
1424
1430
  step.value,
1425
1431
  index
1426
1432
  ], true) : step.value;
1427
- createProperty(result, index, value);
1433
+ try {
1434
+ createProperty(result, index, value);
1435
+ } catch (error) {
1436
+ iteratorClose(iterator, 'throw', error);
1437
+ }
1428
1438
  }
1429
1439
  } else {
1430
1440
  length = lengthOfArrayLike(O);
@@ -1602,11 +1612,10 @@ module.exports = function(METHOD_NAME) {
1602
1612
  "use strict";
1603
1613
 
1604
1614
  function _instanceof(left, right) {
1615
+ "@swc/helpers - instanceof";
1605
1616
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
1606
1617
  return !!right[Symbol.hasInstance](left);
1607
- } else {
1608
- return left instanceof right;
1609
- }
1618
+ } else return left instanceof right;
1610
1619
  }
1611
1620
  var DESCRIPTORS = __webpack_require__(76686);
1612
1621
  var isArray = __webpack_require__(71058);
@@ -2046,7 +2055,7 @@ module.exports = function(it) {
2046
2055
  var $TypeError = TypeError;
2047
2056
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2048
2057
  module.exports = function(it) {
2049
- if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
2058
+ if (it > MAX_SAFE_INTEGER) throw new $TypeError('Maximum allowed index exceeded');
2050
2059
  return it;
2051
2060
  };
2052
2061
 
@@ -2210,27 +2219,6 @@ module.exports = function(exec) {
2210
2219
  };
2211
2220
 
2212
2221
 
2213
- /***/ }),
2214
-
2215
- /***/ 85755:
2216
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2217
-
2218
- "use strict";
2219
-
2220
- function _type_of(obj) {
2221
- "@swc/helpers - typeof";
2222
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
2223
- }
2224
- var NATIVE_BIND = __webpack_require__(52994);
2225
- var FunctionPrototype = Function.prototype;
2226
- var apply = FunctionPrototype.apply;
2227
- var call = FunctionPrototype.call;
2228
- // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
2229
- module.exports = (typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() {
2230
- return call.apply(apply, arguments);
2231
- });
2232
-
2233
-
2234
2222
  /***/ }),
2235
2223
 
2236
2224
  /***/ 98914:
@@ -2377,39 +2365,39 @@ module.exports = function(namespace, method) {
2377
2365
 
2378
2366
  /***/ }),
2379
2367
 
2380
- /***/ 74553:
2368
+ /***/ 32873:
2381
2369
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2382
2370
 
2383
2371
  "use strict";
2384
2372
 
2385
- var classof = __webpack_require__(6801);
2386
- var getMethod = __webpack_require__(46724);
2387
- var isNullOrUndefined = __webpack_require__(17343);
2388
- var Iterators = __webpack_require__(38023);
2389
- var wellKnownSymbol = __webpack_require__(50529);
2390
- var ITERATOR = wellKnownSymbol('iterator');
2391
- module.exports = function(it) {
2392
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || Iterators[classof(it)];
2373
+ var call = __webpack_require__(4927);
2374
+ var isCallable = __webpack_require__(46395);
2375
+ var anObject = __webpack_require__(50405);
2376
+ var tryToString = __webpack_require__(96249);
2377
+ var getIteratorMethod = __webpack_require__(4251);
2378
+ var $TypeError = TypeError;
2379
+ module.exports = function(argument, usingIterator) {
2380
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
2381
+ if (isCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
2382
+ throw new $TypeError(tryToString(argument) + ' is not iterable');
2393
2383
  };
2394
2384
 
2395
2385
 
2396
2386
  /***/ }),
2397
2387
 
2398
- /***/ 4151:
2388
+ /***/ 4251:
2399
2389
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2400
2390
 
2401
2391
  "use strict";
2402
2392
 
2403
- var call = __webpack_require__(4927);
2404
- var aCallable = __webpack_require__(36840);
2405
- var anObject = __webpack_require__(50405);
2406
- var tryToString = __webpack_require__(96249);
2407
- var getIteratorMethod = __webpack_require__(74553);
2408
- var $TypeError = TypeError;
2409
- module.exports = function(argument, usingIterator) {
2410
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
2411
- if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
2412
- throw new $TypeError(tryToString(argument) + ' is not iterable');
2393
+ var classof = __webpack_require__(6238);
2394
+ var isNullOrUndefined = __webpack_require__(17343);
2395
+ var getMethod = __webpack_require__(46724);
2396
+ var wellKnownSymbol = __webpack_require__(50529);
2397
+ var ITERATOR = wellKnownSymbol('iterator');
2398
+ var ArrayPrototype = Array.prototype;
2399
+ module.exports = function(it) {
2400
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || (classof(it) === 'Arguments' ? ArrayPrototype[ITERATOR] : undefined);
2413
2401
  };
2414
2402
 
2415
2403
 
@@ -3087,7 +3075,7 @@ module.exports = {
3087
3075
 
3088
3076
  "use strict";
3089
3077
 
3090
- module.exports = {};
3078
+ module.exports = Object.create ? Object.create(null) : {};
3091
3079
 
3092
3080
 
3093
3081
  /***/ }),
@@ -3463,11 +3451,10 @@ exports.f = Object.getOwnPropertySymbols;
3463
3451
  "use strict";
3464
3452
 
3465
3453
  function _instanceof(left, right) {
3454
+ "@swc/helpers - instanceof";
3466
3455
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3467
3456
  return !!right[Symbol.hasInstance](left);
3468
- } else {
3469
- return left instanceof right;
3470
- }
3457
+ } else return left instanceof right;
3471
3458
  }
3472
3459
  var hasOwn = __webpack_require__(52571);
3473
3460
  var isCallable = __webpack_require__(46395);
@@ -3576,11 +3563,10 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
3576
3563
  "use strict";
3577
3564
 
3578
3565
  function _instanceof(left, right) {
3566
+ "@swc/helpers - instanceof";
3579
3567
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3580
3568
  return !!right[Symbol.hasInstance](left);
3581
- } else {
3582
- return left instanceof right;
3583
- }
3569
+ } else return left instanceof right;
3584
3570
  }
3585
3571
  /* eslint-disable no-proto -- safe */ var uncurryThisAccessor = __webpack_require__(51384);
3586
3572
  var isObject = __webpack_require__(13224);
@@ -3810,10 +3796,10 @@ var defineGlobalProperty = __webpack_require__(2783);
3810
3796
  var SHARED = '__core-js_shared__';
3811
3797
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
3812
3798
  (store.versions || (store.versions = [])).push({
3813
- version: '3.48.0',
3799
+ version: '3.50.0',
3814
3800
  mode: IS_PURE ? 'pure' : 'global',
3815
3801
  copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
3816
- license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
3802
+ license: 'https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE',
3817
3803
  source: 'https://github.com/zloirock/core-js'
3818
3804
  });
3819
3805
 
@@ -3826,8 +3812,10 @@ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED,
3826
3812
  "use strict";
3827
3813
 
3828
3814
  var store = __webpack_require__(67431);
3815
+ // eslint-disable-next-line es/no-object-create -- safe
3816
+ var create = Object.create || Object;
3829
3817
  module.exports = function(key, value) {
3830
- return store[key] || (store[key] = value || {});
3818
+ return store[key] || (store[key] = value || create(null));
3831
3819
  };
3832
3820
 
3833
3821
 
@@ -3874,11 +3862,10 @@ module.exports = {
3874
3862
  "use strict";
3875
3863
 
3876
3864
  function _instanceof(left, right) {
3865
+ "@swc/helpers - instanceof";
3877
3866
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
3878
3867
  return !!right[Symbol.hasInstance](left);
3879
- } else {
3880
- return left instanceof right;
3881
- }
3868
+ } else return left instanceof right;
3882
3869
  }
3883
3870
  /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = __webpack_require__(62877);
3884
3871
  var fails = __webpack_require__(99049);
@@ -3936,6 +3923,19 @@ var NATIVE_SYMBOL = __webpack_require__(36477);
3936
3923
  /* eslint-disable es/no-symbol -- safe */ module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor;
3937
3924
 
3938
3925
 
3926
+ /***/ }),
3927
+
3928
+ /***/ 75806:
3929
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3930
+
3931
+ "use strict";
3932
+
3933
+ var uncurryThis = __webpack_require__(76858);
3934
+ // `thisNumberValue` abstract operation
3935
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
3936
+ module.exports = uncurryThis(1.1.valueOf);
3937
+
3938
+
3939
3939
  /***/ }),
3940
3940
 
3941
3941
  /***/ 21344:
@@ -4365,37 +4365,57 @@ $({
4365
4365
 
4366
4366
  "use strict";
4367
4367
 
4368
+ function _type_of(obj) {
4369
+ "@swc/helpers - typeof";
4370
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
4371
+ }
4368
4372
  var $ = __webpack_require__(7796);
4369
4373
  var getBuiltIn = __webpack_require__(74081);
4370
- var apply = __webpack_require__(85755);
4371
4374
  var call = __webpack_require__(4927);
4372
4375
  var uncurryThis = __webpack_require__(76858);
4373
4376
  var fails = __webpack_require__(99049);
4374
4377
  var isArray = __webpack_require__(71058);
4375
4378
  var isCallable = __webpack_require__(46395);
4379
+ var isObject = __webpack_require__(13224);
4380
+ var create = __webpack_require__(64218);
4376
4381
  var isRawJSON = __webpack_require__(9888);
4377
4382
  var isSymbol = __webpack_require__(89007);
4378
4383
  var classof = __webpack_require__(6238);
4384
+ var thisNumberValue = __webpack_require__(75806);
4385
+ var includes = (__webpack_require__(14763).includes);
4386
+ var hasOwn = __webpack_require__(52571);
4379
4387
  var toString = __webpack_require__(20229);
4380
- var arraySlice = __webpack_require__(18098);
4381
4388
  var parseJSONString = __webpack_require__(31122);
4382
4389
  var uid = __webpack_require__(60506);
4383
4390
  var NATIVE_SYMBOL = __webpack_require__(36477);
4384
4391
  var NATIVE_RAW_JSON = __webpack_require__(96413);
4385
4392
  var $String = String;
4393
+ var $TypeError = TypeError;
4386
4394
  var $stringify = getBuiltIn('JSON', 'stringify');
4395
+ var $BigInt = getBuiltIn('BigInt');
4396
+ var stringValueOf = uncurryThis(''.valueOf);
4397
+ var booleanValueOf = uncurryThis(true.valueOf);
4398
+ var bigIntValueOf = $BigInt && uncurryThis($BigInt.prototype.valueOf);
4387
4399
  var exec = uncurryThis(/./.exec);
4388
4400
  var charAt = uncurryThis(''.charAt);
4389
4401
  var charCodeAt = uncurryThis(''.charCodeAt);
4390
4402
  var replace = uncurryThis(''.replace);
4391
4403
  var slice = uncurryThis(''.slice);
4392
4404
  var push = uncurryThis([].push);
4405
+ var pop = uncurryThis([].pop);
4393
4406
  var numberToString = uncurryThis(1.1.toString);
4394
4407
  var surrogates = /[\uD800-\uDFFF]/g;
4395
- var lowSurrogates = /^[\uD800-\uDBFF]$/;
4396
- var hiSurrogates = /^[\uDC00-\uDFFF]$/;
4397
- var MARK = uid();
4398
- var MARK_LENGTH = MARK.length;
4408
+ var leadingSurrogates = /^[\uD800-\uDBFF]$/;
4409
+ var trailingSurrogates = /^[\uDC00-\uDFFF]$/;
4410
+ var digits = /^\d+$/;
4411
+ // a placeholder of a raw JSON value
4412
+ var RAW_MARK = uid();
4413
+ // a prefix of keys of a reordered object, see `createOrderedObject`
4414
+ var KEY_MARK = uid();
4415
+ // the last key of a reordered object, marks the end of its serialization
4416
+ var END_MARK = uid();
4417
+ var RAW_MARK_LENGTH = RAW_MARK.length;
4418
+ var KEY_MARK_LENGTH = KEY_MARK.length;
4399
4419
  var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function() {
4400
4420
  var symbol = getBuiltIn('Symbol')('stringify detection');
4401
4421
  // MS Edge converts symbol values to JSON as {}
@@ -4409,46 +4429,101 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function() {
4409
4429
  var ILL_FORMED_UNICODE = fails(function() {
4410
4430
  return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"' || $stringify('\uDEAD') !== '"\\udead"';
4411
4431
  });
4412
- var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function(it, replacer) {
4413
- var args = arraySlice(arguments);
4414
- var $replacer = getReplacerFunction(replacer);
4415
- if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
4416
- args[1] = function(key, value) {
4417
- // some old implementations (like WebKit) could pass numbers as keys
4418
- if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
4419
- if (!isSymbol(value)) return value;
4420
- };
4421
- return apply($stringify, null, args);
4432
+ var isRawJSONValue = NATIVE_RAW_JSON ? getBuiltIn('JSON', 'isRawJSON') : isRawJSON;
4433
+ var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function(it, replacer, space) {
4434
+ return $stringify(it, function(key, value) {
4435
+ var replaced = call(replacer, this, key, value);
4436
+ if (!isSymbol(replaced)) return replaced;
4437
+ }, space);
4422
4438
  } : $stringify;
4423
4439
  var fixIllFormedJSON = function fixIllFormedJSON(match, offset, string) {
4424
4440
  var prev = charAt(string, offset - 1);
4425
4441
  var next = charAt(string, offset + 1);
4426
- if (exec(lowSurrogates, match) && !exec(hiSurrogates, next) || exec(hiSurrogates, match) && !exec(lowSurrogates, prev)) {
4442
+ if (exec(leadingSurrogates, match) && !exec(trailingSurrogates, next) || exec(trailingSurrogates, match) && !exec(leadingSurrogates, prev)) {
4427
4443
  return '\\u' + numberToString(charCodeAt(match, 0), 16);
4428
4444
  }
4429
4445
  return match;
4430
4446
  };
4431
- var getReplacerFunction = function getReplacerFunction(replacer) {
4432
- if (isCallable(replacer)) return replacer;
4447
+ // `PropertyList` of `JSON.stringify`
4448
+ // https://tc39.es/ecma262/#sec-json.stringify
4449
+ var getPropertyList = function getPropertyList(replacer) {
4433
4450
  if (!isArray(replacer)) return;
4434
4451
  var rawLength = replacer.length;
4435
- var keys = [];
4452
+ var propertyList = [];
4453
+ // a null prototype object is used as a set of already added keys to keep the deduplication linear
4454
+ var addedKeys = create(null);
4436
4455
  for(var i = 0; i < rawLength; i++){
4437
4456
  var element = replacer[i];
4438
- if (typeof element == 'string') push(keys, element);
4439
- else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
4457
+ var key;
4458
+ if (typeof element == 'string') key = element;
4459
+ else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') key = toString(element);
4460
+ else continue;
4461
+ if (!hasOwn(addedKeys, key)) {
4462
+ addedKeys[key] = true;
4463
+ push(propertyList, key);
4464
+ }
4440
4465
  }
4441
- var keysLength = keys.length;
4442
- var root = true;
4443
- return function(key, value) {
4444
- if (root) {
4445
- root = false;
4446
- return value;
4466
+ return propertyList;
4467
+ };
4468
+ // values with such an internal slot are unwrapped by `SerializeJSONProperty` instead of being serialized as objects
4469
+ var hasInternalSlot = function hasInternalSlot(valueOf, it) {
4470
+ try {
4471
+ valueOf(it);
4472
+ return true;
4473
+ } catch (error) {
4474
+ return false;
4475
+ }
4476
+ };
4477
+ // the slot check is expensive, so it's performed only for the kind reported by the value itself -
4478
+ // a value lying about its kind via `Symbol.toStringTag` is serialized as an ordinary object
4479
+ var isBoxedPrimitive = function isBoxedPrimitive(it) {
4480
+ var kind = classof(it);
4481
+ return kind === 'Number' && hasInternalSlot(thisNumberValue, it) || kind === 'String' && hasInternalSlot(stringValueOf, it) || kind === 'Boolean' && hasInternalSlot(booleanValueOf, it) || !!bigIntValueOf && kind === 'BigInt' && hasInternalSlot(bigIntValueOf, it);
4482
+ };
4483
+ // only objects serialized by `SerializeJSONObject` are affected by the property list
4484
+ var isSerializedAsObject = function isSerializedAsObject(it) {
4485
+ if (!isObject(it) || isCallable(it) || isArray(it)) return false;
4486
+ try {
4487
+ return !isBoxedPrimitive(it);
4488
+ // `classof` reads `Symbol.toStringTag`, so a proxy could throw - it has no internal slots anyway
4489
+ } catch (error) {
4490
+ return true;
4491
+ }
4492
+ };
4493
+ // the engine unwraps it in the same order as it would read the original property,
4494
+ // so the property is read lazily and `toJSON` is called once and with the original key
4495
+ var createElementHolder = function createElementHolder(holder, key) {
4496
+ return {
4497
+ toJSON: function toJSON() {
4498
+ var element = holder[key];
4499
+ if (isObject(element) || (typeof element === "undefined" ? "undefined" : _type_of(element)) == 'bigint') {
4500
+ var elementToJSON = element.toJSON;
4501
+ if (isCallable(elementToJSON)) element = call(elementToJSON, element, key);
4502
+ }
4503
+ return element;
4447
4504
  }
4448
- if (isArray(this)) return value;
4449
- for(var j = 0; j < keysLength; j++)if (keys[j] === key) return value;
4450
4505
  };
4451
4506
  };
4507
+ // own keys of objects are sorted - integer-like keys are moved to the beginning,
4508
+ // so such keys should be marked and restored in the serialized string
4509
+ var getKeyPrefix = function getKeyPrefix(propertyList) {
4510
+ for(var i = 0, length = propertyList.length; i < length; i++){
4511
+ if (exec(digits, propertyList[i])) return KEY_MARK;
4512
+ }
4513
+ return '';
4514
+ };
4515
+ // `SerializeJSONObject` iterates the property list, so the value is replaced with an object with keys in this order
4516
+ var createOrderedObject = function createOrderedObject(value, propertyList, keyPrefix) {
4517
+ // keys are not marked if the property list has no integer-like keys, so `Object.prototype`
4518
+ // with a setter, a non-writable property or `__proto__` should not intercept the assignment
4519
+ var ordered = create(null);
4520
+ for(var i = 0, length = propertyList.length; i < length; i++){
4521
+ var key = propertyList[i];
4522
+ ordered[keyPrefix + key] = createElementHolder(value, key);
4523
+ }
4524
+ ordered[END_MARK] = null;
4525
+ return ordered;
4526
+ };
4452
4527
  // `JSON.stringify` method
4453
4528
  // https://tc39.es/ecma262/#sec-json.stringify
4454
4529
  // https://github.com/tc39/proposal-json-parse-with-source
@@ -4459,16 +4534,47 @@ if ($stringify) $({
4459
4534
  forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON
4460
4535
  }, {
4461
4536
  stringify: function stringify(text, replacer, space) {
4462
- var replacerFunction = getReplacerFunction(replacer);
4537
+ var replacerFunction = isCallable(replacer) ? replacer : undefined;
4538
+ var propertyList = replacerFunction ? undefined : getPropertyList(replacer);
4539
+ var keyPrefix = propertyList && getKeyPrefix(propertyList);
4463
4540
  var rawStrings = [];
4541
+ var openObjects = [];
4542
+ var parentOrdered = [];
4543
+ var currentOrdered;
4544
+ var marked = false;
4545
+ var root = true;
4464
4546
  var json = stringifyWithProperSymbolsConversion(text, function(key, value) {
4465
4547
  // some old implementations (like WebKit) could pass numbers as keys
4466
- var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;
4467
- return !NATIVE_RAW_JSON && isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v;
4548
+ key = $String(key);
4549
+ if (propertyList) {
4550
+ if (key === END_MARK) {
4551
+ pop(openObjects);
4552
+ currentOrdered = pop(parentOrdered);
4553
+ return;
4554
+ }
4555
+ if (root) root = false;
4556
+ else if (this !== currentOrdered && !isArray(this) && !includes(propertyList, key)) return;
4557
+ } else if (replacerFunction) value = call(replacerFunction, this, key, value);
4558
+ if (isRawJSONValue(value)) {
4559
+ if (NATIVE_RAW_JSON) return value;
4560
+ marked = true;
4561
+ return RAW_MARK + (push(rawStrings, value.rawJSON) - 1);
4562
+ }
4563
+ if (propertyList && isSerializedAsObject(value)) {
4564
+ // reordered objects are new each time, so cycles should be detected before the engine does it
4565
+ if (includes(openObjects, value)) throw new $TypeError('Converting circular structure to JSON');
4566
+ var ordered = createOrderedObject(value, propertyList, keyPrefix);
4567
+ push(openObjects, value);
4568
+ push(parentOrdered, currentOrdered);
4569
+ currentOrdered = ordered;
4570
+ if (keyPrefix) marked = true;
4571
+ return ordered;
4572
+ }
4573
+ return value;
4468
4574
  }, space);
4469
4575
  if (typeof json != 'string') return json;
4470
4576
  if (ILL_FORMED_UNICODE) json = replace(json, surrogates, fixIllFormedJSON);
4471
- if (NATIVE_RAW_JSON) return json;
4577
+ if (!marked) return json;
4472
4578
  var result = '';
4473
4579
  var length = json.length;
4474
4580
  for(var i = 0; i < length; i++){
@@ -4476,7 +4582,9 @@ if ($stringify) $({
4476
4582
  if (chr === '"') {
4477
4583
  var end = parseJSONString(json, ++i).end - 1;
4478
4584
  var string = slice(json, i, end);
4479
- result += slice(string, 0, MARK_LENGTH) === MARK ? rawStrings[slice(string, MARK_LENGTH)] : '"' + string + '"';
4585
+ if (slice(string, 0, RAW_MARK_LENGTH) === RAW_MARK) result += rawStrings[slice(string, RAW_MARK_LENGTH)];
4586
+ else if (slice(string, 0, KEY_MARK_LENGTH) === KEY_MARK) result += '"' + slice(string, KEY_MARK_LENGTH) + '"';
4587
+ else result += '"' + string + '"';
4480
4588
  i = end;
4481
4589
  } else result += chr;
4482
4590
  }
@@ -4671,11 +4779,10 @@ defineWellKnownSymbol('asyncIterator');
4671
4779
  "use strict";
4672
4780
 
4673
4781
  function _instanceof(left, right) {
4782
+ "@swc/helpers - instanceof";
4674
4783
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
4675
4784
  return !!right[Symbol.hasInstance](left);
4676
- } else {
4677
- return left instanceof right;
4678
- }
4785
+ } else return left instanceof right;
4679
4786
  }
4680
4787
  var $ = __webpack_require__(7796);
4681
4788
  var globalThis = __webpack_require__(35034);
@@ -4743,6 +4850,7 @@ var fallbackDefineProperty = function fallbackDefineProperty(O, P, Attributes) {
4743
4850
  if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
4744
4851
  nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
4745
4852
  }
4853
+ return O;
4746
4854
  };
4747
4855
  var setSymbolDescriptor = DESCRIPTORS && fails(function() {
4748
4856
  return nativeObjectCreate(nativeDefineProperty({}, 'a', {
@@ -4769,7 +4877,8 @@ var $defineProperty = function defineProperty(O, P, Attributes) {
4769
4877
  var key = toPropertyKey(P);
4770
4878
  anObject(Attributes);
4771
4879
  if (hasOwn(AllSymbols, key)) {
4772
- if (!Attributes.enumerable) {
4880
+ // first definition - default non-enumerable; redefinition - preserve existing state
4881
+ if (!('enumerable' in Attributes) ? !hasOwn(O, key) || hasOwn(O, HIDDEN) && O[HIDDEN][key] : !Attributes.enumerable) {
4773
4882
  if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null)));
4774
4883
  O[HIDDEN][key] = true;
4775
4884
  } else {
@@ -4958,6 +5067,7 @@ hiddenKeys[HIDDEN] = true;
4958
5067
  var $ = __webpack_require__(7796);
4959
5068
  var DESCRIPTORS = __webpack_require__(76686);
4960
5069
  var globalThis = __webpack_require__(35034);
5070
+ var call = __webpack_require__(4927);
4961
5071
  var uncurryThis = __webpack_require__(76858);
4962
5072
  var hasOwn = __webpack_require__(52571);
4963
5073
  var isCallable = __webpack_require__(46395);
@@ -4978,6 +5088,16 @@ NativeSymbol().description !== undefined)) {
4978
5088
  return result;
4979
5089
  };
4980
5090
  copyConstructorProperties(SymbolWrapper, NativeSymbol);
5091
+ // wrap Symbol.for for correct handling of empty string descriptions
5092
+ var nativeFor = SymbolWrapper['for'];
5093
+ SymbolWrapper['for'] = ({
5094
+ 'for': function(key) {
5095
+ var stringKey = toString(key);
5096
+ var symbol = call(nativeFor, this, stringKey);
5097
+ if (stringKey === '') EmptyStringDescriptionStore[symbol] = true;
5098
+ return symbol;
5099
+ }
5100
+ })['for'];
4981
5101
  SymbolWrapper.prototype = SymbolPrototype;
4982
5102
  SymbolPrototype.constructor = SymbolWrapper;
4983
5103
  var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';