jodit-pro 4.8.14 → 4.9.2

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 (378) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/es2015/jodit.css +2 -2
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +38 -38
  5. package/es2015/jodit.js +531 -448
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +17 -17
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +2282 -2279
  10. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  11. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +11 -11
  12. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  13. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  14. package/es2015/plugins/backup/backup.css +1 -1
  15. package/es2015/plugins/backup/backup.js +1 -1
  16. package/es2015/plugins/backup/backup.min.js +1 -1
  17. package/es2015/plugins/button-generator/button-generator.css +1 -1
  18. package/es2015/plugins/button-generator/button-generator.js +1 -1
  19. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  20. package/es2015/plugins/change-case/change-case.js +1 -1
  21. package/es2015/plugins/change-case/change-case.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +2 -2
  32. package/es2015/plugins/finder/finder.min.js +2 -2
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +52 -59
  35. package/es2015/plugins/google-maps/google-maps.min.js +6 -6
  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/keyboard/keyboard.css +1 -1
  44. package/es2015/plugins/keyboard/keyboard.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  46. package/es2015/plugins/mobile-view/mobile-view.js +4 -1
  47. package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
  48. package/es2015/plugins/page-break/page-break.js +4 -1
  49. package/es2015/plugins/page-break/page-break.min.js +3 -3
  50. package/es2015/plugins/paste-code/paste-code.css +1 -1
  51. package/es2015/plugins/paste-code/paste-code.js +4 -1
  52. package/es2015/plugins/paste-code/paste-code.min.js +2 -2
  53. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  54. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  55. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  56. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  57. package/es2015/plugins/todo-list/todo-list.css +1 -1
  58. package/es2015/plugins/todo-list/todo-list.js +1 -1
  59. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  60. package/es2015/plugins/translate/translate.css +1 -1
  61. package/es2015/plugins/translate/translate.js +1 -1
  62. package/es2015/plugins/translate/translate.min.js +1 -1
  63. package/es2015/plugins/tune-block/tune-block.css +1 -1
  64. package/es2015/plugins/tune-block/tune-block.js +1 -1
  65. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  66. package/es2018/jodit.fat.min.css +1 -1
  67. package/es2018/jodit.fat.min.js +32 -32
  68. package/es2018/jodit.min.css +1 -1
  69. package/es2018/jodit.min.js +17 -17
  70. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  71. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
  72. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  73. package/es2018/plugins/backup/backup.min.js +1 -1
  74. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  75. package/es2018/plugins/change-case/change-case.min.js +1 -1
  76. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  77. package/es2018/plugins/emoji/emoji.min.js +1 -1
  78. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  79. package/es2018/plugins/finder/finder.min.js +2 -2
  80. package/es2018/plugins/google-maps/google-maps.min.js +6 -6
  81. package/es2018/plugins/google-search/google-search.min.js +1 -1
  82. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  83. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  84. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  85. package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
  86. package/es2018/plugins/page-break/page-break.min.js +3 -3
  87. package/es2018/plugins/paste-code/paste-code.min.js +2 -2
  88. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  89. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  90. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  91. package/es2018/plugins/translate/translate.min.js +1 -1
  92. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  93. package/es2021/jodit.css +2 -2
  94. package/es2021/jodit.fat.min.css +1 -1
  95. package/es2021/jodit.fat.min.js +36 -36
  96. package/es2021/jodit.js +531 -448
  97. package/es2021/jodit.min.css +1 -1
  98. package/es2021/jodit.min.js +21 -21
  99. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  100. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +4901 -4898
  101. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  102. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +28 -28
  103. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  104. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  105. package/es2021/plugins/backup/backup.css +1 -1
  106. package/es2021/plugins/backup/backup.js +1 -1
  107. package/es2021/plugins/backup/backup.min.js +1 -1
  108. package/es2021/plugins/button-generator/button-generator.css +1 -1
  109. package/es2021/plugins/button-generator/button-generator.js +1 -1
  110. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  111. package/es2021/plugins/change-case/change-case.js +1 -1
  112. package/es2021/plugins/change-case/change-case.min.js +1 -1
  113. package/es2021/plugins/color-picker/color-picker.css +1 -1
  114. package/es2021/plugins/color-picker/color-picker.js +1 -1
  115. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  116. package/es2021/plugins/emoji/emoji.css +1 -1
  117. package/es2021/plugins/emoji/emoji.js +1 -1
  118. package/es2021/plugins/emoji/emoji.min.js +1 -1
  119. package/es2021/plugins/export-docs/export-docs.js +1 -1
  120. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  121. package/es2021/plugins/finder/finder.css +1 -1
  122. package/es2021/plugins/finder/finder.js +2 -2
  123. package/es2021/plugins/finder/finder.min.js +2 -2
  124. package/es2021/plugins/google-maps/google-maps.css +1 -1
  125. package/es2021/plugins/google-maps/google-maps.js +52 -59
  126. package/es2021/plugins/google-maps/google-maps.min.js +7 -7
  127. package/es2021/plugins/google-search/google-search.js +1 -1
  128. package/es2021/plugins/google-search/google-search.min.js +1 -1
  129. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  130. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  131. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  132. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  133. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  134. package/es2021/plugins/keyboard/keyboard.css +1 -1
  135. package/es2021/plugins/keyboard/keyboard.js +1 -1
  136. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  137. package/es2021/plugins/mobile-view/mobile-view.js +4 -1
  138. package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
  139. package/es2021/plugins/page-break/page-break.js +4 -1
  140. package/es2021/plugins/page-break/page-break.min.js +3 -3
  141. package/es2021/plugins/paste-code/paste-code.css +1 -1
  142. package/es2021/plugins/paste-code/paste-code.js +4 -1
  143. package/es2021/plugins/paste-code/paste-code.min.js +2 -2
  144. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  145. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  146. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  147. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  148. package/es2021/plugins/todo-list/todo-list.css +1 -1
  149. package/es2021/plugins/todo-list/todo-list.js +1 -1
  150. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  151. package/es2021/plugins/translate/translate.css +1 -1
  152. package/es2021/plugins/translate/translate.js +1 -1
  153. package/es2021/plugins/translate/translate.min.js +1 -1
  154. package/es2021/plugins/tune-block/tune-block.css +1 -1
  155. package/es2021/plugins/tune-block/tune-block.js +1 -1
  156. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  157. package/es2021.en/jodit.css +2 -2
  158. package/es2021.en/jodit.fat.min.css +1 -1
  159. package/es2021.en/jodit.fat.min.js +36 -36
  160. package/es2021.en/jodit.js +531 -448
  161. package/es2021.en/jodit.min.css +1 -1
  162. package/es2021.en/jodit.min.js +21 -21
  163. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  164. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +4779 -4776
  165. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  166. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
  167. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  168. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  169. package/es2021.en/plugins/backup/backup.css +1 -1
  170. package/es2021.en/plugins/backup/backup.js +1 -1
  171. package/es2021.en/plugins/backup/backup.min.js +1 -1
  172. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  173. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  174. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  175. package/es2021.en/plugins/change-case/change-case.js +1 -1
  176. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  177. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  178. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  179. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  180. package/es2021.en/plugins/emoji/emoji.css +1 -1
  181. package/es2021.en/plugins/emoji/emoji.js +1 -1
  182. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  183. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  184. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  185. package/es2021.en/plugins/finder/finder.css +1 -1
  186. package/es2021.en/plugins/finder/finder.js +2 -2
  187. package/es2021.en/plugins/finder/finder.min.js +2 -2
  188. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  189. package/es2021.en/plugins/google-maps/google-maps.js +52 -59
  190. package/es2021.en/plugins/google-maps/google-maps.min.js +7 -7
  191. package/es2021.en/plugins/google-search/google-search.js +1 -1
  192. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  193. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  194. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  195. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  196. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  197. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  198. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  199. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  200. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  201. package/es2021.en/plugins/mobile-view/mobile-view.js +4 -1
  202. package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
  203. package/es2021.en/plugins/page-break/page-break.js +4 -1
  204. package/es2021.en/plugins/page-break/page-break.min.js +3 -3
  205. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  206. package/es2021.en/plugins/paste-code/paste-code.js +4 -1
  207. package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
  208. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  209. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  210. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  211. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  212. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  213. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  214. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  215. package/es2021.en/plugins/translate/translate.css +1 -1
  216. package/es2021.en/plugins/translate/translate.js +1 -1
  217. package/es2021.en/plugins/translate/translate.min.js +1 -1
  218. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  219. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  220. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  221. package/es5/jodit.css +3 -3
  222. package/es5/jodit.fat.min.css +1 -1
  223. package/es5/jodit.fat.min.js +2 -2
  224. package/es5/jodit.js +546 -458
  225. package/es5/jodit.min.css +3 -3
  226. package/es5/jodit.min.js +2 -2
  227. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
  228. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +2121 -2121
  229. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  230. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  231. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  232. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  233. package/es5/plugins/backup/backup.css +1 -1
  234. package/es5/plugins/backup/backup.js +1 -1
  235. package/es5/plugins/backup/backup.min.js +1 -1
  236. package/es5/plugins/button-generator/button-generator.css +1 -1
  237. package/es5/plugins/button-generator/button-generator.js +1 -1
  238. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  239. package/es5/plugins/change-case/change-case.js +1 -1
  240. package/es5/plugins/change-case/change-case.min.js +1 -1
  241. package/es5/plugins/color-picker/color-picker.css +1 -1
  242. package/es5/plugins/color-picker/color-picker.js +1 -1
  243. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  244. package/es5/plugins/emoji/emoji.css +1 -1
  245. package/es5/plugins/emoji/emoji.js +1 -1
  246. package/es5/plugins/emoji/emoji.min.js +1 -1
  247. package/es5/plugins/export-docs/export-docs.js +1 -1
  248. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  249. package/es5/plugins/finder/finder.css +1 -1
  250. package/es5/plugins/finder/finder.js +2 -2
  251. package/es5/plugins/finder/finder.min.js +2 -2
  252. package/es5/plugins/google-maps/google-maps.css +1 -1
  253. package/es5/plugins/google-maps/google-maps.js +61 -59
  254. package/es5/plugins/google-maps/google-maps.min.js +2 -2
  255. package/es5/plugins/google-search/google-search.js +1 -1
  256. package/es5/plugins/google-search/google-search.min.js +1 -1
  257. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  258. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  259. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  260. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  261. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  262. package/es5/plugins/keyboard/keyboard.css +1 -1
  263. package/es5/plugins/keyboard/keyboard.js +1 -1
  264. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  265. package/es5/plugins/mobile-view/mobile-view.js +7 -1
  266. package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
  267. package/es5/plugins/page-break/page-break.js +7 -1
  268. package/es5/plugins/page-break/page-break.min.js +2 -2
  269. package/es5/plugins/paste-code/paste-code.css +1 -1
  270. package/es5/plugins/paste-code/paste-code.js +7 -1
  271. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  272. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  273. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  274. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  275. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  276. package/es5/plugins/todo-list/todo-list.css +1 -1
  277. package/es5/plugins/todo-list/todo-list.js +1 -1
  278. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  279. package/es5/plugins/translate/translate.css +1 -1
  280. package/es5/plugins/translate/translate.js +1 -1
  281. package/es5/plugins/translate/translate.min.js +1 -1
  282. package/es5/plugins/tune-block/tune-block.css +1 -1
  283. package/es5/plugins/tune-block/tune-block.js +1 -1
  284. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  285. package/es5/polyfills.fat.min.js +1 -1
  286. package/es5/polyfills.js +1 -1
  287. package/es5/polyfills.min.js +1 -1
  288. package/esm/config.d.ts +1 -6
  289. package/esm/config.js +1 -1
  290. package/esm/jodit-pro.d.ts +3 -1
  291. package/esm/jodit-pro.js +1 -1
  292. package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.js +1 -1
  293. package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.js +2 -2
  294. package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
  295. package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.js +1 -1
  296. package/esm/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
  297. package/esm/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.js +1 -0
  298. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
  299. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.js +1 -1
  300. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
  301. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.js +1 -1
  302. package/esm/plugins/finder/browser.js +1 -1
  303. package/esm/plugins/google-maps/interface.d.ts +8 -0
  304. package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
  305. package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
  306. package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
  307. package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
  308. package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
  309. package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
  310. package/esm/plugins/google-maps/ui/map/map.d.ts +3 -3
  311. package/esm/plugins/google-maps/ui/map/map.js +2 -2
  312. package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
  313. package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
  314. package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
  315. package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
  316. package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
  317. package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
  318. package/esm/plugins/mobile-view/mobile-view.js +1 -1
  319. package/esm/plugins/page-break/page-break.d.ts +1 -0
  320. package/esm/plugins/page-break/page-break.js +1 -1
  321. package/esm/plugins/paste-code/paste-code.d.ts +1 -0
  322. package/esm/plugins/paste-code/paste-code.js +1 -1
  323. package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
  324. package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
  325. package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
  326. package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
  327. package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
  328. package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
  329. package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
  330. package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
  331. package/esm/plugins/paste-from-word/element/checkers.d.ts +5 -5
  332. package/esm/plugins/paste-from-word/element/element.d.ts +2 -1
  333. package/esm/plugins/paste-from-word/element/element.js +1 -1
  334. package/esm/plugins/paste-from-word/element/render.d.ts +3 -3
  335. package/esm/plugins/paste-from-word/element/style.js +1 -1
  336. package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
  337. package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
  338. package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
  339. package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  340. package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  341. package/esm/plugins/paste-from-word/interface.d.ts +25 -3
  342. package/package.json +1 -1
  343. package/types/config.d.ts +1 -6
  344. package/types/jodit-pro.d.ts +3 -1
  345. package/types/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
  346. package/types/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
  347. package/types/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
  348. package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
  349. package/types/plugins/google-maps/interface.d.ts +8 -0
  350. package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
  351. package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
  352. package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
  353. package/types/plugins/google-maps/ui/map/map.d.ts +3 -3
  354. package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
  355. package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
  356. package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
  357. package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
  358. package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
  359. package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
  360. package/types/plugins/page-break/page-break.d.ts +1 -0
  361. package/types/plugins/paste-code/paste-code.d.ts +1 -0
  362. package/types/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
  363. package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
  364. package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
  365. package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
  366. package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
  367. package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
  368. package/types/plugins/paste-from-word/element/checkers.d.ts +5 -5
  369. package/types/plugins/paste-from-word/element/element.d.ts +2 -1
  370. package/types/plugins/paste-from-word/element/render.d.ts +3 -3
  371. package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
  372. package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
  373. package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
  374. package/types/plugins/paste-from-word/interface.d.ts +25 -3
  375. package/esm/plugins/ai-assistant-pro/ui/message-list/message-list-item.js +0 -1
  376. package/esm/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
  377. package/esm/plugins/google-maps/ui/map/modules/index.js +0 -1
  378. package/types/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
@@ -1,22 +1,22 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var i=o();for(var a in i)("object"==typeof exports?exports:t)[a]=i[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[946],{482:function(t,o,i){"use strict";i.r(o),i.d(o,{googleMaps:function(){return C}});var a=i(82749),r=i(31635);i(55029),i(99413);var n=i(17298),s=i(61818),l=i(67912),c=i(92931),p=i(65805),h=i(4774),u=i(82758),d=i(65478),g=i(21537),m=i(50911),f=i(62843),y=i(78584),v=i(92762),b=i(2692);window.JoditGoogleReadyHandler=l.GoogleReadyHandler;class C extends m.Plugin{className(){return"google-maps"}afterInit(t){t.registerCommand(n.COMMAND_OPEN_DIALOG,()=>{this.openMapEditor(null,{})})}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let o;try{o=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,o),!1}}async openMapEditor(t,o){let i=this.j,a=this.getDialog(),r=this.j.o.googleMaps.saveStateInStorage?a.storage.get(n.STORAGE_KEY):void 0,{apiUrl:s}=this.jodit.o.googleMaps;(0,l.isApiAvailable)()||(0,g.appendScriptAsync)(this.jodit,s.replace(/\${([^}]+)}/g,(t,o)=>{var i;return null!=(i=this.get(o))?i:""}));let d={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...r,...o},m=new h.UIMap(a,d,this.j.options);m.container.classList.add(a.getFullElName("map"));let y=new p.UIComboBox(i,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);y.container.classList.add(a.getFullElName("search")),this.j.async.promise(t=>{if((0,l.isApiAvailable)())return void t(0);let o=()=>{(0,l.isApiAvailable)()?t(0):this.j.async.setTimeout(o,100)};o(),(0,l.googleReady)(t)}).then(()=>{m.setStatus("ready"),y.setStatus("ready")}),this.j.e.on(y,"select",(t,o)=>{o?m.map.fitBounds(o):t&&(m.state.center=[t.lat(),t.lng()])}),r||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition(t=>{m.state.center=[t.coords.latitude,t.coords.longitude]},()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter}):m.state.center=this.j.o.googleMaps.map.center),a.setSize(...i.o.googleMaps.dialog.size).setHeader([y,"&nbsp;",(0,f.Button)(i,"eye").onAction(()=>{let t=this.jodit.createInside.element("img");t.src=(0,c.staticUrl)(m),t.dataset.googleMaps=btoa(m.json());let o={value:t.outerHTML};this.onAfterGetValueFromEditor(o),i.execCommand("preview",null,o.value)})]).setContent((0,v.TabsWidget)(i,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new h.UIMapsPropsForm(i,m.state)},{name:"Controls",icon:"menu",content:new h.UIMapsControlsForm(i,m.state)}])).setFooter([(0,f.Button)(i,"cancel","Cancel","default").onAction(()=>a.close()),(0,f.Button)(i,"ok",t?"Save":"Insert","primary").onAction(()=>{m.destruct(),y.destruct(),a.e.off("beforeClose",b),a.close(),this.insertMap(t,m)})]).open();let b=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(d.elements)&&!u.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),y.destruct(),a.e.off("beforeClose",b)};a.e.on("beforeClose",b)}getDialog(){if(!this.dialog){let t=new y.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,o){let i=null!=t?t:this.jodit.createInside.element("img");i.src=(0,c.staticUrl)(o),i.dataset.googleMaps=btoa(o.json()),t||this.jodit.s.insertImage(i)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,o){this.j.o.googleMaps.useStaticImage||o===u.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(t,o,i,a,r,n)=>{let l={};try{l=JSON.parse(this.j.ow.atob(r))}catch(t){}return`${o} id="${l.uid}" ${i}data-google-maps${i}=${a}${r}${a}${n}${(0,s.generateJSScript)(this.j,l)}`}))}constructor(...t){super(...t),(0,a._)(this,"buttons",[{group:"media",name:"googleMaps"}]),(0,a._)(this,"dialog",null)}}(0,a._)(C,"requires",["license","color-picker"]),(0,r.__decorate)([(0,d.watch)("?:openOnDblClick")],C.prototype,"onOpenOnDblClick",null),(0,r.__decorate)([(0,d.watch)(":beforeSetNativeEditorValue")],C.prototype,"onBeforeSetNativeEditorValue",null),(0,r.__decorate)([(0,d.watch)(":afterGetValueFromEditor")],C.prototype,"onAfterGetValueFromEditor",null),b.JoditPro.plugins.add("google-maps",C)},1475:function(t,o,i){"use strict";i.d(o,{initOrUpdateElementFromState:function(){return p}});var a=i(53454),r=i(11079),n=i(72690),s=i(580),l=i(12153),c=i(67912);function p(t,o){let i,p=this.mapElements[o];if(p){if(p.state.type===t.type)return n.updateStateAndGme.call(this,t,o);p.gme.setMap(null)}switch(t.type){case"text":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let o=(0,c.arrayToPath)(t.coordinates);i=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:o,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":var h;i=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!=(h=t.fillOpacity)?h:1})}let u={type:t.type,uid:(0,s.uniqueUid)(),state:t,gme:i};"dragend radius_changed center_changed".split(" ").forEach(t=>i.addListener(t,()=>a.onChangeGeometries.call(this,u,o))),("polygon"===u.type||"polyline"===u.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>u.gme.getPath().addListener(t,()=>a.onChangeGeometries.call(this,u,o))),i.addListener("click",()=>r.openPropsDialog.call(this,u,o)),this.mapElements[o]=u}},4169:function(t,o,i){"use strict";i.d(o,{UIMap:function(){return m}});var a=i(82749),r=i(31635);i(55029);var n=i(1475),s=i(69209),l=i(65478),c=i(580),p=i(38837),h=i(41180),u=i(67510),d=i(11676),g=i(17298);class m extends u.UIGroup{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;let t=this.getElm("map-root");(0,p.assert)(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",()=>{var t;this.state.zoom=null!=(t=this.map.getZoom())?t:10}),this.map.addListener("center_changed",()=>{var t,o,i,a,r,n;this.state.center=[null!=(t=null==(a=this.map)||null==(i=a.getCenter())?void 0:i.lat())?t:55,null!=(o=null==(n=this.map)||null==(r=n.getCenter())?void 0:r.lng())?o:34]}),this.map.addListener("maptypeid_changed",()=>{let t=this.map.getMapTypeId();t&&(this.state.type=t)}),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback(()=>{this.j.e.fire(this,"GoogleMapsIsReady")})}initDrawManager(){try{let t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",t=>{t.overlay&&(s.addNewInState.call(this,t.overlay),t.overlay.setMap(null))})}catch(t){}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null==(t=this.drawingManager)||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){let{state:{elements:t},mapElements:o}=this;t.length<o.length&&o.slice(t.length).forEach(t=>{t.gme.setMap(null)}),o.length=t.length,t.forEach((t,o)=>n.initOrUpdateElementFromState.call(this,t,o))}onChangeCenter(){let t=this.map.getCenter();((null==t?void 0:t.lat())!==this.state.center[0]||(null==t?void 0:t.lng())!==this.state.center[1])&&this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;null==(t=this.map)||t.setZoom(this.state.zoom)}onChangeControls(){let t;for(t in this.state.controls){var o;null==(o=this.map)||o.set(t,this.state.controls[t])}}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(g.STORAGE_KEY,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){let t=this.getElm("map-size");(0,p.assert)(null!=t,"map-size element does not exists"),(0,h.css)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach(t=>t.setMap(null)),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach(t=>t.setMap(this.map))}render(){return`<div>
8
+ !function(t,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var i=o();for(var a in i)("object"==typeof exports?exports:t)[a]=i[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[946],{482:function(t,o,i){"use strict";i.r(o),i.d(o,{googleMaps:function(){return C}});var a=i(82749),r=i(31635);i(55029),i(99413);var n=i(17298),s=i(61818),l=i(67912),c=i(92931),p=i(65805),h=i(4774),u=i(82758),d=i(65478),g=i(21537),m=i(50911),f=i(62843),y=i(78584),v=i(92762),b=i(2692);window.JoditGoogleReadyHandler=l.GoogleReadyHandler;class C extends m.Plugin{className(){return"google-maps"}afterInit(t){t.registerCommand(n.COMMAND_OPEN_DIALOG,()=>{this.openMapEditor(null,{})})}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let o;try{o=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,o),!1}}async openMapEditor(t,o){let i=this.j,a=this.getDialog(),r=this.j.o.googleMaps.saveStateInStorage?a.storage.get(n.STORAGE_KEY):void 0,{apiUrl:s}=this.jodit.o.googleMaps;(0,l.isApiAvailable)()||(0,g.appendScriptAsync)(this.jodit,s.replace(/\${([^}]+)}/g,(t,o)=>{var i;return null!=(i=this.get(o))?i:""}));let d={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...r,...o},m=new h.UIMap(a,d,this.j.options);m.container.classList.add(a.getFullElName("map"));let y=new p.UIComboBox(i,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);y.container.classList.add(a.getFullElName("search")),this.j.async.promise(t=>{if((0,l.isApiAvailable)())return void t(0);let o=()=>{(0,l.isApiAvailable)()?t(0):this.j.async.setTimeout(o,100)};o(),(0,l.googleReady)(t)}).then(()=>{m.setStatus("ready"),y.setStatus("ready")}),this.j.e.on(y,"select",(t,o)=>{o?m.map.fitBounds(o):t&&(m.state.center=[t.lat(),t.lng()])}),r||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition(t=>{m.state.center=[t.coords.latitude,t.coords.longitude]},()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter}):m.state.center=this.j.o.googleMaps.map.center),a.setSize(...i.o.googleMaps.dialog.size).setHeader([y,"&nbsp;",(0,f.Button)(i,"eye").onAction(()=>{let t=this.jodit.createInside.element("img");t.src=(0,c.staticUrl)(m),t.dataset.googleMaps=btoa(m.json());let o={value:t.outerHTML};this.onAfterGetValueFromEditor(o),i.execCommand("preview",null,o.value)})]).setContent((0,v.TabsWidget)(i,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new h.UIMapsPropsForm(i,m.state)},{name:"Controls",icon:"menu",content:new h.UIMapsControlsForm(i,m.state)}])).setFooter([(0,f.Button)(i,"cancel","Cancel","default").onAction(()=>a.close()),(0,f.Button)(i,"ok",t?"Save":"Insert","primary").onAction(()=>{m.destruct(),y.destruct(),a.e.off("beforeClose",b),a.close(),this.insertMap(t,m)})]).open();let b=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(d.elements)&&!u.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),y.destruct(),a.e.off("beforeClose",b)};a.e.on("beforeClose",b)}getDialog(){if(!this.dialog){let t=new y.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,o){let i=null!=t?t:this.jodit.createInside.element("img");i.src=(0,c.staticUrl)(o),i.dataset.googleMaps=btoa(o.json()),t||this.jodit.s.insertImage(i)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,o){this.j.o.googleMaps.useStaticImage||o===u.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(t,o,i,a,r,n)=>{let l={};try{l=JSON.parse(this.j.ow.atob(r))}catch(t){}return`${o} id="${l.uid}" ${i}data-google-maps${i}=${a}${r}${a}${n}${(0,s.generateJSScript)(this.j,l)}`}))}constructor(...t){super(...t),(0,a._)(this,"buttons",[{group:"media",name:"googleMaps"}]),(0,a._)(this,"dialog",null)}}(0,a._)(C,"requires",["license","color-picker"]),(0,r.__decorate)([(0,d.watch)("?:openOnDblClick")],C.prototype,"onOpenOnDblClick",null),(0,r.__decorate)([(0,d.watch)(":beforeSetNativeEditorValue")],C.prototype,"onBeforeSetNativeEditorValue",null),(0,r.__decorate)([(0,d.watch)(":afterGetValueFromEditor")],C.prototype,"onAfterGetValueFromEditor",null),b.JoditPro.plugins.add("google-maps",C)},1475:function(t,o,i){"use strict";i.d(o,{initOrUpdateElementFromState:function(){return p}});var a=i(53454),r=i(11079),n=i(72690),s=i(580),l=i(12153),c=i(67912);function p(t,o){let i,p=this.mapElements[o];if(p){if(p.state.type===t.type)return n.updateStateAndGme.call(this,t,o);p.gme.setMap(null)}switch(t.type){case"text":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let o=(0,c.arrayToPath)(t.coordinates);i=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:o,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":var h;i=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!=(h=t.fillOpacity)?h:1})}let u={type:t.type,uid:(0,s.uniqueUid)(),state:t,gme:i};"dragend radius_changed center_changed".split(" ").forEach(t=>i.addListener(t,()=>a.onChangeGeometries.call(this,u,o))),("polygon"===u.type||"polyline"===u.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>u.gme.getPath().addListener(t,()=>a.onChangeGeometries.call(this,u,o))),i.addListener("click",()=>r.openPropsDialog.call(this,u,o)),this.mapElements[o]=u}},4169:function(t,o,i){"use strict";i.d(o,{UIMap:function(){return v}});var a=i(82749),r=i(31635);i(55029);var n=i(22125),s=i(1475),l=i(81577),c=i(97357),p=i(13525),h=i(37133),u=i(580),d=i(38837),g=i(41180),m=i(67510),f=i(11676),y=i(17298);class v extends m.UIGroup{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;let t=this.getElm("map-root");(0,d.assert)(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",()=>{var t;this.state.zoom=null!=(t=this.map.getZoom())?t:10}),this.map.addListener("center_changed",()=>{var t,o,i,a,r,n;this.state.center=[null!=(t=null==(a=this.map)||null==(i=a.getCenter())?void 0:i.lat())?t:55,null!=(o=null==(n=this.map)||null==(r=n.getCenter())?void 0:r.lng())?o:34]}),this.map.addListener("maptypeid_changed",()=>{let t=this.map.getMapTypeId();t&&(this.state.type=t)}),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback(()=>{this.j.e.fire(this,"GoogleMapsIsReady")})}initDrawManager(){try{let t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",t=>{t.overlay&&(n.addNewInState.call(this,t.overlay),t.overlay.setMap(null))})}catch(t){}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null==(t=this.drawingManager)||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){let{state:{elements:t},mapElements:o}=this;t.length<o.length&&o.slice(t.length).forEach(t=>{t.gme.setMap(null)}),o.length=t.length,t.forEach((t,o)=>s.initOrUpdateElementFromState.call(this,t,o))}onChangeCenter(){let t=this.map.getCenter();((null==t?void 0:t.lat())!==this.state.center[0]||(null==t?void 0:t.lng())!==this.state.center[1])&&this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;null==(t=this.map)||t.setZoom(this.state.zoom)}onChangeControls(){let t;for(t in this.state.controls){var o;null==(o=this.map)||o.set(t,this.state.controls[t])}}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(y.STORAGE_KEY,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){let t=this.getElm("map-size");(0,d.assert)(null!=t,"map-size element does not exists"),(0,g.css)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach(t=>t.setMap(null)),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach(t=>t.setMap(this.map))}render(){return`<div>
9
9
  <div class='&__map-root'></div>
10
10
  <div class='&__map-size'></div>
11
11
  <div class='&__map-palette'></div>
12
- </div>`}appendChildToContainer(){}constructor(t,o,i){super(t),(0,a._)(this,"options",void 0),(0,a._)(this,"drawingManager",void 0),(0,a._)(this,"toolbar",void 0),(0,a._)(this,"state",void 0),(0,a._)(this,"mapElements",void 0),(0,a._)(this,"apiLoaded",void 0),(0,a._)(this,"mapInitialized",void 0),(0,a._)(this,"map",void 0),(0,a._)(this,"layers",void 0),this.options=i,this.toolbar=new d.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,c.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,o),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const r=this.getElm("map-palette");(0,p.assert)(null!=r,"palette element does not exists"),r.appendChild(this.toolbar.container)}}(0,r.__decorate)([(0,l.hook)("ready")],m.prototype,"onReady",null),(0,r.__decorate)([(0,l.watch)("?:changeCreateMode.gm")],m.prototype,"changeCreateMode",null),(0,r.__decorate)([(0,l.watch)("state.mode")],m.prototype,"onChangeMode",null),(0,r.__decorate)([(0,l.watch)("state.elements")],m.prototype,"onChangeElementsList",null),(0,r.__decorate)([(0,l.watch)("state.center"),(0,l.wait)(t=>t.mapInitialized),(0,l.debounce)()],m.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,l.watch)("state.zoom"),(0,l.debounce)()],m.prototype,"onChangeZoom",null),(0,r.__decorate)([(0,l.watch)("state.controls")],m.prototype,"onChangeControls",null),(0,r.__decorate)([(0,l.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,l.wait)(t=>t.mapInitialized),(0,l.debounce)()],m.prototype,"onChangeBound",null),(0,r.__decorate)([(0,l.watch)("state.size"),(0,l.debounce)()],m.prototype,"onChangeSize",null),(0,r.__decorate)([(0,l.watch)("state.type")],m.prototype,"onChangeMapType",null),(0,r.__decorate)([(0,l.watch)("state.layer")],m.prototype,"onChangeLayer",null)},4774:function(t,o,i){"use strict";i.d(o,{UIMap:function(){return a.UIMap},UIMapsControlsForm:function(){return r.UIMapsControlsForm},UIMapsPropsForm:function(){return n.UIMapsPropsForm}}),i(90835);var a=i(4169),r=i(8073),n=i(83039);i(11093)},8073:function(t,o,i){"use strict";i.d(o,{UIMapsControlsForm:function(){return l}});var a=i(82749),r=i(31635),n=i(87325),s=i(67510);class l extends s.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,o){this.state.controls={...this.state.controls,[t]:"true"===o}}constructor(t,o){super(t),(0,a._)(this,"state",void 0),this.state=o;const i={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(i);this.append(r.map(o=>new s.UICheckbox(t,{label:i[o],name:o,checked:this.state.controls[o],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,o)})))}}l=(0,r.__decorate)([n.component],l)},11079:function(t,o,i){"use strict";i.d(o,{openPropsDialog:function(){return l}});var a=i(47660),r=i(72690),n=i(90835);function s(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,o){let i;switch(this.state.mode="hand",t.type){case"polyline":i=new n.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":i=new n.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":i=new n.UIPolygonEditor(this.jodit,t.state,this.options)}if(!i)return;this.append(i),this.j.e.on(i,"bin",()=>{a.removeElement.call(this,t)}).on(i,"change",(i,a)=>{r.updateStateAndGme.call(this,{...t.state,[i]:a},o)});let l=s.call(this);if("polygon"===t.type||"polyline"===t.type){let o=t.gme.getPath().getAt(0);l.setPosition(o)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(i.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{i&&(this.remove(i),i.destruct())})}},11093:function(t,o,i){"use strict";i.d(o,{UIWysiwyg:function(){return c}});var a=i(31635),r=i(87325),n=i(38837),s=i(48538),l=i(2692);class c extends s.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
12
+ </div>`}appendChildToContainer(){}constructor(t,o,i){super(t),(0,a._)(this,"options",void 0),(0,a._)(this,"drawingManager",void 0),(0,a._)(this,"toolbar",void 0),(0,a._)(this,"state",void 0),(0,a._)(this,"mapElements",void 0),(0,a._)(this,"apiLoaded",void 0),(0,a._)(this,"mapInitialized",void 0),(0,a._)(this,"map",void 0),(0,a._)(this,"layers",void 0),this.options=i,this.toolbar=new f.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,u.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,o),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const r=this.getElm("map-palette");(0,d.assert)(null!=r,"palette element does not exists"),r.appendChild(this.toolbar.container)}}(0,r.__decorate)([(0,c.hook)("ready")],v.prototype,"onReady",null),(0,r.__decorate)([(0,h.watch)("?:changeCreateMode.gm")],v.prototype,"changeCreateMode",null),(0,r.__decorate)([(0,h.watch)("state.mode")],v.prototype,"onChangeMode",null),(0,r.__decorate)([(0,h.watch)("state.elements")],v.prototype,"onChangeElementsList",null),(0,r.__decorate)([(0,h.watch)("state.center"),(0,p.wait)(t=>t.mapInitialized),(0,l.debounce)()],v.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,h.watch)("state.zoom"),(0,l.debounce)()],v.prototype,"onChangeZoom",null),(0,r.__decorate)([(0,h.watch)("state.controls")],v.prototype,"onChangeControls",null),(0,r.__decorate)([(0,h.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,p.wait)(t=>t.mapInitialized),(0,l.debounce)()],v.prototype,"onChangeBound",null),(0,r.__decorate)([(0,h.watch)("state.size"),(0,l.debounce)()],v.prototype,"onChangeSize",null),(0,r.__decorate)([(0,h.watch)("state.type")],v.prototype,"onChangeMapType",null),(0,r.__decorate)([(0,h.watch)("state.layer")],v.prototype,"onChangeLayer",null)},4774:function(t,o,i){"use strict";i.d(o,{UIMap:function(){return a.UIMap},UIMapsControlsForm:function(){return r.UIMapsControlsForm},UIMapsPropsForm:function(){return n.UIMapsPropsForm}}),i(90835);var a=i(4169),r=i(8073),n=i(83039);i(11093)},8073:function(t,o,i){"use strict";i.d(o,{UIMapsControlsForm:function(){return l}});var a=i(82749),r=i(31635),n=i(87325),s=i(67510);class l extends s.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,o){this.state.controls={...this.state.controls,[t]:"true"===o}}constructor(t,o){super(t),(0,a._)(this,"state",void 0),this.state=o;const i={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(i);this.append(r.map(o=>new s.UICheckbox(t,{label:i[o],name:o,checked:this.state.controls[o],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,o)})))}}l=(0,r.__decorate)([n.component],l)},11079:function(t,o,i){"use strict";i.d(o,{openPropsDialog:function(){return l}});var a=i(47660),r=i(72690),n=i(90835);function s(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,o){let i;switch(this.state.mode="hand",t.type){case"polyline":i=new n.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":i=new n.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":i=new n.UIPolygonEditor(this.jodit,t.state,this.options)}if(!i)return;this.append(i),this.j.e.on(i,"bin",()=>{a.removeElement.call(this,t)}).on(i,"change",(i,a)=>{r.updateStateAndGme.call(this,{...t.state,[i]:a},o)});let l=s.call(this);if("polygon"===t.type||"polyline"===t.type){let o=t.gme.getPath().getAt(0);l.setPosition(o)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(i.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{i&&(this.remove(i),i.destruct())})}},11093:function(t,o,i){"use strict";i.d(o,{UIWysiwyg:function(){return c}});var a=i(31635),r=i(87325),n=i(38837),s=i(48538),l=i(2692);class c extends s.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
13
13
  <div class='&__label'>~Info~</div>
14
14
  <div class='&__editor'></div>
15
- </div>`}constructor(t,o,i,a){super(t);const r=this.getElm("editor");(0,n.assert)(null!=r,"editor element does not exist");const s=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...o});s.value=i,s.e.on("change",()=>a(s.value))}}c=(0,a.__decorate)([r.component],c)},11696:function(t,o,i){"use strict";i.d(o,{UIPolygonEditor:function(){return c}});var a=i(31635),r=i(65478),n=i(62357),s=i(45128),l=i(69398);class c extends l.UIPolylineEditor{onReady(){var t,o;this.append([new s.ColorInput(this.j,{label:"Fill color",value:null!=(t=this.state.fillColor)?t:"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new n.UIRange(this.j,{label:"Opacity",min:0,max:1,value:null!=(o=this.state.fillOpacity)?o:1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}}(0,a.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,a.__decorate)([r.component],c)},14002:function(t,o,i){"use strict";i.d(o,{UIBaseEditor:function(){return n}});var a=i(82749),r=i(67510);class n extends r.UIGroup{className(){return"UIBaseEditor"}render(){return`<div>
15
+ </div>`}constructor(t,o,i,a){super(t);const r=this.getElm("editor");(0,n.assert)(null!=r,"editor element does not exist");const s=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...o});s.value=i,s.e.on("change",()=>a(s.value))}}c=(0,a.__decorate)([r.component],c)},11696:function(t,o,i){"use strict";i.d(o,{UIPolygonEditor:function(){return c}});var a=i(31635),r=i(65478),n=i(62357),s=i(45128),l=i(69398);class c extends l.UIPolylineEditor{className(){return"UIPolygonEditor"}onReady(){var t,o;this.append([new s.ColorInput(this.j,{label:"Fill color",value:null!=(t=this.state.fillColor)?t:"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new n.UIRange(this.j,{label:"Opacity",min:0,max:1,value:null!=(o=this.state.fillOpacity)?o:1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}}(0,a.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,a.__decorate)([r.component],c)},14002:function(t,o,i){"use strict";i.d(o,{UIBaseEditor:function(){return n}});var a=i(82749),r=i(67510);class n extends r.UIGroup{className(){return"UIBaseEditor"}render(){return`<div>
16
16
  <div class='&__header'></div>
17
17
  <div class='&__form'></div>
18
18
  <div class='&__buttons'></div>
19
- </div>`}onReady(){let t=(0,r.Button)(this.j,"bin").onAction(()=>this.j.e.fire(this,"bin"));this.append(t,"buttons")}constructor(t,o,i){super(t),(0,a._)(this,"state",void 0),(0,a._)(this,"options",void 0),this.state=o,this.options=i}}},17298:function(t,o,i){"use strict";i.d(o,{COMMAND_OPEN_DIALOG:function(){return r},STORAGE_KEY:function(){return a}});let a="googleMapsState",r="googleMapsDialog"},22125:function(t,o,i){"use strict";i.d(o,{addNewInState:function(){return r}});var a=i(67912);function r(t){var o,i,r,n,s,l,c,p;switch(this.state.mode){case"polyline":case"polygon":{let{mode:o}=this.state;this.state.elements=[...this.state.elements,{type:o,coordinates:(0,a.pathToArray)(t.getPath()),...this.options.googleMaps.map.defaultStates[o]}];break}case"circle":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!=(o=null==(r=t.getCenter())?void 0:r.lat())?o:0,null!=(i=null==(n=t.getCenter())?void 0:n.lng())?i:0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break;case"marker":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!=(s=null==(c=t.getPosition())?void 0:c.lat())?s:0,null!=(l=null==(p=t.getPosition())?void 0:p.lng())?l:0],...this.options.googleMaps.map.defaultStates.marker}]}}},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},36576:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},42370:function(t,o,i){"use strict";i.d(o,{UIMarkerEditor:function(){return l}});var a=i(31635),r=i(65478),n=i(14002),s=i(11093);class l extends n.UIBaseEditor{onReady(){var t;super.onReady();let o=new s.UIWysiwyg(this.j,this.options.googleMaps.inlineEditorOptions,null!=(t=this.state.text)?t:"",t=>this.j.e.fire(this,"change","text",t));this.append(o,"form")}}(0,a.__decorate)([(0,r.hook)("ready")],l.prototype,"onReady",null),l=(0,a.__decorate)([r.component],l)},45128:function(t,o,i){"use strict";i.d(o,{ColorInput:function(){return d}});var a=i(82749),r=i(31635),n=i(46146),s=i(82758),l=i(65478),c=i(21537),p=i(38837),h=i(67510),u=i(41409);class d extends h.UIInput{className(){return"ColorInput"}afterSetMode(t,o){"slim"===t&&o&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){if(t.key===s.KEY_ESC){var o;null==(o=this.popup)||o.close()}}constructor(t,o){super(t,o),(0,a._)(this,"trigger",void 0),(0,a._)(this,"popup",void 0);const i=new h.Popup(t);this.popup=i,this.trigger=(0,h.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,p.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{var t,o;null==(t=(o=this.state).onChange)||t.call(o,this.value),i.close()}),i.setMod("padding",!1).setMod("max-height",!1);const s=this.j.create.div(this.getFullElName("picker")),l=n.createPicker(s,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,o)=>{this.isFocused||(this.value=n.parseColor(o||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,n.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),i.setContent(s),this.j.e.on(this.nativeInput,"click",()=>{i.parentElement=this,this.jodit instanceof u.Dialog&&i.setZIndex(this.jodit.getZIndex()+1),i.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],d.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],d.prototype,"onEscKeyDown",null),d=(0,r.__decorate)([l.component],d)},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,o,i){"use strict";var a=i(3);function r(t){return!0===a(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var o,i;return!1!==r(t)&&"function"==typeof(o=t.constructor)&&!1!==r(i=o.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf")}},function(t,o,i){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.VERSION=o.PALETTE_MATERIAL_CHROME=o.PALETTE_MATERIAL_500=o.COLOR_NAMES=o.getLuminance=o.intToRgb=o.rgbToInt=o.rgbToHsv=o.rgbToHsl=o.hslToRgb=o.rgbToHex=o.parseColor=o.parseColorToHsla=o.parseColorToHsl=o.parseColorToRgba=o.parseColorToRgb=o.from=o.createPicker=void 0;var a=function(){function t(t,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(o,i,a){return i&&t(o.prototype,i),a&&t(o,a),o}}(),r=function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,o){var i=[],a=!0,r=!1,n=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done)&&(i.push(s.value),!o||i.length!==o);a=!0);}catch(t){r=!0,n=t}finally{try{!a&&l.return&&l.return()}finally{if(r)throw n}}return i}(t,o);throw TypeError("Invalid attempt to destructure non-iterable instance")},n=i(2),s=c(i(0)),l=c(i(4));function c(t){return t&&t.__esModule?t:{default:t}}function p(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}function h(t){if(Array.isArray(t)){for(var o=0,i=Array(t.length);o<t.length;o++)i[o]=t[o];return i}return Array.from(t)}var u="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,d="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,g={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",f="RGBA_USER",y="HSLA_USER";function v(t,o,i){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):i?o:null:o}function b(t){var o=t.getContext("2d"),i=+t.width,a=+t.height,s=o.createLinearGradient(1,1,1,a-1);return s.addColorStop(0,"white"),s.addColorStop(1,"black"),{setHue:function(t){var r=o.createLinearGradient(1,0,i-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),o.fillStyle=s,o.fillRect(0,0,i,a),o.fillStyle=r,o.globalCompositeOperation="multiply",o.fillRect(0,0,i,a),o.globalCompositeOperation="source-over"},grabColor:function(t,i){return o.getImageData(t,i,1,1).data},findColor:function(t,o,s){var l=r((0,n.rgbToHsv)(t,o,s),3);return[l[1]*i,a-l[2]*a]}}}function C(t,o,i){return null===t?o:/^\s*$/.test(t)?i:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&o}function k(t,o,i){if(null===t)return o;if(/^\s*$/.test(t))return i;var a=t.split(",").map(Number);return 2===a.length&&a[0]&&a[1]?a:o}var w=function(){function t(o,i){if(p(this,t),i?(o=v(o),this.options=Object.assign({},g,i)):o&&(0,s.default)(o)?(this.options=Object.assign({},g,o),o=v(this.options.attachTo)):(this.options=Object.assign({},g),o=v((0,n.nvl)(o,this.options.attachTo))),!o)throw Error("Container not found: "+this.options.attachTo);!function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(o.hasAttribute(i+"show-hsl")&&(t.showHSL=C(o.getAttribute(i+"show-hsl"),g.showHSL,!0)),o.hasAttribute(i+"show-rgb")&&(t.showRGB=C(o.getAttribute(i+"show-rgb"),g.showRGB,!0)),o.hasAttribute(i+"show-hex")&&(t.showHEX=C(o.getAttribute(i+"show-hex"),g.showHEX,!0)),o.hasAttribute(i+"show-alpha")&&(t.showAlpha=C(o.getAttribute(i+"show-alpha"),g.showAlpha,!0)),o.hasAttribute(i+"palette-editable")&&(t.paletteEditable=C(o.getAttribute(i+"palette-editable"),g.paletteEditable,!0)),o.hasAttribute(i+"sl-bar-size")&&(t.slBarSize=k(o.getAttribute(i+"sl-bar-size"),g.slBarSize,[232,150])),o.hasAttribute(i+"hue-bar-size")&&(t.hueBarSize=k(o.getAttribute(i+"hue-bar-size"),g.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),o.hasAttribute(i+"palette")){var a=o.getAttribute(i+"palette");switch(a){case"PALETTE_MATERIAL_500":t.palette=n.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=n.PALETTE_MATERIAL_CHROME;break;default:t.palette=a.split(/[;|]/)}}o.hasAttribute(i+"color")&&(t.color=o.getAttribute(i+"color"))}(this.options,o),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,o.appendChild(this.element);var a=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(a),this.hueBarHelper=b(a),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=b(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return a(t,[{key:"setupHueCanvas",value:function(t){var o=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var i=t.getContext("2d"),a=i.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)a.addColorStop(r,"hsl("+360*r+", 100%, 50%)");i.fillStyle=a,i.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var s=function(i){var a=(0,n.limit)(i.clientX-t.getBoundingClientRect().left,0,o.options.hueBarSize[0]),r=Math.round(360*a/o.options.hueBarSize[0]);o.huePointer.style.left=a-7+"px",o.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){s(t),document.addEventListener("mousemove",s),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var o=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var i=function(i){var a=(0,n.limit)(i.clientX-t.getBoundingClientRect().left,0,o.options.slBarSize[0]-1),r=(0,n.limit)(i.clientY-t.getBoundingClientRect().top,0,o.options.slBarSize[1]-1),s=o.slBarHelper.grabColor(a,r);o.slPointer.style.left=a-7+"px",o.slPointer.style.top=r-7+"px",o.onValueChanged("RGB",s)},a=function t(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){i(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)})}},{key:"setupAlphaCanvas",value:function(t){var o=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var i=t.getContext("2d"),a=i.createLinearGradient(0,0,t.width-1,0);a.addColorStop(0,"hsla(0, 0%, 50%, 0)"),a.addColorStop(1,"hsla(0, 0%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(i){var a=(0,n.limit)(i.clientX-t.getBoundingClientRect().left,0,o.options.alphaBarSize[0]),r=+(a/o.options.alphaBarSize[0]).toFixed(2);o.alphaPointer.style.left=a-7+"px",o.onValueChanged("ALPHA",r)},s=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)})}},{key:"setupInput",value:function(t){var o=this,i=+t.min,a=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){o.onValueChanged(r,t.value)}):((u||d)&&t.addEventListener("keydown",function(s){"Up"===s.key?(t.value=(0,n.limit)(+t.value+1,i,a),o.onValueChanged(r,t.value),s.returnValue=!1):"Down"===s.key&&(t.value=(0,n.limit)(t.value-1,i,a),o.onValueChanged(r,t.value),s.returnValue=!1)}),t.addEventListener("change",function(){var s=+t.value;o.onValueChanged(r,(0,n.limit)(s,i,a))}))}},{key:"setupClipboard",value:function(t){var o=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,n.parseColor)([o.R,o.G,o.B,o.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var o=this,i="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,a=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":a=n.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":a=n.PALETTE_MATERIAL_CHROME;break;default:a=(0,n.ensureArray)(this.options.palette)}if(this.options.paletteEditable||a.length>0){var r=function(i,a,r){var n=t.querySelector('.a-color-picker-palette-color[data-color="'+i+'"]')||document.createElement("div");n.className="a-color-picker-palette-color",n.style.backgroundColor=i,n.setAttribute("data-color",i),n.title=i,t.insertBefore(n,a),o.palette[i]=!0,r&&o.onPaletteColorAdd(i)},s=function(i,a){i?(t.removeChild(i),o.palette[i.getAttribute("data-color")]=!1,a&&o.onPaletteColorRemove(i.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(o){t.removeChild(o)}),Object.keys(o.palette).forEach(function(t){o.palette[t]=!1}),a&&o.onPaletteColorRemove())};if(a.map(function(t){return(0,n.parseColor)(t,i?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?s(null,!0):r(i?(0,n.parseColor)([o.R,o.G,o.B,o.A],"rgbcss4"):(0,n.rgbToHex)(o.R,o.G,o.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?s(t.target,!0):o.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&o.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=o;var a=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.slBarHelper.setHue(o),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=o;var s=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=s[0],this.G=s[1],this.B=s[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=o;var l=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=o;var c=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=o;var p=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=o;var h=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=h[0],this.S=h[1],this.L=h[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var u=r(o,3);this.R=u[0],this.G=u[1],this.B=u[2];var d=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case f:var g=r(o,4);this.R=g[0],this.G=g[1],this.B=g[2],this.A=g[3];var v=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case y:var b=r(o,4);this.H=b[0],this.S=b[1],this.L=b[2],this.A=b[3];var C=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=C[0],this.G=C[1],this.B=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var k=r((0,n.cssColorToRgb)(o)||[this.R,this.G,this.B],3);this.R=k[0],this.G=k[1],this.B=k[2];var w=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=w[0],this.S=w[1],this.L=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var E=r((0,n.parseColor)(o,"rgba")||[0,0,0,1],4);this.R=E[0],this.G=E[1],this.B=E[2],this.A=E[3];var A=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=A[0],this.S=A[1],this.L=A[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=o}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",i&&i.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,o,i){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=o,this.inputL.value=i)}},{key:"updateInputRGB",value:function(t,o,i){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=o,this.inputB.value=i)}},{key:"updateInputRGBHEX",value:function(t,o,i){this.options.showHEX&&(this.inputRGBHEX.value=(0,n.rgbToHex)(t,o,i))}},{key:"updatePointerH",value:function(t){var o=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=o-7+"px"}},{key:"updatePointerSL",value:function(t,o,i){var a=r((0,n.hslToRgb)(t,o,i),3),s=a[0],l=a[1],c=a[2],p=r(this.slBarHelper.findColor(s,l,c),2),h=p[0],u=p[1];h>=0&&(this.slPointer.style.left=h-7+"px",this.slPointer.style.top=u-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var o=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=o-7+"px"}}}]),t}(),E=function(){function t(o){p(this,t),this.name=o,this.listeners=[]}return a(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(o){return o!==t}):[]}},{key:"emit",value:function(t,o){for(var i=this.listeners.slice(0),a=0;a<i.length;a++)i[a].apply(o,t)}}]),t}();function A(t,o){var i=new w(t,o),a={change:new E("change"),coloradd:new E("coloradd"),colorremove:new E("colorremove")},s=!0,l={},c={get element(){return i.element},get rgb(){return[i.R,i.G,i.B]},set rgb(e){var p=r(e,3),h=p[0],u=p[1],d=p[2],g=[(0,n.limit)(h,0,255),(0,n.limit)(u,0,255),(0,n.limit)(d,0,255)];h=g[0],u=g[1],d=g[2],i.onValueChanged(f,[h,u,d,1])},get hsl(){return[i.H,i.S,i.L]},set hsl(e){var v=r(e,3),b=v[0],C=v[1],k=v[2],A=[(0,n.limit)(b,0,360),(0,n.limit)(C,0,100),(0,n.limit)(k,0,100)];b=A[0],C=A[1],k=A[2],i.onValueChanged(y,[b,C,k,1])},get rgbhex(){return this.all.hex},get rgba(){return[i.R,i.G,i.B,i.A]},set rgba(e){var x=r(e,4),S=x[0],F=x[1],B=x[2],L=x[3],R=[(0,n.limit)(S,0,255),(0,n.limit)(F,0,255),(0,n.limit)(B,0,255),(0,n.limit)(L,0,1)];S=R[0],F=R[1],B=R[2],L=R[3],i.onValueChanged(f,[S,F,B,L])},get hsla(){return[i.H,i.S,i.L,i.A]},set hsla(e){var H=r(e,4),I=H[0],M=H[1],_=H[2],T=H[3],P=[(0,n.limit)(I,0,360),(0,n.limit)(M,0,100),(0,n.limit)(_,0,100),(0,n.limit)(T,0,1)];I=P[0],M=P[1],_=P[2],T=P[3],i.onValueChanged(y,[I,M,_,T])},get color(){return this.all.toString()},set color(e){i.onValueChanged(m,e)},setColor:function(t){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.onValueChanged(m,t,{silent:o})},get all(){if(s){var j=[i.R,i.G,i.B,i.A],G=i.A<1?"rgba("+i.R+","+i.G+","+i.B+","+i.A+")":n.rgbToHex.apply(void 0,j);(l=(0,n.parseColor)(j,l)).toString=function(){return G},s=!1}return Object.assign({},l)},get onchange(){return a.change&&a.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return a.coloradd&&a.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return a.colorremove&&a.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(i.palette).filter(function(t){return i.palette[t]})},set palette(e){i.updatePalette(e)},show:function(){i.element.classList.remove("hidden")},hide:function(){i.element.classList.add("hidden")},toggle:function(){i.element.classList.toggle("hidden")},on:function(t,o){return t&&a[t]&&a[t].on(o),this},off:function(t,o){return t&&a[t]&&a[t].off(o),this},destroy:function(){a.change.off(),a.coloradd.off(),a.colorremove.off(),i.element.remove(),a=null,i=null}};return i.onchange=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];s=!0,a.change.emit([c].concat(o),c)},i.oncoloradd=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];a.coloradd.emit([c].concat(o),c)},i.oncolorremove=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];a.colorremove.emit([c].concat(o),c)},i.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=i(5).toString(),S=document.createElement("style");S.setAttribute("type","text/css"),S.setAttribute("data-source","a-color-picker"),S.innerHTML=x,document.querySelector("head").appendChild(S)}o.createPicker=A,o.from=function(t,o){var i=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(h(t)):"string"==typeof t?[].concat(h(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,i){var a=A(t,o);return a.index=i,a});return i.on=function(t,o){return i.forEach(function(i){return i.on(t,o)}),this},i.off=function(t){return i.forEach(function(o){return o.off(t)}),this},i},o.parseColorToRgb=n.parseColorToRgb,o.parseColorToRgba=n.parseColorToRgba,o.parseColorToHsl=n.parseColorToHsl,o.parseColorToHsla=n.parseColorToHsla,o.parseColor=n.parseColor,o.rgbToHex=n.rgbToHex,o.hslToRgb=n.hslToRgb,o.rgbToHsl=n.rgbToHsl,o.rgbToHsv=n.rgbToHsv,o.rgbToInt=n.rgbToInt,o.intToRgb=n.intToRgb,o.getLuminance=n.getLuminance,o.COLOR_NAMES=n.COLOR_NAMES,o.PALETTE_MATERIAL_500=n.PALETTE_MATERIAL_500,o.PALETTE_MATERIAL_CHROME=n.PALETTE_MATERIAL_CHROME,o.VERSION="1.2.1"},function(t,o,i){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.nvl=o.ensureArray=o.limit=o.getLuminance=o.parseColor=o.parseColorToHsla=o.parseColorToHsl=o.cssHslaToHsla=o.cssHslToHsl=o.parseColorToRgba=o.parseColorToRgb=o.cssRgbaToRgba=o.cssRgbToRgb=o.cssColorToRgba=o.cssColorToRgb=o.intToRgb=o.rgbToInt=o.rgbToHsv=o.rgbToHsl=o.hslToRgb=o.rgbToHex=o.PALETTE_MATERIAL_CHROME=o.PALETTE_MATERIAL_500=o.COLOR_NAMES=void 0;var a,r=function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,o){var i=[],a=!0,r=!1,n=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done)&&(i.push(s.value),!o||i.length!==o);a=!0);}catch(t){r=!0,n=t}finally{try{!a&&l.return&&l.return()}finally{if(r)throw n}}return i}(t,o);throw TypeError("Invalid attempt to destructure non-iterable instance")},n=(a=i(0))&&a.__esModule?a:{default:a};function s(t){if(Array.isArray(t)){for(var o=0,i=Array(t.length);o<t.length;o++)i[o]=t[o];return i}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,o,i){return isNaN(t*=1)||o>t?o:t>i?i:t}function p(t,o){return null==t?o:t}function h(t,o,i){var a=[c(t,0,255),c(o,0,255),c(i,0,255)];return"#"+("000000"+((t=a[0])<<16|(o=a[1])<<8|(i=a[2])).toString(16)).slice(-6)}function u(t,o,i){var a=void 0,r=void 0,n=void 0,s=[c(t,0,360)/360,c(o,0,100)/100,c(i,0,100)/100];if(t=s[0],i=s[2],0==(o=s[1]))a=r=n=i;else{var l=function(t,o,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(o-t)*i:i<.5?o:i<2/3?t+(o-t)*(2/3-i)*6:t},p=i<.5?i*(1+o):i+o-i*o,h=2*i-p;a=l(h,p,t+1/3),r=l(h,p,t),n=l(h,p,t-1/3)}return[255*a,255*r,255*n].map(Math.round)}function d(t,o,i){var a=[c(t,0,255)/255,c(o,0,255)/255,c(i,0,255)/255],r=Math.max(t=a[0],o=a[1],i=a[2]),n=Math.min(t,o,i),s=void 0,l=void 0,p=(r+n)/2;if(r==n)s=l=0;else{var h=r-n;switch(l=p>.5?h/(2-r-n):h/(r+n),r){case t:s=(o-i)/h+6*(o<i);break;case o:s=(i-t)/h+2;break;case i:s=(t-o)/h+4}s/=6}return[360*s,100*l,100*p].map(Math.round)}function g(t,o,i){return t<<16|o<<8|i}function m(t){if(t){var o=l[t.toString().toLowerCase()],i=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(o||t)||[],10),a=i[3],n=i[4],s=i[5],c=i[7],p=i[8],h=i[9];if(void 0!==a)return[parseInt(a+a,16),parseInt(n+n,16),parseInt(s+s,16)];if(void 0!==c)return[parseInt(c,16),parseInt(p,16),parseInt(h,16)]}}function f(t){if(t){var o=l[t.toString().toLowerCase()],i=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(o||t)||[],12),a=i[3],n=i[4],s=i[5],c=i[6],p=i[8],h=i[9],u=i[10],d=i[11];if(void 0!==a)return[parseInt(a+a,16),parseInt(n+n,16),parseInt(s+s,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==p)return[parseInt(p,16),parseInt(h,16),parseInt(u,16),d?+(parseInt(d,16)/255).toFixed(2):1]}}function y(t){if(t){var o=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),i=o[0],a=o[1],n=o[2],s=o[3];return i?[c(a,0,255),c(n,0,255),c(s,0,255)]:void 0}}function v(t){if(t){var o=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),i=o[0],a=o[1],n=o[2],s=o[3],l=o[5];return i?[c(a,0,255),c(n,0,255),c(s,0,255),c(p(l,1),0,1)]:void 0}}function b(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(p(t[3],1),0,1)];var o=f(t)||v(t);return o&&3===o.length&&o.push(1),o}function C(t){if(t){var o=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),i=o[0],a=o[1],n=o[2],s=o[3];return i?[c(a,0,360),c(n,0,100),c(s,0,100)]:void 0}}function k(t){if(t){var o=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),i=o[0],a=o[1],n=o[2],s=o[3],l=o[5];return i?[c(a,0,255),c(n,0,255),c(s,0,255),c(p(l,1),0,1)]:void 0}}function w(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(p(t[3],1),0,1)];var o=k(t);return o&&3===o.length&&o.push(1),o}function E(t,o){switch(o){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return d.apply(void 0,s(t));case"hslcss":return"hsl("+(t=d.apply(void 0,s(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var i=d.apply(void 0,s(t));return"hsl("+i[0]+", "+i[1]+", "+i[2]+", "+t[3]+")";case"hsla":return[].concat(s(d.apply(void 0,s(t))),[t[3]]);case"hslacss":var a=d.apply(void 0,s(t));return"hsla("+a[0]+", "+a[1]+", "+a[2]+", "+t[3]+")";case"hex":return h.apply(void 0,s(t));case"hexcss4":return h.apply(void 0,s(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return g.apply(void 0,s(t))}}o.COLOR_NAMES=l,o.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],o.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],o.rgbToHex=h,o.hslToRgb=u,o.rgbToHsl=d,o.rgbToHsv=function(t,o,i){var a=[c(t,0,255)/255,c(o,0,255)/255,c(i,0,255)/255],r,n=Math.max(t=a[0],o=a[1],i=a[2]),s=Math.min(t,o,i),l=void 0,p=n-s;if(r=0===n?0:p/n,n==s)l=0;else{switch(n){case t:l=(o-i)/p+6*(o<i);break;case o:l=(i-t)/p+2;break;case i:l=(t-o)/p+4}l/=6}return[l,r,n]},o.rgbToInt=g,o.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},o.cssColorToRgb=m,o.cssColorToRgba=f,o.cssRgbToRgb=y,o.cssRgbaToRgba=v,o.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||y(t)},o.parseColorToRgba=b,o.cssHslToHsl=C,o.cssHslaToHsla=k,o.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:C(t)},o.parseColorToHsla=w,o.parseColor=function(t,o){if(o=o||"rgb",null!=t){var i=void 0;if((i=b(t))||(i=w(t))&&(i=[].concat(s(u.apply(void 0,s(i))),[i[3]])))return(0,n.default)(o)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,o){return t[o]=E(i,o),t},o||{}):E(i,o.toString().toLowerCase())}},o.getLuminance=function(t,o,i){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(o=(o/=255)<.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*((i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},o.limit=c,o.ensureArray=function(t){return t?Array.from(t):[]},o.nvl=p},function(t,o,i){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,o){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,o,i){var a=i(6);t.exports="string"==typeof a?a:a.toString()},function(t,o,i){(t.exports=i(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,o){t.exports=function(t){var o=[];return o.toString=function(){return this.map(function(o){var i=function(t,o){var i=t[1]||"",a=t[3];if(!a)return i;if(o&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */";return[i].concat(a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"})).concat([r]).join("\n")}return[i].join("\n")}(o,t);return o[2]?"@media "+o[2]+"{"+i+"}":i}).join("")},o.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},r=0;r<this.length;r++){var n=this[r][0];"number"==typeof n&&(a[n]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&a[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),o.push(s))}},o}}],o={};function i(a){if(o[a])return o[a].exports;var r=o[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=o,i.d=function(t,o,a){i.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:a})},i.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,o){if(1&o&&(t=i(t)),8&o||4&o&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var r in t)i.d(a,r,(function(o){return t[o]}).bind(null,r));return a},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},i.p="",i(i.s=1)}()},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},47660:function(t,o,i){"use strict";function a(t){let o=this.mapElements.indexOf(t);-1!==o&&(this.mapElements[o].gme.setMap(null),this.mapElements.splice(o,1),this.state.elements.splice(o,1),this.state.elements=[...this.state.elements])}i.d(o,{removeElement:function(){return a}})},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},53454:function(t,o,i){"use strict";i.d(o,{onChangeGeometries:function(){return n}});var a=i(72690),r=i(67912);function n(t,o){var i,n,s,l;switch(t.type){case"polyline":case"polygon":{let i=(0,r.pathToArray)(t.gme.getPath()),n={...t.state,coordinates:i};a.updateStateAndGme.call(this,n,o,!0);break}case"marker":{let r=t.gme.getPosition(),s={...t.state,coordinates:[null!=(i=null==r?void 0:r.lat())?i:0,null!=(n=null==r?void 0:r.lng())?n:0]};a.updateStateAndGme.call(this,s,o,!0);break}case"circle":{let i=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[null!=(s=null==i?void 0:i.lat())?s:0,null!=(l=null==i?void 0:i.lng())?l:0]};a.updateStateAndGme.call(this,r,o,!0)}}}},55029:function(t,o,i){"use strict";var a=i(17298),r=i(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:a.COMMAND_OPEN_DIALOG};let n=t=>({icon:`edit-${t}`,isActive:o=>o.buffer.get("createMode.gm")===t,exec:o=>{o.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:n("hand"),marker:n("marker"),polyline:n("polyline"),polygon:n("polygon"),circle:n("circle"),text:n("text")}},60811:function(t,o,i){"use strict";i.d(o,{generateStaticElements:function(){return n}});var a=i(67912),r=i(91003);function n(t){return t.state.elements.map(t=>{var o,i,n,s,l,c;switch(t.type){case"polygon":return`&path=fillcolor:${(0,a.specialColor)(null!=(o=t.fillColor)?o:"#fff")}%7Cweight:${null!=(i=t.strokeWeight)?i:1}%7Ccolor:${(0,a.specialColor)(null!=(n=t.strokeColor)?n:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,a.arrayToPath)(t.coordinates))}`;case"polyline":return`&path=weight:${null!=(s=t.strokeWeight)?s:1}%7Ccolor:${(0,a.specialColor)(null!=(l=t.strokeColor)?l:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,a.arrayToPath)(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,r.stripTags)(null!=(c=t.text)?c:"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""}).join("")}},61818:function(t,o,i){"use strict";i.d(o,{generateJSScript:function(){return r}});var a=i(36409);function r(t,o){return`<script class="jodit-google-maps-init" type="text/javascript">
19
+ </div>`}onReady(){let t=(0,r.Button)(this.j,"bin").onAction(()=>this.j.e.fire(this,"bin"));this.append(t,"buttons")}constructor(t,o,i){super(t),(0,a._)(this,"state",void 0),(0,a._)(this,"options",void 0),this.state=o,this.options=i}}},17298:function(t,o,i){"use strict";i.d(o,{COMMAND_OPEN_DIALOG:function(){return r},STORAGE_KEY:function(){return a}});let a="googleMapsState",r="googleMapsDialog"},22125:function(t,o,i){"use strict";i.d(o,{addNewInState:function(){return r}});var a=i(67912);function r(t){var o,i,r,n,s,l,c,p;switch(this.state.mode){case"polyline":case"polygon":{let{mode:o}=this.state;this.state.elements=[...this.state.elements,{type:o,coordinates:(0,a.pathToArray)(t.getPath()),...this.options.googleMaps.map.defaultStates[o]}];break}case"circle":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!=(o=null==(r=t.getCenter())?void 0:r.lat())?o:0,null!=(i=null==(n=t.getCenter())?void 0:n.lng())?i:0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break;case"marker":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!=(s=null==(c=t.getPosition())?void 0:c.lat())?s:0,null!=(l=null==(p=t.getPosition())?void 0:p.lng())?l:0],...this.options.googleMaps.map.defaultStates.marker}]}}},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},36576:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},42370:function(t,o,i){"use strict";i.d(o,{UIMarkerEditor:function(){return l}});var a=i(31635),r=i(65478),n=i(14002),s=i(11093);class l extends n.UIBaseEditor{className(){return"UIMarkerEditor"}onReady(){var t;super.onReady();let o=new s.UIWysiwyg(this.j,this.options.googleMaps.inlineEditorOptions,null!=(t=this.state.text)?t:"",t=>this.j.e.fire(this,"change","text",t));this.append(o,"form")}}(0,a.__decorate)([(0,r.hook)("ready")],l.prototype,"onReady",null),l=(0,a.__decorate)([r.component],l)},45128:function(t,o,i){"use strict";i.d(o,{ColorInput:function(){return d}});var a=i(82749),r=i(31635),n=i(46146),s=i(82758),l=i(65478),c=i(21537),p=i(38837),h=i(67510),u=i(41409);class d extends h.UIInput{className(){return"ColorInput"}afterSetMode(t,o){"slim"===t&&o&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){if(t.key===s.KEY_ESC){var o;null==(o=this.popup)||o.close()}}constructor(t,o){super(t,o),(0,a._)(this,"trigger",void 0),(0,a._)(this,"popup",void 0);const i=new h.Popup(t);this.popup=i,this.trigger=(0,h.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,p.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{var t,o;null==(t=(o=this.state).onChange)||t.call(o,this.value),i.close()}),i.setMod("padding",!1).setMod("max-height",!1);const s=this.j.create.div(this.getFullElName("picker")),l=n.createPicker(s,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,o)=>{this.isFocused||(this.value=n.parseColor(o||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,n.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),i.setContent(s),this.j.e.on(this.nativeInput,"click",()=>{i.parentElement=this,this.jodit instanceof u.Dialog&&i.setZIndex(this.jodit.getZIndex()+1),i.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],d.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],d.prototype,"onEscKeyDown",null),d=(0,r.__decorate)([l.component],d)},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,o,i){"use strict";var a=i(3);function r(t){return!0===a(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var o,i;return!1!==r(t)&&"function"==typeof(o=t.constructor)&&!1!==r(i=o.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf")}},function(t,o,i){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.VERSION=o.PALETTE_MATERIAL_CHROME=o.PALETTE_MATERIAL_500=o.COLOR_NAMES=o.getLuminance=o.intToRgb=o.rgbToInt=o.rgbToHsv=o.rgbToHsl=o.hslToRgb=o.rgbToHex=o.parseColor=o.parseColorToHsla=o.parseColorToHsl=o.parseColorToRgba=o.parseColorToRgb=o.from=o.createPicker=void 0;var a=function(){function t(t,o){for(var i=0;i<o.length;i++){var a=o[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(o,i,a){return i&&t(o.prototype,i),a&&t(o,a),o}}(),r=function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,o){var i=[],a=!0,r=!1,n=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done)&&(i.push(s.value),!o||i.length!==o);a=!0);}catch(t){r=!0,n=t}finally{try{!a&&l.return&&l.return()}finally{if(r)throw n}}return i}(t,o);throw TypeError("Invalid attempt to destructure non-iterable instance")},n=i(2),s=c(i(0)),l=c(i(4));function c(t){return t&&t.__esModule?t:{default:t}}function p(t,o){if(!(t instanceof o))throw TypeError("Cannot call a class as a function")}function h(t){if(Array.isArray(t)){for(var o=0,i=Array(t.length);o<t.length;o++)i[o]=t[o];return i}return Array.from(t)}var u="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,d="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,g={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",f="RGBA_USER",y="HSLA_USER";function v(t,o,i){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):i?o:null:o}function b(t){var o=t.getContext("2d"),i=+t.width,a=+t.height,s=o.createLinearGradient(1,1,1,a-1);return s.addColorStop(0,"white"),s.addColorStop(1,"black"),{setHue:function(t){var r=o.createLinearGradient(1,0,i-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),o.fillStyle=s,o.fillRect(0,0,i,a),o.fillStyle=r,o.globalCompositeOperation="multiply",o.fillRect(0,0,i,a),o.globalCompositeOperation="source-over"},grabColor:function(t,i){return o.getImageData(t,i,1,1).data},findColor:function(t,o,s){var l=r((0,n.rgbToHsv)(t,o,s),3);return[l[1]*i,a-l[2]*a]}}}function C(t,o,i){return null===t?o:/^\s*$/.test(t)?i:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&o}function k(t,o,i){if(null===t)return o;if(/^\s*$/.test(t))return i;var a=t.split(",").map(Number);return 2===a.length&&a[0]&&a[1]?a:o}var w=function(){function t(o,i){if(p(this,t),i?(o=v(o),this.options=Object.assign({},g,i)):o&&(0,s.default)(o)?(this.options=Object.assign({},g,o),o=v(this.options.attachTo)):(this.options=Object.assign({},g),o=v((0,n.nvl)(o,this.options.attachTo))),!o)throw Error("Container not found: "+this.options.attachTo);!function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(o.hasAttribute(i+"show-hsl")&&(t.showHSL=C(o.getAttribute(i+"show-hsl"),g.showHSL,!0)),o.hasAttribute(i+"show-rgb")&&(t.showRGB=C(o.getAttribute(i+"show-rgb"),g.showRGB,!0)),o.hasAttribute(i+"show-hex")&&(t.showHEX=C(o.getAttribute(i+"show-hex"),g.showHEX,!0)),o.hasAttribute(i+"show-alpha")&&(t.showAlpha=C(o.getAttribute(i+"show-alpha"),g.showAlpha,!0)),o.hasAttribute(i+"palette-editable")&&(t.paletteEditable=C(o.getAttribute(i+"palette-editable"),g.paletteEditable,!0)),o.hasAttribute(i+"sl-bar-size")&&(t.slBarSize=k(o.getAttribute(i+"sl-bar-size"),g.slBarSize,[232,150])),o.hasAttribute(i+"hue-bar-size")&&(t.hueBarSize=k(o.getAttribute(i+"hue-bar-size"),g.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),o.hasAttribute(i+"palette")){var a=o.getAttribute(i+"palette");switch(a){case"PALETTE_MATERIAL_500":t.palette=n.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=n.PALETTE_MATERIAL_CHROME;break;default:t.palette=a.split(/[;|]/)}}o.hasAttribute(i+"color")&&(t.color=o.getAttribute(i+"color"))}(this.options,o),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,o.appendChild(this.element);var a=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(a),this.hueBarHelper=b(a),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=b(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return a(t,[{key:"setupHueCanvas",value:function(t){var o=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var i=t.getContext("2d"),a=i.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)a.addColorStop(r,"hsl("+360*r+", 100%, 50%)");i.fillStyle=a,i.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var s=function(i){var a=(0,n.limit)(i.clientX-t.getBoundingClientRect().left,0,o.options.hueBarSize[0]),r=Math.round(360*a/o.options.hueBarSize[0]);o.huePointer.style.left=a-7+"px",o.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){s(t),document.addEventListener("mousemove",s),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var o=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var i=function(i){var a=(0,n.limit)(i.clientX-t.getBoundingClientRect().left,0,o.options.slBarSize[0]-1),r=(0,n.limit)(i.clientY-t.getBoundingClientRect().top,0,o.options.slBarSize[1]-1),s=o.slBarHelper.grabColor(a,r);o.slPointer.style.left=a-7+"px",o.slPointer.style.top=r-7+"px",o.onValueChanged("RGB",s)},a=function t(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){i(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)})}},{key:"setupAlphaCanvas",value:function(t){var o=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var i=t.getContext("2d"),a=i.createLinearGradient(0,0,t.width-1,0);a.addColorStop(0,"hsla(0, 0%, 50%, 0)"),a.addColorStop(1,"hsla(0, 0%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(i){var a=(0,n.limit)(i.clientX-t.getBoundingClientRect().left,0,o.options.alphaBarSize[0]),r=+(a/o.options.alphaBarSize[0]).toFixed(2);o.alphaPointer.style.left=a-7+"px",o.onValueChanged("ALPHA",r)},s=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)})}},{key:"setupInput",value:function(t){var o=this,i=+t.min,a=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){o.onValueChanged(r,t.value)}):((u||d)&&t.addEventListener("keydown",function(s){"Up"===s.key?(t.value=(0,n.limit)(+t.value+1,i,a),o.onValueChanged(r,t.value),s.returnValue=!1):"Down"===s.key&&(t.value=(0,n.limit)(t.value-1,i,a),o.onValueChanged(r,t.value),s.returnValue=!1)}),t.addEventListener("change",function(){var s=+t.value;o.onValueChanged(r,(0,n.limit)(s,i,a))}))}},{key:"setupClipboard",value:function(t){var o=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,n.parseColor)([o.R,o.G,o.B,o.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var o=this,i="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,a=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":a=n.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":a=n.PALETTE_MATERIAL_CHROME;break;default:a=(0,n.ensureArray)(this.options.palette)}if(this.options.paletteEditable||a.length>0){var r=function(i,a,r){var n=t.querySelector('.a-color-picker-palette-color[data-color="'+i+'"]')||document.createElement("div");n.className="a-color-picker-palette-color",n.style.backgroundColor=i,n.setAttribute("data-color",i),n.title=i,t.insertBefore(n,a),o.palette[i]=!0,r&&o.onPaletteColorAdd(i)},s=function(i,a){i?(t.removeChild(i),o.palette[i.getAttribute("data-color")]=!1,a&&o.onPaletteColorRemove(i.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(o){t.removeChild(o)}),Object.keys(o.palette).forEach(function(t){o.palette[t]=!1}),a&&o.onPaletteColorRemove())};if(a.map(function(t){return(0,n.parseColor)(t,i?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?s(null,!0):r(i?(0,n.parseColor)([o.R,o.G,o.B,o.A],"rgbcss4"):(0,n.rgbToHex)(o.R,o.G,o.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?s(t.target,!0):o.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&o.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=o;var a=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.slBarHelper.setHue(o),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=o;var s=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=s[0],this.G=s[1],this.B=s[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=o;var l=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=o;var c=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=o;var p=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=o;var h=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=h[0],this.S=h[1],this.L=h[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var u=r(o,3);this.R=u[0],this.G=u[1],this.B=u[2];var d=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case f:var g=r(o,4);this.R=g[0],this.G=g[1],this.B=g[2],this.A=g[3];var v=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case y:var b=r(o,4);this.H=b[0],this.S=b[1],this.L=b[2],this.A=b[3];var C=r((0,n.hslToRgb)(this.H,this.S,this.L),3);this.R=C[0],this.G=C[1],this.B=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var k=r((0,n.cssColorToRgb)(o)||[this.R,this.G,this.B],3);this.R=k[0],this.G=k[1],this.B=k[2];var w=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=w[0],this.S=w[1],this.L=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var E=r((0,n.parseColor)(o,"rgba")||[0,0,0,1],4);this.R=E[0],this.G=E[1],this.B=E[2],this.A=E[3];var A=r((0,n.rgbToHsl)(this.R,this.G,this.B),3);this.H=A[0],this.S=A[1],this.L=A[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=o}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",i&&i.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,o,i){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=o,this.inputL.value=i)}},{key:"updateInputRGB",value:function(t,o,i){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=o,this.inputB.value=i)}},{key:"updateInputRGBHEX",value:function(t,o,i){this.options.showHEX&&(this.inputRGBHEX.value=(0,n.rgbToHex)(t,o,i))}},{key:"updatePointerH",value:function(t){var o=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=o-7+"px"}},{key:"updatePointerSL",value:function(t,o,i){var a=r((0,n.hslToRgb)(t,o,i),3),s=a[0],l=a[1],c=a[2],p=r(this.slBarHelper.findColor(s,l,c),2),h=p[0],u=p[1];h>=0&&(this.slPointer.style.left=h-7+"px",this.slPointer.style.top=u-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var o=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=o-7+"px"}}}]),t}(),E=function(){function t(o){p(this,t),this.name=o,this.listeners=[]}return a(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(o){return o!==t}):[]}},{key:"emit",value:function(t,o){for(var i=this.listeners.slice(0),a=0;a<i.length;a++)i[a].apply(o,t)}}]),t}();function A(t,o){var i=new w(t,o),a={change:new E("change"),coloradd:new E("coloradd"),colorremove:new E("colorremove")},s=!0,l={},c={get element(){return i.element},get rgb(){return[i.R,i.G,i.B]},set rgb(e){var p=r(e,3),h=p[0],u=p[1],d=p[2],g=[(0,n.limit)(h,0,255),(0,n.limit)(u,0,255),(0,n.limit)(d,0,255)];h=g[0],u=g[1],d=g[2],i.onValueChanged(f,[h,u,d,1])},get hsl(){return[i.H,i.S,i.L]},set hsl(e){var v=r(e,3),b=v[0],C=v[1],k=v[2],A=[(0,n.limit)(b,0,360),(0,n.limit)(C,0,100),(0,n.limit)(k,0,100)];b=A[0],C=A[1],k=A[2],i.onValueChanged(y,[b,C,k,1])},get rgbhex(){return this.all.hex},get rgba(){return[i.R,i.G,i.B,i.A]},set rgba(e){var x=r(e,4),S=x[0],F=x[1],B=x[2],L=x[3],R=[(0,n.limit)(S,0,255),(0,n.limit)(F,0,255),(0,n.limit)(B,0,255),(0,n.limit)(L,0,1)];S=R[0],F=R[1],B=R[2],L=R[3],i.onValueChanged(f,[S,F,B,L])},get hsla(){return[i.H,i.S,i.L,i.A]},set hsla(e){var H=r(e,4),I=H[0],M=H[1],_=H[2],T=H[3],P=[(0,n.limit)(I,0,360),(0,n.limit)(M,0,100),(0,n.limit)(_,0,100),(0,n.limit)(T,0,1)];I=P[0],M=P[1],_=P[2],T=P[3],i.onValueChanged(y,[I,M,_,T])},get color(){return this.all.toString()},set color(e){i.onValueChanged(m,e)},setColor:function(t){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.onValueChanged(m,t,{silent:o})},get all(){if(s){var j=[i.R,i.G,i.B,i.A],G=i.A<1?"rgba("+i.R+","+i.G+","+i.B+","+i.A+")":n.rgbToHex.apply(void 0,j);(l=(0,n.parseColor)(j,l)).toString=function(){return G},s=!1}return Object.assign({},l)},get onchange(){return a.change&&a.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return a.coloradd&&a.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return a.colorremove&&a.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(i.palette).filter(function(t){return i.palette[t]})},set palette(e){i.updatePalette(e)},show:function(){i.element.classList.remove("hidden")},hide:function(){i.element.classList.add("hidden")},toggle:function(){i.element.classList.toggle("hidden")},on:function(t,o){return t&&a[t]&&a[t].on(o),this},off:function(t,o){return t&&a[t]&&a[t].off(o),this},destroy:function(){a.change.off(),a.coloradd.off(),a.colorremove.off(),i.element.remove(),a=null,i=null}};return i.onchange=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];s=!0,a.change.emit([c].concat(o),c)},i.oncoloradd=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];a.coloradd.emit([c].concat(o),c)},i.oncolorremove=function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];a.colorremove.emit([c].concat(o),c)},i.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=i(5).toString(),S=document.createElement("style");S.setAttribute("type","text/css"),S.setAttribute("data-source","a-color-picker"),S.innerHTML=x,document.querySelector("head").appendChild(S)}o.createPicker=A,o.from=function(t,o){var i=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(h(t)):"string"==typeof t?[].concat(h(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,i){var a=A(t,o);return a.index=i,a});return i.on=function(t,o){return i.forEach(function(i){return i.on(t,o)}),this},i.off=function(t){return i.forEach(function(o){return o.off(t)}),this},i},o.parseColorToRgb=n.parseColorToRgb,o.parseColorToRgba=n.parseColorToRgba,o.parseColorToHsl=n.parseColorToHsl,o.parseColorToHsla=n.parseColorToHsla,o.parseColor=n.parseColor,o.rgbToHex=n.rgbToHex,o.hslToRgb=n.hslToRgb,o.rgbToHsl=n.rgbToHsl,o.rgbToHsv=n.rgbToHsv,o.rgbToInt=n.rgbToInt,o.intToRgb=n.intToRgb,o.getLuminance=n.getLuminance,o.COLOR_NAMES=n.COLOR_NAMES,o.PALETTE_MATERIAL_500=n.PALETTE_MATERIAL_500,o.PALETTE_MATERIAL_CHROME=n.PALETTE_MATERIAL_CHROME,o.VERSION="1.2.1"},function(t,o,i){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.nvl=o.ensureArray=o.limit=o.getLuminance=o.parseColor=o.parseColorToHsla=o.parseColorToHsl=o.cssHslaToHsla=o.cssHslToHsl=o.parseColorToRgba=o.parseColorToRgb=o.cssRgbaToRgba=o.cssRgbToRgb=o.cssColorToRgba=o.cssColorToRgb=o.intToRgb=o.rgbToInt=o.rgbToHsv=o.rgbToHsl=o.hslToRgb=o.rgbToHex=o.PALETTE_MATERIAL_CHROME=o.PALETTE_MATERIAL_500=o.COLOR_NAMES=void 0;var a,r=function(t,o){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,o){var i=[],a=!0,r=!1,n=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done)&&(i.push(s.value),!o||i.length!==o);a=!0);}catch(t){r=!0,n=t}finally{try{!a&&l.return&&l.return()}finally{if(r)throw n}}return i}(t,o);throw TypeError("Invalid attempt to destructure non-iterable instance")},n=(a=i(0))&&a.__esModule?a:{default:a};function s(t){if(Array.isArray(t)){for(var o=0,i=Array(t.length);o<t.length;o++)i[o]=t[o];return i}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,o,i){return isNaN(t*=1)||o>t?o:t>i?i:t}function p(t,o){return null==t?o:t}function h(t,o,i){var a=[c(t,0,255),c(o,0,255),c(i,0,255)];return"#"+("000000"+((t=a[0])<<16|(o=a[1])<<8|(i=a[2])).toString(16)).slice(-6)}function u(t,o,i){var a=void 0,r=void 0,n=void 0,s=[c(t,0,360)/360,c(o,0,100)/100,c(i,0,100)/100];if(t=s[0],i=s[2],0==(o=s[1]))a=r=n=i;else{var l=function(t,o,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(o-t)*i:i<.5?o:i<2/3?t+(o-t)*(2/3-i)*6:t},p=i<.5?i*(1+o):i+o-i*o,h=2*i-p;a=l(h,p,t+1/3),r=l(h,p,t),n=l(h,p,t-1/3)}return[255*a,255*r,255*n].map(Math.round)}function d(t,o,i){var a=[c(t,0,255)/255,c(o,0,255)/255,c(i,0,255)/255],r=Math.max(t=a[0],o=a[1],i=a[2]),n=Math.min(t,o,i),s=void 0,l=void 0,p=(r+n)/2;if(r==n)s=l=0;else{var h=r-n;switch(l=p>.5?h/(2-r-n):h/(r+n),r){case t:s=(o-i)/h+6*(o<i);break;case o:s=(i-t)/h+2;break;case i:s=(t-o)/h+4}s/=6}return[360*s,100*l,100*p].map(Math.round)}function g(t,o,i){return t<<16|o<<8|i}function m(t){if(t){var o=l[t.toString().toLowerCase()],i=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(o||t)||[],10),a=i[3],n=i[4],s=i[5],c=i[7],p=i[8],h=i[9];if(void 0!==a)return[parseInt(a+a,16),parseInt(n+n,16),parseInt(s+s,16)];if(void 0!==c)return[parseInt(c,16),parseInt(p,16),parseInt(h,16)]}}function f(t){if(t){var o=l[t.toString().toLowerCase()],i=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(o||t)||[],12),a=i[3],n=i[4],s=i[5],c=i[6],p=i[8],h=i[9],u=i[10],d=i[11];if(void 0!==a)return[parseInt(a+a,16),parseInt(n+n,16),parseInt(s+s,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==p)return[parseInt(p,16),parseInt(h,16),parseInt(u,16),d?+(parseInt(d,16)/255).toFixed(2):1]}}function y(t){if(t){var o=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),i=o[0],a=o[1],n=o[2],s=o[3];return i?[c(a,0,255),c(n,0,255),c(s,0,255)]:void 0}}function v(t){if(t){var o=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),i=o[0],a=o[1],n=o[2],s=o[3],l=o[5];return i?[c(a,0,255),c(n,0,255),c(s,0,255),c(p(l,1),0,1)]:void 0}}function b(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(p(t[3],1),0,1)];var o=f(t)||v(t);return o&&3===o.length&&o.push(1),o}function C(t){if(t){var o=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),i=o[0],a=o[1],n=o[2],s=o[3];return i?[c(a,0,360),c(n,0,100),c(s,0,100)]:void 0}}function k(t){if(t){var o=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),i=o[0],a=o[1],n=o[2],s=o[3],l=o[5];return i?[c(a,0,255),c(n,0,255),c(s,0,255),c(p(l,1),0,1)]:void 0}}function w(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(p(t[3],1),0,1)];var o=k(t);return o&&3===o.length&&o.push(1),o}function E(t,o){switch(o){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return d.apply(void 0,s(t));case"hslcss":return"hsl("+(t=d.apply(void 0,s(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var i=d.apply(void 0,s(t));return"hsl("+i[0]+", "+i[1]+", "+i[2]+", "+t[3]+")";case"hsla":return[].concat(s(d.apply(void 0,s(t))),[t[3]]);case"hslacss":var a=d.apply(void 0,s(t));return"hsla("+a[0]+", "+a[1]+", "+a[2]+", "+t[3]+")";case"hex":return h.apply(void 0,s(t));case"hexcss4":return h.apply(void 0,s(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return g.apply(void 0,s(t))}}o.COLOR_NAMES=l,o.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],o.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],o.rgbToHex=h,o.hslToRgb=u,o.rgbToHsl=d,o.rgbToHsv=function(t,o,i){var a=[c(t,0,255)/255,c(o,0,255)/255,c(i,0,255)/255],r,n=Math.max(t=a[0],o=a[1],i=a[2]),s=Math.min(t,o,i),l=void 0,p=n-s;if(r=0===n?0:p/n,n==s)l=0;else{switch(n){case t:l=(o-i)/p+6*(o<i);break;case o:l=(i-t)/p+2;break;case i:l=(t-o)/p+4}l/=6}return[l,r,n]},o.rgbToInt=g,o.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},o.cssColorToRgb=m,o.cssColorToRgba=f,o.cssRgbToRgb=y,o.cssRgbaToRgba=v,o.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||y(t)},o.parseColorToRgba=b,o.cssHslToHsl=C,o.cssHslaToHsla=k,o.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:C(t)},o.parseColorToHsla=w,o.parseColor=function(t,o){if(o=o||"rgb",null!=t){var i=void 0;if((i=b(t))||(i=w(t))&&(i=[].concat(s(u.apply(void 0,s(i))),[i[3]])))return(0,n.default)(o)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,o){return t[o]=E(i,o),t},o||{}):E(i,o.toString().toLowerCase())}},o.getLuminance=function(t,o,i){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(o=(o/=255)<.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*((i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},o.limit=c,o.ensureArray=function(t){return t?Array.from(t):[]},o.nvl=p},function(t,o,i){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,o){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,o,i){var a=i(6);t.exports="string"==typeof a?a:a.toString()},function(t,o,i){(t.exports=i(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,o){t.exports=function(t){var o=[];return o.toString=function(){return this.map(function(o){var i=function(t,o){var i=t[1]||"",a=t[3];if(!a)return i;if(o&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */";return[i].concat(a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"})).concat([r]).join("\n")}return[i].join("\n")}(o,t);return o[2]?"@media "+o[2]+"{"+i+"}":i}).join("")},o.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},r=0;r<this.length;r++){var n=this[r][0];"number"==typeof n&&(a[n]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&a[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),o.push(s))}},o}}],o={};function i(a){if(o[a])return o[a].exports;var r=o[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=o,i.d=function(t,o,a){i.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:a})},i.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,o){if(1&o&&(t=i(t)),8&o||4&o&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var r in t)i.d(a,r,(function(o){return t[o]}).bind(null,r));return a},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},i.p="",i(i.s=1)}()},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},47660:function(t,o,i){"use strict";function a(t){let o=this.mapElements.indexOf(t);-1!==o&&(this.mapElements[o].gme.setMap(null),this.mapElements.splice(o,1),this.state.elements.splice(o,1),this.state.elements=[...this.state.elements])}i.d(o,{removeElement:function(){return a}})},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},53454:function(t,o,i){"use strict";i.d(o,{onChangeGeometries:function(){return n}});var a=i(72690),r=i(67912);function n(t,o){var i,n,s,l;switch(t.type){case"polyline":case"polygon":{let i=(0,r.pathToArray)(t.gme.getPath()),n={...t.state,coordinates:i};a.updateStateAndGme.call(this,n,o,!0);break}case"marker":{let r=t.gme.getPosition(),s={...t.state,coordinates:[null!=(i=null==r?void 0:r.lat())?i:0,null!=(n=null==r?void 0:r.lng())?n:0]};a.updateStateAndGme.call(this,s,o,!0);break}case"circle":{let i=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[null!=(s=null==i?void 0:i.lat())?s:0,null!=(l=null==i?void 0:i.lng())?l:0]};a.updateStateAndGme.call(this,r,o,!0)}}}},55029:function(t,o,i){"use strict";var a=i(17298),r=i(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:a.COMMAND_OPEN_DIALOG};let n=t=>({icon:`edit-${t}`,isActive:o=>o.buffer.get("createMode.gm")===t,exec:o=>{o.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:n("hand"),marker:n("marker"),polyline:n("polyline"),polygon:n("polygon"),circle:n("circle"),text:n("text")}},60811:function(t,o,i){"use strict";i.d(o,{generateStaticElements:function(){return n}});var a=i(67912),r=i(91003);function n(t){return t.state.elements.map(t=>{var o,i,n,s,l,c;switch(t.type){case"polygon":return`&path=fillcolor:${(0,a.specialColor)(null!=(o=t.fillColor)?o:"#fff")}%7Cweight:${null!=(i=t.strokeWeight)?i:1}%7Ccolor:${(0,a.specialColor)(null!=(n=t.strokeColor)?n:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,a.arrayToPath)(t.coordinates))}`;case"polyline":return`&path=weight:${null!=(s=t.strokeWeight)?s:1}%7Ccolor:${(0,a.specialColor)(null!=(l=t.strokeColor)?l:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath((0,a.arrayToPath)(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,r.stripTags)(null!=(c=t.text)?c:"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""}).join("")}},61818:function(t,o,i){"use strict";i.d(o,{generateJSScript:function(){return r}});var a=i(36409);function r(t,o){return`<script class="jodit-google-maps-init" type="text/javascript">
20
20
  var imgMap = document.getElementById('${o.uid}'),
21
21
  box = document.createElement('div'),
22
22
  mapBox = document.createElement('div'),
@@ -137,4 +137,4 @@
137
137
  scr.src = 'https://maps.googleapis.com/maps/api/js?key=${t.o.googleMaps.API_KEY}&language=${t.o.language}&callback=CreateGMap${o.uid}';
138
138
  document.appendChild(scr);
139
139
  }
140
- /*]]>*/</script>`.replace(/[\n\t]+/g,"")}},62357:function(t,o,i){"use strict";i.d(o,{UIRange:function(){return c}});var a=i(82749),r=i(31635),n=i(65478),s=i(21537),l=i(67510);class c extends l.UIInput{className(){return"UIRange"}appendUIRange(){let t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);let o=this.j.create.div(this.getFullElName("handle"));t.appendChild(o);let i=this.j.create.div(this.getFullElName("log")),a=this.getElm("label");a&&a.appendChild(i)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;let o=this.getElm("slider");(0,s.assert)(null!=o,"slider element does not exists"),this.width=o.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){let{min:o,max:i,step:a=1}=this.state,r=(t.clientX-this.startX)/this.width*(this.state.max-this.state.min),n=this.startValue+r;n<o&&(n=o),n>i&&(n=i),n=Math.round(n/a)*a,this.value=n.toFixed(10)}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){let t=this.getElm("handle"),o=parseFloat(this.value)||0;(0,s.assert)(null!=t,"Handle element does not exist"),(0,s.css)(t,{left:(o-this.state.min)/(this.state.max-this.state.min)*100+"%"});let i=this.getElm("log");(0,s.assert)(null!=i,"log element does not exist"),i.innerText=o.toString()}destruct(){return this.onDragEnd(),super.destruct()}constructor(t,o){super(t,{...o,type:"hidden"}),(0,a._)(this,"state",{...l.UIInput.defaultState,min:0,max:100,step:1}),(0,a._)(this,"startValue",0),(0,a._)(this,"startX",0),(0,a._)(this,"width",100),Object.assign(this.state,o),this.appendUIRange(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,n.watch)(["handle:mousedown","handle:touchstart"])],c.prototype,"onDragStart",null),(0,r.__decorate)([n.autobind],c.prototype,"onDrag",null),(0,r.__decorate)([(0,n.watch)(["j.ow:mouseup","j.ow:touchend"])],c.prototype,"onDragEnd",null),(0,r.__decorate)([(0,n.watch)(":change")],c.prototype,"onChangeSelfValue",null),c=(0,r.__decorate)([n.component],c)},65805:function(t,o,i){"use strict";i.d(o,{UIComboBox:function(){return s}});var a=i(31635),r=i(65478),n=i(67510);class s extends n.UIInput{className(){return"UIComboBox"}onReady(){let t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",()=>{var o,i;let a=t.getPlace();this.j.e.fire(this,"select",null==(o=a.geometry)?void 0:o.location,null==(i=a.geometry)?void 0:i.viewport)})}async onInput(){}}(0,a.__decorate)([(0,r.hook)("ready")],s.prototype,"onReady",null),(0,a.__decorate)([(0,r.watch)("nativeInput:input"),(0,r.debounce)()],s.prototype,"onInput",null)},67912:function(t,o,i){"use strict";i.d(o,{GoogleReadyHandler:function(){return s},arrayToPath:function(){return function t(o,i=!1){let a=[];if(Array.isArray(o))if(!(Array.isArray(o[0])||Array.isArray(o[1])))return i?{lat:o[0],lng:o[1]}:new google.maps.LatLng(o[0],o[1]);else o.forEach(o=>{a.push(t(o,i))});return a}},googleReady:function(){return n},isApiAvailable:function(){return p},pathToArray:function(){return l},specialColor:function(){return c}});let a=!1,r=[];function n(t){a?t():r.push(t)}function s(){a=!0,r&&r.forEach(t=>t())}function l(t){return t.getArray().map(t=>[t.lat(),t.lng()])}function c(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function p(){return"u">typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},69209:function(t,o,i){"use strict";i.d(o,{addNewInState:function(){return a.addNewInState}});var a=i(22125);i(11079)},69398:function(t,o,i){"use strict";i.d(o,{UIPolylineEditor:function(){return c}});var a=i(31635),r=i(65478),n=i(80256),s=i(45128),l=i(14002);class c extends l.UIBaseEditor{onReady(){var t,o;super.onReady(),this.append([new n.UIInput(this.j,{label:"Stroke weight",value:null!=(t=this.state.strokeWeight)?t:1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new s.ColorInput(this.j,{label:"Stroke color",value:null!=(o=this.state.strokeColor)?o:"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}}(0,a.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,a.__decorate)([r.component],c)},72690:function(t,o,i){"use strict";i.d(o,{updateStateAndGme:function(){return r}});var a=i(67912);function r(t,o,i=!1){let n=this.mapElements[o];if(n.state===t||n.state.type!==t.type)return;let s=n.state;if(!i){let o;for(o in t){let i=t[o],r=s[o];if(null!=i&&(null==r||i.toString()!==r.toString()))switch(o){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(n.type){case"polyline":case"circle":case"polygon":n.gme.setOptions({[o]:i})}break;case"coordinates":switch(n.type){case"polygon":case"polyline":n.gme.setPath((0,a.arrayToPath)(i))}}}}n.state=t,this.state.elements[o]=t}},81122:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},83039:function(t,o,i){"use strict";i.d(o,{UIMapsPropsForm:function(){return c}});var a=i(82749),r=i(31635),n=i(65478),s=i(76078),l=i(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:o}=(0,s.refs)(this.container);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==o?void 0:o.value,10)||0]}onExternalChangeSize(){let{width:t,height:o}=(0,s.refs)(this.container),[i,a]=this.state.size;i.toString()!==t.value&&(t.value=i.toString()),a.toString()!==o.value&&(o.value=a.toString())}onChangeCenter(){let{lat:t,lng:o}=(0,s.refs)(this.container);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==o?void 0:o.value)||0]}onExternalChangeCenter(){let{lat:t,lng:o}=(0,s.refs)(this.container),[i,a]=this.state.center;i.toString()!==t.value&&(t.value=i.toString()),a.toString()!==o.value&&(o.value=a.toString())}onExternalChangeType(){let{mapType:t}=(0,s.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,s.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,o){var i;super(t),(0,a._)(this,"state",void 0),this.state=o;const[r,n]=o.size,[s,c]=o.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:n,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:c,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:o.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:t=>{o.type=t}}),new l.UISelect(t,{label:"Layer",value:null!=(i=o.layer)?i:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:t=>{o.layer=t}})])}}(0,r.__decorate)([n.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,n.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([n.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,n.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,n.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,n.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([n.component],c)},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},89687:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},90835:function(t,o,i){"use strict";i.d(o,{UIMarkerEditor:function(){return a.UIMarkerEditor},UIPolygonEditor:function(){return r.UIPolygonEditor},UIPolylineEditor:function(){return n.UIPolylineEditor}});var a=i(42370),r=i(11696),n=i(69398)},92931:function(t,o,i){"use strict";i.d(o,{staticUrl:function(){return r}});var a=i(60811);function r(t){let{state:o}=t;return`https://maps.googleapis.com/maps/api/staticmap?center=${o.center.join(",")}&zoom=${o.zoom}&size=${o.size.join("x")}&maptype=${o.type}&key=${t.options.googleMaps.API_KEY}`+(0,a.generateStaticElements)(t)}},99413:function(t,o,i){"use strict";var a=i(81122),r=i.n(a),n=i(49377),s=i.n(n),l=i(46425),c=i.n(l),p=i(86820),h=i.n(p),u=i(36576),d=i.n(u),g=i(27622),m=i.n(g),f=i(89687),y=i.n(f);i(12153).Icon.set("map",c()).set("edit-hand",s()).set("edit-polygon",d()).set("edit-marker",h()).set("edit-text",y()).set("edit-polyline",m()).set("edit-circle",r())}},function(t){return t(t.s=482)}])});
140
+ /*]]>*/</script>`.replace(/[\n\t]+/g,"")}},62357:function(t,o,i){"use strict";i.d(o,{UIRange:function(){return c}});var a=i(82749),r=i(31635),n=i(65478),s=i(21537),l=i(67510);class c extends l.UIInput{className(){return"UIRange"}appendUIRange(){let t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);let o=this.j.create.div(this.getFullElName("handle"));t.appendChild(o);let i=this.j.create.div(this.getFullElName("log")),a=this.getElm("label");a&&a.appendChild(i)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;let o=this.getElm("slider");(0,s.assert)(null!=o,"slider element does not exists"),this.width=o.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){let{min:o,max:i,step:a=1}=this.state,r=(t.clientX-this.startX)/this.width*(this.state.max-this.state.min),n=this.startValue+r;n<o&&(n=o),n>i&&(n=i),n=Math.round(n/a)*a,this.value=n.toFixed(10)}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){let t=this.getElm("handle"),o=parseFloat(this.value)||0;(0,s.assert)(null!=t,"Handle element does not exist"),(0,s.css)(t,{left:(o-this.state.min)/(this.state.max-this.state.min)*100+"%"});let i=this.getElm("log");(0,s.assert)(null!=i,"log element does not exist"),i.innerText=o.toString()}destruct(){return this.onDragEnd(),super.destruct()}constructor(t,o){super(t,{...o,type:"hidden"}),(0,a._)(this,"state",{...l.UIInput.defaultState,min:0,max:100,step:1}),(0,a._)(this,"startValue",0),(0,a._)(this,"startX",0),(0,a._)(this,"width",100),Object.assign(this.state,o),this.appendUIRange(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,n.watch)(["handle:mousedown","handle:touchstart"])],c.prototype,"onDragStart",null),(0,r.__decorate)([n.autobind],c.prototype,"onDrag",null),(0,r.__decorate)([(0,n.watch)(["j.ow:mouseup","j.ow:touchend"])],c.prototype,"onDragEnd",null),(0,r.__decorate)([(0,n.watch)(":change")],c.prototype,"onChangeSelfValue",null),c=(0,r.__decorate)([n.component],c)},65805:function(t,o,i){"use strict";i.d(o,{UIComboBox:function(){return s}});var a=i(31635),r=i(65478),n=i(67510);class s extends n.UIInput{className(){return"UIComboBox"}onReady(){let t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",()=>{var o,i;let a=t.getPlace();this.j.e.fire(this,"select",null==(o=a.geometry)?void 0:o.location,null==(i=a.geometry)?void 0:i.viewport)})}async onInput(){}}(0,a.__decorate)([(0,r.hook)("ready")],s.prototype,"onReady",null),(0,a.__decorate)([(0,r.watch)("nativeInput:input"),(0,r.debounce)()],s.prototype,"onInput",null)},67912:function(t,o,i){"use strict";i.d(o,{GoogleReadyHandler:function(){return s},arrayToPath:function(){return function t(o,i=!1){let a=[];if(Array.isArray(o))if(!(Array.isArray(o[0])||Array.isArray(o[1])))return i?{lat:o[0],lng:o[1]}:new google.maps.LatLng(o[0],o[1]);else o.forEach(o=>{a.push(t(o,i))});return a}},googleReady:function(){return n},isApiAvailable:function(){return p},pathToArray:function(){return l},specialColor:function(){return c}});let a=!1,r=[];function n(t){a?t():r.push(t)}function s(){a=!0,r&&r.forEach(t=>t())}function l(t){return t.getArray().map(t=>[t.lat(),t.lng()])}function c(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function p(){return"u">typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},69398:function(t,o,i){"use strict";i.d(o,{UIPolylineEditor:function(){return c}});var a=i(31635),r=i(65478),n=i(80256),s=i(45128),l=i(14002);class c extends l.UIBaseEditor{className(){return"UIPolylineEditor"}onReady(){var t,o;super.onReady(),this.append([new n.UIInput(this.j,{label:"Stroke weight",value:null!=(t=this.state.strokeWeight)?t:1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new s.ColorInput(this.j,{label:"Stroke color",value:null!=(o=this.state.strokeColor)?o:"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}}(0,a.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,a.__decorate)([r.component],c)},72690:function(t,o,i){"use strict";i.d(o,{updateStateAndGme:function(){return r}});var a=i(67912);function r(t,o,i=!1){let n=this.mapElements[o];if(n.state===t||n.state.type!==t.type)return;let s=n.state;if(!i){let o;for(o in t){let i=t[o],r=s[o];if(null!=i&&(null==r||i.toString()!==r.toString()))switch(o){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(n.type){case"polyline":case"circle":case"polygon":n.gme.setOptions({[o]:i})}break;case"coordinates":switch(n.type){case"polygon":case"polyline":n.gme.setPath((0,a.arrayToPath)(i))}}}}n.state=t,this.state.elements[o]=t}},81122:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},83039:function(t,o,i){"use strict";i.d(o,{UIMapsPropsForm:function(){return c}});var a=i(82749),r=i(31635),n=i(65478),s=i(76078),l=i(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:o}=(0,s.refs)(this.container);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==o?void 0:o.value,10)||0]}onExternalChangeSize(){let{width:t,height:o}=(0,s.refs)(this.container),[i,a]=this.state.size;i.toString()!==t.value&&(t.value=i.toString()),a.toString()!==o.value&&(o.value=a.toString())}onChangeCenter(){let{lat:t,lng:o}=(0,s.refs)(this.container);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==o?void 0:o.value)||0]}onExternalChangeCenter(){let{lat:t,lng:o}=(0,s.refs)(this.container),[i,a]=this.state.center;i.toString()!==t.value&&(t.value=i.toString()),a.toString()!==o.value&&(o.value=a.toString())}onExternalChangeType(){let{mapType:t}=(0,s.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,s.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,o){var i;super(t),(0,a._)(this,"state",void 0),this.state=o;const[r,n]=o.size,[s,c]=o.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:n,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:c,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:o.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:t=>{o.type=t}}),new l.UISelect(t,{label:"Layer",value:null!=(i=o.layer)?i:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:t=>{o.layer=t}})])}}(0,r.__decorate)([n.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,n.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([n.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,n.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,n.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,n.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([n.component],c)},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},89687:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},90835:function(t,o,i){"use strict";i.d(o,{UIMarkerEditor:function(){return a.UIMarkerEditor},UIPolygonEditor:function(){return r.UIPolygonEditor},UIPolylineEditor:function(){return n.UIPolylineEditor}});var a=i(42370),r=i(11696),n=i(69398)},92931:function(t,o,i){"use strict";i.d(o,{staticUrl:function(){return r}});var a=i(60811);function r(t){let{state:o}=t;return`https://maps.googleapis.com/maps/api/staticmap?center=${o.center.join(",")}&zoom=${o.zoom}&size=${o.size.join("x")}&maptype=${o.type}&key=${t.options.googleMaps.API_KEY}`+(0,a.generateStaticElements)(t)}},99413:function(t,o,i){"use strict";var a=i(81122),r=i.n(a),n=i(49377),s=i.n(n),l=i(46425),c=i.n(l),p=i(86820),h=i.n(p),u=i(36576),d=i.n(u),g=i(27622),m=i.n(g),f=i(89687),y=i.n(f);i(12153).Icon.set("map",c()).set("edit-hand",s()).set("edit-polygon",d()).set("edit-marker",h()).set("edit-text",y()).set("edit-polyline",m()).set("edit-circle",r())}},function(t){return t(t.s=482)}])});
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -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.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[782],{27222:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},29606:function(e,t,o){"use strict";o.d(t,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return l}});var i=o(27222),n=o.n(i),r=o(6441),d=o(29807),a=o(86583);r.Config.prototype.mobileView={mode:"default"};let l="buttonmobileSView",u="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:n(),command:"mobileView",isActive:e=>(0,a.dataBind)(e,u)&&"default"!==(0,a.dataBind)(e,u),isChildActive:(e,t)=>{var o,i;let n=null==(i=t.control)||null==(o=i.args)?void 0:o[0];return(0,d.isNumeric)(n)&&(n=Number(n)),((0,a.dataBind)(e,u)||"default")===n},exec:e=>!!(0,a.dataBind)(e,l)&&void e.execCommand("mobileView",!1,(0,a.dataBind)(e,l)),childExec:(e,t,{button:o})=>{var i,n;let r=null==(n=o.control)||null==(i=n.args)?void 0:i[0];e.execCommand("mobileView",!1,(0,d.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(e,t,o){"use strict";o.r(t);var i=o(82749),n=o(31635),r=o(29606),d=o(65478),a=o(43555),l=o(50911),u=o(2692);class s extends l.Plugin{afterInit(e){e.registerCommand("mobileView",{exec:(t,o,i)=>{this.__currentMode===i&&(i="default"),this.__currentMode=i,(0,a.dataBind)(e,r.dataBindCurrentKey,i),"default"!==this.__currentMode&&(0,a.dataBind)(e,r.dataBindStoredKey,i),"default"===i?(0,a.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,a.css)(this.j.currentPlace.slots.center,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}constructor(...e){super(...e),(0,i._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,i._)(this,"__currentMode","default")}}(0,i._)(s,"requires",["license"]),(0,n.__decorate)([(0,d.watch)(":beforeSetMode.mobileView")],s.prototype,"__beforeSetMode",null),s=(0,n.__decorate)([d.component],s),u.JoditPro.plugins.add("mobileView",s)}},function(e){return e(e.s=74398)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[782],{27222:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},29606:function(e,t,o){"use strict";o.d(t,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return l}});var i=o(27222),n=o.n(i),r=o(6441),a=o(29807),d=o(86583);r.Config.prototype.mobileView={mode:"default"};let l="buttonmobileSView",u="buttonmobileCView";r.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:n(),command:"mobileView",isActive:e=>(0,d.dataBind)(e,u)&&"default"!==(0,d.dataBind)(e,u),isChildActive:(e,t)=>{var o,i;let n=null==(i=t.control)||null==(o=i.args)?void 0:o[0];return(0,a.isNumeric)(n)&&(n=Number(n)),((0,d.dataBind)(e,u)||"default")===n},exec:e=>!!(0,d.dataBind)(e,l)&&void e.execCommand("mobileView",!1,(0,d.dataBind)(e,l)),childExec:(e,t,{button:o})=>{var i,n;let r=null==(n=o.control)||null==(i=n.args)?void 0:i[0];e.execCommand("mobileView",!1,(0,a.isNumeric)(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(e,t,o){"use strict";o.r(t);var i=o(82749),n=o(31635),r=o(29606),a=o(65478),d=o(43555),l=o(50911),u=o(2692);class s extends l.Plugin{className(){return"MobileView"}afterInit(e){e.registerCommand("mobileView",{exec:(t,o,i)=>{this.__currentMode===i&&(i="default"),this.__currentMode=i,(0,d.dataBind)(e,r.dataBindCurrentKey,i),"default"!==this.__currentMode&&(0,d.dataBind)(e,r.dataBindStoredKey,i),"default"===i?(0,d.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,d.css)(this.j.currentPlace.slots.center,{width:i,margin:"0 auto"})}}),e.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(e){}constructor(...e){super(...e),(0,i._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,i._)(this,"__currentMode","default")}}(0,i._)(s,"requires",["license"]),(0,n.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],s.prototype,"__beforeSetMode",null),s=(0,n.__decorate)([a.component],s),u.JoditPro.plugins.add("mobileView",s)}},function(e){return e(e.s=74398)}])});
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var a in r)("object"==typeof exports?exports:e)[a]=r[a]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{13109:function(e,t,r){"use strict";var a=r(17405),o=r.n(a),i=r(64889),n=r(6441);n.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},n.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o(),command:"insertPageBreak"},n.Config.prototype.iframeStyle=`${n.Config.prototype.iframeStyle};${i.default.replace(/[\n\t]/g,"")}`},17405:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},64889:function(e,t){"use strict";t.default=`[data-jodit-page-break] {
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[398],{13109:function(e,t,a){"use strict";var r=a(17405),o=a.n(r),i=a(64889),n=a(6441);n.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},n.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:o(),command:"insertPageBreak"},n.Config.prototype.iframeStyle=`${n.Config.prototype.iframeStyle};${i.default.replace(/[\n\t]/g,"")}`},17405:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},64889:function(e,t){"use strict";t.default=`[data-jodit-page-break] {
9
9
  display: flex;
10
10
  height: 24px;
11
11
  box-sizing: border-box;
@@ -22,4 +22,4 @@
22
22
 
23
23
  [data-jodit-page-break]:active {
24
24
  border-color: #818181;
25
- }`},79850:function(e,t,r){"use strict";r.r(t),r.d(t,{PageBreak:function(){return f}});var a=r(82749),o=r(31635);r(13109);var i=r(64889),n=r(65478),s=r(22732),p=r(21537),d=r(50911),c=r(2692);class f extends d.Plugin{afterInit(e){e.registerCommand("insertPageBreak",()=>{let t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let r=t.parentNode;for(;r&&r!==e.editor&&(s.Dom.after(r,t),!s.Dom.isBlock(r));)r=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){(0,p.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,p.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{s.Dom.isEmpty(e)&&!(0,p.attr)(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}constructor(...e){super(...e),(0,a._)(this,"styles",i.default),(0,a._)(this,"buttons",[{name:"pageBreak",group:"insert"}])}}(0,a._)(f,"requires",["license"]),(0,o.__decorate)([(0,n.watch)([":change",":afterSetMode"]),(0,n.debounce)()],f.prototype,"onChange",null),(0,o.__decorate)([(0,n.watch)(":afterGetValueFromEditor")],f.prototype,"onAfterGetValueFromEditor",null),c.JoditPro.plugins.add("pageBreak",f)}},function(e){return e(e.s=79850)}])});
25
+ }`},79850:function(e,t,a){"use strict";a.r(t),a.d(t,{PageBreak:function(){return f}});var r=a(82749),o=a(31635);a(13109);var i=a(64889),n=a(65478),s=a(22732),p=a(21537),d=a(50911),c=a(2692);class f extends d.Plugin{className(){return"PageBreak"}afterInit(e){e.registerCommand("insertPageBreak",()=>{let t=e.createInside.div("",{});this.decoratePageBreak(t),e.s.insertNode(t,!1,!1);let a=t.parentNode;for(;a&&a!==e.editor&&(s.Dom.after(a,t),!s.Dom.isBlock(a));)a=t.parentNode;e.s.setCursorAfter(t),e.setEditorValue()})}decoratePageBreak(e){(0,p.attr)(e,{"data-jodit-page-break":!0,contenteditable:!1}),e.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,p.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(e=>{s.Dom.isEmpty(e)&&!(0,p.attr)(e,"data-jodit-page-break")&&this.decoratePageBreak(e)})}onAfterGetValueFromEditor(e){e.value=e.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}constructor(...e){super(...e),(0,r._)(this,"styles",i.default),(0,r._)(this,"buttons",[{name:"pageBreak",group:"insert"}])}}(0,r._)(f,"requires",["license"]),(0,o.__decorate)([(0,n.watch)([":change",":afterSetMode"]),(0,n.debounce)()],f.prototype,"onChange",null),(0,o.__decorate)([(0,n.watch)(":afterGetValueFromEditor")],f.prototype,"onAfterGetValueFromEditor",null),c.JoditPro.plugins.add("pageBreak",f)}},function(e){return e(e.s=79850)}])});
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.8.14
4
+ * Version: v4.9.2
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var i in a)("object"==typeof exports?exports:e)[i]=a[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{41406:function(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:function(){return g}});var i=a(82749),s=a(31635);a(83967);var l=a(82758),o=a(65478),n=a(21537),r=a(87612),c=a(53326),h=a(50911),d=a(67510),u=a(41409),p=a(2692);class g extends h.Plugin{afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,a){let i=this.j,s=this.__createForm(),{code:l,language:o}=(0,n.refs)(s.container);e&&(o.value=e),t&&(l.value=t),i.async.requestIdleCallback(()=>{l.focus()}),i.s.save(),this.__createDialog(()=>{if(s.validate()){i.s.restore();let e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,o.value,l.value));if(a)u.Dom.replace(a,e,i.createInside,!1,!0);else{let t=i.s.current(),a=u.Dom.up(t,u.Dom.isBlock,i.editor);a&&!u.Dom.isCell(a)?u.Dom.after(a,e):i.s.insertNode(e)}this.__imdOnChange();return}return!1},()=>{i.s.restore()}).setContent(s.container).open(!0)}beforeDestruct(e){}__createForm(){let{jodit:e}=this;return new d.UIForm(e,[new d.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new d.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){let a=new u.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,d.Button)(a,"","Cancel","default").onAction(()=>{a.close(),t()}),(0,d.Button)(a,"save","Save","primary").onAction(()=>{a.close(),e()})]),a}__onChange(){this.__imdOnChange()}__imdOnChange(){(0,n.$$)("pre",this.j.editor).forEach(e=>{(0,n.attr)(e,"contenteditable")||((0,n.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){let t=this.__parseLanguage(e),{highlight:a}=await this.__initHighlightLibLoading(t),i=e;e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&(i=e.firstElementChild),i.innerHTML=a(i.innerText,t)}onPreEdit(e){let t=u.Dom.isNode(e)&&u.Dom.isTag(e,"pre")?e:u.Dom.closest(e.target,"pre",this.j.editor);if(t){let e=this.__parseLanguage(t);this.__openCodeEditDialog(e,t.innerText,t)}}__parseLanguage(e){let t=null,a=e=>e.classList.forEach(e=>{if(/language-/.test(e)){let a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}});return a(e),null==t&&e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){let t=(e,t,a,i,s,l)=>`${t.trim()}${i}${(0,c.htmlspecialchars)((0,n.stripTags)(s,this.j.ed,new Set(["br"])))}${l}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}constructor(...e){super(...e),(0,i._)(this,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,i._)(this,"__highlightLibJSIsLoaded",!1),(0,i._)(this,"__loadLanguage",new Map),(0,i._)(this,"__initHighlightLibLoading",async e=>{let{globalHighlightLib:t,highlightLib:{css:a,js:i,langUrl:s,highlight:o,isLangLoaded:c,beforeLibLoad:h,afterLibLoad:d}}=this.j.o.pasteCode;return this.__highlightLibJSIsLoaded||t||(this.__highlightLibJSIsLoaded=Promise.resolve(null==h?void 0:h()).then(()=>m(this.async,Promise.allSettled([(0,n.loadNextStyle)(this.jodit,a).catch(()=>null),(0,n.loadNext)(this.jodit,i).catch(()=>null)]))).then(()=>null==d?void 0:d())),(0,r.isBoolean)(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,!e||c(e)||t||(this.__loadLanguage.has(e)||(l.IS_PROD,this.__loadLanguage.set(e,m(this.async,(0,n.appendScriptAsync)(this.jodit,s(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:o}})}}function m(e,t){return e.promise((e,a)=>{t.then(e).catch(a)}).catch(()=>null)}(0,i._)(g,"requires",["license"]),(0,s.__decorate)([o.autobind],g.prototype,"__openCodeEditDialog",null),(0,s.__decorate)([(0,o.watch)(["?:change","?:afterInit"]),(0,o.debounce)()],g.prototype,"__onChange",null),(0,s.__decorate)([(0,o.watch)(["?:dblclick","?:editPreInPasteCode"])],g.prototype,"onPreEdit",null),(0,s.__decorate)([(0,o.watch)("?:afterGetValueFromEditor")],g.prototype,"onAfterGetValueFromEditor",null),g=(0,s.__decorate)([o.component],g),p.JoditPro.plugins.add("paste-code",g)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},83967:function(e,t,a){"use strict";var i=a(75689),s=a.n(i),l=a(6441),o=a(53326);l.Config.prototype.controls.pasteCode={icon:s(),tooltip:"Paste code",command:"pasteCode"},l.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,o.htmlspecialchars)(e)},isLangLoaded(e){return"html"===e||"u">typeof Prism&&!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,a)=>`<pre class="language-${t}">${(0,o.htmlspecialchars)(a)}</pre>`,languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}}},function(e){return e(e.s=41406)}])});
8
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var i in a)("object"==typeof exports?exports:e)[i]=a[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[150],{41406:function(e,t,a){"use strict";a.r(t),a.d(t,{pasteCode:function(){return g}});var i=a(82749),s=a(31635);a(83967);var l=a(82758),o=a(65478),n=a(21537),r=a(87612),c=a(53326),h=a(50911),d=a(67510),u=a(41409),p=a(2692);class g extends h.Plugin{className(){return"pasteCode"}afterInit(e){e.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),e.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(e,t,a){let i=this.j,s=this.__createForm(),{code:l,language:o}=(0,n.refs)(s.container);e&&(o.value=e),t&&(l.value=t),i.async.requestIdleCallback(()=>{l.focus()}),i.s.save(),this.__createDialog(()=>{if(s.validate()){i.s.restore();let e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,o.value,l.value));if(a)u.Dom.replace(a,e,i.createInside,!1,!0);else{let t=i.s.current(),a=u.Dom.up(t,u.Dom.isBlock,i.editor);a&&!u.Dom.isCell(a)?u.Dom.after(a,e):i.s.insertNode(e)}this.__imdOnChange();return}return!1},()=>{i.s.restore()}).setContent(s.container).open(!0)}beforeDestruct(e){}__createForm(){let{jodit:e}=this;return new d.UIForm(e,[new d.UISelect(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new d.UITextArea(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(e,t){let a=new u.Dialog({language:this.j.o.language});return a.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,d.Button)(a,"","Cancel","default").onAction(()=>{a.close(),t()}),(0,d.Button)(a,"save","Save","primary").onAction(()=>{a.close(),e()})]),a}__onChange(){this.__imdOnChange()}__imdOnChange(){(0,n.$$)("pre",this.j.editor).forEach(e=>{(0,n.attr)(e,"contenteditable")||((0,n.attr)(e,"contenteditable",!1),this.__highlightCode(e).catch(()=>null))})}async __highlightCode(e){let t=this.__parseLanguage(e),{highlight:a}=await this.__initHighlightLibLoading(t),i=e;e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&(i=e.firstElementChild),i.innerHTML=a(i.innerText,t)}onPreEdit(e){let t=u.Dom.isNode(e)&&u.Dom.isTag(e,"pre")?e:u.Dom.closest(e.target,"pre",this.j.editor);if(t){let e=this.__parseLanguage(t);this.__openCodeEditDialog(e,t.innerText,t)}}__parseLanguage(e){let t=null,a=e=>e.classList.forEach(e=>{if(/language-/.test(e)){let a=/language-(.*)/.exec(e);a&&a[1]&&(t=a[1])}});return a(e),null==t&&e.firstElementChild===e.lastElementChild&&u.Dom.isTag(e.firstElementChild,"code")&&a(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){let t=(e,t,a,i,s,l)=>`${t.trim()}${i}${(0,c.htmlspecialchars)((0,n.stripTags)(s,this.j.ed,new Set(["br"])))}${l}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,t).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,t)}constructor(...e){super(...e),(0,i._)(this,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,i._)(this,"__highlightLibJSIsLoaded",!1),(0,i._)(this,"__loadLanguage",new Map),(0,i._)(this,"__initHighlightLibLoading",async e=>{let{globalHighlightLib:t,highlightLib:{css:a,js:i,langUrl:s,highlight:o,isLangLoaded:c,beforeLibLoad:h,afterLibLoad:d}}=this.j.o.pasteCode;return this.__highlightLibJSIsLoaded||t||(this.__highlightLibJSIsLoaded=Promise.resolve(null==h?void 0:h()).then(()=>m(this.async,Promise.allSettled([(0,n.loadNextStyle)(this.jodit,a).catch(()=>null),(0,n.loadNext)(this.jodit,i).catch(()=>null)]))).then(()=>null==d?void 0:d())),(0,r.isBoolean)(this.__highlightLibJSIsLoaded)||await this.__highlightLibJSIsLoaded,!e||c(e)||t||(this.__loadLanguage.has(e)||(l.IS_PROD,this.__loadLanguage.set(e,m(this.async,(0,n.appendScriptAsync)(this.jodit,s(e)).catch(()=>null)))),await this.__loadLanguage.get(e)),{highlight:o}})}}function m(e,t){return e.promise((e,a)=>{t.then(e).catch(a)}).catch(()=>null)}(0,i._)(g,"requires",["license"]),(0,s.__decorate)([o.autobind],g.prototype,"__openCodeEditDialog",null),(0,s.__decorate)([(0,o.watch)(["?:change","?:afterInit"]),(0,o.debounce)()],g.prototype,"__onChange",null),(0,s.__decorate)([(0,o.watch)(["?:dblclick","?:editPreInPasteCode"])],g.prototype,"onPreEdit",null),(0,s.__decorate)([(0,o.watch)("?:afterGetValueFromEditor")],g.prototype,"onAfterGetValueFromEditor",null),g=(0,s.__decorate)([o.component],g),p.JoditPro.plugins.add("paste-code",g)},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},83967:function(e,t,a){"use strict";var i=a(75689),s=a.n(i),l=a(6441),o=a(53326);l.Config.prototype.controls.pasteCode={icon:s(),tooltip:"Paste code",command:"pasteCode"},l.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(e){switch(e){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return e},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(e,t){return"u">typeof Prism?Prism.highlight(e,Prism.languages[t]||Prism.languages.plain,t):(0,o.htmlspecialchars)(e)},isLangLoaded(e){return"html"===e||"u">typeof Prism&&!!Prism.languages[e]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:e=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${e}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,t,a)=>`<pre class="language-${t}">${(0,o.htmlspecialchars)(a)}</pre>`,languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}}},function(e){return e(e.s=41406)}])});